This page lists files in the current directory. You can view content, get download/execute commands for Wget, Curl, or PowerShell, or filter the list using wildcards (e.g., `*.sh`).
wget 'https://sme10.lists2.roe3.org/kodbox/plugins/pdfjs/static/pdfjs/web/debugger.js'
/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
var FontInspector = (function FontInspectorClosure() {
var fonts;
var active = false;
var fontAttribute = 'data-font-name';
function removeSelection() {
var divs = document.querySelectorAll('div[' + fontAttribute + ']');
for (var i = 0, ii = divs.length; i < ii; ++i) {
var div = divs[i];
div.className = '';
}
}
function resetSelection() {
var divs = document.querySelectorAll('div[' + fontAttribute + ']');
for (var i = 0, ii = divs.length; i < ii; ++i) {
var div = divs[i];
div.className = 'debuggerHideText';
}
}
function selectFont(fontName, show) {
var divs = document.querySelectorAll('div[' + fontAttribute + '=' +
fontName + ']');
for (var i = 0, ii = divs.length; i < ii; ++i) {
var div = divs[i];
div.className = show ? 'debuggerShowText' : 'debuggerHideText';
}
}
function textLayerClick(e) {
if (!e.target.dataset.fontName ||
e.target.tagName.toUpperCase() !== 'DIV') {
return;
}
var fontName = e.target.dataset.fontName;
var selects = document.getElementsByTagName('input');
for (var i = 0; i < selects.length; ++i) {
var select = selects[i];
if (select.dataset.fontName !== fontName) {
continue;
}
select.checked = !select.checked;
selectFont(fontName, select.checked);
select.scrollIntoView();
}
}
return {
// Properties/functions needed by PDFBug.
id: 'FontInspector',
name: 'Font Inspector',
panel: null,
manager: null,
init: function init(pdfjsLib) {
var panel = this.panel;
panel.setAttribute('style', 'padding: 5px;');
var tmp = document.createElement('button');
tmp.addEventListener('click', resetSelection);
tmp.textContent = 'Refresh';
panel.appendChild(tmp);
fonts = document.createElement('div');
panel.appendChild(fonts);
},
cleanup: function cleanup() {
fonts.textContent = '';
},
enabled: false,
get active() {
return active;
},
set active(value) {
active = value;
if (active) {
document.body.addEventListener('click', textLayerClick, true);
resetSelection();
} else {
document.body.removeEventListener('click', textLayerClick, true);
removeSelection();
}
},
// FontInspector specific functions.
fontAdded: function fontAdded(fontObj, url) {
function properties(obj, list) {
var moreInfo = document.createElement('table');
for (var i = 0; i < list.length; i++) {
var tr = document.createElement('tr');
var td1 = document.createElement('td');
td1.textContent = list[i];
tr.appendChild(td1);
var td2 = document.createElement('td');
td2.textContent = obj[list[i]].toString();
tr.appendChild(td2);
moreInfo.appendChild(tr);
}
return moreInfo;
}
var moreInfo = properties(fontObj, ['name', 'type']);
var fontName = fontObj.loadedName;
var font = document.createElement('div');
var name = document.createElement('span');
name.textContent = fontName;
var download = document.createElement('a');
if (url) {
url = /url\(['"]?([^\)"']+)/.exec(url);
download.href = url[1];
} else if (fontObj.data) {
url = URL.createObjectURL(new Blob([fontObj.data], {
type: fontObj.mimeType
}));
download.href = url;
}
download.textContent = 'Download';
var logIt = document.createElement('a');
logIt.href = '';
logIt.textContent = 'Log';
logIt.addEventListener('click', function(event) {
event.preventDefault();
console.log(fontObj);
});
var select = document.createElement('input');
select.setAttribute('type', 'checkbox');
select.dataset.fontName = fontName;
select.addEventListener('click', (function(select, fontName) {
return (function() {
selectFont(fontName, select.checked);
});
})(select, fontName));
font.appendChild(select);
font.appendChild(name);
font.appendChild(document.createTextNode(' '));
font.appendChild(download);
font.appendChild(document.createTextNode(' '));
font.appendChild(logIt);
font.appendChild(moreInfo);
fonts.appendChild(font);
// Somewhat of a hack, should probably add a hook for when the text layer
// is done rendering.
setTimeout(function() {
if (this.active) {
resetSelection();
}
}.bind(this), 2000);
}
};
})();
var opMap;
// Manages all the page steppers.
var StepperManager = (function StepperManagerClosure() {
var steppers = [];
var stepperDiv = null;
var stepperControls = null;
var stepperChooser = null;
var breakPoints = Object.create(null);
return {
// Properties/functions needed by PDFBug.
id: 'Stepper',
name: 'Stepper',
panel: null,
manager: null,
init: function init(pdfjsLib) {
var self = this;
this.panel.setAttribute('style', 'padding: 5px;');
stepperControls = document.createElement('div');
stepperChooser = document.createElement('select');
stepperChooser.addEventListener('change', function(event) {
self.selectStepper(this.value);
});
stepperControls.appendChild(stepperChooser);
stepperDiv = document.createElement('div');
this.panel.appendChild(stepperControls);
this.panel.appendChild(stepperDiv);
if (sessionStorage.getItem('pdfjsBreakPoints')) {
breakPoints = JSON.parse(sessionStorage.getItem('pdfjsBreakPoints'));
}
opMap = Object.create(null);
for (var key in pdfjsLib.OPS) {
opMap[pdfjsLib.OPS[key]] = key;
}
},
cleanup: function cleanup() {
stepperChooser.textContent = '';
stepperDiv.textContent = '';
steppers = [];
},
enabled: false,
active: false,
// Stepper specific functions.
create: function create(pageIndex) {
var debug = document.createElement('div');
debug.id = 'stepper' + pageIndex;
debug.setAttribute('hidden', true);
debug.className = 'stepper';
stepperDiv.appendChild(debug);
var b = document.createElement('option');
b.textContent = 'Page ' + (pageIndex + 1);
b.value = pageIndex;
stepperChooser.appendChild(b);
var initBreakPoints = breakPoints[pageIndex] || [];
var stepper = new Stepper(debug, pageIndex, initBreakPoints);
steppers.push(stepper);
if (steppers.length === 1) {
this.selectStepper(pageIndex, false);
}
return stepper;
},
selectStepper: function selectStepper(pageIndex, selectPanel) {
var i;
pageIndex = pageIndex | 0;
if (selectPanel) {
this.manager.selectPanel(this);
}
for (i = 0; i < steppers.length; ++i) {
var stepper = steppers[i];
if (stepper.pageIndex === pageIndex) {
stepper.panel.removeAttribute('hidden');
} else {
stepper.panel.setAttribute('hidden', true);
}
}
var options = stepperChooser.options;
for (i = 0; i < options.length; ++i) {
var option = options[i];
option.selected = (option.value | 0) === pageIndex;
}
},
saveBreakPoints: function saveBreakPoints(pageIndex, bps) {
breakPoints[pageIndex] = bps;
sessionStorage.setItem('pdfjsBreakPoints', JSON.stringify(breakPoints));
}
};
})();
// The stepper for each page's IRQueue.
var Stepper = (function StepperClosure() {
// Shorter way to create element and optionally set textContent.
function c(tag, textContent) {
var d = document.createElement(tag);
if (textContent) {
d.textContent = textContent;
}
return d;
}
function simplifyArgs(args) {
if (typeof args === 'string') {
var MAX_STRING_LENGTH = 75;
return args.length <= MAX_STRING_LENGTH ? args :
args.substr(0, MAX_STRING_LENGTH) + '...';
}
if (typeof args !== 'object' || args === null) {
return args;
}
if ('length' in args) { // array
var simpleArgs = [], i, ii;
var MAX_ITEMS = 10;
for (i = 0, ii = Math.min(MAX_ITEMS, args.length); i < ii; i++) {
simpleArgs.push(simplifyArgs(args[i]));
}
if (i < args.length) {
simpleArgs.push('...');
}
return simpleArgs;
}
var simpleObj = {};
for (var key in args) {
simpleObj[key] = simplifyArgs(args[key]);
}
return simpleObj;
}
function Stepper(panel, pageIndex, initialBreakPoints) {
this.panel = panel;
this.breakPoint = 0;
this.nextBreakPoint = null;
this.pageIndex = pageIndex;
this.breakPoints = initialBreakPoints;
this.currentIdx = -1;
this.operatorListIdx = 0;
}
Stepper.prototype = {
init: function init(operatorList) {
var panel = this.panel;
var content = c('div', 'c=continue, s=step');
var table = c('table');
content.appendChild(table);
table.cellSpacing = 0;
var headerRow = c('tr');
table.appendChild(headerRow);
headerRow.appendChild(c('th', 'Break'));
headerRow.appendChild(c('th', 'Idx'));
headerRow.appendChild(c('th', 'fn'));
headerRow.appendChild(c('th', 'args'));
panel.appendChild(content);
this.table = table;
this.updateOperatorList(operatorList);
},
updateOperatorList: function updateOperatorList(operatorList) {
var self = this;
function cboxOnClick() {
var x = +this.dataset.idx;
if (this.checked) {
self.breakPoints.push(x);
} else {
self.breakPoints.splice(self.breakPoints.indexOf(x), 1);
}
StepperManager.saveBreakPoints(self.pageIndex, self.breakPoints);
}
var MAX_OPERATORS_COUNT = 15000;
if (this.operatorListIdx > MAX_OPERATORS_COUNT) {
return;
}
var chunk = document.createDocumentFragment();
var operatorsToDisplay = Math.min(MAX_OPERATORS_COUNT,
operatorList.fnArray.length);
for (var i = this.operatorListIdx; i < operatorsToDisplay; i++) {
var line = c('tr');
line.className = 'line';
line.dataset.idx = i;
chunk.appendChild(line);
var checked = this.breakPoints.indexOf(i) !== -1;
var args = operatorList.argsArray[i] || [];
var breakCell = c('td');
var cbox = c('input');
cbox.type = 'checkbox';
cbox.className = 'points';
cbox.checked = checked;
cbox.dataset.idx = i;
cbox.onclick = cboxOnClick;
breakCell.appendChild(cbox);
line.appendChild(breakCell);
line.appendChild(c('td', i.toString()));
var fn = opMap[operatorList.fnArray[i]];
var decArgs = args;
if (fn === 'showText') {
var glyphs = args[0];
var newArgs = [];
var str = [];
for (var j = 0; j < glyphs.length; j++) {
var glyph = glyphs[j];
if (typeof glyph === 'object' && glyph !== null) {
str.push(glyph.fontChar);
} else {
if (str.length > 0) {
newArgs.push(str.join(''));
str = [];
}
newArgs.push(glyph); // null or number
}
}
if (str.length > 0) {
newArgs.push(str.join(''));
}
decArgs = [newArgs];
}
line.appendChild(c('td', fn));
line.appendChild(c('td', JSON.stringify(simplifyArgs(decArgs))));
}
if (operatorsToDisplay < operatorList.fnArray.length) {
line = c('tr');
var lastCell = c('td', '...');
lastCell.colspan = 4;
chunk.appendChild(lastCell);
}
this.operatorListIdx = operatorList.fnArray.length;
this.table.appendChild(chunk);
},
getNextBreakPoint: function getNextBreakPoint() {
this.breakPoints.sort(function(a, b) {
return a - b;
});
for (var i = 0; i < this.breakPoints.length; i++) {
if (this.breakPoints[i] > this.currentIdx) {
return this.breakPoints[i];
}
}
return null;
},
breakIt: function breakIt(idx, callback) {
StepperManager.selectStepper(this.pageIndex, true);
var self = this;
var dom = document;
self.currentIdx = idx;
var listener = function(e) {
switch (e.keyCode) {
case 83: // step
dom.removeEventListener('keydown', listener);
self.nextBreakPoint = self.currentIdx + 1;
self.goTo(-1);
callback();
break;
case 67: // continue
dom.removeEventListener('keydown', listener);
var breakPoint = self.getNextBreakPoint();
self.nextBreakPoint = breakPoint;
self.goTo(-1);
callback();
break;
}
};
dom.addEventListener('keydown', listener);
self.goTo(idx);
},
goTo: function goTo(idx) {
var allRows = this.panel.getElementsByClassName('line');
for (var x = 0, xx = allRows.length; x < xx; ++x) {
var row = allRows[x];
if ((row.dataset.idx | 0) === idx) {
row.style.backgroundColor = 'rgb(251,250,207)';
row.scrollIntoView();
} else {
row.style.backgroundColor = null;
}
}
}
};
return Stepper;
})();
var Stats = (function Stats() {
var stats = [];
function clear(node) {
while (node.hasChildNodes()) {
node.removeChild(node.lastChild);
}
}
function getStatIndex(pageNumber) {
for (var i = 0, ii = stats.length; i < ii; ++i) {
if (stats[i].pageNumber === pageNumber) {
return i;
}
}
return false;
}
return {
// Properties/functions needed by PDFBug.
id: 'Stats',
name: 'Stats',
panel: null,
manager: null,
init: function init(pdfjsLib) {
this.panel.setAttribute('style', 'padding: 5px;');
pdfjsLib.PDFJS.enableStats = true;
},
enabled: false,
active: false,
// Stats specific functions.
add: function(pageNumber, stat) {
if (!stat) {
return;
}
var statsIndex = getStatIndex(pageNumber);
if (statsIndex !== false) {
var b = stats[statsIndex];
this.panel.removeChild(b.div);
stats.splice(statsIndex, 1);
}
var wrapper = document.createElement('div');
wrapper.className = 'stats';
var title = document.createElement('div');
title.className = 'title';
title.textContent = 'Page: ' + pageNumber;
var statsDiv = document.createElement('div');
statsDiv.textContent = stat.toString();
wrapper.appendChild(title);
wrapper.appendChild(statsDiv);
stats.push({ pageNumber: pageNumber, div: wrapper });
stats.sort(function(a, b) {
return a.pageNumber - b.pageNumber;
});
clear(this.panel);
for (var i = 0, ii = stats.length; i < ii; ++i) {
this.panel.appendChild(stats[i].div);
}
},
cleanup: function () {
stats = [];
clear(this.panel);
}
};
})();
// Manages all the debugging tools.
window.PDFBug = (function PDFBugClosure() {
var panelWidth = 300;
var buttons = [];
var activePanel = null;
return {
tools: [
FontInspector,
StepperManager,
Stats
],
enable: function(ids) {
var all = false, tools = this.tools;
if (ids.length === 1 && ids[0] === 'all') {
all = true;
}
for (var i = 0; i < tools.length; ++i) {
var tool = tools[i];
if (all || ids.indexOf(tool.id) !== -1) {
tool.enabled = true;
}
}
if (!all) {
// Sort the tools by the order they are enabled.
tools.sort(function(a, b) {
var indexA = ids.indexOf(a.id);
indexA = indexA < 0 ? tools.length : indexA;
var indexB = ids.indexOf(b.id);
indexB = indexB < 0 ? tools.length : indexB;
return indexA - indexB;
});
}
},
init: function init(pdfjsLib, container) {
/*
* Basic Layout:
* PDFBug
* Controls
* Panels
* Panel
* Panel
* ...
*/
var ui = document.createElement('div');
ui.id = 'PDFBug';
var controls = document.createElement('div');
controls.setAttribute('class', 'controls');
ui.appendChild(controls);
var panels = document.createElement('div');
panels.setAttribute('class', 'panels');
ui.appendChild(panels);
container.appendChild(ui);
container.style.right = panelWidth + 'px';
// Initialize all the debugging tools.
var tools = this.tools;
var self = this;
for (var i = 0; i < tools.length; ++i) {
var tool = tools[i];
var panel = document.createElement('div');
var panelButton = document.createElement('button');
panelButton.textContent = tool.name;
panelButton.addEventListener('click', (function(selected) {
return function(event) {
event.preventDefault();
self.selectPanel(selected);
};
})(i));
controls.appendChild(panelButton);
panels.appendChild(panel);
tool.panel = panel;
tool.manager = this;
if (tool.enabled) {
tool.init(pdfjsLib);
} else {
panel.textContent = tool.name + ' is disabled. To enable add ' +
' "' + tool.id + '" to the pdfBug parameter ' +
'and refresh (separate multiple by commas).';
}
buttons.push(panelButton);
}
this.selectPanel(0);
},
cleanup: function cleanup() {
for (var i = 0, ii = this.tools.length; i < ii; i++) {
if (this.tools[i].enabled) {
this.tools[i].cleanup();
}
}
},
selectPanel: function selectPanel(index) {
if (typeof index !== 'number') {
index = this.tools.indexOf(index);
}
if (index === activePanel) {
return;
}
activePanel = index;
var tools = this.tools;
for (var j = 0; j < tools.length; ++j) {
if (j === index) {
buttons[j].setAttribute('class', 'active');
tools[j].active = true;
tools[j].panel.removeAttribute('hidden');
} else {
buttons[j].setAttribute('class', '');
tools[j].active = false;
tools[j].panel.setAttribute('hidden', 'true');
}
}
}
};
})();
wget 'https://sme10.lists2.roe3.org/kodbox/plugins/pdfjs/static/pdfjs/web/l10n.js'
/**
* Copyright (c) 2011-2013 Fabien Cazenave, Mozilla.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
/*
Additional modifications for PDF.js project:
- Disables language initialization on page loading;
- Removes consoleWarn and consoleLog and use console.log/warn directly.
- Removes window._ assignment.
- Remove compatibility code for OldIE.
*/
/*jshint browser: true, devel: true, es5: true, globalstrict: true */
'use strict';
document.webL10n = (function(window, document, undefined) {
var gL10nData = {};
var gTextData = '';
var gTextProp = 'textContent';
var gLanguage = '';
var gMacros = {};
var gReadyState = 'loading';
/**
* Synchronously loading l10n resources significantly minimizes flickering
* from displaying the app with non-localized strings and then updating the
* strings. Although this will block all script execution on this page, we
* expect that the l10n resources are available locally on flash-storage.
*
* As synchronous XHR is generally considered as a bad idea, we're still
* loading l10n resources asynchronously -- but we keep this in a setting,
* just in case... and applications using this library should hide their
* content until the `localized' event happens.
*/
var gAsyncResourceLoading = true; // read-only
/**
* DOM helpers for the so-called "HTML API".
*
* These functions are written for modern browsers. For old versions of IE,
* they're overridden in the 'startup' section at the end of this file.
*/
function getL10nResourceLinks() {
return document.querySelectorAll('link[type="application/l10n"]');
}
function getL10nDictionary() {
var script = document.querySelector('script[type="application/l10n"]');
// TODO: support multiple and external JSON dictionaries
return script ? JSON.parse(script.innerHTML) : null;
}
function getTranslatableChildren(element) {
return element ? element.querySelectorAll('*[data-l10n-id]') : [];
}
function getL10nAttributes(element) {
if (!element)
return {};
var l10nId = element.getAttribute('data-l10n-id');
var l10nArgs = element.getAttribute('data-l10n-args');
var args = {};
if (l10nArgs) {
try {
args = JSON.parse(l10nArgs);
} catch (e) {
console.warn('could not parse arguments for #' + l10nId);
}
}
return { id: l10nId, args: args };
}
function fireL10nReadyEvent(lang) {
var evtObject = document.createEvent('Event');
evtObject.initEvent('localized', true, false);
evtObject.language = lang;
document.dispatchEvent(evtObject);
}
function xhrLoadText(url, onSuccess, onFailure) {
onSuccess = onSuccess || function _onSuccess(data) {};
onFailure = onFailure || function _onFailure() {};
var xhr = new XMLHttpRequest();
xhr.open('GET', url, gAsyncResourceLoading);
if (xhr.overrideMimeType) {
xhr.overrideMimeType('text/plain; charset=utf-8');
}
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
if (xhr.status == 200 || xhr.status === 0) {
onSuccess(xhr.responseText);
} else {
onFailure();
}
}
};
xhr.onerror = onFailure;
xhr.ontimeout = onFailure;
// in Firefox OS with the app:// protocol, trying to XHR a non-existing
// URL will raise an exception here -- hence this ugly try...catch.
try {
xhr.send(null);
} catch (e) {
onFailure();
}
}
/**
* l10n resource parser:
* - reads (async XHR) the l10n resource matching `lang';
* - imports linked resources (synchronously) when specified;
* - parses the text data (fills `gL10nData' and `gTextData');
* - triggers success/failure callbacks when done.
*
* @param {string} href
* URL of the l10n resource to parse.
*
* @param {string} lang
* locale (language) to parse. Must be a lowercase string.
*
* @param {Function} successCallback
* triggered when the l10n resource has been successully parsed.
*
* @param {Function} failureCallback
* triggered when the an error has occured.
*
* @return {void}
* uses the following global variables: gL10nData, gTextData, gTextProp.
*/
function parseResource(href, lang, successCallback, failureCallback) {
var baseURL = href.replace(/[^\/]*$/, '') || './';
// handle escaped characters (backslashes) in a string
function evalString(text) {
if (text.lastIndexOf('\\') < 0)
return text;
return text.replace(/\\\\/g, '\\')
.replace(/\\n/g, '\n')
.replace(/\\r/g, '\r')
.replace(/\\t/g, '\t')
.replace(/\\b/g, '\b')
.replace(/\\f/g, '\f')
.replace(/\\{/g, '{')
.replace(/\\}/g, '}')
.replace(/\\"/g, '"')
.replace(/\\'/g, "'");
}
// parse *.properties text data into an l10n dictionary
// If gAsyncResourceLoading is false, then the callback will be called
// synchronously. Otherwise it is called asynchronously.
function parseProperties(text, parsedPropertiesCallback) {
var dictionary = {};
// token expressions
var reBlank = /^\s*|\s*$/;
var reComment = /^\s*#|^\s*$/;
var reSection = /^\s*\[(.*)\]\s*$/;
var reImport = /^\s*@import\s+url\((.*)\)\s*$/i;
var reSplit = /^([^=\s]*)\s*=\s*(.+)$/; // TODO: escape EOLs with '\'
// parse the *.properties file into an associative array
function parseRawLines(rawText, extendedSyntax, parsedRawLinesCallback) {
var entries = rawText.replace(reBlank, '').split(/[\r\n]+/);
var currentLang = '*';
var genericLang = lang.split('-', 1)[0];
var skipLang = false;
var match = '';
function nextEntry() {
// Use infinite loop instead of recursion to avoid reaching the
// maximum recursion limit for content with many lines.
while (true) {
if (!entries.length) {
parsedRawLinesCallback();
return;
}
var line = entries.shift();
// comment or blank line?
if (reComment.test(line))
continue;
// the extended syntax supports [lang] sections and @import rules
if (extendedSyntax) {
match = reSection.exec(line);
if (match) { // section start?
// RFC 4646, section 4.4, "All comparisons MUST be performed
// in a case-insensitive manner."
currentLang = match[1].toLowerCase();
skipLang = (currentLang !== '*') &&
(currentLang !== lang) && (currentLang !== genericLang);
continue;
} else if (skipLang) {
continue;
}
match = reImport.exec(line);
if (match) { // @import rule?
loadImport(baseURL + match[1], nextEntry);
return;
}
}
// key-value pair
var tmp = line.match(reSplit);
if (tmp && tmp.length == 3) {
dictionary[tmp[1]] = evalString(tmp[2]);
}
}
}
nextEntry();
}
// import another *.properties file
function loadImport(url, callback) {
xhrLoadText(url, function(content) {
parseRawLines(content, false, callback); // don't allow recursive imports
}, function () {
console.warn(url + ' not found.');
callback();
});
}
// fill the dictionary
parseRawLines(text, true, function() {
parsedPropertiesCallback(dictionary);
});
}
// load and parse l10n data (warning: global variables are used here)
xhrLoadText(href, function(response) {
gTextData += response; // mostly for debug
// parse *.properties text data into an l10n dictionary
parseProperties(response, function(data) {
// find attribute descriptions, if any
for (var key in data) {
var id, prop, index = key.lastIndexOf('.');
if (index > 0) { // an attribute has been specified
id = key.substring(0, index);
prop = key.substr(index + 1);
} else { // no attribute: assuming text content by default
id = key;
prop = gTextProp;
}
if (!gL10nData[id]) {
gL10nData[id] = {};
}
gL10nData[id][prop] = data[key];
}
// trigger callback
if (successCallback) {
successCallback();
}
});
}, failureCallback);
}
// load and parse all resources for the specified locale
function loadLocale(lang, callback) {
// RFC 4646, section 2.1 states that language tags have to be treated as
// case-insensitive. Convert to lowercase for case-insensitive comparisons.
if (lang) {
lang = lang.toLowerCase();
}
callback = callback || function _callback() {};
clear();
gLanguage = lang;
// check all <link type="application/l10n" href="..." /> nodes
// and load the resource files
var langLinks = getL10nResourceLinks();
var langCount = langLinks.length;
if (langCount === 0) {
// we might have a pre-compiled dictionary instead
var dict = getL10nDictionary();
if (dict && dict.locales && dict.default_locale) {
console.log('using the embedded JSON directory, early way out');
gL10nData = dict.locales[lang];
if (!gL10nData) {
var defaultLocale = dict.default_locale.toLowerCase();
for (var anyCaseLang in dict.locales) {
anyCaseLang = anyCaseLang.toLowerCase();
if (anyCaseLang === lang) {
gL10nData = dict.locales[lang];
break;
} else if (anyCaseLang === defaultLocale) {
gL10nData = dict.locales[defaultLocale];
}
}
}
callback();
} else {
console.log('no resource to load, early way out');
}
// early way out
fireL10nReadyEvent(lang);
gReadyState = 'complete';
return;
}
// start the callback when all resources are loaded
var onResourceLoaded = null;
var gResourceCount = 0;
onResourceLoaded = function() {
gResourceCount++;
if (gResourceCount >= langCount) {
callback();
fireL10nReadyEvent(lang);
gReadyState = 'complete';
}
};
// load all resource files
function L10nResourceLink(link) {
var href = link.href;
// Note: If |gAsyncResourceLoading| is false, then the following callbacks
// are synchronously called.
this.load = function(lang, callback) {
parseResource(href, lang, callback, function() {
console.warn(href + ' not found.');
// lang not found, used default resource instead
console.warn('"' + lang + '" resource not found');
gLanguage = '';
// Resource not loaded, but we still need to call the callback.
callback();
});
};
}
for (var i = 0; i < langCount; i++) {
var resource = new L10nResourceLink(langLinks[i]);
resource.load(lang, onResourceLoaded);
}
}
// clear all l10n data
function clear() {
gL10nData = {};
gTextData = '';
gLanguage = '';
// TODO: clear all non predefined macros.
// There's no such macro /yet/ but we're planning to have some...
}
/**
* Get rules for plural forms (shared with JetPack), see:
* http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
* https://github.com/mozilla/addon-sdk/blob/master/python-lib/plural-rules-generator.p
*
* @param {string} lang
* locale (language) used.
*
* @return {Function}
* returns a function that gives the plural form name for a given integer:
* var fun = getPluralRules('en');
* fun(1) -> 'one'
* fun(0) -> 'other'
* fun(1000) -> 'other'.
*/
function getPluralRules(lang) {
var locales2rules = {
'af': 3,
'ak': 4,
'am': 4,
'ar': 1,
'asa': 3,
'az': 0,
'be': 11,
'bem': 3,
'bez': 3,
'bg': 3,
'bh': 4,
'bm': 0,
'bn': 3,
'bo': 0,
'br': 20,
'brx': 3,
'bs': 11,
'ca': 3,
'cgg': 3,
'chr': 3,
'cs': 12,
'cy': 17,
'da': 3,
'de': 3,
'dv': 3,
'dz': 0,
'ee': 3,
'el': 3,
'en': 3,
'eo': 3,
'es': 3,
'et': 3,
'eu': 3,
'fa': 0,
'ff': 5,
'fi': 3,
'fil': 4,
'fo': 3,
'fr': 5,
'fur': 3,
'fy': 3,
'ga': 8,
'gd': 24,
'gl': 3,
'gsw': 3,
'gu': 3,
'guw': 4,
'gv': 23,
'ha': 3,
'haw': 3,
'he': 2,
'hi': 4,
'hr': 11,
'hu': 0,
'id': 0,
'ig': 0,
'ii': 0,
'is': 3,
'it': 3,
'iu': 7,
'ja': 0,
'jmc': 3,
'jv': 0,
'ka': 0,
'kab': 5,
'kaj': 3,
'kcg': 3,
'kde': 0,
'kea': 0,
'kk': 3,
'kl': 3,
'km': 0,
'kn': 0,
'ko': 0,
'ksb': 3,
'ksh': 21,
'ku': 3,
'kw': 7,
'lag': 18,
'lb': 3,
'lg': 3,
'ln': 4,
'lo': 0,
'lt': 10,
'lv': 6,
'mas': 3,
'mg': 4,
'mk': 16,
'ml': 3,
'mn': 3,
'mo': 9,
'mr': 3,
'ms': 0,
'mt': 15,
'my': 0,
'nah': 3,
'naq': 7,
'nb': 3,
'nd': 3,
'ne': 3,
'nl': 3,
'nn': 3,
'no': 3,
'nr': 3,
'nso': 4,
'ny': 3,
'nyn': 3,
'om': 3,
'or': 3,
'pa': 3,
'pap': 3,
'pl': 13,
'ps': 3,
'pt': 3,
'rm': 3,
'ro': 9,
'rof': 3,
'ru': 11,
'rwk': 3,
'sah': 0,
'saq': 3,
'se': 7,
'seh': 3,
'ses': 0,
'sg': 0,
'sh': 11,
'shi': 19,
'sk': 12,
'sl': 14,
'sma': 7,
'smi': 7,
'smj': 7,
'smn': 7,
'sms': 7,
'sn': 3,
'so': 3,
'sq': 3,
'sr': 11,
'ss': 3,
'ssy': 3,
'st': 3,
'sv': 3,
'sw': 3,
'syr': 3,
'ta': 3,
'te': 3,
'teo': 3,
'th': 0,
'ti': 4,
'tig': 3,
'tk': 3,
'tl': 4,
'tn': 3,
'to': 0,
'tr': 0,
'ts': 3,
'tzm': 22,
'uk': 11,
'ur': 3,
've': 3,
'vi': 0,
'vun': 3,
'wa': 4,
'wae': 3,
'wo': 0,
'xh': 3,
'xog': 3,
'yo': 0,
'zh': 0,
'zu': 3
};
// utility functions for plural rules methods
function isIn(n, list) {
return list.indexOf(n) !== -1;
}
function isBetween(n, start, end) {
return start <= n && n <= end;
}
// list of all plural rules methods:
// map an integer to the plural form name to use
var pluralRules = {
'0': function(n) {
return 'other';
},
'1': function(n) {
if ((isBetween((n % 100), 3, 10)))
return 'few';
if (n === 0)
return 'zero';
if ((isBetween((n % 100), 11, 99)))
return 'many';
if (n == 2)
return 'two';
if (n == 1)
return 'one';
return 'other';
},
'2': function(n) {
if (n !== 0 && (n % 10) === 0)
return 'many';
if (n == 2)
return 'two';
if (n == 1)
return 'one';
return 'other';
},
'3': function(n) {
if (n == 1)
return 'one';
return 'other';
},
'4': function(n) {
if ((isBetween(n, 0, 1)))
return 'one';
return 'other';
},
'5': function(n) {
if ((isBetween(n, 0, 2)) && n != 2)
return 'one';
return 'other';
},
'6': function(n) {
if (n === 0)
return 'zero';
if ((n % 10) == 1 && (n % 100) != 11)
return 'one';
return 'other';
},
'7': function(n) {
if (n == 2)
return 'two';
if (n == 1)
return 'one';
return 'other';
},
'8': function(n) {
if ((isBetween(n, 3, 6)))
return 'few';
if ((isBetween(n, 7, 10)))
return 'many';
if (n == 2)
return 'two';
if (n == 1)
return 'one';
return 'other';
},
'9': function(n) {
if (n === 0 || n != 1 && (isBetween((n % 100), 1, 19)))
return 'few';
if (n == 1)
return 'one';
return 'other';
},
'10': function(n) {
if ((isBetween((n % 10), 2, 9)) && !(isBetween((n % 100), 11, 19)))
return 'few';
if ((n % 10) == 1 && !(isBetween((n % 100), 11, 19)))
return 'one';
return 'other';
},
'11': function(n) {
if ((isBetween((n % 10), 2, 4)) && !(isBetween((n % 100), 12, 14)))
return 'few';
if ((n % 10) === 0 ||
(isBetween((n % 10), 5, 9)) ||
(isBetween((n % 100), 11, 14)))
return 'many';
if ((n % 10) == 1 && (n % 100) != 11)
return 'one';
return 'other';
},
'12': function(n) {
if ((isBetween(n, 2, 4)))
return 'few';
if (n == 1)
return 'one';
return 'other';
},
'13': function(n) {
if ((isBetween((n % 10), 2, 4)) && !(isBetween((n % 100), 12, 14)))
return 'few';
if (n != 1 && (isBetween((n % 10), 0, 1)) ||
(isBetween((n % 10), 5, 9)) ||
(isBetween((n % 100), 12, 14)))
return 'many';
if (n == 1)
return 'one';
return 'other';
},
'14': function(n) {
if ((isBetween((n % 100), 3, 4)))
return 'few';
if ((n % 100) == 2)
return 'two';
if ((n % 100) == 1)
return 'one';
return 'other';
},
'15': function(n) {
if (n === 0 || (isBetween((n % 100), 2, 10)))
return 'few';
if ((isBetween((n % 100), 11, 19)))
return 'many';
if (n == 1)
return 'one';
return 'other';
},
'16': function(n) {
if ((n % 10) == 1 && n != 11)
return 'one';
return 'other';
},
'17': function(n) {
if (n == 3)
return 'few';
if (n === 0)
return 'zero';
if (n == 6)
return 'many';
if (n == 2)
return 'two';
if (n == 1)
return 'one';
return 'other';
},
'18': function(n) {
if (n === 0)
return 'zero';
if ((isBetween(n, 0, 2)) && n !== 0 && n != 2)
return 'one';
return 'other';
},
'19': function(n) {
if ((isBetween(n, 2, 10)))
return 'few';
if ((isBetween(n, 0, 1)))
return 'one';
return 'other';
},
'20': function(n) {
if ((isBetween((n % 10), 3, 4) || ((n % 10) == 9)) && !(
isBetween((n % 100), 10, 19) ||
isBetween((n % 100), 70, 79) ||
isBetween((n % 100), 90, 99)
))
return 'few';
if ((n % 1000000) === 0 && n !== 0)
return 'many';
if ((n % 10) == 2 && !isIn((n % 100), [12, 72, 92]))
return 'two';
if ((n % 10) == 1 && !isIn((n % 100), [11, 71, 91]))
return 'one';
return 'other';
},
'21': function(n) {
if (n === 0)
return 'zero';
if (n == 1)
return 'one';
return 'other';
},
'22': function(n) {
if ((isBetween(n, 0, 1)) || (isBetween(n, 11, 99)))
return 'one';
return 'other';
},
'23': function(n) {
if ((isBetween((n % 10), 1, 2)) || (n % 20) === 0)
return 'one';
return 'other';
},
'24': function(n) {
if ((isBetween(n, 3, 10) || isBetween(n, 13, 19)))
return 'few';
if (isIn(n, [2, 12]))
return 'two';
if (isIn(n, [1, 11]))
return 'one';
return 'other';
}
};
// return a function that gives the plural form name for a given integer
var index = locales2rules[lang.replace(/-.*$/, '')];
if (!(index in pluralRules)) {
console.warn('plural form unknown for [' + lang + ']');
return function() { return 'other'; };
}
return pluralRules[index];
}
// pre-defined 'plural' macro
gMacros.plural = function(str, param, key, prop) {
var n = parseFloat(param);
if (isNaN(n))
return str;
// TODO: support other properties (l20n still doesn't...)
if (prop != gTextProp)
return str;
// initialize _pluralRules
if (!gMacros._pluralRules) {
gMacros._pluralRules = getPluralRules(gLanguage);
}
var index = '[' + gMacros._pluralRules(n) + ']';
// try to find a [zero|one|two] key if it's defined
if (n === 0 && (key + '[zero]') in gL10nData) {
str = gL10nData[key + '[zero]'][prop];
} else if (n == 1 && (key + '[one]') in gL10nData) {
str = gL10nData[key + '[one]'][prop];
} else if (n == 2 && (key + '[two]') in gL10nData) {
str = gL10nData[key + '[two]'][prop];
} else if ((key + index) in gL10nData) {
str = gL10nData[key + index][prop];
} else if ((key + '[other]') in gL10nData) {
str = gL10nData[key + '[other]'][prop];
}
return str;
};
/**
* l10n dictionary functions
*/
// fetch an l10n object, warn if not found, apply `args' if possible
function getL10nData(key, args, fallback) {
var data = gL10nData[key];
if (!data) {
console.warn('#' + key + ' is undefined.');
if (!fallback) {
return null;
}
data = fallback;
}
/** This is where l10n expressions should be processed.
* The plan is to support C-style expressions from the l20n project;
* until then, only two kinds of simple expressions are supported:
* {[ index ]} and {{ arguments }}.
*/
var rv = {};
for (var prop in data) {
var str = data[prop];
str = substIndexes(str, args, key, prop);
str = substArguments(str, args, key);
rv[prop] = str;
}
return rv;
}
// replace {[macros]} with their values
function substIndexes(str, args, key, prop) {
var reIndex = /\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/;
var reMatch = reIndex.exec(str);
if (!reMatch || !reMatch.length)
return str;
// an index/macro has been found
// Note: at the moment, only one parameter is supported
var macroName = reMatch[1];
var paramName = reMatch[2];
var param;
if (args && paramName in args) {
param = args[paramName];
} else if (paramName in gL10nData) {
param = gL10nData[paramName];
}
// there's no macro parser yet: it has to be defined in gMacros
if (macroName in gMacros) {
var macro = gMacros[macroName];
str = macro(str, param, key, prop);
}
return str;
}
// replace {{arguments}} with their values
function substArguments(str, args, key) {
var reArgs = /\{\{\s*(.+?)\s*\}\}/g;
return str.replace(reArgs, function(matched_text, arg) {
if (args && arg in args) {
return args[arg];
}
if (arg in gL10nData) {
return gL10nData[arg];
}
console.log('argument {{' + arg + '}} for #' + key + ' is undefined.');
return matched_text;
});
}
// translate an HTML element
function translateElement(element) {
var l10n = getL10nAttributes(element);
if (!l10n.id)
return;
// get the related l10n object
var data = getL10nData(l10n.id, l10n.args);
if (!data) {
console.warn('#' + l10n.id + ' is undefined.');
return;
}
// translate element (TODO: security checks?)
if (data[gTextProp]) { // XXX
if (getChildElementCount(element) === 0) {
element[gTextProp] = data[gTextProp];
} else {
// this element has element children: replace the content of the first
// (non-empty) child textNode and clear other child textNodes
var children = element.childNodes;
var found = false;
for (var i = 0, l = children.length; i < l; i++) {
if (children[i].nodeType === 3 && /\S/.test(children[i].nodeValue)) {
if (found) {
children[i].nodeValue = '';
} else {
children[i].nodeValue = data[gTextProp];
found = true;
}
}
}
// if no (non-empty) textNode is found, insert a textNode before the
// first element child.
if (!found) {
var textNode = document.createTextNode(data[gTextProp]);
element.insertBefore(textNode, element.firstChild);
}
}
delete data[gTextProp];
}
for (var k in data) {
element[k] = data[k];
}
}
// webkit browsers don't currently support 'children' on SVG elements...
function getChildElementCount(element) {
if (element.children) {
return element.children.length;
}
if (typeof element.childElementCount !== 'undefined') {
return element.childElementCount;
}
var count = 0;
for (var i = 0; i < element.childNodes.length; i++) {
count += element.nodeType === 1 ? 1 : 0;
}
return count;
}
// translate an HTML subtree
function translateFragment(element) {
element = element || document.documentElement;
// check all translatable children (= w/ a `data-l10n-id' attribute)
var children = getTranslatableChildren(element);
var elementCount = children.length;
for (var i = 0; i < elementCount; i++) {
translateElement(children[i]);
}
// translate element itself if necessary
translateElement(element);
}
return {
// get a localized string
get: function(key, args, fallbackString) {
var index = key.lastIndexOf('.');
var prop = gTextProp;
if (index > 0) { // An attribute has been specified
prop = key.substr(index + 1);
key = key.substring(0, index);
}
var fallback;
if (fallbackString) {
fallback = {};
fallback[prop] = fallbackString;
}
var data = getL10nData(key, args, fallback);
if (data && prop in data) {
return data[prop];
}
return '{{' + key + '}}';
},
// debug
getData: function() { return gL10nData; },
getText: function() { return gTextData; },
// get|set the document language
getLanguage: function() { return gLanguage; },
setLanguage: function(lang, callback) {
loadLocale(lang, function() {
if (callback)
callback();
translateFragment();
});
},
// get the direction (ltr|rtl) of the current language
getDirection: function() {
// http://www.w3.org/International/questions/qa-scripts
// Arabic, Hebrew, Farsi, Pashto, Urdu
var rtlList = ['ar', 'he', 'fa', 'ps', 'ur'];
var shortCode = gLanguage.split('-', 1)[0];
return (rtlList.indexOf(shortCode) >= 0) ? 'rtl' : 'ltr';
},
// translate an element or document fragment
translate: translateFragment,
// this can be used to prevent race conditions
getReadyState: function() { return gReadyState; },
ready: function(callback) {
if (!callback) {
return;
} else if (gReadyState == 'complete' || gReadyState == 'interactive') {
window.setTimeout(function() {
callback();
});
} else if (document.addEventListener) {
document.addEventListener('localized', function once() {
document.removeEventListener('localized', once);
callback();
});
}
}
};
}) (window, document);
wget 'https://sme10.lists2.roe3.org/kodbox/plugins/pdfjs/static/pdfjs/web/viewer.css'
/* Copyright 2014 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.messageBar{
--closing-button-icon:url(images/messageBar_closingButton.svg);
--message-bar-close-button-color:var(--text-primary-color);
--message-bar-close-button-color-hover:var(--text-primary-color);
--message-bar-close-button-border-radius:4px;
--message-bar-close-button-border:none;
--csstools-light-dark-toggle--31:var(--csstools-color-scheme--light) rgb(251 251 254 / 0.14);
--message-bar-close-button-hover-bg-color:var(--csstools-light-dark-toggle--31, rgb(21 20 26 / 0.14));
--csstools-light-dark-toggle--32:var(--csstools-color-scheme--light) rgb(251 251 254 / 0.21);
--message-bar-close-button-active-bg-color:var(--csstools-light-dark-toggle--32, rgb(21 20 26 / 0.21));
--csstools-light-dark-toggle--33:var(--csstools-color-scheme--light) rgb(251 251 254 / 0.07);
--message-bar-close-button-focus-bg-color:var(--csstools-light-dark-toggle--33, rgb(21 20 26 / 0.07));
}
@supports (color: light-dark(red, red)) and (color: rgb(0 0 0 / 0)){
.messageBar{
--message-bar-close-button-hover-bg-color:light-dark(
rgb(21 20 26 / 0.14),
rgb(251 251 254 / 0.14)
);
--message-bar-close-button-active-bg-color:light-dark(
rgb(21 20 26 / 0.21),
rgb(251 251 254 / 0.21)
);
--message-bar-close-button-focus-bg-color:light-dark(
rgb(21 20 26 / 0.07),
rgb(251 251 254 / 0.07)
);
}
}
@supports not (color: light-dark(tan, tan)){
.messageBar *{
--csstools-light-dark-toggle--31:var(--csstools-color-scheme--light) rgb(251 251 254 / 0.14);
--message-bar-close-button-hover-bg-color:var(--csstools-light-dark-toggle--31, rgb(21 20 26 / 0.14));
--csstools-light-dark-toggle--32:var(--csstools-color-scheme--light) rgb(251 251 254 / 0.21);
--message-bar-close-button-active-bg-color:var(--csstools-light-dark-toggle--32, rgb(21 20 26 / 0.21));
--csstools-light-dark-toggle--33:var(--csstools-color-scheme--light) rgb(251 251 254 / 0.07);
--message-bar-close-button-focus-bg-color:var(--csstools-light-dark-toggle--33, rgb(21 20 26 / 0.07));
}
}
@media screen and (forced-colors: active){
.messageBar{
--message-bar-close-button-color:ButtonText;
--message-bar-close-button-border:1px solid ButtonText;
--message-bar-close-button-hover-bg-color:ButtonText;
--message-bar-close-button-active-bg-color:ButtonText;
--message-bar-close-button-focus-bg-color:ButtonText;
--message-bar-close-button-color-hover:HighlightText;
}
}
.messageBar{
display:flex;
position:relative;
padding:8px 8px 8px 16px;
flex-direction:column;
justify-content:center;
align-items:center;
gap:8px;
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
border-radius:4px;
border:1px solid var(--message-bar-border-color);
background:var(--message-bar-bg-color);
color:var(--message-bar-fg-color);
}
.messageBar > div{
display:flex;
align-items:flex-start;
gap:8px;
align-self:stretch;
}
:is(.messageBar > div)::before{
content:"";
display:inline-block;
width:16px;
height:16px;
-webkit-mask-image:var(--message-bar-icon);
mask-image:var(--message-bar-icon);
-webkit-mask-size:cover;
mask-size:cover;
background-color:var(--message-bar-icon-color);
flex-shrink:0;
}
.messageBar button{
cursor:pointer;
}
:is(.messageBar button):focus-visible{
outline:var(--focus-ring-outline);
outline-offset:2px;
}
.messageBar .closeButton{
width:32px;
height:32px;
background:none;
border-radius:var(--message-bar-close-button-border-radius);
border:var(--message-bar-close-button-border);
display:flex;
align-items:center;
justify-content:center;
}
:is(.messageBar .closeButton)::before{
content:"";
display:inline-block;
width:16px;
height:16px;
-webkit-mask-image:var(--closing-button-icon);
mask-image:var(--closing-button-icon);
-webkit-mask-size:cover;
mask-size:cover;
background-color:var(--message-bar-close-button-color);
}
:is(.messageBar .closeButton):is(:hover,:active,:focus)::before{
background-color:var(--message-bar-close-button-color-hover);
}
:is(.messageBar .closeButton):hover{
background-color:var(--message-bar-close-button-hover-bg-color);
}
:is(.messageBar .closeButton):active{
background-color:var(--message-bar-close-button-active-bg-color);
}
:is(.messageBar .closeButton):focus{
background-color:var(--message-bar-close-button-focus-bg-color);
}
:is(.messageBar .closeButton) > span{
display:inline-block;
width:0;
height:0;
overflow:hidden;
}
#editorUndoBar{
--csstools-light-dark-toggle--34:var(--csstools-color-scheme--light) #fbfbfe;
--text-primary-color:var(--csstools-light-dark-toggle--34, #15141a);
--message-bar-icon:url(images/messageBar_info.svg);
--csstools-light-dark-toggle--35:var(--csstools-color-scheme--light) #73a7f3;
--message-bar-icon-color:var(--csstools-light-dark-toggle--35, #0060df);
--csstools-light-dark-toggle--36:var(--csstools-color-scheme--light) #003070;
--message-bar-bg-color:var(--csstools-light-dark-toggle--36, #deeafc);
--message-bar-fg-color:var(--text-primary-color);
--csstools-light-dark-toggle--37:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.08);
--message-bar-border-color:var(--csstools-light-dark-toggle--37, rgb(0 0 0 / 0.08));
--csstools-light-dark-toggle--38:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.08);
--undo-button-bg-color:var(--csstools-light-dark-toggle--38, rgb(21 20 26 / 0.07));
--csstools-light-dark-toggle--39:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.14);
--undo-button-bg-color-hover:var(--csstools-light-dark-toggle--39, rgb(21 20 26 / 0.14));
--csstools-light-dark-toggle--40:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.21);
--undo-button-bg-color-active:var(--csstools-light-dark-toggle--40, rgb(21 20 26 / 0.21));
--csstools-light-dark-toggle--41:var(--csstools-color-scheme--light) #0df;
--undo-button-border:1px solid var(--csstools-light-dark-toggle--41, #0060df);
--undo-button-fg-color:var(--message-bar-fg-color);
--undo-button-fg-color-hover:var(--undo-button-fg-color);
--undo-button-fg-color-active:var(--undo-button-fg-color);
}
@supports (color: light-dark(red, red)){
#editorUndoBar{
--text-primary-color:light-dark(#15141a, #fbfbfe);
--message-bar-icon-color:light-dark(#0060df, #73a7f3);
--message-bar-bg-color:light-dark(#deeafc, #003070);
}
}
@supports (color: light-dark(red, red)) and (color: rgb(0 0 0 / 0)){
#editorUndoBar{
--message-bar-border-color:light-dark(
rgb(0 0 0 / 0.08),
rgb(255 255 255 / 0.08)
);
--undo-button-bg-color:light-dark(
rgb(21 20 26 / 0.07),
rgb(255 255 255 / 0.08)
);
--undo-button-bg-color-hover:light-dark(
rgb(21 20 26 / 0.14),
rgb(255 255 255 / 0.14)
);
--undo-button-bg-color-active:light-dark(
rgb(21 20 26 / 0.21),
rgb(255 255 255 / 0.21)
);
}
}
@supports (color: light-dark(red, red)){
#editorUndoBar{
--undo-button-border:1px solid light-dark(#0060df, #0df);
}
}
@supports not (color: light-dark(tan, tan)){
#editorUndoBar *{
--csstools-light-dark-toggle--34:var(--csstools-color-scheme--light) #fbfbfe;
--text-primary-color:var(--csstools-light-dark-toggle--34, #15141a);
--csstools-light-dark-toggle--35:var(--csstools-color-scheme--light) #73a7f3;
--message-bar-icon-color:var(--csstools-light-dark-toggle--35, #0060df);
--csstools-light-dark-toggle--36:var(--csstools-color-scheme--light) #003070;
--message-bar-bg-color:var(--csstools-light-dark-toggle--36, #deeafc);
--csstools-light-dark-toggle--37:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.08);
--message-bar-border-color:var(--csstools-light-dark-toggle--37, rgb(0 0 0 / 0.08));
--csstools-light-dark-toggle--38:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.08);
--undo-button-bg-color:var(--csstools-light-dark-toggle--38, rgb(21 20 26 / 0.07));
--csstools-light-dark-toggle--39:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.14);
--undo-button-bg-color-hover:var(--csstools-light-dark-toggle--39, rgb(21 20 26 / 0.14));
--csstools-light-dark-toggle--40:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.21);
--undo-button-bg-color-active:var(--csstools-light-dark-toggle--40, rgb(21 20 26 / 0.21));
--csstools-light-dark-toggle--41:var(--csstools-color-scheme--light) #0df;
--undo-button-border:1px solid var(--csstools-light-dark-toggle--41, #0060df);
}
}
@media screen and (forced-colors: active){
#editorUndoBar{
--text-primary-color:CanvasText;
--message-bar-icon-color:CanvasText;
--message-bar-bg-color:Canvas;
--message-bar-border-color:CanvasText;
--undo-button-bg-color:ButtonText;
--undo-button-bg-color-hover:SelectedItem;
--undo-button-bg-color-active:SelectedItem;
--undo-button-fg-color:ButtonFace;
--undo-button-fg-color-hover:SelectedItemText;
--undo-button-fg-color-active:SelectedItemText;
--undo-button-border:none;
}
}
#editorUndoBar{
position:fixed;
top:50px;
left:50%;
transform:translateX(-50%);
z-index:10;
padding-block:8px;
padding-inline:16px 8px;
font:menu;
font-size:15px;
cursor:default;
}
#editorUndoBar button{
cursor:pointer;
}
#editorUndoBar #editorUndoBarUndoButton{
border-radius:4px;
font-weight:590;
line-height:19.5px;
color:var(--undo-button-fg-color);
border:var(--undo-button-border);
padding:4px 16px;
margin-inline-start:8px;
height:32px;
background-color:var(--undo-button-bg-color);
}
:is(#editorUndoBar #editorUndoBarUndoButton):hover{
background-color:var(--undo-button-bg-color-hover);
color:var(--undo-button-fg-color-hover);
}
:is(#editorUndoBar #editorUndoBarUndoButton):active{
background-color:var(--undo-button-bg-color-active);
color:var(--undo-button-fg-color-active);
}
#editorUndoBar > div{
align-items:center;
}
.dialog{
--csstools-light-dark-toggle--42:var(--csstools-color-scheme--light) #1c1b22;
--dialog-bg-color:var(--csstools-light-dark-toggle--42, white);
--csstools-light-dark-toggle--43:var(--csstools-color-scheme--light) #1c1b22;
--dialog-border-color:var(--csstools-light-dark-toggle--43, white);
--csstools-light-dark-toggle--44:var(--csstools-color-scheme--light) #15141a;
--dialog-shadow:0 2px 14px 0 var(--csstools-light-dark-toggle--44, rgb(58 57 68 / 0.2));
--csstools-light-dark-toggle--45:var(--csstools-color-scheme--light) #fbfbfe;
--text-primary-color:var(--csstools-light-dark-toggle--45, #15141a);
--csstools-light-dark-toggle--46:var(--csstools-color-scheme--light) #cfcfd8;
--text-secondary-color:var(--csstools-light-dark-toggle--46, #5b5b66);
--hover-filter:brightness(0.9);
--csstools-light-dark-toggle--47:var(--csstools-color-scheme--light) #0df;
--link-fg-color:var(--csstools-light-dark-toggle--47, #0060df);
--csstools-light-dark-toggle--48:var(--csstools-color-scheme--light) #80ebff;
--link-hover-fg-color:var(--csstools-light-dark-toggle--48, #0250bb);
--csstools-light-dark-toggle--49:var(--csstools-color-scheme--light) #52525e;
--separator-color:var(--csstools-light-dark-toggle--49, #f0f0f4);
--textarea-border-color:#8f8f9d;
--csstools-light-dark-toggle--50:var(--csstools-color-scheme--light) #42414d;
--textarea-bg-color:var(--csstools-light-dark-toggle--50, white);
--textarea-fg-color:var(--text-secondary-color);
--csstools-light-dark-toggle--51:var(--csstools-color-scheme--light) #2b2a33;
--radio-bg-color:var(--csstools-light-dark-toggle--51, #f0f0f4);
--csstools-light-dark-toggle--52:var(--csstools-color-scheme--light) #15141a;
--radio-checked-bg-color:var(--csstools-light-dark-toggle--52, #fbfbfe);
--radio-border-color:#8f8f9d;
--csstools-light-dark-toggle--53:var(--csstools-color-scheme--light) #0df;
--radio-checked-border-color:var(--csstools-light-dark-toggle--53, #0060df);
--csstools-light-dark-toggle--54:var(--csstools-color-scheme--light) rgb(251 251 254 / 0.07);
--button-secondary-bg-color:var(--csstools-light-dark-toggle--54, rgb(21 20 26 / 0.07));
--button-secondary-fg-color:var(--text-primary-color);
--button-secondary-border-color:var(--button-secondary-bg-color);
--csstools-light-dark-toggle--55:var(--csstools-color-scheme--light) rgb(251 251 254 / 0.21);
--button-secondary-active-bg-color:var(--csstools-light-dark-toggle--55, rgb(21 20 26 / 0.21));
--button-secondary-active-fg-color:var(--button-secondary-fg-color);
--button-secondary-active-border-color:var(--button-secondary-bg-color);
--csstools-light-dark-toggle--56:var(--csstools-color-scheme--light) rgb(251 251 254 / 0.14);
--button-secondary-hover-bg-color:var(--csstools-light-dark-toggle--56, rgb(21 20 26 / 0.14));
--button-secondary-hover-fg-color:var(--button-secondary-fg-color);
--button-secondary-hover-border-color:var(--button-secondary-hover-bg-color);
--button-secondary-disabled-bg-color:var(--button-secondary-bg-color);
--button-secondary-disabled-border-color:var(
--button-secondary-border-color
);
--button-secondary-disabled-fg-color:var(--button-secondary-fg-color);
--csstools-light-dark-toggle--57:var(--csstools-color-scheme--light) #0df;
--button-primary-bg-color:var(--csstools-light-dark-toggle--57, #0060df);
--csstools-light-dark-toggle--58:var(--csstools-color-scheme--light) #15141a;
--button-primary-fg-color:var(--csstools-light-dark-toggle--58, #fbfbfe);
--button-primary-border-color:var(--button-primary-bg-color);
--csstools-light-dark-toggle--59:var(--csstools-color-scheme--light) #aaf2ff;
--button-primary-active-bg-color:var(--csstools-light-dark-toggle--59, #054096);
--button-primary-active-fg-color:var(--button-primary-fg-color);
--button-primary-active-border-color:var(--button-primary-active-bg-color);
--csstools-light-dark-toggle--60:var(--csstools-color-scheme--light) #80ebff;
--button-primary-hover-bg-color:var(--csstools-light-dark-toggle--60, #0250bb);
--button-primary-hover-fg-color:var(--button-primary-fg-color);
--button-primary-hover-border-color:var(--button-primary-hover-bg-color);
--button-primary-disabled-bg-color:var(--button-primary-bg-color);
--button-primary-disabled-border-color:var(--button-primary-border-color);
--button-primary-disabled-fg-color:var(--button-primary-fg-color);
--button-disabled-opacity:0.4;
--csstools-light-dark-toggle--61:var(--csstools-color-scheme--light) #42414d;
--input-text-bg-color:var(--csstools-light-dark-toggle--61, white);
--input-text-fg-color:var(--text-primary-color);
}
@supports (color: light-dark(red, red)){
.dialog{
--dialog-bg-color:light-dark(white, #1c1b22);
--dialog-border-color:light-dark(white, #1c1b22);
}
}
@supports (color: light-dark(red, red)) and (color: rgb(0 0 0 / 0)){
.dialog{
--dialog-shadow:0 2px 14px 0 light-dark(rgb(58 57 68 / 0.2), #15141a);
}
}
@supports (color: light-dark(red, red)){
.dialog{
--text-primary-color:light-dark(#15141a, #fbfbfe);
--text-secondary-color:light-dark(#5b5b66, #cfcfd8);
--link-fg-color:light-dark(#0060df, #0df);
--link-hover-fg-color:light-dark(#0250bb, #80ebff);
--separator-color:light-dark(#f0f0f4, #52525e);
--textarea-bg-color:light-dark(white, #42414d);
--radio-bg-color:light-dark(#f0f0f4, #2b2a33);
--radio-checked-bg-color:light-dark(#fbfbfe, #15141a);
--radio-checked-border-color:light-dark(#0060df, #0df);
}
}
@supports (color: light-dark(red, red)) and (color: rgb(0 0 0 / 0)){
.dialog{
--button-secondary-bg-color:light-dark(
rgb(21 20 26 / 0.07),
rgb(251 251 254 / 0.07)
);
--button-secondary-active-bg-color:light-dark(
rgb(21 20 26 / 0.21),
rgb(251 251 254 / 0.21)
);
--button-secondary-hover-bg-color:light-dark(
rgb(21 20 26 / 0.14),
rgb(251 251 254 / 0.14)
);
}
}
@supports (color: light-dark(red, red)){
.dialog{
--button-primary-bg-color:light-dark(#0060df, #0df);
--button-primary-fg-color:light-dark(#fbfbfe, #15141a);
--button-primary-active-bg-color:light-dark(#054096, #aaf2ff);
--button-primary-hover-bg-color:light-dark(#0250bb, #80ebff);
--input-text-bg-color:light-dark(white, #42414d);
}
}
@supports not (color: light-dark(tan, tan)){
.dialog *{
--csstools-light-dark-toggle--42:var(--csstools-color-scheme--light) #1c1b22;
--dialog-bg-color:var(--csstools-light-dark-toggle--42, white);
--csstools-light-dark-toggle--43:var(--csstools-color-scheme--light) #1c1b22;
--dialog-border-color:var(--csstools-light-dark-toggle--43, white);
--csstools-light-dark-toggle--44:var(--csstools-color-scheme--light) #15141a;
--dialog-shadow:0 2px 14px 0 var(--csstools-light-dark-toggle--44, rgb(58 57 68 / 0.2));
--csstools-light-dark-toggle--45:var(--csstools-color-scheme--light) #fbfbfe;
--text-primary-color:var(--csstools-light-dark-toggle--45, #15141a);
--csstools-light-dark-toggle--46:var(--csstools-color-scheme--light) #cfcfd8;
--text-secondary-color:var(--csstools-light-dark-toggle--46, #5b5b66);
--csstools-light-dark-toggle--47:var(--csstools-color-scheme--light) #0df;
--link-fg-color:var(--csstools-light-dark-toggle--47, #0060df);
--csstools-light-dark-toggle--48:var(--csstools-color-scheme--light) #80ebff;
--link-hover-fg-color:var(--csstools-light-dark-toggle--48, #0250bb);
--csstools-light-dark-toggle--49:var(--csstools-color-scheme--light) #52525e;
--separator-color:var(--csstools-light-dark-toggle--49, #f0f0f4);
--csstools-light-dark-toggle--50:var(--csstools-color-scheme--light) #42414d;
--textarea-bg-color:var(--csstools-light-dark-toggle--50, white);
--csstools-light-dark-toggle--51:var(--csstools-color-scheme--light) #2b2a33;
--radio-bg-color:var(--csstools-light-dark-toggle--51, #f0f0f4);
--csstools-light-dark-toggle--52:var(--csstools-color-scheme--light) #15141a;
--radio-checked-bg-color:var(--csstools-light-dark-toggle--52, #fbfbfe);
--csstools-light-dark-toggle--53:var(--csstools-color-scheme--light) #0df;
--radio-checked-border-color:var(--csstools-light-dark-toggle--53, #0060df);
--csstools-light-dark-toggle--54:var(--csstools-color-scheme--light) rgb(251 251 254 / 0.07);
--button-secondary-bg-color:var(--csstools-light-dark-toggle--54, rgb(21 20 26 / 0.07));
--csstools-light-dark-toggle--55:var(--csstools-color-scheme--light) rgb(251 251 254 / 0.21);
--button-secondary-active-bg-color:var(--csstools-light-dark-toggle--55, rgb(21 20 26 / 0.21));
--csstools-light-dark-toggle--56:var(--csstools-color-scheme--light) rgb(251 251 254 / 0.14);
--button-secondary-hover-bg-color:var(--csstools-light-dark-toggle--56, rgb(21 20 26 / 0.14));
--csstools-light-dark-toggle--57:var(--csstools-color-scheme--light) #0df;
--button-primary-bg-color:var(--csstools-light-dark-toggle--57, #0060df);
--csstools-light-dark-toggle--58:var(--csstools-color-scheme--light) #15141a;
--button-primary-fg-color:var(--csstools-light-dark-toggle--58, #fbfbfe);
--csstools-light-dark-toggle--59:var(--csstools-color-scheme--light) #aaf2ff;
--button-primary-active-bg-color:var(--csstools-light-dark-toggle--59, #054096);
--csstools-light-dark-toggle--60:var(--csstools-color-scheme--light) #80ebff;
--button-primary-hover-bg-color:var(--csstools-light-dark-toggle--60, #0250bb);
--csstools-light-dark-toggle--61:var(--csstools-color-scheme--light) #42414d;
--input-text-bg-color:var(--csstools-light-dark-toggle--61, white);
}
}
@media (prefers-color-scheme: dark){
.dialog{
--hover-filter:brightness(1.4);
--button-disabled-opacity:0.6;
}
}
@media screen and (forced-colors: active){
.dialog{
--dialog-bg-color:Canvas;
--dialog-border-color:CanvasText;
--dialog-shadow:none;
--text-primary-color:CanvasText;
--text-secondary-color:CanvasText;
--hover-filter:none;
--link-fg-color:LinkText;
--link-hover-fg-color:LinkText;
--separator-color:CanvasText;
--textarea-border-color:ButtonBorder;
--textarea-bg-color:Field;
--textarea-fg-color:ButtonText;
--radio-bg-color:ButtonFace;
--radio-checked-bg-color:ButtonFace;
--radio-border-color:ButtonText;
--radio-checked-border-color:ButtonText;
--button-secondary-bg-color:HighlightText;
--button-secondary-fg-color:ButtonText;
--button-secondary-border-color:ButtonText;
--button-secondary-active-bg-color:HighlightText;
--button-secondary-active-fg-color:SelectedItem;
--button-secondary-active-border-color:ButtonText;
--button-secondary-hover-bg-color:HighlightText;
--button-secondary-hover-fg-color:SelectedItem;
--button-secondary-hover-border-color:SelectedItem;
--button-secondary-disabled-fg-color:GrayText;
--button-secondary-disabled-border-color:GrayText;
--button-primary-bg-color:ButtonText;
--button-primary-fg-color:HighlightText;
--button-primary-border-color:ButtonText;
--button-primary-active-bg-color:SelectedItem;
--button-primary-active-fg-color:HighlightText;
--button-primary-active-border-color:ButtonText;
--button-primary-hover-bg-color:SelectedItem;
--button-primary-hover-fg-color:HighlightText;
--button-primary-hover-border-color:SelectedItem;
--button-primary-disabled-bg-color:GrayText;
--button-primary-disabled-fg-color:ButtonFace;
--button-primary-disabled-border-color:GrayText;
--button-disabled-opacity:1;
--input-text-bg-color:HighlightText;
--input-text-fg-color:FieldText;
}
}
.dialog{
font:message-box;
font-size:13px;
font-weight:400;
line-height:150%;
border-radius:4px;
padding:12px 16px;
border:1px solid var(--dialog-border-color);
background:var(--dialog-bg-color);
color:var(--text-primary-color);
box-shadow:var(--dialog-shadow);
}
:is(.dialog .mainContainer) *:focus-visible{
outline:var(--focus-ring-outline);
outline-offset:2px;
}
:is(.dialog .mainContainer) .title{
display:flex;
width:auto;
flex-direction:column;
justify-content:flex-end;
align-items:flex-start;
gap:12px;
}
:is(:is(.dialog .mainContainer) .title) > span{
font-size:13px;
font-style:normal;
font-weight:590;
line-height:150%;
}
:is(.dialog .mainContainer) .dialogSeparator{
width:100%;
height:0;
margin-block:4px;
border-top:1px solid var(--separator-color);
border-bottom:none;
}
:is(.dialog .mainContainer) .dialogButtonsGroup{
display:flex;
gap:12px;
align-self:flex-end;
}
:is(.dialog .mainContainer) .radio{
display:flex;
flex-direction:column;
align-items:flex-start;
gap:4px;
}
:is(:is(.dialog .mainContainer) .radio) > .radioButton{
display:flex;
gap:8px;
align-self:stretch;
align-items:center;
}
:is(:is(:is(.dialog .mainContainer) .radio) > .radioButton) input{
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
box-sizing:border-box;
width:16px;
height:16px;
border-radius:50%;
background-color:var(--radio-bg-color);
border:1px solid var(--radio-border-color);
}
:is(:is(:is(:is(.dialog .mainContainer) .radio) > .radioButton) input):hover{
filter:var(--hover-filter);
}
:is(:is(:is(:is(.dialog .mainContainer) .radio) > .radioButton) input):checked{
background-color:var(--radio-checked-bg-color);
border:4px solid var(--radio-checked-border-color);
}
:is(:is(.dialog .mainContainer) .radio) > .radioLabel{
display:flex;
padding-inline-start:24px;
align-items:flex-start;
gap:10px;
align-self:stretch;
}
:is(:is(:is(.dialog .mainContainer) .radio) > .radioLabel) > span{
flex:1 0 0;
font-size:11px;
color:var(--text-secondary-color);
}
:is(.dialog .mainContainer) button:not(:is(.toggle-button,.closeButton,.clearInputButton)){
border-radius:4px;
border:1px solid;
font:menu;
font-weight:590;
font-size:13px;
padding:4px 16px;
width:auto;
height:32px;
}
:is(:is(.dialog .mainContainer) button:not(:is(.toggle-button,.closeButton,.clearInputButton))):hover{
cursor:pointer;
filter:var(--hover-filter);
}
:is(:is(.dialog .mainContainer) button:not(:is(.toggle-button,.closeButton,.clearInputButton))) > span{
color:inherit;
font:inherit;
}
.secondaryButton:is(:is(.dialog .mainContainer) button:not(:is(.toggle-button,.closeButton,.clearInputButton))){
color:var(--button-secondary-fg-color);
background-color:var(--button-secondary-bg-color);
border-color:var(--button-secondary-border-color);
}
.secondaryButton:is(:is(.dialog .mainContainer) button:not(:is(.toggle-button,.closeButton,.clearInputButton))):hover{
color:var(--button-secondary-hover-fg-color);
background-color:var(--button-secondary-hover-bg-color);
border-color:var(--button-secondary-hover-border-color);
}
.secondaryButton:is(:is(.dialog .mainContainer) button:not(:is(.toggle-button,.closeButton,.clearInputButton))):active{
color:var(--button-secondary-active-fg-color);
background-color:var(--button-secondary-active-bg-color);
border-color:var(--button-secondary-active-border-color);
}
.secondaryButton:is(:is(.dialog .mainContainer) button:not(:is(.toggle-button,.closeButton,.clearInputButton))):disabled{
background-color:var(--button-secondary-disabled-bg-color);
border-color:var(--button-secondary-disabled-border-color);
color:var(--button-secondary-disabled-fg-color);
opacity:var(--button-disabled-opacity);
}
.primaryButton:is(:is(.dialog .mainContainer) button:not(:is(.toggle-button,.closeButton,.clearInputButton))){
color:var(--button-primary-fg-color);
background-color:var(--button-primary-bg-color);
border-color:var(--button-primary-border-color);
opacity:1;
}
.primaryButton:is(:is(.dialog .mainContainer) button:not(:is(.toggle-button,.closeButton,.clearInputButton))):hover{
color:var(--button-primary-hover-fg-color);
background-color:var(--button-primary-hover-bg-color);
border-color:var(--button-primary-hover-border-color);
}
.primaryButton:is(:is(.dialog .mainContainer) button:not(:is(.toggle-button,.closeButton,.clearInputButton))):active{
color:var(--button-primary-active-fg-color);
background-color:var(--button-primary-active-bg-color);
border-color:var(--button-primary-active-border-color);
}
.primaryButton:is(:is(.dialog .mainContainer) button:not(:is(.toggle-button,.closeButton,.clearInputButton))):disabled{
background-color:var(--button-primary-disabled-bg-color);
border-color:var(--button-primary-disabled-border-color);
color:var(--button-primary-disabled-fg-color);
opacity:var(--button-disabled-opacity);
}
:is(:is(.dialog .mainContainer) button:not(:is(.toggle-button,.closeButton,.clearInputButton))):disabled{
pointer-events:none;
}
:is(.dialog .mainContainer) a{
color:var(--link-fg-color);
}
:is(:is(.dialog .mainContainer) a):hover{
color:var(--link-hover-fg-color);
}
:is(.dialog .mainContainer) textarea{
font:inherit;
padding:8px;
resize:none;
margin:0;
box-sizing:border-box;
border-radius:4px;
border:1px solid var(--textarea-border-color);
background:var(--textarea-bg-color);
color:var(--textarea-fg-color);
}
:is(:is(.dialog .mainContainer) textarea):focus{
outline-offset:0;
border-color:transparent;
}
:is(:is(.dialog .mainContainer) textarea):disabled{
pointer-events:none;
opacity:0.4;
}
:is(.dialog .mainContainer) input[type="text"]{
background-color:var(--input-text-bg-color);
color:var(--input-text-fg-color);
}
:is(.dialog .mainContainer) .messageBar{
--csstools-light-dark-toggle--62:var(--csstools-color-scheme--light) #5a3100;
--message-bar-bg-color:var(--csstools-light-dark-toggle--62, #ffebcd);
--csstools-light-dark-toggle--63:var(--csstools-color-scheme--light) #fbfbfe;
--message-bar-fg-color:var(--csstools-light-dark-toggle--63, #15141a);
--csstools-light-dark-toggle--64:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.08);
--message-bar-border-color:var(--csstools-light-dark-toggle--64, rgb(0 0 0 / 0.08));
--message-bar-icon:url(images/messageBar_warning.svg);
--csstools-light-dark-toggle--65:var(--csstools-color-scheme--light) #e49c49;
--message-bar-icon-color:var(--csstools-light-dark-toggle--65, #cd411e);
}
@supports (color: light-dark(red, red)){
:is(.dialog .mainContainer) .messageBar{
--message-bar-bg-color:light-dark(#ffebcd, #5a3100);
--message-bar-fg-color:light-dark(#15141a, #fbfbfe);
}
}
@supports (color: light-dark(red, red)) and (color: rgb(0 0 0 / 0)){
:is(.dialog .mainContainer) .messageBar{
--message-bar-border-color:light-dark(
rgb(0 0 0 / 0.08),
rgb(255 255 255 / 0.08)
);
}
}
@supports (color: light-dark(red, red)){
:is(.dialog .mainContainer) .messageBar{
--message-bar-icon-color:light-dark(#cd411e, #e49c49);
}
}
@supports not (color: light-dark(tan, tan)){
:is(:is(.dialog .mainContainer) .messageBar) *{
--csstools-light-dark-toggle--62:var(--csstools-color-scheme--light) #5a3100;
--message-bar-bg-color:var(--csstools-light-dark-toggle--62, #ffebcd);
--csstools-light-dark-toggle--63:var(--csstools-color-scheme--light) #fbfbfe;
--message-bar-fg-color:var(--csstools-light-dark-toggle--63, #15141a);
--csstools-light-dark-toggle--64:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.08);
--message-bar-border-color:var(--csstools-light-dark-toggle--64, rgb(0 0 0 / 0.08));
--csstools-light-dark-toggle--65:var(--csstools-color-scheme--light) #e49c49;
--message-bar-icon-color:var(--csstools-light-dark-toggle--65, #cd411e);
}
}
@media screen and (forced-colors: active){
:is(.dialog .mainContainer) .messageBar{
--message-bar-bg-color:HighlightText;
--message-bar-fg-color:CanvasText;
--message-bar-border-color:CanvasText;
--message-bar-icon-color:CanvasText;
}
}
:is(.dialog .mainContainer) .messageBar{
align-self:stretch;
}
:is(:is(:is(.dialog .mainContainer) .messageBar) > div)::before,:is(:is(:is(.dialog .mainContainer) .messageBar) > div) > div{
margin-block:4px;
}
:is(:is(:is(.dialog .mainContainer) .messageBar) > div) > div{
display:flex;
flex-direction:column;
align-items:flex-start;
gap:8px;
flex:1 0 0;
}
:is(:is(:is(:is(.dialog .mainContainer) .messageBar) > div) > div) .title{
font-size:13px;
font-weight:590;
}
:is(:is(:is(:is(.dialog .mainContainer) .messageBar) > div) > div) .description{
font-size:13px;
}
:is(.dialog .mainContainer) .toggler{
display:flex;
align-items:center;
gap:8px;
align-self:stretch;
}
:is(:is(.dialog .mainContainer) .toggler) > .togglerLabel{
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
}
.textLayer{
position:absolute;
text-align:initial;
inset:0;
overflow:clip;
opacity:1;
line-height:1;
-webkit-text-size-adjust:none;
-moz-text-size-adjust:none;
text-size-adjust:none;
forced-color-adjust:none;
transform-origin:0 0;
caret-color:CanvasText;
z-index:0;
}
.textLayer.highlighting{
touch-action:none;
}
.textLayer :is(span,br){
color:transparent;
position:absolute;
white-space:pre;
cursor:text;
transform-origin:0% 0%;
}
.textLayer > :not(.markedContent),.textLayer .markedContent span:not(.markedContent){
z-index:1;
}
.textLayer span.markedContent{
top:0;
height:0;
}
.textLayer span[role="img"]{
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
cursor:default;
}
.textLayer .highlight{
--highlight-bg-color:rgb(180 0 170 / 0.25);
--highlight-selected-bg-color:rgb(0 100 0 / 0.25);
--highlight-backdrop-filter:none;
--highlight-selected-backdrop-filter:none;
}
@media screen and (forced-colors: active){
.textLayer .highlight{
--highlight-bg-color:transparent;
--highlight-selected-bg-color:transparent;
--highlight-backdrop-filter:var(--hcm-highlight-filter);
--highlight-selected-backdrop-filter:var(
--hcm-highlight-selected-filter
);
}
}
.textLayer .highlight{
margin:-1px;
padding:1px;
background-color:var(--highlight-bg-color);
-webkit-backdrop-filter:var(--highlight-backdrop-filter);
backdrop-filter:var(--highlight-backdrop-filter);
border-radius:4px;
}
.appended:is(.textLayer .highlight){
position:initial;
}
.begin:is(.textLayer .highlight){
border-radius:4px 0 0 4px;
}
.end:is(.textLayer .highlight){
border-radius:0 4px 4px 0;
}
.middle:is(.textLayer .highlight){
border-radius:0;
}
.selected:is(.textLayer .highlight){
background-color:var(--highlight-selected-bg-color);
-webkit-backdrop-filter:var(--highlight-selected-backdrop-filter);
backdrop-filter:var(--highlight-selected-backdrop-filter);
}
.textLayer ::-moz-selection{
background:rgba(0 0 255 / 0.25);
background:color-mix(in srgb, AccentColor, transparent 75%);
}
.textLayer ::selection{
background:rgba(0 0 255 / 0.25);
background:color-mix(in srgb, AccentColor, transparent 75%);
}
.textLayer br::-moz-selection{
background:transparent;
}
.textLayer br::selection{
background:transparent;
}
.textLayer .endOfContent{
display:block;
position:absolute;
inset:100% 0 0;
z-index:0;
cursor:default;
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
}
.textLayer.selecting .endOfContent{
top:0;
}
.annotationLayer{
--csstools-color-scheme--light:initial;
color-scheme:only light;
--annotation-unfocused-field-background:url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");
--input-focus-border-color:Highlight;
--input-focus-outline:1px solid Canvas;
--input-unfocused-border-color:transparent;
--input-disabled-border-color:transparent;
--input-hover-border-color:black;
--link-outline:none;
}
@media screen and (forced-colors: active){
.annotationLayer{
--input-focus-border-color:CanvasText;
--input-unfocused-border-color:ActiveText;
--input-disabled-border-color:GrayText;
--input-hover-border-color:Highlight;
--link-outline:1.5px solid LinkText;
}
.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{
outline:1.5px solid selectedItem;
}
.annotationLayer .linkAnnotation{
outline:var(--link-outline);
}
:is(.annotationLayer .linkAnnotation):hover{
-webkit-backdrop-filter:var(--hcm-highlight-filter);
backdrop-filter:var(--hcm-highlight-filter);
}
:is(.annotationLayer .linkAnnotation) > a:hover{
opacity:0 !important;
background:none !important;
box-shadow:none;
}
.annotationLayer .popupAnnotation .popup{
outline:calc(1.5px * var(--total-scale-factor)) solid CanvasText !important;
background-color:ButtonFace !important;
color:ButtonText !important;
}
.annotationLayer .highlightArea:hover::after{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
-webkit-backdrop-filter:var(--hcm-highlight-filter);
backdrop-filter:var(--hcm-highlight-filter);
content:"";
pointer-events:none;
}
.annotationLayer .popupAnnotation.focused .popup{
outline:calc(3px * var(--total-scale-factor)) solid Highlight !important;
}
}
.annotationLayer{
position:absolute;
top:0;
left:0;
pointer-events:none;
transform-origin:0 0;
}
.annotationLayer[data-main-rotation="90"] .norotate{
transform:rotate(270deg) translateX(-100%);
}
.annotationLayer[data-main-rotation="180"] .norotate{
transform:rotate(180deg) translate(-100%, -100%);
}
.annotationLayer[data-main-rotation="270"] .norotate{
transform:rotate(90deg) translateY(-100%);
}
.annotationLayer.disabled section,.annotationLayer.disabled .popup{
pointer-events:none;
}
.annotationLayer .annotationContent{
position:absolute;
width:100%;
height:100%;
pointer-events:none;
}
.freetext:is(.annotationLayer .annotationContent){
background:transparent;
border:none;
inset:0;
overflow:visible;
white-space:nowrap;
font:10px sans-serif;
line-height:1.35;
}
.annotationLayer section{
position:absolute;
text-align:initial;
pointer-events:auto;
box-sizing:border-box;
transform-origin:0 0;
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
}
:is(.annotationLayer section):has(div.annotationContent) canvas.annotationContent{
display:none;
}
.textLayer.selecting ~ .annotationLayer section{
pointer-events:none;
}
.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton) > a{
position:absolute;
font-size:1em;
top:0;
left:0;
width:100%;
height:100%;
}
.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton):not(.hasBorder) > a:hover{
opacity:0.2;
background-color:rgb(255 255 0);
box-shadow:0 2px 10px rgb(255 255 0);
}
.annotationLayer .linkAnnotation.hasBorder:hover{
background-color:rgb(255 255 0 / 0.2);
}
.annotationLayer .hasBorder{
background-size:100% 100%;
}
.annotationLayer .textAnnotation img{
position:absolute;
cursor:pointer;
width:100%;
height:100%;
top:0;
left:0;
}
.annotationLayer .textWidgetAnnotation :is(input,textarea),.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{
background-image:var(--annotation-unfocused-field-background);
border:2px solid var(--input-unfocused-border-color);
box-sizing:border-box;
font:calc(9px * var(--total-scale-factor)) sans-serif;
height:100%;
margin:0;
vertical-align:top;
width:100%;
}
.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{
outline:1.5px solid red;
}
.annotationLayer .choiceWidgetAnnotation select option{
padding:0;
}
.annotationLayer .buttonWidgetAnnotation.radioButton input{
border-radius:50%;
}
.annotationLayer .textWidgetAnnotation textarea{
resize:none;
}
.annotationLayer .textWidgetAnnotation [disabled]:is(input,textarea),.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled]{
background:none;
border:2px solid var(--input-disabled-border-color);
cursor:not-allowed;
}
.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover{
border:2px solid var(--input-hover-border-color);
}
.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover{
border-radius:2px;
}
.annotationLayer .textWidgetAnnotation :is(input,textarea):focus,.annotationLayer .choiceWidgetAnnotation select:focus{
background:none;
border:2px solid var(--input-focus-border-color);
border-radius:2px;
outline:var(--input-focus-outline);
}
.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{
background-image:none;
background-color:transparent;
}
.annotationLayer .buttonWidgetAnnotation.checkBox :focus{
border:2px solid var(--input-focus-border-color);
border-radius:2px;
outline:var(--input-focus-outline);
}
.annotationLayer .buttonWidgetAnnotation.radioButton :focus{
border:2px solid var(--input-focus-border-color);
outline:var(--input-focus-outline);
}
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked::before{
background-color:CanvasText;
content:"";
display:block;
position:absolute;
}
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after{
height:80%;
left:45%;
width:1px;
}
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before{
transform:rotate(45deg);
}
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after{
transform:rotate(-45deg);
}
.annotationLayer .buttonWidgetAnnotation.radioButton input:checked::before{
border-radius:50%;
height:50%;
left:25%;
top:25%;
width:50%;
}
.annotationLayer .textWidgetAnnotation input.comb{
font-family:monospace;
padding-left:2px;
padding-right:0;
}
.annotationLayer .textWidgetAnnotation input.comb:focus{
width:103%;
}
.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
}
.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{
height:100%;
width:100%;
}
.annotationLayer .popupAnnotation{
position:absolute;
font-size:calc(9px * var(--total-scale-factor));
pointer-events:none;
width:-moz-max-content;
width:max-content;
max-width:45%;
height:auto;
}
.annotationLayer .popup{
background-color:rgb(255 255 153);
color:black;
box-shadow:0 calc(2px * var(--total-scale-factor)) calc(5px * var(--total-scale-factor)) rgb(136 136 136);
border-radius:calc(2px * var(--total-scale-factor));
outline:1.5px solid rgb(255 255 74);
padding:calc(6px * var(--total-scale-factor));
cursor:pointer;
font:message-box;
white-space:normal;
word-wrap:break-word;
pointer-events:auto;
-webkit-user-select:text;
-moz-user-select:text;
user-select:text;
}
.annotationLayer .popupAnnotation.focused .popup{
outline-width:3px;
}
.annotationLayer .popup *{
font-size:calc(9px * var(--total-scale-factor));
}
.annotationLayer .popup > .header{
display:inline-block;
}
.annotationLayer .popup > .header h1{
display:inline;
}
.annotationLayer .popup > .header .popupDate{
display:inline-block;
margin-left:calc(5px * var(--total-scale-factor));
width:-moz-fit-content;
width:fit-content;
}
.annotationLayer .popupContent{
border-top:1px solid rgb(51 51 51);
margin-top:calc(2px * var(--total-scale-factor));
padding-top:calc(2px * var(--total-scale-factor));
}
.annotationLayer .richText > *{
white-space:pre-wrap;
font-size:calc(9px * var(--total-scale-factor));
}
.annotationLayer .popupTriggerArea{
cursor:pointer;
}
.annotationLayer section svg{
position:absolute;
width:100%;
height:100%;
top:0;
left:0;
}
.annotationLayer .annotationTextContent{
position:absolute;
width:100%;
height:100%;
opacity:0;
color:transparent;
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
pointer-events:none;
}
:is(.annotationLayer .annotationTextContent) span{
width:100%;
display:inline-block;
}
.annotationLayer svg.quadrilateralsContainer{
contain:strict;
width:0;
height:0;
position:absolute;
top:0;
left:0;
z-index:-1;
}
:root{
--xfa-unfocused-field-background:url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");
--xfa-focus-outline:auto;
}
@media screen and (forced-colors: active){
:root{
--xfa-focus-outline:2px solid CanvasText;
}
.xfaLayer *:required{
outline:1.5px solid selectedItem;
}
}
.xfaLayer{
--csstools-color-scheme--light:initial;
color-scheme:only light;
background-color:transparent;
}
.xfaLayer .highlight{
margin:-1px;
padding:1px;
background-color:rgb(239 203 237);
border-radius:4px;
}
.xfaLayer .highlight.appended{
position:initial;
}
.xfaLayer .highlight.begin{
border-radius:4px 0 0 4px;
}
.xfaLayer .highlight.end{
border-radius:0 4px 4px 0;
}
.xfaLayer .highlight.middle{
border-radius:0;
}
.xfaLayer .highlight.selected{
background-color:rgb(203 223 203);
}
.xfaPage{
overflow:hidden;
position:relative;
}
.xfaContentarea{
position:absolute;
}
.xfaPrintOnly{
display:none;
}
.xfaLayer{
position:absolute;
text-align:initial;
top:0;
left:0;
transform-origin:0 0;
line-height:1.2;
}
.xfaLayer *{
color:inherit;
font:inherit;
font-style:inherit;
font-weight:inherit;
font-kerning:inherit;
letter-spacing:-0.01px;
text-align:inherit;
text-decoration:inherit;
box-sizing:border-box;
background-color:transparent;
padding:0;
margin:0;
pointer-events:auto;
line-height:inherit;
}
.xfaLayer *:required{
outline:1.5px solid red;
}
.xfaLayer div,
.xfaLayer svg,
.xfaLayer svg *{
pointer-events:none;
}
.xfaLayer a{
color:blue;
}
.xfaRich li{
margin-left:3em;
}
.xfaFont{
color:black;
font-weight:normal;
font-kerning:none;
font-size:10px;
font-style:normal;
letter-spacing:0;
text-decoration:none;
vertical-align:0;
}
.xfaCaption{
overflow:hidden;
flex:0 0 auto;
}
.xfaCaptionForCheckButton{
overflow:hidden;
flex:1 1 auto;
}
.xfaLabel{
height:100%;
width:100%;
}
.xfaLeft{
display:flex;
flex-direction:row;
align-items:center;
}
.xfaRight{
display:flex;
flex-direction:row-reverse;
align-items:center;
}
:is(.xfaLeft, .xfaRight) > :is(.xfaCaption, .xfaCaptionForCheckButton){
max-height:100%;
}
.xfaTop{
display:flex;
flex-direction:column;
align-items:flex-start;
}
.xfaBottom{
display:flex;
flex-direction:column-reverse;
align-items:flex-start;
}
:is(.xfaTop, .xfaBottom) > :is(.xfaCaption, .xfaCaptionForCheckButton){
width:100%;
}
.xfaBorder{
background-color:transparent;
position:absolute;
pointer-events:none;
}
.xfaWrapped{
width:100%;
height:100%;
}
:is(.xfaTextfield, .xfaSelect):focus{
background-image:none;
background-color:transparent;
outline:var(--xfa-focus-outline);
outline-offset:-1px;
}
:is(.xfaCheckbox, .xfaRadio):focus{
outline:var(--xfa-focus-outline);
}
.xfaTextfield,
.xfaSelect{
height:100%;
width:100%;
flex:1 1 auto;
border:none;
resize:none;
background-image:var(--xfa-unfocused-field-background);
}
.xfaSelect{
padding-inline:2px;
}
:is(.xfaTop, .xfaBottom) > :is(.xfaTextfield, .xfaSelect){
flex:0 1 auto;
}
.xfaButton{
cursor:pointer;
width:100%;
height:100%;
border:none;
text-align:center;
}
.xfaLink{
width:100%;
height:100%;
position:absolute;
top:0;
left:0;
}
.xfaCheckbox,
.xfaRadio{
width:100%;
height:100%;
flex:0 0 auto;
border:none;
}
.xfaRich{
white-space:pre-wrap;
width:100%;
height:100%;
}
.xfaImage{
-o-object-position:left top;
object-position:left top;
-o-object-fit:contain;
object-fit:contain;
width:100%;
height:100%;
}
.xfaLrTb,
.xfaRlTb,
.xfaTb{
display:flex;
flex-direction:column;
align-items:stretch;
}
.xfaLr{
display:flex;
flex-direction:row;
align-items:stretch;
}
.xfaRl{
display:flex;
flex-direction:row-reverse;
align-items:stretch;
}
.xfaTb > div{
justify-content:left;
}
.xfaPosition{
position:relative;
}
.xfaArea{
position:relative;
}
.xfaValignMiddle{
display:flex;
align-items:center;
}
.xfaTable{
display:flex;
flex-direction:column;
align-items:stretch;
}
.xfaTable .xfaRow{
display:flex;
flex-direction:row;
align-items:stretch;
}
.xfaTable .xfaRlRow{
display:flex;
flex-direction:row-reverse;
align-items:stretch;
flex:1;
}
.xfaTable .xfaRlRow > div{
flex:1;
}
:is(.xfaNonInteractive, .xfaDisabled, .xfaReadOnly) :is(input, textarea){
background:initial;
}
@media print{
.xfaTextfield,
.xfaSelect{
background:transparent;
}
.xfaSelect{
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
text-indent:1px;
text-overflow:"";
}
}
.canvasWrapper svg{
transform:none;
}
.moving:is(.canvasWrapper svg){
z-index:100000;
}
[data-main-rotation="90"]:is(.highlight:is(.canvasWrapper svg),.highlightOutline:is(.canvasWrapper svg)) mask,[data-main-rotation="90"]:is(.highlight:is(.canvasWrapper svg),.highlightOutline:is(.canvasWrapper svg)) use:not(.clip,.mask){
transform:matrix(0, 1, -1, 0, 1, 0);
}
[data-main-rotation="180"]:is(.highlight:is(.canvasWrapper svg),.highlightOutline:is(.canvasWrapper svg)) mask,[data-main-rotation="180"]:is(.highlight:is(.canvasWrapper svg),.highlightOutline:is(.canvasWrapper svg)) use:not(.clip,.mask){
transform:matrix(-1, 0, 0, -1, 1, 1);
}
[data-main-rotation="270"]:is(.highlight:is(.canvasWrapper svg),.highlightOutline:is(.canvasWrapper svg)) mask,[data-main-rotation="270"]:is(.highlight:is(.canvasWrapper svg),.highlightOutline:is(.canvasWrapper svg)) use:not(.clip,.mask){
transform:matrix(0, -1, 1, 0, 0, 1);
}
.draw:is(.canvasWrapper svg){
position:absolute;
mix-blend-mode:normal;
}
.draw[data-draw-rotation="90"]:is(.canvasWrapper svg){
transform:rotate(90deg);
}
.draw[data-draw-rotation="180"]:is(.canvasWrapper svg){
transform:rotate(180deg);
}
.draw[data-draw-rotation="270"]:is(.canvasWrapper svg){
transform:rotate(270deg);
}
.highlight:is(.canvasWrapper svg){
--blend-mode:multiply;
}
@media screen and (forced-colors: active){
.highlight:is(.canvasWrapper svg){
--blend-mode:difference;
}
}
.highlight:is(.canvasWrapper svg){
position:absolute;
mix-blend-mode:var(--blend-mode);
}
.highlight:is(.canvasWrapper svg):not(.free){
fill-rule:evenodd;
}
.highlightOutline:is(.canvasWrapper svg){
position:absolute;
mix-blend-mode:normal;
fill-rule:evenodd;
fill:none;
}
.highlightOutline.hovered:is(.canvasWrapper svg):not(.free):not(.selected){
stroke:var(--hover-outline-color);
stroke-width:var(--outline-width);
}
.highlightOutline.selected:is(.canvasWrapper svg):not(.free) .mainOutline{
stroke:var(--outline-around-color);
stroke-width:calc(
var(--outline-width) + 2 * var(--outline-around-width)
);
}
.highlightOutline.selected:is(.canvasWrapper svg):not(.free) .secondaryOutline{
stroke:var(--outline-color);
stroke-width:var(--outline-width);
}
.highlightOutline.free.hovered:is(.canvasWrapper svg):not(.selected){
stroke:var(--hover-outline-color);
stroke-width:calc(2 * var(--outline-width));
}
.highlightOutline.free.selected:is(.canvasWrapper svg) .mainOutline{
stroke:var(--outline-around-color);
stroke-width:calc(
2 * (var(--outline-width) + var(--outline-around-width))
);
}
.highlightOutline.free.selected:is(.canvasWrapper svg) .secondaryOutline{
stroke:var(--outline-color);
stroke-width:calc(2 * var(--outline-width));
}
.toggle-button{
--button-background-color:color-mix(in srgb, currentColor 7%, transparent);
--button-background-color-hover:color-mix(
in srgb,
currentColor 14%,
transparent
);
--button-background-color-active:color-mix(
in srgb,
currentColor 21%,
transparent
);
--csstools-light-dark-toggle--66:var(--csstools-color-scheme--light) #0df;
--color-accent-primary:var(--csstools-light-dark-toggle--66, #0060df);
--csstools-light-dark-toggle--67:var(--csstools-color-scheme--light) #80ebff;
--color-accent-primary-hover:var(--csstools-light-dark-toggle--67, #0250bb);
--csstools-light-dark-toggle--68:var(--csstools-color-scheme--light) #aaf2ff;
--color-accent-primary-active:var(--csstools-light-dark-toggle--68, #054096);
--border-radius-circle:9999px;
--border-width:1px;
--size-item-small:16px;
--size-item-large:32px;
--csstools-light-dark-toggle--69:var(--csstools-color-scheme--light) #1c1b22;
--color-canvas:var(--csstools-light-dark-toggle--69, white);
--background-color-canvas:var(--color-canvas);
--csstools-light-dark-toggle--70:var(--csstools-color-scheme--light) #f9f9fa;
--border-color-interactive:var(--csstools-light-dark-toggle--70, #8f8f9d);
--border-color-interactive-hover:var(--border-color-interactive);
--border-color-interactive-active:var(--border-color-interactive);
}
@supports (color: light-dark(red, red)){
.toggle-button{
--color-accent-primary:light-dark(#0060df, #0df);
--color-accent-primary-hover:light-dark(#0250bb, #80ebff);
--color-accent-primary-active:light-dark(#054096, #aaf2ff);
--color-canvas:light-dark(white, #1c1b22);
--border-color-interactive:light-dark(#8f8f9d, #f9f9fa);
}
}
@supports not (color: light-dark(tan, tan)){
.toggle-button *{
--csstools-light-dark-toggle--66:var(--csstools-color-scheme--light) #0df;
--color-accent-primary:var(--csstools-light-dark-toggle--66, #0060df);
--csstools-light-dark-toggle--67:var(--csstools-color-scheme--light) #80ebff;
--color-accent-primary-hover:var(--csstools-light-dark-toggle--67, #0250bb);
--csstools-light-dark-toggle--68:var(--csstools-color-scheme--light) #aaf2ff;
--color-accent-primary-active:var(--csstools-light-dark-toggle--68, #054096);
--csstools-light-dark-toggle--69:var(--csstools-color-scheme--light) #1c1b22;
--color-canvas:var(--csstools-light-dark-toggle--69, white);
--csstools-light-dark-toggle--70:var(--csstools-color-scheme--light) #f9f9fa;
--border-color-interactive:var(--csstools-light-dark-toggle--70, #8f8f9d);
}
}
@media (forced-colors: active){
.toggle-button{
--color-accent-primary:ButtonText;
--color-accent-primary-hover:SelectedItem;
--color-accent-primary-active:SelectedItem;
--button-background-color:ButtonFace;
--border-color-interactive:ButtonText;
--border-color-interactive-hover:SelectedItem;
--border-color-interactive-active:ButtonText;
--color-canvas:ButtonText;
--background-color-canvas:Canvas;
}
}
.toggle-button{
--toggle-background-color:var(--button-background-color);
--toggle-background-color-hover:var(--button-background-color-hover);
--toggle-background-color-active:var(--button-background-color-active);
--toggle-background-color-pressed:var(--color-accent-primary);
--toggle-background-color-pressed-hover:var(--color-accent-primary-hover);
--toggle-background-color-pressed-active:var(--color-accent-primary-active);
--toggle-border-color:var(--border-color-interactive);
--toggle-border-color-hover:var(--toggle-border-color);
--toggle-border-color-active:var(--toggle-border-color);
--toggle-border-radius:var(--border-radius-circle);
--toggle-border-width:var(--border-width);
--toggle-height:var(--size-item-small);
--toggle-width:var(--size-item-large);
--toggle-dot-background-color:var(--toggle-border-color);
--toggle-dot-background-color-hover:var(--toggle-dot-background-color);
--toggle-dot-background-color-active:var(--toggle-dot-background-color);
--toggle-dot-background-color-on-pressed:var(--background-color-canvas);
--toggle-dot-margin:1px;
--toggle-dot-height:calc(
var(--toggle-height) - 2 * var(--toggle-dot-margin) - 2 *
var(--toggle-border-width)
);
--toggle-dot-width:var(--toggle-dot-height);
--toggle-dot-transform-x:calc(
var(--toggle-width) - 4 * var(--toggle-dot-margin) - var(--toggle-dot-width)
);
--input-width:var(--toggle-width);
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
padding:0;
border:var(--toggle-border-width) solid var(--toggle-border-color);
height:var(--toggle-height);
width:var(--toggle-width);
border-radius:var(--toggle-border-radius);
background-color:var(--toggle-background-color);
box-sizing:border-box;
}
.toggle-button:focus-visible{
outline:var(--focus-outline);
outline-offset:var(--focus-outline-offset);
}
.toggle-button:enabled:hover{
background-color:var(--toggle-background-color-hover);
border-color:var(--toggle-border-color);
}
.toggle-button:enabled:hover:active{
background-color:var(--toggle-background-color-active);
border-color:var(--toggle-border-color);
}
.toggle-button::before{
display:block;
content:"";
background-color:var(--toggle-dot-background-color);
height:var(--toggle-dot-height);
width:var(--toggle-dot-width);
margin:var(--toggle-dot-margin);
border-radius:var(--toggle-border-radius);
translate:0;
}
.toggle-button[aria-pressed="true"]{
background-color:var(--toggle-background-color-pressed);
border-color:transparent;
}
.toggle-button[aria-pressed="true"]:enabled:hover{
background-color:var(--toggle-background-color-pressed-hover);
border-color:transparent;
}
.toggle-button[aria-pressed="true"]:enabled:hover:active{
background-color:var(--toggle-background-color-pressed-active);
border-color:transparent;
}
.toggle-button[aria-pressed="true"]::before{
translate:var(--toggle-dot-transform-x);
background-color:var(--toggle-dot-background-color-on-pressed);
}
.toggle-button[aria-pressed="true"]:enabled:hover::before,.toggle-button[aria-pressed="true"]:enabled:hover:active::before{
background-color:var(--toggle-dot-background-color-on-pressed);
}
.toggle-button[aria-pressed="true"]:-moz-locale-dir(rtl)::before,[dir="rtl"] .toggle-button[aria-pressed="true"]::before{
translate:calc(-1 * var(--toggle-dot-transform-x));
}
@media (prefers-reduced-motion: no-preference){
.toggle-button::before{
transition:translate 100ms;
}
}
@media (prefers-contrast){
.toggle-button:enabled:hover{
border-color:var(--toggle-border-color-hover);
}
.toggle-button:enabled:hover:active{
border-color:var(--toggle-border-color-active);
}
.toggle-button[aria-pressed="true"]:enabled{
border-color:var(--toggle-border-color);
position:relative;
}
.toggle-button[aria-pressed="true"]:enabled:hover{
border-color:var(--toggle-border-color-hover);
}
.toggle-button[aria-pressed="true"]:enabled:hover:active{
background-color:var(--toggle-dot-background-color-active);
border-color:var(--toggle-dot-background-color-hover);
}
.toggle-button:enabled:hover::before,
.toggle-button:enabled:hover:active::before{
background-color:var(--toggle-dot-background-color-hover);
}
}
@media (forced-colors){
.toggle-button{
--toggle-dot-background-color:var(--color-accent-primary);
--toggle-dot-background-color-hover:var(--color-accent-primary-hover);
--toggle-dot-background-color-active:var(--color-accent-primary-active);
--toggle-dot-background-color-on-pressed:var(--button-background-color);
--toggle-border-color-hover:var(--border-color-interactive-hover);
--toggle-border-color-active:var(--border-color-interactive-active);
}
.toggle-button[aria-pressed="true"]:enabled::after{
border:1px solid var(--button-background-color);
content:"";
position:absolute;
height:var(--toggle-height);
width:var(--toggle-width);
display:block;
border-radius:var(--toggle-border-radius);
inset:-2px;
}
.toggle-button[aria-pressed="true"]:enabled:hover:active::after{
border-color:var(--toggle-border-color-active);
}
}
:root{
--clear-signature-button-icon:url(images/editor-toolbar-delete.svg);
--csstools-light-dark-toggle--71:var(--csstools-color-scheme--light) #2b2a33;
--signature-bg:var(--csstools-light-dark-toggle--71, #f9f9fb);
--csstools-light-dark-toggle--72:var(--csstools-color-scheme--light) var(--signature-bg);
--signature-hover-bg:var(--csstools-light-dark-toggle--72, #f0f0f4);
--button-signature-bg:transparent;
--button-signature-color:var(--main-color);
--csstools-light-dark-toggle--73:var(--csstools-color-scheme--light) #5b5b66;
--button-signature-active-bg:var(--csstools-light-dark-toggle--73, #cfcfd8);
--button-signature-active-border:none;
--button-signature-active-color:var(--button-signature-color);
--button-signature-border:none;
--csstools-light-dark-toggle--74:var(--csstools-color-scheme--light) #52525e;
--button-signature-hover-bg:var(--csstools-light-dark-toggle--74, #e0e0e6);
--button-signature-hover-color:var(--button-signature-color);
}
@supports (color: light-dark(red, red)){
:root{
--signature-bg:light-dark(#f9f9fb, #2b2a33);
--signature-hover-bg:light-dark(#f0f0f4, var(--signature-bg));
--button-signature-active-bg:light-dark(#cfcfd8, #5b5b66);
--button-signature-hover-bg:light-dark(#e0e0e6, #52525e);
}
}
@supports not (color: light-dark(tan, tan)){
:root *{
--csstools-light-dark-toggle--71:var(--csstools-color-scheme--light) #2b2a33;
--signature-bg:var(--csstools-light-dark-toggle--71, #f9f9fb);
--csstools-light-dark-toggle--72:var(--csstools-color-scheme--light) var(--signature-bg);
--signature-hover-bg:var(--csstools-light-dark-toggle--72, #f0f0f4);
--csstools-light-dark-toggle--73:var(--csstools-color-scheme--light) #5b5b66;
--button-signature-active-bg:var(--csstools-light-dark-toggle--73, #cfcfd8);
--csstools-light-dark-toggle--74:var(--csstools-color-scheme--light) #52525e;
--button-signature-hover-bg:var(--csstools-light-dark-toggle--74, #e0e0e6);
}
}
@media screen and (forced-colors: active){
:root{
--signature-bg:HighlightText;
--signature-hover-bg:var(--signature-bg);
--button-signature-bg:HighlightText;
--button-signature-color:ButtonText;
--button-signature-active-bg:ButtonText;
--button-signature-active-color:HighlightText;
--button-signature-border:1px solid ButtonText;
--button-signature-hover-bg:Highlight;
--button-signature-hover-color:HighlightText;
}
}
.signatureDialog{
--primary-color:var(--text-primary-color);
--border-color:#8f8f9d;
--open-link-fg:var(--link-fg-color);
--open-link-hover-fg:var(--link-hover-fg-color);
}
@media screen and (forced-colors: active){
.signatureDialog{
--primary-color:ButtonText;
--border-color:ButtonText;
--open-link-fg:ButtonText;
--open-link-hover-fg:ButtonText;
}
}
.signatureDialog{
width:570px;
max-width:100%;
min-width:300px;
padding:16px 0;
}
.signatureDialog .mainContainer{
width:100%;
display:flex;
flex-direction:column;
align-items:flex-start;
gap:12px;
}
:is(.signatureDialog .mainContainer) span:not([role="sectionhead"]){
font-size:13px;
font-style:normal;
font-weight:400;
line-height:normal;
}
:is(.signatureDialog .mainContainer) .title{
margin-inline-start:16px;
}
.signatureDialog .inputWithClearButton{
--button-dimension:24px;
--clear-button-icon:url(images/messageBar_closingButton.svg);
width:100%;
position:relative;
display:flex;
align-items:center;
justify-content:center;
}
:is(.signatureDialog .inputWithClearButton) > input{
width:100%;
height:32px;
padding-inline:8px calc(4px + var(--button-dimension));
box-sizing:border-box;
border-radius:4px;
border:1px solid var(--border-color);
}
:is(.signatureDialog .inputWithClearButton) .clearInputButton{
position:absolute;
inset-block-start:4px;
inset-inline-end:4px;
display:inline-block;
width:var(--button-dimension);
height:var(--button-dimension);
background-color:var(--input-text-fg-color);
-webkit-mask-size:cover;
mask-size:cover;
-webkit-mask-image:var(--clear-button-icon);
mask-image:var(--clear-button-icon);
padding:0;
border:0;
}
#addSignatureDialog{
--secondary-color:var(--text-secondary-color);
--bg-hover:#e0e0e6;
--tab-top-line-active-color:#0060df;
--tab-top-line-active-hover-color:var(--tab-text-hover-color);
--tab-top-line-hover-color:#8f8f9d;
--tab-top-line-inactive-color:#cfcfd8;
--tab-bottom-line-active-color:var(--tab-top-line-inactive-color);
--tab-bottom-line-hover-color:var(--tab-top-line-inactive-color);
--tab-bottom-line-inactive-color:var(--tab-top-line-inactive-color);
--tab-bg:var(--dialog-bg-color);
--tab-bg-active-color:var(--tab-bg);
--tab-bg-active-hover-color:var(--bg-hover);
--tab-bg-hover:var(--bg-hover);
--tab-panel-border:none;
--tab-panel-border-radius:4px;
--tab-text-color:var(--primary-color);
--tab-text-active-color:var(--tab-top-line-active-color);
--tab-text-active-hover-color:var(--tab-text-hover-color);
--tab-text-hover-color:var(--tab-text-color);
--signature-placeholder-color:var(--secondary-color);
--signature-draw-placeholder-color:var(--primary-color);
--signature-color:var(--primary-color);
--clear-signature-button-border-width:0;
--clear-signature-button-border-style:solid;
--clear-signature-button-border-color:transparent;
--clear-signature-button-border-disabled-color:transparent;
--clear-signature-button-color:var(--primary-color);
--clear-signature-button-hover-color:var(--clear-signature-button-color);
--clear-signature-button-active-color:var(--clear-signature-button-color);
--clear-signature-button-disabled-color:var(--clear-signature-button-color);
--clear-signature-button-focus-color:var(--clear-signature-button-color);
--clear-signature-button-bg:var(--dialog-bg-color);
--clear-signature-button-bg-hover:var(--bg-hover);
--clear-signature-button-bg-active:#cfcfd8;
--clear-signature-button-bg-focus:#f0f0f4;
--clear-signature-button-bg-disabled:color-mix(
in srgb,
#f0f0f4,
transparent 40%
);
--save-warning-color:var(--secondary-color);
--thickness-bg:var(--dialog-bg-color);
--thickness-label-color:var(--primary-color);
--thickness-slider-color:var(--primary-color);
--thickness-border:none;
--draw-cursor:url(images/cursor-editorInk.svg) 0 16, pointer;
}
@media (prefers-color-scheme: dark){
#addSignatureDialog{
--dialog-bg-color:#42414d;
--bg-hover:#52525e;
--primary-color:#fbfbfe;
--secondary-color:#cfcfd8;
--tab-top-line-active-color:#0df;
--tab-top-line-inactive-color:#8f8f9d;
--clear-signature-button-bg-active:#5b5b66;
--clear-signature-button-bg-focus:#2b2a33;
--clear-signature-button-bg-disabled:color-mix(
in srgb,
#2b2a33,
transparent 40%
);
}
}
@media screen and (forced-colors: active){
#addSignatureDialog{
--secondary-color:ButtonText;
--bg:HighlightText;
--bg-hover:var(--bg);
--tab-top-line-active-color:ButtonText;
--tab-top-line-active-hover-color:HighlightText;
--tab-top-line-hover-color:SelectedItem;
--tab-top-line-inactive-color:ButtonText;
--tab-bottom-line-active-color:var(--tab-top-line-active-color);
--tab-bottom-line-hover-color:var(--tab-top-line-hover-color);
--tab-bg:var(--bg);
--tab-bg-active-color:SelectedItem;
--tab-bg-active-hover-color:SelectedItem;
--tab-panel-border:1px solid ButtonText;
--tab-panel-border-radius:8px;
--tab-text-color:ButtonText;
--tab-text-active-color:HighlightText;
--tab-text-active-hover-color:HighlightText;
--tab-text-hover-color:SelectedItem;
--signature-color:ButtonText;
--clear-signature-button-border-width:1px;
--clear-signature-button-border-style:solid;
--clear-signature-button-border-color:ButtonText;
--clear-signature-button-border-disabled-color:GrayText;
--clear-signature-button-color:ButtonText;
--clear-signature-button-hover-color:HighlightText;
--clear-signature-button-active-color:SelectedItem;
--clear-signature-button-focus-color:CanvasText;
--clear-signature-button-disabled-color:GrayText;
--clear-signature-button-bg:var(--bg);
--clear-signature-button-bg-hover:SelectedItem;
--clear-signature-button-bg-active:var(--bg);
--clear-signature-button-bg-focus:var(--bg);
--clear-signature-button-bg-disabled:var(--bg);
--thickness-bg:Canvas;
--thickness-label-color:CanvasText;
--thickness-slider-color:ButtonText;
--thickness-border:1px solid var(--border-color);
}
}
#addSignatureDialog #addSignatureDialogLabel{
overflow:hidden;
position:absolute;
inset:0;
width:0;
height:0;
}
#addSignatureDialog.waiting::after{
content:"";
cursor:wait;
position:absolute;
inset:0;
width:100%;
height:100%;
}
:is(#addSignatureDialog .mainContainer) [role="tablist"]{
width:100%;
display:flex;
align-items:flex-start;
gap:0;
}
:is(:is(#addSignatureDialog .mainContainer) [role="tablist"]) > [role="tab"]{
flex:1 0 0;
align-self:stretch;
background-color:var(--tab-bg);
padding-inline:0;
cursor:default;
border-inline:0;
border-block-width:1px;
border-block-style:solid;
border-block-start-color:var(--tab-top-line-inactive-color);
border-block-end-color:var(--tab-bottom-line-inactive-color);
border-radius:0;
font:menu;
font-size:13px;
font-style:normal;
line-height:normal;
font-weight:400;
color:var(--tab-text-color);
}
:is(:is(:is(#addSignatureDialog .mainContainer) [role="tablist"]) > [role="tab"]):hover{
border-block-start-width:2px;
border-block-start-color:var(--tab-top-line-hover-color);
border-block-end-color:var(--tab-bottom-line-hover-color);
background-color:var(--tab-bg-hover);
color:var(--tab-text-hover-color);
}
:is(:is(:is(#addSignatureDialog .mainContainer) [role="tablist"]) > [role="tab"]):focus-visible{
outline:2px solid var(--tab-top-line-active-color);
outline-offset:-2px;
}
[aria-selected="true"]:is(:is(:is(#addSignatureDialog .mainContainer) [role="tablist"]) > [role="tab"]){
border-block-start-width:2px;
border-block-start-color:var(--tab-top-line-active-color);
border-block-end-color:var(--tab-bottom-line-active-color);
background-color:var(--tab-bg-active-color);
font-weight:590;
color:var(--tab-text-active-color);
}
[aria-selected="true"]:is(:is(:is(#addSignatureDialog .mainContainer) [role="tablist"]) > [role="tab"]):hover{
border-block-start-color:var(--tab-top-line-active-hover-color);
background-color:var(--tab-bg-active-hover-color);
color:var(--tab-text-active-hover-color);
}
:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer{
width:100%;
height:auto;
display:flex;
flex-direction:column;
align-items:flex-end;
align-self:stretch;
gap:12px;
padding-inline:16px;
box-sizing:border-box;
}
:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]{
position:relative;
width:100%;
height:220px;
background-color:var(--signature-bg);
border:var(--tab-panel-border);
border-radius:var(--tab-panel-border-radius);
}
:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) > svg{
position:absolute;
inset:0;
width:100%;
height:100%;
background-color:transparent;
}
#addSignatureTypeContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]){
display:none;
}
#addSignatureTypeContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #addSignatureTypeInput{
position:absolute;
inset:0;
width:100%;
height:100%;
border:0;
padding:0;
text-align:center;
color:var(--signature-color);
background-color:transparent;
border-radius:var(--tab-panel-border-radius);
font-family:"Brush script", "Apple Chancery", "Segoe script", "Freestyle Script", "Palace Script MT", "Brush Script MT", TK, cursive, serif;
font-size:44px;
font-style:italic;
font-weight:400;
}
:is(#addSignatureTypeContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #addSignatureTypeInput)::-moz-placeholder{
color:var(--signature-placeholder-color);
text-align:center;
font:menu;
font-style:normal;
font-weight:274;
font-size:44px;
line-height:normal;
}
:is(#addSignatureTypeContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #addSignatureTypeInput)::placeholder{
color:var(--signature-placeholder-color);
text-align:center;
font:menu;
font-style:normal;
font-weight:274;
font-size:44px;
line-height:normal;
}
#addSignatureDrawContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]){
display:none;
}
#addSignatureDrawContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) > span{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
display:grid;
align-items:center;
justify-content:center;
background-color:transparent;
color:var(--signature-placeholder-color);
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
}
#addSignatureDrawContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) > svg{
stroke:var(--signature-color);
fill:none;
stroke-opacity:1;
stroke-linecap:round;
stroke-linejoin:round;
stroke-miterlimit:10;
}
:is(#addSignatureDrawContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) > svg):hover{
cursor:var(--draw-cursor);
}
#addSignatureDrawContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #thickness{
position:absolute;
width:100%;
inset-block-end:0;
display:grid;
align-items:center;
justify-content:center;
pointer-events:none;
}
:is(#addSignatureDrawContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #thickness) > span{
color:var(--signature-draw-placeholder-color);
}
:is(#addSignatureDrawContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #thickness) > div{
width:auto;
height:auto;
display:flex;
align-items:center;
justify-content:center;
gap:8px;
padding:6px 8px 7px;
margin:0;
background-color:var(--thickness-bg);
border-radius:4px 4px 0 0;
border-inline:var(--thickness-border);
border-top:var(--thickness-border);
pointer-events:auto;
position:relative;
top:1px;
}
:is(:is(#addSignatureDrawContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #thickness) > div) > label{
color:var(--thickness-label-color);
}
:is(:is(#addSignatureDrawContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #thickness) > div) > input{
width:100px;
height:14px;
background-color:transparent;
}
:is(:is(:is(#addSignatureDrawContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #thickness) > div) > input)::-webkit-slider-runnable-track,:is(:is(:is(#addSignatureDrawContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #thickness) > div) > input)::-moz-range-track,:is(:is(:is(#addSignatureDrawContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #thickness) > div) > input)::-moz-range-progress{
background-color:var(--thickness-slider-color);
}
:is(:is(:is(#addSignatureDrawContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #thickness) > div) > input)::-webkit-slider-thumb,:is(:is(:is(#addSignatureDrawContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #thickness) > div) > input)::-moz-range-thumb{
background-color:var(--thickness-bg);
}
:is(:is(#addSignatureDrawContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #thickness) > div) > input{
border-radius:4.5px;
border:0;
color:var(--signature-color);
}
#addSignatureImageContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]){
display:none;
}
#addSignatureImageContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) > svg{
stroke:none;
stroke-width:0;
fill:var(--signature-color);
fill-opacity:1;
}
#addSignatureImageContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #addSignatureImagePlaceholder{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background-color:transparent;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
}
:is(#addSignatureImageContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #addSignatureImagePlaceholder) span{
color:var(--signature-placeholder-color);
}
:is(#addSignatureImageContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #addSignatureImagePlaceholder) a{
color:var(--open-link-fg);
text-decoration:underline;
cursor:pointer;
}
:is(:is(#addSignatureImageContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #addSignatureImagePlaceholder) a):hover{
color:var(--open-link-hover-fg);
}
#addSignatureImageContainer:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > [role="tabpanel"]) #addSignatureFilePicker{
visibility:hidden;
position:relative;
width:0;
height:0;
}
[data-selected="type"]:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > #addSignatureTypeContainer,[data-selected="draw"]:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > #addSignatureDrawContainer,[data-selected="image"]:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) > #addSignatureImageContainer{
display:block;
}
:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls{
display:flex;
flex-direction:column;
justify-content:center;
align-items:flex-start;
gap:12px;
align-self:stretch;
}
:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer{
display:flex;
align-items:flex-end;
gap:16px;
align-self:stretch;
}
:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer) #addSignatureDescriptionContainer{
display:flex;
flex-direction:column;
align-items:flex-start;
gap:4px;
flex:1 0 0;
}
:is(:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer) #addSignatureDescriptionContainer):has(input:disabled) > label{
opacity:0.4;
}
:is(:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer) #addSignatureDescriptionContainer) > label{
width:auto;
}
:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer) #clearSignatureButton{
display:flex;
height:32px;
padding:4px 8px;
align-items:center;
background-color:var(--clear-signature-button-bg);
border-width:var(--clear-signature-button-border-width);
border-style:var(--clear-signature-button-border-style);
border-color:var(--clear-signature-button-border-color);
border-radius:4px;
}
:is(:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer) #clearSignatureButton) > span{
display:flex;
height:24px;
align-items:center;
gap:4px;
flex-shrink:0;
color:var(--clear-signature-button-color);
}
:is(:is(:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer) #clearSignatureButton) > span)::after{
content:"";
display:inline-block;
width:16px;
height:16px;
-webkit-mask-image:var(--clear-signature-button-icon);
mask-image:var(--clear-signature-button-icon);
-webkit-mask-size:cover;
mask-size:cover;
background-color:var(--clear-signature-button-color);
flex-shrink:0;
}
:is(:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer) #clearSignatureButton):hover{
background-color:var(--clear-signature-button-bg-hover);
}
:is(:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer) #clearSignatureButton):hover > span{
color:var(--clear-signature-button-hover-color);
}
:is(:is(:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer) #clearSignatureButton):hover > span)::after{
background-color:var(--clear-signature-button-hover-color);
}
:is(:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer) #clearSignatureButton):active{
background-color:var(--clear-signature-button-bg-active);
}
:is(:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer) #clearSignatureButton):active > span{
color:var(--clear-signature-button-active-color);
}
:is(:is(:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer) #clearSignatureButton):active > span)::after{
background-color:var(--clear-signature-button-active-color);
}
:is(:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer) #clearSignatureButton):focus-visible{
background-color:var(--clear-signature-button-bg-focus);
}
:is(:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer) #clearSignatureButton):focus-visible > span{
color:var(--clear-signature-button-focus-color);
}
:is(:is(:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer) #clearSignatureButton):focus-visible > span)::after{
background-color:var(--clear-signature-button-focus-color);
}
:is(:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer) #clearSignatureButton):disabled{
background-color:var(--clear-signature-button-bg-disabled);
border-color:var(--clear-signature-button-border-disabled-color);
}
:is(:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer) #clearSignatureButton):disabled > span{
color:var(--clear-signature-button-disabled-color);
}
:is(:is(:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #horizontalContainer) #clearSignatureButton):disabled > span)::after{
background-color:var(
--clear-signature-button-disabled-color
);
}
:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #addSignatureSaveContainer{
display:grid;
grid-template-columns:max-content auto;
gap:4px;
width:100%;
}
:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #addSignatureSaveContainer) > input{
margin:0;
}
:is(:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #addSignatureSaveContainer) > input):disabled + label{
opacity:0.4;
}
:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #addSignatureSaveContainer) > label{
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
}
:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #addSignatureSaveContainer):not(.fullStorage) #addSignatureSaveWarning{
display:none;
}
.fullStorage:is(:is(:is(:is(#addSignatureDialog .mainContainer) #addSignatureActionContainer) #addSignatureControls) #addSignatureSaveContainer) #addSignatureSaveWarning{
display:block;
opacity:1;
color:var(--save-warning-color);
font-size:11px;
}
#editSignatureDescriptionDialog .mainContainer{
padding-inline:16px;
box-sizing:border-box;
}
:is(#editSignatureDescriptionDialog .mainContainer) .title{
margin-inline-start:0;
}
:is(#editSignatureDescriptionDialog .mainContainer) #editSignatureDescriptionAndView{
width:auto;
display:flex;
justify-content:flex-end;
align-items:flex-start;
gap:12px;
align-self:stretch;
}
:is(:is(#editSignatureDescriptionDialog .mainContainer) #editSignatureDescriptionAndView) #editSignatureDescriptionContainer{
display:flex;
flex-direction:column;
align-items:flex-start;
gap:4px;
flex:1 1 auto;
}
:is(:is(#editSignatureDescriptionDialog .mainContainer) #editSignatureDescriptionAndView) > svg{
width:210px;
height:180px;
padding:8px;
background-color:var(--signature-bg);
}
:is(:is(:is(#editSignatureDescriptionDialog .mainContainer) #editSignatureDescriptionAndView) > svg) > path{
stroke:var(--button-signature-color);
stroke-width:1px;
stroke-linecap:round;
stroke-linejoin:round;
stroke-miterlimit:10;
vector-effect:non-scaling-stroke;
fill:none;
}
.contours:is(:is(:is(:is(#editSignatureDescriptionDialog .mainContainer) #editSignatureDescriptionAndView) > svg) > path){
fill:var(--button-signature-color);
stroke-width:0.5px;
}
#editorSignatureParamsToolbar{
padding:8px;
}
#editorSignatureParamsToolbar #addSignatureDoorHanger{
gap:8px;
padding:2px;
}
:is(#editorSignatureParamsToolbar #addSignatureDoorHanger) .toolbarAddSignatureButtonContainer{
height:32px;
display:flex;
justify-content:space-between;
align-items:center;
align-self:stretch;
gap:8px;
}
:is(:is(#editorSignatureParamsToolbar #addSignatureDoorHanger) .toolbarAddSignatureButtonContainer) button{
border:var(--button-signature-border);
border-radius:4px;
background-color:var(--button-signature-bg);
color:var(--button-signature-color);
}
:is(:is(:is(#editorSignatureParamsToolbar #addSignatureDoorHanger) .toolbarAddSignatureButtonContainer) button):hover{
background-color:var(--button-signature-hover-bg);
}
:is(:is(:is(#editorSignatureParamsToolbar #addSignatureDoorHanger) .toolbarAddSignatureButtonContainer) button):active{
border:var(--button-signature-active-border);
background-color:var(--button-signature-active-bg);
color:var(--button-signature-active-color);
}
:is(:is(:is(#editorSignatureParamsToolbar #addSignatureDoorHanger) .toolbarAddSignatureButtonContainer) button):active::before{
background-color:var(--button-signature-active-color);
}
:is(:is(:is(#editorSignatureParamsToolbar #addSignatureDoorHanger) .toolbarAddSignatureButtonContainer) button):focus-visible{
outline:var(--focus-ring-outline);
}
:is(:is(:is(#editorSignatureParamsToolbar #addSignatureDoorHanger) .toolbarAddSignatureButtonContainer) button):focus-visible::before{
background-color:var(--button-signature-color);
}
:is(:is(:is(#editorSignatureParamsToolbar #addSignatureDoorHanger) .toolbarAddSignatureButtonContainer) .deleteButton)::before{
-webkit-mask-image:var(--clear-signature-button-icon);
mask-image:var(--clear-signature-button-icon);
}
:is(:is(#editorSignatureParamsToolbar #addSignatureDoorHanger) .toolbarAddSignatureButtonContainer) .toolbarAddSignatureButton{
width:auto;
height:100%;
min-height:var(--menuitem-height);
aspect-ratio:unset;
display:flex;
align-items:center;
justify-content:flex-start;
outline:none;
border-radius:4px;
box-sizing:border-box;
font:message-box;
position:relative;
flex:1 1 auto;
padding:0;
gap:8px;
text-align:start;
white-space:normal;
cursor:default;
overflow:hidden;
}
:is(:is(:is(#editorSignatureParamsToolbar #addSignatureDoorHanger) .toolbarAddSignatureButtonContainer) .toolbarAddSignatureButton) > svg{
display:inline-block;
height:100%;
aspect-ratio:1;
background-color:var(--signature-bg);
flex:none;
padding:4px;
box-sizing:border-box;
border:none;
border-radius:4px;
}
:is(:is(:is(:is(#editorSignatureParamsToolbar #addSignatureDoorHanger) .toolbarAddSignatureButtonContainer) .toolbarAddSignatureButton) > svg) > path{
stroke:var(--button-signature-color);
stroke-width:1px;
stroke-linecap:round;
stroke-linejoin:round;
stroke-miterlimit:10;
vector-effect:non-scaling-stroke;
fill:none;
}
.contours:is(:is(:is(:is(:is(#editorSignatureParamsToolbar #addSignatureDoorHanger) .toolbarAddSignatureButtonContainer) .toolbarAddSignatureButton) > svg) > path){
fill:var(--button-signature-color);
stroke-width:0.5px;
}
:is(:is(:is(#editorSignatureParamsToolbar #addSignatureDoorHanger) .toolbarAddSignatureButtonContainer) .toolbarAddSignatureButton):is(:hover,:active) > svg{
border-radius:4px 0 0 4px;
background-color:var(--signature-hover-bg);
}
:is(:is(:is(#editorSignatureParamsToolbar #addSignatureDoorHanger) .toolbarAddSignatureButtonContainer) .toolbarAddSignatureButton):hover > span{
color:var(--button-signature-hover-color);
}
:is(:is(:is(#editorSignatureParamsToolbar #addSignatureDoorHanger) .toolbarAddSignatureButtonContainer) .toolbarAddSignatureButton):active{
background-color:var(--button-signature-active-bg);
}
:is(:is(:is(#editorSignatureParamsToolbar #addSignatureDoorHanger) .toolbarAddSignatureButtonContainer) .toolbarAddSignatureButton):is([disabled="disabled"],[disabled]){
opacity:0.5;
pointer-events:none;
}
:is(:is(:is(#editorSignatureParamsToolbar #addSignatureDoorHanger) .toolbarAddSignatureButtonContainer) .toolbarAddSignatureButton) > span{
height:auto;
text-overflow:ellipsis;
white-space:nowrap;
flex:1 1 auto;
font:menu;
font-size:13px;
font-style:normal;
font-weight:400;
line-height:normal;
overflow:hidden;
}
.editDescription.altText{
--alt-text-add-image:url(images/editor-toolbar-edit.svg) !important;
}
.editDescription.altText::before{
width:16px !important;
height:16px !important;
}
:root{
--outline-width:2px;
--outline-color:#0060df;
--outline-around-width:1px;
--outline-around-color:#f0f0f4;
--hover-outline-around-color:var(--outline-around-color);
--focus-outline:solid var(--outline-width) var(--outline-color);
--unfocus-outline:solid var(--outline-width) transparent;
--focus-outline-around:solid var(--outline-around-width) var(--outline-around-color);
--hover-outline-color:#8f8f9d;
--hover-outline:solid var(--outline-width) var(--hover-outline-color);
--hover-outline-around:solid var(--outline-around-width) var(--hover-outline-around-color);
--freetext-line-height:1.35;
--freetext-padding:2px;
--resizer-bg-color:var(--outline-color);
--resizer-size:6px;
--resizer-shift:calc(
0px - (var(--outline-width) + var(--resizer-size)) / 2 -
var(--outline-around-width)
);
--editorFreeText-editing-cursor:text;
--editorInk-editing-cursor:url(images/cursor-editorInk.svg) 0 16, pointer;
--editorHighlight-editing-cursor:url(images/cursor-editorTextHighlight.svg) 24 24, text;
--editorFreeHighlight-editing-cursor:url(images/cursor-editorFreeHighlight.svg) 1 18, pointer;
--new-alt-text-warning-image:url(images/altText_warning.svg);
}
.visuallyHidden{
position:absolute;
top:0;
left:0;
border:0;
margin:0;
padding:0;
width:0;
height:0;
overflow:hidden;
white-space:nowrap;
font-size:0;
}
.textLayer.highlighting{
cursor:var(--editorFreeHighlight-editing-cursor);
}
.textLayer.highlighting:not(.free) span{
cursor:var(--editorHighlight-editing-cursor);
}
[role="img"]:is(.textLayer.highlighting:not(.free) span){
cursor:var(--editorFreeHighlight-editing-cursor);
}
.textLayer.highlighting.free span{
cursor:var(--editorFreeHighlight-editing-cursor);
}
:is(#viewerContainer.pdfPresentationMode:fullscreen,.annotationEditorLayer.disabled) .noAltTextBadge{
display:none !important;
}
@media (min-resolution: 1.1dppx){
:root{
--editorFreeText-editing-cursor:url(images/cursor-editorFreeText.svg) 0 16, text;
}
}
@media screen and (forced-colors: active){
:root{
--outline-color:CanvasText;
--outline-around-color:ButtonFace;
--resizer-bg-color:ButtonText;
--hover-outline-color:Highlight;
--hover-outline-around-color:SelectedItemText;
}
}
[data-editor-rotation="90"]{
transform:rotate(90deg);
}
[data-editor-rotation="180"]{
transform:rotate(180deg);
}
[data-editor-rotation="270"]{
transform:rotate(270deg);
}
.annotationEditorLayer{
background:transparent;
position:absolute;
inset:0;
font-size:calc(100px * var(--total-scale-factor));
transform-origin:0 0;
cursor:auto;
}
.annotationEditorLayer .selectedEditor{
z-index:100000 !important;
}
.annotationEditorLayer.drawing *{
pointer-events:none !important;
}
.annotationEditorLayer.waiting{
content:"";
cursor:wait;
position:absolute;
inset:0;
width:100%;
height:100%;
}
.annotationEditorLayer.disabled{
pointer-events:none;
}
.annotationEditorLayer.disabled.highlightEditing :is(.freeTextEditor,.inkEditor,.stampEditor,.signatureEditor){
pointer-events:auto;
}
.annotationEditorLayer.freetextEditing{
cursor:var(--editorFreeText-editing-cursor);
}
.annotationEditorLayer.inkEditing{
cursor:var(--editorInk-editing-cursor);
}
.annotationEditorLayer .draw{
box-sizing:border-box;
}
.annotationEditorLayer
:is(.freeTextEditor, .inkEditor, .stampEditor, .signatureEditor){
position:absolute;
background:transparent;
z-index:1;
transform-origin:0 0;
cursor:auto;
max-width:100%;
max-height:100%;
border:var(--unfocus-outline);
}
.draggable.selectedEditor:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.signatureEditor)){
cursor:move;
}
.selectedEditor:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.signatureEditor)){
border:var(--focus-outline);
outline:var(--focus-outline-around);
}
.selectedEditor:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.signatureEditor))::before{
content:"";
position:absolute;
inset:0;
border:var(--focus-outline-around);
pointer-events:none;
}
:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.signatureEditor)):hover:not(.selectedEditor){
border:var(--hover-outline);
outline:var(--hover-outline-around);
}
:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.signatureEditor)):hover:not(.selectedEditor)::before{
content:"";
position:absolute;
inset:0;
border:var(--focus-outline-around);
}
:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar{
--editor-toolbar-delete-image:url(images/editor-toolbar-delete.svg);
--csstools-light-dark-toggle--75:var(--csstools-color-scheme--light) #2b2a33;
--editor-toolbar-bg-color:var(--csstools-light-dark-toggle--75, #f0f0f4);
--editor-toolbar-highlight-image:url(images/toolbarButton-editorHighlight.svg);
--csstools-light-dark-toggle--76:var(--csstools-color-scheme--light) #fbfbfe;
--editor-toolbar-fg-color:var(--csstools-light-dark-toggle--76, #2e2e56);
--editor-toolbar-border-color:#8f8f9d;
--editor-toolbar-hover-border-color:var(--editor-toolbar-border-color);
--csstools-light-dark-toggle--77:var(--csstools-color-scheme--light) #52525e;
--editor-toolbar-hover-bg-color:var(--csstools-light-dark-toggle--77, #e0e0e6);
--editor-toolbar-hover-fg-color:var(--editor-toolbar-fg-color);
--editor-toolbar-hover-outline:none;
--csstools-light-dark-toggle--78:var(--csstools-color-scheme--light) #0df;
--editor-toolbar-focus-outline-color:var(--csstools-light-dark-toggle--78, #0060df);
--editor-toolbar-shadow:0 2px 6px 0 rgb(58 57 68 / 0.2);
--editor-toolbar-vert-offset:6px;
--editor-toolbar-height:28px;
--editor-toolbar-padding:2px;
--csstools-light-dark-toggle--79:var(--csstools-color-scheme--light) #54ffbd;
--alt-text-done-color:var(--csstools-light-dark-toggle--79, #2ac3a2);
--csstools-light-dark-toggle--80:var(--csstools-color-scheme--light) #80ebff;
--alt-text-warning-color:var(--csstools-light-dark-toggle--80, #0090ed);
--alt-text-hover-done-color:var(--alt-text-done-color);
--alt-text-hover-warning-color:var(--alt-text-warning-color);
}
@supports (color: light-dark(red, red)){
:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar{
--editor-toolbar-bg-color:light-dark(#f0f0f4, #2b2a33);
--editor-toolbar-fg-color:light-dark(#2e2e56, #fbfbfe);
--editor-toolbar-hover-bg-color:light-dark(#e0e0e6, #52525e);
--editor-toolbar-focus-outline-color:light-dark(#0060df, #0df);
--alt-text-done-color:light-dark(#2ac3a2, #54ffbd);
--alt-text-warning-color:light-dark(#0090ed, #80ebff);
}
}
@supports not (color: light-dark(tan, tan)){
:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) *{
--csstools-light-dark-toggle--75:var(--csstools-color-scheme--light) #2b2a33;
--editor-toolbar-bg-color:var(--csstools-light-dark-toggle--75, #f0f0f4);
--csstools-light-dark-toggle--76:var(--csstools-color-scheme--light) #fbfbfe;
--editor-toolbar-fg-color:var(--csstools-light-dark-toggle--76, #2e2e56);
--csstools-light-dark-toggle--77:var(--csstools-color-scheme--light) #52525e;
--editor-toolbar-hover-bg-color:var(--csstools-light-dark-toggle--77, #e0e0e6);
--csstools-light-dark-toggle--78:var(--csstools-color-scheme--light) #0df;
--editor-toolbar-focus-outline-color:var(--csstools-light-dark-toggle--78, #0060df);
--csstools-light-dark-toggle--79:var(--csstools-color-scheme--light) #54ffbd;
--alt-text-done-color:var(--csstools-light-dark-toggle--79, #2ac3a2);
--csstools-light-dark-toggle--80:var(--csstools-color-scheme--light) #80ebff;
--alt-text-warning-color:var(--csstools-light-dark-toggle--80, #0090ed);
}
}
@media screen and (forced-colors: active){
:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar{
--editor-toolbar-bg-color:ButtonFace;
--editor-toolbar-fg-color:ButtonText;
--editor-toolbar-border-color:ButtonText;
--editor-toolbar-hover-border-color:AccentColor;
--editor-toolbar-hover-bg-color:ButtonFace;
--editor-toolbar-hover-fg-color:AccentColor;
--editor-toolbar-hover-outline:2px solid var(--editor-toolbar-hover-border-color);
--editor-toolbar-focus-outline-color:ButtonBorder;
--editor-toolbar-shadow:none;
--alt-text-done-color:var(--editor-toolbar-fg-color);
--alt-text-warning-color:var(--editor-toolbar-fg-color);
--alt-text-hover-done-color:var(--editor-toolbar-hover-fg-color);
--alt-text-hover-warning-color:var(--editor-toolbar-hover-fg-color);
}
}
:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar{
display:flex;
width:-moz-fit-content;
width:fit-content;
height:var(--editor-toolbar-height);
flex-direction:column;
justify-content:center;
align-items:center;
cursor:default;
pointer-events:auto;
box-sizing:content-box;
padding:var(--editor-toolbar-padding);
position:absolute;
inset-inline-end:0;
inset-block-start:calc(100% + var(--editor-toolbar-vert-offset));
border-radius:6px;
background-color:var(--editor-toolbar-bg-color);
border:1px solid var(--editor-toolbar-border-color);
box-shadow:var(--editor-toolbar-shadow);
}
.hidden:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar){
display:none;
}
:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar):has(:focus-visible){
border-color:transparent;
}
[dir="ltr"] :is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar){
transform-origin:100% 0;
}
[dir="rtl"] :is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar){
transform-origin:0 0;
}
:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons{
display:flex;
justify-content:center;
align-items:center;
gap:0;
height:100%;
}
:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) button{
padding:0;
}
:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .divider{
width:0;
height:calc(
2 * var(--editor-toolbar-padding) + var(--editor-toolbar-height)
);
border-left:1px solid var(--editor-toolbar-border-color);
border-right:none;
display:inline-block;
margin-inline:2px;
}
:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .highlightButton{
width:var(--editor-toolbar-height);
}
:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .highlightButton)::before{
content:"";
-webkit-mask-image:var(--editor-toolbar-highlight-image);
mask-image:var(--editor-toolbar-highlight-image);
-webkit-mask-repeat:no-repeat;
mask-repeat:no-repeat;
-webkit-mask-position:center;
mask-position:center;
display:inline-block;
background-color:var(--editor-toolbar-fg-color);
width:100%;
height:100%;
}
:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .highlightButton):hover::before{
background-color:var(--editor-toolbar-hover-fg-color);
}
:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .delete{
width:var(--editor-toolbar-height);
}
:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .delete)::before{
content:"";
-webkit-mask-image:var(--editor-toolbar-delete-image);
mask-image:var(--editor-toolbar-delete-image);
-webkit-mask-repeat:no-repeat;
mask-repeat:no-repeat;
-webkit-mask-position:center;
mask-position:center;
display:inline-block;
background-color:var(--editor-toolbar-fg-color);
width:100%;
height:100%;
}
:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .delete):hover::before{
background-color:var(--editor-toolbar-hover-fg-color);
}
:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) > *{
height:var(--editor-toolbar-height);
}
:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) > :not(.divider){
border:none;
background-color:transparent;
cursor:pointer;
}
:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) > :not(.divider)):hover{
border-radius:2px;
background-color:var(--editor-toolbar-hover-bg-color);
color:var(--editor-toolbar-hover-fg-color);
outline:var(--editor-toolbar-hover-outline);
outline-offset:1px;
}
:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) > :not(.divider)):hover:active{
outline:none;
}
:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) > :not(.divider)):focus-visible{
border-radius:2px;
outline:2px solid var(--editor-toolbar-focus-outline-color);
}
:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .altText{
--alt-text-add-image:url(images/altText_add.svg);
--alt-text-done-image:url(images/altText_done.svg);
display:flex;
align-items:center;
justify-content:center;
width:-moz-max-content;
width:max-content;
padding-inline:8px;
pointer-events:all;
font:menu;
font-weight:590;
font-size:12px;
color:var(--editor-toolbar-fg-color);
}
:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .altText):disabled{
pointer-events:none;
}
:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .altText)::before{
content:"";
-webkit-mask-image:var(--alt-text-add-image);
mask-image:var(--alt-text-add-image);
-webkit-mask-repeat:no-repeat;
mask-repeat:no-repeat;
-webkit-mask-position:center;
mask-position:center;
display:inline-block;
width:12px;
height:13px;
background-color:var(--editor-toolbar-fg-color);
margin-inline-end:4px;
}
:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .altText):hover::before{
background-color:var(--editor-toolbar-hover-fg-color);
}
.done:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .altText)::before{
-webkit-mask-image:var(--alt-text-done-image);
mask-image:var(--alt-text-done-image);
}
.new:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .altText)::before{
width:16px;
height:16px;
-webkit-mask-image:var(--new-alt-text-warning-image);
mask-image:var(--new-alt-text-warning-image);
background-color:var(--alt-text-warning-color);
-webkit-mask-size:cover;
mask-size:cover;
}
.new:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .altText):hover::before{
background-color:var(--alt-text-hover-warning-color);
}
.new.done:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .altText)::before{
-webkit-mask-image:var(--alt-text-done-image);
mask-image:var(--alt-text-done-image);
background-color:var(--alt-text-done-color);
}
.new.done:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .altText):hover::before{
background-color:var(--alt-text-hover-done-color);
}
:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .altText) .tooltip{
display:none;
word-wrap:anywhere;
}
.show:is(:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .altText) .tooltip){
--csstools-light-dark-toggle--81:var(--csstools-color-scheme--light) #1c1b22;
--alt-text-tooltip-bg:var(--csstools-light-dark-toggle--81, #f0f0f4);
--csstools-light-dark-toggle--82:var(--csstools-color-scheme--light) #fbfbfe;
--alt-text-tooltip-fg:var(--csstools-light-dark-toggle--82, #15141a);
--alt-text-tooltip-border:#8f8f9d;
--csstools-light-dark-toggle--83:var(--csstools-color-scheme--light) #15141a;
--alt-text-tooltip-shadow:0px 2px 6px 0px var(--csstools-light-dark-toggle--83, rgb(58 57 68 / 0.2));
}
@supports (color: light-dark(red, red)){
.show:is(:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .altText) .tooltip){
--alt-text-tooltip-bg:light-dark(#f0f0f4, #1c1b22);
--alt-text-tooltip-fg:light-dark(#15141a, #fbfbfe);
}
}
@supports (color: light-dark(red, red)) and (color: rgb(0 0 0 / 0)){
.show:is(:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .altText) .tooltip){
--alt-text-tooltip-shadow:0px 2px 6px 0px light-dark(rgb(58 57 68 / 0.2), #15141a);
}
}
@supports not (color: light-dark(tan, tan)){
.show:is(:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .altText) .tooltip) *{
--csstools-light-dark-toggle--81:var(--csstools-color-scheme--light) #1c1b22;
--alt-text-tooltip-bg:var(--csstools-light-dark-toggle--81, #f0f0f4);
--csstools-light-dark-toggle--82:var(--csstools-color-scheme--light) #fbfbfe;
--alt-text-tooltip-fg:var(--csstools-light-dark-toggle--82, #15141a);
--csstools-light-dark-toggle--83:var(--csstools-color-scheme--light) #15141a;
--alt-text-tooltip-shadow:0px 2px 6px 0px var(--csstools-light-dark-toggle--83, rgb(58 57 68 / 0.2));
}
}
@media screen and (forced-colors: active){
.show:is(:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .altText) .tooltip){
--alt-text-tooltip-bg:Canvas;
--alt-text-tooltip-fg:CanvasText;
--alt-text-tooltip-border:CanvasText;
--alt-text-tooltip-shadow:none;
}
}
.show:is(:is(:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.highlightEditor,.signatureEditor),.textLayer) .editToolbar) .buttons) .altText) .tooltip){
display:inline-flex;
flex-direction:column;
align-items:center;
justify-content:center;
position:absolute;
top:calc(100% + 2px);
inset-inline-start:0;
padding-block:2px 3px;
padding-inline:3px;
max-width:300px;
width:-moz-max-content;
width:max-content;
height:auto;
font-size:12px;
border:0.5px solid var(--alt-text-tooltip-border);
background:var(--alt-text-tooltip-bg);
box-shadow:var(--alt-text-tooltip-shadow);
color:var(--alt-text-tooltip-fg);
pointer-events:none;
}
.annotationEditorLayer .freeTextEditor{
padding:calc(var(--freetext-padding) * var(--total-scale-factor));
width:auto;
height:auto;
touch-action:none;
}
.annotationEditorLayer .freeTextEditor .internal{
background:transparent;
border:none;
inset:0;
overflow:visible;
white-space:nowrap;
font:10px sans-serif;
line-height:var(--freetext-line-height);
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
}
.annotationEditorLayer .freeTextEditor .overlay{
position:absolute;
display:none;
background:transparent;
inset:0;
width:100%;
height:100%;
}
.annotationEditorLayer freeTextEditor .overlay.enabled{
display:block;
}
.annotationEditorLayer .freeTextEditor .internal:empty::before{
content:attr(default-content);
color:gray;
}
.annotationEditorLayer .freeTextEditor .internal:focus{
outline:none;
-webkit-user-select:auto;
-moz-user-select:auto;
user-select:auto;
}
.annotationEditorLayer .inkEditor{
width:100%;
height:100%;
}
.annotationEditorLayer .inkEditor.editing{
cursor:inherit;
}
.annotationEditorLayer .inkEditor .inkEditorCanvas{
position:absolute;
inset:0;
width:100%;
height:100%;
touch-action:none;
}
.annotationEditorLayer .stampEditor{
width:auto;
height:auto;
}
:is(.annotationEditorLayer .stampEditor) canvas{
position:absolute;
width:100%;
height:100%;
margin:0;
top:0;
left:0;
}
:is(.annotationEditorLayer .stampEditor) .noAltTextBadge{
--csstools-light-dark-toggle--84:var(--csstools-color-scheme--light) #52525e;
--no-alt-text-badge-border-color:var(--csstools-light-dark-toggle--84, #f0f0f4);
--csstools-light-dark-toggle--85:var(--csstools-color-scheme--light) #fbfbfe;
--no-alt-text-badge-bg-color:var(--csstools-light-dark-toggle--85, #cfcfd8);
--csstools-light-dark-toggle--86:var(--csstools-color-scheme--light) #15141a;
--no-alt-text-badge-fg-color:var(--csstools-light-dark-toggle--86, #5b5b66);
}
@supports (color: light-dark(red, red)){
:is(.annotationEditorLayer .stampEditor) .noAltTextBadge{
--no-alt-text-badge-border-color:light-dark(#f0f0f4, #52525e);
--no-alt-text-badge-bg-color:light-dark(#cfcfd8, #fbfbfe);
--no-alt-text-badge-fg-color:light-dark(#5b5b66, #15141a);
}
}
@supports not (color: light-dark(tan, tan)){
:is(:is(.annotationEditorLayer .stampEditor) .noAltTextBadge) *{
--csstools-light-dark-toggle--84:var(--csstools-color-scheme--light) #52525e;
--no-alt-text-badge-border-color:var(--csstools-light-dark-toggle--84, #f0f0f4);
--csstools-light-dark-toggle--85:var(--csstools-color-scheme--light) #fbfbfe;
--no-alt-text-badge-bg-color:var(--csstools-light-dark-toggle--85, #cfcfd8);
--csstools-light-dark-toggle--86:var(--csstools-color-scheme--light) #15141a;
--no-alt-text-badge-fg-color:var(--csstools-light-dark-toggle--86, #5b5b66);
}
}
@media screen and (forced-colors: active){
:is(.annotationEditorLayer .stampEditor) .noAltTextBadge{
--no-alt-text-badge-border-color:ButtonText;
--no-alt-text-badge-bg-color:ButtonFace;
--no-alt-text-badge-fg-color:ButtonText;
}
}
:is(.annotationEditorLayer .stampEditor) .noAltTextBadge{
position:absolute;
inset-inline-end:5px;
inset-block-end:5px;
display:inline-flex;
width:32px;
height:32px;
padding:3px;
justify-content:center;
align-items:center;
pointer-events:none;
z-index:1;
border-radius:2px;
border:1px solid var(--no-alt-text-badge-border-color);
background:var(--no-alt-text-badge-bg-color);
}
:is(:is(.annotationEditorLayer .stampEditor) .noAltTextBadge)::before{
content:"";
display:inline-block;
width:16px;
height:16px;
-webkit-mask-image:var(--new-alt-text-warning-image);
mask-image:var(--new-alt-text-warning-image);
-webkit-mask-size:cover;
mask-size:cover;
background-color:var(--no-alt-text-badge-fg-color);
}
:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.signatureEditor)) > .resizers{
position:absolute;
inset:0;
}
.hidden:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.signatureEditor)) > .resizers){
display:none;
}
:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.signatureEditor)) > .resizers) > .resizer{
width:var(--resizer-size);
height:var(--resizer-size);
background:content-box var(--resizer-bg-color);
border:var(--focus-outline-around);
border-radius:2px;
position:absolute;
}
.topLeft:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.signatureEditor)) > .resizers) > .resizer){
top:var(--resizer-shift);
left:var(--resizer-shift);
}
.topMiddle:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.signatureEditor)) > .resizers) > .resizer){
top:var(--resizer-shift);
left:calc(50% + var(--resizer-shift));
}
.topRight:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.signatureEditor)) > .resizers) > .resizer){
top:var(--resizer-shift);
right:var(--resizer-shift);
}
.middleRight:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.signatureEditor)) > .resizers) > .resizer){
top:calc(50% + var(--resizer-shift));
right:var(--resizer-shift);
}
.bottomRight:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.signatureEditor)) > .resizers) > .resizer){
bottom:var(--resizer-shift);
right:var(--resizer-shift);
}
.bottomMiddle:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.signatureEditor)) > .resizers) > .resizer){
bottom:var(--resizer-shift);
left:calc(50% + var(--resizer-shift));
}
.bottomLeft:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.signatureEditor)) > .resizers) > .resizer){
bottom:var(--resizer-shift);
left:var(--resizer-shift);
}
.middleLeft:is(:is(:is(.annotationEditorLayer :is(.freeTextEditor,.inkEditor,.stampEditor,.signatureEditor)) > .resizers) > .resizer){
top:calc(50% + var(--resizer-shift));
left:var(--resizer-shift);
}
.topLeft:is(:is(.annotationEditorLayer[data-main-rotation="0"] :is([data-editor-rotation="0"],[data-editor-rotation="180"]),.annotationEditorLayer[data-main-rotation="90"] :is([data-editor-rotation="270"],[data-editor-rotation="90"]),.annotationEditorLayer[data-main-rotation="180"] :is([data-editor-rotation="180"],[data-editor-rotation="0"]),.annotationEditorLayer[data-main-rotation="270"] :is([data-editor-rotation="90"],[data-editor-rotation="270"])) > .resizers > .resizer),.bottomRight:is(:is(.annotationEditorLayer[data-main-rotation="0"] :is([data-editor-rotation="0"],[data-editor-rotation="180"]),.annotationEditorLayer[data-main-rotation="90"] :is([data-editor-rotation="270"],[data-editor-rotation="90"]),.annotationEditorLayer[data-main-rotation="180"] :is([data-editor-rotation="180"],[data-editor-rotation="0"]),.annotationEditorLayer[data-main-rotation="270"] :is([data-editor-rotation="90"],[data-editor-rotation="270"])) > .resizers > .resizer){
cursor:nwse-resize;
}
.topMiddle:is(:is(.annotationEditorLayer[data-main-rotation="0"] :is([data-editor-rotation="0"],[data-editor-rotation="180"]),.annotationEditorLayer[data-main-rotation="90"] :is([data-editor-rotation="270"],[data-editor-rotation="90"]),.annotationEditorLayer[data-main-rotation="180"] :is([data-editor-rotation="180"],[data-editor-rotation="0"]),.annotationEditorLayer[data-main-rotation="270"] :is([data-editor-rotation="90"],[data-editor-rotation="270"])) > .resizers > .resizer),.bottomMiddle:is(:is(.annotationEditorLayer[data-main-rotation="0"] :is([data-editor-rotation="0"],[data-editor-rotation="180"]),.annotationEditorLayer[data-main-rotation="90"] :is([data-editor-rotation="270"],[data-editor-rotation="90"]),.annotationEditorLayer[data-main-rotation="180"] :is([data-editor-rotation="180"],[data-editor-rotation="0"]),.annotationEditorLayer[data-main-rotation="270"] :is([data-editor-rotation="90"],[data-editor-rotation="270"])) > .resizers > .resizer){
cursor:ns-resize;
}
.topRight:is(:is(.annotationEditorLayer[data-main-rotation="0"] :is([data-editor-rotation="0"],[data-editor-rotation="180"]),.annotationEditorLayer[data-main-rotation="90"] :is([data-editor-rotation="270"],[data-editor-rotation="90"]),.annotationEditorLayer[data-main-rotation="180"] :is([data-editor-rotation="180"],[data-editor-rotation="0"]),.annotationEditorLayer[data-main-rotation="270"] :is([data-editor-rotation="90"],[data-editor-rotation="270"])) > .resizers > .resizer),.bottomLeft:is(:is(.annotationEditorLayer[data-main-rotation="0"] :is([data-editor-rotation="0"],[data-editor-rotation="180"]),.annotationEditorLayer[data-main-rotation="90"] :is([data-editor-rotation="270"],[data-editor-rotation="90"]),.annotationEditorLayer[data-main-rotation="180"] :is([data-editor-rotation="180"],[data-editor-rotation="0"]),.annotationEditorLayer[data-main-rotation="270"] :is([data-editor-rotation="90"],[data-editor-rotation="270"])) > .resizers > .resizer){
cursor:nesw-resize;
}
.middleRight:is(:is(.annotationEditorLayer[data-main-rotation="0"] :is([data-editor-rotation="0"],[data-editor-rotation="180"]),.annotationEditorLayer[data-main-rotation="90"] :is([data-editor-rotation="270"],[data-editor-rotation="90"]),.annotationEditorLayer[data-main-rotation="180"] :is([data-editor-rotation="180"],[data-editor-rotation="0"]),.annotationEditorLayer[data-main-rotation="270"] :is([data-editor-rotation="90"],[data-editor-rotation="270"])) > .resizers > .resizer),.middleLeft:is(:is(.annotationEditorLayer[data-main-rotation="0"] :is([data-editor-rotation="0"],[data-editor-rotation="180"]),.annotationEditorLayer[data-main-rotation="90"] :is([data-editor-rotation="270"],[data-editor-rotation="90"]),.annotationEditorLayer[data-main-rotation="180"] :is([data-editor-rotation="180"],[data-editor-rotation="0"]),.annotationEditorLayer[data-main-rotation="270"] :is([data-editor-rotation="90"],[data-editor-rotation="270"])) > .resizers > .resizer){
cursor:ew-resize;
}
.topLeft:is(:is(.annotationEditorLayer[data-main-rotation="0"] :is([data-editor-rotation="90"],[data-editor-rotation="270"]),.annotationEditorLayer[data-main-rotation="90"] :is([data-editor-rotation="0"],[data-editor-rotation="180"]),.annotationEditorLayer[data-main-rotation="180"] :is([data-editor-rotation="270"],[data-editor-rotation="90"]),.annotationEditorLayer[data-main-rotation="270"] :is([data-editor-rotation="180"],[data-editor-rotation="0"])) > .resizers > .resizer),.bottomRight:is(:is(.annotationEditorLayer[data-main-rotation="0"] :is([data-editor-rotation="90"],[data-editor-rotation="270"]),.annotationEditorLayer[data-main-rotation="90"] :is([data-editor-rotation="0"],[data-editor-rotation="180"]),.annotationEditorLayer[data-main-rotation="180"] :is([data-editor-rotation="270"],[data-editor-rotation="90"]),.annotationEditorLayer[data-main-rotation="270"] :is([data-editor-rotation="180"],[data-editor-rotation="0"])) > .resizers > .resizer){
cursor:nesw-resize;
}
.topMiddle:is(:is(.annotationEditorLayer[data-main-rotation="0"] :is([data-editor-rotation="90"],[data-editor-rotation="270"]),.annotationEditorLayer[data-main-rotation="90"] :is([data-editor-rotation="0"],[data-editor-rotation="180"]),.annotationEditorLayer[data-main-rotation="180"] :is([data-editor-rotation="270"],[data-editor-rotation="90"]),.annotationEditorLayer[data-main-rotation="270"] :is([data-editor-rotation="180"],[data-editor-rotation="0"])) > .resizers > .resizer),.bottomMiddle:is(:is(.annotationEditorLayer[data-main-rotation="0"] :is([data-editor-rotation="90"],[data-editor-rotation="270"]),.annotationEditorLayer[data-main-rotation="90"] :is([data-editor-rotation="0"],[data-editor-rotation="180"]),.annotationEditorLayer[data-main-rotation="180"] :is([data-editor-rotation="270"],[data-editor-rotation="90"]),.annotationEditorLayer[data-main-rotation="270"] :is([data-editor-rotation="180"],[data-editor-rotation="0"])) > .resizers > .resizer){
cursor:ew-resize;
}
.topRight:is(:is(.annotationEditorLayer[data-main-rotation="0"] :is([data-editor-rotation="90"],[data-editor-rotation="270"]),.annotationEditorLayer[data-main-rotation="90"] :is([data-editor-rotation="0"],[data-editor-rotation="180"]),.annotationEditorLayer[data-main-rotation="180"] :is([data-editor-rotation="270"],[data-editor-rotation="90"]),.annotationEditorLayer[data-main-rotation="270"] :is([data-editor-rotation="180"],[data-editor-rotation="0"])) > .resizers > .resizer),.bottomLeft:is(:is(.annotationEditorLayer[data-main-rotation="0"] :is([data-editor-rotation="90"],[data-editor-rotation="270"]),.annotationEditorLayer[data-main-rotation="90"] :is([data-editor-rotation="0"],[data-editor-rotation="180"]),.annotationEditorLayer[data-main-rotation="180"] :is([data-editor-rotation="270"],[data-editor-rotation="90"]),.annotationEditorLayer[data-main-rotation="270"] :is([data-editor-rotation="180"],[data-editor-rotation="0"])) > .resizers > .resizer){
cursor:nwse-resize;
}
.middleRight:is(:is(.annotationEditorLayer[data-main-rotation="0"] :is([data-editor-rotation="90"],[data-editor-rotation="270"]),.annotationEditorLayer[data-main-rotation="90"] :is([data-editor-rotation="0"],[data-editor-rotation="180"]),.annotationEditorLayer[data-main-rotation="180"] :is([data-editor-rotation="270"],[data-editor-rotation="90"]),.annotationEditorLayer[data-main-rotation="270"] :is([data-editor-rotation="180"],[data-editor-rotation="0"])) > .resizers > .resizer),.middleLeft:is(:is(.annotationEditorLayer[data-main-rotation="0"] :is([data-editor-rotation="90"],[data-editor-rotation="270"]),.annotationEditorLayer[data-main-rotation="90"] :is([data-editor-rotation="0"],[data-editor-rotation="180"]),.annotationEditorLayer[data-main-rotation="180"] :is([data-editor-rotation="270"],[data-editor-rotation="90"]),.annotationEditorLayer[data-main-rotation="270"] :is([data-editor-rotation="180"],[data-editor-rotation="0"])) > .resizers > .resizer){
cursor:ns-resize;
}
:is(.annotationEditorLayer :is([data-main-rotation="0"] [data-editor-rotation="90"],[data-main-rotation="90"] [data-editor-rotation="0"],[data-main-rotation="180"] [data-editor-rotation="270"],[data-main-rotation="270"] [data-editor-rotation="180"])) .editToolbar{
rotate:270deg;
}
[dir="ltr"] :is(:is(.annotationEditorLayer :is([data-main-rotation="0"] [data-editor-rotation="90"],[data-main-rotation="90"] [data-editor-rotation="0"],[data-main-rotation="180"] [data-editor-rotation="270"],[data-main-rotation="270"] [data-editor-rotation="180"])) .editToolbar){
inset-inline-end:calc(0px - var(--editor-toolbar-vert-offset));
inset-block-start:0;
}
[dir="rtl"] :is(:is(.annotationEditorLayer :is([data-main-rotation="0"] [data-editor-rotation="90"],[data-main-rotation="90"] [data-editor-rotation="0"],[data-main-rotation="180"] [data-editor-rotation="270"],[data-main-rotation="270"] [data-editor-rotation="180"])) .editToolbar){
inset-inline-end:calc(100% + var(--editor-toolbar-vert-offset));
inset-block-start:0;
}
:is(.annotationEditorLayer :is([data-main-rotation="0"] [data-editor-rotation="180"],[data-main-rotation="90"] [data-editor-rotation="90"],[data-main-rotation="180"] [data-editor-rotation="0"],[data-main-rotation="270"] [data-editor-rotation="270"])) .editToolbar{
rotate:180deg;
inset-inline-end:100%;
inset-block-start:calc(0pc - var(--editor-toolbar-vert-offset));
}
:is(.annotationEditorLayer :is([data-main-rotation="0"] [data-editor-rotation="270"],[data-main-rotation="90"] [data-editor-rotation="180"],[data-main-rotation="180"] [data-editor-rotation="90"],[data-main-rotation="270"] [data-editor-rotation="0"])) .editToolbar{
rotate:90deg;
}
[dir="ltr"] :is(:is(.annotationEditorLayer :is([data-main-rotation="0"] [data-editor-rotation="270"],[data-main-rotation="90"] [data-editor-rotation="180"],[data-main-rotation="180"] [data-editor-rotation="90"],[data-main-rotation="270"] [data-editor-rotation="0"])) .editToolbar){
inset-inline-end:calc(100% + var(--editor-toolbar-vert-offset));
inset-block-start:100%;
}
[dir="rtl"] :is(:is(.annotationEditorLayer :is([data-main-rotation="0"] [data-editor-rotation="270"],[data-main-rotation="90"] [data-editor-rotation="180"],[data-main-rotation="180"] [data-editor-rotation="90"],[data-main-rotation="270"] [data-editor-rotation="0"])) .editToolbar){
inset-inline-start:calc(0px - var(--editor-toolbar-vert-offset));
inset-block-start:0;
}
.dialog.altText::backdrop{
-webkit-mask:url(#alttext-manager-mask);
mask:url(#alttext-manager-mask);
}
.dialog.altText.positioned{
margin:0;
}
.dialog.altText #altTextContainer{
width:300px;
height:-moz-fit-content;
height:fit-content;
display:inline-flex;
flex-direction:column;
align-items:flex-start;
gap:16px;
}
:is(.dialog.altText #altTextContainer) #overallDescription{
display:flex;
flex-direction:column;
align-items:flex-start;
gap:4px;
align-self:stretch;
}
:is(:is(.dialog.altText #altTextContainer) #overallDescription) span{
align-self:stretch;
}
:is(:is(.dialog.altText #altTextContainer) #overallDescription) .title{
font-size:13px;
font-style:normal;
font-weight:590;
}
:is(.dialog.altText #altTextContainer) #addDescription{
display:flex;
flex-direction:column;
align-items:stretch;
gap:8px;
}
:is(:is(.dialog.altText #altTextContainer) #addDescription) .descriptionArea{
flex:1;
padding-inline:24px 10px;
}
:is(:is(:is(.dialog.altText #altTextContainer) #addDescription) .descriptionArea) textarea{
width:100%;
min-height:75px;
}
:is(.dialog.altText #altTextContainer) #buttons{
display:flex;
justify-content:flex-end;
align-items:flex-start;
gap:8px;
align-self:stretch;
}
.dialog.newAltText{
--new-alt-text-ai-disclaimer-icon:url(images/altText_disclaimer.svg);
--new-alt-text-spinner-icon:url(images/altText_spinner.svg);
--csstools-light-dark-toggle--87:var(--csstools-color-scheme--light) #2b2a33;
--preview-image-bg-color:var(--csstools-light-dark-toggle--87, #f0f0f4);
--preview-image-border:none;
}
@supports (color: light-dark(red, red)){
.dialog.newAltText{
--preview-image-bg-color:light-dark(#f0f0f4, #2b2a33);
}
}
@supports not (color: light-dark(tan, tan)){
.dialog.newAltText *{
--csstools-light-dark-toggle--87:var(--csstools-color-scheme--light) #2b2a33;
--preview-image-bg-color:var(--csstools-light-dark-toggle--87, #f0f0f4);
}
}
@media screen and (forced-colors: active){
.dialog.newAltText{
--preview-image-bg-color:ButtonFace;
--preview-image-border:1px solid ButtonText;
}
}
.dialog.newAltText{
width:80%;
max-width:570px;
min-width:300px;
padding:0;
}
.dialog.newAltText.noAi #newAltTextDisclaimer,.dialog.newAltText.noAi #newAltTextCreateAutomatically{
display:none !important;
}
.dialog.newAltText.aiInstalling #newAltTextCreateAutomatically{
display:none !important;
}
.dialog.newAltText.aiInstalling #newAltTextDownloadModel{
display:flex !important;
}
.dialog.newAltText.error #newAltTextNotNow{
display:none !important;
}
.dialog.newAltText.error #newAltTextCancel{
display:inline-block !important;
}
.dialog.newAltText:not(.error) #newAltTextError{
display:none !important;
}
.dialog.newAltText #newAltTextContainer{
display:flex;
width:auto;
padding:16px;
flex-direction:column;
justify-content:flex-end;
align-items:flex-start;
gap:12px;
flex:0 1 auto;
line-height:normal;
}
:is(.dialog.newAltText #newAltTextContainer) #mainContent{
display:flex;
justify-content:flex-end;
align-items:flex-start;
gap:12px;
align-self:stretch;
flex:1 1 auto;
}
:is(:is(.dialog.newAltText #newAltTextContainer) #mainContent) #descriptionAndSettings{
display:flex;
flex-direction:column;
align-items:flex-start;
gap:16px;
flex:1 0 0;
align-self:stretch;
}
:is(:is(.dialog.newAltText #newAltTextContainer) #mainContent) #descriptionInstruction{
display:flex;
flex-direction:column;
align-items:flex-start;
gap:8px;
align-self:stretch;
flex:1 1 auto;
}
:is(:is(:is(.dialog.newAltText #newAltTextContainer) #mainContent) #descriptionInstruction) #newAltTextDescriptionContainer{
width:100%;
height:70px;
position:relative;
}
:is(:is(:is(:is(.dialog.newAltText #newAltTextContainer) #mainContent) #descriptionInstruction) #newAltTextDescriptionContainer) textarea{
width:100%;
height:100%;
padding:8px;
}
:is(:is(:is(:is(:is(.dialog.newAltText #newAltTextContainer) #mainContent) #descriptionInstruction) #newAltTextDescriptionContainer) textarea)::-moz-placeholder{
color:var(--text-secondary-color);
}
:is(:is(:is(:is(:is(.dialog.newAltText #newAltTextContainer) #mainContent) #descriptionInstruction) #newAltTextDescriptionContainer) textarea)::placeholder{
color:var(--text-secondary-color);
}
:is(:is(:is(:is(.dialog.newAltText #newAltTextContainer) #mainContent) #descriptionInstruction) #newAltTextDescriptionContainer) .altTextSpinner{
display:none;
position:absolute;
width:16px;
height:16px;
inset-inline-start:8px;
inset-block-start:8px;
-webkit-mask-size:cover;
mask-size:cover;
background-color:var(--text-secondary-color);
pointer-events:none;
}
.loading:is(:is(:is(:is(.dialog.newAltText #newAltTextContainer) #mainContent) #descriptionInstruction) #newAltTextDescriptionContainer) textarea::-moz-placeholder{
color:transparent;
}
.loading:is(:is(:is(:is(.dialog.newAltText #newAltTextContainer) #mainContent) #descriptionInstruction) #newAltTextDescriptionContainer) textarea::placeholder{
color:transparent;
}
.loading:is(:is(:is(:is(.dialog.newAltText #newAltTextContainer) #mainContent) #descriptionInstruction) #newAltTextDescriptionContainer) .altTextSpinner{
display:inline-block;
-webkit-mask-image:var(--new-alt-text-spinner-icon);
mask-image:var(--new-alt-text-spinner-icon);
}
:is(:is(:is(.dialog.newAltText #newAltTextContainer) #mainContent) #descriptionInstruction) #newAltTextDescription{
font-size:11px;
}
:is(:is(:is(.dialog.newAltText #newAltTextContainer) #mainContent) #descriptionInstruction) #newAltTextDisclaimer{
display:flex;
flex-direction:row;
align-items:flex-start;
gap:4px;
font-size:11px;
}
:is(:is(:is(:is(.dialog.newAltText #newAltTextContainer) #mainContent) #descriptionInstruction) #newAltTextDisclaimer)::before{
content:"";
display:inline-block;
width:17px;
height:16px;
-webkit-mask-image:var(--new-alt-text-ai-disclaimer-icon);
mask-image:var(--new-alt-text-ai-disclaimer-icon);
-webkit-mask-size:cover;
mask-size:cover;
background-color:var(--text-secondary-color);
flex:1 0 auto;
}
:is(:is(.dialog.newAltText #newAltTextContainer) #mainContent) #newAltTextDownloadModel{
display:flex;
align-items:center;
gap:4px;
align-self:stretch;
}
:is(:is(:is(.dialog.newAltText #newAltTextContainer) #mainContent) #newAltTextDownloadModel)::before{
content:"";
display:inline-block;
width:16px;
height:16px;
-webkit-mask-image:var(--new-alt-text-spinner-icon);
mask-image:var(--new-alt-text-spinner-icon);
-webkit-mask-size:cover;
mask-size:cover;
background-color:var(--text-secondary-color);
}
:is(:is(.dialog.newAltText #newAltTextContainer) #mainContent) #newAltTextImagePreview{
width:180px;
aspect-ratio:1;
display:flex;
justify-content:center;
align-items:center;
flex:0 0 auto;
background-color:var(--preview-image-bg-color);
border:var(--preview-image-border);
}
:is(:is(:is(.dialog.newAltText #newAltTextContainer) #mainContent) #newAltTextImagePreview) > canvas{
max-width:100%;
max-height:100%;
}
.colorPicker{
--csstools-light-dark-toggle--88:var(--csstools-color-scheme--light) #80ebff;
--hover-outline-color:var(--csstools-light-dark-toggle--88, #0250bb);
--csstools-light-dark-toggle--89:var(--csstools-color-scheme--light) #aaf2ff;
--selected-outline-color:var(--csstools-light-dark-toggle--89, #0060df);
--csstools-light-dark-toggle--90:var(--csstools-color-scheme--light) #52525e;
--swatch-border-color:var(--csstools-light-dark-toggle--90, #cfcfd8);
}
@supports (color: light-dark(red, red)){
.colorPicker{
--hover-outline-color:light-dark(#0250bb, #80ebff);
--selected-outline-color:light-dark(#0060df, #aaf2ff);
--swatch-border-color:light-dark(#cfcfd8, #52525e);
}
}
@supports not (color: light-dark(tan, tan)){
.colorPicker *{
--csstools-light-dark-toggle--88:var(--csstools-color-scheme--light) #80ebff;
--hover-outline-color:var(--csstools-light-dark-toggle--88, #0250bb);
--csstools-light-dark-toggle--89:var(--csstools-color-scheme--light) #aaf2ff;
--selected-outline-color:var(--csstools-light-dark-toggle--89, #0060df);
--csstools-light-dark-toggle--90:var(--csstools-color-scheme--light) #52525e;
--swatch-border-color:var(--csstools-light-dark-toggle--90, #cfcfd8);
}
}
@media screen and (forced-colors: active){
.colorPicker{
--hover-outline-color:Highlight;
--selected-outline-color:var(--hover-outline-color);
--swatch-border-color:ButtonText;
}
}
.colorPicker .swatch{
width:16px;
height:16px;
border:1px solid var(--swatch-border-color);
border-radius:100%;
outline-offset:2px;
box-sizing:border-box;
forced-color-adjust:none;
}
.colorPicker button:is(:hover,.selected) > .swatch{
border:none;
}
.annotationEditorLayer[data-main-rotation="0"] .highlightEditor:not(.free) > .editToolbar{
rotate:0deg;
}
.annotationEditorLayer[data-main-rotation="90"] .highlightEditor:not(.free) > .editToolbar{
rotate:270deg;
}
.annotationEditorLayer[data-main-rotation="180"] .highlightEditor:not(.free) > .editToolbar{
rotate:180deg;
}
.annotationEditorLayer[data-main-rotation="270"] .highlightEditor:not(.free) > .editToolbar{
rotate:90deg;
}
.annotationEditorLayer .highlightEditor{
position:absolute;
background:transparent;
z-index:1;
cursor:auto;
max-width:100%;
max-height:100%;
border:none;
outline:none;
pointer-events:none;
transform-origin:0 0;
}
:is(.annotationEditorLayer .highlightEditor):not(.free){
transform:none;
}
:is(.annotationEditorLayer .highlightEditor) .internal{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
pointer-events:auto;
}
.disabled:is(.annotationEditorLayer .highlightEditor) .internal{
pointer-events:none;
}
.selectedEditor:is(.annotationEditorLayer .highlightEditor) .internal{
cursor:pointer;
}
:is(.annotationEditorLayer .highlightEditor) .editToolbar{
--editor-toolbar-colorpicker-arrow-image:url(images/toolbarButton-menuArrow.svg);
transform-origin:center !important;
}
:is(:is(:is(.annotationEditorLayer .highlightEditor) .editToolbar) .buttons) .colorPicker{
position:relative;
width:auto;
display:flex;
justify-content:center;
align-items:center;
gap:4px;
padding:4px;
}
:is(:is(:is(:is(.annotationEditorLayer .highlightEditor) .editToolbar) .buttons) .colorPicker)::after{
content:"";
-webkit-mask-image:var(--editor-toolbar-colorpicker-arrow-image);
mask-image:var(--editor-toolbar-colorpicker-arrow-image);
-webkit-mask-repeat:no-repeat;
mask-repeat:no-repeat;
-webkit-mask-position:center;
mask-position:center;
display:inline-block;
background-color:var(--editor-toolbar-fg-color);
width:12px;
height:12px;
}
:is(:is(:is(:is(.annotationEditorLayer .highlightEditor) .editToolbar) .buttons) .colorPicker):hover::after{
background-color:var(--editor-toolbar-hover-fg-color);
}
:is(:is(:is(:is(.annotationEditorLayer .highlightEditor) .editToolbar) .buttons) .colorPicker):has(.dropdown:not(.hidden)){
background-color:var(--editor-toolbar-hover-bg-color);
}
:is(:is(:is(:is(.annotationEditorLayer .highlightEditor) .editToolbar) .buttons) .colorPicker):has(.dropdown:not(.hidden))::after{
scale:-1;
}
:is(:is(:is(:is(.annotationEditorLayer .highlightEditor) .editToolbar) .buttons) .colorPicker) .dropdown{
position:absolute;
display:flex;
justify-content:center;
align-items:center;
flex-direction:column;
gap:11px;
padding-block:8px;
border-radius:6px;
background-color:var(--editor-toolbar-bg-color);
border:1px solid var(--editor-toolbar-border-color);
box-shadow:var(--editor-toolbar-shadow);
inset-block-start:calc(100% + 4px);
width:calc(100% + 2 * var(--editor-toolbar-padding));
}
:is(:is(:is(:is(:is(.annotationEditorLayer .highlightEditor) .editToolbar) .buttons) .colorPicker) .dropdown) button{
width:100%;
height:auto;
border:none;
cursor:pointer;
display:flex;
justify-content:center;
align-items:center;
background:none;
}
:is(:is(:is(:is(:is(:is(.annotationEditorLayer .highlightEditor) .editToolbar) .buttons) .colorPicker) .dropdown) button):is(:active,:focus-visible){
outline:none;
}
:is(:is(:is(:is(:is(:is(.annotationEditorLayer .highlightEditor) .editToolbar) .buttons) .colorPicker) .dropdown) button) > .swatch{
outline-offset:2px;
}
[aria-selected="true"]:is(:is(:is(:is(:is(:is(.annotationEditorLayer .highlightEditor) .editToolbar) .buttons) .colorPicker) .dropdown) button) > .swatch{
outline:2px solid var(--selected-outline-color);
}
:is(:is(:is(:is(:is(:is(.annotationEditorLayer .highlightEditor) .editToolbar) .buttons) .colorPicker) .dropdown) button):is(:hover,:active,:focus-visible) > .swatch{
outline:2px solid var(--hover-outline-color);
}
.editorParamsToolbar:has(#highlightParamsToolbarContainer){
padding:unset;
}
#highlightParamsToolbarContainer{
gap:16px;
padding-inline:10px;
padding-block-end:12px;
}
#highlightParamsToolbarContainer .colorPicker{
display:flex;
flex-direction:column;
gap:8px;
}
:is(#highlightParamsToolbarContainer .colorPicker) .dropdown{
display:flex;
justify-content:space-between;
align-items:center;
flex-direction:row;
height:auto;
}
:is(:is(#highlightParamsToolbarContainer .colorPicker) .dropdown) button{
width:auto;
height:auto;
border:none;
cursor:pointer;
display:flex;
justify-content:center;
align-items:center;
background:none;
flex:0 0 auto;
padding:0;
}
:is(:is(:is(#highlightParamsToolbarContainer .colorPicker) .dropdown) button) .swatch{
width:24px;
height:24px;
}
:is(:is(:is(#highlightParamsToolbarContainer .colorPicker) .dropdown) button):is(:active,:focus-visible){
outline:none;
}
[aria-selected="true"]:is(:is(:is(#highlightParamsToolbarContainer .colorPicker) .dropdown) button) > .swatch{
outline:2px solid var(--selected-outline-color);
}
:is(:is(:is(#highlightParamsToolbarContainer .colorPicker) .dropdown) button):is(:hover,:active,:focus-visible) > .swatch{
outline:2px solid var(--hover-outline-color);
}
#highlightParamsToolbarContainer #editorHighlightThickness{
display:flex;
flex-direction:column;
align-items:center;
gap:4px;
align-self:stretch;
}
:is(#highlightParamsToolbarContainer #editorHighlightThickness) .editorParamsLabel{
height:auto;
align-self:stretch;
}
:is(#highlightParamsToolbarContainer #editorHighlightThickness) .thicknessPicker{
display:flex;
justify-content:space-between;
align-items:center;
align-self:stretch;
--csstools-light-dark-toggle--91:var(--csstools-color-scheme--light) #80808e;
--example-color:var(--csstools-light-dark-toggle--91, #bfbfc9);
}
@supports (color: light-dark(red, red)){
:is(#highlightParamsToolbarContainer #editorHighlightThickness) .thicknessPicker{
--example-color:light-dark(#bfbfc9, #80808e);
}
}
@supports not (color: light-dark(tan, tan)){
:is(:is(#highlightParamsToolbarContainer #editorHighlightThickness) .thicknessPicker) *{
--csstools-light-dark-toggle--91:var(--csstools-color-scheme--light) #80808e;
--example-color:var(--csstools-light-dark-toggle--91, #bfbfc9);
}
}
@media screen and (forced-colors: active){
:is(#highlightParamsToolbarContainer #editorHighlightThickness) .thicknessPicker{
--example-color:CanvasText;
}
}
:is(:is(:is(#highlightParamsToolbarContainer #editorHighlightThickness) .thicknessPicker) > .editorParamsSlider[disabled]){
opacity:0.4;
}
:is(:is(#highlightParamsToolbarContainer #editorHighlightThickness) .thicknessPicker)::before,:is(:is(#highlightParamsToolbarContainer #editorHighlightThickness) .thicknessPicker)::after{
content:"";
width:8px;
aspect-ratio:1;
display:block;
border-radius:100%;
background-color:var(--example-color);
}
:is(:is(#highlightParamsToolbarContainer #editorHighlightThickness) .thicknessPicker)::after{
width:24px;
}
:is(:is(#highlightParamsToolbarContainer #editorHighlightThickness) .thicknessPicker) .editorParamsSlider{
width:unset;
height:14px;
}
#highlightParamsToolbarContainer #editorHighlightVisibility{
display:flex;
flex-direction:column;
align-items:flex-start;
gap:8px;
align-self:stretch;
}
:is(#highlightParamsToolbarContainer #editorHighlightVisibility) .divider{
--csstools-light-dark-toggle--92:var(--csstools-color-scheme--light) #8f8f9d;
--divider-color:var(--csstools-light-dark-toggle--92, #d7d7db);
}
@supports (color: light-dark(red, red)){
:is(#highlightParamsToolbarContainer #editorHighlightVisibility) .divider{
--divider-color:light-dark(#d7d7db, #8f8f9d);
}
}
@supports not (color: light-dark(tan, tan)){
:is(:is(#highlightParamsToolbarContainer #editorHighlightVisibility) .divider) *{
--csstools-light-dark-toggle--92:var(--csstools-color-scheme--light) #8f8f9d;
--divider-color:var(--csstools-light-dark-toggle--92, #d7d7db);
}
}
@media screen and (forced-colors: active){
:is(#highlightParamsToolbarContainer #editorHighlightVisibility) .divider{
--divider-color:CanvasText;
}
}
:is(#highlightParamsToolbarContainer #editorHighlightVisibility) .divider{
margin-block:4px;
width:100%;
height:1px;
background-color:var(--divider-color);
}
:is(#highlightParamsToolbarContainer #editorHighlightVisibility) .toggler{
display:flex;
justify-content:space-between;
align-items:center;
align-self:stretch;
}
#altTextSettingsDialog{
padding:16px;
}
#altTextSettingsDialog #altTextSettingsContainer{
display:flex;
width:573px;
flex-direction:column;
gap:16px;
}
:is(#altTextSettingsDialog #altTextSettingsContainer) .mainContainer{
gap:16px;
}
:is(#altTextSettingsDialog #altTextSettingsContainer) .description{
color:var(--text-secondary-color);
}
:is(#altTextSettingsDialog #altTextSettingsContainer) #aiModelSettings{
display:flex;
flex-direction:column;
gap:12px;
}
:is(:is(#altTextSettingsDialog #altTextSettingsContainer) #aiModelSettings) button{
width:-moz-fit-content;
width:fit-content;
}
.download:is(:is(#altTextSettingsDialog #altTextSettingsContainer) #aiModelSettings) #deleteModelButton{
display:none;
}
:is(:is(#altTextSettingsDialog #altTextSettingsContainer) #aiModelSettings):not(.download) #downloadModelButton{
display:none;
}
:is(#altTextSettingsDialog #altTextSettingsContainer) #automaticAltText,:is(#altTextSettingsDialog #altTextSettingsContainer) #altTextEditor{
display:flex;
flex-direction:column;
gap:8px;
}
:is(#altTextSettingsDialog #altTextSettingsContainer) #createModelDescription,:is(#altTextSettingsDialog #altTextSettingsContainer) #aiModelSettings,:is(#altTextSettingsDialog #altTextSettingsContainer) #showAltTextDialogDescription{
padding-inline-start:40px;
}
:is(#altTextSettingsDialog #altTextSettingsContainer) #automaticSettings{
display:flex;
flex-direction:column;
gap:16px;
}
:root{
--csstools-color-scheme--light:initial;
color-scheme:light dark;
--viewer-container-height:0;
--pdfViewer-padding-bottom:0;
--page-margin:1px auto -8px;
--page-border:9px solid transparent;
--spreadHorizontalWrapped-margin-LR:-3.5px;
--loading-icon-delay:400ms;
--csstools-light-dark-toggle--93:var(--csstools-color-scheme--light) #0df;
--focus-ring-color:var(--csstools-light-dark-toggle--93, #0060df);
--focus-ring-outline:2px solid var(--focus-ring-color);
}
@supports (color: light-dark(red, red)){
:root{
--focus-ring-color:light-dark(#0060df, #0df);
}
}
@supports not (color: light-dark(tan, tan)){
:root *{
--csstools-light-dark-toggle--93:var(--csstools-color-scheme--light) #0df;
--focus-ring-color:var(--csstools-light-dark-toggle--93, #0060df);
}
}
@media (prefers-color-scheme: dark){
:root{
--csstools-color-scheme--light:;
}
}
@media screen and (forced-colors: active){
:root{
--pdfViewer-padding-bottom:9px;
--page-margin:8px auto -1px;
--page-border:1px solid CanvasText;
--spreadHorizontalWrapped-margin-LR:3.5px;
--focus-ring-color:CanvasText;
}
}
[data-main-rotation="90"]{
transform:rotate(90deg) translateY(-100%);
}
[data-main-rotation="180"]{
transform:rotate(180deg) translate(-100%, -100%);
}
[data-main-rotation="270"]{
transform:rotate(270deg) translateX(-100%);
}
#hiddenCopyElement,
.hiddenCanvasElement{
position:absolute;
top:0;
left:0;
width:0;
height:0;
display:none;
}
.pdfViewer{
--scale-factor:1;
--page-bg-color:unset;
padding-bottom:var(--pdfViewer-padding-bottom);
--hcm-highlight-filter:none;
--hcm-highlight-selected-filter:none;
}
@media screen and (forced-colors: active){
.pdfViewer{
--hcm-highlight-filter:invert(100%);
}
}
.pdfViewer.copyAll{
cursor:wait;
}
.pdfViewer .canvasWrapper{
overflow:hidden;
width:100%;
height:100%;
}
:is(.pdfViewer .canvasWrapper) canvas{
position:absolute;
top:0;
left:0;
margin:0;
display:block;
width:100%;
height:100%;
contain:content;
}
:is(:is(.pdfViewer .canvasWrapper) canvas) .structTree{
contain:strict;
}
.pdfViewer .page{
--user-unit:1;
--total-scale-factor:calc(var(--scale-factor) * var(--user-unit));
--scale-round-x:1px;
--scale-round-y:1px;
direction:ltr;
width:816px;
height:1056px;
margin:var(--page-margin);
position:relative;
overflow:visible;
border:var(--page-border);
background-clip:content-box;
background-color:var(--page-bg-color, rgb(255 255 255));
}
.pdfViewer .dummyPage{
position:relative;
width:0;
height:var(--viewer-container-height);
}
.pdfViewer.noUserSelect{
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
}
.pdfViewer.removePageBorders .page{
margin:0 auto 10px;
border:none;
}
.pdfViewer:is(.scrollHorizontal, .scrollWrapped),
.spread{
margin-inline:3.5px;
text-align:center;
}
.pdfViewer.scrollHorizontal,
.spread{
white-space:nowrap;
}
.pdfViewer.removePageBorders,
.pdfViewer:is(.scrollHorizontal, .scrollWrapped) .spread{
margin-inline:0;
}
.spread :is(.page, .dummyPage),
.pdfViewer:is(.scrollHorizontal, .scrollWrapped) :is(.page, .spread){
display:inline-block;
vertical-align:middle;
}
.spread .page,
.pdfViewer:is(.scrollHorizontal, .scrollWrapped) .page{
margin-inline:var(--spreadHorizontalWrapped-margin-LR);
}
.pdfViewer.removePageBorders .spread .page,
.pdfViewer.removePageBorders:is(.scrollHorizontal, .scrollWrapped) .page{
margin-inline:5px;
}
.pdfViewer .page.loadingIcon::after{
position:absolute;
top:0;
left:0;
content:"";
width:100%;
height:100%;
background:url("images/loading-icon.gif") center no-repeat;
display:none;
transition-property:display;
transition-delay:var(--loading-icon-delay);
z-index:5;
contain:strict;
}
.pdfViewer .page.loading::after{
display:block;
}
.pdfViewer .page:not(.loading)::after{
transition-property:none;
display:none;
}
.pdfPresentationMode .pdfViewer{
padding-bottom:0;
}
.pdfPresentationMode .spread{
margin:0;
}
.pdfPresentationMode .pdfViewer .page{
margin:0 auto;
border:2px solid transparent;
}
:root{
--dir-factor:1;
--inline-start:left;
--inline-end:right;
--sidebar-width:200px;
--sidebar-transition-duration:200ms;
--sidebar-transition-timing-function:ease;
--toolbar-height:32px;
--toolbar-horizontal-padding:1px;
--toolbar-vertical-padding:2px;
--icon-size:16px;
--toolbar-icon-opacity:0.7;
--doorhanger-icon-opacity:0.9;
--doorhanger-height:8px;
--csstools-light-dark-toggle--0:var(--csstools-color-scheme--light) rgb(249 249 250);
--main-color:var(--csstools-light-dark-toggle--0, rgb(12 12 13));
--csstools-light-dark-toggle--1:var(--csstools-color-scheme--light) rgb(42 42 46);
--body-bg-color:var(--csstools-light-dark-toggle--1, rgb(212 212 215));
--csstools-light-dark-toggle--2:var(--csstools-color-scheme--light) rgb(0 96 223);
--progressBar-color:var(--csstools-light-dark-toggle--2, rgb(10 132 255));
--csstools-light-dark-toggle--3:var(--csstools-color-scheme--light) rgb(40 40 43);
--progressBar-bg-color:var(--csstools-light-dark-toggle--3, rgb(221 221 222));
--csstools-light-dark-toggle--4:var(--csstools-color-scheme--light) rgb(20 68 133);
--progressBar-blend-color:var(--csstools-light-dark-toggle--4, rgb(116 177 239));
--csstools-light-dark-toggle--5:var(--csstools-color-scheme--light) rgb(121 121 123);
--scrollbar-color:var(--csstools-light-dark-toggle--5, auto);
--csstools-light-dark-toggle--6:var(--csstools-color-scheme--light) rgb(35 35 39);
--scrollbar-bg-color:var(--csstools-light-dark-toggle--6, auto);
--csstools-light-dark-toggle--7:var(--csstools-color-scheme--light) rgb(255 255 255);
--toolbar-icon-bg-color:var(--csstools-light-dark-toggle--7, rgb(0 0 0));
--csstools-light-dark-toggle--8:var(--csstools-color-scheme--light) rgb(255 255 255);
--toolbar-icon-hover-bg-color:var(--csstools-light-dark-toggle--8, rgb(0 0 0));
--csstools-light-dark-toggle--9:var(--csstools-color-scheme--light) rgb(42 42 46 / 0.9);
--sidebar-narrow-bg-color:var(--csstools-light-dark-toggle--9, rgb(212 212 215 / 0.9));
--csstools-light-dark-toggle--10:var(--csstools-color-scheme--light) rgb(50 50 52);
--sidebar-toolbar-bg-color:var(--csstools-light-dark-toggle--10, rgb(245 246 247));
--csstools-light-dark-toggle--11:var(--csstools-color-scheme--light) rgb(56 56 61);
--toolbar-bg-color:var(--csstools-light-dark-toggle--11, rgb(249 249 250));
--csstools-light-dark-toggle--12:var(--csstools-color-scheme--light) rgb(12 12 13);
--toolbar-border-color:var(--csstools-light-dark-toggle--12, rgb(184 184 184));
--toolbar-box-shadow:0 1px 0 var(--toolbar-border-color);
--toolbar-border-bottom:none;
--toolbarSidebar-box-shadow:inset calc(-1px * var(--dir-factor)) 0 0 rgb(0 0 0 / 0.25), 0 1px 0 rgb(0 0 0 / 0.15), 0 0 1px rgb(0 0 0 / 0.1);
--toolbarSidebar-border-bottom:none;
--button-hover-color:color-mix(in srgb, currentColor 17%, transparent);
--csstools-light-dark-toggle--13:var(--csstools-color-scheme--light) rgb(255 255 255);
--toggled-btn-color:var(--csstools-light-dark-toggle--13, rgb(0 0 0));
--toggled-btn-bg-color:rgb(0 0 0 / 0.3);
--toggled-hover-active-btn-color:rgb(0 0 0 / 0.4);
--toggled-hover-btn-outline:none;
--csstools-light-dark-toggle--14:var(--csstools-color-scheme--light) rgb(74 74 79);
--dropdown-btn-bg-color:var(--csstools-light-dark-toggle--14, rgb(215 215 219));
--dropdown-btn-border:none;
--separator-color:rgb(0 0 0 / 0.3);
--csstools-light-dark-toggle--15:var(--csstools-color-scheme--light) rgb(250 250 250);
--field-color:var(--csstools-light-dark-toggle--15, rgb(6 6 6));
--csstools-light-dark-toggle--16:var(--csstools-color-scheme--light) rgb(64 64 68);
--field-bg-color:var(--csstools-light-dark-toggle--16, rgb(255 255 255));
--csstools-light-dark-toggle--17:var(--csstools-color-scheme--light) rgb(115 115 115);
--field-border-color:var(--csstools-light-dark-toggle--17, rgb(187 187 188));
--csstools-light-dark-toggle--18:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.8);
--treeitem-color:var(--csstools-light-dark-toggle--18, rgb(0 0 0 / 0.8));
--csstools-light-dark-toggle--19:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.15);
--treeitem-bg-color:var(--csstools-light-dark-toggle--19, rgb(0 0 0 / 0.15));
--csstools-light-dark-toggle--20:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.9);
--treeitem-hover-color:var(--csstools-light-dark-toggle--20, rgb(0 0 0 / 0.9));
--csstools-light-dark-toggle--21:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.9);
--treeitem-selected-color:var(--csstools-light-dark-toggle--21, rgb(0 0 0 / 0.9));
--csstools-light-dark-toggle--22:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.25);
--treeitem-selected-bg-color:var(--csstools-light-dark-toggle--22, rgb(0 0 0 / 0.25));
--csstools-light-dark-toggle--23:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.1);
--thumbnail-hover-color:var(--csstools-light-dark-toggle--23, rgb(0 0 0 / 0.1));
--csstools-light-dark-toggle--24:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.2);
--thumbnail-selected-color:var(--csstools-light-dark-toggle--24, rgb(0 0 0 / 0.2));
--csstools-light-dark-toggle--25:var(--csstools-color-scheme--light) #42414d;
--doorhanger-bg-color:var(--csstools-light-dark-toggle--25, rgb(255 255 255));
--csstools-light-dark-toggle--26:var(--csstools-color-scheme--light) rgb(39 39 43);
--doorhanger-border-color:var(--csstools-light-dark-toggle--26, rgb(12 12 13 / 0.2));
--csstools-light-dark-toggle--27:var(--csstools-color-scheme--light) rgb(249 249 250);
--doorhanger-hover-color:var(--csstools-light-dark-toggle--27, rgb(12 12 13));
--csstools-light-dark-toggle--28:var(--csstools-color-scheme--light) rgb(92 92 97);
--doorhanger-separator-color:var(--csstools-light-dark-toggle--28, rgb(222 222 222));
--dialog-button-border:none;
--csstools-light-dark-toggle--29:var(--csstools-color-scheme--light) rgb(92 92 97);
--dialog-button-bg-color:var(--csstools-light-dark-toggle--29, rgb(12 12 13 / 0.1));
--csstools-light-dark-toggle--30:var(--csstools-color-scheme--light) rgb(115 115 115);
--dialog-button-hover-bg-color:var(--csstools-light-dark-toggle--30, rgb(12 12 13 / 0.3));
--loading-icon:url(images/loading.svg);
--treeitem-expanded-icon:url(images/treeitem-expanded.svg);
--treeitem-collapsed-icon:url(images/treeitem-collapsed.svg);
--toolbarButton-editorFreeText-icon:url(images/toolbarButton-editorFreeText.svg);
--toolbarButton-editorHighlight-icon:url(images/toolbarButton-editorHighlight.svg);
--toolbarButton-editorInk-icon:url(images/toolbarButton-editorInk.svg);
--toolbarButton-editorStamp-icon:url(images/toolbarButton-editorStamp.svg);
--toolbarButton-editorSignature-icon:url(images/toolbarButton-editorSignature.svg);
--toolbarButton-menuArrow-icon:url(images/toolbarButton-menuArrow.svg);
--toolbarButton-sidebarToggle-icon:url(images/toolbarButton-sidebarToggle.svg);
--toolbarButton-secondaryToolbarToggle-icon:url(images/toolbarButton-secondaryToolbarToggle.svg);
--toolbarButton-pageUp-icon:url(images/toolbarButton-pageUp.svg);
--toolbarButton-pageDown-icon:url(images/toolbarButton-pageDown.svg);
--toolbarButton-zoomOut-icon:url(images/toolbarButton-zoomOut.svg);
--toolbarButton-zoomIn-icon:url(images/toolbarButton-zoomIn.svg);
--toolbarButton-presentationMode-icon:url(images/toolbarButton-presentationMode.svg);
--toolbarButton-print-icon:url(images/toolbarButton-print.svg);
--toolbarButton-openFile-icon:url(images/toolbarButton-openFile.svg);
--toolbarButton-download-icon:url(images/toolbarButton-download.svg);
--toolbarButton-bookmark-icon:url(images/toolbarButton-bookmark.svg);
--toolbarButton-viewThumbnail-icon:url(images/toolbarButton-viewThumbnail.svg);
--toolbarButton-viewOutline-icon:url(images/toolbarButton-viewOutline.svg);
--toolbarButton-viewAttachments-icon:url(images/toolbarButton-viewAttachments.svg);
--toolbarButton-viewLayers-icon:url(images/toolbarButton-viewLayers.svg);
--toolbarButton-currentOutlineItem-icon:url(images/toolbarButton-currentOutlineItem.svg);
--toolbarButton-search-icon:url(images/toolbarButton-search.svg);
--findbarButton-previous-icon:url(images/findbarButton-previous.svg);
--findbarButton-next-icon:url(images/findbarButton-next.svg);
--secondaryToolbarButton-firstPage-icon:url(images/secondaryToolbarButton-firstPage.svg);
--secondaryToolbarButton-lastPage-icon:url(images/secondaryToolbarButton-lastPage.svg);
--secondaryToolbarButton-rotateCcw-icon:url(images/secondaryToolbarButton-rotateCcw.svg);
--secondaryToolbarButton-rotateCw-icon:url(images/secondaryToolbarButton-rotateCw.svg);
--secondaryToolbarButton-selectTool-icon:url(images/secondaryToolbarButton-selectTool.svg);
--secondaryToolbarButton-handTool-icon:url(images/secondaryToolbarButton-handTool.svg);
--secondaryToolbarButton-scrollPage-icon:url(images/secondaryToolbarButton-scrollPage.svg);
--secondaryToolbarButton-scrollVertical-icon:url(images/secondaryToolbarButton-scrollVertical.svg);
--secondaryToolbarButton-scrollHorizontal-icon:url(images/secondaryToolbarButton-scrollHorizontal.svg);
--secondaryToolbarButton-scrollWrapped-icon:url(images/secondaryToolbarButton-scrollWrapped.svg);
--secondaryToolbarButton-spreadNone-icon:url(images/secondaryToolbarButton-spreadNone.svg);
--secondaryToolbarButton-spreadOdd-icon:url(images/secondaryToolbarButton-spreadOdd.svg);
--secondaryToolbarButton-spreadEven-icon:url(images/secondaryToolbarButton-spreadEven.svg);
--secondaryToolbarButton-imageAltTextSettings-icon:var(
--toolbarButton-editorStamp-icon
);
--secondaryToolbarButton-documentProperties-icon:url(images/secondaryToolbarButton-documentProperties.svg);
--editorParams-stampAddImage-icon:url(images/toolbarButton-zoomIn.svg);
}
@supports (color: light-dark(red, red)) and (color: rgb(0 0 0 / 0)){
:root{
--main-color:light-dark(rgb(12 12 13), rgb(249 249 250));
--body-bg-color:light-dark(rgb(212 212 215), rgb(42 42 46));
--progressBar-color:light-dark(rgb(10 132 255), rgb(0 96 223));
--progressBar-bg-color:light-dark(rgb(221 221 222), rgb(40 40 43));
--progressBar-blend-color:light-dark(rgb(116 177 239), rgb(20 68 133));
--scrollbar-color:light-dark(auto, rgb(121 121 123));
--scrollbar-bg-color:light-dark(auto, rgb(35 35 39));
--toolbar-icon-bg-color:light-dark(rgb(0 0 0), rgb(255 255 255));
--toolbar-icon-hover-bg-color:light-dark(rgb(0 0 0), rgb(255 255 255));
--sidebar-narrow-bg-color:light-dark(
rgb(212 212 215 / 0.9),
rgb(42 42 46 / 0.9)
);
--sidebar-toolbar-bg-color:light-dark(rgb(245 246 247), rgb(50 50 52));
--toolbar-bg-color:light-dark(rgb(249 249 250), rgb(56 56 61));
--toolbar-border-color:light-dark(rgb(184 184 184), rgb(12 12 13));
--toggled-btn-color:light-dark(rgb(0 0 0), rgb(255 255 255));
--dropdown-btn-bg-color:light-dark(rgb(215 215 219), rgb(74 74 79));
--field-color:light-dark(rgb(6 6 6), rgb(250 250 250));
--field-bg-color:light-dark(rgb(255 255 255), rgb(64 64 68));
--field-border-color:light-dark(rgb(187 187 188), rgb(115 115 115));
--treeitem-color:light-dark(rgb(0 0 0 / 0.8), rgb(255 255 255 / 0.8));
--treeitem-bg-color:light-dark(rgb(0 0 0 / 0.15), rgb(255 255 255 / 0.15));
--treeitem-hover-color:light-dark(rgb(0 0 0 / 0.9), rgb(255 255 255 / 0.9));
--treeitem-selected-color:light-dark(
rgb(0 0 0 / 0.9),
rgb(255 255 255 / 0.9)
);
--treeitem-selected-bg-color:light-dark(
rgb(0 0 0 / 0.25),
rgb(255 255 255 / 0.25)
);
--thumbnail-hover-color:light-dark(rgb(0 0 0 / 0.1), rgb(255 255 255 / 0.1));
--thumbnail-selected-color:light-dark(
rgb(0 0 0 / 0.2),
rgb(255 255 255 / 0.2)
);
--doorhanger-bg-color:light-dark(rgb(255 255 255), #42414d);
--doorhanger-border-color:light-dark(rgb(12 12 13 / 0.2), rgb(39 39 43));
--doorhanger-hover-color:light-dark(rgb(12 12 13), rgb(249 249 250));
--doorhanger-separator-color:light-dark(rgb(222 222 222), rgb(92 92 97));
--dialog-button-bg-color:light-dark(rgb(12 12 13 / 0.1), rgb(92 92 97));
--dialog-button-hover-bg-color:light-dark(
rgb(12 12 13 / 0.3),
rgb(115 115 115)
);
}
}
@supports not (color: light-dark(tan, tan)){
:root *{
--csstools-light-dark-toggle--0:var(--csstools-color-scheme--light) rgb(249 249 250);
--main-color:var(--csstools-light-dark-toggle--0, rgb(12 12 13));
--csstools-light-dark-toggle--1:var(--csstools-color-scheme--light) rgb(42 42 46);
--body-bg-color:var(--csstools-light-dark-toggle--1, rgb(212 212 215));
--csstools-light-dark-toggle--2:var(--csstools-color-scheme--light) rgb(0 96 223);
--progressBar-color:var(--csstools-light-dark-toggle--2, rgb(10 132 255));
--csstools-light-dark-toggle--3:var(--csstools-color-scheme--light) rgb(40 40 43);
--progressBar-bg-color:var(--csstools-light-dark-toggle--3, rgb(221 221 222));
--csstools-light-dark-toggle--4:var(--csstools-color-scheme--light) rgb(20 68 133);
--progressBar-blend-color:var(--csstools-light-dark-toggle--4, rgb(116 177 239));
--csstools-light-dark-toggle--5:var(--csstools-color-scheme--light) rgb(121 121 123);
--scrollbar-color:var(--csstools-light-dark-toggle--5, auto);
--csstools-light-dark-toggle--6:var(--csstools-color-scheme--light) rgb(35 35 39);
--scrollbar-bg-color:var(--csstools-light-dark-toggle--6, auto);
--csstools-light-dark-toggle--7:var(--csstools-color-scheme--light) rgb(255 255 255);
--toolbar-icon-bg-color:var(--csstools-light-dark-toggle--7, rgb(0 0 0));
--csstools-light-dark-toggle--8:var(--csstools-color-scheme--light) rgb(255 255 255);
--toolbar-icon-hover-bg-color:var(--csstools-light-dark-toggle--8, rgb(0 0 0));
--csstools-light-dark-toggle--9:var(--csstools-color-scheme--light) rgb(42 42 46 / 0.9);
--sidebar-narrow-bg-color:var(--csstools-light-dark-toggle--9, rgb(212 212 215 / 0.9));
--csstools-light-dark-toggle--10:var(--csstools-color-scheme--light) rgb(50 50 52);
--sidebar-toolbar-bg-color:var(--csstools-light-dark-toggle--10, rgb(245 246 247));
--csstools-light-dark-toggle--11:var(--csstools-color-scheme--light) rgb(56 56 61);
--toolbar-bg-color:var(--csstools-light-dark-toggle--11, rgb(249 249 250));
--csstools-light-dark-toggle--12:var(--csstools-color-scheme--light) rgb(12 12 13);
--toolbar-border-color:var(--csstools-light-dark-toggle--12, rgb(184 184 184));
--csstools-light-dark-toggle--13:var(--csstools-color-scheme--light) rgb(255 255 255);
--toggled-btn-color:var(--csstools-light-dark-toggle--13, rgb(0 0 0));
--csstools-light-dark-toggle--14:var(--csstools-color-scheme--light) rgb(74 74 79);
--dropdown-btn-bg-color:var(--csstools-light-dark-toggle--14, rgb(215 215 219));
--csstools-light-dark-toggle--15:var(--csstools-color-scheme--light) rgb(250 250 250);
--field-color:var(--csstools-light-dark-toggle--15, rgb(6 6 6));
--csstools-light-dark-toggle--16:var(--csstools-color-scheme--light) rgb(64 64 68);
--field-bg-color:var(--csstools-light-dark-toggle--16, rgb(255 255 255));
--csstools-light-dark-toggle--17:var(--csstools-color-scheme--light) rgb(115 115 115);
--field-border-color:var(--csstools-light-dark-toggle--17, rgb(187 187 188));
--csstools-light-dark-toggle--18:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.8);
--treeitem-color:var(--csstools-light-dark-toggle--18, rgb(0 0 0 / 0.8));
--csstools-light-dark-toggle--19:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.15);
--treeitem-bg-color:var(--csstools-light-dark-toggle--19, rgb(0 0 0 / 0.15));
--csstools-light-dark-toggle--20:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.9);
--treeitem-hover-color:var(--csstools-light-dark-toggle--20, rgb(0 0 0 / 0.9));
--csstools-light-dark-toggle--21:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.9);
--treeitem-selected-color:var(--csstools-light-dark-toggle--21, rgb(0 0 0 / 0.9));
--csstools-light-dark-toggle--22:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.25);
--treeitem-selected-bg-color:var(--csstools-light-dark-toggle--22, rgb(0 0 0 / 0.25));
--csstools-light-dark-toggle--23:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.1);
--thumbnail-hover-color:var(--csstools-light-dark-toggle--23, rgb(0 0 0 / 0.1));
--csstools-light-dark-toggle--24:var(--csstools-color-scheme--light) rgb(255 255 255 / 0.2);
--thumbnail-selected-color:var(--csstools-light-dark-toggle--24, rgb(0 0 0 / 0.2));
--csstools-light-dark-toggle--25:var(--csstools-color-scheme--light) #42414d;
--doorhanger-bg-color:var(--csstools-light-dark-toggle--25, rgb(255 255 255));
--csstools-light-dark-toggle--26:var(--csstools-color-scheme--light) rgb(39 39 43);
--doorhanger-border-color:var(--csstools-light-dark-toggle--26, rgb(12 12 13 / 0.2));
--csstools-light-dark-toggle--27:var(--csstools-color-scheme--light) rgb(249 249 250);
--doorhanger-hover-color:var(--csstools-light-dark-toggle--27, rgb(12 12 13));
--csstools-light-dark-toggle--28:var(--csstools-color-scheme--light) rgb(92 92 97);
--doorhanger-separator-color:var(--csstools-light-dark-toggle--28, rgb(222 222 222));
--csstools-light-dark-toggle--29:var(--csstools-color-scheme--light) rgb(92 92 97);
--dialog-button-bg-color:var(--csstools-light-dark-toggle--29, rgb(12 12 13 / 0.1));
--csstools-light-dark-toggle--30:var(--csstools-color-scheme--light) rgb(115 115 115);
--dialog-button-hover-bg-color:var(--csstools-light-dark-toggle--30, rgb(12 12 13 / 0.3));
}
}
[dir="rtl"]:root{
--dir-factor:-1;
--inline-start:right;
--inline-end:left;
}
@media screen and (forced-colors: active){
:root{
--button-hover-color:Highlight;
--toolbar-icon-opacity:1;
--toolbar-icon-bg-color:ButtonText;
--toolbar-icon-hover-bg-color:ButtonFace;
--toggled-hover-active-btn-color:ButtonText;
--toggled-hover-btn-outline:2px solid ButtonBorder;
--toolbar-border-color:CanvasText;
--toolbar-border-bottom:1px solid var(--toolbar-border-color);
--toolbar-box-shadow:none;
--toggled-btn-color:HighlightText;
--toggled-btn-bg-color:LinkText;
--doorhanger-hover-color:ButtonFace;
--doorhanger-border-color-whcm:1px solid ButtonText;
--doorhanger-triangle-opacity-whcm:0;
--dialog-button-border:1px solid Highlight;
--dialog-button-hover-bg-color:Highlight;
--dialog-button-hover-color:ButtonFace;
--dropdown-btn-border:1px solid ButtonText;
--field-border-color:ButtonText;
--main-color:CanvasText;
--separator-color:GrayText;
--doorhanger-separator-color:GrayText;
--toolbarSidebar-box-shadow:none;
--toolbarSidebar-border-bottom:1px solid var(--toolbar-border-color);
}
}
@media screen and (prefers-reduced-motion: reduce){
:root{
--sidebar-transition-duration:0;
}
}
@keyframes progressIndeterminate{
0%{
transform:translateX(calc(-142px * var(--dir-factor)));
}
100%{
transform:translateX(0);
}
}
html[data-toolbar-density="compact"]{
--toolbar-height:30px;
}
html[data-toolbar-density="touch"]{
--toolbar-height:44px;
}
html,
body{
height:100%;
width:100%;
}
body{
margin:0;
background-color:var(--body-bg-color);
scrollbar-color:var(--scrollbar-color) var(--scrollbar-bg-color);
}
body.wait::before{
content:"";
position:fixed;
width:100%;
height:100%;
z-index:100000;
cursor:wait;
}
.hidden,
[hidden]{
display:none !important;
}
#viewerContainer.pdfPresentationMode:fullscreen{
top:0;
background-color:rgb(0 0 0);
width:100%;
height:100%;
overflow:hidden;
cursor:none;
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
}
.pdfPresentationMode:fullscreen section:not([data-internal-link]){
pointer-events:none;
}
.pdfPresentationMode:fullscreen .textLayer span{
cursor:none;
}
.pdfPresentationMode.pdfPresentationModeControls > *,
.pdfPresentationMode.pdfPresentationModeControls .textLayer span{
cursor:default;
}
#outerContainer{
width:100%;
height:100%;
position:relative;
margin:0;
}
#sidebarContainer{
position:absolute;
inset-block:var(--toolbar-height) 0;
inset-inline-start:calc(-1 * var(--sidebar-width));
width:var(--sidebar-width);
visibility:hidden;
z-index:1;
font:message-box;
border-top:1px solid transparent;
border-inline-end:var(--doorhanger-border-color-whcm);
transition-property:inset-inline-start;
transition-duration:var(--sidebar-transition-duration);
transition-timing-function:var(--sidebar-transition-timing-function);
}
#outerContainer:is(.sidebarMoving, .sidebarOpen) #sidebarContainer{
visibility:visible;
}
#outerContainer.sidebarOpen #sidebarContainer{
inset-inline-start:0;
}
#mainContainer{
position:absolute;
inset:0;
min-width:350px;
margin:0;
display:flex;
flex-direction:column;
}
#sidebarContent{
inset-block:var(--toolbar-height) 0;
inset-inline-start:0;
overflow:auto;
position:absolute;
width:100%;
box-shadow:inset calc(-1px * var(--dir-factor)) 0 0 rgb(0 0 0 / 0.25);
}
#viewerContainer{
overflow:auto;
position:absolute;
inset:var(--toolbar-height) 0 0;
outline:none;
z-index:0;
}
#viewerContainer:not(.pdfPresentationMode){
transition-duration:var(--sidebar-transition-duration);
transition-timing-function:var(--sidebar-transition-timing-function);
}
#outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){
inset-inline-start:var(--sidebar-width);
transition-property:inset-inline-start;
}
#sidebarContainer :is(input, button, select){
font:message-box;
}
.toolbar{
z-index:2;
}
#toolbarSidebar{
width:100%;
height:var(--toolbar-height);
background-color:var(--sidebar-toolbar-bg-color);
box-shadow:var(--toolbarSidebar-box-shadow);
border-bottom:var(--toolbarSidebar-border-bottom);
padding:var(--toolbar-vertical-padding) var(--toolbar-horizontal-padding);
justify-content:space-between;
}
#toolbarSidebar #toolbarSidebarLeft{
width:auto;
height:100%;
}
:is(#toolbarSidebar #toolbarSidebarLeft) #viewThumbnail::before{
-webkit-mask-image:var(--toolbarButton-viewThumbnail-icon);
mask-image:var(--toolbarButton-viewThumbnail-icon);
}
:is(#toolbarSidebar #toolbarSidebarLeft) #viewOutline::before{
-webkit-mask-image:var(--toolbarButton-viewOutline-icon);
mask-image:var(--toolbarButton-viewOutline-icon);
transform:scaleX(var(--dir-factor));
}
:is(#toolbarSidebar #toolbarSidebarLeft) #viewAttachments::before{
-webkit-mask-image:var(--toolbarButton-viewAttachments-icon);
mask-image:var(--toolbarButton-viewAttachments-icon);
}
:is(#toolbarSidebar #toolbarSidebarLeft) #viewLayers::before{
-webkit-mask-image:var(--toolbarButton-viewLayers-icon);
mask-image:var(--toolbarButton-viewLayers-icon);
}
#toolbarSidebar #toolbarSidebarRight{
width:auto;
height:100%;
padding-inline-end:2px;
}
#sidebarResizer{
position:absolute;
inset-block:0;
inset-inline-end:-6px;
width:6px;
z-index:200;
cursor:ew-resize;
}
#outerContainer.sidebarOpen #loadingBar{
inset-inline-start:var(--sidebar-width);
}
#outerContainer.sidebarResizing
:is(#sidebarContainer, #viewerContainer, #loadingBar){
transition-duration:0s;
}
.doorHanger,
.doorHangerRight{
border-radius:2px;
box-shadow:0 1px 5px var(--doorhanger-border-color), 0 0 0 1px var(--doorhanger-border-color);
border:var(--doorhanger-border-color-whcm);
background-color:var(--doorhanger-bg-color);
inset-block-start:calc(100% + var(--doorhanger-height) - 2px);
}
:is(.doorHanger,.doorHangerRight)::after,:is(.doorHanger,.doorHangerRight)::before{
bottom:100%;
border-style:solid;
border-color:transparent;
content:"";
height:0;
width:0;
position:absolute;
pointer-events:none;
opacity:var(--doorhanger-triangle-opacity-whcm);
}
:is(.doorHanger,.doorHangerRight)::before{
border-width:calc(var(--doorhanger-height) + 2px);
border-bottom-color:var(--doorhanger-border-color);
}
:is(.doorHanger,.doorHangerRight)::after{
border-width:var(--doorhanger-height);
}
.doorHangerRight{
inset-inline-end:calc(50% - var(--doorhanger-height) - 1px);
}
.doorHangerRight::before{
inset-inline-end:-1px;
}
.doorHangerRight::after{
border-bottom-color:var(--doorhanger-bg-color);
inset-inline-end:1px;
}
.doorHanger{
inset-inline-start:calc(50% - var(--doorhanger-height) - 1px);
}
.doorHanger::before{
inset-inline-start:-1px;
}
.doorHanger::after{
border-bottom-color:var(--toolbar-bg-color);
inset-inline-start:1px;
}
.dialogButton{
border:none;
background:none;
width:28px;
height:28px;
outline:none;
}
.dialogButton:is(:hover, :focus-visible){
background-color:var(--dialog-button-hover-bg-color);
}
.dialogButton:is(:hover, :focus-visible) > span{
color:var(--dialog-button-hover-color);
}
.splitToolbarButtonSeparator{
float:var(--inline-start);
width:0;
height:62%;
border-left:1px solid var(--separator-color);
border-right:none;
}
.dialogButton{
min-width:16px;
margin:2px 1px;
padding:2px 6px 0;
border:none;
border-radius:2px;
color:var(--main-color);
font-size:12px;
line-height:14px;
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
cursor:default;
box-sizing:border-box;
}
.treeItemToggler::before{
position:absolute;
display:inline-block;
width:16px;
height:16px;
content:"";
background-color:var(--toolbar-icon-bg-color);
-webkit-mask-size:cover;
mask-size:cover;
}
#sidebarToggleButton::before{
-webkit-mask-image:var(--toolbarButton-sidebarToggle-icon);
mask-image:var(--toolbarButton-sidebarToggle-icon);
transform:scaleX(var(--dir-factor));
}
#secondaryToolbarToggleButton::before{
-webkit-mask-image:var(--toolbarButton-secondaryToolbarToggle-icon);
mask-image:var(--toolbarButton-secondaryToolbarToggle-icon);
transform:scaleX(var(--dir-factor));
}
#previous::before{
-webkit-mask-image:var(--toolbarButton-pageUp-icon);
mask-image:var(--toolbarButton-pageUp-icon);
}
#next::before{
-webkit-mask-image:var(--toolbarButton-pageDown-icon);
mask-image:var(--toolbarButton-pageDown-icon);
}
#zoomOutButton::before{
-webkit-mask-image:var(--toolbarButton-zoomOut-icon);
mask-image:var(--toolbarButton-zoomOut-icon);
}
#zoomInButton::before{
-webkit-mask-image:var(--toolbarButton-zoomIn-icon);
mask-image:var(--toolbarButton-zoomIn-icon);
}
#editorFreeTextButton::before{
-webkit-mask-image:var(--toolbarButton-editorFreeText-icon);
mask-image:var(--toolbarButton-editorFreeText-icon);
}
#editorHighlightButton::before{
-webkit-mask-image:var(--toolbarButton-editorHighlight-icon);
mask-image:var(--toolbarButton-editorHighlight-icon);
}
#editorInkButton::before{
-webkit-mask-image:var(--toolbarButton-editorInk-icon);
mask-image:var(--toolbarButton-editorInk-icon);
}
#editorStampButton::before{
-webkit-mask-image:var(--toolbarButton-editorStamp-icon);
mask-image:var(--toolbarButton-editorStamp-icon);
}
#editorSignatureButton::before{
-webkit-mask-image:var(--toolbarButton-editorSignature-icon);
mask-image:var(--toolbarButton-editorSignature-icon);
}
#printButton::before{
-webkit-mask-image:var(--toolbarButton-print-icon);
mask-image:var(--toolbarButton-print-icon);
}
#downloadButton::before{
-webkit-mask-image:var(--toolbarButton-download-icon);
mask-image:var(--toolbarButton-download-icon);
}
#currentOutlineItem::before{
-webkit-mask-image:var(--toolbarButton-currentOutlineItem-icon);
mask-image:var(--toolbarButton-currentOutlineItem-icon);
transform:scaleX(var(--dir-factor));
}
#viewFindButton::before{
-webkit-mask-image:var(--toolbarButton-search-icon);
mask-image:var(--toolbarButton-search-icon);
}
.pdfSidebarNotification::after{
position:absolute;
display:inline-block;
top:2px;
inset-inline-end:2px;
content:"";
background-color:rgb(112 219 85);
height:9px;
width:9px;
border-radius:50%;
}
.verticalToolbarSeparator{
display:block;
margin-inline:2px;
width:0;
height:80%;
border-left:1px solid var(--separator-color);
border-right:none;
box-sizing:border-box;
}
.horizontalToolbarSeparator{
display:block;
margin:6px 0;
border-top:1px solid var(--doorhanger-separator-color);
border-bottom:none;
height:0;
width:100%;
}
.toggleButton{
display:inline;
}
.toggleButton:has( > input:checked){
color:var(--toggled-btn-color);
background-color:var(--toggled-btn-bg-color);
}
.toggleButton:is(:hover,:has( > input:focus-visible)){
color:var(--toggled-btn-color);
background-color:var(--button-hover-color);
}
.toggleButton > input{
position:absolute;
top:50%;
left:50%;
opacity:0;
width:0;
height:0;
}
.toolbarField{
padding:4px 7px;
margin:3px 0;
border-radius:2px;
background-color:var(--field-bg-color);
background-clip:padding-box;
border:1px solid var(--field-border-color);
box-shadow:none;
color:var(--field-color);
font-size:12px;
line-height:16px;
outline:none;
}
.toolbarField:focus{
border-color:#0a84ff;
}
#pageNumber{
-moz-appearance:textfield;
text-align:end;
width:40px;
background-size:0 0;
transition-property:none;
}
#pageNumber::-webkit-inner-spin-button{
-webkit-appearance:none;
}
.loadingInput:has( > .loading:is(#pageNumber))::after{
display:inline;
visibility:visible;
transition-property:visibility;
transition-delay:var(--loading-icon-delay);
}
.loadingInput{
position:relative;
}
.loadingInput::after{
position:absolute;
visibility:hidden;
display:none;
width:var(--icon-size);
height:var(--icon-size);
content:"";
background-color:var(--toolbar-icon-bg-color);
-webkit-mask-size:cover;
mask-size:cover;
-webkit-mask-image:var(--loading-icon);
mask-image:var(--loading-icon);
}
.loadingInput.start::after{
inset-inline-start:4px;
}
.loadingInput.end::after{
inset-inline-end:4px;
}
#thumbnailView,
#outlineView,
#attachmentsView,
#layersView{
position:absolute;
width:calc(100% - 8px);
inset-block:0;
padding:4px 4px 0;
overflow:auto;
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
}
#thumbnailView{
width:calc(100% - 60px);
padding:10px 30px 0;
}
#thumbnailView > a:is(:active, :focus){
outline:0;
}
.thumbnail{
--thumbnail-width:0;
--thumbnail-height:0;
float:var(--inline-start);
width:var(--thumbnail-width);
height:var(--thumbnail-height);
margin:0 10px 5px;
padding:1px;
border:7px solid transparent;
border-radius:2px;
}
#thumbnailView > a:last-of-type > .thumbnail{
margin-bottom:10px;
}
a:focus > .thumbnail,
.thumbnail:hover{
border-color:var(--thumbnail-hover-color);
}
.thumbnail.selected{
border-color:var(--thumbnail-selected-color) !important;
}
.thumbnailImage{
width:var(--thumbnail-width);
height:var(--thumbnail-height);
opacity:0.9;
}
a:focus > .thumbnail > .thumbnailImage,
.thumbnail:hover > .thumbnailImage{
opacity:0.95;
}
.thumbnail.selected > .thumbnailImage{
opacity:1 !important;
}
.thumbnail:not([data-loaded]) > .thumbnailImage{
width:calc(var(--thumbnail-width) - 2px);
height:calc(var(--thumbnail-height) - 2px);
border:1px dashed rgb(132 132 132);
}
.treeWithDeepNesting > .treeItem,
.treeItem > .treeItems{
margin-inline-start:20px;
}
.treeItem > a{
text-decoration:none;
display:inline-block;
min-width:calc(100% - 4px);
height:auto;
margin-bottom:1px;
padding:2px 0 5px;
padding-inline-start:4px;
border-radius:2px;
color:var(--treeitem-color);
font-size:13px;
line-height:15px;
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
white-space:normal;
cursor:pointer;
}
#layersView .treeItem > a *{
cursor:pointer;
}
#layersView .treeItem > a > label{
padding-inline-start:4px;
}
#layersView .treeItem > a > label > input{
float:var(--inline-start);
margin-top:1px;
}
.treeItemToggler{
position:relative;
float:var(--inline-start);
height:0;
width:0;
color:rgb(255 255 255 / 0.5);
}
.treeItemToggler::before{
inset-inline-end:4px;
-webkit-mask-image:var(--treeitem-expanded-icon);
mask-image:var(--treeitem-expanded-icon);
}
.treeItemToggler.treeItemsHidden::before{
-webkit-mask-image:var(--treeitem-collapsed-icon);
mask-image:var(--treeitem-collapsed-icon);
transform:scaleX(var(--dir-factor));
}
.treeItemToggler.treeItemsHidden ~ .treeItems{
display:none;
}
.treeItem.selected > a{
background-color:var(--treeitem-selected-bg-color);
color:var(--treeitem-selected-color);
}
.treeItemToggler:hover,
.treeItemToggler:hover + a,
.treeItemToggler:hover ~ .treeItems,
.treeItem > a:hover{
background-color:var(--treeitem-bg-color);
background-clip:padding-box;
border-radius:2px;
color:var(--treeitem-hover-color);
}
#outlineOptionsContainer{
display:none;
}
#sidebarContainer:has(#outlineView:not(.hidden)) #outlineOptionsContainer{
display:inline-flex;
}
.dialogButton{
width:auto;
margin:3px 4px 2px !important;
padding:2px 11px;
color:var(--main-color);
background-color:var(--dialog-button-bg-color);
border:var(--dialog-button-border) !important;
}
dialog{
margin:auto;
padding:15px;
border-spacing:4px;
color:var(--main-color);
font:message-box;
font-size:12px;
line-height:14px;
background-color:var(--doorhanger-bg-color);
border:1px solid rgb(0 0 0 / 0.5);
border-radius:4px;
box-shadow:0 1px 4px rgb(0 0 0 / 0.3);
}
dialog::backdrop{
background-color:rgb(0 0 0 / 0.2);
}
dialog > .row{
display:table-row;
}
dialog > .row > *{
display:table-cell;
}
dialog .toolbarField{
margin:5px 0;
}
dialog .separator{
display:block;
margin:4px 0;
height:0;
width:100%;
border-top:1px solid var(--separator-color);
border-bottom:none;
}
dialog .buttonRow{
text-align:center;
vertical-align:middle;
}
dialog :link{
color:rgb(255 255 255);
}
#passwordDialog{
text-align:center;
}
#passwordDialog .toolbarField{
width:200px;
}
#documentPropertiesDialog{
text-align:left;
}
#documentPropertiesDialog .row > *{
min-width:100px;
text-align:start;
}
#documentPropertiesDialog .row > span{
width:125px;
word-wrap:break-word;
}
#documentPropertiesDialog .row > p{
max-width:225px;
word-wrap:break-word;
}
#documentPropertiesDialog .buttonRow{
margin-top:10px;
}
.grab-to-pan-grab{
cursor:grab !important;
}
.grab-to-pan-grab
*:not(input):not(textarea):not(button):not(select):not(:link){
cursor:inherit !important;
}
.grab-to-pan-grab:active,
.grab-to-pan-grabbing{
cursor:grabbing !important;
}
.grab-to-pan-grabbing{
position:fixed;
background:rgb(0 0 0 / 0);
display:block;
inset:0;
overflow:hidden;
z-index:50000;
}
.toolbarButton{
height:100%;
aspect-ratio:1;
display:flex;
align-items:center;
justify-content:center;
background:none;
border:none;
color:var(--main-color);
outline:none;
border-radius:2px;
box-sizing:border-box;
font:message-box;
flex:none;
position:relative;
padding:0;
}
.toolbarButton > span{
display:inline-block;
width:0;
height:0;
overflow:hidden;
}
.toolbarButton::before{
opacity:var(--toolbar-icon-opacity);
display:inline-block;
width:var(--icon-size);
height:var(--icon-size);
content:"";
background-color:var(--toolbar-icon-bg-color);
-webkit-mask-size:cover;
mask-size:cover;
-webkit-mask-position:center;
mask-position:center;
}
.toolbarButton.toggled{
background-color:var(--toggled-btn-bg-color);
color:var(--toggled-btn-color);
}
.toolbarButton.toggled::before{
background-color:var(--toggled-btn-color);
}
.toolbarButton.toggled:hover{
outline:var(--toggled-hover-btn-outline) !important;
}
.toolbarButton.toggled:hover:active{
background-color:var(--toggled-hover-active-btn-color);
}
.toolbarButton:is(:hover,:focus-visible){
background-color:var(--button-hover-color);
}
.toolbarButton:is(:hover,:focus-visible)::before{
background-color:var(--toolbar-icon-hover-bg-color);
}
.toolbarButton:is([disabled="disabled"],[disabled]){
opacity:0.5;
pointer-events:none;
}
.toolbarButton.labeled{
width:100%;
min-height:var(--menuitem-height);
justify-content:flex-start;
gap:8px;
padding-inline-start:12px;
aspect-ratio:unset;
text-align:start;
white-space:normal;
cursor:default;
}
.toolbarButton.labeled:is(a){
text-decoration:none;
}
.toolbarButton.labeled[href="#"]:is(a){
opacity:0.5;
pointer-events:none;
}
.toolbarButton.labeled::before{
opacity:var(--doorhanger-icon-opacity);
}
.toolbarButton.labeled:is(:hover,:focus-visible){
color:var(--doorhanger-hover-color);
}
.toolbarButton.labeled > span{
display:inline-block;
width:-moz-max-content;
width:max-content;
height:auto;
}
.toolbarButtonWithContainer{
height:100%;
aspect-ratio:1;
display:inline-block;
position:relative;
flex:none;
}
.toolbarButtonWithContainer > .toolbarButton{
width:100%;
height:100%;
}
.toolbarButtonWithContainer .menu{
padding-block:5px;
}
.toolbarButtonWithContainer .menuContainer{
width:100%;
height:auto;
max-height:calc(
var(--viewer-container-height) - var(--toolbar-height) -
var(--doorhanger-height)
);
display:flex;
flex-direction:column;
box-sizing:border-box;
overflow-y:auto;
}
.toolbarButtonWithContainer .editorParamsToolbar{
height:auto;
width:220px;
position:absolute;
z-index:30000;
cursor:default;
}
:is(.toolbarButtonWithContainer .editorParamsToolbar) :is(#editorStampAddImage,#editorSignatureAddSignature)::before{
-webkit-mask-image:var(--editorParams-stampAddImage-icon);
mask-image:var(--editorParams-stampAddImage-icon);
}
:is(.toolbarButtonWithContainer .editorParamsToolbar) .editorParamsLabel{
flex:none;
font:menu;
font-size:13px;
font-style:normal;
font-weight:400;
line-height:150%;
width:-moz-fit-content;
width:fit-content;
inset-inline-start:0;
color:var(--main-color);
}
:is(.toolbarButtonWithContainer .editorParamsToolbar) button:is(:hover,:focus-visible) .editorParamsLabel{
color:var(--doorhanger-hover-color);
}
:is(.toolbarButtonWithContainer .editorParamsToolbar) .editorParamsToolbarContainer{
width:100%;
height:auto;
display:flex;
flex-direction:column;
box-sizing:border-box;
padding-inline:10px;
padding-block:10px;
}
:is(:is(.toolbarButtonWithContainer .editorParamsToolbar) .editorParamsToolbarContainer) > .editorParamsSetter{
min-height:26px;
display:flex;
align-items:center;
justify-content:space-between;
}
:is(:is(.toolbarButtonWithContainer .editorParamsToolbar) .editorParamsToolbarContainer) .editorParamsColor{
width:32px;
height:32px;
flex:none;
padding:0;
}
:is(:is(.toolbarButtonWithContainer .editorParamsToolbar) .editorParamsToolbarContainer) .editorParamsSlider{
background-color:transparent;
width:90px;
flex:0 1 0;
font:message-box;
}
:is(:is(:is(.toolbarButtonWithContainer .editorParamsToolbar) .editorParamsToolbarContainer) .editorParamsSlider)::-moz-range-progress{
background-color:black;
}
:is(:is(:is(.toolbarButtonWithContainer .editorParamsToolbar) .editorParamsToolbarContainer) .editorParamsSlider)::-webkit-slider-runnable-track,:is(:is(:is(.toolbarButtonWithContainer .editorParamsToolbar) .editorParamsToolbarContainer) .editorParamsSlider)::-moz-range-track{
background-color:black;
}
:is(:is(:is(.toolbarButtonWithContainer .editorParamsToolbar) .editorParamsToolbarContainer) .editorParamsSlider)::-webkit-slider-thumb,:is(:is(:is(.toolbarButtonWithContainer .editorParamsToolbar) .editorParamsToolbarContainer) .editorParamsSlider)::-moz-range-thumb{
background-color:white;
}
#secondaryToolbar{
height:auto;
width:220px;
position:absolute;
z-index:30000;
cursor:default;
min-height:26px;
max-height:calc(var(--viewer-container-height) - 40px);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #secondaryOpenFile::before{
-webkit-mask-image:var(--toolbarButton-openFile-icon);
mask-image:var(--toolbarButton-openFile-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #secondaryPrint::before{
-webkit-mask-image:var(--toolbarButton-print-icon);
mask-image:var(--toolbarButton-print-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #secondaryDownload::before{
-webkit-mask-image:var(--toolbarButton-download-icon);
mask-image:var(--toolbarButton-download-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #presentationMode::before{
-webkit-mask-image:var(--toolbarButton-presentationMode-icon);
mask-image:var(--toolbarButton-presentationMode-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #viewBookmark::before{
-webkit-mask-image:var(--toolbarButton-bookmark-icon);
mask-image:var(--toolbarButton-bookmark-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #firstPage::before{
-webkit-mask-image:var(--secondaryToolbarButton-firstPage-icon);
mask-image:var(--secondaryToolbarButton-firstPage-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #lastPage::before{
-webkit-mask-image:var(--secondaryToolbarButton-lastPage-icon);
mask-image:var(--secondaryToolbarButton-lastPage-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #pageRotateCcw::before{
-webkit-mask-image:var(--secondaryToolbarButton-rotateCcw-icon);
mask-image:var(--secondaryToolbarButton-rotateCcw-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #pageRotateCw::before{
-webkit-mask-image:var(--secondaryToolbarButton-rotateCw-icon);
mask-image:var(--secondaryToolbarButton-rotateCw-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #cursorSelectTool::before{
-webkit-mask-image:var(--secondaryToolbarButton-selectTool-icon);
mask-image:var(--secondaryToolbarButton-selectTool-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #cursorHandTool::before{
-webkit-mask-image:var(--secondaryToolbarButton-handTool-icon);
mask-image:var(--secondaryToolbarButton-handTool-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #scrollPage::before{
-webkit-mask-image:var(--secondaryToolbarButton-scrollPage-icon);
mask-image:var(--secondaryToolbarButton-scrollPage-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #scrollVertical::before{
-webkit-mask-image:var(--secondaryToolbarButton-scrollVertical-icon);
mask-image:var(--secondaryToolbarButton-scrollVertical-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #scrollHorizontal::before{
-webkit-mask-image:var(--secondaryToolbarButton-scrollHorizontal-icon);
mask-image:var(--secondaryToolbarButton-scrollHorizontal-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #scrollWrapped::before{
-webkit-mask-image:var(--secondaryToolbarButton-scrollWrapped-icon);
mask-image:var(--secondaryToolbarButton-scrollWrapped-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #spreadNone::before{
-webkit-mask-image:var(--secondaryToolbarButton-spreadNone-icon);
mask-image:var(--secondaryToolbarButton-spreadNone-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #spreadOdd::before{
-webkit-mask-image:var(--secondaryToolbarButton-spreadOdd-icon);
mask-image:var(--secondaryToolbarButton-spreadOdd-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #spreadEven::before{
-webkit-mask-image:var(--secondaryToolbarButton-spreadEven-icon);
mask-image:var(--secondaryToolbarButton-spreadEven-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #imageAltTextSettings::before{
-webkit-mask-image:var(--secondaryToolbarButton-imageAltTextSettings-icon);
mask-image:var(--secondaryToolbarButton-imageAltTextSettings-icon);
}
:is(#secondaryToolbar #secondaryToolbarButtonContainer) #documentProperties::before{
-webkit-mask-image:var(--secondaryToolbarButton-documentProperties-icon);
mask-image:var(--secondaryToolbarButton-documentProperties-icon);
}
#findbar{
--input-horizontal-padding:4px;
--findbar-padding:2px;
width:-moz-max-content;
width:max-content;
max-width:90vw;
min-height:var(--toolbar-height);
height:auto;
position:absolute;
z-index:30000;
cursor:default;
padding:0;
min-width:300px;
background-color:var(--toolbar-bg-color);
box-sizing:border-box;
flex-wrap:wrap;
justify-content:flex-start;
}
#findbar > *{
height:var(--toolbar-height);
padding:var(--findbar-padding);
}
#findbar #findInputContainer{
margin-inline-start:2px;
}
:is(#findbar #findInputContainer) #findPreviousButton::before{
-webkit-mask-image:var(--findbarButton-previous-icon);
mask-image:var(--findbarButton-previous-icon);
}
:is(#findbar #findInputContainer) #findNextButton::before{
-webkit-mask-image:var(--findbarButton-next-icon);
mask-image:var(--findbarButton-next-icon);
}
:is(#findbar #findInputContainer) #findInput{
width:200px;
padding:5px var(--input-horizontal-padding);
}
:is(:is(#findbar #findInputContainer) #findInput)::-moz-placeholder{
font-style:normal;
}
:is(:is(#findbar #findInputContainer) #findInput)::placeholder{
font-style:normal;
}
.loadingInput:has( > [data-status="pending"]:is(:is(#findbar #findInputContainer) #findInput))::after{
display:inline;
visibility:visible;
inset-inline-end:calc(var(--input-horizontal-padding) + 1px);
}
[data-status="notFound"]:is(:is(#findbar #findInputContainer) #findInput){
background-color:rgb(255 102 102);
}
#findbar #findbarMessageContainer{
display:none;
gap:4px;
}
:is(#findbar #findbarMessageContainer):has( > :is(#findResultsCount,#findMsg):not(:empty)){
display:inline-flex;
}
:is(#findbar #findbarMessageContainer) #findResultsCount{
background-color:rgb(217 217 217);
color:rgb(82 82 82);
padding-block:4px;
}
:is(:is(#findbar #findbarMessageContainer) #findResultsCount):empty{
display:none;
}
[data-status="notFound"]:is(:is(#findbar #findbarMessageContainer) #findMsg){
font-weight:bold;
}
:is(:is(#findbar #findbarMessageContainer) #findMsg):empty{
display:none;
}
#findbar.wrapContainers{
flex-direction:column;
align-items:flex-start;
height:-moz-max-content;
height:max-content;
}
#findbar.wrapContainers .toolbarLabel{
margin:0 4px;
}
#findbar.wrapContainers #findbarMessageContainer{
flex-wrap:wrap;
flex-flow:column nowrap;
align-items:flex-start;
height:-moz-max-content;
height:max-content;
}
:is(#findbar.wrapContainers #findbarMessageContainer) #findResultsCount{
height:calc(var(--toolbar-height) - 2 * var(--findbar-padding));
}
:is(#findbar.wrapContainers #findbarMessageContainer) #findMsg{
min-height:var(--toolbar-height);
}
@page{
margin:0;
}
#printContainer{
display:none;
}
@media print{
body{
background:rgb(0 0 0 / 0) none;
}
body[data-pdfjsprinting] #outerContainer{
display:none;
}
body[data-pdfjsprinting] #printContainer{
display:block;
}
#printContainer{
height:100%;
}
#printContainer > .printedPage{
page-break-after:always;
page-break-inside:avoid;
height:100%;
width:100%;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
}
#printContainer > .xfaPrintedPage .xfaPage{
position:absolute;
}
#printContainer > .xfaPrintedPage{
page-break-after:always;
page-break-inside:avoid;
width:100%;
height:100%;
position:relative;
}
#printContainer > .printedPage :is(canvas, img){
max-width:100%;
max-height:100%;
direction:ltr;
display:block;
}
}
.visibleMediumView{
display:none !important;
}
.toolbarLabel{
width:-moz-max-content;
width:max-content;
min-width:16px;
height:100%;
padding-inline:4px;
margin:2px;
border-radius:2px;
color:var(--main-color);
font-size:12px;
line-height:14px;
text-align:left;
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
cursor:default;
box-sizing:border-box;
display:inline-flex;
flex-direction:column;
align-items:center;
justify-content:center;
}
.toolbarLabel > label{
width:100%;
}
.toolbarHorizontalGroup{
height:100%;
display:inline-flex;
flex-direction:row;
align-items:center;
justify-content:space-between;
gap:1px;
box-sizing:border-box;
}
.dropdownToolbarButton{
display:inline-flex;
flex-direction:row;
align-items:center;
justify-content:center;
position:relative;
width:-moz-fit-content;
width:fit-content;
min-width:140px;
padding:0;
background-color:var(--dropdown-btn-bg-color);
border:var(--dropdown-btn-border);
border-radius:2px;
color:var(--main-color);
font-size:12px;
line-height:14px;
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
cursor:default;
box-sizing:border-box;
outline:none;
}
.dropdownToolbarButton:hover{
background-color:var(--button-hover-color);
}
.dropdownToolbarButton > select{
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
width:inherit;
min-width:inherit;
height:28px;
font:message-box;
font-size:12px;
color:var(--main-color);
margin:0;
padding-block:1px 2px;
padding-inline:6px 38px;
border:none;
outline:none;
background-color:var(--dropdown-btn-bg-color);
}
:is(.dropdownToolbarButton > select) > option{
background:var(--doorhanger-bg-color);
color:var(--main-color);
}
:is(.dropdownToolbarButton > select):is(:hover,:focus-visible){
background-color:var(--button-hover-color);
color:var(--toggled-btn-color);
}
.dropdownToolbarButton::after{
position:absolute;
display:inline;
width:var(--icon-size);
height:var(--icon-size);
content:"";
background-color:var(--toolbar-icon-bg-color);
-webkit-mask-size:cover;
mask-size:cover;
inset-inline-end:4px;
pointer-events:none;
-webkit-mask-image:var(--toolbarButton-menuArrow-icon);
mask-image:var(--toolbarButton-menuArrow-icon);
}
.dropdownToolbarButton:is(:hover,:focus-visible,:active)::after{
background-color:var(--toolbar-icon-hover-bg-color);
}
#toolbarContainer{
--menuitem-height:calc(var(--toolbar-height) - 6px);
width:100%;
height:var(--toolbar-height);
padding:var(--toolbar-vertical-padding) var(--toolbar-horizontal-padding);
position:relative;
box-sizing:border-box;
font:message-box;
background-color:var(--toolbar-bg-color);
box-shadow:var(--toolbar-box-shadow);
border-bottom:var(--toolbar-border-bottom);
}
#toolbarContainer #toolbarViewer{
width:100%;
height:100%;
justify-content:space-between;
}
:is(#toolbarContainer #toolbarViewer) > *{
flex:none;
}
:is(#toolbarContainer #toolbarViewer) input{
font:message-box;
}
:is(#toolbarContainer #toolbarViewer) .toolbarButtonSpacer{
width:30px;
display:block;
height:1px;
}
:is(#toolbarContainer #toolbarViewer) #toolbarViewerLeft #numPages.toolbarLabel{
padding-inline-start:3px;
flex:none;
}
#toolbarContainer #loadingBar{
--progressBar-percent:0%;
--progressBar-end-offset:0;
position:absolute;
top:var(--toolbar-height);
inset-inline:0 var(--progressBar-end-offset);
height:4px;
background-color:var(--progressBar-bg-color);
border-bottom:1px solid var(--toolbar-border-color);
transition-property:inset-inline-start;
transition-duration:var(--sidebar-transition-duration);
transition-timing-function:var(--sidebar-transition-timing-function);
}
:is(#toolbarContainer #loadingBar) .progress{
position:absolute;
top:0;
inset-inline-start:0;
width:100%;
transform:scaleX(var(--progressBar-percent));
transform-origin:calc(50% - 50% * var(--dir-factor)) 0;
height:100%;
background-color:var(--progressBar-color);
overflow:hidden;
transition:transform 200ms;
}
.indeterminate:is(#toolbarContainer #loadingBar) .progress{
transform:none;
background-color:var(--progressBar-bg-color);
transition:none;
}
:is(.indeterminate:is(#toolbarContainer #loadingBar) .progress) .glimmer{
position:absolute;
top:0;
inset-inline-start:0;
height:100%;
width:calc(100% + 150px);
background:repeating-linear-gradient(
135deg,
var(--progressBar-blend-color) 0,
var(--progressBar-bg-color) 5px,
var(--progressBar-bg-color) 45px,
var(--progressBar-color) 55px,
var(--progressBar-color) 95px,
var(--progressBar-blend-color) 100px
);
animation:progressIndeterminate 1s linear infinite;
}
@media all and (max-width: 840px){
#sidebarContainer{
background-color:var(--sidebar-narrow-bg-color);
}
#outerContainer.sidebarOpen #viewerContainer{
inset-inline-start:0 !important;
}
}
@media all and (max-width: 750px){
#outerContainer .hiddenMediumView{
display:none !important;
}
#outerContainer .visibleMediumView:not(.hidden, [hidden]){
display:inline-block !important;
}
}
@media all and (max-width: 690px){
.hiddenSmallView,
.hiddenSmallView *{
display:none !important;
}
#toolbarContainer #toolbarViewer .toolbarButtonSpacer{
width:0;
}
}
@media all and (max-width: 560px){
#scaleSelectContainer{
display:none;
}
}
wget 'https://sme10.lists2.roe3.org/kodbox/plugins/pdfjs/static/pdfjs/web/viewer.html'
<!DOCTYPE html>
<!--
Copyright 2012 Mozilla Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Adobe CMap resources are covered by their own copyright but the same license:
Copyright 1990-2015 Adobe Systems Incorporated.
See https://github.com/adobe-type-tools/cmap-resources
-->
<html dir="ltr" mozdisallowselectionprint>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="google" content="notranslate">
<title>PDF.js viewer</title>
<!-- This snippet is used in production (included from viewer.html) -->
<link rel="resource" type="application/l10n" href="locale/locale.json">
<script src="../build/pdf.mjs" type="module"></script>
<link rel="stylesheet" href="viewer.css">
<script src="viewer.mjs" type="module"></script>
</head>
<body tabindex="0">
<div id="outerContainer">
<div id="sidebarContainer">
<div id="toolbarSidebar" class="toolbarHorizontalGroup">
<div id="toolbarSidebarLeft">
<div id="sidebarViewButtons" class="toolbarHorizontalGroup toggled" role="radiogroup">
<button id="viewThumbnail" class="toolbarButton toggled" type="button" tabindex="0" data-l10n-id="pdfjs-thumbs-button" role="radio" aria-checked="true" aria-controls="thumbnailView">
<span data-l10n-id="pdfjs-thumbs-button-label"></span>
</button>
<button id="viewOutline" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-document-outline-button" role="radio" aria-checked="false" aria-controls="outlineView">
<span data-l10n-id="pdfjs-document-outline-button-label"></span>
</button>
<button id="viewAttachments" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-attachments-button" role="radio" aria-checked="false" aria-controls="attachmentsView">
<span data-l10n-id="pdfjs-attachments-button-label"></span>
</button>
<button id="viewLayers" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-layers-button" role="radio" aria-checked="false" aria-controls="layersView">
<span data-l10n-id="pdfjs-layers-button-label"></span>
</button>
</div>
</div>
<div id="toolbarSidebarRight">
<div id="outlineOptionsContainer" class="toolbarHorizontalGroup">
<div class="verticalToolbarSeparator"></div>
<button id="currentOutlineItem" class="toolbarButton" type="button" disabled="disabled" tabindex="0" data-l10n-id="pdfjs-current-outline-item-button">
<span data-l10n-id="pdfjs-current-outline-item-button-label"></span>
</button>
</div>
</div>
</div>
<div id="sidebarContent">
<div id="thumbnailView">
</div>
<div id="outlineView" class="hidden">
</div>
<div id="attachmentsView" class="hidden">
</div>
<div id="layersView" class="hidden">
</div>
</div>
<div id="sidebarResizer"></div>
</div> <!-- sidebarContainer -->
<div id="mainContainer">
<div class="toolbar">
<div id="toolbarContainer">
<div id="toolbarViewer" class="toolbarHorizontalGroup">
<div id="toolbarViewerLeft" class="toolbarHorizontalGroup">
<button id="sidebarToggleButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-toggle-sidebar-button" aria-expanded="false" aria-haspopup="true" aria-controls="sidebarContainer">
<span data-l10n-id="pdfjs-toggle-sidebar-button-label"></span>
</button>
<div class="toolbarButtonSpacer"></div>
<div class="toolbarButtonWithContainer">
<button id="viewFindButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-findbar-button" aria-expanded="false" aria-controls="findbar">
<span data-l10n-id="pdfjs-findbar-button-label"></span>
</button>
<div class="hidden doorHanger toolbarHorizontalGroup" id="findbar">
<div id="findInputContainer" class="toolbarHorizontalGroup">
<span class="loadingInput end toolbarHorizontalGroup">
<input id="findInput" class="toolbarField" tabindex="0" data-l10n-id="pdfjs-find-input" aria-invalid="false">
</span>
<div class="toolbarHorizontalGroup">
<button id="findPreviousButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-find-previous-button">
<span data-l10n-id="pdfjs-find-previous-button-label"></span>
</button>
<div class="splitToolbarButtonSeparator"></div>
<button id="findNextButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-find-next-button">
<span data-l10n-id="pdfjs-find-next-button-label"></span>
</button>
</div>
</div>
<div id="findbarOptionsOneContainer" class="toolbarHorizontalGroup">
<div class="toggleButton toolbarLabel">
<input type="checkbox" id="findHighlightAll" tabindex="0" />
<label for="findHighlightAll" data-l10n-id="pdfjs-find-highlight-checkbox"></label>
</div>
<div class="toggleButton toolbarLabel">
<input type="checkbox" id="findMatchCase" tabindex="0" />
<label for="findMatchCase" data-l10n-id="pdfjs-find-match-case-checkbox-label"></label>
</div>
</div>
<div id="findbarOptionsTwoContainer" class="toolbarHorizontalGroup">
<div class="toggleButton toolbarLabel">
<input type="checkbox" id="findMatchDiacritics" tabindex="0" />
<label for="findMatchDiacritics" data-l10n-id="pdfjs-find-match-diacritics-checkbox-label"></label>
</div>
<div class="toggleButton toolbarLabel">
<input type="checkbox" id="findEntireWord" tabindex="0" />
<label for="findEntireWord" data-l10n-id="pdfjs-find-entire-word-checkbox-label"></label>
</div>
</div>
<div id="findbarMessageContainer" class="toolbarHorizontalGroup" aria-live="polite">
<span id="findResultsCount" class="toolbarLabel"></span>
<span id="findMsg" class="toolbarLabel"></span>
</div>
</div> <!-- findbar -->
</div>
<div class="toolbarHorizontalGroup hiddenSmallView">
<button class="toolbarButton" type="button" id="previous" tabindex="0" data-l10n-id="pdfjs-previous-button">
<span data-l10n-id="pdfjs-previous-button-label"></span>
</button>
<div class="splitToolbarButtonSeparator"></div>
<button class="toolbarButton" type="button" id="next" tabindex="0" data-l10n-id="pdfjs-next-button">
<span data-l10n-id="pdfjs-next-button-label"></span>
</button>
</div>
<div class="toolbarHorizontalGroup">
<span class="loadingInput start toolbarHorizontalGroup">
<input type="number" id="pageNumber" class="toolbarField" value="1" min="1" tabindex="0" data-l10n-id="pdfjs-page-input" autocomplete="off">
</span>
<span id="numPages" class="toolbarLabel"></span>
</div>
</div>
<div id="toolbarViewerMiddle" class="toolbarHorizontalGroup">
<div class="toolbarHorizontalGroup">
<button id="zoomOutButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-zoom-out-button">
<span data-l10n-id="pdfjs-zoom-out-button-label"></span>
</button>
<div class="splitToolbarButtonSeparator"></div>
<button id="zoomInButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-zoom-in-button">
<span data-l10n-id="pdfjs-zoom-in-button-label"></span>
</button>
</div>
<span id="scaleSelectContainer" class="dropdownToolbarButton">
<select id="scaleSelect" tabindex="0" data-l10n-id="pdfjs-zoom-select">
<option id="pageAutoOption" value="auto" selected="selected" data-l10n-id="pdfjs-page-scale-auto"></option>
<option id="pageActualOption" value="page-actual" data-l10n-id="pdfjs-page-scale-actual"></option>
<option id="pageFitOption" value="page-fit" data-l10n-id="pdfjs-page-scale-fit"></option>
<option id="pageWidthOption" value="page-width" data-l10n-id="pdfjs-page-scale-width"></option>
<option id="customScaleOption" value="custom" disabled="disabled" hidden="true" data-l10n-id="pdfjs-page-scale-percent" data-l10n-args='{ "scale": 0 }'></option>
<option value="0.5" data-l10n-id="pdfjs-page-scale-percent" data-l10n-args='{ "scale": 50 }'></option>
<option value="0.75" data-l10n-id="pdfjs-page-scale-percent" data-l10n-args='{ "scale": 75 }'></option>
<option value="1" data-l10n-id="pdfjs-page-scale-percent" data-l10n-args='{ "scale": 100 }'></option>
<option value="1.25" data-l10n-id="pdfjs-page-scale-percent" data-l10n-args='{ "scale": 125 }'></option>
<option value="1.5" data-l10n-id="pdfjs-page-scale-percent" data-l10n-args='{ "scale": 150 }'></option>
<option value="2" data-l10n-id="pdfjs-page-scale-percent" data-l10n-args='{ "scale": 200 }'></option>
<option value="3" data-l10n-id="pdfjs-page-scale-percent" data-l10n-args='{ "scale": 300 }'></option>
<option value="4" data-l10n-id="pdfjs-page-scale-percent" data-l10n-args='{ "scale": 400 }'></option>
</select>
</span>
</div>
<div id="toolbarViewerRight" class="toolbarHorizontalGroup">
<div id="editorModeButtons" class="toolbarHorizontalGroup" role="radiogroup">
<div id="editorSignature" class="toolbarButtonWithContainer" hidden="true">
<button id="editorSignatureButton" class="toolbarButton" type="button" tabindex="0" disabled="disabled" role="radio" aria-expanded="false" aria-haspopup="true" aria-controls="editorSignatureParamsToolbar" data-l10n-id="pdfjs-editor-signature-button">
<span data-l10n-id="pdfjs-editor-signature-button-label"></span>
</button>
<div class="editorParamsToolbar hidden doorHangerRight menu" id="editorSignatureParamsToolbar">
<div id="addSignatureDoorHanger" class="menuContainer" role="region" data-l10n-id="pdfjs-editor-add-signature-container">
<button id="editorSignatureAddSignature" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-editor-signature-add-signature-button">
<span data-l10n-id="pdfjs-editor-signature-add-signature-button-label" class="editorParamsLabel"></span>
</button>
</div>
</div>
</div>
<div id="editorHighlight" class="toolbarButtonWithContainer">
<button id="editorHighlightButton" class="toolbarButton" type="button" disabled="disabled" role="radio" aria-expanded="false" aria-haspopup="true" aria-controls="editorHighlightParamsToolbar" tabindex="0" data-l10n-id="pdfjs-editor-highlight-button">
<span data-l10n-id="pdfjs-editor-highlight-button-label"></span>
</button>
<div class="editorParamsToolbar hidden doorHangerRight" id="editorHighlightParamsToolbar">
<div id="highlightParamsToolbarContainer" class="editorParamsToolbarContainer">
<div id="editorHighlightColorPicker" class="colorPicker">
<span id="highlightColorPickerLabel" class="editorParamsLabel" data-l10n-id="pdfjs-editor-highlight-colorpicker-label"></span>
</div>
<div id="editorHighlightThickness">
<label for="editorFreeHighlightThickness" class="editorParamsLabel" data-l10n-id="pdfjs-editor-free-highlight-thickness-input"></label>
<div class="thicknessPicker">
<input type="range" id="editorFreeHighlightThickness" class="editorParamsSlider" data-l10n-id="pdfjs-editor-free-highlight-thickness-title" value="12" min="8" max="24" step="1" tabindex="0">
</div>
</div>
<div id="editorHighlightVisibility">
<div class="divider"></div>
<div class="toggler">
<label for="editorHighlightShowAll" class="editorParamsLabel" data-l10n-id="pdfjs-editor-highlight-show-all-button-label"></label>
<button id="editorHighlightShowAll" class="toggle-button" type="button" data-l10n-id="pdfjs-editor-highlight-show-all-button" aria-pressed="true" tabindex="0"></button>
</div>
</div>
</div>
</div>
</div>
<div id="editorFreeText" class="toolbarButtonWithContainer">
<button id="editorFreeTextButton" class="toolbarButton" type="button" disabled="disabled" role="radio" aria-expanded="false" aria-haspopup="true" aria-controls="editorFreeTextParamsToolbar" tabindex="0" data-l10n-id="pdfjs-editor-free-text-button">
<span data-l10n-id="pdfjs-editor-free-text-button-label"></span>
</button>
<div class="editorParamsToolbar hidden doorHangerRight" id="editorFreeTextParamsToolbar">
<div class="editorParamsToolbarContainer">
<div class="editorParamsSetter">
<label for="editorFreeTextColor" class="editorParamsLabel" data-l10n-id="pdfjs-editor-free-text-color-input"></label>
<input type="color" id="editorFreeTextColor" class="editorParamsColor" tabindex="0">
</div>
<div class="editorParamsSetter">
<label for="editorFreeTextFontSize" class="editorParamsLabel" data-l10n-id="pdfjs-editor-free-text-size-input"></label>
<input type="range" id="editorFreeTextFontSize" class="editorParamsSlider" value="10" min="5" max="100" step="1" tabindex="0">
</div>
</div>
</div>
</div>
<div id="editorInk" class="toolbarButtonWithContainer">
<button id="editorInkButton" class="toolbarButton" type="button" disabled="disabled" role="radio" aria-expanded="false" aria-haspopup="true" aria-controls="editorInkParamsToolbar" tabindex="0" data-l10n-id="pdfjs-editor-ink-button">
<span data-l10n-id="pdfjs-editor-ink-button-label"></span>
</button>
<div class="editorParamsToolbar hidden doorHangerRight" id="editorInkParamsToolbar">
<div class="editorParamsToolbarContainer">
<div class="editorParamsSetter">
<label for="editorInkColor" class="editorParamsLabel" data-l10n-id="pdfjs-editor-ink-color-input"></label>
<input type="color" id="editorInkColor" class="editorParamsColor" tabindex="0">
</div>
<div class="editorParamsSetter">
<label for="editorInkThickness" class="editorParamsLabel" data-l10n-id="pdfjs-editor-ink-thickness-input"></label>
<input type="range" id="editorInkThickness" class="editorParamsSlider" value="1" min="1" max="20" step="1" tabindex="0">
</div>
<div class="editorParamsSetter">
<label for="editorInkOpacity" class="editorParamsLabel" data-l10n-id="pdfjs-editor-ink-opacity-input"></label>
<input type="range" id="editorInkOpacity" class="editorParamsSlider" value="1" min="0.05" max="1" step="0.05" tabindex="0">
</div>
</div>
</div>
</div>
<div id="editorStamp" class="toolbarButtonWithContainer">
<button id="editorStampButton" class="toolbarButton" type="button" disabled="disabled" role="radio" aria-expanded="false" aria-haspopup="true" aria-controls="editorStampParamsToolbar" tabindex="0" data-l10n-id="pdfjs-editor-stamp-button">
<span data-l10n-id="pdfjs-editor-stamp-button-label"></span>
</button>
<div class="editorParamsToolbar hidden doorHangerRight menu" id="editorStampParamsToolbar">
<div class="menuContainer">
<button id="editorStampAddImage" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-editor-stamp-add-image-button">
<span class="editorParamsLabel" data-l10n-id="pdfjs-editor-stamp-add-image-button-label"></span>
</button>
</div>
</div>
</div>
</div>
<div id="editorModeSeparator" class="verticalToolbarSeparator"></div>
<div class="toolbarHorizontalGroup hiddenMediumView">
<button id="printButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-print-button">
<span data-l10n-id="pdfjs-print-button-label"></span>
</button>
<button id="downloadButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-save-button">
<span data-l10n-id="pdfjs-save-button-label"></span>
</button>
</div>
<div class="verticalToolbarSeparator hiddenMediumView"></div>
<div id="secondaryToolbarToggle" class="toolbarButtonWithContainer">
<button id="secondaryToolbarToggleButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-tools-button" aria-expanded="false" aria-haspopup="true" aria-controls="secondaryToolbar">
<span data-l10n-id="pdfjs-tools-button-label"></span>
</button>
<div id="secondaryToolbar" class="hidden doorHangerRight menu">
<div id="secondaryToolbarButtonContainer" class="menuContainer">
<button id="secondaryOpenFile" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-open-file-button">
<span data-l10n-id="pdfjs-open-file-button-label"></span>
</button>
<div class="visibleMediumView">
<button id="secondaryPrint" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-print-button">
<span data-l10n-id="pdfjs-print-button-label"></span>
</button>
<button id="secondaryDownload" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-save-button">
<span data-l10n-id="pdfjs-save-button-label"></span>
</button>
</div>
<div class="horizontalToolbarSeparator"></div>
<button id="presentationMode" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-presentation-mode-button">
<span data-l10n-id="pdfjs-presentation-mode-button-label"></span>
</button>
<a href="#" id="viewBookmark" class="toolbarButton labeled" tabindex="0" data-l10n-id="pdfjs-bookmark-button">
<span data-l10n-id="pdfjs-bookmark-button-label"></span>
</a>
<div id="viewBookmarkSeparator" class="horizontalToolbarSeparator"></div>
<button id="firstPage" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-first-page-button">
<span data-l10n-id="pdfjs-first-page-button-label"></span>
</button>
<button id="lastPage" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-last-page-button">
<span data-l10n-id="pdfjs-last-page-button-label"></span>
</button>
<div class="horizontalToolbarSeparator"></div>
<button id="pageRotateCw" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-page-rotate-cw-button">
<span data-l10n-id="pdfjs-page-rotate-cw-button-label"></span>
</button>
<button id="pageRotateCcw" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-page-rotate-ccw-button">
<span data-l10n-id="pdfjs-page-rotate-ccw-button-label"></span>
</button>
<div class="horizontalToolbarSeparator"></div>
<div id="cursorToolButtons" role="radiogroup">
<button id="cursorSelectTool" class="toolbarButton labeled toggled" type="button" tabindex="0" data-l10n-id="pdfjs-cursor-text-select-tool-button" role="radio" aria-checked="true">
<span data-l10n-id="pdfjs-cursor-text-select-tool-button-label"></span>
</button>
<button id="cursorHandTool" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-cursor-hand-tool-button" role="radio" aria-checked="false">
<span data-l10n-id="pdfjs-cursor-hand-tool-button-label"></span>
</button>
</div>
<div class="horizontalToolbarSeparator"></div>
<div id="scrollModeButtons" role="radiogroup">
<button id="scrollPage" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-scroll-page-button" role="radio" aria-checked="false">
<span data-l10n-id="pdfjs-scroll-page-button-label"></span>
</button>
<button id="scrollVertical" class="toolbarButton labeled toggled" type="button" tabindex="0" data-l10n-id="pdfjs-scroll-vertical-button" role="radio" aria-checked="true">
<span data-l10n-id="pdfjs-scroll-vertical-button-label"></span>
</button>
<button id="scrollHorizontal" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-scroll-horizontal-button" role="radio" aria-checked="false">
<span data-l10n-id="pdfjs-scroll-horizontal-button-label"></span>
</button>
<button id="scrollWrapped" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-scroll-wrapped-button" role="radio" aria-checked="false">
<span data-l10n-id="pdfjs-scroll-wrapped-button-label"></span>
</button>
</div>
<div class="horizontalToolbarSeparator"></div>
<div id="spreadModeButtons" role="radiogroup">
<button id="spreadNone" class="toolbarButton labeled toggled" type="button" tabindex="0" data-l10n-id="pdfjs-spread-none-button" role="radio" aria-checked="true">
<span data-l10n-id="pdfjs-spread-none-button-label"></span>
</button>
<button id="spreadOdd" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-spread-odd-button" role="radio" aria-checked="false">
<span data-l10n-id="pdfjs-spread-odd-button-label"></span>
</button>
<button id="spreadEven" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-spread-even-button" role="radio" aria-checked="false">
<span data-l10n-id="pdfjs-spread-even-button-label"></span>
</button>
</div>
<div id="imageAltTextSettingsSeparator" class="horizontalToolbarSeparator hidden"></div>
<button id="imageAltTextSettings" type="button" class="toolbarButton labeled hidden" tabindex="0" data-l10n-id="pdfjs-image-alt-text-settings-button" aria-controls="altTextSettingsDialog">
<span data-l10n-id="pdfjs-image-alt-text-settings-button-label"></span>
</button>
<div class="horizontalToolbarSeparator"></div>
<button id="documentProperties" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-document-properties-button" aria-controls="documentPropertiesDialog">
<span data-l10n-id="pdfjs-document-properties-button-label"></span>
</button>
</div>
</div> <!-- secondaryToolbar -->
</div>
</div>
</div>
<div id="loadingBar">
<div class="progress">
<div class="glimmer">
</div>
</div>
</div>
</div>
</div>
<div id="viewerContainer" tabindex="0">
<div id="viewer" class="pdfViewer"></div>
</div>
</div> <!-- mainContainer -->
<div id="dialogContainer">
<dialog id="passwordDialog">
<div class="row">
<label for="password" id="passwordText" data-l10n-id="pdfjs-password-label"></label>
</div>
<div class="row">
<input type="password" id="password" class="toolbarField">
</div>
<div class="buttonRow">
<button id="passwordCancel" class="dialogButton" type="button"><span data-l10n-id="pdfjs-password-cancel-button"></span></button>
<button id="passwordSubmit" class="dialogButton" type="button"><span data-l10n-id="pdfjs-password-ok-button"></span></button>
</div>
</dialog>
<dialog id="documentPropertiesDialog">
<div class="row">
<span id="fileNameLabel" data-l10n-id="pdfjs-document-properties-file-name"></span>
<p id="fileNameField" aria-labelledby="fileNameLabel">-</p>
</div>
<div class="row">
<span id="fileSizeLabel" data-l10n-id="pdfjs-document-properties-file-size"></span>
<p id="fileSizeField" aria-labelledby="fileSizeLabel">-</p>
</div>
<div class="separator"></div>
<div class="row">
<span id="titleLabel" data-l10n-id="pdfjs-document-properties-title"></span>
<p id="titleField" aria-labelledby="titleLabel">-</p>
</div>
<div class="row">
<span id="authorLabel" data-l10n-id="pdfjs-document-properties-author"></span>
<p id="authorField" aria-labelledby="authorLabel">-</p>
</div>
<div class="row">
<span id="subjectLabel" data-l10n-id="pdfjs-document-properties-subject"></span>
<p id="subjectField" aria-labelledby="subjectLabel">-</p>
</div>
<div class="row">
<span id="keywordsLabel" data-l10n-id="pdfjs-document-properties-keywords"></span>
<p id="keywordsField" aria-labelledby="keywordsLabel">-</p>
</div>
<div class="row">
<span id="creationDateLabel" data-l10n-id="pdfjs-document-properties-creation-date"></span>
<p id="creationDateField" aria-labelledby="creationDateLabel">-</p>
</div>
<div class="row">
<span id="modificationDateLabel" data-l10n-id="pdfjs-document-properties-modification-date"></span>
<p id="modificationDateField" aria-labelledby="modificationDateLabel">-</p>
</div>
<div class="row">
<span id="creatorLabel" data-l10n-id="pdfjs-document-properties-creator"></span>
<p id="creatorField" aria-labelledby="creatorLabel">-</p>
</div>
<div class="separator"></div>
<div class="row">
<span id="producerLabel" data-l10n-id="pdfjs-document-properties-producer"></span>
<p id="producerField" aria-labelledby="producerLabel">-</p>
</div>
<div class="row">
<span id="versionLabel" data-l10n-id="pdfjs-document-properties-version"></span>
<p id="versionField" aria-labelledby="versionLabel">-</p>
</div>
<div class="row">
<span id="pageCountLabel" data-l10n-id="pdfjs-document-properties-page-count"></span>
<p id="pageCountField" aria-labelledby="pageCountLabel">-</p>
</div>
<div class="row">
<span id="pageSizeLabel" data-l10n-id="pdfjs-document-properties-page-size"></span>
<p id="pageSizeField" aria-labelledby="pageSizeLabel">-</p>
</div>
<div class="separator"></div>
<div class="row">
<span id="linearizedLabel" data-l10n-id="pdfjs-document-properties-linearized"></span>
<p id="linearizedField" aria-labelledby="linearizedLabel">-</p>
</div>
<div class="buttonRow">
<button id="documentPropertiesClose" class="dialogButton" type="button"><span data-l10n-id="pdfjs-document-properties-close-button"></span></button>
</div>
</dialog>
<dialog class="dialog altText" id="altTextDialog" aria-labelledby="dialogLabel" aria-describedby="dialogDescription">
<div id="altTextContainer" class="mainContainer">
<div id="overallDescription">
<span id="dialogLabel" data-l10n-id="pdfjs-editor-alt-text-dialog-label" class="title"></span>
<span id="dialogDescription" data-l10n-id="pdfjs-editor-alt-text-dialog-description"></span>
</div>
<div id="addDescription">
<div class="radio">
<div class="radioButton">
<input type="radio" id="descriptionButton" name="altTextOption" tabindex="0" aria-describedby="descriptionAreaLabel" checked>
<label for="descriptionButton" data-l10n-id="pdfjs-editor-alt-text-add-description-label"></label>
</div>
<div class="radioLabel">
<span id="descriptionAreaLabel" data-l10n-id="pdfjs-editor-alt-text-add-description-description"></span>
</div>
</div>
<div class="descriptionArea">
<textarea id="descriptionTextarea" aria-labelledby="descriptionAreaLabel" data-l10n-id="pdfjs-editor-alt-text-textarea" tabindex="0"></textarea>
</div>
</div>
<div id="markAsDecorative">
<div class="radio">
<div class="radioButton">
<input type="radio" id="decorativeButton" name="altTextOption" aria-describedby="decorativeLabel">
<label for="decorativeButton" data-l10n-id="pdfjs-editor-alt-text-mark-decorative-label"></label>
</div>
<div class="radioLabel">
<span id="decorativeLabel" data-l10n-id="pdfjs-editor-alt-text-mark-decorative-description"></span>
</div>
</div>
</div>
<div id="buttons">
<button id="altTextCancel" class="secondaryButton" type="button" tabindex="0"><span data-l10n-id="pdfjs-editor-alt-text-cancel-button"></span></button>
<button id="altTextSave" class="primaryButton" type="button" tabindex="0"><span data-l10n-id="pdfjs-editor-alt-text-save-button"></span></button>
</div>
</div>
</dialog>
<dialog class="dialog newAltText" id="newAltTextDialog" aria-labelledby="newAltTextTitle" aria-describedby="newAltTextDescription" tabindex="0">
<div id="newAltTextContainer" class="mainContainer">
<div class="title">
<span id="newAltTextTitle" data-l10n-id="pdfjs-editor-new-alt-text-dialog-edit-label" role="sectionhead" tabindex="0"></span>
</div>
<div id="mainContent">
<div id="descriptionAndSettings">
<div id="descriptionInstruction">
<div id="newAltTextDescriptionContainer">
<div class="altTextSpinner" role="status" aria-live="polite"></div>
<textarea id="newAltTextDescriptionTextarea" aria-labelledby="descriptionAreaLabel" data-l10n-id="pdfjs-editor-new-alt-text-textarea" tabindex="0"></textarea>
</div>
<span id="newAltTextDescription" role="note" data-l10n-id="pdfjs-editor-new-alt-text-description"></span>
<div id="newAltTextDisclaimer" role="note"><div><span data-l10n-id="pdfjs-editor-new-alt-text-disclaimer1"></span> <a href="https://support.mozilla.org/en-US/kb/pdf-alt-text" target="_blank" rel="noopener noreferrer" id="newAltTextLearnMore" data-l10n-id="pdfjs-editor-new-alt-text-disclaimer-learn-more-url" tabindex="0"></a></div></div>
</div>
<div id="newAltTextCreateAutomatically" class="toggler">
<button id="newAltTextCreateAutomaticallyButton" class="toggle-button" type="button" aria-pressed="true" tabindex="0"></button>
<label for="newAltTextCreateAutomaticallyButton" class="togglerLabel" data-l10n-id="pdfjs-editor-new-alt-text-create-automatically-button-label"></label>
</div>
<div id="newAltTextDownloadModel" class="hidden">
<span id="newAltTextDownloadModelDescription" data-l10n-id="pdfjs-editor-new-alt-text-ai-model-downloading-progress" aria-valuemin="0" data-l10n-args='{ "totalSize": 0, "downloadedSize": 0 }'></span>
</div>
</div>
<div id="newAltTextImagePreview"></div>
</div>
<div id="newAltTextError" class="messageBar">
<div>
<div>
<span class="title" data-l10n-id="pdfjs-editor-new-alt-text-error-title"></span>
<span class="description" data-l10n-id="pdfjs-editor-new-alt-text-error-description"></span>
</div>
<button id="newAltTextCloseButton" class="closeButton" type="button" tabindex="0"><span data-l10n-id="pdfjs-editor-new-alt-text-error-close-button"></span></button>
</div>
</div>
<div id="newAltTextButtons" class="dialogButtonsGroup">
<button id="newAltTextCancel" type="button" class="secondaryButton hidden" tabindex="0"><span data-l10n-id="pdfjs-editor-alt-text-cancel-button"></span></button>
<button id="newAltTextNotNow" type="button" class="secondaryButton" tabindex="0"><span data-l10n-id="pdfjs-editor-new-alt-text-not-now-button"></span></button>
<button id="newAltTextSave" type="button" class="primaryButton" tabindex="0"><span data-l10n-id="pdfjs-editor-alt-text-save-button"></span></button>
</div>
</div>
</dialog>
<dialog class="dialog" id="altTextSettingsDialog" aria-labelledby="altTextSettingsTitle">
<div id="altTextSettingsContainer" class="mainContainer">
<div class="title">
<span id="altTextSettingsTitle" data-l10n-id="pdfjs-editor-alt-text-settings-dialog-label" role="sectionhead" tabindex="0" class="title"></span>
</div>
<div id="automaticAltText">
<span data-l10n-id="pdfjs-editor-alt-text-settings-automatic-title"></span>
<div id="automaticSettings">
<div id="createModelSetting">
<div class="toggler">
<button id="createModelButton" type="button" class="toggle-button" aria-pressed="true" tabindex="0"></button>
<label for="createModelButton" class="togglerLabel" data-l10n-id="pdfjs-editor-alt-text-settings-create-model-button-label"></label>
</div>
<div id="createModelDescription" class="description">
<span data-l10n-id="pdfjs-editor-alt-text-settings-create-model-description"></span> <a href="https://support.mozilla.org/en-US/kb/pdf-alt-text" target="_blank" rel="noopener noreferrer" id="altTextSettingsLearnMore" data-l10n-id="pdfjs-editor-new-alt-text-disclaimer-learn-more-url" tabindex="0"></a>
</div>
</div>
<div id="aiModelSettings">
<div>
<span data-l10n-id="pdfjs-editor-alt-text-settings-download-model-label" data-l10n-args='{ "totalSize": 180 }'></span>
<div id="aiModelDescription" class="description">
<span data-l10n-id="pdfjs-editor-alt-text-settings-ai-model-description"></span>
</div>
</div>
<button id="deleteModelButton" type="button" class="secondaryButton" tabindex="0"><span data-l10n-id="pdfjs-editor-alt-text-settings-delete-model-button"></span></button>
<button id="downloadModelButton" type="button" class="secondaryButton" tabindex="0"><span data-l10n-id="pdfjs-editor-alt-text-settings-download-model-button"></span></button>
</div>
</div>
</div>
<div class="dialogSeparator"></div>
<div id="altTextEditor">
<span data-l10n-id="pdfjs-editor-alt-text-settings-editor-title"></span>
<div id="showAltTextEditor">
<div class="toggler">
<button id="showAltTextDialogButton" type="button" class="toggle-button" aria-pressed="true" tabindex="0"></button>
<label for="showAltTextDialogButton" class="togglerLabel" data-l10n-id="pdfjs-editor-alt-text-settings-show-dialog-button-label"></label>
</div>
<div id="showAltTextDialogDescription" class="description">
<span data-l10n-id="pdfjs-editor-alt-text-settings-show-dialog-description"></span>
</div>
</div>
</div>
<div id="buttons" class="dialogButtonsGroup">
<button id="altTextSettingsCloseButton" type="button" class="primaryButton" tabindex="0"><span data-l10n-id="pdfjs-editor-alt-text-settings-close-button"></span></button>
</div>
</div>
</dialog>
<dialog class="dialog signatureDialog" id="addSignatureDialog" aria-labelledby="addSignatureDialogLabel">
<span id="addSignatureDialogLabel" data-l10n-id="pdfjs-editor-add-signature-dialog-label"></span>
<div id="addSignatureContainer" class="mainContainer">
<div class="title">
<span role="sectionhead" data-l10n-id="pdfjs-editor-add-signature-dialog-title" tabindex="0"></span>
</div>
<div role="tablist" id="addSignatureOptions">
<button id="addSignatureTypeButton" type="button" role="tab" aria-selected="true" aria-controls="addSignatureTypeContainer" data-l10n-id="pdfjs-editor-add-signature-type-button" tabindex="0"></button>
<button id="addSignatureDrawButton" type="button" role="tab" aria-selected="false" aria-controls="addSignatureDrawContainer" data-l10n-id="pdfjs-editor-add-signature-draw-button" tabindex="0"></button>
<button id="addSignatureImageButton" type="button" role="tab" aria-selected="false" aria-controls="addSignatureImageContainer" data-l10n-id="pdfjs-editor-add-signature-image-button" tabindex="-1"></button>
</div>
<div id="addSignatureActionContainer" data-selected="type">
<div id="addSignatureTypeContainer" role="tabpanel" aria-labelledby="addSignatureTypeContainer">
<input id="addSignatureTypeInput" type="text" data-l10n-id="pdfjs-editor-add-signature-type-input" tabindex="0"></input>
</div>
<div id="addSignatureDrawContainer" role="tabpanel" aria-labelledby="addSignatureDrawButton" tabindex="-1">
<svg id="addSignatureDraw" xmlns="http://www.w3.org/2000/svg" aria-labelledby="addSignatureDrawPlaceholder"></svg>
<span id="addSignatureDrawPlaceholder" data-l10n-id="pdfjs-editor-add-signature-draw-placeholder"></span>
<div id="thickness">
<div>
<label for="addSignatureDrawThickness" data-l10n-id="pdfjs-editor-add-signature-draw-thickness-range-label"></label>
<input type="range" id="addSignatureDrawThickness" min="1" max="5" step="1" value="1" data-l10n-id="pdfjs-editor-add-signature-draw-thickness-range" data-l10n-args='{ "thickness": 1 }' tabindex="0">
</div>
</div>
</div>
<div id="addSignatureImageContainer" role="tabpanel" aria-labelledby="addSignatureImageButton" tabindex="-1">
<svg id="addSignatureImage" xmlns="http://www.w3.org/2000/svg" aria-labelledby="addSignatureImagePlaceholder"></svg>
<div id="addSignatureImagePlaceholder">
<span data-l10n-id="pdfjs-editor-add-signature-image-placeholder"></span>
<label id="addSignatureImageBrowse" for="addSignatureFilePicker" tabindex="0">
<a data-l10n-id="pdfjs-editor-add-signature-image-browse-link"></a>
</label>
<input id="addSignatureFilePicker" type="file"></input>
</div>
</div>
<div id="addSignatureControls">
<div id="horizontalContainer">
<div id="addSignatureDescriptionContainer">
<label for="addSignatureDescInput" data-l10n-id="pdfjs-editor-add-signature-description-label"></label>
<span id="addSignatureDescription" class="inputWithClearButton">
<input id="addSignatureDescInput" type="text" data-l10n-id="pdfjs-editor-add-signature-description-input" tabindex="0"></input>
<button class="clearInputButton" type="button" tabindex="0" aria-hidden="true"></button>
</span>
</div>
<button id="clearSignatureButton" type="button" data-l10n-id="pdfjs-editor-add-signature-clear-button" tabindex="0"><span data-l10n-id="pdfjs-editor-add-signature-clear-button-label"></span></button>
</div>
<div id="addSignatureSaveContainer">
<input type="checkbox" id="addSignatureSaveCheckbox" checked="true"></input>
<label for="addSignatureSaveCheckbox" data-l10n-id="pdfjs-editor-add-signature-save-checkbox"></label>
<span></span>
<span id="addSignatureSaveWarning" data-l10n-id="pdfjs-editor-add-signature-save-warning-message"></span>
</div>
</div>
<div id="addSignatureError" hidden="true" class="messageBar">
<div>
<div>
<span class="title" data-l10n-id="pdfjs-editor-add-signature-image-upload-error-title"></span>
<span class="description" data-l10n-id="pdfjs-editor-add-signature-image-upload-error-description"></span>
</div>
<button id="addSignatureErrorCloseButton" class="closeButton" type="button" tabindex="0"><span data-l10n-id="pdfjs-editor-add-signature-error-close-button"></span></button>
</div>
</div>
<div class="dialogButtonsGroup">
<button id="addSignatureCancelButton" type="button" class="secondaryButton" tabindex="0"><span data-l10n-id="pdfjs-editor-add-signature-cancel-button"></span></button>
<button id="addSignatureAddButton" type="button" class="primaryButton" disabled tabindex="0"><span data-l10n-id="pdfjs-editor-add-signature-add-button"></span></button>
</div>
</div>
</div>
</dialog>
<dialog class="dialog signatureDialog" id="editSignatureDescriptionDialog" aria-labelledby="editSignatureDescriptionTitle">
<div id="editSignatureDescriptionContainer" class="mainContainer">
<div class="title">
<span id="editSignatureDescriptionTitle" role="sectionhead" data-l10n-id="pdfjs-editor-edit-signature-dialog-title" tabindex="0"></span>
</div>
<div id="editSignatureDescriptionAndView">
<div id="editSignatureDescriptionContainer">
<label for="editSignatureDescInput" data-l10n-id="pdfjs-editor-add-signature-description-label"></label>
<span id="editSignatureDescription" class="inputWithClearButton">
<input id="editSignatureDescInput" type="text" data-l10n-id="pdfjs-editor-add-signature-description-input" tabindex="0"></input>
<button class="clearInputButton" type="button" tabindex="0" aria-hidden="true"></button>
</span>
</div>
<svg id="editSignatureView" xmlns="http://www.w3.org/2000/svg"></svg>
</div>
<div class="dialogButtonsGroup">
<button id="editSignatureCancelButton" type="button" class="secondaryButton" tabindex="0"><span data-l10n-id="pdfjs-editor-add-signature-cancel-button"></span></button>
<button id="editSignatureUpdateButton" type="button" class="primaryButton" disabled tabindex="0"><span data-l10n-id="pdfjs-editor-edit-signature-update-button"></span></button>
</div>
</div>
</dialog>
<dialog id="printServiceDialog" style="min-width: 200px;">
<div class="row">
<span data-l10n-id="pdfjs-print-progress-message"></span>
</div>
<div class="row">
<progress value="0" max="100"></progress>
<span data-l10n-id="pdfjs-print-progress-percent" data-l10n-args='{ "progress": 0 }' class="relative-progress">0%</span>
</div>
<div class="buttonRow">
<button id="printCancel" class="dialogButton" type="button"><span data-l10n-id="pdfjs-print-progress-close-button"></span></button>
</div>
</dialog>
</div> <!-- dialogContainer -->
<div id="editorUndoBar" class="messageBar" role="status" aria-labelledby="editorUndoBarMessage" tabindex="-1" hidden>
<div>
<div>
<span id="editorUndoBarMessage" class="description"></span>
</div>
<button id="editorUndoBarUndoButton" class="undoButton" type="button" tabindex="0" data-l10n-id="pdfjs-editor-undo-bar-undo-button">
<span data-l10n-id="pdfjs-editor-undo-bar-undo-button-label"></span>
</button>
<button id="editorUndoBarCloseButton" class="closeButton" type="button" tabindex="0" data-l10n-id="pdfjs-editor-undo-bar-close-button">
<span data-l10n-id="pdfjs-editor-undo-bar-close-button-label"></span>
</button>
</div>
</div> <!-- editorUndoBar -->
</div> <!-- outerContainer -->
<div id="printContainer"></div>
</body>
</html>
wget 'https://sme10.lists2.roe3.org/kodbox/plugins/pdfjs/static/pdfjs/web/viewer.js'
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).PDFViewer={})}(this,function(e){"use strict";function t(e,t){this.v=e,this.k=t}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function i(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function u(e){var t,n,i,u=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,i=Symbol.iterator);u--;){if(n&&null!=(t=e[n]))return t.call(e);if(i&&null!=(t=e[i]))return new r(t.call(e));n="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}function r(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return r=function(e){this.s=e,this.n=e.next},r.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new r(e)}function a(e,t,n,i,u,r,a){try{var o=e[r](a),s=o.value}catch(e){return void n(e)}o.done?t(s):Promise.resolve(s).then(i,u)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(i,u){var r=e.apply(t,n);function o(e){a(r,i,u,o,s,"next",e)}function s(e){a(r,i,u,o,s,"throw",e)}o(void 0)})}}function s(e){return new t(e,0)}function l(e,t,n){return t=A(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],A(e).constructor):t.apply(e,n))}function c(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){return e.get(i(e,t))}function D(e,t,n){c(e,t),t.set(e,n)}function f(e,t,n){return e.set(i(e,t),n),n}function p(e,t,n){return n(i(e,t))}function v(e,t){c(e,t),t.add(e)}function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,j(i.key),i)}}function F(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function m(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=V(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,u=function(){};return{s:u,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){o=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(o)throw r}}}}function E(e,t,n){return(t=j(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(){return C="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=M(e,t);if(i){var u=Object.getOwnPropertyDescriptor(i,t);return u.get?u.get.call(arguments.length<3?e:n):u.value}},C.apply(null,arguments)}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I(e,t)}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function k(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",u=n.toStringTag||"@@toStringTag";function r(n,i,u,r){var s=i&&i.prototype instanceof o?i:o,l=Object.create(s.prototype);return _(l,"_invoke",function(n,i,u){var r,o,s,l=0,c=u||[],d=!1,h={p:0,n:0,v:e,a:D,f:D.bind(e,4),d:function(t,n){return r=t,o=0,s=e,h.n=n,a}};function D(n,i){for(o=n,s=i,t=0;!d&&l&&!u&&t<c.length;t++){var u,r=c[t],D=h.p,f=r[2];n>3?(u=f===i)&&(s=r[(o=r[4])?5:(o=3,3)],r[4]=r[5]=e):r[0]<=D&&((u=n<2&&D<r[1])?(o=0,h.v=i,h.n=r[1]):D<f&&(u=n<3||r[0]>i||i>f)&&(r[4]=n,r[5]=i,h.n=f,o=0))}if(u||n>1)return a;throw d=!0,i}return function(u,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&D(c,f),o=c,s=f;(t=o<2?e:s)||!d;){r||(o?o<3?(o>1&&(h.n=-1),D(o,s)):h.n=s:h.v=s);try{if(l=2,r){if(o||(u="next"),t=r[u]){if(!(t=t.call(r,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,o<2&&(o=0)}else 1===o&&(t=r.return)&&t.call(r),o<2&&(s=TypeError("The iterator does not provide a '"+u+"' method"),o=1);r=e}else if((t=(d=h.n<0)?s:n.call(i,h))!==a)break}catch(t){r=e,o=1,s=t}finally{l=1}}return{value:t,done:d}}}(n,u,r),!0),l}var a={};function o(){}function s(){}function l(){}t=Object.getPrototypeOf;var c=[][i]?t(t([][i]())):(_(t={},i,function(){return this}),t),d=l.prototype=o.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,_(e,u,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=l,_(d,"constructor",l),_(l,"constructor",s),s.displayName="GeneratorFunction",_(l,u,"GeneratorFunction"),_(d),_(d,u,"Generator"),_(d,i,function(){return this}),_(d,"toString",function(){return"[object Generator]"}),(k=function(){return{w:r,m:h}})()}function _(e,t,n,i){var u=Object.defineProperty;try{u({},"",{})}catch(e){u=0}_=function(e,t,n,i){if(t)u?u(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n;else{function r(t,n){_(e,t,function(e){return this._invoke(t,n,e)})}r("next",0),r("throw",1),r("return",2)}},_(e,t,n,i)}function x(e){var t=Object(e),n=[];for(var i in t)n.unshift(i);return function e(){for(;n.length;)if((i=n.pop())in t)return e.value=i,e.done=!1,e;return e.done=!0,e}}function S(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}function P(e,t,n,i){return P="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,i){var u,r=M(e,t);if(r){if((u=Object.getOwnPropertyDescriptor(r,t)).set)return u.set.call(i,n),!0;if(!u.writable)return!1}if(u=Object.getOwnPropertyDescriptor(i,t)){if(!u.writable)return!1;u.value=n,Object.defineProperty(i,t,u)}else E(i,t,n);return!0},P(e,t,n,i)}function I(e,t){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},I(e,t)}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,u,r,a,o=[],s=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=r.call(n)).done)&&(o.push(i.value),o.length!==t);s=!0);}catch(e){l=!0,u=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw u}}return o}}(e,t)||V(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=A(e)););return e}function L(e,t,n,i){var u=C(A(1&i?e.prototype:e),t,n);return 2&i&&"function"==typeof u?function(e){return u.apply(n,e)}:u}function N(e,t,n,i,u,r){return function(e,t,n,i,u){if(!P(e,t,n,i||e)&&u)throw new TypeError("failed to set property");return n}(A(r?e.prototype:e),t,n,i,u)}function O(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function R(e,t,n){t||(t=[]);var i=t.length++;return Object.defineProperty({},"_",{set:function(u){t[i]=u,e.apply(n,t)}})}function W(e){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(e)}function V(e,t){if(e){if("string"==typeof e)return n(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}function z(e){return function(){return new U(e.apply(this,arguments))}}function U(e){var n,i;function u(n,i){try{var a=e[n](i),o=a.value,s=o instanceof t;Promise.resolve(s?o.v:o).then(function(t){if(s){var i="return"===n?"return":"next";if(!o.k||t.done)return u(i,t);t=e[i](t).value}r(a.done?"return":"normal",t)},function(e){u("throw",e)})}catch(e){r("throw",e)}}function r(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?u(n.key,n.arg):i=null}this._invoke=function(e,t){return new Promise(function(r,a){var o={key:e,arg:t,resolve:r,reject:a,next:null};i?i=i.next=o:(n=i=o,u(e,t))})},"function"!=typeof e.return&&(this.return=void 0)}function H(e){var t="function"==typeof Map?new Map:void 0;return H=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(b())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var u=new(e.bind.apply(e,i));return n&&I(u,n.prototype),u}(e,arguments,A(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),I(n,e)},H(e)}var G,Z,X,$,K,q;
/**
* @licstart The following is the entire license notice for the
* JavaScript code in this page
*
* Copyright 2024 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @licend The above is the entire license notice for the
* JavaScript code in this page
*/U.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},U.prototype.next=function(e){return this._invoke("next",e)},U.prototype.throw=function(e){return this._invoke("throw",e)},U.prototype.return=function(e){return this._invoke("return",e)};var Y={34:function(e,t,n){var i=n(4901);e.exports=function(e){return"object"==W(e)?null!==e:i(e)}},81:function(e,t,n){var i=n(9565),u=n(9306),r=n(8551),a=n(6823),o=n(851),s=TypeError;e.exports=function(e,t){var n=arguments.length<2?o(e):t;if(u(n))return r(i(n,e));throw new s(a(e)+" is not iterable")}},283:function(e,t,n){var i=n(9504),u=n(9039),r=n(4901),a=n(9297),o=n(3724),s=n(350).CONFIGURABLE,l=n(3706),c=n(1181),d=c.enforce,h=c.get,D=String,f=Object.defineProperty,p=i("".slice),v=i("".replace),g=i([].join),F=o&&!u(function(){return 8!==f(function(){},"length",{value:8}).length}),m=String(String).split("String"),E=e.exports=function(e,t,n){"Symbol("===p(D(t),0,7)&&(t="["+v(D(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||s&&e.name!==t)&&(o?f(e,"name",{value:t,configurable:!0}):e.name=t),F&&n&&a(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?o&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=d(e);return a(i,"source")||(i.source=g(m,"string"==typeof t?t:"")),e};Function.prototype.toString=E(function(){return r(this)&&h(this).source||l(this)},"toString")},350:function(e,t,n){var i=n(3724),u=n(9297),r=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,o=u(r,"name"),s=o&&"something"===function(){}.name,l=o&&(!i||i&&a(r,"name").configurable);e.exports={EXISTS:o,PROPER:s,CONFIGURABLE:l}},397:function(e,t,n){var i=n(7751);e.exports=i("document","documentElement")},421:function(e){e.exports={}},507:function(e,t,n){var i=n(9565);e.exports=function(e,t,n){for(var u,r,a=n?e:e.iterator,o=e.next;!(u=i(o,a)).done;)if(void 0!==(r=t(u.value)))return r}},616:function(e,t,n){var i=n(9039);e.exports=!i(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},655:function(e,t,n){var i=n(6955),u=String;e.exports=function(e){if("Symbol"===i(e))throw new TypeError("Cannot convert a Symbol value to a string");return u(e)}},679:function(e,t,n){var i=n(1625),u=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw new u("Incorrect invocation")}},741:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?n:t)(i)}},757:function(e,t,n){var i=n(7751),u=n(4901),r=n(1625),a=n(7040),o=Object;e.exports=a?function(e){return"symbol"==W(e)}:function(e){var t=i("Symbol");return u(t)&&r(t.prototype,o(e))}},851:function(e,t,n){var i=n(6955),u=n(5966),r=n(4117),a=n(6269),o=n(8227)("iterator");e.exports=function(e){if(!r(e))return u(e,o)||u(e,"@@iterator")||a[i(e)]}},1072:function(e,t,n){var i=n(1828),u=n(8727);e.exports=Object.keys||function(e){return i(e,u)}},1148:function(e,t,n){var i=n(6518),u=n(9565),r=n(2652),a=n(9306),o=n(8551),s=n(1767),l=n(9539),c=n(4549)("every",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:c},{every:function(e){o(this);try{a(e)}catch(e){l(this,"throw",e)}if(c)return u(c,this,e);var t=s(this),n=0;return!r(t,function(t,i){if(!e(t,n++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},1181:function(e,t,n){var i,u,r,a=n(8622),o=n(4576),s=n(34),l=n(6699),c=n(9297),d=n(7629),h=n(6119),D=n(421),f="Object already initialized",p=o.TypeError,v=o.WeakMap;if(a||d.state){var g=d.state||(d.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,i=function(e,t){if(g.has(e))throw new p(f);return t.facade=e,g.set(e,t),t},u=function(e){return g.get(e)||{}},r=function(e){return g.has(e)}}else{var F=h("state");D[F]=!0,i=function(e,t){if(c(e,F))throw new p(f);return t.facade=e,l(e,F,t),t},u=function(e){return c(e,F)?e[F]:{}},r=function(e){return c(e,F)}}e.exports={set:i,get:u,has:r,enforce:function(e){return r(e)?u(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=u(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return n}}}},1291:function(e,t,n){var i=n(741);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},1548:function(e,t,n){var i=n(4576),u=n(9039),r=n(9519),a=n(4215),o=i.structuredClone;e.exports=!!o&&!u(function(){if("DENO"===a&&r>92||"NODE"===a&&r>94||"BROWSER"===a&&r>97)return!1;var e=new ArrayBuffer(8),t=o(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength})},1625:function(e,t,n){var i=n(9504);e.exports=i({}.isPrototypeOf)},1698:function(e,t,n){var i=n(6518),u=n(4204);i({target:"Set",proto:!0,real:!0,forced:!n(4916)("union")},{union:u})},1701:function(e,t,n){var i=n(6518),u=n(9565),r=n(9306),a=n(8551),o=n(1767),s=n(9462),l=n(6319),c=n(9539),d=n(4549),h=n(6395),D=!h&&d("map",TypeError),f=s(function(){var e=this.iterator,t=a(u(this.next,e));if(!(this.done=!!t.done))return l(e,this.mapper,[t.value,this.counter++],!0)});i({target:"Iterator",proto:!0,real:!0,forced:h||D},{map:function(e){a(this);try{r(e)}catch(e){c(this,"throw",e)}return D?u(D,this,e):new f(o(this),{mapper:e})}})},1767:function(e){e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},1828:function(e,t,n){var i=n(9504),u=n(9297),r=n(5397),a=n(9617).indexOf,o=n(421),s=i([].push);e.exports=function(e,t){var n,i=r(e),l=0,c=[];for(n in i)!u(o,n)&&u(i,n)&&s(c,n);for(;t.length>l;)u(i,n=t[l++])&&(~a(c,n)||s(c,n));return c}},2106:function(e,t,n){var i=n(283),u=n(4913);e.exports=function(e,t,n){return n.get&&i(n.get,t,{getter:!0}),n.set&&i(n.set,t,{setter:!0}),u.f(e,t,n)}},2140:function(e,t,n){var i={};i[n(8227)("toStringTag")]="z",e.exports="[object z]"===String(i)},2195:function(e,t,n){var i=n(9504),u=i({}.toString),r=i("".slice);e.exports=function(e){return r(u(e),8,-1)}},2211:function(e,t,n){var i=n(9039);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},2222:function(e,t,n){var i=n(6518),u=n(7751),r=n(9039),a=n(2812),o=n(655),s=n(7416),l=u("URL"),c=s&&r(function(){l.canParse()}),d=r(function(){return 1!==l.canParse.length});i({target:"URL",stat:!0,forced:!c||d},{canParse:function(e){var t=a(arguments.length,1),n=o(e),i=t<2||void 0===arguments[1]?void 0:o(arguments[1]);try{return!!new l(n,i)}catch(e){return!1}}})},2360:function(e,t,n){var i,u=n(8551),r=n(6801),a=n(8727),o=n(421),s=n(397),l=n(4055),c=n(6119),d="prototype",h="script",D=c("IE_PROTO"),f=function(){},p=function(e){return"<"+h+">"+e+"</"+h+">"},v=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;g="undefined"!=typeof document?document.domain&&i?v(i):(t=l("iframe"),n="java"+h+":",t.style.display="none",s.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):v(i);for(var u=a.length;u--;)delete g[d][a[u]];return g()};o[D]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[d]=u(e),n=new f,f[d]=null,n[D]=e):n=g(),void 0===t?n:r.f(n,t)}},2475:function(e,t,n){var i=n(6518),u=n(8527);i({target:"Set",proto:!0,real:!0,forced:!n(4916)("isSupersetOf",function(e){return!e})},{isSupersetOf:u})},2489:function(e,t,n){var i=n(6518),u=n(9565),r=n(9306),a=n(8551),o=n(1767),s=n(9462),l=n(6319),c=n(6395),d=n(9539),h=n(4549),D=!c&&h("filter",TypeError),f=s(function(){for(var e,t,n=this.iterator,i=this.predicate,r=this.next;;){if(e=a(u(r,n)),this.done=!!e.done)return;if(t=e.value,l(n,i,[t,this.counter++],!0))return t}});i({target:"Iterator",proto:!0,real:!0,forced:c||D},{filter:function(e){a(this);try{r(e)}catch(e){d(this,"throw",e)}return D?u(D,this,e):new f(o(this),{predicate:e})}})},2529:function(e){e.exports=function(e,t){return{value:e,done:t}}},2652:function(e,t,n){var i=n(6080),u=n(9565),r=n(8551),a=n(6823),o=n(4209),s=n(6198),l=n(1625),c=n(81),d=n(851),h=n(9539),D=TypeError,f=function(e,t){this.stopped=e,this.result=t},p=f.prototype;e.exports=function(e,t,n){var v,g,F,m,E,C,A,w=n&&n.that,b=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_RECORD),B=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),_=i(t,w),x=function(e){return v&&h(v,"normal",e),new f(!0,e)},S=function(e){return b?(r(e),k?_(e[0],e[1],x):_(e[0],e[1])):k?_(e,x):_(e)};if(y)v=e.iterator;else if(B)v=e;else{if(!(g=d(e)))throw new D(a(e)+" is not iterable");if(o(g)){for(F=0,m=s(e);m>F;F++)if((E=S(e[F]))&&l(p,E))return E;return new f(!1)}v=c(e,g)}for(C=y?e.next:v.next;!(A=u(C,v)).done;){try{E=S(A.value)}catch(e){h(v,"throw",e)}if("object"==W(E)&&E&&l(p,E))return E}return new f(!1)}},2777:function(e,t,n){var i=n(9565),u=n(34),r=n(757),a=n(5966),o=n(4270),s=n(8227),l=TypeError,c=s("toPrimitive");e.exports=function(e,t){if(!u(e)||r(e))return e;var n,s=a(e,c);if(s){if(void 0===t&&(t="default"),n=i(s,e,t),!u(n)||r(n))return n;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},2787:function(e,t,n){var i=n(9297),u=n(4901),r=n(8981),a=n(6119),o=n(2211),s=a("IE_PROTO"),l=Object,c=l.prototype;e.exports=o?l.getPrototypeOf:function(e){var t=r(e);if(i(t,s))return t[s];var n=t.constructor;return u(n)&&t instanceof n?n.prototype:t instanceof l?c:null}},2796:function(e,t,n){var i=n(9039),u=n(4901),r=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n===c||n!==l&&(u(t)?i(t):!!t)},o=a.normalize=function(e){return String(e).replace(r,".").toLowerCase()},s=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},2812:function(e){var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},2839:function(e,t,n){var i=n(4576).navigator,u=i&&i.userAgent;e.exports=u?String(u):""},3238:function(e,t,n){var i=n(4576),u=n(7811),r=n(7394),a=i.DataView;e.exports=function(e){if(!u||0!==r(e))return!1;try{return new a(e),!1}catch(e){return!0}}},3392:function(e,t,n){var i=n(9504),u=0,r=Math.random(),a=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++u+r,36)}},3440:function(e,t,n){var i=n(7080),u=n(4402),r=n(9286),a=n(5170),o=n(3789),s=n(8469),l=n(507),c=u.has,d=u.remove;e.exports=function(e){var t=i(this),n=o(e),u=r(t);return a(t)<=n.size?s(t,function(e){n.includes(e)&&d(u,e)}):l(n.getIterator(),function(e){c(t,e)&&d(u,e)}),u}},3579:function(e,t,n){var i=n(6518),u=n(9565),r=n(2652),a=n(9306),o=n(8551),s=n(1767),l=n(9539),c=n(4549)("some",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:c},{some:function(e){o(this);try{a(e)}catch(e){l(this,"throw",e)}if(c)return u(c,this,e);var t=s(this),n=0;return r(t,function(t,i){if(e(t,n++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},3650:function(e,t,n){var i=n(7080),u=n(4402),r=n(9286),a=n(3789),o=n(507),s=u.add,l=u.has,c=u.remove;e.exports=function(e){var t=i(this),n=a(e).getIterator(),u=r(t);return o(n,function(e){l(t,e)?c(u,e):s(u,e)}),u}},3706:function(e,t,n){var i=n(9504),u=n(4901),r=n(7629),a=i(Function.toString);u(r.inspectSource)||(r.inspectSource=function(e){return a(e)}),e.exports=r.inspectSource},3717:function(e,t){t.f=Object.getOwnPropertySymbols},3724:function(e,t,n){var i=n(9039);e.exports=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},3789:function(e,t,n){var i=n(9306),u=n(8551),r=n(9565),a=n(1291),o=n(1767),s="Invalid size",l=RangeError,c=TypeError,d=Math.max,h=function(e,t){this.set=e,this.size=d(t,0),this.has=i(e.has),this.keys=i(e.keys)};h.prototype={getIterator:function(){return o(u(r(this.keys,this.set)))},includes:function(e){return r(this.has,this.set,e)}},e.exports=function(e){u(e);var t=+e.size;if(t!=t)throw new c(s);var n=a(t);if(n<0)throw new l(s);return new h(e,n)}},3838:function(e,t,n){var i=n(7080),u=n(5170),r=n(8469),a=n(3789);e.exports=function(e){var t=i(this),n=a(e);return!(u(t)>n.size)&&!1!==r(t,function(e){if(!n.includes(e))return!1},!0)}},3853:function(e,t,n){var i=n(6518),u=n(4449);i({target:"Set",proto:!0,real:!0,forced:!n(4916)("isDisjointFrom",function(e){return!e})},{isDisjointFrom:u})},4055:function(e,t,n){var i=n(4576),u=n(34),r=i.document,a=u(r)&&u(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},4114:function(e,t,n){var i=n(6518),u=n(8981),r=n(6198),a=n(4527),o=n(6837);i({target:"Array",proto:!0,arity:1,forced:n(9039)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=u(this),n=r(t),i=arguments.length;o(n+i);for(var s=0;s<i;s++)t[n]=arguments[s],n++;return a(t,n),n}})},4117:function(e){e.exports=function(e){return null==e}},4204:function(e,t,n){var i=n(7080),u=n(4402).add,r=n(9286),a=n(3789),o=n(507);e.exports=function(e){var t=i(this),n=a(e).getIterator(),s=r(t);return o(n,function(e){u(s,e)}),s}},4209:function(e,t,n){var i=n(8227),u=n(6269),r=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(u.Array===e||a[r]===e)}},4215:function(e,t,n){var i=n(4576),u=n(2839),r=n(2195),a=function(e){return u.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==W(Deno.version)?"DENO":"process"===r(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST"},4270:function(e,t,n){var i=n(9565),u=n(4901),r=n(34),a=TypeError;e.exports=function(e,t){var n,o;if("string"===t&&u(n=e.toString)&&!r(o=i(n,e)))return o;if(u(n=e.valueOf)&&!r(o=i(n,e)))return o;if("string"!==t&&u(n=e.toString)&&!r(o=i(n,e)))return o;throw new a("Can't convert object to primitive value")}},4376:function(e,t,n){var i=n(2195);e.exports=Array.isArray||function(e){return"Array"===i(e)}},4402:function(e,t,n){var i=n(9504),u=Set.prototype;e.exports={Set:Set,add:i(u.add),has:i(u.has),remove:i(u.delete),proto:u}},4449:function(e,t,n){var i=n(7080),u=n(4402).has,r=n(5170),a=n(3789),o=n(8469),s=n(507),l=n(9539);e.exports=function(e){var t=i(this),n=a(e);if(r(t)<=n.size)return!1!==o(t,function(e){if(n.includes(e))return!1},!0);var c=n.getIterator();return!1!==s(c,function(e){if(u(t,e))return l(c,"normal",!1)})}},4483:function(e,t,n){var i,u,r,a,o=n(4576),s=n(9429),l=n(1548),c=o.structuredClone,d=o.ArrayBuffer,h=o.MessageChannel,D=!1;if(l)D=function(e){c(e,{transfer:[e]})};else if(d)try{h||(i=s("worker_threads"))&&(h=i.MessageChannel),h&&(u=new h,r=new d(2),a=function(e){u.port1.postMessage(null,[e])},2===r.byteLength&&(a(r),0===r.byteLength&&(D=a)))}catch(e){}e.exports=D},4495:function(e,t,n){var i=n(9519),u=n(9039),r=n(4576).String;e.exports=!!Object.getOwnPropertySymbols&&!u(function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41})},4527:function(e,t,n){var i=n(3724),u=n(4376),r=TypeError,a=Object.getOwnPropertyDescriptor,o=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=o?function(e,t){if(u(e)&&!a(e,"length").writable)throw new r("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4549:function(e,t,n){var i=n(4576);e.exports=function(e,t){var n=i.Iterator,u=n&&n.prototype,r=u&&u[e],a=!1;if(r)try{r.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(e){e instanceof t||(a=!1)}if(!a)return r}},4576:function(e){var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==("undefined"==typeof globalThis?"undefined":W(globalThis))&&globalThis)||t("object"==("undefined"==typeof window?"undefined":W(window))&&window)||t("object"==("undefined"==typeof self?"undefined":W(self))&&self)||t("object"==("undefined"==typeof global?"undefined":W(global))&&global)||t("object"==W(this)&&this)||function(){return this}()||Function("return this")()},4603:function(e,t,n){var i=n(6840),u=n(9504),r=n(655),a=n(2812),o=URLSearchParams,s=o.prototype,l=u(s.append),c=u(s.delete),d=u(s.forEach),h=u([].push),D=new o("a=1&a=2&b=3");D.delete("a",1),D.delete("b",void 0),D+""!="a=2"&&i(s,"delete",function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return c(this,e);var i=[];d(this,function(e,t){h(i,{key:t,value:e})}),a(t,1);for(var u,o=r(e),s=r(n),D=0,f=0,p=!1,v=i.length;D<v;)u=i[D++],p||u.key===o?(p=!0,c(this,u.key)):f++;for(;f<v;)(u=i[f++]).key===o&&u.value===s||l(this,u.key,u.value)},{enumerable:!0,unsafe:!0})},4628:function(e,t,n){var i=n(6518),u=n(6043);i({target:"Promise",stat:!0},{withResolvers:function(){var e=u.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},4659:function(e,t,n){var i=n(3724),u=n(4913),r=n(6980);e.exports=function(e,t,n){i?u.f(e,t,r(0,n)):e[t]=n}},4901:function(e){var t="object"==("undefined"==typeof document?"undefined":W(document))&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},4913:function(e,t,n){var i=n(3724),u=n(5917),r=n(8686),a=n(8551),o=n(6969),s=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",D="writable";t.f=i?r?function(e,t,n){if(a(e),t=o(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&D in n&&!n[D]){var i=c(e,t);i&&i[D]&&(e[t]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:d in n?n[d]:i[d],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(a(e),t=o(t),a(n),u)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new s("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},4916:function(e,t,n){var i=n(7751),u=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},r=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var n=i("Set");try{(new n)[e](u(0));try{return(new n)[e](u(-1)),!1}catch(i){if(!t)return!0;try{return(new n)[e](r(-1/0)),!1}catch(i){var a=new n;return a.add(1),a.add(2),t(a[e](r(1/0)))}}}catch(e){return!1}}},5024:function(e,t,n){var i=n(6518),u=n(3650);i({target:"Set",proto:!0,real:!0,forced:!n(4916)("symmetricDifference")},{symmetricDifference:u})},5031:function(e,t,n){var i=n(7751),u=n(9504),r=n(8480),a=n(3717),o=n(8551),s=u([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(o(e)),n=a.f;return n?s(t,n(e)):t}},5169:function(e,t,n){var i=n(3238),u=TypeError;e.exports=function(e){if(i(e))throw new u("ArrayBuffer is detached");return e}},5170:function(e,t,n){var i=n(6706),u=n(4402);e.exports=i(u.proto,"size","get")||function(e){return e.size}},5397:function(e,t,n){var i=n(7055),u=n(7750);e.exports=function(e){return i(u(e))}},5610:function(e,t,n){var i=n(1291),u=Math.max,r=Math.min;e.exports=function(e,t){var n=i(e);return n<0?u(n+t,0):r(n,t)}},5636:function(e,t,n){var i=n(4576),u=n(9504),r=n(6706),a=n(7696),o=n(5169),s=n(7394),l=n(4483),c=n(1548),d=i.structuredClone,h=i.ArrayBuffer,D=i.DataView,f=Math.min,p=h.prototype,v=D.prototype,g=u(p.slice),F=r(p,"resizable","get"),m=r(p,"maxByteLength","get"),E=u(v.getInt8),C=u(v.setInt8);e.exports=(c||l)&&function(e,t,n){var i,u=s(e),r=void 0===t?u:a(t),p=!F||!F(e);if(o(e),c&&(e=d(e,{transfer:[e]}),u===r&&(n||p)))return e;if(u>=r&&(!n||p))i=g(e,0,r);else{var v=n&&!p&&m?{maxByteLength:m(e)}:void 0;i=new h(r,v);for(var A=new D(e),w=new D(i),b=f(r,u),y=0;y<b;y++)C(w,y,E(A,y))}return c||l(e),i}},5745:function(e,t,n){var i=n(7629);e.exports=function(e,t){return i[e]||(i[e]=t||{})}},5781:function(e,t,n){var i=n(6518),u=n(7751),r=n(2812),a=n(655),o=n(7416),s=u("URL");i({target:"URL",stat:!0,forced:!o},{parse:function(e){var t=r(arguments.length,1),n=a(e),i=t<2||void 0===arguments[1]?void 0:a(arguments[1]);try{return new s(n,i)}catch(e){return null}}})},5876:function(e,t,n){var i=n(6518),u=n(3838);i({target:"Set",proto:!0,real:!0,forced:!n(4916)("isSubsetOf",function(e){return e})},{isSubsetOf:u})},5917:function(e,t,n){var i=n(3724),u=n(9039),r=n(4055);e.exports=!i&&!u(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})},5966:function(e,t,n){var i=n(9306),u=n(4117);e.exports=function(e,t){var n=e[t];return u(n)?void 0:i(n)}},6043:function(e,t,n){var i=n(9306),u=TypeError,r=function(e){var t,n;this.promise=new e(function(e,i){if(void 0!==t||void 0!==n)throw new u("Bad Promise constructor");t=e,n=i}),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new r(e)}},6080:function(e,t,n){var i=n(7476),u=n(9306),r=n(616),a=i(i.bind);e.exports=function(e,t){return u(e),void 0===t?e:r?a(e,t):function(){return e.apply(t,arguments)}}},6119:function(e,t,n){var i=n(5745),u=n(3392),r=i("keys");e.exports=function(e){return r[e]||(r[e]=u(e))}},6193:function(e,t,n){var i=n(4215);e.exports="NODE"===i},6198:function(e,t,n){var i=n(8014);e.exports=function(e){return i(e.length)}},6269:function(e){e.exports={}},6279:function(e,t,n){var i=n(6840);e.exports=function(e,t,n){for(var u in t)i(e,u,t[u],n);return e}},6319:function(e,t,n){var i=n(8551),u=n(9539);e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(t){u(e,"throw",t)}}},6395:function(e){e.exports=!1},6518:function(e,t,n){var i=n(4576),u=n(7347).f,r=n(6699),a=n(6840),o=n(9433),s=n(7740),l=n(2796);e.exports=function(e,t){var n,c,d,h,D,f=e.target,p=e.global,v=e.stat;if(n=p?i:v?i[f]||o(f,{}):i[f]&&i[f].prototype)for(c in t){if(h=t[c],d=e.dontCallGetSet?(D=u(n,c))&&D.value:n[c],!l(p?c:f+(v?".":"#")+c,e.forced)&&void 0!==d){if(W(h)==W(d))continue;s(h,d)}(e.sham||d&&d.sham)&&r(h,"sham",!0),a(n,c,h,e)}}},6573:function(e,t,n){var i=n(3724),u=n(2106),r=n(3238),a=ArrayBuffer.prototype;i&&!("detached"in a)&&u(a,"detached",{configurable:!0,get:function(){return r(this)}})},6699:function(e,t,n){var i=n(3724),u=n(4913),r=n(6980);e.exports=i?function(e,t,n){return u.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},6706:function(e,t,n){var i=n(9504),u=n(9306);e.exports=function(e,t,n){try{return i(u(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},6801:function(e,t,n){var i=n(3724),u=n(8686),r=n(4913),a=n(8551),o=n(5397),s=n(1072);t.f=i&&!u?Object.defineProperties:function(e,t){a(e);for(var n,i=o(t),u=s(t),l=u.length,c=0;l>c;)r.f(e,n=u[c++],i[n]);return e}},6823:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6837:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},6840:function(e,t,n){var i=n(4901),u=n(4913),r=n(283),a=n(9433);e.exports=function(e,t,n,o){o||(o={});var s=o.enumerable,l=void 0!==o.name?o.name:t;if(i(n)&&r(n,l,o),o.global)s?e[t]=n:a(t,n);else{try{o.unsafe?e[t]&&(s=!0):delete e[t]}catch(e){}s?e[t]=n:u.f(e,t,{value:n,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},6955:function(e,t,n){var i=n(2140),u=n(4901),r=n(2195),a=n(8227)("toStringTag"),o=Object,s="Arguments"===r(function(){return arguments}());e.exports=i?r:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=o(e),a))?n:s?r(t):"Object"===(i=r(t))&&u(t.callee)?"Arguments":i}},6969:function(e,t,n){var i=n(2777),u=n(757);e.exports=function(e){var t=i(e,"string");return u(t)?t:t+""}},6980:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7040:function(e,t,n){var i=n(4495);e.exports=i&&!Symbol.sham&&"symbol"==W(Symbol.iterator)},7055:function(e,t,n){var i=n(9504),u=n(9039),r=n(2195),a=Object,o=i("".split);e.exports=u(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?o(e,""):a(e)}:a},7080:function(e,t,n){var i=n(4402).has;e.exports=function(e){return i(e),e}},7347:function(e,t,n){var i=n(3724),u=n(9565),r=n(8773),a=n(6980),o=n(5397),s=n(6969),l=n(9297),c=n(5917),d=Object.getOwnPropertyDescriptor;t.f=i?d:function(e,t){if(e=o(e),t=s(t),c)try{return d(e,t)}catch(e){}if(l(e,t))return a(!u(r.f,e,t),e[t])}},7394:function(e,t,n){var i=n(4576),u=n(6706),r=n(2195),a=i.ArrayBuffer,o=i.TypeError;e.exports=a&&u(a.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==r(e))throw new o("ArrayBuffer expected");return e.byteLength}},7416:function(e,t,n){var i=n(9039),u=n(8227),r=n(3724),a=n(6395),o=u("iterator");e.exports=!i(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),i="";return e.pathname="c%20d",t.forEach(function(e,n){t.delete("b"),i+=n+e}),n.delete("a",2),n.delete("b",void 0),a&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(a||!r)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==i||"x"!==new URL("https://x",void 0).host})},7476:function(e,t,n){var i=n(2195),u=n(9504);e.exports=function(e){if("Function"===i(e))return u(e)}},7566:function(e,t,n){var i=n(6840),u=n(9504),r=n(655),a=n(2812),o=URLSearchParams,s=o.prototype,l=u(s.getAll),c=u(s.has),d=new o("a=1");!d.has("a",2)&&d.has("a",void 0)||i(s,"has",function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return c(this,e);var i=l(this,e);a(t,1);for(var u=r(n),o=0;o<i.length;)if(i[o++]===u)return!0;return!1},{enumerable:!0,unsafe:!0})},7588:function(e,t,n){var i=n(6518),u=n(9565),r=n(2652),a=n(9306),o=n(8551),s=n(1767),l=n(9539),c=n(4549)("forEach",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:c},{forEach:function(e){o(this);try{a(e)}catch(e){l(this,"throw",e)}if(c)return u(c,this,e);var t=s(this),n=0;r(t,function(t){e(t,n++)},{IS_RECORD:!0})}})},7629:function(e,t,n){var i=n(6395),u=n(4576),r=n(9433),a="__core-js_shared__",o=e.exports=u[a]||r(a,{});(o.versions||(o.versions=[])).push({version:"3.42.0",mode:i?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7642:function(e,t,n){var i=n(6518),u=n(3440);i({target:"Set",proto:!0,real:!0,forced:!n(4916)("difference",function(e){return 0===e.size})},{difference:u})},7657:function(e,t,n){var i,u,r,a=n(9039),o=n(4901),s=n(34),l=n(2360),c=n(2787),d=n(6840),h=n(8227),D=n(6395),f=h("iterator"),p=!1;[].keys&&("next"in(r=[].keys())?(u=c(c(r)))!==Object.prototype&&(i=u):p=!0),!s(i)||a(function(){var e={};return i[f].call(e)!==e})?i={}:D&&(i=l(i)),o(i[f])||d(i,f,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},7696:function(e,t,n){var i=n(1291),u=n(8014),r=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=u(t);if(t!==n)throw new r("Wrong length or index");return n}},7740:function(e,t,n){var i=n(9297),u=n(5031),r=n(7347),a=n(4913);e.exports=function(e,t,n){for(var o=u(t),s=a.f,l=r.f,c=0;c<o.length;c++){var d=o[c];i(e,d)||n&&i(n,d)||s(e,d,l(t,d))}}},7750:function(e,t,n){var i=n(4117),u=TypeError;e.exports=function(e){if(i(e))throw new u("Can't call method on "+e);return e}},7751:function(e,t,n){var i=n(4576),u=n(4901);e.exports=function(e,t){return arguments.length<2?(n=i[e],u(n)?n:void 0):i[e]&&i[e][t];var n}},7811:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7936:function(e,t,n){var i=n(6518),u=n(5636);u&&i({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return u(this,arguments.length?arguments[0]:void 0,!1)}})},8004:function(e,t,n){var i=n(6518),u=n(9039),r=n(8750);i({target:"Set",proto:!0,real:!0,forced:!n(4916)("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||u(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:r})},8014:function(e,t,n){var i=n(1291),u=Math.min;e.exports=function(e){var t=i(e);return t>0?u(t,9007199254740991):0}},8100:function(e,t,n){var i=n(6518),u=n(5636);u&&i({target:"ArrayBuffer",proto:!0},{transfer:function(){return u(this,arguments.length?arguments[0]:void 0,!0)}})},8111:function(e,t,n){var i=n(6518),u=n(4576),r=n(679),a=n(8551),o=n(4901),s=n(2787),l=n(2106),c=n(4659),d=n(9039),h=n(9297),D=n(8227),f=n(7657).IteratorPrototype,p=n(3724),v=n(6395),g="constructor",F="Iterator",m=D("toStringTag"),E=TypeError,C=u[F],A=v||!o(C)||C.prototype!==f||!d(function(){C({})}),w=function(){if(r(this,f),s(this)===f)throw new E("Abstract class Iterator not directly constructable")},b=function(e,t){p?l(f,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===f)throw new E("You can't redefine this property");h(this,e)?this[e]=t:c(this,e,t)}}):f[e]=t};h(f,m)||b(m,F),!A&&h(f,g)&&f[g]!==Object||b(g,w),w.prototype=f,i({global:!0,constructor:!0,forced:A},{Iterator:w})},8227:function(e,t,n){var i=n(4576),u=n(5745),r=n(9297),a=n(3392),o=n(4495),s=n(7040),l=i.Symbol,c=u("wks"),d=s?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return r(c,e)||(c[e]=o&&r(l,e)?l[e]:d("Symbol."+e)),c[e]}},8235:function(e,t,n){var i=n(9504),u=n(9297),r=SyntaxError,a=parseInt,o=String.fromCharCode,s=i("".charAt),l=i("".slice),c=i(/./.exec),d={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},h=/^[\da-f]{4}$/i,D=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var n=!0,i="";t<e.length;){var f=s(e,t);if("\\"===f){var p=l(e,t,t+2);if(u(d,p))i+=d[p],t+=2;else{if("\\u"!==p)throw new r('Unknown escape sequence: "'+p+'"');var v=l(e,t+=2,t+4);if(!c(h,v))throw new r("Bad Unicode escape at: "+t);i+=o(a(v,16)),t+=4}}else{if('"'===f){n=!1,t++;break}if(c(D,f))throw new r("Bad control character in string literal at: "+t);i+=f,t++}}if(n)throw new r("Unterminated string at: "+t);return{value:i,end:t}}},8335:function(e,t,n){var i=n(6518),u=n(3724),r=n(4576),a=n(7751),o=n(9504),s=n(9565),l=n(4901),c=n(34),d=n(4376),h=n(9297),D=n(655),f=n(6198),p=n(4659),v=n(9039),g=n(8235),F=n(4495),m=r.JSON,E=r.Number,C=r.SyntaxError,A=m&&m.parse,w=a("Object","keys"),b=Object.getOwnPropertyDescriptor,y=o("".charAt),B=o("".slice),k=o(/./.exec),_=o([].push),x=/^\d$/,S=/^[1-9]$/,P=/^[\d-]$/,I=/^[\t\n\r ]$/,T=function(e,t,n,i){var u,r,a,o,l,D=e[t],p=i&&D===i.value,v=p&&"string"==typeof i.source?{source:i.source}:{};if(c(D)){var g=d(D),F=p?i.nodes:g?[]:{};if(g)for(u=F.length,a=f(D),o=0;o<a;o++)M(D,o,T(D,""+o,n,o<u?F[o]:void 0));else for(r=w(D),a=f(r),o=0;o<a;o++)l=r[o],M(D,l,T(D,l,n,h(F,l)?F[l]:void 0))}return s(n,e,t,D,v)},M=function(e,t,n){if(u){var i=b(e,t);if(i&&!i.configurable)return}void 0===n?delete e[t]:p(e,t,n)},L=function(e,t,n,i){this.value=e,this.end=t,this.source=n,this.nodes=i},N=function(e,t){this.source=e,this.index=t};N.prototype={fork:function(e){return new N(this.source,e)},parse:function(){var e=this.source,t=this.skip(I,this.index),n=this.fork(t),i=y(e,t);if(k(P,i))return n.number();switch(i){case"{":return n.object();case"[":return n.array();case'"':return n.string();case"t":return n.keyword(!0);case"f":return n.keyword(!1);case"n":return n.keyword(null)}throw new C('Unexpected character: "'+i+'" at: '+t)},node:function(e,t,n,i,u){return new L(t,i,e?null:B(this.source,n,i),u)},object:function(){for(var e=this.source,t=this.index+1,n=!1,i={},u={};t<e.length;){if(t=this.until(['"',"}"],t),"}"===y(e,t)&&!n){t++;break}var r=this.fork(t).string(),a=r.value;t=r.end,t=this.until([":"],t)+1,t=this.skip(I,t),r=this.fork(t).parse(),p(u,a,r),p(i,a,r.value),t=this.until([",","}"],r.end);var o=y(e,t);if(","===o)n=!0,t++;else if("}"===o){t++;break}}return this.node(1,i,this.index,t,u)},array:function(){for(var e=this.source,t=this.index+1,n=!1,i=[],u=[];t<e.length;){if(t=this.skip(I,t),"]"===y(e,t)&&!n){t++;break}var r=this.fork(t).parse();if(_(u,r),_(i,r.value),t=this.until([",","]"],r.end),","===y(e,t))n=!0,t++;else if("]"===y(e,t)){t++;break}}return this.node(1,i,this.index,t,u)},string:function(){var e=this.index,t=g(this.source,this.index+1);return this.node(0,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,n=t;if("-"===y(e,n)&&n++,"0"===y(e,n))n++;else{if(!k(S,y(e,n)))throw new C("Failed to parse number at: "+n);n=this.skip(x,n+1)}if(("."===y(e,n)&&(n=this.skip(x,n+1)),"e"===y(e,n)||"E"===y(e,n))&&(n++,"+"!==y(e,n)&&"-"!==y(e,n)||n++,n===(n=this.skip(x,n))))throw new C("Failed to parse number's exponent value at: "+n);return this.node(0,E(B(e,t,n)),t,n)},keyword:function(e){var t=""+e,n=this.index,i=n+t.length;if(B(this.source,n,i)!==t)throw new C("Failed to parse value at: "+n);return this.node(0,e,n,i)},skip:function(e,t){for(var n=this.source;t<n.length&&k(e,y(n,t));t++);return t},until:function(e,t){t=this.skip(I,t);for(var n=y(this.source,t),i=0;i<e.length;i++)if(e[i]===n)return t;throw new C('Unexpected character: "'+n+'" at: '+t)}};var O=v(function(){var e,t="9007199254740993";return A(t,function(t,n,i){e=i.source}),e!==t}),j=F&&!v(function(){return 1/A("-0 \t")!=-1/0});i({target:"JSON",stat:!0,forced:O},{parse:function(e,t){return j&&!l(t)?A(e):function(e,t){e=D(e);var n=new N(e,0),i=n.parse(),u=i.value,r=n.skip(I,i.end);if(r<e.length)throw new C('Unexpected extra character: "'+y(e,r)+'" after the parsed data at: '+r);return l(t)?T({"":u},"",t,i):u}(e,t)}})},8469:function(e,t,n){var i=n(9504),u=n(507),r=n(4402),a=r.Set,o=r.proto,s=i(o.forEach),l=i(o.keys),c=l(new a).next;e.exports=function(e,t,n){return n?u({iterator:l(e),next:c},t):s(e,t)}},8480:function(e,t,n){var i=n(1828),u=n(8727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,u)}},8527:function(e,t,n){var i=n(7080),u=n(4402).has,r=n(5170),a=n(3789),o=n(507),s=n(9539);e.exports=function(e){var t=i(this),n=a(e);if(r(t)<n.size)return!1;var l=n.getIterator();return!1!==o(l,function(e){if(!u(t,e))return s(l,"normal",!1)})}},8551:function(e,t,n){var i=n(34),u=String,r=TypeError;e.exports=function(e){if(i(e))return e;throw new r(u(e)+" is not an object")}},8622:function(e,t,n){var i=n(4576),u=n(4901),r=i.WeakMap;e.exports=u(r)&&/native code/.test(String(r))},8686:function(e,t,n){var i=n(3724),u=n(9039);e.exports=i&&u(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8721:function(e,t,n){var i=n(3724),u=n(9504),r=n(2106),a=URLSearchParams.prototype,o=u(a.forEach);i&&!("size"in a)&&r(a,"size",{get:function(){var e=0;return o(this,function(){e++}),e},configurable:!0,enumerable:!0})},8727:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8750:function(e,t,n){var i=n(7080),u=n(4402),r=n(5170),a=n(3789),o=n(8469),s=n(507),l=u.Set,c=u.add,d=u.has;e.exports=function(e){var t=i(this),n=a(e),u=new l;return r(t)>n.size?s(n.getIterator(),function(e){d(t,e)&&c(u,e)}):o(t,function(e){n.includes(e)&&c(u,e)}),u}},8773:function(e,t){var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,u=i&&!n.call({1:2},1);t.f=u?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},8981:function(e,t,n){var i=n(7750),u=Object;e.exports=function(e){return u(i(e))}},9039:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},9286:function(e,t,n){var i=n(4402),u=n(8469),r=i.Set,a=i.add;e.exports=function(e){var t=new r;return u(e,function(e){a(t,e)}),t}},9297:function(e,t,n){var i=n(9504),u=n(8981),r=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(u(e),t)}},9306:function(e,t,n){var i=n(4901),u=n(6823),r=TypeError;e.exports=function(e){if(i(e))return e;throw new r(u(e)+" is not a function")}},9429:function(e,t,n){var i=n(4576),u=n(6193);e.exports=function(e){if(u){try{return i.process.getBuiltinModule(e)}catch(e){}try{return Function('return require("'+e+'")')()}catch(e){}}}},9433:function(e,t,n){var i=n(4576),u=Object.defineProperty;e.exports=function(e,t){try{u(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},9462:function(e,t,n){var i=n(9565),u=n(2360),r=n(6699),a=n(6279),o=n(8227),s=n(1181),l=n(5966),c=n(7657).IteratorPrototype,d=n(2529),h=n(9539),D=o("toStringTag"),f="IteratorHelper",p="WrapForValidIterator",v=s.set,g=function(e){var t=s.getterFor(e?p:f);return a(u(c),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var i=n.nextHandler();return n.returnHandlerResult?i:d(i,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),u=n.iterator;if(n.done=!0,e){var r=l(u,"return");return r?i(r,u):d(void 0,!0)}if(n.inner)try{h(n.inner.iterator,"normal")}catch(e){return h(u,"throw",e)}return u&&h(u,"normal"),d(void 0,!0)}})},F=g(!0),m=g(!1);r(m,D,"Iterator Helper"),e.exports=function(e,t,n){var i=function(i,u){u?(u.iterator=i.iterator,u.next=i.next):u=i,u.type=t?p:f,u.returnHandlerResult=!!n,u.nextHandler=e,u.counter=0,u.done=!1,v(this,u)};return i.prototype=t?F:m,i}},9504:function(e,t,n){var i=n(616),u=Function.prototype,r=u.call,a=i&&u.bind.bind(r,r);e.exports=i?a:function(e){return function(){return r.apply(e,arguments)}}},9519:function(e,t,n){var i,u,r=n(4576),a=n(2839),o=r.process,s=r.Deno,l=o&&o.versions||s&&s.version,c=l&&l.v8;c&&(u=(i=c.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!u&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(u=+i[1]),e.exports=u},9539:function(e,t,n){var i=n(9565),u=n(8551),r=n(5966);e.exports=function(e,t,n){var a,o;u(e);try{if(!(a=r(e,"return"))){if("throw"===t)throw n;return n}a=i(a,e)}catch(e){o=!0,a=e}if("throw"===t)throw n;if(o)throw a;return u(a),n}},9565:function(e,t,n){var i=n(616),u=Function.prototype.call;e.exports=i?u.bind(u):function(){return u.apply(u,arguments)}},9617:function(e,t,n){var i=n(5397),u=n(5610),r=n(6198),a=function(e){return function(t,n,a){var o=i(t),s=r(o);if(0===s)return!e&&-1;var l,c=u(a,s);if(e&&n!=n){for(;s>c;)if((l=o[c++])!=l)return!0}else for(;s>c;c++)if((e||c in o)&&o[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}}},J={};function Q(e){var t=J[e];if(void 0!==t)return t.exports;var n=J[e]={exports:{}};return Y[e].call(n.exports,n,n.exports,Q),n.exports}Q(4114),Q(7642),Q(8004),Q(3853),Q(5876),Q(2475),Q(5024),Q(1698),Q(4603),Q(7566),Q(8721);var ee=globalThis.pdfjsLib,te=ee.AbortException,ne=ee.AnnotationEditorLayer,ie=ee.AnnotationEditorParamsType,ue=ee.AnnotationEditorType,re=ee.AnnotationEditorUIManager,ae=ee.AnnotationLayer,oe=ee.AnnotationMode,se=ee.AnnotationType,le=ee.build,ce=ee.ColorPicker,de=ee.createValidAbsoluteUrl,he=ee.DOMSVGFactory,De=ee.DrawLayer,fe=ee.FeatureTest,pe=ee.fetchData,ve=ee.getDocument,ge=ee.getFilenameFromUrl,Fe=ee.getPdfFilenameFromUrl,me=ee.getUuid,Ee=ee.getXfaPageViewport,Ce=ee.GlobalWorkerOptions;ee.ImageKind;var Ae=ee.InvalidPDFException,we=ee.isDataScheme,be=ee.isPdfFile,ye=ee.isValidExplicitDest,Be=ee.MathClamp,ke=ee.noContextMenu,_e=ee.normalizeUnicode;ee.OPS;var xe=ee.OutputScale,Se=ee.PasswordResponses;ee.PDFDataRangeTransport;var Pe=ee.PDFDateString,Ie=ee.PDFWorker,Te=ee.PermissionFlag,Me=ee.PixelsPerInch,Le=ee.RenderingCancelledException,Ne=ee.ResponseException,Oe=ee.setLayerDimensions,je=ee.shadow,Re=ee.SignatureExtractor,We=ee.stopEvent,Ve=ee.SupportedImageMimeTypes,ze=ee.TextLayer,Ue=ee.TouchManager,He=ee.updateUrlHash,Ge=ee.Util;ee.VerbosityLevel;var Ze=ee.version,Xe=ee.XfaLayer,$e="auto",Ke={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3},qe=0,Ye=1,Je=2,Qe=3,et=-1,tt=0,nt=1,it=2,ut=3,rt=4,at=0,ot=1,st=2,lt={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3},ct={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2},dt=0,ht=1,Dt=/\bprint\s*\(/;function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.offsetParent;if(i){for(var u=e.offsetTop+e.clientTop,r=e.offsetLeft+e.clientLeft;i.clientHeight===i.scrollHeight&&i.clientWidth===i.scrollWidth||n&&(i.classList.contains("markedContent")||"hidden"===getComputedStyle(i).overflow);)if(u+=i.offsetTop,r+=i.offsetLeft,!(i=i.offsetParent))return;t&&(void 0!==t.top&&(u+=t.top),void 0!==t.left&&(r+=t.left,i.scrollLeft=r)),i.scrollTop=u}else console.error("offsetParent is not set -- cannot scroll")}function pt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=function(n){r||(r=window.requestAnimationFrame(function(){r=null;var n=e.scrollLeft,i=u.lastX;n!==i&&(u.right=n>i),u.lastX=n;var a=e.scrollTop,o=u.lastY;a!==o&&(u.down=a>o),u.lastY=a,t(u)}))},u={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:i},r=null;return e.addEventListener("scroll",i,{useCapture:!0,signal:n}),null==n||n.addEventListener("abort",function(){return window.cancelAnimationFrame(r)},{once:!0}),u}function vt(e){var t,n=new Map,i=m(new URLSearchParams(e));try{for(i.s();!(t=i.n()).done;){var u=T(t.value,2),r=u[0],a=u[1];n.set(r.toLowerCase(),a)}}catch(e){i.e(e)}finally{i.f()}return n}var gt=/[\x00-\x1F]/g;function Ft(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return gt.test(e)?t?e.replaceAll(gt,function(e){return"\0"===e?"":" "}):e.replaceAll("\0",""):e}function mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=e.length-1;if(i<0||!t(e[i]))return e.length;if(t(e[n]))return n;for(;n<i;){var u=n+i>>1;t(e[u])?i=u:n=u+1}return n}function Et(e){if(Math.floor(e)===e)return[e,1];var t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];for(var n=e>1?t:e,i=0,u=1,r=1,a=1;;){var o=i+r,s=u+a;if(s>8)break;n<=o/s?(r=o,a=s):(i=o,u=s)}return n-i/u<r/a-n?n===e?[i,u]:[u,i]:n===e?[r,a]:[a,r]}function Ct(e,t){return e-e%t}function At(e){var t=e.view,n=e.userUnit,i=e.rotate,u=T(t,4),r=u[0],a=u[1],o=i%180!=0,s=(u[2]-r)/72*n,l=(u[3]-a)/72*n;return{width:o?l:s,height:o?s:l}}function wt(e){var t=e.scrollEl,n=e.views,i=e.sortByVisibility,u=void 0!==i&&i,r=e.horizontal,a=void 0!==r&&r,o=e.rtl,s=void 0!==o&&o,l=t.scrollTop,c=l+t.clientHeight,d=t.scrollLeft,h=d+t.clientWidth;var D=[],f=new Set,p=n.length,v=mt(n,a?function(e){var t=e.div,n=t.offsetLeft+t.clientLeft,i=n+t.clientWidth;return s?n<h:i>d}:function(e){var t=e.div;return t.offsetTop+t.clientTop+t.clientHeight>l});v>0&&v<p&&!a&&(v=function(e,t,n){if(e<2)return e;var i=t[e].div,u=i.offsetTop+i.clientTop;u>=n&&(u=(i=t[e-1].div).offsetTop+i.clientTop);for(var r=e-2;r>=0&&!((i=t[r].div).offsetTop+i.clientTop+i.clientHeight<=u);--r)e=r;return e}(v,n,l));for(var g=a?h:-1,F=v;F<p;F++){var m=n[F],E=m.div,C=E.offsetLeft+E.clientLeft,A=E.offsetTop+E.clientTop,w=E.clientWidth,b=E.clientHeight,y=C+w,B=A+b;if(-1===g)B>=c&&(g=B);else if((a?C:A)>g)break;if(!(B<=l||A>=c||y<=d||C>=h)){var k=Math.max(0,l-A),_=Math.max(0,d-C),x=k+Math.max(0,B-c),S=(w-(_+Math.max(0,y-h)))/w,P=(b-x)/b*S*100|0;D.push({id:m.id,x:C,y:A,visibleArea:100===P?null:{minX:_,minY:k,maxX:Math.min(y,h)-C,maxY:Math.min(B,c)-A},view:m,percent:P,widthPercent:100*S|0}),f.add(m.id)}}var I=D[0],T=D.at(-1);return u&&D.sort(function(e,t){var n=e.percent-t.percent;return Math.abs(n)>.001?-n:e.id-t.id}),{first:I,last:T,views:D,ids:f}}function bt(e){var t=Math.hypot(e.deltaX,e.deltaY),n=Math.atan2(e.deltaY,e.deltaX);return-.25*Math.PI<n&&n<.75*Math.PI&&(t=-t),t}function yt(e){return Number.isInteger(e)&&e%90==0}function Bt(e){return Number.isInteger(e)&&Object.values(lt).includes(e)&&e!==lt.UNKNOWN}function kt(e){return Number.isInteger(e)&&Object.values(ct).includes(e)&&e!==ct.UNKNOWN}function _t(e){return e.width<=e.height}var xt=new Promise(function(e){window.requestAnimationFrame(e)}),St=document.documentElement.style,Pt=new WeakMap,It=new WeakMap,Tt=new WeakMap,Mt=new WeakMap,Lt=new WeakMap,Nt=function(){return F(function e(t){d(this,e),D(this,Pt,null),D(this,It,null),D(this,Tt,0),D(this,Mt,null),D(this,Lt,!0),f(Pt,this,t.classList),f(Mt,this,t.style)},[{key:"percent",get:function(){return h(Tt,this)},set:function(e){f(Tt,this,Be(e,0,100)),isNaN(e)?h(Pt,this).add("indeterminate"):(h(Pt,this).remove("indeterminate"),h(Mt,this).setProperty("--progressBar-percent","".concat(h(Tt,this),"%")))}},{key:"setWidth",value:function(e){if(e){var t=e.parentNode.offsetWidth-e.offsetWidth;t>0&&h(Mt,this).setProperty("--progressBar-end-offset","".concat(t,"px"))}}},{key:"setDisableAutoFetch",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5e3;100===h(Tt,this)||isNaN(h(Tt,this))||(h(It,this)&&clearTimeout(h(It,this)),this.show(),f(It,this,setTimeout(function(){f(It,e,null),e.hide()},t)))}},{key:"hide",value:function(){h(Lt,this)&&(f(Lt,this,!1),h(Pt,this).add("hidden"))}},{key:"show",value:function(){h(Lt,this)||(f(Lt,this,!0),h(Pt,this).remove("hidden"))}}])}();function Ot(){for(var e=document,t=e.activeElement||e.querySelector(":focus");null!==(n=t)&&void 0!==n&&n.shadowRoot;){var n;t=(e=t.shadowRoot).activeElement||e.querySelector(":focus")}return t}function jt(e){var t=lt.VERTICAL,n=ct.NONE;switch(e){case"SinglePage":t=lt.PAGE;break;case"OneColumn":break;case"TwoPageLeft":t=lt.PAGE;case"TwoColumnLeft":n=ct.ODD;break;case"TwoPageRight":t=lt.PAGE;case"TwoColumnRight":n=ct.EVEN}return{scrollMode:t,spreadMode:n}}function Rt(e){switch(e){case"UseNone":return tt;case"UseThumbs":return nt;case"UseOutlines":return it;case"UseAttachments":return ut;case"UseOC":return rt}return tt}function Wt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e.classList.toggle("toggled",t),e.setAttribute("aria-checked",t),null==n||n.classList.toggle("hidden",!t)}function Vt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e.classList.toggle("toggled",t),e.setAttribute("aria-expanded",t),null==n||n.classList.toggle("hidden",!t)}var zt,Ut=((zt=document.createElement("div")).style.width="round(down, calc(1.6666666666666665 * 792px), 1px)","calc(1320px)"===zt.style.width?Math.fround:function(e){return e}),Ht=new Map,Gt=navigator,Zt=Gt.maxTouchPoints,Xt=Gt.platform,$t=Gt.userAgent,Kt=/Android/.test($t);(/\b(iPad|iPhone|iPod)(?=;)/.test($t)||"MacIntel"===Xt&&Zt>1||Kt)&&Ht.set("maxCanvasPixels",5242880),Kt&&Ht.set("useSystemFonts",!1);var qt=1,Yt=2,Jt=4,Qt=8,en=16,tn=128,nn={BOOLEAN:1,NUMBER:2,OBJECT:4,STRING:8,UNDEFINED:16},un={allowedGlobalEvents:{value:null,kind:qt},canvasMaxAreaInBytes:{value:-1,kind:qt+Jt},isInAutomation:{value:!1,kind:qt},localeProperties:{value:{lang:navigator.language||"en-US"},kind:qt},maxCanvasDim:{value:32767,kind:qt+Yt},nimbusDataStr:{value:"",kind:qt},supportsCaretBrowsingMode:{value:!1,kind:qt},supportsDocumentFonts:{value:!0,kind:qt},supportsIntegratedFind:{value:!1,kind:qt},supportsMouseWheelZoomCtrlKey:{value:!0,kind:qt},supportsMouseWheelZoomMetaKey:{value:!0,kind:qt},supportsPinchToZoom:{value:!0,kind:qt},supportsPrinting:{value:!0,kind:qt},toolbarDensity:{value:0,kind:qt+en},altTextLearnMoreUrl:{value:"",kind:Yt+tn},annotationEditorMode:{value:0,kind:Yt+tn},annotationMode:{value:2,kind:Yt+tn},capCanvasAreaFactor:{value:200,kind:Yt+tn},cursorToolOnLoad:{value:0,kind:Yt+tn},debuggerSrc:{value:"./debugger.mjs",kind:Yt},defaultZoomDelay:{value:400,kind:Yt+tn},defaultZoomValue:{value:"",kind:Yt+tn},disableHistory:{value:!1,kind:Yt},disablePageLabels:{value:!1,kind:Yt+tn},enableAltText:{value:!1,kind:Yt+tn},enableAltTextModelDownload:{value:!0,kind:Yt+tn+en},enableAutoLinking:{value:!0,kind:Yt+tn},enableDetailCanvas:{value:!0,kind:Yt},enableGuessAltText:{value:!0,kind:Yt+tn+en},enableHighlightFloatingButton:{value:!1,kind:Yt+tn},enableNewAltTextWhenAddingImage:{value:!0,kind:Yt+tn},enablePermissions:{value:!1,kind:Yt+tn},enablePrintAutoRotate:{value:!0,kind:Yt+tn},enableScripting:{value:!0,kind:Yt+tn},enableSignatureEditor:{value:!1,kind:Yt+tn},enableUpdatedAddImage:{value:!1,kind:Yt+tn},externalLinkRel:{value:"noopener noreferrer nofollow",kind:Yt},externalLinkTarget:{value:0,kind:Yt+tn},highlightEditorColors:{value:"yellow=#FFFF98,green=#53FFBC,blue=#80EBFF,pink=#FFCBE6,red=#FF4F5F",kind:Yt+tn},historyUpdateUrl:{value:!1,kind:Yt+tn},ignoreDestinationZoom:{value:!1,kind:Yt+tn},imageResourcesPath:{value:"./images/",kind:Yt},maxCanvasPixels:{value:Math.pow(2,25),kind:Yt},minDurationToUpdateCanvas:{value:500,kind:Yt},forcePageColors:{value:!1,kind:Yt+tn},pageColorsBackground:{value:"Canvas",kind:Yt+tn},pageColorsForeground:{value:"CanvasText",kind:Yt+tn},pdfBugEnabled:{value:!1,kind:Yt+tn},printResolution:{value:150,kind:Yt},sidebarViewOnLoad:{value:-1,kind:Yt+tn},scrollModeOnLoad:{value:-1,kind:Yt+tn},spreadModeOnLoad:{value:-1,kind:Yt+tn},textLayerMode:{value:1,kind:Yt+tn},viewerCssTheme:{value:0,kind:Yt+tn},viewOnLoad:{value:0,kind:Yt+tn},cMapPacked:{value:!0,kind:Jt},cMapUrl:{value:"../web/cmaps/",kind:Jt},disableAutoFetch:{value:!1,kind:Jt+tn},disableFontFace:{value:!1,kind:Jt+tn},disableRange:{value:!1,kind:Jt+tn},disableStream:{value:!1,kind:Jt+tn},docBaseUrl:{value:"",kind:Jt},enableHWA:{value:!0,kind:Jt+Yt+tn},enableXfa:{value:!0,kind:Jt+tn},fontExtraProperties:{value:!1,kind:Jt},iccUrl:{value:"../web/iccs/",kind:Jt},isEvalSupported:{value:!0,kind:Jt},isOffscreenCanvasSupported:{value:!0,kind:Jt},maxImageSize:{value:-1,kind:Jt},pdfBug:{value:!1,kind:Jt},standardFontDataUrl:{value:"../web/standard_fonts/",kind:Jt},useSystemFonts:{value:void 0,kind:Jt,type:nn.BOOLEAN+nn.UNDEFINED},verbosity:{value:1,kind:Jt},wasmUrl:{value:"../web/wasm/",kind:Jt},workerPort:{value:null,kind:Qt},workerSrc:{value:"../build/pdf.worker.mjs",kind:Qt}};un.defaultUrl={value:"compressed.tracemonkey-pldi-09.pdf",kind:Yt},un.sandboxBundleSrc={value:"../build/pdf.sandbox.mjs",kind:Yt},un.enableFakeMLManager={value:!0,kind:Yt},un.disablePreferences={value:!1,kind:Yt};var rn=function(){function e(){d(this,e)}return F(e,null,[{key:"get",value:function(t){return i(e,this,an)._.get(t)}},{key:"getAll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=Object.create(null);for(var r in un){var a=un[r];(!t||t&a.kind)&&(u[r]=n?a.value:i(e,this,an)._.get(r))}return u}},{key:"set",value:function(e,t){this.setAll(E({},e,t))}},{key:"setAll",value:function(t){var n,u=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(var r in this._hasInvokedSet||(this._hasInvokedSet=!0),t){var a=un[r],o=t[r];if(a&&(W(o)===W(a.value)||nn[W(o).toUpperCase()]&a.type)){var s=a.kind;(!u||s&qt||s&tn)&&(this.eventBus&&s&en&&(n||(n=new Map)).set(r,o),i(e,this,an)._.set(r,o))}}if(n){var l,c=m(n);try{for(c.s();!(l=c.n()).done;){var d=T(l.value,2),h=d[0],D=d[1];this.eventBus.dispatch(h.toLowerCase(),{source:this,value:D})}}catch(e){c.e(e)}finally{c.f()}}}}])}();G=rn,E(rn,"eventBus",void 0);var an={_:new Map};!function(){for(var e in un)i(G,G,an)._.set(e,un[e].value);var t,n=m(Ht);try{for(n.s();!(t=n.n()).done;){var u=T(t.value,2),r=u[0],a=u[1];i(G,G,an)._.set(r,a)}}catch(e){n.e(e)}finally{n.f()}G._hasInvokedSet=!1,G._checkDisablePreferences=function(){return!!G.get("disablePreferences")||(G._hasInvokedSet&&console.warn('The Preferences may override manually set AppOptions; please use the "disablePreferences"-option to prevent that.'),!1)}}(),Q(8335);var on={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4},sn=function(){return F(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.eventBus,i=t.externalLinkTarget,u=void 0===i?null:i,r=t.externalLinkRel,a=void 0===r?null:r,o=t.ignoreDestinationZoom,s=void 0!==o&&o;d(this,e),E(this,"externalLinkEnabled",!0),this.eventBus=n,this.externalLinkTarget=u,this.externalLinkRel=a,this._ignoreDestinationZoom=s,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null},[{key:"setDocument",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.baseUrl=t,this.pdfDocument=e}},{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setHistory",value:function(e){this.pdfHistory=e}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfDocument?this.pdfViewer.currentPageNumber:1},set:function(e){this.pdfDocument&&(this.pdfViewer.currentPageNumber=e)}},{key:"rotation",get:function(){return this.pdfDocument?this.pdfViewer.pagesRotation:0},set:function(e){this.pdfDocument&&(this.pdfViewer.pagesRotation=e)}},{key:"isInPresentationMode",get:function(){return!!this.pdfDocument&&this.pdfViewer.isInPresentationMode}},{key:"goToDestination",value:(t=o(k().m(function e(t){var n,i,u,r,a,o;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:if(this.pdfDocument){e.n=1;break}return e.a(2);case 1:if("string"!=typeof t){e.n=3;break}return n=t,e.n=2,this.pdfDocument.getDestination(t);case 2:i=e.v,e.n=5;break;case 3:return n=null,e.n=4,t;case 4:i=e.v;case 5:if(Array.isArray(i)){e.n=6;break}return console.error('goToDestination: "'.concat(i,'" is not a valid destination array, for dest="').concat(t,'".')),e.a(2);case 6:if(r=T(i,1),!(a=r[0])||"object"!==W(a)){e.n=11;break}if(u=this.pdfDocument.cachedPageNumber(a)){e.n=10;break}return e.p=7,e.n=8,this.pdfDocument.getPageIndex(a);case 8:o=e.v,u=o+1,e.n=10;break;case 9:return e.p=9,e.v,console.error('goToDestination: "'.concat(a,'" is not a valid page reference, for dest="').concat(t,'".')),e.a(2);case 10:e.n=12;break;case 11:Number.isInteger(a)&&(u=a+1);case 12:if(!(!u||u<1||u>this.pagesCount)){e.n=13;break}return console.error('goToDestination: "'.concat(u,'" is not a valid page number, for dest="').concat(t,'".')),e.a(2);case 13:this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:n,explicitDest:i,pageNumber:u})),this.pdfViewer.scrollPageIntoView({pageNumber:u,destArray:i,ignoreDestinationZoom:this._ignoreDestinationZoom});case 14:return e.a(2)}},e,this,[[7,9]])})),function(e){return t.apply(this,arguments)})},{key:"goToPage",value:function(e){if(this.pdfDocument){var t="string"==typeof e&&this.pdfViewer.pageLabelToPageNumber(e)||0|e;Number.isInteger(t)&&t>0&&t<=this.pagesCount?(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(t)),this.pdfViewer.scrollPageIntoView({pageNumber:t})):console.error('PDFLinkService.goToPage: "'.concat(e,'" is not a valid page.'))}}},{key:"addLinkAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t||"string"!=typeof t)throw new Error('A valid "url" parameter must provided.');var i=n?on.BLANK:this.externalLinkTarget,u=this.externalLinkRel;this.externalLinkEnabled?e.href=e.title=t:(e.href="",e.title="Disabled: ".concat(t),e.onclick=function(){return!1});var r="";switch(i){case on.NONE:break;case on.SELF:r="_self";break;case on.BLANK:r="_blank";break;case on.PARENT:r="_parent";break;case on.TOP:r="_top"}e.target=r,e.rel="string"==typeof u?u:"noopener noreferrer nofollow"}},{key:"getDestinationHash",value:function(e){if("string"==typeof e){if(e.length>0)return this.getAnchorUrl("#"+escape(e))}else if(Array.isArray(e)){var t=JSON.stringify(e);if(t.length>0)return this.getAnchorUrl("#"+escape(t))}return this.getAnchorUrl("")}},{key:"getAnchorUrl",value:function(e){return this.baseUrl?this.baseUrl+e:e}},{key:"setHash",value:function(e){if(this.pdfDocument){var t,n;if(e.includes("=")){var i=vt(e);if(i.has("search")){var u=i.get("search").replaceAll('"',""),r="true"===i.get("phrase");this.eventBus.dispatch("findfromurlhash",{source:this,query:r?u:u.match(/\S+/g)})}if(i.has("page")&&(t=0|i.get("page")||1),i.has("zoom")){var a=i.get("zoom").split(","),o=a[0],s=parseFloat(o);o.includes("Fit")?"Fit"===o||"FitB"===o?n=[null,{name:o}]:"FitH"===o||"FitBH"===o||"FitV"===o||"FitBV"===o?n=[null,{name:o},a.length>1?0|a[1]:null]:"FitR"===o?5!==a.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):n=[null,{name:o},0|a[1],0|a[2],0|a[3],0|a[4]]:console.error('PDFLinkService.setHash: "'.concat(o,'" is not a valid zoom value.')):n=[null,{name:"XYZ"},a.length>1?0|a[1]:null,a.length>2?0|a[2]:null,s?s/100:o]}return n?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:n,allowNegativeOffset:!0}):t&&(this.page=t),i.has("pagemode")&&this.eventBus.dispatch("pagemode",{source:this,mode:i.get("pagemode")}),void(i.has("nameddest")&&this.goToDestination(i.get("nameddest")))}n=unescape(e);try{n=JSON.parse(n),Array.isArray(n)||(n=n.toString())}catch(e){}"string"==typeof n||ye(n)?this.goToDestination(n):console.error('PDFLinkService.setHash: "'.concat(unescape(e),'" is not a valid destination.'))}}},{key:"executeNamedAction",value:function(e){var t,n;if(this.pdfDocument){switch(e){case"GoBack":null===(t=this.pdfHistory)||void 0===t||t.back();break;case"GoForward":null===(n=this.pdfHistory)||void 0===n||n.forward();break;case"NextPage":this.pdfViewer.nextPage();break;case"PrevPage":this.pdfViewer.previousPage();break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:e})}}},{key:"executeSetOCGState",value:(e=o(k().m(function e(t){var n,i;return k().w(function(e){for(;;)switch(e.n){case 0:if(this.pdfDocument){e.n=1;break}return e.a(2);case 1:return n=this.pdfDocument,e.n=2,this.pdfViewer.optionalContentConfigPromise;case 2:if(i=e.v,n===this.pdfDocument){e.n=3;break}return e.a(2);case 3:i.setOCGState(t),this.pdfViewer.optionalContentConfigPromise=Promise.resolve(i);case 4:return e.a(2)}},e,this)})),function(t){return e.apply(this,arguments)})}]);var e,t}(),ln=function(e){function t(){return d(this,t),l(this,t,arguments)}return w(t,e),F(t,[{key:"setDocument",value:function(e){}}])}(sn);Q(8111),Q(3579),Q(4628),Q(5781);var cn="event",dn="timeout";function hn(e){return Dn.apply(this,arguments)}function Dn(){return(Dn=o(k().m(function e(t){var n,i,u,r,a,o,s,l,c,d;return k().w(function(e){for(;;)switch(e.n){case 0:if(c=function(e){l.abort(),clearTimeout(d),s(e)},n=t.target,i=t.name,u=t.delay,r=void 0===u?0:u,"object"===W(n)&&i&&"string"==typeof i&&(Number.isInteger(r)&&r>=0)){e.n=1;break}throw new Error("waitOnEventOrTimeout - invalid parameters.");case 1:return a=Promise.withResolvers(),o=a.promise,s=a.resolve,l=new AbortController,n[n instanceof pn?"_on":"addEventListener"](i,c.bind(null,cn),{signal:l.signal}),d=setTimeout(c.bind(null,dn),r),e.a(2,o)}},e)}))).apply(this,arguments)}var fn=new WeakMap,pn=function(){return F(function e(){d(this,e),D(this,fn,Object.create(null))},[{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._on(e,t,{external:!0,once:null==n?void 0:n.once,signal:null==n?void 0:n.signal})}},{key:"off",value:function(e,t){this._off(e,t)}},{key:"dispatch",value:function(e,t){var n=h(fn,this)[e];if(n&&0!==n.length){var i,u,r=m(n.slice(0));try{for(r.s();!(u=r.n()).done;){var a=u.value,o=a.listener,s=a.external;a.once&&this._off(e,o),s?(i||(i=[])).push(o):o(t)}}catch(e){r.e(e)}finally{r.f()}if(i){var l,c=m(i);try{for(c.s();!(l=c.n()).done;){(0,l.value)(t)}}catch(e){c.e(e)}finally{c.f()}i=null}}}},{key:"_on",value:function(e,t){var n,i=this,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=null;if((null==u?void 0:u.signal)instanceof AbortSignal){var a=u.signal;if(a.aborted)return void console.error("Cannot use an `aborted` signal.");var o=function(){return i._off(e,t)};r=function(){return a.removeEventListener("abort",o)},a.addEventListener("abort",o)}((n=h(fn,this))[e]||(n[e]=[])).push({listener:t,external:!0===(null==u?void 0:u.external),once:!0===(null==u?void 0:u.once),rmAbort:r})}},{key:"_off",value:function(e,t){var n=h(fn,this)[e];if(n)for(var i=0,u=n.length;i<u;i++){var r,a=n[i];if(a.listener===t)return null===(r=a.rmAbort)||void 0===r||r.call(a),void n.splice(i,1)}}}])}(),vn=function(){return F(function e(){d(this,e)},[{key:"updateFindControlState",value:function(e){}},{key:"updateFindMatchesCount",value:function(e){}},{key:"initPassiveLoading",value:function(){}},{key:"reportTelemetry",value:function(e){}},{key:"createL10n",value:(e=o(k().m(function e(){return k().w(function(e){for(;;)switch(e.n){case 0:throw new Error("Not implemented: createL10n");case 1:return e.a(2)}},e)})),function(){return e.apply(this,arguments)})},{key:"createScripting",value:function(){throw new Error("Not implemented: createScripting")}},{key:"createSignatureStorage",value:function(){throw new Error("Not implemented: createSignatureStorage")}},{key:"updateEditorStates",value:function(e){throw new Error("Not implemented: updateEditorStates")}},{key:"dispatchGlobalEvent",value:function(e){}}]);var e}(),gn=new WeakMap,Fn=new WeakMap,mn=function(){return F(function e(){d(this,e),D(this,gn,Object.freeze({altTextLearnMoreUrl:"",annotationEditorMode:0,annotationMode:2,capCanvasAreaFactor:200,cursorToolOnLoad:0,defaultZoomDelay:400,defaultZoomValue:"",disablePageLabels:!1,enableAltText:!1,enableAltTextModelDownload:!0,enableAutoLinking:!0,enableGuessAltText:!0,enableHighlightFloatingButton:!1,enableNewAltTextWhenAddingImage:!0,enablePermissions:!1,enablePrintAutoRotate:!0,enableScripting:!0,enableSignatureEditor:!1,enableUpdatedAddImage:!1,externalLinkTarget:0,highlightEditorColors:"yellow=#FFFF98,green=#53FFBC,blue=#80EBFF,pink=#FFCBE6,red=#FF4F5F",historyUpdateUrl:!1,ignoreDestinationZoom:!1,forcePageColors:!1,pageColorsBackground:"Canvas",pageColorsForeground:"CanvasText",pdfBugEnabled:!1,sidebarViewOnLoad:-1,scrollModeOnLoad:-1,spreadModeOnLoad:-1,textLayerMode:1,viewerCssTheme:0,viewOnLoad:0,disableAutoFetch:!1,disableFontFace:!1,disableRange:!1,disableStream:!1,enableHWA:!0,enableXfa:!0})),D(this,Fn,null),f(Fn,this,this._readFromStorage(h(gn,this)).then(function(e){var t=e.browserPrefs,n=e.prefs;rn._checkDisablePreferences()||rn.setAll(B(B({},t),n),!0)}))},[{key:"_writeToStorage",value:(n=o(k().m(function e(t){return k().w(function(e){for(;;)switch(e.n){case 0:throw new Error("Not implemented: _writeToStorage");case 1:return e.a(2)}},e)})),function(e){return n.apply(this,arguments)})},{key:"_readFromStorage",value:(t=o(k().m(function e(t){return k().w(function(e){for(;;)switch(e.n){case 0:throw new Error("Not implemented: _readFromStorage");case 1:return e.a(2)}},e)})),function(e){return t.apply(this,arguments)})},{key:"reset",value:(e=o(k().m(function e(){return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,h(Fn,this);case 1:return rn.setAll(h(gn,this),!0),e.n=2,this._writeToStorage(h(gn,this));case 2:return e.a(2)}},e,this)})),function(){return e.apply(this,arguments)})},{key:"set",value:function(){var e=o(k().m(function e(t,n){return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,h(Fn,this);case 1:return rn.setAll(E({},t,n),!0),e.n=2,this._writeToStorage(rn.getAll(tn));case 2:return e.a(2)}},e,this)}));return function(t,n){return e.apply(this,arguments)}}()},{key:"get",value:function(){var e=o(k().m(function e(t){return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,h(Fn,this);case 1:return e.a(2,rn.get(t))}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"initializedPromise",get:function(){return h(Fn,this)}}]);var e,t,n}();Q(1701);var En=function(){return F(function e(t){d(this,e),this.value=t},[{key:"valueOf",value:function(){return this.value}}])}(),Cn=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"???";return d(this,t),l(this,t,[e])}return w(t,e),F(t,[{key:"toString",value:function(e){return"{".concat(this.value,"}")}}])}(En),An=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d(this,t),(n=l(this,t,[e])).opts=i,n}return w(t,e),F(t,[{key:"toString",value:function(e){if(e)try{return e.memoizeIntlObject(Intl.NumberFormat,this.opts).format(this.value)}catch(t){e.reportError(t)}return this.value.toString(10)}}])}(En),wn=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d(this,t),e instanceof t?(i=B(B({},e.opts),i),e=e.value):e instanceof En&&(e=e.valueOf()),"object"===W(e)&&"calendarId"in e&&void 0===i.calendar&&(i=B(B({},i),{},{calendar:e.calendarId})),(n=l(this,t,[e])).opts=i,n}return w(t,e),F(t,[{key:Symbol.toPrimitive,value:function(e){return"string"===e?this.toString():this.toNumber()}},{key:"toNumber",value:function(){var e=this.value;if("number"==typeof e)return e;if(e instanceof Date)return e.getTime();if("epochMilliseconds"in e)return e.epochMilliseconds;if("toZonedDateTime"in e)return e.toZonedDateTime("UTC").epochMilliseconds;throw new TypeError("Unwrapping a non-number value as a number")}},{key:"toString",value:function(e){if(e)try{return e.memoizeIntlObject(Intl.DateTimeFormat,this.opts).format(this.value)}catch(t){e.reportError(t)}return"number"==typeof this.value||this.value instanceof Date?new Date(this.value).toISOString():this.value.toString()}}],[{key:"supportsValue",value:function(e){if("number"==typeof e)return!0;if(e instanceof Date)return!0;if(e instanceof En)return t.supportsValue(e.valueOf());if("Temporal"in globalThis){var n=globalThis.Temporal;if(e instanceof n.Instant||e instanceof n.PlainDateTime||e instanceof n.PlainDate||e instanceof n.PlainMonthDay||e instanceof n.PlainTime||e instanceof n.PlainYearMonth)return!0}return!1}}])}(En);function bn(e,t,n){if(n===t)return!0;if(n instanceof An&&t instanceof An&&n.value===t.value)return!0;if(t instanceof An&&"string"==typeof n&&n===e.memoizeIntlObject(Intl.PluralRules,t.opts).select(t.value))return!0;return!1}function yn(e,t,n){return t[n]?xn(e,t[n].value):(e.reportError(new RangeError("No default")),new Cn)}function Bn(e,t){var n,i=[],u=Object.create(null),r=m(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;"narg"===a.type?u[a.name]=kn(e,a.value):i.push(kn(e,a))}}catch(e){r.e(e)}finally{r.f()}return{positional:i,named:u}}function kn(e,t){switch(t.type){case"str":return t.value;case"num":return new An(t.value,{minimumFractionDigits:t.precision});case"var":return function(e,t){var n,i=t.name;if(e.params){if(!Object.prototype.hasOwnProperty.call(e.params,i))return new Cn("$".concat(i));n=e.params[i]}else{if(!e.args||!Object.prototype.hasOwnProperty.call(e.args,i))return e.reportError(new ReferenceError("Unknown variable: $".concat(i))),new Cn("$".concat(i));n=e.args[i]}if(n instanceof En)return n;switch(W(n)){case"string":return n;case"number":return new An(n);case"object":if(wn.supportsValue(n))return new wn(n);default:return e.reportError(new TypeError("Variable type not supported: $".concat(i,", ").concat(W(n)))),new Cn("$".concat(i))}}(e,t);case"mesg":return function(e,t){var n=t.name,i=t.attr,u=e.bundle._messages.get(n);if(!u)return e.reportError(new ReferenceError("Unknown message: ".concat(n))),new Cn(n);if(i){var r=u.attributes[i];return r?xn(e,r):(e.reportError(new ReferenceError("Unknown attribute: ".concat(i))),new Cn("".concat(n,".").concat(i)))}if(u.value)return xn(e,u.value);return e.reportError(new ReferenceError("No value: ".concat(n))),new Cn(n)}(e,t);case"term":return function(e,t){var n=t.name,i=t.attr,u=t.args,r="-".concat(n),a=e.bundle._terms.get(r);if(!a)return e.reportError(new ReferenceError("Unknown term: ".concat(r))),new Cn(r);if(i){var o=a.attributes[i];if(o){e.params=Bn(e,u).named;var s=xn(e,o);return e.params=null,s}return e.reportError(new ReferenceError("Unknown attribute: ".concat(i))),new Cn("".concat(r,".").concat(i))}e.params=Bn(e,u).named;var l=xn(e,a.value);return e.params=null,l}(e,t);case"func":return function(e,t){var n=t.name,i=t.args,u=e.bundle._functions[n];if(!u)return e.reportError(new ReferenceError("Unknown function: ".concat(n,"()"))),new Cn("".concat(n,"()"));if("function"!=typeof u)return e.reportError(new TypeError("Function ".concat(n,"() is not callable"))),new Cn("".concat(n,"()"));try{var r=Bn(e,i);return u(r.positional,r.named)}catch(t){return e.reportError(t),new Cn("".concat(n,"()"))}}(e,t);case"select":return function(e,t){var n=t.selector,i=t.variants,u=t.star,r=kn(e,n);if(r instanceof Cn)return yn(e,i,u);var a,o=m(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(bn(e,r,kn(e,s.key)))return xn(e,s.value)}}catch(e){o.e(e)}finally{o.f()}return yn(e,i,u)}(e,t);default:return new Cn}}function _n(e,t){if(e.dirty.has(t))return e.reportError(new RangeError("Cyclic reference")),new Cn;e.dirty.add(t);var n,i=[],u=e.bundle._useIsolating&&t.length>1,r=m(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;if("string"!=typeof a){if(e.placeables++,e.placeables>100)throw e.dirty.delete(t),new RangeError("Too many placeables expanded: ".concat(e.placeables,", ")+"max allowed is ".concat(100));u&&i.push(""),i.push(kn(e,a).toString(e)),u&&i.push("")}else i.push(e.bundle._transform(a))}}catch(e){r.e(e)}finally{r.f()}return e.dirty.delete(t),i.join("")}function xn(e,t){return"string"==typeof t?e.bundle._transform(t):_n(e,t)}var Sn=function(){return F(function e(t,n,i){d(this,e),this.dirty=new WeakSet,this.params=null,this.placeables=0,this.bundle=t,this.errors=n,this.args=i},[{key:"reportError",value:function(e){if(!(this.errors&&e instanceof Error))throw e;this.errors.push(e)}},{key:"memoizeIntlObject",value:function(e,t){var n=this.bundle._intls.get(e);n||(n={},this.bundle._intls.set(e,n));var i=JSON.stringify(t);return n[i]||(n[i]=new e(this.bundle.locales,t)),n[i]}}])}();function Pn(e,t){for(var n=Object.create(null),i=0,u=Object.entries(e);i<u.length;i++){var r=T(u[i],2),a=r[0],o=r[1];t.includes(a)&&(n[a]=o.valueOf())}return n}var In=["unitDisplay","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function Tn(e,t){var n=e[0];if(n instanceof Cn)return new Cn("NUMBER(".concat(n.valueOf(),")"));if(n instanceof An)return new An(n.valueOf(),B(B({},n.opts),Pn(t,In)));if(n instanceof wn)return new An(n.toNumber(),B({},Pn(t,In)));throw new TypeError("Invalid argument to NUMBER")}var Mn=["dateStyle","timeStyle","fractionalSecondDigits","dayPeriod","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Ln(e,t){var n=e[0];if(n instanceof Cn)return new Cn("DATETIME(".concat(n.valueOf(),")"));if(n instanceof wn||n instanceof An)return new wn(n,Pn(t,Mn));throw new TypeError("Invalid argument to DATETIME")}var Nn=new Map;var On=function(){return F(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.functions,u=n.useIsolating,r=void 0===u||u,a=n.transform,o=void 0===a?function(e){return e}:a;d(this,e),this._terms=new Map,this._messages=new Map,this.locales=Array.isArray(t)?t:[t],this._functions=B({NUMBER:Tn,DATETIME:Ln},i),this._useIsolating=r,this._transform=o,this._intls=function(e){var t=Array.isArray(e)?e.join(" "):e,n=Nn.get(t);return void 0===n&&(n=new Map,Nn.set(t,n)),n}(t)},[{key:"hasMessage",value:function(e){return this._messages.has(e)}},{key:"getMessage",value:function(e){return this._messages.get(e)}},{key:"addResource",value:function(e){for(var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).allowOverrides,n=void 0!==t&&t,i=[],u=0;u<e.body.length;u++){var r=e.body[u];if(r.id.startsWith("-")){if(!1===n&&this._terms.has(r.id)){i.push(new Error('Attempt to override an existing term: "'.concat(r.id,'"')));continue}this._terms.set(r.id,r)}else{if(!1===n&&this._messages.has(r.id)){i.push(new Error('Attempt to override an existing message: "'.concat(r.id,'"')));continue}this._messages.set(r.id,r)}}return i}},{key:"formatPattern",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("string"==typeof e)return this._transform(e);var i=new Sn(this,n,t);try{return _n(i,e).toString(i)}catch(e){if(i.errors&&e instanceof Error)return i.errors.push(e),(new Cn).toString(i);throw e}}}])}(),jn=/^(-?[a-zA-Z][\w-]*) *= */gm,Rn=new RegExp("\\.([a-zA-Z][\\w-]*) *= *","y"),Wn=new RegExp("\\*?\\[","y"),Vn=new RegExp("(-?[0-9]+(?:\\.([0-9]+))?)","y"),zn=new RegExp("([a-zA-Z][\\w-]*)","y"),Un=new RegExp("([$-])?([a-zA-Z][\\w-]*)(?:\\.([a-zA-Z][\\w-]*))?","y"),Hn=/^[A-Z][A-Z0-9_-]*$/,Gn=new RegExp("([^{}\\n\\r]+)","y"),Zn=new RegExp('([^\\\\"\\n\\r]*)',"y"),Xn=new RegExp('\\\\([\\\\"])',"y"),$n=new RegExp("\\\\u([a-fA-F0-9]{4})|\\\\U([a-fA-F0-9]{6})","y"),Kn=/^\n+/,qn=/ +$/,Yn=/ *\r?\n/g,Jn=/( *)$/,Qn=new RegExp("{\\s*","y"),ei=new RegExp("\\s*}","y"),ti=new RegExp("\\[\\s*","y"),ni=new RegExp("\\s*] *","y"),ii=new RegExp("\\s*\\(\\s*","y"),ui=new RegExp("\\s*->\\s*","y"),ri=new RegExp("\\s*:\\s*","y"),ai=new RegExp("\\s*,?\\s*","y"),oi=new RegExp("\\s+","y"),si=F(function e(t){d(this,e),this.body=[],jn.lastIndex=0;for(var n=0;;){var i=jn.exec(t);if(null===i)break;n=jn.lastIndex;try{this.body.push(l(i[1]))}catch(e){if(e instanceof SyntaxError)continue;throw e}}function u(e){return e.lastIndex=n,e.test(t)}function r(e,i){if(t[n]===e)return n++,!0;if(i)throw new i("Expected ".concat(e));return!1}function a(e,t){if(u(e))return n=e.lastIndex,!0;if(t)throw new t("Expected ".concat(e.toString()));return!1}function o(e){e.lastIndex=n;var i=e.exec(t);if(null===i)throw new SyntaxError("Expected ".concat(e.toString()));return n=e.lastIndex,i}function s(e){return o(e)[1]}function l(e){var t=c(),n=function(){var e=Object.create(null);for(;u(Rn);){var t=s(Rn),n=c();if(null===n)throw new SyntaxError("Expected attribute value");e[t]=n}return e}();if(null===t&&0===Object.keys(n).length)throw new SyntaxError("Expected message value or attributes");return{id:e,value:t,attributes:n}}function c(){var e;if(u(Gn)&&(e=s(Gn)),"{"===t[n]||"}"===t[n])return h(e?[e]:[],1/0);var i=C();return i?e?h([e,i],i.length):(i.value=A(i.value,Kn),h([i],i.length)):e?A(e,qn):null}function h(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0;;)if(u(Gn))e.push(s(Gn));else if("{"!==t[n]){if("}"===t[n])throw new SyntaxError("Unbalanced closing brace");var r=C();if(!r)break;e.push(r),i=Math.min(i,r.length)}else e.push(D());var a=e.length-1,o=e[a];"string"==typeof o&&(e[a]=A(o,qn));var l,c=[],d=m(e);try{for(d.s();!(l=d.n()).done;){var h=l.value;h instanceof li&&(h=h.value.slice(0,h.value.length-i)),h&&c.push(h)}}catch(e){d.e(e)}finally{d.f()}return c}function D(){a(Qn,SyntaxError);var e=f();if(a(ei))return e;if(a(ui)){var t=function(){var e,t=[],n=0;for(;u(Wn);){r("*")&&(e=n);var i=v(),a=c();if(null===a)throw new SyntaxError("Expected variant value");t[n++]={key:i,value:a}}if(0===n)return null;if(void 0===e)throw new SyntaxError("Expected default variant");return{variants:t,star:e}}();return a(ei,SyntaxError),B({type:"select",selector:e},t)}throw new SyntaxError("Unclosed placeable")}function f(){if("{"===t[n])return D();if(u(Un)){var e=T(o(Un),4),i=e[1],r=e[2],s=e[3],l=void 0===s?null:s;if("$"===i)return{type:"var",name:r};if(a(ii)){var c=function(){var e=[];for(;;){switch(t[n]){case")":return n++,e;case void 0:throw new SyntaxError("Unclosed argument list")}e.push(p()),a(ai)}}();if("-"===i)return{type:"term",name:r,attr:l,args:c};if(Hn.test(r))return{type:"func",name:r,args:c};throw new SyntaxError("Function names must be all upper-case")}return"-"===i?{type:"term",name:r,attr:l,args:[]}:{type:"mesg",name:r,attr:l}}return g()}function p(){var e=f();return"mesg"!==e.type?e:a(ri)?{type:"narg",name:e.name,value:g()}:e}function v(){var e;return a(ti,SyntaxError),e=u(Vn)?F():{type:"str",value:s(zn)},a(ni,SyntaxError),e}function g(){if(u(Vn))return F();if('"'===t[n])return function(){r('"',SyntaxError);var e="";for(;;){if(e+=s(Zn),"\\"!==t[n]){if(r('"'))return{type:"str",value:e};throw new SyntaxError("Unclosed string literal")}e+=E()}}();throw new SyntaxError("Invalid expression")}function F(){var e=T(o(Vn),3),t=e[1],n=e[2],i=(void 0===n?"":n).length;return{type:"num",value:parseFloat(t),precision:i}}function E(){if(u(Xn))return s(Xn);if(u($n)){var e=T(o($n),3),t=e[1],n=e[2],i=parseInt(t||n,16);return i<=55295||57344<=i?String.fromCodePoint(i):"�"}throw new SyntaxError("Unknown escape sequence")}function C(){var e=n;switch(a(oi),t[n]){case".":case"[":case"*":case"}":case void 0:return!1;case"{":return w(t.slice(e,n))}return" "===t[n-1]&&w(t.slice(e,n))}function A(e,t){return e.replace(t,"")}function w(e){var t=e.replace(Yn,"\n"),n=Jn.exec(e)[1].length;return new li(t,n)}}),li=F(function e(t,n){d(this,e),this.value=t,this.length=n}),ci=/<|&#?\w+;/,di={"http://www.w3.org/1999/xhtml":["em","strong","small","s","cite","q","dfn","abbr","data","time","code","var","samp","kbd","sub","sup","i","b","u","mark","bdi","bdo","span","br","wbr"]},hi={"http://www.w3.org/1999/xhtml":{global:["title","aria-description","aria-label","aria-valuetext"],a:["download"],area:["download","alt"],input:["alt","placeholder"],menuitem:["label"],menu:["label"],optgroup:["label"],option:["label"],track:["label"],img:["alt"],textarea:["placeholder"],th:["abbr"]},"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul":{global:["accesskey","aria-label","aria-valuetext","label","title","tooltiptext"],description:["value"],key:["key","keycode"],label:["value"],textbox:["placeholder","value"]}};function Di(e,t){var n=t.value;if("string"==typeof n)if("title"===e.localName&&"http://www.w3.org/1999/xhtml"===e.namespaceURI)e.textContent=n;else if(ci.test(n)){var i=e.ownerDocument.createElementNS("http://www.w3.org/1999/xhtml","template");i.innerHTML=n,function(e,t){var n,i=m(e.childNodes);try{for(i.s();!(n=i.n()).done;){var u=n.value;if(u.nodeType!==u.TEXT_NODE)if(u.hasAttribute("data-l10n-name")){var r=vi(t,u);e.replaceChild(r,u)}else if(mi(u)){var a=gi(u);e.replaceChild(a,u)}else console.warn('An element of forbidden type "'.concat(u.localName,'" was found in ')+"the translation. Only safe text-level elements and elements with data-l10n-name are allowed."),e.replaceChild(Fi(u),u)}}catch(e){i.e(e)}finally{i.f()}t.textContent="",t.appendChild(e)}(i.content,e)}else e.textContent=n;pi(t,e)}function fi(e,t){if(!e)return!1;var n,i=m(e);try{for(i.s();!(n=i.n()).done;){if(n.value.name===t)return!0}}catch(e){i.e(e)}finally{i.f()}return!1}function pi(e,t){for(var n=t.hasAttribute("data-l10n-attrs")?t.getAttribute("data-l10n-attrs").split(",").map(function(e){return e.trim()}):null,i=0,u=Array.from(t.attributes);i<u.length;i++){var r=u[i];Ei(r.name,t,n)&&!fi(e.attributes,r.name)&&t.removeAttribute(r.name)}if(e.attributes)for(var a=0,o=Array.from(e.attributes);a<o.length;a++){var s=o[a];Ei(s.name,t,n)&&t.getAttribute(s.name)!==s.value&&t.setAttribute(s.name,s.value)}}function vi(e,t){var n=t.getAttribute("data-l10n-name"),i=e.querySelector('[data-l10n-name="'.concat(n,'"]'));return i?i.localName!==t.localName?(console.warn('An element named "'.concat(n,'" was found in the translation ')+"but its type ".concat(t.localName," didn't match the ")+"element found in the source (".concat(i.localName,").")),Fi(t)):(e.removeChild(i),Ci(t,i.cloneNode(!1))):(console.warn('An element named "'.concat(n,"\" wasn't found in the source.")),Fi(t))}function gi(e){var t=e.ownerDocument.createElement(e.localName);return Ci(e,t)}function Fi(e){return e.ownerDocument.createTextNode(e.textContent)}function mi(e){var t=di[e.namespaceURI];return t&&t.includes(e.localName)}function Ei(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(n&&n.includes(e))return!0;var i=hi[t.namespaceURI];if(!i)return!1;var u=e.toLowerCase(),r=t.localName;if(i.global.includes(u))return!0;if(!i[r])return!1;if(i[r].includes(u))return!0;if("http://www.w3.org/1999/xhtml"===t.namespaceURI&&"input"===r&&"value"===u){var a=t.type.toLowerCase();if("submit"===a||"button"===a||"reset"===a)return!0}return!1}function Ci(e,t){return t.textContent=e.textContent,pi(e,t),t}Q(2489),Q(7588);var Ai=function(e){function t(){return d(this,t),l(this,t,arguments)}return w(t,e),F(t,null,[{key:"from",value:function(e){return e instanceof this?e:new this(e)}}])}(H(Array)),wi=function(e){function t(e){var n;if(d(this,t),n=l(this,t),Symbol.asyncIterator in Object(e))n.iterator=e[Symbol.asyncIterator]();else{if(!(Symbol.iterator in Object(e)))throw new TypeError("Argument must implement the iteration protocol.");n.iterator=e[Symbol.iterator]()}return n}return w(t,e),F(t,[{key:Symbol.asyncIterator,value:function(){var e=this,t=0;return{next:function(){return o(k().m(function n(){return k().w(function(n){for(;;)if(0===n.n)return e.length<=t&&e.push(e.iterator.next()),n.a(2,e[t++])},n)}))()}}}},{key:"touchNext",value:(n=o(k().m(function e(){var t,n,i,u,r=arguments;return k().w(function(e){for(;;)switch(e.n){case 0:t=r.length>0&&void 0!==r[0]?r[0]:1,n=0;case 1:if(!(n++<t)){e.n=5;break}if(i=this[this.length-1],!(u=i)){e.n=3;break}return e.n=2,i;case 2:u=e.v.done;case 3:if(!u){e.n=4;break}return e.a(3,5);case 4:this.push(this.iterator.next()),e.n=1;break;case 5:return e.a(2,this[this.length-1])}},e,this)})),function(){return n.apply(this,arguments)})}]);var n}(Ai),bi=function(){return F(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;d(this,e),this.resourceIds=t,this.generateBundles=n,this.onChange(!0)},[{key:"addResourceIds",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(t=this.resourceIds).push.apply(t,O(e)),this.onChange(n),this.resourceIds.length}},{key:"removeResourceIds",value:function(e){return this.resourceIds=this.resourceIds.filter(function(t){return!e.includes(t)}),this.onChange(),this.resourceIds.length}},{key:"formatWithFallback",value:(t=o(k().m(function e(t,n){var i,r,a,o,s,l,c,d,h,D,f,p;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:i=[],r=!1,a=!1,o=!1,e.p=1,l=u(this.bundles);case 2:return e.n=3,l.next();case 3:if(!(a=!(c=e.v).done)){e.n=6;break}if(d=c.value,r=!0,0!==(h=ki(n,d,t,i)).size){e.n=4;break}return e.a(3,6);case 4:"undefined"!=typeof console&&(D=d.locales[0],f=Array.from(h).join(", "),console.warn("[fluent] Missing translations in ".concat(D,": ").concat(f)));case 5:a=!1,e.n=2;break;case 6:e.n=8;break;case 7:e.p=7,p=e.v,o=!0,s=p;case 8:if(e.p=8,e.p=9,!a||null==l.return){e.n=10;break}return e.n=10,l.return();case 10:if(e.p=10,!o){e.n=11;break}throw s;case 11:return e.f(10);case 12:return e.f(8);case 13:return r||"undefined"==typeof console||console.warn("[fluent] Request for keys failed because no resource bundles got generated.\n keys: ".concat(JSON.stringify(t),".\n resourceIds: ").concat(JSON.stringify(this.resourceIds),".")),e.a(2,i)}},e,this,[[9,,10,12],[1,7,8,13]])})),function(e,n){return t.apply(this,arguments)})},{key:"formatMessages",value:function(e){return this.formatWithFallback(e,Bi)}},{key:"formatValues",value:function(e){return this.formatWithFallback(e,yi)}},{key:"formatValue",value:(e=o(k().m(function e(t,n){var i,u,r;return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.formatValues([{id:t,args:n}]);case 1:return i=e.v,u=T(i,1),r=u[0],e.a(2,r)}},e,this)})),function(t,n){return e.apply(this,arguments)})},{key:"handleEvent",value:function(){this.onChange()}},{key:"onChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.bundles=wi.from(this.generateBundles(this.resourceIds)),e&&this.bundles.touchNext(2)}}]);var e,t}();function yi(e,t,n,i){return n.value?e.formatPattern(n.value,i,t):null}function Bi(e,t,n,i){var u={value:null,attributes:null};n.value&&(u.value=e.formatPattern(n.value,i,t));var r=Object.keys(n.attributes);if(r.length>0){u.attributes=new Array(r.length);var a,o=m(r.entries());try{for(o.s();!(a=o.n()).done;){var s=T(a.value,2),l=s[0],c=s[1],d=e.formatPattern(n.attributes[c],i,t);u.attributes[l]={name:c,value:d}}}catch(e){o.e(e)}finally{o.f()}}return u}function ki(e,t,n,i){var u=[],r=new Set;return n.forEach(function(n,a){var o=n.id,s=n.args;if(void 0===i[a]){var l=t.getMessage(o);if(l){if(u.length=0,i[a]=e(t,u,l,s),u.length>0&&"undefined"!=typeof console){var c=t.locales[0],d=u.join(", ");console.warn("[fluent][resolver] errors in ".concat(c,"/").concat(o,": ").concat(d,"."))}}else r.add(o)}}),r}var _i="data-l10n-id",xi="data-l10n-args",Si="[".concat(_i,"]"),Pi=function(e){function t(e,n){var i;return d(this,t),(i=l(this,t,[e,n])).roots=new Set,i.pendingrAF=null,i.pendingElements=new Set,i.windowElement=null,i.mutationObserver=null,i.observerConfig={attributes:!0,characterData:!1,childList:!0,subtree:!0,attributeFilter:[_i,xi]},i}return w(t,e),F(t,[{key:"onChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];L(t,"onChange",this,3)([e]),this.roots&&this.translateRoots()}},{key:"setAttributes",value:function(e,t,n){return e.setAttribute(_i,t),n?e.setAttribute(xi,JSON.stringify(n)):e.removeAttribute(xi),e}},{key:"getAttributes",value:function(e){return{id:e.getAttribute(_i),args:JSON.parse(e.getAttribute(xi)||null)}}},{key:"connectRoot",value:function(e){var t,n=this,i=m(this.roots);try{for(i.s();!(t=i.n()).done;){var u=t.value;if(u===e||u.contains(e)||e.contains(u))throw new Error("Cannot add a root that overlaps with existing root.")}}catch(e){i.e(e)}finally{i.f()}if(this.windowElement){if(this.windowElement!==e.ownerDocument.defaultView)throw new Error("Cannot connect a root:\n DOMLocalization already has a root from a different window.")}else this.windowElement=e.ownerDocument.defaultView,this.mutationObserver=new this.windowElement.MutationObserver(function(e){return n.translateMutations(e)});this.roots.add(e),this.mutationObserver.observe(e,this.observerConfig)}},{key:"disconnectRoot",value:function(e){return this.roots.delete(e),this.pauseObserving(),0===this.roots.size?(this.mutationObserver=null,this.windowElement&&this.pendingrAF&&this.windowElement.cancelAnimationFrame(this.pendingrAF),this.windowElement=null,this.pendingrAF=null,this.pendingElements.clear(),!0):(this.resumeObserving(),!1)}},{key:"translateRoots",value:function(){var e=this,t=Array.from(this.roots);return Promise.all(t.map(function(t){return e.translateFragment(t)}))}},{key:"pauseObserving",value:function(){this.mutationObserver&&(this.translateMutations(this.mutationObserver.takeRecords()),this.mutationObserver.disconnect())}},{key:"resumeObserving",value:function(){if(this.mutationObserver){var e,t=m(this.roots);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.mutationObserver.observe(n,this.observerConfig)}}catch(e){t.e(e)}finally{t.f()}}}},{key:"translateMutations",value:function(e){var t,n=this,i=m(e);try{for(i.s();!(t=i.n()).done;){var u=t.value;switch(u.type){case"attributes":u.target.hasAttribute("data-l10n-id")&&this.pendingElements.add(u.target);break;case"childList":var r,a=m(u.addedNodes);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o.nodeType===o.ELEMENT_NODE)if(o.childElementCount){var s,l=m(this.getTranslatables(o));try{for(l.s();!(s=l.n()).done;){var c=s.value;this.pendingElements.add(c)}}catch(e){l.e(e)}finally{l.f()}}else o.hasAttribute(_i)&&this.pendingElements.add(o)}}catch(e){a.e(e)}finally{a.f()}}}}catch(e){i.e(e)}finally{i.f()}this.pendingElements.size>0&&null===this.pendingrAF&&(this.pendingrAF=this.windowElement.requestAnimationFrame(function(){n.translateElements(Array.from(n.pendingElements)),n.pendingElements.clear(),n.pendingrAF=null}))}},{key:"translateFragment",value:function(e){return this.translateElements(this.getTranslatables(e))}},{key:"translateElements",value:(n=o(k().m(function e(t){var n,i;return k().w(function(e){for(;;)switch(e.n){case 0:if(t.length){e.n=1;break}return e.a(2,void 0);case 1:return n=t.map(this.getKeysForElement),e.n=2,this.formatMessages(n);case 2:return i=e.v,e.a(2,this.applyTranslations(t,i))}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"applyTranslations",value:function(e,t){this.pauseObserving();for(var n=0;n<e.length;n++)void 0!==t[n]&&Di(e[n],t[n]);this.resumeObserving()}},{key:"getTranslatables",value:function(e){var t=Array.from(e.querySelectorAll(Si));return"function"==typeof e.hasAttribute&&e.hasAttribute(_i)&&t.push(e),t}},{key:"getKeysForElement",value:function(e){return{id:e.getAttribute(_i),args:JSON.parse(e.getAttribute(xi)||null)}}}]);var n}(bi),Ii=new WeakMap,Ti=new WeakMap,Mi=new WeakMap,Li=new WeakMap,Ni=function(){return F(function e(t){var n=t.lang,i=t.isRTL,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;d(this,e),D(this,Ii,void 0),D(this,Ti,void 0),D(this,Mi,void 0),D(this,Li,void 0),f(Mi,this,Oi.call(e,n)),f(Li,this,u),f(Ii,this,(null!=i?i:ji.call(e,h(Mi,this)))?"rtl":"ltr")},[{key:"_setL10n",value:function(e){f(Li,this,e)}},{key:"getLanguage",value:function(){return h(Mi,this)}},{key:"getDirection",value:function(){return h(Ii,this)}},{key:"get",value:(i=o(k().m(function e(t){var n,i,u,r,a,o=arguments;return k().w(function(e){for(;;)switch(e.n){case 0:if(i=o.length>1&&void 0!==o[1]?o[1]:null,u=o.length>2?o[2]:void 0,!Array.isArray(t)){e.n=2;break}return t=t.map(function(e){return{id:e}}),e.n=1,h(Li,this).formatMessages(t);case 1:return r=e.v,e.a(2,r.map(function(e){return e.value}));case 2:return e.n=3,h(Li,this).formatMessages([{id:t,args:i}]);case 3:return a=e.v,e.a(2,(null===(n=a[0])||void 0===n?void 0:n.value)||u)}},e,this)})),function(e){return i.apply(this,arguments)})},{key:"translate",value:(n=o(k().m(function e(t){return k().w(function(e){for(;;)switch(e.p=e.n){case 0:return(h(Ti,this)||f(Ti,this,new Set)).add(t),e.p=1,h(Li,this).connectRoot(t),e.n=2,h(Li,this).translateRoots();case 2:e.n=4;break;case 3:e.p=3,e.v;case 4:return e.a(2)}},e,this,[[1,3]])})),function(e){return n.apply(this,arguments)})},{key:"translateOnce",value:(t=o(k().m(function e(t){var n;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,h(Li,this).translateElements([t]);case 1:e.n=3;break;case 2:e.p=2,n=e.v,console.error("translateOnce:",n);case 3:return e.a(2)}},e,this,[[0,2]])})),function(e){return t.apply(this,arguments)})},{key:"destroy",value:(e=o(k().m(function e(){var t,n,i;return k().w(function(e){for(;;)switch(e.n){case 0:if(h(Ti,this)){t=m(h(Ti,this));try{for(t.s();!(n=t.n()).done;)i=n.value,h(Li,this).disconnectRoot(i)}catch(e){t.e(e)}finally{t.f()}h(Ti,this).clear(),f(Ti,this,null)}h(Li,this).pauseObserving();case 1:return e.a(2)}},e,this)})),function(){return e.apply(this,arguments)})},{key:"pause",value:function(){h(Li,this).pauseObserving()}},{key:"resume",value:function(){h(Li,this).resumeObserving()}}]);var e,t,n,i}();function Oi(e){var t;return{en:"en-us",es:"es-es",fy:"fy-nl",ga:"ga-ie",gu:"gu-in",hi:"hi-in",hy:"hy-am",nb:"nb-no",ne:"ne-np",nn:"nn-no",pa:"pa-in",pt:"pt-pt",sv:"sv-se",zh:"zh-cn"}[e=(null===(t=e)||void 0===t?void 0:t.toLowerCase())||"en-us"]||e}function ji(e){var t=e.split("-",1)[0];return["ar","he","fa","ps","ur"].includes(t)}function Ri(){var e=fe.platform,t=e.isAndroid,n=e.isLinux,i=e.isMac,u=e.isWindows;return n?"linux":u?"windows":i?"macos":t?"android":"other"}function Wi(e,t){var n=new si(t),i=new On(e,{functions:{PLATFORM:Ri}}),u=i.addResource(n);return u.length&&console.error("L10n errors",u),i}var Vi=function(e){function t(e){var n;d(this,t),n=l(this,t,[{lang:e}]);var i=e?zi.bind(t,"en-us",n.getLanguage()):Xi.bind(t,n.getLanguage());return n._setL10n(new Pi([],i)),n}return w(t,e),F(t)}(Ni);function zi(e,t){var n=this;return z(k().m(function u(){var r,a,o,l,c,d,h,D,f,p,v,g,F;return k().w(function(u){for(;;)switch(u.p=u.n){case 0:return u.n=1,s(i(Z,n,Gi).call(n));case 1:r=u.v,a=r.baseURL,o=r.paths,l=[t],e!==t&&((c=t.split("-",1)[0])!==t&&l.push(c),l.push(e)),d=l.map(function(e){return[e,i(Z,n,Ui).call(n,e,a,o)]}),h=m(d),u.p=2,h.s();case 3:if((D=h.n()).done){u.n=8;break}return f=T(D.value,2),p=f[0],v=f[1],u.n=4,s(v);case 4:if(!(g=u.v)){u.n=6;break}return u.n=5,g;case 5:u.n=7;break;case 6:if("en-us"!==p){u.n=7;break}return u.n=7,i(Z,n,$i).call(n,p);case 7:u.n=3;break;case 8:u.n=10;break;case 9:u.p=9,F=u.v,h.e(F);case 10:return u.p=10,h.f(),u.f(10);case 11:return u.a(2)}},u,null,[[2,9,10,11]])}))()}function Ui(e,t,n){return Hi.apply(this,arguments)}function Hi(){return(Hi=o(k().m(function e(t,n,i){var u,r,a;return k().w(function(e){for(;;)switch(e.n){case 0:if(u=i[t]){e.n=1;break}return e.a(2,null);case 1:return r=new URL(u,n),e.n=2,pe(r,"text");case 2:return a=e.v,e.a(2,Wi(t,a))}},e)}))).apply(this,arguments)}function Gi(){return Zi.apply(this,arguments)}function Zi(){return(Zi=o(k().m(function e(){var t,n,i;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,t=document.querySelector('link[type="application/l10n"]'),n=t.href,e.n=1,pe(n,"json");case 1:return i=e.v,e.a(2,{baseURL:n.substring(0,n.lastIndexOf("/")+1)||"./",paths:i});case 2:return e.p=2,e.v,e.a(2,{baseURL:"./",paths:Object.create(null)})}},e,null,[[0,2]])}))).apply(this,arguments)}function Xi(e){var t=this;return z(k().m(function n(){return k().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,i(Z,t,$i).call(t,e);case 1:return n.a(2)}},n)}))()}function $i(e){return Ki.apply(this,arguments)}function Ki(){return(Ki=o(k().m(function e(t){return k().w(function(e){for(;;)if(0===e.n)return e.a(2,Wi(t,'pdfjs-previous-button =\n .title = Previous Page\npdfjs-previous-button-label = Previous\npdfjs-next-button =\n .title = Next Page\npdfjs-next-button-label = Next\npdfjs-page-input =\n .title = Page\npdfjs-of-pages = of { $pagesCount }\npdfjs-page-of-pages = ({ $pageNumber } of { $pagesCount })\npdfjs-zoom-out-button =\n .title = Zoom Out\npdfjs-zoom-out-button-label = Zoom Out\npdfjs-zoom-in-button =\n .title = Zoom In\npdfjs-zoom-in-button-label = Zoom In\npdfjs-zoom-select =\n .title = Zoom\npdfjs-presentation-mode-button =\n .title = Switch to Presentation Mode\npdfjs-presentation-mode-button-label = Presentation Mode\npdfjs-open-file-button =\n .title = Open File\npdfjs-open-file-button-label = Open\npdfjs-print-button =\n .title = Print\npdfjs-print-button-label = Print\npdfjs-save-button =\n .title = Save\npdfjs-save-button-label = Save\npdfjs-download-button =\n .title = Download\npdfjs-download-button-label = Download\npdfjs-bookmark-button =\n .title = Current Page (View URL from Current Page)\npdfjs-bookmark-button-label = Current Page\npdfjs-tools-button =\n .title = Tools\npdfjs-tools-button-label = Tools\npdfjs-first-page-button =\n .title = Go to First Page\npdfjs-first-page-button-label = Go to First Page\npdfjs-last-page-button =\n .title = Go to Last Page\npdfjs-last-page-button-label = Go to Last Page\npdfjs-page-rotate-cw-button =\n .title = Rotate Clockwise\npdfjs-page-rotate-cw-button-label = Rotate Clockwise\npdfjs-page-rotate-ccw-button =\n .title = Rotate Counterclockwise\npdfjs-page-rotate-ccw-button-label = Rotate Counterclockwise\npdfjs-cursor-text-select-tool-button =\n .title = Enable Text Selection Tool\npdfjs-cursor-text-select-tool-button-label = Text Selection Tool\npdfjs-cursor-hand-tool-button =\n .title = Enable Hand Tool\npdfjs-cursor-hand-tool-button-label = Hand Tool\npdfjs-scroll-page-button =\n .title = Use Page Scrolling\npdfjs-scroll-page-button-label = Page Scrolling\npdfjs-scroll-vertical-button =\n .title = Use Vertical Scrolling\npdfjs-scroll-vertical-button-label = Vertical Scrolling\npdfjs-scroll-horizontal-button =\n .title = Use Horizontal Scrolling\npdfjs-scroll-horizontal-button-label = Horizontal Scrolling\npdfjs-scroll-wrapped-button =\n .title = Use Wrapped Scrolling\npdfjs-scroll-wrapped-button-label = Wrapped Scrolling\npdfjs-spread-none-button =\n .title = Do not join page spreads\npdfjs-spread-none-button-label = No Spreads\npdfjs-spread-odd-button =\n .title = Join page spreads starting with odd-numbered pages\npdfjs-spread-odd-button-label = Odd Spreads\npdfjs-spread-even-button =\n .title = Join page spreads starting with even-numbered pages\npdfjs-spread-even-button-label = Even Spreads\npdfjs-document-properties-button =\n .title = Document Properties…\npdfjs-document-properties-button-label = Document Properties…\npdfjs-document-properties-file-name = File name:\npdfjs-document-properties-file-size = File size:\npdfjs-document-properties-size-kb = { NUMBER($kb, maximumSignificantDigits: 3) } KB ({ $b } bytes)\npdfjs-document-properties-size-mb = { NUMBER($mb, maximumSignificantDigits: 3) } MB ({ $b } bytes)\npdfjs-document-properties-title = Title:\npdfjs-document-properties-author = Author:\npdfjs-document-properties-subject = Subject:\npdfjs-document-properties-keywords = Keywords:\npdfjs-document-properties-creation-date = Creation Date:\npdfjs-document-properties-modification-date = Modification Date:\npdfjs-document-properties-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") }\npdfjs-document-properties-creator = Creator:\npdfjs-document-properties-producer = PDF Producer:\npdfjs-document-properties-version = PDF Version:\npdfjs-document-properties-page-count = Page Count:\npdfjs-document-properties-page-size = Page Size:\npdfjs-document-properties-page-size-unit-inches = in\npdfjs-document-properties-page-size-unit-millimeters = mm\npdfjs-document-properties-page-size-orientation-portrait = portrait\npdfjs-document-properties-page-size-orientation-landscape = landscape\npdfjs-document-properties-page-size-name-a-three = A3\npdfjs-document-properties-page-size-name-a-four = A4\npdfjs-document-properties-page-size-name-letter = Letter\npdfjs-document-properties-page-size-name-legal = Legal\npdfjs-document-properties-page-size-dimension-string = { $width } × { $height } { $unit } ({ $orientation })\npdfjs-document-properties-page-size-dimension-name-string = { $width } × { $height } { $unit } ({ $name }, { $orientation })\npdfjs-document-properties-linearized = Fast Web View:\npdfjs-document-properties-linearized-yes = Yes\npdfjs-document-properties-linearized-no = No\npdfjs-document-properties-close-button = Close\npdfjs-print-progress-message = Preparing document for printing…\npdfjs-print-progress-percent = { $progress }%\npdfjs-print-progress-close-button = Cancel\npdfjs-printing-not-supported = Warning: Printing is not fully supported by this browser.\npdfjs-printing-not-ready = Warning: The PDF is not fully loaded for printing.\npdfjs-toggle-sidebar-button =\n .title = Toggle Sidebar\npdfjs-toggle-sidebar-notification-button =\n .title = Toggle Sidebar (document contains outline/attachments/layers)\npdfjs-toggle-sidebar-button-label = Toggle Sidebar\npdfjs-document-outline-button =\n .title = Show Document Outline (double-click to expand/collapse all items)\npdfjs-document-outline-button-label = Document Outline\npdfjs-attachments-button =\n .title = Show Attachments\npdfjs-attachments-button-label = Attachments\npdfjs-layers-button =\n .title = Show Layers (double-click to reset all layers to the default state)\npdfjs-layers-button-label = Layers\npdfjs-thumbs-button =\n .title = Show Thumbnails\npdfjs-thumbs-button-label = Thumbnails\npdfjs-current-outline-item-button =\n .title = Find Current Outline Item\npdfjs-current-outline-item-button-label = Current Outline Item\npdfjs-findbar-button =\n .title = Find in Document\npdfjs-findbar-button-label = Find\npdfjs-additional-layers = Additional Layers\npdfjs-thumb-page-title =\n .title = Page { $page }\npdfjs-thumb-page-canvas =\n .aria-label = Thumbnail of Page { $page }\npdfjs-find-input =\n .title = Find\n .placeholder = Find in document…\npdfjs-find-previous-button =\n .title = Find the previous occurrence of the phrase\npdfjs-find-previous-button-label = Previous\npdfjs-find-next-button =\n .title = Find the next occurrence of the phrase\npdfjs-find-next-button-label = Next\npdfjs-find-highlight-checkbox = Highlight All\npdfjs-find-match-case-checkbox-label = Match Case\npdfjs-find-match-diacritics-checkbox-label = Match Diacritics\npdfjs-find-entire-word-checkbox-label = Whole Words\npdfjs-find-reached-top = Reached top of document, continued from bottom\npdfjs-find-reached-bottom = Reached end of document, continued from top\npdfjs-find-match-count =\n { $total ->\n [one] { $current } of { $total } match\n *[other] { $current } of { $total } matches\n }\npdfjs-find-match-count-limit =\n { $limit ->\n [one] More than { $limit } match\n *[other] More than { $limit } matches\n }\npdfjs-find-not-found = Phrase not found\npdfjs-page-scale-width = Page Width\npdfjs-page-scale-fit = Page Fit\npdfjs-page-scale-auto = Automatic Zoom\npdfjs-page-scale-actual = Actual Size\npdfjs-page-scale-percent = { $scale }%\npdfjs-page-landmark =\n .aria-label = Page { $page }\npdfjs-loading-error = An error occurred while loading the PDF.\npdfjs-invalid-file-error = Invalid or corrupted PDF file.\npdfjs-missing-file-error = Missing PDF file.\npdfjs-unexpected-response-error = Unexpected server response.\npdfjs-rendering-error = An error occurred while rendering the page.\npdfjs-annotation-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") }\npdfjs-text-annotation-type =\n .alt = [{ $type } Annotation]\npdfjs-password-label = Enter the password to open this PDF file.\npdfjs-password-invalid = Invalid password. Please try again.\npdfjs-password-ok-button = OK\npdfjs-password-cancel-button = Cancel\npdfjs-web-fonts-disabled = Web fonts are disabled: unable to use embedded PDF fonts.\npdfjs-editor-free-text-button =\n .title = Text\npdfjs-editor-free-text-button-label = Text\npdfjs-editor-ink-button =\n .title = Draw\npdfjs-editor-ink-button-label = Draw\npdfjs-editor-stamp-button =\n .title = Add or edit images\npdfjs-editor-stamp-button-label = Add or edit images\npdfjs-editor-highlight-button =\n .title = Highlight\npdfjs-editor-highlight-button-label = Highlight\npdfjs-highlight-floating-button1 =\n .title = Highlight\n .aria-label = Highlight\npdfjs-highlight-floating-button-label = Highlight\npdfjs-editor-signature-button =\n .title = Add signature\npdfjs-editor-signature-button-label = Add signature\npdfjs-editor-highlight-editor =\n .aria-label = Highlight editor\npdfjs-editor-ink-editor =\n .aria-label = Drawing editor\npdfjs-editor-signature-editor1 =\n .aria-description = Signature editor: { $description }\npdfjs-editor-stamp-editor =\n .aria-label = Image editor\npdfjs-editor-remove-ink-button =\n .title = Remove drawing\npdfjs-editor-remove-freetext-button =\n .title = Remove text\npdfjs-editor-remove-stamp-button =\n .title = Remove image\npdfjs-editor-remove-highlight-button =\n .title = Remove highlight\npdfjs-editor-remove-signature-button =\n .title = Remove signature\npdfjs-editor-free-text-color-input = Color\npdfjs-editor-free-text-size-input = Size\npdfjs-editor-ink-color-input = Color\npdfjs-editor-ink-thickness-input = Thickness\npdfjs-editor-ink-opacity-input = Opacity\npdfjs-editor-stamp-add-image-button =\n .title = Add image\npdfjs-editor-stamp-add-image-button-label = Add image\npdfjs-editor-free-highlight-thickness-input = Thickness\npdfjs-editor-free-highlight-thickness-title =\n .title = Change thickness when highlighting items other than text\npdfjs-editor-add-signature-container =\n .aria-label = Signature controls and saved signatures\npdfjs-editor-signature-add-signature-button =\n .title = Add new signature\npdfjs-editor-signature-add-signature-button-label = Add new signature\npdfjs-editor-add-saved-signature-button =\n .title = Saved signature: { $description }\npdfjs-free-text2 =\n .aria-label = Text Editor\n .default-content = Start typing…\npdfjs-editor-alt-text-button =\n .aria-label = Alt text\npdfjs-editor-alt-text-button-label = Alt text\npdfjs-editor-alt-text-edit-button =\n .aria-label = Edit alt text\npdfjs-editor-alt-text-dialog-label = Choose an option\npdfjs-editor-alt-text-dialog-description = Alt text (alternative text) helps when people can’t see the image or when it doesn’t load.\npdfjs-editor-alt-text-add-description-label = Add a description\npdfjs-editor-alt-text-add-description-description = Aim for 1-2 sentences that describe the subject, setting, or actions.\npdfjs-editor-alt-text-mark-decorative-label = Mark as decorative\npdfjs-editor-alt-text-mark-decorative-description = This is used for ornamental images, like borders or watermarks.\npdfjs-editor-alt-text-cancel-button = Cancel\npdfjs-editor-alt-text-save-button = Save\npdfjs-editor-alt-text-decorative-tooltip = Marked as decorative\npdfjs-editor-alt-text-textarea =\n .placeholder = For example, “A young man sits down at a table to eat a meal”\npdfjs-editor-resizer-top-left =\n .aria-label = Top left corner — resize\npdfjs-editor-resizer-top-middle =\n .aria-label = Top middle — resize\npdfjs-editor-resizer-top-right =\n .aria-label = Top right corner — resize\npdfjs-editor-resizer-middle-right =\n .aria-label = Middle right — resize\npdfjs-editor-resizer-bottom-right =\n .aria-label = Bottom right corner — resize\npdfjs-editor-resizer-bottom-middle =\n .aria-label = Bottom middle — resize\npdfjs-editor-resizer-bottom-left =\n .aria-label = Bottom left corner — resize\npdfjs-editor-resizer-middle-left =\n .aria-label = Middle left — resize\npdfjs-editor-highlight-colorpicker-label = Highlight color\npdfjs-editor-colorpicker-button =\n .title = Change color\npdfjs-editor-colorpicker-dropdown =\n .aria-label = Color choices\npdfjs-editor-colorpicker-yellow =\n .title = Yellow\npdfjs-editor-colorpicker-green =\n .title = Green\npdfjs-editor-colorpicker-blue =\n .title = Blue\npdfjs-editor-colorpicker-pink =\n .title = Pink\npdfjs-editor-colorpicker-red =\n .title = Red\npdfjs-editor-highlight-show-all-button-label = Show all\npdfjs-editor-highlight-show-all-button =\n .title = Show all\npdfjs-editor-new-alt-text-dialog-edit-label = Edit alt text (image description)\npdfjs-editor-new-alt-text-dialog-add-label = Add alt text (image description)\npdfjs-editor-new-alt-text-textarea =\n .placeholder = Write your description here…\npdfjs-editor-new-alt-text-description = Short description for people who can’t see the image or when the image doesn’t load.\npdfjs-editor-new-alt-text-disclaimer1 = This alt text was created automatically and may be inaccurate.\npdfjs-editor-new-alt-text-disclaimer-learn-more-url = Learn more\npdfjs-editor-new-alt-text-create-automatically-button-label = Create alt text automatically\npdfjs-editor-new-alt-text-not-now-button = Not now\npdfjs-editor-new-alt-text-error-title = Couldn’t create alt text automatically\npdfjs-editor-new-alt-text-error-description = Please write your own alt text or try again later.\npdfjs-editor-new-alt-text-error-close-button = Close\npdfjs-editor-new-alt-text-ai-model-downloading-progress = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB)\n .aria-valuetext = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB)\npdfjs-editor-new-alt-text-added-button =\n .aria-label = Alt text added\npdfjs-editor-new-alt-text-added-button-label = Alt text added\npdfjs-editor-new-alt-text-missing-button =\n .aria-label = Missing alt text\npdfjs-editor-new-alt-text-missing-button-label = Missing alt text\npdfjs-editor-new-alt-text-to-review-button =\n .aria-label = Review alt text\npdfjs-editor-new-alt-text-to-review-button-label = Review alt text\npdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer = Created automatically: { $generatedAltText }\npdfjs-image-alt-text-settings-button =\n .title = Image alt text settings\npdfjs-image-alt-text-settings-button-label = Image alt text settings\npdfjs-editor-alt-text-settings-dialog-label = Image alt text settings\npdfjs-editor-alt-text-settings-automatic-title = Automatic alt text\npdfjs-editor-alt-text-settings-create-model-button-label = Create alt text automatically\npdfjs-editor-alt-text-settings-create-model-description = Suggests descriptions to help people who can’t see the image or when the image doesn’t load.\npdfjs-editor-alt-text-settings-download-model-label = Alt text AI model ({ $totalSize } MB)\npdfjs-editor-alt-text-settings-ai-model-description = Runs locally on your device so your data stays private. Required for automatic alt text.\npdfjs-editor-alt-text-settings-delete-model-button = Delete\npdfjs-editor-alt-text-settings-download-model-button = Download\npdfjs-editor-alt-text-settings-downloading-model-button = Downloading…\npdfjs-editor-alt-text-settings-editor-title = Alt text editor\npdfjs-editor-alt-text-settings-show-dialog-button-label = Show alt text editor right away when adding an image\npdfjs-editor-alt-text-settings-show-dialog-description = Helps you make sure all your images have alt text.\npdfjs-editor-alt-text-settings-close-button = Close\npdfjs-editor-undo-bar-message-highlight = Highlight removed\npdfjs-editor-undo-bar-message-freetext = Text removed\npdfjs-editor-undo-bar-message-ink = Drawing removed\npdfjs-editor-undo-bar-message-stamp = Image removed\npdfjs-editor-undo-bar-message-signature = Signature removed\npdfjs-editor-undo-bar-message-multiple =\n { $count ->\n [one] { $count } annotation removed\n *[other] { $count } annotations removed\n }\npdfjs-editor-undo-bar-undo-button =\n .title = Undo\npdfjs-editor-undo-bar-undo-button-label = Undo\npdfjs-editor-undo-bar-close-button =\n .title = Close\npdfjs-editor-undo-bar-close-button-label = Close\npdfjs-editor-add-signature-dialog-label = This modal allows the user to create a signature to add to a PDF document. The user can edit the name (which also serves as the alt text), and optionally save the signature for repeated use.\npdfjs-editor-add-signature-dialog-title = Add a signature\npdfjs-editor-add-signature-type-button = Type\n .title = Type\npdfjs-editor-add-signature-draw-button = Draw\n .title = Draw\npdfjs-editor-add-signature-image-button = Image\n .title = Image\npdfjs-editor-add-signature-type-input =\n .aria-label = Type your signature\n .placeholder = Type your signature\npdfjs-editor-add-signature-draw-placeholder = Draw your signature\npdfjs-editor-add-signature-draw-thickness-range-label = Thickness\npdfjs-editor-add-signature-draw-thickness-range =\n .title = Drawing thickness: { $thickness }\npdfjs-editor-add-signature-image-placeholder = Drag a file here to upload\npdfjs-editor-add-signature-image-browse-link =\n { PLATFORM() ->\n [macos] Or choose image files\n *[other] Or browse image files\n }\npdfjs-editor-add-signature-description-label = Description (alt text)\npdfjs-editor-add-signature-description-input =\n .title = Description (alt text)\npdfjs-editor-add-signature-description-default-when-drawing = Signature\npdfjs-editor-add-signature-clear-button-label = Clear signature\npdfjs-editor-add-signature-clear-button =\n .title = Clear signature\npdfjs-editor-add-signature-save-checkbox = Save signature\npdfjs-editor-add-signature-save-warning-message = You’ve reached the limit of 5 saved signatures. Remove one to save more.\npdfjs-editor-add-signature-image-upload-error-title = Couldn’t upload image\npdfjs-editor-add-signature-image-upload-error-description = Check your network connection or try another image.\npdfjs-editor-add-signature-error-close-button = Close\npdfjs-editor-add-signature-cancel-button = Cancel\npdfjs-editor-add-signature-add-button = Add\npdfjs-editor-delete-signature-button1 =\n .title = Remove saved signature\npdfjs-editor-delete-signature-button-label1 = Remove saved signature\npdfjs-editor-add-signature-edit-button-label = Edit description\npdfjs-editor-edit-signature-dialog-title = Edit description\npdfjs-editor-edit-signature-update-button = Update'))},e)}))).apply(this,arguments)}Z=Vi;var qi=function(){return F(function e(t){d(this,e),this._ready=new Promise(function(e,n){import(t).then(function(t){e(t.QuickJSSandbox())}).catch(n)})},[{key:"createSandbox",value:(n=o(k().m(function e(t){return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this._ready;case 1:e.v.create(t);case 2:return e.a(2)}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"dispatchEventInSandbox",value:(t=o(k().m(function e(t){var n;return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this._ready;case 1:n=e.v,setTimeout(function(){return n.dispatchEvent(t)},0);case 2:return e.a(2)}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"destroySandbox",value:(e=o(k().m(function e(){return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this._ready;case 1:e.v.nukeSandbox();case 2:return e.a(2)}},e,this)})),function(){return e.apply(this,arguments)})}]);var e,t,n}(),Yi="pdfjs.signature",Ji=new WeakMap,Qi=new WeakMap,eu=new WeakMap,tu=new WeakSet,nu=function(){return F(function e(t,n){d(this,e),v(this,tu),D(this,Ji,void 0),D(this,Qi,null),D(this,eu,null),f(Ji,this,t),f(eu,this,n)},[{key:"getAll",value:(r=o(k().m(function e(){var t,n,i,u,r,a,o=this;return k().w(function(e){for(;;)if(0===e.n){if(h(eu,this)&&(window.addEventListener("storage",function(e){var t;e.key===Yi&&(f(Qi,o,null),null===(t=h(Ji,o))||void 0===t||t.dispatch("storedsignatureschanged",{source:o}))},{signal:h(eu,this)}),f(eu,this,null)),!h(Qi,this)&&(f(Qi,this,new Map),t=localStorage.getItem(Yi)))for(n=0,i=Object.entries(JSON.parse(t));n<i.length;n++)u=T(i[n],2),r=u[0],a=u[1],h(Qi,this).set(r,a);return e.a(2,h(Qi,this))}},e,this)})),function(){return r.apply(this,arguments)})},{key:"isFull",value:(u=o(k().m(function e(){var t;return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.size();case 1:return t=e.v,e.a(2,5===t)}},e,this)})),function(){return u.apply(this,arguments)})},{key:"size",value:(n=o(k().m(function e(){return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.getAll();case 1:return e.a(2,e.v.size)}},e,this)})),function(){return n.apply(this,arguments)})},{key:"create",value:(t=o(k().m(function e(t){var n;return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.isFull();case 1:if(!e.v){e.n=2;break}return e.a(2,null);case 2:return n=me(),h(Qi,this).set(n,t),i(tu,this,iu).call(this),e.a(2,n)}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"delete",value:(e=o(k().m(function e(t){var n;return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.getAll();case 1:if((n=e.v).has(t)){e.n=2;break}return e.a(2,!1);case 2:return n.delete(t),i(tu,this,iu).call(this),e.a(2,!0)}},e,this)})),function(t){return e.apply(this,arguments)})}]);var e,t,n,u,r}();function iu(){localStorage.setItem(Yi,JSON.stringify(Object.fromEntries(h(Qi,this))))}var uu=function(e){function t(){return d(this,t),l(this,t,arguments)}return w(t,e),F(t,[{key:"_writeToStorage",value:(i=o(k().m(function e(t){return k().w(function(e){for(;;)switch(e.n){case 0:localStorage.setItem("pdfjs.preferences",JSON.stringify(t));case 1:return e.a(2)}},e)})),function(e){return i.apply(this,arguments)})},{key:"_readFromStorage",value:(n=o(k().m(function e(t){return k().w(function(e){for(;;)if(0===e.n)return e.a(2,{prefs:JSON.parse(localStorage.getItem("pdfjs.preferences"))})},e)})),function(e){return n.apply(this,arguments)})}]);var n,i}(mn),ru=function(e){function t(){return d(this,t),l(this,t,arguments)}return w(t,e),F(t,[{key:"createL10n",value:(n=o(k().m(function e(){var t;return k().w(function(e){for(;;)if(0===e.n)return e.a(2,new Vi(null===(t=rn.get("localeProperties"))||void 0===t?void 0:t.lang))},e)})),function(){return n.apply(this,arguments)})},{key:"createScripting",value:function(){return new qi(rn.get("sandboxBundleSrc"))}},{key:"createSignatureStorage",value:function(e,t){return new nu(e,t)}}]);var n}(vn),au=new WeakMap,ou=new WeakMap,su=new WeakMap,lu=new WeakMap,cu=new WeakMap,du=new WeakMap,hu=new WeakMap,Du=new WeakMap,fu=new WeakMap,pu=new WeakMap,vu=new WeakMap,gu=new WeakMap,Fu=new WeakMap,mu=new WeakMap,Eu=new WeakMap,Cu=new WeakMap,Au=new WeakMap,wu=new WeakMap,bu=new WeakMap,yu=new WeakMap,Bu=new WeakMap,ku=new WeakMap,_u=new WeakMap,xu=new WeakMap,Su=new WeakMap,Pu=new WeakSet,Iu=function(){return F(function e(t,n,u){var r=this,a=t.descriptionContainer,s=t.dialog,l=t.imagePreview,c=t.cancelButton,p=t.disclaimer,g=t.notNowButton,F=t.saveButton,m=t.textarea,E=t.learnMore,C=t.errorCloseButton,A=t.createAutomaticallyButton,w=t.downloadModel,b=t.downloadModelDescription,y=t.title;d(this,e),v(this,Pu),D(this,au,i(Pu,this,Hu).bind(this)),D(this,ou,void 0),D(this,su,null),D(this,lu,void 0),D(this,cu,void 0),D(this,du,void 0),D(this,hu,void 0),D(this,Du,void 0),D(this,fu,void 0),D(this,pu,void 0),D(this,vu,!1),D(this,gu,void 0),D(this,Fu,null),D(this,mu,null),D(this,Eu,void 0),D(this,Cu,void 0),D(this,Au,!1),D(this,wu,!1),D(this,bu,void 0),D(this,yu,void 0),D(this,Bu,void 0),D(this,ku,void 0),D(this,_u,void 0),D(this,xu,void 0),D(this,Su,null),f(lu,this,c),f(ou,this,A),f(cu,this,a),f(du,this,s),f(hu,this,p),f(yu,this,g),f(Eu,this,l),f(ku,this,m),f(bu,this,E),f(_u,this,y),f(Du,this,w),f(fu,this,b),f(Bu,this,n),f(pu,this,u),s.addEventListener("close",i(Pu,this,Zu).bind(this)),s.addEventListener("contextmenu",function(e){e.target!==h(ku,r)&&e.preventDefault()}),c.addEventListener("click",h(au,this)),g.addEventListener("click",h(au,this)),F.addEventListener("click",i(Pu,this,$u).bind(this)),C.addEventListener("click",function(){i(Pu,r,Mu).call(r,!1)}),A.addEventListener("click",o(k().m(function e(){var t;return k().w(function(e){for(;;)switch(e.n){case 0:if(t="true"!==A.getAttribute("aria-pressed"),h(su,r)._reportTelemetry({action:"pdfjs.image.alt_text.ai_generation_check",data:{status:t}}),!h(xu,r)){e.n=1;break}return h(xu,r).setPreference("enableGuessAltText",t),e.n=1,h(xu,r).mlManager.toggleService("altText",t);case 1:i(Pu,r,Lu).call(r,t,!1);case 2:return e.a(2)}},e)}))),m.addEventListener("focus",function(){f(wu,r,h(Au,r)),i(Pu,r,Tu).call(r,!1),i(Pu,r,Ru).call(r)}),m.addEventListener("blur",function(){m.value||i(Pu,r,Tu).call(r,h(wu,r)),i(Pu,r,Ru).call(r)}),m.addEventListener("input",function(){i(Pu,r,Ru).call(r)}),u._on("enableguessalttext",function(e){var t=e.value;i(Pu,r,Lu).call(r,t,!1)}),h(Bu,this).register(s),h(bu,this).addEventListener("click",function(){h(su,r)._reportTelemetry({action:"pdfjs.image.alt_text.info",data:{topic:"alt_text"}})})},[{key:"editAltText",value:(e=o(k().m(function e(t,n,u){var r,a,o,s,l,c,d,D,p,v,g,F,m,E,C,A,w;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!h(su,this)&&n){e.n=1;break}return e.a(2);case 1:if(!u||!n.hasAltTextData()){e.n=2;break}return n.altTextFinish(),e.a(2);case 2:if(f(vu,this,u),o=t.mlManager,s=!!o,i(Pu,this,Ru).call(this),o&&!o.isReady("altText")?(s=!1,o.hasProgress?i(Pu,this,Uu).call(this):o=null):h(Du,this).classList.toggle("hidden",!0),l=null===(r=o)||void 0===r?void 0:r.isEnabledFor("altText"),f(su,this,n),f(xu,this,t),h(xu,this).removeEditListeners(),R(f,[Su,this])._=n.altTextData.altText,h(ku,this).value=null!==(a=h(Su,this))&&void 0!==a?a:"",c=224,d=180,!o){e.n=5;break}if(g=n.copyCanvas(c,d,!0),D=g.canvas,p=g.width,v=g.height,R(f,[Cu,this])._=g.imageData,!s){e.n=4;break}return E=i(Pu,this,Lu),C=this,e.n=3,l;case 3:A=e.v,E.call.call(E,C,A,!0);case 4:e.n=6;break;case 5:F=n.copyCanvas(c,d,!1),D=F.canvas,p=F.width,v=F.height;case 6:return D.setAttribute("role","presentation"),(m=D.style).width="".concat(p,"px"),m.height="".concat(v,"px"),h(Eu,this).append(D),i(Pu,this,Ou).call(this),i(Pu,this,ju).call(this,s),i(Pu,this,Mu).call(this,!1),e.p=7,e.n=8,h(Bu,this).open(h(du,this));case 8:e.n=10;break;case 9:throw e.p=9,w=e.v,i(Pu,this,Zu).call(this),w;case 10:return e.a(2)}},e,this,[[7,9]])})),function(t,n,i){return e.apply(this,arguments)})},{key:"destroy",value:function(){f(xu,this,null),i(Pu,this,Gu).call(this)}}]);var e}();function Tu(e){h(xu,this)&&h(Au,this)!==e&&(f(Au,this,e),h(cu,this).classList.toggle("loading",e))}function Mu(e){h(xu,this)&&h(du,this).classList.toggle("error",e)}function Lu(e){return Nu.apply(this,arguments)}function Nu(){return Nu=o(k().m(function e(t){var n,u,r=arguments;return k().w(function(e){for(;;)switch(e.n){case 0:if(n=r.length>1&&void 0!==r[1]&&r[1],h(xu,this)){e.n=1;break}return e.a(2);case 1:h(du,this).classList.toggle("aiDisabled",!t),h(ou,this).setAttribute("aria-pressed",t),t?((u=h(xu,this).mlManager.altTextLearnMoreUrl)&&(h(bu,this).href=u),i(Pu,this,Wu).call(this,n)):(i(Pu,this,Tu).call(this,!1),f(Au,this,!1),i(Pu,this,Ru).call(this));case 2:return e.a(2)}},e,this)})),Nu.apply(this,arguments)}function Ou(){h(yu,this).classList.toggle("hidden",!h(vu,this)),h(lu,this).classList.toggle("hidden",h(vu,this))}function ju(e){h(xu,this)&&h(Fu,this)!==e&&(f(Fu,this,e),h(du,this).classList.toggle("noAi",!e),i(Pu,this,Ru).call(this))}function Ru(){var e=h(Au,this)||h(gu,this)&&h(gu,this)===h(ku,this).value;h(hu,this).hidden=!e;var t=h(Au,this)||!!h(ku,this).value;h(mu,this)!==t&&(f(mu,this,t),h(_u,this).setAttribute("data-l10n-id",t?"pdfjs-editor-new-alt-text-dialog-edit-label":"pdfjs-editor-new-alt-text-dialog-add-label"))}function Wu(e){return Vu.apply(this,arguments)}function Vu(){return(Vu=o(k().m(function e(t){var n,u,r;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!h(Au,this)){e.n=1;break}return e.a(2);case 1:if(!h(ku,this).value){e.n=2;break}return e.a(2);case 2:if(!t||null===h(Su,this)){e.n=3;break}return e.a(2);case 3:if(f(gu,this,h(su,this).guessedAltText),null!==h(Su,this)||!h(gu,this)){e.n=4;break}return i(Pu,this,zu).call(this,h(gu,this)),e.a(2);case 4:return i(Pu,this,Tu).call(this,!0),i(Pu,this,Ru).call(this),n=!1,e.p=5,e.n=6,h(su,this).mlGuessAltText(h(Cu,this),!1);case 6:(u=e.v)&&(f(gu,this,u),f(wu,this,h(Au,this)),h(Au,this)&&i(Pu,this,zu).call(this,u)),e.n=8;break;case 7:e.p=7,r=e.v,console.error(r),n=!0;case 8:i(Pu,this,Tu).call(this,!1),i(Pu,this,Ru).call(this),n&&h(xu,this)&&i(Pu,this,Mu).call(this,!0);case 9:return e.a(2)}},e,this,[[5,7]])}))).apply(this,arguments)}function zu(e){h(xu,this)&&!h(ku,this).value&&(h(ku,this).value=e,i(Pu,this,Ru).call(this))}function Uu(){var e=this;h(Du,this).classList.toggle("hidden",!1);var t=function(){var n=o(k().m(function n(u){var r,a,o,s,l,c,d,D,f,p,v,g;return k().w(function(n){for(;;)switch(n.n){case 0:if(r=u.detail,a=r.finished,o=r.total,s=r.totalLoaded,l=1e6,s=Math.min(.99*o,s),c=h(fu,e).ariaValueMax=Math.round(o/l),d=h(fu,e).ariaValueNow=Math.round(s/l),h(fu,e).setAttribute("data-l10n-args",JSON.stringify({totalSize:c,downloadedSize:d})),a){n.n=1;break}return n.a(2);case 1:if(h(pu,e)._off("loadaiengineprogress",t),h(Du,e).classList.toggle("hidden",!0),i(Pu,e,ju).call(e,!0),h(xu,e)){n.n=2;break}return n.a(2);case 2:return D=h(xu,e),(f=D.mlManager).toggleService("altText",!0),p=i(Pu,e,Lu),v=e,n.n=3,f.isEnabledFor("altText");case 3:g=n.v,p.call.call(p,v,g,!0);case 4:return n.a(2)}},n)}));return function(e){return n.apply(this,arguments)}}();h(pu,this)._on("loadaiengineprogress",t)}function Hu(){h(su,this).altTextData={cancel:!0};var e=h(ku,this).value.trim();h(su,this)._reportTelemetry({action:"pdfjs.image.alt_text.dismiss",data:{alt_text_type:e?"present":"empty",flow:h(vu,this)?"image_add":"alt_text_edit"}}),h(su,this)._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!0,alt_text_type:"skipped"}}),i(Pu,this,Gu).call(this)}function Gu(){h(Bu,this).closeIfActive(h(du,this))}function Zu(){var e,t,n=h(Eu,this).firstChild;n.remove(),n.width=n.height=0,f(Cu,this,null),i(Pu,this,Tu).call(this,!1),null===(e=h(xu,this))||void 0===e||e.addEditListeners(),h(su,this).altTextFinish(),null===(t=h(xu,this))||void 0===t||t.setSelected(h(su,this)),f(su,this,null),f(xu,this,null)}function Xu(e){return new Set(e.toLowerCase().split(/(?:[\0-\/:-@\[-`\{-\xA9\xAB-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u0530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u065F\u066A-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07BF\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u088F-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0965\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09E5\u09F2\u09F3\u09FA\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A65\u0A70\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AE5\u0AF0-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B65\u0B70\u0B78-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0BE5\u0BF3-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5C\u0C5E\u0C5F\u0C62-\u0C65\u0C70-\u0C77\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDC\u0CDF\u0CE2-\u0CE5\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57\u0D62-\u0D65\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DE5\u0DF0-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F1F\u0F34-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u104A-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u1368\u137D-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u17DF\u17EA-\u17EF\u17FA-\u180F\u181A-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19FF\u1A17-\u1A1F\u1A55-\u1A7F\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B4F\u1B5A-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BFF\u1C24-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C8B-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u206F\u2072\u2073\u207A-\u207E\u208A-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A-\u245F\u249C-\u24E9\u2500-\u2775\u2794-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFC\u2CFE\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u3004\u3008-\u3020\u302A-\u3030\u3036\u3037\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u3191\u3196-\u319F\u31C0-\u31EF\u3200-\u321F\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA66F-\uA67E\uA69E\uA69F\uA6F0-\uA716\uA720\uA721\uA789\uA78A\uA7CE\uA7CF\uA7D2\uA7D4\uA7DD-\uA7F1\uA802\uA806\uA80B\uA823-\uA82F\uA836-\uA83F\uA874-\uA881\uA8B4-\uA8CF\uA8DA-\uA8F1\uA8F8-\uA8FA\uA8FC\uA8FF\uA926-\uA92F\uA947-\uA95F\uA97D-\uA983\uA9B3-\uA9CE\uA9DA-\uA9DF\uA9E5\uA9FF\uAA29-\uAA3F\uAA43\uAA4C-\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAC3-\uAADA\uAADE\uAADF\uAAEB-\uAAF1\uAAF5-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABE3-\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB1E\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD06\uDD34-\uDD3F\uDD79-\uDD89\uDD8C-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEE0\uDEFC-\uDEFF\uDF24-\uDF2C\uDF4B-\uDF4F\uDF76-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDD6F\uDD7B\uDD8B\uDD93\uDD96\uDDA2\uDDB2\uDDBA\uDDBD-\uDDBF\uDDF4-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDF7F\uDF86\uDFB1\uDFBB-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56\uDC57\uDC77\uDC78\uDC9F-\uDCA6\uDCB0-\uDCDF\uDCF3\uDCF6-\uDCFA\uDD1C-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBB\uDDD0\uDDD1\uDE01-\uDE0F\uDE14\uDE18\uDE36-\uDE3F\uDE49-\uDE5F\uDE7F\uDEA0-\uDEBF\uDEC8\uDEE5-\uDEEA\uDEF0-\uDEFF\uDF36-\uDF3F\uDF56\uDF57\uDF73-\uDF77\uDF92-\uDFA8\uDFB0-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCF9\uDD24-\uDD2F\uDD3A-\uDD3F\uDD66-\uDD6E\uDD86-\uDE5F\uDE7F\uDEAA-\uDEAF\uDEB2-\uDEC1\uDEC5-\uDEFF\uDF28-\uDF2F\uDF46-\uDF50\uDF55-\uDF6F\uDF82-\uDFAF\uDFCC-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC00-\uDC02\uDC38-\uDC51\uDC70\uDC73\uDC74\uDC76-\uDC82\uDCB0-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDD02\uDD27-\uDD35\uDD40-\uDD43\uDD45\uDD46\uDD48-\uDD4F\uDD73-\uDD75\uDD77-\uDD82\uDDB3-\uDDC0\uDDC5-\uDDCF\uDDDB\uDDDD-\uDDE0\uDDF5-\uDDFF\uDE12\uDE2C-\uDE3E\uDE41-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEDF-\uDEEF\uDEFA-\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A-\uDF3C\uDF3E-\uDF4F\uDF51-\uDF5C\uDF62-\uDF7F\uDF8A\uDF8C\uDF8D\uDF8F\uDFB6\uDFB8-\uDFD0\uDFD2\uDFD4-\uDFFF]|\uD805[\uDC35-\uDC46\uDC4B-\uDC4F\uDC5A-\uDC5E\uDC62-\uDC7F\uDCB0-\uDCC3\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDAF-\uDDD7\uDDDC-\uDDFF\uDE30-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEAB-\uDEB7\uDEB9-\uDEBF\uDECA-\uDECF\uDEE4-\uDEFF\uDF1B-\uDF2F\uDF3C-\uDF3F\uDF47-\uDFFF]|\uD806[\uDC2C-\uDC9F\uDCF3-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD30-\uDD3E\uDD40\uDD42-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD1-\uDDE0\uDDE2\uDDE4-\uDDFF\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE4F\uDE51-\uDE5B\uDE8A-\uDE9C\uDE9E-\uDEAF\uDEF9-\uDFBF\uDFE1-\uDFEF\uDFFA-\uDFFF]|\uD807[\uDC09\uDC2F-\uDC3F\uDC41-\uDC4F\uDC6D-\uDC71\uDC90-\uDCFF\uDD07\uDD0A\uDD31-\uDD45\uDD47-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8A-\uDD97\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF3-\uDF01\uDF03\uDF11\uDF34-\uDF4F\uDF5A-\uDFAF\uDFB1-\uDFBF\uDFD5-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD812-\uD817\uD819\uD824-\uD82A\uD82D\uD82E\uD830-\uD832\uD836\uD83D\uD83F\uD87C\uD87D\uD87F\uD889-\uDBFF][\uDC00-\uDFFF]|\uD80B[\uDC00-\uDF8F\uDFF1-\uDFFF]|\uD80D[\uDC30-\uDC40\uDC47-\uDC5F]|\uD810[\uDFFB-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD818[\uDC00-\uDCFF\uDD1E-\uDD2F\uDD3A-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDE6F\uDEBF\uDECA-\uDECF\uDEEE-\uDEFF\uDF30-\uDF3F\uDF44-\uDF4F\uDF5A\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDD3F\uDD6D-\uDD6F\uDD7A-\uDE3F\uDE97-\uDEFF\uDF4B-\uDF4F\uDF51-\uDF92\uDFA0-\uDFDF\uDFE2\uDFE4-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFE\uDD09-\uDFFF]|\uD82B[\uDC00-\uDFEF\uDFF4\uDFFC\uDFFF]|\uD82C[\uDD23-\uDD31\uDD33-\uDD4F\uDD53\uDD54\uDD56-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDFFF]|\uD833[\uDC00-\uDCEF\uDCFA-\uDFFF]|\uD834[\uDC00-\uDEBF\uDED4-\uDEDF\uDEF4-\uDF5F\uDF79-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD837[\uDC00-\uDEFF\uDF1F-\uDF24\uDF2B-\uDFFF]|\uD838[\uDC00-\uDC2F\uDC6E-\uDCFF\uDD2D-\uDD36\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDE8F\uDEAE-\uDEBF\uDEEC-\uDEEF\uDEFA-\uDFFF]|\uD839[\uDC00-\uDCCF\uDCEC-\uDCEF\uDCFA-\uDDCF\uDDEE\uDDEF\uDDFB-\uDFDF\uDFE7\uDFEC\uDFEF\uDFFF]|\uD83A[\uDCC5\uDCC6\uDCD0-\uDCFF\uDD44-\uDD4A\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDC70\uDCAC\uDCB0\uDCB5-\uDD00\uDD2E\uDD3E-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEE0-\uDEFF]|\uD86D[\uDF3A-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFEF]|\uD87B[\uDE5E-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDF4F]|\uD888[\uDFB0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+/g).filter(function(e){return!!e}))}function $u(){var e=h(ku,this).value.trim();if(h(su,this).altTextData={altText:e,decorative:!1},h(su,this).altTextData.guessedAltText=h(gu,this),h(gu,this)&&h(gu,this)!==e){var t=i(Pu,this,Xu).call(this,h(gu,this)),n=i(Pu,this,Xu).call(this,e);h(su,this)._reportTelemetry({action:"pdfjs.image.alt_text.user_edit",data:{total_words:t.size,words_removed:t.difference(n).size,words_added:n.difference(t).size}})}h(su,this)._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!0,alt_text_type:e?"present":"empty"}}),h(su,this)._reportTelemetry({action:"pdfjs.image.alt_text.save",data:{alt_text_type:e?"present":"empty",flow:h(vu,this)?"image_add":"alt_text_edit"}}),i(Pu,this,Gu).call(this)}var Ku=new WeakMap,qu=new WeakMap,Yu=new WeakMap,Ju=new WeakMap,Qu=new WeakMap,er=new WeakMap,tr=new WeakMap,nr=new WeakMap,ir=new WeakSet,ur=function(){return F(function e(t,n,u,r){var a=this,s=t.dialog,l=t.createModelButton,c=t.aiModelSettings,p=t.learnMore,g=t.closeButton,F=t.deleteModelButton,m=t.downloadModelButton,E=t.showAltTextDialogButton;d(this,e),v(this,ir),D(this,Ku,void 0),D(this,qu,void 0),D(this,Yu,void 0),D(this,Ju,void 0),D(this,Qu,void 0),D(this,er,void 0),D(this,tr,void 0),D(this,nr,void 0),f(Ju,this,s),f(Ku,this,c),f(qu,this,l),f(Yu,this,m),f(nr,this,E),f(tr,this,n),f(Qu,this,u),f(er,this,r);var C=r.altTextLearnMoreUrl;C&&(p.href=C),s.addEventListener("contextmenu",ke),l.addEventListener("click",function(){var e=o(k().m(function e(t){var n;return k().w(function(e){for(;;)switch(e.n){case 0:return n=i(ir,a,cr).call(a,"enableGuessAltText",t),e.n=1,r.toggleService("altText",n);case 1:i(ir,a,rr).call(a,{type:"stamp",action:"pdfjs.image.alt_text.settings_ai_generation_check",data:{status:n}});case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),E.addEventListener("click",function(e){var t=i(ir,a,cr).call(a,"enableNewAltTextWhenAddingImage",e);i(ir,a,rr).call(a,{type:"stamp",action:"pdfjs.image.alt_text.settings_edit_alt_text_check",data:{status:t}})}),F.addEventListener("click",i(ir,this,sr).bind(this,!0)),m.addEventListener("click",i(ir,this,ar).bind(this,!0)),g.addEventListener("click",i(ir,this,hr).bind(this)),p.addEventListener("click",function(){i(ir,a,rr).call(a,{type:"stamp",action:"pdfjs.image.alt_text.info",data:{topic:"ai_generation"}})}),u._on("enablealttextmodeldownload",function(e){e.value?i(ir,a,ar).call(a,!1):i(ir,a,sr).call(a,!1)}),h(tr,this).register(s)},[{key:"open",value:(e=o(k().m(function e(t){var n,u,r,a;return k().w(function(e){for(;;)switch(e.n){case 0:return n=t.enableGuessAltText,u=t.enableNewAltTextWhenAddingImage,r=h(er,this),a=r.enableAltTextModelDownload,h(qu,this).disabled=!a,h(qu,this).setAttribute("aria-pressed",a&&n),h(nr,this).setAttribute("aria-pressed",u),h(Ku,this).classList.toggle("download",!a),e.n=1,h(tr,this).open(h(Ju,this));case 1:i(ir,this,rr).call(this,{type:"stamp",action:"pdfjs.image.alt_text.settings_displayed"});case 2:return e.a(2)}},e,this)})),function(t){return e.apply(this,arguments)})}]);var e}();function rr(e){h(Qu,this).dispatch("reporttelemetry",{source:this,details:{type:"editing",data:e}})}function ar(){return or.apply(this,arguments)}function or(){return or=o(k().m(function e(){var t,n=arguments;return k().w(function(e){for(;;)switch(e.n){case 0:if(!(n.length>0&&void 0!==n[0]&&n[0])){e.n=2;break}return h(Yu,this).disabled=!0,(t=h(Yu,this).firstChild).setAttribute("data-l10n-id","pdfjs-editor-alt-text-settings-downloading-model-button"),e.n=1,h(er,this).downloadModel("altText");case 1:t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-settings-download-model-button"),h(qu,this).disabled=!1,i(ir,this,dr).call(this,"enableGuessAltText",!0),h(er,this).toggleService("altText",!0),i(ir,this,dr).call(this,"enableAltTextModelDownload",!0),h(Yu,this).disabled=!1;case 2:h(Ku,this).classList.toggle("download",!1),h(qu,this).setAttribute("aria-pressed",!0);case 3:return e.a(2)}},e,this)})),or.apply(this,arguments)}function sr(){return lr.apply(this,arguments)}function lr(){return lr=o(k().m(function e(){var t=arguments;return k().w(function(e){for(;;)switch(e.n){case 0:if(!(t.length>0&&void 0!==t[0]&&t[0])){e.n=2;break}return e.n=1,h(er,this).deleteModel("altText");case 1:i(ir,this,dr).call(this,"enableGuessAltText",!1),i(ir,this,dr).call(this,"enableAltTextModelDownload",!1);case 2:h(Ku,this).classList.toggle("download",!0),h(qu,this).disabled=!0,h(qu,this).setAttribute("aria-pressed",!1);case 3:return e.a(2)}},e,this)})),lr.apply(this,arguments)}function cr(e,t){var n=t.target,u="true"!==n.getAttribute("aria-pressed");return i(ir,this,dr).call(this,e,u),n.setAttribute("aria-pressed",u),u}function dr(e,t){h(Qu,this).dispatch("setpreference",{source:this,name:e,value:t})}function hr(){h(tr,this).closeIfActive(h(Ju,this))}var Dr=new WeakMap,fr=new WeakMap,pr=new WeakMap,vr=new WeakMap,gr=new WeakMap,Fr=new WeakMap,mr=new WeakMap,Er=new WeakMap,Cr=new WeakMap,Ar=new WeakMap,wr=new WeakMap,br=new WeakMap,yr=new WeakMap,Br=new WeakMap,kr=new WeakMap,_r=new WeakMap,xr=new WeakMap,Sr=new WeakMap,Pr=new WeakSet,Ir=function(){return F(function e(t,n,u,r){var a=this,o=t.dialog,s=t.optionDescription,l=t.optionDecorative,c=t.textarea,p=t.cancelButton,g=t.saveButton;d(this,e),v(this,Pr),D(this,Dr,null),D(this,fr,null),D(this,pr,void 0),D(this,vr,void 0),D(this,gr,void 0),D(this,Fr,!1),D(this,mr,void 0),D(this,Er,void 0),D(this,Cr,void 0),D(this,Ar,void 0),D(this,wr,void 0),D(this,br,void 0),D(this,yr,null),D(this,Br,null),D(this,kr,null),D(this,_r,null),D(this,xr,void 0),D(this,Sr,null),f(vr,this,o),f(mr,this,s),f(Er,this,l),f(wr,this,c),f(pr,this,p),f(Ar,this,g),f(Cr,this,u),f(gr,this,r),f(xr,this,n);var F=i(Pr,this,Or).bind(this);o.addEventListener("close",i(Pr,this,Nr).bind(this)),o.addEventListener("contextmenu",function(e){e.target!==h(wr,a)&&e.preventDefault()}),p.addEventListener("click",i(Pr,this,Lr).bind(this)),g.addEventListener("click",i(Pr,this,jr).bind(this)),s.addEventListener("change",F),l.addEventListener("change",F),h(Cr,this).register(o)},[{key:"editAltText",value:(e=o(k().m(function e(t,n){var u,r,a,o,s,l,c;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!h(fr,this)&&n){e.n=1;break}return e.a(2);case 1:for(i(Pr,this,Tr).call(this),f(Fr,this,!1),f(Dr,this,new AbortController),u={signal:h(Dr,this).signal},r=i(Pr,this,Rr).bind(this),a=0,o=[h(mr,this),h(Er,this),h(wr,this),h(Ar,this),h(pr,this)];a<o.length;a++)o[a].addEventListener("click",r,u);return s=n.altTextData,l=s.altText,!0===s.decorative?(h(Er,this).checked=!0,h(mr,this).checked=!1):(h(Er,this).checked=!1,h(mr,this).checked=!0),f(yr,this,h(wr,this).value=(null==l?void 0:l.trim())||""),i(Pr,this,Or).call(this),f(fr,this,n),f(br,this,t),h(br,this).removeEditListeners(),f(Br,this,new AbortController),h(gr,this)._on("resize",i(Pr,this,Mr).bind(this),{signal:h(Br,this).signal}),e.p=2,e.n=3,h(Cr,this).open(h(vr,this));case 3:i(Pr,this,Mr).call(this),e.n=5;break;case 4:throw e.p=4,c=e.v,i(Pr,this,Nr).call(this),c;case 5:return e.a(2)}},e,this,[[2,4]])})),function(t,n){return e.apply(this,arguments)})},{key:"destroy",value:function(){var e;f(br,this,null),i(Pr,this,Lr).call(this),null===(e=h(kr,this))||void 0===e||e.remove(),f(kr,this,f(_r,this,null))}}]);var e}();function Tr(){if(!h(kr,this)){var e=new he,t=f(kr,this,e.createElement("svg"));t.setAttribute("width","0"),t.setAttribute("height","0");var n=e.createElement("defs");t.append(n);var i=e.createElement("mask");n.append(i),i.setAttribute("id","alttext-manager-mask"),i.setAttribute("maskContentUnits","objectBoundingBox");var u=e.createElement("rect");i.append(u),u.setAttribute("fill","white"),u.setAttribute("width","1"),u.setAttribute("height","1"),u.setAttribute("x","0"),u.setAttribute("y","0"),u=f(_r,this,e.createElement("rect")),i.append(u),u.setAttribute("fill","black"),h(vr,this).append(t)}}function Mr(){if(h(fr,this)){var e=h(vr,this),t=e.style,n=h(xr,this).getBoundingClientRect(),i=n.x,u=n.y,r=n.width,a=n.height,o=window,s=o.innerWidth,l=o.innerHeight,c=e.getBoundingClientRect(),d=c.width,D=c.height,f=h(fr,this).getClientDimensions(),p=f.x,v=f.y,g=f.width,F=f.height,m=10,E="ltr"===h(br,this).direction,C=Math.max(p,i),A=Math.min(p+g,i+r),w=Math.max(v,u),b=Math.min(v+F,u+a);h(_r,this).setAttribute("width","".concat((A-C)/s)),h(_r,this).setAttribute("height","".concat((b-w)/l)),h(_r,this).setAttribute("x","".concat(C/s)),h(_r,this).setAttribute("y","".concat(w/l));var y=null,B=Math.max(v,0);B+=Math.min(l-(B+D),0),E?p+g+m+d<s?y=p+g+m:p>d+m&&(y=p-d-m):p>d+m?y=p-d-m:p+g+m+d<s&&(y=p+g+m),null===y&&(B=null,y=Math.max(p,0),y+=Math.min(s-(y+d),0),v>D+m?B=v-D-m:v+F+m+D<l&&(B=v+F+m)),null!==B?(e.classList.add("positioned"),E?t.left="".concat(y,"px"):t.right="".concat(s-y-d,"px"),t.top="".concat(B,"px")):(e.classList.remove("positioned"),t.left="",t.top="")}}function Lr(){h(Cr,this).closeIfActive(h(vr,this))}function Nr(){var e,t;h(fr,this)._reportTelemetry(h(Sr,this)||{action:"alt_text_cancel",alt_text_keyboard:!h(Fr,this)}),f(Sr,this,null),i(Pr,this,Wr).call(this),null===(e=h(br,this))||void 0===e||e.addEditListeners(),null===(t=h(Br,this))||void 0===t||t.abort(),f(Br,this,null),h(fr,this).altTextFinish(),f(fr,this,null),f(br,this,null)}function Or(){h(wr,this).disabled=h(Er,this).checked}function jr(){var e=h(wr,this).value.trim(),t=h(Er,this).checked;h(fr,this).altTextData={altText:e,decorative:t},f(Sr,this,{action:"alt_text_save",alt_text_description:!!e,alt_text_edit:!!h(yr,this)&&h(yr,this)!==e,alt_text_decorative:t,alt_text_keyboard:!h(Fr,this)}),i(Pr,this,Lr).call(this)}function Rr(e){0!==e.detail&&(f(Fr,this,!0),i(Pr,this,Wr).call(this))}function Wr(){var e;null===(e=h(Dr,this))||void 0===e||e.abort(),f(Dr,this,null)}var Vr=new WeakSet,zr=F(function e(t,n){d(this,e),v(this,Vr),this.eventBus=n,i(Vr,this,Ur).call(this,t)});function Ur(e){var t=this,n=e.editorFreeTextFontSize,i=e.editorFreeTextColor,u=e.editorInkColor,r=e.editorInkThickness,a=e.editorInkOpacity,o=e.editorStampAddImage,s=e.editorFreeHighlightThickness,l=e.editorHighlightShowAll,c=e.editorSignatureAddSignature,d=this.eventBus,h=function(e,n){d.dispatch("switchannotationeditorparams",{source:t,type:ie[e],value:n})};n.addEventListener("input",function(){h("FREETEXT_SIZE",this.valueAsNumber)}),i.addEventListener("input",function(){h("FREETEXT_COLOR",this.value)}),u.addEventListener("input",function(){h("INK_COLOR",this.value)}),r.addEventListener("input",function(){h("INK_THICKNESS",this.valueAsNumber)}),a.addEventListener("input",function(){h("INK_OPACITY",this.valueAsNumber)}),o.addEventListener("click",function(){d.dispatch("reporttelemetry",{source:t,details:{type:"editing",data:{action:"pdfjs.image.add_image_click"}}}),h("CREATE")}),s.addEventListener("input",function(){h("HIGHLIGHT_THICKNESS",this.valueAsNumber)}),l.addEventListener("click",function(){var e="true"===this.getAttribute("aria-pressed");this.setAttribute("aria-pressed",!e),h("HIGHLIGHT_SHOW_ALL",!e)}),c.addEventListener("click",function(){h("CREATE")}),d._on("annotationeditorparamschanged",function(e){var o,c=m(e.details);try{for(c.s();!(o=c.n()).done;){var h=T(o.value,2),D=h[0],f=h[1];switch(D){case ie.FREETEXT_SIZE:n.value=f;break;case ie.FREETEXT_COLOR:i.value=f;break;case ie.INK_COLOR:u.value=f;break;case ie.INK_THICKNESS:r.value=f;break;case ie.INK_OPACITY:a.value=f;break;case ie.HIGHLIGHT_DEFAULT_COLOR:d.dispatch("mainhighlightcolorpickerupdatecolor",{source:t,value:f});break;case ie.HIGHLIGHT_THICKNESS:s.value=f;break;case ie.HIGHLIGHT_FREE:s.disabled=!f;break;case ie.HIGHLIGHT_SHOW_ALL:l.setAttribute("aria-pressed",f)}}}catch(e){c.e(e)}finally{c.f()}})}var Hr=.1,Gr=new WeakMap,Zr=new WeakMap,Xr=new WeakMap,$r=new WeakSet,Kr=function(){return F(function e(t,n,i,u){var r=this;if(d(this,e),v(this,$r),D(this,Gr,void 0),D(this,Zr,0),D(this,Xr,void 0),f(Gr,this,n),f(Xr,this,i),u){f(Zr,this,u.getBoundingClientRect().height);var a=new ResizeObserver(function(e){var t,n=m(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.target===u){f(Zr,r,Math.floor(i.borderBoxSize[0].blockSize));break}}}catch(e){n.e(e)}finally{n.f()}});a.observe(u),t.addEventListener("abort",function(){return a.disconnect()},{once:!0})}},[{key:"moveCaret",value:function(e,t){var n=document.getSelection();if(0!==n.rangeCount){var u=n.focusNode,r=u.nodeType!==Node.ELEMENT_NODE?u.parentElement:u,a=r.closest(".textLayer");if(a){var o=document.createTreeWalker(a,NodeFilter.SHOW_TEXT);o.currentNode=u;for(var s=r.getBoundingClientRect(),l=null,c=(e?o.previousSibling:o.nextSibling).bind(o);c();){var d=o.currentNode.parentElement;if(!i($r,this,qr).call(this,s,d.getBoundingClientRect())){l=d;break}}if(l){var h=T(i($r,this,Qr).call(this,n,e),2),D=h[0],f=h[1],p=l.getBoundingClientRect();if(i($r,this,Yr).call(this,p,D,f,e))i($r,this,na).call(this,t,n,l,p,D);else{for(;c();){var v=o.currentNode.parentElement,g=v.getBoundingClientRect();if(!i($r,this,qr).call(this,p,g))break;if(i($r,this,Yr).call(this,g,D,f,e))return void i($r,this,na).call(this,t,n,v,g,D)}i($r,this,na).call(this,t,n,l,p,D)}}else{var F=i($r,this,ia).call(this,a,e);if(!F)return;if(t){var m=(e?o.firstChild():o.lastChild())||u;n.extend(m,e?0:m.length);var E=document.createRange();return E.setStart(F,e?F.length:0),E.setEnd(F,e?F.length:0),void n.addRange(E)}var C=T(i($r,this,Qr).call(this,n,e),1)[0],A=F.parentElement;i($r,this,na).call(this,t,n,A,A.getBoundingClientRect(),C)}}}}}])}();function qr(e,t){var n=e.y,i=e.bottom,u=e.y+e.height/2,r=t.y,a=t.bottom,o=t.y+t.height/2;return n<=o&&o<=i||r<=u&&u<=a}function Yr(e,t,n,i){var u=e.y+e.height/2;return(i?n>=u:n<=u)&&e.x-Hr<=t&&t<=e.right+Hr}function Jr(e){return e.top>=h(Zr,this)&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function Qr(e,t){var n=e.focusNode,i=e.focusOffset,u=document.createRange();u.setStart(n,i),u.setEnd(n,i);var r=u.getBoundingClientRect();return[r.x,t?r.top:r.bottom]}function ea(e,t){if(!document.caretPositionFromPoint){var n=document.caretRangeFromPoint(e,t);return{offsetNode:n.startContainer,offset:n.startOffset}}return document.caretPositionFromPoint(e,t)}function ta(e,t,n,i,u){var r;if(u||(u=i.getBoundingClientRect()),t<=u.x+Hr)n?e.extend(i.firstChild,0):e.setPosition(i.firstChild,0);else if(u.right-Hr<=t){var a=i.lastChild;n?e.extend(a,a.length):e.setPosition(a,a.length)}else{var o=u.y+u.height/2,s=ea.call(X,t,o),l=null===(r=s.offsetNode)||void 0===r?void 0:r.parentElement;if(l&&l!==i){var c,d,h=[],D=m(document.elementsFromPoint(t,o));try{for(D.s();!(d=D.n()).done;){var f=d.value;if(f===i)break;var p=f.style;h.push([f,p.visibility]),p.visibility="hidden"}}catch(e){D.e(e)}finally{D.f()}l=null===(c=(s=ea.call(X,t,o)).offsetNode)||void 0===c?void 0:c.parentElement;for(var v=0,g=h;v<g.length;v++){var F=T(g[v],2),E=F[0],C=F[1];E.style.visibility=C}}l===i?n?e.extend(s.offsetNode,s.offset):e.setPosition(s.offsetNode,s.offset):n?e.extend(i.firstChild,0):e.setPosition(i.firstChild,0)}}function na(e,t,n,u,r){i($r,this,Jr).call(this,u)?i($r,this,ta).call(this,t,r,e,n,u):(h(Gr,this).addEventListener("scrollend",i($r,this,ta).bind(this,t,r,e,n,null),{once:!0}),n.scrollIntoView())}function ia(e,t){for(;;){var n=e.closest(".page"),i=parseInt(n.getAttribute("data-page-number")),u=t?i-1:i+1;if(!(e=h(Xr,this).querySelector('.page[data-page-number="'.concat(u,'"] .textLayer'))))return null;var r=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),a=t?r.lastChild():r.firstChild();if(a)return a}}function ua(e,t){var n=document.createElement("a");if(!n.click)throw new Error('DownloadManager: "a.click()" is not supported.');n.href=e,n.target="_parent","download"in n&&(n.download=t),(document.body||document.documentElement).append(n),n.click(),n.remove()}X=Kr;var ra=new WeakMap,aa=function(){return F(function e(){d(this,e),D(this,ra,new WeakMap)},[{key:"downloadData",value:function(e,t,n){ua(URL.createObjectURL(new Blob([e],{type:n})),t)}},{key:"openOrDownloadData",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=be(t),u=i?"application/pdf":"";if(i){var r,a=h(ra,this).get(e);a||(a=URL.createObjectURL(new Blob([e],{type:u})),h(ra,this).set(e,a)),r="?file="+encodeURIComponent(a+"#"+t),n&&(r+="#".concat(escape(n)));try{return window.open(r),!0}catch(t){console.error("openOrDownloadData:",t),URL.revokeObjectURL(a),h(ra,this).delete(e)}}return this.downloadData(e,t,u),!1}},{key:"download",value:function(e,t,n){var i;if(e)i=URL.createObjectURL(new Blob([e],{type:"application/pdf"}));else{if(!de(t,"http://example.com"))return void console.error("download - not a valid URL: ".concat(t));i=t+"#pdfjs.action=download"}ua(i,n)}}])}(),oa=new WeakMap,sa=new WeakMap,la=new WeakMap,ca=new WeakMap,da=new WeakMap,ha=new WeakMap,Da=new WeakMap,fa=new WeakMap,pa=function(){return F(function e(t,n){var i=t.container,u=t.message,r=t.undoButton,a=t.closeButton;d(this,e),D(this,oa,null),D(this,sa,void 0),D(this,la,null),D(this,ca,null),D(this,da,null),E(this,"isOpen",!1),D(this,ha,void 0),D(this,Da,null),D(this,fa,void 0),f(sa,this,i),f(ha,this,u),f(fa,this,r),f(oa,this,a),f(la,this,n)},[{key:"destroy",value:function(){var e;null===(e=h(da,this))||void 0===e||e.abort(),f(da,this,null),this.hide()}},{key:"show",value:function(e,t){var n=this;if(!h(da,this)){f(da,this,new AbortController);var i={signal:h(da,this).signal},u=this.hide.bind(this);h(sa,this).addEventListener("contextmenu",ke,i),h(oa,this).addEventListener("click",u,i),h(la,this)._on("beforeprint",u,i),h(la,this)._on("download",u,i)}this.hide(),"string"==typeof t?h(ha,this).setAttribute("data-l10n-id",va._[t]):(h(ha,this).setAttribute("data-l10n-id",va._._multiple),h(ha,this).setAttribute("data-l10n-args",JSON.stringify({count:t}))),this.isOpen=!0,h(sa,this).hidden=!1,f(Da,this,new AbortController),h(fa,this).addEventListener("click",function(){e(),n.hide()},{signal:h(Da,this).signal}),f(ca,this,setTimeout(function(){h(sa,n).focus(),f(ca,n,null)},100))}},{key:"hide",value:function(){var e;this.isOpen&&(this.isOpen=!1,h(sa,this).hidden=!0,null===(e=h(Da,this))||void 0===e||e.abort(),f(Da,this,null),h(ca,this)&&(clearTimeout(h(ca,this)),f(ca,this,null)))}}])}(),va={_:Object.freeze({highlight:"pdfjs-editor-undo-bar-message-highlight",freetext:"pdfjs-editor-undo-bar-message-freetext",stamp:"pdfjs-editor-undo-bar-message-stamp",ink:"pdfjs-editor-undo-bar-message-ink",signature:"pdfjs-editor-undo-bar-message-signature",_multiple:"pdfjs-editor-undo-bar-message-multiple"})},ga=new WeakMap,Fa=new WeakMap,ma=function(){return F(function e(){d(this,e),D(this,ga,new WeakMap),D(this,Fa,null)},[{key:"active",get:function(){return h(Fa,this)}},{key:"register",value:(i=o(k().m(function e(t){var n,i=this,u=arguments;return k().w(function(e){for(;;)switch(e.n){case 0:if(n=u.length>1&&void 0!==u[1]&&u[1],"object"===W(t)){e.n=1;break}throw new Error("Not enough parameters.");case 1:if(!h(ga,this).has(t)){e.n=2;break}throw new Error("The overlay is already registered.");case 2:h(ga,this).set(t,{canForceClose:n}),t.addEventListener("cancel",function(e){var t=e.target;h(Fa,i)===t&&f(Fa,i,null)});case 3:return e.a(2)}},e,this)})),function(e){return i.apply(this,arguments)})},{key:"open",value:(n=o(k().m(function e(t){return k().w(function(e){for(;;)switch(e.n){case 0:if(h(ga,this).has(t)){e.n=1;break}throw new Error("The overlay does not exist.");case 1:if(!h(Fa,this)){e.n=5;break}if(h(Fa,this)!==t){e.n=2;break}throw new Error("The overlay is already active.");case 2:if(!h(ga,this).get(t).canForceClose){e.n=4;break}return e.n=3,this.close();case 3:e.n=5;break;case 4:throw new Error("Another overlay is currently active.");case 5:f(Fa,this,t),t.showModal();case 6:return e.a(2)}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"close",value:(t=o(k().m(function e(){var t,n=arguments;return k().w(function(e){for(;;)switch(e.n){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:h(Fa,this),h(ga,this).has(t)){e.n=1;break}throw new Error("The overlay does not exist.");case 1:if(h(Fa,this)){e.n=2;break}throw new Error("The overlay is currently not active.");case 2:if(h(Fa,this)===t){e.n=3;break}throw new Error("Another overlay is currently active.");case 3:t.close(),f(Fa,this,null);case 4:return e.a(2)}},e,this)})),function(){return t.apply(this,arguments)})},{key:"closeIfActive",value:(e=o(k().m(function e(t){return k().w(function(e){for(;;)switch(e.n){case 0:if(h(Fa,this)!==t){e.n=1;break}return e.n=1,this.close(t);case 1:return e.a(2)}},e,this)})),function(t){return e.apply(this,arguments)})}]);var e,t,n,i}(),Ea=new WeakMap,Ca=new WeakMap,Aa=new WeakMap,wa=new WeakSet,ba=function(){return F(function e(t,n){var u=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];d(this,e),v(this,wa),D(this,Ea,null),D(this,Ca,null),D(this,Aa,null),this.dialog=t.dialog,this.label=t.label,this.input=t.input,this.submitButton=t.submitButton,this.cancelButton=t.cancelButton,this.overlayManager=n,this._isViewerEmbedded=r,this.submitButton.addEventListener("click",i(wa,this,ya).bind(this)),this.cancelButton.addEventListener("click",this.close.bind(this)),this.input.addEventListener("keydown",function(e){13===e.keyCode&&i(wa,u,ya).call(u)}),this.overlayManager.register(this.dialog,!0),this.dialog.addEventListener("close",i(wa,this,Ba).bind(this))},[{key:"open",value:(n=o(k().m(function e(){var t,n,i;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.n=1,null===(t=h(Ea,this))||void 0===t?void 0:t.promise;case 1:return f(Ea,this,Promise.withResolvers()),e.p=2,e.n=3,this.overlayManager.open(this.dialog);case 3:e.n=5;break;case 4:throw e.p=4,i=e.v,h(Ea,this).resolve(),i;case 5:n=h(Aa,this)===Se.INCORRECT_PASSWORD,this._isViewerEmbedded&&!n||this.input.focus(),this.label.setAttribute("data-l10n-id",n?"pdfjs-password-invalid":"pdfjs-password-label");case 6:return e.a(2)}},e,this,[[2,4]])})),function(){return n.apply(this,arguments)})},{key:"close",value:(t=o(k().m(function e(){return k().w(function(e){for(;;)switch(e.n){case 0:this.overlayManager.closeIfActive(this.dialog);case 1:return e.a(2)}},e,this)})),function(){return t.apply(this,arguments)})},{key:"setUpdateCallback",value:(e=o(k().m(function e(t,n){return k().w(function(e){for(;;)switch(e.n){case 0:if(!h(Ea,this)){e.n=1;break}return e.n=1,h(Ea,this).promise;case 1:f(Ca,this,t),f(Aa,this,n);case 2:return e.a(2)}},e,this)})),function(t,n){return e.apply(this,arguments)})}]);var e,t,n}();function ya(){var e=this.input.value;(null==e?void 0:e.length)>0&&i(wa,this,ka).call(this,e)}function Ba(){i(wa,this,ka).call(this,new Error("PasswordPrompt cancelled.")),h(Ea,this).resolve()}function ka(e){h(Ca,this)&&(this.close(),this.input.value="",h(Ca,this).call(this,e),f(Ca,this,null))}var _a="selected",xa=function(){return F(function e(t){d(this,e),this.container=t.container,this.eventBus=t.eventBus,this._l10n=t.l10n,this.reset()},[{key:"reset",value:function(){this._pdfDocument=null,this._lastToggleIsShow=!0,this._currentTreeItem=null,this.container.textContent="",this.container.classList.remove("treeWithDeepNesting")}},{key:"_dispatchEvent",value:function(e){throw new Error("Not implemented: _dispatchEvent")}},{key:"_bindLink",value:function(e,t){throw new Error("Not implemented: _bindLink")}},{key:"_normalizeTextContent",value:function(e){return Ft(e,!0)||"–"}},{key:"_addToggleButton",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=document.createElement("div");i.className="treeItemToggler",n&&i.classList.add("treeItemsHidden"),i.onclick=function(n){if(n.stopPropagation(),i.classList.toggle("treeItemsHidden"),n.shiftKey){var u=!i.classList.contains("treeItemsHidden");t._toggleTreeItem(e,u)}},e.prepend(i)}},{key:"_toggleTreeItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._l10n.pause(),this._lastToggleIsShow=t;var n,i=m(e.querySelectorAll(".treeItemToggler"));try{for(i.s();!(n=i.n()).done;){n.value.classList.toggle("treeItemsHidden",!t)}}catch(e){i.e(e)}finally{i.f()}this._l10n.resume()}},{key:"_toggleAllTreeItems",value:function(){this._toggleTreeItem(this.container,!this._lastToggleIsShow)}},{key:"_finishRendering",value:function(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&(this.container.classList.add("treeWithDeepNesting"),this._lastToggleIsShow=!e.querySelector(".treeItemsHidden")),this._l10n.pause(),this.container.append(e),this._l10n.resume(),this._dispatchEvent(t)}},{key:"render",value:function(e){throw new Error("Not implemented: render")}},{key:"_updateCurrentTreeItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._currentTreeItem&&(this._currentTreeItem.classList.remove(_a),this._currentTreeItem=null),e&&(e.classList.add(_a),this._currentTreeItem=e)}},{key:"_scrollToCurrentTreeItem",value:function(e){if(e){this._l10n.pause();for(var t=e.parentNode;t&&t!==this.container;){if(t.classList.contains("treeItem")){var n=t.firstElementChild;null==n||n.classList.remove("treeItemsHidden")}t=t.parentNode}this._l10n.resume(),this._updateCurrentTreeItem(e),this.container.scrollTo(e.offsetLeft,e.offsetTop+-100)}}}])}(),Sa=new WeakSet,Pa=function(e){function t(e){var n;return d(this,t),v(n=l(this,t,[e]),Sa),n.downloadManager=e.downloadManager,n.eventBus._on("fileattachmentannotation",i(Sa,n,Ia).bind(n)),n}return w(t,e),F(t,[{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];L(t,"reset",this,3)([]),this._attachments=null,e||(this._renderedCapability=Promise.withResolvers()),this._pendingDispatchEvent=!1}},{key:"_dispatchEvent",value:(n=o(k().m(function e(t){return k().w(function(e){for(;;)switch(e.n){case 0:if(this._renderedCapability.resolve(),0!==t||this._pendingDispatchEvent){e.n=2;break}return this._pendingDispatchEvent=!0,e.n=1,hn({target:this.eventBus,name:"annotationlayerrendered",delay:1e3});case 1:if(this._pendingDispatchEvent){e.n=2;break}return e.a(2);case 2:this._pendingDispatchEvent=!1,this.eventBus.dispatch("attachmentsloaded",{source:this,attachmentsCount:t});case 3:return e.a(2)}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"_bindLink",value:function(e,t){var n=this,i=t.content,u=t.description,r=t.filename;u&&(e.title=u),e.onclick=function(){return n.downloadManager.openOrDownloadData(i,r),!1}}},{key:"render",value:function(e){var t=e.attachments,n=e.keepRenderedCapability,i=void 0!==n&&n;if(this._attachments&&this.reset(i),this._attachments=t||null,t){var u=document.createDocumentFragment(),r=0;for(var a in t){var o=t[a],s=document.createElement("div");s.className="treeItem";var l=document.createElement("a");this._bindLink(l,o),l.textContent=this._normalizeTextContent(o.filename),s.append(l),u.append(s),r++}this._finishRendering(u,r)}else this._dispatchEvent(0)}}]);var n}(xa);function Ia(e){var t=this,n=this._renderedCapability.promise;n.then(function(){if(n===t._renderedCapability.promise){var i=t._attachments||Object.create(null);for(var u in i)if(e.filename===u)return;i[e.filename]=e,t.render({attachments:i,keepRenderedCapability:!0})}})}var Ta="grab-to-pan-grab",Ma=new WeakMap,La=new WeakMap,Na=new WeakMap,Oa=new WeakSet,ja=function(){return F(function e(t){var n=t.element;d(this,e),v(this,Oa),D(this,Ma,null),D(this,La,null),D(this,Na,null),this.element=n,this.document=n.ownerDocument,(this.overlay=document.createElement("div")).className="grab-to-pan-grabbing"},[{key:"activate",value:function(){h(Ma,this)||(f(Ma,this,new AbortController),this.element.addEventListener("mousedown",i(Oa,this,Ra).bind(this),{capture:!0,signal:h(Ma,this).signal}),this.element.classList.add(Ta))}},{key:"deactivate",value:function(){h(Ma,this)&&(h(Ma,this).abort(),f(Ma,this,null),i(Oa,this,Va).call(this),this.element.classList.remove(Ta))}},{key:"toggle",value:function(){h(Ma,this)?this.deactivate():this.activate()}},{key:"ignoreTarget",value:function(e){return e.matches("a[href], a[href] *, input, textarea, button, button *, select, option")}}])}();function Ra(e){if(0===e.button&&!this.ignoreTarget(e.target)){if(e.originalTarget)try{e.originalTarget.tagName}catch(e){return}this.scrollLeftStart=this.element.scrollLeft,this.scrollTopStart=this.element.scrollTop,this.clientXStart=e.clientX,this.clientYStart=e.clientY,f(La,this,new AbortController);var t=i(Oa,this,Va).bind(this),n={capture:!0,signal:h(La,this).signal};this.document.addEventListener("mousemove",i(Oa,this,Wa).bind(this),n),this.document.addEventListener("mouseup",t,n),f(Na,this,new AbortController),this.element.addEventListener("scroll",t,{capture:!0,signal:h(Na,this).signal}),We(e);var u=document.activeElement;u&&!u.contains(e.target)&&u.blur()}}function Wa(e){var t;if(null===(t=h(Na,this))||void 0===t||t.abort(),f(Na,this,null),1&e.buttons){var n=e.clientX-this.clientXStart,u=e.clientY-this.clientYStart;this.element.scrollTo({top:this.scrollTopStart-u,left:this.scrollLeftStart-n,behavior:"instant"}),this.overlay.parentNode||document.body.append(this.overlay)}else i(Oa,this,Va).call(this)}function Va(){var e,t;null===(e=h(La,this))||void 0===e||e.abort(),f(La,this,null),null===(t=h(Na,this))||void 0===t||t.abort(),f(Na,this,null),this.overlay.remove()}var za=new WeakMap,Ua=new WeakMap,Ha=new WeakSet,Ga=function(){return F(function e(t){var n=this,u=t.container,r=t.eventBus,a=t.cursorToolOnLoad,o=void 0===a?dt:a;d(this,e),v(this,Ha),D(this,za,dt),D(this,Ua,null),this.container=u,this.eventBus=r,i(Ha,this,Xa).call(this),Promise.resolve().then(function(){n.switchTool(o)})},[{key:"activeTool",get:function(){return h(za,this)}},{key:"switchTool",value:function(e){null===h(Ua,this)&&i(Ha,this,Za).call(this,e)}},{key:"_handTool",get:function(){return je(this,"_handTool",new ja({element:this.container}))}}])}();function Za(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e!==h(za,this)){var i=function(){switch(h(za,t)){case dt:break;case ht:t._handTool.deactivate()}};switch(e){case dt:i();break;case ht:i(),this._handTool.activate();break;default:return void console.error('switchTool: "'.concat(e,'" is an unsupported value.'))}f(za,this,e),this.eventBus.dispatch("cursortoolchanged",{source:this,tool:e,disabled:n})}else null!==h(Ua,this)&&this.eventBus.dispatch("cursortoolchanged",{source:this,tool:e,disabled:n})}function Xa(){var e=this;this.eventBus._on("switchcursortool",function(i){i.reset?null!==h(Ua,e)&&(t=ue.NONE,n=Ye,r()):e.switchTool(i.tool)});var t=ue.NONE,n=Ye,u=function(){var t;null!==(t=h(Ua,e))&&void 0!==t||f(Ua,e,h(za,e)),i(Ha,e,Za).call(e,dt,!0)},r=function(){null!==h(Ua,e)&&t===ue.NONE&&n===Ye&&(i(Ha,e,Za).call(e,h(Ua,e)),f(Ua,e,null))};this.eventBus._on("annotationeditormodechanged",function(e){var n=e.mode;t=n,n===ue.NONE?r():u()}),this.eventBus._on("presentationmodechanged",function(e){var t=e.state;n=t,t===Ye?r():t===Qe&&u()})}var $a=["en-us","en-lr","my"],Ka={"8.5x11":"pdfjs-document-properties-page-size-name-letter","8.5x14":"pdfjs-document-properties-page-size-name-legal"},qa={"297x420":"pdfjs-document-properties-page-size-name-a-three","210x297":"pdfjs-document-properties-page-size-name-a-four"};function Ya(e,t,n){var i=t?e.width:e.height,u=t?e.height:e.width;return n["".concat(i,"x").concat(u)]}var Ja=new WeakMap,Qa=new WeakSet,eo=function(){return F(function e(t,n,u,r,a,o){var s=this,l=t.dialog,c=t.fields,h=t.closeButton;d(this,e),v(this,Qa),D(this,Ja,null),this.dialog=l,this.fields=c,this.overlayManager=n,this.l10n=r,this._fileNameLookup=a,this._titleLookup=o,i(Qa,this,to).call(this),h.addEventListener("click",this.close.bind(this)),this.overlayManager.register(this.dialog),u._on("pagechanging",function(e){s._currentPageNumber=e.pageNumber}),u._on("rotationchanging",function(e){s._pagesRotation=e.pagesRotation})},[{key:"open",value:(t=o(k().m(function e(){var t,n,u,r,a,o,s,l,c,d,D,p,v,g,F,m,E,C,A,w,b,y,B;return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Promise.all([this.overlayManager.open(this.dialog),this._dataAvailableCapability.promise]);case 1:if(u=this._currentPageNumber,r=this._pagesRotation,!h(Ja,this)||u!==h(Ja,this)._currentPageNumber||r!==h(Ja,this)._pagesRotation){e.n=2;break}return i(Qa,this,no).call(this),e.a(2);case 2:return e.n=3,Promise.all([this.pdfDocument.getMetadata(),this.pdfDocument.getPage(u)]);case 3:return a=e.v,o=T(a,2),s=o[0],l=s.info,c=s.metadata,d=s.contentLength,D=o[1],e.n=4,Promise.all([this._fileNameLookup(),i(Qa,this,io).call(this,d),this._titleLookup(),i(Qa,this,oo).call(this,null==c?void 0:c.get("xmp:createdate"),l.CreationDate),i(Qa,this,oo).call(this,null==c?void 0:c.get("xmp:modifydate"),l.ModDate),i(Qa,this,ro).call(this,At(D),r),i(Qa,this,lo).call(this,l.IsLinearized)]);case 4:return p=e.v,v=T(p,7),g=v[0],F=v[1],m=v[2],E=v[3],C=v[4],A=v[5],w=v[6],f(Ja,this,Object.freeze({fileName:g,fileSize:F,title:m,author:(null==c||null===(t=c.get("dc:creator"))||void 0===t?void 0:t.join("\n"))||l.Author,subject:(null==c||null===(n=c.get("dc:subject"))||void 0===n?void 0:n.join("\n"))||l.Subject,keywords:(null==c?void 0:c.get("pdf:keywords"))||l.Keywords,creationDate:E,modificationDate:C,creator:(null==c?void 0:c.get("xmp:creatortool"))||l.Creator,producer:(null==c?void 0:c.get("pdf:producer"))||l.Producer,version:l.PDFFormatVersion,pageCount:this.pdfDocument.numPages,pageSize:A,linearized:w,_currentPageNumber:u,_pagesRotation:r})),i(Qa,this,no).call(this),e.n=5,this.pdfDocument.getDownloadInfo();case 5:if(b=e.v,y=b.length,d!==y){e.n=6;break}return e.a(2);case 6:return B=Object.assign(Object.create(null),h(Ja,this)),e.n=7,i(Qa,this,io).call(this,y);case 7:B.fileSize=e.v,f(Ja,this,Object.freeze(B)),i(Qa,this,no).call(this);case 8:return e.a(2)}},e,this)})),function(){return t.apply(this,arguments)})},{key:"close",value:(e=o(k().m(function e(){return k().w(function(e){for(;;)switch(e.n){case 0:this.overlayManager.close(this.dialog);case 1:return e.a(2)}},e,this)})),function(){return e.apply(this,arguments)})},{key:"setDocument",value:function(e){this.pdfDocument&&(i(Qa,this,to).call(this),i(Qa,this,no).call(this)),e&&(this.pdfDocument=e,this._dataAvailableCapability.resolve())}}]);var e,t}();function to(){this.pdfDocument=null,f(Ja,this,null),this._dataAvailableCapability=Promise.withResolvers(),this._currentPageNumber=1,this._pagesRotation=0}function no(){if(!h(Ja,this)||this.overlayManager.active===this.dialog)for(var e in this.fields){var t,n=null===(t=h(Ja,this))||void 0===t?void 0:t[e];this.fields[e].textContent=n||0===n?n:"-"}}function io(){return uo.apply(this,arguments)}function uo(){return uo=o(k().m(function e(){var t,n,i,u=arguments;return k().w(function(e){for(;;)if(0===e.n)return i=(n=(t=u.length>0&&void 0!==u[0]?u[0]:0)/1024)/1024,e.a(2,n?this.l10n.get(i>=1?"pdfjs-document-properties-size-mb":"pdfjs-document-properties-size-kb",{mb:i,kb:n,b:t}):void 0)},e,this)})),uo.apply(this,arguments)}function ro(e,t){return ao.apply(this,arguments)}function ao(){return(ao=o(k().m(function e(t,n){var i,u,r,a,o,s,l,c,d,h,D,f,p,v,g;return k().w(function(e){for(;;)switch(e.n){case 0:if(t){e.n=1;break}return e.a(2,void 0);case 1:return n%180!=0&&(t={width:t.height,height:t.width}),i=_t(t),u=$a.includes(this.l10n.getLanguage()),r={width:Math.round(100*t.width)/100,height:Math.round(100*t.height)/100},a={width:Math.round(25.4*t.width*10)/10,height:Math.round(25.4*t.height*10)/10},(o=Ya(r,i,Ka)||Ya(a,i,qa))||Number.isInteger(a.width)&&Number.isInteger(a.height)||(s={width:25.4*t.width,height:25.4*t.height},l={width:Math.round(a.width),height:Math.round(a.height)},Math.abs(s.width-l.width)<.1&&Math.abs(s.height-l.height)<.1&&(o=Ya(l,i,qa))&&(r={width:Math.round(l.width/25.4*100)/100,height:Math.round(l.height/25.4*100)/100},a=l)),e.n=2,Promise.all([u?r:a,this.l10n.get(u?"pdfjs-document-properties-page-size-unit-inches":"pdfjs-document-properties-page-size-unit-millimeters"),o&&this.l10n.get(o),this.l10n.get(i?"pdfjs-document-properties-page-size-orientation-portrait":"pdfjs-document-properties-page-size-orientation-landscape")]);case 2:return c=e.v,d=T(c,4),h=d[0],D=h.width,f=h.height,p=d[1],v=d[2],g=d[3],e.a(2,this.l10n.get(v?"pdfjs-document-properties-page-size-dimension-name-string":"pdfjs-document-properties-page-size-dimension-string",{width:D,height:f,unit:p,name:v,orientation:g}))}},e,this)}))).apply(this,arguments)}function oo(e,t){return so.apply(this,arguments)}function so(){return(so=o(k().m(function e(t,n){var i;return k().w(function(e){for(;;)if(0===e.n)return i=Date.parse(t)||Pe.toDateObject(n),e.a(2,i?this.l10n.get("pdfjs-document-properties-date-time-string",{dateObj:i.valueOf()}):void 0)},e,this)}))).apply(this,arguments)}function lo(e){return this.l10n.get(e?"pdfjs-document-properties-linearized-yes":"pdfjs-document-properties-linearized-no")}Q(6573),Q(8100),Q(7936);var co,ho=0,Do=1,fo=2,po=3,vo=4,go=5,Fo=6,mo=7;function Eo(e){return function(e){return e<11904}(e)?function(e){return!(65408&e)}(e)?function(e){return 32===e||9===e||13===e||10===e}(e)?ho:function(e){return e>=97&&e<=122||e>=65&&e<=90}(e)||function(e){return e>=48&&e<=57}(e)||95===e?Do:fo:function(e){return 3584==(65408&e)}(e)?mo:160===e?ho:Do:function(e){return e>=13312&&e<=40959||e>=63744&&e<=64255}(e)?po:function(e){return e>=12448&&e<=12543}(e)?vo:function(e){return e>=12352&&e<=12447}(e)?go:function(e){return e>=65376&&e<=65439}(e)?Fo:Do}var Co,Ao=0,wo=1,bo=2,yo=3,Bo={"‐":"-","‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},ko=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956]),_o=/(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD69-\uDD6D\uDEAB\uDEAC\uDEFC-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDFB8-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD0\uDFD2\uDFE1\uDFE2]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD3E\uDD40\uDD42\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6\uDF00\uDF01\uDF03\uDF34-\uDF3A\uDF3E-\uDF42\uDF5A]|\uD80D[\uDC40\uDC47-\uDC55]|\uD818[\uDD1E-\uDD2F]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF\uDDEE\uDDEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uDB40[\uDD00-\uDDEF])+/g,xo=/([\$\(-\+\.\?\[-\^\{-\}])|((?:[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]))|([\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+)|((?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD69-\uDD6D\uDEAB\uDEAC\uDEFC-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDFB8-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD0\uDFD2\uDFE1\uDFE2]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD3E\uDD40\uDD42\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6\uDF00\uDF01\uDF03\uDF34-\uDF3A\uDF3E-\uDF42\uDF5A]|\uD80D[\uDC40\uDC47-\uDC55]|\uD818[\uDD1E-\uDD2F]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF\uDDEE\uDDEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uDB40[\uDD00-\uDDEF]))|((?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]))/g,So=/((?:[\0-\u02FF\u0370-\u0482\u048A-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u060F\u061B-\u064A\u0660-\u066F\u0671-\u06D5\u06DD\u06DE\u06E5\u06E6\u06E9\u06EE-\u0710\u0712-\u072F\u074B-\u07A5\u07B1-\u07EA\u07F4-\u07FC\u07FE-\u0815\u081A\u0824\u0828\u082E-\u0858\u085C-\u0896\u08A0-\u08C9\u08E2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0964-\u0980\u0984-\u09BB\u09BD\u09C5\u09C6\u09C9\u09CA\u09CE-\u09D6\u09D8-\u09E1\u09E4-\u09FD\u09FF\u0A00\u0A04-\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A6F\u0A72-\u0A74\u0A76-\u0A80\u0A84-\u0ABB\u0ABD\u0AC6\u0ACA\u0ACE-\u0AE1\u0AE4-\u0AF9\u0B00\u0B04-\u0B3B\u0B3D\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B61\u0B64-\u0B81\u0B83-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE-\u0BD6\u0BD8-\u0BFF\u0C05-\u0C3B\u0C3D\u0C45\u0C49\u0C4E-\u0C54\u0C57-\u0C61\u0C64-\u0C80\u0C84-\u0CBB\u0CBD\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CE1\u0CE4-\u0CF2\u0CF4-\u0CFF\u0D04-\u0D3A\u0D3D\u0D45\u0D49\u0D4E-\u0D56\u0D58-\u0D61\u0D64-\u0D80\u0D84-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DF1\u0DF4-\u0E30\u0E32\u0E33\u0E3B-\u0E46\u0E4F-\u0EB0\u0EB2\u0EB3\u0EBD-\u0EC7\u0ECF-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F40-\u0F70\u0F85\u0F88-\u0F8C\u0F98\u0FBD-\u0FC5\u0FC7-\u102A\u103F-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u109E-\u135C\u1360-\u1711\u1716-\u1731\u1735-\u1751\u1754-\u1771\u1774-\u17B3\u17D4-\u17DC\u17DE-\u180A\u180E\u1810-\u1884\u1887-\u18A8\u18AA-\u191F\u192C-\u192F\u193C-\u1A16\u1A1C-\u1A54\u1A5F\u1A7D\u1A7E\u1A80-\u1AAF\u1ACF-\u1AFF\u1B05-\u1B33\u1B45-\u1B6A\u1B74-\u1B7F\u1B83-\u1BA0\u1BAE-\u1BE5\u1BF4-\u1C23\u1C38-\u1CCF\u1CD3\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA-\u1DBF\u1E00-\u20CF\u20F1-\u2CEE\u2CF2-\u2D7E\u2D80-\u2DDF\u2E00-\u3029\u3030-\u3098\u309B-\uA66E\uA673\uA67E-\uA69D\uA6A0-\uA6EF\uA6F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA828-\uA82B\uA82D-\uA87F\uA882-\uA8B3\uA8C6-\uA8DF\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA954-\uA97F\uA984-\uA9B2\uA9C1-\uA9E4\uA9E6-\uAA28\uAA37-\uAA42\uAA44-\uAA4B\uAA4E-\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2-\uAAEA\uAAF0-\uAAF4\uAAF7-\uABE2\uABEB\uABEE-\uD7FF\uE000-\uFB1D\uFB1F-\uFDFF\uFE10-\uFE1F\uFE30-\uFFFF]|\uD800[\uDC00-\uDDFC\uDDFE-\uDEDF\uDEE1-\uDF75\uDF7B-\uDFFF]|[\uD801\uD808-\uD80C\uD80E-\uD817\uD819\uD81C-\uD82E\uD830-\uD832\uD835\uD837\uD83B-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD802[\uDC00-\uDE00\uDE04\uDE07-\uDE0B\uDE10-\uDE37\uDE3B-\uDE3E\uDE40-\uDEE4\uDEE7-\uDFFF]|\uD803[\uDC00-\uDD23\uDD28-\uDD68\uDD6E-\uDEAA\uDEAD-\uDEFB\uDF00-\uDF45\uDF51-\uDF81\uDF86-\uDFFF]|\uD804[\uDC03-\uDC37\uDC47-\uDC6F\uDC71\uDC72\uDC75-\uDC7E\uDC83-\uDCAF\uDCBB-\uDCC1\uDCC3-\uDCFF\uDD03-\uDD26\uDD35-\uDD44\uDD47-\uDD72\uDD74-\uDD7F\uDD83-\uDDB2\uDDC1-\uDDC8\uDDCD\uDDD0-\uDE2B\uDE38-\uDE3D\uDE3F\uDE40\uDE42-\uDEDE\uDEEB-\uDEFF\uDF04-\uDF3A\uDF3D\uDF45\uDF46\uDF49\uDF4A\uDF4E-\uDF56\uDF58-\uDF61\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFB7\uDFC1\uDFC3\uDFC4\uDFC6\uDFCB\uDFD1\uDFD3-\uDFE0\uDFE3-\uDFFF]|\uD805[\uDC00-\uDC34\uDC47-\uDC5D\uDC5F-\uDCAF\uDCC4-\uDDAE\uDDB6\uDDB7\uDDC1-\uDDDB\uDDDE-\uDE2F\uDE41-\uDEAA\uDEB8-\uDF1C\uDF2C-\uDFFF]|\uD806[\uDC00-\uDC2B\uDC3B-\uDD2F\uDD36\uDD39\uDD3A\uDD3F\uDD41\uDD44-\uDDD0\uDDD8\uDDD9\uDDE1-\uDDE3\uDDE5-\uDE00\uDE0B-\uDE32\uDE3A\uDE3F-\uDE46\uDE48-\uDE50\uDE5C-\uDE89\uDE9A-\uDFFF]|\uD807[\uDC00-\uDC2E\uDC37\uDC40-\uDC91\uDCA8\uDCB7-\uDD30\uDD37-\uDD39\uDD3B\uDD3E\uDD46\uDD48-\uDD89\uDD8F\uDD92\uDD98-\uDEF2\uDEF7-\uDEFF\uDF02\uDF04-\uDF33\uDF3B-\uDF3D\uDF43-\uDF59\uDF5B-\uDFFF]|\uD80D[\uDC00-\uDC3F\uDC41-\uDC46\uDC56-\uDFFF]|\uD818[\uDC00-\uDD1D\uDD30-\uDFFF]|\uD81A[\uDC00-\uDEEF\uDEF5-\uDF2F\uDF37-\uDFFF]|\uD81B[\uDC00-\uDF4E\uDF50\uDF88-\uDF8E\uDF93-\uDFE3\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD82F[\uDC00-\uDC9C\uDC9F-\uDFFF]|\uD833[\uDC00-\uDEFF\uDF2E\uDF2F\uDF47-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDC8E\uDC90-\uDD2F\uDD37-\uDEAD\uDEAF-\uDEEB\uDEF0-\uDFFF]|\uD839[\uDC00-\uDCEB\uDCF0-\uDDED\uDDF0-\uDFFF]|\uD83A[\uDC00-\uDCCF\uDCD7-\uDD43\uDD4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD69-\uDD6D\uDEAB\uDEAC\uDEFC-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDFB8-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD0\uDFD2\uDFE1\uDFE2]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD3E\uDD40\uDD42\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6\uDF00\uDF01\uDF03\uDF34-\uDF3A\uDF3E-\uDF42\uDF5A]|\uD80D[\uDC40\uDC47-\uDC55]|\uD818[\uDD1E-\uDD2F]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF\uDDEE\uDDEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uDB40[\uDD00-\uDDEF])*$/,Po=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD69-\uDD6D\uDEAB\uDEAC\uDEFC-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDFB8-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD0\uDFD2\uDFE1\uDFE2]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD3E\uDD40\uDD42\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6\uDF00\uDF01\uDF03\uDF34-\uDF3A\uDF3E-\uDF42\uDF5A]|\uD80D[\uDC40\uDC47-\uDC55]|\uD818[\uDD1E-\uDD2F]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF\uDDEE\uDDEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uDB40[\uDD00-\uDDEF])*((?:[\0-\u02FF\u0370-\u0482\u048A-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u060F\u061B-\u064A\u0660-\u066F\u0671-\u06D5\u06DD\u06DE\u06E5\u06E6\u06E9\u06EE-\u0710\u0712-\u072F\u074B-\u07A5\u07B1-\u07EA\u07F4-\u07FC\u07FE-\u0815\u081A\u0824\u0828\u082E-\u0858\u085C-\u0896\u08A0-\u08C9\u08E2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0964-\u0980\u0984-\u09BB\u09BD\u09C5\u09C6\u09C9\u09CA\u09CE-\u09D6\u09D8-\u09E1\u09E4-\u09FD\u09FF\u0A00\u0A04-\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A6F\u0A72-\u0A74\u0A76-\u0A80\u0A84-\u0ABB\u0ABD\u0AC6\u0ACA\u0ACE-\u0AE1\u0AE4-\u0AF9\u0B00\u0B04-\u0B3B\u0B3D\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B61\u0B64-\u0B81\u0B83-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE-\u0BD6\u0BD8-\u0BFF\u0C05-\u0C3B\u0C3D\u0C45\u0C49\u0C4E-\u0C54\u0C57-\u0C61\u0C64-\u0C80\u0C84-\u0CBB\u0CBD\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CE1\u0CE4-\u0CF2\u0CF4-\u0CFF\u0D04-\u0D3A\u0D3D\u0D45\u0D49\u0D4E-\u0D56\u0D58-\u0D61\u0D64-\u0D80\u0D84-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DF1\u0DF4-\u0E30\u0E32\u0E33\u0E3B-\u0E46\u0E4F-\u0EB0\u0EB2\u0EB3\u0EBD-\u0EC7\u0ECF-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F40-\u0F70\u0F85\u0F88-\u0F8C\u0F98\u0FBD-\u0FC5\u0FC7-\u102A\u103F-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u109E-\u135C\u1360-\u1711\u1716-\u1731\u1735-\u1751\u1754-\u1771\u1774-\u17B3\u17D4-\u17DC\u17DE-\u180A\u180E\u1810-\u1884\u1887-\u18A8\u18AA-\u191F\u192C-\u192F\u193C-\u1A16\u1A1C-\u1A54\u1A5F\u1A7D\u1A7E\u1A80-\u1AAF\u1ACF-\u1AFF\u1B05-\u1B33\u1B45-\u1B6A\u1B74-\u1B7F\u1B83-\u1BA0\u1BAE-\u1BE5\u1BF4-\u1C23\u1C38-\u1CCF\u1CD3\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA-\u1DBF\u1E00-\u20CF\u20F1-\u2CEE\u2CF2-\u2D7E\u2D80-\u2DDF\u2E00-\u3029\u3030-\u3098\u309B-\uA66E\uA673\uA67E-\uA69D\uA6A0-\uA6EF\uA6F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA828-\uA82B\uA82D-\uA87F\uA882-\uA8B3\uA8C6-\uA8DF\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA954-\uA97F\uA984-\uA9B2\uA9C1-\uA9E4\uA9E6-\uAA28\uAA37-\uAA42\uAA44-\uAA4B\uAA4E-\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2-\uAAEA\uAAF0-\uAAF4\uAAF7-\uABE2\uABEB\uABEE-\uD7FF\uE000-\uFB1D\uFB1F-\uFDFF\uFE10-\uFE1F\uFE30-\uFFFF]|\uD800[\uDC00-\uDDFC\uDDFE-\uDEDF\uDEE1-\uDF75\uDF7B-\uDFFF]|[\uD801\uD808-\uD80C\uD80E-\uD817\uD819\uD81C-\uD82E\uD830-\uD832\uD835\uD837\uD83B-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD802[\uDC00-\uDE00\uDE04\uDE07-\uDE0B\uDE10-\uDE37\uDE3B-\uDE3E\uDE40-\uDEE4\uDEE7-\uDFFF]|\uD803[\uDC00-\uDD23\uDD28-\uDD68\uDD6E-\uDEAA\uDEAD-\uDEFB\uDF00-\uDF45\uDF51-\uDF81\uDF86-\uDFFF]|\uD804[\uDC03-\uDC37\uDC47-\uDC6F\uDC71\uDC72\uDC75-\uDC7E\uDC83-\uDCAF\uDCBB-\uDCC1\uDCC3-\uDCFF\uDD03-\uDD26\uDD35-\uDD44\uDD47-\uDD72\uDD74-\uDD7F\uDD83-\uDDB2\uDDC1-\uDDC8\uDDCD\uDDD0-\uDE2B\uDE38-\uDE3D\uDE3F\uDE40\uDE42-\uDEDE\uDEEB-\uDEFF\uDF04-\uDF3A\uDF3D\uDF45\uDF46\uDF49\uDF4A\uDF4E-\uDF56\uDF58-\uDF61\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFB7\uDFC1\uDFC3\uDFC4\uDFC6\uDFCB\uDFD1\uDFD3-\uDFE0\uDFE3-\uDFFF]|\uD805[\uDC00-\uDC34\uDC47-\uDC5D\uDC5F-\uDCAF\uDCC4-\uDDAE\uDDB6\uDDB7\uDDC1-\uDDDB\uDDDE-\uDE2F\uDE41-\uDEAA\uDEB8-\uDF1C\uDF2C-\uDFFF]|\uD806[\uDC00-\uDC2B\uDC3B-\uDD2F\uDD36\uDD39\uDD3A\uDD3F\uDD41\uDD44-\uDDD0\uDDD8\uDDD9\uDDE1-\uDDE3\uDDE5-\uDE00\uDE0B-\uDE32\uDE3A\uDE3F-\uDE46\uDE48-\uDE50\uDE5C-\uDE89\uDE9A-\uDFFF]|\uD807[\uDC00-\uDC2E\uDC37\uDC40-\uDC91\uDCA8\uDCB7-\uDD30\uDD37-\uDD39\uDD3B\uDD3E\uDD46\uDD48-\uDD89\uDD8F\uDD92\uDD98-\uDEF2\uDEF7-\uDEFF\uDF02\uDF04-\uDF33\uDF3B-\uDF3D\uDF43-\uDF59\uDF5B-\uDFFF]|\uD80D[\uDC00-\uDC3F\uDC41-\uDC46\uDC56-\uDFFF]|\uD818[\uDC00-\uDD1D\uDD30-\uDFFF]|\uD81A[\uDC00-\uDEEF\uDEF5-\uDF2F\uDF37-\uDFFF]|\uD81B[\uDC00-\uDF4E\uDF50\uDF88-\uDF8E\uDF93-\uDFE3\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD82F[\uDC00-\uDC9C\uDC9F-\uDFFF]|\uD833[\uDC00-\uDEFF\uDF2E\uDF2F\uDF47-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDC8E\uDC90-\uDD2F\uDD37-\uDEAD\uDEAF-\uDEEB\uDEF0-\uDFFF]|\uD839[\uDC00-\uDCEB\uDCF0-\uDDED\uDDF0-\uDFFF]|\uD83A[\uDC00-\uDCCF\uDCD7-\uDD43\uDD4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/,Io=/[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g,To=new Map,Mo=new Map,Lo=null,No=null;function Oo(e){for(var t,n=[];null!==(t=Io.exec(e));){var i,u=t.index,r=m(t[0]);try{for(r.s();!(i=r.n()).done;){var a=i.value,o=To.get(a);o||(o=a.normalize("NFD").length,To.set(a,o)),n.push([o,u++])}}catch(e){r.e(e)}finally{r.f()}}var s,l=n.length>0;if(!l&&Lo)s=Lo;else if(l&&No)s=No;else{var c=Object.keys(Bo).join(""),d=(co||(co=" ¨ª¯²-µ¸-º¼-¾IJ-ijĿ-ŀʼnſDŽ-njDZ-dzʰ-ʸ˘-˝ˠ-ˤʹͺ;΄-΅·ϐ-ϖϰ-ϲϴ-ϵϹևٵ-ٸक़-य़ড়-ঢ়য়ਲ਼ਸ਼ਖ਼-ਜ਼ਫ਼ଡ଼-ଢ଼ำຳໜ-ໝ༌གྷཌྷདྷབྷཛྷཀྵჼᴬ-ᴮᴰ-ᴺᴼ-ᵍᵏ-ᵪᵸᶛ-ᶿẚ-ẛάέήίόύώΆ᾽-῁ΈΉ῍-῏ΐΊ῝-῟ΰΎ῭-`ΌΏ´-῾ - ‑‗․-… ″-‴‶-‷‼‾⁇-⁉⁗ ⁰-ⁱ⁴-₎ₐ-ₜ₨℀-℃℅-ℇ℉-ℓℕ-№ℙ-ℝ℠-™ℤΩℨK-ℭℯ-ℱℳ-ℹ℻-⅀ⅅ-ⅉ⅐-ⅿ↉∬-∭∯-∰〈-〉①-⓪⨌⩴-⩶⫝̸ⱼ-ⱽⵯ⺟⻳⼀-⿕ 〶〸-〺゛-゜ゟヿㄱ-ㆎ㆒-㆟㈀-㈞㈠-㉇㉐-㉾㊀-㏿ꚜ-ꚝꝰꟲ-ꟴꟸ-ꟹꭜ-ꭟꭩ豈-嗀塚晴凞-羽蘒諸逸-都飯-舘並-龎ff-stﬓ-ﬗיִײַ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-﷼︐-︙︰-﹄﹇-﹒﹔-﹦﹨-﹫ﹰ-ﹲﹴﹶ-ﻼ!-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ¢-₩"),co),h=["[".concat(c,"]"),"[".concat(d,"]"),"".concat("(?:゙|゚)","\\n"),"\\p{M}+(?:-\\n)?","".concat("\\p{Ll}-\\n(?=\\p{Ll})|\\p{Lu}-\\n(?=\\p{L})"),"\\S-\\n","".concat("(?:\\p{Ideographic}|[-ヿ])","\\n"),"\\n",l?"[\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f]":"\\u0000"];s=new RegExp(h.map(function(e){return"(".concat(e,")")}).join("|"),"gum"),l?No=s:Lo=s}for(var D=[];null!==(t=_o.exec(e));)D.push([t[0].length,t.index]);var f=e.normalize("NFD"),p=[0,0],v=0,g=0,F=0,E=0,C=0,A=!1;f=f.replace(s,function(e,t,i,u,r,a,o,s,l,c,d){var h,f;if(d-=E,t){for(var m=Bo[t],w=m.length,b=1;b<w;b++)p.push(d-F+b,F-b);return F-=w-1,m}if(i){var y=Mo.get(i);y||(y=i.normalize("NFKC"),Mo.set(i,y));for(var B=y.length,k=1;k<B;k++)p.push(d-F+k,F-k);return F-=B-1,y}if(u)return A=!0,d+C===(null===(f=D[v])||void 0===f?void 0:f[1])?++v:(p.push(d-1-F+1,F-1),F-=1,E+=1),p.push(d-F+1,F),E+=1,C+=1,u.charAt(0);if(r){var _,x=r.endsWith("\n"),S=x?r.length-2:r.length;A=!0;var P=S;d+C===(null===(_=D[v])||void 0===_?void 0:_[1])&&(P-=D[v][0],++v);for(var I=1;I<=P;I++)p.push(d-1-F+I,F-I);return F-=P,E+=P,x?(d+=S-1,p.push(d-F+1,1+F),F+=1,E+=1,C+=1,r.slice(0,S)):r}if(a){var T=a.length-2;return p.push(d-F+T,1+F),F+=1,E+=1,C+=1,a.slice(0,-2)}if(o)return E+=1,C+=1,o.slice(0,-1);if(s){var M=s.length-1;return p.push(d-F+M,F),E+=1,C+=1,s.slice(0,-1)}if(l)return p.push(d-F+1,F-1),F-=1,E+=1,C+=1," ";if(d+C===(null===(h=n[g])||void 0===h?void 0:h[1])){var L=n[g][0]-1;++g;for(var N=1;N<=L;N++)p.push(d-(F-N),F-N);F-=L,E+=L}return c}),p.push(f.length,F);for(var w=new Uint32Array(p.length>>1),b=new Int32Array(p.length>>1),y=0,B=p.length;y<B;y+=2)w[y>>1]=p[y],b[y>>1]=p[y+1];return[f,[w,b],A]}function jo(e,t,n){if(!e)return[t,n];var i=T(e,2),u=i[0],r=i[1],a=t,o=t+n-1,s=mt(u,function(e){return e>=a});u[s]>a&&--s;var l=mt(u,function(e){return e>=o},s);u[l]>o&&--l;var c=a+r[s];return[c,o+r[l]+1-c]}var Ro=new WeakMap,Wo=new WeakMap,Vo=new WeakMap,zo=new WeakSet,Uo=function(){return F(function e(t){var n=t.linkService,u=t.eventBus,r=t.updateMatchesCountOnProgress,a=void 0===r||r;d(this,e),v(this,zo),D(this,Ro,null),D(this,Wo,!0),D(this,Vo,0),this._linkService=n,this._eventBus=u,f(Wo,this,a),this.onIsPageVisible=null,i(zo,this,Go).call(this),u._on("find",i(zo,this,Ho).bind(this)),u._on("findbarclose",i(zo,this,rs).bind(this))},[{key:"highlightMatches",get:function(){return this._highlightMatches}},{key:"pageMatches",get:function(){return this._pageMatches}},{key:"pageMatchesLength",get:function(){return this._pageMatchesLength}},{key:"selected",get:function(){return this._selected}},{key:"state",get:function(){return h(Ro,this)}},{key:"setDocument",value:function(e){this._pdfDocument&&i(zo,this,Go).call(this),e&&(this._pdfDocument=e,this._firstPageCapability.resolve())}},{key:"scrollMatchIntoView",value:function(e){var t=e.element,n=void 0===t?null:t,i=e.selectedLeft,u=void 0===i?0:i,r=e.pageIndex,a=void 0===r?-1:r,o=e.matchIndex,s=void 0===o?-1:o;this._scrollMatches&&n&&(-1!==s&&s===this._selected.matchIdx&&-1!==a&&a===this._selected.pageIdx&&(this._scrollMatches=!1,ft(n,{top:-50,left:u+-400},!0)))}},{key:"match",value:function(e,t,n){var u=this,r=this._hasDiacritics[n],a=!1;if("string"==typeof e){var o=T(i(zo,this,Ko).call(this,e,r),2);a=o[0],e=o[1]}else e=e.sort().reverse().map(function(e){var t=T(i(zo,u,Ko).call(u,e,r),2),n=t[0],o=t[1];return a||(a=n),"(".concat(o,")")}).join("|");if(e){var s=h(Ro,this),l=s.caseSensitive,c=s.entireWord,d="g".concat(a?"u":"").concat(l?"":"i");e=new RegExp(e,d);for(var D,f=[];null!==(D=e.exec(t));)c&&!i(zo,this,$o).call(this,t,D.index,D[0].length)||f.push({index:D.index,length:D[0].length});return f}}}])}();function Ho(e){var t=this;if(e){var n=this._pdfDocument,u=e.type;(null===h(Ro,this)||i(zo,this,Xo).call(this,e))&&(this._dirtyMatch=!0),f(Ro,this,e),"highlightallchange"!==u&&i(zo,this,ss).call(this,yo),this._firstPageCapability.promise.then(function(){if(t._pdfDocument&&(!n||t._pdfDocument===n)){i(zo,t,Yo).call(t);var e=!t._highlightMatches,r=!!t._findTimeout;t._findTimeout&&(clearTimeout(t._findTimeout),t._findTimeout=null),u?t._dirtyMatch?i(zo,t,es).call(t):"again"===u?(i(zo,t,es).call(t),e&&h(Ro,t).highlightAll&&i(zo,t,Qo).call(t)):"highlightallchange"===u?(r?i(zo,t,es).call(t):t._highlightMatches=!0,i(zo,t,Qo).call(t)):i(zo,t,es).call(t):t._findTimeout=setTimeout(function(){i(zo,t,es).call(t),t._findTimeout=null},250)}})}}function Go(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],f(Vo,this,0),f(Ro,this,null),this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=Promise.withResolvers()}function Zo(e){var t=h(Ro,e).query;if("string"==typeof t){if(t!==e._rawQuery){e._rawQuery=t;var n=T(Oo(t),1);e._normalizedQuery=n[0]}return e._normalizedQuery}return(t||[]).filter(function(e){return!!e}).map(function(e){return Oo(e)[0]})}function Xo(e){var t,n,i=e.query,u=h(Ro,this).query,r=W(i);if(r!==W(u))return!0;if("string"===r){if(i!==u)return!0}else if(JSON.stringify(i)!==JSON.stringify(u))return!0;switch(e.type){case"again":var a=this._selected.pageIdx+1,o=this._linkService;return a>=1&&a<=o.pagesCount&&a!==o.page&&!(null===(t=null===(n=this.onIsPageVisible)||void 0===n?void 0:n.call(this,a))||void 0===t||t);case"highlightallchange":return!1}return!0}function $o(e,t,n){var i=e.slice(0,t).match(So);if(i){var u=e.charCodeAt(t),r=i[1].charCodeAt(0);if(Eo(u)===Eo(r))return!1}if(i=e.slice(t+n).match(Po)){var a=e.charCodeAt(t+n-1),o=i[1].charCodeAt(0);if(Eo(a)===Eo(o))return!1}return!0}function Ko(e,t){var n=h(Ro,this).matchDiacritics,i=!1,u="[ ]*";return(e=e.replaceAll(xo,function(e,u,r,a,o,s){return u?"[ ]*\\".concat(u,"[ ]*"):r?"[ ]*".concat(r,"[ ]*"):a?"[ ]+":n?o||s:o?ko.has(o.charCodeAt(0))?o:"":t?(i=!0,"".concat(s,"\\p{M}*")):s})).endsWith(u)&&(e=e.slice(0,e.length-4)),n&&t&&(Co||(Co=String.fromCharCode.apply(String,O(ko))),i=!0,e="".concat(e,"(?=[").concat(Co,"]|[^\\p{M}]|$)")),[i,e]}function qo(e){var t;if(h(Ro,this)){var n=p(zo,this,Zo);if(0!==n.length){var u=this._pageContents[e],r=this.match(n,u,e),a=this._pageMatches[e]=[],o=this._pageMatchesLength[e]=[],s=this._pageDiffs[e];null==r||r.forEach(function(e){var t=e.index,n=e.length,i=T(jo(s,t,n),2),u=i[0],r=i[1];r&&(a.push(u),o.push(r))}),h(Ro,this).highlightAll&&i(zo,this,Jo).call(this,e),this._resumePageIdx===e&&(this._resumePageIdx=null,i(zo,this,ns).call(this));var l=a.length;this._matchesCountTotal+=l,h(Wo,this)?l>0&&i(zo,this,os).call(this):f(Vo,this,(t=h(Vo,this),++t))===this._linkService.pagesCount&&i(zo,this,os).call(this)}}}function Yo(){var e=this;if(!(this._extractTextPromises.length>0))for(var t=Promise.resolve(),n={disableNormalization:!0},i=this._pdfDocument,u=function(u){var r=Promise.withResolvers(),a=r.promise,s=r.resolve;e._extractTextPromises[u]=a,t=t.then(o(k().m(function t(){return k().w(function(t){for(;;)switch(t.n){case 0:if(i===e._pdfDocument){t.n=1;break}return s(),t.a(2);case 1:return t.n=2,i.getPage(u+1).then(function(e){return e.getTextContent(n)}).then(function(t){var n,i=[],r=m(t.items);try{for(r.s();!(n=r.n()).done;){var a=n.value;i.push(a.str),a.hasEOL&&i.push("\n")}}catch(e){r.e(e)}finally{r.f()}var o=T(Oo(i.join("")),3);e._pageContents[u]=o[0],e._pageDiffs[u]=o[1],e._hasDiacritics[u]=o[2],s()},function(t){console.error("Unable to get text content for page ".concat(u+1),t),e._pageContents[u]="",e._pageDiffs[u]=null,e._hasDiacritics[u]=!1,s()});case 2:return t.a(2)}},t)})))},r=0,a=this._linkService.pagesCount;r<a;r++)u(r)}function Jo(e){this._scrollMatches&&this._selected.pageIdx===e&&(this._linkService.page=e+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:e})}function Qo(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}function es(){var e=this,t=h(Ro,this).findPrevious,n=this._linkService.page-1,u=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=n,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,f(Vo,this,0),this._matchesCountTotal=0,i(zo,this,Qo).call(this);for(var r=function(t){if(e._pendingFindMatches.has(t))return 1;e._pendingFindMatches.add(t),e._extractTextPromises[t].then(function(){e._pendingFindMatches.delete(t),i(zo,e,qo).call(e,t)})},a=0;a<u;a++)r(a)}if(0!==p(zo,this,Zo).length){if(!this._resumePageIdx){var o=this._offset;if(this._pagesToSearch=u,null!==o.matchIdx){var s=this._pageMatches[o.pageIdx].length;if(!t&&o.matchIdx+1<s||t&&o.matchIdx>0)return o.matchIdx=t?o.matchIdx-1:o.matchIdx+1,void i(zo,this,us).call(this,!0);i(zo,this,is).call(this,t)}i(zo,this,ns).call(this)}}else i(zo,this,ss).call(this,Ao)}function ts(e){var t=this._offset,n=e.length,u=h(Ro,this).findPrevious;return n?(t.matchIdx=u?n-1:0,i(zo,this,us).call(this,!0),!0):(i(zo,this,is).call(this,u),!!(t.wrapped&&(t.matchIdx=null,this._pagesToSearch<0))&&(i(zo,this,us).call(this,!1),!0))}function ns(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");var e=null;do{var t=this._offset.pageIdx;if(!(e=this._pageMatches[t])){this._resumePageIdx=t;break}}while(!i(zo,this,ts).call(this,e))}function is(e){var t=this._offset,n=this._linkService.pagesCount;t.pageIdx=e?t.pageIdx-1:t.pageIdx+1,t.matchIdx=null,this._pagesToSearch--,(t.pageIdx>=n||t.pageIdx<0)&&(t.pageIdx=e?n-1:0,t.wrapped=!0)}function us(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=wo,n=this._offset.wrapped;if(this._offset.wrapped=!1,e){var u=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=n?bo:Ao,-1!==u&&u!==this._selected.pageIdx&&i(zo,this,Jo).call(this,u)}i(zo,this,ss).call(this,t,h(Ro,this).findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,i(zo,this,Jo).call(this,this._selected.pageIdx))}function rs(e){var t=this,n=this._pdfDocument;this._firstPageCapability.promise.then(function(){!t._pdfDocument||n&&t._pdfDocument!==n||(t._findTimeout&&(clearTimeout(t._findTimeout),t._findTimeout=null),t._resumePageIdx&&(t._resumePageIdx=null,t._dirtyMatch=!0),i(zo,t,ss).call(t,Ao),t._highlightMatches=!1,i(zo,t,Qo).call(t))})}function as(){var e=this._selected,t=e.pageIdx,n=e.matchIdx,i=0,u=this._matchesCountTotal;if(-1!==n){for(var r=0;r<t;r++){var a;i+=(null===(a=this._pageMatches[r])||void 0===a?void 0:a.length)||0}i+=n+1}return(i<1||i>u)&&(i=u=0),{current:i,total:u}}function os(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:i(zo,this,as).call(this)})}function ss(e){var t,n,u,r,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(h(Wo,this)||h(Vo,this)===this._linkService.pagesCount&&e!==yo)&&this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:a,entireWord:null!==(t=null===(n=h(Ro,this))||void 0===n?void 0:n.entireWord)&&void 0!==t?t:null,matchesCount:i(zo,this,as).call(this),rawQuery:null!==(u=null===(r=h(Ro,this))||void 0===r?void 0:r.query)&&void 0!==u?u:null})}var ls=new WeakMap,cs=new WeakMap,ds=new WeakSet,hs=function(){return F(function e(t,n,u){var r=this;d(this,e),v(this,ds),D(this,ls,void 0),D(this,cs,new ResizeObserver(i(ds,this,Ds).bind(this))),this.opened=!1,this.bar=t.bar,this.toggleButton=t.toggleButton,this.findField=t.findField,this.highlightAll=t.highlightAllCheckbox,this.caseSensitive=t.caseSensitiveCheckbox,this.matchDiacritics=t.matchDiacriticsCheckbox,this.entireWord=t.entireWordCheckbox,this.findMsg=t.findMsg,this.findResultsCount=t.findResultsCount,this.findPreviousButton=t.findPreviousButton,this.findNextButton=t.findNextButton,this.eventBus=u,f(ls,this,n);var a=new Map([[this.highlightAll,"highlightallchange"],[this.caseSensitive,"casesensitivitychange"],[this.entireWord,"entirewordchange"],[this.matchDiacritics,"diacriticmatchingchange"]]);this.toggleButton.addEventListener("click",function(){r.toggle()}),this.findField.addEventListener("input",function(){r.dispatchEvent("")}),this.bar.addEventListener("keydown",function(e){var t=e.keyCode,n=e.shiftKey,i=e.target;switch(t){case 13:i===r.findField?r.dispatchEvent("again",n):a.has(i)&&(i.checked=!i.checked,r.dispatchEvent(a.get(i)));break;case 27:r.close()}}),this.findPreviousButton.addEventListener("click",function(){r.dispatchEvent("again",!0)}),this.findNextButton.addEventListener("click",function(){r.dispatchEvent("again",!1)});var o,s=m(a);try{var l=function(){var e=T(o.value,2),t=e[0],n=e[1];t.addEventListener("click",function(){r.dispatchEvent(n)})};for(s.s();!(o=s.n()).done;)l()}catch(e){s.e(e)}finally{s.f()}},[{key:"reset",value:function(){this.updateUIState()}},{key:"dispatchEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.eventBus.dispatch("find",{source:this,type:e,query:this.findField.value,caseSensitive:this.caseSensitive.checked,entireWord:this.entireWord.checked,highlightAll:this.highlightAll.checked,findPrevious:t,matchDiacritics:this.matchDiacritics.checked})}},{key:"updateUIState",value:function(e,t,n){var i=this.findField,u=this.findMsg,r="",a="";switch(e){case Ao:break;case yo:a="pending";break;case wo:r="pdfjs-find-not-found",a="notFound";break;case bo:r=t?"pdfjs-find-reached-top":"pdfjs-find-reached-bottom"}i.setAttribute("data-status",a),i.setAttribute("aria-invalid",e===wo),u.setAttribute("data-status",a),r?u.setAttribute("data-l10n-id",r):(u.removeAttribute("data-l10n-id"),u.textContent=""),this.updateResultsCount(n)}},{key:"updateResultsCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.current,n=void 0===t?0:t,i=e.total,u=void 0===i?0:i,r=this.findResultsCount;if(u>0){r.setAttribute("data-l10n-id",u>1e3?"pdfjs-find-match-count-limit":"pdfjs-find-match-count"),r.setAttribute("data-l10n-args",JSON.stringify({limit:1e3,current:n,total:u}))}else r.removeAttribute("data-l10n-id"),r.textContent=""}},{key:"open",value:function(){this.opened||(h(cs,this).observe(h(ls,this)),h(cs,this).observe(this.bar),this.opened=!0,Vt(this.toggleButton,!0,this.bar)),this.findField.select(),this.findField.focus()}},{key:"close",value:function(){this.opened&&(h(cs,this).disconnect(),this.opened=!1,Vt(this.toggleButton,!1,this.bar),this.eventBus.dispatch("findbarclose",{source:this}))}},{key:"toggle",value:function(){this.opened?this.close():this.open()}}])}();function Ds(){var e=this.bar;e.classList.remove("wrapContainers"),e.clientHeight>e.firstElementChild.clientHeight&&e.classList.add("wrapContainers")}function fs(){return document.location.hash}var ps=new WeakMap,vs=new WeakSet,gs=function(){return F(function e(t){var n=this,i=t.linkService,u=t.eventBus;d(this,e),v(this,vs),D(this,ps,null),this.linkService=i,this.eventBus=u,this._initialized=!1,this._fingerprint="",this.reset(),this.eventBus._on("pagesinit",function(){n._isPagesLoaded=!1,n.eventBus._on("pagesloaded",function(e){n._isPagesLoaded=!!e.pagesCount},{once:!0})})},[{key:"initialize",value:function(e){var t=e.fingerprint,n=e.resetHistory,u=void 0!==n&&n,r=e.updateUrl,a=void 0!==r&&r;if(t&&"string"==typeof t){this._initialized&&this.reset();var o=""!==this._fingerprint&&this._fingerprint!==t;this._fingerprint=t,this._updateUrl=!0===a,this._initialized=!0,i(vs,this,ks).call(this);var s=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=fs(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!i(vs,this,Cs).call(this,s,!0)||u){var l=i(vs,this,ws).call(this,!0),c=l.hash,d=l.page,h=l.rotation;return!c||o||u?void i(vs,this,Fs).call(this,null,!0):void i(vs,this,Fs).call(this,{hash:c,page:d,rotation:h},!0)}var D=s.destination;i(vs,this,As).call(this,D,s.uid,!0),void 0!==D.rotation&&(this._initialRotation=D.rotation),D.dest?(this._initialBookmark=JSON.stringify(D.dest),this._destination.page=null):D.hash?this._initialBookmark=D.hash:D.page&&(this._initialBookmark="page=".concat(D.page))}else console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.')}},{key:"reset",value:function(){this._initialized&&(i(vs,this,Bs).call(this),this._initialized=!1,i(vs,this,_s).call(this)),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}},{key:"push",value:function(e){var t=this,n=e.namedDest,u=void 0===n?null:n,r=e.explicitDest,a=e.pageNumber;if(this._initialized)if(u&&"string"!=typeof u)console.error("PDFHistory.push: "+'"'.concat(u,'" is not a valid namedDest parameter.'));else if(Array.isArray(r))if(i(vs,this,Es).call(this,a)||null===a&&!this._destination){var o=u||JSON.stringify(r);if(o){var s=!1;if(this._destination&&(function(e,t){if("string"!=typeof e||"string"!=typeof t)return!1;if(e===t)return!0;if(vt(e).get("nameddest")===t)return!0;return!1}(this._destination.hash,o)||function(e,t){function n(e,t){if(W(e)!==W(t))return!1;if(Array.isArray(e)||Array.isArray(t))return!1;if(null!==e&&"object"===W(e)&&null!==t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var i in e)if(!n(e[i],t[i]))return!1;return!0}return e===t||Number.isNaN(e)&&Number.isNaN(t)}if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(var i=0,u=e.length;i<u;i++)if(!n(e[i],t[i]))return!1;return!0}(this._destination.dest,r))){if(this._destination.page)return;s=!0}this._popStateInProgress&&!s||(i(vs,this,Fs).call(this,{dest:r,hash:o,page:a,rotation:this.linkService.rotation},s),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(function(){t._popStateInProgress=!1})))}}else console.error("PDFHistory.push: "+'"'.concat(a,'" is not a valid pageNumber parameter.'));else console.error("PDFHistory.push: "+'"'.concat(r,'" is not a valid explicitDest parameter.'))}},{key:"pushPage",value:function(e){var t,n=this;this._initialized&&(i(vs,this,Es).call(this,e)?(null===(t=this._destination)||void 0===t?void 0:t.page)!==e&&(this._popStateInProgress||(i(vs,this,Fs).call(this,{dest:null,hash:"page=".concat(e),page:e,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(function(){n._popStateInProgress=!1})))):console.error('PDFHistory.pushPage: "'.concat(e,'" is not a valid page number.')))}},{key:"pushCurrentPosition",value:function(){this._initialized&&!this._popStateInProgress&&i(vs,this,ms).call(this)}},{key:"back",value:function(){if(this._initialized&&!this._popStateInProgress){var e=window.history.state;i(vs,this,Cs).call(this,e)&&e.uid>0&&window.history.back()}}},{key:"forward",value:function(){if(this._initialized&&!this._popStateInProgress){var e=window.history.state;i(vs,this,Cs).call(this,e)&&e.uid<this._maxUid&&window.history.forward()}}},{key:"popStateInProgress",get:function(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}},{key:"initialBookmark",get:function(){return this._initialized?this._initialBookmark:null}},{key:"initialRotation",get:function(){return this._initialized?this._initialRotation:null}}])}();function Fs(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1]||!this._destination,u={fingerprint:this._fingerprint,uid:n?this._uid:this._uid+1,destination:e};if(i(vs,this,As).call(this,e,u.uid),this._updateUrl&&null!=e&&e.hash){var r=document.location,a=r.href;"file:"!==r.protocol&&(t=He(a,e.hash))}n?window.history.replaceState(u,"",t):window.history.pushState(u,"",t)}function ms(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._position){var t=this._position;if(e&&((t=Object.assign(Object.create(null),this._position)).temporary=!0),this._destination){if(this._destination.temporary)i(vs,this,Fs).call(this,t,!0);else if(this._destination.hash!==t.hash&&(this._destination.page||!(this._numPositionUpdates<=50))){var n=!1;if(this._destination.page>=t.first&&this._destination.page<=t.page){if(void 0!==this._destination.dest||!this._destination.first)return;n=!0}i(vs,this,Fs).call(this,t,n)}}else i(vs,this,Fs).call(this,t)}}function Es(e){return Number.isInteger(e)&&e>0&&e<=this.linkService.pagesCount}function Cs(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return!1;if(e.fingerprint!==this._fingerprint){if(!t)return!1;if("string"!=typeof e.fingerprint||e.fingerprint.length!==this._fingerprint.length)return!1;var n=T(performance.getEntriesByType("navigation"),1)[0];if("reload"!==(null==n?void 0:n.type))return!1}return!(!Number.isInteger(e.uid)||e.uid<0)&&(null!==e.destination&&"object"===W(e.destination))}function As(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),n&&null!=e&&e.temporary&&delete e.temporary,this._destination=e,this._uid=t,this._maxUid=Math.max(this._maxUid,t),this._numPositionUpdates=0}function ws(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=unescape(fs()).substring(1),n=vt(t),u=n.get("nameddest")||"",r=0|n.get("page");return(!i(vs,this,Es).call(this,r)||e&&u.length>0)&&(r=null),{hash:t,page:r,rotation:this.linkService.rotation}}function bs(e){var t=this,n=e.location;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:n.pdfOpenParams.substring(1),page:this.linkService.page,first:n.pageNumber,rotation:n.rotation},this._popStateInProgress||(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(function(){t._popStateInProgress||i(vs,t,ms).call(t,!0),t._updateViewareaTimeout=null},1e3))}function ys(e){var t=this,n=e.state,u=fs(),r=this._currentHash!==u;if(this._currentHash=u,n){if(i(vs,this,Cs).call(this,n)){this._popStateInProgress=!0,r&&(this._blockHashChange++,hn({target:window,name:"hashchange",delay:1e3}).then(function(){t._blockHashChange--}));var a=n.destination;i(vs,this,As).call(this,a,n.uid,!0),yt(a.rotation)&&(this.linkService.rotation=a.rotation),a.dest?this.linkService.goToDestination(a.dest):a.hash?this.linkService.setHash(a.hash):a.page&&(this.linkService.page=a.page),Promise.resolve().then(function(){t._popStateInProgress=!1})}}else{this._uid++;var o=i(vs,this,ws).call(this),s=o.hash,l=o.page,c=o.rotation;i(vs,this,Fs).call(this,{hash:s,page:l,rotation:c},!0)}}function Bs(){this._destination&&!this._destination.temporary||i(vs,this,ms).call(this)}function ks(){if(!h(ps,this)){f(ps,this,new AbortController);var e=h(ps,this).signal;this.eventBus._on("updateviewarea",i(vs,this,bs).bind(this),{signal:e}),window.addEventListener("popstate",i(vs,this,ys).bind(this),{signal:e}),window.addEventListener("pagehide",i(vs,this,Bs).bind(this),{signal:e})}}function _s(){var e;null===(e=h(ps,this))||void 0===e||e.abort(),f(ps,this,null)}var xs=new WeakSet,Ss=function(e){function t(e){var n;return d(this,t),v(n=l(this,t,[e]),xs),n.eventBus._on("optionalcontentconfigchanged",function(e){i(xs,n,Ps).call(n,e.promise)}),n.eventBus._on("resetlayers",function(){i(xs,n,Ps).call(n)}),n.eventBus._on("togglelayerstree",n._toggleAllTreeItems.bind(n)),n}return w(t,e),F(t,[{key:"reset",value:function(){var e;L(t,"reset",this,3)([]),this._optionalContentConfig=null,null===(e=this._optionalContentVisibility)||void 0===e||e.clear(),this._optionalContentVisibility=null}},{key:"_dispatchEvent",value:function(e){this.eventBus.dispatch("layersloaded",{source:this,layersCount:e})}},{key:"_bindLink",value:function(e,t){var n=this,i=t.groupId,u=t.input,r=function(){var e=u.checked;n._optionalContentConfig.setVisibility(i,e);var t=n._optionalContentVisibility.get(i);t&&(t.visible=e),n.eventBus.dispatch("optionalcontentconfig",{source:n,promise:Promise.resolve(n._optionalContentConfig)})};e.onclick=function(t){return t.target===u?(r(),!0):t.target!==e||(u.checked=!u.checked,r(),!1)}}},{key:"_setNestedName",value:function(e,t){var n=t.name,i=void 0===n?null:n;"string"!=typeof i?(e.setAttribute("data-l10n-id","pdfjs-additional-layers"),e.style.fontStyle="italic",this._l10n.translateOnce(e)):e.textContent=this._normalizeTextContent(i)}},{key:"_addToggleButton",value:function(e,n){var i=n.name,u=void 0===i?null:i;L(t,"_addToggleButton",this,3)([e,null===u])}},{key:"_toggleAllTreeItems",value:function(){this._optionalContentConfig&&L(t,"_toggleAllTreeItems",this,3)([])}},{key:"render",value:function(e){var t=e.optionalContentConfig,n=e.pdfDocument;this._optionalContentConfig&&this.reset(),this._optionalContentConfig=t||null,this._pdfDocument=n||null;var i=null==t?void 0:t.getOrder();if(i){this._optionalContentVisibility=new Map;for(var u=document.createDocumentFragment(),r=[{parent:u,groups:i}],a=0,o=!1;r.length>0;){var s,l=r.shift(),c=m(l.groups);try{for(c.s();!(s=c.n()).done;){var d=s.value,h=document.createElement("div");h.className="treeItem";var D=document.createElement("a");if(h.append(D),"object"===W(d)){o=!0,this._addToggleButton(h,d),this._setNestedName(D,d);var f=document.createElement("div");f.className="treeItems",h.append(f),r.push({parent:f,groups:d.order})}else{var p=t.getGroup(d),v=document.createElement("input");this._bindLink(D,{groupId:d,input:v}),v.type="checkbox",v.checked=p.visible,this._optionalContentVisibility.set(d,{input:v,visible:v.checked});var g=document.createElement("label");g.textContent=this._normalizeTextContent(p.name),g.append(v),D.append(g),a++}l.parent.append(h)}}catch(e){c.e(e)}finally{c.f()}}this._finishRendering(u,a,o)}else this._dispatchEvent(0)}}])}(xa);function Ps(){return Is.apply(this,arguments)}function Is(){return Is=o(k().m(function e(){var t,n,i,u,r,a,o,s,l,c=arguments;return k().w(function(e){for(;;)switch(e.n){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:null,this._optionalContentConfig){e.n=1;break}return e.a(2);case 1:return n=this._pdfDocument,e.n=2,t||n.getOptionalContentConfig({intent:"display"});case 2:if(i=e.v,n===this._pdfDocument){e.n=3;break}return e.a(2);case 3:if(!t){e.n=4;break}u=m(this._optionalContentVisibility);try{for(u.s();!(r=u.n()).done;)a=T(r.value,2),o=a[0],s=a[1],(l=i.getGroup(o))&&s.visible!==l.visible&&(s.input.checked=s.visible=!s.visible)}catch(e){u.e(e)}finally{u.f()}return e.a(2);case 4:this.eventBus.dispatch("optionalcontentconfig",{source:this,promise:Promise.resolve(i)}),this.render({optionalContentConfig:i,pdfDocument:this._pdfDocument});case 5:return e.a(2)}},e,this)})),Is.apply(this,arguments)}var Ts=function(e){function t(e){var n;return d(this,t),(n=l(this,t,[e])).linkService=e.linkService,n.downloadManager=e.downloadManager,n.eventBus._on("toggleoutlinetree",n._toggleAllTreeItems.bind(n)),n.eventBus._on("currentoutlineitem",n._currentOutlineItem.bind(n)),n.eventBus._on("pagechanging",function(e){n._currentPageNumber=e.pageNumber}),n.eventBus._on("pagesloaded",function(e){var t;n._isPagesLoaded=!!e.pagesCount,null===(t=n._currentOutlineItemCapability)||void 0===t||t.resolve(n._isPagesLoaded)}),n.eventBus._on("sidebarviewchanged",function(e){n._sidebarView=e.view}),n}return w(t,e),F(t,[{key:"reset",value:function(){var e;L(t,"reset",this,3)([]),this._outline=null,this._pageNumberToDestHashCapability=null,this._currentPageNumber=1,this._isPagesLoaded=null,null===(e=this._currentOutlineItemCapability)||void 0===e||e.resolve(!1),this._currentOutlineItemCapability=null}},{key:"_dispatchEvent",value:function(e){var t;this._currentOutlineItemCapability=Promise.withResolvers(),0===e||null!==(t=this._pdfDocument)&&void 0!==t&&t.loadingParams.disableAutoFetch?this._currentOutlineItemCapability.resolve(!1):null!==this._isPagesLoaded&&this._currentOutlineItemCapability.resolve(this._isPagesLoaded),this.eventBus.dispatch("outlineloaded",{source:this,outlineCount:e,currentOutlineItemPromise:this._currentOutlineItemCapability.promise})}},{key:"_bindLink",value:function(e,t){var n=this,i=t.url,u=t.newWindow,r=t.action,a=t.attachment,o=t.dest,s=t.setOCGState,l=this.linkService;if(i)l.addLinkAttributes(e,i,u);else{if(r)return e.href=l.getAnchorUrl(""),void(e.onclick=function(){return l.executeNamedAction(r),!1});if(a)return e.href=l.getAnchorUrl(""),void(e.onclick=function(){return n.downloadManager.openOrDownloadData(a.content,a.filename),!1});if(s)return e.href=l.getAnchorUrl(""),void(e.onclick=function(){return l.executeSetOCGState(s),!1});e.href=l.getDestinationHash(o),e.onclick=function(e){return n._updateCurrentTreeItem(e.target.parentNode),o&&l.goToDestination(o),!1}}}},{key:"_setStyles",value:function(e,t){var n=t.bold,i=t.italic;n&&(e.style.fontWeight="bold"),i&&(e.style.fontStyle="italic")}},{key:"_addToggleButton",value:function(e,n){var i=n.count,u=n.items,r=!1;if(i<0){var a=u.length;if(a>0)for(var o=O(u);o.length>0;){var s=o.shift(),l=s.count,c=s.items;l>0&&c.length>0&&(a+=c.length,o.push.apply(o,O(c)))}Math.abs(i)===a&&(r=!0)}L(t,"_addToggleButton",this,3)([e,r])}},{key:"_toggleAllTreeItems",value:function(){this._outline&&L(t,"_toggleAllTreeItems",this,3)([])}},{key:"render",value:function(e){var t=e.outline,n=e.pdfDocument;if(this._outline&&this.reset(),this._outline=t||null,this._pdfDocument=n||null,t){for(var i=document.createDocumentFragment(),u=[{parent:i,items:t}],r=0,a=!1;u.length>0;){var o,s=u.shift(),l=m(s.items);try{for(l.s();!(o=l.n()).done;){var c=o.value,d=document.createElement("div");d.className="treeItem";var h=document.createElement("a");if(this._bindLink(h,c),this._setStyles(h,c),h.textContent=this._normalizeTextContent(c.title),d.append(h),c.items.length>0){a=!0,this._addToggleButton(d,c);var D=document.createElement("div");D.className="treeItems",d.append(D),u.push({parent:D,items:c.items})}s.parent.append(d),r++}}catch(e){l.e(e)}finally{l.f()}}this._finishRendering(i,r,a)}else this._dispatchEvent(0)}},{key:"_currentOutlineItem",value:(i=o(k().m(function e(){var t,n,i,u;return k().w(function(e){for(;;)switch(e.n){case 0:if(this._isPagesLoaded){e.n=1;break}throw new Error("_currentOutlineItem: All pages have not been loaded.");case 1:if(this._outline&&this._pdfDocument){e.n=2;break}return e.a(2);case 2:return e.n=3,this._getPageNumberToDestHash(this._pdfDocument);case 3:if(t=e.v){e.n=4;break}return e.a(2);case 4:if(this._updateCurrentTreeItem(null),this._sidebarView===it){e.n=5;break}return e.a(2);case 5:n=this._currentPageNumber;case 6:if(!(n>0)){e.n=10;break}if(i=t.get(n)){e.n=7;break}return e.a(3,9);case 7:if(u=this.container.querySelector('a[href="'.concat(i,'"]'))){e.n=8;break}return e.a(3,9);case 8:return this._scrollToCurrentTreeItem(u.parentNode),e.a(3,10);case 9:n--,e.n=6;break;case 10:return e.a(2)}},e,this)})),function(){return i.apply(this,arguments)})},{key:"_getPageNumberToDestHash",value:(n=o(k().m(function e(t){var n,i,u,r,a,o,s,l,c,d,h,D,f,p,v,g;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!this._pageNumberToDestHashCapability){e.n=1;break}return e.a(2,this._pageNumberToDestHashCapability.promise);case 1:this._pageNumberToDestHashCapability=Promise.withResolvers(),n=new Map,i=new Map,u=[{nesting:0,items:this._outline}];case 2:if(!(u.length>0)){e.n=14;break}r=u.shift(),a=r.nesting,o=m(r.items),e.p=3,o.s();case 4:if((s=o.n()).done){e.n=10;break}if(l=s.value,c=l.dest,d=l.items,h=void 0,D=void 0,"string"!=typeof c){e.n=7;break}return e.n=5,t.getDestination(c);case 5:if(h=e.v,t===this._pdfDocument){e.n=6;break}return e.a(2,null);case 6:e.n=8;break;case 7:h=c;case 8:Array.isArray(h)&&(f=T(h,1),(p=f[0])&&"object"===W(p)?D=t.cachedPageNumber(p):Number.isInteger(p)&&(D=p+1),Number.isInteger(D)&&(!n.has(D)||a>i.get(D))&&(v=this.linkService.getDestinationHash(c),n.set(D,v),i.set(D,a))),d.length>0&&u.push({nesting:a+1,items:d});case 9:e.n=4;break;case 10:e.n=12;break;case 11:e.p=11,g=e.v,o.e(g);case 12:return e.p=12,o.f(),e.f(12);case 13:e.n=2;break;case 14:return this._pageNumberToDestHashCapability.resolve(n.size>0?n:null),e.a(2,this._pageNumberToDestHashCapability.promise)}},e,this,[[3,11,12,13]])})),function(e){return n.apply(this,arguments)})}]);var n,i}(xa),Ms="pdfPresentationMode",Ls="pdfPresentationModeControls",Ns=Math.PI/6,Os=new WeakMap,js=new WeakMap,Rs=new WeakMap,Ws=new WeakMap,Vs=new WeakSet,zs=function(){return F(function e(t){var n=t.container,i=t.pdfViewer,u=t.eventBus;d(this,e),v(this,Vs),D(this,Os,qe),D(this,js,null),D(this,Rs,null),D(this,Ws,null),this.container=n,this.pdfViewer=i,this.eventBus=u,this.contextMenuOpen=!1,this.mouseScrollTimeStamp=0,this.mouseScrollDelta=0,this.touchSwipeState=null},[{key:"request",value:(e=o(k().m(function e(){var t,n,u;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t=this.container,n=this.pdfViewer,!this.active&&n.pagesCount&&t.requestFullscreen){e.n=1;break}return e.a(2,!1);case 1:return i(Vs,this,tl).call(this),i(Vs,this,Hs).call(this,Je),u=t.requestFullscreen(),f(js,this,{pageNumber:n.currentPageNumber,scaleValue:n.currentScaleValue,scrollMode:n.scrollMode,spreadMode:null,annotationEditorMode:null}),n.spreadMode===ct.NONE||n.pageViewsReady&&n.hasEqualPageSizes||(console.warn("Ignoring Spread modes when entering PresentationMode, since the document may contain varying page sizes."),h(js,this).spreadMode=n.spreadMode),n.annotationEditorMode!==ue.DISABLE&&(h(js,this).annotationEditorMode=n.annotationEditorMode),e.p=2,e.n=3,u;case 3:return n.focus(),e.a(2,!0);case 4:return e.p=4,e.v,i(Vs,this,nl).call(this),i(Vs,this,Hs).call(this,Ye),e.a(2,!1)}},e,this,[[2,4]])})),function(){return e.apply(this,arguments)})},{key:"active",get:function(){return h(Os,this)===Je||h(Os,this)===Qe}}]);var e}();function Us(e){if(this.active){e.preventDefault();var t=function(e){var t=e.deltaMode,n=bt(e);return t===WheelEvent.DOM_DELTA_PIXEL?n/=900:t===WheelEvent.DOM_DELTA_LINE&&(n/=30),n}(e),n=Date.now(),u=this.mouseScrollTimeStamp;if(!(n>u&&n-u<50)&&((this.mouseScrollDelta>0&&t<0||this.mouseScrollDelta<0&&t>0)&&i(Vs,this,Ys).call(this),this.mouseScrollDelta+=t,Math.abs(this.mouseScrollDelta)>=.1)){var r=this.mouseScrollDelta;i(Vs,this,Ys).call(this),(r>0?this.pdfViewer.previousPage():this.pdfViewer.nextPage())&&(this.mouseScrollTimeStamp=n)}}}function Hs(e){f(Os,this,e),this.eventBus.dispatch("presentationmodechanged",{source:this,state:e})}function Gs(){var e=this;i(Vs,this,Hs).call(this,Qe),this.container.classList.add(Ms),setTimeout(function(){e.pdfViewer.scrollMode=lt.PAGE,null!==h(js,e).spreadMode&&(e.pdfViewer.spreadMode=ct.NONE),e.pdfViewer.currentPageNumber=h(js,e).pageNumber,e.pdfViewer.currentScaleValue="page-fit",null!==h(js,e).annotationEditorMode&&(e.pdfViewer.annotationEditorMode={mode:ue.NONE})},0),i(Vs,this,Qs).call(this),i(Vs,this,Ks).call(this),this.contextMenuOpen=!1,document.getSelection().empty()}function Zs(){var e=this,t=this.pdfViewer.currentPageNumber;this.container.classList.remove(Ms),setTimeout(function(){i(Vs,e,nl).call(e),i(Vs,e,Hs).call(e,Ye),e.pdfViewer.scrollMode=h(js,e).scrollMode,null!==h(js,e).spreadMode&&(e.pdfViewer.spreadMode=h(js,e).spreadMode),e.pdfViewer.currentScaleValue=h(js,e).scaleValue,e.pdfViewer.currentPageNumber=t,null!==h(js,e).annotationEditorMode&&(e.pdfViewer.annotationEditorMode={mode:h(js,e).annotationEditorMode}),f(js,e,null)},0),i(Vs,this,el).call(this),i(Vs,this,qs).call(this),i(Vs,this,Ys).call(this),this.contextMenuOpen=!1}function Xs(e){var t;if(this.contextMenuOpen)return this.contextMenuOpen=!1,void e.preventDefault();0===e.button&&(e.target.href&&null!==(t=e.target.parentNode)&&void 0!==t&&t.hasAttribute("data-internal-link")||(e.preventDefault(),e.shiftKey?this.pdfViewer.previousPage():this.pdfViewer.nextPage()))}function $s(){this.contextMenuOpen=!0}function Ks(){var e=this;this.controlsTimeout?clearTimeout(this.controlsTimeout):this.container.classList.add(Ls),this.controlsTimeout=setTimeout(function(){e.container.classList.remove(Ls),delete e.controlsTimeout},3e3)}function qs(){this.controlsTimeout&&(clearTimeout(this.controlsTimeout),this.container.classList.remove(Ls),delete this.controlsTimeout)}function Ys(){this.mouseScrollTimeStamp=0,this.mouseScrollDelta=0}function Js(e){if(this.active)if(e.touches.length>1)this.touchSwipeState=null;else switch(e.type){case"touchstart":this.touchSwipeState={startX:e.touches[0].pageX,startY:e.touches[0].pageY,endX:e.touches[0].pageX,endY:e.touches[0].pageY};break;case"touchmove":if(null===this.touchSwipeState)return;this.touchSwipeState.endX=e.touches[0].pageX,this.touchSwipeState.endY=e.touches[0].pageY,e.preventDefault();break;case"touchend":if(null===this.touchSwipeState)return;var t=0,n=this.touchSwipeState.endX-this.touchSwipeState.startX,i=this.touchSwipeState.endY-this.touchSwipeState.startY,u=Math.abs(Math.atan2(i,n));Math.abs(n)>50&&(u<=Ns||u>=Math.PI-Ns)?t=n:Math.abs(i)>50&&Math.abs(u-Math.PI/2)<=Ns&&(t=i),t>0?this.pdfViewer.previousPage():t<0&&this.pdfViewer.nextPage()}}function Qs(){if(!h(Ws,this)){f(Ws,this,new AbortController);var e=h(Ws,this).signal,t=i(Vs,this,Js).bind(this);window.addEventListener("mousemove",i(Vs,this,Ks).bind(this),{signal:e}),window.addEventListener("mousedown",i(Vs,this,Xs).bind(this),{signal:e}),window.addEventListener("wheel",i(Vs,this,Us).bind(this),{passive:!1,signal:e}),window.addEventListener("keydown",i(Vs,this,Ys).bind(this),{signal:e}),window.addEventListener("contextmenu",i(Vs,this,$s).bind(this),{signal:e}),window.addEventListener("touchstart",t,{signal:e}),window.addEventListener("touchmove",t,{signal:e}),window.addEventListener("touchend",t,{signal:e})}}function el(){var e;null===(e=h(Ws,this))||void 0===e||e.abort(),f(Ws,this,null)}function tl(){var e=this;h(Rs,this)||(f(Rs,this,new AbortController),window.addEventListener("fullscreenchange",function(){document.fullscreenElement?i(Vs,e,Gs).call(e):i(Vs,e,Zs).call(e)},{signal:h(Rs,this).signal}))}function nl(){var e;null===(e=h(Rs,this))||void 0===e||e.abort(),f(Rs,this,null)}Q(1148);var il=function(){return F(function e(t){var n=t.pdfPage,i=t.annotationStorage,u=void 0===i?null:i,r=t.linkService,a=t.xfaHtml,o=void 0===a?null:a;d(this,e),this.pdfPage=n,this.annotationStorage=u,this.linkService=r,this.xfaHtml=o,this.div=null,this._cancelled=!1},[{key:"render",value:(e=o(k().m(function e(t){var n,i,u,r,a,o;return k().w(function(e){for(;;)switch(e.n){case 0:if(n=t.viewport,i=t.intent,"print"!==(u=void 0===i?"display":i)){e.n=1;break}return r={viewport:n.clone({dontFlip:!0}),div:this.div,xfaHtml:this.xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:u},this.div=document.createElement("div"),r.div=this.div,e.a(2,Xe.render(r));case 1:return e.n=2,this.pdfPage.getXfa();case 2:if(a=e.v,!this._cancelled&&a){e.n=3;break}return e.a(2,{textDivs:[]});case 3:if(o={viewport:n.clone({dontFlip:!0}),div:this.div,xfaHtml:a,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:u},!this.div){e.n=4;break}return e.a(2,Xe.update(o));case 4:return this.div=document.createElement("div"),o.div=this.div,e.a(2,Xe.render(o))}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"cancel",value:function(){this._cancelled=!0}},{key:"hide",value:function(){this.div&&(this.div.hidden=!0)}}]);var e}();var ul=null,rl=null,al=null,ol={initialized:!1};var sl,ll=function(){return F(function e(t){var n=t.pdfDocument,i=t.pagesOverview,u=t.printContainer,r=t.printResolution,a=t.printAnnotationStoragePromise,o=void 0===a?null:a;d(this,e),this.pdfDocument=n,this.pagesOverview=i,this.printContainer=u,this._printResolution=r||150,this._optionalContentConfigPromise=n.getOptionalContentConfig({intent:"print"}),this._printAnnotationStoragePromise=o||Promise.resolve(),this.currentPage=-1,this.scratchCanvas=document.createElement("canvas")},[{key:"layout",value:function(){this.throwIfInactive();var e=document.querySelector("body");e.setAttribute("data-pdfjsprinting",!0);var t=this.pagesOverview[0],n=t.width,i=t.height;this.pagesOverview.every(function(e){return e.width===n&&e.height===i})||console.warn("Not all pages have the same size. The printed result may be incorrect!"),this.pageStyleSheet=document.createElement("style"),this.pageStyleSheet.textContent="@page { size: ".concat(n,"pt ").concat(i,"pt;}"),e.append(this.pageStyleSheet)}},{key:"destroy",value:function(){ul===this&&(this.printContainer.textContent="",document.querySelector("body").removeAttribute("data-pdfjsprinting"),this.pageStyleSheet&&(this.pageStyleSheet.remove(),this.pageStyleSheet=null),this.scratchCanvas.width=this.scratchCanvas.height=0,this.scratchCanvas=null,ul=null,pl().then(function(){al.closeIfActive(rl)}))}},{key:"renderPages",value:function(){var e=this;if(this.pdfDocument.isPureXfa)return function(e,t){var n,i=t.allXfaHtml,u=new ln,r=Math.round(100*Me.PDF_TO_CSS_UNITS)/100,a=m(i.children);try{for(a.s();!(n=a.n()).done;){var o=n.value,s=document.createElement("div");s.className="xfaPrintedPage",e.append(s);var l=new il({pdfPage:null,annotationStorage:t.annotationStorage,linkService:u,xfaHtml:o}),c=Ee(o,{scale:r});l.render({viewport:c,intent:"print"}),s.append(l.div)}}catch(e){a.e(e)}finally{a.f()}}(this.printContainer,this.pdfDocument),Promise.resolve();var t=this.pagesOverview.length,n=function(i,u){if(e.throwIfInactive(),++e.currentPage>=t)return Dl(t,t),void i();var r=e.currentPage;Dl(r,t),function(e,t,n,i,u,r,a){var o=ul.scratchCanvas,s=u/Me.PDF;o.width=Math.floor(i.width*s),o.height=Math.floor(i.height*s);var l=o.getContext("2d");return l.save(),l.fillStyle="rgb(255, 255, 255)",l.fillRect(0,0,o.width,o.height),l.restore(),Promise.all([t.getPage(n),a]).then(function(e){var t=T(e,2),n=t[0],u=t[1],a={canvasContext:l,transform:[s,0,0,s,0,0],viewport:n.getViewport({scale:1,rotation:i.rotation}),intent:"print",annotationMode:oe.ENABLE_STORAGE,optionalContentConfigPromise:r,printAnnotationStorage:u};return n.render(a).promise.catch(function(e){throw e instanceof Le||console.error(e),e})})}(0,e.pdfDocument,r+1,e.pagesOverview[r],e._printResolution,e._optionalContentConfigPromise,e._printAnnotationStoragePromise).then(e.useRenderedPage.bind(e)).then(function(){n(i,u)},u)};return new Promise(n)}},{key:"useRenderedPage",value:function(){this.throwIfInactive();var e=document.createElement("img");this.scratchCanvas.toBlob(function(t){e.src=URL.createObjectURL(t)});var t=document.createElement("div");t.className="printedPage",t.append(e),this.printContainer.append(t);var n=Promise.withResolvers(),i=n.promise,u=n.resolve,r=n.reject;return e.onload=u,e.onerror=r,i.catch(function(){}).then(function(){URL.revokeObjectURL(e.src)}),i}},{key:"performPrint",value:function(){var e=this;return this.throwIfInactive(),new Promise(function(t){setTimeout(function(){e.active?(cl.call(window),setTimeout(t,20)):t()},0)})}},{key:"active",get:function(){return this===ul}},{key:"throwIfInactive",value:function(){if(!this.active)throw new Error("This print request was cancelled or completed.")}}])}(),cl=window.print;function dl(e){var t=new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:"custom"});window.dispatchEvent(t)}function hl(){ul&&(ul.destroy(),dl("afterprint"))}function Dl(e,t){rl||(rl=document.getElementById("printServiceDialog"));var n=Math.round(100*e/t),i=rl.querySelector("progress"),u=rl.querySelector(".relative-progress");i.value=n,u.setAttribute("data-l10n-args",JSON.stringify({progress:n}))}if(window.print=function(){if(ul)console.warn("Ignored window.print() because of a pending print job.");else{pl().then(function(){ul&&al.open(rl)});try{dl("beforeprint")}finally{if(ul){var e=ul;ul.renderPages().then(function(){return e.performPrint()}).catch(function(){}).then(function(){e.active&&hl()})}else console.error("Expected print service to be initialized."),pl().then(function(){al.closeIfActive(rl)})}}},window.addEventListener("keydown",function(e){80!==e.keyCode||!e.ctrlKey&&!e.metaKey||e.altKey||e.shiftKey&&!window.chrome&&!window.opera||(window.print(),e.preventDefault(),e.stopImmediatePropagation())},!0),"onbeforeprint"in window){var fl=function(e){"custom"!==e.detail&&e.stopImmediatePropagation()};window.addEventListener("beforeprint",fl),window.addEventListener("afterprint",fl)}function pl(){if(!sl){if(!(al=ol.overlayManager))throw new Error("The overlay manager has not yet been initialized.");rl||(rl=document.getElementById("printServiceDialog")),sl=al.register(rl,!0),document.getElementById("printCancel").onclick=hl,rl.addEventListener("close",hl)}return sl}var vl=function(){return F(function e(){d(this,e)},null,[{key:"initGlobals",value:function(e){ol=e}},{key:"supportsPrinting",get:function(){return je(this,"supportsPrinting",!0)}},{key:"createPrintService",value:function(e){if(ul)throw new Error("The print service is created and active.");return ul=new ll(e)}}])}(),gl=function(){return F(function e(){var t=this;d(this,e),this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1,Object.defineProperty(this,"hasViewer",{value:function(){return!!t.pdfViewer}})},[{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setThumbnailViewer",value:function(e){this.pdfThumbnailViewer=e}},{key:"isHighestPriority",value:function(e){return this.highestPriorityPage===e.renderingId}},{key:"renderHighestPriority",value:function(e){var t;this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(e)||this.isThumbnailViewEnabled&&null!==(t=this.pdfThumbnailViewer)&&void 0!==t&&t.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4))}},{key:"getHighestPriority",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=e.views,a=r.length;if(0===a)return null;for(var o=0;o<a;o++){var s=r[o].view;if(!this.isViewFinished(s))return s}if(!u)for(var l=0;l<a;l++){var c=r[l].view.detailView;if(c&&!this.isViewFinished(c))return c}var d=e.first.id,h=e.last.id;if(h-d+1>a)for(var D=e.ids,f=1,p=h-d;f<p;f++){var v=n?d+f:h-f;if(!D.has(v)){var g=t[v-1];if(!this.isViewFinished(g))return g}}var F=n?h:d-2,m=t[F];return m&&!this.isViewFinished(m)||i&&(m=t[F+=n?1:-1])&&!this.isViewFinished(m)?m:null}},{key:"isViewFinished",value:function(e){return e.renderingState===Ke.FINISHED}},{key:"renderView",value:function(e){var t=this;switch(e.renderingState){case Ke.FINISHED:return!1;case Ke.PAUSED:this.highestPriorityPage=e.renderingId,e.resume();break;case Ke.RUNNING:this.highestPriorityPage=e.renderingId;break;case Ke.INITIAL:this.highestPriorityPage=e.renderingId,e.draw().finally(function(){t.renderHighestPriority()}).catch(function(e){e instanceof Le||console.error("renderView:",e)})}return!0}}])}(),Fl=new WeakMap,ml=new WeakMap,El=new WeakMap,Cl=new WeakMap,Al=new WeakMap,wl=new WeakMap,bl=new WeakMap,yl=new WeakMap,Bl=new WeakMap,kl=new WeakMap,_l=new WeakMap,xl=new WeakSet,Sl=function(){return F(function e(t){var n=t.eventBus,i=t.externalServices,u=void 0===i?null:i,r=t.docProperties,a=void 0===r?null:r;d(this,e),v(this,xl),D(this,Fl,null),D(this,ml,null),D(this,El,null),D(this,Cl,null),D(this,Al,null),D(this,wl,null),D(this,bl,null),D(this,yl,null),D(this,Bl,!1),D(this,kl,null),D(this,_l,null),f(Al,this,n),f(wl,this,u),f(El,this,a)},[{key:"setViewer",value:function(e){f(yl,this,e)}},{key:"setDocument",value:(r=o(k().m(function e(t){var n,u,r,a,s,l,c,d,D,p,v,g,F=this;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!h(bl,this)){e.n=1;break}return e.n=1,i(xl,this,jl).call(this);case 1:if(f(bl,this,t),t){e.n=2;break}return e.a(2);case 2:return e.n=3,Promise.all([t.getFieldObjects(),t.getCalculationOrderIds(),t.getJSActions()]);case 3:if(u=e.v,r=T(u,3),a=r[0],s=r[1],l=r[2],a||l){e.n=5;break}return e.n=4,i(xl,this,jl).call(this);case 4:return e.a(2);case 5:if(t===h(bl,this)){e.n=6;break}return e.a(2);case 6:e.p=6,f(kl,this,i(xl,this,Ol).call(this)),e.n=9;break;case 7:return e.p=7,v=e.v,console.error("setDocument:",v),e.n=8,i(xl,this,jl).call(this);case 8:return e.a(2);case 9:return c=h(Al,this),f(Cl,this,new AbortController),d=h(Cl,this),D=d.signal,c._on("updatefromsandbox",function(e){(null==e?void 0:e.source)===window&&i(xl,F,Pl).call(F,e.detail)},{signal:D}),c._on("dispatcheventinsandbox",function(e){var t;null===(t=h(kl,F))||void 0===t||t.dispatchEventInSandbox(e.detail)},{signal:D}),c._on("pagechanging",function(e){var t=e.pageNumber,n=e.previous;t!==n&&(i(xl,F,Ll).call(F,n),i(xl,F,Tl).call(F,t))},{signal:D}),c._on("pagerendered",function(e){var t=e.pageNumber;F._pageOpenPending.has(t)&&t===h(yl,F).currentPageNumber&&i(xl,F,Tl).call(F,t)},{signal:D}),c._on("pagesdestroy",o(k().m(function e(){var t,n;return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,i(xl,F,Ll).call(F,h(yl,F).currentPageNumber);case 1:return e.n=2,null===(t=h(kl,F))||void 0===t?void 0:t.dispatchEventInSandbox({id:"doc",name:"WillClose"});case 2:null===(n=h(Fl,F))||void 0===n||n.resolve();case 3:return e.a(2)}},e)})),{signal:D}),e.p=10,e.n=11,h(El,this).call(this,t);case 11:if(p=e.v,t===h(bl,this)){e.n=12;break}return e.a(2);case 12:return e.n=13,h(kl,this).createSandbox({objects:a,calculationOrder:s,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:B(B({},p),{},{actions:l})});case 13:c.dispatch("sandboxcreated",{source:this}),e.n=16;break;case 14:return e.p=14,g=e.v,console.error("setDocument:",g),e.n=15,i(xl,this,jl).call(this);case 15:return e.a(2);case 16:return e.n=17,null===(n=h(kl,this))||void 0===n?void 0:n.dispatchEventInSandbox({id:"doc",name:"Open"});case 17:return e.n=18,i(xl,this,Tl).call(this,h(yl,this).currentPageNumber,!0);case 18:Promise.resolve().then(function(){t===h(bl,F)&&f(Bl,F,!0)});case 19:return e.a(2)}},e,this,[[10,14],[6,7]])})),function(e){return r.apply(this,arguments)})},{key:"dispatchWillSave",value:(u=o(k().m(function e(){var t;return k().w(function(e){for(;;)if(0===e.n)return e.a(2,null===(t=h(kl,this))||void 0===t?void 0:t.dispatchEventInSandbox({id:"doc",name:"WillSave"}))},e,this)})),function(){return u.apply(this,arguments)})},{key:"dispatchDidSave",value:(n=o(k().m(function e(){var t;return k().w(function(e){for(;;)if(0===e.n)return e.a(2,null===(t=h(kl,this))||void 0===t?void 0:t.dispatchEventInSandbox({id:"doc",name:"DidSave"}))},e,this)})),function(){return n.apply(this,arguments)})},{key:"dispatchWillPrint",value:(t=o(k().m(function e(){var t,n;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:if(h(kl,this)){e.n=1;break}return e.a(2);case 1:return e.n=2,null===(t=h(_l,this))||void 0===t?void 0:t.promise;case 2:return f(_l,this,Promise.withResolvers()),e.p=3,e.n=4,h(kl,this).dispatchEventInSandbox({id:"doc",name:"WillPrint"});case 4:e.n=6;break;case 5:throw e.p=5,n=e.v,h(_l,this).resolve(),f(_l,this,null),n;case 6:return e.n=7,h(_l,this).promise;case 7:return e.a(2)}},e,this,[[3,5]])})),function(){return t.apply(this,arguments)})},{key:"dispatchDidPrint",value:(e=o(k().m(function e(){var t;return k().w(function(e){for(;;)if(0===e.n)return e.a(2,null===(t=h(kl,this))||void 0===t?void 0:t.dispatchEventInSandbox({id:"doc",name:"DidPrint"}))},e,this)})),function(){return e.apply(this,arguments)})},{key:"destroyPromise",get:function(){var e;return(null===(e=h(ml,this))||void 0===e?void 0:e.promise)||null}},{key:"ready",get:function(){return h(Bl,this)}},{key:"_pageOpenPending",get:function(){return je(this,"_pageOpenPending",new Set)}},{key:"_visitedPages",get:function(){return je(this,"_visitedPages",new Map)}}]);var e,t,n,u,r}();function Pl(e){return Il.apply(this,arguments)}function Il(){return(Il=o(k().m(function e(t){var n,i,u,r,a,o,s,l,c,d,D,p,v,g,F;return k().w(function(e){for(;;)switch(e.n){case 0:if(i=h(yl,this),u=i.isInPresentationMode||i.isChangingPresentationMode,r=t.id,a=t.siblings,o=t.command,s=t.value,r){e.n=18;break}F=o,e.n="clear"===F?1:"error"===F?2:"layout"===F?3:"page-num"===F?4:"print"===F?5:"println"===F?7:"zoom"===F?8:"SaveAs"===F?9:"FirstPage"===F?10:"LastPage"===F?11:"NextPage"===F?12:"PrevPage"===F?13:"ZoomViewIn"===F?14:"ZoomViewOut"===F?15:"WillPrintFinished"===F?16:17;break;case 1:return console.clear(),e.a(3,17);case 2:return console.error(s),e.a(3,17);case 3:return u||(l=jt(s),i.spreadMode=l.spreadMode),e.a(3,17);case 4:return i.currentPageNumber=s+1,e.a(3,17);case 5:return e.n=6,i.pagesPromise;case 6:return h(Al,this).dispatch("print",{source:this}),e.a(3,17);case 7:return console.log(s),e.a(3,17);case 8:return u||(i.currentScaleValue=s),e.a(3,17);case 9:return h(Al,this).dispatch("download",{source:this}),e.a(3,17);case 10:return i.currentPageNumber=1,e.a(3,17);case 11:return i.currentPageNumber=i.pagesCount,e.a(3,17);case 12:return i.nextPage(),e.a(3,17);case 13:return i.previousPage(),e.a(3,17);case 14:return u||i.increaseScale(),e.a(3,17);case 15:return u||i.decreaseScale(),e.a(3,17);case 16:return null===(n=h(_l,this))||void 0===n||n.resolve(),f(_l,this,null),e.a(3,17);case 17:return e.a(2);case 18:if(!u||!t.focus){e.n=19;break}return e.a(2);case 19:delete t.id,delete t.siblings,c=a?[r].concat(O(a)):[r],d=m(c);try{for(d.s();!(D=d.n()).done;)p=D.value,(v=document.querySelector('[data-element-id="'.concat(p,'"]')))?v.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:t})):null===(g=h(bl,this))||void 0===g||g.annotationStorage.setValue(p,t)}catch(e){d.e(e)}finally{d.f()}case 20:return e.a(2)}},e,this)}))).apply(this,arguments)}function Tl(e){return Ml.apply(this,arguments)}function Ml(){return Ml=o(k().m(function e(t){var n,i,u,r,a,s=this,l=arguments;return k().w(function(e){for(;;)switch(e.n){case 0:if(n=l.length>1&&void 0!==l[1]&&l[1],i=h(bl,this),u=this._visitedPages,n&&f(Fl,this,Promise.withResolvers()),h(Fl,this)){e.n=1;break}return e.a(2);case 1:if((null==(r=h(yl,this).getPageView(t-1))?void 0:r.renderingState)===Ke.FINISHED){e.n=2;break}return this._pageOpenPending.add(t),e.a(2);case 2:this._pageOpenPending.delete(t),a=o(k().m(function e(){var n,a,o;return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,u.has(t)?null:null===(n=r.pdfPage)||void 0===n?void 0:n.getJSActions();case 1:if(o=e.v,i===h(bl,s)){e.n=2;break}return e.a(2);case 2:return e.n=3,null===(a=h(kl,s))||void 0===a?void 0:a.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:t,actions:o});case 3:return e.a(2)}},e)}))(),u.set(t,a);case 3:return e.a(2)}},e,this)})),Ml.apply(this,arguments)}function Ll(e){return Nl.apply(this,arguments)}function Nl(){return(Nl=o(k().m(function e(t){var n,i,u,r;return k().w(function(e){for(;;)switch(e.n){case 0:if(i=h(bl,this),u=this._visitedPages,h(Fl,this)){e.n=1;break}return e.a(2);case 1:if(!this._pageOpenPending.has(t)){e.n=2;break}return e.a(2);case 2:if(r=u.get(t)){e.n=3;break}return e.a(2);case 3:return u.set(t,null),e.n=4,r;case 4:if(i===h(bl,this)){e.n=5;break}return e.a(2);case 5:return e.n=6,null===(n=h(kl,this))||void 0===n?void 0:n.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:t});case 6:return e.a(2)}},e,this)}))).apply(this,arguments)}function Ol(){if(f(ml,this,Promise.withResolvers()),h(kl,this))throw new Error("#initScripting: Scripting already exists.");return h(wl,this).createScripting()}function jl(){return Rl.apply(this,arguments)}function Rl(){return(Rl=o(k().m(function e(){var t,n,i,u;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:if(h(kl,this)){e.n=1;break}return f(bl,this,null),null===(u=h(ml,this))||void 0===u||u.resolve(),e.a(2);case 1:if(!h(Fl,this)){e.n=3;break}return e.n=2,Promise.race([h(Fl,this).promise,new Promise(function(e){setTimeout(e,1e3)})]).catch(function(){});case 2:f(Fl,this,null);case 3:return f(bl,this,null),e.p=4,e.n=5,h(kl,this).destroySandbox();case 5:e.n=7;break;case 6:e.p=6,e.v;case 7:null===(t=h(_l,this))||void 0===t||t.reject(new Error("Scripting destroyed.")),f(_l,this,null),null===(n=h(Cl,this))||void 0===n||n.abort(),f(Cl,this,null),this._pageOpenPending.clear(),this._visitedPages.clear(),f(kl,this,null),f(Bl,this,!1),null===(i=h(ml,this))||void 0===i||i.resolve();case 8:return e.a(2)}},e,this,[[4,6]])}))).apply(this,arguments)}var Wl="sidebarResizing",Vl="pdfSidebarNotification",zl=new WeakMap,Ul=new WeakMap,Hl=new WeakMap,Gl=new WeakMap,Zl=new WeakSet,Xl=function(){return F(function e(t){var n=t.elements,u=t.eventBus,r=t.l10n;d(this,e),v(this,Zl),D(this,zl,!1),D(this,Ul,null),D(this,Hl,null),D(this,Gl,null),this.isOpen=!1,this.active=nt,this.isInitialViewSet=!1,this.isInitialEventDispatched=!1,this.onToggled=null,this.onUpdateThumbnails=null,this.outerContainer=n.outerContainer,this.sidebarContainer=n.sidebarContainer,this.toggleButton=n.toggleButton,this.resizer=n.resizer,this.thumbnailButton=n.thumbnailButton,this.outlineButton=n.outlineButton,this.attachmentsButton=n.attachmentsButton,this.layersButton=n.layersButton,this.thumbnailView=n.thumbnailView,this.outlineView=n.outlineView,this.attachmentsView=n.attachmentsView,this.layersView=n.layersView,this._currentOutlineItemButton=n.currentOutlineItemButton,this.eventBus=u,f(zl,this,"rtl"===r.getDirection()),i(Zl,this,Yl).call(this)},[{key:"reset",value:function(){this.isInitialViewSet=!1,this.isInitialEventDispatched=!1,i(Zl,this,ql).call(this,!0),this.switchView(nt),this.outlineButton.disabled=!1,this.attachmentsButton.disabled=!1,this.layersButton.disabled=!1,this._currentOutlineItemButton.disabled=!0}},{key:"visibleView",get:function(){return this.isOpen?this.active:tt}},{key:"setInitialView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tt;this.isInitialViewSet||(this.isInitialViewSet=!0,e!==tt&&e!==et?(this.switchView(e,!0),this.isInitialEventDispatched||i(Zl,this,$l).call(this)):i(Zl,this,$l).call(this))}},{key:"switchView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e!==this.active,u=!1;switch(e){case tt:return void(this.isOpen&&this.close());case nt:this.isOpen&&n&&(u=!0);break;case it:if(this.outlineButton.disabled)return;break;case ut:if(this.attachmentsButton.disabled)return;break;case rt:if(this.layersButton.disabled)return;break;default:return void console.error('PDFSidebar.switchView: "'.concat(e,'" is not a valid view.'))}this.active=e,Wt(this.thumbnailButton,e===nt,this.thumbnailView),Wt(this.outlineButton,e===it,this.outlineView),Wt(this.attachmentsButton,e===ut,this.attachmentsView),Wt(this.layersButton,e===rt,this.layersView),!t||this.isOpen?(u&&(this.onUpdateThumbnails(),this.onToggled()),n&&i(Zl,this,$l).call(this)):this.open()}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,Vt(this.toggleButton,!0),this.outerContainer.classList.add("sidebarMoving","sidebarOpen"),this.active===nt&&this.onUpdateThumbnails(),this.onToggled(),i(Zl,this,$l).call(this),i(Zl,this,ql).call(this))}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.isOpen&&(this.isOpen=!1,Vt(this.toggleButton,!1),this.outerContainer.classList.add("sidebarMoving"),this.outerContainer.classList.remove("sidebarOpen"),this.onToggled(),i(Zl,this,$l).call(this),(null==e?void 0:e.detail)>0&&this.toggleButton.blur())}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.isOpen?this.close(e):this.open()}},{key:"outerContainerWidth",get:function(){return h(Hl,this)||f(Hl,this,this.outerContainer.clientWidth)}}])}();function $l(){this.isInitialViewSet&&(this.isInitialEventDispatched||(this.isInitialEventDispatched=!0)),this.eventBus.dispatch("sidebarviewchanged",{source:this,view:this.visibleView})}function Kl(){this.toggleButton.setAttribute("data-l10n-id","pdfjs-toggle-sidebar-notification-button"),this.isOpen||this.toggleButton.classList.add(Vl)}function ql(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(this.isOpen||e)&&this.toggleButton.classList.remove(Vl),e&&this.toggleButton.setAttribute("data-l10n-id","pdfjs-toggle-sidebar-button")}function Yl(){var e=this,t=this.eventBus,n=this.outerContainer;this.sidebarContainer.addEventListener("transitionend",function(i){i.target===e.sidebarContainer&&(n.classList.remove("sidebarMoving"),t.dispatch("resize",{source:e}))}),this.toggleButton.addEventListener("click",function(t){e.toggle(t)}),this.thumbnailButton.addEventListener("click",function(){e.switchView(nt)}),this.outlineButton.addEventListener("click",function(){e.switchView(it)}),this.outlineButton.addEventListener("dblclick",function(){t.dispatch("toggleoutlinetree",{source:e})}),this.attachmentsButton.addEventListener("click",function(){e.switchView(ut)}),this.layersButton.addEventListener("click",function(){e.switchView(rt)}),this.layersButton.addEventListener("dblclick",function(){t.dispatch("resetlayers",{source:e})}),this._currentOutlineItemButton.addEventListener("click",function(){t.dispatch("currentoutlineitem",{source:e})});var u=function(t,n,u){n.disabled=!t,t?i(Zl,e,Kl).call(e):e.active===u&&e.switchView(nt)};t._on("outlineloaded",function(t){u(t.outlineCount,e.outlineButton,it),t.currentOutlineItemPromise.then(function(t){e.isInitialViewSet&&(e._currentOutlineItemButton.disabled=!t)})}),t._on("attachmentsloaded",function(t){u(t.attachmentsCount,e.attachmentsButton,ut)}),t._on("layersloaded",function(t){u(t.layersCount,e.layersButton,rt)}),t._on("presentationmodechanged",function(t){t.state===Ye&&e.visibleView===nt&&e.onUpdateThumbnails()}),this.resizer.addEventListener("mousedown",function(t){if(0===t.button){n.classList.add(Wl),f(Ul,e,new AbortController);var u={signal:h(Ul,e).signal};window.addEventListener("mousemove",i(Zl,e,Ql).bind(e),u),window.addEventListener("mouseup",i(Zl,e,ec).bind(e),u),window.addEventListener("blur",i(Zl,e,ec).bind(e),u)}}),t._on("resize",function(u){if(u.source===window&&(f(Hl,e,null),h(Gl,e)))if(e.isOpen){n.classList.add(Wl);var r=i(Zl,e,Jl).call(e,h(Gl,e));Promise.resolve().then(function(){n.classList.remove(Wl),r&&t.dispatch("resize",{source:e})})}else i(Zl,e,Jl).call(e,h(Gl,e))})}function Jl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=Math.floor(this.outerContainerWidth/2);return e>t&&(e=t),e<200&&(e=200),e!==h(Gl,this)&&(f(Gl,this,e),St.setProperty("--sidebar-width","".concat(e,"px")),!0)}function Ql(e){var t=e.clientX;h(zl,this)&&(t=this.outerContainerWidth-t),i(Zl,this,Jl).call(this,t)}function ec(e){var t;this.outerContainer.classList.remove(Wl),this.eventBus.dispatch("resize",{source:this}),null===(t=h(Ul,this))||void 0===t||t.abort(),f(Ul,this,null)}function tc(e){e.width=0,e.height=0}var nc=function(){function e(){d(this,e)}return F(e,null,[{key:"getCanvas",value:function(t,n){var u=i(e,this,ic)._||(ic._=i(e,this,document.createElement("canvas")));u.width=t,u.height=n;var r=u.getContext("2d",{alpha:!1});return r.save(),r.fillStyle="rgb(255, 255, 255)",r.fillRect(0,0,t,n),r.restore(),[u,u.getContext("2d")]}},{key:"destroyCanvas",value:function(){i(e,this,ic)._&&tc(i(e,this,ic)._),ic._=i(e,this,null)}}])}(),ic={_:null},uc=new WeakSet,rc=function(){return F(function e(t){var n=t.container,u=t.eventBus,r=t.id,a=t.defaultViewport,o=t.optionalContentConfigPromise,s=t.linkService,l=t.renderingQueue,c=t.maxCanvasPixels,h=t.maxCanvasDim,D=t.pageColors,f=t.enableHWA;d(this,e),v(this,uc),this.id=r,this.renderingId="thumbnail"+r,this.pageLabel=null,this.pdfPage=null,this.rotation=0,this.viewport=a,this.pdfPageRotate=a.rotation,this._optionalContentConfigPromise=o||null,this.maxCanvasPixels=null!=c?c:rn.get("maxCanvasPixels"),this.maxCanvasDim=h||rn.get("maxCanvasDim"),this.pageColors=D||null,this.enableHWA=f||!1,this.eventBus=u,this.linkService=s,this.renderingQueue=l,this.renderTask=null,this.renderingState=Ke.INITIAL,this.resume=null;var g=document.createElement("a");g.href=s.getAnchorUrl("#page="+r),g.setAttribute("data-l10n-id","pdfjs-thumb-page-title"),g.setAttribute("data-l10n-args",p(uc,this,dc)),g.onclick=function(){return s.goToPage(r),!1},this.anchor=g;var F=document.createElement("div");F.className="thumbnail",F.setAttribute("data-page-number",this.id),this.div=F,i(uc,this,ac).call(this);var m=document.createElement("div");m.className="thumbnailImage",this._placeholderImg=m,F.append(m),g.append(F),n.append(g)},[{key:"setPdfPage",value:function(e){this.pdfPage=e,this.pdfPageRotate=e.rotate;var t=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport({scale:1,rotation:t}),this.reset()}},{key:"reset",value:function(){var e;this.cancelRendering(),this.renderingState=Ke.INITIAL,this.div.removeAttribute("data-loaded"),null===(e=this.image)||void 0===e||e.replaceWith(this._placeholderImg),i(uc,this,ac).call(this),this.image&&(this.image.removeAttribute("src"),delete this.image)}},{key:"update",value:function(e){var t=e.rotation,n=void 0===t?null:t;"number"==typeof n&&(this.rotation=n);var i=(this.rotation+this.pdfPageRotate)%360;this.viewport=this.viewport.clone({scale:1,rotation:i}),this.reset()}},{key:"cancelRendering",value:function(){this.renderTask&&(this.renderTask.cancel(),this.renderTask=null),this.resume=null}},{key:"draw",value:(e=o(k().m(function e(){var t,n,u,r,a,o,s,l,c,d,h,D,f=this;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:if(this.renderingState===Ke.INITIAL){e.n=1;break}return console.error("Must be in new state before drawing"),e.a(2);case 1:if(t=this.pageColors,n=this.pdfPage){e.n=2;break}throw this.renderingState=Ke.FINISHED,new Error("pdfPage is not loaded");case 2:return this.renderingState=Ke.RUNNING,u=i(uc,this,oc).call(this,2),r=u.ctx,a=u.canvas,o=u.transform,s=this.viewport.clone({scale:2*this.scale}),l=function(e){if(!f.renderingQueue.isHighestPriority(f))return f.renderingState=Ke.PAUSED,void(f.resume=function(){f.renderingState=Ke.RUNNING,e()});e()},c={canvasContext:r,transform:o,viewport:s,optionalContentConfigPromise:this._optionalContentConfigPromise,pageColors:t},(d=this.renderTask=n.render(c)).onContinue=l,h=null,e.p=3,e.n=4,d.promise;case 4:e.n=7;break;case 5:if(e.p=5,!((D=e.v)instanceof Le)){e.n=6;break}return tc(a),e.a(2);case 6:h=D;case 7:return e.p=7,d===this.renderTask&&(this.renderTask=null),e.f(7);case 8:if(this.renderingState=Ke.FINISHED,i(uc,this,sc).call(this,a),tc(a),this.eventBus.dispatch("thumbnailrendered",{source:this,pageNumber:this.id,pdfPage:n}),!h){e.n=9;break}throw h;case 9:return e.a(2)}},e,this,[[3,5,7,8]])})),function(){return e.apply(this,arguments)})},{key:"setImage",value:function(e){if(this.renderingState===Ke.INITIAL){var t=e.thumbnailCanvas,n=e.pdfPage,u=e.scale;t&&(this.pdfPage||this.setPdfPage(n),u<this.scale||(this.renderingState=Ke.FINISHED,i(uc,this,sc).call(this,t)))}}},{key:"setPageLabel",value:function(e){var t;this.pageLabel="string"==typeof e?e:null,this.anchor.setAttribute("data-l10n-args",p(uc,this,dc)),this.renderingState===Ke.FINISHED&&(null===(t=this.image)||void 0===t||t.setAttribute("data-l10n-args",p(uc,this,dc)))}}]);var e}();function ac(){var e=this.viewport,t=e.width,n=t/e.height;this.canvasWidth=98,this.canvasHeight=this.canvasWidth/n|0,this.scale=this.canvasWidth/t;var i=this.div.style;i.setProperty("--thumbnail-width","".concat(this.canvasWidth,"px")),i.setProperty("--thumbnail-height","".concat(this.canvasHeight,"px"))}function oc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.enableHWA,n=document.createElement("canvas"),i=n.getContext("2d",{alpha:!1,willReadFrequently:!t}),u=new xe,r=e*this.canvasWidth,a=e*this.canvasHeight;return u.limitCanvas(r,a,this.maxCanvasPixels,this.maxCanvasDim),n.width=r*u.sx|0,n.height=a*u.sy|0,{ctx:i,canvas:n,transform:u.scaled?[u.sx,0,0,u.sy,0,0]:null}}function sc(e){if(this.renderingState!==Ke.FINISHED)throw new Error("#convertCanvasToImage: Rendering has not finished.");var t=i(uc,this,cc).call(this,e),n=document.createElement("img");n.className="thumbnailImage",n.setAttribute("data-l10n-id","pdfjs-thumb-page-canvas"),n.setAttribute("data-l10n-args",p(uc,this,dc)),n.src=t.toDataURL(),this.image=n,this.div.setAttribute("data-loaded",!0),this._placeholderImg.replaceWith(n),tc(t)}function lc(e){var t=e.width<<3,n=e.height<<3,i=new xe;return i.sx=i.sy=1,i.limitCanvas(t,n,this.maxCanvasPixels,this.maxCanvasDim),[t*i.sx|0,n*i.sy|0]}function cc(e){var t=i(uc,this,oc).call(this,1,!0),n=t.ctx,u=t.canvas;if(e.width<=2*u.width)return n.drawImage(e,0,0,e.width,e.height,0,0,u.width,u.height),u;for(var r=T(i(uc,this,lc).call(this,u),2),a=r[0],o=r[1],s=T(nc.getCanvas(a,o),2),l=s[0],c=s[1];a>e.width||o>e.height;)a>>=1,o>>=1;for(c.drawImage(e,0,0,e.width,e.height,0,0,a,o);a>2*u.width;)c.drawImage(l,0,0,a,o,0,0,a>>1,o>>1),a>>=1,o>>=1;return n.drawImage(l,0,0,a,o,0,0,u.width,u.height),u}function dc(e){var t;return JSON.stringify({page:null!==(t=e.pageLabel)&&void 0!==t?t:e.id})}var hc="selected",Dc=new WeakSet,fc=function(){return F(function e(t){var n=t.container,u=t.eventBus,r=t.linkService,a=t.renderingQueue,o=t.maxCanvasPixels,s=t.maxCanvasDim,l=t.pageColors,c=t.abortSignal,h=t.enableHWA;d(this,e),v(this,Dc),this.container=n,this.eventBus=u,this.linkService=r,this.renderingQueue=a,this.maxCanvasPixels=o,this.maxCanvasDim=s,this.pageColors=l||null,this.enableHWA=h||!1,this.scroll=pt(this.container,i(Dc,this,pc).bind(this),c),i(Dc,this,gc).call(this)},[{key:"getThumbnail",value:function(e){return this._thumbnails[e]}},{key:"scrollThumbnailIntoView",value:function(e){if(this.pdfDocument){var t=this._thumbnails[e-1];if(t){if(e!==this._currentPageNumber)this._thumbnails[this._currentPageNumber-1].div.classList.remove(hc),t.div.classList.add(hc);var n=i(Dc,this,vc).call(this),u=n.first,r=n.last,a=n.views;if(a.length>0){var o=!1;if(e<=u.id||e>=r.id)o=!0;else{var s,l=m(a);try{for(l.s();!(s=l.n()).done;){var c=s.value,d=c.id,h=c.percent;if(d===e){o=h<100;break}}}catch(e){l.e(e)}finally{l.f()}}o&&ft(t.div,{top:-19})}this._currentPageNumber=e}else console.error('scrollThumbnailIntoView: Invalid "pageNumber" parameter.')}}},{key:"pagesRotation",get:function(){return this._pagesRotation},set:function(e){if(!yt(e))throw new Error("Invalid thumbnails rotation angle.");if(this.pdfDocument&&this._pagesRotation!==e){this._pagesRotation=e;var t,n={rotation:e},i=m(this._thumbnails);try{for(i.s();!(t=i.n()).done;){t.value.update(n)}}catch(e){i.e(e)}finally{i.f()}}}},{key:"cleanup",value:function(){var e,t=m(this._thumbnails);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.renderingState!==Ke.FINISHED&&n.reset()}}catch(e){t.e(e)}finally{t.f()}nc.destroyCanvas()}},{key:"setDocument",value:function(e){var t=this;if(this.pdfDocument&&(i(Dc,this,Fc).call(this),i(Dc,this,gc).call(this)),this.pdfDocument=e,e){var n=e.getPage(1),u=e.getOptionalContentConfig({intent:"display"});n.then(function(n){for(var i,r=e.numPages,a=n.getViewport({scale:1}),o=1;o<=r;++o){var s=new rc({container:t.container,eventBus:t.eventBus,id:o,defaultViewport:a.clone(),optionalContentConfigPromise:u,linkService:t.linkService,renderingQueue:t.renderingQueue,maxCanvasPixels:t.maxCanvasPixels,maxCanvasDim:t.maxCanvasDim,pageColors:t.pageColors,enableHWA:t.enableHWA});t._thumbnails.push(s)}null===(i=t._thumbnails[0])||void 0===i||i.setPdfPage(n),t._thumbnails[t._currentPageNumber-1].div.classList.add(hc)}).catch(function(e){console.error("Unable to initialize thumbnail viewer",e)})}}},{key:"setPageLabels",value:function(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error("PDFThumbnailViewer_setPageLabels: Invalid page labels.")):this._pageLabels=null;for(var t=0,n=this._thumbnails.length;t<n;t++){var i,u;this._thumbnails[t].setPageLabel(null!==(i=null===(u=this._pageLabels)||void 0===u?void 0:u[t])&&void 0!==i?i:null)}}}},{key:"forceRendering",value:function(){var e=this,t=i(Dc,this,vc).call(this),n=i(Dc,this,Cc).call(this,t),u=this.renderingQueue.getHighestPriority(t,this._thumbnails,n,!1,!0);return!!u&&(i(Dc,this,mc).call(this,u).then(function(){e.renderingQueue.renderView(u)}),!0)}}])}();function pc(){this.renderingQueue.renderHighestPriority()}function vc(){return wt({scrollEl:this.container,views:this._thumbnails})}function gc(){this._thumbnails=[],this._currentPageNumber=1,this._pageLabels=null,this._pagesRotation=0,this.container.textContent=""}function Fc(){var e,t=m(this._thumbnails);try{for(t.s();!(e=t.n()).done;){e.value.cancelRendering()}}catch(e){t.e(e)}finally{t.f()}}function mc(e){return Ec.apply(this,arguments)}function Ec(){return(Ec=o(k().m(function e(t){var n,i;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!t.pdfPage){e.n=1;break}return e.a(2,t.pdfPage);case 1:return e.p=1,e.n=2,this.pdfDocument.getPage(t.id);case 2:return n=e.v,t.pdfPage||t.setPdfPage(n),e.a(2,n);case 3:return e.p=3,i=e.v,console.error("Unable to get page for thumb view",i),e.a(2,null)}},e,this,[[1,3]])}))).apply(this,arguments)}function Cc(e){var t,n;return 1===(null===(t=e.first)||void 0===t?void 0:t.id)||(null===(n=e.last)||void 0===n?void 0:n.id)!==this._thumbnails.length&&this.scroll.down}var Ac=new WeakMap,wc=new WeakMap,bc=new WeakMap,yc=new WeakMap,Bc=new WeakMap,kc=new WeakMap,_c=function(){return F(function e(t){d(this,e),D(this,Ac,null),D(this,wc,null),D(this,bc,null),D(this,yc,null),D(this,Bc,null),D(this,kc,void 0),this.pdfPage=t.pdfPage,this.accessibilityManager=t.accessibilityManager,this.l10n=t.l10n,this.l10n||(this.l10n=new Vi),this.annotationEditorLayer=null,this.div=null,this._cancelled=!1,f(kc,this,t.uiManager),f(Ac,this,t.annotationLayer||null),f(Bc,this,t.textLayer||null),f(wc,this,t.drawLayer||null),f(bc,this,t.onAppend||null),f(yc,this,t.structTreeLayer||null)},[{key:"render",value:(e=o(k().m(function e(t){var n,i,u,r,a,o,s;return k().w(function(e){for(;;)switch(e.n){case 0:if(i=t.viewport,u=t.intent,"display"===(r=void 0===u?"display":u)){e.n=1;break}return e.a(2);case 1:if(!this._cancelled){e.n=2;break}return e.a(2);case 2:if(a=i.clone({dontFlip:!0}),!this.div){e.n=3;break}return this.annotationEditorLayer.update({viewport:a}),this.show(),e.a(2);case 3:(o=this.div=document.createElement("div")).className="annotationEditorLayer",o.hidden=!0,o.dir=h(kc,this).direction,null===(n=h(bc,this))||void 0===n||n.call(this,o),this.annotationEditorLayer=new ne({uiManager:h(kc,this),div:o,structTreeLayer:h(yc,this),accessibilityManager:this.accessibilityManager,pageIndex:this.pdfPage.pageNumber-1,l10n:this.l10n,viewport:a,annotationLayer:h(Ac,this),textLayer:h(Bc,this),drawLayer:h(wc,this)}),s={viewport:a,div:o,annotations:null,intent:r},this.annotationEditorLayer.render(s),this.show();case 4:return e.a(2)}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"cancel",value:function(){this._cancelled=!0,this.div&&this.annotationEditorLayer.destroy()}},{key:"hide",value:function(){this.div&&(this.annotationEditorLayer.pause(!0),this.div.hidden=!0)}},{key:"show",value:function(){this.div&&!this.annotationEditorLayer.isInvisible&&(this.div.hidden=!1,this.annotationEditorLayer.pause(!1))}}]);var e}(),xc=new WeakMap,Sc=new WeakMap,Pc=new WeakMap,Ic=new WeakMap,Tc=new WeakMap,Mc=new WeakSet,Lc=function(){return F(function e(t){var n=t.pdfPage,i=t.linkService,u=t.downloadManager,r=t.annotationStorage,a=void 0===r?null:r,o=t.imageResourcesPath,s=void 0===o?"":o,l=t.renderForms,c=void 0===l||l,h=t.enableScripting,p=void 0!==h&&h,g=t.hasJSActionsPromise,F=void 0===g?null:g,m=t.fieldObjectsPromise,E=void 0===m?null:m,C=t.annotationCanvasMap,A=void 0===C?null:C,w=t.accessibilityManager,b=void 0===w?null:w,y=t.annotationEditorUIManager,B=void 0===y?null:y,k=t.onAppend,_=void 0===k?null:k;d(this,e),v(this,Mc),D(this,xc,null),D(this,Sc,!1),D(this,Pc,null),D(this,Ic,null),D(this,Tc,!1),this.pdfPage=n,this.linkService=i,this.downloadManager=u,this.imageResourcesPath=s,this.renderForms=c,this.annotationStorage=a,this.enableScripting=p,this._hasJSActionsPromise=F||Promise.resolve(!1),this._fieldObjectsPromise=E||Promise.resolve(null),this._annotationCanvasMap=A,this._accessibilityManager=b,this._annotationEditorUIManager=B,f(Pc,this,_),this.annotationLayer=null,this.div=null,this._cancelled=!1,this._eventBus=i.eventBus},[{key:"render",value:(t=o(k().m(function e(t){var n,u,r,a,o,s,l,c,d,D,p,v,g,F=this;return k().w(function(e){for(;;)switch(e.n){case 0:if(u=t.viewport,r=t.intent,a=void 0===r?"display":r,o=t.structTreeLayer,s=void 0===o?null:o,!this.div){e.n=2;break}if(!this._cancelled&&this.annotationLayer){e.n=1;break}return e.a(2);case 1:return this.annotationLayer.update({viewport:u.clone({dontFlip:!0})}),e.a(2);case 2:return e.n=3,Promise.all([this.pdfPage.getAnnotations({intent:a}),this._hasJSActionsPromise,this._fieldObjectsPromise]);case 3:if(l=e.v,c=T(l,3),d=c[0],D=c[1],p=c[2],!this._cancelled){e.n=4;break}return e.a(2);case 4:if((v=this.div=document.createElement("div")).className="annotationLayer",null===(n=h(Pc,this))||void 0===n||n.call(this,v),0!==d.length){e.n=5;break}return f(xc,this,d),this.hide(!0),e.a(2);case 5:return i(Mc,this,Nc).call(this,u,s),e.n=6,this.annotationLayer.render({annotations:d,imageResourcesPath:this.imageResourcesPath,renderForms:this.renderForms,linkService:this.linkService,downloadManager:this.downloadManager,annotationStorage:this.annotationStorage,enableScripting:this.enableScripting,hasJSActions:D,fieldObjects:p});case 6:f(xc,this,d),this.linkService.isInPresentationMode&&i(Mc,this,Oc).call(this,Qe),h(Ic,this)||(f(Ic,this,new AbortController),null===(g=this._eventBus)||void 0===g||g._on("presentationmodechanged",function(e){i(Mc,F,Oc).call(F,e.state)},{signal:h(Ic,this).signal}));case 7:return e.a(2)}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"cancel",value:function(){var e;this._cancelled=!0,null===(e=h(Ic,this))||void 0===e||e.abort(),f(Ic,this,null)}},{key:"hide",value:function(){f(Sc,this,!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])),this.div&&(this.div.hidden=!0)}},{key:"hasEditableAnnotations",value:function(){var e;return!(null===(e=this.annotationLayer)||void 0===e||!e.hasEditableAnnotations())}},{key:"injectLinkAnnotations",value:(e=o(k().m(function e(t){var n,u,r,a,o;return k().w(function(e){for(;;)switch(e.n){case 0:if(n=t.inferredLinks,u=t.viewport,r=t.structTreeLayer,a=void 0===r?null:r,null!==h(xc,this)){e.n=1;break}throw new Error("`render` method must be called before `injectLinkAnnotations`.");case 1:if(!this._cancelled&&!h(Tc,this)){e.n=2;break}return e.a(2);case 2:if(f(Tc,this,!0),(o=h(xc,this).length?i(Mc,this,jc).call(this,n):n).length){e.n=3;break}return e.a(2);case 3:return this.annotationLayer||(i(Mc,this,Nc).call(this,u,a),Oe(this.div,u)),e.n=4,this.annotationLayer.addLinkAnnotations(o,this.linkService);case 4:h(Sc,this)||(this.div.hidden=!1);case 5:return e.a(2)}},e,this)})),function(t){return e.apply(this,arguments)})}]);var e,t}();function Nc(e,t){this.annotationLayer=new ae({div:this.div,accessibilityManager:this._accessibilityManager,annotationCanvasMap:this._annotationCanvasMap,annotationEditorUIManager:this._annotationEditorUIManager,page:this.pdfPage,viewport:e.clone({dontFlip:!0}),structTreeLayer:t})}function Oc(e){if(this.div){var t=!1;switch(e){case Qe:t=!0;break;case Ye:break;default:return}var n,i=m(this.div.childNodes);try{for(i.s();!(n=i.n()).done;){var u=n.value;u.hasAttribute("data-internal-link")||(u.inert=t)}}catch(e){i.e(e)}finally{i.f()}}}function jc(e){var t=this;function n(e){if(!e.quadPoints)return[e.rect];for(var t=[],n=2,i=e.quadPoints.length;n<i;n+=8){var u=e.quadPoints[n],r=e.quadPoints[n+1],a=e.quadPoints[n+2],o=e.quadPoints[n+3];t.push([a,o,u,r])}return t}function i(e,t){var i,u=[],r=n(e),a=n(t),o=m(r);try{for(o.s();!(i=o.n()).done;){var s,l=i.value,c=m(a);try{for(c.s();!(s=c.n()).done;){var d=s.value,h=Ge.intersect(l,d);h&&u.push(h)}}catch(e){c.e(e)}finally{c.f()}}}catch(e){o.e(e)}finally{o.f()}return u}function u(e){var t,n=0,i=m(e);try{for(i.s();!(t=i.n()).done;){var u=t.value;n+=Math.abs((u[2]-u[0])*(u[3]-u[1]))}}catch(e){i.e(e)}finally{i.f()}return n}return e.filter(function(e){var r,a,o=m(h(xc,t));try{for(o.s();!(a=o.n()).done;){var s=a.value;if(s.annotationType===se.LINK&&s.url){var l=i(s,e);if(0!==l.length&&(null!=r||(r=u(n(e))),u(l)/r>.5))return!1}}}catch(e){o.e(e)}finally{o.f()}return!0})}function Rc(e,t){var n=e.width,i=e.height,u=e.left,r=e.top;if(0===n||0===i)return null;var a=t.textLayer.div.getBoundingClientRect(),o=t.getPagePoint(u-a.left,r-a.top),s=t.getPagePoint(u-a.left+n,r-a.top+i);return Ge.normalizeRect([o[0],o[1],s[0],s[1]])}function Wc(e,t){var n=e;do{if(n.nodeType===Node.TEXT_NODE){var i=n.textContent.length;if(t<=i)return[n,t];t-=i}else if(n.firstChild){n=n.firstChild;continue}for(;!n.nextSibling&&n!==e;)n=n.parentNode;n!==e&&(n=n.nextSibling)}while(n!==e);throw new Error("Offset is bigger than container's contents length.")}function Vc(e,t,n){var i=e.url,u=e.index,r=e.length,a=t._textHighlighter,o=T(a._convertMatches([u],[r]),1)[0],s=o.begin,l=o.end,c=new Range;return c.setStart.apply(c,O(Wc(a.textDivs[s.divIdx],s.offset))),c.setEnd.apply(c,O(Wc(a.textDivs[l.divIdx],l.offset))),B(B({id:"inferred_link_".concat(n),unsafeUrl:i,url:i,annotationType:se.LINK,rotation:0},function(e,t){var n=e.getClientRects();if(1===n.length)return{rect:Rc(n[0],t)};var i,u=[1/0,1/0,-1/0,-1/0],r=[],a=0,o=m(n);try{for(o.s();!(i=o.n()).done;){var s=Rc(i.value,t);null!==s&&(r[a]=r[a+4]=s[0],r[a+1]=r[a+3]=s[3],r[a+2]=r[a+6]=s[2],r[a+5]=r[a+7]=s[1],Ge.rectBoundingBox.apply(Ge,O(s).concat([u])),a+=8)}}catch(e){o.e(e)}finally{o.f()}return{quadPoints:r,rect:u}}(c,t)),{},{borderStyle:null})}Q(2222);var zc=function(){function e(){d(this,e)}return F(e,null,[{key:"findLinks",value:function(t){var n;null!==(n=i(e,this,Hc)._)&&void 0!==n||(Hc._=i(e,this,/\b(?:https?:\/\/|mailto:|www\.)(?:(?:[\0-\x08\x0E-\x1F\$\+0-9=A-Z\^`-z\|~-\x9F\xA2-\xA6\xA8-\xAA\xAC-\xB5\xB8-\xBA\xBC-\xBE\xC0-\u037D\u037F-\u0386\u0388-\u0559\u0560-\u0588\u058B-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7-\u05F2\u05F5-\u0608\u060B\u060E-\u061A\u061C\u0620-\u0669\u066E-\u06D3\u06D5-\u06FF\u070E-\u07F6\u07FA-\u082F\u083F-\u085D\u085F-\u0963\u0966-\u096F\u0971-\u09FC\u09FE-\u0A75\u0A77-\u0AEF\u0AF1-\u0C76\u0C78-\u0C83\u0C85-\u0DF3\u0DF5-\u0E4E\u0E50-\u0E59\u0E5C-\u0F03\u0F13\u0F15-\u0F39\u0F3E-\u0F84\u0F86-\u0FCF\u0FD5-\u0FD8\u0FDB-\u1049\u1050-\u10FA\u10FC-\u135F\u1369-\u13FF\u1401-\u166D\u166F-\u167F\u1681-\u169A\u169D-\u16EA\u16EE-\u1734\u1737-\u17D3\u17D7\u17DB-\u17FF\u180B-\u1943\u1946-\u1A1D\u1A20-\u1A9F\u1AA7\u1AAE-\u1B4D\u1B50-\u1B59\u1B61-\u1B7C\u1B80-\u1BFB\u1C00-\u1C3A\u1C40-\u1C7D\u1C80-\u1CBF\u1CC8-\u1CD2\u1CD4-\u1FFF\u200B-\u200F\u202A-\u202E\u2044\u2052\u2060-\u207C\u207F-\u208C\u208F-\u2307\u230C-\u2328\u232B-\u2767\u2776-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2CF8\u2CFD\u2D00-\u2D6F\u2D71-\u2DFF\u2E2F\u2E50\u2E51\u2E5E-\u2FFF\u3004-\u3007\u3012\u3013\u3020-\u302F\u3031-\u303C\u303E-\u309F\u30A1-\u30FA\u30FC-\uA4FD\uA500-\uA60C\uA610-\uA672\uA674-\uA67D\uA67F-\uA6F1\uA6F8-\uA873\uA878-\uA8CD\uA8D0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA95E\uA960-\uA9C0\uA9CE-\uA9DD\uA9E0-\uAA5B\uAA60-\uAADD\uAAE0-\uAAEF\uAAF2-\uABEA\uABEC-\uFD3D\uFD40-\uFE0F\uFE1A-\uFE2F\uFE53\uFE62\uFE64-\uFE67\uFE69\uFE6C-\uFEFE\uFF00\uFF04\uFF0B\uFF10-\uFF19\uFF1C-\uFF1E\uFF21-\uFF3A\uFF3E\uFF40-\uFF5A\uFF5C\uFF5E\uFF66-\uFFFF]|\uD800[\uDC00-\uDCFF\uDD03-\uDF9E\uDFA0-\uDFCF\uDFD1-\uDFFF]|\uD801[\uDC00-\uDD6E\uDD70-\uDFFF]|\uD802[\uDC00-\uDC56\uDC58-\uDD1E\uDD20-\uDD3E\uDD40-\uDE4F\uDE59-\uDE7E\uDE80-\uDEEF\uDEF7-\uDF38\uDF40-\uDF98\uDF9D-\uDFFF]|\uD803[\uDC00-\uDD6D\uDD6F-\uDEAC\uDEAE-\uDF54\uDF5A-\uDF85\uDF8A-\uDFFF]|\uD804[\uDC00-\uDC46\uDC4E-\uDCBA\uDCBD\uDCC2-\uDD3F\uDD44-\uDD73\uDD76-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDDE0-\uDE37\uDE3E-\uDEA8\uDEAA-\uDFD3\uDFD6\uDFD9-\uDFFF]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5C\uDC5E-\uDCC5\uDCC7-\uDDC0\uDDD8-\uDE40\uDE44-\uDE5F\uDE6D-\uDEB8\uDEBA-\uDF3B\uDF3F-\uDFFF]|\uD806[\uDC00-\uDC3A\uDC3C-\uDD43\uDD47-\uDDE1\uDDE3-\uDE3E\uDE47-\uDE99\uDE9D\uDEA3-\uDEFF\uDF0A-\uDFE0\uDFE2-\uDFFF]|\uD807[\uDC00-\uDC40\uDC46-\uDC6F\uDC72-\uDEF6\uDEF9-\uDF42\uDF50-\uDFFE]|[\uD808\uD80A\uD80C-\uD819\uD81C-\uD82E\uD830-\uD835\uD837\uD838\uD83B-\uDBFF][\uDC00-\uDFFF]|\uD809[\uDC00-\uDC6F\uDC75-\uDFFF]|\uD80B[\uDC00-\uDFF0\uDFF3-\uDFFF]|\uD81A[\uDC00-\uDE6D\uDE70-\uDEF4\uDEF6-\uDF36\uDF3C-\uDF43\uDF45-\uDFFF]|\uD81B[\uDC00-\uDD6C\uDD70-\uDE96\uDE9B-\uDFE1\uDFE3-\uDFFF]|\uD82F[\uDC00-\uDC9E\uDCA0-\uDFFF]|\uD836[\uDC00-\uDE86\uDE8C-\uDFFF]|\uD839[\uDC00-\uDDFE\uDE00-\uDFFF]|\uD83A[\uDC00-\uDD5D\uDD60-\uDFFF])|\/|(?:[\0-\x08\x0E-\x1F!-Z\\\^-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+(?:[\0-\x08\x0E-\x1F\$\+0-9=A-Z\^`-z\|~-\x9F\xA2-\xA6\xA8-\xAA\xAC-\xB5\xB8-\xBA\xBC-\xBE\xC0-\u037D\u037F-\u0386\u0388-\u0559\u0560-\u0588\u058B-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7-\u05F2\u05F5-\u0608\u060B\u060E-\u061A\u061C\u0620-\u0669\u066E-\u06D3\u06D5-\u06FF\u070E-\u07F6\u07FA-\u082F\u083F-\u085D\u085F-\u0963\u0966-\u096F\u0971-\u09FC\u09FE-\u0A75\u0A77-\u0AEF\u0AF1-\u0C76\u0C78-\u0C83\u0C85-\u0DF3\u0DF5-\u0E4E\u0E50-\u0E59\u0E5C-\u0F03\u0F13\u0F15-\u0F39\u0F3E-\u0F84\u0F86-\u0FCF\u0FD5-\u0FD8\u0FDB-\u1049\u1050-\u10FA\u10FC-\u135F\u1369-\u13FF\u1401-\u166D\u166F-\u167F\u1681-\u169A\u169D-\u16EA\u16EE-\u1734\u1737-\u17D3\u17D7\u17DB-\u17FF\u180B-\u1943\u1946-\u1A1D\u1A20-\u1A9F\u1AA7\u1AAE-\u1B4D\u1B50-\u1B59\u1B61-\u1B7C\u1B80-\u1BFB\u1C00-\u1C3A\u1C40-\u1C7D\u1C80-\u1CBF\u1CC8-\u1CD2\u1CD4-\u1FFF\u200B-\u200F\u202A-\u202E\u2044\u2052\u2060-\u207C\u207F-\u208C\u208F-\u2307\u230C-\u2328\u232B-\u2767\u2776-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2CF8\u2CFD\u2D00-\u2D6F\u2D71-\u2DFF\u2E2F\u2E50\u2E51\u2E5E-\u2FFF\u3004-\u3007\u3012\u3013\u3020-\u302F\u3031-\u303C\u303E-\u309F\u30A1-\u30FA\u30FC-\uA4FD\uA500-\uA60C\uA610-\uA672\uA674-\uA67D\uA67F-\uA6F1\uA6F8-\uA873\uA878-\uA8CD\uA8D0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA95E\uA960-\uA9C0\uA9CE-\uA9DD\uA9E0-\uAA5B\uAA60-\uAADD\uAAE0-\uAAEF\uAAF2-\uABEA\uABEC-\uFD3D\uFD40-\uFE0F\uFE1A-\uFE2F\uFE53\uFE62\uFE64-\uFE67\uFE69\uFE6C-\uFEFE\uFF00\uFF04\uFF0B\uFF10-\uFF19\uFF1C-\uFF1E\uFF21-\uFF3A\uFF3E\uFF40-\uFF5A\uFF5C\uFF5E\uFF66-\uFFFF]|\uD800[\uDC00-\uDCFF\uDD03-\uDF9E\uDFA0-\uDFCF\uDFD1-\uDFFF]|\uD801[\uDC00-\uDD6E\uDD70-\uDFFF]|\uD802[\uDC00-\uDC56\uDC58-\uDD1E\uDD20-\uDD3E\uDD40-\uDE4F\uDE59-\uDE7E\uDE80-\uDEEF\uDEF7-\uDF38\uDF40-\uDF98\uDF9D-\uDFFF]|\uD803[\uDC00-\uDD6D\uDD6F-\uDEAC\uDEAE-\uDF54\uDF5A-\uDF85\uDF8A-\uDFFF]|\uD804[\uDC00-\uDC46\uDC4E-\uDCBA\uDCBD\uDCC2-\uDD3F\uDD44-\uDD73\uDD76-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDDE0-\uDE37\uDE3E-\uDEA8\uDEAA-\uDFD3\uDFD6\uDFD9-\uDFFF]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5C\uDC5E-\uDCC5\uDCC7-\uDDC0\uDDD8-\uDE40\uDE44-\uDE5F\uDE6D-\uDEB8\uDEBA-\uDF3B\uDF3F-\uDFFF]|\uD806[\uDC00-\uDC3A\uDC3C-\uDD43\uDD47-\uDDE1\uDDE3-\uDE3E\uDE47-\uDE99\uDE9D\uDEA3-\uDEFF\uDF0A-\uDFE0\uDFE2-\uDFFF]|\uD807[\uDC00-\uDC40\uDC46-\uDC6F\uDC72-\uDEF6\uDEF9-\uDF42\uDF50-\uDFFE]|[\uD808\uD80A\uD80C-\uD819\uD81C-\uD82E\uD830-\uD835\uD837\uD838\uD83B-\uDBFF][\uDC00-\uDFFF]|\uD809[\uDC00-\uDC6F\uDC75-\uDFFF]|\uD80B[\uDC00-\uDFF0\uDFF3-\uDFFF]|\uD81A[\uDC00-\uDE6D\uDE70-\uDEF4\uDEF6-\uDF36\uDF3C-\uDF43\uDF45-\uDFFF]|\uD81B[\uDC00-\uDD6C\uDD70-\uDE96\uDE9B-\uDFE1\uDFE3-\uDFFF]|\uD82F[\uDC00-\uDC9E\uDCA0-\uDFFF]|\uD836[\uDC00-\uDE86\uDE8C-\uDFFF]|\uD839[\uDC00-\uDDFE\uDE00-\uDFFF]|\uD83A[\uDC00-\uDD5D\uDD60-\uDFFF]))+|\b(?:[\0-\x08\x0E-\x1F!-'\*-;=\?A-Z\\\^-z\|~-\x9F\xA1-\u0F39\u0F3E-\u167F\u1681-\u169A\u169D-\u1FFF\u200B-\u2019\u201B-\u201D\u201F-\u2027\u202A-\u202E\u2030-\u2044\u2047-\u205E\u2060-\u207C\u207F-\u208C\u208F-\u2307\u230C-\u2328\u232B-\u2767\u2776-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2E21\u2E2A-\u2E41\u2E43-\u2E54\u2E5D-\u2FFF\u3001-\u3007\u3012\u3013\u301C\u3020-\uFD3D\uFD40-\uFE16\uFE19-\uFE34\uFE45\uFE46\uFE49-\uFE58\uFE5F-\uFEFE\uFF00-\uFF07\uFF0A-\uFF3A\uFF3C\uFF3E-\uFF5A\uFF5C\uFF5E\uFF61\uFF64-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+@((?:[\0-\x08\x0E-\x1F\$\+0-9=A-Z\^`-z\|~-\x9F\xA2-\xA6\xA8-\xAA\xAC-\xB5\xB8-\xBA\xBC-\xBE\xC0-\u037D\u037F-\u0386\u0388-\u0559\u0560-\u0588\u058B-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7-\u05F2\u05F5-\u0608\u060B\u060E-\u061A\u061C\u0620-\u0669\u066E-\u06D3\u06D5-\u06FF\u070E-\u07F6\u07FA-\u082F\u083F-\u085D\u085F-\u0963\u0966-\u096F\u0971-\u09FC\u09FE-\u0A75\u0A77-\u0AEF\u0AF1-\u0C76\u0C78-\u0C83\u0C85-\u0DF3\u0DF5-\u0E4E\u0E50-\u0E59\u0E5C-\u0F03\u0F13\u0F15-\u0F39\u0F3E-\u0F84\u0F86-\u0FCF\u0FD5-\u0FD8\u0FDB-\u1049\u1050-\u10FA\u10FC-\u135F\u1369-\u13FF\u1401-\u166D\u166F-\u167F\u1681-\u169A\u169D-\u16EA\u16EE-\u1734\u1737-\u17D3\u17D7\u17DB-\u17FF\u180B-\u1943\u1946-\u1A1D\u1A20-\u1A9F\u1AA7\u1AAE-\u1B4D\u1B50-\u1B59\u1B61-\u1B7C\u1B80-\u1BFB\u1C00-\u1C3A\u1C40-\u1C7D\u1C80-\u1CBF\u1CC8-\u1CD2\u1CD4-\u1FFF\u200B-\u200F\u202A-\u202E\u2044\u2052\u2060-\u207C\u207F-\u208C\u208F-\u2307\u230C-\u2328\u232B-\u2767\u2776-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2CF8\u2CFD\u2D00-\u2D6F\u2D71-\u2DFF\u2E2F\u2E50\u2E51\u2E5E-\u2FFF\u3004-\u3007\u3012\u3013\u3020-\u302F\u3031-\u303C\u303E-\u309F\u30A1-\u30FA\u30FC-\uA4FD\uA500-\uA60C\uA610-\uA672\uA674-\uA67D\uA67F-\uA6F1\uA6F8-\uA873\uA878-\uA8CD\uA8D0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA95E\uA960-\uA9C0\uA9CE-\uA9DD\uA9E0-\uAA5B\uAA60-\uAADD\uAAE0-\uAAEF\uAAF2-\uABEA\uABEC-\uFD3D\uFD40-\uFE0F\uFE1A-\uFE2F\uFE53\uFE62\uFE64-\uFE67\uFE69\uFE6C-\uFEFE\uFF00\uFF04\uFF0B\uFF10-\uFF19\uFF1C-\uFF1E\uFF21-\uFF3A\uFF3E\uFF40-\uFF5A\uFF5C\uFF5E\uFF66-\uFFFF]|\uD800[\uDC00-\uDCFF\uDD03-\uDF9E\uDFA0-\uDFCF\uDFD1-\uDFFF]|\uD801[\uDC00-\uDD6E\uDD70-\uDFFF]|\uD802[\uDC00-\uDC56\uDC58-\uDD1E\uDD20-\uDD3E\uDD40-\uDE4F\uDE59-\uDE7E\uDE80-\uDEEF\uDEF7-\uDF38\uDF40-\uDF98\uDF9D-\uDFFF]|\uD803[\uDC00-\uDD6D\uDD6F-\uDEAC\uDEAE-\uDF54\uDF5A-\uDF85\uDF8A-\uDFFF]|\uD804[\uDC00-\uDC46\uDC4E-\uDCBA\uDCBD\uDCC2-\uDD3F\uDD44-\uDD73\uDD76-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDDE0-\uDE37\uDE3E-\uDEA8\uDEAA-\uDFD3\uDFD6\uDFD9-\uDFFF]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5C\uDC5E-\uDCC5\uDCC7-\uDDC0\uDDD8-\uDE40\uDE44-\uDE5F\uDE6D-\uDEB8\uDEBA-\uDF3B\uDF3F-\uDFFF]|\uD806[\uDC00-\uDC3A\uDC3C-\uDD43\uDD47-\uDDE1\uDDE3-\uDE3E\uDE47-\uDE99\uDE9D\uDEA3-\uDEFF\uDF0A-\uDFE0\uDFE2-\uDFFF]|\uD807[\uDC00-\uDC40\uDC46-\uDC6F\uDC72-\uDEF6\uDEF9-\uDF42\uDF50-\uDFFE]|[\uD808\uD80A\uD80C-\uD819\uD81C-\uD82E\uD830-\uD835\uD837\uD838\uD83B-\uDBFF][\uDC00-\uDFFF]|\uD809[\uDC00-\uDC6F\uDC75-\uDFFF]|\uD80B[\uDC00-\uDFF0\uDFF3-\uDFFF]|\uD81A[\uDC00-\uDE6D\uDE70-\uDEF4\uDEF6-\uDF36\uDF3C-\uDF43\uDF45-\uDFFF]|\uD81B[\uDC00-\uDD6C\uDD70-\uDE96\uDE9B-\uDFE1\uDFE3-\uDFFF]|\uD82F[\uDC00-\uDC9E\uDCA0-\uDFFF]|\uD836[\uDC00-\uDE86\uDE8C-\uDFFF]|\uD839[\uDC00-\uDDFE\uDE00-\uDFFF]|\uD83A[\uDC00-\uDD5D\uDD60-\uDFFF])+(?:\.(?:[\0-\x08\x0E-\x1F\$\+0-9=A-Z\^`-z\|~-\x9F\xA2-\xA6\xA8-\xAA\xAC-\xB5\xB8-\xBA\xBC-\xBE\xC0-\u037D\u037F-\u0386\u0388-\u0559\u0560-\u0588\u058B-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7-\u05F2\u05F5-\u0608\u060B\u060E-\u061A\u061C\u0620-\u0669\u066E-\u06D3\u06D5-\u06FF\u070E-\u07F6\u07FA-\u082F\u083F-\u085D\u085F-\u0963\u0966-\u096F\u0971-\u09FC\u09FE-\u0A75\u0A77-\u0AEF\u0AF1-\u0C76\u0C78-\u0C83\u0C85-\u0DF3\u0DF5-\u0E4E\u0E50-\u0E59\u0E5C-\u0F03\u0F13\u0F15-\u0F39\u0F3E-\u0F84\u0F86-\u0FCF\u0FD5-\u0FD8\u0FDB-\u1049\u1050-\u10FA\u10FC-\u135F\u1369-\u13FF\u1401-\u166D\u166F-\u167F\u1681-\u169A\u169D-\u16EA\u16EE-\u1734\u1737-\u17D3\u17D7\u17DB-\u17FF\u180B-\u1943\u1946-\u1A1D\u1A20-\u1A9F\u1AA7\u1AAE-\u1B4D\u1B50-\u1B59\u1B61-\u1B7C\u1B80-\u1BFB\u1C00-\u1C3A\u1C40-\u1C7D\u1C80-\u1CBF\u1CC8-\u1CD2\u1CD4-\u1FFF\u200B-\u200F\u202A-\u202E\u2044\u2052\u2060-\u207C\u207F-\u208C\u208F-\u2307\u230C-\u2328\u232B-\u2767\u2776-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2CF8\u2CFD\u2D00-\u2D6F\u2D71-\u2DFF\u2E2F\u2E50\u2E51\u2E5E-\u2FFF\u3004-\u3007\u3012\u3013\u3020-\u302F\u3031-\u303C\u303E-\u309F\u30A1-\u30FA\u30FC-\uA4FD\uA500-\uA60C\uA610-\uA672\uA674-\uA67D\uA67F-\uA6F1\uA6F8-\uA873\uA878-\uA8CD\uA8D0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA95E\uA960-\uA9C0\uA9CE-\uA9DD\uA9E0-\uAA5B\uAA60-\uAADD\uAAE0-\uAAEF\uAAF2-\uABEA\uABEC-\uFD3D\uFD40-\uFE0F\uFE1A-\uFE2F\uFE53\uFE62\uFE64-\uFE67\uFE69\uFE6C-\uFEFE\uFF00\uFF04\uFF0B\uFF10-\uFF19\uFF1C-\uFF1E\uFF21-\uFF3A\uFF3E\uFF40-\uFF5A\uFF5C\uFF5E\uFF66-\uFFFF]|\uD800[\uDC00-\uDCFF\uDD03-\uDF9E\uDFA0-\uDFCF\uDFD1-\uDFFF]|\uD801[\uDC00-\uDD6E\uDD70-\uDFFF]|\uD802[\uDC00-\uDC56\uDC58-\uDD1E\uDD20-\uDD3E\uDD40-\uDE4F\uDE59-\uDE7E\uDE80-\uDEEF\uDEF7-\uDF38\uDF40-\uDF98\uDF9D-\uDFFF]|\uD803[\uDC00-\uDD6D\uDD6F-\uDEAC\uDEAE-\uDF54\uDF5A-\uDF85\uDF8A-\uDFFF]|\uD804[\uDC00-\uDC46\uDC4E-\uDCBA\uDCBD\uDCC2-\uDD3F\uDD44-\uDD73\uDD76-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDDE0-\uDE37\uDE3E-\uDEA8\uDEAA-\uDFD3\uDFD6\uDFD9-\uDFFF]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5C\uDC5E-\uDCC5\uDCC7-\uDDC0\uDDD8-\uDE40\uDE44-\uDE5F\uDE6D-\uDEB8\uDEBA-\uDF3B\uDF3F-\uDFFF]|\uD806[\uDC00-\uDC3A\uDC3C-\uDD43\uDD47-\uDDE1\uDDE3-\uDE3E\uDE47-\uDE99\uDE9D\uDEA3-\uDEFF\uDF0A-\uDFE0\uDFE2-\uDFFF]|\uD807[\uDC00-\uDC40\uDC46-\uDC6F\uDC72-\uDEF6\uDEF9-\uDF42\uDF50-\uDFFE]|[\uD808\uD80A\uD80C-\uD819\uD81C-\uD82E\uD830-\uD835\uD837\uD838\uD83B-\uDBFF][\uDC00-\uDFFF]|\uD809[\uDC00-\uDC6F\uDC75-\uDFFF]|\uD80B[\uDC00-\uDFF0\uDFF3-\uDFFF]|\uD81A[\uDC00-\uDE6D\uDE70-\uDEF4\uDEF6-\uDF36\uDF3C-\uDF43\uDF45-\uDFFF]|\uD81B[\uDC00-\uDD6C\uDD70-\uDE96\uDE9B-\uDFE1\uDFE3-\uDFFF]|\uD82F[\uDC00-\uDC9E\uDCA0-\uDFFF]|\uD836[\uDC00-\uDE86\uDE8C-\uDFFF]|\uD839[\uDC00-\uDDFE\uDE00-\uDFFF]|\uD83A[\uDC00-\uDD5D\uDD60-\uDFFF])+)+)/gm));var u,r=T(Oo(t),2),a=r[0],o=r[1],s=[],l=m(a.matchAll(i(e,this,Hc)._));try{for(l.s();!(u=l.n()).done;){var c=u.value,d=T(c,2),h=d[0],D=d[1],f=void 0;if(h.startsWith("www.")||h.startsWith("http://")||h.startsWith("https://"))f=h;else{if(!URL.canParse("http://".concat(D)))continue;f=h.startsWith("mailto:")?h:"mailto:".concat(h)}var p=de(f,null,{addDefaultProtocol:!0});if(p){var v=T(jo(o,c.index,h.length),2),g=v[0],F=v[1];s.push({url:p.href,index:g,length:F})}}}catch(e){l.e(e)}finally{l.f()}return s}},{key:"processLinks",value:function(t){var n=this;return this.findLinks(t._textHighlighter.textContentItemsStr.join("\n")).map(function(u){var r,a;return Vc(u,t,(Uc._=i(e,n,(r=i(e,n,Uc)._,a=r++,r)),a))})}}])}(),Uc={_:0},Hc={_:void 0},Gc=new WeakMap,Zc=new WeakMap,Xc=new WeakMap,$c=new WeakMap,Kc=new WeakMap,qc=new WeakMap,Yc=new WeakMap,Jc=new WeakMap,Qc=new WeakMap,ed=new WeakSet,td=function(){return F(function e(t){var n,i=this;d(this,e),v(this,ed),D(this,Gc,!1),D(this,Zc,null),D(this,Xc,0),D(this,$c,null),D(this,Kc,Ke.INITIAL),D(this,qc,null),D(this,Yc,0),D(this,Jc,null),E(this,"canvas",null),E(this,"div",null),E(this,"eventBus",null),E(this,"id",null),E(this,"pageColors",null),E(this,"renderingQueue",null),E(this,"renderTask",null),E(this,"resume",null),D(this,Qc,function(e){var t;if(null===(t=h(qc,i))||void 0===t||t.call(i,!1),i.renderingQueue&&!i.renderingQueue.isHighestPriority(i))return i.renderingState=Ke.PAUSED,void(i.resume=function(){i.renderingState=Ke.RUNNING,e()});e()}),f(Gc,this,Gc.has(function(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?typeof e:"null"));return e}(t))?h(Gc,t):t.enableHWA||!1),this.eventBus=t.eventBus,this.id=t.id,this.pageColors=t.pageColors||null,this.renderingQueue=t.renderingQueue,f(Xc,this,null!==(n=t.minDurationToUpdateCanvas)&&void 0!==n?n:500)},[{key:"renderingState",get:function(){return h(Kc,this)},set:function(e){var t,n=this;if(e!==h(Kc,this))switch(f(Kc,this,e),h(Zc,this)&&(clearTimeout(h(Zc,this)),f(Zc,this,null)),e){case Ke.PAUSED:this.div.classList.remove("loading"),f(Yc,this,0),null===(t=h(qc,this))||void 0===t||t.call(this,!1);break;case Ke.RUNNING:this.div.classList.add("loadingIcon"),f(Zc,this,setTimeout(function(){n.div.classList.add("loading"),f(Zc,n,null)},0)),f(Yc,this,Date.now());break;case Ke.INITIAL:case Ke.FINISHED:this.div.classList.remove("loadingIcon","loading"),f(Yc,this,0)}}},{key:"_createCanvas",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=this.pageColors,r=!(null==u||!u.background||null==u||!u.foreground),a=this.canvas,o=!a&&!r&&!n,s=this.canvas=document.createElement("canvas");f(qc,this,function(n){if(o){var u=h(Jc,t);if(!n&&h(Xc,t)>0){if(Date.now()-h(Yc,t)<h(Xc,t))return;u||(u=f(Jc,t,s),s=t.canvas=s.cloneNode(!1),e(s))}return u?(s.getContext("2d",{alpha:!1}).drawImage(u,0,0),void(n?i(ed,t,nd).call(t):f(Yc,t,Date.now()))):(e(s),void f(qc,t,null))}n&&(a?(a.replaceWith(s),a.width=a.height=0):e(s))});var l=s.getContext("2d",{alpha:!1,willReadFrequently:!h(Gc,this)});return{canvas:s,prevCanvas:a,ctx:l}}},{key:"_resetCanvas",value:function(){var e=this.canvas;e&&(e.remove(),e.width=e.height=0,this.canvas=null,i(ed,this,nd).call(this))}},{key:"_drawCanvas",value:(e=o(k().m(function e(t,n,i){var u,r,a,o,s,l=this;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:return(u=this.renderTask=this.pdfPage.render(t)).onContinue=h(Qc,this),u.onError=function(e){e instanceof Le&&(n(),f($c,l,null))},r=null,e.p=1,e.n=2,u.promise;case 2:null===(a=h(qc,this))||void 0===a||a.call(this,!0),e.n=5;break;case 3:if(e.p=3,!((s=e.v)instanceof Le)){e.n=4;break}return e.a(2);case 4:r=s,null===(o=h(qc,this))||void 0===o||o.call(this,!0);case 5:return e.p=5,f($c,this,r),u===this.renderTask&&(this.renderTask=null),e.f(5);case 6:if(this.renderingState=Ke.FINISHED,i(u),!r){e.n=7;break}throw r;case 7:return e.a(2)}},e,this,[[1,3,5,6]])})),function(t,n,i){return e.apply(this,arguments)})},{key:"cancelRendering",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).cancelExtraDelay,t=void 0===e?0:e;this.renderTask&&(this.renderTask.cancel(t),this.renderTask=null),this.resume=null}},{key:"dispatchPageRender",value:function(){this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id})}},{key:"dispatchPageRendered",value:function(e,t){this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:e,isDetailView:t,timestamp:performance.now(),error:h($c,this)})}}]);var e}();function nd(){h(Jc,this)&&(h(Jc,this).width=h(Jc,this).height=0,f(Jc,this,null))}var id=new WeakMap,ud=function(){return F(function e(t){d(this,e),D(this,id,null),this.pageIndex=t.pageIndex},[{key:"render",value:(e=o(k().m(function e(t){var n;return k().w(function(e){for(;;)switch(e.n){case 0:if("display"===(void 0===(n=t.intent)?"display":n)&&!h(id,this)&&!this._cancelled){e.n=1;break}return e.a(2);case 1:f(id,this,new De({pageIndex:this.pageIndex}));case 2:return e.a(2)}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"cancel",value:function(){this._cancelled=!0,h(id,this)&&(h(id,this).destroy(),f(id,this,null))}},{key:"setParent",value:function(e){var t;null===(t=h(id,this))||void 0===t||t.setParent(e)}},{key:"getDrawLayer",value:function(){return h(id,this)}}]);var e}(),rd=new WeakMap,ad=new WeakSet,od=function(e){function t(e){var n,i=e.pageView;return d(this,t),v(n=l(this,t,[i]),ad),D(n,rd,null),E(n,"renderingCancelled",!1),n.pageView=i,n.renderingId="detail"+n.id,n.div=i.div,n}return w(t,e),F(t,[{key:"setPdfPage",value:function(e){this.pageView.setPdfPage(e)}},{key:"pdfPage",get:function(){return this.pageView.pdfPage}},{key:"renderingState",get:function(){return L(t,"renderingState",this,1)},set:function(e){this.renderingCancelled=!1,N(t,"renderingState",e,this,1,1)}},{key:"reset",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).keepCanvas,t=void 0!==e&&e,n=this.renderingCancelled||this.renderingState===Ke.RUNNING||this.renderingState===Ke.PAUSED;this.cancelRendering(),this.renderingState=Ke.INITIAL,this.renderingCancelled=n,t||this._resetCanvas()}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.visibleArea,n=void 0===t?null:t,u=e.underlyingViewUpdated;if(void 0!==u&&u)return this.cancelRendering(),void(this.renderingState=Ke.INITIAL);if(i(ad,this,sd).call(this,n)){var r=this.pageView,a=r.viewport,o=r.maxCanvasPixels,s=r.capCanvasAreaFactor,l=n.maxX-n.minX,c=n.maxY-n.minY,d=l*c*Math.pow(xe.pixelRatio,2),h=(Math.sqrt(xe.capPixels(o,s)/d)-1)/2,D=Math.min(1,h);D<0&&(D=0);var p=l*D,v=c*D,g=Math.max(0,n.minX-p),F=Math.min(a.width,n.maxX+p),m=Math.max(0,n.minY-v),E=Math.min(a.height,n.maxY+v);f(rd,this,{minX:g,minY:m,width:F-g,height:E-m,scale:a.scale}),this.reset({keepCanvas:!0})}}},{key:"draw",value:(n=o(k().m(function e(){var t,n,i,u,r,a,o,s,l,c,d,D,f,p,v,g,F,m=this;return k().w(function(e){for(;;)switch(e.n){case 0:if(this.pageView.detailView===this){e.n=1;break}return e.a(2,void 0);case 1:if(t=this.pageView.renderingState===Ke.FINISHED||this.renderingState===Ke.FINISHED,this.renderingState!==Ke.INITIAL&&(console.error("Must be in new state before drawing"),this.reset()),n=this.pageView,i=n.div,u=n.pdfPage,r=n.viewport,u){e.n=2;break}throw this.renderingState=Ke.FINISHED,new Error("pdfPage is not loaded");case 2:return this.renderingState=Ke.RUNNING,a=this.pageView._ensureCanvasWrapper(),o=this._createCanvas(function(e){var t;"CANVAS"===(null===(t=a.firstElementChild)||void 0===t?void 0:t.tagName)?a.firstElementChild.after(e):a.prepend(e)},t),s=o.canvas,l=o.prevCanvas,c=o.ctx,s.setAttribute("aria-hidden","true"),d=r.width,D=r.height,f=h(rd,this),p=xe.pixelRatio,v=[p,0,0,p,-f.minX*p,-f.minY*p],s.width=f.width*p,s.height=f.height*p,(g=s.style).width="".concat(100*f.width/d,"%"),g.height="".concat(100*f.height/D,"%"),g.top="".concat(100*f.minY/D,"%"),g.left="".concat(100*f.minX/d,"%"),F=this._drawCanvas(this.pageView._getRenderingContext(c,v),function(){var e;null===(e=m.canvas)||void 0===e||e.remove(),m.canvas=l},function(){m.dispatchPageRendered(!1,!0)}),i.setAttribute("data-loaded",!0),this.dispatchPageRender(),e.a(2,F)}},e,this)})),function(){return n.apply(this,arguments)})}]);var n}(td);function sd(e){if(!h(rd,this))return!0;var t=h(rd,this).minX,n=h(rd,this).minY,i=h(rd,this).width+t,u=h(rd,this).height+n;if(e.minX<t||e.minY<n||e.maxX>i||e.maxY>u)return!0;var r=this.pageView.viewport,a=r.width,o=r.height,s=r.scale;if(h(rd,this).scale!==s)return!0;var l=e.minX-t,c=i-e.maxX,d=e.minY-n,D=u-e.maxY;return t>0&&c/l>3||i<a&&l/c>3||n>0&&D/d>3||u<o&&d/D>3}var ld={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},cd=/^H(\d+)$/,dd=new WeakMap,hd=new WeakMap,Dd=new WeakMap,fd=new WeakMap,pd=new WeakMap,vd=new WeakMap,gd=new WeakSet,Fd=function(){return F(function e(t,n){d(this,e),v(this,gd),D(this,dd,void 0),D(this,hd,null),D(this,Dd,void 0),D(this,fd,new Map),D(this,pd,void 0),D(this,vd,null),f(dd,this,t.getStructTree()),f(pd,this,n)},[{key:"render",value:(t=o(k().m(function e(){var t,n,u,r,a,o,s,l,c,d,D,p,v;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!h(Dd,this)){e.n=1;break}return e.a(2,h(Dd,this));case 1:return n=Promise.withResolvers(),u=n.promise,r=n.resolve,a=n.reject,f(Dd,this,u),e.p=2,o=f,s=hd,l=this,c=i(gd,this,Cd),d=this,e.n=3,h(dd,this);case 3:D=e.v,p=c.call.call(c,d,D),o(s,l,p),e.n=5;break;case 4:e.p=4,v=e.v,a(v);case 5:return f(dd,this,null),null===(t=h(hd,this))||void 0===t||t.classList.add("structTree"),r(h(hd,this)),e.a(2,u)}},e,this,[[2,4]])})),function(){return t.apply(this,arguments)})},{key:"getAriaAttributes",value:(e=o(k().m(function e(t){return k().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this.render();case 1:return e.a(2,h(fd,this).get(t));case 2:return e.p=2,e.v,e.a(2,null)}},e,this,[[0,2]])})),function(t){return e.apply(this,arguments)})},{key:"hide",value:function(){h(hd,this)&&!h(hd,this).hidden&&(h(hd,this).hidden=!0)}},{key:"show",value:function(){var e;null!==(e=h(hd,this))&&void 0!==e&&e.hidden&&(h(hd,this).hidden=!1)}},{key:"addElementsToTextLayer",value:function(){if(h(vd,this)){var e,t=m(h(vd,this));try{for(t.s();!(e=t.n()).done;){var n,i=T(e.value,2),u=i[0],r=i[1];null===(n=document.getElementById(u))||void 0===n||n.append(r)}}catch(e){t.e(e)}finally{t.f()}h(vd,this).clear(),f(vd,this,null)}}}]);var e,t}();function md(e,t){var n=e.alt,i=e.id,u=e.lang;if(void 0!==n){var r,a=!1,o=Ft(n),s=m(e.children);try{for(s.s();!(r=s.n()).done;){var l=r.value;if("annotation"===l.type){var c=h(fd,this).get(l.id);c||(c=new Map,h(fd,this).set(l.id,c)),c.set("aria-label",o),a=!0}}}catch(e){s.e(e)}finally{s.f()}a||t.setAttribute("aria-label",o)}void 0!==i&&t.setAttribute("aria-owns",i),void 0!==u&&t.setAttribute("lang",Ft(u,!0))}function Ed(e,t){var n=e.alt,i=e.bbox,u=e.children,r=null==u?void 0:u[0];if(!h(pd,this)||!n||!i||"content"!==(null==r?void 0:r.type))return!1;var a=r.id;if(!a)return!1;t.setAttribute("aria-owns",a);var o=document.createElement("span");(h(vd,this)||f(vd,this,new Map)).set(a,o),o.setAttribute("role","img"),o.setAttribute("aria-label",Ft(n));var s=h(pd,this),l=s.pageHeight,c=s.pageX,d=s.pageY,D="calc(var(--total-scale-factor) *",p=o.style;return p.width="".concat(D).concat(i[2]-i[0],"px)"),p.height="".concat(D).concat(i[3]-i[1],"px)"),p.left="".concat(D).concat(i[0]-c,"px)"),p.top="".concat(D).concat(l-i[3]+d,"px)"),!0}function Cd(e){if(!e)return null;var t=document.createElement("span");if("role"in e){var n=e.role,u=n.match(cd);if(u?(t.setAttribute("role","heading"),t.setAttribute("aria-level",u[1])):ld[n]&&t.setAttribute("role",ld[n]),"Figure"===n&&i(gd,this,Ed).call(this,e,t))return t}if(i(gd,this,md).call(this,e,t),e.children)if(1===e.children.length&&"id"in e.children[0])i(gd,this,md).call(this,e.children[0],t);else{var r,a=m(e.children);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.append(i(gd,this,Cd).call(this,o))}}catch(e){a.e(e)}finally{a.f()}}return t}var Ad=new WeakMap,wd=new WeakMap,bd=new WeakMap,yd=new WeakMap,Bd=new WeakSet,kd=function(){function e(){d(this,e),v(this,Bd),D(this,Ad,!1),D(this,wd,null),D(this,bd,new Map),D(this,yd,new Map)}return F(e,[{key:"setTextMapping",value:function(e){f(wd,this,e)}},{key:"enable",value:function(){if(h(Ad,this))throw new Error("TextAccessibilityManager is already enabled.");if(!h(wd,this))throw new Error("Text divs and strings have not been set.");if(f(Ad,this,!0),f(wd,this,h(wd,this).slice()),h(wd,this).sort(_d),h(bd,this).size>0){var e,t=h(wd,this),n=m(h(bd,this));try{for(n.s();!(e=n.n()).done;){var u=T(e.value,2),r=u[0],a=u[1];document.getElementById(r)?i(Bd,this,xd).call(this,r,t[a]):h(bd,this).delete(r)}}catch(e){n.e(e)}finally{n.f()}}var o,s=m(h(yd,this));try{for(s.s();!(o=s.n()).done;){var l=T(o.value,2),c=l[0],d=l[1];this.addPointerInTextLayer(c,d)}}catch(e){s.e(e)}finally{s.f()}h(yd,this).clear()}},{key:"disable",value:function(){h(Ad,this)&&(h(yd,this).clear(),f(wd,this,null),f(Ad,this,!1))}},{key:"removePointerInTextLayer",value:function(e){var t;if(h(Ad,this)){var n=h(wd,this);if(n&&0!==n.length){var i=e.id,u=h(bd,this).get(i);if(void 0!==u){var r=n[u];h(bd,this).delete(i);var a=r.getAttribute("aria-owns");null!==(t=a)&&void 0!==t&&t.includes(i)&&((a=a.split(" ").filter(function(e){return e!==i}).join(" "))?r.setAttribute("aria-owns",a):(r.removeAttribute("aria-owns"),r.setAttribute("role","presentation")))}}}else h(yd,this).delete(e)}},{key:"addPointerInTextLayer",value:function(t,n){var u=t.id;if(!u)return null;if(!h(Ad,this))return h(yd,this).set(t,n),null;n&&this.removePointerInTextLayer(t);var r=h(wd,this);if(!r||0===r.length)return null;var a=mt(r,function(n){return _d.call(e,t,n)<0}),o=Math.max(0,a-1),s=r[o];i(Bd,this,xd).call(this,u,s),h(bd,this).set(u,o);var l=s.parentNode;return null!=l&&l.classList.contains("markedContent")?l.id:null}},{key:"moveElementInDOM",value:function(t,n,i,u){var r=this.addPointerInTextLayer(i,u);if(!t.hasChildNodes())return t.append(n),r;var a=Array.from(t.childNodes).filter(function(e){return e!==n});if(0===a.length)return r;var o=i||n,s=mt(a,function(t){return _d.call(e,o,t)<0});return 0===s?a[0].before(n):a[s-1].after(n),r}}])}();function _d(e,t){var n=e.getBoundingClientRect(),i=t.getBoundingClientRect();if(0===n.width&&0===n.height)return 1;if(0===i.width&&0===i.height)return-1;var u=n.y,r=n.y+n.height,a=n.y+n.height/2,o=i.y,s=i.y+i.height,l=i.y+i.height/2;return a<=o&&l>=r?-1:l<=u&&a>=s?1:n.x+n.width/2-(i.x+i.width/2)}function xd(e,t){var n=t.getAttribute("aria-owns");null!=n&&n.includes(e)||t.setAttribute("aria-owns",n?"".concat(n," ").concat(e):e),t.removeAttribute("role")}var Sd=new WeakMap,Pd=function(){return F(function e(t){var n=t.findController,i=t.eventBus,u=t.pageIndex;d(this,e),D(this,Sd,null),this.findController=n,this.matches=[],this.eventBus=i,this.pageIdx=u,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1},[{key:"setTextMapping",value:function(e,t){this.textDivs=e,this.textContentItemsStr=t}},{key:"enable",value:function(){var e=this;if(!this.textDivs||!this.textContentItemsStr)throw new Error("Text divs and strings have not been set.");if(this.enabled)throw new Error("TextHighlighter is already enabled.");this.enabled=!0,h(Sd,this)||(f(Sd,this,new AbortController),this.eventBus._on("updatetextlayermatches",function(t){t.pageIndex!==e.pageIdx&&-1!==t.pageIndex||e._updateMatches()},{signal:h(Sd,this).signal})),this._updateMatches()}},{key:"disable",value:function(){var e;this.enabled&&(this.enabled=!1,null===(e=h(Sd,this))||void 0===e||e.abort(),f(Sd,this,null),this._updateMatches(!0))}},{key:"_convertMatches",value:function(e,t){if(!e)return[];for(var n=this.textContentItemsStr,i=0,u=0,r=n.length-1,a=[],o=0,s=e.length;o<s;o++){for(var l=e[o];i!==r&&l>=u+n[i].length;)u+=n[i].length,i++;i===n.length&&console.error("Could not find a matching mapping");var c={begin:{divIdx:i,offset:l-u}};for(l+=t[o];i!==r&&l>u+n[i].length;)u+=n[i].length,i++;c.end={divIdx:i,offset:l-u},a.push(c)}return a}},{key:"_renderMatches",value:function(e){if(0!==e.length){var t=this.findController,n=this.pageIdx,i=this.textContentItemsStr,u=this.textDivs,r=n===t.selected.pageIdx,a=t.selected.matchIdx,o=null,s={divIdx:-1,offset:void 0},l=a,c=l+1;if(t.state.highlightAll)l=0,c=e.length;else if(!r)return;for(var d=-1,h=-1,D=l;D<c;D++){var f=e[D],p=f.begin;if(p.divIdx!==d||p.offset!==h){d=p.divIdx,h=p.offset;var v=f.end,g=r&&D===a,F=g?" selected":"",m=0;if(o&&p.divIdx===o.divIdx?w(o.divIdx,o.offset,p.offset):(null!==o&&w(o.divIdx,o.offset,s.offset),A(p)),p.divIdx===v.divIdx)m=w(p.divIdx,p.offset,v.offset,"highlight"+F);else{m=w(p.divIdx,p.offset,s.offset,"highlight begin"+F);for(var E=p.divIdx+1,C=v.divIdx;E<C;E++)u[E].className="highlight middle"+F;A(v,"highlight end"+F)}o=v,g&&t.scrollMatchIntoView({element:u[p.divIdx],selectedLeft:m,pageIndex:n,matchIndex:a})}}o&&w(o.divIdx,o.offset,s.offset)}function A(e,t){var n=e.divIdx;return u[n].textContent="",w(n,0,e.offset,t)}function w(e,t,n,r){var a=u[e];if(a.nodeType===Node.TEXT_NODE){var o=document.createElement("span");a.before(o),o.append(a),u[e]=o,a=o}var s=i[e].substring(t,n),l=document.createTextNode(s);if(r){var c=document.createElement("span");return c.className="".concat(r," appended"),c.append(l),a.append(c),r.includes("selected")?c.getClientRects()[0].left-a.getBoundingClientRect().left:0}return a.append(l),0}}},{key:"_updateMatches",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.enabled||e){var t,n=this.findController,i=this.matches,u=this.pageIdx,r=this.textContentItemsStr,a=this.textDivs,o=-1,s=m(i);try{for(s.s();!(t=s.n()).done;){for(var l=t.value,c=Math.max(o,l.begin.divIdx),d=l.end.divIdx;c<=d;c++){var h=a[c];h.textContent=r[c],h.className=""}o=l.end.divIdx+1}}catch(e){s.e(e)}finally{s.f()}if(null!=n&&n.highlightMatches&&!e){var D=n.pageMatches[u]||null,f=n.pageMatchesLength[u]||null;this.matches=this._convertMatches(D,f),this._renderMatches(this.matches)}}}}])}(),Id=new WeakMap,Td=new WeakMap,Md=new WeakMap,Ld=new WeakMap,Nd=new WeakSet,Od=function(){function e(t){var n=t.pdfPage,i=t.highlighter,u=void 0===i?null:i,r=t.accessibilityManager,a=void 0===r?null:r,o=t.enablePermissions,s=void 0!==o&&o,l=t.onAppend,c=void 0===l?null:l;d(this,e),v(this,Nd),D(this,Id,!1),D(this,Td,null),D(this,Md,!1),D(this,Ld,null),this.pdfPage=n,this.highlighter=u,this.accessibilityManager=a,f(Id,this,!0===s),f(Td,this,c),this.div=document.createElement("div"),this.div.tabIndex=0,this.div.className="textLayer"}return F(e,[{key:"render",value:(t=o(k().m(function e(t){var n,u,r,a,o,s,l,c,d,D,p,v;return k().w(function(e){for(;;)switch(e.n){case 0:if(s=t.viewport,l=t.textContentParams,c=void 0===l?null:l,!h(Md,this)||!h(Ld,this)){e.n=1;break}return h(Ld,this).update({viewport:s,onBefore:this.hide.bind(this)}),this.show(),e.a(2);case 1:return this.cancel(),f(Ld,this,new ze({textContentSource:this.pdfPage.streamTextContent(c||{includeMarkedContent:!0,disableNormalization:!0}),container:this.div,viewport:s})),d=h(Ld,this),D=d.textDivs,p=d.textContentItemsStr,null===(n=this.highlighter)||void 0===n||n.setTextMapping(D,p),null===(u=this.accessibilityManager)||void 0===u||u.setTextMapping(D),e.n=2,h(Ld,this).render();case 2:f(Md,this,!0),(v=document.createElement("div")).className="endOfContent",this.div.append(v),i(Nd,this,jd).call(this,v),null===(r=h(Td,this))||void 0===r||r.call(this,this.div),null===(a=this.highlighter)||void 0===a||a.enable(),null===(o=this.accessibilityManager)||void 0===o||o.enable();case 3:return e.a(2)}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"hide",value:function(){var e;!this.div.hidden&&h(Md,this)&&(null===(e=this.highlighter)||void 0===e||e.disable(),this.div.hidden=!0)}},{key:"show",value:function(){var e;this.div.hidden&&h(Md,this)&&(this.div.hidden=!1,null===(e=this.highlighter)||void 0===e||e.enable())}},{key:"cancel",value:function(){var t,n,i;null===(t=h(Ld,this))||void 0===t||t.cancel(),f(Ld,this,null),null===(n=this.highlighter)||void 0===n||n.disable(),null===(i=this.accessibilityManager)||void 0===i||i.disable(),Rd.call(e,this.div)}}]);var t}();function jd(e){var t=this,n=this.div;n.addEventListener("mousedown",function(){n.classList.add("selecting")}),n.addEventListener("copy",function(e){if(!h(Id,t)){var n=document.getSelection();e.clipboardData.setData("text/plain",Ft(_e(n.toString())))}We(e)}),Vd._.set(n,e),Wd.call($)}function Rd(e){var t;(i($,this,Vd)._.delete(e),0===i($,this,Vd)._.size)&&(null===(t=i($,this,zd)._)||void 0===t||t.abort(),zd._=i($,this,null))}function Wd(){var e=this;if(!i($,this,zd)._){zd._=i($,this,new AbortController);var t,n,u=i($,this,zd)._.signal,r=function(e,t){t.append(e),e.style.width="",e.style.height="",t.classList.remove("selecting")},a=!1;document.addEventListener("pointerdown",function(){a=!0},{signal:u}),document.addEventListener("pointerup",function(){a=!1,i($,e,Vd)._.forEach(r)},{signal:u}),window.addEventListener("blur",function(){a=!1,i($,e,Vd)._.forEach(r)},{signal:u}),document.addEventListener("keyup",function(){a||i($,e,Vd)._.forEach(r)},{signal:u}),document.addEventListener("selectionchange",function(){var u,a=document.getSelection();if(0!==a.rangeCount){for(var o=new Set,s=0;s<a.rangeCount;s++){var l,c=a.getRangeAt(s),d=m(i($,e,Vd)._.keys());try{for(d.s();!(l=d.n()).done;){var h=l.value;!o.has(h)&&c.intersectsNode(h)&&o.add(h)}}catch(e){d.e(e)}finally{d.f()}}var D,f=m(i($,e,Vd)._);try{for(f.s();!(D=f.n()).done;){var p=T(D.value,2),v=p[0],g=p[1];o.has(v)?v.classList.add("selecting"):r(g,v)}}catch(e){f.e(e)}finally{f.f()}if(null!=t||(t="none"===getComputedStyle(i($,e,Vd)._.values().next().value).getPropertyValue("-moz-user-select")),!t){var F=a.getRangeAt(0),E=n&&(0===F.compareBoundaryPoints(Range.END_TO_END,n)||0===F.compareBoundaryPoints(Range.START_TO_END,n)),C=E?F.startContainer:F.endContainer;if(C.nodeType===Node.TEXT_NODE&&(C=C.parentNode),!E&&0===F.endOffset)do{for(;!C.previousSibling;)C=C.parentNode;C=C.previousSibling}while(!C.childNodes.length);var A=null===(u=C.parentElement)||void 0===u?void 0:u.closest(".textLayer"),w=i($,e,Vd)._.get(A);w&&(w.style.width=A.style.width,w.style.height=A.style.height,C.parentElement.insertBefore(w,E?C:C.nextSibling)),n=F.cloneRange()}}else i($,e,Vd)._.forEach(r)},{signal:u})}}$=Od;var Vd={_:new Map},zd={_:null},Ud=new Map([["canvasWrapper",0],["textLayer",1],["annotationLayer",2],["annotationEditorLayer",3],["xfaLayer",3]]),Hd=new WeakMap,Gd=new WeakMap,Zd=new WeakMap,Xd=new WeakMap,$d=new WeakMap,Kd=new WeakMap,qd=new WeakMap,Yd=new WeakMap,Jd=new WeakMap,Qd=new WeakMap,eh=new WeakMap,th=new WeakMap,nh=new WeakMap,ih=new WeakMap,uh=new WeakMap,rh=new WeakSet,ah=function(e){function t(e){var n,u,r,a,o,s,c,p;d(this,t),v(p=l(this,t,[e]),rh),D(p,Hd,oe.ENABLE_FORMS),D(p,Gd,null),D(p,Zd,!0),D(p,Xd,!1),D(p,$d,!1),D(p,Kd,null),D(p,qd,!1),D(p,Yd,null),D(p,Jd,null),D(p,Qd,1),D(p,eh,1),D(p,th,ot),D(p,nh,1),D(p,ih,{directDrawing:!0,initialOptionalContent:!0,regularAnnotations:!0}),D(p,uh,[null,null,null,null]);var g=e.container,F=e.defaultViewport;p.renderingId="page"+p.id,f(Kd,p,e.layerProperties||null),p.pdfPage=null,p.pageLabel=null,p.rotation=0,p.scale=e.scale||1,p.viewport=F,p.pdfPageRotate=F.rotation,p._optionalContentConfigPromise=e.optionalContentConfigPromise||null,f(th,p,null!==(n=e.textLayerMode)&&void 0!==n?n:ot),f(Hd,p,null!==(u=e.annotationMode)&&void 0!==u?u:oe.ENABLE_FORMS),p.imageResourcesPath=e.imageResourcesPath||"",p.enableDetailCanvas=null===(r=e.enableDetailCanvas)||void 0===r||r,p.maxCanvasPixels=null!==(a=e.maxCanvasPixels)&&void 0!==a?a:rn.get("maxCanvasPixels"),p.maxCanvasDim=e.maxCanvasDim||rn.get("maxCanvasDim"),p.capCanvasAreaFactor=null!==(o=e.capCanvasAreaFactor)&&void 0!==o?o:rn.get("capCanvasAreaFactor"),f(Zd,p,!1!==e.enableAutoLinking),p.l10n=e.l10n,(s=p).l10n||(s.l10n=new Vi),p._isStandalone=!(null!==(c=p.renderingQueue)&&void 0!==c&&c.hasViewer()),p._container=g,p._annotationCanvasMap=null,p.annotationLayer=null,p.annotationEditorLayer=null,p.textLayer=null,p.xfaLayer=null,p.structTreeLayer=null,p.drawLayer=null,p.detailView=null;var m=document.createElement("div");if(m.className="page",m.setAttribute("data-page-number",p.id),m.setAttribute("role","region"),m.setAttribute("data-l10n-id","pdfjs-page-landmark"),m.setAttribute("data-l10n-args",JSON.stringify({page:p.id})),p.div=m,i(rh,p,sh).call(p),null==g||g.append(m),p._isStandalone){var E;null==g||g.style.setProperty("--scale-factor",p.scale*Me.PDF_TO_CSS_UNITS),null!==(E=p.pageColors)&&void 0!==E&&E.background&&(null==g||g.style.setProperty("--page-bg-color",p.pageColors.background));var C=e.optionalContentConfigPromise;C&&C.then(function(e){C===p._optionalContentConfigPromise&&(h(ih,p).initialOptionalContent=e.hasInitialVisibility)}),e.l10n||p.l10n.translate(p.div)}return p}return w(t,e),F(t,[{key:"setPdfPage",value:function(e){var t,n,u,r;!this._isStandalone||"CanvasText"!==(null===(t=this.pageColors)||void 0===t?void 0:t.foreground)&&"Canvas"!==(null===(n=this.pageColors)||void 0===n?void 0:n.background)||(null===(u=this._container)||void 0===u||u.style.setProperty("--hcm-highlight-filter",e.filterFactory.addHighlightHCMFilter("highlight","CanvasText","Canvas","HighlightText","Highlight")),null===(r=this._container)||void 0===r||r.style.setProperty("--hcm-highlight-selected-filter",e.filterFactory.addHighlightHCMFilter("highlight_selected","CanvasText","Canvas","HighlightText","Highlight")));this.pdfPage=e,this.pdfPageRotate=e.rotate;var a=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport({scale:this.scale*Me.PDF_TO_CSS_UNITS,rotation:a}),i(rh,this,sh).call(this),this.reset()}},{key:"destroy",value:function(){var e;this.reset(),null===(e=this.pdfPage)||void 0===e||e.cleanup()}},{key:"hasEditableAnnotations",value:function(){var e;return!(null===(e=this.annotationLayer)||void 0===e||!e.hasEditableAnnotations())}},{key:"_textHighlighter",get:function(){return je(this,"_textHighlighter",new Pd({pageIndex:this.id-1,eventBus:this.eventBus,findController:h(Kd,this).findController}))}},{key:"_resetCanvas",value:function(){L(t,"_resetCanvas",this,3)([]),f(Yd,this,null)}},{key:"reset",value:function(){var e,t,n,i,u,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=r.keepAnnotationLayer,o=void 0!==a&&a,s=r.keepAnnotationEditorLayer,l=void 0!==s&&s,c=r.keepXfaLayer,d=void 0!==c&&c,D=r.keepTextLayer,p=void 0!==D&&D,v=r.keepCanvasWrapper,g=void 0!==v&&v,F=r.preserveDetailViewState,m=void 0!==F&&F;this.cancelRendering({keepAnnotationLayer:o,keepAnnotationEditorLayer:l,keepXfaLayer:d,keepTextLayer:p}),this.renderingState=Ke.INITIAL;for(var E,C=this.div,A=C.childNodes,w=o&&(null===(e=this.annotationLayer)||void 0===e?void 0:e.div)||null,b=l&&(null===(t=this.annotationEditorLayer)||void 0===t?void 0:t.div)||null,y=d&&(null===(n=this.xfaLayer)||void 0===n?void 0:n.div)||null,B=p&&(null===(i=this.textLayer)||void 0===i?void 0:i.div)||null,k=g&&h(Gd,this)||null,_=A.length-1;_>=0;_--){var x=A[_];switch(x){case w:case b:case y:case B:case k:continue}x.remove();var S=h(uh,this).indexOf(x);S>=0&&(h(uh,this)[S]=null)}(C.removeAttribute("data-loaded"),w&&this.annotationLayer.hide(),b&&this.annotationEditorLayer.hide(),y&&this.xfaLayer.hide(),B&&this.textLayer.hide(),null===(u=this.structTreeLayer)||void 0===u||u.hide(),!g&&h(Gd,this)&&(f(Gd,this,null),this._resetCanvas()),m)||(null===(E=this.detailView)||void 0===E||E.reset({keepCanvas:g}),g||(this.detailView=null))}},{key:"toggleEditingMode",value:function(e){f($d,this,e),this.hasEditableAnnotations()&&this.reset({keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,keepCanvasWrapper:!0})}},{key:"updateVisibleArea",value:function(e){var t;this.enableDetailCanvas&&(h(qd,this)&&this.maxCanvasPixels>0&&e?(null!==(t=this.detailView)&&void 0!==t||(this.detailView=new od({pageView:this})),this.detailView.update({visibleArea:e})):this.detailView&&(this.detailView.reset(),this.detailView=null))}},{key:"update",value:function(e){var t,n=this,u=e.scale,r=void 0===u?0:u,a=e.rotation,o=void 0===a?null:a,s=e.optionalContentConfigPromise,l=void 0===s?null:s,c=e.drawingDelay,d=void 0===c?-1:c;this.scale=r||this.scale,"number"==typeof o&&(this.rotation=o),l instanceof Promise&&(this._optionalContentConfigPromise=l,l.then(function(e){l===n._optionalContentConfigPromise&&(h(ih,n).initialOptionalContent=e.hasInitialVisibility)})),h(ih,this).directDrawing=!0;var D,f=(this.rotation+this.pdfPageRotate)%360;(this.viewport=this.viewport.clone({scale:this.scale*Me.PDF_TO_CSS_UNITS,rotation:f}),i(rh,this,sh).call(this),this._isStandalone)&&(null===(D=this._container)||void 0===D||D.style.setProperty("--scale-factor",this.viewport.scale));if(i(rh,this,Bh).call(this),this.canvas){var p=h(Xd,this)&&h(qd,this),v=d>=0&&d<1e3;if(v||p){var g;if(v&&!p&&this.renderingState!==Ke.FINISHED&&(this.cancelRendering({keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,cancelExtraDelay:d}),this.renderingState=Ke.FINISHED,h(ih,this).directDrawing=!1),this.cssTransform({redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0,redrawTextLayer:!v,hideTextLayer:v}),!v)null===(g=this.detailView)||void 0===g||g.update({underlyingViewUpdated:!0}),this.dispatchPageRendered(!0,!1);return}}this.cssTransform({}),this.reset({keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,keepCanvasWrapper:!0,preserveDetailViewState:!0}),null===(t=this.detailView)||void 0===t||t.update({underlyingViewUpdated:!0})}},{key:"cancelRendering",value:function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.keepAnnotationLayer,u=void 0!==i&&i,r=n.keepAnnotationEditorLayer,a=void 0!==r&&r,o=n.keepXfaLayer,s=void 0!==o&&o,l=n.keepTextLayer,c=void 0!==l&&l,d=n.cancelExtraDelay,h=void 0===d?0:d;(L(t,"cancelRendering",this,3)([{cancelExtraDelay:h}]),!this.textLayer||c&&this.textLayer.div||(this.textLayer.cancel(),this.textLayer=null),!this.annotationLayer||u&&this.annotationLayer.div||(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),this.structTreeLayer&&!this.textLayer&&(this.structTreeLayer=null),!this.annotationEditorLayer||a&&this.annotationEditorLayer.div||(this.drawLayer&&(this.drawLayer.cancel(),this.drawLayer=null),this.annotationEditorLayer.cancel(),this.annotationEditorLayer=null),!this.xfaLayer||s&&this.xfaLayer.div)||(this.xfaLayer.cancel(),this.xfaLayer=null,null===(e=this._textHighlighter)||void 0===e||e.disable())}},{key:"cssTransform",value:function(e){var t=e.redrawAnnotationLayer,n=void 0!==t&&t,u=e.redrawAnnotationEditorLayer,r=void 0!==u&&u,a=e.redrawXfaLayer,o=void 0!==a&&a,s=e.redrawTextLayer,l=void 0!==s&&s,c=e.hideTextLayer,d=void 0!==c&&c,D=this.canvas;if(D){var f,p=h(Yd,this);if(this.viewport!==p){var v=(360+this.viewport.rotation-p.rotation)%360;if(90===v||270===v){var g=this.viewport,F=g.width,m=g.height,E=m/F,C=F/m;D.style.transform="rotate(".concat(v,"deg) scale(").concat(E,",").concat(C,")")}else D.style.transform=0===v?"":"rotate(".concat(v,"deg)")}if(n&&this.annotationLayer&&i(rh,this,ch).call(this),r&&this.annotationEditorLayer&&(this.drawLayer&&i(rh,this,fh).call(this),i(rh,this,hh).call(this)),o&&this.xfaLayer&&i(rh,this,vh).call(this),this.textLayer)if(d)this.textLayer.hide(),null===(f=this.structTreeLayer)||void 0===f||f.hide();else l&&i(rh,this,Fh).call(this)}}},{key:"width",get:function(){return this.viewport.width}},{key:"height",get:function(){return this.viewport.height}},{key:"getPagePoint",value:function(e,t){return this.viewport.convertToPdfPoint(e,t)}},{key:"_ensureCanvasWrapper",value:function(){var e=h(Gd,this);return e||((e=f(Gd,this,document.createElement("div"))).classList.add("canvasWrapper"),i(rh,this,oh).call(this,e,"canvasWrapper")),e}},{key:"_getRenderingContext",value:function(e,t){return{canvasContext:e,transform:t,viewport:this.viewport,annotationMode:h(Hd,this),optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:this.pageColors,isEditing:h($d,this)}}},{key:"draw",value:(n=o(k().m(function e(){var t,n,u,r,a,s,l,c,d,D,p,v,g,F,m,E,C,A,w,b,y,B,_,x,S,P,I,T,M,L,N,O=this;return k().w(function(e){for(;;)switch(e.n){case 0:if(this.renderingState!==Ke.INITIAL&&(console.error("Must be in new state before drawing"),this.reset()),t=this.div,n=this.l10n,u=this.pdfPage,r=this.viewport,u){e.n=1;break}throw this.renderingState=Ke.FINISHED,new Error("pdfPage is not loaded");case 1:return this.renderingState=Ke.RUNNING,a=this._ensureCanvasWrapper(),this.textLayer||h(th,this)===at||u.isPureXfa||(this._accessibilityManager||(this._accessibilityManager=new kd),this.textLayer=new Od({pdfPage:u,highlighter:this._textHighlighter,accessibilityManager:this._accessibilityManager,enablePermissions:h(th,this)===st,onAppend:function(e){O.l10n.pause(),i(rh,O,oh).call(O,e,"textLayer"),O.l10n.resume()}})),this.annotationLayer||h(Hd,this)===oe.DISABLE||(s=h(Kd,this),l=s.annotationStorage,c=s.annotationEditorUIManager,d=s.downloadManager,D=s.enableScripting,p=s.fieldObjectsPromise,v=s.hasJSActionsPromise,g=s.linkService,this._annotationCanvasMap||(this._annotationCanvasMap=new Map),this.annotationLayer=new Lc({pdfPage:u,annotationStorage:l,imageResourcesPath:this.imageResourcesPath,renderForms:h(Hd,this)===oe.ENABLE_FORMS,linkService:g,downloadManager:d,enableScripting:D,hasJSActionsPromise:v,fieldObjectsPromise:p,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager,annotationEditorUIManager:c,onAppend:function(e){i(rh,O,oh).call(O,e,"annotationLayer")}})),F=r.width,m=r.height,f(Yd,this,r),E=this._createCanvas(function(e){a.prepend(e)}),C=E.canvas,A=E.prevCanvas,w=E.ctx,C.setAttribute("role","presentation"),this.outputScale||i(rh,this,Bh).call(this),b=this.outputScale,f(Xd,this,h(qd,this)),y=Et(b.sx),B=Et(b.sy),_=C.width=Ct(Ut(F*b.sx),y[0]),x=C.height=Ct(Ut(m*b.sy),B[0]),S=Ct(Ut(F),y[1]),P=Ct(Ut(m),B[1]),b.sx=_/S,b.sy=x/P,h(Qd,this)!==y[1]&&(t.style.setProperty("--scale-round-x","".concat(y[1],"px")),f(Qd,this,y[1])),h(eh,this)!==B[1]&&(t.style.setProperty("--scale-round-y","".concat(B[1],"px")),f(eh,this,B[1])),I=b.scaled?[b.sx,0,0,b.sy,0,0]:null,T=this._drawCanvas(this._getRenderingContext(w,I),function(){null==A||A.remove(),O._resetCanvas()},function(e){h(ih,O).regularAnnotations=!e.separateAnnots,O.dispatchPageRendered(!1,!1)}).then(o(k().m(function e(){var t,o,s,l;return k().w(function(e){for(;;)switch(e.n){case 0:if(O.structTreeLayer||(O.structTreeLayer=new Fd(u,r.rawDims)),o=i(rh,O,Fh).call(O),!O.annotationLayer){e.n=2;break}return e.n=1,i(rh,O,ch).call(O);case 1:if(!(h(Zd,O)&&O.annotationLayer&&O.textLayer)){e.n=2;break}return e.n=2,i(rh,O,bh).call(O,o);case 2:if(s=h(Kd,O),l=s.annotationEditorUIManager){e.n=3;break}return e.a(2);case 3:return O.drawLayer||(O.drawLayer=new ud({pageIndex:O.id})),e.n=4,i(rh,O,fh).call(O);case 4:O.drawLayer.setParent(a),O.annotationEditorLayer||(O.annotationEditorLayer=new _c({uiManager:l,pdfPage:u,l10n:n,structTreeLayer:O.structTreeLayer,accessibilityManager:O._accessibilityManager,annotationLayer:null===(t=O.annotationLayer)||void 0===t?void 0:t.annotationLayer,textLayer:O.textLayer,drawLayer:O.drawLayer.getDrawLayer(),onAppend:function(e){i(rh,O,oh).call(O,e,"annotationEditorLayer")}})),i(rh,O,hh).call(O);case 5:return e.a(2)}},e)}))),u.isPureXfa&&(this.xfaLayer||(M=h(Kd,this),L=M.annotationStorage,N=M.linkService,this.xfaLayer=new il({pdfPage:u,annotationStorage:L,linkService:N})),i(rh,this,vh).call(this)),t.setAttribute("data-loaded",!0),this.dispatchPageRender(),e.a(2,T)}},e,this)})),function(){return n.apply(this,arguments)})},{key:"setPageLabel",value:function(e){var t;this.pageLabel="string"==typeof e?e:null,this.div.setAttribute("data-l10n-args",JSON.stringify({page:null!==(t=this.pageLabel)&&void 0!==t?t:this.id})),null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}},{key:"thumbnailCanvas",get:function(){var e=h(ih,this),t=e.directDrawing,n=e.initialOptionalContent,i=e.regularAnnotations;return t&&n&&i?this.canvas:null}}]);var n}(td);function oh(e,t){var n=Ud.get(t),i=h(uh,this)[n];if(h(uh,this)[n]=e,i)i.replaceWith(e);else{for(var u=n-1;u>=0;u--){var r=h(uh,this)[u];if(r)return void r.after(e)}this.div.prepend(e)}}function sh(){var e=this.div,t=this.viewport;if(t.userUnit!==h(nh,this)&&(1!==t.userUnit?e.style.setProperty("--user-unit",t.userUnit):e.style.removeProperty("--user-unit"),f(nh,this,t.userUnit)),this.pdfPage){if(h(Jd,this)===t.rotation)return;f(Jd,this,t.rotation)}Oe(e,t,!0,!1)}function lh(e,t){this.eventBus.dispatch(e,{source:this,pageNumber:this.id,error:t})}function ch(){return dh.apply(this,arguments)}function dh(){return(dh=o(k().m(function e(){var t,n;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:return t=null,e.p=1,e.n=2,this.annotationLayer.render({viewport:this.viewport,intent:"display",structTreeLayer:this.structTreeLayer});case 2:e.n=4;break;case 3:e.p=3,n=e.v,console.error("#renderAnnotationLayer:",n),t=n;case 4:return e.p=4,i(rh,this,lh).call(this,"annotationlayerrendered",t),e.f(4);case 5:return e.a(2)}},e,this,[[1,3,4,5]])}))).apply(this,arguments)}function hh(){return Dh.apply(this,arguments)}function Dh(){return(Dh=o(k().m(function e(){var t,n;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:return t=null,e.p=1,e.n=2,this.annotationEditorLayer.render({viewport:this.viewport,intent:"display"});case 2:e.n=4;break;case 3:e.p=3,n=e.v,console.error("#renderAnnotationEditorLayer:",n),t=n;case 4:return e.p=4,i(rh,this,lh).call(this,"annotationeditorlayerrendered",t),e.f(4);case 5:return e.a(2)}},e,this,[[1,3,4,5]])}))).apply(this,arguments)}function fh(){return ph.apply(this,arguments)}function ph(){return(ph=o(k().m(function e(){var t;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this.drawLayer.render({intent:"display"});case 1:e.n=3;break;case 2:e.p=2,t=e.v,console.error("#renderDrawLayer:",t);case 3:return e.a(2)}},e,this,[[0,2]])}))).apply(this,arguments)}function vh(){return gh.apply(this,arguments)}function gh(){return(gh=o(k().m(function e(){var t,n,u,r;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:return t=null,e.p=1,e.n=2,this.xfaLayer.render({viewport:this.viewport,intent:"display"});case 2:null!=(n=e.v)&&n.textDivs&&this._textHighlighter&&i(rh,this,Ah).call(this,n.textDivs),e.n=4;break;case 3:e.p=3,r=e.v,console.error("#renderXfaLayer:",r),t=r;case 4:return e.p=4,null!==(u=this.xfaLayer)&&void 0!==u&&u.div&&(this.l10n.pause(),i(rh,this,oh).call(this,this.xfaLayer.div,"xfaLayer"),this.l10n.resume()),i(rh,this,lh).call(this,"xfalayerrendered",t),e.f(4);case 5:return e.a(2)}},e,this,[[1,3,4,5]])}))).apply(this,arguments)}function Fh(){return mh.apply(this,arguments)}function mh(){return(mh=o(k().m(function e(){var t,n;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:if(this.textLayer){e.n=1;break}return e.a(2);case 1:return t=null,e.p=2,e.n=3,this.textLayer.render({viewport:this.viewport});case 3:e.n=6;break;case 4:if(e.p=4,!((n=e.v)instanceof te)){e.n=5;break}return e.a(2);case 5:console.error("#renderTextLayer:",n),t=n;case 6:i(rh,this,lh).call(this,"textlayerrendered",t),i(rh,this,Eh).call(this);case 7:return e.a(2)}},e,this,[[2,4]])}))).apply(this,arguments)}function Eh(){return Ch.apply(this,arguments)}function Ch(){return(Ch=o(k().m(function e(){var t,n,i,u;return k().w(function(e){for(;;)switch(e.n){case 0:if(this.textLayer){e.n=1;break}return e.a(2);case 1:return e.n=2,null===(t=this.structTreeLayer)||void 0===t?void 0:t.render();case 2:(i=e.v)&&(this.l10n.pause(),null===(u=this.structTreeLayer)||void 0===u||u.addElementsToTextLayer(),this.canvas&&i.parentNode!==this.canvas&&this.canvas.append(i),this.l10n.resume()),null===(n=this.structTreeLayer)||void 0===n||n.show();case 3:return e.a(2)}},e,this)}))).apply(this,arguments)}function Ah(e){return wh.apply(this,arguments)}function wh(){return(wh=o(k().m(function e(t){var n,i,u,r,a;return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.pdfPage.getTextContent();case 1:n=e.v,i=[],u=m(n.items);try{for(u.s();!(r=u.n()).done;)a=r.value,i.push(a.str)}catch(e){u.e(e)}finally{u.f()}this._textHighlighter.setTextMapping(t,i),this._textHighlighter.enable();case 2:return e.a(2)}},e,this)}))).apply(this,arguments)}function bh(e){return yh.apply(this,arguments)}function yh(){return(yh=o(k().m(function e(t){var n;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=1,e.n=2,t;case 2:if(this.annotationLayer){e.n=3;break}return e.a(2);case 3:return e.n=4,this.annotationLayer.injectLinkAnnotations({inferredLinks:zc.processLinks(this),viewport:this.viewport,structTreeLayer:this.structTreeLayer});case 4:e.n=6;break;case 5:e.p=5,n=e.v,console.error("#injectLinkAnnotations:",n);case 6:return e.a(2)}},e,this,[[1,5]])}))).apply(this,arguments)}function Bh(){var e=this.viewport,t=e.width,n=e.height,i=this.outputScale=new xe;if(0===this.maxCanvasPixels){var u=1/this.scale;i.sx*=u,i.sy*=u,f(qd,this,!0)}else f(qd,this,i.limitCanvas(t,n,this.maxCanvasPixels,this.maxCanvasDim,this.capCanvasAreaFactor))}var kh=1e4,_h=5e3,xh=250;function Sh(e){return Object.values(ue).includes(e)&&e!==ue.DISABLE}var Ph=new WeakMap,Ih=new WeakMap,Th=new WeakSet,Mh=function(){return F(function e(t){d(this,e),v(this,Th),D(this,Ph,new Set),D(this,Ih,0),f(Ih,this,t)},[{key:"push",value:function(e){var t=h(Ph,this);t.has(e)&&t.delete(e),t.add(e),t.size>h(Ih,this)&&i(Th,this,Lh).call(this)}},{key:"resize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;f(Ih,this,e);var n=h(Ph,this);if(t){var u,r=n.size,a=1,o=m(n);try{for(o.s();!(u=o.n()).done;){var s=u.value;if(t.has(s.id)&&(n.delete(s),n.add(s)),++a>r)break}}catch(e){o.e(e)}finally{o.f()}}for(;n.size>h(Ih,this);)i(Th,this,Lh).call(this)}},{key:"has",value:function(e){return h(Ph,this).has(e)}},{key:Symbol.iterator,value:function(){return h(Ph,this).keys()}}])}();function Lh(){var e=h(Ph,this).keys().next().value;null==e||e.destroy(),h(Ph,this).delete(e)}var Nh=new WeakMap,Oh=new WeakMap,jh=new WeakMap,Rh=new WeakMap,Wh=new WeakMap,Vh=new WeakMap,zh=new WeakMap,Uh=new WeakMap,Hh=new WeakMap,Gh=new WeakMap,Zh=new WeakMap,Xh=new WeakMap,$h=new WeakMap,Kh=new WeakMap,qh=new WeakMap,Yh=new WeakMap,Jh=new WeakMap,Qh=new WeakMap,eD=new WeakMap,tD=new WeakMap,nD=new WeakMap,iD=new WeakMap,uD=new WeakMap,rD=new WeakMap,aD=new WeakMap,oD=new WeakMap,sD=new WeakMap,lD=new WeakMap,cD=new WeakMap,dD=new WeakMap,hD=new WeakSet,DD=function(){return F(function e(t){var n,u,r,a,o,s,l,c=this;d(this,e),v(this,hD),D(this,Nh,null),D(this,Oh,null),D(this,jh,null),D(this,Rh,ue.NONE),D(this,Wh,null),D(this,Vh,oe.ENABLE_FORMS),D(this,zh,null),D(this,Uh,null),D(this,Hh,!1),D(this,Gh,!1),D(this,Zh,!1),D(this,Xh,!1),D(this,$h,!1),D(this,Kh,!0),D(this,qh,null),D(this,Yh,0),D(this,Jh,null),D(this,Qh,null),D(this,eD,null),D(this,tD,null),D(this,nD,!1),D(this,iD,null),D(this,uD,!1),D(this,rD,0),D(this,aD,new ResizeObserver(i(hD,this,SD).bind(this))),D(this,oD,null),D(this,sD,null),D(this,lD,null),D(this,cD,!0),D(this,dD,ot);var p="5.3.31";if(Ze!==p)throw new Error('The API version "'.concat(Ze,'" does not match the Viewer version "').concat(p,'".'));if(this.container=t.container,this.viewer=t.viewer||t.container.firstElementChild,"DIV"!==(null===(n=this.container)||void 0===n?void 0:n.tagName)||"DIV"!==(null===(u=this.viewer)||void 0===u?void 0:u.tagName))throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&"absolute"!==getComputedStyle(this.container).position)throw new Error("The `container` must be absolutely positioned.");h(aD,this).observe(this.container),this.eventBus=t.eventBus,this.linkService=t.linkService||new ln,this.downloadManager=t.downloadManager||null,this.findController=t.findController||null,f(Oh,this,t.altTextManager||null),f(lD,this,t.signatureManager||null),f(Uh,this,t.editorUndoBar||null),this.findController&&(this.findController.onIsPageVisible=function(e){return c._getVisiblePages().ids.has(e)}),this._scriptingManager=t.scriptingManager||null,f(dD,this,null!==(r=t.textLayerMode)&&void 0!==r?r:ot),f(Vh,this,null!==(a=t.annotationMode)&&void 0!==a?a:oe.ENABLE_FORMS),f(Rh,this,null!==(o=t.annotationEditorMode)&&void 0!==o?o:ue.NONE),f(jh,this,t.annotationEditorHighlightColors||null),f(Gh,this,!0===t.enableHighlightFloatingButton),f(Xh,this,!0===t.enableUpdatedAddImage),f($h,this,!0===t.enableNewAltTextWhenAddingImage),this.imageResourcesPath=t.imageResourcesPath||"",this.enablePrintAutoRotate=t.enablePrintAutoRotate||!1,this.removePageBorders=t.removePageBorders||!1,this.maxCanvasPixels=t.maxCanvasPixels,this.maxCanvasDim=t.maxCanvasDim,this.capCanvasAreaFactor=t.capCanvasAreaFactor,this.enableDetailCanvas=null===(s=t.enableDetailCanvas)||void 0===s||s,this.l10n=t.l10n,this.l10n||(this.l10n=new Vi),f(Zh,this,t.enablePermissions||!1),this.pageColors=t.pageColors||null,f(Jh,this,t.mlManager||null),f(Hh,this,t.enableHWA||!1),f(cD,this,!1!==t.supportsPinchToZoom),f(Kh,this,!1!==t.enableAutoLinking),f(Yh,this,null!==(l=t.minDurationToUpdateCanvas)&&void 0!==l?l:500),this.defaultRenderingQueue=!t.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new gl,this.renderingQueue.setViewer(this)):this.renderingQueue=t.renderingQueue;var g=t.abortSignal;null==g||g.addEventListener("abort",function(){h(aD,c).disconnect(),f(aD,c,null)},{once:!0}),this.scroll=pt(this.container,this._scrollUpdate.bind(this),g),this.presentationModeState=qe,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),i(hD,this,xD).call(this),this.eventBus._on("thumbnailrendered",function(e){var t=e.pageNumber,n=e.pdfPage,i=c._pages[t-1];h(Nh,c).has(i)||null==n||n.cleanup()}),t.l10n||this.l10n.translate(this.container)},[{key:"pagesCount",get:function(){return this._pages.length}},{key:"getPageView",value:function(e){return this._pages[e]}},{key:"getCachedPageViews",value:function(){return new Set(h(Nh,this))}},{key:"pageViewsReady",get:function(){return this._pages.every(function(e){return null==e?void 0:e.pdfPage})}},{key:"renderForms",get:function(){return h(Vh,this)===oe.ENABLE_FORMS}},{key:"enableScripting",get:function(){return!!this._scriptingManager}},{key:"currentPageNumber",get:function(){return this._currentPageNumber},set:function(e){if(!Number.isInteger(e))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(e,!0)||console.error('currentPageNumber: "'.concat(e,'" is not a valid page.')))}},{key:"_setCurrentPageNumber",value:function(e){var t,n,u=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this._currentPageNumber===e)return u&&i(hD,this,bD).call(this),!0;if(!(0<e&&e<=this.pagesCount))return!1;var r=this._currentPageNumber;return this._currentPageNumber=e,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:e,pageLabel:null!==(t=null===(n=this._pageLabels)||void 0===n?void 0:n[e-1])&&void 0!==t?t:null,previous:r}),u&&i(hD,this,bD).call(this),!0}},{key:"currentPageLabel",get:function(){var e,t;return null!==(e=null===(t=this._pageLabels)||void 0===t?void 0:t[this._currentPageNumber-1])&&void 0!==e?e:null},set:function(e){if(this.pdfDocument){var t=0|e;if(this._pageLabels){var n=this._pageLabels.indexOf(e);n>=0&&(t=n+1)}this._setCurrentPageNumber(t,!0)||console.error('currentPageLabel: "'.concat(e,'" is not a valid page.'))}}},{key:"currentScale",get:function(){return 0!==this._currentScale?this._currentScale:1},set:function(e){if(isNaN(e))throw new Error("Invalid numeric scale.");this.pdfDocument&&i(hD,this,wD).call(this,e,{noScroll:!1})}},{key:"currentScaleValue",get:function(){return this._currentScaleValue},set:function(e){this.pdfDocument&&i(hD,this,wD).call(this,e,{noScroll:!1})}},{key:"pagesRotation",get:function(){return this._pagesRotation},set:function(e){if(!yt(e))throw new Error("Invalid pages rotation angle.");if(this.pdfDocument&&((e%=360)<0&&(e+=360),this._pagesRotation!==e)){this._pagesRotation=e;var t=this._currentPageNumber;this.refresh(!0,{rotation:e}),this._currentScaleValue&&i(hD,this,wD).call(this,this._currentScaleValue,{noScroll:!0}),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:e,pageNumber:t}),this.defaultRenderingQueue&&this.update()}}},{key:"firstPagePromise",get:function(){return this.pdfDocument?this._firstPageCapability.promise:null}},{key:"onePageRendered",get:function(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}},{key:"pagesPromise",get:function(){return this.pdfDocument?this._pagesCapability.promise:null}},{key:"_layerProperties",get:function(){var e=this;return je(this,"_layerProperties",{get annotationEditorUIManager(){return h(Wh,e)},get annotationStorage(){var t;return null===(t=e.pdfDocument)||void 0===t?void 0:t.annotationStorage},get downloadManager(){return e.downloadManager},get enableScripting(){return!!e._scriptingManager},get fieldObjectsPromise(){var t;return null===(t=e.pdfDocument)||void 0===t?void 0:t.getFieldObjects()},get findController(){return e.findController},get hasJSActionsPromise(){var t;return null===(t=e.pdfDocument)||void 0===t?void 0:t.hasJSActions()},get linkService(){return e.linkService}})}},{key:"getAllText",value:(e=o(k().m(function e(){var t,n,i,u,r,a,o,s,l,c;return k().w(function(e){for(;;)switch(e.n){case 0:t=[],n=[],i=1,u=this.pdfDocument.numPages;case 1:if(!(i<=u)){e.n=6;break}if(!h(uD,this)){e.n=2;break}return e.a(2,null);case 2:return n.length=0,e.n=3,this.pdfDocument.getPage(i);case 3:return r=e.v,e.n=4,r.getTextContent();case 4:a=e.v,o=a.items,s=m(o);try{for(s.s();!(l=s.n()).done;)(c=l.value).str&&n.push(c.str),c.hasEOL&&n.push("\n")}catch(e){s.e(e)}finally{s.f()}t.push(Ft(n.join("")));case 5:++i,e.n=1;break;case 6:return e.a(2,t.join("\n"))}},e,this)})),function(){return e.apply(this,arguments)})},{key:"setDocument",value:function(e){var t,n,u,r=this;this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),null===(t=this.findController)||void 0===t||t.setDocument(null),null===(n=this._scriptingManager)||void 0===n||n.setDocument(null),null===(u=h(Wh,this))||void 0===u||u.destroy(),f(Wh,this,null));if(this.pdfDocument=e,e){var a=e.numPages,s=e.getPage(1),l=e.getOptionalContentConfig({intent:"display"}),c=h(Zh,this)?e.getPermissions():Promise.resolve(),d=this.eventBus,D=this.pageColors,p=this.viewer;f(qh,this,new AbortController);var v=h(qh,this).signal;if(a>kh){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");var g=this._scrollMode=lt.PAGE;d.dispatch("scrollmodechanged",{source:this,mode:g})}this._pagesCapability.promise.then(function(){d.dispatch("pagesloaded",{source:r,pagesCount:a})},function(){});d._on("pagerender",function(e){var t=r._pages[e.pageNumber-1];t&&h(Nh,r).push(t)},{signal:v});var F=function(e){e.cssTransform||e.isDetailView||(r._onePageRenderedCapability.resolve({timestamp:e.timestamp}),d._off("pagerendered",F))};d._on("pagerendered",F,{signal:v}),Promise.all([s,c]).then(function(t){var n,u=T(t,2),s=u[0],c=u[1];if(e===r.pdfDocument){r._firstPageCapability.resolve(s),r._optionalContentConfigPromise=l;var g=i(hD,r,fD).call(r,c),F=g.annotationEditorMode,m=g.annotationMode,E=g.textLayerMode;if(E!==at){var C=f(iD,r,document.createElement("div"));C.id="hiddenCopyElement",p.before(C)}if(F!==ue.DISABLE){var A=F;e.isPureXfa?console.warn("Warning: XFA-editing is not implemented."):Sh(A)?(f(Wh,r,new re(r.container,p,h(Oh,r),h(lD,r),d,e,D,h(jh,r),h(Gh,r),h(Xh,r),h($h,r),h(Jh,r),h(Uh,r),h(cD,r))),d.dispatch("annotationeditoruimanager",{source:r,uiManager:h(Wh,r)}),A!==ue.NONE&&(i(hD,r,TD).call(r,A),h(Wh,r).updateMode(A))):console.error("Invalid AnnotationEditor mode: ".concat(A))}var w=r._scrollMode===lt.PAGE?null:p,b=r.currentScale,y=s.getViewport({scale:b*Me.PDF_TO_CSS_UNITS});p.style.setProperty("--scale-factor",y.scale),null!=D&&D.background&&p.style.setProperty("--page-bg-color",D.background),"CanvasText"!==(null==D?void 0:D.foreground)&&"Canvas"!==(null==D?void 0:D.background)||(p.style.setProperty("--hcm-highlight-filter",e.filterFactory.addHighlightHCMFilter("highlight","CanvasText","Canvas","HighlightText","Highlight")),p.style.setProperty("--hcm-highlight-selected-filter",e.filterFactory.addHighlightHCMFilter("highlight_selected","CanvasText","Canvas","HighlightText","ButtonText")));for(var B=1;B<=a;++B){var _=new ah({container:w,eventBus:d,id:B,scale:b,defaultViewport:y.clone(),optionalContentConfigPromise:l,renderingQueue:r.renderingQueue,textLayerMode:E,annotationMode:m,imageResourcesPath:r.imageResourcesPath,maxCanvasPixels:r.maxCanvasPixels,maxCanvasDim:r.maxCanvasDim,capCanvasAreaFactor:r.capCanvasAreaFactor,enableDetailCanvas:r.enableDetailCanvas,pageColors:D,l10n:r.l10n,layerProperties:r._layerProperties,enableHWA:h(Hh,r),enableAutoLinking:h(Kh,r),minDurationToUpdateCanvas:h(Yh,r)});r._pages.push(_)}null===(n=r._pages[0])||void 0===n||n.setPdfPage(s),r._scrollMode===lt.PAGE?i(hD,r,FD).call(r):r._spreadMode!==ct.NONE&&r._updateSpreadMode(),i(hD,r,pD).call(r,v).then(o(k().m(function t(){var n,u,o,s,l;return k().w(function(t){for(;;)switch(t.n){case 0:if(e===r.pdfDocument){t.n=1;break}return t.a(2);case 1:if(null===(n=r.findController)||void 0===n||n.setDocument(e),null===(u=r._scriptingManager)||void 0===u||u.setDocument(e),h(iD,r)&&document.addEventListener("copy",i(hD,r,gD).bind(r,E),{signal:v}),h(Wh,r)&&d.dispatch("annotationeditormodechanged",{source:r,mode:h(Rh,r)}),!(e.loadingParams.disableAutoFetch||a>_h)){t.n=2;break}return r._pagesCapability.resolve(),t.a(2);case 2:if(!((o=a-1)<=0)){t.n=3;break}return r._pagesCapability.resolve(),t.a(2);case 3:s=k().m(function t(n){var i;return k().w(function(t){for(;;)switch(t.n){case 0:if(i=e.getPage(n).then(function(e){var t=r._pages[n-1];t.pdfPage||t.setPdfPage(e),0===--o&&r._pagesCapability.resolve()},function(e){console.error("Unable to get page ".concat(n," to initialize viewer"),e),0===--o&&r._pagesCapability.resolve()}),n%xh!==0){t.n=1;break}return t.n=1,i;case 1:return t.a(2)}},t)}),l=2;case 4:if(!(l<=a)){t.n=6;break}return t.d(S(s(l)),5);case 5:++l,t.n=4;break;case 6:return t.a(2)}},t)}))),d.dispatch("pagesinit",{source:r}),e.getMetadata().then(function(t){var n=t.info;e===r.pdfDocument&&n.Language&&(p.lang=n.Language)}),r.defaultRenderingQueue&&r.update()}}).catch(function(e){console.error("Unable to initialize viewer",e),r._pagesCapability.reject(e)})}}},{key:"setPageLabels",value:function(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(var t=0,n=this._pages.length;t<n;t++){var i,u;this._pages[t].setPageLabel(null!==(i=null===(u=this._pageLabels)||void 0===u?void 0:u[t])&&void 0!==i?i:null)}}}},{key:"_resetView",value:function(){var e,t;this._pages=[],this._currentPageNumber=1,this._currentScale=0,this._currentScaleValue=null,this._pageLabels=null,f(Nh,this,new Mh(10)),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._firstPageCapability=Promise.withResolvers(),this._onePageRenderedCapability=Promise.withResolvers(),this._pagesCapability=Promise.withResolvers(),this._scrollMode=lt.VERTICAL,this._previousScrollMode=lt.UNKNOWN,this._spreadMode=ct.NONE,f(oD,this,{previousPageNumber:1,scrollDown:!0,pages:[]}),null===(e=h(qh,this))||void 0===e||e.abort(),f(qh,this,null),this.viewer.textContent="",this._updateScrollMode(),this.viewer.removeAttribute("lang"),null===(t=h(iD,this))||void 0===t||t.remove(),f(iD,this,null),i(hD,this,PD).call(this),i(hD,this,ID).call(this)}},{key:"_scrollUpdate",value:function(){var e=this;0!==this.pagesCount&&(h(Qh,this)&&clearTimeout(h(Qh,this)),f(Qh,this,setTimeout(function(){f(Qh,e,null),e.update()},100)),this.update())}},{key:"pageLabelToPageNumber",value:function(e){if(!this._pageLabels)return null;var t=this._pageLabels.indexOf(e);return t<0?null:t+1}},{key:"scrollPageIntoView",value:function(e){var t=e.pageNumber,n=e.destArray,u=void 0===n?null:n,r=e.allowNegativeOffset,a=void 0!==r&&r,o=e.ignoreDestinationZoom,s=void 0!==o&&o;if(this.pdfDocument){var l=Number.isInteger(t)&&this._pages[t-1];if(l)if(!this.isInPresentationMode&&u){var c,d,h=0,D=0,f=0,p=0,v=l.rotation%180!=0,g=(v?l.height:l.width)/l.scale/Me.PDF_TO_CSS_UNITS,F=(v?l.width:l.height)/l.scale/Me.PDF_TO_CSS_UNITS,m=0;switch(u[1].name){case"XYZ":h=u[2],D=u[3],m=u[4],h=null!==h?h:0,D=null!==D?D:F;break;case"Fit":case"FitB":m="page-fit";break;case"FitH":case"FitBH":m="page-width",null===(D=u[2])&&this._location?(h=this._location.left,D=this._location.top):("number"!=typeof D||D<0)&&(D=F);break;case"FitV":case"FitBV":h=u[2],f=g,p=F,m="page-height";break;case"FitR":h=u[2],D=u[3],f=u[4]-h,p=u[5]-D;var E=40,C=5;this.removePageBorders&&(E=C=0),c=(this.container.clientWidth-E)/f/Me.PDF_TO_CSS_UNITS,d=(this.container.clientHeight-C)/p/Me.PDF_TO_CSS_UNITS,m=Math.min(Math.abs(c),Math.abs(d));break;default:return void console.error('scrollPageIntoView: "'.concat(u[1].name,'" is not a valid destination type.'))}if(s||(m&&m!==this._currentScale?this.currentScaleValue=m:0===this._currentScale&&(this.currentScaleValue=$e)),"page-fit"!==m||u[4]){var A=[l.viewport.convertToViewportPoint(h,D),l.viewport.convertToViewportPoint(h+f,D+p)],w=Math.min(A[0][0],A[1][0]),b=Math.min(A[0][1],A[1][1]);a||(w=Math.max(w,0),b=Math.max(b,0)),i(hD,this,mD).call(this,l,{left:w,top:b})}else i(hD,this,mD).call(this,l)}else this._setCurrentPageNumber(t,!0);else console.error('scrollPageIntoView: "'.concat(t,'" is not a valid pageNumber parameter.'))}}},{key:"_updateLocation",value:function(e){var t=this._currentScale,n=this._currentScaleValue,i=parseFloat(n)===t?Math.round(1e4*t)/100:n,u=e.id,r=this._pages[u-1],a=this.container,o=r.getPagePoint(a.scrollLeft-e.x,a.scrollTop-e.y),s=Math.round(o[0]),l=Math.round(o[1]),c="#page=".concat(u);this.isInPresentationMode||(c+="&zoom=".concat(i,",").concat(s,",").concat(l)),this._location={pageNumber:u,scale:i,top:l,left:s,rotation:this._pagesRotation,pdfOpenParams:c}}},{key:"update",value:function(){var e=this._getVisiblePages(),t=e.views,n=t.length;if(0!==n){var i=Math.max(10,2*n+1);h(Nh,this).resize(i,e.ids);var u,r=m(t);try{for(r.s();!(u=r.n()).done;){var a=u.value,o=a.view,s=a.visibleArea;o.updateVisibleArea(s)}}catch(e){r.e(e)}finally{r.f()}var l,c=m(h(Nh,this));try{for(c.s();!(l=c.n()).done;){var d=l.value;e.ids.has(d.id)||d.updateVisibleArea(null)}}catch(e){c.e(e)}finally{c.f()}this.renderingQueue.renderHighestPriority(e);var D,f=this._spreadMode===ct.NONE&&(this._scrollMode===lt.PAGE||this._scrollMode===lt.VERTICAL),p=this._currentPageNumber,v=!1,g=m(t);try{for(g.s();!(D=g.n()).done;){var F=D.value;if(F.percent<100)break;if(F.id===p&&f){v=!0;break}}}catch(e){g.e(e)}finally{g.f()}this._setCurrentPageNumber(v?p:t[0].id),this._updateLocation(e.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}}},{key:"containsElement",value:function(e){return this.container.contains(e)}},{key:"focus",value:function(){this.container.focus()}},{key:"_isContainerRtl",get:function(){return"rtl"===getComputedStyle(this.container).direction}},{key:"isInPresentationMode",get:function(){return this.presentationModeState===Qe}},{key:"isChangingPresentationMode",get:function(){return this.presentationModeState===Je}},{key:"isHorizontalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}},{key:"isVerticalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}},{key:"_getVisiblePages",value:function(){var e=this._scrollMode===lt.PAGE?h(oD,this).pages:this._pages,t=this._scrollMode===lt.HORIZONTAL,n=t&&this._isContainerRtl;return wt({scrollEl:this.container,views:e,sortByVisibility:!0,horizontal:t,rtl:n})}},{key:"cleanup",value:function(){var e,t=m(this._pages);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.renderingState!==Ke.FINISHED&&n.reset()}}catch(e){t.e(e)}finally{t.f()}}},{key:"_cancelRendering",value:function(){var e,t=m(this._pages);try{for(t.s();!(e=t.n()).done;){e.value.cancelRendering()}}catch(e){t.e(e)}finally{t.f()}}},{key:"forceRendering",value:function(e){var t=this,n=e||this._getVisiblePages(),u=i(hD,this,_D).call(this,n),r=this._spreadMode!==ct.NONE&&this._scrollMode!==lt.HORIZONTAL,a=null!==h(sD,this)||null!==h(Qh,this)&&n.views.some(function(e){var t;return null===(t=e.detailView)||void 0===t?void 0:t.renderingCancelled}),o=this.renderingQueue.getHighestPriority(n,this._pages,u,r,a);return!!o&&(i(hD,this,BD).call(this,o).then(function(){t.renderingQueue.renderView(o)}),!0)}},{key:"hasEqualPageSizes",get:function(){for(var e=this._pages[0],t=1,n=this._pages.length;t<n;++t){var i=this._pages[t];if(i.width!==e.width||i.height!==e.height)return!1}return!0}},{key:"getPagesOverview",value:function(){var e,t=this;return this._pages.map(function(n){var i=n.pdfPage.getViewport({scale:1}),u=_t(i);if(void 0===e)e=u;else if(t.enablePrintAutoRotate&&u!==e)return{width:i.height,height:i.width,rotation:(i.rotation-90)%360};return{width:i.width,height:i.height,rotation:i.rotation}})}},{key:"optionalContentConfigPromise",get:function(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:(console.error("optionalContentConfigPromise: Not initialized yet."),this.pdfDocument.getOptionalContentConfig({intent:"display"})):Promise.resolve(null)},set:function(e){if(!(e instanceof Promise))throw new Error("Invalid optionalContentConfigPromise: ".concat(e));this.pdfDocument&&this._optionalContentConfigPromise&&(this._optionalContentConfigPromise=e,this.refresh(!1,{optionalContentConfigPromise:e}),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:e}))}},{key:"scrollMode",get:function(){return this._scrollMode},set:function(e){if(this._scrollMode!==e){if(!Bt(e))throw new Error("Invalid scroll mode: ".concat(e));this.pagesCount>kh||(this._previousScrollMode=this._scrollMode,this._scrollMode=e,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e}),this._updateScrollMode(this._currentPageNumber))}}},{key:"_updateScrollMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this._scrollMode,n=this.viewer;n.classList.toggle("scrollHorizontal",t===lt.HORIZONTAL),n.classList.toggle("scrollWrapped",t===lt.WRAPPED),this.pdfDocument&&e&&(t===lt.PAGE?i(hD,this,FD).call(this):this._previousScrollMode===lt.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&i(hD,this,wD).call(this,this._currentScaleValue,{noScroll:!0}),this._setCurrentPageNumber(e,!0),this.update())}},{key:"spreadMode",get:function(){return this._spreadMode},set:function(e){if(this._spreadMode!==e){if(!kt(e))throw new Error("Invalid spread mode: ".concat(e));this._spreadMode=e,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:e}),this._updateSpreadMode(this._currentPageNumber)}}},{key:"_updateSpreadMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.pdfDocument){var t=this.viewer,n=this._pages;if(this._scrollMode===lt.PAGE)i(hD,this,FD).call(this);else if(t.textContent="",this._spreadMode===ct.NONE){var u,r=m(this._pages);try{for(r.s();!(u=r.n()).done;){var a=u.value;t.append(a.div)}}catch(e){r.e(e)}finally{r.f()}}else for(var o=this._spreadMode-1,s=null,l=0,c=n.length;l<c;++l)null===s?((s=document.createElement("div")).className="spread",t.append(s)):l%2===o&&(s=s.cloneNode(!1),t.append(s)),s.append(n[l].div);e&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&i(hD,this,wD).call(this,this._currentScaleValue,{noScroll:!0}),this._setCurrentPageNumber(e,!0),this.update())}}},{key:"_getPageAdvance",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(this._scrollMode){case lt.WRAPPED:var n,i=this._getVisiblePages().views,u=new Map,r=m(i);try{for(r.s();!(n=r.n()).done;){var a=n.value,o=a.id,s=a.y,l=a.percent,c=a.widthPercent;if(!(0===l||c<100)){var d=u.get(s);d||u.set(s,d||(d=[])),d.push(o)}}}catch(e){r.e(e)}finally{r.f()}var h,D=m(u.values());try{for(D.s();!(h=D.n()).done;){var f=h.value,p=f.indexOf(e);if(-1!==p){var v=f.length;if(1===v)break;if(t)for(var g=p-1;g>=0;g--){var F=f[g],E=f[g+1]-1;if(F<E)return e-E}else for(var C=p+1,A=v;C<A;C++){var w=f[C],b=f[C-1]+1;if(w>b)return b-e}if(t){var y=f[0];if(y<e)return e-y+1}else{var B=f[v-1];if(B>e)return B-e+1}break}}}catch(e){D.e(e)}finally{D.f()}break;case lt.HORIZONTAL:break;case lt.PAGE:case lt.VERTICAL:if(this._spreadMode===ct.NONE)break;var k=this._spreadMode-1;if(t&&e%2!==k)break;if(!t&&e%2===k)break;var _,x=t?e-1:e+1,S=m(this._getVisiblePages().views);try{for(S.s();!(_=S.n()).done;){var P=_.value,I=P.id,T=P.percent,M=P.widthPercent;if(I===x){if(T>0&&100===M)return 2;break}}}catch(e){S.e(e)}finally{S.f()}}return 1}},{key:"nextPage",value:function(){var e=this._currentPageNumber,t=this.pagesCount;if(e>=t)return!1;var n=this._getPageAdvance(e,!1)||1;return this.currentPageNumber=Math.min(e+n,t),!0}},{key:"previousPage",value:function(){var e=this._currentPageNumber;if(e<=1)return!1;var t=this._getPageAdvance(e,!0)||1;return this.currentPageNumber=Math.max(e-t,1),!0}},{key:"updateScale",value:function(e){var t=e.drawingDelay,n=e.scaleFactor,u=void 0===n?null:n,r=e.steps,a=void 0===r?null:r,o=e.origin;if(null===a&&null===u)throw new Error("Invalid updateScale options: either `steps` or `scaleFactor` must be provided.");if(this.pdfDocument){var s=this._currentScale;if(u>0&&1!==u)s=Math.round(s*u*100)/100;else if(a){var l=a>0?1.1:1/1.1,c=a>0?Math.ceil:Math.floor;a=Math.abs(a);do{s=c(10*(s*l).toFixed(2))/10}while(--a>0)}s=Be(s,.1,10),i(hD,this,wD).call(this,s,{noScroll:!1,drawingDelay:t,origin:o})}}},{key:"increaseScale",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.updateScale(B(B({},t),{},{steps:null!==(e=t.steps)&&void 0!==e?e:1}))}},{key:"decreaseScale",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.updateScale(B(B({},t),{},{steps:-(null!==(e=t.steps)&&void 0!==e?e:1)}))}},{key:"containerTopLeft",get:function(){return h(zh,this)||f(zh,this,[this.container.offsetTop,this.container.offsetLeft])}},{key:"annotationEditorMode",get:function(){return h(Wh,this)?h(Rh,this):ue.DISABLE},set:function(e){var t=this,n=e.mode,u=e.editId,r=void 0===u?null:u,a=e.isFromKeyboard,s=void 0!==a&&a;if(!h(Wh,this))throw new Error("The AnnotationEditor is not enabled.");if(h(Rh,this)!==n){if(!Sh(n))throw new Error("Invalid AnnotationEditor mode: ".concat(n));if(this.pdfDocument){i(hD,this,TD).call(this,n);var l=this.eventBus,c=this.pdfDocument,d=function(){var e=o(k().m(function e(){return k().w(function(e){for(;;)switch(e.n){case 0:return i(hD,t,ID).call(t),f(Rh,t,n),e.n=1,h(Wh,t).updateMode(n,r,s);case 1:if(n===h(Rh,t)&&c===t.pdfDocument){e.n=2;break}return e.a(2);case 2:l.dispatch("annotationeditormodechanged",{source:t,mode:n});case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();if(n===ue.NONE||h(Rh,this)===ue.NONE){var D=n!==ue.NONE;D||this.pdfDocument.annotationStorage.resetModifiedIds();var p,v=m(this._pages);try{for(v.s();!(p=v.n()).done;){p.value.toggleEditingMode(D)}}catch(e){v.e(e)}finally{v.f()}var g=i(hD,this,yD).call(this);if(D&&g){i(hD,this,ID).call(this),f(eD,this,new AbortController);var F=AbortSignal.any([h(qh,this).signal,h(eD,this).signal]);return void l._on("pagerendered",function(e){var n=e.pageNumber;g.delete(n),0===g.size&&f(tD,t,setTimeout(d,0))},{signal:F})}}d()}}}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.create(null);if(this.pdfDocument){var n,u=m(this._pages);try{for(u.s();!(n=u.n()).done;){n.value.update(t)}}catch(e){u.e(e)}finally{u.f()}i(hD,this,PD).call(this),e||this.update()}}}]);var e}();function fD(e){var t={annotationEditorMode:h(Rh,this),annotationMode:h(Vh,this),textLayerMode:h(dD,this)};return e?(e.includes(Te.COPY)||h(dD,this)!==ot||(t.textLayerMode=st),e.includes(Te.MODIFY_CONTENTS)||(t.annotationEditorMode=ue.DISABLE),e.includes(Te.MODIFY_ANNOTATIONS)||e.includes(Te.FILL_INTERACTIVE_FORMS)||h(Vh,this)!==oe.ENABLE_FORMS||(t.annotationMode=oe.ENABLE),t):t}function pD(e){return vD.apply(this,arguments)}function vD(){return(vD=o(k().m(function e(t){var n,i;return k().w(function(e){for(;;)switch(e.n){case 0:if("hidden"!==document.visibilityState&&this.container.offsetParent&&0!==this._getVisiblePages().views.length){e.n=1;break}return e.a(2);case 1:return n=Promise.withResolvers(),i=new AbortController,document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&n.resolve()},{signal:AbortSignal.any([t,i.signal])}),e.n=2,Promise.race([this._onePageRenderedCapability.promise,n.promise]);case 2:i.abort();case 3:return e.a(2)}},e,this)}))).apply(this,arguments)}function gD(e,t){var n=this,i=document.getSelection(),u=i.focusNode;if(i.anchorNode&&u&&i.containsNode(h(iD,this))){if(h(nD,this)||e===st)return void We(t);f(nD,this,!0);var r=this.viewer.classList;r.add("copyAll");var a=new AbortController;window.addEventListener("keydown",function(e){return f(uD,n,"Escape"===e.key)},{signal:a.signal}),this.getAllText().then(function(){var e=o(k().m(function e(t){return k().w(function(e){for(;;)switch(e.n){case 0:if(null===t){e.n=1;break}return e.n=1,navigator.clipboard.writeText(t);case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){console.warn("Something goes wrong when extracting the text: ".concat(e.message))}).finally(function(){f(nD,n,!1),f(uD,n,!1),a.abort(),r.remove("copyAll")}),We(t)}}function FD(){if(this._scrollMode!==lt.PAGE)throw new Error("#ensurePageViewVisible: Invalid scrollMode value.");var e=this._currentPageNumber,t=h(oD,this),n=this.viewer;if(n.textContent="",t.pages.length=0,this._spreadMode!==ct.NONE||this.isInPresentationMode){var i=new Set,u=this._spreadMode-1;-1===u?i.add(e-1):e%2!==u?(i.add(e-1),i.add(e)):(i.add(e-2),i.add(e-1));var r=document.createElement("div");if(r.className="spread",this.isInPresentationMode){var a=document.createElement("div");a.className="dummyPage",r.append(a)}var o,s=m(i);try{for(s.s();!(o=s.n()).done;){var l=o.value,c=this._pages[l];c&&(r.append(c.div),t.pages.push(c))}}catch(e){s.e(e)}finally{s.f()}n.append(r)}else{var d=this._pages[e-1];n.append(d.div),t.pages.push(d)}t.scrollDown=e>=t.previousPageNumber,t.previousPageNumber=e}function mD(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.div,u=e.id;if(this._currentPageNumber!==u&&this._setCurrentPageNumber(u),this._scrollMode===lt.PAGE&&(i(hD,this,FD).call(this),this.update()),!t&&!this.isInPresentationMode){var r=n.offsetLeft+n.clientLeft,a=r+n.clientWidth,o=this.container,s=o.scrollLeft,l=o.clientWidth;(this._scrollMode===lt.HORIZONTAL||r<s||a>s+l)&&(t={left:0,top:0})}ft(n,t),!this._currentScaleValue&&this._location&&(this._location=null)}function ED(e){return e===this._currentScale||Math.abs(e-this._currentScale)<1e-15}function CD(e,t,n){var u=this,r=n.noScroll,a=void 0!==r&&r,o=n.preset,s=void 0!==o&&o,l=n.drawingDelay,c=void 0===l?-1:l,d=n.origin,h=void 0===d?null:d;if(this._currentScaleValue=t.toString(),i(hD,this,ED).call(this,e))s&&this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:t});else{this.viewer.style.setProperty("--scale-factor",e*Me.PDF_TO_CSS_UNITS);var D=c>=0&&c<1e3;this.refresh(!0,{scale:e,drawingDelay:D?c:-1}),D&&f(sD,this,setTimeout(function(){f(sD,u,null),u.refresh()},c));var p=this._currentScale;if(this._currentScale=e,!a){var v,g=this._currentPageNumber;if(!this._location||this.isInPresentationMode||this.isChangingPresentationMode||(g=this._location.pageNumber,v=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:g,destArray:v,allowNegativeOffset:!0}),Array.isArray(h)){var F=e/p-1,m=T(this.containerTopLeft,2),E=m[0],C=m[1];this.container.scrollLeft+=(h[0]-C)*F,this.container.scrollTop+=(h[1]-E)*F}}this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:s?t:void 0}),this.defaultRenderingQueue&&this.update()}}function AD(e){return e._spreadMode!==ct.NONE&&e._scrollMode!==lt.HORIZONTAL?2:1}function wD(e,t){var n=parseFloat(e);if(n>0)t.preset=!1,i(hD,this,CD).call(this,n,e,t);else{var u=this._pages[this._currentPageNumber-1];if(!u)return;var r=40,a=5;if(this.isInPresentationMode)r=a=4,this._spreadMode!==ct.NONE&&(r*=2);else if(this.removePageBorders)r=a=0;else if(this._scrollMode===lt.HORIZONTAL){var o=[a,r];r=o[0],a=o[1]}var s=(this.container.clientWidth-r)/u.width*u.scale/p(hD,this,AD),l=(this.container.clientHeight-a)/u.height*u.scale;switch(e){case"page-actual":n=1;break;case"page-width":n=s;break;case"page-height":n=l;break;case"page-fit":n=Math.min(s,l);break;case"auto":var c=_t(u)?s:Math.min(l,s);n=Math.min(1.25,c);break;default:return void console.error('#setScale: "'.concat(e,'" is an unknown zoom value.'))}t.preset=!0,i(hD,this,CD).call(this,n,e,t)}}function bD(){var e=this._pages[this._currentPageNumber-1];this.isInPresentationMode&&i(hD,this,wD).call(this,this._currentScaleValue,{noScroll:!0}),i(hD,this,mD).call(this,e)}function yD(){var e,t=this._getVisiblePages(),n=[],i=t.ids,u=m(t.views);try{for(u.s();!(e=u.n()).done;){var r=e.value,a=r.view;a.hasEditableAnnotations()?n.push(r):i.delete(a.id)}}catch(e){u.e(e)}finally{u.f()}return 0===n.length?null:(this.renderingQueue.renderHighestPriority({first:n[0],last:n.at(-1),views:n,ids:i}),i)}function BD(e){return kD.apply(this,arguments)}function kD(){return(kD=o(k().m(function e(t){var n,i;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!t.pdfPage){e.n=1;break}return e.a(2,t.pdfPage);case 1:return e.p=1,e.n=2,this.pdfDocument.getPage(t.id);case 2:return n=e.v,t.pdfPage||t.setPdfPage(n),e.a(2,n);case 3:return e.p=3,i=e.v,console.error("Unable to get page for page view",i),e.a(2,null)}},e,this,[[1,3]])}))).apply(this,arguments)}function _D(e){var t,n;if(1===(null===(t=e.first)||void 0===t?void 0:t.id))return!0;if((null===(n=e.last)||void 0===n?void 0:n.id)===this.pagesCount)return!1;switch(this._scrollMode){case lt.PAGE:return h(oD,this).scrollDown;case lt.HORIZONTAL:return this.scroll.right}return this.scroll.down}function xD(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.container.clientHeight;e!==h(rD,this)&&(f(rD,this,e),St.setProperty("--viewer-container-height","".concat(e,"px")))}function SD(e){var t,n=m(e);try{for(n.s();!(t=n.n()).done;){var u=t.value;if(u.target===this.container){i(hD,this,xD).call(this,Math.floor(u.borderBoxSize[0].blockSize)),f(zh,this,null);break}}}catch(e){n.e(e)}finally{n.f()}}function PD(){null!==h(sD,this)&&(clearTimeout(h(sD,this)),f(sD,this,null)),null!==h(Qh,this)&&(clearTimeout(h(Qh,this)),f(Qh,this,null))}function ID(){var e;null===(e=h(eD,this))||void 0===e||e.abort(),f(eD,this,null),null!==h(tD,this)&&(clearTimeout(h(tD,this)),f(tD,this,null))}function TD(e){var t,n;switch(e){case ue.STAMP:null===(t=h(Jh,this))||void 0===t||t.loadModel("altText");break;case ue.SIGNATURE:null===(n=h(lD,this))||void 0===n||n.loadSignatures()}}var MD=new WeakMap,LD=new WeakSet,ND=function(){return F(function e(t,n){d(this,e),v(this,LD),D(this,MD,void 0),f(MD,this,t);var u=[{element:t.presentationModeButton,eventName:"presentationmode",close:!0},{element:t.printButton,eventName:"print",close:!0},{element:t.downloadButton,eventName:"download",close:!0},{element:t.viewBookmarkButton,eventName:null,close:!0},{element:t.firstPageButton,eventName:"firstpage",close:!0},{element:t.lastPageButton,eventName:"lastpage",close:!0},{element:t.pageRotateCwButton,eventName:"rotatecw",close:!1},{element:t.pageRotateCcwButton,eventName:"rotateccw",close:!1},{element:t.cursorSelectToolButton,eventName:"switchcursortool",eventDetails:{tool:dt},close:!0},{element:t.cursorHandToolButton,eventName:"switchcursortool",eventDetails:{tool:ht},close:!0},{element:t.scrollPageButton,eventName:"switchscrollmode",eventDetails:{mode:lt.PAGE},close:!0},{element:t.scrollVerticalButton,eventName:"switchscrollmode",eventDetails:{mode:lt.VERTICAL},close:!0},{element:t.scrollHorizontalButton,eventName:"switchscrollmode",eventDetails:{mode:lt.HORIZONTAL},close:!0},{element:t.scrollWrappedButton,eventName:"switchscrollmode",eventDetails:{mode:lt.WRAPPED},close:!0},{element:t.spreadNoneButton,eventName:"switchspreadmode",eventDetails:{mode:ct.NONE},close:!0},{element:t.spreadOddButton,eventName:"switchspreadmode",eventDetails:{mode:ct.ODD},close:!0},{element:t.spreadEvenButton,eventName:"switchspreadmode",eventDetails:{mode:ct.EVEN},close:!0},{element:t.imageAltTextSettingsButton,eventName:"imagealttextsettings",close:!0},{element:t.documentPropertiesButton,eventName:"documentproperties",close:!0}];u.push({element:t.openFileButton,eventName:"openfile",close:!0}),this.eventBus=n,this.opened=!1,i(LD,this,jD).call(this,u),this.reset()},[{key:"isOpen",get:function(){return this.opened}},{key:"setPageNumber",value:function(e){this.pageNumber=e,i(LD,this,OD).call(this)}},{key:"setPagesCount",value:function(e){this.pagesCount=e,i(LD,this,OD).call(this)}},{key:"reset",value:function(){this.pageNumber=0,this.pagesCount=0,i(LD,this,OD).call(this),this.eventBus.dispatch("switchcursortool",{source:this,reset:!0}),i(LD,this,WD).call(this,{mode:lt.VERTICAL}),i(LD,this,VD).call(this,{mode:ct.NONE})}},{key:"open",value:function(){if(!this.opened){this.opened=!0;var e=h(MD,this);Vt(e.toggleButton,!0,e.toolbar)}}},{key:"close",value:function(){if(this.opened){this.opened=!1;var e=h(MD,this);Vt(e.toggleButton,!1,e.toolbar)}}},{key:"toggle",value:function(){this.opened?this.close():this.open()}}])}();function OD(){var e=h(MD,this),t=e.firstPageButton,n=e.lastPageButton,i=e.pageRotateCwButton,u=e.pageRotateCcwButton;t.disabled=this.pageNumber<=1,n.disabled=this.pageNumber>=this.pagesCount,i.disabled=0===this.pagesCount,u.disabled=0===this.pagesCount}function jD(e){var t=this,n=this.eventBus;h(MD,this).toggleButton.addEventListener("click",this.toggle.bind(this));var u,r=m(e);try{var a=function(){var e=u.value,i=e.element,r=e.eventName,a=e.close,o=e.eventDetails;i.addEventListener("click",function(e){null!==r&&n.dispatch(r,B({source:t},o)),a&&t.close(),n.dispatch("reporttelemetry",{source:t,details:{type:"buttons",data:{id:i.id}}})})};for(r.s();!(u=r.n()).done;)a()}catch(e){r.e(e)}finally{r.f()}n._on("cursortoolchanged",i(LD,this,RD).bind(this)),n._on("scrollmodechanged",i(LD,this,WD).bind(this)),n._on("spreadmodechanged",i(LD,this,VD).bind(this))}function RD(e){var t=e.tool,n=e.disabled,i=h(MD,this),u=i.cursorSelectToolButton,r=i.cursorHandToolButton;Wt(u,t===dt),Wt(r,t===ht),u.disabled=n,r.disabled=n}function WD(e){var t=e.mode,n=h(MD,this),i=n.scrollPageButton,u=n.scrollVerticalButton,r=n.scrollHorizontalButton,a=n.scrollWrappedButton,o=n.spreadNoneButton,s=n.spreadOddButton,l=n.spreadEvenButton;Wt(i,t===lt.PAGE),Wt(u,t===lt.VERTICAL),Wt(r,t===lt.HORIZONTAL),Wt(a,t===lt.WRAPPED);var c=this.pagesCount>kh;i.disabled=c,u.disabled=c,r.disabled=c,a.disabled=c;var d=t===lt.HORIZONTAL;o.disabled=d,s.disabled=d,l.disabled=d}function VD(e){var t=e.mode,n=h(MD,this),i=n.spreadNoneButton,u=n.spreadOddButton,r=n.spreadEvenButton;Wt(i,t===ct.NONE),Wt(u,t===ct.ODD),Wt(r,t===ct.EVEN)}var zD=new WeakMap,UD=new WeakMap,HD=new WeakMap,GD=new WeakMap,ZD=new WeakMap,XD=new WeakMap,$D=new WeakMap,KD=new WeakMap,qD=new WeakMap,YD=new WeakMap,JD=new WeakMap,QD=new WeakMap,ef=new WeakMap,tf=new WeakMap,nf=new WeakMap,uf=new WeakMap,rf=new WeakMap,af=new WeakMap,of=new WeakMap,sf=new WeakMap,lf=new WeakMap,cf=new WeakMap,df=new WeakMap,hf=new WeakMap,Df=new WeakMap,ff=new WeakMap,pf=new WeakMap,vf=new WeakMap,gf=new WeakMap,Ff=new WeakMap,mf=new WeakMap,Ef=new WeakMap,Cf=new WeakMap,Af=new WeakMap,wf=new WeakMap,bf=new WeakMap,yf=new WeakSet,Bf=function(){return F(function e(t,n,u,r,a,o,s){var l=this,c=t.dialog,p=t.panels,g=t.typeButton,F=t.typeInput,m=t.drawButton,E=t.drawPlaceholder,C=t.drawSVG,A=t.drawThickness,w=t.imageButton,b=t.imageSVG,y=t.imagePlaceholder,B=t.imagePicker,k=t.imagePickerLink,_=t.description,x=t.clearButton,S=t.cancelButton,P=t.addButton,I=t.errorCloseButton,T=t.errorBar,M=t.saveCheckbox,L=t.saveContainer;d(this,e),v(this,yf),D(this,zD,void 0),D(this,UD,null),D(this,HD,void 0),D(this,GD,void 0),D(this,ZD,void 0),D(this,XD,void 0),D(this,$D,void 0),D(this,KD,null),D(this,qD,void 0),D(this,YD,null),D(this,JD,""),D(this,QD,null),D(this,ef,void 0),D(this,tf,void 0),D(this,nf,void 0),D(this,uf,null),D(this,rf,null),D(this,af,void 0),D(this,of,void 0),D(this,sf,void 0),D(this,lf,void 0),D(this,cf,void 0),D(this,df,void 0),D(this,hf,void 0),D(this,Df,void 0),D(this,ff,null),D(this,pf,void 0),D(this,vf,null),D(this,gf,null),D(this,Ff,!1),D(this,mf,void 0),D(this,Ef,void 0),D(this,Cf,void 0),D(this,Af,void 0),D(this,wf,void 0),D(this,bf,null),f(zD,this,P),f(HD,this,x),f(GD,this,_.lastElementChild),f(XD,this,_.firstElementChild),f($D,this,c),f(ef,this,C),f(qD,this,E),f(tf,this,A),f(nf,this,T),f(lf,this,b),f(sf,this,y),f(af,this,B),f(of,this,k),f(Cf,this,r),f(cf,this,M),f(df,this,L),f(Df,this,u),f(pf,this,F),f(Ef,this,a),f(wf,this,o),f(mf,this,s),f(Af,this,new ip(n,r)),$f._||($f._=Object.freeze({signature:"pdfjs-editor-add-signature-description-default-when-drawing"})),c.addEventListener("close",i(yf,this,Gf).bind(this)),c.addEventListener("contextmenu",function(e){var t=e.target;t!==h(pf,l)&&t!==h(XD,l)&&e.preventDefault()}),c.addEventListener("drop",function(e){We(e)}),S.addEventListener("click",i(yf,this,Uf).bind(this)),P.addEventListener("click",i(yf,this,Zf).bind(this)),x.addEventListener("click",function(){i(yf,l,Rf).call(l,{type:"signature",action:"pdfjs.signature.clear",data:{type:h(vf,l)}}),i(yf,l,Sf).call(l,null)},{passive:!0}),h(XD,this).addEventListener("input",function(){h(GD,l).disabled=""===h(XD,l).value},{passive:!0}),h(GD,this).addEventListener("click",function(){h(XD,l).value="",h(GD,l).disabled=!0},{passive:!0}),I.addEventListener("click",function(){T.hidden=!0},{passive:!0}),i(yf,this,kf).call(this,g,m,w,p),B.accept=Ve.join(","),s._on("storedsignatureschanged",i(yf,this,Vf).bind(this)),r.register(c)},[{key:"getSignature",value:function(e){return this.open(e)}},{key:"loadSignatures",value:(n=o(k().m(function e(){var t,n,u,r,a,s,l,c,d,D,p,v,g,F=arguments;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t=F.length>0&&void 0!==F[0]&&F[0],h(Df,this)&&(t||!h(Df,this).previousElementSibling)&&h(wf,this)){e.n=1;break}return e.a(2);case 1:if(h(ff,this)){e.n=2;break}if(f(ff,this,h(wf,this).getAll().then(function(){var e=o(k().m(function e(t){var n,i;return k().w(function(e){for(;;)switch(e.n){case 0:return n=t,e.n=1,Promise.all(Array.from(t.values(),function(e){var t=e.signatureData;return Re.decompressSignature(t)}));case 1:return i=e.v,e.a(2,[n,i])}},e)}));return function(t){return e.apply(this,arguments)}}())),t){e.n=2;break}return e.a(2);case 2:return e.n=3,h(ff,this);case 3:n=e.v,u=T(n,2),r=u[0],a=u[1],f(ff,this,null),s=0,l=m(r),e.p=4,l.s();case 5:if((c=l.n()).done){e.n=8;break}if(d=T(c.value,2),D=d[0],p=d[1].description,v=a[s++]){e.n=6;break}return e.a(3,7);case 6:v.curves=v.outlines.map(function(e){return{points:e}}),delete v.outlines,i(yf,this,Wf).call(this,v,D,p);case 7:e.n=5;break;case 8:e.n=10;break;case 9:e.p=9,g=e.v,l.e(g);case 10:return e.p=10,l.f(),e.f(10);case 11:return e.a(2)}},e,this,[[4,9,10,11]])})),function(){return n.apply(this,arguments)})},{key:"renderEditButton",value:(t=o(k().m(function e(t){var n,i,u=this;return k().w(function(e){for(;;)if(0===e.n)return(n=document.createElement("button")).classList.add("altText","editDescription"),n.tabIndex=0,n.title=t.description,i=document.createElement("span"),n.append(i),i.setAttribute("data-l10n-id","pdfjs-editor-add-signature-edit-button-label"),n.addEventListener("click",function(){h(Af,u).open(t)},{passive:!0}),e.a(2,n)},e)})),function(e){return t.apply(this,arguments)})},{key:"open",value:(e=o(k().m(function e(t){var n,i,u,r;return k().w(function(e){for(;;)switch(e.n){case 0:return n=t.uiManager,i=t.editor,h(UD,this)||f(UD,this,new Map(h(hf,this).keys().map(function(e){return[e,{value:"",default:""}]}))),f(bf,this,n),f(ZD,this,i),h(bf,this).removeEditListeners(),e.n=1,h(wf,this).isFull();case 1:return u=e.v,h(df,this).classList.toggle("fullStorage",u),h(cf,this).checked=!u,e.n=2,h(Cf,this).open(h($D,this));case 2:(r=h(hf,this).get("type")).focus(),r.click();case 3:return e.a(2)}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"destroy",value:function(){f(bf,this,null),i(yf,this,Hf).call(this)}}]);var e,t,n}();function kf(e,t,n,u){for(var r=this,a=f(hf,this,new Map([["type",e],["draw",t],["image",n]])),o=function(e){var t,n=m(a);try{for(n.s();!(t=n.n()).done;){var o=T(t.value,2),s=o[0],l=o[1];l===e.target?(l.setAttribute("aria-selected",!0),l.setAttribute("tabindex",0),u.setAttribute("data-selected",s),i(yf,r,Sf).call(r,s)):(l.setAttribute("aria-selected",!1),l.setAttribute("tabindex",-1))}}catch(e){n.e(e)}finally{n.f()}},s=Array.from(a.values()),l=function(e){var t=s[e];t.addEventListener("click",o,{passive:!0}),t.addEventListener("keydown",function(t){var n,i=t.key;"ArrowLeft"!==i&&"ArrowRight"!==i||null===(n=s[e+("ArrowLeft"===i?-1:1)])||void 0===n||n.focus()},{passive:!0})},c=0,d=s.length;c<d;c++)l(c)}function _f(){f(Ff,this,!1),h(XD,this).value="",h(vf,this)&&(h(UD,this).get(h(vf,this)).value="")}function xf(e){var t,n;switch(e){case"type":h(pf,this).value="";break;case"draw":f(KD,this,null),f(QD,this,null),f(JD,this,""),null===(t=h(YD,this))||void 0===t||t.remove(),f(YD,this,null),h(qD,this).hidden=!1,h(tf,this).value=1;break;case"image":h(sf,this).hidden=!1,null===(n=h(rf,this))||void 0===n||n.remove(),f(rf,this,null)}}function Sf(e){var t;if(!e||h(vf,this)!==e){h(vf,this)&&(h(UD,this).get(h(vf,this)).value=h(XD,this).value),e&&f(vf,this,e),h(nf,this).hidden=!0;var n=!e;switch(n?i(yf,this,_f).call(this):h(XD,this).value=h(UD,this).get(h(vf,this)).value,h(GD,this).disabled=""===h(XD,this).value,null===(t=h(gf,this))||void 0===t||t.abort(),f(gf,this,new AbortController),h(vf,this)){case"type":i(yf,this,If).call(this,n);break;case"draw":i(yf,this,Tf).call(this,n);break;case"image":i(yf,this,Mf).call(this,n)}}}function Pf(e){h(cf,this).disabled=h(HD,this).disabled=h(zD,this).disabled=h(XD,this).disabled=!e}function If(e){var t=this;e&&i(yf,this,xf).call(this,"type"),i(yf,this,Pf).call(this,h(pf,this).value);var n={passive:!0,signal:h(gf,this).signal};h(pf,this).addEventListener("input",function(){var e=h(pf,t).value;h(Ff,t)||(h(UD,t).get("type").default=h(XD,t).value=e,h(GD,t).disabled=""===e),i(yf,t,Pf).call(t,e)},n),h(XD,this).addEventListener("input",function(){f(Ff,t,h(pf,t).value!==h(XD,t).value)},n)}function Tf(e){var t=this;e&&i(yf,this,xf).call(this,"draw"),i(yf,this,Pf).call(this,h(YD,this));var n=h(gf,this).signal,u={signal:n},r=NaN,a=function(e){var o=e.pointerId;if(isNaN(r)||r===o){r=o,e.preventDefault(),h(ef,t).setPointerCapture(o);var s=h(ef,t).getBoundingClientRect(),l=s.width,c=s.height,d=e.offsetX,D=e.offsetY;if(d=Math.round(d),D=Math.round(D),e.target===h(qD,t)&&(h(qD,t).hidden=!0),!h(KD,t)){f(KD,t,{width:l,height:c,thickness:parseInt(h(tf,t).value),curves:[]}),i(yf,t,Pf).call(t,!0);var p=new he,v=f(YD,t,p.createElement("path"));v.setAttribute("stroke-width",h(tf,t).value),h(ef,t).append(v),h(ef,t).addEventListener("pointerdown",a,u),h(qD,t).removeEventListener("pointerdown",a),""===h(XD,t).value&&h(Ef,t).get($f._.signature).then(function(e){var n;h(UD,t).get("draw").default=e,(n=h(XD,t)).value||(n.value=e),h(GD,t).disabled=""===h(XD,t).value})}f(QD,t,[d,D]),h(KD,t).curves.push({points:h(QD,t)}),f(JD,t,h(JD,t)+"M ".concat(d," ").concat(D)),h(YD,t).setAttribute("d",h(JD,t));var g=new AbortController,F={signal:AbortSignal.any([n,g.signal])};h(ef,t).addEventListener("contextmenu",ke,F),h(ef,t).addEventListener("pointermove",function(e){e.preventDefault();var n=e.offsetX,i=e.offsetY;n=Math.round(n),i=Math.round(i);var u=h(QD,t);if(!(n<0||i<0||n>l||i>c||n===u.at(-2)&&i===u.at(-1))){if(u.length>=4){var r=T(u.slice(-4),4),a=r[0],o=r[1],s=r[2],d=r[3];f(JD,t,h(JD,t)+"C".concat((a+5*s)/6," ").concat((o+5*d)/6," ").concat((5*s+n)/6," ").concat((5*d+i)/6," ").concat((s+n)/2," ").concat((d+i)/2))}else f(JD,t,h(JD,t)+"L".concat(n," ").concat(i));u.push(n,i),h(YD,t).setAttribute("d",h(JD,t))}},F),h(ef,t).addEventListener("pointerup",function(e){var n=e.pointerId;(isNaN(r)||r===n)&&(r=NaN,e.preventDefault(),h(ef,t).releasePointerCapture(n),g.abort(),2===h(QD,t).length&&(f(JD,t,h(JD,t)+"L".concat(h(QD,t)[0]," ").concat(h(QD,t)[1])),h(YD,t).setAttribute("d",h(JD,t))))},F)}};h(KD,this)?h(ef,this).addEventListener("pointerdown",a,u):h(qD,this).addEventListener("pointerdown",a,u),h(tf,this).addEventListener("input",function(){var e=h(tf,t).value;h(tf,t).setAttribute("data-l10n-args",JSON.stringify({thickness:e})),h(KD,t)&&(h(YD,t).setAttribute("stroke-width",e),h(KD,t).thickness=e)},u)}function Mf(e){var t=this;e&&i(yf,this,xf).call(this,"image"),i(yf,this,Pf).call(this,h(rf,this));var n=h(gf,this).signal,u={signal:n},r={passive:!0,signal:n};h(of,this).addEventListener("keydown",function(e){var n=e.key;"Enter"!==n&&" "!==n||(We(e),h(af,t).click())},u),h(af,this).addEventListener("click",function(){h($D,t).classList.toggle("waiting",!0)},r),h(af,this).addEventListener("change",o(k().m(function e(){var n,u;return k().w(function(e){for(;;)switch(e.n){case 0:if((u=null===(n=h(af,t).files)||void 0===n?void 0:n[0])&&Ve.includes(u.type)){e.n=1;break}return h(nf,t).hidden=!1,h($D,t).classList.toggle("waiting",!1),e.a(2);case 1:return e.n=2,i(yf,t,Lf).call(t,u);case 2:return e.a(2)}},e)})),r),h(af,this).addEventListener("cancel",function(){h($D,t).classList.toggle("waiting",!1)},r),h(sf,this).addEventListener("dragover",function(e){var t,n=e.dataTransfer,i=m(n.items);try{for(i.s();!(t=i.n()).done;){var u=t.value.type;if(Ve.includes(u))return n.dropEffect="copy"===n.effectAllowed?"copy":"move",void We(e)}}catch(e){i.e(e)}finally{i.f()}n.dropEffect="none"},u),h(sf,this).addEventListener("drop",function(e){var n=e.dataTransfer.files;if(null!=n&&n.length){var u,r=m(n);try{for(r.s();!(u=r.n()).done;){var a=u.value;if(Ve.includes(a.type)){i(yf,t,Lf).call(t,a);break}}}catch(e){r.e(e)}finally{r.f()}We(e),h($D,t).classList.toggle("waiting",!0)}},u)}function Lf(e){return Nf.apply(this,arguments)}function Nf(){return(Nf=o(k().m(function e(t){var n,u,r,a,o,s;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,h(bf,this).imageManager.getFromFile(t);case 1:n=e.v,e.n=3;break;case 2:e.p=2,s=e.v,console.error("SignatureManager.#extractSignature.",s);case 3:if(n){e.n=4;break}return h(nf,this).hidden=!1,h($D,this).classList.toggle("waiting",!1),e.a(2);case 4:if(u=f(uf,this,h(ZD,this).getFromImage(n.bitmap)),r=u.outline){e.n=5;break}return h($D,this).classList.toggle("waiting",!1),e.a(2);case 5:h(sf,this).hidden=!0,i(yf,this,Pf).call(this,!0),a=new he,o=f(rf,this,a.createElement("path")),h(lf,this).setAttribute("viewBox",r.viewBox),h(lf,this).setAttribute("preserveAspectRatio","xMidYMid meet"),h(lf,this).append(o),o.setAttribute("d",r.toSVGPath()),h(UD,this).get("image").default=t.name,""===h(XD,this).value&&(h(XD,this).value=t.name||"",h(GD,this).disabled=""===h(XD,this).value),h($D,this).classList.toggle("waiting",!1);case 6:return e.a(2)}},e,this,[[0,2]])}))).apply(this,arguments)}function Of(){return h(ZD,this).getFromText(h(pf,this).value,window.getComputedStyle(h(pf,this)))}function jf(){var e=h(ef,this).getBoundingClientRect(),t=e.width,n=e.height;return h(ZD,this).getDrawnSignature(h(KD,this),t,n)}function Rf(e){h(mf,this).dispatch("reporttelemetry",{source:this,details:{type:"editing",data:e}})}function Wf(e,t,n){var u=this,r=e.curves,a=e.areContours,s=e.thickness,l=e.width,c=e.height,d=Math.max(l,c),D=Re.processDrawnLines({lines:{curves:r,thickness:s,width:l,height:c},pageWidth:d,pageHeight:d,rotation:0,innerMargin:0,mustSmooth:!1,areContours:a});if(D){var f=D.outline,p=new he,v=document.createElement("div"),g=document.createElement("button");g.addEventListener("click",function(){h(mf,u).dispatch("switchannotationeditorparams",{source:u,type:ie.CREATE,value:{signatureData:{lines:{curves:r,thickness:s,width:l,height:c},mustSmooth:!1,areContours:a,description:n,uuid:t,heightInPage:40}}})}),v.append(g),v.classList.add("toolbarAddSignatureButtonContainer");var F=p.create(1,1,!0);g.append(F);var m=document.createElement("span");m.ariaHidden=!0,g.append(m),g.classList.add("toolbarAddSignatureButton"),g.type="button",m.textContent=n,g.setAttribute("data-l10n-id","pdfjs-editor-add-saved-signature-button"),g.setAttribute("data-l10n-args",JSON.stringify({description:n})),g.tabIndex=0;var E=p.createElement("path");F.append(E),F.setAttribute("viewBox",f.viewBox),F.setAttribute("preserveAspectRatio","xMidYMid meet"),a&&E.classList.add("contours"),E.setAttribute("d",f.toSVGPath());var C=document.createElement("button");v.append(C),C.classList.add("toolbarButton","deleteButton"),C.setAttribute("data-l10n-id","pdfjs-editor-delete-signature-button1"),C.type="button",C.tabIndex=0,C.addEventListener("click",o(k().m(function e(){var n,r,a,o;return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,h(wf,u).delete(t);case 1:if(!e.v){e.n=3;break}return v.remove(),n=i(yf,u,Rf),r=u,e.n=2,h(wf,u).size();case 2:a=e.v,o={type:"signature",action:"pdfjs.signature.delete_saved",data:{savedCount:a}},n.call.call(n,r,o);case 3:return e.a(2)}},e)})));var A=document.createElement("span");C.append(A),A.setAttribute("data-l10n-id","pdfjs-editor-delete-signature-button-label1"),h(Df,this).before(v)}}function Vf(){return zf.apply(this,arguments)}function zf(){return(zf=o(k().m(function e(){var t;return k().w(function(e){for(;;)switch(e.n){case 0:for(t=h(Df,this).parentElement;t.firstElementChild!==h(Df,this);)t.firstElementChild.remove();return f(ff,this,null),e.n=1,this.loadSignatures(!0);case 1:return e.a(2)}},e,this)}))).apply(this,arguments)}function Uf(){i(yf,this,Hf).call(this)}function Hf(){h(Cf,this).closeIfActive(h($D,this))}function Gf(){var e,t;null===h(ZD,this)._drawId&&h(ZD,this).remove(),null===(e=h(bf,this))||void 0===e||e.addEditListeners(),null===(t=h(gf,this))||void 0===t||t.abort(),f(gf,this,null),f(bf,this,null),f(ZD,this,null),i(yf,this,_f).call(this);var n,u=m(h(hf,this));try{for(u.s();!(n=u.n()).done;){var r=T(n.value,1)[0];i(yf,this,xf).call(this,r)}}catch(e){u.e(e)}finally{u.f()}i(yf,this,Pf).call(this,!1),f(vf,this,null),f(UD,this,null)}function Zf(){return Xf.apply(this,arguments)}function Xf(){return(Xf=o(k().m(function e(){var t,n,u,r,a,o,s,l,c,d,D,f,p,v,g,F,m,E,C,A;return k().w(function(e){for(;;)switch(e.n){case 0:n=h(vf,this),p=n,e.n="type"===p?1:"draw"===p?2:"image"===p?3:4;break;case 1:return t=i(yf,this,Of).call(this),e.a(3,4);case 2:return t=i(yf,this,jf).call(this),e.a(3,4);case 3:return t=h(uf,this),e.a(3,4);case 4:if(u=null,r=h(XD,this).value,!h(cf,this).checked){e.n=7;break}return o=(a=t).newCurves,s=a.areContours,l=a.thickness,c=a.width,d=a.height,e.n=5,Re.compressSignature({outlines:o,areContours:s,thickness:l,width:c,height:d});case 5:return D=e.v,e.n=6,h(wf,this).create({description:r,signatureData:D});case 6:(u=e.v)?i(yf,this,Wf).call(this,{curves:o.map(function(e){return{points:e}}),areContours:s,thickness:l,width:c,height:d},u,r):console.warn("SignatureManager.add: cannot save the signature.");case 7:return f=h(UD,this).get(n),v=i(yf,this,Rf),g=this,F=n,m=!!u,e.n=8,h(wf,this).size();case 8:E=e.v,C=r!==f.default,A={type:"signature",action:"pdfjs.signature.created",data:{type:F,saved:m,savedCount:E,descriptionChanged:C}},v.call.call(v,g,A),h(ZD,this).addSignature(t,40,h(XD,this).value,u),i(yf,this,Hf).call(this);case 9:return e.a(2)}},e,this)}))).apply(this,arguments)}var $f={_:null},Kf=new WeakMap,qf=new WeakMap,Yf=new WeakMap,Jf=new WeakMap,Qf=new WeakMap,ep=new WeakMap,tp=new WeakMap,np=new WeakSet,ip=function(){return F(function e(t,n){var u=this,r=t.dialog,a=t.description,o=t.cancelButton,s=t.updateButton,l=t.editSignatureView;d(this,e),v(this,np),D(this,Kf,void 0),D(this,qf,void 0),D(this,Yf,void 0),D(this,Jf,void 0),D(this,Qf,void 0),D(this,ep,void 0),D(this,tp,void 0);var c=f(Yf,this,a.firstElementChild);f(ep,this,l),f(Jf,this,r),f(Qf,this,n),r.addEventListener("close",i(np,this,sp).bind(this)),r.addEventListener("contextmenu",function(e){e.target!==h(Yf,u)&&e.preventDefault()}),o.addEventListener("click",i(np,this,ap).bind(this)),s.addEventListener("click",i(np,this,up).bind(this));var p=a.lastElementChild;p.addEventListener("click",function(){c.value="",p.disabled=!0,s.disabled=""===h(qf,u)}),c.addEventListener("input",function(){var e=c.value;p.disabled=""===e,s.disabled=e===h(qf,u),l.setAttribute("aria-label",e)},{passive:!0}),n.register(r)},[{key:"open",value:(e=o(k().m(function e(t){var n,i,u,r,a;return k().w(function(e){for(;;)switch(e.n){case 0:return f(tp,this,t._uiManager),f(Kf,this,t),f(qf,this,h(Yf,this).value=t.description),h(Yf,this).dispatchEvent(new Event("input")),h(tp,this).removeEditListeners(),n=t.getSignaturePreview(),i=n.areContours,u=n.outline,r=new he,a=r.createElement("path"),h(ep,this).append(a),h(ep,this).setAttribute("viewBox",u.viewBox),a.setAttribute("d",u.toSVGPath()),i&&a.classList.add("contours"),e.n=1,h(Qf,this).open(h(Jf,this));case 1:return e.a(2)}},e,this)})),function(t){return e.apply(this,arguments)})}]);var e}();function up(){return rp.apply(this,arguments)}function rp(){return(rp=o(k().m(function e(){return k().w(function(e){for(;;)switch(e.n){case 0:h(Kf,this)._reportTelemetry({action:"pdfjs.signature.edit_description",data:{hasBeenChanged:!0}}),h(Kf,this).description=h(Yf,this).value,i(np,this,op).call(this);case 1:return e.a(2)}},e,this)}))).apply(this,arguments)}function ap(){h(Kf,this)._reportTelemetry({action:"pdfjs.signature.edit_description",data:{hasBeenChanged:!1}}),i(np,this,op).call(this)}function op(){h(Qf,this).closeIfActive(h(Jf,this))}function sp(){var e;null===(e=h(tp,this))||void 0===e||e.addEditListeners(),f(tp,this,null),f(Kf,this,null),h(ep,this).firstElementChild.remove()}var lp=new WeakMap,cp=new WeakMap,dp=new WeakSet,hp=function(){return F(function e(t,n){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;d(this,e),v(this,dp),D(this,lp,null),D(this,cp,void 0),f(cp,this,t),this.eventBus=n;var r=[{element:t.previous,eventName:"previouspage"},{element:t.next,eventName:"nextpage"},{element:t.zoomIn,eventName:"zoomin"},{element:t.zoomOut,eventName:"zoomout"},{element:t.print,eventName:"print"},{element:t.download,eventName:"download"},{element:t.editorFreeTextButton,eventName:"switchannotationeditormode",eventDetails:{get mode(){return t.editorFreeTextButton.classList.contains("toggled")?ue.NONE:ue.FREETEXT}}},{element:t.editorHighlightButton,eventName:"switchannotationeditormode",eventDetails:{get mode(){return t.editorHighlightButton.classList.contains("toggled")?ue.NONE:ue.HIGHLIGHT}}},{element:t.editorInkButton,eventName:"switchannotationeditormode",eventDetails:{get mode(){return t.editorInkButton.classList.contains("toggled")?ue.NONE:ue.INK}}},{element:t.editorStampButton,eventName:"switchannotationeditormode",eventDetails:{get mode(){return t.editorStampButton.classList.contains("toggled")?ue.NONE:ue.STAMP}},telemetry:{type:"editing",data:{action:"pdfjs.image.icon_click"}}},{element:t.editorSignatureButton,eventName:"switchannotationeditormode",eventDetails:{get mode(){return t.editorSignatureButton.classList.contains("toggled")?ue.NONE:ue.SIGNATURE}}}];i(dp,this,fp).call(this,r),i(dp,this,Dp).call(this,{value:u}),this.reset()},[{key:"setPageNumber",value:function(e,t){this.pageNumber=e,this.pageLabel=t,i(dp,this,vp).call(this,!1)}},{key:"setPagesCount",value:function(e,t){this.pagesCount=e,this.hasPageLabels=t,i(dp,this,vp).call(this,!0)}},{key:"setPageScale",value:function(e,t){this.pageScaleValue=(e||t).toString(),this.pageScale=t,i(dp,this,vp).call(this,!1)}},{key:"reset",value:function(){f(lp,this,null),this.pageNumber=0,this.pageLabel=null,this.hasPageLabels=!1,this.pagesCount=0,this.pageScaleValue=$e,this.pageScale=1,i(dp,this,vp).call(this,!0),this.updateLoadingIndicatorState(),i(dp,this,pp).call(this,{mode:ue.DISABLE})}},{key:"updateLoadingIndicatorState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];h(cp,this).pageNumber.classList.toggle("loading",e)}}])}();function Dp(e){var t="normal";switch(e.value){case 1:t="compact";break;case 2:t="touch"}document.documentElement.setAttribute("data-toolbar-density",t)}function fp(e){var t,n=this,u=this.eventBus,r=h(cp,this),a=r.editorHighlightColorPicker,o=r.editorHighlightButton,s=r.pageNumber,l=r.scaleSelect,c=this,d=m(e);try{var D=function(){var e=t.value,i=e.element,r=e.eventName,a=e.eventDetails,o=e.telemetry;i.addEventListener("click",function(e){null!==r&&u.dispatch(r,B(B({source:n},a),{},{isFromKeyboard:0===e.detail})),o&&u.dispatch("reporttelemetry",{source:n,details:o})})};for(d.s();!(t=d.n()).done;)D()}catch(e){d.e(e)}finally{d.f()}s.addEventListener("click",function(){this.select()}),s.addEventListener("change",function(){u.dispatch("pagenumberchanged",{source:c,value:this.value})}),l.addEventListener("change",function(){"custom"!==this.value&&u.dispatch("scalechanged",{source:c,value:this.value})}),l.addEventListener("click",function(e){var t=e.target;this.value===c.pageScaleValue&&"OPTION"===t.tagName.toUpperCase()&&this.blur()}),l.oncontextmenu=ke,u._on("annotationeditormodechanged",i(dp,this,pp).bind(this)),u._on("showannotationeditorui",function(e){if(e.mode===ue.HIGHLIGHT)o.click()}),u._on("toolbardensity",i(dp,this,Dp).bind(this)),a&&(u._on("annotationeditoruimanager",function(e){var t=e.uiManager,i=f(lp,n,new ce({uiManager:t}));t.setMainHighlightColorPicker(i),a.append(i.renderMainDropdown())}),u._on("mainhighlightcolorpickerupdatecolor",function(e){var t,i=e.value;null===(t=h(lp,n))||void 0===t||t.updateColor(i)}))}function pp(e){var t=e.mode,n=h(cp,this),i=n.editorFreeTextButton,u=n.editorFreeTextParamsToolbar,r=n.editorHighlightButton,a=n.editorHighlightParamsToolbar,o=n.editorInkButton,s=n.editorInkParamsToolbar,l=n.editorStampButton,c=n.editorStampParamsToolbar,d=n.editorSignatureButton,D=n.editorSignatureParamsToolbar;Vt(i,t===ue.FREETEXT,u),Vt(r,t===ue.HIGHLIGHT,a),Vt(o,t===ue.INK,s),Vt(l,t===ue.STAMP,c),Vt(d,t===ue.SIGNATURE,D);var f=t===ue.DISABLE;i.disabled=f,r.disabled=f,o.disabled=f,l.disabled=f,d.disabled=f}function vp(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.pageNumber,n=this.pagesCount,i=this.pageScaleValue,u=this.pageScale,r=h(cp,this);e&&(this.hasPageLabels?(r.pageNumber.type="text",r.numPages.setAttribute("data-l10n-id","pdfjs-page-of-pages")):(r.pageNumber.type="number",r.numPages.setAttribute("data-l10n-id","pdfjs-of-pages"),r.numPages.setAttribute("data-l10n-args",JSON.stringify({pagesCount:n}))),r.pageNumber.max=n),this.hasPageLabels?(r.pageNumber.value=this.pageLabel,r.numPages.setAttribute("data-l10n-args",JSON.stringify({pageNumber:t,pagesCount:n}))):r.pageNumber.value=t,r.previous.disabled=t<=1,r.next.disabled=t>=n,r.zoomOut.disabled=u<=.1,r.zoomIn.disabled=u>=10;var a,o=!1,s=m(r.scaleSelect.options);try{for(s.s();!(a=s.n()).done;){var l=a.value;l.value===i?(l.selected=!0,o=!0):l.selected=!1}}catch(e){s.e(e)}finally{s.f()}o||(r.customScaleOption.selected=!0,r.customScaleOption.setAttribute("data-l10n-args",JSON.stringify({scale:Math.round(1e4*u)/100})))}var gp=function(){return F(function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;d(this,e),this.fingerprint=t,this.cacheSize=i,this._initializedPromise=this._readFromStorage().then(function(e){var t=JSON.parse(e||"{}"),i=-1;if(Array.isArray(t.files)){for(;t.files.length>=n.cacheSize;)t.files.shift();for(var u=0,r=t.files.length;u<r;u++){if(t.files[u].fingerprint===n.fingerprint){i=u;break}}}else t.files=[];-1===i&&(i=t.files.push({fingerprint:n.fingerprint})-1),n.file=t.files[i],n.database=t})},[{key:"_writeToStorage",value:(r=o(k().m(function e(){var t;return k().w(function(e){for(;;)switch(e.n){case 0:t=JSON.stringify(this.database),localStorage.setItem("pdfjs.history",t);case 1:return e.a(2)}},e,this)})),function(){return r.apply(this,arguments)})},{key:"_readFromStorage",value:(u=o(k().m(function e(){return k().w(function(e){for(;;)if(0===e.n)return e.a(2,localStorage.getItem("pdfjs.history"))},e)})),function(){return u.apply(this,arguments)})},{key:"set",value:(i=o(k().m(function e(t,n){return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this._initializedPromise;case 1:return this.file[t]=n,e.a(2,this._writeToStorage())}},e,this)})),function(e,t){return i.apply(this,arguments)})},{key:"setMultiple",value:(n=o(k().m(function e(t){var n;return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this._initializedPromise;case 1:for(n in t)this.file[n]=t[n];return e.a(2,this._writeToStorage())}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"get",value:(t=o(k().m(function e(t,n){var i;return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this._initializedPromise;case 1:return i=this.file[t],e.a(2,void 0!==i?i:n)}},e,this)})),function(e,n){return t.apply(this,arguments)})},{key:"getMultiple",value:(e=o(k().m(function e(t){var n,i,u;return k().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this._initializedPromise;case 1:for(i in n=Object.create(null),t)u=this.file[i],n[i]=void 0!==u?u:t[i];return e.a(2,n)}},e,this)})),function(t){return e.apply(this,arguments)})}]);var e,t,n,i,u,r}(),Fp=-1,mp=1,Ep={initialBookmark:document.location.hash.substring(1),_initializedCapability:B(B({},Promise.withResolvers()),{},{settled:!1}),appConfig:null,pdfDocument:null,pdfLoadingTask:null,printService:null,pdfViewer:null,pdfThumbnailViewer:null,pdfRenderingQueue:null,pdfPresentationMode:null,pdfDocumentProperties:null,pdfLinkService:null,pdfHistory:null,pdfSidebar:null,pdfOutlineViewer:null,pdfAttachmentViewer:null,pdfLayerViewer:null,pdfCursorTools:null,pdfScriptingManager:null,store:null,downloadManager:null,overlayManager:null,preferences:new uu,toolbar:null,secondaryToolbar:null,eventBus:null,l10n:null,annotationEditorParams:null,imageAltTextSettings:null,isInitialViewSet:!1,isViewerEmbedded:window.parent!==window,url:"",baseUrl:"",mlManager:null,_downloadUrl:"",_eventBusAbortController:null,_windowAbortController:null,_globalAbortController:new AbortController,documentInfo:null,metadata:null,_contentDispositionFilename:null,_contentLength:null,_saveInProgress:!1,_wheelUnusedTicks:0,_wheelUnusedFactor:1,_touchManager:null,_touchUnusedTicks:0,_touchUnusedFactor:1,_PDFBug:null,_hasAnnotationEditors:!1,_title:document.title,_printAnnotationStoragePromise:null,_isCtrlKeyDown:!1,_caretBrowsing:null,_isScrolling:!1,editorUndoBar:null,initialize:function(e){var t=this;return o(k().m(function n(){var i,u,r;return k().w(function(n){for(;;)switch(n.p=n.n){case 0:return t.appConfig=e,n.p=1,n.n=2,t.preferences.initializedPromise;case 2:n.n=4;break;case 3:n.p=3,u=n.v,console.error("initialize:",u);case 4:if(!rn.get("pdfBugEnabled")){n.n=5;break}return n.n=5,t._parseHashParams();case 5:r=rn.get("viewerCssTheme"),n.n=1===r?6:2===r?7:8;break;case 6:return i="light",n.a(3,8);case 7:return i="dark",n.a(3,8);case 8:return i&&St.setProperty("color-scheme",i),n.n=9,t.externalServices.createL10n();case 9:return t.l10n=n.v,document.getElementsByTagName("html")[0].dir=t.l10n.getDirection(),t.l10n.translate(e.appContainer||document.documentElement),t.isViewerEmbedded&&rn.get("externalLinkTarget")===on.NONE&&rn.set("externalLinkTarget",on.TOP),n.n=10,t._initializeViewerComponents();case 10:t.bindEvents(),t.bindWindowEvents(),t._initializedCapability.settled=!0,t._initializedCapability.resolve();case 11:return n.a(2)}},n,null,[[1,3]])}))()},_parseHashParams:function(){var e=this;return o(k().m(function t(){var n,i,u,r,a,s,l,c,d,h,D,f,p,v,g,F,m;return k().w(function(t){for(;;)switch(t.p=t.n){case 0:if(n=document.location.hash.substring(1)){t.n=1;break}return t.a(2);case 1:if(i=e.appConfig,u=i.mainContainer,r=i.viewerContainer,a=vt(n),s=function(){var t=o(k().m(function t(){var n,i;return k().w(function(t){for(;;)switch(t.n){case 0:if(!e._PDFBug){t.n=1;break}return t.a(2);case 1:return t.n=2,import(rn.get("debuggerSrc"));case 2:n=t.v,i=n.PDFBug,e._PDFBug=i;case 3:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),"true"!==a.get("disableworker")){t.n=5;break}return t.p=2,Ce.workerSrc||(Ce.workerSrc=rn.get("workerSrc")),t.n=3,import(Ie.workerSrc);case 3:rn.set("workerPort",null),t.n=5;break;case 4:t.p=4,v=t.v,console.error("_parseHashParams:",v);case 5:if(!a.has("textlayer")){t.n=12;break}g=a.get("textlayer"),t.n="off"===g?6:"visible"===g||"shadow"===g||"hover"===g?7:12;break;case 6:return rn.set("textLayerMode",at),t.a(3,12);case 7:return r.classList.add("textLayer-".concat(a.get("textlayer"))),t.p=8,t.n=9,s();case 9:e._PDFBug.loadCSS(),t.n=11;break;case 10:t.p=10,F=t.v,console.error("_parseHashParams:",F);case 11:return t.a(3,12);case 12:if(!a.has("pdfbug")){t.n=17;break}return c=a.get("pdfbug").split(","),t.p=13,t.n=14,s();case 14:e._PDFBug.init(u,c),t.n=16;break;case 15:t.p=15,m=t.v,console.error("_parseHashParams:",m);case 16:d={pdfBug:!0,fontExtraProperties:!0},null!==(l=globalThis.StepperManager)&&void 0!==l&&l.enabled&&(d.minDurationToUpdateCanvas=0),rn.setAll(d);case 17:for(D in a.has("locale")&&rn.set("localeProperties",{lang:a.get("locale")}),h={disableAutoFetch:function(e){return"true"===e},disableFontFace:function(e){return"true"===e},disableHistory:function(e){return"true"===e},disableRange:function(e){return"true"===e},disableStream:function(e){return"true"===e},verbosity:function(e){return 0|e}})f=h[D],p=D.toLowerCase(),a.has(p)&&rn.set(D,f(a.get(p)));case 18:return t.a(2)}},t,null,[[13,15],[8,10],[2,4]])}))()},_initializeViewerComponents:function(){var e=this;return o(k().m(function t(){var n,i,u,r,a,o,s,l,c,d,h,D,f,p,v,g,F,E,C,A,w,b,y,B,_,x,S,P,I,T,M,L,N,O,j,R,W,V,z;return k().w(function(t){for(;;)switch(t.n){case 0:if(c=e.appConfig,d=e.externalServices,h=e.l10n,D=e.mlManager,f=e._globalAbortController.signal,p=new pn,e.eventBus=rn.eventBus=p,null==D||D.setEventBus(p,f),v=e.overlayManager=new ma,(g=e.pdfRenderingQueue=new gl).onIdle=e._cleanup.bind(e),F=e.pdfLinkService=new sn({eventBus:p,externalLinkTarget:rn.get("externalLinkTarget"),externalLinkRel:rn.get("externalLinkRel"),ignoreDestinationZoom:rn.get("ignoreDestinationZoom")}),E=e.downloadManager=new aa,C=e.findController=new Uo({linkService:F,eventBus:p,updateMatchesCountOnProgress:!0}),A=e.pdfScriptingManager=new Sl({eventBus:p,externalServices:d,docProperties:e._scriptingDocProperties.bind(e)}),w=c.mainContainer,b=c.viewerContainer,y=rn.get("annotationEditorMode"),B=rn.get("forcePageColors")||window.matchMedia("(forced-colors: active)").matches?{background:rn.get("pageColorsBackground"),foreground:rn.get("pageColorsForeground")}:null,_=rn.get("enableUpdatedAddImage")?c.newAltTextDialog?new Iu(c.newAltTextDialog,v,p):null:c.altTextDialog?new Ir(c.altTextDialog,w,v,p):null,c.editorUndoBar&&(e.editorUndoBar=new pa(c.editorUndoBar,p)),x=rn.get("enableSignatureEditor")&&c.addSignatureDialog?new Bf(c.addSignatureDialog,c.editSignatureDialog,(null===(n=c.annotationEditorParams)||void 0===n?void 0:n.editorSignatureAddSignature)||null,v,h,d.createSignatureStorage(p,f),p):null,S=rn.get("enableHWA"),P=rn.get("maxCanvasPixels"),I=rn.get("maxCanvasDim"),T=rn.get("capCanvasAreaFactor"),M=e.pdfViewer=new DD({container:w,viewer:b,eventBus:p,renderingQueue:g,linkService:F,downloadManager:E,altTextManager:_,signatureManager:x,editorUndoBar:e.editorUndoBar,findController:C,scriptingManager:rn.get("enableScripting")&&A,l10n:h,textLayerMode:rn.get("textLayerMode"),annotationMode:rn.get("annotationMode"),annotationEditorMode:y,annotationEditorHighlightColors:rn.get("highlightEditorColors"),enableHighlightFloatingButton:rn.get("enableHighlightFloatingButton"),enableUpdatedAddImage:rn.get("enableUpdatedAddImage"),enableNewAltTextWhenAddingImage:rn.get("enableNewAltTextWhenAddingImage"),imageResourcesPath:rn.get("imageResourcesPath"),enablePrintAutoRotate:rn.get("enablePrintAutoRotate"),maxCanvasPixels:P,maxCanvasDim:I,capCanvasAreaFactor:T,enableDetailCanvas:rn.get("enableDetailCanvas"),enablePermissions:rn.get("enablePermissions"),pageColors:B,mlManager:D,abortSignal:f,enableHWA:S,supportsPinchToZoom:e.supportsPinchToZoom,enableAutoLinking:rn.get("enableAutoLinking"),minDurationToUpdateCanvas:rn.get("minDurationToUpdateCanvas")}),g.setViewer(M),F.setViewer(M),A.setViewer(M),null!==(i=c.sidebar)&&void 0!==i&&i.thumbnailView&&(e.pdfThumbnailViewer=new fc({container:c.sidebar.thumbnailView,eventBus:p,renderingQueue:g,linkService:F,maxCanvasPixels:P,maxCanvasDim:I,pageColors:B,abortSignal:f,enableHWA:S}),g.setThumbnailViewer(e.pdfThumbnailViewer)),e.isViewerEmbedded||rn.get("disableHistory")||(e.pdfHistory=new gs({linkService:F,eventBus:p}),F.setHistory(e.pdfHistory)),!e.supportsIntegratedFind&&c.findBar&&(e.findBar=new hs(c.findBar,c.principalContainer,p)),c.annotationEditorParams)if(y!==ue.DISABLE)(N=null===(L=c.toolbar)||void 0===L?void 0:L.editorSignatureButton)&&rn.get("enableSignatureEditor")&&(N.parentElement.hidden=!1),e.annotationEditorParams=new zr(c.annotationEditorParams,p);else for(O=0,j=["editorModeButtons","editorModeSeparator"];O<j.length;O++)W=j[O],null===(R=document.getElementById(W))||void 0===R||R.classList.add("hidden");D&&null!==(u=c.secondaryToolbar)&&void 0!==u&&u.imageAltTextSettingsButton&&(e.imageAltTextSettings=new ur(c.altTextSettingsDialog,v,p,D)),c.documentProperties&&(e.pdfDocumentProperties=new eo(c.documentProperties,v,p,h,function(){return e._docFilename},function(){return e._docTitle})),null!==(r=c.secondaryToolbar)&&void 0!==r&&r.cursorHandToolButton&&(e.pdfCursorTools=new Ga({container:w,eventBus:p,cursorToolOnLoad:rn.get("cursorToolOnLoad")})),c.toolbar&&(e.toolbar=new hp(c.toolbar,p,rn.get("toolbarDensity"))),c.secondaryToolbar&&(rn.get("enableAltText")&&(null===(V=c.secondaryToolbar.imageAltTextSettingsButton)||void 0===V||V.classList.remove("hidden"),null===(z=c.secondaryToolbar.imageAltTextSettingsSeparator)||void 0===z||z.classList.remove("hidden")),e.secondaryToolbar=new ND(c.secondaryToolbar,p)),e.supportsFullscreen&&null!==(a=c.secondaryToolbar)&&void 0!==a&&a.presentationModeButton&&(e.pdfPresentationMode=new zs({container:w,pdfViewer:M,eventBus:p})),c.passwordOverlay&&(e.passwordPrompt=new ba(c.passwordOverlay,v,e.isViewerEmbedded)),null!==(o=c.sidebar)&&void 0!==o&&o.outlineView&&(e.pdfOutlineViewer=new Ts({container:c.sidebar.outlineView,eventBus:p,l10n:h,linkService:F,downloadManager:E})),null!==(s=c.sidebar)&&void 0!==s&&s.attachmentsView&&(e.pdfAttachmentViewer=new Pa({container:c.sidebar.attachmentsView,eventBus:p,l10n:h,downloadManager:E})),null!==(l=c.sidebar)&&void 0!==l&&l.layersView&&(e.pdfLayerViewer=new Ss({container:c.sidebar.layersView,eventBus:p,l10n:h})),c.sidebar&&(e.pdfSidebar=new Xl({elements:c.sidebar,eventBus:p,l10n:h}),e.pdfSidebar.onToggled=e.forceRendering.bind(e),e.pdfSidebar.onUpdateThumbnails=function(){var t,n=m(M.getCachedPageViews());try{for(n.s();!(t=n.n()).done;){var i,u=t.value;if(u.renderingState===Ke.FINISHED)null===(i=e.pdfThumbnailViewer.getThumbnail(u.id-1))||void 0===i||i.setImage(u)}}catch(e){n.e(e)}finally{n.f()}e.pdfThumbnailViewer.scrollThumbnailIntoView(M.currentPageNumber)});case 1:return t.a(2)}},t)}))()},run:function(e){var t=this;return o(k().m(function n(){var i,u,r,a,o,s,l,c,d,h,D;return k().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,t.initialize(e);case 1:u=t.appConfig,r=t.eventBus,o=document.location.search.substring(1),s=vt(o),a=null!==(i=s.get("file"))&&void 0!==i?i:rn.get("defaultUrl"),Ap(a),(l=t._openFileInput=document.createElement("input")).id="fileInput",l.hidden=!0,l.type="file",l.value=null,document.body.append(l),l.addEventListener("change",function(e){var t=e.target.files;t&&0!==t.length&&r.dispatch("fileinputchange",{source:this,fileInput:e.target})}),u.mainContainer.addEventListener("dragover",function(e){var t,n=m(e.dataTransfer.items);try{for(n.s();!(t=n.n()).done;){if("application/pdf"===t.value.type)return e.dataTransfer.dropEffect="copy"===e.dataTransfer.effectAllowed?"copy":"move",void We(e)}}catch(e){n.e(e)}finally{n.f()}}),u.mainContainer.addEventListener("drop",function(e){var t;"application/pdf"===(null===(t=e.dataTransfer.files)||void 0===t?void 0:t[0].type)&&(We(e),r.dispatch("fileinputchange",{source:this,fileInput:e.dataTransfer}))}),rn.get("supportsDocumentFonts")||(rn.set("disableFontFace",!0),t.l10n.get("pdfjs-web-fonts-disabled").then(function(e){console.warn(e)})),t.supportsPrinting||(null===(c=u.toolbar)||void 0===c||null===(c=c.print)||void 0===c||c.classList.add("hidden"),null===(d=u.secondaryToolbar)||void 0===d||d.printButton.classList.add("hidden")),t.supportsFullscreen||null===(h=u.secondaryToolbar)||void 0===h||h.presentationModeButton.classList.add("hidden"),t.supportsIntegratedFind&&(null===(D=u.findBar)||void 0===D||null===(D=D.toggleButton)||void 0===D||D.classList.add("hidden")),a?t.open({url:a}):t._hideViewBookmark();case 2:return n.a(2)}},n)}))()},get externalServices(){return je(this,"externalServices",new ru)},get initialized(){return this._initializedCapability.settled},get initializedPromise(){return this._initializedCapability.promise},updateZoom:function(e,t,n){this.pdfViewer.isInPresentationMode||this.pdfViewer.updateScale({drawingDelay:rn.get("defaultZoomDelay"),steps:e,scaleFactor:t,origin:n})},zoomIn:function(){this.updateZoom(1)},zoomOut:function(){this.updateZoom(-1)},zoomReset:function(){this.pdfViewer.isInPresentationMode||(this.pdfViewer.currentScaleValue=$e)},touchPinchCallback:function(e,t,n){if(this.supportsPinchToZoom){var i=this._accumulateFactor(this.pdfViewer.currentScale,n/t,"_touchUnusedFactor");this.updateZoom(null,i,e)}else{var u=this._accumulateTicks((n-t)/30,"_touchUnusedTicks");this.updateZoom(u,null,e)}},touchPinchEndCallback:function(){this._touchUnusedTicks=0,this._touchUnusedFactor=1},get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0},get page(){return this.pdfViewer.currentPageNumber},set page(e){this.pdfViewer.currentPageNumber=e},get supportsPrinting(){return je(this,"supportsPrinting",rn.get("supportsPrinting")&&vl.supportsPrinting)},get supportsFullscreen(){return je(this,"supportsFullscreen",document.fullscreenEnabled)},get supportsPinchToZoom(){return je(this,"supportsPinchToZoom",rn.get("supportsPinchToZoom"))},get supportsIntegratedFind(){return je(this,"supportsIntegratedFind",rn.get("supportsIntegratedFind"))},get loadingBar(){var e=document.getElementById("loadingBar"),t=e?new Nt(e):null;return je(this,"loadingBar",t)},get supportsMouseWheelZoomCtrlKey(){return je(this,"supportsMouseWheelZoomCtrlKey",rn.get("supportsMouseWheelZoomCtrlKey"))},get supportsMouseWheelZoomMetaKey(){return je(this,"supportsMouseWheelZoomMetaKey",rn.get("supportsMouseWheelZoomMetaKey"))},get supportsCaretBrowsingMode(){return rn.get("supportsCaretBrowsingMode")},moveCaret:function(e,t){var n;this._caretBrowsing||(this._caretBrowsing=new Kr(this._globalAbortController.signal,this.appConfig.mainContainer,this.appConfig.viewerContainer,null===(n=this.appConfig.toolbar)||void 0===n?void 0:n.container)),this._caretBrowsing.moveCaret(e,t)},setTitleUsingUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.url=e,this.baseUrl=He(e,"",!0),t&&(this._downloadUrl=t===e?this.baseUrl:He(t,"",!0)),we(e)&&this._hideViewBookmark();var n=Fe(e,"");if(!n)try{n=decodeURIComponent(ge(e))}catch(e){}this.setTitle(n||e)},setTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._title;if(this._title=e,!this.isViewerEmbedded){var t=this._hasAnnotationEditors&&!this.pdfRenderingQueue.printing;document.title="".concat(t?"* ":"").concat(e)}},get _docFilename(){return this._contentDispositionFilename||Fe(this.url)},get _docTitle(){var e=this.documentInfo,t=this.metadata,n=null==t?void 0:t.get("dc:title");return n&&"Untitled"!==n&&!/[\uFFF0-\uFFFF]/g.test(n)?n:e.Title},_hideViewBookmark:function(){var e,t=this.appConfig.secondaryToolbar;(null==t||t.viewBookmarkButton.classList.add("hidden"),null!=t&&t.presentationModeButton.classList.contains("hidden"))&&(null===(e=document.getElementById("viewBookmarkSeparator"))||void 0===e||e.classList.add("hidden"))},close:function(){var e=this;return o(k().m(function t(){var n,i,u,r,a,o,s,l,c,d,h,D,f;return k().w(function(t){for(;;)switch(t.p=t.n){case 0:if(e._unblockDocumentLoadEvent(),e._hideViewBookmark(),e.pdfLoadingTask){t.n=1;break}return t.a(2);case 1:if(!((null===(n=e.pdfDocument)||void 0===n?void 0:n.annotationStorage.size)>0&&e._annotationStorageModified)){t.n=5;break}return t.p=2,t.n=3,e.save();case 3:t.n=5;break;case 4:t.p=4,t.v;case 5:return(h=[]).push(e.pdfLoadingTask.destroy()),e.pdfLoadingTask=null,e.pdfDocument&&(e.pdfDocument=null,null===(D=e.pdfThumbnailViewer)||void 0===D||D.setDocument(null),e.pdfViewer.setDocument(null),e.pdfLinkService.setDocument(null),null===(f=e.pdfDocumentProperties)||void 0===f||f.setDocument(null)),e.pdfLinkService.externalLinkEnabled=!0,e.store=null,e.isInitialViewSet=!1,e.url="",e.baseUrl="",e._downloadUrl="",e.documentInfo=null,e.metadata=null,e._contentDispositionFilename=null,e._contentLength=null,e._saveInProgress=!1,e._hasAnnotationEditors=!1,h.push(e.pdfScriptingManager.destroyPromise,e.passwordPrompt.close()),e.setTitle(),null===(i=e.pdfSidebar)||void 0===i||i.reset(),null===(u=e.pdfOutlineViewer)||void 0===u||u.reset(),null===(r=e.pdfAttachmentViewer)||void 0===r||r.reset(),null===(a=e.pdfLayerViewer)||void 0===a||a.reset(),null===(o=e.pdfHistory)||void 0===o||o.reset(),null===(s=e.findBar)||void 0===s||s.reset(),null===(l=e.toolbar)||void 0===l||l.reset(),null===(c=e.secondaryToolbar)||void 0===c||c.reset(),null===(d=e._PDFBug)||void 0===d||d.cleanup(),t.n=6,Promise.all(h);case 6:return t.a(2)}},t,null,[[2,4]])}))()},open:function(e){var t=this;return o(k().m(function n(){var i,u,r;return k().w(function(n){for(;;)switch(n.n){case 0:if(!t.pdfLoadingTask){n.n=1;break}return n.n=1,t.close();case 1:return i=rn.getAll(Qt),Object.assign(Ce,i),e.url&&t.setTitleUsingUrl(e.originalUrl||e.url,e.url),u=rn.getAll(Jt),r=ve(B(B({},u),e)),t.pdfLoadingTask=r,r.onPassword=function(e,n){t.isViewerEmbedded&&t._unblockDocumentLoadEvent(),t.pdfLinkService.externalLinkEnabled=!1,t.passwordPrompt.setUpdateCallback(e,n),t.passwordPrompt.open()},r.onProgress=function(e){var n=e.loaded,i=e.total;t.progress(n/i)},n.a(2,r.promise.then(function(e){t.load(e)},function(e){if(r===t.pdfLoadingTask){var n="pdfjs-loading-error";return e instanceof Ae?n="pdfjs-invalid-file-error":e instanceof Ne&&(n=e.missing?"pdfjs-missing-file-error":"pdfjs-unexpected-response-error"),t._documentError(n,{message:e.message}).then(function(){throw e})}}))}},n)}))()},download:function(){var e=this;return o(k().m(function t(){var n;return k().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.pdfDocument?e.pdfDocument.getData():e.pdfLoadingTask.getData();case 1:n=t.v,t.n=3;break;case 2:t.p=2,t.v;case 3:e.downloadManager.download(n,e._downloadUrl,e._docFilename);case 4:return t.a(2)}},t,null,[[0,2]])}))()},save:function(){var e=this;return o(k().m(function t(){var n,i,u;return k().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!e._saveInProgress){t.n=1;break}return t.a(2);case 1:return e._saveInProgress=!0,t.n=2,e.pdfScriptingManager.dispatchWillSave();case 2:return t.p=2,t.n=3,e.pdfDocument.saveDocument();case 3:n=t.v,e.downloadManager.download(n,e._downloadUrl,e._docFilename),t.n=5;break;case 4:return t.p=4,u=t.v,console.error("Error when saving the document:",u),t.n=5,e.download();case 5:return t.p=5,t.n=6,e.pdfScriptingManager.dispatchDidSave();case 6:return e._saveInProgress=!1,t.f(5);case 7:e._hasAnnotationEditors&&e.externalServices.reportTelemetry({type:"editing",data:{type:"save",stats:null===(i=e.pdfDocument)||void 0===i?void 0:i.annotationStorage.editorStats}});case 8:return t.a(2)}},t,null,[[2,4,5,7]])}))()},downloadOrSave:function(){var e=this;return o(k().m(function t(){var n,i;return k().w(function(t){for(;;)switch(t.n){case 0:return(i=e.appConfig.appContainer.classList).add("wait"),t.n=1,(null===(n=e.pdfDocument)||void 0===n?void 0:n.annotationStorage.size)>0?e.save():e.download();case 1:i.remove("wait");case 2:return t.a(2)}},t)}))()},_documentError:function(e){var t=arguments,n=this;return o(k().m(function i(){var u,r,a;return k().w(function(i){for(;;)switch(i.n){case 0:return r=t.length>1&&void 0!==t[1]?t[1]:null,n._unblockDocumentLoadEvent(),i.n=1,n._otherError(e||"pdfjs-loading-error",r);case 1:a=i.v,n.eventBus.dispatch("documenterror",{source:n,message:a,reason:null!==(u=null==r?void 0:r.message)&&void 0!==u?u:null});case 2:return i.a(2)}},i)}))()},_otherError:function(e){var t=arguments,n=this;return o(k().m(function i(){var u,r,a;return k().w(function(i){for(;;)switch(i.n){case 0:return u=t.length>1&&void 0!==t[1]?t[1]:null,i.n=1,n.l10n.get(e);case 1:return r=i.v,a=["PDF.js v".concat(Ze||"?"," (build: ").concat(le||"?",")")],u&&(a.push("Message: ".concat(u.message)),u.stack?a.push("Stack: ".concat(u.stack)):(u.filename&&a.push("File: ".concat(u.filename)),u.lineNumber&&a.push("Line: ".concat(u.lineNumber)))),console.error("".concat(r,"\n\n").concat(a.join("\n"))),i.a(2,r)}},i)}))()},progress:function(e){var t,n,i=Math.round(100*e);!this.loadingBar||i<=this.loadingBar.percent||(this.loadingBar.percent=i,(null!==(t=null===(n=this.pdfDocument)||void 0===n?void 0:n.loadingParams.disableAutoFetch)&&void 0!==t?t:rn.get("disableAutoFetch"))&&this.loadingBar.setDisableAutoFetch())},load:function(e){var t,n,i,u,r=this;this.pdfDocument=e,e.getDownloadInfo().then(function(e){var t,n=e.length;r._contentLength=n,null===(t=r.loadingBar)||void 0===t||t.hide(),d.then(function(){r.eventBus.dispatch("documentloaded",{source:r})})});var a=e.getPageLayout().catch(function(){}),s=e.getPageMode().catch(function(){}),l=e.getOpenAction().catch(function(){});null===(t=this.toolbar)||void 0===t||t.setPagesCount(e.numPages,!1),null===(n=this.secondaryToolbar)||void 0===n||n.setPagesCount(e.numPages),this.pdfLinkService.setDocument(e),null===(i=this.pdfDocumentProperties)||void 0===i||i.setDocument(e);var c=this.pdfViewer;c.setDocument(e);var d=c.firstPagePromise,h=c.onePageRendered,D=c.pagesPromise;null===(u=this.pdfThumbnailViewer)||void 0===u||u.setDocument(e);var f=(this.store=new gp(e.fingerprints[0])).getMultiple({page:null,zoom:$e,scrollLeft:"0",scrollTop:"0",rotation:null,sidebarView:et,scrollMode:lt.UNKNOWN,spreadMode:ct.UNKNOWN}).catch(function(){});d.then(function(t){var n;null===(n=r.loadingBar)||void 0===n||n.setWidth(r.appConfig.viewerContainer),r._initializeAnnotationStorageCallbacks(e),Promise.all([xt,f,a,s,l]).then(function(){var t=o(k().m(function t(n){var i,u,a,o,s,l,d,h,f,p,v,g,F,m;return k().w(function(t){for(;;)switch(t.n){case 0:return(i=T(n,5))[0],u=i[1],a=i[2],o=i[3],s=i[4],l=rn.get("viewOnLoad"),r._initializePdfHistory({fingerprint:e.fingerprints[0],viewOnLoad:l,initialDest:null==s?void 0:s.dest}),d=r.initialBookmark,h=rn.get("defaultZoomValue"),f=h?"zoom=".concat(h):null,p=null,v=rn.get("sidebarViewOnLoad"),g=rn.get("scrollModeOnLoad"),F=rn.get("spreadModeOnLoad"),null!=u&&u.page&&l!==mp&&(f="page=".concat(u.page,"&zoom=").concat(h||u.zoom,",")+"".concat(u.scrollLeft,",").concat(u.scrollTop),p=parseInt(u.rotation,10),v===et&&(v=0|u.sidebarView),g===lt.UNKNOWN&&(g=0|u.scrollMode),F===ct.UNKNOWN&&(F=0|u.spreadMode)),o&&v===et&&(v=Rt(o)),a&&g===lt.UNKNOWN&&F===ct.UNKNOWN&&(m=jt(a),F=m.spreadMode),r.setInitialView(f,{rotation:p,sidebarView:v,scrollMode:g,spreadMode:F}),r.eventBus.dispatch("documentinit",{source:r}),r.isViewerEmbedded||c.focus(),t.n=1,Promise.race([D,new Promise(function(e){setTimeout(e,1e4)})]);case 1:if(d||f){t.n=2;break}return t.a(2);case 2:if(!c.hasEqualPageSizes){t.n=3;break}return t.a(2);case 3:r.initialBookmark=d,c.currentScaleValue=c.currentScaleValue,r.setInitialView(f);case 4:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()).catch(function(){r.setInitialView()}).then(function(){c.update()})}),D.then(function(){r._unblockDocumentLoadEvent(),r._initializeAutoPrint(e,l)},function(e){r._documentError("pdfjs-loading-error",{message:e.message})}),h.then(function(t){r.externalServices.reportTelemetry({type:"pageInfo",timestamp:t.timestamp}),r.pdfOutlineViewer&&e.getOutline().then(function(t){e===r.pdfDocument&&r.pdfOutlineViewer.render({outline:t,pdfDocument:e})}),r.pdfAttachmentViewer&&e.getAttachments().then(function(t){e===r.pdfDocument&&r.pdfAttachmentViewer.render({attachments:t})}),r.pdfLayerViewer&&c.optionalContentConfigPromise.then(function(t){e===r.pdfDocument&&r.pdfLayerViewer.render({optionalContentConfig:t,pdfDocument:e})})}),this._initializePageLabels(e),this._initializeMetadata(e)},_scriptingDocProperties:function(e){var t=this;return o(k().m(function n(){var i,u;return k().w(function(n){for(;;)switch(n.n){case 0:if(t.documentInfo){n.n=2;break}return n.n=1,new Promise(function(e){t.eventBus._on("metadataloaded",e,{once:!0})});case 1:if(e===t.pdfDocument){n.n=2;break}return n.a(2,null);case 2:if(t._contentLength){n.n=4;break}return n.n=3,new Promise(function(e){t.eventBus._on("documentloaded",e,{once:!0})});case 3:if(e===t.pdfDocument){n.n=4;break}return n.a(2,null);case 4:return n.a(2,B(B({},t.documentInfo),{},{baseURL:t.baseUrl,filesize:t._contentLength,filename:t._docFilename,metadata:null===(i=t.metadata)||void 0===i?void 0:i.getRaw(),authors:null===(u=t.metadata)||void 0===u?void 0:u.get("dc:creator"),numPages:t.pagesCount,URL:t.url}))}},n)}))()},_initializeAutoPrint:function(e,t){var n=this;return o(k().m(function i(){var u,r,a,o,s,l,c,d,h;return k().w(function(i){for(;;)switch(i.n){case 0:return i.n=1,Promise.all([t,n.pdfViewer.enableScripting?null:e.getJSActions()]);case 1:if(u=i.v,r=T(u,2),a=r[0],o=r[1],e===n.pdfDocument){i.n=2;break}return i.a(2);case 2:if(s="Print"===(null==a?void 0:a.action),!o){i.n=7;break}console.warn("Warning: JavaScript support is not enabled"),c=x(o);case 3:if((d=c()).done){i.n=7;break}if(l=d.value,!s){i.n=4;break}return i.a(3,7);case 4:h=l,i.n="WillClose"===h||"WillSave"===h||"DidSave"===h||"WillPrint"===h||"DidPrint"===h?5:6;break;case 5:return i.a(3,3);case 6:s=o[l].some(function(e){return Dt.test(e)}),i.n=3;break;case 7:s&&n.triggerPrinting();case 8:return i.a(2)}},i)}))()},_initializeMetadata:function(e){var t=this;return o(k().m(function n(){var i,u,r,a,o,s,l,c;return k().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,e.getMetadata();case 1:if(r=n.v,a=r.info,o=r.metadata,s=r.contentDispositionFilename,l=r.contentLength,e===t.pdfDocument){n.n=2;break}return n.a(2);case 2:t.documentInfo=a,t.metadata=o,null!==(i=t._contentDispositionFilename)&&void 0!==i||(t._contentDispositionFilename=s),null!==(u=t._contentLength)&&void 0!==u||(t._contentLength=l),console.log("PDF ".concat(e.fingerprints[0]," [").concat(a.PDFFormatVersion," ")+"".concat(((null==o?void 0:o.get("pdf:producer"))||a.Producer||"-").trim()," / ")+"".concat(((null==o?void 0:o.get("xmp:creatortool"))||a.Creator||"-").trim())+"] (PDF.js: ".concat(Ze||"?"," [").concat(le||"?","])")),(c=t._docTitle)?t.setTitle("".concat(c," - ").concat(t._contentDispositionFilename||t._title)):t._contentDispositionFilename&&t.setTitle(t._contentDispositionFilename),!a.IsXFAPresent||a.IsAcroFormPresent||e.isPureXfa?!a.IsAcroFormPresent&&!a.IsXFAPresent||t.pdfViewer.renderForms||console.warn("Warning: Interactive form support is not enabled"):e.loadingParams.enableXfa?console.warn("Warning: XFA Foreground documents are not supported"):console.warn("Warning: XFA support is not enabled"),a.IsSignaturesPresent&&console.warn("Warning: Digital signatures validation is not supported"),t.eventBus.dispatch("metadataloaded",{source:t});case 3:return n.a(2)}},n)}))()},_initializePageLabels:function(e){var t=this;return o(k().m(function n(){var i,u,r,a,o,s,l,c,d;return k().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,e.getPageLabels();case 1:if(i=n.v,e===t.pdfDocument){n.n=2;break}return n.a(2);case 2:if(i&&!rn.get("disablePageLabels")){n.n=3;break}return n.a(2);case 3:u=i.length,r=0,a=0,o=0;case 4:if(!(o<u)){n.n=8;break}if((s=i[o])!==(o+1).toString()){n.n=5;break}r++,n.n=7;break;case 5:if(""!==s){n.n=6;break}a++,n.n=7;break;case 6:return n.a(3,8);case 7:o++,n.n=4;break;case 8:if(!(r>=u||a>=u)){n.n=9;break}return n.a(2);case 9:l=t.pdfViewer,c=t.pdfThumbnailViewer,d=t.toolbar,l.setPageLabels(i),null==c||c.setPageLabels(i),null==d||d.setPagesCount(u,!0),null==d||d.setPageNumber(l.currentPageNumber,l.currentPageLabel);case 10:return n.a(2)}},n)}))()},_initializePdfHistory:function(e){var t=e.fingerprint,n=e.viewOnLoad,i=e.initialDest,u=void 0===i?null:i;this.pdfHistory&&(this.pdfHistory.initialize({fingerprint:t,resetHistory:n===mp,updateUrl:rn.get("historyUpdateUrl")}),this.pdfHistory.initialBookmark&&(this.initialBookmark=this.pdfHistory.initialBookmark,this.initialRotation=this.pdfHistory.initialRotation),u&&!this.initialBookmark&&n===Fp&&(this.initialBookmark=JSON.stringify(u),this.pdfHistory.push({explicitDest:u,pageNumber:null})))},_initializeAnnotationStorageCallbacks:function(e){var t=this;if(e===this.pdfDocument){var n=e.annotationStorage;n.onSetModified=function(){window.addEventListener("beforeunload",$p),t._annotationStorageModified=!0},n.onResetModified=function(){window.removeEventListener("beforeunload",$p),delete t._annotationStorageModified},n.onAnnotationEditor=function(e){t._hasAnnotationEditors=!!e,t.setTitle()}}},setInitialView:function(e){var t,n,i,u,r,a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=o.rotation,l=o.sidebarView,c=o.scrollMode,d=o.spreadMode,h=function(e){yt(e)&&(a.pdfViewer.pagesRotation=e)};this.isInitialViewSet=!0,null===(t=this.pdfSidebar)||void 0===t||t.setInitialView(l),r=d,Bt(u=c)&&(a.pdfViewer.scrollMode=u),kt(r)&&(a.pdfViewer.spreadMode=r),this.initialBookmark?(h(this.initialRotation),delete this.initialRotation,this.pdfLinkService.setHash(this.initialBookmark),this.initialBookmark=null):e&&(h(s),this.pdfLinkService.setHash(e)),null===(n=this.toolbar)||void 0===n||n.setPageNumber(this.pdfViewer.currentPageNumber,this.pdfViewer.currentPageLabel),null===(i=this.secondaryToolbar)||void 0===i||i.setPageNumber(this.pdfViewer.currentPageNumber),this.pdfViewer.currentScaleValue||(this.pdfViewer.currentScaleValue=$e)},_cleanup:function(){var e;this.pdfDocument&&(this.pdfViewer.cleanup(),null===(e=this.pdfThumbnailViewer)||void 0===e||e.cleanup(),this.pdfDocument.cleanup(rn.get("fontExtraProperties")))},forceRendering:function(){var e;this.pdfRenderingQueue.printing=!!this.printService,this.pdfRenderingQueue.isThumbnailViewEnabled=(null===(e=this.pdfSidebar)||void 0===e?void 0:e.visibleView)===nt,this.pdfRenderingQueue.renderHighestPriority()},beforePrint:function(){var e,t=this;(this._printAnnotationStoragePromise=this.pdfScriptingManager.dispatchWillPrint().catch(function(){}).then(function(){var e;return null===(e=t.pdfDocument)||void 0===e?void 0:e.annotationStorage.print}),this.printService)||(this.supportsPrinting?this.pdfViewer.pageViewsReady?(this.printService=vl.createPrintService({pdfDocument:this.pdfDocument,pagesOverview:this.pdfViewer.getPagesOverview(),printContainer:this.appConfig.printContainer,printResolution:rn.get("printResolution"),printAnnotationStoragePromise:this._printAnnotationStoragePromise}),this.forceRendering(),this.setTitle(),this.printService.layout(),this._hasAnnotationEditors&&this.externalServices.reportTelemetry({type:"editing",data:{type:"print",stats:null===(e=this.pdfDocument)||void 0===e?void 0:e.annotationStorage.editorStats}})):this.l10n.get("pdfjs-printing-not-ready").then(function(e){window.alert(e)}):this._otherError("pdfjs-printing-not-supported"))},afterPrint:function(){var e,t=this;(this._printAnnotationStoragePromise&&(this._printAnnotationStoragePromise.then(function(){t.pdfScriptingManager.dispatchDidPrint()}),this._printAnnotationStoragePromise=null),this.printService)&&(this.printService.destroy(),this.printService=null,null===(e=this.pdfDocument)||void 0===e||e.annotationStorage.resetModified());this.forceRendering(),this.setTitle()},rotatePages:function(e){this.pdfViewer.pagesRotation+=e},requestPresentationMode:function(){var e;null===(e=this.pdfPresentationMode)||void 0===e||e.request()},triggerPrinting:function(){this.supportsPrinting&&window.print()},bindEvents:function(){var e=this;if(!this._eventBusAbortController){var t={signal:(this._eventBusAbortController=new AbortController).signal},n=this.eventBus;this.externalServices;var i=this.pdfDocumentProperties,u=this.pdfViewer;this.preferences,n._on("resize",Ip.bind(this),t),n._on("hashchange",Tp.bind(this),t),n._on("beforeprint",this.beforePrint.bind(this),t),n._on("afterprint",this.afterPrint.bind(this),t),n._on("pagerender",yp.bind(this),t),n._on("pagerendered",Bp.bind(this),t),n._on("updateviewarea",Sp.bind(this),t),n._on("pagechanging",Vp.bind(this),t),n._on("scalechanging",Rp.bind(this),t),n._on("rotationchanging",Wp.bind(this),t),n._on("sidebarviewchanged",xp.bind(this),t),n._on("pagemode",kp.bind(this),t),n._on("namedaction",_p.bind(this),t),n._on("presentationmodechanged",function(e){return u.presentationModeState=e.state},t),n._on("presentationmode",this.requestPresentationMode.bind(this),t),n._on("switchannotationeditormode",function(e){return u.annotationEditorMode=e},t),n._on("print",this.triggerPrinting.bind(this),t),n._on("download",this.downloadOrSave.bind(this),t),n._on("firstpage",function(){return e.page=1},t),n._on("lastpage",function(){return e.page=e.pagesCount},t),n._on("nextpage",function(){return u.nextPage()},t),n._on("previouspage",function(){return u.previousPage()},t),n._on("zoomin",this.zoomIn.bind(this),t),n._on("zoomout",this.zoomOut.bind(this),t),n._on("zoomreset",this.zoomReset.bind(this),t),n._on("pagenumberchanged",Mp.bind(this),t),n._on("scalechanged",function(e){return u.currentScaleValue=e.value},t),n._on("rotatecw",this.rotatePages.bind(this,90),t),n._on("rotateccw",this.rotatePages.bind(this,-90),t),n._on("optionalcontentconfig",function(e){return u.optionalContentConfigPromise=e.promise},t),n._on("switchscrollmode",function(e){return u.scrollMode=e.mode},t),n._on("scrollmodechanged",Pp.bind(this,"scrollMode"),t),n._on("switchspreadmode",function(e){return u.spreadMode=e.mode},t),n._on("spreadmodechanged",Pp.bind(this,"spreadMode"),t),n._on("imagealttextsettings",Lp.bind(this),t),n._on("documentproperties",function(){return null==i?void 0:i.open()},t),n._on("findfromurlhash",Np.bind(this),t),n._on("updatefindmatchescount",Op.bind(this),t),n._on("updatefindcontrolstate",jp.bind(this),t),n._on("fileinputchange",wp.bind(this),t),n._on("openfile",bp.bind(this),t)}},bindWindowEvents:function(){var e=this;if(!this._windowAbortController){this._windowAbortController=new AbortController;var t=this.eventBus,n=this.appConfig.mainContainer,i=this.pdfViewer,u=this._windowAbortController.signal;if(this._touchManager=new Ue({container:window,isPinchingDisabled:function(){return i.isInPresentationMode},isPinchingStopped:function(){var t;return null===(t=e.overlayManager)||void 0===t?void 0:t.active},onPinching:this.touchPinchCallback.bind(this),onPinchEnd:this.touchPinchEndCallback.bind(this),signal:u}),function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)&&i.refresh(),window.matchMedia("(resolution: ".concat(xe.pixelRatio,"dppx)")).addEventListener("change",e,{once:!0,signal:u})}(),window.addEventListener("wheel",zp.bind(this),{passive:!1,signal:u}),window.addEventListener("click",Gp.bind(this),{signal:u}),window.addEventListener("keydown",Xp.bind(this),{signal:u}),window.addEventListener("keyup",Zp.bind(this),{signal:u}),window.addEventListener("resize",function(){return t.dispatch("resize",{source:window})},{signal:u}),window.addEventListener("hashchange",function(){t.dispatch("hashchange",{source:window,hash:document.location.hash.substring(1)})},{signal:u}),window.addEventListener("beforeprint",function(){return t.dispatch("beforeprint",{source:window})},{signal:u}),window.addEventListener("afterprint",function(){return t.dispatch("afterprint",{source:window})},{signal:u}),window.addEventListener("updatefromsandbox",function(e){t.dispatch("updatefromsandbox",{source:window,detail:e.detail})},{signal:u}),"onscrollend"in document.documentElement){this._lastScrollTop=n.scrollTop,this._lastScrollLeft=n.scrollLeft;var r=function(){e._lastScrollTop=n.scrollTop,e._lastScrollLeft=n.scrollLeft,e._isScrolling=!1,n.addEventListener("scroll",a,{passive:!0,signal:u}),n.removeEventListener("scrollend",r),n.removeEventListener("blur",r)},a=function(){e._isCtrlKeyDown||e._lastScrollTop===n.scrollTop&&e._lastScrollLeft===n.scrollLeft||(n.removeEventListener("scroll",a),e._isScrolling=!0,n.addEventListener("scrollend",r,{signal:u}),n.addEventListener("blur",r,{signal:u}))};n.addEventListener("scroll",a,{passive:!0,signal:u})}}},unbindEvents:function(){var e;null===(e=this._eventBusAbortController)||void 0===e||e.abort(),this._eventBusAbortController=null},unbindWindowEvents:function(){var e;null===(e=this._windowAbortController)||void 0===e||e.abort(),this._windowAbortController=null,this._touchManager=null},testingClose:function(){var e=this;return o(k().m(function t(){var n,i,u;return k().w(function(t){for(;;)switch(t.n){case 0:return e.unbindEvents(),e.unbindWindowEvents(),null===(n=e._globalAbortController)||void 0===n||n.abort(),e._globalAbortController=null,null===(i=e.findBar)||void 0===i||i.close(),t.n=1,Promise.all([null===(u=e.l10n)||void 0===u?void 0:u.destroy(),e.close()]);case 1:return t.a(2)}},t)}))()},_accumulateTicks:function(e,t){(this[t]>0&&e<0||this[t]<0&&e>0)&&(this[t]=0),this[t]+=e;var n=Math.trunc(this[t]);return this[t]-=n,n},_accumulateFactor:function(e,t,n){if(1===t)return 1;(this[n]>1&&t<1||this[n]<1&&t>1)&&(this[n]=1);var i=Math.floor(e*t*this[n]*100)/(100*e);return this[n]=t/i,i},_unblockDocumentLoadEvent:function(){var e,t;null===(e=(t=document).blockUnblockOnload)||void 0===e||e.call(t,!1),this._unblockDocumentLoadEvent=function(){}},get scriptingReady(){return this.pdfScriptingManager.ready}};vl.initGlobals(Ep);var Cp=new Set(["null","http://mozilla.github.io","https://mozilla.github.io"]),Ap=function(e){var t,n;if(e){var i=(null===(t=URL.parse(window.location))||void 0===t?void 0:t.origin)||"null";if(!Cp.has(i))if((null===(n=URL.parse(e,window.location))||void 0===n?void 0:n.origin)!==i){var u=new Error("file origin does not match viewer's");throw Ep._documentError("pdfjs-loading-error",{message:u.message}),u}}},wp=function(e){var t;if(null===(t=this.pdfViewer)||void 0===t||!t.isInPresentationMode){var n=e.fileInput.files[0];this.open({url:URL.createObjectURL(n),originalUrl:n.name})}},bp=function(e){var t;null===(t=this._openFileInput)||void 0===t||t.click()};function yp(e){var t;e.pageNumber===this.page&&(null===(t=this.toolbar)||void 0===t||t.updateLoadingIndicatorState(!0))}function Bp(e){var t,n,i=e.pageNumber,u=e.isDetailView,r=e.error;i===this.page&&(null===(n=this.toolbar)||void 0===n||n.updateLoadingIndicatorState(!1));if(!u&&(null===(t=this.pdfSidebar)||void 0===t?void 0:t.visibleView)===nt){var a,o=this.pdfViewer.getPageView(i-1),s=null===(a=this.pdfThumbnailViewer)||void 0===a?void 0:a.getThumbnail(i-1);o&&(null==s||s.setImage(o))}r&&this._otherError("pdfjs-rendering-error",r)}function kp(e){var t,n,i=e.mode;switch(i){case"thumbs":n=nt;break;case"bookmarks":case"outline":n=it;break;case"attachments":n=ut;break;case"layers":n=rt;break;case"none":n=tt;break;default:return void console.error('Invalid "pagemode" hash parameter: '+i)}null===(t=this.pdfSidebar)||void 0===t||t.switchView(n,!0)}function _p(e){var t;switch(e.action){case"GoToPage":null===(t=this.appConfig.toolbar)||void 0===t||t.pageNumber.select();break;case"Find":var n;if(!this.supportsIntegratedFind)null===(n=this.findBar)||void 0===n||n.toggle();break;case"Print":this.triggerPrinting();break;case"SaveAs":this.downloadOrSave()}}function xp(e){var t,n=e.view;(this.pdfRenderingQueue.isThumbnailViewEnabled=n===nt,this.isInitialViewSet)&&(null===(t=this.store)||void 0===t||t.set("sidebarView",n).catch(function(){}))}function Sp(e){var t,n=e.location;this.isInitialViewSet&&(null===(t=this.store)||void 0===t||t.setMultiple({page:n.pageNumber,zoom:n.scale,scrollLeft:n.left,scrollTop:n.top,rotation:n.rotation}).catch(function(){}));this.appConfig.secondaryToolbar&&(this.appConfig.secondaryToolbar.viewBookmarkButton.href=this.pdfLinkService.getAnchorUrl(n.pdfOpenParams))}function Pp(e,t){var n;this.isInitialViewSet&&!this.pdfViewer.isInPresentationMode&&(null===(n=this.store)||void 0===n||n.set(e,t.mode).catch(function(){}))}function Ip(){var e=this.pdfDocument,t=this.pdfViewer;if((!this.pdfRenderingQueue.printing||!window.matchMedia("print").matches)&&e){var n=t.currentScaleValue;"auto"!==n&&"page-fit"!==n&&"page-width"!==n||(t.currentScaleValue=n),t.update()}}function Tp(e){var t,n=e.hash;n&&(this.isInitialViewSet?null!==(t=this.pdfHistory)&&void 0!==t&&t.popStateInProgress||this.pdfLinkService.setHash(n):this.initialBookmark=n)}function Mp(e){var t,n=this.pdfViewer;(""!==e.value&&this.pdfLinkService.goToPage(e.value),e.value!==n.currentPageNumber.toString()&&e.value!==n.currentPageLabel)&&(null===(t=this.toolbar)||void 0===t||t.setPageNumber(n.currentPageNumber,n.currentPageLabel))}function Lp(){var e;null===(e=this.imageAltTextSettings)||void 0===e||e.open({enableGuessAltText:rn.get("enableGuessAltText"),enableNewAltTextWhenAddingImage:rn.get("enableNewAltTextWhenAddingImage")})}function Np(e){this.eventBus.dispatch("find",{source:e.source,type:"",query:e.query,caseSensitive:!1,entireWord:!1,highlightAll:!0,findPrevious:!1,matchDiacritics:!0})}function Op(e){var t,n=e.matchesCount;this.supportsIntegratedFind?this.externalServices.updateFindMatchesCount(n):null===(t=this.findBar)||void 0===t||t.updateResultsCount(n)}function jp(e){var t,n=e.state,i=e.previous,u=e.entireWord,r=e.matchesCount,a=e.rawQuery;this.supportsIntegratedFind?this.externalServices.updateFindControlState({result:n,findPrevious:i,entireWord:u,matchesCount:r,rawQuery:a}):null===(t=this.findBar)||void 0===t||t.updateUIState(n,i,r)}function Rp(e){var t;null===(t=this.toolbar)||void 0===t||t.setPageScale(e.presetValue,e.scale),this.pdfViewer.update()}function Wp(e){this.pdfThumbnailViewer&&(this.pdfThumbnailViewer.pagesRotation=e.pagesRotation),this.forceRendering(),this.pdfViewer.currentPageNumber=e.pageNumber}function Vp(e){var t,n,i,u,r,a=e.pageNumber,o=e.pageLabel;(null===(t=this.toolbar)||void 0===t||t.setPageNumber(a,o),null===(n=this.secondaryToolbar)||void 0===n||n.setPageNumber(a),(null===(i=this.pdfSidebar)||void 0===i?void 0:i.visibleView)===nt)&&(null===(r=this.pdfThumbnailViewer)||void 0===r||r.scrollThumbnailIntoView(a));var s=this.pdfViewer.getPageView(a-1);null===(u=this.toolbar)||void 0===u||u.updateLoadingIndicatorState((null==s?void 0:s.renderingState)===Ke.RUNNING)}function zp(e){var t=this.pdfViewer,n=this.supportsMouseWheelZoomCtrlKey,i=this.supportsMouseWheelZoomMetaKey,u=this.supportsPinchToZoom;if(!t.isInPresentationMode){var r=e.deltaMode,a=Math.exp(-e.deltaY/100),o=e.ctrlKey&&!this._isCtrlKeyDown&&r===WheelEvent.DOM_DELTA_PIXEL&&0===e.deltaX&&(Math.abs(a-1)<.05||!1)&&0===e.deltaZ,s=[e.clientX,e.clientY];if(o||e.ctrlKey&&n||e.metaKey&&i){if(e.preventDefault(),this._isScrolling||"hidden"===document.visibilityState||this.overlayManager.active)return;if(o&&u)a=this._accumulateFactor(t.currentScale,a,"_wheelUnusedFactor"),this.updateZoom(null,a,s);else{var l=bt(e),c=0;if(r===WheelEvent.DOM_DELTA_LINE||r===WheelEvent.DOM_DELTA_PAGE)c=Math.abs(l)>=1?Math.sign(l):this._accumulateTicks(l,"_wheelUnusedTicks");else{c=this._accumulateTicks(l/30,"_wheelUnusedTicks")}this.updateZoom(c,null,s)}}}}function Up(e){var t,n=e.target;if(null!==(t=this.secondaryToolbar)&&void 0!==t&&t.isOpen){var i=this.appConfig,u=i.toolbar,r=i.secondaryToolbar;!this.pdfViewer.containsElement(n)&&(null==u||!u.container.contains(n)||null!=r&&r.toolbar.contains(n)||null!=r&&r.toggleButton.contains(n))||this.secondaryToolbar.close()}}function Hp(e){var t,n;null!==(t=this.editorUndoBar)&&void 0!==t&&t.isOpen&&null!==(n=this.appConfig.secondaryToolbar)&&void 0!==n&&n.toolbar.contains(e.target)&&this.editorUndoBar.hide()}function Gp(e){Up.call(this,e),Hp.call(this,e)}function Zp(e){"Control"===e.key&&(this._isCtrlKeyDown=!1)}function Xp(e){var t,n,i,u,r,a,o=this;if(this._isCtrlKeyDown="Control"===e.key,null!==(t=this.editorUndoBar)&&void 0!==t&&t.isOpen&&9!==e.keyCode&&16!==e.keyCode&&(13!==e.keyCode&&32!==e.keyCode||Ot()!==this.appConfig.editorUndoBar.undoButton)&&this.editorUndoBar.hide(),!this.overlayManager.active){var s=this.eventBus,l=this.pdfViewer,c=l.isInPresentationMode,d=!1,h=!1,D=(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0);if(1===D||8===D||5===D||12===D)switch(e.keyCode){case 70:var f;if(!this.supportsIntegratedFind&&!e.shiftKey)null===(f=this.findBar)||void 0===f||f.open(),d=!0;break;case 71:if(!this.supportsIntegratedFind){var p=this.findController.state;if(p){var v={source:window,type:"again",findPrevious:5===D||12===D};s.dispatch("find",B(B({},p),v))}d=!0}break;case 61:case 107:case 187:case 171:this.zoomIn(),d=!0;break;case 173:case 109:case 189:this.zoomOut(),d=!0;break;case 48:case 96:c||(setTimeout(function(){o.zoomReset()}),d=!1);break;case 38:(c||this.page>1)&&(this.page=1,d=!0,h=!0);break;case 40:(c||this.page<this.pagesCount)&&(this.page=this.pagesCount,d=!0,h=!0)}if(1===D||8===D)switch(e.keyCode){case 83:s.dispatch("download",{source:window}),d=!0;break;case 79:s.dispatch("openfile",{source:window}),d=!0}if(3===D||10===D)switch(e.keyCode){case 80:this.requestPresentationMode(),d=!0,this.externalServices.reportTelemetry({type:"buttons",data:{id:"presentationModeKeyboard"}});break;case 71:this.appConfig.toolbar&&(this.appConfig.toolbar.pageNumber.select(),d=!0)}if(d)return h&&!c&&l.focus(),void e.preventDefault();var g=Ot(),F=null==g?void 0:g.tagName.toUpperCase();if(!("INPUT"===F||"TEXTAREA"===F||"SELECT"===F||"BUTTON"===F&&(13===e.keyCode||32===e.keyCode)||null!=g&&g.isContentEditable)||27===e.keyCode){if(0===D){var m=0,E=!1;switch(e.keyCode){case 38:if(this.supportsCaretBrowsingMode){this.moveCaret(!0,!1),d=!0;break}case 33:l.isVerticalScrollbarEnabled&&(E=!0),m=-1;break;case 8:c||(E=!0),m=-1;break;case 37:if(this.supportsCaretBrowsingMode)return;l.isHorizontalScrollbarEnabled&&(E=!0);case 75:case 80:m=-1;break;case 27:null!==(n=this.secondaryToolbar)&&void 0!==n&&n.isOpen&&(this.secondaryToolbar.close(),d=!0),!this.supportsIntegratedFind&&null!==(i=this.findBar)&&void 0!==i&&i.opened&&(this.findBar.close(),d=!0);break;case 40:if(this.supportsCaretBrowsingMode){this.moveCaret(!1,!1),d=!0;break}case 34:l.isVerticalScrollbarEnabled&&(E=!0),m=1;break;case 13:case 32:c||(E=!0),m=1;break;case 39:if(this.supportsCaretBrowsingMode)return;l.isHorizontalScrollbarEnabled&&(E=!0);case 74:case 78:m=1;break;case 36:(c||this.page>1)&&(this.page=1,d=!0,h=!0);break;case 35:(c||this.page<this.pagesCount)&&(this.page=this.pagesCount,d=!0,h=!0);break;case 83:null===(u=this.pdfCursorTools)||void 0===u||u.switchTool(dt);break;case 72:null===(r=this.pdfCursorTools)||void 0===r||r.switchTool(ht);break;case 82:this.rotatePages(90);break;case 115:null===(a=this.pdfSidebar)||void 0===a||a.toggle()}0===m||E&&"page-fit"!==l.currentScaleValue||(m>0?l.nextPage():l.previousPage(),d=!0)}if(4===D)switch(e.keyCode){case 13:case 32:if(!c&&"page-fit"!==l.currentScaleValue)break;l.previousPage(),d=!0;break;case 38:this.moveCaret(!0,!0),d=!0;break;case 40:this.moveCaret(!1,!0),d=!0;break;case 82:this.rotatePages(-90)}d||c||(e.keyCode>=33&&e.keyCode<=40||32===e.keyCode&&"BUTTON"!==F)&&(h=!0),h&&!l.containsElement(g)&&l.focus(),d&&e.preventDefault()}}}function $p(e){return e.preventDefault(),e.returnValue="",!1}var Kp={LinkTarget:on,RenderingStates:Ke,ScrollMode:lt,SpreadMode:ct};function qp(){var e={appContainer:document.body,principalContainer:document.getElementById("mainContainer"),mainContainer:document.getElementById("viewerContainer"),viewerContainer:document.getElementById("viewer"),toolbar:{container:document.getElementById("toolbarContainer"),numPages:document.getElementById("numPages"),pageNumber:document.getElementById("pageNumber"),scaleSelect:document.getElementById("scaleSelect"),customScaleOption:document.getElementById("customScaleOption"),previous:document.getElementById("previous"),next:document.getElementById("next"),zoomIn:document.getElementById("zoomInButton"),zoomOut:document.getElementById("zoomOutButton"),print:document.getElementById("printButton"),editorFreeTextButton:document.getElementById("editorFreeTextButton"),editorFreeTextParamsToolbar:document.getElementById("editorFreeTextParamsToolbar"),editorHighlightButton:document.getElementById("editorHighlightButton"),editorHighlightParamsToolbar:document.getElementById("editorHighlightParamsToolbar"),editorHighlightColorPicker:document.getElementById("editorHighlightColorPicker"),editorInkButton:document.getElementById("editorInkButton"),editorInkParamsToolbar:document.getElementById("editorInkParamsToolbar"),editorStampButton:document.getElementById("editorStampButton"),editorStampParamsToolbar:document.getElementById("editorStampParamsToolbar"),editorSignatureButton:document.getElementById("editorSignatureButton"),editorSignatureParamsToolbar:document.getElementById("editorSignatureParamsToolbar"),download:document.getElementById("downloadButton")},secondaryToolbar:{toolbar:document.getElementById("secondaryToolbar"),toggleButton:document.getElementById("secondaryToolbarToggleButton"),presentationModeButton:document.getElementById("presentationMode"),openFileButton:document.getElementById("secondaryOpenFile"),printButton:document.getElementById("secondaryPrint"),downloadButton:document.getElementById("secondaryDownload"),viewBookmarkButton:document.getElementById("viewBookmark"),firstPageButton:document.getElementById("firstPage"),lastPageButton:document.getElementById("lastPage"),pageRotateCwButton:document.getElementById("pageRotateCw"),pageRotateCcwButton:document.getElementById("pageRotateCcw"),cursorSelectToolButton:document.getElementById("cursorSelectTool"),cursorHandToolButton:document.getElementById("cursorHandTool"),scrollPageButton:document.getElementById("scrollPage"),scrollVerticalButton:document.getElementById("scrollVertical"),scrollHorizontalButton:document.getElementById("scrollHorizontal"),scrollWrappedButton:document.getElementById("scrollWrapped"),spreadNoneButton:document.getElementById("spreadNone"),spreadOddButton:document.getElementById("spreadOdd"),spreadEvenButton:document.getElementById("spreadEven"),imageAltTextSettingsButton:document.getElementById("imageAltTextSettings"),imageAltTextSettingsSeparator:document.getElementById("imageAltTextSettingsSeparator"),documentPropertiesButton:document.getElementById("documentProperties")},sidebar:{outerContainer:document.getElementById("outerContainer"),sidebarContainer:document.getElementById("sidebarContainer"),toggleButton:document.getElementById("sidebarToggleButton"),resizer:document.getElementById("sidebarResizer"),thumbnailButton:document.getElementById("viewThumbnail"),outlineButton:document.getElementById("viewOutline"),attachmentsButton:document.getElementById("viewAttachments"),layersButton:document.getElementById("viewLayers"),thumbnailView:document.getElementById("thumbnailView"),outlineView:document.getElementById("outlineView"),attachmentsView:document.getElementById("attachmentsView"),layersView:document.getElementById("layersView"),currentOutlineItemButton:document.getElementById("currentOutlineItem")},findBar:{bar:document.getElementById("findbar"),toggleButton:document.getElementById("viewFindButton"),findField:document.getElementById("findInput"),highlightAllCheckbox:document.getElementById("findHighlightAll"),caseSensitiveCheckbox:document.getElementById("findMatchCase"),matchDiacriticsCheckbox:document.getElementById("findMatchDiacritics"),entireWordCheckbox:document.getElementById("findEntireWord"),findMsg:document.getElementById("findMsg"),findResultsCount:document.getElementById("findResultsCount"),findPreviousButton:document.getElementById("findPreviousButton"),findNextButton:document.getElementById("findNextButton")},passwordOverlay:{dialog:document.getElementById("passwordDialog"),label:document.getElementById("passwordText"),input:document.getElementById("password"),submitButton:document.getElementById("passwordSubmit"),cancelButton:document.getElementById("passwordCancel")},documentProperties:{dialog:document.getElementById("documentPropertiesDialog"),closeButton:document.getElementById("documentPropertiesClose"),fields:{fileName:document.getElementById("fileNameField"),fileSize:document.getElementById("fileSizeField"),title:document.getElementById("titleField"),author:document.getElementById("authorField"),subject:document.getElementById("subjectField"),keywords:document.getElementById("keywordsField"),creationDate:document.getElementById("creationDateField"),modificationDate:document.getElementById("modificationDateField"),creator:document.getElementById("creatorField"),producer:document.getElementById("producerField"),version:document.getElementById("versionField"),pageCount:document.getElementById("pageCountField"),pageSize:document.getElementById("pageSizeField"),linearized:document.getElementById("linearizedField")}},altTextDialog:{dialog:document.getElementById("altTextDialog"),optionDescription:document.getElementById("descriptionButton"),optionDecorative:document.getElementById("decorativeButton"),textarea:document.getElementById("descriptionTextarea"),cancelButton:document.getElementById("altTextCancel"),saveButton:document.getElementById("altTextSave")},newAltTextDialog:{dialog:document.getElementById("newAltTextDialog"),title:document.getElementById("newAltTextTitle"),descriptionContainer:document.getElementById("newAltTextDescriptionContainer"),textarea:document.getElementById("newAltTextDescriptionTextarea"),disclaimer:document.getElementById("newAltTextDisclaimer"),learnMore:document.getElementById("newAltTextLearnMore"),imagePreview:document.getElementById("newAltTextImagePreview"),createAutomatically:document.getElementById("newAltTextCreateAutomatically"),createAutomaticallyButton:document.getElementById("newAltTextCreateAutomaticallyButton"),downloadModel:document.getElementById("newAltTextDownloadModel"),downloadModelDescription:document.getElementById("newAltTextDownloadModelDescription"),error:document.getElementById("newAltTextError"),errorCloseButton:document.getElementById("newAltTextCloseButton"),cancelButton:document.getElementById("newAltTextCancel"),notNowButton:document.getElementById("newAltTextNotNow"),saveButton:document.getElementById("newAltTextSave")},altTextSettingsDialog:{dialog:document.getElementById("altTextSettingsDialog"),createModelButton:document.getElementById("createModelButton"),aiModelSettings:document.getElementById("aiModelSettings"),learnMore:document.getElementById("altTextSettingsLearnMore"),deleteModelButton:document.getElementById("deleteModelButton"),downloadModelButton:document.getElementById("downloadModelButton"),showAltTextDialogButton:document.getElementById("showAltTextDialogButton"),altTextSettingsCloseButton:document.getElementById("altTextSettingsCloseButton"),closeButton:document.getElementById("altTextSettingsCloseButton")},addSignatureDialog:{dialog:document.getElementById("addSignatureDialog"),panels:document.getElementById("addSignatureActionContainer"),typeButton:document.getElementById("addSignatureTypeButton"),typeInput:document.getElementById("addSignatureTypeInput"),drawButton:document.getElementById("addSignatureDrawButton"),drawSVG:document.getElementById("addSignatureDraw"),drawPlaceholder:document.getElementById("addSignatureDrawPlaceholder"),drawThickness:document.getElementById("addSignatureDrawThickness"),imageButton:document.getElementById("addSignatureImageButton"),imageSVG:document.getElementById("addSignatureImage"),imagePlaceholder:document.getElementById("addSignatureImagePlaceholder"),imagePicker:document.getElementById("addSignatureFilePicker"),imagePickerLink:document.getElementById("addSignatureImageBrowse"),description:document.getElementById("addSignatureDescription"),clearButton:document.getElementById("clearSignatureButton"),saveContainer:document.getElementById("addSignatureSaveContainer"),saveCheckbox:document.getElementById("addSignatureSaveCheckbox"),errorBar:document.getElementById("addSignatureError"),errorCloseButton:document.getElementById("addSignatureErrorCloseButton"),cancelButton:document.getElementById("addSignatureCancelButton"),addButton:document.getElementById("addSignatureAddButton")},editSignatureDialog:{dialog:document.getElementById("editSignatureDescriptionDialog"),description:document.getElementById("editSignatureDescription"),editSignatureView:document.getElementById("editSignatureView"),cancelButton:document.getElementById("editSignatureCancelButton"),updateButton:document.getElementById("editSignatureUpdateButton")},annotationEditorParams:{editorFreeTextFontSize:document.getElementById("editorFreeTextFontSize"),editorFreeTextColor:document.getElementById("editorFreeTextColor"),editorInkColor:document.getElementById("editorInkColor"),editorInkThickness:document.getElementById("editorInkThickness"),editorInkOpacity:document.getElementById("editorInkOpacity"),editorStampAddImage:document.getElementById("editorStampAddImage"),editorSignatureAddSignature:document.getElementById("editorSignatureAddSignature"),editorFreeHighlightThickness:document.getElementById("editorFreeHighlightThickness"),editorHighlightShowAll:document.getElementById("editorHighlightShowAll")},printContainer:document.getElementById("printContainer"),editorUndoBar:{container:document.getElementById("editorUndoBar"),message:document.getElementById("editorUndoBarMessage"),undoButton:document.getElementById("editorUndoBarUndoButton"),closeButton:document.getElementById("editorUndoBarCloseButton")}},t=new CustomEvent("webviewerloaded",{bubbles:!0,cancelable:!0,detail:{source:window}});try{parent.document.dispatchEvent(t)}catch(e){console.error("webviewerloaded:",e),document.dispatchEvent(t)}Ep.run(e)}window.PDFViewerApplication=Ep,window.PDFViewerApplicationConstants=Kp,window.PDFViewerApplicationOptions=rn,null===(K=(q=document).blockUnblockOnload)||void 0===K||K.call(q,!0),"interactive"===document.readyState||"complete"===document.readyState?qp():document.addEventListener("DOMContentLoaded",qp,!0),e.PDFViewerApplication=Ep,e.PDFViewerApplicationConstants=Kp,e.PDFViewerApplicationOptions=rn,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=viewer.js.map