{ "version": 3, "sources": ["../../js-cookie/dist/js.cookie.mjs", "../../@abi-software/sparc-annotation/dist/annotationService.js"], "sourcesContent": ["/*! js-cookie v3.0.5 | MIT */\n/* eslint-disable no-var */\nfunction assign (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n target[key] = source[key];\n }\n }\n return target\n}\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\nvar defaultConverter = {\n read: function (value) {\n if (value[0] === '\"') {\n value = value.slice(1, -1);\n }\n return value.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent)\n },\n write: function (value) {\n return encodeURIComponent(value).replace(\n /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,\n decodeURIComponent\n )\n }\n};\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\n\nfunction init (converter, defaultAttributes) {\n function set (name, value, attributes) {\n if (typeof document === 'undefined') {\n return\n }\n\n attributes = assign({}, defaultAttributes, attributes);\n\n if (typeof attributes.expires === 'number') {\n attributes.expires = new Date(Date.now() + attributes.expires * 864e5);\n }\n if (attributes.expires) {\n attributes.expires = attributes.expires.toUTCString();\n }\n\n name = encodeURIComponent(name)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, escape);\n\n var stringifiedAttributes = '';\n for (var attributeName in attributes) {\n if (!attributes[attributeName]) {\n continue\n }\n\n stringifiedAttributes += '; ' + attributeName;\n\n if (attributes[attributeName] === true) {\n continue\n }\n\n // Considers RFC 6265 section 5.2:\n // ...\n // 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n // character:\n // Consume the characters of the unparsed-attributes up to,\n // not including, the first %x3B (\";\") character.\n // ...\n stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n }\n\n return (document.cookie =\n name + '=' + converter.write(value, name) + stringifiedAttributes)\n }\n\n function get (name) {\n if (typeof document === 'undefined' || (arguments.length && !name)) {\n return\n }\n\n // To prevent the for loop in the first place assign an empty array\n // in case there are no cookies at all.\n var cookies = document.cookie ? document.cookie.split('; ') : [];\n var jar = {};\n for (var i = 0; i < cookies.length; i++) {\n var parts = cookies[i].split('=');\n var value = parts.slice(1).join('=');\n\n try {\n var found = decodeURIComponent(parts[0]);\n jar[found] = converter.read(value, found);\n\n if (name === found) {\n break\n }\n } catch (e) {}\n }\n\n return name ? jar[name] : jar\n }\n\n return Object.create(\n {\n set,\n get,\n remove: function (name, attributes) {\n set(\n name,\n '',\n assign({}, attributes, {\n expires: -1\n })\n );\n },\n withAttributes: function (attributes) {\n return init(this.converter, assign({}, this.attributes, attributes))\n },\n withConverter: function (converter) {\n return init(assign({}, this.converter, converter), this.attributes)\n }\n },\n {\n attributes: { value: Object.freeze(defaultAttributes) },\n converter: { value: Object.freeze(converter) }\n }\n )\n}\n\nvar api = init(defaultConverter, { path: '/' });\n/* eslint-enable no-var */\n\nexport { api as default };\n", "/******************************************************************************\n\nFlatmap viewer and annotation tool\n\nCopyright (c) 2019 - 2023 David Brooks\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n******************************************************************************/\nvar __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n};\nvar __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n};\nvar _AnnotationService_instances, _AnnotationService_serverEndpoint, _AnnotationService_currentUser, _AnnotationService_currentError, _AnnotationService_request;\nimport Cookies from 'js-cookie';\n//==============================================================================\nconst SERVER_TIMEOUT = 10000; // 10 seconds\n//==============================================================================\n/**\n * Interface to a SPARC map annotation service.\n */\nexport class AnnotationService {\n /**\n * @param serverEndpoint The URL of a map annotation service.\n */\n constructor(serverEndpoint) {\n _AnnotationService_instances.add(this);\n _AnnotationService_serverEndpoint.set(this, void 0);\n _AnnotationService_currentUser.set(this, null);\n _AnnotationService_currentError.set(this, null\n /**\n * @param serverEndpoint The URL of a map annotation service.\n */\n );\n if (serverEndpoint.slice(-1) === '/') { // Strip any trailing slash\n __classPrivateFieldSet(this, _AnnotationService_serverEndpoint, serverEndpoint.slice(0, -1), \"f\");\n }\n else {\n __classPrivateFieldSet(this, _AnnotationService_serverEndpoint, serverEndpoint, \"f\");\n }\n }\n /**\n * Get information about the logged-in SPARC user.\n *\n * Requires {@linkcode authenticate} to first be called.\n */\n get currentUser() {\n return __classPrivateFieldGet(this, _AnnotationService_currentUser, \"f\");\n }\n /**\n * Get information about any error from the last call\n * to {@linkcode authenticate}.\n */\n get currentError() {\n return __classPrivateFieldGet(this, _AnnotationService_currentError, \"f\");\n }\n /**\n * Authenticate the logged-in SPARC user.\n *\n * @param userApiKey The Api token of the logged-in Pennsieve user\n * @return A Promise resolving to either data about a valid user\n * or a reason why the user is invalid.\n */\n async authenticate(userApiKey) {\n __classPrivateFieldSet(this, _AnnotationService_currentError, null, \"f\");\n __classPrivateFieldSet(this, _AnnotationService_currentUser, null, \"f\");\n const userData = await __classPrivateFieldGet(this, _AnnotationService_instances, \"m\", _AnnotationService_request).call(this, userApiKey, 'authenticate');\n if (!('error' in userData)) {\n Cookies.set('annotation-key', userData.session, { secure: true, expires: 1 });\n __classPrivateFieldSet(this, _AnnotationService_currentUser, userData.data, \"f\");\n return Promise.resolve(__classPrivateFieldGet(this, _AnnotationService_currentUser, \"f\"));\n }\n Cookies.remove('annotation-key');\n return Promise.resolve(__classPrivateFieldGet(this, _AnnotationService_currentError, \"f\"));\n }\n /**\n * Unauthenticate with the annotation service.\n *\n * @param userApiKey The Api token of the logged-in Pennsieve user\n * @return A Promise with data about the call.\n */\n async unauthenticate(userApiKey) {\n __classPrivateFieldSet(this, _AnnotationService_currentError, null, \"f\");\n __classPrivateFieldSet(this, _AnnotationService_currentUser, null, \"f\");\n const responseData = await __classPrivateFieldGet(this, _AnnotationService_instances, \"m\", _AnnotationService_request).call(this, userApiKey, 'unauthenticate');\n if ('success' in responseData) {\n return Promise.resolve(responseData);\n }\n return Promise.resolve(__classPrivateFieldGet(this, _AnnotationService_currentError, \"f\"));\n }\n /**\n * Get identifiers of all annotated items in a resource.\n *\n * @param userApiKey The Api token of the logged-in Pennsieve user\n * @param resourceId The resource's identifier\n * @param userId A user identifier (ORCID). Optional\n * @param participated Get items the user was involved in annotating or not.\n * Optional, default ``true``\n * @return A Promise resolving to either a list of identifiers of annotated\n * items or a reason why identifiers couldn't be retrieved.\n */\n async annotatedItemIds(userApiKey, resourceId, userId, participated) {\n const params = {\n resource: resourceId\n };\n if (userId !== undefined) {\n params.user = userId;\n }\n if (participated !== undefined) {\n params.participated = participated;\n }\n const itemIds = await __classPrivateFieldGet(this, _AnnotationService_instances, \"m\", _AnnotationService_request).call(this, userApiKey, 'items/', 'GET', params);\n if (!('error' in itemIds)) {\n return Promise.resolve(itemIds);\n }\n return Promise.resolve(__classPrivateFieldGet(this, _AnnotationService_currentError, \"f\"));\n }\n /**\n * Get all annotated features drawn on a resource.\n *\n * @param userApiKey The Api token of the logged-in Pennsieve user\n * @param resourceId The resource's identifier\n * @return A Promise resolving to either a list of annotated\n * features drawn on the resource or a reason why\n * features couldn't be retrieved.\n */\n async drawnFeatures(userApiKey, resourceId, itemIds) {\n const params = {\n resource: resourceId\n };\n if (itemIds !== undefined) {\n params.items = itemIds;\n }\n const features = await __classPrivateFieldGet(this, _AnnotationService_instances, \"m\", _AnnotationService_request).call(this, userApiKey, 'features/', 'GET', params);\n if (!('error' in features)) {\n return Promise.resolve(features);\n }\n return Promise.resolve(__classPrivateFieldGet(this, _AnnotationService_currentError, \"f\"));\n }\n /**\n * Get all annotations about a specific item in a resource.\n *\n * @param userApiKey The Api token of the logged-in Pennsieve user\n * @param resourceId The resource's identifier\n * @param itemId The item's identifier within the resource\n * @return A Promise resolving to either a list of\n * annotations about the item or a reason\n * why annotations couldn't be retrieved.\n */\n async itemAnnotations(userApiKey, resourceId, ItemId) {\n const annotations = await __classPrivateFieldGet(this, _AnnotationService_instances, \"m\", _AnnotationService_request).call(this, userApiKey, 'annotations/', 'GET', {\n resource: resourceId,\n item: ItemId\n });\n if (!('error' in annotations)) {\n return Promise.resolve(annotations);\n }\n return Promise.resolve(__classPrivateFieldGet(this, _AnnotationService_currentError, \"f\"));\n }\n /**\n * Get details of a specific annotation.\n *\n * @param userApiKey The Api token of the logged-in Pennsieve user\n * @param annotationId The annotation's URI\n * @return A Promise resolving to either an annotation\n * with the given URI or a reason why the\n * annotation couldn't be retrieved.\n */\n async annotation(userApiKey, annotationId) {\n const annotation = await __classPrivateFieldGet(this, _AnnotationService_instances, \"m\", _AnnotationService_request).call(this, userApiKey, 'annotation/', 'GET', {\n annotation: annotationId\n });\n if (!('error' in annotation)) {\n return Promise.resolve(annotation);\n }\n return Promise.resolve(__classPrivateFieldGet(this, _AnnotationService_currentError, \"f\"));\n }\n /**\n * Add an annotation about a specific item in a resource.\n *\n * @param userApiKey The Api token of the logged-in Pennsieve user\n * @param annotation Annotation about the feature\n * @return A Promise resolving to either the resulting\n * full annotation or a reason why the\n * annotation couldn't be added\n */\n async addAnnotation(userApiKey, userAnnotation) {\n if (__classPrivateFieldGet(this, _AnnotationService_currentUser, \"f\") && __classPrivateFieldGet(this, _AnnotationService_currentUser, \"f\").canUpdate) {\n const annotationRequest = Object.assign({\n creator: __classPrivateFieldGet(this, _AnnotationService_currentUser, \"f\"),\n created: (new Date()).toISOString()\n }, userAnnotation);\n const annotationResponse = await __classPrivateFieldGet(this, _AnnotationService_instances, \"m\", _AnnotationService_request).call(this, userApiKey, `annotation/`, 'POST', {\n data: annotationRequest\n });\n if (!('error' in annotationResponse)) {\n return Promise.resolve(annotationResponse);\n }\n __classPrivateFieldSet(this, _AnnotationService_currentError, annotationResponse, \"f\");\n }\n else {\n __classPrivateFieldSet(this, _AnnotationService_currentError, { error: 'user cannot add annotation' }, \"f\");\n }\n return Promise.resolve(__classPrivateFieldGet(this, _AnnotationService_currentError, \"f\"));\n }\n}\n_AnnotationService_serverEndpoint = new WeakMap(), _AnnotationService_currentUser = new WeakMap(), _AnnotationService_currentError = new WeakMap(), _AnnotationService_instances = new WeakSet(), _AnnotationService_request = async function _AnnotationService_request(userApiKey, endpoint, method = 'GET', parameters = {}) {\n let noResponse = true;\n const abortController = new AbortController();\n setTimeout(() => {\n if (noResponse) {\n console.log('Annotation server timeout...');\n abortController.abort();\n // how is the promise resolved/rejected when there's a timeout??\n }\n }, SERVER_TIMEOUT);\n const options = {\n method: method,\n signal: abortController.signal\n };\n let url = `${__classPrivateFieldGet(this, _AnnotationService_serverEndpoint, \"f\")}/${endpoint}`;\n const sessionKey = Cookies.get('annotation-key') || '';\n if (method === 'GET') {\n const params = [];\n for (const [key, value] of Object.entries(parameters)) {\n params.push(`${key}=${encodeURIComponent(JSON.stringify(value))}`);\n }\n params.push(`key=${encodeURIComponent(userApiKey)}`);\n params.push(`session=${encodeURIComponent(sessionKey)}`);\n url += '?' + params.join('&');\n options['headers'] = {\n \"Accept\": \"application/json; charset=utf-8\",\n \"Cache-Control\": \"no-store\"\n };\n }\n else if (method === 'POST') {\n const params = Object.assign({\n key: userApiKey,\n session: sessionKey\n }, parameters);\n options['body'] = JSON.stringify(params);\n options['headers'] = {\n \"Accept\": \"application/json; charset=utf-8\",\n \"Content-Type\": \"application/json; charset=utf-8\",\n \"Cache-Control\": \"no-store\"\n };\n }\n const response = await fetch(url, options);\n noResponse = false;\n if (response.ok) {\n return Promise.resolve(await response.json());\n }\n else {\n __classPrivateFieldSet(this, _AnnotationService_currentError, { error: `${response.status} ${response.statusText}` }, \"f\");\n return Promise.resolve(__classPrivateFieldGet(this, _AnnotationService_currentError, \"f\"));\n }\n};\n//==============================================================================\n"], "mappings": ";;;AAEA,SAAS,OAAQ,QAAQ;AACvB,WAAS,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AACzC,QAAI,SAAS,UAAU,CAAC;AACxB,aAAS,OAAO,QAAQ;AACtB,aAAO,GAAG,IAAI,OAAO,GAAG;AAAA,IAC1B;AAAA,EACF;AACA,SAAO;AACT;AAIA,IAAI,mBAAmB;AAAA,EACrB,MAAM,SAAU,OAAO;AACrB,QAAI,MAAM,CAAC,MAAM,KAAK;AACpB,cAAQ,MAAM,MAAM,GAAG,EAAE;AAAA,IAC3B;AACA,WAAO,MAAM,QAAQ,oBAAoB,kBAAkB;AAAA,EAC7D;AAAA,EACA,OAAO,SAAU,OAAO;AACtB,WAAO,mBAAmB,KAAK,EAAE;AAAA,MAC/B;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF;AAKA,SAAS,KAAM,WAAW,mBAAmB;AAC3C,WAAS,IAAK,MAAM,OAAO,YAAY;AACrC,QAAI,OAAO,aAAa,aAAa;AACnC;AAAA,IACF;AAEA,iBAAa,OAAO,CAAC,GAAG,mBAAmB,UAAU;AAErD,QAAI,OAAO,WAAW,YAAY,UAAU;AAC1C,iBAAW,UAAU,IAAI,KAAK,KAAK,IAAI,IAAI,WAAW,UAAU,KAAK;AAAA,IACvE;AACA,QAAI,WAAW,SAAS;AACtB,iBAAW,UAAU,WAAW,QAAQ,YAAY;AAAA,IACtD;AAEA,WA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