iobroker.admin 7.7.0 → 7.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -8
- package/adminWww/assets/{AdapterUpdateDialog-n1ctcGKb.js → AdapterUpdateDialog-DHGhgEEq.js} +1 -1
- package/adminWww/assets/{Adapters-Byzq4dfE.js → Adapters-CgSIajcF.js} +2 -2
- package/adminWww/assets/{Config-BufFy_Z3.js → Config-BQSl4bfA.js} +1 -1
- package/adminWww/assets/{CustomModal-ASkCycZn.js → CustomModal-DNMTLv4y.js} +1 -1
- package/adminWww/assets/{CustomTab-D5ZlRfQA.js → CustomTab-Bl8S8QZW.js} +1 -1
- package/adminWww/assets/{DefaultPropsProvider-DxsXuIyE.js → DefaultPropsProvider-u5xB1Fxz.js} +1 -1
- package/adminWww/assets/{EasyMode-CTuK0TL7.js → EasyMode-xDbqrply.js} +1 -1
- package/adminWww/assets/{Enums-C5pau2hV.js → Enums-BSICIhWI.js} +1 -1
- package/adminWww/assets/{Fields-Cj6QGc97.js → Fields-C3JkTmfP.js} +1 -1
- package/adminWww/assets/{Files-DJmRnmH6.js → Files-DK85-COY.js} +2 -2
- package/adminWww/assets/{FilledInput-CKswrNd5.js → FilledInput-CysG4ax_.js} +1 -1
- package/adminWww/assets/{Hosts-B5BgwMoO.js → Hosts-qIsB4Gub.js} +2 -2
- package/adminWww/assets/Instances-BA_DCzs8.js +2 -0
- package/adminWww/assets/{Intro-Do7uao_1.js → Intro-00oh6SLw.js} +1 -1
- package/adminWww/assets/{Logs-DK0nfkio.js → Logs-Cvpgh-zN.js} +1 -1
- package/adminWww/assets/{Objects-9W6F_Gl6.js → Objects-Dp71iotS.js} +3 -3
- package/adminWww/assets/{State-CdKRELiQ.js → State-BqfD2ABf.js} +1 -1
- package/adminWww/assets/{Tabs-BJ1rL35Z.js → Tabs-sxfWgN0b.js} +2 -2
- package/adminWww/assets/{Users-7TI-QdQA.js → Users-CDcWqTfZ.js} +1 -1
- package/adminWww/assets/ace-BG5WYul1.js +985 -0
- package/adminWww/assets/{blueGrey-D-KQaGde.js → blueGrey-DYsiMDOn.js} +1 -1
- package/adminWww/assets/{bootstrap-BX2s0oWJ.js → bootstrap-BYQTdf9r.js} +10 -10
- package/adminWww/assets/{createSvgIcon-DuKI6CvW.js → createSvgIcon-Bh3KWtyp.js} +1 -1
- package/adminWww/assets/{emotion-react.browser.esm-DApPKwaj.js → emotion-react.browser.esm-BCDt9NrH.js} +1 -1
- package/adminWww/assets/{emotion-styled.browser.esm-Dc05hmeu.js → emotion-styled.browser.esm-CyFqGgyG.js} +1 -1
- package/adminWww/assets/{emotion-utils.browser.esm-DOjH6Olm.js → emotion-utils.browser.esm-pglN4_eI.js} +1 -1
- package/adminWww/assets/{geosearch.module-CWfRtxrN.js → geosearch.module-DH4NhiPj.js} +1 -1
- package/adminWww/assets/hostInit-fzxL8JAx.js +1 -1
- package/adminWww/assets/{iconBase-CgxZ5MMC.js → iconBase-C3vi24ZE.js} +1 -1
- package/adminWww/assets/{index-BmWdDCX_.js → index-B1ITPhEY.js} +2 -2
- package/adminWww/assets/{index-D7Rlw-5R.js → index-D--ojYan.js} +1 -1
- package/adminWww/assets/{index-nYRrWzRm.js → index-D3IAEXXP.js} +1 -1
- package/adminWww/assets/{index-HOidq_rM.js → index-DPDg2YA0.js} +1 -1
- package/adminWww/assets/{index-Bsv_DXxB.js → index-DTGUg51P.js} +1 -1
- package/adminWww/assets/{index-BP5kWU3L.js → index-Qa7Q_Dz5.js} +1 -1
- package/adminWww/assets/{index-4ywCzYtt.js → index-qcIeekse.js} +2 -2
- package/adminWww/assets/{index-gHyOgbGJ.js → index-rKfs-rCa.js} +1 -1
- package/adminWww/assets/{index-CL669NIb.js → index-wN1ZlPSW.js} +2 -2
- package/adminWww/assets/iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-BOKYvG_W.js +1 -0
- package/adminWww/assets/{iobroker_admin__loadShare__leaflet__loadShare__-B1OZ7tj-.js → iobroker_admin__loadShare__leaflet__loadShare__-h9SMNPLU.js} +1 -1
- package/adminWww/assets/iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BnsS7SOQ.js +1 -0
- package/adminWww/assets/{iobroker_admin__loadShare__react__loadShare__-DtlEM_52.js → iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js} +1 -1
- package/adminWww/assets/iobroker_admin__mf_v__runtimeInit__mf_v__-CTkuGOOk.js +5 -0
- package/adminWww/assets/{sentry-CVjuw0L7.js → sentry-H_UdJ2zx.js} +1 -1
- package/adminWww/assets/{zh-cn-Dv2ND1_P.js → zh-cn-vvAC9zpl.js} +3 -3
- package/adminWww/index.html +2 -2
- package/adminWww/mf-manifest.json +1 -1
- package/adminWww/remoteEntry.js +2 -2
- package/io-package.json +27 -27
- package/package.json +9 -9
- package/adminWww/assets/Instances-W2t3Z5_r.js +0 -2
- package/adminWww/assets/ace-kRq1OCR-.js +0 -985
- package/adminWww/assets/iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-gw2iqPBS.js +0 -1
- package/adminWww/assets/iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BGyJCibC.js +0 -1
- package/adminWww/assets/iobroker_admin__mf_v__runtimeInit__mf_v__-VDoBF19b.js +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as y}from"./iobroker_admin__loadShare__react__loadShare__-
|
|
1
|
+
import{i as y}from"./iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js";import{a as I,g as C,y as R,j as h,s as _,c as b,e as z,b as w,z as j}from"./DefaultPropsProvider-u5xB1Fxz.js";import"./iobroker_admin__loadShare__prop_mf_2_types__loadShare__-BnsS7SOQ.js";function M(o){return C("MuiSvgIcon",o)}const k=I("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),N=o=>{const{color:e,fontSize:t,classes:i}=o,r={root:["root",e!=="inherit"&&`color${z(e)}`,`fontSize${z(t)}`]};return w(r,M,i)},$=_("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.color!=="inherit"&&e[`color${z(t.color)}`],e[`fontSize${z(t.fontSize)}`]]}})(j(({theme:o})=>{var e,t,i,r,l,m,n,u,c,S,a,f,v,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(r=(e=o.transitions)==null?void 0:e.create)==null?void 0:r.call(e,"fill",{duration:(i=(t=(o.vars??o).transitions)==null?void 0:t.duration)==null?void 0:i.shorter}),variants:[{props:s=>!s.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((m=(l=o.typography)==null?void 0:l.pxToRem)==null?void 0:m.call(l,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(n=o.typography)==null?void 0:n.pxToRem)==null?void 0:u.call(n,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((S=(c=o.typography)==null?void 0:c.pxToRem)==null?void 0:S.call(c,35))||"2.1875rem"}},...Object.entries((o.vars??o).palette).filter(([,s])=>s&&s.main).map(([s])=>{var d,g;return{props:{color:s},style:{color:(g=(d=(o.vars??o).palette)==null?void 0:d[s])==null?void 0:g.main}}}),{props:{color:"action"},style:{color:(f=(a=(o.vars??o).palette)==null?void 0:a.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(p=(v=(o.vars??o).palette)==null?void 0:v.action)==null?void 0:p.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),x=y.forwardRef(function(e,t){const i=R({props:e,name:"MuiSvgIcon"}),{children:r,className:l,color:m="inherit",component:n="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:S=!1,titleAccess:a,viewBox:f="0 0 24 24",...v}=i,p=y.isValidElement(r)&&r.type==="svg",s={...i,color:m,component:n,fontSize:u,instanceFontSize:e.fontSize,inheritViewBox:S,viewBox:f,hasSvgAsChild:p},d={};S||(d.viewBox=f);const g=N(s);return h.jsxs($,{as:n,className:b(g.root,l),focusable:"false",color:c,"aria-hidden":a?void 0:!0,role:a?"img":void 0,ref:t,...d,...v,...p&&r.props,ownerState:s,children:[p?r.props.children:r,a?h.jsx("title",{children:a}):null]})});x.muiName="SvgIcon";function B(o,e){function t(i,r){return h.jsx(x,{"data-testid":`${e}Icon`,ref:r,...i,children:o})}return t.muiName=x.muiName,y.memo(y.forwardRef(t))}export{x as S,B as c,M as g,k as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as u}from"./iobroker_admin__loadShare__react__loadShare__-
|
|
1
|
+
import{i as u}from"./iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js";import{c as Z}from"./emotion-cache.browser.esm-B8BFze5o.js";import{_ as Y}from"./extends-CF3RwP-h.js";import{g as k}from"./_commonjsHelpers-D6-XlEtG.js";import{g as G,r as H,u as K,i as N,a as W}from"./emotion-utils.browser.esm-pglN4_eI.js";import{s as p}from"./emotion-serialize.esm-BUa21YfQ.js";import"./iobroker_admin__mf_v__runtimeInit__mf_v__-CTkuGOOk.js";var D=function(r){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var a=r(n);return t.set(n,a),a}},U={exports:{}},i={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as E}from"./extends-CF3RwP-h.js";import{i as T}from"./iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-
|
|
1
|
+
import{_ as E}from"./extends-CF3RwP-h.js";import{i as T}from"./iobroker_admin__loadShare___mf_0_emotion_mf_1_react__loadShare__-BOKYvG_W.js";import{m as I,s as L}from"./emotion-serialize.esm-BUa21YfQ.js";import{g as M,r as H,u as N,i as U}from"./emotion-utils.browser.esm-pglN4_eI.js";import{i as p}from"./iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js";import"./iobroker_admin__mf_v__runtimeInit__mf_v__-CTkuGOOk.js";import"./_commonjsHelpers-D6-XlEtG.js";var D=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,q=I(function(a){return D.test(a)||a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)<91}),B=q,V=function(e){return e!=="theme"},A=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?B:V},R=function(e,i,l){var t;if(i){var o=i.shouldForwardProp;t=e.__emotion_forwardProp&&o?function(d){return e.__emotion_forwardProp(d)&&o(d)}:o}return typeof t!="function"&&l&&(t=e.__emotion_forwardProp),t},W=function(e){var i=e.cache,l=e.serialized,t=e.isStringTag;return H(i,l,t),N(function(){return U(i,l,t)}),null},X=function a(e,i){var l=e.__emotion_real===e,t=l&&e.__emotion_base||e,o,d;i!==void 0&&(o=i.label,d=i.target);var b=R(e,i,l),S=b||A(t),k=!S("as");return function(){var u=arguments,s=l&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(o!==void 0&&s.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)s.push.apply(s,u);else{var x=u[0];s.push(x[0]);for(var F=u.length,f=1;f<F;f++)s.push(u[f],x[f])}var n=T.withEmotionCache(function(r,c,h){var _=k&&r.as||t,m="",P=[],g=r;if(r.theme==null){g={};for(var w in r)g[w]=r[w];g.theme=p.useContext(T.ThemeContext)}typeof r.className=="string"?m=M(c.registered,P,r.className):r.className!=null&&(m=r.className+" ");var C=L(s.concat(P),c.registered,g);m+=c.key+"-"+C.name,d!==void 0&&(m+=" "+d);var z=k&&b===void 0?A(_):S,y={};for(var v in r)k&&v==="as"||z(v)&&(y[v]=r[v]);return y.className=m,h&&(y.ref=h),p.createElement(p.Fragment,null,p.createElement(W,{cache:c,serialized:C,isStringTag:typeof _=="string"}),p.createElement(_,y))});return n.displayName=o!==void 0?o:"Styled("+(typeof t=="string"?t:t.displayName||t.name||"Component")+")",n.defaultProps=e.defaultProps,n.__emotion_real=n,n.__emotion_base=t,n.__emotion_styles=s,n.__emotion_forwardProp=b,Object.defineProperty(n,"toString",{value:function(){return"."+d}}),n.withComponent=function(r,c){var h=a(r,E({},i,c,{shouldForwardProp:R(n,c,!0)}));return h.apply(void 0,s)},n}},j=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],O=X.bind(null);j.forEach(function(a){O[a]=O(a)});export{O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as f,i as o}from"./iobroker_admin__loadShare__react__loadShare__-
|
|
1
|
+
import{a as f,i as o}from"./iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js";var u=function(e){return e()},i=f.useInsertionEffect?f.useInsertionEffect:!1,d=i||u,_=i||o.useLayoutEffect,l=!0;function S(a,e,t){var n="";return t.split(" ").forEach(function(s){a[s]!==void 0?e.push(a[s]+";"):s&&(n+=s+" ")}),n}var y=function(e,t,n){var s=e.key+"-"+t.name;(n===!1||l===!1)&&e.registered[s]===void 0&&(e.registered[s]=t.styles)},k=function(e,t,n){y(e,t,n);var s=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var r=t;do e.insert(t===r?"."+s:"",r,e.sheet,!0),r=r.next;while(r!==void 0)}};export{_ as a,S as g,k as i,y as r,d as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as K,i as d}from"./iobroker_admin__loadShare__leaflet__loadShare__-B1OZ7tj-.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./iobroker_admin__mf_v__runtimeInit__mf_v__-VDoBF19b.js";function g(){return g=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(n[t]=o[t])}return n},g.apply(this,arguments)}function c(n,r){n.prototype=Object.create(r.prototype),n.prototype.constructor=n,M(n,r)}function M(n,r){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,t){return o.__proto__=t,o},M(n,r)}function X(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function G(n,r,o){return G=X()?Reflect.construct.bind():function(t,e,s){var i=[null];i.push.apply(i,e);var a=new(Function.bind.apply(t,i));return s&&M(a,s.prototype),a},G.apply(null,arguments)}function m(n,r,o,t){r===void 0&&(r=""),t===void 0&&(t={});var e=document.createElement(n);return r&&(e.className=r),Object.keys(t).forEach(function(s){if(typeof t[s]=="function"){var i=s.indexOf("on")===0?s.substr(2).toLowerCase():s;e.addEventListener(i,t[s])}else s==="html"?e.innerHTML=t[s]:s==="text"?e.innerText=t[s]:e.setAttribute(s,t[s])}),o&&o.appendChild(e),e}function C(n){n.preventDefault(),n.stopPropagation()}var O=function(){return[].slice.call(arguments).filter(Boolean).join(" ").trim()};function x(n,r){n&&n.classList&&(Array.isArray(r)?r:[r]).forEach(function(o){n.classList.contains(o)||n.classList.add(o)})}function f(n,r){n&&n.classList&&(Array.isArray(r)?r:[r]).forEach(function(o){n.classList.contains(o)&&n.classList.remove(o)})}var y,_=13,T=40,V=38,Y=[_,27,T,V,37,39],ee=function(){function n(o){var t=this,e=o.handleSubmit,s=o.searchLabel,i=o.classNames,a=i===void 0?{}:i;this.container=void 0,this.form=void 0,this.input=void 0,this.handleSubmit=void 0,this.hasError=!1,this.container=m("div",O("geosearch",a.container)),this.form=m("form",["",a.form].join(" "),this.container,{autocomplete:"none",onClick:C,onDblClick:C,touchStart:C,touchEnd:C}),this.input=m("input",["glass",a.input].join(" "),this.form,{type:"text",placeholder:s||"search",onInput:this.onInput,onKeyUp:function(l){return t.onKeyUp(l)},onKeyPress:function(l){return t.onKeyPress(l)},onFocus:this.onFocus,onBlur:this.onBlur,onClick:function(){t.input.focus(),t.input.dispatchEvent(new Event("focus"))}}),this.handleSubmit=e}var r=n.prototype;return r.onFocus=function(){x(this.form,"active")},r.onBlur=function(){f(this.form,"active")},r.onSubmit=function(o){try{var t=this;return C(o),f(e=t.container,"error"),x(e,"pending"),Promise.resolve(t.handleSubmit({query:t.input.value})).then(function(){f(t.container,"pending")})}catch(s){return Promise.reject(s)}var e},r.onInput=function(){this.hasError&&(f(this.container,"error"),this.hasError=!1)},r.onKeyUp=function(o){o.keyCode===27&&(f(this.container,["pending","active"]),this.input.value="",document.body.focus(),document.body.blur())},r.onKeyPress=function(o){o.keyCode===_&&this.onSubmit(o)},r.setQuery=function(o){this.input.value=o},n}(),te=function(){function n(o){var t=this,e=o.handleClick,s=o.classNames,i=s===void 0?{}:s,a=o.notFoundMessage;this.handleClick=void 0,this.selected=-1,this.results=[],this.container=void 0,this.resultItem=void 0,this.notFoundMessage=void 0,this.onClick=function(l){if(typeof t.handleClick=="function"){var u=l.target;if(u&&t.container.contains(u)&&u.hasAttribute("data-key")){var h=Number(u.getAttribute("data-key"));t.handleClick({result:t.results[h]})}}},this.handleClick=e,this.notFoundMessage=a?m("div",O(i.notfound),void 0,{html:a}):void 0,this.container=m("div",O("results",i.resultlist)),this.container.addEventListener("click",this.onClick,!0),this.resultItem=m("div",O(i.item))}var r=n.prototype;return r.render=function(o,t){var e=this;o===void 0&&(o=[]),this.clear(),o.forEach(function(s,i){var a=e.resultItem.cloneNode(!0);a.setAttribute("data-key",""+i),a.innerHTML=t({result:s}),e.container.appendChild(a)}),o.length>0?(x(this.container.parentElement,"open"),x(this.container,"active")):this.notFoundMessage&&(this.container.appendChild(this.notFoundMessage),x(this.container.parentElement,"open")),this.results=o},r.select=function(o){return Array.from(this.container.children).forEach(function(t,e){return e===o?x(t,"active"):f(t,"active")}),this.selected=o,this.results[o]},r.count=function(){return this.results?this.results.length:0},r.clear=function(){for(this.selected=-1;this.container.lastChild;)this.container.removeChild(this.container.lastChild);f(this.container.parentElement,"open"),f(this.container,"active")},n}(),D={position:"topleft",style:"button",showMarker:!0,showPopup:!1,popupFormat:function(n){return""+n.result.label},resultFormat:function(n){return""+n.result.label},marker:{icon:K&&d.Icon?new d.Icon.Default:void 0,draggable:!1},maxMarkers:1,maxSuggestions:5,retainZoomLevel:!1,animateZoom:!0,searchLabel:"Enter address",clearSearchLabel:"Clear search",notFoundMessage:"",messageHideDelay:3e3,zoomLevel:18,classNames:{container:"leaflet-bar leaflet-control leaflet-control-geosearch",button:"leaflet-bar-part leaflet-bar-part-single",resetButton:"reset",msgbox:"leaflet-bar message",form:"",input:"",resultlist:"",item:"",notfound:"leaflet-bar-notfound"},autoComplete:!0,autoCompleteDelay:250,autoClose:!1,keepResult:!1,updateMap:!0,resetButton:"×"},J="Leaflet must be loaded before instantiating the GeoSearch control",re={options:g({},D),classNames:g({},D.classNames),initialize:function(n){var r,o,t,e,s=this;if(!K)throw new Error(J);if(!n.provider)throw new Error("Provider is missing from options");this.options=g({},D,n),this.classNames=g({},this.classNames,n.classNames),this.markers=new d.FeatureGroup,this.classNames.container+=" leaflet-geosearch-"+this.options.style,this.searchElement=new ee({searchLabel:this.options.searchLabel,classNames:{container:this.classNames.container,form:this.classNames.form,input:this.classNames.input},handleSubmit:function(i){return s.onSubmit(i)}}),this.button=m("a",this.classNames.button,this.searchElement.container,{title:this.options.searchLabel,href:"#",onClick:function(i){return s.onClick(i)}}),d.DomEvent.disableClickPropagation(this.button),this.resetButton=m("button",this.classNames.resetButton,this.searchElement.form,{text:this.options.resetButton,"aria-label":this.options.clearSearchLabel,onClick:function(){s.searchElement.input.value===""?s.close():s.clearResults(null,!0)}}),d.DomEvent.disableClickPropagation(this.resetButton),this.options.autoComplete&&(this.resultList=new te({handleClick:function(i){var a=i.result;s.searchElement.input.value=a.label,s.onSubmit({query:a.label,data:a})},classNames:{resultlist:this.classNames.resultlist,item:this.classNames.item,notfound:this.classNames.notfound},notFoundMessage:this.options.notFoundMessage}),this.searchElement.form.appendChild(this.resultList.container),this.searchElement.input.addEventListener("keyup",(r=function(i){return s.autoSearch(i)},(o=this.options.autoCompleteDelay)===void 0&&(o=250),t===void 0&&(t=!1),function(){var i=[].slice.call(arguments);e&&clearTimeout(e),e=setTimeout(function(){e=null,t||r.apply(void 0,i)},o),t&&!e&&r.apply(void 0,i)}),!0),this.searchElement.input.addEventListener("keydown",function(i){return s.selectResult(i)},!0),this.searchElement.input.addEventListener("keydown",function(i){return s.clearResults(i,!0)},!0)),this.searchElement.form.addEventListener("click",function(i){i.preventDefault()},!1)},onAdd:function(n){var r=this.options,o=r.showMarker,t=r.style;if(this.map=n,o&&this.markers.addTo(n),t==="bar"){var e=n.getContainer().querySelector(".leaflet-control-container");this.container=m("div","leaflet-control-geosearch leaflet-geosearch-bar"),this.container.appendChild(this.searchElement.form),e.appendChild(this.container)}return d.DomEvent.disableClickPropagation(this.searchElement.form),this.searchElement.container},onRemove:function(){var n;return(n=this.container)==null||n.remove(),this},open:function(){var n=this.searchElement,r=n.input;x(n.container,"active"),r.focus()},close:function(){f(this.searchElement.container,"active"),this.clearResults()},onClick:function(n){n.preventDefault(),n.stopPropagation(),this.searchElement.container.classList.contains("active")?this.close():this.open()},selectResult:function(n){if([_,T,V].indexOf(n.keyCode)!==-1)if(n.preventDefault(),n.keyCode!==_){var r=this.resultList.count()-1;if(!(r<0)){var o=this.resultList.selected,t=n.keyCode===T?o+1:o-1,e=this.resultList.select(t<0?r:t>r?0:t);this.searchElement.input.value=e.label}}else{var s=this.resultList.select(this.resultList.selected);this.onSubmit({query:this.searchElement.input.value,data:s})}},clearResults:function(n,r){if(r===void 0&&(r=!1),!n||n.keyCode===27){var o=this.options,t=o.autoComplete;!r&&o.keepResult||(this.searchElement.input.value="",this.markers.clearLayers()),t&&this.resultList.clear()}},autoSearch:function(n){try{var r=this;if(Y.indexOf(n.keyCode)>-1)return Promise.resolve();var o=n.target.value,t=r.options.provider,e=function(){if(o.length)return Promise.resolve(t.search({query:o})).then(function(s){s=s.slice(0,r.options.maxSuggestions),r.resultList.render(s,r.options.resultFormat)});r.resultList.clear()}();return Promise.resolve(e&&e.then?e.then(function(){}):void 0)}catch(s){return Promise.reject(s)}},onSubmit:function(n){try{var r=this;return r.resultList.clear(),Promise.resolve(r.options.provider.search(n)).then(function(o){o&&o.length>0&&r.showResult(o[0],n)})}catch(o){return Promise.reject(o)}},showResult:function(n,r){var o=this.options,t=o.autoClose,e=o.updateMap,s=this.markers.getLayers();s.length>=this.options.maxMarkers&&this.markers.removeLayer(s[0]);var i=this.addMarker(n,r);e&&this.centerMap(n),this.map.fireEvent("geosearch/showlocation",{location:n,marker:i}),t&&this.closeResults()},closeResults:function(){var n=this.searchElement.container;n.classList.contains("active")&&f(n,"active"),this.clearResults()},addMarker:function(n,r){var o=this,t=this.options,e=t.marker,s=t.showPopup,i=t.popupFormat,a=new d.Marker([n.y,n.x],e),l=n.label;return typeof i=="function"&&(l=i({query:r,result:n})),a.bindPopup(l),this.markers.addLayer(a),s&&a.openPopup(),e.draggable&&a.on("dragend",function(u){o.map.fireEvent("geosearch/marker/dragend",{location:a.getLatLng(),event:u})}),a},centerMap:function(n){var r=this.options,o=r.retainZoomLevel,t=r.animateZoom,e=n.bounds?new d.LatLngBounds(n.bounds):new d.LatLng(n.y,n.x).toBounds(10),s=e.isValid()?e:this.markers.getBounds();!o&&e.isValid()&&!n.bounds||o||!e.isValid()?this.map.setView(s.getCenter(),this.getZoom(),{animate:t}):this.map.fitBounds(s,{animate:t})},getZoom:function(){var n=this.options,r=n.zoomLevel;return n.retainZoomLevel?this.map.getZoom():r}};function ue(){if(!K)throw new Error(J);var n=d.Control.extend(re);return G(n,[].slice.call(arguments))}(function(n){n[n.SEARCH=0]="SEARCH",n[n.REVERSE=1]="REVERSE"})(y||(y={}));var p=function(){function n(o){o===void 0&&(o={}),this.options=void 0,this.options=o}var r=n.prototype;return r.getParamString=function(o){o===void 0&&(o={});var t=g({},this.options.params,o);return Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&")},r.getUrl=function(o,t){return o+"?"+this.getParamString(t)},r.search=function(o){try{var t=this,e=t.endpoint({query:o.query,type:y.SEARCH});return Promise.resolve(fetch(e)).then(function(s){return Promise.resolve(s.json()).then(function(i){return t.parse({data:i})})})}catch(s){return Promise.reject(s)}},n}(),he=function(n){function r(){for(var t,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return(t=n.call.apply(n,[this].concat(s))||this).searchUrl="https://restapi.amap.com/v3/geocode/geo",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=typeof e=="string"?{address:e}:e;return s.output="JSON",this.getUrl(this.searchUrl,s)},o.parse=function(t){var e;return((e=t.data.geocodes)!=null?e:[]).map(function(s){return{x:Number(s.location.substring(0,s.location.indexOf(","))),y:Number(s.location.substring(s.location.indexOf(",")+1)),label:s.formatted_address,bounds:null,raw:s}})},r}(p),pe=function(n){function r(){for(var t,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return(t=n.call.apply(n,[this].concat(s))||this).searchUrl="https://dev.virtualearth.net/REST/v1/Locations",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=typeof e=="string"?{q:e}:e;return s.jsonp=t.jsonp,this.getUrl(this.searchUrl,s)},o.parse=function(t){return t.data.resourceSets.length===0?[]:t.data.resourceSets[0].resources.map(function(e){return{x:e.point.coordinates[1],y:e.point.coordinates[0],label:e.address.formattedAddress,bounds:[[e.bbox[0],e.bbox[1]],[e.bbox[2],e.bbox[3]]],raw:e}})},o.search=function(t){var e,s,i,a=t.query;try{var l=this,u="BING_JSONP_CB_"+Date.now();return Promise.resolve((e=l.endpoint({query:a,jsonp:u}),s=u,i=m("script",null,document.body),i.setAttribute("type","text/javascript"),new Promise(function(h){window[s]=function(b){i.remove(),delete window[s],h(b)},i.setAttribute("src",e)}))).then(function(h){return l.parse({data:h})})}catch(h){return Promise.reject(h)}},r}(p),de=function(n){function r(t){var e;t===void 0&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.reverseUrl=void 0;var s="https://civildefense.fit.vutbr.cz";return e.searchUrl=t.searchUrl||s+"/search",e.reverseUrl=t.reverseUrl||s+"/reverse",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=t.type,i=typeof e=="string"?{q:e}:e;return i.format="json",this.getUrl(s===y.REVERSE?this.reverseUrl:this.searchUrl,i)},o.parse=function(t){return(Array.isArray(t.data)?t.data:[t.data]).map(function(e){return{x:Number(e.lon),y:Number(e.lat),label:e.display_name,bounds:[[parseFloat(e.boundingbox[0]),parseFloat(e.boundingbox[2])],[parseFloat(e.boundingbox[1]),parseFloat(e.boundingbox[3])]],raw:e}})},r}(p),fe=function(n){function r(){for(var t,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return(t=n.call.apply(n,[this].concat(s))||this).searchUrl="https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=typeof e=="string"?{text:e}:e;return s.f="json",this.getUrl(this.searchUrl,s)},o.parse=function(t){return t.data.locations.map(function(e){return{x:e.feature.geometry.x,y:e.feature.geometry.y,label:e.name,bounds:[[e.extent.ymin,e.extent.xmin],[e.extent.ymax,e.extent.xmax]],raw:e}})},r}(p),me=function(n){function r(t){var e;t===void 0&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.reverseUrl=void 0;var s="https://api-adresse.data.gouv.fr";return e.searchUrl=t.searchUrl||s+"/search",e.reverseUrl=t.reverseUrl||s+"/reverse",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query;return this.getUrl(t.type===y.REVERSE?this.reverseUrl:this.searchUrl,typeof e=="string"?{q:e}:e)},o.parse=function(t){return t.data.features.map(function(e){return{x:e.geometry.coordinates[0],y:e.geometry.coordinates[1],label:e.properties.label,bounds:null,raw:e}})},r}(p),ve=function(n){function r(t){var e;t===void 0&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.reverseUrl=void 0;var s="https://api.geoapify.com/v1/geocode";return e.searchUrl=t.searchUrl||s+"/search",e.reverseUrl=t.reverseUrl||s+"/reverse",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=t.type,i=typeof e=="string"?{text:e}:e;return i.format="json",this.getUrl(s===y.REVERSE?this.reverseUrl:this.searchUrl,i)},o.parse=function(t){return(Array.isArray(t.data.results)?t.data.results:[t.data.results]).map(function(e){return{x:Number(e.lon),y:Number(e.lat),label:e.formatted,bounds:[[parseFloat(e.bbox.lat1),parseFloat(e.bbox.lon1)],[parseFloat(e.bbox.lat2),parseFloat(e.bbox.lon2)]],raw:e}})},r}(p),ne=function(n){function r(t){var e;return t===void 0&&(t={}),(e=n.call(this,t)||this).host=void 0,e.host=t.host||"http://localhost:4000",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query;return t.type===y.REVERSE?this.getUrl(this.host+"/v1/reverse",typeof e=="string"?{}:e):this.getUrl(this.host+"/v1/autocomplete",typeof e=="string"?{text:e}:e)},o.parse=function(t){return t.data.features.map(function(e){var s={x:e.geometry.coordinates[0],y:e.geometry.coordinates[1],label:e.properties.label,bounds:null,raw:e};return Array.isArray(e.bbox)&&e.bbox.length===4&&(s.bounds=[[e.bbox[1],e.bbox[0]],[e.bbox[3],e.bbox[2]]]),s})},r}(p),ge=function(n){function r(o){return o===void 0&&(o={}),o.host="https://api.geocode.earth",n.call(this,o)||this}return c(r,n),r}(ne);function oe(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var k,se=oe(function n(r,o){if(r===o)return!0;if(r&&o&&typeof r=="object"&&typeof o=="object"){if(r.constructor!==o.constructor)return!1;var t,e,s;if(Array.isArray(r)){if((t=r.length)!=o.length)return!1;for(e=t;e--!=0;)if(!n(r[e],o[e]))return!1;return!0}if(r.constructor===RegExp)return r.source===o.source&&r.flags===o.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===o.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===o.toString();if((t=(s=Object.keys(r)).length)!==Object.keys(o).length)return!1;for(e=t;e--!=0;)if(!Object.prototype.hasOwnProperty.call(o,s[e]))return!1;for(e=t;e--!=0;){var i=s[e];if(!n(r[i],o[i]))return!1}return!0}return r!=r&&o!=o});(function(n){n[n.INITIALIZED=0]="INITIALIZED",n[n.LOADING=1]="LOADING",n[n.SUCCESS=2]="SUCCESS",n[n.FAILURE=3]="FAILURE"})(k||(k={}));class w{constructor({apiKey:r,authReferrerPolicy:o,channel:t,client:e,id:s="__googleMapsScriptId",language:i,libraries:a=[],mapIds:l,nonce:u,region:h,retries:b=3,url:R="https://maps.googleapis.com/maps/api/js",version:U}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=r,this.authReferrerPolicy=o,this.channel=t,this.client=e,this.id=s||"__googleMapsScriptId",this.language=i,this.libraries=a,this.mapIds=l,this.nonce=u,this.region=h,this.retries=b,this.url=R,this.version=U,w.instance){if(!se(this.options,w.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(w.instance.options)}`);return w.instance}w.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?k.FAILURE:this.done?k.SUCCESS:this.loading?k.LOADING:k.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let r=this.url;return r+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(r+=`&key=${this.apiKey}`),this.channel&&(r+=`&channel=${this.channel}`),this.client&&(r+=`&client=${this.client}`),this.libraries.length>0&&(r+=`&libraries=${this.libraries.join(",")}`),this.language&&(r+=`&language=${this.language}`),this.region&&(r+=`®ion=${this.region}`),this.version&&(r+=`&v=${this.version}`),this.mapIds&&(r+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(r+=`&auth_referrer_policy=${this.authReferrerPolicy}`),r}deleteScript(){const r=document.getElementById(this.id);r&&r.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((r,o)=>{this.loadCallback(t=>{t?o(t.error):r(window.google)})})}importLibrary(r){return this.execute(),google.maps.importLibrary(r)}loadCallback(r){this.callbacks.push(r),this.execute()}setScript(){var r,o;if(document.getElementById(this.id))return void this.callback();const t={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(t).forEach(s=>!t[s]&&delete t[s]),!((o=(r=window==null?void 0:window.google)===null||r===void 0?void 0:r.maps)===null||o===void 0)&&o.importLibrary||(s=>{let i,a,l,u="The Google Maps JavaScript API",h="google",b="importLibrary",R="__ib__",U=document,S=window;S=S[h]||(S[h]={});const A=S.maps||(S.maps={}),Z=new Set,I=new URLSearchParams,H=()=>i||(i=new Promise((j,q)=>{return $=this,P=function*(){var L;for(l in yield a=U.createElement("script"),a.id=this.id,I.set("libraries",[...Z]+""),s)I.set(l.replace(/[A-Z]/g,F=>"_"+F[0].toLowerCase()),s[l]);I.set("callback",h+".maps."+R),a.src=this.url+"?"+I,A[R]=j,a.onerror=()=>i=q(Error(u+" could not load.")),a.nonce=this.nonce||((L=U.querySelector("script[nonce]"))===null||L===void 0?void 0:L.nonce)||"",U.head.append(a)},new((N=void 0)||(N=Promise))(function(L,F){function z(E){try{B(P.next(E))}catch(v){F(v)}}function Q(E){try{B(P.throw(E))}catch(v){F(v)}}function B(E){var v;E.done?L(E.value):(v=E.value,v instanceof N?v:new N(function(W){W(v)})).then(z,Q)}B((P=P.apply($,[])).next())});var $,N,P}));A[b]?console.warn(u+" only loads once. Ignoring:",s):A[b]=(j,...q)=>Z.add(j)&&H().then(()=>A[b](j,...q))})(t);const e=this.libraries.map(s=>this.importLibrary(s));e.length||e.push(this.importLibrary("core")),Promise.all(e).then(()=>this.callback(),s=>{const i=new ErrorEvent("error",{error:s});this.loadErrorCallback(i)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(r){if(this.errors.push(r),this.errors.length<=this.retries){const o=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${o} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},o)}else this.onerrorEvent=r,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(r=>{r(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setScript())}}}var ye=function(n){function r(t){var e;return(e=n.call(this,t)||this).loader=null,e.geocoder=null,typeof window<"u"&&(e.loader=new w(t).load().then(function(s){var i=new s.maps.Geocoder;return e.geocoder=i,i})),e}c(r,n);var o=r.prototype;return o.endpoint=function(t){throw new Error("Method not implemented.")},o.parse=function(t){return t.data.results.map(function(e){var s=e.geometry.location.toJSON(),i=s.lat,a=s.lng,l=e.geometry.viewport.toJSON();return{x:a,y:i,label:e.formatted_address,bounds:[[l.south,l.west],[l.north,l.east]],raw:e}})},o.search=function(t){try{var e=function(a){if(!a)throw new Error("GoogleMaps GeoCoder is not loaded. Are you trying to run this server side?");return Promise.resolve(a.geocode({address:t.query},function(l){return{results:l}}).catch(function(l){return l.code!=="ZERO_RESULTS"&&console.error(l.code+": "+l.message),{results:[]}})).then(function(l){return s.parse({data:l})})},s=this,i=s.geocoder;return Promise.resolve(i?e(i):Promise.resolve(s.loader).then(e))}catch(a){return Promise.reject(a)}},r}(p),be=function(n){function r(){for(var t,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return(t=n.call.apply(n,[this].concat(s))||this).searchUrl="https://maps.googleapis.com/maps/api/geocode/json",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query;return this.getUrl(this.searchUrl,typeof e=="string"?{address:e}:e)},o.parse=function(t){return t.data.results.map(function(e){return{x:e.geometry.location.lng,y:e.geometry.location.lat,label:e.formatted_address,bounds:[[e.geometry.viewport.southwest.lat,e.geometry.viewport.southwest.lng],[e.geometry.viewport.northeast.lat,e.geometry.viewport.northeast.lng]],raw:e}})},r}(p),Ee=function(n){function r(){for(var t,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return(t=n.call.apply(n,[this].concat(s))||this).searchUrl="https://geocode.search.hereapi.com/v1/geocode",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query;return this.getUrl(this.searchUrl,typeof e=="string"?{q:e}:e)},o.parse=function(t){return t.data.items.filter(function(e){return e.position!==void 0}).map(function(e){return{x:e.position.lng,y:e.position.lat,label:e.address.label,bounds:null,raw:e}})},r}(p),ie=function(n){function r(t){var e;t===void 0&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.reverseUrl=void 0;var s="https://nominatim.openstreetmap.org";return e.searchUrl=t.searchUrl||s+"/search",e.reverseUrl=t.reverseUrl||s+"/reverse",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=t.type,i=typeof e=="string"?{q:e}:e;return i.format="json",this.getUrl(s===y.REVERSE?this.reverseUrl:this.searchUrl,i)},o.parse=function(t){return(Array.isArray(t.data)?t.data:[t.data]).map(function(e){return{x:Number(e.lon),y:Number(e.lat),label:e.display_name,bounds:[[parseFloat(e.boundingbox[0]),parseFloat(e.boundingbox[2])],[parseFloat(e.boundingbox[1]),parseFloat(e.boundingbox[3])]],raw:e}})},r}(p),we=function(n){function r(o){return n.call(this,g({},o,{searchUrl:"https://locationiq.org/v1/search.php",reverseUrl:"https://locationiq.org/v1/reverse.php"}))||this}return c(r,n),r.prototype.parse=function(o){return o.data.error?[]:n.prototype.parse.call(this,o)},r}(ie),xe=function(n){function r(t){var e;return t===void 0&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.searchUrl=t.searchUrl||"https://a.tiles.mapbox.com/v4/geocode/mapbox.places/",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){return this.getUrl(""+this.searchUrl+t.query+".json")},o.parse=function(t){return(Array.isArray(t.data.features)?t.data.features:[]).map(function(e){var s=null;return e.bbox&&(s=[[parseFloat(e.bbox[1]),parseFloat(e.bbox[0])],[parseFloat(e.bbox[3]),parseFloat(e.bbox[2])]]),{x:Number(e.center[0]),y:Number(e.center[1]),label:e.place_name?e.place_name:e.text,bounds:s,raw:e}})},r}(p),ke=function(n){function r(){for(var t,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return(t=n.call.apply(n,[this].concat(s))||this).searchUrl="https://api.opencagedata.com/geocode/v1/json",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=typeof e=="string"?{q:e}:e;return s.format="json",this.getUrl(this.searchUrl,s)},o.parse=function(t){return t.data.results.map(function(e){var s=null;return e.bounds&&(s=[[e.bounds.southwest.lat,e.bounds.southwest.lng],[e.bounds.northeast.lat,e.bounds.northeast.lng]]),{x:e.geometry.lng,y:e.geometry.lat,label:e.formatted,bounds:s,raw:e}})},o.search=function(t){try{return Promise.resolve(t.query.length<2?[]:n.prototype.search.call(this,t))}catch(e){return Promise.reject(e)}},r}(p);export{he as AMapProvider,pe as BingProvider,de as CivilDefenseMapProvider,fe as EsriProvider,me as GeoApiFrProvider,ue as GeoSearchControl,ve as GeoapifyProvider,ge as GeocodeEarthProvider,ye as GoogleProvider,Ee as HereProvider,p as JsonProvider,be as LegacyGoogleProvider,we as LocationIQProvider,xe as MapBoxProvider,ke as OpenCageProvider,ie as OpenStreetMapProvider,ne as PeliasProvider,ue as SearchControl,ee as SearchElement};
|
|
1
|
+
import{t as K,i as d}from"./iobroker_admin__loadShare__leaflet__loadShare__-h9SMNPLU.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./iobroker_admin__mf_v__runtimeInit__mf_v__-CTkuGOOk.js";function g(){return g=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(n[t]=o[t])}return n},g.apply(this,arguments)}function c(n,r){n.prototype=Object.create(r.prototype),n.prototype.constructor=n,M(n,r)}function M(n,r){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,t){return o.__proto__=t,o},M(n,r)}function X(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function G(n,r,o){return G=X()?Reflect.construct.bind():function(t,e,s){var i=[null];i.push.apply(i,e);var a=new(Function.bind.apply(t,i));return s&&M(a,s.prototype),a},G.apply(null,arguments)}function m(n,r,o,t){r===void 0&&(r=""),t===void 0&&(t={});var e=document.createElement(n);return r&&(e.className=r),Object.keys(t).forEach(function(s){if(typeof t[s]=="function"){var i=s.indexOf("on")===0?s.substr(2).toLowerCase():s;e.addEventListener(i,t[s])}else s==="html"?e.innerHTML=t[s]:s==="text"?e.innerText=t[s]:e.setAttribute(s,t[s])}),o&&o.appendChild(e),e}function C(n){n.preventDefault(),n.stopPropagation()}var O=function(){return[].slice.call(arguments).filter(Boolean).join(" ").trim()};function x(n,r){n&&n.classList&&(Array.isArray(r)?r:[r]).forEach(function(o){n.classList.contains(o)||n.classList.add(o)})}function f(n,r){n&&n.classList&&(Array.isArray(r)?r:[r]).forEach(function(o){n.classList.contains(o)&&n.classList.remove(o)})}var y,_=13,T=40,V=38,Y=[_,27,T,V,37,39],ee=function(){function n(o){var t=this,e=o.handleSubmit,s=o.searchLabel,i=o.classNames,a=i===void 0?{}:i;this.container=void 0,this.form=void 0,this.input=void 0,this.handleSubmit=void 0,this.hasError=!1,this.container=m("div",O("geosearch",a.container)),this.form=m("form",["",a.form].join(" "),this.container,{autocomplete:"none",onClick:C,onDblClick:C,touchStart:C,touchEnd:C}),this.input=m("input",["glass",a.input].join(" "),this.form,{type:"text",placeholder:s||"search",onInput:this.onInput,onKeyUp:function(l){return t.onKeyUp(l)},onKeyPress:function(l){return t.onKeyPress(l)},onFocus:this.onFocus,onBlur:this.onBlur,onClick:function(){t.input.focus(),t.input.dispatchEvent(new Event("focus"))}}),this.handleSubmit=e}var r=n.prototype;return r.onFocus=function(){x(this.form,"active")},r.onBlur=function(){f(this.form,"active")},r.onSubmit=function(o){try{var t=this;return C(o),f(e=t.container,"error"),x(e,"pending"),Promise.resolve(t.handleSubmit({query:t.input.value})).then(function(){f(t.container,"pending")})}catch(s){return Promise.reject(s)}var e},r.onInput=function(){this.hasError&&(f(this.container,"error"),this.hasError=!1)},r.onKeyUp=function(o){o.keyCode===27&&(f(this.container,["pending","active"]),this.input.value="",document.body.focus(),document.body.blur())},r.onKeyPress=function(o){o.keyCode===_&&this.onSubmit(o)},r.setQuery=function(o){this.input.value=o},n}(),te=function(){function n(o){var t=this,e=o.handleClick,s=o.classNames,i=s===void 0?{}:s,a=o.notFoundMessage;this.handleClick=void 0,this.selected=-1,this.results=[],this.container=void 0,this.resultItem=void 0,this.notFoundMessage=void 0,this.onClick=function(l){if(typeof t.handleClick=="function"){var u=l.target;if(u&&t.container.contains(u)&&u.hasAttribute("data-key")){var h=Number(u.getAttribute("data-key"));t.handleClick({result:t.results[h]})}}},this.handleClick=e,this.notFoundMessage=a?m("div",O(i.notfound),void 0,{html:a}):void 0,this.container=m("div",O("results",i.resultlist)),this.container.addEventListener("click",this.onClick,!0),this.resultItem=m("div",O(i.item))}var r=n.prototype;return r.render=function(o,t){var e=this;o===void 0&&(o=[]),this.clear(),o.forEach(function(s,i){var a=e.resultItem.cloneNode(!0);a.setAttribute("data-key",""+i),a.innerHTML=t({result:s}),e.container.appendChild(a)}),o.length>0?(x(this.container.parentElement,"open"),x(this.container,"active")):this.notFoundMessage&&(this.container.appendChild(this.notFoundMessage),x(this.container.parentElement,"open")),this.results=o},r.select=function(o){return Array.from(this.container.children).forEach(function(t,e){return e===o?x(t,"active"):f(t,"active")}),this.selected=o,this.results[o]},r.count=function(){return this.results?this.results.length:0},r.clear=function(){for(this.selected=-1;this.container.lastChild;)this.container.removeChild(this.container.lastChild);f(this.container.parentElement,"open"),f(this.container,"active")},n}(),D={position:"topleft",style:"button",showMarker:!0,showPopup:!1,popupFormat:function(n){return""+n.result.label},resultFormat:function(n){return""+n.result.label},marker:{icon:K&&d.Icon?new d.Icon.Default:void 0,draggable:!1},maxMarkers:1,maxSuggestions:5,retainZoomLevel:!1,animateZoom:!0,searchLabel:"Enter address",clearSearchLabel:"Clear search",notFoundMessage:"",messageHideDelay:3e3,zoomLevel:18,classNames:{container:"leaflet-bar leaflet-control leaflet-control-geosearch",button:"leaflet-bar-part leaflet-bar-part-single",resetButton:"reset",msgbox:"leaflet-bar message",form:"",input:"",resultlist:"",item:"",notfound:"leaflet-bar-notfound"},autoComplete:!0,autoCompleteDelay:250,autoClose:!1,keepResult:!1,updateMap:!0,resetButton:"×"},J="Leaflet must be loaded before instantiating the GeoSearch control",re={options:g({},D),classNames:g({},D.classNames),initialize:function(n){var r,o,t,e,s=this;if(!K)throw new Error(J);if(!n.provider)throw new Error("Provider is missing from options");this.options=g({},D,n),this.classNames=g({},this.classNames,n.classNames),this.markers=new d.FeatureGroup,this.classNames.container+=" leaflet-geosearch-"+this.options.style,this.searchElement=new ee({searchLabel:this.options.searchLabel,classNames:{container:this.classNames.container,form:this.classNames.form,input:this.classNames.input},handleSubmit:function(i){return s.onSubmit(i)}}),this.button=m("a",this.classNames.button,this.searchElement.container,{title:this.options.searchLabel,href:"#",onClick:function(i){return s.onClick(i)}}),d.DomEvent.disableClickPropagation(this.button),this.resetButton=m("button",this.classNames.resetButton,this.searchElement.form,{text:this.options.resetButton,"aria-label":this.options.clearSearchLabel,onClick:function(){s.searchElement.input.value===""?s.close():s.clearResults(null,!0)}}),d.DomEvent.disableClickPropagation(this.resetButton),this.options.autoComplete&&(this.resultList=new te({handleClick:function(i){var a=i.result;s.searchElement.input.value=a.label,s.onSubmit({query:a.label,data:a})},classNames:{resultlist:this.classNames.resultlist,item:this.classNames.item,notfound:this.classNames.notfound},notFoundMessage:this.options.notFoundMessage}),this.searchElement.form.appendChild(this.resultList.container),this.searchElement.input.addEventListener("keyup",(r=function(i){return s.autoSearch(i)},(o=this.options.autoCompleteDelay)===void 0&&(o=250),t===void 0&&(t=!1),function(){var i=[].slice.call(arguments);e&&clearTimeout(e),e=setTimeout(function(){e=null,t||r.apply(void 0,i)},o),t&&!e&&r.apply(void 0,i)}),!0),this.searchElement.input.addEventListener("keydown",function(i){return s.selectResult(i)},!0),this.searchElement.input.addEventListener("keydown",function(i){return s.clearResults(i,!0)},!0)),this.searchElement.form.addEventListener("click",function(i){i.preventDefault()},!1)},onAdd:function(n){var r=this.options,o=r.showMarker,t=r.style;if(this.map=n,o&&this.markers.addTo(n),t==="bar"){var e=n.getContainer().querySelector(".leaflet-control-container");this.container=m("div","leaflet-control-geosearch leaflet-geosearch-bar"),this.container.appendChild(this.searchElement.form),e.appendChild(this.container)}return d.DomEvent.disableClickPropagation(this.searchElement.form),this.searchElement.container},onRemove:function(){var n;return(n=this.container)==null||n.remove(),this},open:function(){var n=this.searchElement,r=n.input;x(n.container,"active"),r.focus()},close:function(){f(this.searchElement.container,"active"),this.clearResults()},onClick:function(n){n.preventDefault(),n.stopPropagation(),this.searchElement.container.classList.contains("active")?this.close():this.open()},selectResult:function(n){if([_,T,V].indexOf(n.keyCode)!==-1)if(n.preventDefault(),n.keyCode!==_){var r=this.resultList.count()-1;if(!(r<0)){var o=this.resultList.selected,t=n.keyCode===T?o+1:o-1,e=this.resultList.select(t<0?r:t>r?0:t);this.searchElement.input.value=e.label}}else{var s=this.resultList.select(this.resultList.selected);this.onSubmit({query:this.searchElement.input.value,data:s})}},clearResults:function(n,r){if(r===void 0&&(r=!1),!n||n.keyCode===27){var o=this.options,t=o.autoComplete;!r&&o.keepResult||(this.searchElement.input.value="",this.markers.clearLayers()),t&&this.resultList.clear()}},autoSearch:function(n){try{var r=this;if(Y.indexOf(n.keyCode)>-1)return Promise.resolve();var o=n.target.value,t=r.options.provider,e=function(){if(o.length)return Promise.resolve(t.search({query:o})).then(function(s){s=s.slice(0,r.options.maxSuggestions),r.resultList.render(s,r.options.resultFormat)});r.resultList.clear()}();return Promise.resolve(e&&e.then?e.then(function(){}):void 0)}catch(s){return Promise.reject(s)}},onSubmit:function(n){try{var r=this;return r.resultList.clear(),Promise.resolve(r.options.provider.search(n)).then(function(o){o&&o.length>0&&r.showResult(o[0],n)})}catch(o){return Promise.reject(o)}},showResult:function(n,r){var o=this.options,t=o.autoClose,e=o.updateMap,s=this.markers.getLayers();s.length>=this.options.maxMarkers&&this.markers.removeLayer(s[0]);var i=this.addMarker(n,r);e&&this.centerMap(n),this.map.fireEvent("geosearch/showlocation",{location:n,marker:i}),t&&this.closeResults()},closeResults:function(){var n=this.searchElement.container;n.classList.contains("active")&&f(n,"active"),this.clearResults()},addMarker:function(n,r){var o=this,t=this.options,e=t.marker,s=t.showPopup,i=t.popupFormat,a=new d.Marker([n.y,n.x],e),l=n.label;return typeof i=="function"&&(l=i({query:r,result:n})),a.bindPopup(l),this.markers.addLayer(a),s&&a.openPopup(),e.draggable&&a.on("dragend",function(u){o.map.fireEvent("geosearch/marker/dragend",{location:a.getLatLng(),event:u})}),a},centerMap:function(n){var r=this.options,o=r.retainZoomLevel,t=r.animateZoom,e=n.bounds?new d.LatLngBounds(n.bounds):new d.LatLng(n.y,n.x).toBounds(10),s=e.isValid()?e:this.markers.getBounds();!o&&e.isValid()&&!n.bounds||o||!e.isValid()?this.map.setView(s.getCenter(),this.getZoom(),{animate:t}):this.map.fitBounds(s,{animate:t})},getZoom:function(){var n=this.options,r=n.zoomLevel;return n.retainZoomLevel?this.map.getZoom():r}};function ue(){if(!K)throw new Error(J);var n=d.Control.extend(re);return G(n,[].slice.call(arguments))}(function(n){n[n.SEARCH=0]="SEARCH",n[n.REVERSE=1]="REVERSE"})(y||(y={}));var p=function(){function n(o){o===void 0&&(o={}),this.options=void 0,this.options=o}var r=n.prototype;return r.getParamString=function(o){o===void 0&&(o={});var t=g({},this.options.params,o);return Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&")},r.getUrl=function(o,t){return o+"?"+this.getParamString(t)},r.search=function(o){try{var t=this,e=t.endpoint({query:o.query,type:y.SEARCH});return Promise.resolve(fetch(e)).then(function(s){return Promise.resolve(s.json()).then(function(i){return t.parse({data:i})})})}catch(s){return Promise.reject(s)}},n}(),he=function(n){function r(){for(var t,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return(t=n.call.apply(n,[this].concat(s))||this).searchUrl="https://restapi.amap.com/v3/geocode/geo",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=typeof e=="string"?{address:e}:e;return s.output="JSON",this.getUrl(this.searchUrl,s)},o.parse=function(t){var e;return((e=t.data.geocodes)!=null?e:[]).map(function(s){return{x:Number(s.location.substring(0,s.location.indexOf(","))),y:Number(s.location.substring(s.location.indexOf(",")+1)),label:s.formatted_address,bounds:null,raw:s}})},r}(p),pe=function(n){function r(){for(var t,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return(t=n.call.apply(n,[this].concat(s))||this).searchUrl="https://dev.virtualearth.net/REST/v1/Locations",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=typeof e=="string"?{q:e}:e;return s.jsonp=t.jsonp,this.getUrl(this.searchUrl,s)},o.parse=function(t){return t.data.resourceSets.length===0?[]:t.data.resourceSets[0].resources.map(function(e){return{x:e.point.coordinates[1],y:e.point.coordinates[0],label:e.address.formattedAddress,bounds:[[e.bbox[0],e.bbox[1]],[e.bbox[2],e.bbox[3]]],raw:e}})},o.search=function(t){var e,s,i,a=t.query;try{var l=this,u="BING_JSONP_CB_"+Date.now();return Promise.resolve((e=l.endpoint({query:a,jsonp:u}),s=u,i=m("script",null,document.body),i.setAttribute("type","text/javascript"),new Promise(function(h){window[s]=function(b){i.remove(),delete window[s],h(b)},i.setAttribute("src",e)}))).then(function(h){return l.parse({data:h})})}catch(h){return Promise.reject(h)}},r}(p),de=function(n){function r(t){var e;t===void 0&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.reverseUrl=void 0;var s="https://civildefense.fit.vutbr.cz";return e.searchUrl=t.searchUrl||s+"/search",e.reverseUrl=t.reverseUrl||s+"/reverse",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=t.type,i=typeof e=="string"?{q:e}:e;return i.format="json",this.getUrl(s===y.REVERSE?this.reverseUrl:this.searchUrl,i)},o.parse=function(t){return(Array.isArray(t.data)?t.data:[t.data]).map(function(e){return{x:Number(e.lon),y:Number(e.lat),label:e.display_name,bounds:[[parseFloat(e.boundingbox[0]),parseFloat(e.boundingbox[2])],[parseFloat(e.boundingbox[1]),parseFloat(e.boundingbox[3])]],raw:e}})},r}(p),fe=function(n){function r(){for(var t,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return(t=n.call.apply(n,[this].concat(s))||this).searchUrl="https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=typeof e=="string"?{text:e}:e;return s.f="json",this.getUrl(this.searchUrl,s)},o.parse=function(t){return t.data.locations.map(function(e){return{x:e.feature.geometry.x,y:e.feature.geometry.y,label:e.name,bounds:[[e.extent.ymin,e.extent.xmin],[e.extent.ymax,e.extent.xmax]],raw:e}})},r}(p),me=function(n){function r(t){var e;t===void 0&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.reverseUrl=void 0;var s="https://api-adresse.data.gouv.fr";return e.searchUrl=t.searchUrl||s+"/search",e.reverseUrl=t.reverseUrl||s+"/reverse",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query;return this.getUrl(t.type===y.REVERSE?this.reverseUrl:this.searchUrl,typeof e=="string"?{q:e}:e)},o.parse=function(t){return t.data.features.map(function(e){return{x:e.geometry.coordinates[0],y:e.geometry.coordinates[1],label:e.properties.label,bounds:null,raw:e}})},r}(p),ve=function(n){function r(t){var e;t===void 0&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.reverseUrl=void 0;var s="https://api.geoapify.com/v1/geocode";return e.searchUrl=t.searchUrl||s+"/search",e.reverseUrl=t.reverseUrl||s+"/reverse",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=t.type,i=typeof e=="string"?{text:e}:e;return i.format="json",this.getUrl(s===y.REVERSE?this.reverseUrl:this.searchUrl,i)},o.parse=function(t){return(Array.isArray(t.data.results)?t.data.results:[t.data.results]).map(function(e){return{x:Number(e.lon),y:Number(e.lat),label:e.formatted,bounds:[[parseFloat(e.bbox.lat1),parseFloat(e.bbox.lon1)],[parseFloat(e.bbox.lat2),parseFloat(e.bbox.lon2)]],raw:e}})},r}(p),ne=function(n){function r(t){var e;return t===void 0&&(t={}),(e=n.call(this,t)||this).host=void 0,e.host=t.host||"http://localhost:4000",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query;return t.type===y.REVERSE?this.getUrl(this.host+"/v1/reverse",typeof e=="string"?{}:e):this.getUrl(this.host+"/v1/autocomplete",typeof e=="string"?{text:e}:e)},o.parse=function(t){return t.data.features.map(function(e){var s={x:e.geometry.coordinates[0],y:e.geometry.coordinates[1],label:e.properties.label,bounds:null,raw:e};return Array.isArray(e.bbox)&&e.bbox.length===4&&(s.bounds=[[e.bbox[1],e.bbox[0]],[e.bbox[3],e.bbox[2]]]),s})},r}(p),ge=function(n){function r(o){return o===void 0&&(o={}),o.host="https://api.geocode.earth",n.call(this,o)||this}return c(r,n),r}(ne);function oe(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var k,se=oe(function n(r,o){if(r===o)return!0;if(r&&o&&typeof r=="object"&&typeof o=="object"){if(r.constructor!==o.constructor)return!1;var t,e,s;if(Array.isArray(r)){if((t=r.length)!=o.length)return!1;for(e=t;e--!=0;)if(!n(r[e],o[e]))return!1;return!0}if(r.constructor===RegExp)return r.source===o.source&&r.flags===o.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===o.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===o.toString();if((t=(s=Object.keys(r)).length)!==Object.keys(o).length)return!1;for(e=t;e--!=0;)if(!Object.prototype.hasOwnProperty.call(o,s[e]))return!1;for(e=t;e--!=0;){var i=s[e];if(!n(r[i],o[i]))return!1}return!0}return r!=r&&o!=o});(function(n){n[n.INITIALIZED=0]="INITIALIZED",n[n.LOADING=1]="LOADING",n[n.SUCCESS=2]="SUCCESS",n[n.FAILURE=3]="FAILURE"})(k||(k={}));class w{constructor({apiKey:r,authReferrerPolicy:o,channel:t,client:e,id:s="__googleMapsScriptId",language:i,libraries:a=[],mapIds:l,nonce:u,region:h,retries:b=3,url:R="https://maps.googleapis.com/maps/api/js",version:U}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=r,this.authReferrerPolicy=o,this.channel=t,this.client=e,this.id=s||"__googleMapsScriptId",this.language=i,this.libraries=a,this.mapIds=l,this.nonce=u,this.region=h,this.retries=b,this.url=R,this.version=U,w.instance){if(!se(this.options,w.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(w.instance.options)}`);return w.instance}w.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?k.FAILURE:this.done?k.SUCCESS:this.loading?k.LOADING:k.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let r=this.url;return r+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(r+=`&key=${this.apiKey}`),this.channel&&(r+=`&channel=${this.channel}`),this.client&&(r+=`&client=${this.client}`),this.libraries.length>0&&(r+=`&libraries=${this.libraries.join(",")}`),this.language&&(r+=`&language=${this.language}`),this.region&&(r+=`®ion=${this.region}`),this.version&&(r+=`&v=${this.version}`),this.mapIds&&(r+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(r+=`&auth_referrer_policy=${this.authReferrerPolicy}`),r}deleteScript(){const r=document.getElementById(this.id);r&&r.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((r,o)=>{this.loadCallback(t=>{t?o(t.error):r(window.google)})})}importLibrary(r){return this.execute(),google.maps.importLibrary(r)}loadCallback(r){this.callbacks.push(r),this.execute()}setScript(){var r,o;if(document.getElementById(this.id))return void this.callback();const t={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(t).forEach(s=>!t[s]&&delete t[s]),!((o=(r=window==null?void 0:window.google)===null||r===void 0?void 0:r.maps)===null||o===void 0)&&o.importLibrary||(s=>{let i,a,l,u="The Google Maps JavaScript API",h="google",b="importLibrary",R="__ib__",U=document,S=window;S=S[h]||(S[h]={});const A=S.maps||(S.maps={}),Z=new Set,I=new URLSearchParams,H=()=>i||(i=new Promise((j,q)=>{return $=this,P=function*(){var L;for(l in yield a=U.createElement("script"),a.id=this.id,I.set("libraries",[...Z]+""),s)I.set(l.replace(/[A-Z]/g,F=>"_"+F[0].toLowerCase()),s[l]);I.set("callback",h+".maps."+R),a.src=this.url+"?"+I,A[R]=j,a.onerror=()=>i=q(Error(u+" could not load.")),a.nonce=this.nonce||((L=U.querySelector("script[nonce]"))===null||L===void 0?void 0:L.nonce)||"",U.head.append(a)},new((N=void 0)||(N=Promise))(function(L,F){function z(E){try{B(P.next(E))}catch(v){F(v)}}function Q(E){try{B(P.throw(E))}catch(v){F(v)}}function B(E){var v;E.done?L(E.value):(v=E.value,v instanceof N?v:new N(function(W){W(v)})).then(z,Q)}B((P=P.apply($,[])).next())});var $,N,P}));A[b]?console.warn(u+" only loads once. Ignoring:",s):A[b]=(j,...q)=>Z.add(j)&&H().then(()=>A[b](j,...q))})(t);const e=this.libraries.map(s=>this.importLibrary(s));e.length||e.push(this.importLibrary("core")),Promise.all(e).then(()=>this.callback(),s=>{const i=new ErrorEvent("error",{error:s});this.loadErrorCallback(i)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(r){if(this.errors.push(r),this.errors.length<=this.retries){const o=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${o} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},o)}else this.onerrorEvent=r,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(r=>{r(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setScript())}}}var ye=function(n){function r(t){var e;return(e=n.call(this,t)||this).loader=null,e.geocoder=null,typeof window<"u"&&(e.loader=new w(t).load().then(function(s){var i=new s.maps.Geocoder;return e.geocoder=i,i})),e}c(r,n);var o=r.prototype;return o.endpoint=function(t){throw new Error("Method not implemented.")},o.parse=function(t){return t.data.results.map(function(e){var s=e.geometry.location.toJSON(),i=s.lat,a=s.lng,l=e.geometry.viewport.toJSON();return{x:a,y:i,label:e.formatted_address,bounds:[[l.south,l.west],[l.north,l.east]],raw:e}})},o.search=function(t){try{var e=function(a){if(!a)throw new Error("GoogleMaps GeoCoder is not loaded. Are you trying to run this server side?");return Promise.resolve(a.geocode({address:t.query},function(l){return{results:l}}).catch(function(l){return l.code!=="ZERO_RESULTS"&&console.error(l.code+": "+l.message),{results:[]}})).then(function(l){return s.parse({data:l})})},s=this,i=s.geocoder;return Promise.resolve(i?e(i):Promise.resolve(s.loader).then(e))}catch(a){return Promise.reject(a)}},r}(p),be=function(n){function r(){for(var t,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return(t=n.call.apply(n,[this].concat(s))||this).searchUrl="https://maps.googleapis.com/maps/api/geocode/json",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query;return this.getUrl(this.searchUrl,typeof e=="string"?{address:e}:e)},o.parse=function(t){return t.data.results.map(function(e){return{x:e.geometry.location.lng,y:e.geometry.location.lat,label:e.formatted_address,bounds:[[e.geometry.viewport.southwest.lat,e.geometry.viewport.southwest.lng],[e.geometry.viewport.northeast.lat,e.geometry.viewport.northeast.lng]],raw:e}})},r}(p),Ee=function(n){function r(){for(var t,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return(t=n.call.apply(n,[this].concat(s))||this).searchUrl="https://geocode.search.hereapi.com/v1/geocode",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query;return this.getUrl(this.searchUrl,typeof e=="string"?{q:e}:e)},o.parse=function(t){return t.data.items.filter(function(e){return e.position!==void 0}).map(function(e){return{x:e.position.lng,y:e.position.lat,label:e.address.label,bounds:null,raw:e}})},r}(p),ie=function(n){function r(t){var e;t===void 0&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.reverseUrl=void 0;var s="https://nominatim.openstreetmap.org";return e.searchUrl=t.searchUrl||s+"/search",e.reverseUrl=t.reverseUrl||s+"/reverse",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=t.type,i=typeof e=="string"?{q:e}:e;return i.format="json",this.getUrl(s===y.REVERSE?this.reverseUrl:this.searchUrl,i)},o.parse=function(t){return(Array.isArray(t.data)?t.data:[t.data]).map(function(e){return{x:Number(e.lon),y:Number(e.lat),label:e.display_name,bounds:[[parseFloat(e.boundingbox[0]),parseFloat(e.boundingbox[2])],[parseFloat(e.boundingbox[1]),parseFloat(e.boundingbox[3])]],raw:e}})},r}(p),we=function(n){function r(o){return n.call(this,g({},o,{searchUrl:"https://locationiq.org/v1/search.php",reverseUrl:"https://locationiq.org/v1/reverse.php"}))||this}return c(r,n),r.prototype.parse=function(o){return o.data.error?[]:n.prototype.parse.call(this,o)},r}(ie),xe=function(n){function r(t){var e;return t===void 0&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.searchUrl=t.searchUrl||"https://a.tiles.mapbox.com/v4/geocode/mapbox.places/",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){return this.getUrl(""+this.searchUrl+t.query+".json")},o.parse=function(t){return(Array.isArray(t.data.features)?t.data.features:[]).map(function(e){var s=null;return e.bbox&&(s=[[parseFloat(e.bbox[1]),parseFloat(e.bbox[0])],[parseFloat(e.bbox[3]),parseFloat(e.bbox[2])]]),{x:Number(e.center[0]),y:Number(e.center[1]),label:e.place_name?e.place_name:e.text,bounds:s,raw:e}})},r}(p),ke=function(n){function r(){for(var t,e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return(t=n.call.apply(n,[this].concat(s))||this).searchUrl="https://api.opencagedata.com/geocode/v1/json",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,s=typeof e=="string"?{q:e}:e;return s.format="json",this.getUrl(this.searchUrl,s)},o.parse=function(t){return t.data.results.map(function(e){var s=null;return e.bounds&&(s=[[e.bounds.southwest.lat,e.bounds.southwest.lng],[e.bounds.northeast.lat,e.bounds.northeast.lng]]),{x:e.geometry.lng,y:e.geometry.lat,label:e.formatted,bounds:s,raw:e}})},o.search=function(t){try{return Promise.resolve(t.query.length<2?[]:n.prototype.search.call(this,t))}catch(e){return Promise.reject(e)}},r}(p);export{he as AMapProvider,pe as BingProvider,de as CivilDefenseMapProvider,fe as EsriProvider,me as GeoApiFrProvider,ue as GeoSearchControl,ve as GeoapifyProvider,ge as GeocodeEarthProvider,ye as GoogleProvider,Ee as HereProvider,p as JsonProvider,be as LegacyGoogleProvider,we as LocationIQProvider,xe as MapBoxProvider,ke as OpenCageProvider,ie as OpenStreetMapProvider,ne as PeliasProvider,ue as SearchControl,ee as SearchElement};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../remoteEntry.js","./iobroker_admin__mf_v__runtimeInit__mf_v__-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../remoteEntry.js","./iobroker_admin__mf_v__runtimeInit__mf_v__-CTkuGOOk.js","./virtualExposes-BIHI7g3E.js","./preload-helper-Dp1pzeXC.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{_ as i}from"./preload-helper-Dp1pzeXC.js";const r=i(()=>import("../remoteEntry.js"),__vite__mapDeps([0,1,2,3]),import.meta.url);Promise.resolve(r).then(e=>Promise.resolve(e.__tla).then(e.init).catch(e.init));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as a}from"./iobroker_admin__loadShare__react__loadShare__-
|
|
1
|
+
import{R as a}from"./iobroker_admin__loadShare__react__loadShare__-Bis6NHgw.js";var p={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},f=a.createContext&&a.createContext(p),O=["attr","size","title"];function g(e,t){if(e==null)return{};var r=y(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function y(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(n){d(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d(e,t,r){return t=j(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){var t=P(e,"string");return typeof t=="symbol"?t:t+""}function P(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b(e){return e&&e.map((t,r)=>a.createElement(t.tag,u({key:r},t.attr),b(t.child)))}function E(e){return t=>a.createElement(h,c({attr:u({},e.attr)},t),b(e.child))}function h(e){var t=r=>{var{attr:n,size:i,title:o}=e,v=g(e,O),s=i||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),a.createElement("svg",c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,v,{className:l,style:u(u({color:e.color||r.color},r.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&a.createElement("title",null,o),e.children)};return f!==void 0?a.createElement(f.Consumer,null,r=>t(r)):t(p)}export{E as G};
|