1"use strict";(globalThis.webpackChunkwips_components_scripts||=[]).push([[30547],{"1832600ae075bd55"(e,t,n){n.d(t,{A:()=>Ae});var r=n("9ca853d5739ecb87"),o=n("1bbb2febec920078"),i=n("a250ce7b4da194fb"),s=n("cf4caea0679dccb3"),a=n("e2122e3a756da83b");const c="http://www.w3.org/2001/XMLSchema-instance";function u(e,t){return v().createElementNS(e,t)}function l(e,t){return d(e,t,[]).join("")}function d(e,t,n){if(e.nodeType==Node.CDATA_SECTION_NODE||e.nodeType==Node.TEXT_NODE)t?n.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):n.push(e.nodeValue);else{let r;for(r=e.firstChild;r;r=r.nextSibling)d(r,t,n)}return n}function p(e){return"documentElement"in e}function m(e){return(new DOMParser).parseFromString(e,"application/xml")}function f(e,t){return function(n,r){const o=e.call(t??this,n,r);void 0!==o&&r[r.length-1].push(o)}}function h(e,t,n){return function(r,o){const i=e.call(n??this,r,o);void 0!==i&&(o[o.length-1][void 0!==t?t:r.localName]=i)}}function g(e,t){return function(n,r,o){e.call(t??this,n,r,o),o[o.length-1].node.appendChild(n)}}function y(e,t){let n,r;return function(t,o,i){if(void 0===n){n={};const o={};o[t.localName]=e,n[t.namespaceURI]=o,r=F(t.localName)}S(n,r,o,i)}}function F(e,t){return function(n,r,o){const i=r[r.length-1].node;let s=e;return void 0===s&&(s=o),u(void 0!==t?t:i.namespaceURI,s)}}const x=F();function N(e,t){const n=t.length,r=new Array(n);for(let o=0;o<n;++o)r[o]=e[t[o]];return r}function w(e,t,n){let r,o;for(n=void 0!==n?n:{},r=0,o=e.length;r<o;++r)n[e[r]]=t;return n}function b(e,t,n,r){let o;for(o=t.firstElementChild;o;o=o.nextElementSibling){const t=e[o.namespaceURI];if(void 0!==t){const e=t[o.localName];void 0!==e&&e.call(r,o,n)}}}function T(e,t,n,r,o){return r.push(e),b(t,n,r,o),r.pop()}function S(e,t,n,r,o,i){const s=(void 0!==o?o:n).length;let a,c;for(let u=0;u<s;++u)a=n[u],void 0!==a&&(c=t.call(i,a,r,void 0!==o?o[u]:void 0),void 0!==c&&e[c.namespaceURI][c.localName].call(i,c,a,r))}function C(e,t,n,r,o,i,s){return o.push(e),S(t,n,r,o,i,s),o.pop()}let k,A;function v(){return void 0===A&&"undefined"!=typeof document&&(A=document.implementation.createDocument("","",null)),A}var D=n("f9aae9846c70880e"),E=n("d16fcb46c8321e21"),M=n("dce55b8bb3b681d8");class P extends D.Ay{constructor(){super(),this.xmlSerializer_=(void 0===k&&"undefined"!=typeof XMLSerializer&&(k=new XMLSerializer),k)}getType(){return"xml"}readFeature(e,t){if(!e)return null;if("string"==typeof e){const n=m(e);return this.readFeatureFromDocument(n,t)}return p(e)?this.readFeatureFromDocument(e,t):this.readFeatureFromNode(e,t)}readFeatureFromDocument(e,t){const n=this.readFeaturesFromDocument(e,t);return n.length>0?n[0]:null}readFeatureFromNode(e,t){return null}readFeatures(e,t){if(!e)return[];if("string"==typeof e){const n=m(e);return this.readFeaturesFromDocument(n,t)}return p(e)?this.readFeaturesFromDocument(e,t):this.readFeaturesFromNode(e,t)}readFeaturesFromDocument(e,t){const n=[];for(let r=e.firstChild;r;r=r.nextSibling)r.nodeType==Node.ELEMENT_NODE&&(0,E.X$)(n,this.readFeaturesFromNode(r,t));return n}readFeaturesFromNode(e,t){return(0,M.b0)()}readGeometry(e,t){if(!e)return null;if("string"==typeof e){const n=m(e);return this.readGeometryFromDocument(n,t)}return p(e)?this.readGeometryFromDocument(e,t):this.readGeometryFromNode(e,t)}readGeometryFromDocument(e,t){return null}readGeometryFromNode(e,t){return null}readProjection(e){if(!e)return null;if("string"==typeof e){const t=m(e);return this.readProjectionFromDocument(t)}return p(e)?this.readProjectionFromDocument(e):this.readProjectionFromNode(e)}readProjectionFromDocument(e){return this.dataProjection}readProjectionFromNode(e){return this.dataProjection}writeFeature(e,t){const n=this.writeFeatureNode(e,t);return this.xmlSerializer_.serializeToString(n)}writeFeatureNode(e,t){return null}writeFeatures(e,t){const n=this.writeFeaturesNode(e,t);return this.xmlSerializer_.serializeToString(n)}writeFeaturesNode(e,t){return null}writeGeometry(e,t){const n=this.writeGeometryNode(e,t);return this.xmlSerializer_.serializeToString(n)}writeGeometryNode(e,t){return null}}const X=P;function O(e,t,n){const r=void 0!==n?e.toFixed(n):""+e;let o=r.indexOf(".");return o=-1===o?r.length:o,o>t?r:new Array(1+t-o).join("0")+r}function _(e){const t=l(e,!1),n=Date.parse(t);return isNaN(n)?void 0:n/1e3}function G(e){return function(e){const t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(e);if(t)return parseFloat(t[1])}(l(e,!1))}function L(e){return function(e){const t=/^\s*(\d+)\s*$/.exec(e);if(t)return parseInt(t[1],10)}(l(e,!1))}function U(e){return l(e,!1).trim()}function R(e,t){const n=t.toPrecision();e.appendChild(v().createTextNode(n))}function I(e,t){const n=t.toString();e.appendChild(v().createTextNode(n))}const j=/^\s/,z=/\s$/,Z=/(\n|\t|\r|<|&| {2})/;function Y(e,t){"string"==typeof t&&(j.test(t)||z.test(t)||Z.test(t))?t.split("]]>").forEach((t,n,r)=>{n<r.length-1&&(t+="]]"),n>0&&(t=">"+t),function(e,t){e.appendChild(v().createCDATASection(t))}(e,t)}):e.appendChild(v().createTextNode(t))}const $=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"],V={rte:be,trk:Te,wpt:Se},H=w($,{rte:f(be),trk:f(Te),wpt:f(Se)}),J=w($,{text:h(U,"linkText"),type:h(U,"linkType")}),q=w($,{name:h(U),email:function(e,t){const n=t[t.length-1],r=e.getAttribute("id"),o=e.getAttribute("domain");null!==r&&null!==o&&(n.email=`${r}@${o}`)},link:Ne}),B=w($,{name:h(U),desc:h(U),author:h(function(e,t){const n=T({},q,e,t);if(n)return n}),copyright:h(function(e,t){const n=T({},K,e,t);if(n){const t=e.getAttribute("author");return null!==t&&(n.author=t),n}}),link:Ne,time:h(_),keywords:h(U),bounds:function(e,t){const n=t[t.length-1],r=e.getAttribute("minlat"),o=e.getAttribute("minlon"),i=e.getAttribute("maxlat"),s=e.getAttribute("maxlon");null!==o&&null!==r&&null!==s&&null!==i&&(n.bounds=[[parseFloat(o),parseFloat(r)],[parseFloat(s),parseFloat(i)]])},extensions:we}),K=w($,{year:h(L),license:h(U)}),Q=w($,{rte:g(function(e,t,n){const r=n[0],o=t.getProperties(),i={node:e};i.properties=o;const s=t.getGeometry();if("LineString"==s.getType()){const e=(0,D.hX)(s,!0,r);i.geometryLayout=e.getLayout(),o.rtept=e.getCoordinates()}const a=n[n.length-1].node,c=ae[a.namespaceURI],u=N(o,c);C(i,ce,x,u,n,c)}),trk:g(function(e,t,n){const r=n[0],o=t.getProperties(),i={node:e};i.properties=o;const s=t.getGeometry();if("MultiLineString"==s.getType()){const e=(0,D.hX)(s,!0,r);o.trkseg=e.getLineStrings()}const a=n[n.length-1].node,c=le[a.namespaceURI],u=N(o,c);C(i,de,x,u,n,c)}),wpt:g(function(e,t,n){const r=n[0],o=n[n.length-1];o.properties=t.getProperties();const i=t.getGeometry();if("Point"==i.getType()){const t=(0,D.hX)(i,!0,r);o.geometryLayout=t.getLayout(),ke(e,t.getCoordinates(),n)}})}),W=w($,{name:h(U),cmt:h(U),desc:h(U),src:h(U),link:Ne,number:h(L),extensions:we,type:h(U),rtept:function(e,t){const n=T({},ee,e,t);if(n){const r=t[t.length-1];Fe(r.flatCoordinates,r.layoutOptions,e,n)}}}),ee=w($,{ele:h(G),time:h(_)}),te=w($,{name:h(U),cmt:h(U),desc:h(U),src:h(U),link:Ne,number:h(L),type:h(U),extensions:we,trkseg:function(e,t){const n=t[t.length-1];b(ne,e,t);const r=n.flatCoordinates;n.ends.push(r.length)}}),ne=w($,{trkpt:function(e,t){const n=T({},re,e,t);if(n){const r=t[t.length-1];Fe(r.flatCoordinates,r.layoutOptions,e,n)}}}),re=w($,{ele:h(G),time:h(_)}),oe=w($,{ele:h(G),time:h(_),magvar:h(G),geoidheight:h(G),name:h(U),cmt:h(U),desc:h(U),src:h(U),link:Ne,sym:h(U),type:h(U),fix:h(U),sat:h(L),hdop:h(G),vdop:h(G),pdop:h(G),ageofdgpsdata:h(G),dgpsid:h(L),extensions:we}),ie=["text","type"],se=w($,{text:g(Y),type:g(Y)}),ae=w($,["name","cmt","desc","src","link","number","type","rtept"]),ce=w($,{name:g(Y),cmt:g(Y),desc:g(Y),src:g(Y),link:g(Ce),number:g(I),type:g(Y),rtept:y(g(ke))}),ue=w($,["ele","time"]),le=w($,["name","cmt","desc","src","link","number","type","trkseg"]),de=w($,{name:g(Y),cmt:g(Y),desc:g(Y),src:g(Y),link:g(Ce),number:g(I),type:g(Y),trkseg:y(g(function(e,t,n){const r={node:e};r.geometryLayout=t.getLayout(),r.properties={},C(r,me,pe,t.getCoordinates(),n)}))}),pe=F("trkpt"),me=w($,{trkpt:g(ke)}),fe=w($,["ele","time","magvar","geoidheight","name","cmt","desc","src","link","sym","type","fix","sat","hdop","vdop","pdop","ageofdgpsdata","dgpsid"]),he=w($,{ele:g(R),time:g(function(e,t){const n=new Date(1e3*t),r=n.getUTCFullYear()+"-"+O(n.getUTCMonth()+1,2)+"-"+O(n.getUTCDate(),2)+"T"+O(n.getUTCHours(),2)+":"+O(n.getUTCMinutes(),2)+":"+O(n.getUTCSeconds(),2)+"Z";e.appendChild(v().createTextNode(r))}),magvar:g(R),geoidheight:g(R),name:g(Y),cmt:g(Y),desc:g(Y),src:g(Y),link:g(Ce),sym
1:g(Y),type:g(Y),fix:g(Y),sat:g(I),hdop:g(R),vdop:g(R),pdop:g(R),ageofdgpsdata:g(R),dgpsid:g(I)}),ge={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function ye(e,t,n){const r=e.getGeometry();if(r){const e=ge[r.getType()];if(e)return u(t[t.length-1].node.namespaceURI,e)}}function Fe(e,t,n,r){return e.push(parseFloat(n.getAttribute("lon")),parseFloat(n.getAttribute("lat"))),"ele"in r?(e.push(r.ele),delete r.ele,t.hasZ=!0):e.push(0),"time"in r?(e.push(r.time),delete r.time,t.hasM=!0):e.push(0),e}function xe(e,t,n){let r="XY",o=2;if(e.hasZ&&e.hasM?(r="XYZM",o=4):e.hasZ?(r="XYZ",o=3):e.hasM&&(r="XYM",o=3),4!==o){for(let n=0,r=t.length/4;n<r;n++)t[n*o]=t[4*n],t[n*o+1]=t[4*n+1],e.hasZ&&(t[n*o+2]=t[4*n+2]),e.hasM&&(t[n*o+2]=t[4*n+3]);if(t.length=t.length/4*o,n)for(let e=0,t=n.length;e<t;e++)n[e]=n[e]/4*o}return r}function Ne(e,t){const n=t[t.length-1],r=e.getAttribute("href");null!==r&&(n.link=r),b(J,e,t)}function we(e,t){t[t.length-1].extensionsNode_=e}function be(e,t){const n=t[0],i=T({flatCoordinates:[],layoutOptions:{}},W,e,t);if(!i)return;const s=i.flatCoordinates;delete i.flatCoordinates;const a=i.layoutOptions;delete i.layoutOptions;const c=xe(a,s),u=new o.A(s,c);(0,D.hX)(u,!1,n);const l=new r.A(u);return l.setProperties(i,!0),l}function Te(e,t){const n=t[0],o=T({flatCoordinates:[],ends:[],layoutOptions:{}},te,e,t);if(!o)return;const s=o.flatCoordinates;delete o.flatCoordinates;const a=o.ends;delete o.ends;const c=o.layoutOptions;delete o.layoutOptions;const u=xe(c,s,a),l=new i.A(s,u,a);(0,D.hX)(l,!1,n);const d=new r.A(l);return d.setProperties(o,!0),d}function Se(e,t){const n=t[0],o=T({},oe,e,t);if(!o)return;const i={},a=Fe([],i,e,o),c=xe(i,a),u=new s.A(a,c);(0,D.hX)(u,!1,n);const l=new r.A(u);return l.setProperties(o,!0),l}function Ce(e,t,n){e.setAttribute("href",t);const r=n[n.length-1].properties,o=[r.linkText,r.linkType];C({node:e},se,x,o,n,ie)}
1function ke(e,t,n){const r=n[n.length-1],o=r.node.namespaceURI,i=r.properties;switch(e.setAttributeNS(null,"lat",String(t[1])),e.setAttributeNS(null,"lon",String(t[0])),r.geometryLayout){case"XYZM":0!==t[3]&&(i.time=t[3]);case"XYZ":0!==t[2]&&(i.ele=t[2]);break;case"XYM":0!==t[2]&&(i.time=t[2])}const s="rtept"==e.nodeName?ue[o]:fe[o],a=N(i,s);C({node:e,properties:i},he,x,a,n,s)}const Ae=class extends X{constructor(e){super(),e=e||{},this.dataProjection=(0,a.Jt)("EPSG:4326"),this.readExtensions_=e.readExtensions}handleReadExtensions_(e){e||(e=[]);for(let t=0,n=e.length;t<n;++t){const n=e[t];if(this.readExtensions_){const e=n.get("extensionsNode_")||null;this.readExtensions_(n,e)}n.set("extensionsNode_",void 0)}}readMetadata(e){return e?"string"==typeof e?this.readMetadataFromDocument(m(e)):p(e)?this.readMetadataFromDocument(e):this.readMetadataFromNode(e):null}readMetadataFromDocument(e){for(let t=e.firstChild;t;t=t.nextSibling)if(t.nodeType===Node.ELEMENT_NODE){const e=this.readMetadataFromNode(t);if(e)return e}return null}readMetadataFromNode(e){if(!$.includes(e.namespaceURI))return null;for(let t=e.firstElementChild;t;t=t.nextElementSibling)if($.includes(t.namespaceURI)&&"metadata"===t.localName){const e=T({},B,t,[]);return Object.keys(e).length>0?e:null}return null}readFeatureFromNode(e,t){if(!$.includes(e.namespaceURI))return null;const n=V[e.localName];if(!n)return null;const r=n(e,[this.getReadOptions(e,t)]);return r?(this.handleReadExtensions_([r]),r):null}readFeaturesFromNode(e,t){if(!$.includes(e.namespaceURI))return[];if("gpx"==e.localName){const n=T([],H,e,[this.getReadOptions(e,t)]);return n?(this.handleReadExtensions_(n),n):[]}return[]}writeFeaturesNode(e,t){t=this.adaptOptions(t);const n=u("http://www.topografix.com/GPX/1/1","gpx");return n.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi",c),n.setAttributeNS(c,"xsi:schemaLocation","http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"),n.setAttribute("version","1.1"),n.setAttribute("creator","OpenLayers"),C({node:n},Q,ye,e,[t]),n}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.