(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o 0) { out.link = link; } return out; } var doc = function () { var metadata = getDocumentMetadata(); return { beforeAnnotationCreated: function (ann) { // Assign a copy of the document metadata to the annotation ann.document = JSON.parse(JSON.stringify(metadata)); } }; }; annotator.ext.document = doc; exports.document = doc; exports.absoluteUrl = absoluteUrl; exports.getDocumentMetadata = getDocumentMetadata; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{}]},{},[1]);