diff --git a/EnvelopeGenerator.Web/EnvelopeGenerator.Web.csproj b/EnvelopeGenerator.Web/EnvelopeGenerator.Web.csproj index be53181a..1d0eca76 100644 --- a/EnvelopeGenerator.Web/EnvelopeGenerator.Web.csproj +++ b/EnvelopeGenerator.Web/EnvelopeGenerator.Web.csproj @@ -42,6 +42,7 @@ + diff --git a/EnvelopeGenerator.Web/Handler/FileHandler.cs b/EnvelopeGenerator.Web/Handler/FileHandler.cs index 36228c97..f5be8167 100644 --- a/EnvelopeGenerator.Web/Handler/FileHandler.cs +++ b/EnvelopeGenerator.Web/Handler/FileHandler.cs @@ -2,14 +2,15 @@ using EnvelopeGenerator.Common.My.Resources; using EnvelopeGenerator.Web.Services; using Microsoft.Extensions.Primitives; +using System.IO.Pipelines; namespace EnvelopeGenerator.Web.Handler { public class FileHandler { - public async static Task HandleFile(HttpContext ctx, DatabaseService database, LoggingService logging) + public async static Task HandleFileDownload(HttpContext ctx, DatabaseService database, LoggingService logging) { - + var logger = logging.LogConfig.GetLogger("FileHandler"); string envelopeKey = (string)ctx.Request.RouteValues["envelopeKey"]; @@ -39,8 +40,44 @@ namespace EnvelopeGenerator.Web.Handler { logger.Error(e); return Results.Problem(); - - } + + } + } + + public async static Task HandleFileUpload(HttpContext ctx, DatabaseService database, LoggingService logging) + { + var logger = logging.LogConfig.GetLogger("FileHandler"); + string envelopeKey = (string)ctx.Request.RouteValues["envelopeKey"]; + int documentId = int.Parse((string)ctx.Request.RouteValues["documentId"]); + + logger.Info("Uploading file with EnvelopeKey [{0}]", envelopeKey); + + Tuple result = Helpers.DecodeEnvelopeReceiverId(envelopeKey); + logger.Info("EnvelopeUUID: [{0}]", result.Item1); + logger.Info("ReceiverSignature: [{0}]", result.Item2); + + EnvelopeResponse response = database.LoadEnvelope(envelopeKey); + var envelope = response.Envelope; + logger.Info("Envelope [{0}] loaded", envelope.Id); + logger.Info("Contains [{0}] documents", envelope.Documents.Count); + logger.Info("Contains [{0}] receivers", envelope.Receivers.Count); + + var document = envelope.Documents.Where(d => d.Id == documentId).FirstOrDefault(); + + if (document != null) + { + var path = document.Filepath; + + using FileStream fs = new(path, FileMode.Open); + await ctx.Request.Body.CopyToAsync(fs); + fs.Flush(); + + return Results.Ok(); + } + else + { + return Results.Problem(); + } } private static int getDocumentIndex(HttpContext ctx) @@ -90,7 +127,7 @@ namespace EnvelopeGenerator.Web.Handler logger.Info("Contains [{0}] documents", envelope.Documents.Count); logger.Info("Contains [{0}] receivers", envelope.Receivers.Count); - + return Task.FromResult(Results.Json(response)); } diff --git a/EnvelopeGenerator.Web/Program.cs b/EnvelopeGenerator.Web/Program.cs index 8bba466c..84080bed 100644 --- a/EnvelopeGenerator.Web/Program.cs +++ b/EnvelopeGenerator.Web/Program.cs @@ -35,7 +35,8 @@ app.UseStaticFiles(); app.UseRouting(); // Add file download endpoint -app.MapGet("/api/download/{envelopeKey}", FileHandler.HandleFile); +app.MapGet("/api/download/{envelopeKey}", FileHandler.HandleFileDownload); +app.MapPost("/api/upload/{envelopeKey}/{documentId}", FileHandler.HandleFileUpload); app.MapGet("/api/get-data/{envelopeKey}", FileHandler.HandleGetData); // Blazor plumbing diff --git a/EnvelopeGenerator.Web/Scripts/app.ts b/EnvelopeGenerator.Web/Scripts/app.ts index 87f73ffe..4c0ba4a6 100644 --- a/EnvelopeGenerator.Web/Scripts/app.ts +++ b/EnvelopeGenerator.Web/Scripts/app.ts @@ -1,6 +1,6 @@ -import PSPDFKitType, { AnnotationsUnion } from "./index"; +import PSPDFKitType, { AnnotationsUnion, SignatureFormField as SignatureFormFieldType } from "./index"; import { Instance, WidgetAnnotation, ToolbarItem } from "./index"; -import { EnvelopeResponse, Envelope, User, Element, Document } from "./interfaces"; +import { EnvelopeResponse, Envelope, User, Element, Document, IFunction } from "./interfaces"; declare const PSPDFKit: typeof PSPDFKitType @@ -10,34 +10,27 @@ const { SignatureFormField } = PSPDFKit.FormFields; const { DRAW, TYPE } = PSPDFKit.ElectronicSignatureCreationMode; const { DISABLED } = PSPDFKit.AutoSaveMode; -const allowedToolbarItems: string[] = [ - "sidebar-thumbnails", - "sidebar-document-ouline", - "sidebar-bookmarks", - "pager", - "pan", - "zoom-out", - "zoom-in", - "zoom-mode", - "spacer", - "search" -] - export class App { public static Instance: Instance; - public static currentDocument + public static currentDocument: Document; + public static envelopeKey: string; + + public static ui: UI; // This function will be called in the ShowEnvelope.razor page // and will trigger loading of the Editor Interface - public static async loadPDFFromUrl (container: string, envelopeKey: string) { + public static async loadPDFFromUrl(container: string, envelopeKey: string) { + App.ui = new UI(); + console.debug("Loading PSPDFKit.."); const envelopeObject: EnvelopeResponse = await App.loadData(`/api/get-data/${envelopeKey}`); - const document: Document = envelopeObject.envelope.documents[0]; + App.envelopeKey = envelopeKey; + App.currentDocument = envelopeObject.envelope.documents[0]; let arrayBuffer try { - arrayBuffer = await App.loadDocument(`/api/download/${envelopeKey}?id=${document.id}`); + arrayBuffer = await App.loadDocument(`/api/download/${envelopeKey}?id=${App.currentDocument.id}`); } catch (e) { console.error(e) } @@ -50,29 +43,21 @@ export class App { const annotations: any[] = []; - document.elements.forEach(function (element: Element) { - console.log("Loading element") - console.debug("Page", element.page) - console.debug("Width / Height", element.width, element.height) - console.debug("Top / Left", element.top, element.left) - - const id = PSPDFKit.generateInstantId() - const annotation: WidgetAnnotation = App.createSignatureAnnotation(id, element.width, element.height, element.top, element.left, element.page) - - const formField = new SignatureFormField({ - name: id, - annotationIds: List([annotation.id]) - }) + App.currentDocument.elements.forEach(function (element: Element) { + console.log("Creating annotation for element", element.id) + const [annotation, formField] = App.createAnnotationFromElement(element) annotations.push(annotation); annotations.push(formField); + }) - console.debug("Annotation created.") - }) + const createdAnnotations = await App.Instance.create(annotations) - const [createdAnnotation] = await App.Instance.create(annotations) + console.debug(createdAnnotations) + } - console.debug(createdAnnotation) + private static inchToPoint(inch: number): number { + return inch * 72; } // Makes a call to the supplied url and fetches the binary response as an array buffer @@ -87,22 +72,26 @@ export class App { .then(res => res.json()); } + private static postDocument(url: string, buffer: ArrayBuffer): Promise { + return fetch(url, { credentials: "include", method: "POST", body: buffer }) + .then(res => res.json()); + } + // Load the PSPDFKit UI by setting a target element as the container to render in // and a arraybuffer which represents the document that should be displayed. private static loadPSPDFKit(arrayBuffer: ArrayBuffer, container: string): Promise { - const annotationPresets = PSPDFKit.defaultAnnotationPresets; - console.log(annotationPresets) - annotationPresets.ink = { - lineWidth: 10 - }; - return PSPDFKit.load({ container: container, document: arrayBuffer, autoSaveMode: DISABLED, - annotationPresets, - electronicSignatures: { - creationModes: [DRAW] + annotationPresets: App.ui.getPresets(), + electronicSignatures: { + creationModes: [DRAW, TYPE] + }, + isEditableAnnotation: function (annotation: WidgetAnnotation) { + // Check if the annotation is a signature + // This will allow new signatures, but not allow edits. + return !annotation.isSignature; } }) } @@ -116,35 +105,57 @@ export class App { console.log("annotations changed") }) - instance.addEventListener("annotations.create", (createdAnnotations) => { - const annotation: AnnotationsUnion = createdAnnotations[0]; - console.log("annotations created", createdAnnotations.toJS()); + instance.addEventListener("annotations.create", async (createdAnnotations) => { + console.log("annotations created", createdAnnotations.toJS()); }) const filteredItems: Array = instance.toolbarItems - .filter((item) => allowedToolbarItems.includes(item.type)) + .filter((item) => App.ui.allowedToolbarItems.includes(item.type)) - - const customItems: ToolbarItem[] = [ - { - type: "custom", - id: "button-finish", - title: "Abschließen", - icon: ` - - - `, - onPress: this.handleFinish - } - ] - - instance.setToolbarItems(filteredItems.concat(customItems)) + instance.setToolbarItems(filteredItems.concat(App.ui.getToolbarItems(App.handleClick))) } - private static async handleFinish(event: any) { - await App.Instance.applyOperations([{ type: "flattenAnnotations" }]) + public static async handleClick(eventType: string) { + switch (eventType) { + case "RESET": + await App.handleReset(null) + break; + case "FINISH": + await App.handleFinish(null) + break; + } + } - //await downloadDocument(); + public static async handleFinish(event: any) { + await App.Instance.save(); + const json = await App.Instance.exportInstantJSON() + + console.log(json); + + const buffer = await App.Instance.exportPDF({ flatten: true }); + await App.uploadDocument(buffer, App.envelopeKey, App.currentDocument.id); + + alert("Signatur wird gespeichert!") + } + + public static async handleReset(event: any) { + if (confirm("Wollen Sie das Dokument und alle erstellten Signaturen zurücksetzen?")) { + for (let i = 0; i < App.Instance.totalPageCount; i++) { + const annotations = await App.Instance.getAnnotations(i) + annotations.forEach((annotation) => { + //console.log(annotation) + // TODO: Delete only create signatures + //App.Instance.delete(annotation.id) + }) + } + } + } + + private static async uploadDocument(buffer: ArrayBuffer, envelopeKey: string, documentId: number) { + + const result = await App.postDocument(`/api/upload/${envelopeKey}/${documentId}`, buffer); + + console.log(result) } private static async downloadDocument() { @@ -176,6 +187,27 @@ export class App { } } + private static createAnnotationFromElement(element: Element): [annotation: WidgetAnnotation, formField: SignatureFormFieldType] { + const id = PSPDFKit.generateInstantId() + console.log("Creating Annotation", id) + + const width = App.inchToPoint(element.width) + const height = App.inchToPoint(element.height) + const top = App.inchToPoint(element.top) - (height / 2) + const left = App.inchToPoint(element.left) - (width / 2) + const page = element.page - 1 + const annotation: WidgetAnnotation = App.createSignatureAnnotation(id, width, height, top, left, page) + console.log(annotation) + + const formField = new SignatureFormField({ + name: id, + annotationIds: List([annotation.id]) + }) + console.log(formField) + + return [annotation, formField] + } + private static createSignatureAnnotation(id: string, width: number, height: number, top: number, left: number, pageIndex: number): WidgetAnnotation { const annotation = new PSPDFKit.Annotations.WidgetAnnotation({ @@ -190,3 +222,65 @@ export class App { } + +class UI { + constructor() { + + } + + public allowedToolbarItems: string[] = [ + "sidebar-thumbnails", + "sidebar-document-ouline", + "sidebar-bookmarks", + "pager", + "pan", + "zoom-out", + "zoom-in", + "zoom-mode", + "spacer", + "search" + ] + + public getToolbarItems = function (callback: any) { + const customItems: ToolbarItem[] = [ + { + type: "custom", + id: "button-reset", + title: "Zurücksetzen", + onPress() { + callback("RESET") + }, + icon: ` + + + ` + }, + { + type: "custom", + id: "button-finish", + title: "Abschließen", + onPress() { + callback("FINISH") + }, + icon: ` + + + ` + } + ] + return customItems + } + + public getPresets() { + const annotationPresets = PSPDFKit.defaultAnnotationPresets; + annotationPresets.ink = { + lineWidth: 10 + }; + + annotationPresets.widget = { + readOnly: true + } + + return annotationPresets; + } +} \ No newline at end of file diff --git a/EnvelopeGenerator.Web/Scripts/index.d.ts b/EnvelopeGenerator.Web/Scripts/index.d.ts index ff64ee04..b2be715a 100644 --- a/EnvelopeGenerator.Web/Scripts/index.d.ts +++ b/EnvelopeGenerator.Web/Scripts/index.d.ts @@ -1,4 +1,4 @@ -declare const SignatureSaveMode: { +declare const SignatureSaveMode: { readonly ALWAYS: "ALWAYS"; readonly NEVER: "NEVER"; readonly USING_UI: "USING_UI"; @@ -106,21 +106,21 @@ type ISignatureSaveMode = (typeof SignatureSaveMode)[keyof typeof SignatureSaveM -/** - * Lists are ordered indexed dense collections, much like a JavaScript - * Array. - * - * Lists are immutable and fully persistent with O(log32 N) gets and sets, - * and O(1) push and pop. - * - * Lists implement Deque, with efficient addition and removal from both the - * end (`push`, `pop`) and beginning (`unshift`, `shift`). - * - * Unlike a JavaScript Array, there is no distinction between an - * "unset" index and an index set to `undefined`. `List#forEach` visits all - * indices from 0 to size, regardless of whether they were explicitly defined. - */ -declare module List { + /** + * Lists are ordered indexed dense collections, much like a JavaScript + * Array. + * + * Lists are immutable and fully persistent with O(log32 N) gets and sets, + * and O(1) push and pop. + * + * Lists implement Deque, with efficient addition and removal from both the + * end (`push`, `pop`) and beginning (`unshift`, `shift`). + * + * Unlike a JavaScript Array, there is no distinction between an + * "unset" index and an index set to `undefined`. `List#forEach` visits all + * indices from 0 to size, regardless of whether they were explicitly defined. + */ + declare module List { /** * True if the provided value is a List @@ -154,44 +154,44 @@ declare module List { * ``` */ function of(...values: Array): List; -} + } -/** - * Create a new immutable List containing the values of the provided - * collection-like. - * - * Note: `List` is a factory function and not a class, and does not use the - * `new` keyword during construction. - * - * - * ```js - * const { List, Set } = require('immutable') - * - * const emptyList = List() - * // List [] - * - * const plainArray = [ 1, 2, 3, 4 ] - * const listFromPlainArray = List(plainArray) - * // List [ 1, 2, 3, 4 ] - * - * const plainSet = Set([ 1, 2, 3, 4 ]) - * const listFromPlainSet = List(plainSet) - * // List [ 1, 2, 3, 4 ] - * - * const arrayIterator = plainArray[Symbol.iterator]() - * const listFromCollectionArray = List(arrayIterator) - * // List [ 1, 2, 3, 4 ] - * - * listFromPlainArray.equals(listFromCollectionArray) // true - * listFromPlainSet.equals(listFromCollectionArray) // true - * listFromPlainSet.equals(listFromPlainArray) // true - * ``` - */ -declare function List(): List; -declare function List(): List; -declare function List(collection: Iterable): List; + /** + * Create a new immutable List containing the values of the provided + * collection-like. + * + * Note: `List` is a factory function and not a class, and does not use the + * `new` keyword during construction. + * + * + * ```js + * const { List, Set } = require('immutable') + * + * const emptyList = List() + * // List [] + * + * const plainArray = [ 1, 2, 3, 4 ] + * const listFromPlainArray = List(plainArray) + * // List [ 1, 2, 3, 4 ] + * + * const plainSet = Set([ 1, 2, 3, 4 ]) + * const listFromPlainSet = List(plainSet) + * // List [ 1, 2, 3, 4 ] + * + * const arrayIterator = plainArray[Symbol.iterator]() + * const listFromCollectionArray = List(arrayIterator) + * // List [ 1, 2, 3, 4 ] + * + * listFromPlainArray.equals(listFromCollectionArray) // true + * listFromPlainSet.equals(listFromCollectionArray) // true + * listFromPlainSet.equals(listFromPlainArray) // true + * ``` + */ + declare function List(): List; + declare function List(): List; + declare function List(collection: Iterable): List; -interface List extends Collection.Indexed { + interface List extends Collection.Indexed { /** * The number of items in this List. @@ -568,8 +568,8 @@ interface List extends Collection.Indexed { * ``` */ map( - mapper: (value: T, key: number, iter: this) => M, - context?: any + mapper: (value: T, key: number, iter: this) => M, + context?: any ): List; /** @@ -578,8 +578,8 @@ interface List extends Collection.Indexed { * Similar to `list.map(...).flatten(true)`. */ flatMap( - mapper: (value: T, key: number, iter: this) => Iterable, - context?: any + mapper: (value: T, key: number, iter: this) => Iterable, + context?: any ): List; /** @@ -590,12 +590,12 @@ interface List extends Collection.Indexed { * not filtering out any values. */ filter( - predicate: (value: T, index: number, iter: this) => value is F, - context?: any + predicate: (value: T, index: number, iter: this) => value is F, + context?: any ): List; filter( - predicate: (value: T, index: number, iter: this) => any, - context?: any + predicate: (value: T, index: number, iter: this) => any, + context?: any ): this; /** @@ -612,8 +612,8 @@ interface List extends Collection.Indexed { * const c = a.zip(b); // List [ [ 1, 4 ], [ 2, 5 ], [ 3, 6 ] ] * ``` */ - zip(other: Collection): List<[T, U]>; - zip(other: Collection, other2: Collection): List<[T, U, V]>; + zip(other: Collection): List<[T,U]>; + zip(other: Collection, other2: Collection): List<[T,U,V]>; zip(...collections: Array>): List; /** @@ -635,8 +635,8 @@ interface List extends Collection.Indexed { * input, some results may contain undefined values. TypeScript cannot * account for these without cases (as of v2.5). */ - zipAll(other: Collection): List<[T, U]>; - zipAll(other: Collection, other2: Collection): List<[T, U, V]>; + zipAll(other: Collection): List<[T,U]>; + zipAll(other: Collection, other2: Collection): List<[T,U,V]>; zipAll(...collections: Array>): List; /** @@ -654,49 +654,49 @@ interface List extends Collection.Indexed { * ``` */ zipWith( - zipper: (value: T, otherValue: U) => Z, - otherCollection: Collection + zipper: (value: T, otherValue: U) => Z, + otherCollection: Collection ): List; zipWith( - zipper: (value: T, otherValue: U, thirdValue: V) => Z, - otherCollection: Collection, - thirdCollection: Collection + zipper: (value: T, otherValue: U, thirdValue: V) => Z, + otherCollection: Collection, + thirdCollection: Collection ): List; zipWith( - zipper: (...any: Array) => Z, - ...collections: Array> + zipper: (...any: Array) => Z, + ...collections: Array> ): List; -} + } -/** - * Immutable Map is an unordered Collection.Keyed of (key, value) pairs with - * `O(log32 N)` gets and `O(log32 N)` persistent sets. - * - * Iteration order of a Map is undefined, however is stable. Multiple - * iterations of the same Map will iterate in the same order. - * - * Map's keys can be of any type, and use `Immutable.is` to determine key - * equality. This allows the use of any value (including NaN) as a key. - * - * Because `Immutable.is` returns equality based on value semantics, and - * Immutable collections are treated as values, any Immutable collection may - * be used as a key. - * - * - * ```js - * const { Map, List } = require('immutable'); - * Map().set(List([ 1 ]), 'listofone').get(List([ 1 ])); - * // 'listofone' - * ``` - * - * Any JavaScript object may be used as a key, however strict identity is used - * to evaluate key equality. Two similar looking objects will represent two - * different keys. - * - * Implemented by a hash-array mapped trie. - */ -declare module Map { + /** + * Immutable Map is an unordered Collection.Keyed of (key, value) pairs with + * `O(log32 N)` gets and `O(log32 N)` persistent sets. + * + * Iteration order of a Map is undefined, however is stable. Multiple + * iterations of the same Map will iterate in the same order. + * + * Map's keys can be of any type, and use `Immutable.is` to determine key + * equality. This allows the use of any value (including NaN) as a key. + * + * Because `Immutable.is` returns equality based on value semantics, and + * Immutable collections are treated as values, any Immutable collection may + * be used as a key. + * + * + * ```js + * const { Map, List } = require('immutable'); + * Map().set(List([ 1 ]), 'listofone').get(List([ 1 ])); + * // 'listofone' + * ``` + * + * Any JavaScript object may be used as a key, however strict identity is used + * to evaluate key equality. Two similar looking objects will represent two + * different keys. + * + * Implemented by a hash-array mapped trie. + */ + declare module Map { /** * True if the provided value is a Map @@ -727,51 +727,51 @@ declare module Map { * @deprecated Use Map([ [ 'k', 'v' ] ]) or Map({ k: 'v' }) */ function of(...keyValues: Array): Map; -} + } -/** - * Creates a new Immutable Map. - * - * Created with the same key value pairs as the provided Collection.Keyed or - * JavaScript Object or expects a Collection of [K, V] tuple entries. - * - * Note: `Map` is a factory function and not a class, and does not use the - * `new` keyword during construction. - * - * - * ```js - * const { Map } = require('immutable') - * Map({ key: "value" }) - * Map([ [ "key", "value" ] ]) - * ``` - * - * Keep in mind, when using JS objects to construct Immutable Maps, that - * JavaScript Object properties are always strings, even if written in a - * quote-less shorthand, while Immutable Maps accept keys of any type. - * - * - * ```js - * let obj = { 1: "one" } - * Object.keys(obj) // [ "1" ] - * assert.equal(obj["1"], obj[1]) // "one" === "one" - * - * let map = Map(obj) - * assert.notEqual(map.get("1"), map.get(1)) // "one" !== undefined - * ``` - * - * Property access for JavaScript Objects first converts the key to a string, - * but since Immutable Map keys can be of any type the argument to `get()` is - * not altered. - */ -declare function Map(collection: Iterable<[K, V]>): Map; -declare function Map(collection: Iterable>): Map; -declare function Map(obj: { [key: string]: V }): Map; -declare function Map(): Map; -declare function Map(): Map; + /** + * Creates a new Immutable Map. + * + * Created with the same key value pairs as the provided Collection.Keyed or + * JavaScript Object or expects a Collection of [K, V] tuple entries. + * + * Note: `Map` is a factory function and not a class, and does not use the + * `new` keyword during construction. + * + * + * ```js + * const { Map } = require('immutable') + * Map({ key: "value" }) + * Map([ [ "key", "value" ] ]) + * ``` + * + * Keep in mind, when using JS objects to construct Immutable Maps, that + * JavaScript Object properties are always strings, even if written in a + * quote-less shorthand, while Immutable Maps accept keys of any type. + * + * + * ```js + * let obj = { 1: "one" } + * Object.keys(obj) // [ "1" ] + * assert.equal(obj["1"], obj[1]) // "one" === "one" + * + * let map = Map(obj) + * assert.notEqual(map.get("1"), map.get(1)) // "one" !== undefined + * ``` + * + * Property access for JavaScript Objects first converts the key to a string, + * but since Immutable Map keys can be of any type the argument to `get()` is + * not altered. + */ + declare function Map(collection: Iterable<[K, V]>): Map; + declare function Map(collection: Iterable>): Map; + declare function Map(obj: {[key: string]: V}): Map; + declare function Map(): Map; + declare function Map(): Map; -interface Map extends Collection.Keyed { + interface Map extends Collection.Keyed { /** * The number of entries in this Map. @@ -988,9 +988,9 @@ interface Map extends Collection.Keyed { * @alias concat */ merge(...collections: Array>): Map; - merge(...collections: Array<{ [key: string]: C }>): Map; + merge(...collections: Array<{[key: string]: C}>): Map; concat(...collections: Array>): Map; - concat(...collections: Array<{ [key: string]: C }>): Map; + concat(...collections: Array<{[key: string]: C}>): Map; /** * Like `merge()`, `mergeWith()` returns a new Map resulting from merging @@ -1011,8 +1011,8 @@ interface Map extends Collection.Keyed { * Note: `mergeWith` can be used in `withMutations`. */ mergeWith( - merger: (oldVal: V, newVal: V, key: K) => V, - ...collections: Array | { [key: string]: V }> + merger: (oldVal: V, newVal: V, key: K) => V, + ...collections: Array | {[key: string]: V}> ): this; /** @@ -1038,7 +1038,7 @@ interface Map extends Collection.Keyed { * * Note: `mergeDeep` can be used in `withMutations`. */ - mergeDeep(...collections: Array | { [key: string]: V }>): this; + mergeDeep(...collections: Array | {[key: string]: V}>): this; /** * Like `mergeDeep()`, but when two non-Collections conflict, it uses the @@ -1060,8 +1060,8 @@ interface Map extends Collection.Keyed { * Note: `mergeDeepWith` can be used in `withMutations`. */ mergeDeepWith( - merger: (oldVal: any, newVal: any, key: any) => any, - ...collections: Array | { [key: string]: V }> + merger: (oldVal: any, newVal: any, key: any) => any, + ...collections: Array | {[key: string]: V}> ): this; @@ -1337,24 +1337,24 @@ interface Map extends Collection.Keyed { * // Map { a: 10, b: 20 } */ map( - mapper: (value: V, key: K, iter: this) => M, - context?: any + mapper: (value: V, key: K, iter: this) => M, + context?: any ): Map; /** * @see Collection.Keyed.mapKeys */ mapKeys( - mapper: (key: K, value: V, iter: this) => M, - context?: any + mapper: (key: K, value: V, iter: this) => M, + context?: any ): Map; /** * @see Collection.Keyed.mapEntries */ mapEntries( - mapper: (entry: [K, V], index: number, iter: this) => [KM, VM], - context?: any + mapper: (entry: [K, V], index: number, iter: this) => [KM, VM], + context?: any ): Map; /** @@ -1363,8 +1363,8 @@ interface Map extends Collection.Keyed { * Similar to `data.map(...).flatten(true)`. */ flatMap( - mapper: (value: V, key: K, iter: this) => Iterable<[KM, VM]>, - context?: any + mapper: (value: V, key: K, iter: this) => Iterable<[KM, VM]>, + context?: any ): Map; /** @@ -1375,63 +1375,63 @@ interface Map extends Collection.Keyed { * not filtering out any values. */ filter( - predicate: (value: V, key: K, iter: this) => value is F, - context?: any + predicate: (value: V, key: K, iter: this) => value is F, + context?: any ): Map; filter( - predicate: (value: V, key: K, iter: this) => any, - context?: any + predicate: (value: V, key: K, iter: this) => any, + context?: any ): this; /** * @see Collection.Keyed.flip */ flip(): Map; -} + } -/** - * A type of Map that has the additional guarantee that the iteration order of - * entries will be the order in which they were set(). - * - * The iteration behavior of OrderedMap is the same as native ES6 Map and - * JavaScript Object. - * - * Note that `OrderedMap` are more expensive than non-ordered `Map` and may - * consume more memory. `OrderedMap#set` is amortized O(log32 N), but not - * stable. - */ + /** + * A type of Map that has the additional guarantee that the iteration order of + * entries will be the order in which they were set(). + * + * The iteration behavior of OrderedMap is the same as native ES6 Map and + * JavaScript Object. + * + * Note that `OrderedMap` are more expensive than non-ordered `Map` and may + * consume more memory. `OrderedMap#set` is amortized O(log32 N), but not + * stable. + */ -declare module OrderedMap { + declare module OrderedMap { /** * True if the provided value is an OrderedMap. */ function isOrderedMap(maybeOrderedMap: any): maybeOrderedMap is OrderedMap; -} + } -/** - * Creates a new Immutable OrderedMap. - * - * Created with the same key value pairs as the provided Collection.Keyed or - * JavaScript Object or expects a Collection of [K, V] tuple entries. - * - * The iteration order of key-value pairs provided to this constructor will - * be preserved in the OrderedMap. - * - * let newOrderedMap = OrderedMap({key: "value"}) - * let newOrderedMap = OrderedMap([["key", "value"]]) - * - * Note: `OrderedMap` is a factory function and not a class, and does not use - * the `new` keyword during construction. - */ -declare function OrderedMap(collection: Iterable<[K, V]>): OrderedMap; -declare function OrderedMap(collection: Iterable>): OrderedMap; -declare function OrderedMap(obj: { [key: string]: V }): OrderedMap; -declare function OrderedMap(): OrderedMap; -declare function OrderedMap(): OrderedMap; + /** + * Creates a new Immutable OrderedMap. + * + * Created with the same key value pairs as the provided Collection.Keyed or + * JavaScript Object or expects a Collection of [K, V] tuple entries. + * + * The iteration order of key-value pairs provided to this constructor will + * be preserved in the OrderedMap. + * + * let newOrderedMap = OrderedMap({key: "value"}) + * let newOrderedMap = OrderedMap([["key", "value"]]) + * + * Note: `OrderedMap` is a factory function and not a class, and does not use + * the `new` keyword during construction. + */ + declare function OrderedMap(collection: Iterable<[K, V]>): OrderedMap; + declare function OrderedMap(collection: Iterable>): OrderedMap; + declare function OrderedMap(obj: {[key: string]: V}): OrderedMap; + declare function OrderedMap(): OrderedMap; + declare function OrderedMap(): OrderedMap; -interface OrderedMap extends Map { + interface OrderedMap extends Map { /** * The number of entries in this OrderedMap. @@ -1481,9 +1481,9 @@ interface OrderedMap extends Map { * @alias concat */ merge(...collections: Array>): OrderedMap; - merge(...collections: Array<{ [key: string]: C }>): OrderedMap; + merge(...collections: Array<{[key: string]: C}>): OrderedMap; concat(...collections: Array>): OrderedMap; - concat(...collections: Array<{ [key: string]: C }>): OrderedMap; + concat(...collections: Array<{[key: string]: C}>): OrderedMap; // Sequence algorithms @@ -1498,24 +1498,24 @@ interface OrderedMap extends Map { * value at every step. */ map( - mapper: (value: V, key: K, iter: this) => M, - context?: any + mapper: (value: V, key: K, iter: this) => M, + context?: any ): OrderedMap; /** * @see Collection.Keyed.mapKeys */ mapKeys( - mapper: (key: K, value: V, iter: this) => M, - context?: any + mapper: (key: K, value: V, iter: this) => M, + context?: any ): OrderedMap; /** * @see Collection.Keyed.mapEntries */ mapEntries( - mapper: (entry: [K, V], index: number, iter: this) => [KM, VM], - context?: any + mapper: (entry: [K, V], index: number, iter: this) => [KM, VM], + context?: any ): OrderedMap; /** @@ -1524,8 +1524,8 @@ interface OrderedMap extends Map { * Similar to `data.map(...).flatten(true)`. */ flatMap( - mapper: (value: V, key: K, iter: this) => Iterable<[KM, VM]>, - context?: any + mapper: (value: V, key: K, iter: this) => Iterable<[KM, VM]>, + context?: any ): OrderedMap; /** @@ -1536,33 +1536,33 @@ interface OrderedMap extends Map { * not filtering out any values. */ filter( - predicate: (value: V, key: K, iter: this) => value is F, - context?: any + predicate: (value: V, key: K, iter: this) => value is F, + context?: any ): OrderedMap; filter( - predicate: (value: V, key: K, iter: this) => any, - context?: any + predicate: (value: V, key: K, iter: this) => any, + context?: any ): this; /** * @see Collection.Keyed.flip */ flip(): OrderedMap; -} + } -/** - * A Collection of unique values with `O(log32 N)` adds and has. - * - * When iterating a Set, the entries will be (value, value) pairs. Iteration - * order of a Set is undefined, however is stable. Multiple iterations of the - * same Set will iterate in the same order. - * - * Set values, like Map keys, may be of any type. Equality is determined using - * `Immutable.is`, enabling Sets to uniquely include other Immutable - * collections, custom value types, and NaN. - */ -declare module Set { + /** + * A Collection of unique values with `O(log32 N)` adds and has. + * + * When iterating a Set, the entries will be (value, value) pairs. Iteration + * order of a Set is undefined, however is stable. Multiple iterations of the + * same Set will iterate in the same order. + * + * Set values, like Map keys, may be of any type. Equality is determined using + * `Immutable.is`, enabling Sets to uniquely include other Immutable + * collections, custom value types, and NaN. + */ + declare module Set { /** * True if the provided value is a Set @@ -1579,7 +1579,7 @@ declare module Set { * this Collection or JavaScript Object. */ function fromKeys(iter: Collection): Set; - function fromKeys(obj: { [key: string]: any }): Set; + function fromKeys(obj: {[key: string]: any}): Set; /** * `Set.intersect()` creates a new immutable Set that is the intersection of @@ -1610,20 +1610,20 @@ declare module Set { * ``` */ function union(sets: Iterable>): Set; -} + } -/** - * Create a new immutable Set containing the values of the provided - * collection-like. - * - * Note: `Set` is a factory function and not a class, and does not use the - * `new` keyword during construction. - */ -declare function Set(): Set; -declare function Set(): Set; -declare function Set(collection: Iterable): Set; + /** + * Create a new immutable Set containing the values of the provided + * collection-like. + * + * Note: `Set` is a factory function and not a class, and does not use the + * `new` keyword during construction. + */ + declare function Set(): Set; + declare function Set(): Set; + declare function Set(collection: Iterable): Set; -interface Set extends Collection.Set { + interface Set extends Collection.Set { /** * The number of items in this Set. @@ -1734,8 +1734,8 @@ interface Set extends Collection.Set { * // Set [10,20] */ map( - mapper: (value: T, key: T, iter: this) => M, - context?: any + mapper: (value: T, key: T, iter: this) => M, + context?: any ): Set; /** @@ -1744,8 +1744,8 @@ interface Set extends Collection.Set { * Similar to `set.map(...).flatten(true)`. */ flatMap( - mapper: (value: T, key: T, iter: this) => Iterable, - context?: any + mapper: (value: T, key: T, iter: this) => Iterable, + context?: any ): Set; /** @@ -1756,27 +1756,27 @@ interface Set extends Collection.Set { * not filtering out any values. */ filter( - predicate: (value: T, key: T, iter: this) => value is F, - context?: any + predicate: (value: T, key: T, iter: this) => value is F, + context?: any ): Set; filter( - predicate: (value: T, key: T, iter: this) => any, - context?: any + predicate: (value: T, key: T, iter: this) => any, + context?: any ): this; -} + } -/** - * A type of Set that has the additional guarantee that the iteration order of - * values will be the order in which they were `add`ed. - * - * The iteration behavior of OrderedSet is the same as native ES6 Set. - * - * Note that `OrderedSet` are more expensive than non-ordered `Set` and may - * consume more memory. `OrderedSet#add` is amortized O(log32 N), but not - * stable. - */ -declare module OrderedSet { + /** + * A type of Set that has the additional guarantee that the iteration order of + * values will be the order in which they were `add`ed. + * + * The iteration behavior of OrderedSet is the same as native ES6 Set. + * + * Note that `OrderedSet` are more expensive than non-ordered `Set` and may + * consume more memory. `OrderedSet#add` is amortized O(log32 N), but not + * stable. + */ + declare module OrderedSet { /** * True if the provided value is an OrderedSet. @@ -1793,21 +1793,21 @@ declare module OrderedSet { * the keys from this Collection or JavaScript Object. */ function fromKeys(iter: Collection): OrderedSet; - function fromKeys(obj: { [key: string]: any }): OrderedSet; -} + function fromKeys(obj: {[key: string]: any}): OrderedSet; + } -/** - * Create a new immutable OrderedSet containing the values of the provided - * collection-like. - * - * Note: `OrderedSet` is a factory function and not a class, and does not use - * the `new` keyword during construction. - */ -declare function OrderedSet(): OrderedSet; -declare function OrderedSet(): OrderedSet; -declare function OrderedSet(collection: Iterable): OrderedSet; + /** + * Create a new immutable OrderedSet containing the values of the provided + * collection-like. + * + * Note: `OrderedSet` is a factory function and not a class, and does not use + * the `new` keyword during construction. + */ + declare function OrderedSet(): OrderedSet; + declare function OrderedSet(): OrderedSet; + declare function OrderedSet(collection: Iterable): OrderedSet; -interface OrderedSet extends Set { + interface OrderedSet extends Set { /** * The number of items in this OrderedSet. @@ -1836,8 +1836,8 @@ interface OrderedSet extends Set { * // OrderedSet [10, 20] */ map( - mapper: (value: T, key: T, iter: this) => M, - context?: any + mapper: (value: T, key: T, iter: this) => M, + context?: any ): OrderedSet; /** @@ -1846,8 +1846,8 @@ interface OrderedSet extends Set { * Similar to `set.map(...).flatten(true)`. */ flatMap( - mapper: (value: T, key: T, iter: this) => Iterable, - context?: any + mapper: (value: T, key: T, iter: this) => Iterable, + context?: any ): OrderedSet; /** @@ -1858,12 +1858,12 @@ interface OrderedSet extends Set { * not filtering out any values. */ filter( - predicate: (value: T, key: T, iter: this) => value is F, - context?: any + predicate: (value: T, key: T, iter: this) => value is F, + context?: any ): OrderedSet; filter( - predicate: (value: T, key: T, iter: this) => any, - context?: any + predicate: (value: T, key: T, iter: this) => any, + context?: any ): this; /** @@ -1879,8 +1879,8 @@ interface OrderedSet extends Set { * // OrderedSet [ [ 1, 4 ], [ 2, 5 ], [ 3, 6 ] ] * ``` */ - zip(other: Collection): OrderedSet<[T, U]>; - zip(other1: Collection, other2: Collection): OrderedSet<[T, U, V]>; + zip(other: Collection): OrderedSet<[T,U]>; + zip(other1: Collection, other2: Collection): OrderedSet<[T,U,V]>; zip(...collections: Array>): OrderedSet; /** @@ -1900,8 +1900,8 @@ interface OrderedSet extends Set { * input, some results may contain undefined values. TypeScript cannot * account for these without cases (as of v2.5). */ - zipAll(other: Collection): OrderedSet<[T, U]>; - zipAll(other1: Collection, other2: Collection): OrderedSet<[T, U, V]>; + zipAll(other: Collection): OrderedSet<[T,U]>; + zipAll(other1: Collection, other2: Collection): OrderedSet<[T,U,V]>; zipAll(...collections: Array>): OrderedSet; /** @@ -1911,36 +1911,36 @@ interface OrderedSet extends Set { * @see Seq.Indexed.zipWith */ zipWith( - zipper: (value: T, otherValue: U) => Z, - otherCollection: Collection + zipper: (value: T, otherValue: U) => Z, + otherCollection: Collection ): OrderedSet; zipWith( - zipper: (value: T, otherValue: U, thirdValue: V) => Z, - otherCollection: Collection, - thirdCollection: Collection + zipper: (value: T, otherValue: U, thirdValue: V) => Z, + otherCollection: Collection, + thirdCollection: Collection ): OrderedSet; zipWith( - zipper: (...any: Array) => Z, - ...collections: Array> + zipper: (...any: Array) => Z, + ...collections: Array> ): OrderedSet; -} + } -/** - * Stacks are indexed collections which support very efficient O(1) addition - * and removal from the front using `unshift(v)` and `shift()`. - * - * For familiarity, Stack also provides `push(v)`, `pop()`, and `peek()`, but - * be aware that they also operate on the front of the list, unlike List or - * a JavaScript Array. - * - * Note: `reverse()` or any inherent reverse traversal (`reduceRight`, - * `lastIndexOf`, etc.) is not efficient with a Stack. - * - * Stack is implemented with a Single-Linked List. - */ -declare module Stack { + /** + * Stacks are indexed collections which support very efficient O(1) addition + * and removal from the front using `unshift(v)` and `shift()`. + * + * For familiarity, Stack also provides `push(v)`, `pop()`, and `peek()`, but + * be aware that they also operate on the front of the list, unlike List or + * a JavaScript Array. + * + * Note: `reverse()` or any inherent reverse traversal (`reduceRight`, + * `lastIndexOf`, etc.) is not efficient with a Stack. + * + * Stack is implemented with a Single-Linked List. + */ + declare module Stack { /** * True if the provided value is a Stack @@ -1951,23 +1951,23 @@ declare module Stack { * Creates a new Stack containing `values`. */ function of(...values: Array): Stack; -} + } -/** - * Create a new immutable Stack containing the values of the provided - * collection-like. - * - * The iteration order of the provided collection is preserved in the - * resulting `Stack`. - * - * Note: `Stack` is a factory function and not a class, and does not use the - * `new` keyword during construction. - */ -declare function Stack(): Stack; -declare function Stack(): Stack; -declare function Stack(collection: Iterable): Stack; + /** + * Create a new immutable Stack containing the values of the provided + * collection-like. + * + * The iteration order of the provided collection is preserved in the + * resulting `Stack`. + * + * Note: `Stack` is a factory function and not a class, and does not use the + * `new` keyword during construction. + */ + declare function Stack(): Stack; + declare function Stack(): Stack; + declare function Stack(collection: Iterable): Stack; -interface Stack extends Collection.Indexed { + interface Stack extends Collection.Indexed { /** * The number of items in this Stack. @@ -2084,8 +2084,8 @@ interface Stack extends Collection.Indexed { * value at every step. */ map( - mapper: (value: T, key: number, iter: this) => M, - context?: any + mapper: (value: T, key: number, iter: this) => M, + context?: any ): Stack; /** @@ -2094,8 +2094,8 @@ interface Stack extends Collection.Indexed { * Similar to `stack.map(...).flatten(true)`. */ flatMap( - mapper: (value: T, key: number, iter: this) => Iterable, - context?: any + mapper: (value: T, key: number, iter: this) => Iterable, + context?: any ): Stack; /** @@ -2106,12 +2106,12 @@ interface Stack extends Collection.Indexed { * not filtering out any values. */ filter( - predicate: (value: T, index: number, iter: this) => value is F, - context?: any + predicate: (value: T, index: number, iter: this) => value is F, + context?: any ): Set; filter( - predicate: (value: T, index: number, iter: this) => any, - context?: any + predicate: (value: T, index: number, iter: this) => any, + context?: any ): this; /** @@ -2125,8 +2125,8 @@ interface Stack extends Collection.Indexed { * const c = a.zip(b); // Stack [ [ 1, 4 ], [ 2, 5 ], [ 3, 6 ] ] * ``` */ - zip(other: Collection): Stack<[T, U]>; - zip(other: Collection, other2: Collection): Stack<[T, U, V]>; + zip(other: Collection): Stack<[T,U]>; + zip(other: Collection, other2: Collection): Stack<[T,U,V]>; zip(...collections: Array>): Stack; /** @@ -2145,8 +2145,8 @@ interface Stack extends Collection.Indexed { * input, some results may contain undefined values. TypeScript cannot * account for these without cases (as of v2.5). */ - zipAll(other: Collection): Stack<[T, U]>; - zipAll(other: Collection, other2: Collection): Stack<[T, U, V]>; + zipAll(other: Collection): Stack<[T,U]>; + zipAll(other: Collection, other2: Collection): Stack<[T,U,V]>; zipAll(...collections: Array>): Stack; /** @@ -2161,183 +2161,183 @@ interface Stack extends Collection.Indexed { * ``` */ zipWith( - zipper: (value: T, otherValue: U) => Z, - otherCollection: Collection + zipper: (value: T, otherValue: U) => Z, + otherCollection: Collection ): Stack; zipWith( - zipper: (value: T, otherValue: U, thirdValue: V) => Z, - otherCollection: Collection, - thirdCollection: Collection + zipper: (value: T, otherValue: U, thirdValue: V) => Z, + otherCollection: Collection, + thirdCollection: Collection ): Stack; zipWith( - zipper: (...any: Array) => Z, - ...collections: Array> + zipper: (...any: Array) => Z, + ...collections: Array> ): Stack; -} + } -/** - * A record is similar to a JS object, but enforces a specific set of allowed - * string keys, and has default values. - * - * The `Record()` function produces new Record Factories, which when called - * create Record instances. - * - * ```js - * const { Record } = require('immutable') - * const ABRecord = Record({ a: 1, b: 2 }) - * const myRecord = ABRecord({ b: 3 }) - * ``` - * - * Records always have a value for the keys they define. `remove`ing a key - * from a record simply resets it to the default value for that key. - * - * ```js - * myRecord.size // 2 - * myRecord.get('a') // 1 - * myRecord.get('b') // 3 - * const myRecordWithoutB = myRecord.remove('b') - * myRecordWithoutB.get('b') // 2 - * myRecordWithoutB.size // 2 - * ``` - * - * Values provided to the constructor not found in the Record type will - * be ignored. For example, in this case, ABRecord is provided a key "x" even - * though only "a" and "b" have been defined. The value for "x" will be - * ignored for this record. - * - * ```js - * const myRecord = ABRecord({ b: 3, x: 10 }) - * myRecord.get('x') // undefined - * ``` - * - * Because Records have a known set of string keys, property get access works - * as expected, however property sets will throw an Error. - * - * Note: IE8 does not support property access. Only use `get()` when - * supporting IE8. - * - * ```js - * myRecord.b // 3 - * myRecord.b = 5 // throws Error - * ``` - * - * Record Types can be extended as well, allowing for custom methods on your - * Record. This is not a common pattern in functional environments, but is in - * many JS programs. - * - * However Record Types are more restricted than typical JavaScript classes. - * They do not use a class constructor, which also means they cannot use - * class properties (since those are technically part of a constructor). - * - * While Record Types can be syntactically created with the JavaScript `class` - * form, the resulting Record function is actually a factory function, not a - * class constructor. Even though Record Types are not classes, JavaScript - * currently requires the use of `new` when creating new Record instances if - * they are defined as a `class`. - * - * ``` - * class ABRecord extends Record({ a: 1, b: 2 }) { - * getAB() { - * return this.a + this.b; - * } - * } - * - * var myRecord = new ABRecord({b: 3}) - * myRecord.getAB() // 4 - * ``` - * - * - * **Flow Typing Records:** - * - * Immutable.js exports two Flow types designed to make it easier to use - * Records with flow typed code, `RecordOf` and `RecordFactory`. - * - * When defining a new kind of Record factory function, use a flow type that - * describes the values the record contains along with `RecordFactory`. - * To type instances of the Record (which the factory function returns), - * use `RecordOf`. - * - * Typically, new Record definitions will export both the Record factory - * function as well as the Record instance type for use in other code. - * - * ```js - * import type { RecordFactory, RecordOf } from 'immutable'; - * - * // Use RecordFactory for defining new Record factory functions. - * type Point3DProps = { x: number, y: number, z: number }; - * const defaultValues: Point3DProps = { x: 0, y: 0, z: 0 }; - * const makePoint3D: RecordFactory = Record(defaultValues); - * export makePoint3D; - * - * // Use RecordOf for defining new instances of that Record. - * export type Point3D = RecordOf; - * const some3DPoint: Point3D = makePoint3D({ x: 10, y: 20, z: 30 }); - * ``` - * - * **Flow Typing Record Subclasses:** - * - * Records can be subclassed as a means to add additional methods to Record - * instances. This is generally discouraged in favor of a more functional API, - * since Subclasses have some minor overhead. However the ability to create - * a rich API on Record types can be quite valuable. - * - * When using Flow to type Subclasses, do not use `RecordFactory`, - * instead apply the props type when subclassing: - * - * ```js - * type PersonProps = {name: string, age: number}; - * const defaultValues: PersonProps = {name: 'Aristotle', age: 2400}; - * const PersonRecord = Record(defaultValues); - * class Person extends PersonRecord { - * getName(): string { - * return this.get('name') - * } - * - * setName(name: string): this { - * return this.set('name', name); - * } - * } - * ``` - * - * **Choosing Records vs plain JavaScript objects** - * - * Records offer a persistently immutable alternative to plain JavaScript - * objects, however they're not required to be used within Immutable.js - * collections. In fact, the deep-access and deep-updating functions - * like `getIn()` and `setIn()` work with plain JavaScript Objects as well. - * - * Deciding to use Records or Objects in your application should be informed - * by the tradeoffs and relative benefits of each: - * - * - *Runtime immutability*: plain JS objects may be carefully treated as - * immutable, however Record instances will *throw* if attempted to be - * mutated directly. Records provide this additional guarantee, however at - * some marginal runtime cost. While JS objects are mutable by nature, the - * use of type-checking tools like [Flow](https://medium.com/@gcanti/immutability-with-flow-faa050a1aef4) - * can help gain confidence in code written to favor immutability. - * - * - *Value equality*: Records use value equality when compared with `is()` - * or `record.equals()`. That is, two Records with the same keys and values - * are equal. Plain objects use *reference equality*. Two objects with the - * same keys and values are not equal since they are different objects. - * This is important to consider when using objects as keys in a `Map` or - * values in a `Set`, which use equality when retrieving values. - * - * - *API methods*: Records have a full featured API, with methods like - * `.getIn()`, and `.equals()`. These can make working with these values - * easier, but comes at the cost of not allowing keys with those names. - * - * - *Default values*: Records provide default values for every key, which - * can be useful when constructing Records with often unchanging values. - * However default values can make using Flow and TypeScript more laborious. - * - * - *Serialization*: Records use a custom internal representation to - * efficiently store and update their values. Converting to and from this - * form isn't free. If converting Records to plain objects is common, - * consider sticking with plain objects to begin with. - */ -declare module Record$1 { + /** + * A record is similar to a JS object, but enforces a specific set of allowed + * string keys, and has default values. + * + * The `Record()` function produces new Record Factories, which when called + * create Record instances. + * + * ```js + * const { Record } = require('immutable') + * const ABRecord = Record({ a: 1, b: 2 }) + * const myRecord = ABRecord({ b: 3 }) + * ``` + * + * Records always have a value for the keys they define. `remove`ing a key + * from a record simply resets it to the default value for that key. + * + * ```js + * myRecord.size // 2 + * myRecord.get('a') // 1 + * myRecord.get('b') // 3 + * const myRecordWithoutB = myRecord.remove('b') + * myRecordWithoutB.get('b') // 2 + * myRecordWithoutB.size // 2 + * ``` + * + * Values provided to the constructor not found in the Record type will + * be ignored. For example, in this case, ABRecord is provided a key "x" even + * though only "a" and "b" have been defined. The value for "x" will be + * ignored for this record. + * + * ```js + * const myRecord = ABRecord({ b: 3, x: 10 }) + * myRecord.get('x') // undefined + * ``` + * + * Because Records have a known set of string keys, property get access works + * as expected, however property sets will throw an Error. + * + * Note: IE8 does not support property access. Only use `get()` when + * supporting IE8. + * + * ```js + * myRecord.b // 3 + * myRecord.b = 5 // throws Error + * ``` + * + * Record Types can be extended as well, allowing for custom methods on your + * Record. This is not a common pattern in functional environments, but is in + * many JS programs. + * + * However Record Types are more restricted than typical JavaScript classes. + * They do not use a class constructor, which also means they cannot use + * class properties (since those are technically part of a constructor). + * + * While Record Types can be syntactically created with the JavaScript `class` + * form, the resulting Record function is actually a factory function, not a + * class constructor. Even though Record Types are not classes, JavaScript + * currently requires the use of `new` when creating new Record instances if + * they are defined as a `class`. + * + * ``` + * class ABRecord extends Record({ a: 1, b: 2 }) { + * getAB() { + * return this.a + this.b; + * } + * } + * + * var myRecord = new ABRecord({b: 3}) + * myRecord.getAB() // 4 + * ``` + * + * + * **Flow Typing Records:** + * + * Immutable.js exports two Flow types designed to make it easier to use + * Records with flow typed code, `RecordOf` and `RecordFactory`. + * + * When defining a new kind of Record factory function, use a flow type that + * describes the values the record contains along with `RecordFactory`. + * To type instances of the Record (which the factory function returns), + * use `RecordOf`. + * + * Typically, new Record definitions will export both the Record factory + * function as well as the Record instance type for use in other code. + * + * ```js + * import type { RecordFactory, RecordOf } from 'immutable'; + * + * // Use RecordFactory for defining new Record factory functions. + * type Point3DProps = { x: number, y: number, z: number }; + * const defaultValues: Point3DProps = { x: 0, y: 0, z: 0 }; + * const makePoint3D: RecordFactory = Record(defaultValues); + * export makePoint3D; + * + * // Use RecordOf for defining new instances of that Record. + * export type Point3D = RecordOf; + * const some3DPoint: Point3D = makePoint3D({ x: 10, y: 20, z: 30 }); + * ``` + * + * **Flow Typing Record Subclasses:** + * + * Records can be subclassed as a means to add additional methods to Record + * instances. This is generally discouraged in favor of a more functional API, + * since Subclasses have some minor overhead. However the ability to create + * a rich API on Record types can be quite valuable. + * + * When using Flow to type Subclasses, do not use `RecordFactory`, + * instead apply the props type when subclassing: + * + * ```js + * type PersonProps = {name: string, age: number}; + * const defaultValues: PersonProps = {name: 'Aristotle', age: 2400}; + * const PersonRecord = Record(defaultValues); + * class Person extends PersonRecord { + * getName(): string { + * return this.get('name') + * } + * + * setName(name: string): this { + * return this.set('name', name); + * } + * } + * ``` + * + * **Choosing Records vs plain JavaScript objects** + * + * Records offer a persistently immutable alternative to plain JavaScript + * objects, however they're not required to be used within Immutable.js + * collections. In fact, the deep-access and deep-updating functions + * like `getIn()` and `setIn()` work with plain JavaScript Objects as well. + * + * Deciding to use Records or Objects in your application should be informed + * by the tradeoffs and relative benefits of each: + * + * - *Runtime immutability*: plain JS objects may be carefully treated as + * immutable, however Record instances will *throw* if attempted to be + * mutated directly. Records provide this additional guarantee, however at + * some marginal runtime cost. While JS objects are mutable by nature, the + * use of type-checking tools like [Flow](https://medium.com/@gcanti/immutability-with-flow-faa050a1aef4) + * can help gain confidence in code written to favor immutability. + * + * - *Value equality*: Records use value equality when compared with `is()` + * or `record.equals()`. That is, two Records with the same keys and values + * are equal. Plain objects use *reference equality*. Two objects with the + * same keys and values are not equal since they are different objects. + * This is important to consider when using objects as keys in a `Map` or + * values in a `Set`, which use equality when retrieving values. + * + * - *API methods*: Records have a full featured API, with methods like + * `.getIn()`, and `.equals()`. These can make working with these values + * easier, but comes at the cost of not allowing keys with those names. + * + * - *Default values*: Records provide default values for every key, which + * can be useful when constructing Records with often unchanging values. + * However default values can make using Flow and TypeScript more laborious. + * + * - *Serialization*: Records use a custom internal representation to + * efficiently store and update their values. Converting to and from this + * form isn't free. If converting Records to plain objects is common, + * consider sticking with plain objects to begin with. + */ + declare module Record$1 { /** * True if `maybeRecord` is an instance of a Record. @@ -2411,28 +2411,28 @@ declare module Record$1 { * const alan: Person = makePerson({ name: 'Alan' }); * ``` */ - export module Factory { } + export module Factory {} export interface Factory { - (values?: Partial | Iterable<[string, any]>): Record$1 & Readonly; - new(values?: Partial | Iterable<[string, any]>): Record$1 & Readonly; + (values?: Partial | Iterable<[string, any]>): Record$1 & Readonly; + new (values?: Partial | Iterable<[string, any]>): Record$1 & Readonly; } export function Factory(values?: Partial | Iterable<[string, any]>): Record$1 & Readonly; -} + } -/** - * Unlike other types in Immutable.js, the `Record()` function creates a new - * Record Factory, which is a function that creates Record instances. - * - * See above for examples of using `Record()`. - * - * Note: `Record` is a factory function and not a class, and does not use the - * `new` keyword during construction. - */ -declare function Record$1(defaultValues: TProps, name?: string): Record$1.Factory; + /** + * Unlike other types in Immutable.js, the `Record()` function creates a new + * Record Factory, which is a function that creates Record instances. + * + * See above for examples of using `Record()`. + * + * Note: `Record` is a factory function and not a class, and does not use the + * `new` keyword during construction. + */ + declare function Record$1(defaultValues: TProps, name?: string): Record$1.Factory; -interface Record$1 { + interface Record$1 { // Reading values @@ -2467,12 +2467,12 @@ interface Record$1 { mergeDeep(...collections: Array | Iterable<[string, any]>>): this; mergeWith( - merger: (oldVal: any, newVal: any, key: keyof TProps) => any, - ...collections: Array | Iterable<[string, any]>> + merger: (oldVal: any, newVal: any, key: keyof TProps) => any, + ...collections: Array | Iterable<[string, any]>> ): this; mergeDeepWith( - merger: (oldVal: any, newVal: any, key: any) => any, - ...collections: Array | Iterable<[string, any]>> + merger: (oldVal: any, newVal: any, key: any) => any, + ...collections: Array | Iterable<[string, any]>> ): this; /** @@ -2553,84 +2553,84 @@ interface Record$1 { toSeq(): Seq.Keyed; [Symbol.iterator](): IterableIterator<[keyof TProps, TProps[keyof TProps]]>; -} + } -/** - * `Seq` describes a lazy operation, allowing them to efficiently chain - * use of all the higher-order collection methods (such as `map` and `filter`) - * by not creating intermediate collections. - * - * **Seq is immutable** — Once a Seq is created, it cannot be - * changed, appended to, rearranged or otherwise modified. Instead, any - * mutative method called on a `Seq` will return a new `Seq`. - * - * **Seq is lazy** — `Seq` does as little work as necessary to respond to any - * method call. Values are often created during iteration, including implicit - * iteration when reducing or converting to a concrete data structure such as - * a `List` or JavaScript `Array`. - * - * For example, the following performs no work, because the resulting - * `Seq`'s values are never iterated: - * - * ```js - * const { Seq } = require('immutable') - * const oddSquares = Seq([ 1, 2, 3, 4, 5, 6, 7, 8 ]) - * .filter(x => x % 2 !== 0) - * .map(x => x * x) - * ``` - * - * Once the `Seq` is used, it performs only the work necessary. In this - * example, no intermediate arrays are ever created, filter is called three - * times, and map is only called once: - * - * ```js - * oddSquares.get(1); // 9 - * ``` - * - * Any collection can be converted to a lazy Seq with `Seq()`. - * - * - * ```js - * const { Map } = require('immutable') - * const map = Map({ a: 1, b: 2, c: 3 } - * const lazySeq = Seq(map) - * ``` - * - * `Seq` allows for the efficient chaining of operations, allowing for the - * expression of logic that can otherwise be very tedious: - * - * ```js - * lazySeq - * .flip() - * .map(key => key.toUpperCase()) - * .flip() - * // Seq { A: 1, B: 1, C: 1 } - * ``` - * - * As well as expressing logic that would otherwise seem memory or time - * limited, for example `Range` is a special kind of Lazy sequence. - * - * - * ```js - * const { Range } = require('immutable') - * Range(1, Infinity) - * .skip(1000) - * .map(n => -n) - * .filter(n => n % 2 === 0) - * .take(2) - * .reduce((r, n) => r * n, 1) - * // 1006008 - * ``` - * - * Seq is often used to provide a rich collection API to JavaScript Object. - * - * ```js - * Seq({ x: 0, y: 1, z: 2 }).map(v => v * 2).toObject(); - * // { x: 0, y: 2, z: 4 } - * ``` - */ + /** + * `Seq` describes a lazy operation, allowing them to efficiently chain + * use of all the higher-order collection methods (such as `map` and `filter`) + * by not creating intermediate collections. + * + * **Seq is immutable** — Once a Seq is created, it cannot be + * changed, appended to, rearranged or otherwise modified. Instead, any + * mutative method called on a `Seq` will return a new `Seq`. + * + * **Seq is lazy** — `Seq` does as little work as necessary to respond to any + * method call. Values are often created during iteration, including implicit + * iteration when reducing or converting to a concrete data structure such as + * a `List` or JavaScript `Array`. + * + * For example, the following performs no work, because the resulting + * `Seq`'s values are never iterated: + * + * ```js + * const { Seq } = require('immutable') + * const oddSquares = Seq([ 1, 2, 3, 4, 5, 6, 7, 8 ]) + * .filter(x => x % 2 !== 0) + * .map(x => x * x) + * ``` + * + * Once the `Seq` is used, it performs only the work necessary. In this + * example, no intermediate arrays are ever created, filter is called three + * times, and map is only called once: + * + * ```js + * oddSquares.get(1); // 9 + * ``` + * + * Any collection can be converted to a lazy Seq with `Seq()`. + * + * + * ```js + * const { Map } = require('immutable') + * const map = Map({ a: 1, b: 2, c: 3 } + * const lazySeq = Seq(map) + * ``` + * + * `Seq` allows for the efficient chaining of operations, allowing for the + * expression of logic that can otherwise be very tedious: + * + * ```js + * lazySeq + * .flip() + * .map(key => key.toUpperCase()) + * .flip() + * // Seq { A: 1, B: 1, C: 1 } + * ``` + * + * As well as expressing logic that would otherwise seem memory or time + * limited, for example `Range` is a special kind of Lazy sequence. + * + * + * ```js + * const { Range } = require('immutable') + * Range(1, Infinity) + * .skip(1000) + * .map(n => -n) + * .filter(n => n % 2 === 0) + * .take(2) + * .reduce((r, n) => r * n, 1) + * // 1006008 + * ``` + * + * Seq is often used to provide a rich collection API to JavaScript Object. + * + * ```js + * Seq({ x: 0, y: 1, z: 2 }).map(v => v * 2).toObject(); + * // { x: 0, y: 2, z: 4 } + * ``` + */ -declare module Seq { + declare module Seq { /** * True if `maybeSeq` is a Seq, it is not backed by a concrete * structure such as Map, List, or Set. @@ -2641,7 +2641,7 @@ declare module Seq { /** * `Seq` which represents key-value pairs. */ - export module Keyed { } + export module Keyed {} /** * Always returns a Seq.Keyed, if input is not keyed, expects an @@ -2651,108 +2651,108 @@ declare module Seq { * use the `new` keyword during construction. */ export function Keyed(collection: Iterable<[K, V]>): Seq.Keyed; - export function Keyed(obj: { [key: string]: V }): Seq.Keyed; + export function Keyed(obj: {[key: string]: V}): Seq.Keyed; export function Keyed(): Seq.Keyed; export function Keyed(): Seq.Keyed; export interface Keyed extends Seq, Collection.Keyed { - /** - * Deeply converts this Keyed Seq to equivalent native JavaScript Object. - * - * Converts keys to Strings. - */ - toJS(): Object; + /** + * Deeply converts this Keyed Seq to equivalent native JavaScript Object. + * + * Converts keys to Strings. + */ + toJS(): Object; - /** - * Shallowly converts this Keyed Seq to equivalent native JavaScript Object. - * - * Converts keys to Strings. - */ - toJSON(): { [key: string]: V }; + /** + * Shallowly converts this Keyed Seq to equivalent native JavaScript Object. + * + * Converts keys to Strings. + */ + toJSON(): { [key: string]: V }; - /** - * Shallowly converts this collection to an Array. - */ - toArray(): Array<[K, V]>; + /** + * Shallowly converts this collection to an Array. + */ + toArray(): Array<[K, V]>; - /** - * Returns itself - */ - toSeq(): this; + /** + * Returns itself + */ + toSeq(): this; - /** - * Returns a new Seq with other collections concatenated to this one. - * - * All entries will be present in the resulting Seq, even if they - * have the same key. - */ - concat(...collections: Array>): Seq.Keyed; - concat(...collections: Array<{ [key: string]: C }>): Seq.Keyed; + /** + * Returns a new Seq with other collections concatenated to this one. + * + * All entries will be present in the resulting Seq, even if they + * have the same key. + */ + concat(...collections: Array>): Seq.Keyed; + concat(...collections: Array<{[key: string]: C}>): Seq.Keyed; - /** - * Returns a new Seq.Keyed with values passed through a - * `mapper` function. - * - * ```js - * const { Seq } = require('immutable') - * Seq.Keyed({ a: 1, b: 2 }).map(x => 10 * x) - * // Seq { "a": 10, "b": 20 } - * ``` - * - * Note: `map()` always returns a new instance, even if it produced the - * same value at every step. - */ - map( - mapper: (value: V, key: K, iter: this) => M, - context?: any - ): Seq.Keyed; + /** + * Returns a new Seq.Keyed with values passed through a + * `mapper` function. + * + * ```js + * const { Seq } = require('immutable') + * Seq.Keyed({ a: 1, b: 2 }).map(x => 10 * x) + * // Seq { "a": 10, "b": 20 } + * ``` + * + * Note: `map()` always returns a new instance, even if it produced the + * same value at every step. + */ + map( + mapper: (value: V, key: K, iter: this) => M, + context?: any + ): Seq.Keyed; - /** - * @see Collection.Keyed.mapKeys - */ - mapKeys( - mapper: (key: K, value: V, iter: this) => M, - context?: any - ): Seq.Keyed; + /** + * @see Collection.Keyed.mapKeys + */ + mapKeys( + mapper: (key: K, value: V, iter: this) => M, + context?: any + ): Seq.Keyed; - /** - * @see Collection.Keyed.mapEntries - */ - mapEntries( - mapper: (entry: [K, V], index: number, iter: this) => [KM, VM], - context?: any - ): Seq.Keyed; + /** + * @see Collection.Keyed.mapEntries + */ + mapEntries( + mapper: (entry: [K, V], index: number, iter: this) => [KM, VM], + context?: any + ): Seq.Keyed; - /** - * Flat-maps the Seq, returning a Seq of the same type. - * - * Similar to `seq.map(...).flatten(true)`. - */ - flatMap( - mapper: (value: V, key: K, iter: this) => Iterable<[KM, VM]>, - context?: any - ): Seq.Keyed; + /** + * Flat-maps the Seq, returning a Seq of the same type. + * + * Similar to `seq.map(...).flatten(true)`. + */ + flatMap( + mapper: (value: V, key: K, iter: this) => Iterable<[KM, VM]>, + context?: any + ): Seq.Keyed; - /** - * Returns a new Seq with only the entries for which the `predicate` - * function returns true. - * - * Note: `filter()` always returns a new instance, even if it results in - * not filtering out any values. - */ - filter( - predicate: (value: V, key: K, iter: this) => value is F, - context?: any - ): Seq.Keyed; - filter( - predicate: (value: V, key: K, iter: this) => any, - context?: any - ): this; + /** + * Returns a new Seq with only the entries for which the `predicate` + * function returns true. + * + * Note: `filter()` always returns a new instance, even if it results in + * not filtering out any values. + */ + filter( + predicate: (value: V, key: K, iter: this) => value is F, + context?: any + ): Seq.Keyed; + filter( + predicate: (value: V, key: K, iter: this) => any, + context?: any + ): this; - /** - * @see Collection.Keyed.flip - */ - flip(): Seq.Keyed; + /** + * @see Collection.Keyed.flip + */ + flip(): Seq.Keyed; } @@ -2761,10 +2761,10 @@ declare module Seq { */ module Indexed { - /** - * Provides an Seq.Indexed of the values provided. - */ - function of(...values: Array): Seq.Indexed; + /** + * Provides an Seq.Indexed of the values provided. + */ + function of(...values: Array): Seq.Indexed; } /** @@ -2779,130 +2779,130 @@ declare module Seq { export function Indexed(collection: Iterable): Seq.Indexed; export interface Indexed extends Seq, Collection.Indexed { - /** - * Deeply converts this Indexed Seq to equivalent native JavaScript Array. - */ - toJS(): Array; + /** + * Deeply converts this Indexed Seq to equivalent native JavaScript Array. + */ + toJS(): Array; - /** - * Shallowly converts this Indexed Seq to equivalent native JavaScript Array. - */ - toJSON(): Array; + /** + * Shallowly converts this Indexed Seq to equivalent native JavaScript Array. + */ + toJSON(): Array; - /** - * Shallowly converts this collection to an Array. - */ - toArray(): Array; + /** + * Shallowly converts this collection to an Array. + */ + toArray(): Array; - /** - * Returns itself - */ - toSeq(): this + /** + * Returns itself + */ + toSeq(): this - /** - * Returns a new Seq with other collections concatenated to this one. - */ - concat(...valuesOrCollections: Array | C>): Seq.Indexed; + /** + * Returns a new Seq with other collections concatenated to this one. + */ + concat(...valuesOrCollections: Array | C>): Seq.Indexed; - /** - * Returns a new Seq.Indexed with values passed through a - * `mapper` function. - * - * ```js - * const { Seq } = require('immutable') - * Seq.Indexed([ 1, 2 ]).map(x => 10 * x) - * // Seq [ 10, 20 ] - * ``` - * - * Note: `map()` always returns a new instance, even if it produced the - * same value at every step. - */ - map( - mapper: (value: T, key: number, iter: this) => M, - context?: any - ): Seq.Indexed; + /** + * Returns a new Seq.Indexed with values passed through a + * `mapper` function. + * + * ```js + * const { Seq } = require('immutable') + * Seq.Indexed([ 1, 2 ]).map(x => 10 * x) + * // Seq [ 10, 20 ] + * ``` + * + * Note: `map()` always returns a new instance, even if it produced the + * same value at every step. + */ + map( + mapper: (value: T, key: number, iter: this) => M, + context?: any + ): Seq.Indexed; - /** - * Flat-maps the Seq, returning a a Seq of the same type. - * - * Similar to `seq.map(...).flatten(true)`. - */ - flatMap( - mapper: (value: T, key: number, iter: this) => Iterable, - context?: any - ): Seq.Indexed; + /** + * Flat-maps the Seq, returning a a Seq of the same type. + * + * Similar to `seq.map(...).flatten(true)`. + */ + flatMap( + mapper: (value: T, key: number, iter: this) => Iterable, + context?: any + ): Seq.Indexed; - /** - * Returns a new Seq with only the values for which the `predicate` - * function returns true. - * - * Note: `filter()` always returns a new instance, even if it results in - * not filtering out any values. - */ - filter( - predicate: (value: T, index: number, iter: this) => value is F, - context?: any - ): Seq.Indexed; - filter( - predicate: (value: T, index: number, iter: this) => any, - context?: any - ): this; + /** + * Returns a new Seq with only the values for which the `predicate` + * function returns true. + * + * Note: `filter()` always returns a new instance, even if it results in + * not filtering out any values. + */ + filter( + predicate: (value: T, index: number, iter: this) => value is F, + context?: any + ): Seq.Indexed; + filter( + predicate: (value: T, index: number, iter: this) => any, + context?: any + ): this; - /** - * Returns a Seq "zipped" with the provided collections. - * - * Like `zipWith`, but using the default `zipper`: creating an `Array`. - * - * ```js - * const a = Seq([ 1, 2, 3 ]); - * const b = Seq([ 4, 5, 6 ]); - * const c = a.zip(b); // Seq [ [ 1, 4 ], [ 2, 5 ], [ 3, 6 ] ] - * ``` - */ - zip(other: Collection): Seq.Indexed<[T, U]>; - zip(other: Collection, other2: Collection): Seq.Indexed<[T, U, V]>; - zip(...collections: Array>): Seq.Indexed; + /** + * Returns a Seq "zipped" with the provided collections. + * + * Like `zipWith`, but using the default `zipper`: creating an `Array`. + * + * ```js + * const a = Seq([ 1, 2, 3 ]); + * const b = Seq([ 4, 5, 6 ]); + * const c = a.zip(b); // Seq [ [ 1, 4 ], [ 2, 5 ], [ 3, 6 ] ] + * ``` + */ + zip(other: Collection): Seq.Indexed<[T,U]>; + zip(other: Collection, other2: Collection): Seq.Indexed<[T,U,V]>; + zip(...collections: Array>): Seq.Indexed; - /** - * Returns a Seq "zipped" with the provided collections. - * - * Unlike `zip`, `zipAll` continues zipping until the longest collection is - * exhausted. Missing values from shorter collections are filled with `undefined`. - * - * ```js - * const a = Seq([ 1, 2 ]); - * const b = Seq([ 3, 4, 5 ]); - * const c = a.zipAll(b); // Seq [ [ 1, 3 ], [ 2, 4 ], [ undefined, 5 ] ] - * ``` - */ - zipAll(other: Collection): Seq.Indexed<[T, U]>; - zipAll(other: Collection, other2: Collection): Seq.Indexed<[T, U, V]>; - zipAll(...collections: Array>): Seq.Indexed; + /** + * Returns a Seq "zipped" with the provided collections. + * + * Unlike `zip`, `zipAll` continues zipping until the longest collection is + * exhausted. Missing values from shorter collections are filled with `undefined`. + * + * ```js + * const a = Seq([ 1, 2 ]); + * const b = Seq([ 3, 4, 5 ]); + * const c = a.zipAll(b); // Seq [ [ 1, 3 ], [ 2, 4 ], [ undefined, 5 ] ] + * ``` + */ + zipAll(other: Collection): Seq.Indexed<[T,U]>; + zipAll(other: Collection, other2: Collection): Seq.Indexed<[T,U,V]>; + zipAll(...collections: Array>): Seq.Indexed; - /** - * Returns a Seq "zipped" with the provided collections by using a - * custom `zipper` function. - * - * ```js - * const a = Seq([ 1, 2, 3 ]); - * const b = Seq([ 4, 5, 6 ]); - * const c = a.zipWith((a, b) => a + b, b); - * // Seq [ 5, 7, 9 ] - * ``` - */ - zipWith( - zipper: (value: T, otherValue: U) => Z, - otherCollection: Collection - ): Seq.Indexed; - zipWith( - zipper: (value: T, otherValue: U, thirdValue: V) => Z, - otherCollection: Collection, - thirdCollection: Collection - ): Seq.Indexed; - zipWith( - zipper: (...any: Array) => Z, - ...collections: Array> - ): Seq.Indexed; + /** + * Returns a Seq "zipped" with the provided collections by using a + * custom `zipper` function. + * + * ```js + * const a = Seq([ 1, 2, 3 ]); + * const b = Seq([ 4, 5, 6 ]); + * const c = a.zipWith((a, b) => a + b, b); + * // Seq [ 5, 7, 9 ] + * ``` + */ + zipWith( + zipper: (value: T, otherValue: U) => Z, + otherCollection: Collection + ): Seq.Indexed; + zipWith( + zipper: (value: T, otherValue: U, thirdValue: V) => Z, + otherCollection: Collection, + thirdCollection: Collection + ): Seq.Indexed; + zipWith( + zipper: (...any: Array) => Z, + ...collections: Array> + ): Seq.Indexed; } @@ -2914,10 +2914,10 @@ declare module Seq { */ export module Set { - /** - * Returns a Seq.Set of the provided values - */ - function of(...values: Array): Seq.Set; + /** + * Returns a Seq.Set of the provided values + */ + function of(...values: Array): Seq.Set; } /** @@ -2931,108 +2931,108 @@ declare module Seq { export function Set(collection: Iterable): Seq.Set; export interface Set extends Seq, Collection.Set { - /** - * Deeply converts this Set Seq to equivalent native JavaScript Array. - */ - toJS(): Array; + /** + * Deeply converts this Set Seq to equivalent native JavaScript Array. + */ + toJS(): Array; - /** - * Shallowly converts this Set Seq to equivalent native JavaScript Array. - */ - toJSON(): Array; + /** + * Shallowly converts this Set Seq to equivalent native JavaScript Array. + */ + toJSON(): Array; - /** - * Shallowly converts this collection to an Array. - */ - toArray(): Array; + /** + * Shallowly converts this collection to an Array. + */ + toArray(): Array; - /** - * Returns itself - */ - toSeq(): this + /** + * Returns itself + */ + toSeq(): this - /** - * Returns a new Seq with other collections concatenated to this one. - * - * All entries will be present in the resulting Seq, even if they - * are duplicates. - */ - concat(...collections: Array>): Seq.Set; + /** + * Returns a new Seq with other collections concatenated to this one. + * + * All entries will be present in the resulting Seq, even if they + * are duplicates. + */ + concat(...collections: Array>): Seq.Set; - /** - * Returns a new Seq.Set with values passed through a - * `mapper` function. - * - * ```js - * Seq.Set([ 1, 2 ]).map(x => 10 * x) - * // Seq { 10, 20 } - * ``` - * - * Note: `map()` always returns a new instance, even if it produced the - * same value at every step. - */ - map( - mapper: (value: T, key: T, iter: this) => M, - context?: any - ): Seq.Set; + /** + * Returns a new Seq.Set with values passed through a + * `mapper` function. + * + * ```js + * Seq.Set([ 1, 2 ]).map(x => 10 * x) + * // Seq { 10, 20 } + * ``` + * + * Note: `map()` always returns a new instance, even if it produced the + * same value at every step. + */ + map( + mapper: (value: T, key: T, iter: this) => M, + context?: any + ): Seq.Set; - /** - * Flat-maps the Seq, returning a Seq of the same type. - * - * Similar to `seq.map(...).flatten(true)`. - */ - flatMap( - mapper: (value: T, key: T, iter: this) => Iterable, - context?: any - ): Seq.Set; + /** + * Flat-maps the Seq, returning a Seq of the same type. + * + * Similar to `seq.map(...).flatten(true)`. + */ + flatMap( + mapper: (value: T, key: T, iter: this) => Iterable, + context?: any + ): Seq.Set; - /** - * Returns a new Seq with only the values for which the `predicate` - * function returns true. - * - * Note: `filter()` always returns a new instance, even if it results in - * not filtering out any values. - */ - filter( - predicate: (value: T, key: T, iter: this) => value is F, - context?: any - ): Seq.Set; - filter( - predicate: (value: T, key: T, iter: this) => any, - context?: any - ): this; + /** + * Returns a new Seq with only the values for which the `predicate` + * function returns true. + * + * Note: `filter()` always returns a new instance, even if it results in + * not filtering out any values. + */ + filter( + predicate: (value: T, key: T, iter: this) => value is F, + context?: any + ): Seq.Set; + filter( + predicate: (value: T, key: T, iter: this) => any, + context?: any + ): this; } -} + } -/** - * Creates a Seq. - * - * Returns a particular kind of `Seq` based on the input. - * - * * If a `Seq`, that same `Seq`. - * * If an `Collection`, a `Seq` of the same kind (Keyed, Indexed, or Set). - * * If an Array-like, an `Seq.Indexed`. - * * If an Iterable Object, an `Seq.Indexed`. - * * If an Object, a `Seq.Keyed`. - * - * Note: An Iterator itself will be treated as an object, becoming a `Seq.Keyed`, - * which is usually not what you want. You should turn your Iterator Object into - * an iterable object by defining a Symbol.iterator (or @@iterator) method which - * returns `this`. - * - * Note: `Seq` is a conversion function and not a class, and does not use the - * `new` keyword during construction. - */ -declare function Seq>(seq: S): S; -declare function Seq(collection: Collection.Keyed): Seq.Keyed; -declare function Seq(collection: Collection.Indexed): Seq.Indexed; -declare function Seq(collection: Collection.Set): Seq.Set; -declare function Seq(collection: Iterable): Seq.Indexed; -declare function Seq(obj: { [key: string]: V }): Seq.Keyed; -declare function Seq(): Seq; + /** + * Creates a Seq. + * + * Returns a particular kind of `Seq` based on the input. + * + * * If a `Seq`, that same `Seq`. + * * If an `Collection`, a `Seq` of the same kind (Keyed, Indexed, or Set). + * * If an Array-like, an `Seq.Indexed`. + * * If an Iterable Object, an `Seq.Indexed`. + * * If an Object, a `Seq.Keyed`. + * + * Note: An Iterator itself will be treated as an object, becoming a `Seq.Keyed`, + * which is usually not what you want. You should turn your Iterator Object into + * an iterable object by defining a Symbol.iterator (or @@iterator) method which + * returns `this`. + * + * Note: `Seq` is a conversion function and not a class, and does not use the + * `new` keyword during construction. + */ + declare function Seq>(seq: S): S; + declare function Seq(collection: Collection.Keyed): Seq.Keyed; + declare function Seq(collection: Collection.Indexed): Seq.Indexed; + declare function Seq(collection: Collection.Set): Seq.Set; + declare function Seq(collection: Iterable): Seq.Indexed; + declare function Seq(obj: {[key: string]: V}): Seq.Keyed; + declare function Seq(): Seq; -interface Seq extends Collection { + interface Seq extends Collection { /** * Some Seqs can describe their size lazily. When this is the case, @@ -3087,8 +3087,8 @@ interface Seq extends Collection { * value at every step. */ map( - mapper: (value: V, key: K, iter: this) => M, - context?: any + mapper: (value: V, key: K, iter: this) => M, + context?: any ): Seq; /** @@ -3106,8 +3106,8 @@ interface Seq extends Collection { * Note: used only for sets. */ map( - mapper: (value: V, key: K, iter: this) => M, - context?: any + mapper: (value: V, key: K, iter: this) => M, + context?: any ): Seq; /** @@ -3116,8 +3116,8 @@ interface Seq extends Collection { * Similar to `seq.map(...).flatten(true)`. */ flatMap( - mapper: (value: V, key: K, iter: this) => Iterable, - context?: any + mapper: (value: V, key: K, iter: this) => Iterable, + context?: any ): Seq; /** @@ -3127,8 +3127,8 @@ interface Seq extends Collection { * Note: Used only for sets. */ flatMap( - mapper: (value: V, key: K, iter: this) => Iterable, - context?: any + mapper: (value: V, key: K, iter: this) => Iterable, + context?: any ): Seq; /** @@ -3139,30 +3139,30 @@ interface Seq extends Collection { * not filtering out any values. */ filter( - predicate: (value: V, key: K, iter: this) => value is F, - context?: any + predicate: (value: V, key: K, iter: this) => value is F, + context?: any ): Seq; filter( - predicate: (value: V, key: K, iter: this) => any, - context?: any + predicate: (value: V, key: K, iter: this) => any, + context?: any ): this; -} + } -/** - * The `Collection` is a set of (key, value) entries which can be iterated, and - * is the base class for all collections in `immutable`, allowing them to - * make use of all the Collection methods (such as `map` and `filter`). - * - * Note: A collection is always iterated in the same order, however that order - * may not always be well defined, as is the case for the `Map` and `Set`. - * - * Collection is the abstract base class for concrete data structures. It - * cannot be constructed directly. - * - * Implementations should extend one of the subclasses, `Collection.Keyed`, - * `Collection.Indexed`, or `Collection.Set`. - */ -declare module Collection { + /** + * The `Collection` is a set of (key, value) entries which can be iterated, and + * is the base class for all collections in `immutable`, allowing them to + * make use of all the Collection methods (such as `map` and `filter`). + * + * Note: A collection is always iterated in the same order, however that order + * may not always be well defined, as is the case for the `Map` and `Set`. + * + * Collection is the abstract base class for concrete data structures. It + * cannot be constructed directly. + * + * Implementations should extend one of the subclasses, `Collection.Keyed`, + * `Collection.Indexed`, or `Collection.Set`. + */ + declare module Collection { /** * @deprecated use `const { isKeyed } = require('immutable')` @@ -3192,7 +3192,7 @@ declare module Collection { * tuple, in other words, `Collection#entries` is the default iterator for * Keyed Collections. */ - export module Keyed { } + export module Keyed {} /** * Creates a Collection.Keyed @@ -3204,140 +3204,140 @@ declare module Collection { * does not use the `new` keyword during construction. */ export function Keyed(collection: Iterable<[K, V]>): Collection.Keyed; - export function Keyed(obj: { [key: string]: V }): Collection.Keyed; + export function Keyed(obj: {[key: string]: V}): Collection.Keyed; export interface Keyed extends Collection { - /** - * Deeply converts this Keyed collection to equivalent native JavaScript Object. - * - * Converts keys to Strings. - */ - toJS(): Object; + /** + * Deeply converts this Keyed collection to equivalent native JavaScript Object. + * + * Converts keys to Strings. + */ + toJS(): Object; - /** - * Shallowly converts this Keyed collection to equivalent native JavaScript Object. - * - * Converts keys to Strings. - */ - toJSON(): { [key: string]: V }; + /** + * Shallowly converts this Keyed collection to equivalent native JavaScript Object. + * + * Converts keys to Strings. + */ + toJSON(): { [key: string]: V }; - /** - * Shallowly converts this collection to an Array. - */ - toArray(): Array<[K, V]>; + /** + * Shallowly converts this collection to an Array. + */ + toArray(): Array<[K, V]>; - /** - * Returns Seq.Keyed. - * @override - */ - toSeq(): Seq.Keyed; + /** + * Returns Seq.Keyed. + * @override + */ + toSeq(): Seq.Keyed; - // Sequence functions + // Sequence functions - /** - * Returns a new Collection.Keyed of the same type where the keys and values - * have been flipped. - * - * - * ```js - * const { Map } = require('immutable') - * Map({ a: 'z', b: 'y' }).flip() - * // Map { "z": "a", "y": "b" } - * ``` - */ - flip(): Collection.Keyed; + /** + * Returns a new Collection.Keyed of the same type where the keys and values + * have been flipped. + * + * + * ```js + * const { Map } = require('immutable') + * Map({ a: 'z', b: 'y' }).flip() + * // Map { "z": "a", "y": "b" } + * ``` + */ + flip(): Collection.Keyed; - /** - * Returns a new Collection with other collections concatenated to this one. - */ - concat(...collections: Array>): Collection.Keyed; - concat(...collections: Array<{ [key: string]: C }>): Collection.Keyed; + /** + * Returns a new Collection with other collections concatenated to this one. + */ + concat(...collections: Array>): Collection.Keyed; + concat(...collections: Array<{[key: string]: C}>): Collection.Keyed; - /** - * Returns a new Collection.Keyed with values passed through a - * `mapper` function. - * - * ```js - * const { Collection } = require('immutable') - * Collection.Keyed({ a: 1, b: 2 }).map(x => 10 * x) - * // Seq { "a": 10, "b": 20 } - * ``` - * - * Note: `map()` always returns a new instance, even if it produced the - * same value at every step. - */ - map( - mapper: (value: V, key: K, iter: this) => M, - context?: any - ): Collection.Keyed; + /** + * Returns a new Collection.Keyed with values passed through a + * `mapper` function. + * + * ```js + * const { Collection } = require('immutable') + * Collection.Keyed({ a: 1, b: 2 }).map(x => 10 * x) + * // Seq { "a": 10, "b": 20 } + * ``` + * + * Note: `map()` always returns a new instance, even if it produced the + * same value at every step. + */ + map( + mapper: (value: V, key: K, iter: this) => M, + context?: any + ): Collection.Keyed; - /** - * Returns a new Collection.Keyed of the same type with keys passed through - * a `mapper` function. - * - * - * ```js - * const { Map } = require('immutable') - * Map({ a: 1, b: 2 }).mapKeys(x => x.toUpperCase()) - * // Map { "A": 1, "B": 2 } - * ``` - * - * Note: `mapKeys()` always returns a new instance, even if it produced - * the same key at every step. - */ - mapKeys( - mapper: (key: K, value: V, iter: this) => M, - context?: any - ): Collection.Keyed; + /** + * Returns a new Collection.Keyed of the same type with keys passed through + * a `mapper` function. + * + * + * ```js + * const { Map } = require('immutable') + * Map({ a: 1, b: 2 }).mapKeys(x => x.toUpperCase()) + * // Map { "A": 1, "B": 2 } + * ``` + * + * Note: `mapKeys()` always returns a new instance, even if it produced + * the same key at every step. + */ + mapKeys( + mapper: (key: K, value: V, iter: this) => M, + context?: any + ): Collection.Keyed; - /** - * Returns a new Collection.Keyed of the same type with entries - * ([key, value] tuples) passed through a `mapper` function. - * - * - * ```js - * const { Map } = require('immutable') - * Map({ a: 1, b: 2 }) - * .mapEntries(([ k, v ]) => [ k.toUpperCase(), v * 2 ]) - * // Map { "A": 2, "B": 4 } - * ``` - * - * Note: `mapEntries()` always returns a new instance, even if it produced - * the same entry at every step. - */ - mapEntries( - mapper: (entry: [K, V], index: number, iter: this) => [KM, VM], - context?: any - ): Collection.Keyed; + /** + * Returns a new Collection.Keyed of the same type with entries + * ([key, value] tuples) passed through a `mapper` function. + * + * + * ```js + * const { Map } = require('immutable') + * Map({ a: 1, b: 2 }) + * .mapEntries(([ k, v ]) => [ k.toUpperCase(), v * 2 ]) + * // Map { "A": 2, "B": 4 } + * ``` + * + * Note: `mapEntries()` always returns a new instance, even if it produced + * the same entry at every step. + */ + mapEntries( + mapper: (entry: [K, V], index: number, iter: this) => [KM, VM], + context?: any + ): Collection.Keyed; - /** - * Flat-maps the Collection, returning a Collection of the same type. - * - * Similar to `collection.map(...).flatten(true)`. - */ - flatMap( - mapper: (value: V, key: K, iter: this) => Iterable<[KM, VM]>, - context?: any - ): Collection.Keyed; + /** + * Flat-maps the Collection, returning a Collection of the same type. + * + * Similar to `collection.map(...).flatten(true)`. + */ + flatMap( + mapper: (value: V, key: K, iter: this) => Iterable<[KM, VM]>, + context?: any + ): Collection.Keyed; - /** - * Returns a new Collection with only the values for which the `predicate` - * function returns true. - * - * Note: `filter()` always returns a new instance, even if it results in - * not filtering out any values. - */ - filter( - predicate: (value: V, key: K, iter: this) => value is F, - context?: any - ): Collection.Keyed; - filter( - predicate: (value: V, key: K, iter: this) => any, - context?: any - ): this; + /** + * Returns a new Collection with only the values for which the `predicate` + * function returns true. + * + * Note: `filter()` always returns a new instance, even if it results in + * not filtering out any values. + */ + filter( + predicate: (value: V, key: K, iter: this) => value is F, + context?: any + ): Collection.Keyed; + filter( + predicate: (value: V, key: K, iter: this) => any, + context?: any + ): this; - [Symbol.iterator](): IterableIterator<[K, V]>; + [Symbol.iterator](): IterableIterator<[K, V]>; } @@ -3356,7 +3356,7 @@ declare module Collection { * preserve indices, using them as keys, convert to a Collection.Keyed by * calling `toKeyedSeq`. */ - export module Indexed { } + export module Indexed {} /** * Creates a new Collection.Indexed. @@ -3367,268 +3367,268 @@ declare module Collection { export function Indexed(collection: Iterable): Collection.Indexed; export interface Indexed extends Collection { - /** - * Deeply converts this Indexed collection to equivalent native JavaScript Array. - */ - toJS(): Array; + /** + * Deeply converts this Indexed collection to equivalent native JavaScript Array. + */ + toJS(): Array; - /** - * Shallowly converts this Indexed collection to equivalent native JavaScript Array. - */ - toJSON(): Array; + /** + * Shallowly converts this Indexed collection to equivalent native JavaScript Array. + */ + toJSON(): Array; - /** - * Shallowly converts this collection to an Array. - */ - toArray(): Array; + /** + * Shallowly converts this collection to an Array. + */ + toArray(): Array; - // Reading values + // Reading values - /** - * Returns the value associated with the provided index, or notSetValue if - * the index is beyond the bounds of the Collection. - * - * `index` may be a negative number, which indexes back from the end of the - * Collection. `s.get(-1)` gets the last item in the Collection. - */ - get(index: number, notSetValue: NSV): T | NSV; - get(index: number): T | undefined; + /** + * Returns the value associated with the provided index, or notSetValue if + * the index is beyond the bounds of the Collection. + * + * `index` may be a negative number, which indexes back from the end of the + * Collection. `s.get(-1)` gets the last item in the Collection. + */ + get(index: number, notSetValue: NSV): T | NSV; + get(index: number): T | undefined; - // Conversion to Seq + // Conversion to Seq - /** - * Returns Seq.Indexed. - * @override - */ - toSeq(): Seq.Indexed; + /** + * Returns Seq.Indexed. + * @override + */ + toSeq(): Seq.Indexed; - /** - * If this is a collection of [key, value] entry tuples, it will return a - * Seq.Keyed of those entries. - */ - fromEntrySeq(): Seq.Keyed; + /** + * If this is a collection of [key, value] entry tuples, it will return a + * Seq.Keyed of those entries. + */ + fromEntrySeq(): Seq.Keyed; - // Combination + // Combination - /** - * Returns a Collection of the same type with `separator` between each item - * in this Collection. - */ - interpose(separator: T): this; + /** + * Returns a Collection of the same type with `separator` between each item + * in this Collection. + */ + interpose(separator: T): this; - /** - * Returns a Collection of the same type with the provided `collections` - * interleaved into this collection. - * - * The resulting Collection includes the first item from each, then the - * second from each, etc. - * - * - * ```js - * const { List } = require('immutable') - * List([ 1, 2, 3 ]).interleave(List([ 'A', 'B', 'C' ])) - * // List [ 1, "A", 2, "B", 3, "C"" ] - * ``` - * - * The shortest Collection stops interleave. - * - * - * ```js - * List([ 1, 2, 3 ]).interleave( - * List([ 'A', 'B' ]), - * List([ 'X', 'Y', 'Z' ]) - * ) - * // List [ 1, "A", "X", 2, "B", "Y"" ] - * ``` - * - * Since `interleave()` re-indexes values, it produces a complete copy, - * which has `O(N)` complexity. - * - * Note: `interleave` *cannot* be used in `withMutations`. - */ - interleave(...collections: Array>): this; + /** + * Returns a Collection of the same type with the provided `collections` + * interleaved into this collection. + * + * The resulting Collection includes the first item from each, then the + * second from each, etc. + * + * + * ```js + * const { List } = require('immutable') + * List([ 1, 2, 3 ]).interleave(List([ 'A', 'B', 'C' ])) + * // List [ 1, "A", 2, "B", 3, "C"" ] + * ``` + * + * The shortest Collection stops interleave. + * + * + * ```js + * List([ 1, 2, 3 ]).interleave( + * List([ 'A', 'B' ]), + * List([ 'X', 'Y', 'Z' ]) + * ) + * // List [ 1, "A", "X", 2, "B", "Y"" ] + * ``` + * + * Since `interleave()` re-indexes values, it produces a complete copy, + * which has `O(N)` complexity. + * + * Note: `interleave` *cannot* be used in `withMutations`. + */ + interleave(...collections: Array>): this; - /** - * Splice returns a new indexed Collection by replacing a region of this - * Collection with new values. If values are not provided, it only skips the - * region to be removed. - * - * `index` may be a negative number, which indexes back from the end of the - * Collection. `s.splice(-2)` splices after the second to last item. - * - * - * ```js - * const { List } = require('immutable') - * List([ 'a', 'b', 'c', 'd' ]).splice(1, 2, 'q', 'r', 's') - * // List [ "a", "q", "r", "s", "d" ] - * ``` - * - * Since `splice()` re-indexes values, it produces a complete copy, which - * has `O(N)` complexity. - * - * Note: `splice` *cannot* be used in `withMutations`. - */ - splice( - index: number, - removeNum: number, - ...values: Array - ): this; + /** + * Splice returns a new indexed Collection by replacing a region of this + * Collection with new values. If values are not provided, it only skips the + * region to be removed. + * + * `index` may be a negative number, which indexes back from the end of the + * Collection. `s.splice(-2)` splices after the second to last item. + * + * + * ```js + * const { List } = require('immutable') + * List([ 'a', 'b', 'c', 'd' ]).splice(1, 2, 'q', 'r', 's') + * // List [ "a", "q", "r", "s", "d" ] + * ``` + * + * Since `splice()` re-indexes values, it produces a complete copy, which + * has `O(N)` complexity. + * + * Note: `splice` *cannot* be used in `withMutations`. + */ + splice( + index: number, + removeNum: number, + ...values: Array + ): this; - /** - * Returns a Collection of the same type "zipped" with the provided - * collections. - * - * Like `zipWith`, but using the default `zipper`: creating an `Array`. - * - * - * - * ```js - * const a = List([ 1, 2, 3 ]); - * const b = List([ 4, 5, 6 ]); - * const c = a.zip(b); // List [ [ 1, 4 ], [ 2, 5 ], [ 3, 6 ] ] - * ``` - */ - zip(other: Collection): Collection.Indexed<[T, U]>; - zip(other: Collection, other2: Collection): Collection.Indexed<[T, U, V]>; - zip(...collections: Array>): Collection.Indexed; + /** + * Returns a Collection of the same type "zipped" with the provided + * collections. + * + * Like `zipWith`, but using the default `zipper`: creating an `Array`. + * + * + * + * ```js + * const a = List([ 1, 2, 3 ]); + * const b = List([ 4, 5, 6 ]); + * const c = a.zip(b); // List [ [ 1, 4 ], [ 2, 5 ], [ 3, 6 ] ] + * ``` + */ + zip(other: Collection): Collection.Indexed<[T,U]>; + zip(other: Collection, other2: Collection): Collection.Indexed<[T,U,V]>; + zip(...collections: Array>): Collection.Indexed; - /** - * Returns a Collection "zipped" with the provided collections. - * - * Unlike `zip`, `zipAll` continues zipping until the longest collection is - * exhausted. Missing values from shorter collections are filled with `undefined`. - * - * ```js - * const a = List([ 1, 2 ]); - * const b = List([ 3, 4, 5 ]); - * const c = a.zipAll(b); // List [ [ 1, 3 ], [ 2, 4 ], [ undefined, 5 ] ] - * ``` - */ - zipAll(other: Collection): Collection.Indexed<[T, U]>; - zipAll(other: Collection, other2: Collection): Collection.Indexed<[T, U, V]>; - zipAll(...collections: Array>): Collection.Indexed; + /** + * Returns a Collection "zipped" with the provided collections. + * + * Unlike `zip`, `zipAll` continues zipping until the longest collection is + * exhausted. Missing values from shorter collections are filled with `undefined`. + * + * ```js + * const a = List([ 1, 2 ]); + * const b = List([ 3, 4, 5 ]); + * const c = a.zipAll(b); // List [ [ 1, 3 ], [ 2, 4 ], [ undefined, 5 ] ] + * ``` + */ + zipAll(other: Collection): Collection.Indexed<[T,U]>; + zipAll(other: Collection, other2: Collection): Collection.Indexed<[T,U,V]>; + zipAll(...collections: Array>): Collection.Indexed; - /** - * Returns a Collection of the same type "zipped" with the provided - * collections by using a custom `zipper` function. - * - * - * ```js - * const a = List([ 1, 2, 3 ]); - * const b = List([ 4, 5, 6 ]); - * const c = a.zipWith((a, b) => a + b, b); - * // List [ 5, 7, 9 ] - * ``` - */ - zipWith( - zipper: (value: T, otherValue: U) => Z, - otherCollection: Collection - ): Collection.Indexed; - zipWith( - zipper: (value: T, otherValue: U, thirdValue: V) => Z, - otherCollection: Collection, - thirdCollection: Collection - ): Collection.Indexed; - zipWith( - zipper: (...any: Array) => Z, - ...collections: Array> - ): Collection.Indexed; + /** + * Returns a Collection of the same type "zipped" with the provided + * collections by using a custom `zipper` function. + * + * + * ```js + * const a = List([ 1, 2, 3 ]); + * const b = List([ 4, 5, 6 ]); + * const c = a.zipWith((a, b) => a + b, b); + * // List [ 5, 7, 9 ] + * ``` + */ + zipWith( + zipper: (value: T, otherValue: U) => Z, + otherCollection: Collection + ): Collection.Indexed; + zipWith( + zipper: (value: T, otherValue: U, thirdValue: V) => Z, + otherCollection: Collection, + thirdCollection: Collection + ): Collection.Indexed; + zipWith( + zipper: (...any: Array) => Z, + ...collections: Array> + ): Collection.Indexed; - // Search for value + // Search for value - /** - * Returns the first index at which a given value can be found in the - * Collection, or -1 if it is not present. - */ - indexOf(searchValue: T): number; + /** + * Returns the first index at which a given value can be found in the + * Collection, or -1 if it is not present. + */ + indexOf(searchValue: T): number; - /** - * Returns the last index at which a given value can be found in the - * Collection, or -1 if it is not present. - */ - lastIndexOf(searchValue: T): number; + /** + * Returns the last index at which a given value can be found in the + * Collection, or -1 if it is not present. + */ + lastIndexOf(searchValue: T): number; - /** - * Returns the first index in the Collection where a value satisfies the - * provided predicate function. Otherwise -1 is returned. - */ - findIndex( - predicate: (value: T, index: number, iter: this) => boolean, - context?: any - ): number; + /** + * Returns the first index in the Collection where a value satisfies the + * provided predicate function. Otherwise -1 is returned. + */ + findIndex( + predicate: (value: T, index: number, iter: this) => boolean, + context?: any + ): number; - /** - * Returns the last index in the Collection where a value satisfies the - * provided predicate function. Otherwise -1 is returned. - */ - findLastIndex( - predicate: (value: T, index: number, iter: this) => boolean, - context?: any - ): number; + /** + * Returns the last index in the Collection where a value satisfies the + * provided predicate function. Otherwise -1 is returned. + */ + findLastIndex( + predicate: (value: T, index: number, iter: this) => boolean, + context?: any + ): number; - // Sequence algorithms + // Sequence algorithms - /** - * Returns a new Collection with other collections concatenated to this one. - */ - concat(...valuesOrCollections: Array | C>): Collection.Indexed; + /** + * Returns a new Collection with other collections concatenated to this one. + */ + concat(...valuesOrCollections: Array | C>): Collection.Indexed; - /** - * Returns a new Collection.Indexed with values passed through a - * `mapper` function. - * - * ```js - * const { Collection } = require('immutable') - * Collection.Indexed([1,2]).map(x => 10 * x) - * // Seq [ 1, 2 ] - * ``` - * - * Note: `map()` always returns a new instance, even if it produced the - * same value at every step. - */ - map( - mapper: (value: T, key: number, iter: this) => M, - context?: any - ): Collection.Indexed; + /** + * Returns a new Collection.Indexed with values passed through a + * `mapper` function. + * + * ```js + * const { Collection } = require('immutable') + * Collection.Indexed([1,2]).map(x => 10 * x) + * // Seq [ 1, 2 ] + * ``` + * + * Note: `map()` always returns a new instance, even if it produced the + * same value at every step. + */ + map( + mapper: (value: T, key: number, iter: this) => M, + context?: any + ): Collection.Indexed; - /** - * Flat-maps the Collection, returning a Collection of the same type. - * - * Similar to `collection.map(...).flatten(true)`. - */ - flatMap( - mapper: (value: T, key: number, iter: this) => Iterable, - context?: any - ): Collection.Indexed; + /** + * Flat-maps the Collection, returning a Collection of the same type. + * + * Similar to `collection.map(...).flatten(true)`. + */ + flatMap( + mapper: (value: T, key: number, iter: this) => Iterable, + context?: any + ): Collection.Indexed; - /** - * Returns a new Collection with only the values for which the `predicate` - * function returns true. - * - * Note: `filter()` always returns a new instance, even if it results in - * not filtering out any values. - */ - filter( - predicate: (value: T, index: number, iter: this) => value is F, - context?: any - ): Collection.Indexed; - filter( - predicate: (value: T, index: number, iter: this) => any, - context?: any - ): this; + /** + * Returns a new Collection with only the values for which the `predicate` + * function returns true. + * + * Note: `filter()` always returns a new instance, even if it results in + * not filtering out any values. + */ + filter( + predicate: (value: T, index: number, iter: this) => value is F, + context?: any + ): Collection.Indexed; + filter( + predicate: (value: T, index: number, iter: this) => any, + context?: any + ): this; - [Symbol.iterator](): IterableIterator; + [Symbol.iterator](): IterableIterator; } @@ -3649,7 +3649,7 @@ declare module Collection { * ) * ``` */ - export module Set { } + export module Set {} /** * Similar to `Collection()`, but always returns a Collection.Set. @@ -3660,109 +3660,109 @@ declare module Collection { export function Set(collection: Iterable): Collection.Set; export interface Set extends Collection { - /** - * Deeply converts this Set collection to equivalent native JavaScript Array. - */ - toJS(): Array; + /** + * Deeply converts this Set collection to equivalent native JavaScript Array. + */ + toJS(): Array; - /** - * Shallowly converts this Set collection to equivalent native JavaScript Array. - */ - toJSON(): Array; + /** + * Shallowly converts this Set collection to equivalent native JavaScript Array. + */ + toJSON(): Array; - /** - * Shallowly converts this collection to an Array. - */ - toArray(): Array; + /** + * Shallowly converts this collection to an Array. + */ + toArray(): Array; - /** - * Returns Seq.Set. - * @override - */ - toSeq(): Seq.Set; + /** + * Returns Seq.Set. + * @override + */ + toSeq(): Seq.Set; - // Sequence algorithms + // Sequence algorithms - /** - * Returns a new Collection with other collections concatenated to this one. - */ - concat(...collections: Array>): Collection.Set; + /** + * Returns a new Collection with other collections concatenated to this one. + */ + concat(...collections: Array>): Collection.Set; - /** - * Returns a new Collection.Set with values passed through a - * `mapper` function. - * - * ``` - * Collection.Set([ 1, 2 ]).map(x => 10 * x) - * // Seq { 1, 2 } - * ``` - * - * Note: `map()` always returns a new instance, even if it produced the - * same value at every step. - */ - map( - mapper: (value: T, key: T, iter: this) => M, - context?: any - ): Collection.Set; + /** + * Returns a new Collection.Set with values passed through a + * `mapper` function. + * + * ``` + * Collection.Set([ 1, 2 ]).map(x => 10 * x) + * // Seq { 1, 2 } + * ``` + * + * Note: `map()` always returns a new instance, even if it produced the + * same value at every step. + */ + map( + mapper: (value: T, key: T, iter: this) => M, + context?: any + ): Collection.Set; - /** - * Flat-maps the Collection, returning a Collection of the same type. - * - * Similar to `collection.map(...).flatten(true)`. - */ - flatMap( - mapper: (value: T, key: T, iter: this) => Iterable, - context?: any - ): Collection.Set; + /** + * Flat-maps the Collection, returning a Collection of the same type. + * + * Similar to `collection.map(...).flatten(true)`. + */ + flatMap( + mapper: (value: T, key: T, iter: this) => Iterable, + context?: any + ): Collection.Set; - /** - * Returns a new Collection with only the values for which the `predicate` - * function returns true. - * - * Note: `filter()` always returns a new instance, even if it results in - * not filtering out any values. - */ - filter( - predicate: (value: T, key: T, iter: this) => value is F, - context?: any - ): Collection.Set; - filter( - predicate: (value: T, key: T, iter: this) => any, - context?: any - ): this; + /** + * Returns a new Collection with only the values for which the `predicate` + * function returns true. + * + * Note: `filter()` always returns a new instance, even if it results in + * not filtering out any values. + */ + filter( + predicate: (value: T, key: T, iter: this) => value is F, + context?: any + ): Collection.Set; + filter( + predicate: (value: T, key: T, iter: this) => any, + context?: any + ): this; - [Symbol.iterator](): IterableIterator; + [Symbol.iterator](): IterableIterator; } -} + } -/** - * Creates a Collection. - * - * The type of Collection created is based on the input. - * - * * If an `Collection`, that same `Collection`. - * * If an Array-like, an `Collection.Indexed`. - * * If an Object with an Iterator defined, an `Collection.Indexed`. - * * If an Object, an `Collection.Keyed`. - * - * This methods forces the conversion of Objects and Strings to Collections. - * If you want to ensure that a Collection of one item is returned, use - * `Seq.of`. - * - * Note: An Iterator itself will be treated as an object, becoming a `Seq.Keyed`, - * which is usually not what you want. You should turn your Iterator Object into - * an iterable object by defining a Symbol.iterator (or @@iterator) method which - * returns `this`. - * - * Note: `Collection` is a conversion function and not a class, and does not - * use the `new` keyword during construction. - */ -declare function Collection>(collection: I): I; -declare function Collection(collection: Iterable): Collection.Indexed; -declare function Collection(obj: { [key: string]: V }): Collection.Keyed; + /** + * Creates a Collection. + * + * The type of Collection created is based on the input. + * + * * If an `Collection`, that same `Collection`. + * * If an Array-like, an `Collection.Indexed`. + * * If an Object with an Iterator defined, an `Collection.Indexed`. + * * If an Object, an `Collection.Keyed`. + * + * This methods forces the conversion of Objects and Strings to Collections. + * If you want to ensure that a Collection of one item is returned, use + * `Seq.of`. + * + * Note: An Iterator itself will be treated as an object, becoming a `Seq.Keyed`, + * which is usually not what you want. You should turn your Iterator Object into + * an iterable object by defining a Symbol.iterator (or @@iterator) method which + * returns `this`. + * + * Note: `Collection` is a conversion function and not a class, and does not + * use the `new` keyword during construction. + */ + declare function Collection>(collection: I): I; + declare function Collection(collection: Iterable): Collection.Indexed; + declare function Collection(obj: {[key: string]: V}): Collection.Keyed; -interface Collection extends ValueObject { + interface Collection extends ValueObject { // Value equality @@ -4109,8 +4109,8 @@ interface Collection extends ValueObject { * value at every step. */ map( - mapper: (value: V, key: K, iter: this) => M, - context?: any + mapper: (value: V, key: K, iter: this) => M, + context?: any ): Collection; /** @@ -4136,12 +4136,12 @@ interface Collection extends ValueObject { * not filtering out any values. */ filter( - predicate: (value: V, key: K, iter: this) => value is F, - context?: any + predicate: (value: V, key: K, iter: this) => value is F, + context?: any ): Collection; filter( - predicate: (value: V, key: K, iter: this) => any, - context?: any + predicate: (value: V, key: K, iter: this) => any, + context?: any ): this; /** @@ -4159,8 +4159,8 @@ interface Collection extends ValueObject { * not filtering out any values. */ filterNot( - predicate: (value: V, key: K, iter: this) => boolean, - context?: any + predicate: (value: V, key: K, iter: this) => boolean, + context?: any ): this; /** @@ -4215,8 +4215,8 @@ interface Collection extends ValueObject { * Note: This is always an eager operation. */ sortBy( - comparatorValueMapper: (value: V, key: K, iter: this) => C, - comparator?: (valueA: C, valueB: C) => number + comparatorValueMapper: (value: V, key: K, iter: this) => C, + comparator?: (valueA: C, valueB: C) => number ): this; /** @@ -4244,8 +4244,8 @@ interface Collection extends ValueObject { * ``` */ groupBy( - grouper: (value: V, key: K, iter: this) => G, - context?: any + grouper: (value: V, key: K, iter: this) => G, + context?: any ): /*Map*/Seq.Keyed>; @@ -4259,8 +4259,8 @@ interface Collection extends ValueObject { * (including the last iteration which returned false). */ forEach( - sideEffect: (value: V, key: K, iter: this) => any, - context?: any + sideEffect: (value: V, key: K, iter: this) => any, + context?: any ): number; @@ -4321,8 +4321,8 @@ interface Collection extends ValueObject { * ``` */ skipWhile( - predicate: (value: V, key: K, iter: this) => boolean, - context?: any + predicate: (value: V, key: K, iter: this) => boolean, + context?: any ): this; /** @@ -4338,8 +4338,8 @@ interface Collection extends ValueObject { * ``` */ skipUntil( - predicate: (value: V, key: K, iter: this) => boolean, - context?: any + predicate: (value: V, key: K, iter: this) => boolean, + context?: any ): this; /** @@ -4367,8 +4367,8 @@ interface Collection extends ValueObject { * ``` */ takeWhile( - predicate: (value: V, key: K, iter: this) => boolean, - context?: any + predicate: (value: V, key: K, iter: this) => boolean, + context?: any ): this; /** @@ -4384,8 +4384,8 @@ interface Collection extends ValueObject { * ``` */ takeUntil( - predicate: (value: V, key: K, iter: this) => boolean, - context?: any + predicate: (value: V, key: K, iter: this) => boolean, + context?: any ): this; @@ -4422,8 +4422,8 @@ interface Collection extends ValueObject { * Similar to `collection.map(...).flatten(true)`. */ flatMap( - mapper: (value: V, key: K, iter: this) => Iterable, - context?: any + mapper: (value: V, key: K, iter: this) => Iterable, + context?: any ): Collection; /** @@ -4433,8 +4433,8 @@ interface Collection extends ValueObject { * Used for Dictionaries only. */ flatMap( - mapper: (value: V, key: K, iter: this) => Iterable<[KM, VM]>, - context?: any + mapper: (value: V, key: K, iter: this) => Iterable<[KM, VM]>, + context?: any ): Collection; // Reducing a value @@ -4449,12 +4449,12 @@ interface Collection extends ValueObject { * @see `Array#reduce`. */ reduce( - reducer: (reduction: R, value: V, key: K, iter: this) => R, - initialReduction: R, - context?: any + reducer: (reduction: R, value: V, key: K, iter: this) => R, + initialReduction: R, + context?: any ): R; reduce( - reducer: (reduction: V | R, value: V, key: K, iter: this) => R + reducer: (reduction: V | R, value: V, key: K, iter: this) => R ): R; /** @@ -4464,28 +4464,28 @@ interface Collection extends ValueObject { * with `Array#reduceRight`. */ reduceRight( - reducer: (reduction: R, value: V, key: K, iter: this) => R, - initialReduction: R, - context?: any + reducer: (reduction: R, value: V, key: K, iter: this) => R, + initialReduction: R, + context?: any ): R; reduceRight( - reducer: (reduction: V | R, value: V, key: K, iter: this) => R + reducer: (reduction: V | R, value: V, key: K, iter: this) => R ): R; /** * True if `predicate` returns true for all entries in the Collection. */ every( - predicate: (value: V, key: K, iter: this) => boolean, - context?: any + predicate: (value: V, key: K, iter: this) => boolean, + context?: any ): boolean; /** * True if `predicate` returns true for any entry in the Collection. */ some( - predicate: (value: V, key: K, iter: this) => boolean, - context?: any + predicate: (value: V, key: K, iter: this) => boolean, + context?: any ): boolean; /** @@ -4514,8 +4514,8 @@ interface Collection extends ValueObject { */ count(): number; count( - predicate: (value: V, key: K, iter: this) => boolean, - context?: any + predicate: (value: V, key: K, iter: this) => boolean, + context?: any ): number; /** @@ -4525,8 +4525,8 @@ interface Collection extends ValueObject { * Note: This is not a lazy operation. */ countBy( - grouper: (value: V, key: K, iter: this) => G, - context?: any + grouper: (value: V, key: K, iter: this) => G, + context?: any ): Map; @@ -4536,9 +4536,9 @@ interface Collection extends ValueObject { * Returns the first value for which the `predicate` returns true. */ find( - predicate: (value: V, key: K, iter: this) => boolean, - context?: any, - notSetValue?: V + predicate: (value: V, key: K, iter: this) => boolean, + context?: any, + notSetValue?: V ): V | undefined; /** @@ -4547,18 +4547,18 @@ interface Collection extends ValueObject { * Note: `predicate` will be called for each entry in reverse. */ findLast( - predicate: (value: V, key: K, iter: this) => boolean, - context?: any, - notSetValue?: V + predicate: (value: V, key: K, iter: this) => boolean, + context?: any, + notSetValue?: V ): V | undefined; /** * Returns the first [key, value] entry for which the `predicate` returns true. */ findEntry( - predicate: (value: V, key: K, iter: this) => boolean, - context?: any, - notSetValue?: V + predicate: (value: V, key: K, iter: this) => boolean, + context?: any, + notSetValue?: V ): [K, V] | undefined; /** @@ -4568,17 +4568,17 @@ interface Collection extends ValueObject { * Note: `predicate` will be called for each entry in reverse. */ findLastEntry( - predicate: (value: V, key: K, iter: this) => boolean, - context?: any, - notSetValue?: V + predicate: (value: V, key: K, iter: this) => boolean, + context?: any, + notSetValue?: V ): [K, V] | undefined; /** * Returns the key for which the `predicate` returns true. */ findKey( - predicate: (value: V, key: K, iter: this) => boolean, - context?: any + predicate: (value: V, key: K, iter: this) => boolean, + context?: any ): K | undefined; /** @@ -4587,8 +4587,8 @@ interface Collection extends ValueObject { * Note: `predicate` will be called for each entry in reverse. */ findLastKey( - predicate: (value: V, key: K, iter: this) => boolean, - context?: any + predicate: (value: V, key: K, iter: this) => boolean, + context?: any ): K | undefined; /** @@ -4626,8 +4626,8 @@ interface Collection extends ValueObject { * */ maxBy( - comparatorValueMapper: (value: V, key: K, iter: this) => C, - comparator?: (valueA: C, valueB: C) => number + comparatorValueMapper: (value: V, key: K, iter: this) => C, + comparator?: (valueA: C, valueB: C) => number ): V | undefined; /** @@ -4655,8 +4655,8 @@ interface Collection extends ValueObject { * */ minBy( - comparatorValueMapper: (value: V, key: K, iter: this) => C, - comparator?: (valueA: C, valueB: C) => number + comparatorValueMapper: (value: V, key: K, iter: this) => C, + comparator?: (valueA: C, valueB: C) => number ): V | undefined; @@ -4671,12 +4671,12 @@ interface Collection extends ValueObject { * True if this Collection includes every value in `iter`. */ isSuperset(iter: Iterable): boolean; -} + } -/** - * The interface to fulfill to qualify as a Value Object. - */ -interface ValueObject { + /** + * The interface to fulfill to qualify as a Value Object. + */ + interface ValueObject { /** * True if this and the other Collection have value equality, as defined * by `Immutable.is()`. @@ -4718,7 +4718,7 @@ interface ValueObject { * [Hash Collision]: http://en.wikipedia.org/wiki/Collision_(computer_science) */ hashCode(): number; -} + } type IFunction = (...args: Array) => T; type IObject = Record; @@ -5531,7 +5531,7 @@ declare class MediaAnnotation ext type SignatureInfo = { type: 'pspdfkit/signature-info'; - signatureType: SignatureTypeType | null | undefined; + signatureType?: SignatureTypeType | null | undefined; signerName: string | null | undefined; creationDate: Date | null | undefined; signatureReason: string | null | undefined; @@ -6001,8 +6001,8 @@ type BackendRequiredKeys = 'id' | 'v' | 'pageIndex' | 'type' | 'bbox'; type AnnotationBackendJSON = { [P in keyof K]?: NonNullable; } & { - [P in Intersection]-?: Exclude, undefined>; - }; + [P in Intersection]-?: Exclude, undefined>; +}; type AnnotationsUnion = { [K in keyof AnnotationSerializerTypeMap]: AnnotationSerializerTypeMap[K]['annotation']; }[keyof AnnotationSerializerTypeMap]; @@ -6067,6 +6067,197 @@ type SerializedAdditionalActionsType = { }; }; +type Glyph = { + c: string; + rect: Rect; +}; + +declare const SearchType: { + readonly TEXT: "text"; + readonly PRESET: "preset"; + readonly REGEX: "regex"; +}; +type ISearchType = (typeof SearchType)[keyof typeof SearchType]; + +declare function toJSON(bookmark: Bookmark): BookmarkJSON; + +type ID$1 = string; +type BookmarkProps = { + id: ID$1 | null; + pdfBookmarkId: ID$1 | null; + name: string | null; + sortKey: number | null; + action: Action | null; +}; +declare const Bookmark_base: Record$1.Factory; +declare class Bookmark extends Bookmark_base { + id: ID$1; + action: Action; + static toSerializableObject: typeof toJSON; + static fromSerializableObject: (bookmark: BookmarkJSON) => Bookmark; +} + +type Rotation$1 = 0 | 90 | 180 | 270; +type AddPageConfiguration = { + backgroundColor: Color; + pageWidth: number; + pageHeight: number; + rotateBy: Rotation$1; + insets?: Rect; +}; +type OperationAttachment = string | File | Blob; +type min = number; +type max = number; +type Range = [min, max]; +type ImportPageIndex = Array; +type DocumentMetadata = { + title?: string; + author?: string; +}; +type NonSerializableDocumentOperations = { + type: 'removePages'; + pageIndexes: Array; +} | { + type: 'duplicatePages'; + pageIndexes: Array; +} | { + type: 'movePages'; + pageIndexes: Array; + afterPageIndex: number; +} | { + type: 'movePages'; + pageIndexes: Array; + beforePageIndex: number; +} | { + type: 'rotatePages'; + pageIndexes: Array; + rotateBy: Rotation$1; +} | { + type: 'keepPages'; + pageIndexes: Array; +} | { + type: 'importDocument'; + afterPageIndex: number; + treatImportedDocumentAsOnePage?: boolean; + document: OperationAttachment; + importedPageIndexes?: ImportPageIndex; +} | { + type: 'importDocument'; + beforePageIndex: number; + treatImportedDocumentAsOnePage?: boolean; + document: OperationAttachment; + importedPageIndexes?: ImportPageIndex; +} | { + type: 'applyInstantJson'; + instantJson: Record; + dataFilePath: OperationAttachment; +} | { + type: 'applyXfdf'; + xfdf: string; + ignorePageRotation?: boolean; + dataFilePath: OperationAttachment; +} | { + type: 'flattenAnnotations'; + pageIndexes?: Array; + annotationIds?: string[]; +} | { + type: 'setPageLabel'; + pageIndexes?: Array; + pageLabel?: string; +} | { + type: 'performOcr'; + pageIndexes?: Array | 'all'; + language: string; +} | { + type: 'applyRedactions'; +} | { + type: 'updateMetadata'; + metadata: DocumentMetadata; +}; +type DocumentOperation = (AddPageConfiguration & { + type: 'addPage'; + afterPageIndex: number; +}) | (AddPageConfiguration & { + type: 'addPage'; + beforePageIndex: number; +}) | { + type: 'cropPages'; + pageIndexes?: Array; + cropBox: Rect; +} | NonSerializableDocumentOperations; + +type BaseFormFieldJSON = { + v: 1; + pdfObjectId?: number | null; + annotationIds: Array; + name: string; + label: string; + flags?: FormFieldFlags; + id: string; + additionalActions?: SerializedAdditionalActionsType; + group?: IGroup; + permissions?: IPermissions; +}; +type ChoiceFormFieldJSON = BaseFormFieldJSON & { + type: 'pspdfkit/form-field/listbox' | 'pspdfkit/form-field/combobox'; + options: Array; + multiSelect: boolean; + commitOnChange: boolean; + defaultValues: Array; +}; +type ListBoxFormFieldJSON = ChoiceFormFieldJSON & { + type: 'pspdfkit/form-field/listbox'; +}; +type DoNotSpellCheckPropertyPair = XOR, Record<'doNotSpellcheck', boolean>>; +type ComboBoxFormFieldJSON = ChoiceFormFieldJSON & { + type: 'pspdfkit/form-field/combobox'; + edit: boolean; +} & DoNotSpellCheckPropertyPair; +type CheckBoxFormFieldJSON = BaseFormFieldJSON & { + type: 'pspdfkit/form-field/checkbox'; + options: Array; + defaultValues: Array; +}; +type RadioButtonFormFieldJSON = BaseFormFieldJSON & { + type: 'pspdfkit/form-field/radio'; + options: Array; + noToggleToOff: boolean; + radiosInUnison: boolean; + defaultValue: string; +}; +type TextFormFieldJSON = BaseFormFieldJSON & { + type: 'pspdfkit/form-field/text'; + password: boolean; + maxLength?: number | null; + doNotScroll: boolean; + multiLine: boolean; + defaultValue: string; + comb: boolean; +} & DoNotSpellCheckPropertyPair; +type ButtonFormFieldJSON = BaseFormFieldJSON & { + type: 'pspdfkit/form-field/button'; + buttonLabel: string | null; +}; +type SignatureFormFieldJSON = BaseFormFieldJSON & { + type: 'pspdfkit/form-field/signature'; +}; +type FormFieldJSON = ListBoxFormFieldJSON | ComboBoxFormFieldJSON | RadioButtonFormFieldJSON | CheckBoxFormFieldJSON | TextFormFieldJSON | ButtonFormFieldJSON | SignatureFormFieldJSON; + +type OCGLayer = { + name: string; + ocgId: number; + radioGroup?: number; +}; +type OCGCollection = { + name?: string; + ocgId?: number; + layers: OCGLayer[]; +}; +type OCG = OCGLayer | OCGCollection; +type OCGVisibilityState = { + visibleOCGIds: number[]; +}; + type IRectJSON = [left: number, top: number, width: number, height: number]; type BaseAnnotationJSON = { @@ -6267,63 +6458,6 @@ type CommentMarkerAnnotationJSON = Omit & { }; type AnnotationJSONUnion = TextMarkupAnnotationJSON | TextAnnotationJSON | WidgetAnnotationJSON | RedactionAnnotationJSON | StampAnnotationJSON | NoteAnnotationJSON | LinkAnnotationJSON | InkAnnotationJSON | RectangleAnnotationJSON | PolylineAnnotationJSON | PolygonAnnotationJSON | LineAnnotationJSON | EllipseAnnotationJSON | ImageAnnotationJSON | UnknownAnnotationJSON | MediaAnnotationJSON | CommentMarkerAnnotationJSON; -type BaseFormFieldJSON = { - v: 1; - pdfObjectId?: number | null; - annotationIds: Array; - name: string; - label: string; - flags?: FormFieldFlags; - id: string; - additionalActions?: SerializedAdditionalActionsType; - group?: IGroup; - permissions?: IPermissions; -}; -type ChoiceFormFieldJSON = BaseFormFieldJSON & { - type: 'pspdfkit/form-field/listbox' | 'pspdfkit/form-field/combobox'; - options: Array; - multiSelect: boolean; - commitOnChange: boolean; - defaultValues: Array; -}; -type ListBoxFormFieldJSON = ChoiceFormFieldJSON & { - type: 'pspdfkit/form-field/listbox'; -}; -type DoNotSpellCheckPropertyPair = XOR, Record<'doNotSpellcheck', boolean>>; -type ComboBoxFormFieldJSON = ChoiceFormFieldJSON & { - type: 'pspdfkit/form-field/combobox'; - edit: boolean; -} & DoNotSpellCheckPropertyPair; -type CheckBoxFormFieldJSON = BaseFormFieldJSON & { - type: 'pspdfkit/form-field/checkbox'; - options: Array; - defaultValues: Array; -}; -type RadioButtonFormFieldJSON = BaseFormFieldJSON & { - type: 'pspdfkit/form-field/radio'; - options: Array; - noToggleToOff: boolean; - radiosInUnison: boolean; - defaultValue: string; -}; -type TextFormFieldJSON = BaseFormFieldJSON & { - type: 'pspdfkit/form-field/text'; - password: boolean; - maxLength?: number | null; - doNotScroll: boolean; - multiLine: boolean; - defaultValue: string; - comb: boolean; -} & DoNotSpellCheckPropertyPair; -type ButtonFormFieldJSON = BaseFormFieldJSON & { - type: 'pspdfkit/form-field/button'; - buttonLabel: string | null; -}; -type SignatureFormFieldJSON = BaseFormFieldJSON & { - type: 'pspdfkit/form-field/signature'; -}; -type FormFieldJSON = ListBoxFormFieldJSON | ComboBoxFormFieldJSON | RadioButtonFormFieldJSON | CheckBoxFormFieldJSON | TextFormFieldJSON | ButtonFormFieldJSON | SignatureFormFieldJSON; - type SerializedJSON = { skippedPdfObjectIds?: number[]; annotations?: AnnotationJSONUnion[]; @@ -6345,112 +6479,6 @@ type InstantJSON = SerializedJSON & { }; }; -type Rotation$1 = 0 | 90 | 180 | 270; -type AddPageConfiguration = { - backgroundColor: Color; - pageWidth: number; - pageHeight: number; - rotateBy: Rotation$1; - insets?: Rect; -}; -type OperationAttachment = string | File | Blob; -type min = number; -type max = number; -type Range = [min, max]; -type ImportPageIndex = Array; -type DocumentMetadata = { - title?: string; - author?: string; -}; -type NonSerializableDocumentOperations = { - type: 'removePages'; - pageIndexes: Array; -} | { - type: 'duplicatePages'; - pageIndexes: Array; -} | { - type: 'movePages'; - pageIndexes: Array; - afterPageIndex: number; -} | { - type: 'movePages'; - pageIndexes: Array; - beforePageIndex: number; -} | { - type: 'rotatePages'; - pageIndexes: Array; - rotateBy: Rotation$1; -} | { - type: 'keepPages'; - pageIndexes: Array; -} | { - type: 'importDocument'; - afterPageIndex: number; - treatImportedDocumentAsOnePage?: boolean; - document: OperationAttachment; - importedPageIndexes?: ImportPageIndex; -} | { - type: 'importDocument'; - beforePageIndex: number; - treatImportedDocumentAsOnePage?: boolean; - document: OperationAttachment; - importedPageIndexes?: ImportPageIndex; -} | { - type: 'applyInstantJson'; - instantJson: Record; - dataFilePath: OperationAttachment; -} | { - type: 'applyXfdf'; - xfdf: string; - dataFilePath: OperationAttachment; -} | { - type: 'flattenAnnotations'; - pageIndexes?: Array; - annotationIds?: string[]; -} | { - type: 'setPageLabel'; - pageIndexes?: Array; - pageLabel?: string; -} | { - type: 'performOcr'; - pageIndexes?: Array | 'all'; - language: string; -} | { - type: 'applyRedactions'; -} | { - type: 'updateMetadata'; - metadata: DocumentMetadata; -}; -type DocumentOperation = (AddPageConfiguration & { - type: 'addPage'; - afterPageIndex: number; -}) | (AddPageConfiguration & { - type: 'addPage'; - beforePageIndex: number; -}) | { - type: 'cropPages'; - pageIndexes?: Array; - cropBox: Rect; -} | NonSerializableDocumentOperations; - -declare function toJSON(bookmark: Bookmark): BookmarkJSON; - -type ID$1 = string; -type BookmarkProps = { - id: ID$1 | null; - pdfBookmarkId: ID$1 | null; - name: string | null; - sortKey: number | null; - action: Action | null; -}; -declare const Bookmark_base: Record$1.Factory; -declare class Bookmark extends Bookmark_base { - id: ID$1; - action: Action; - static toSerializableObject: typeof toJSON; - static fromSerializableObject: (bookmark: BookmarkJSON) => Bookmark; -} - declare const SearchPattern: { readonly CREDIT_CARD_NUMBER: "credit_card_number"; readonly DATE: "date"; @@ -6468,13 +6496,6 @@ declare const SearchPattern: { }; type ISearchPattern = (typeof SearchPattern)[keyof typeof SearchPattern]; -declare const SearchType: { - readonly TEXT: "text"; - readonly PRESET: "preset"; - readonly REGEX: "regex"; -}; -type ISearchType = (typeof SearchType)[keyof typeof SearchType]; - declare const ProductId: { SharePoint: string; Salesforce: string; @@ -6525,11 +6546,6 @@ type SignatureAppearance = { watermarkImage?: Blob | File; }; -type Glyph = { - c: string; - rect: Rect; -}; - declare const TextLineElementKind: { P: string; TH: string; @@ -6775,9 +6791,9 @@ type ToolItem = { type AnnotationTooltipCallback = (annotation: AnnotationsUnion) => Array; declare global { - interface SymbolConstructor { - readonly observable: symbol - } + interface SymbolConstructor { + readonly observable: symbol + } } type RendererConfiguration = { @@ -7098,7 +7114,7 @@ declare class InstantClient { userId: string | null | undefined; } -declare const allowedToolbarTypes: ("distance" | "note" | "comment" | "text" | "zoom-in" | "zoom-out" | "link" | "search" | "ellipse" | "image" | "line" | "polygon" | "polyline" | "spacer" | "arrow" | "highlighter" | "undo" | "redo" | "callout" | "custom" | "print" | "rectangle" | "ink" | "stamp" | "cloudy-rectangle" | "dashed-rectangle" | "cloudy-ellipse" | "dashed-ellipse" | "cloudy-polygon" | "dashed-polygon" | "text-highlighter" | "perimeter" | "ellipse-area" | "rectangle-area" | "polygon-area" | "sidebar-thumbnails" | "sidebar-document-outline" | "sidebar-annotations" | "sidebar-bookmarks" | "pager" | "multi-annotations-selection" | "pan" | "zoom-mode" | "annotate" | "ink-eraser" | "signature" | "document-editor" | "document-crop" | "export-pdf" | "debug" | "layout-config" | "marquee-zoom" | "responsive-group" | "redact-text-highlighter" | "redact-rectangle" | "document-comparison" | "measure" | "form-creator" | "content-editor")[]; +declare const allowedToolbarTypes: ("distance" | "note" | "comment" | "text" | "zoom-in" | "zoom-out" | "link" | "search" | "ellipse" | "image" | "line" | "polygon" | "polyline" | "spacer" | "arrow" | "highlighter" | "undo" | "redo" | "callout" | "debug" | "signature" | "custom" | "print" | "rectangle" | "ink" | "stamp" | "cloudy-rectangle" | "dashed-rectangle" | "cloudy-ellipse" | "dashed-ellipse" | "cloudy-polygon" | "dashed-polygon" | "text-highlighter" | "perimeter" | "ellipse-area" | "rectangle-area" | "polygon-area" | "sidebar-thumbnails" | "sidebar-document-outline" | "sidebar-annotations" | "sidebar-bookmarks" | "pager" | "multi-annotations-selection" | "pan" | "zoom-mode" | "annotate" | "ink-eraser" | "document-editor" | "document-crop" | "export-pdf" | "layout-config" | "marquee-zoom" | "responsive-group" | "redact-text-highlighter" | "redact-rectangle" | "document-comparison" | "measure" | "form-creator" | "content-editor")[]; type ToolbarItemType = ToolItemType | (typeof allowedToolbarTypes)[number]; type ToolbarItem = Omit & { @@ -7478,6 +7494,7 @@ declare class Instance { textLinesForPageIndex: (pageIndex: number) => Promise>; getMarkupAnnotationText: (annotation: TextMarkupAnnotationsUnion) => Promise; getTextFromRects: (pageIndex: number, rects: List) => Promise; + getDocumentPermissions: () => Promise>; currentZoomLevel: number; maximumZoomLevel: number; minimumZoomLevel: number; @@ -7518,6 +7535,9 @@ declare class Instance { setAnnotationCreatorName: (annotationCreatorName?: string | null) => void; setOnWidgetAnnotationCreationStart: (callback: OnWidgetAnnotationCreationStartCallback) => void; setOnCommentCreationStart: (callback: OnCommentCreationStartCallback) => void; + getOCGs: () => Promise; + getOCGVisibilityState: () => Promise; + setOCGVisibilityState: (visibilityState: OCGVisibilityState) => Promise; contentWindow: Window; contentDocument: Document; readonly viewState: ViewState; @@ -7583,7 +7603,7 @@ declare class Instance { setDocumentEditorFooterItems: (stateOrFunction: DocumentEditorFooterItem[] | SetDocumentEditorFooterFunction) => void; setDocumentEditorToolbarItems: (stateOrFunction: DocumentEditorToolbarItem[] | SetDocumentEditorToolbarFunction) => void; getSignaturesInfo: () => Promise; - signDocument: (arg0: SignatureCreationData | null | undefined, arg1: TwoStepSignatureCallback | SigningServiceData | undefined) => Promise; + signDocument: (arg0: SignatureCreationData | null, arg1?: TwoStepSignatureCallback | SigningServiceData) => Promise; applyOperations: (operations: Array) => Promise; exportPDFWithOperations: (arg0: Array) => Promise; applyRedactions: () => Promise; @@ -7647,13 +7667,21 @@ type AnnotationToolbarColorPresetsCallback = (options: { type EnableRichTextCallback = (annotation: TextAnnotation) => boolean; -type TrustedCAsCallback = () => Promise>; - type ElectronicSignaturesConfiguration = { creationModes?: Readonly; fonts?: Readonly; + setDefaultTypeText?: ElectronicSignatureDefaultTextCallback | string; unstable_colorPresets?: Readonly; }; +type ElectronicSignatureDefaultTextCallback = () => string | undefined | void; + +declare const ProcessorEngine: { + smallerSize: string; + fasterProcessing: string; +}; +type IProcessorEngine = (typeof ProcessorEngine)[keyof typeof ProcessorEngine]; + +type TrustedCAsCallback = () => Promise>; declare const Theme: { readonly LIGHT: "LIGHT"; @@ -7745,6 +7773,7 @@ type StandaloneConfiguration = SharedConfiguration & { instantJSON?: InstantJSON; XFDF?: string; XFDFKeepCurrentAnnotations?: boolean; + XFDFIgnorePageRotation?: boolean; disableWebAssemblyStreaming?: boolean; disableIndexedDBCaching?: boolean; enableAutomaticLinkExtraction?: boolean; @@ -7757,6 +7786,8 @@ type StandaloneConfiguration = SharedConfiguration & { isSharePoint?: boolean; isSalesforce?: boolean; productId?: IProductId; + processorEngine?: IProcessorEngine; + dynamicFonts?: string; }; type Configuration = ServerConfiguration | StandaloneConfiguration; @@ -8436,6 +8467,10 @@ declare const PSPDFKit: { Maui_MacCatalyst: string; Maui_Windows: string; }; + ProcessorEngine: { + smallerSize: string; + fasterProcessing: string; + }; Conformance: { readonly PDFA_1A: "pdfa-1a"; readonly PDFA_1B: "pdfa-1b"; diff --git a/EnvelopeGenerator.Web/Scripts/interfaces.ts b/EnvelopeGenerator.Web/Scripts/interfaces.ts index 351d04a5..5549d0d3 100644 --- a/EnvelopeGenerator.Web/Scripts/interfaces.ts +++ b/EnvelopeGenerator.Web/Scripts/interfaces.ts @@ -44,4 +44,6 @@ interface User { fullName: string; } -export { EnvelopeResponse, Envelope, Document, Element, User } \ No newline at end of file +type IFunction = (...args: Array) => T; + +export { EnvelopeResponse, Envelope, Document, Element, User, IFunction } \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/js/app.js b/EnvelopeGenerator.Web/wwwroot/js/app.js index 83e772ce..86bd6700 100644 --- a/EnvelopeGenerator.Web/wwwroot/js/app.js +++ b/EnvelopeGenerator.Web/wwwroot/js/app.js @@ -39,18 +39,6 @@ var Rect = PSPDFKit.Geometry.Rect; var SignatureFormField = PSPDFKit.FormFields.SignatureFormField; var _a = PSPDFKit.ElectronicSignatureCreationMode, DRAW = _a.DRAW, TYPE = _a.TYPE; var DISABLED = PSPDFKit.AutoSaveMode.DISABLED; -var allowedToolbarItems = [ - "sidebar-thumbnails", - "sidebar-document-ouline", - "sidebar-bookmarks", - "pager", - "pan", - "zoom-out", - "zoom-in", - "zoom-mode", - "spacer", - "search" -]; var App = /** @class */ (function () { function App() { } @@ -58,19 +46,21 @@ var App = /** @class */ (function () { // and will trigger loading of the Editor Interface App.loadPDFFromUrl = function (container, envelopeKey) { return __awaiter(this, void 0, void 0, function () { - var envelopeObject, document, arrayBuffer, e_1, _a, annotations, createdAnnotation; + var envelopeObject, arrayBuffer, e_1, _a, annotations, createdAnnotations; return __generator(this, function (_b) { switch (_b.label) { case 0: + App.ui = new UI(); console.debug("Loading PSPDFKit.."); return [4 /*yield*/, App.loadData("/api/get-data/".concat(envelopeKey))]; case 1: envelopeObject = _b.sent(); - document = envelopeObject.envelope.documents[0]; + App.envelopeKey = envelopeKey; + App.currentDocument = envelopeObject.envelope.documents[0]; _b.label = 2; case 2: _b.trys.push([2, 4, , 5]); - return [4 /*yield*/, App.loadDocument("/api/download/".concat(envelopeKey, "?id=").concat(document.id))]; + return [4 /*yield*/, App.loadDocument("/api/download/".concat(envelopeKey, "?id=").concat(App.currentDocument.id))]; case 3: arrayBuffer = _b.sent(); return [3 /*break*/, 5]; @@ -87,30 +77,24 @@ var App = /** @class */ (function () { console.debug(envelopeObject.envelope); console.debug("PSPDFKit configured!"); annotations = []; - document.elements.forEach(function (element) { - console.log("Loading element"); - console.debug("Page", element.page); - console.debug("Width / Height", element.width, element.height); - console.debug("Top / Left", element.top, element.left); - var id = PSPDFKit.generateInstantId(); - var annotation = App.createSignatureAnnotation(id, element.width, element.height, element.top, element.left, element.page); - var formField = new SignatureFormField({ - name: id, - annotationIds: List([annotation.id]) - }); + App.currentDocument.elements.forEach(function (element) { + console.log("Creating annotation for element", element.id); + var _a = App.createAnnotationFromElement(element), annotation = _a[0], formField = _a[1]; annotations.push(annotation); annotations.push(formField); - console.debug("Annotation created."); }); return [4 /*yield*/, App.Instance.create(annotations)]; case 7: - createdAnnotation = (_b.sent())[0]; - console.debug(createdAnnotation); + createdAnnotations = _b.sent(); + console.debug(createdAnnotations); return [2 /*return*/]; } }); }); }; + App.inchToPoint = function (inch) { + return inch * 72; + }; // Makes a call to the supplied url and fetches the binary response as an array buffer App.loadDocument = function (url) { return fetch(url, { credentials: "include" }) @@ -121,57 +105,132 @@ var App = /** @class */ (function () { return fetch(url, { credentials: "include" }) .then(function (res) { return res.json(); }); }; + App.postDocument = function (url, buffer) { + return fetch(url, { credentials: "include", method: "POST", body: buffer }) + .then(function (res) { return res.json(); }); + }; // Load the PSPDFKit UI by setting a target element as the container to render in // and a arraybuffer which represents the document that should be displayed. App.loadPSPDFKit = function (arrayBuffer, container) { - var annotationPresets = PSPDFKit.defaultAnnotationPresets; - console.log(annotationPresets); - annotationPresets.ink = { - lineWidth: 10 - }; return PSPDFKit.load({ container: container, document: arrayBuffer, autoSaveMode: DISABLED, - annotationPresets: annotationPresets, + annotationPresets: App.ui.getPresets(), electronicSignatures: { - creationModes: [DRAW] + creationModes: [DRAW, TYPE] + }, + isEditableAnnotation: function (annotation) { + // Check if the annotation is a signature + // This will allow new signatures, but not allow edits. + return !annotation.isSignature; } }); }; App.configurePSPDFKit = function (instance) { + var _this = this; instance.addEventListener("annotations.load", function (loadedAnnotations) { console.log("annotations loaded", loadedAnnotations.toJS()); }); instance.addEventListener("annotations.change", function () { console.log("annotations changed"); }); - instance.addEventListener("annotations.create", function (createdAnnotations) { - var annotation = createdAnnotations[0]; - console.log("annotations created", createdAnnotations.toJS()); - }); + instance.addEventListener("annotations.create", function (createdAnnotations) { return __awaiter(_this, void 0, void 0, function () { + return __generator(this, function (_a) { + console.log("annotations created", createdAnnotations.toJS()); + return [2 /*return*/]; + }); + }); }); var filteredItems = instance.toolbarItems - .filter(function (item) { return allowedToolbarItems.includes(item.type); }); - var customItems = [ - { - type: "custom", - id: "button-finish", - title: "Abschlie�en", - icon: "\n \n \n ", - onPress: this.handleFinish - } - ]; - instance.setToolbarItems(filteredItems.concat(customItems)); + .filter(function (item) { return App.ui.allowedToolbarItems.includes(item.type); }); + instance.setToolbarItems(filteredItems.concat(App.ui.getToolbarItems(App.handleClick))); + }; + App.handleClick = function (eventType) { + return __awaiter(this, void 0, void 0, function () { + var _a; + return __generator(this, function (_b) { + switch (_b.label) { + case 0: + _a = eventType; + switch (_a) { + case "RESET": return [3 /*break*/, 1]; + case "FINISH": return [3 /*break*/, 3]; + } + return [3 /*break*/, 5]; + case 1: return [4 /*yield*/, App.handleReset(null)]; + case 2: + _b.sent(); + return [3 /*break*/, 5]; + case 3: return [4 /*yield*/, App.handleFinish(null)]; + case 4: + _b.sent(); + return [3 /*break*/, 5]; + case 5: return [2 /*return*/]; + } + }); + }); }; App.handleFinish = function (event) { return __awaiter(this, void 0, void 0, function () { + var json, buffer; return __generator(this, function (_a) { switch (_a.label) { - case 0: return [4 /*yield*/, App.Instance.applyOperations([{ type: "flattenAnnotations" }]) - //await downloadDocument(); - ]; + case 0: return [4 /*yield*/, App.Instance.save()]; case 1: _a.sent(); + return [4 /*yield*/, App.Instance.exportInstantJSON()]; + case 2: + json = _a.sent(); + console.log(json); + return [4 /*yield*/, App.Instance.exportPDF({ flatten: true })]; + case 3: + buffer = _a.sent(); + return [4 /*yield*/, App.uploadDocument(buffer, App.envelopeKey, App.currentDocument.id)]; + case 4: + _a.sent(); + alert("Signatur wird gespeichert!"); + return [2 /*return*/]; + } + }); + }); + }; + App.handleReset = function (event) { + return __awaiter(this, void 0, void 0, function () { + var i, annotations; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + if (!confirm("Wollen Sie das Dokument und alle erstellten Signaturen zurücksetzen?")) return [3 /*break*/, 4]; + i = 0; + _a.label = 1; + case 1: + if (!(i < App.Instance.totalPageCount)) return [3 /*break*/, 4]; + return [4 /*yield*/, App.Instance.getAnnotations(i)]; + case 2: + annotations = _a.sent(); + annotations.forEach(function (annotation) { + //console.log(annotation) + // TODO: Delete only create signatures + //App.Instance.delete(annotation.id) + }); + _a.label = 3; + case 3: + i++; + return [3 /*break*/, 1]; + case 4: return [2 /*return*/]; + } + }); + }); + }; + App.uploadDocument = function (buffer, envelopeKey, documentId) { + return __awaiter(this, void 0, void 0, function () { + var result; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, App.postDocument("/api/upload/".concat(envelopeKey, "/").concat(documentId), buffer)]; + case 1: + result = _a.sent(); + console.log(result); return [2 /*return*/]; } }); @@ -215,6 +274,23 @@ var App = /** @class */ (function () { }); }); }; + App.createAnnotationFromElement = function (element) { + var id = PSPDFKit.generateInstantId(); + console.log("Creating Annotation", id); + var width = App.inchToPoint(element.width); + var height = App.inchToPoint(element.height); + var top = App.inchToPoint(element.top) - (height / 2); + var left = App.inchToPoint(element.left) - (width / 2); + var page = element.page - 1; + var annotation = App.createSignatureAnnotation(id, width, height, top, left, page); + console.log(annotation); + var formField = new SignatureFormField({ + name: id, + annotationIds: List([annotation.id]) + }); + console.log(formField); + return [annotation, formField]; + }; App.createSignatureAnnotation = function (id, width, height, top, left, pageIndex) { var annotation = new PSPDFKit.Annotations.WidgetAnnotation({ id: id, @@ -227,4 +303,54 @@ var App = /** @class */ (function () { return App; }()); export { App }; +var UI = /** @class */ (function () { + function UI() { + this.allowedToolbarItems = [ + "sidebar-thumbnails", + "sidebar-document-ouline", + "sidebar-bookmarks", + "pager", + "pan", + "zoom-out", + "zoom-in", + "zoom-mode", + "spacer", + "search" + ]; + this.getToolbarItems = function (callback) { + var customItems = [ + { + type: "custom", + id: "button-reset", + title: "Zurücksetzen", + onPress: function () { + callback("RESET"); + }, + icon: "\n \n \n " + }, + { + type: "custom", + id: "button-finish", + title: "Abschließen", + onPress: function () { + callback("FINISH"); + }, + icon: "\n \n \n " + } + ]; + return customItems; + }; + } + UI.prototype.getPresets = function () { + var annotationPresets = PSPDFKit.defaultAnnotationPresets; + annotationPresets.ink = { + lineWidth: 10 + }; + annotationPresets.widget = { + readOnly: true + }; + return annotationPresets; + }; + return UI; +}()); //# sourceMappingURL=app.js.map \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/js/app.js.map b/EnvelopeGenerator.Web/wwwroot/js/app.js.map index a40835e4..b809c583 100644 --- a/EnvelopeGenerator.Web/wwwroot/js/app.js.map +++ b/EnvelopeGenerator.Web/wwwroot/js/app.js.map @@ -1 +1 @@ -{"version":3,"file":"app.js","sourceRoot":"","sources":["../../Scripts/app.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMQ,IAAA,IAAI,GAAK,QAAQ,CAAC,SAAS,KAAvB,CAAwB;AAC5B,IAAA,IAAI,GAAK,QAAQ,CAAC,QAAQ,KAAtB,CAAuB;AAC3B,IAAA,kBAAkB,GAAK,QAAQ,CAAC,UAAU,mBAAxB,CAAyB;AAC7C,IAAA,KAAiB,QAAQ,CAAC,+BAA+B,EAAvD,IAAI,UAAA,EAAE,IAAI,UAA6C,CAAC;AACxD,IAAA,QAAQ,GAAK,QAAQ,CAAC,YAAY,SAA1B,CAA2B;AAE3C,IAAM,mBAAmB,GAAa;IAClC,oBAAoB;IACpB,yBAAyB;IACzB,mBAAmB;IACnB,OAAO;IACP,KAAK;IACL,UAAU;IACV,SAAS;IACT,WAAW;IACX,QAAQ;IACR,QAAQ;CACX,CAAA;AAED;IAAA;IAqKA,CAAC;IAjKG,8DAA8D;IAC9D,mDAAmD;IAC/B,kBAAc,GAAlC,UAAoC,SAAiB,EAAE,WAAmB;;;;;;wBACtE,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;wBAEK,qBAAM,GAAG,CAAC,QAAQ,CAAC,wBAAiB,WAAW,CAAE,CAAC,EAAA;;wBAArF,cAAc,GAAqB,SAAkD;wBACrF,QAAQ,GAAa,cAAc,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;;;;wBAI9C,qBAAM,GAAG,CAAC,YAAY,CAAC,wBAAiB,WAAW,iBAAO,QAAQ,CAAC,EAAE,CAAE,CAAC,EAAA;;wBAAtF,WAAW,GAAG,SAAwE,CAAC;;;;wBAEvF,OAAO,CAAC,KAAK,CAAC,GAAC,CAAC,CAAA;;;wBAGpB,KAAA,GAAG,CAAA;wBAAY,qBAAM,GAAG,CAAC,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC,EAAA;;wBAA7D,GAAI,QAAQ,GAAG,SAA8C,CAAA;wBAC7D,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;wBAEpC,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;wBACvC,OAAO,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;wBAEhC,WAAW,GAAU,EAAE,CAAC;wBAE9B,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,OAAgB;4BAChD,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAA;4BAC9B,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;4BACnC,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,CAAA;4BAC9D,OAAO,CAAC,KAAK,CAAC,YAAY,EAAE,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;4BAEtD,IAAM,EAAE,GAAG,QAAQ,CAAC,iBAAiB,EAAE,CAAA;4BACvC,IAAM,UAAU,GAAqB,GAAG,CAAC,yBAAyB,CAAC,EAAE,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;4BAE9I,IAAM,SAAS,GAAG,IAAI,kBAAkB,CAAC;gCACrC,IAAI,EAAE,EAAE;gCACR,aAAa,EAAE,IAAI,CAAC,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;6BACvC,CAAC,CAAA;4BAEF,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;4BAC7B,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;4BAE5B,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAA;wBACxC,CAAC,CAAC,CAAA;wBAE0B,qBAAM,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,EAAA;;wBAA3D,iBAAiB,GAAI,CAAA,SAAsC,CAAA,GAA1C;wBAExB,OAAO,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAA;;;;;KACnC;IAED,sFAAsF;IACvE,gBAAY,GAA3B,UAA4B,GAAW;QACnC,OAAO,KAAK,CAAC,GAAG,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;aACxC,IAAI,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,WAAW,EAAE,EAAjB,CAAiB,CAAC,CAAC;IACxC,CAAC;IAED,8EAA8E;IAC/D,YAAQ,GAAvB,UAAwB,GAAW;QAC/B,OAAO,KAAK,CAAC,GAAG,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;aACxC,IAAI,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,IAAI,EAAE,EAAV,CAAU,CAAC,CAAC;IACjC,CAAC;IAED,iFAAiF;IACjF,4EAA4E;IAC7D,gBAAY,GAA3B,UAA4B,WAAwB,EAAE,SAAiB;QACnE,IAAM,iBAAiB,GAAG,QAAQ,CAAC,wBAAwB,CAAC;QAC5D,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAA;QAC9B,iBAAiB,CAAC,GAAG,GAAG;YACpB,SAAS,EAAE,EAAE;SAChB,CAAC;QAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;YACjB,SAAS,EAAE,SAAS;YACpB,QAAQ,EAAE,WAAW;YACrB,YAAY,EAAE,QAAQ;YACtB,iBAAiB,mBAAA;YACjB,oBAAoB,EAAE;gBAClB,aAAa,EAAE,CAAC,IAAI,CAAC;aACxB;SACJ,CAAC,CAAA;IACN,CAAC;IAEc,qBAAiB,GAAhC,UAAiC,QAAkB;QAC/C,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,UAAC,iBAAiB;YAC5D,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,iBAAiB,CAAC,IAAI,EAAE,CAAC,CAAC;QAChE,CAAC,CAAC,CAAA;QAEF,QAAQ,CAAC,gBAAgB,CAAC,oBAAoB,EAAE;YAC5C,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAA;QACtC,CAAC,CAAC,CAAA;QAEF,QAAQ,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,UAAC,kBAAkB;YAC/D,IAAM,UAAU,GAAqB,kBAAkB,CAAC,CAAC,CAAC,CAAC;YAC3D,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,IAAI,EAAE,CAAC,CAAC;QAClE,CAAC,CAAC,CAAA;QAEF,IAAM,aAAa,GAAuB,QAAQ,CAAC,YAAY;aAC1D,MAAM,CAAC,UAAC,IAAI,IAAK,OAAA,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAvC,CAAuC,CAAC,CAAA;QAG9D,IAAM,WAAW,GAAkB;YAC/B;gBACI,IAAI,EAAE,QAAQ;gBACd,EAAE,EAAE,eAAe;gBACnB,KAAK,EAAE,aAAa;gBACpB,IAAI,EAAE,8cAGO;gBACb,OAAO,EAAE,IAAI,CAAC,YAAY;aAC7B;SACJ,CAAA;QAED,QAAQ,CAAC,eAAe,CAAC,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAA;IAC/D,CAAC;IAEoB,gBAAY,GAAjC,UAAkC,KAAU;;;;4BACxC,qBAAM,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CAAC;wBAEpE,2BAA2B;sBAFyC;;wBAApE,SAAoE,CAAA;;;;;KAGvE;IAEoB,oBAAgB,GAArC;;YAiBI,SAAS,WAAW,CAAC,IAAI;gBACrB,IAAM,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;gBACtC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC;gBACd,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;gBACzB,CAAC,CAAC,QAAQ,GAAG,cAAc,CAAC;gBAC5B,CAAC,CAAC,YAAY,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;gBAC3C,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;gBAC7B,CAAC,CAAC,KAAK,EAAE,CAAC;gBACV,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;YACjC,CAAC;;;;4BAzBc,qBAAM,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAA;;wBAAxD,MAAM,GAAG,SAA+C;wBACxD,yBAAyB,GAAG,iBAAiB,CAAC,SAAS,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;wBACnF,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;wBAE7D,IAAI,CAAC,yBAAyB,EAAE;4BACtB,WAAS,IAAI,UAAU,EAAE,CAAC;4BAChC,QAAM,CAAC,SAAS,GAAG;gCACf,IAAM,OAAO,GAAG,QAAM,CAAC,MAAM,CAAC;gCAC9B,WAAW,CAAC,OAAO,CAAC,CAAC;4BACzB,CAAC,CAAC;4BACF,QAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;yBAC9B;6BAAM;4BACG,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;4BACnD,WAAW,CAAC,SAAS,CAAC,CAAC;4BACvB,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;yBACzC;;;;;KAWJ;IAGc,6BAAyB,GAAxC,UAAyC,EAAU,EAAE,KAAa,EAAE,MAAc,EAAE,GAAW,EAAE,IAAY,EAAE,SAAiB;QAC5H,IAAM,UAAU,GAAG,IAAI,QAAQ,CAAC,WAAW,CAAC,gBAAgB,CAAC;YACzD,EAAE,EAAE,EAAE;YACN,SAAS,EAAE,SAAS;YACpB,aAAa,EAAE,EAAE;YACjB,WAAW,EAAE,IAAI,IAAI,CAAC,EAAE,KAAK,OAAA,EAAE,MAAM,QAAA,EAAE,GAAG,KAAA,EAAE,IAAI,MAAA,EAAE,CAAC;SACtD,CAAC,CAAA;QAEF,OAAO,UAAU,CAAA;IACrB,CAAC;IAEL,UAAC;AAAD,CAAC,AArKD,IAqKC"} \ No newline at end of file +{"version":3,"file":"app.js","sourceRoot":"","sources":["../../Scripts/app.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMQ,IAAA,IAAI,GAAK,QAAQ,CAAC,SAAS,KAAvB,CAAwB;AAC5B,IAAA,IAAI,GAAK,QAAQ,CAAC,QAAQ,KAAtB,CAAuB;AAC3B,IAAA,kBAAkB,GAAK,QAAQ,CAAC,UAAU,mBAAxB,CAAyB;AAC7C,IAAA,KAAiB,QAAQ,CAAC,+BAA+B,EAAvD,IAAI,UAAA,EAAE,IAAI,UAA6C,CAAC;AACxD,IAAA,QAAQ,GAAK,QAAQ,CAAC,YAAY,SAA1B,CAA2B;AAE3C;IAAA;IAkNA,CAAC;IA3MG,8DAA8D;IAC9D,mDAAmD;IAC/B,kBAAc,GAAlC,UAAmC,SAAiB,EAAE,WAAmB;;;;;;wBACrE,GAAG,CAAC,EAAE,GAAG,IAAI,EAAE,EAAE,CAAC;wBAElB,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;wBAEK,qBAAM,GAAG,CAAC,QAAQ,CAAC,wBAAiB,WAAW,CAAE,CAAC,EAAA;;wBAArF,cAAc,GAAqB,SAAkD;wBAC3F,GAAG,CAAC,WAAW,GAAG,WAAW,CAAC;wBAC9B,GAAG,CAAC,eAAe,GAAG,cAAc,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;;;;wBAIzC,qBAAM,GAAG,CAAC,YAAY,CAAC,wBAAiB,WAAW,iBAAO,GAAG,CAAC,eAAe,CAAC,EAAE,CAAE,CAAC,EAAA;;wBAAjG,WAAW,GAAG,SAAmF,CAAC;;;;wBAElG,OAAO,CAAC,KAAK,CAAC,GAAC,CAAC,CAAA;;;wBAGpB,KAAA,GAAG,CAAA;wBAAY,qBAAM,GAAG,CAAC,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC,EAAA;;wBAA7D,GAAI,QAAQ,GAAG,SAA8C,CAAA;wBAC7D,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;wBAEpC,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;wBACvC,OAAO,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;wBAEhC,WAAW,GAAU,EAAE,CAAC;wBAE9B,GAAG,CAAC,eAAe,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,OAAgB;4BAC3D,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,OAAO,CAAC,EAAE,CAAC,CAAA;4BAEpD,IAAA,KAA0B,GAAG,CAAC,2BAA2B,CAAC,OAAO,CAAC,EAAjE,UAAU,QAAA,EAAE,SAAS,QAA4C,CAAA;4BACxE,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;4BAC7B,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;wBAChC,CAAC,CAAC,CAAA;wBAEyB,qBAAM,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,EAAA;;wBAA3D,kBAAkB,GAAG,SAAsC;wBAEjE,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAA;;;;;KACpC;IAEc,eAAW,GAA1B,UAA2B,IAAY;QACnC,OAAO,IAAI,GAAG,EAAE,CAAC;IACrB,CAAC;IAED,sFAAsF;IACvE,gBAAY,GAA3B,UAA4B,GAAW;QACnC,OAAO,KAAK,CAAC,GAAG,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;aACxC,IAAI,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,WAAW,EAAE,EAAjB,CAAiB,CAAC,CAAC;IACxC,CAAC;IAED,8EAA8E;IAC/D,YAAQ,GAAvB,UAAwB,GAAW;QAC/B,OAAO,KAAK,CAAC,GAAG,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;aACxC,IAAI,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,IAAI,EAAE,EAAV,CAAU,CAAC,CAAC;IACjC,CAAC;IAEc,gBAAY,GAA3B,UAA4B,GAAW,EAAE,MAAmB;QACxD,OAAO,KAAK,CAAC,GAAG,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;aACtE,IAAI,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,IAAI,EAAE,EAAV,CAAU,CAAC,CAAC;IACjC,CAAC;IAED,iFAAiF;IACjF,4EAA4E;IAC7D,gBAAY,GAA3B,UAA4B,WAAwB,EAAE,SAAiB;QACnE,OAAO,QAAQ,CAAC,IAAI,CAAC;YACjB,SAAS,EAAE,SAAS;YACpB,QAAQ,EAAE,WAAW;YACrB,YAAY,EAAE,QAAQ;YACtB,iBAAiB,EAAE,GAAG,CAAC,EAAE,CAAC,UAAU,EAAE;YACtC,oBAAoB,EAAE;gBAClB,aAAa,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;aAC9B;YACD,oBAAoB,EAAE,UAAU,UAA4B;gBACxD,yCAAyC;gBACzC,uDAAuD;gBACvD,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC;YACnC,CAAC;SACJ,CAAC,CAAA;IACN,CAAC;IAEc,qBAAiB,GAAhC,UAAiC,QAAkB;QAAnD,iBAiBC;QAhBG,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,UAAC,iBAAiB;YAC5D,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,iBAAiB,CAAC,IAAI,EAAE,CAAC,CAAC;QAChE,CAAC,CAAC,CAAA;QAEF,QAAQ,CAAC,gBAAgB,CAAC,oBAAoB,EAAE;YAC5C,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAA;QACtC,CAAC,CAAC,CAAA;QAEF,QAAQ,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,UAAO,kBAAkB;;gBACrE,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,IAAI,EAAE,CAAC,CAAC;;;aACjE,CAAC,CAAA;QAEF,IAAM,aAAa,GAAuB,QAAQ,CAAC,YAAY;aAC1D,MAAM,CAAC,UAAC,IAAI,IAAK,OAAA,GAAG,CAAC,EAAE,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAA9C,CAA8C,CAAC,CAAA;QAErE,QAAQ,CAAC,eAAe,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAA;IAC3F,CAAC;IAEmB,eAAW,GAA/B,UAAgC,SAAiB;;;;;;wBACrC,KAAA,SAAS,CAAA;;iCACR,OAAO,CAAC,CAAR,wBAAO;iCAGP,QAAQ,CAAC,CAAT,wBAAQ;;;4BAFjB,qBAAM,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,EAAA;;wBAA3B,SAA2B,CAAA;wBAC3B,wBAAM;4BAEN,qBAAM,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,EAAA;;wBAA5B,SAA4B,CAAA;wBAC5B,wBAAM;;;;;KAET;IAEmB,gBAAY,GAAhC,UAAiC,KAAU;;;;;4BACvC,qBAAM,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAA;;wBAAzB,SAAyB,CAAC;wBACb,qBAAM,GAAG,CAAC,QAAQ,CAAC,iBAAiB,EAAE,EAAA;;wBAA7C,IAAI,GAAG,SAAsC;wBAEnD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;wBAEH,qBAAM,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAA;;wBAAxD,MAAM,GAAG,SAA+C;wBAC9D,qBAAM,GAAG,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,CAAC,WAAW,EAAE,GAAG,CAAC,eAAe,CAAC,EAAE,CAAC,EAAA;;wBAAzE,SAAyE,CAAC;wBAE1E,KAAK,CAAC,4BAA4B,CAAC,CAAA;;;;;KACtC;IAEmB,eAAW,GAA/B,UAAgC,KAAU;;;;;;6BAClC,OAAO,CAAC,sEAAsE,CAAC,EAA/E,wBAA+E;wBACtE,CAAC,GAAG,CAAC;;;6BAAE,CAAA,CAAC,GAAG,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAA;wBACvB,qBAAM,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,EAAA;;wBAAlD,WAAW,GAAG,SAAoC;wBACxD,WAAW,CAAC,OAAO,CAAC,UAAC,UAAU;4BAC3B,yBAAyB;4BACzB,sCAAsC;4BACtC,oCAAoC;wBACxC,CAAC,CAAC,CAAA;;;wBAN2C,CAAC,EAAE,CAAA;;;;;;KAS3D;IAEoB,kBAAc,GAAnC,UAAoC,MAAmB,EAAE,WAAmB,EAAE,UAAkB;;;;;4BAE7E,qBAAM,GAAG,CAAC,YAAY,CAAC,sBAAe,WAAW,cAAI,UAAU,CAAE,EAAE,MAAM,CAAC,EAAA;;wBAAnF,MAAM,GAAG,SAA0E;wBAEzF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;;;;;KACtB;IAEoB,oBAAgB,GAArC;;YAiBI,SAAS,WAAW,CAAC,IAAI;gBACrB,IAAM,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;gBACtC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC;gBACd,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;gBACzB,CAAC,CAAC,QAAQ,GAAG,cAAc,CAAC;gBAC5B,CAAC,CAAC,YAAY,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;gBAC3C,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;gBAC7B,CAAC,CAAC,KAAK,EAAE,CAAC;gBACV,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;YACjC,CAAC;;;;4BAzBc,qBAAM,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAA;;wBAAxD,MAAM,GAAG,SAA+C;wBACxD,yBAAyB,GAAG,iBAAiB,CAAC,SAAS,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;wBACnF,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;wBAE7D,IAAI,CAAC,yBAAyB,EAAE;4BACtB,WAAS,IAAI,UAAU,EAAE,CAAC;4BAChC,QAAM,CAAC,SAAS,GAAG;gCACf,IAAM,OAAO,GAAG,QAAM,CAAC,MAAM,CAAC;gCAC9B,WAAW,CAAC,OAAO,CAAC,CAAC;4BACzB,CAAC,CAAC;4BACF,QAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;yBAC9B;6BAAM;4BACG,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;4BACnD,WAAW,CAAC,SAAS,CAAC,CAAC;4BACvB,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;yBACzC;;;;;KAWJ;IAEc,+BAA2B,GAA1C,UAA2C,OAAgB;QACvD,IAAM,EAAE,GAAG,QAAQ,CAAC,iBAAiB,EAAE,CAAA;QACvC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAA;QAEtC,IAAM,KAAK,GAAG,GAAG,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAC5C,IAAM,MAAM,GAAG,GAAG,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;QAC9C,IAAM,GAAG,GAAG,GAAG,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;QACvD,IAAM,IAAI,GAAG,GAAG,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,CAAA;QACxD,IAAM,IAAI,GAAG,OAAO,CAAC,IAAI,GAAG,CAAC,CAAA;QAC7B,IAAM,UAAU,GAAqB,GAAG,CAAC,yBAAyB,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;QACtG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;QAEvB,IAAM,SAAS,GAAG,IAAI,kBAAkB,CAAC;YACrC,IAAI,EAAE,EAAE;YACR,aAAa,EAAE,IAAI,CAAC,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;SACvC,CAAC,CAAA;QACF,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;QAEtB,OAAO,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;IAClC,CAAC;IAGc,6BAAyB,GAAxC,UAAyC,EAAU,EAAE,KAAa,EAAE,MAAc,EAAE,GAAW,EAAE,IAAY,EAAE,SAAiB;QAC5H,IAAM,UAAU,GAAG,IAAI,QAAQ,CAAC,WAAW,CAAC,gBAAgB,CAAC;YACzD,EAAE,EAAE,EAAE;YACN,SAAS,EAAE,SAAS;YACpB,aAAa,EAAE,EAAE;YACjB,WAAW,EAAE,IAAI,IAAI,CAAC,EAAE,KAAK,OAAA,EAAE,MAAM,QAAA,EAAE,GAAG,KAAA,EAAE,IAAI,MAAA,EAAE,CAAC;SACtD,CAAC,CAAA;QAEF,OAAO,UAAU,CAAA;IACrB,CAAC;IAEL,UAAC;AAAD,CAAC,AAlND,IAkNC;;AAGD;IACI;QAIO,wBAAmB,GAAa;YACnC,oBAAoB;YACpB,yBAAyB;YACzB,mBAAmB;YACnB,OAAO;YACP,KAAK;YACL,UAAU;YACV,SAAS;YACT,WAAW;YACX,QAAQ;YACR,QAAQ;SACX,CAAA;QAEM,oBAAe,GAAG,UAAU,QAAa;YAC5C,IAAM,WAAW,GAAkB;gBAC/B;oBACI,IAAI,EAAE,QAAQ;oBACd,EAAE,EAAE,cAAc;oBAClB,KAAK,EAAE,cAAc;oBACrB,OAAO;wBACH,QAAQ,CAAC,OAAO,CAAC,CAAA;oBACrB,CAAC;oBACD,IAAI,EAAE,0bAGK;iBACd;gBACD;oBACI,IAAI,EAAE,QAAQ;oBACd,EAAE,EAAE,eAAe;oBACnB,KAAK,EAAE,aAAa;oBACpB,OAAO;wBACH,QAAQ,CAAC,QAAQ,CAAC,CAAA;oBACtB,CAAC;oBACD,IAAI,EAAE,8cAGO;iBAChB;aACJ,CAAA;YACD,OAAO,WAAW,CAAA;QACtB,CAAC,CAAA;IA3CD,CAAC;IA6CM,uBAAU,GAAjB;QACI,IAAM,iBAAiB,GAAG,QAAQ,CAAC,wBAAwB,CAAC;QAC5D,iBAAiB,CAAC,GAAG,GAAG;YACpB,SAAS,EAAE,EAAE;SAChB,CAAC;QAEF,iBAAiB,CAAC,MAAM,GAAG;YACvB,QAAQ,EAAE,IAAI;SACjB,CAAA;QAED,OAAO,iBAAiB,CAAC;IAC7B,CAAC;IACL,SAAC;AAAD,CAAC,AA5DD,IA4DC"} \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/Caveat-Bold.woff b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/Caveat-Bold.woff new file mode 100644 index 00000000..dcdc2e53 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/Caveat-Bold.woff differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/Caveat-Bold.woff2 b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/Caveat-Bold.woff2 new file mode 100644 index 00000000..2c93b8f8 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/Caveat-Bold.woff2 differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/MarckScript-Regular.woff b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/MarckScript-Regular.woff new file mode 100644 index 00000000..ad47f395 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/MarckScript-Regular.woff differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/MarckScript-Regular.woff2 b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/MarckScript-Regular.woff2 new file mode 100644 index 00000000..07437ba6 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/MarckScript-Regular.woff2 differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/Meddon-Regular.woff b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/Meddon-Regular.woff new file mode 100644 index 00000000..52a73499 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/Meddon-Regular.woff differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/Meddon-Regular.woff2 b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/Meddon-Regular.woff2 new file mode 100644 index 00000000..6046b157 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/Meddon-Regular.woff2 differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/Pacifico-Regular.woff b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/Pacifico-Regular.woff new file mode 100644 index 00000000..85a2fcd6 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/Pacifico-Regular.woff differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/Pacifico-Regular.woff2 b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/Pacifico-Regular.woff2 new file mode 100644 index 00000000..10c4fe9f Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/Pacifico-Regular.woff2 differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-1620-4a96500e60ac9b0e.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-1620-4a96500e60ac9b0e.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-1620-4a96500e60ac9b0e.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-1620-4a96500e60ac9b0e.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-4516-915922728fa14a5e.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-4516-915922728fa14a5e.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-4516-915922728fa14a5e.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-4516-915922728fa14a5e.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-lazy-bd921099-16e0c177b0b8fbd0.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-lazy-bd921099-16e0c177b0b8fbd0.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-lazy-bd921099-16e0c177b0b8fbd0.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-lazy-bd921099-16e0c177b0b8fbd0.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-lazy-e459d8bd-184a69efb12c73a0.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-lazy-e459d8bd-184a69efb12c73a0.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-lazy-e459d8bd-184a69efb12c73a0.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-lazy-e459d8bd-184a69efb12c73a0.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-cs-e4d3bdc743ca6596.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-cs-e4d3bdc743ca6596.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-cs-e4d3bdc743ca6596.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-cs-e4d3bdc743ca6596.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-cy-21de76fa0a13fa74.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-cy-21de76fa0a13fa74.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-cy-21de76fa0a13fa74.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-cy-21de76fa0a13fa74.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-da-6dbf4c9490b9685f.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-da-6dbf4c9490b9685f.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-da-6dbf4c9490b9685f.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-da-6dbf4c9490b9685f.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-de-b520e5bf48a99062.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-de-b520e5bf48a99062.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-de-b520e5bf48a99062.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-de-b520e5bf48a99062.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-el-5f665593c815f36c.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-el-5f665593c815f36c.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-el-5f665593c815f36c.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-el-5f665593c815f36c.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-en-4607f47f247eedf1.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-en-4607f47f247eedf1.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-en-4607f47f247eedf1.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-en-4607f47f247eedf1.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-en-GB-4d5acd288044c839.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-en-GB-4d5acd288044c839.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-en-GB-4d5acd288044c839.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-en-GB-4d5acd288044c839.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-es-c069c1546145b62d.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-es-c069c1546145b62d.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-es-c069c1546145b62d.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-es-c069c1546145b62d.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-fi-52aa14db91f4c3e0.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-fi-52aa14db91f4c3e0.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-fi-52aa14db91f4c3e0.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-fi-52aa14db91f4c3e0.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-fr-CA-0020e075edd225e4.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-fr-CA-0020e075edd225e4.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-fr-CA-0020e075edd225e4.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-fr-CA-0020e075edd225e4.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-fr-f459cde970933513.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-fr-f459cde970933513.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-fr-f459cde970933513.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-fr-f459cde970933513.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-hr-c3becc003931466b.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-hr-c3becc003931466b.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-hr-c3becc003931466b.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-hr-c3becc003931466b.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-id-0e0985bb04ffb665.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-id-0e0985bb04ffb665.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-id-0e0985bb04ffb665.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-id-0e0985bb04ffb665.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-it-0f9f741f920a42bf.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-it-0f9f741f920a42bf.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-it-0f9f741f920a42bf.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-it-0f9f741f920a42bf.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-ja-3d793e32a3a0195c.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-ja-3d793e32a3a0195c.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-ja-3d793e32a3a0195c.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-ja-3d793e32a3a0195c.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-ko-c83844c33e0ab74b.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-ko-c83844c33e0ab74b.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-ko-c83844c33e0ab74b.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-ko-c83844c33e0ab74b.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-ms-c53fb1195859d52d.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-ms-c53fb1195859d52d.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-ms-c53fb1195859d52d.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-ms-c53fb1195859d52d.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-nb-NO-1f06c47e6b42da4d.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-nb-NO-1f06c47e6b42da4d.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-nb-NO-1f06c47e6b42da4d.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-nb-NO-1f06c47e6b42da4d.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-nl-73df7470e6448077.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-nl-73df7470e6448077.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-nl-73df7470e6448077.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-nl-73df7470e6448077.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-pl-7968816f155acd7a.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-pl-7968816f155acd7a.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-pl-7968816f155acd7a.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-pl-7968816f155acd7a.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-pt-PT-ee71f9ccb8259421.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-pt-PT-ee71f9ccb8259421.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-pt-PT-ee71f9ccb8259421.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-pt-PT-ee71f9ccb8259421.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-pt-aa785b715aa4b427.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-pt-aa785b715aa4b427.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-pt-aa785b715aa4b427.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-pt-aa785b715aa4b427.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-ru-3ed84f39edb82787.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-ru-3ed84f39edb82787.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-ru-3ed84f39edb82787.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-ru-3ed84f39edb82787.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-sk-0a0962b004cbfc49.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-sk-0a0962b004cbfc49.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-sk-0a0962b004cbfc49.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-sk-0a0962b004cbfc49.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-sl-323f786f7ffc3de5.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-sl-323f786f7ffc3de5.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-sl-323f786f7ffc3de5.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-sl-323f786f7ffc3de5.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-sv-9ca19e198542db73.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-sv-9ca19e198542db73.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-sv-9ca19e198542db73.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-sv-9ca19e198542db73.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-th-5b2e951c941ce549.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-th-5b2e951c941ce549.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-th-5b2e951c941ce549.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-th-5b2e951c941ce549.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-tr-d32c7602d4f1459b.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-tr-d32c7602d4f1459b.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-tr-d32c7602d4f1459b.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-tr-d32c7602d4f1459b.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-uk-c1c05f3187410434.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-uk-c1c05f3187410434.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-uk-c1c05f3187410434.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-uk-c1c05f3187410434.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-zh-Hans-c673c073e2725bba.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-zh-Hans-c673c073e2725bba.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-zh-Hans-c673c073e2725bba.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-zh-Hans-c673c073e2725bba.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-zh-Hant-5416b3fbfc718a21.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-zh-Hant-5416b3fbfc718a21.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-locale-zh-Hant-5416b3fbfc718a21.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-locale-zh-Hant-5416b3fbfc718a21.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-cs-83cf420a74f407c1.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-cs-83cf420a74f407c1.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-cs-83cf420a74f407c1.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-cs-83cf420a74f407c1.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-cy-8aa03686833c8b07.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-cy-8aa03686833c8b07.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-cy-8aa03686833c8b07.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-cy-8aa03686833c8b07.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-da-fd201725f9a97006.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-da-fd201725f9a97006.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-da-fd201725f9a97006.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-da-fd201725f9a97006.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-de-caff7c5f33f7ca23.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-de-caff7c5f33f7ca23.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-de-caff7c5f33f7ca23.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-de-caff7c5f33f7ca23.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-el-cd812fc6ff37019e.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-el-cd812fc6ff37019e.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-el-cd812fc6ff37019e.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-el-cd812fc6ff37019e.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-en-06390ffdbab2516c.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-en-06390ffdbab2516c.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-en-06390ffdbab2516c.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-en-06390ffdbab2516c.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-es-e1e11a1a85ee90d6.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-es-e1e11a1a85ee90d6.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-es-e1e11a1a85ee90d6.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-es-e1e11a1a85ee90d6.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-fi-cfc6a0f3f76d35c4.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-fi-cfc6a0f3f76d35c4.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-fi-cfc6a0f3f76d35c4.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-fi-cfc6a0f3f76d35c4.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-fr-73e187ecc0e09958.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-fr-73e187ecc0e09958.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-fr-73e187ecc0e09958.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-fr-73e187ecc0e09958.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-hr-7c088f78cf6f2251.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-hr-7c088f78cf6f2251.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-hr-7c088f78cf6f2251.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-hr-7c088f78cf6f2251.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-id-5de33abc7d4cdc0e.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-id-5de33abc7d4cdc0e.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-id-5de33abc7d4cdc0e.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-id-5de33abc7d4cdc0e.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-it-051149a5be49fc53.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-it-051149a5be49fc53.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-it-051149a5be49fc53.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-it-051149a5be49fc53.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-ja-b013dd32b0dd987f.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-ja-b013dd32b0dd987f.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-ja-b013dd32b0dd987f.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-ja-b013dd32b0dd987f.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-ko-788c0ac96028cf16.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-ko-788c0ac96028cf16.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-ko-788c0ac96028cf16.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-ko-788c0ac96028cf16.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-ms-af935fff5a3297a3.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-ms-af935fff5a3297a3.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-ms-af935fff5a3297a3.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-ms-af935fff5a3297a3.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-nb-8a0e9865351b27ee.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-nb-8a0e9865351b27ee.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-nb-8a0e9865351b27ee.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-nb-8a0e9865351b27ee.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-nl-e54eab5823bb03b6.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-nl-e54eab5823bb03b6.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-nl-e54eab5823bb03b6.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-nl-e54eab5823bb03b6.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-pl-f499a18020de1c42.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-pl-f499a18020de1c42.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-pl-f499a18020de1c42.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-pl-f499a18020de1c42.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-pt-58c42f00781b16e6.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-pt-58c42f00781b16e6.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-pt-58c42f00781b16e6.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-pt-58c42f00781b16e6.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-ru-c00fe67da56068c3.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-ru-c00fe67da56068c3.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-ru-c00fe67da56068c3.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-ru-c00fe67da56068c3.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-sk-34a2c69cc530755c.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-sk-34a2c69cc530755c.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-sk-34a2c69cc530755c.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-sk-34a2c69cc530755c.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-sl-9cd8d2d2e11150c2.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-sl-9cd8d2d2e11150c2.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-sl-9cd8d2d2e11150c2.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-sl-9cd8d2d2e11150c2.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-sv-92c607f3329c870a.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-sv-92c607f3329c870a.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-sv-92c607f3329c870a.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-sv-92c607f3329c870a.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-th-137130bef3d2eb0f.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-th-137130bef3d2eb0f.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-th-137130bef3d2eb0f.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-th-137130bef3d2eb0f.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-tr-fd34ba5644b1efac.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-tr-fd34ba5644b1efac.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-tr-fd34ba5644b1efac.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-tr-fd34ba5644b1efac.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-uk-cb3167cb98fea748.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-uk-cb3167cb98fea748.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-uk-cb3167cb98fea748.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-uk-cb3167cb98fea748.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-zh-be750304a9a9177e.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-zh-be750304a9a9177e.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-localedata-zh-be750304a9a9177e.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-localedata-zh-be750304a9a9177e.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-server-cf768524f80b04c0.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-server-cf768524f80b04c0.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-server-cf768524f80b04c0.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-server-cf768524f80b04c0.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-server-instant-9dcf7f5ef33c445a.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-server-instant-9dcf7f5ef33c445a.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-server-instant-9dcf7f5ef33c445a.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-server-instant-9dcf7f5ef33c445a.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-server-rest-3d4d52f1ac6ae9a0.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-server-rest-3d4d52f1ac6ae9a0.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-server-rest-3d4d52f1ac6ae9a0.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-server-rest-3d4d52f1ac6ae9a0.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-standalone-f10293fdc625b5cd.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-standalone-f10293fdc625b5cd.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/chunk-standalone-f10293fdc625b5cd.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/chunk-standalone-f10293fdc625b5cd.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/dark-48ce188268a233f4.css b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/dark-48ce188268a233f4.css new file mode 100644 index 00000000..3318c3b6 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/dark-48ce188268a233f4.css @@ -0,0 +1,85 @@ +/*! + * PSPDFKit for Web 2023.4.0 (https://pspdfkit.com/web) + * + * Copyright (c) 2016-2023 PSPDFKit GmbH. All rights reserved. + * + * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW + * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT. + * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES. + * This notice may not be removed from this file. + * + * PSPDFKit uses several open source third-party components: https://pspdfkit.com/acknowledgements/web/ + */ +:root{--PSPDFKit-shadow-color:rgba(0,0,0,.5);--PSPDFKit-App-background:var(--color-coolGrey700);--PSPDFKit-Viewport-background:var(--PSPDFKit-App-background);--PSPDFKit-Button-isDisabled-opacity:0.3;--PSPDFKit-Button--default-backgroundColor:var(--color-coolGrey800);--PSPDFKit-Button--default-borderColor:var(--color-coolGrey700);--PSPDFKit-Button--default-color:var(--color-coolGrey100);--PSPDFKit-Button--default-isHovered-backgroundColor:var(--color-coolGrey800);--PSPDFKit-Button--default-isHovered-borderColor:var(--color-coolGrey100_alpha05);--PSPDFKit-Button--default-isHovered-color:var(--color-coolGrey50);--PSPDFKit-Button--default-isActive-backgroundColor:var(--color-coolGrey1000);--PSPDFKit-Button--default-isActive-borderColor:var(--color-coolGrey800);--PSPDFKit-Button--default-isActive-color:var(--color-coolGrey400);--PSPDFKit-Button--default-isDisabled-backgroundColor:var(--color-coolGrey800);--PSPDFKit-Button--default-isDisabled-borderColor:var(--color-coolGrey700);--PSPDFKit-Button--default-isDisabled-color:var(--color-coolGrey100);--PSPDFKit-Button--primary-backgroundColor:var(--color-blue600);--PSPDFKit-Button--primary-border:var(--color-blue400);--PSPDFKit-Button--primary-color:var(--color-white);--PSPDFKit-Button--primary-isHovered-backgroundColor:var(--color-blue600);--PSPDFKit-Button--primary-isHovered-borderColor:var(--color-coolGrey100_alpha05);--PSPDFKit-Button--primary-isHovered-color:var(--color-white);--PSPDFKit-Button--primary-isActive-backgroundColor:var(--color-blue700);--PSPDFKit-Button--primary-isActive-borderColor:var(--color-blue600);--PSPDFKit-Button--primary-isActive-color:var(--color-coolGrey100);--PSPDFKit-Button--primary-isDisabled-backgroundColor:var(--color-blue600);--PSPDFKit-Button--primary-isDisabled-borderColor:var(--color-blue400);--PSPDFKit-Button--primary-isDisabled-color:var(--color-white);--PSPDFKit-Button--primary-inverted-color:var(--PSPDFKit-Button--primary-backgroundColor);--PSPDFKit-Button--danger-backgroundColor:var(--color-red900);--PSPDFKit-Button--danger-borderColor:var(--color-red400);--PSPDFKit-Button--danger-color:var(--color-white);--PSPDFKit-Button--danger-isHovered-backgroundColor:var(--color-red600);--PSPDFKit-Button--danger-isHovered-borderColor:var(--color-red400);--PSPDFKit-Button--danger-isHovered-color:var(--color-white);--PSPDFKit-Button--danger-isDisabled-backgroundColor:var(--color-red600);--PSPDFKit-Button--danger-isDisabled-borderColor:var(--color-red100);--PSPDFKit-Button--danger-isDisabled-color:var(--color-white);--PSPDFKit-Modal-dialog-backgroundColor:var(--color-coolGrey900);--PSPDFKit-Modal-dialog-boxShadowColor:var(--PSPDFKit-shadow-color);--PSPDFKit-Modal-dialog-color:var(--color-white);--PSPDFKit-Modal-backdrop-backgroundColor:var(--color-coolGrey900_alpha05);--PSPDFKit-Modal-divider-color:var(--color-coolGrey400_alpha05);--PSPDFKit-Modal-divider-border:var(--PSPDFKit-Modal-divider-color);--PSPDFKit-Mobile-popover-backgroundColor:var(--color-coolGrey900);--PSPDFKit-ConfirmModalComponent-button-isFocused-border:var(--color-blue100);--PSPDFKit-Text-color:var(--color-white);--PSPDFKit-TextInput--default-backgroundColor:var(--color-coolGrey850);--PSPDFKit-TextInput--default-borderColor:var(--color-coolGrey700);--PSPDFKit-TextInput--default-color:var(--color-white);--PSPDFKit-TextInput--default-placeholder-color:var(--color-coolGrey400_alpha05);--PSPDFKit-TextInput--default-isFocused-backgroundColor:var(--color-coolGrey850);--PSPDFKit-TextInput--default-isFocused-borderColor:var(--color-coolGrey800);--PSPDFKit-TextInput--default-isFocused-color:var(--color-white);--PSPDFKit-TextInput--error-backgroundColor:var(--color-red800);--PSPDFKit-TextInput--error-borderColor:var(--color-red100);--PSPDFKit-TextInput--error-color:var(--color-white);--PSPDFKit-TextInput--error-placeholder-color:var(--color-red100);--PSPDFKit-TextInput--error-isFocused-backgroundColor:var(--color-red800);--PSPDFKit-TextInput--error-isFocused-borderColor:var(--color-red600);--PSPDFKit-TextInput--error-isFocused-color:var(--color-white);--PSPDFKit-TextInput--success-backgroundColor:var(--color-green800);--PSPDFKit-TextInput--success-borderColor:var(--color-green100);--PSPDFKit-TextInput--success-color:var(--color-white);--PSPDFKit-TextInput--success-placeholder-color:var(--color-green100);--PSPDFKit-TextInput--success-isFocused-backgroundColor:var(--color-green800);--PSPDFKit-TextInput--success-isFocused-borderColor:var(--color-green600);--PSPDFKit-TextInput--success-isFocused-color:var(--color-white);--PSPDFKit-Toolbar-background:var(--color-coolGrey850);--PSPDFKit-Toolbar-color:var(--color-white);--PSPDFKit-Toolbar-boxShadow:var(--color-coolGrey900);--PSPDFKit-Toolbar-hover:var(--color-coolGrey700);--PSPDFKit-Toolbar-button-border:var(--color-coolGrey800);--PSPDFKit-Toolbar-dropdownButton-isSelected-background:var(--color-blue600);--PSPDFKit-Toolbar-dropdownButton-isSelected-color:var(--color-white);--PSPDFKit-Toolbar-dropdownButton-isFocused-background:var(--color-blue600);--PSPDFKit-Toolbar-dropdownButton-isFocused-color:var(--color-white);--PSPDFKit-Toolbar-dropdownButton-isDisabled-background:var(--color-coolGrey800_alpha05);--PSPDFKit-ToolbarButton-dropdown-isFocused-background:var(--color-coolGrey700);--PSPDFKit-ToolbarButton-dropdown-isFocused-color:var(--color-white);--PSPDFKit-ToolbarButton-isDisabled-opacity:0.3;--PSPDFKit-ToolbarButton-isDisabled-child-fill:var(--color-white);--PSPDFKit-ToolbarButton-isActive-background:var(--color-blue600);--PSPDFKit-ToolbarButton-isActive-color:var(--color-white);--PSPDFKit-ToolbarDropdownGroup-background:var(--color-coolGrey850);--PSPDFKit-ToolbarDropdownGroup-activeChild-color:var(--color-white);--PSPDFKit-ToolbarDropdownGroup-toggle-color:var(--color-white);--PSPDFKit-ToolbarResponsiveGroup--primary-background:var(--color-coolGrey850);--PSPDFKit-ToolbarResponsiveGroup--secondary-background:var(--color-coolGrey800);--PSPDFKit-ToolbarResponsiveGroup--secondary-border:var(--color-coolGrey700);--PSPDFKit-ToolbarResponsiveGroup-button--primary-border:var(--color-coolGrey700);--PSPDFKit-ToolbarResponsiveGroup-button--primary-arrow-border:var(--color-coolGrey50);--PSPDFKit-ToolbarResponsiveGroup-button--secondary-border:var(--color-coolGrey700);--PSPDFKit-ToolbarResponsiveGroup-button--secondary-arrow-border:var(--color-coolGrey25);--PSPDFKit-ToolbarResponsiveGroup-button--secondary-arrow-isFocused-background:var( + --color-coolGrey700 + );--PSPDFKit-ToolbarResponsiveGroup-button-svg-fill:var(--color-white);--PSPDFKit-CropToolbarComponent-button-borderColor:var(--color-coolGrey600);--PSPDFKit-CropToolbarComponent-button-isHovered-borderColor:var(--color-coolGrey200);--PSPDFKit-CropToolbarComponent-text-color:var(--color-white);--PSPDFKit-CropToolbarComponent-button-isHovered-backgroundColor:var(--color-coolGrey700);--PSPDFKit-CropToolbarComponent-button-isDeselected-border:var(--color-coolGrey700);--PSPDFKit-CropToolbarComponent-border:var(--color-coolGrey700);--PSPDFKit-ContentEditorToolbar-background:var(--color-coolGrey800);--PSPDFKit-ContentEditorToolbar-button-border:var(--color-coolGrey600);--PSPDFKit-ContentEditorToolbar-button-isHovered-border:var( + --PSPDFKit-Button--default-isHovered-borderColor + );--PSPDFKit-ContentEditorToolbar-text-color:var(--color-white);--PSPDFKit-ContentEditorToolbar-button-color:var(--color-coolGrey100);--PSPDFKit-ContentEditorToolbar-button-isHovered-backgroundColor:var(--color-coolGrey700);--PSPDFKit-ContentEditorToolbar-button-isDeselected-border:var(--color-coolGrey700);--PSPDFKit-ContentEditorToolbar-border:var(--color-coolGrey700);--PSPDFKit-ContentEditorToolbar-button-save-backgroundColor:var( + --PSPDFKit-Button--primary-backgroundColor + );--PSPDFKit-ContentEditorToolbar-button-save-color:var(--PSPDFKit-Button--primary-color);--PSPDFKit-ContentEditorToolbar-button-save-border:var(--PSPDFKit-Button--primary-border);--PSPDFKit-ContentEditorToolbar-button-hover-save-backgroundColor:var( + --PSPDFKit-Button--primary-isHovered-backgroundColor + );--PSPDFKit-ContentEditorToolbar-button-hover-save-color:var( + --PSPDFKit-Button--primary-isHovered-color + );--PSPDFKit-ContentEditorToolbar-button-hover-save-border:var( + --PSPDFKit-Button--primary-isHovered-borderColor + );--PSPDFKit-ContentEditorToolbar-button-fontstyle-backgroundColor:var( + --PSPDFKit-AnnotationToolbar-icon-label-background + );--PSPDFKit-ContentEditorToolbar-button-fontstyle-isActive-backgroundColor:var( + --PSPDFKit-AnnotationToolbar-iconLabel-isActive-background + );--PSPDFKit-ContentEditorToolbar-button-fontstyle-isActive-svg-color:var( + --PSPDFKit-AnnotationToolbar-iconLabel-isActive-svg-color + );--PSPDFKit-MagnifierComponent-magnifierContainer-borderColor:var(--color-black);--PSPDFKit-MagnifierComponent-background:var(--PSPDFKit-App-background);--PSPDFKit-MagnifierComponent-magnifierGrid-stroke:var(--color-coolGrey100);--PSPDFKit-MagnifierComponent-magnifierCenterOutlineStroke-stroke:var(--color-white);--PSPDFKit-MagnifierComponent-magnifierCenterStroke-stroke:var(--color-black);--PSPDFKit-MagnifierComponent-magnifierZoomValue-backgroundColor:var(--color-coolGrey400);--PSPDFKit-MagnifierComponent-magnifierZoomValue-color:var(--color-white);--PSPDFKit-MagnifierComponent-magnifierContainer-boxShadow:var(--color-white);--PSPDFKit-DocumentComparison-crosshair-stroke:var(--color-blue70);--PSPDFKit-DocumentComparisonToolbar-background:var(--color-coolGrey800);--PSPDFKit-DocumentComparisonToolbar-border:var(--color-coolGrey700);--PSPDFKit-DocumentComparisonToolbar-color:var(--color-coolGrey100);--PSPDFKit-DocumentComparisonToolbar-form-color:var(--color-coolGrey100);--PSPDFKit-DocumentComparisonToolbar-startLineCapSelect-circle-stroke:var(--color-coolGrey100);--PSPDFKit-DocumentComparisonToolbar-button-color:var(--color-coolGrey100);--PSPDFKit-DocumentComparisonToolbar-button-border:var(--color-coolGrey700);--PSPDFKit-DocumentComparisonToolbar-highlight-button-color:var(--color-coolGrey100);--PSPDFKit-DocumentComparisonToolbar-highlight-button-background:var(--color-blue600);--PSPDFKit-DocumentComparisonToolbar-tab-border:var(--color-coolGrey850);--PSPDFKit-DocumentComparisonToolbar-tab-active-background:var(--PSPDFKit-App-background);--PSPDFKit-DocumentComparisonToolbar-referencePoint-background:var(--color-blue200);--PSPDFKit-DocumentComparisonToolbar-referencePointSet-background:var(--color-green400);--PSPDFKit-DocumentComparisonToolbar-referencePoint-text-color:var(--color-coolGrey1000);--PSPDFKit-DocumentComparisonToolbar-referencePointSet-text-color:var(--color-coolGrey1000);--PSPDFKit-DocumentComparisonToolbar-button-isHovered-background:var( + --color-coolGrey400_alpha05 + );--PSPDFKit-DocumentComparisonToolbar-button-svg-color:var(--color-white);--PSPDFKit-DocumentComparisonToolbar-button-svg-fill:var( + --PSPDFKit-AnnotationToolbar-button-svg-color + );--PSPDFKit-DocumentComparisonToolbar-button-outline:var(--color-coolGrey200);--PSPDFKit-DocumentComparisonToolbar-button-isDeselected-border:var(--color-coolGrey700);--PSPDFKit-DocumentComparisonToolbar-icon-label-background:var(--color-coolGrey1000);--PSPDFKit-DocumentComparisonToolbar-icon-color:var(--color-white);--PSPDFKit-DocumentComparisonToolbar-label-color:var(--color-white);--PSPDFKit-DocumentComparisonToolbar-iconLabel-isActive-background:var(--color-blue600);--PSPDFKit-DocumentComparisonToolbar-iconLabel-isActive-border:var(--color-blue600);--PSPDFKit-DocumentComparisonToolbar-iconLabel-isActive-svg-color:var(--color-white);--PSPDFKit-DocumentComparisonToolbar-iconLabel-isActive-svg-fill:var( + --PSPDFKit-DocumentComparisonToolbar-iconLabel-isActive-svg-color + );--PSPDFKit-DocumentComparisonToolbar-dropdownMenu-button-background:var( + --PSPDFKit-DropdownMenu-button-background + );--PSPDFKit-DocumentComparisonToolbar-dropdownMenu-button-border:var( + --PSPDFKit-DropdownMenu-button-border + );--PSPDFKit-DocumentComparisonToolbar-dropdownMenu-button-isHovered-color:var( + --PSPDFKit-DropdownMenu-button-isHovered-color + );--PSPDFKit-DocumentComparisonToolbar-dropdownMenu-button-color:var( + --PSPDFKit-DropdownMenu-button-fill + );--PSPDFKit-DocumentComparisonToolbar-checkMark-stroke:var(--color-coolGrey1000);--PSPDFKit-DocumentComparisonToolbar-checkMark-fill:var(--color-blue200);--PSPDFKit-DocumentComparisonToolbar-documentCheckMark-stroke:var(--color-coolGrey1000);--PSPDFKit-DocumentComparisonToolbar-documentCheckMark-fill:var(--color-green400);--PSPDFKit-DocumentComparisonToolbar-referencePointText-stroke:var(--color-coolGrey1000);--PSPDFKit-DocumentComparisonToolbar-referencePointText-fill:var(--color-coolGrey1000);--PSPDFKit-DocumentComparisonToolbar-referencePoint-fill:var(--color-coolGrey400);--PSPDFKit-DocumentComparisonToolbar-referencePointSetText-stroke:var(--color-coolGrey1000);--PSPDFKit-DocumentComparisonToolbar-referencePointSetText-fill:var(--color-coolGrey1000);--PSPDFKit-DocumentComparisonToolbar-referencePointSet-fill:var(--color-blue200);--PSPDFKit-DocumentComparisonToolbar-separator-background:var(--color-coolGrey400);--PSPDFKit-AnnotationToolbar-background:var(--color-coolGrey800);--PSPDFKit-AnnotationToolbar-border:var(--color-coolGrey700);--PSPDFKit-AnnotationToolbar-color:var(--color-coolGrey100);--PSPDFKit-AnnotationToolbar-form-color:var(--color-coolGrey100);--PSPDFKit-AnnotationToolbar-startLineCapSelect-circle-stroke:var(--color-coolGrey100);--PSPDFKit-AnnotationToolbar-button-color:var(--color-coolGrey100);--PSPDFKit-AnnotationToolbar-button-border:var(--color-coolGrey700);--PSPDFKit-AnnotationToolbar-button-isHovered-background:var(--color-coolGrey400_alpha05);--PSPDFKit-AnnotationToolbar-button-svg-color:var(--color-white);--PSPDFKit-AnnotationToolbar-button-svg-fill:var(--PSPDFKit-AnnotationToolbar-button-svg-color);--PSPDFKit-AnnotationToolbar-button-outline:var(--color-coolGrey200);--PSPDFKit-AnnotationToolbar-button-isDeselected-border:var(--color-coolGrey700);--PSPDFKit-AnnotationToolbar-icon-label-background:var(--color-coolGrey1000);--PSPDFKit-AnnotationToolbar-warning-icon-background:var(--color-orange100);--PSPDFKit-AnnotationToolbar-icon-color:var(--color-white);--PSPDFKit-AnnotationToolbar-label-color:var(--color-white);--PSPDFKit-AnnotationToolbar-iconLabel-isActive-background:var(--color-blue600);--PSPDFKit-AnnotationToolbar-iconLabel-isActive-border:var(--color-blue600);--PSPDFKit-AnnotationToolbar-iconLabel-isActive-svg-color:var(--color-white);--PSPDFKit-AnnotationToolbar-iconLabel-isActive-svg-fill:var( + --PSPDFKit-AnnotationToolbar-iconLabel-isActive-svg-color + );--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background:var( + --PSPDFKit-DropdownMenu-button-background + );--PSPDFKit-AnnotationToolbar-dropdownMenu-button-border:var( + --PSPDFKit-DropdownMenu-button-border + );--PSPDFKit-AnnotationToolbar-dropdownMenu-button-isHovered-color:var( + --PSPDFKit-DropdownMenu-button-isHovered-color + );--PSPDFKit-AnnotationToolbar-dropdownMenu-button-color:var(--PSPDFKit-DropdownMenu-button-fill);--PSPDFKit-AnnotationToolbar-redactions-button-background:var(--color-coolGrey1000);--PSPDFKit-AnnotationToolbar-redactions-button-color:var(--color-white);--PSPDFKit-AnnotationToolbar-redactions-button-isHovered-background:var(--color-blue600);--PSPDFKit-AnnotationToolbar-redactions-button-isHovered-color:var( + --PSPDFKit-AnnotationToolbar-redactions-button-color + );--PSPDFKit-ColorDropdown-colorItemContainer-isFocused-background:var( + --PSPDFKit-ToolbarButton-dropdown-isFocused-background + );--PSPDFKit-ColorDropdown-customColor-deleteButton-color:var(--color-black);--PSPDFKit-CheckboxComponent-label-color:var(--color-white);--PSPDFKit-CheckboxComponent-unchecked-border:var(--color-coolGrey200);--PSPDFKit-CheckboxComponent-checked-border:var(--color-blue400);--PSPDFKit-CheckboxComponent-checked-background:var(--color-blue600);--PSPDFKit-LayoutConfig-arrow-border:var(--color-coolGrey700);--PSPDFKit-LayoutConfig-arrowFill-border:var(--color-coolGrey850);--PSPDFKit-LayoutConfig-table-border:var(--color-coolGrey700);--PSPDFKit-LayoutConfig-icon-isActive-color:var(--color-white);--PSPDFKit-LayoutConfig-icon-isActive-background:var(--color-blue600);--PSPDFKit-LayoutConfig-icon-isHighlighted-background:var(--color-coolGrey700);--PSPDFKit-Pager-color:var(--color-white);--PSPDFKit-Pager-input-background:var(--color-coolGrey1000);--PSPDFKit-Pager-input-color:var(--color-white);--PSPDFKit-Pager-input-isActive-color:var(--color-white);--PSPDFKit-Pager-input-isHovered-color:var(--color-coolGrey50);--PSPDFKit-Pager-input-isHovered-background:var(--color-coolGrey800);--PSPDFKit-Pager-input-isDisabled-color:var(--PSPDFKit-Pager-input-isActive-color);--PSPDFKit-Pager-input-isDisabled-opacity:0.3;--PSPDFKit-Progress-dot-size:6px;--PSPDFKit-Progress-dot-height:var(--PSPDFKit-Progress-dot-size);--PSPDFKit-Progress-dot-width:var(--PSPDFKit-Progress-dot-size);--PSPDFKit-Progress-borderRadius:5px;--PSPDFKit-Progress-progress-background:var(--color-coolGrey850);--PSPDFKit-Progress-progress-color:var(--color-white);--PSPDFKit-Progress-progressBar-background:var(--color-blue600);--PSPDFKit-Progress-progressText-color:var(--color-white);--PSPDFKit-ColorPicker-isHovered-background:var(--color-coolGrey400_alpha05);--PSPDFKit-ColorPicker-swatch-border:var(--color-white);--PSPDFKit-ColorPicker-input-isActive-background:var(--color-blue600);--PSPDFKit-ColorPicker-input-outline:var(--color-coolGrey200);--PSPDFKit-ColorPicker-swatch--transparent-border:var(--color-coolGrey200);--PSPDFKit-ColorPicker-swatch--transparent-background:var(--color-white);--PSPDFKit-ColorPicker-swatch--transparent-after-border:var(--color-red400);--PSPDFKit-SliderComponent-thumb-color:var(--color-blue600);--PSPDFKit-SliderComponent-thumb-isHovered-color:var(--color-blue800);--PSPDFKit-SliderComponent-thumb-border:var(--color-white);--PSPDFKit-SliderComponent-track-color:var(--color-coolGrey1000);--PSPDFKit-SliderComponent-track-progress-color:var(--color-blue600);--PSPDFKit-SliderDropdownComponent-items-background:var(--color-coolGrey1000);--PSPDFKit-SliderDropdownComponent-items-border:var(--color-coolGrey100_alpha25);--PSPDFKit-SliderDropdownComponent-button-background:var(--color-coolGrey1000);--PSPDFKit-SliderDropdownComponent-button-border:var(--color-coolGrey100_alpha25);--PSPDFKit-SliderDropdownComponent-button-color:var(--color-white);--PSPDFKit-SliderDropdownComponent-button-isHovered-color:var(--color-coolGrey700);--PSPDFKit-SliderDropdownComponent-button-toggle-color:var(--color-white);--PSPDFKit-SliderDropdownComponent-button-show-color:var( + --PSPDFKit-SliderDropdownComponent-button-isHovered-color + );--PSPDFKit-SliderDropdownComponent-item-color:var( + --PSPDFKit-SliderDropdownComponent-button-color + );--PSPDFKit-SliderDropdownComponent-item-border:var( + --PSPDFKit-SliderDropdownComponent-button-border + );--PSPDFKit-SliderDropdownComponent-item-isFocused-background:var(--color-blue600);--PSPDFKit-SliderDropdownComponent--item-isFocused-color:var(--color-white);--PSPDFKit-SliderDropdownComponent-item-isSelected-background:var(--color-coolGrey850);--PSPDFKit-SliderDropdownComponent-item-isDisabled-color:var( + --PSPDFKit-SliderDropdownComponent-button-color + );--PSPDFKit-SliderDropdownComponent-item-isDisabled-opacity:0.3;--PSPDFKit-SliderDropdownComponent-item-isFocused-isSelected-background:var(--color-blue600);--PSPDFKit-SliderDropdownComponent-dropdown-background:var(--color-coolGrey850);--PSPDFKit-SliderDropdownComponent-dropdown-color:var(--color-white);--PSPDFKit-SliderDropdownComponent-dropdown-border:var(--color-coolGrey100_alpha25);--PSPDFKit-TextInputComponent-input-background:var(--color-coolGrey1000);--PSPDFKit-TextInputComponent-input-border:var(--color-coolGrey700);--PSPDFKit-TextInputComponent-input-color:var(--color-white);--PSPDFKit-TextInputComponent-input-isHovered-color:var(--color-coolGrey700);--PSPDFKit-TextInputComponent-input-active-border:var(--color-blue200);--PSPDFKit-PasswordModal-icon--regular-color:var(--color-blue400);--PSPDFKit-PasswordModal-icon--error-color:var(--color-red800);--PSPDFKit-PasswordModal-icon--success-color:var(--color-green800);--PSPDFKit-PasswordModal-message--alert-background:var(--color-red600);--PSPDFKit-PasswordModal-message--alert-color:var(--color-white);--PSPDFKit-PasswordModal-message--alert-border:var(--color-red800);--PSPDFKit-SearchForm-background:var(--color-coolGrey1000);--PSPDFKit-SearchForm-border:var(--PSPDFKit-Viewport-background);--PSPDFKit-SearchForm-input-background:var(--color-coolGrey850);--PSPDFKit-SearchForm-input-color:var(--color-white);--PSPDFKit-SearchForm-input-placeholder-color:var(--color-coolGrey100);--PSPDFKit-SearchForm-results-isDisabled-background:var(--PSPDFKit-SearchForm-input-background);--PSPDFKit-SearchForm-results-isDisabled-color:var(--color-coolGrey400_alpha05);--PSPDFKit-SearchForm-button-color:var(--color-white);--PSPDFKit-SearchForm-button-background:var(--color-coolGrey850);--PSPDFKit-SearchForm-button-isHovered-background:var(--color-coolGrey700);--PSPDFKit-SearchForm-button-isHovered-color:var(--color-coolGrey25);--PSPDFKit-SearchForm-button-controls-background:var(--PSPDFKit-SearchForm-button-background);--PSPDFKit-SearchForm-button-controls-color:var(--PSPDFKit-SearchForm-button-color);--PSPDFKit-SearchForm-button-controls-isHovered-background:var( + --PSPDFKit-SearchForm-button-isHovered-background + );--PSPDFKit-SearchForm-button-controls-isDisabled-color:var(--color-coolGrey100_alpha05);--PSPDFKit-SearchForm-button-lasChild-border:var(--color-coolGrey1000);--PSPDFKit-SearchHighlight-background:var(--color-orange800);--PSPDFKit-SearchHighlight-isFocused-background:var(--color-yellow600);--PSPDFKit-Sidebar-background:var(--color-coolGrey850);--PSPDFKit-Sidebar-dragger-background:var(--color-coolGrey1000);--PSPDFKit-Sidebar-dragger-border:var(--color-coolGrey1000);--PSPDFKit-Sidebar-dragger-pseudo-background:var(--color-coolGrey100);--PSPDFKit-Sidebar-draggerHandle-background:var(--color-coolGrey900);--PSPDFKit-Sidebar-draggerHandle-border:var(--PSPDFKit-Sidebar-dragger-border);--PSPDFKit-Sidebar-header-background:var(--color-coolGrey800);--PSPDFKit-AnnotationsSidebar--empty-background:var(--PSPDFKit-Sidebar-background);--PSPDFKit-AnnotationsSidebar--empty-color:var(--color-white);--PSPDFKit-AnnotationsSidebar-container-background:var(--PSPDFKit-Sidebar-background);--PSPDFKit-AnnotationsSidebar-annotationCounter-background:var(--PSPDFKit-Sidebar-background);--PSPDFKit-AnnotationsSidebar-annotationCounter-color:var(--color-white);--PSPDFKit-AnnotationsSidebar-annotations-background:var(--PSPDFKit-Sidebar-background);--PSPDFKit-AnnotationsSidebar-annotations-border:var(--color-coolGrey400);--PSPDFKit-AnnotationsSidebar-icon-color:var(--color-blue100);--PSPDFKit-AnnotationsSidebar-layout-background:var(--color-coolGrey800);--PSPDFKit-AnnotationsSidebar-layoutContent-color:var(--color-white);--PSPDFKit-AnnotationsSidebar-layoutContent-button-color:var( + --PSPDFKit-AnnotationsSidebar-layoutContent-color + );--PSPDFKit-AnnotationsSidebar-layoutContent-button-color--selected:var( + --PSPDFKit-AnnotationsSidebar-layoutContent-color + );--PSPDFKit-AnnotationsSidebar-footer-color:var(--color-white);--PSPDFKit-AnnotationsSidebar-deleteIcon-color:var(--color-coolGrey100);--PSPDFKit-AnnotationsSidebar-pageNumber-background:var(--color-coolGrey800);--PSPDFKit-AnnotationsSidebar-pageNumber-color:var(--color-coolGrey100);--PSPDFKit-DocumentEditor-moveDialog-background:var(--color-coolGrey850);--PSPDFKit-DocumentEditor-moveDialogFormInput-background:var(--color-coolGrey900);--PSPDFKit-DocumentEditor-moveDialogFormInput-borderColor:var(--color-coolGrey800);--PSPDFKit-DocumentEditor-moveDialogFormInput-boxShadowColor:var(--color-coolGrey1000);--PSPDFKit-DocumentEditor-moveDialogHint-background:var(--color-coolGrey800);--PSPDFKit-DocumentEditor-moveDialogHintText-color:var(--color-coolGrey400);--PSPDFKit-DocumentEditor-pagesView-background:var(--color-coolGrey900);--PSPDFKit-DocumentEditor-bottomBar-background:var(--color-coolGrey850);--PSPDFKit-DocumentEditor-pagesSelectedIndicator-background:var(--color-blue400);--PSPDFKit-DocumentOutline-background:var(--PSPDFKit-Sidebar-background);--PSPDFKit-DocumentOutline-control-color:var(--color-white);--PSPDFKit-DocumentOutline-control-border:var(--color-coolGrey700);--PSPDFKit-DocumentOutline-icon-color:var(--color-white);--PSPDFKit-DocumentOutline-icon-isHovered-color:var(--color-blue100);--PSPDFKit-BookmarksSidebar-background:var(--PSPDFKit-Sidebar-background);--PSPDFKit-BookmarksSidebar-border:var(--color-coolGrey700);--PSPDFKit-BookmarksSidebar--loading-background:var(--PSPDFKit-Sidebar-background);--PSPDFKit-BookmarksSidebar-heading-color:var(--color-white);--PSPDFKit-BookmarksSidebar-pageNumber-background:var(--PSPDFKit-Sidebar-background);--PSPDFKit-BookmarksSidebar-name-color:var(--color-white);--PSPDFKit-BookmarksSidebar-layout-border:var(--color-coolGrey700);--PSPDFKit-BookmarksSidebar-layout-pageNumber-color:var(--color-coolGrey100);--PSPDFKit-BookmarksSidebar-layout-isHovered-pageNumber-color:var(--color-blue400);--PSPDFKit-BookmarksSidebar-edit-color:var(--color-blue100);--PSPDFKit-BookmarksSidebar-edit-background:var(--PSPDFKit-BookmarksSidebar-background);--PSPDFKit-BookmarksSidebar-editor-background:var(--color-coolGrey900);--PSPDFKit-Error-color:var(--color-white);--PSPDFKit-Error-background:var(--color-red800);--PSPDFKit-Error-hyperlink-color:var(--color-coolGrey50);--PSPDFKit-Error-error-background:var(--color-red800);--PSPDFKit-Error-icon-color:var(--color-red100);--PSPDFKit-Error-icon-background:var(--color-red800);--PSPDFKit-ThumbnailsSidebar-gridView-row-background:var(--color-coolGrey900);--PSPDFKit-ThumbnailsSidebar-gridView-column-isHovered-background:var( + --color-coolGrey400_alpha05 + );--PSPDFKit-ThumbnailsSidebar-gridView-thumbnail-background:var(--color-white);--PSPDFKit-ThumbnailsSidebar-gridView-thumbnail-boxShadow:rgba(43,46,54,.15);--PSPDFKit-ThumbnailsSidebar-gridView-thumbnail-isSelected-boxShadow:var(--color-blue400);--PSPDFKit-ThumbnailsSidebar-gridView-label-background:var(--color-coolGrey400_alpha05);--PSPDFKit-ThumbnailsSidebar-gridView-label-color:var(--color-white);--PSPDFKit-ThumbnailsSidebar-gridView-label-isSelected-background:var(--color-blue400);--PSPDFKit-ThumbnailsSidebar-gridView-label-isSelected-color:var(--color-white);--PSPDFKit-ThumbnailsSidebar-gridView-moveCursorDisabled-background:var(--color-white);--PSPDFKit-PrintLoadingIndicator-progress-background:var(--color-coolGrey850);--PSPDFKit-PrintLoadingIndicator-progress-color:var(--color-white);--PSPDFKit-PrintLoadingIndicator-progressBar-background:var(--color-blue600);--PSPDFKit-PrintLoadingIndicator-progressText-color:var(--color-white);--PSPDFKit-StampViewComponent-header-color:var(--color-white);--PSPDFKit-StampViewComponent-header-border:var(--color-coolGrey400_alpha05);--PSPDFKit-StampViewComponent-previewContainer-border:var(--color-coolGrey400_alpha05);--PSPDFKit-StampViewComponent-previewContainer-background:var(--color-coolGrey800_alpha02);--PSPDFKit-StampViewComponent-templateImageContainer-border:var(--color-coolGrey400_alpha05);--PSPDFKit-StampViewComponent-templateImageContainer-background:var(--color-coolGrey800);--PSPDFKit-StampViewComponent-writeHere-color:var(--color-white);--PSPDFKit-StampViewComponent-selectStampButton-isHovered-background:var(--color-coolGrey800);--PSPDFKit-StampViewComponent-selectStampButton-isHovered-color:var(--color-white);--PSPDFKit-StampViewComponent-selectStampButton-isHovered-border:var(--color-blue100);--PSPDFKit-StampViewComponent-title-color:var(--color-coolGrey25);--PSPDFKit-ImagePreview-imageAnnotation--error-background:var(--color-coolGrey800);--PSPDFKit-ImagePreview-imageAnnotation--error-icon-color:var(--color-red400);--PSPDFKit-ImagePreview-imageAnnotation--error-icon-background:var(--color-coolGrey800);--PSPDFKit-DropdownMenu-background:var(--color-coolGrey850);--PSPDFKit-DropdownMenu-color:var(--color-white);--PSPDFKit-DropdownMenu-border:var(--color-coolGrey700);--PSPDFKit-DropdownMenu-item-background:var(--color-coolGrey1000);--PSPDFKit-DropdownMenu-item-border:var(--color-coolGrey700);--PSPDFKit-DropdownMenu-isSelected-background:var(--color-coolGrey800);--PSPDFKit-DropdownMenu-isSelected-color:var(--color-white);--PSPDFKit-DropdownMenu-button-background:var(--color-coolGrey1000);--PSPDFKit-DropdownMenu-button-border:var(--color-coolGrey700);--PSPDFKit-DropdownMenu-button-color:var(--color-white);--PSPDFKit-DropdownMenu-button-isHovered-color:var(--color-coolGrey700);--PSPDFKit-DropdownMenu-button-fill:var(--color-white);--PSPDFKit-Signatures-background:var(--color-blue600);--PSPDFKit-Signatures-border:var(--color-blue400);--PSPDFKit-Signatures-container-color:var(--color-white);--PSPDFKit-Signatures-editorCanvas-border:var(--color-coolGrey100);--PSPDFKit-Signatures-editorCanvas-background:var(--color-coolGrey100);--PSPDFKit-Signatures-signHere-color:var(--color-coolGrey800);--PSPDFKit-Signatures-DeleteSignatureButton-color:var(--color-white);--PSPDFKit-Signatures-Title-color:var(--color-white);--PSPDFKit-MarqueeZoom-rect-fill:var(--color-blue100);--PSPDFKit-Comment-thread-backgroundColor:var(--color-coolGrey1000);--PSPDFKit-Comment-thread-color:var(--color-coolGrey100);--PSPDFKit-Comment-accent-color:var(--color-blue400);--PSPDFKit-Comment-separatorBold-color:var(--color-coolGrey800);--PSPDFKit-Comment-separator-color:var(--color-coolGrey800);--PSPDFKit-Comment-footer-color:var(--color-coolGrey200);--PSPDFKit-Comment-footer-backgroundColor:var(--color-coolGrey900);--PSPDFKit-Comment-editor-borderColor:var(--color-coolGrey850);--PSPDFKit-Comment-editor-backgroundColor:var(--color-black);--PSPDFKit-Comment-deleteIcon-color:var(--color-red400);--PSPDFKit-Comment-editingText-border:var(--color-blue400);--PSPDFKit-Comment-editingTextButtonContainer-border-top:var(--color-coolGrey800);--PSPDFKit-Comment-editingTextButtonIcon-color:var(--color-black);--PSPDFKit-Comment-editingTextSaveButton-color:var(--color-blue200);--PSPDFKit-Comment-editingTextSaveButtonHover-color:var(--color-blue300);--PSPDFKit-Comment-editingTextCancelButton-color:var(--color-coolGrey400);--PSPDFKit-Comment-editingTextCancelButtonHover-color:var(--color-coolGrey500);--PSPDFKit-Comment-editingTextButtonIconDisabled-background:var(--color-coolGrey700);--PSPDFKit-Comment-Toolbar-backdrop:none;--PSPDFKit-Comment-Toolbar-background:var(--color-coolGrey1000);--PSPDFKit-Comment-Toolbar-borderColor:var(--color-coolGrey850);--PSPDFKit-Comment-Toolbar-Selected-Color:var(--color-blue200);--PSPDFKit-Comment-icon-backgroundColor-hover:var(--color-coolGrey800);--PSPDFKit-Comment-icon-strokeColorActive:var(--color-black);--PSPDFKit-Comment-icon-backgroundColorActive:var(--color-blue200);--PSPDFKit-Comment-ColorPicker-borderColor:var(--color-white);--PSPDFKit-Comment-ColorPicker-activeColor:var(--color-blue200);--PSPDFKit-Comment-linkEditor-backgroundColor:var(--color-coolGrey800);--PSPDFKit-Comment-linkEditor-borderColor:var(--color-coolGrey600);--PSPDFKit-Comment-linkEditor-buttonText-color:var(--color-blue200);--PSPDFKit-Comment-linkEditor-inputLabel-color:var(--color-white);--PSPDFKit-Comment-linkEditor-input-backgroundColor:var(--color-coolGrey1000);--PSPDFKit-Comment-linkEditor-input-borderColor:var(--color-coolGrey700);--PSPDFKit-Comment-linkEditor-input-backgroundColor-hover:var(--color-coolGrey900);--PSPDFKit-Comment-linkEditor-input-placeholder-color:var(--color-coolGrey600);--PSPDFKit-Comment-popover-color:var(--color-white);--PSPDFKit-Comment-popover-moreComments-gradient:linear-gradient(180deg,transparent,#000);--PSPDFKit-Comment-popover-moreComments-background:var(--color-white);--PSPDFKit-Comment-popover-moreComments-border:var(--color-coolGrey700);--PSPDFKit-Comment-popover-moreComments-color:var(--color-coolGrey800);--PSPDFKit-Comment-Mention-color:var(--color-blue200);--PSPDFKit-Comment-Mention-Suggestion-backgroundColor:var(--color-coolGrey1000);--PSPDFKit-Comment-Mention-Suggestion-borderColor:var(--color-coolGrey800);--PSPDFKit-Comment-Mention-Suggestion-separator:var(--color-coolGrey850);--PSPDFKit-Comment-Mention-Suggestion-Title-color:var(--color-coolGrey50);--PSPDFKit-Comment-Mention-Suggestion-Description-color:var(--color-coolGrey400);--PSPDFKit-Comment-Avatar-backgroundColor:var(--color-coolGrey400);--PSPDFKit-Comment-Avatar-Active-backgroundColor:var(--color-blue50);--PSPDFKit-Comment-Mention-Suggestion-Active-backgroundColor:var(--color-blue600);--PSPDFKit-Comment-Mention-Suggestion-Description-Active-color:var(--color-blue50);--PSPDFKit-Comment-Mention-Suggestion-Title-Active-color:var(--color-coolGrey50);--PSPDFKit-CommentMarkerAnnotation-accent-stroke:var(--color-blue400);--PSPDFKit-SignaturesValidationStatusBar-Valid-backgroundColor:var(--color-green800);--PSPDFKit-SignaturesValidationStatusBar-Warning-backgroundColor:var(--color-yellow800);--PSPDFKit-SignaturesValidationStatusBar-Error-backgroundColor:var(--color-red800);--PSPDFKit-SignaturesValidationStatusBar-Valid-color:var(--color-green25);--PSPDFKit-SignaturesValidationStatusBar-Warning-color:var(--color-yellow25);--PSPDFKit-SignaturesValidationStatusBar-Error-color:var(--color-red50);--PSPDFKit-SignaturesValidationStatusBar-Icon-Valid-color:var(--color-green100);--PSPDFKit-SignaturesValidationStatusBar-Icon-Warning-color:var(--color-yellow100);--PSPDFKit-SignaturesValidationStatusBar-Icon-Error-color:var(--color-red100);--PSPDFKit-ColorDropdownPickerComponent-item-circle-border-stroke:var(--color-coolGrey100);--PSPDFKit-ElectronicSignatures-tabLabel-color:var(--color-coolGrey200);--PSPDFKit-ElectronicSignatures-tabLabel-active-color:var(--color-white);--PSPDFKit-ElectronicSignatures-tabList-border-color:var(--color-coolGrey800);--PSPDFKit-ElectronicSignatures-tabsContainer-background:var(--color-coolGrey850);--PSPDFKit-ElectronicSignatures-modal-background:#22252b;--PSPDFKit-ElectronicSignatures-modal-legend-color:var(--color-white);--PSPDFKit-ElectronicSignatures-storeCheckLabel-color:var(--color-coolGrey100);--PSPDFKit-ElectronicSignatures-contentArea-background:var(--color-coolGrey100);--PSPDFKit-ElectronicSignatures-imagePicker-color:var(--color-blue700);--PSPDFKit-ElectronicSignatures-imagePicker-borderColor:var(--color-coolGrey400);--PSPDFKit-ElectronicSignatures-imagePicker-draggingBackground:var(--color-blue50);--PSPDFKit-ElectronicSignatures-imagePicker-draggingBorder:var(--color-blue600);--PSPDFKit-DrawingTab-deleteSignature-color:var(--color-blue700);--PSPDFKit-DrawingTab-signHere-color:var(--color-coolGrey700);--PSPDFKit-DrawingTab-canvas-borderColor:var(--color-coolGrey400);--PSPDFKit-TypingTab-container-background-color:var(--color-coolGrey50);--PSPDFKit-TypingTab-input-border:var(--color-coolGrey400);--PSPDFKit-TypingTab-fontFamilyPicker-border:var(--color-coolGrey400);--PSPDFKit-TypingTab-fontFamilyPicker-background:var(--color-coolGrey100);--PSPDFKit-TypingTab-input-isFocused-background:var(--color-coolGrey50);--PSPDFKit-TypingTab-Dropdown-ColorPicker-background:var(--color-coolGrey50);--PSPDFKit-TypingTab-Dropdown-ColorPicker-color:var(--color-coolGrey700);--PSPDFKit-TypingTab-fontFamily-border:var(--color-coolGrey400_alpha05);--PSPDFKit-TypingTab-fontFamily-isHovered-background:var(--color-coolGrey50);--PSPDFKit-UserHintComponent-background:var(--color-blue900);--PSPDFKit-UserHintComponent-border:var(--color-blue400);--PSPDFKit-UserHintComponent-color:var(--color-blue50);--PSPDFKit-FormDesignerExpandoComponent-button-color:var(--color-coolGrey850);--PSPDFKit-FormDesignerExpandoComponent-button-text-color:var(--color-coolGrey400);--PSPDFKit-FormDesignerExpandoComponent-button-text-hover-color:var(--color-coolGrey200);--PSPDFKit-FormDesignerExpandoComponent-content-color:var(--color-white);--PSPDFKit-FormDesignerExpandoComponent-border-color:var(--color-coolGrey900);--PSPDFKit-RadioGroup-label-background:var(--color-coolGrey800);--PSPDFKit-RadioGroup-icon-label-background:var( + --PSPDFKit-AnnotationToolbar-icon-label-background + );--PSPDFKit-RadioGroup-icon-color:var(--PSPDFKit-AnnotationToolbar-icon-color);--PSPDFKit-RadioGroup-iconLabel-isActive-background:var( + --PSPDFKit-AnnotationToolbar-iconLabel-isActive-background + );--PSPDFKit-RadioGroup-iconLabel-isActive-border:var( + --PSPDFKit-AnnotationToolbar-iconLabel-isActive-border + );--PSPDFKit-RadioGroup-iconLabel-isActive-svg-color:var( + --PSPDFKit-AnnotationToolbar-iconLabel-isActive-svg-color + );--PSPDFKit-RadioGroup-iconLabel-isActive-svg-fill:var( + --PSPDFKit-AnnotationToolbar-iconLabel-isActive-svg-fill + );--PSPDFKit-FormDesignerToolbar-button-border:var(--PSPDFKit-AnnotationToolbar-button-border);--PSPDFKit-FormDesignerToolbar-button-color:var(--PSPDFKit-AnnotationToolbar-button-color);--PSPDFKit-FormDesignerOptionsControlComponent-title-color:var(--color-coolGrey100);--PSPDFKit-FormDesignerOptionsControlComponent-border-color:var(--color-coolGrey800);--PSPDFKit-FormDesignerOptionsControlComponent-icon-color:var(--color-coolGrey500);--PSPDFKit-FormDesignerOptionsControlComponent-hover-color:var(--color-blue200);--PSPDFKit-FormDesignerOptionsControlComponent-addOption-button-color:var(--color-blue200);--PSPDFKit-FormDesignerOptionsControlComponent-text-color:var(--color-white);--PSPDFKit-FormDesignerOptionsControlComponent-background-color:var(--color-coolGrey800);--PSPDFKit-FormDesignerTextInputComponent-background-color:var(--color-coolGrey1000);--PSPDFKit-FormDesignerTextInputComponent-label-color:var(--color-coolGrey100);--PSPDFKit-FormDesignerTextInputComponent-input-text-color:var(--color-white);--PSPDFKit-FormDesignerTextInputComponent-border-color:var(--color-coolGrey800);--PSPDFKit-FormDesignerTextInputComponent-hover-border-color:var(--color-blue300);--PSPDFKit-FormDesignerTextInputComponent-error-color:var(--color-red300);--PSPDFKit-FormDesignerPopoverComponent-color-dropdown-menu-color:var(--color-coolGrey1000);--PSPDFKit-FormDesignerPopoverComponent-item-border-color:var(--color-coolGrey800);--PSPDFKit-FormDesignerPopoverComponent-item-color:var(--color-coolGrey100);--PSPDFKit-FormDesignerPopoverComponent-warning-label-color:var(--color-coolGrey200);--PSPDFKit-FormDesignerPopoverComponent-readonly-icon-color:var(--color-coolGrey200);--PSPDFKit-FormDesignerPopoverComponent-radioGroup-background-color:var(--color-coolGrey1000);--PSPDFKit-FormDesignerPopoverComponent-deleteButton-mobile-text-color:var(--color-coolGrey100);--PSPDFKit-FormDesignerPopoverComponent-deleteButton-border:var(--color-coolGrey600);--PSPDFKit-FormDesignerPopoverComponent-doneButton-color:var(--color-white);--PSPDFKit-FormDesignerPopoverComponent-doneButton-background:var(--color-blue600);--PSPDFKit-FormDesignerPopoverComponent-doneButton-border:var(--color-blue700);--PSPDFKit-ExpandingPopoverComponent-title-color:var(--color-coolGrey100);--PSPDFKit-ExpandingPopoverComponent-background:var(--color-coolGrey800);--PSPDFKit-ExpandingPopoverComponent-background-color:var( + --PSPDFKit-ExpandingPopoverComponent-background + );--PSPDFKit-ExpandingPopoverComponent-content-background:var(--color-coolGrey900);--PSPDFKit-ExpandingPopoverComponent-separator-border:var(--color-coolGrey850);--PSPDFKit-ExpandingPopoverComponent-footerButton-color:var(--color-blue200);--PSPDFKit-ExpandingPopoverComponent-footerButton-hover-background:var(--color-coolGrey900);--PSPDFKit-ExpandingPopoverComponent-content-color:var(--color-white);--PSPDFKit-ExitContentEditorConfirm-warning-color:var(--color-yellow600);--PSPDFKit-ExitContentEditorConfirm-buttonsGroup-background:var(--color-coolGrey850);--PSPDFKit-ExitContentEditorConfirm-buttonsGroup-border:var(--color-coolGrey800);--PSPDFKit-ExitContentEditorConfirm-description-color:var(--color-coolGrey200);--PSPDFKit-ExitContentEditorConfirm-heading-color:var(--color-coolGrey25);--PSPDFKit-MeasurementSettingsModal-separator-color:var(--color-coolGrey800);--PSPDFKit-MeasurementSettingsModal-info-color:var(--color-coolGrey400);--PSPDFKit-MeasurementSettingsModal-background-color:var(--color-coolGrey800);--PSPDFKit-MeasurementSettingsModal-section-background-color:var(--color-coolGrey850);--PSPDFKit-MeasurementSettingsModal-section-color:var(--color-coolGrey400);--PSPDFKit-MeasurementSettingsModal-section-text-color:var(--color-coolGrey100);--PSPDFKit-MeasurementSettingsModal-highlight-color:var(--color-blue300);--PSPDFKit-MeasurementSettingsModal-calibration-success-text-color:var(--color-coolGrey600);--PSPDFKit-MeasurementSettingsModal-error-text-color:var(--color-red400);--PSPDFKit-DropdownMenuComponent-trigger-backgroundColor:var(--color-coolGrey800);--PSPDFKit-DropdownMenuComponent-triggerActive-backgroundColor:var(--color-coolGrey800);--PSPDFKit-DropdownMenuComponent-content-backgroundColor:var(--color-coolGrey850);--PSPDFKit-DropdownMenuComponent-border:1px solid var(--color-coolGrey700);--PSPDFKit-DropdownMenuComponent-item-highlighted-backgroundColor:var(--color-blue600);--PSPDFKit-DropdownMenuComponent-trigger-icon-fill:var(--color-white);--PSPDFKit-DropdownMenuComponent-item-color:var(--color-white);--PSPDFKit-DropdownMenuComponent-separator-backgroundColor:var(--color-coolGrey800)} \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/.stamp b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/.stamp similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/.stamp rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/.stamp diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/GdPicture.NET.PSPDFKit.Wasm.NET7.runtimeconfig.json b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/GdPicture.NET.PSPDFKit.Wasm.NET7.runtimeconfig.json similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/GdPicture.NET.PSPDFKit.Wasm.NET7.runtimeconfig.json rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/GdPicture.NET.PSPDFKit.Wasm.NET7.runtimeconfig.json diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/dotnet.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/dotnet.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/dotnet.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/dotnet.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/dotnet.timezones.blat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/dotnet.timezones.blat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/dotnet.timezones.blat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/dotnet.timezones.blat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/dotnet.wasm b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/dotnet.wasm similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/dotnet.wasm rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/dotnet.wasm diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/icudt.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/icudt.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/icudt.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/icudt.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/index.html b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/index.html similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/index.html rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/index.html diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/initDotnet.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/initDotnet.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/initDotnet.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/initDotnet.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/BouncyCastle.Cryptography.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/BouncyCastle.Cryptography.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/BouncyCastle.Cryptography.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/BouncyCastle.Cryptography.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/ChromeHtmlToPdfLib.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/ChromeHtmlToPdfLib.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/ChromeHtmlToPdfLib.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/ChromeHtmlToPdfLib.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/DocumentFormat.OpenXml.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/DocumentFormat.OpenXml.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/DocumentFormat.OpenXml.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/DocumentFormat.OpenXml.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.API.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.API.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.API.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.API.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.CAD.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.CAD.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.CAD.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.CAD.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Common.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Common.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Common.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Common.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Document.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Document.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Document.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Document.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Imaging.Formats.Conversion.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Imaging.Formats.Conversion.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Imaging.Formats.Conversion.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Imaging.Formats.Conversion.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Imaging.Formats.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Imaging.Formats.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Imaging.Formats.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Imaging.Formats.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Imaging.Rendering.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Imaging.Rendering.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Imaging.Rendering.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Imaging.Rendering.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Imaging.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Imaging.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Imaging.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.Imaging.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.MSOfficeBinary.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.MSOfficeBinary.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.MSOfficeBinary.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.MSOfficeBinary.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.OpenDocument.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.OpenDocument.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.OpenDocument.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.OpenDocument.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.OpenXML.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.OpenXML.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.OpenXML.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.OpenXML.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.PDF.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.PDF.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.PDF.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.PDF.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.RTF.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.RTF.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.RTF.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.RTF.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.SVG.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.SVG.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.SVG.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.SVG.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.barcode.1d.writer.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.barcode.1d.writer.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.barcode.1d.writer.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.barcode.1d.writer.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.barcode.2d.writer.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.barcode.2d.writer.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.barcode.2d.writer.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.14.barcode.2d.writer.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.PSPDFKit.Wasm.NET7.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.PSPDFKit.Wasm.NET7.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.PSPDFKit.Wasm.NET7.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.PSPDFKit.Wasm.NET7.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.Wasm.NET7.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.Wasm.NET7.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.Wasm.NET7.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/GdPicture.NET.Wasm.NET7.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/Microsoft.CSharp.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/Microsoft.CSharp.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/Microsoft.CSharp.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/Microsoft.CSharp.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/Microsoft.Win32.Registry.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/Microsoft.Win32.Registry.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/Microsoft.Win32.Registry.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/Microsoft.Win32.Registry.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/MsgReader.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/MsgReader.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/MsgReader.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/MsgReader.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/Newtonsoft.Json.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/Newtonsoft.Json.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/Newtonsoft.Json.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/Newtonsoft.Json.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/OpenMcdf.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/OpenMcdf.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/OpenMcdf.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/OpenMcdf.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/RtfPipe.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/RtfPipe.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/RtfPipe.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/RtfPipe.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.Concurrent.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.Concurrent.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.Concurrent.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.Concurrent.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.Immutable.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.Immutable.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.Immutable.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.Immutable.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.NonGeneric.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.NonGeneric.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.NonGeneric.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.NonGeneric.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.Specialized.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.Specialized.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.Specialized.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.Specialized.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Collections.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ComponentModel.EventBasedAsync.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ComponentModel.EventBasedAsync.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ComponentModel.EventBasedAsync.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ComponentModel.EventBasedAsync.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ComponentModel.Primitives.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ComponentModel.Primitives.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ComponentModel.Primitives.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ComponentModel.Primitives.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ComponentModel.TypeConverter.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ComponentModel.TypeConverter.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ComponentModel.TypeConverter.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ComponentModel.TypeConverter.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ComponentModel.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ComponentModel.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ComponentModel.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ComponentModel.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Console.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Console.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Console.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Console.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Data.Common.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Data.Common.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Data.Common.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Data.Common.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Diagnostics.DiagnosticSource.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Diagnostics.DiagnosticSource.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Diagnostics.DiagnosticSource.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Diagnostics.DiagnosticSource.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Diagnostics.Process.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Diagnostics.Process.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Diagnostics.Process.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Diagnostics.Process.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Diagnostics.TraceSource.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Diagnostics.TraceSource.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Diagnostics.TraceSource.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Diagnostics.TraceSource.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Drawing.Primitives.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Drawing.Primitives.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Drawing.Primitives.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Drawing.Primitives.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Drawing.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Drawing.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Drawing.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Drawing.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Formats.Asn1.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Formats.Asn1.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Formats.Asn1.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Formats.Asn1.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.IO.Compression.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.IO.Compression.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.IO.Compression.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.IO.Compression.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.IO.Packaging.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.IO.Packaging.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.IO.Packaging.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.IO.Packaging.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Linq.Expressions.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Linq.Expressions.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Linq.Expressions.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Linq.Expressions.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Linq.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Linq.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Linq.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Linq.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Memory.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Memory.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Memory.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Memory.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Http.Formatting.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Http.Formatting.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Http.Formatting.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Http.Formatting.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Http.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Http.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Http.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Http.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Mail.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Mail.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Mail.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Mail.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.NetworkInformation.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.NetworkInformation.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.NetworkInformation.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.NetworkInformation.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Primitives.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Primitives.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Primitives.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Primitives.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Requests.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Requests.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Requests.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Requests.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Security.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Security.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Security.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Security.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.ServicePoint.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.ServicePoint.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.ServicePoint.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.ServicePoint.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Sockets.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Sockets.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Sockets.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.Sockets.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.WebHeaderCollection.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.WebHeaderCollection.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.WebHeaderCollection.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.WebHeaderCollection.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.WebSockets.Client.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.WebSockets.Client.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.WebSockets.Client.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.WebSockets.Client.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.WebSockets.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.WebSockets.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.WebSockets.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Net.WebSockets.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ObjectModel.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ObjectModel.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ObjectModel.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.ObjectModel.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Private.CoreLib.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Private.CoreLib.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Private.CoreLib.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Private.CoreLib.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Private.Uri.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Private.Uri.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Private.Uri.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Private.Uri.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Private.Xml.Linq.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Private.Xml.Linq.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Private.Xml.Linq.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Private.Xml.Linq.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Private.Xml.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Private.Xml.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Private.Xml.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Private.Xml.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.InteropServices.JavaScript.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.InteropServices.JavaScript.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.InteropServices.JavaScript.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.InteropServices.JavaScript.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.Numerics.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.Numerics.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.Numerics.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.Numerics.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.Serialization.Formatters.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.Serialization.Formatters.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.Serialization.Formatters.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.Serialization.Formatters.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.Serialization.Primitives.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.Serialization.Primitives.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.Serialization.Primitives.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.Serialization.Primitives.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Runtime.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Security.Cryptography.Pkcs.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Security.Cryptography.Pkcs.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Security.Cryptography.Pkcs.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Security.Cryptography.Pkcs.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Security.Cryptography.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Security.Cryptography.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Security.Cryptography.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Security.Cryptography.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Text.Encoding.CodePages.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Text.Encoding.CodePages.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Text.Encoding.CodePages.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Text.Encoding.CodePages.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Text.Encodings.Web.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Text.Encodings.Web.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Text.Encodings.Web.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Text.Encodings.Web.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Text.Json.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Text.Json.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Text.Json.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Text.Json.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Text.RegularExpressions.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Text.RegularExpressions.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Text.RegularExpressions.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Text.RegularExpressions.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Threading.Tasks.Parallel.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Threading.Tasks.Parallel.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Threading.Tasks.Parallel.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Threading.Tasks.Parallel.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Windows.Extensions.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Windows.Extensions.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Windows.Extensions.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Windows.Extensions.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Xml.Linq.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Xml.Linq.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Xml.Linq.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.Xml.Linq.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/System.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/protobuf-net.Core.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/protobuf-net.Core.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/protobuf-net.Core.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/protobuf-net.Core.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/protobuf-net.dll b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/protobuf-net.dll similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/protobuf-net.dll rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/managed/protobuf-net.dll diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/mono-config.json b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/mono-config.json similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/mono-config.json rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/mono-config.json diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/package.json b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/package.json similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/package.json rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/package.json diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resourceLoader.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resourceLoader.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resourceLoader.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resourceLoader.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/list.json b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/list.json similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/list.json rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/list.json diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-EUC-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-EUC-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-EUC-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-EUC-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-EUC-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-EUC-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-RKSJ-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-RKSJ-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-RKSJ-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-RKSJ-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-RKSJ-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-RKSJ-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78ms-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78ms-RKSJ-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78ms-RKSJ-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78ms-RKSJ-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78ms-RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78ms-RKSJ-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78ms-RKSJ-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®78ms-RKSJ-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®83pv-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®83pv-RKSJ-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®83pv-RKSJ-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®83pv-RKSJ-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90ms-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90ms-RKSJ-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90ms-RKSJ-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90ms-RKSJ-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90ms-RKSJ-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90ms-RKSJ-UCS2.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90ms-RKSJ-UCS2.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90ms-RKSJ-UCS2.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90ms-RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90ms-RKSJ-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90ms-RKSJ-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90ms-RKSJ-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90msp-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90msp-RKSJ-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90msp-RKSJ-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90msp-RKSJ-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90msp-RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90msp-RKSJ-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90msp-RKSJ-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90msp-RKSJ-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90pv-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90pv-RKSJ-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90pv-RKSJ-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90pv-RKSJ-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90pv-RKSJ-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90pv-RKSJ-UCS2.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90pv-RKSJ-UCS2.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90pv-RKSJ-UCS2.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90pv-RKSJ-UCS2C.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90pv-RKSJ-UCS2C.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90pv-RKSJ-UCS2C.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90pv-RKSJ-UCS2C.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90pv-RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90pv-RKSJ-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90pv-RKSJ-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®90pv-RKSJ-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Add-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Add-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Add-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Add-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Add-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Add-RKSJ-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Add-RKSJ-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Add-RKSJ-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Add-RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Add-RKSJ-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Add-RKSJ-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Add-RKSJ-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Add-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Add-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Add-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Add-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-0.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-0.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-0.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-0.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-1.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-1.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-1.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-1.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-2.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-2.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-2.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-2.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-3.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-3.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-3.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-3.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-4.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-4.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-4.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-4.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-5.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-5.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-5.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-5.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-6.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-6.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-6.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-6.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-7.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-7.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-7.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-7.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-B5pc.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-B5pc.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-B5pc.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-B5pc.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-ETenms-B5.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-ETenms-B5.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-ETenms-B5.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-ETenms-B5.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-H-CID.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-H-CID.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-H-CID.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-H-CID.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-H-Host.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-H-Host.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-H-Host.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-H-Host.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-H-Mac.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-H-Mac.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-H-Mac.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-H-Mac.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-UCS2.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-UCS2.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-CNS1-UCS2.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-0.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-0.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-0.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-0.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-1.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-1.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-1.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-1.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-2.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-2.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-2.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-2.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-3.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-3.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-3.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-3.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-4.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-4.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-4.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-4.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-5.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-5.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-5.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-5.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-UCS2.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-UCS2.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-GB1-UCS2.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-0.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-0.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-0.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-0.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-1.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-1.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-1.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-1.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-2.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-2.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-2.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-2.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-3.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-3.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-3.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-3.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-4.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-4.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-4.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-4.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-5.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-5.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-5.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-5.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-6.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-6.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-6.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-6.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-90ms-RKSJ.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-90ms-RKSJ.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-90ms-RKSJ.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-90ms-RKSJ.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-90pv-RKSJ.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-90pv-RKSJ.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-90pv-RKSJ.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-90pv-RKSJ.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-H-CID.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-H-CID.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-H-CID.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-H-CID.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-H-Host.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-H-Host.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-H-Host.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-H-Host.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-H-Mac.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-H-Mac.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-H-Mac.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-H-Mac.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-UCS2.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-UCS2.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan1-UCS2.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan2-0.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan2-0.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan2-0.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Japan2-0.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-0.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-0.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-0.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-0.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-1.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-1.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-1.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-1.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-2.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-2.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-2.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-2.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-H-CID.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-H-CID.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-H-CID.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-H-CID.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-H-Host.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-H-Host.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-H-Host.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-H-Host.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-H-Mac.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-H-Mac.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-H-Mac.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-H-Mac.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-KSCms-UHC.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-KSCms-UHC.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-KSCms-UHC.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-KSCms-UHC.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-KSCpc-EUC.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-KSCpc-EUC.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-KSCpc-EUC.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-KSCpc-EUC.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-UCS2.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-UCS2.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Adobe-Korea1-UCS2.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5pc-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5pc-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5pc-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5pc-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5pc-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5pc-UCS2.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5pc-UCS2.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5pc-UCS2.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5pc-UCS2C.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5pc-UCS2C.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5pc-UCS2C.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5pc-UCS2C.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5pc-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5pc-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5pc-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®B5pc-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS-EUC-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS-EUC-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS-EUC-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS-EUC-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS-EUC-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS-EUC-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS1-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS1-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS1-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS1-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS1-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS1-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS1-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS1-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS2-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS2-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS2-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS2-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS2-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS2-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS2-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CNS2-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CourierStdToNew.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CourierStdToNew.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CourierStdToNew.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®CourierStdToNew.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®DefaultCMYK.icc b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®DefaultCMYK.icc similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®DefaultCMYK.icc rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®DefaultCMYK.icc diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®DroidSansFallbackFull.ttf b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®DroidSansFallbackFull.ttf similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®DroidSansFallbackFull.ttf rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®DroidSansFallbackFull.ttf diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®DroidSansMono.ttf b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®DroidSansMono.ttf similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®DroidSansMono.ttf rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®DroidSansMono.ttf diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETHK-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETHK-B5-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETHK-B5-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETHK-B5-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETHK-B5-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETHK-B5-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETHK-B5-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETHK-B5-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETen-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETen-B5-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETen-B5-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETen-B5-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETen-B5-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETen-B5-UCS2.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETen-B5-UCS2.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETen-B5-UCS2.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETen-B5-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETen-B5-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETen-B5-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETen-B5-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETenms-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETenms-B5-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETenms-B5-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETenms-B5-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETenms-B5-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETenms-B5-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETenms-B5-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ETenms-B5-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®EUC-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®EUC-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®EUC-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®EUC-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®EUC-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®EUC-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Ext-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Ext-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Ext-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Ext-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Ext-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Ext-RKSJ-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Ext-RKSJ-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Ext-RKSJ-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Ext-RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Ext-RKSJ-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Ext-RKSJ-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Ext-RKSJ-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Ext-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Ext-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Ext-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Ext-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GB-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GB-EUC-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GB-EUC-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GB-EUC-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GB-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GB-EUC-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GB-EUC-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GB-EUC-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GB-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GB-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GB-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GB-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GB-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GB-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GB-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GB-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK-EUC-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK-EUC-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK-EUC-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK-EUC-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK-EUC-UCS2.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK-EUC-UCS2.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK-EUC-UCS2.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK-EUC-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK-EUC-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK-EUC-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK2K-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK2K-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK2K-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK2K-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK2K-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK2K-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK2K-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBK2K-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBKp-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBKp-EUC-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBKp-EUC-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBKp-EUC-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBKp-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBKp-EUC-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBKp-EUC-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBKp-EUC-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBT-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBT-EUC-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBT-EUC-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBT-EUC-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBT-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBT-EUC-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBT-EUC-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBT-EUC-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBT-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBT-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBT-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBT-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBT-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBT-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBT-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBT-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBTpc-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBTpc-EUC-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBTpc-EUC-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBTpc-EUC-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBTpc-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBTpc-EUC-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBTpc-EUC-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBTpc-EUC-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBpc-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBpc-EUC-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBpc-EUC-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBpc-EUC-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBpc-EUC-UCS2C.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBpc-EUC-UCS2C.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBpc-EUC-UCS2C.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBpc-EUC-UCS2C.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBpc-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBpc-EUC-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBpc-EUC-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GBpc-EUC-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GdPictureOCRFont.ttf b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GdPictureOCRFont.ttf similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GdPictureOCRFont.ttf rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®GdPictureOCRFont.ttf diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKdla-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKdla-B5-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKdla-B5-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKdla-B5-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKdla-B5-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKdla-B5-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKdla-B5-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKdla-B5-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKdlb-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKdlb-B5-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKdlb-B5-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKdlb-B5-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKdlb-B5-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKdlb-B5-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKdlb-B5-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKdlb-B5-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKgccs-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKgccs-B5-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKgccs-B5-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKgccs-B5-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKgccs-B5-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKgccs-B5-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKgccs-B5-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKgccs-B5-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKm314-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKm314-B5-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKm314-B5-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKm314-B5-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKm314-B5-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKm314-B5-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKm314-B5-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKm314-B5-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKm471-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKm471-B5-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKm471-B5-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKm471-B5-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKm471-B5-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKm471-B5-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKm471-B5-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKm471-B5-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKscs-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKscs-B5-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKscs-B5-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKscs-B5-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKscs-B5-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKscs-B5-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKscs-B5-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®HKscs-B5-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hankaku.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hankaku.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hankaku.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hankaku.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hiragana.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hiragana.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hiragana.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hiragana.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hojo-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hojo-EUC-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hojo-EUC-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hojo-EUC-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hojo-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hojo-EUC-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hojo-EUC-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hojo-EUC-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hojo-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hojo-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hojo-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hojo-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hojo-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hojo-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hojo-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Hojo-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Identity-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Identity-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Identity-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Identity-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Identity-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Identity-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Identity-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Identity-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-EUC-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-EUC-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-EUC-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-EUC-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-EUC-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-EUC-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-Johab-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-Johab-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-Johab-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-Johab-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-Johab-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-Johab-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-Johab-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-Johab-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSC-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-HW-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-HW-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-HW-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-HW-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-HW-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-HW-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-HW-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-HW-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-UCS2.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-UCS2.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-UCS2.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCms-UHC-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCpc-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCpc-EUC-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCpc-EUC-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCpc-EUC-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCpc-EUC-UCS2C.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCpc-EUC-UCS2C.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCpc-EUC-UCS2C.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCpc-EUC-UCS2C.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCpc-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCpc-EUC-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCpc-EUC-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®KSCpc-EUC-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Katakana.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Katakana.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Katakana.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Katakana.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®NWP-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®NWP-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®NWP-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®NWP-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®NWP-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®NWP-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®NWP-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®NWP-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®OutputIntent.icc b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®OutputIntent.icc similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®OutputIntent.icc rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®OutputIntent.icc diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®PDFA-XMP.4.2.3 b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®PDFA-XMP.4.2.3 similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®PDFA-XMP.4.2.3 rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®PDFA-XMP.4.2.3 diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®RKSJ-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®RKSJ-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®RKSJ-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®RKSJ-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®RKSJ-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®RKSJ-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Roman.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Roman.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Roman.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Roman.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Symbol.ttf b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Symbol.ttf similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Symbol.ttf rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Symbol.ttf diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-90ms-RKSJ.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-90ms-RKSJ.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-90ms-RKSJ.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-90ms-RKSJ.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-90pv-RKSJ.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-90pv-RKSJ.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-90pv-RKSJ.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-90pv-RKSJ.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-B5pc.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-B5pc.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-B5pc.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-B5pc.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-ETen-B5.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-ETen-B5.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-ETen-B5.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-ETen-B5.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-GBK-EUC.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-GBK-EUC.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-GBK-EUC.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-GBK-EUC.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-GBpc-EUC.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-GBpc-EUC.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-GBpc-EUC.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-GBpc-EUC.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-KSCms-UHC.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-KSCms-UHC.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-KSCms-UHC.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-KSCms-UHC.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-KSCpc-EUC.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-KSCpc-EUC.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-KSCpc-EUC.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UCS2-KSCpc-EUC.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UCS2-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UCS2-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UCS2-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UCS2-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UCS2-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UCS2-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UCS2-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UCS2-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF16-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF16-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF16-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF16-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF16-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF16-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF16-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF16-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF32-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF32-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF32-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF32-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF32-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF32-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF32-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF32-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF8-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF8-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF8-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF8-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF8-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF8-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF8-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniCNS-UTF8-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UCS2-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UCS2-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UCS2-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UCS2-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UCS2-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UCS2-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UCS2-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UCS2-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF16-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF16-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF16-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF16-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF16-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF16-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF16-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF16-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF32-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF32-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF32-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF32-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF32-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF32-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF32-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF32-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF8-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF8-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF8-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF8-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF8-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF8-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF8-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniGB-UTF8-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UCS2-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UCS2-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UCS2-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UCS2-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UCS2-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UCS2-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UCS2-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UCS2-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF16-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF16-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF16-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF16-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF16-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF16-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF16-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF16-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF32-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF32-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF32-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF32-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF32-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF32-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF32-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF32-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF8-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF8-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF8-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF8-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF8-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF8-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF8-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniHojo-UTF8-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UCS2-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UCS2-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UCS2-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UCS2-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UCS2-HW-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UCS2-HW-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UCS2-HW-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UCS2-HW-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UCS2-HW-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UCS2-HW-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UCS2-HW-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UCS2-HW-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UCS2-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UCS2-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UCS2-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UCS2-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF16-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF16-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF16-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF16-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF16-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF16-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF16-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF16-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF32-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF32-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF32-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF32-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF32-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF32-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF32-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF32-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF8-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF8-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF8-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF8-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF8-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF8-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF8-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS-UTF8-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF16-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF16-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF16-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF16-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF16-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF16-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF16-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF16-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF32-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF32-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF32-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF32-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF32-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF32-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF32-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF32-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF8-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF8-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF8-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF8-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF8-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF8-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF8-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJIS2004-UTF8-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISPro-UCS2-HW-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISPro-UCS2-HW-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISPro-UCS2-HW-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISPro-UCS2-HW-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISPro-UCS2-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISPro-UCS2-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISPro-UCS2-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISPro-UCS2-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISPro-UTF8-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISPro-UTF8-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISPro-UTF8-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISPro-UTF8-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISX0213-UTF32-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISX0213-UTF32-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISX0213-UTF32-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISX0213-UTF32-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISX0213-UTF32-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISX0213-UTF32-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISX0213-UTF32-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISX0213-UTF32-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISX02132004-UTF32-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISX02132004-UTF32-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISX02132004-UTF32-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISX02132004-UTF32-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISX02132004-UTF32-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISX02132004-UTF32-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISX02132004-UTF32-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniJISX02132004-UTF32-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UCS2-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UCS2-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UCS2-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UCS2-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UCS2-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UCS2-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UCS2-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UCS2-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF16-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF16-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF16-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF16-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF16-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF16-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF16-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF16-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF32-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF32-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF32-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF32-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF32-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF32-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF32-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF32-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF8-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF8-H.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF8-H.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF8-H.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF8-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF8-V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF8-V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®UniKS-UTF8-V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®V.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®V.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®V.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®V.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®WP-Symbol.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®WP-Symbol.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®WP-Symbol.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®WP-Symbol.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Wingding.ttf b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Wingding.ttf similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Wingding.ttf rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®Wingding.ttf diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ZapfDingbats.ttf b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ZapfDingbats.ttf similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ZapfDingbats.ttf rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®ZapfDingbats.ttf diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®fontsubst.dat b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®fontsubst.dat similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®fontsubst.dat rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®fontsubst.dat diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®times.ttf b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®times.ttf similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®times.ttf rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/resources/®times.ttf diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/supportFiles/0_runtimeconfig.bin b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/supportFiles/0_runtimeconfig.bin similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/supportFiles/0_runtimeconfig.bin rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/gdpicture-7a46d8716af33da4a74d2750fe22e8fe32214715/supportFiles/0_runtimeconfig.bin diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/pspdfkit-2023.4.0.css b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/pspdfkit-2023.4.0.css similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/pspdfkit-2023.4.0.css rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/pspdfkit-2023.4.0.css diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/pspdfkit-580678e36df8ca44.wasm.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/pspdfkit-580678e36df8ca44.wasm.js similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/pspdfkit-580678e36df8ca44.wasm.js rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/pspdfkit-580678e36df8ca44.wasm.js diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/pspdfkit-745dfd6e3c06b8cc.wasm b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/pspdfkit-745dfd6e3c06b8cc.wasm similarity index 100% rename from EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/pspdfkit-745dfd6e3c06b8cc.wasm rename to EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/pspdfkit-745dfd6e3c06b8cc.wasm diff --git a/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/windows-ba2e2d3f7c5061a9.css b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/windows-ba2e2d3f7c5061a9.css new file mode 100644 index 00000000..c701ea71 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit-lib/windows-ba2e2d3f7c5061a9.css @@ -0,0 +1,15 @@ +/*! + * PSPDFKit for Web 2023.4.0 (https://pspdfkit.com/web) + * + * Copyright (c) 2016-2023 PSPDFKit GmbH. All rights reserved. + * + * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW + * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT. + * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES. + * This notice may not be removed from this file. + * + * PSPDFKit uses several open source third-party components: https://pspdfkit.com/acknowledgements/web/ + */ +:root{--primary:#2d78d6;--primary-dark-1:#1f5aa2;--primary-dark-2:#123d70;--primary-dark-3:#0b2f56;--primary-light-1:#3091e2;--primary-light-2:#5fafef;--primary-light-3:#91c5f0;--disabled:#dee5f0;--color-coolGrey800:#3d424e;--PSPDFKit-Pager-color:var(--color-white);--PSPDFKit-Pager-background:var(--primary-dark-2);--PSPDFKit-Pager-input-isActive-color:var(--color-white);--PSPDFKit-Pager-input-isDisabled-color:var(--disabled);--PSPDFKit-Pager-input-isHovered-color:var(--color-white);--PSPDFKit-Pager-input-isDisabled-opacity:0.25;--PSPDFKit-Toolbar-background:var(--primary-dark-1);--PSPDFKit-Toolbar-color:var(--color-white);--PSPDFKit-Toolbar-button-border:none;--PSPDFKit-Toolbar-button-image-annotation:var(--primary-dark-1);--PSPDFKit-Toolbar-dropdownButton-isFocused-background:var(--primary);--PSPDFKit-Toolbar-dropdownButton-isFocused-color:var(--color-white);--PSPDFKit-Toolbar-dropdownButton-isSelected-color:var(--color-white);--PSPDFKit-Toolbar-dropdownButton-isSelected-background:var(--primary);--PSPDFKit-CropToolbarComponent-button-borderColor:var(--color-coolGrey600);--PSPDFKit-CropToolbarComponent-button-isHovered-borderColor:var(--color-coolGrey200);--PSPDFKit-CropToolbarComponent-text-color:var(--color-white);--PSPDFKit-CropToolbarComponent-button-isHovered-backgroundColor:var(--color-coolGrey700);--PSPDFKit-AnnotationToolbar-button-color:var(--color-coolGrey800);--PSPDFKit-ToolbarButton-dropdown-isFocused-background:var(--primary);--PSPDFKit-ToolbarButton-dropdown-isFocused-color:var(--color-white);--PSPDFKit-ToolbarButton-isActive-background:var(--color-white);--PSPDFKit-ToolbarButton-isActive-color:var(--primary-dark-1);--PSPDFKit-ToolbarResponsiveGroup-background:var(--primary-dark-2);--PSPDFKit-ToolbarResponsiveGroup-background-isHovered:var(--primary-dark-1);--PSPDFKit-ToolbarResponsiveGroup--primary-background:var( + --PSPDFKit-ToolbarResponsiveGroup-background + );--PSPDFKit-ToolbarResponsiveGroup-button--primary-arrow-border:var(--color-white);--PSPDFKit-Viewport-background:#dfdfdf;--PSPDFKit-DropdownMenu-background:var(--color-coolGrey25);--PSPDFKit-DropdownMenu-color:var(--color-coolGrey850);--PSPDFKit-DropdownMenu-border:var(--primary-dark-1);--PSPDFKit-DropdownMenu-isSelected-background:var(--primary);--PSPDFKit-DropdownMenu-isSelected-color:var(--color-white);--PSPDFKit-LayoutConfig-icon-isActive-color:var(--primary);--PSPDFKit-LayoutConfig-icon-isActive-background:var(--color-white);--PSPDFKit-Signatures-background:var(--color-blue600);--PSPDFKit-Signatures-color:var(--color-white);--PSPDFKit-Signatures-border:var(--color-blue400);--PSPDFKit-Signatures-container-color:var(--color-coolGrey700);--PSPDFKit-Signatures-editorCanvas-border:var(--color-coolGrey100);--PSPDFKit-Signatures-editorCanvas-background:var(--color-coolGrey25);--PSPDFKit-Signatures-signHere-color:var(--color-coolGrey700);--PSPDFKit-Signatures-DeleteSignatureButton-color:var(--color-coolGrey700);--PSPDFKit-Signatures-Title-color:var(--color-coolGrey700)}.PSPDFKit-Page-Indicator-Input,.PSPDFKit-Page-Indicator-Label{background:var(--PSPDFKit-Pager-background);color:var(--PSPDFKit-Pager-color);font-family:Segoe UI,sans-serif}.PSPDFKit-Page-Indicator-Next,.PSPDFKit-Page-Indicator-Prev{background:var(--PSPDFKit-Pager-background);border-radius:0;margin:0}.PSPDFKit-Page-Indicator-Next:hover,.PSPDFKit-Page-Indicator-Prev:hover{background:var(--PSPDFKit-Pager-background)}.PSPDFKit-Page-Indicator-Next-disabled span,.PSPDFKit-Page-Indicator-Prev-disabled span{fill:var(--disabled)!important;opacity:var(--PSPDFKit-Pager-input-isDisabled-opacity)}.PSPDFKit-Toolbar-Button,.PSPDFKit-Toolbar-Responsive-Group .PSPDFKit-Toolbar-Button,.PSPDFKit-Toolbar-Responsive-Group>div,.PSPDFKit-Toolbar>div{border:none;color:var(--PSPDFKit-Toolbar-color)}.PSPDFKit-Annotation-Toolbar .PSPDFKit-Toolbar-Button{color:var(--PSPDFKit-AnnotationToolbar-button-color)}.PSPDFKit-Toolbar .PSPDFKit-Input-Dropdown-active,.PSPDFKit-Toolbar .PSPDFKit-Input-Dropdown-active:active,.PSPDFKit-Toolbar .PSPDFKit-Input-Dropdown-active:focus{background:var(--PSPDFKit-ToolbarButton-isActive-background)}.PSPDFKit-Input-Dropdown-Item-selected{background:var(--PSPDFKit-ToolbarButton-dropdown-isFocused-background);color:var(--PSPDFKit-ToolbarButton-dropdown-isFocused-color)}.PSPDFKit-Input-Dropdown-Item-selected>.PSPDFKit-Toolbar-Button-active{background:var(--PSPDFKit-ToolbarButton-dropdown-isFocused-background)!important;color:var(--PSPDFKit-ToolbarButton-dropdown-isFocused-color)!important}.PSPDFKit-Annotation-Toolbar .PSPDFKit-Input-Dropdown.PSPDFKit-Toolbar-DropdownGroup:active,.PSPDFKit-Annotation-Toolbar .PSPDFKit-Input-Dropdown.PSPDFKit-Toolbar-DropdownGroup:focus,.PSPDFKit-Annotation-Toolbar .PSPDFKit-Input-Dropdown.PSPDFKit-Toolbar-DropdownGroup:focus-within{background:var(--PSPDFKit-AnnotationToolbar-background)}div[role=listbox] .PSPDFKit-Input-Dropdown-Item-selected{background:var(--color-white)}.PSPDFKit-Toolbar .PSPDFKit-Toolbar-Responsive-Group .PSPDFKit-Toolbar-Button,.PSPDFKit-Toolbar .PSPDFKit-Toolbar-Responsive-Group .PSPDFKit-Toolbar-DropdownGroup,.PSPDFKit-Toolbar .PSPDFKit-Toolbar-Responsive-Group-primary,.PSPDFKit-Toolbar .PSPDFKit-Toolbar-Responsive-Group>div{background:var(--PSPDFKit-ToolbarResponsiveGroup-background)}.PSPDFKit-Toolbar-Responsive-Group .PSPDFKit-Toolbar-Button:hover,.PSPDFKit-Toolbar-Responsive-Group .PSPDFKit-Toolbar-DropdownGroup:hover{background:var(--PSPDFKit-ToolbarResponsiveGroup-background-isHovered)}.PSPDFKit-Toolbar-Button.animatedArrow:after,.PSPDFKit-Toolbar-Button.animatedArrow:before{color:var(--PSPDFKit-ToolbarResponsiveGroup-button--primary-arrow-border)}.PSPDFKit-Annotation-Toolbar .PSPDFKit-Toolbar-Button:hover,.PSPDFKit-Annotation-Toolbar .PSPDFKit-Toolbar-DropdownGroup:hover{background:var(--color-coolGrey50)}.PSPDFKit-Text-Annotation-Toolbar-Alignment-left,.PSPDFKit-Text-Annotation-Toolbar-Alignment-right,.PSPDFKit-Toolbar-DropdownGroup-Button{border-radius:0!important}.PSPDFKit-Input-Slider-Value,.PSPDFKit-Toolbar-DropdownGroup-Button{font-family:Segoe UI,sans-serif}.PSPDFKit-Toolbar-Button-Image-Annotation{border-left:var(--PSPDFKit-Toolbar-button-image-annotation)}.PSPDFKit-Toolbar .PSPDFKit-Toolbar-DropdownGroup:hover button,.PSPDFKit-Toolbar .PSPDFKit-Toolbar-DropdownGroup:hover label,.PSPDFKit-Toolbar .PSPDFKit-Toolbar-DropdownGroup:hover span{background:initial}.PSPDFKit-DocumentEditor-MoveDialog form>span,.PSPDFKit-DocumentEditor-MoveDialog input{color:var(--color-black)}.PSPDFKit-Viewport{background:var(--PSPDFKit-Viewport-background)}.PSPDFKit-Toolbox-BlendMode{display:none!important}input[type=range]{appearance:normal}input[type=range]::-ms-fill-lower{background:#91c5f0}input[type=range]::-ms-fill-upper{background:#eee}input[type=range]::-ms-thumb{background:#1f5aa2} \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit.js b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit.js new file mode 100644 index 00000000..2fc34453 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/2023.4/pspdfkit.js @@ -0,0 +1,13 @@ +/*! + * PSPDFKit for Web 2023.4.0 (https://pspdfkit.com/web) + * + * Copyright (c) 2016-2023 PSPDFKit GmbH. All rights reserved. + * + * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW + * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT. + * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES. + * This notice may not be removed from this file. + * + * PSPDFKit uses several open source third-party components: https://pspdfkit.com/acknowledgements/web/ + */ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.PSPDFKit=t():e.PSPDFKit=t()}(self,(()=>(()=>{var e,t,n,o,r={84121:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}function r(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}function i(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>i})},22122:(e,t,n)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;to})},17375:(e,t,n)=>{"use strict";function o(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,{Z:()=>o})},53912:(e,t,n)=>{"use strict";function o(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(null==e||e(o),!1===n||!o.defaultPrevented)return null==t?void 0:t(o)}}n.d(t,{M:()=>o})},21286:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var o=n(67294),r=n(47257),i=n(72261),a=n(8145);function s(e){const t=e+"CollectionProvider",[n,s]=(0,r.b)(t),[l,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=e=>{const{scope:t,children:n}=e,r=o.useRef(null),i=o.useRef(new Map).current;return o.createElement(l,{scope:t,itemMap:i,collectionRef:r},n)},d=e+"CollectionSlot",p=o.forwardRef(((e,t)=>{const{scope:n,children:r}=e,s=c(d,n),l=(0,i.e)(t,s.collectionRef);return o.createElement(a.g7,{ref:l},r)})),f=e+"CollectionItemSlot",h="data-radix-collection-item",m=o.forwardRef(((e,t)=>{const{scope:n,children:r,...s}=e,l=o.useRef(null),u=(0,i.e)(t,l),d=c(f,n);return o.useEffect((()=>(d.itemMap.set(l,{ref:l,...s}),()=>{d.itemMap.delete(l)}))),o.createElement(a.g7,{[h]:"",ref:u},r)}));return[{Provider:u,Slot:p,ItemSlot:m},function(t){const n=c(e+"CollectionConsumer",t);return o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},s]}},72261:(e,t,n)=>{"use strict";n.d(t,{F:()=>r,e:()=>i});var o=n(67294);function r(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function i(...e){return(0,o.useCallback)(r(...e),e)}},47257:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var o=n(67294);function r(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,o.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,o.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const i=(0,o.createContext)(r),a=n.length;function s(t){const{scope:n,children:r,...s}=t,l=(null==n?void 0:n[e][a])||i,c=(0,o.useMemo)((()=>s),Object.values(s));return(0,o.createElement)(l.Provider,{value:c},r)}return n=[...n,r],s.displayName=t+"Provider",[s,function(n,s){const l=(null==s?void 0:s[e][a])||i,c=(0,o.useContext)(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},i(r,...t)]}function i(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:o})=>({...t,...n(e)[`__scope${o}`]})),{});return(0,o.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}},69409:(e,t,n)=>{"use strict";n.d(t,{gm:()=>i});var o=n(67294);const r=(0,o.createContext)(void 0);function i(e){const t=(0,o.useContext)(r);return e||t||"ltr"}},48923:(e,t,n)=>{"use strict";function o(){return o=Object.assign||function(e){for(var t=1;th});var r=n(67294),i=n(53912),a=n(84178),s=n(72261),l=n(88751);const c="dismissableLayer.update",u="dismissableLayer.pointerDownOutside",d="dismissableLayer.focusOutside";let p;const f=(0,r.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=(0,r.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:v,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:w,onDismiss:S,...E}=e,P=(0,r.useContext)(f),[x,D]=(0,r.useState)(null),C=null!==(n=null==x?void 0:x.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,k]=(0,r.useState)({}),A=(0,s.e)(t,(e=>D(e))),O=Array.from(P.layers),[T]=[...P.layersWithOutsidePointerEventsDisabled].slice(-1),I=O.indexOf(T),F=x?O.indexOf(x):-1,M=P.layersWithOutsidePointerEventsDisabled.size>0,_=F>=I,R=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=(0,l.W)(e),o=(0,r.useRef)(!1),i=(0,r.useRef)((()=>{}));return(0,r.useEffect)((()=>{const e=e=>{if(e.target&&!o.current){const r={originalEvent:e};function a(){g(u,n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}o.current=!1},r=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,n]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...P.branches].some((e=>e.contains(t)));_&&!n&&(null==y||y(e),null==w||w(e),e.defaultPrevented||null==S||S())}),C),N=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=(0,l.W)(e),o=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{const e=e=>{if(e.target&&!o.current){g(d,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...P.branches].some((e=>e.contains(t)))||(null==b||b(e),null==w||w(e),e.defaultPrevented||null==S||S())}),C);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=(0,l.W)(e);(0,r.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{F===P.layers.size-1&&(null==v||v(e),!e.defaultPrevented&&S&&(e.preventDefault(),S()))}),C),(0,r.useEffect)((()=>{if(x)return h&&(0===P.layersWithOutsidePointerEventsDisabled.size&&(p=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),P.layersWithOutsidePointerEventsDisabled.add(x)),P.layers.add(x),m(),()=>{h&&1===P.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=p)}}),[x,C,h,P]),(0,r.useEffect)((()=>()=>{x&&(P.layers.delete(x),P.layersWithOutsidePointerEventsDisabled.delete(x),m())}),[x,P]),(0,r.useEffect)((()=>{const e=()=>k({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)}),[]),(0,r.createElement)(a.WV.div,o({},E,{ref:A,style:{pointerEvents:M?_?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,R.onPointerDownCapture)}))}));function m(){const e=new CustomEvent(c);document.dispatchEvent(e)}function g(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?(0,a.jH)(r,i):r.dispatchEvent(i)}},12921:(e,t,n)=>{"use strict";function o(){return o=Object.assign||function(e){for(var t=1;tnt,oC:()=>Qe,VY:()=>Xe,ck:()=>Je,Uv:()=>Ye,Ee:()=>et,Rk:()=>tt,fC:()=>He,xz:()=>$e});var r=n(67294),i=n(53912),a=n(72261),s=n(47257),l=n(16180),c=n(84178);function u(){return u=Object.assign||function(e){for(var t=1;t{var t;const{__scopeMenu:n,open:o=!1,children:i,dir:a,onOpenChange:s,modal:l=!0}=e,c=_(n),[u,d]=(0,r.useState)(null),f=(0,r.useRef)(!1),h=(0,E.W)(s),m=(0,p.gm)(a),g=null!==(t=null==u?void 0:u.ownerDocument)&&void 0!==t?t:document;return(0,r.useEffect)((()=>{const e=()=>{f.current=!0,g.addEventListener("pointerdown",t,{capture:!0,once:!0}),g.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return g.addEventListener("keydown",e,{capture:!0}),()=>{g.removeEventListener("keydown",e,{capture:!0}),g.removeEventListener("pointerdown",t,{capture:!0}),g.removeEventListener("pointermove",t,{capture:!0})}}),[g]),(0,r.createElement)(v.fC,c,(0,r.createElement)(N,{scope:n,open:o,onOpenChange:h,content:u,onContentChange:d},(0,r.createElement)(B,{scope:n,onClose:(0,r.useCallback)((()=>h(!1)),[h]),isUsingKeyboardRef:f,dir:m,modal:l},i)))},K=(0,r.forwardRef)(((e,t)=>{const{__scopeMenu:n,...o}=e,i=_(n);return(0,r.createElement)(v.ee,u({},i,o,{ref:t}))})),Z="MenuPortal",[U,V]=F(Z,{forceMount:void 0}),G=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:i}=e,a=L(Z,t);return(0,r.createElement)(U,{scope:t,forceMount:n},(0,r.createElement)(b.z,{present:n||a.open},(0,r.createElement)(y.h,{asChild:!0,container:i},o)))},W="MenuContent",[q,H]=F(W),$=(0,r.forwardRef)(((e,t)=>{const n=V(W,e.__scopeMenu),{forceMount:o=n.forceMount,...i}=e,a=L(W,e.__scopeMenu),s=j(W,e.__scopeMenu);return(0,r.createElement)(O.Provider,{scope:e.__scopeMenu},(0,r.createElement)(b.z,{present:o||a.open},(0,r.createElement)(O.Slot,{scope:e.__scopeMenu},s.modal?(0,r.createElement)(Y,u({},i,{ref:t})):(0,r.createElement)(X,u({},i,{ref:t})))))})),Y=(0,r.forwardRef)(((e,t)=>{const n=L(W,e.__scopeMenu),o=(0,r.useRef)(null),s=(0,a.e)(t,o);return(0,r.useEffect)((()=>{const e=o.current;if(e)return(0,P.Ry)(e)}),[]),(0,r.createElement)(J,u({},e,{ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.M)(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),X=(0,r.forwardRef)(((e,t)=>{const n=L(W,e.__scopeMenu);return(0,r.createElement)(J,u({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),J=(0,r.forwardRef)(((e,t)=>{var n,o;const{__scopeMenu:s,loop:l=!1,trapFocus:c,onOpenAutoFocus:d,onCloseAutoFocus:p,disableOutsidePointerEvents:g,onEscapeKeyDown:y,onPointerDownOutside:b,onFocusOutside:E,onInteractOutside:P,onDismiss:D,disableOutsideScroll:A,...O}=e,I=L(W,s),F=j(W,s),M=_(s),N=R(s),B=T(s),[z,K]=(0,r.useState)(null),Z=(0,r.useRef)(null),U=(0,a.e)(t,Z,I.onContentChange),V=(0,r.useRef)(0),G=(0,r.useRef)(""),H=(0,r.useRef)(0),$=(0,r.useRef)(null),Y=(0,r.useRef)("right"),X=(0,r.useRef)(0),J=null!==(n=null===(o=Z.current)||void 0===o?void 0:o.ownerDocument)&&void 0!==n?n:document,Q=A?x.f:r.Fragment,ee=A?{as:S.g7,allowPinchZoom:!0}:void 0,te=e=>{var t,n;const o=G.current+e,r=B().filter((e=>!e.disabled)),i=J.activeElement,a=null===(t=r.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,s=function(e,t,n){const o=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,r=n?e.indexOf(n):-1;let i=(a=e,s=Math.max(r,0),a.map(((e,t)=>a[(s+t)%a.length])));var a,s;1===o.length&&(i=i.filter((e=>e!==n)));const l=i.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return l!==n?l:void 0}(r.map((e=>e.textValue)),o,a),l=null===(n=r.find((e=>e.textValue===s)))||void 0===n?void 0:n.ref.current;!function e(t){var n;G.current=t;const o=null!==(n=J.defaultView)&&void 0!==n?n:window;o.clearTimeout(V.current),""!==t&&(V.current=o.setTimeout((()=>e("")),1e3))}(o),l&&setTimeout((()=>l.focus()))};(0,r.useEffect)((()=>()=>{var e;return null===(e=J.defaultView)||void 0===e?void 0:e.clearTimeout(V.current)}),[J]),(0,h.EW)(J);const ne=(0,r.useCallback)((e=>{var t,n;return Y.current===(null===(t=$.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;return function(e,t){const{x:n,y:o}=e;let r=!1;for(let e=0,i=t.length-1;eo!=c>o&&n<(l-a)*(o-s)/(c-s)+a&&(r=!r)}return r}({x:e.clientX,y:e.clientY},t)}(e,null===(n=$.current)||void 0===n?void 0:n.area)}),[]);return(0,r.createElement)(q,{scope:s,searchRef:G,onItemEnter:(0,r.useCallback)((e=>{ne(e)&&e.preventDefault()}),[ne]),onItemLeave:(0,r.useCallback)((e=>{var t;ne(e)||(null===(t=Z.current)||void 0===t||t.focus(),K(null))}),[ne]),onTriggerLeave:(0,r.useCallback)((e=>{ne(e)&&e.preventDefault()}),[ne]),pointerGraceTimerRef:H,onPointerGraceIntentChange:(0,r.useCallback)((e=>{$.current=e}),[])},(0,r.createElement)(Q,ee,(0,r.createElement)(m.M,{asChild:!0,trapped:c,onMountAutoFocus:(0,i.M)(d,(e=>{var t;e.preventDefault(),null===(t=Z.current)||void 0===t||t.focus()})),onUnmountAutoFocus:p},(0,r.createElement)(f.XB,{asChild:!0,disableOutsidePointerEvents:g,onEscapeKeyDown:y,onPointerDownOutside:b,onFocusOutside:E,onInteractOutside:P,onDismiss:D},(0,r.createElement)(w.fC,u({asChild:!0},N,{dir:F.dir,orientation:"vertical",loop:l,currentTabStopId:z,onCurrentTabStopIdChange:K,onEntryFocus:e=>{F.isUsingKeyboardRef.current||e.preventDefault()}}),(0,r.createElement)(v.VY,u({role:"menu","aria-orientation":"vertical","data-state":ye(I.open),"data-radix-menu-content":"",dir:F.dir},M,O,{ref:U,style:{outline:"none",...O.style},onKeyDown:(0,i.M)(O.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,o=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&o&&te(e.key));const r=Z.current;if(e.target!==r)return;if(!k.includes(e.key))return;e.preventDefault();const i=B().filter((e=>!e.disabled)).map((e=>e.ref.current));C.includes(e.key)&&i.reverse(),function(e,t=document){const n=t.activeElement;for(const o of e){if(o===n)return;if(o.focus(),t.activeElement!==n)return}}(i,J)})),onBlur:(0,i.M)(e.onBlur,(e=>{var t;e.currentTarget.contains(e.target)||((null!==(t=J.defaultView)&&void 0!==t?t:window).clearTimeout(V.current),G.current="")})),onPointerMove:(0,i.M)(e.onPointerMove,Se((e=>{const t=e.target,n=X.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>X.current?"right":"left";Y.current=t,X.current=e.clientX}})))})))))))})),Q=(0,r.forwardRef)(((e,t)=>{const{__scopeMenu:n,...o}=e;return(0,r.createElement)(c.WV.div,u({role:"group"},o,{ref:t}))})),ee="MenuItem",te="menu.itemSelect",ne=(0,r.forwardRef)(((e,t)=>{const{disabled:n=!1,onSelect:o,...s}=e,l=(0,r.useRef)(null),d=j(ee,e.__scopeMenu),p=H(ee,e.__scopeMenu),f=(0,a.e)(t,l),h=(0,r.useRef)(!1);return(0,r.createElement)(oe,u({},s,{ref:f,disabled:n,onClick:(0,i.M)(e.onClick,(()=>{const e=l.current;if(!n&&e){const t=new CustomEvent(te,{bubbles:!0,cancelable:!0});e.addEventListener(te,(e=>null==o?void 0:o(e)),{once:!0}),(0,c.jH)(e,t),t.defaultPrevented?h.current=!1:d.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),h.current=!0},onPointerUp:(0,i.M)(e.onPointerUp,(e=>{var t;h.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:(0,i.M)(e.onKeyDown,(e=>{const t=""!==p.searchRef.current;n||t&&" "===e.key||D.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),oe=(0,r.forwardRef)(((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:s,...l}=e,d=H(ee,n),p=R(n),f=(0,r.useRef)(null),h=(0,a.e)(t,f),[m,g]=(0,r.useState)(!1),[v,y]=(0,r.useState)("");return(0,r.useEffect)((()=>{const e=f.current;var t;e&&y((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[l.children]),(0,r.createElement)(O.ItemSlot,{scope:n,disabled:o,textValue:null!=s?s:v},(0,r.createElement)(w.ck,u({asChild:!0},p,{focusable:!o}),(0,r.createElement)(c.WV.div,u({role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0},l,{ref:h,onPointerMove:(0,i.M)(e.onPointerMove,Se((e=>{if(o)d.onItemLeave(e);else if(d.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus()}}))),onPointerLeave:(0,i.M)(e.onPointerLeave,Se((e=>d.onItemLeave(e)))),onFocus:(0,i.M)(e.onFocus,(()=>g(!0))),onBlur:(0,i.M)(e.onBlur,(()=>g(!1)))}))))})),re=(0,r.forwardRef)(((e,t)=>{const{checked:n=!1,onCheckedChange:o,...a}=e;return(0,r.createElement)(pe,{scope:e.__scopeMenu,checked:n},(0,r.createElement)(ne,u({role:"menuitemcheckbox","aria-checked":be(n)?"mixed":n},a,{ref:t,"data-state":we(n),onSelect:(0,i.M)(a.onSelect,(()=>null==o?void 0:o(!!be(n)||!n)),{checkForDefaultPrevented:!1})})))})),ie="MenuRadioGroup",[ae,se]=F(ie,{value:void 0,onValueChange:()=>{}}),le=(0,r.forwardRef)(((e,t)=>{const{value:n,onValueChange:o,...i}=e,a=(0,E.W)(o);return(0,r.createElement)(ae,{scope:e.__scopeMenu,value:n,onValueChange:a},(0,r.createElement)(Q,u({},i,{ref:t})))})),ce="MenuRadioItem",ue=(0,r.forwardRef)(((e,t)=>{const{value:n,...o}=e,a=se(ce,e.__scopeMenu),s=n===a.value;return(0,r.createElement)(pe,{scope:e.__scopeMenu,checked:s},(0,r.createElement)(ne,u({role:"menuitemradio","aria-checked":s},o,{ref:t,"data-state":we(s),onSelect:(0,i.M)(o.onSelect,(()=>{var e;return null===(e=a.onValueChange)||void 0===e?void 0:e.call(a,n)}),{checkForDefaultPrevented:!1})})))})),de="MenuItemIndicator",[pe,fe]=F(de,{checked:!1}),he=(0,r.forwardRef)(((e,t)=>{const{__scopeMenu:n,...o}=e,i=_(n);return(0,r.createElement)(v.Eh,u({},i,o,{ref:t}))})),me="MenuSub",[ge,ve]=F(me);function ye(e){return e?"open":"closed"}function be(e){return"indeterminate"===e}function we(e){return be(e)?"indeterminate":e?"checked":"unchecked"}function Se(e){return t=>"mouse"===t.pointerType?e(t):void 0}const Ee=z,Pe=K,xe=G,De=$,Ce=ne,ke=re,Ae=le,Oe=ue,Te=he,Ie="DropdownMenu",[Fe,Me]=(0,s.b)(Ie,[M]),_e=M(),[Re,Ne]=Fe(Ie),Le=e=>{const{__scopeDropdownMenu:t,children:n,dir:i,open:a,defaultOpen:s,onOpenChange:c,modal:u=!0}=e,d=_e(t),p=(0,r.useRef)(null),[f=!1,h]=(0,l.T)({prop:a,defaultProp:s,onChange:c});return(0,r.createElement)(Re,{scope:t,triggerId:(0,g.M)(),triggerRef:p,contentId:(0,g.M)(),open:f,onOpenChange:h,onOpenToggle:(0,r.useCallback)((()=>h((e=>!e))),[h]),modal:u},(0,r.createElement)(Ee,o({},d,{open:f,onOpenChange:h,dir:i,modal:u}),n))},Be="DropdownMenuTrigger",je=(0,r.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,disabled:s=!1,...l}=e,u=Ne(Be,n),d=_e(n);return(0,r.createElement)(Pe,o({asChild:!0},d),(0,r.createElement)(c.WV.button,o({type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":s?"":void 0,disabled:s},l,{ref:(0,a.F)(t,u.triggerRef),onPointerDown:(0,i.M)(e.onPointerDown,(e=>{s||0!==e.button||!1!==e.ctrlKey||(u.onOpenToggle(),u.open||e.preventDefault())})),onKeyDown:(0,i.M)(e.onKeyDown,(e=>{s||(["Enter"," "].includes(e.key)&&u.onOpenToggle(),"ArrowDown"===e.key&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),ze=e=>{const{__scopeDropdownMenu:t,...n}=e,i=_e(t);return(0,r.createElement)(xe,o({},i,n))},Ke="DropdownMenuContent",Ze=(0,r.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,s=Ne(Ke,n),l=_e(n),c=(0,r.useRef)(!1);return(0,r.createElement)(De,o({id:s.contentId,"aria-labelledby":s.triggerId},l,a,{ref:t,onCloseAutoFocus:(0,i.M)(e.onCloseAutoFocus,(e=>{var t;c.current||null===(t=s.triggerRef.current)||void 0===t||t.focus(),c.current=!1,e.preventDefault()})),onInteractOutside:(0,i.M)(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,o=2===t.button||n;s.modal&&!o||(c.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))})),Ue=(0,r.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,a=_e(n);return(0,r.createElement)(Ce,o({},a,i,{ref:t}))})),Ve=(0,r.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,a=_e(n);return(0,r.createElement)(ke,o({},a,i,{ref:t}))})),Ge=(0,r.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,a=_e(n);return(0,r.createElement)(Ae,o({},a,i,{ref:t}))})),We=(0,r.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,a=_e(n);return(0,r.createElement)(Oe,o({},a,i,{ref:t}))})),qe=(0,r.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,a=_e(n);return(0,r.createElement)(Te,o({},a,i,{ref:t}))})),He=Le,$e=je,Ye=ze,Xe=Ze,Je=Ue,Qe=Ve,et=Ge,tt=We,nt=qe},57279:(e,t,n)=>{"use strict";n.d(t,{EW:()=>i});var o=n(67294);let r=0;function i(e=document){(0,o.useEffect)((()=>{var t,n;const o=e.querySelectorAll("[data-radix-focus-guard]");return e.body.insertAdjacentElement("afterbegin",null!==(t=o[0])&&void 0!==t?t:a()),e.body.insertAdjacentElement("beforeend",null!==(n=o[1])&&void 0!==n?n:a()),r++,()=>{1===r&&e.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),r--}}),[e])}function a(e=document){const t=e.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}},1788:(e,t,n)=>{"use strict";function o(){return o=Object.assign||function(e){for(var t=1;td});var r=n(67294),i=n(72261),a=n(84178),s=n(88751);const l="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",u={bubbles:!1,cancelable:!0},d=(0,r.forwardRef)(((e,t)=>{var n;const{loop:d=!1,trapped:h=!1,onMountAutoFocus:v,onUnmountAutoFocus:y,...b}=e,[w,S]=(0,r.useState)(null),E=(0,s.W)(v),P=(0,s.W)(y),x=(0,r.useRef)(null),D=null!==(n=null==w?void 0:w.ownerDocument)&&void 0!==n?n:document,C=(0,i.e)(t,(e=>S(e))),k=(0,r.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,r.useEffect)((()=>{if(h){function e(e){if(k.paused||!w)return;const t=e.target;w.contains(t)?x.current=t:m(x.current,{select:!0,ownerDocument:D})}function t(e){!k.paused&&w&&(w.contains(e.relatedTarget)||m(x.current,{select:!0,ownerDocument:D}))}return D.addEventListener("focusin",e),D.addEventListener("focusout",t),()=>{D.removeEventListener("focusin",e),D.removeEventListener("focusout",t)}}}),[h,w,k.paused,D]),(0,r.useEffect)((()=>{if(w){g.add(k);const t=D.activeElement;if(!w.contains(t)){const n=new CustomEvent(l,u);w.addEventListener(l,E),w.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1,ownerDocument:n=document}={}){const o=n.activeElement;for(const r of e)if(m(r,{select:t,ownerDocument:n}),n.activeElement!==o)return}((e=p(w),e.filter((e=>"A"!==e.tagName))),{select:!0,ownerDocument:D}),D.activeElement===t&&m(w,{ownerDocument:D}))}return()=>{w.removeEventListener(l,E),setTimeout((()=>{const e=new CustomEvent(c,u);w.addEventListener(c,P),w.dispatchEvent(e),e.defaultPrevented||m(null!=t?t:D.body,{select:!0,ownerDocument:D}),w.removeEventListener(c,P),g.remove(k)}),0)}}var e}),[w,D,E,P,k]);const A=(0,r.useCallback)((e=>{if(!d&&!h)return;if(k.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=D.activeElement;if(t&&n){const t=e.currentTarget,[o,r]=function(e){const t=p(e),n=f(t,e),o=f(t.reverse(),e);return[n,o]}(t);o&&r?e.shiftKey||n!==r?e.shiftKey&&n===o&&(e.preventDefault(),d&&m(r,{select:!0,ownerDocument:D})):(e.preventDefault(),d&&m(o,{select:!0,ownerDocument:D})):n===t&&e.preventDefault()}}),[d,h,k.paused,D]);return(0,r.createElement)(a.WV.div,o({tabIndex:-1},b,{ref:C,onKeyDown:A}))}));function p(e){const t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function f(e,t){for(const n of e)if(!h(n,{upTo:t}))return n}function h(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function m(e,{select:t=!1,ownerDocument:n=document}={}){if(e&&e.focus){const o=n.activeElement;e.focus({preventScroll:!0}),e!==o&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const g=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=v(e,t),e.unshift(t)},remove(t){var n;e=v(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function v(e,t){const n=[...e],o=n.indexOf(t);return-1!==o&&n.splice(o,1),n}},69448:(e,t,n)=>{"use strict";var o;n.d(t,{M:()=>l});var r=n(67294),i=n(14805);const a=(o||(o=n.t(r,2)))["useId".toString()]||(()=>{});let s=0;function l(e){const[t,n]=r.useState(a());return(0,i.b)((()=>{e||n((e=>null!=e?e:String(s++)))}),[e]),e||(t?`radix-${t}`:"")}},54941:(e,t,n)=>{"use strict";function o(){return o=Object.assign||function(e){for(var t=1;tZ,VY:()=>G,h_:()=>V,fC:()=>K,xz:()=>U});var r=n(67294),i=n(53912),a=n(72261),s=n(47257),l=n(48923),c=n(57279),u=n(1788),d=n(69448),p=n(74943),f=n(37103),h=n(83583),m=n(84178),g=n(8145),v=n(16180),y=n(23541),b=n(81066);const w="Popover",[S,E]=(0,s.b)(w,[p.D7]),P=(0,p.D7)(),[x,D]=S(w),C=e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!1}=e,l=P(t),c=(0,r.useRef)(null),[u,f]=(0,r.useState)(!1),[h=!1,m]=(0,v.T)({prop:o,defaultProp:i,onChange:a});return(0,r.createElement)(p.fC,l,(0,r.createElement)(x,{scope:t,contentId:(0,d.M)(),triggerRef:c,open:h,onOpenChange:m,onOpenToggle:(0,r.useCallback)((()=>m((e=>!e))),[m]),hasCustomAnchor:u,onCustomAnchorAdd:(0,r.useCallback)((()=>f(!0)),[]),onCustomAnchorRemove:(0,r.useCallback)((()=>f(!1)),[]),modal:s},n))},k="PopoverAnchor",A=(0,r.forwardRef)(((e,t)=>{const{__scopePopover:n,...i}=e,a=D(k,n),s=P(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=a;return(0,r.useEffect)((()=>(l(),()=>c())),[l,c]),(0,r.createElement)(p.ee,o({},s,i,{ref:t}))})),O="PopoverTrigger",T=(0,r.forwardRef)(((e,t)=>{const{__scopePopover:n,...s}=e,l=D(O,n),c=P(n),u=(0,a.e)(t,l.triggerRef),d=(0,r.createElement)(m.WV.button,o({type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":z(l.open)},s,{ref:u,onClick:(0,i.M)(e.onClick,l.onOpenToggle)}));return l.hasCustomAnchor?d:(0,r.createElement)(p.ee,o({asChild:!0},c),d)})),I="PopoverPortal",[F,M]=S(I,{forceMount:void 0}),_=e=>{const{__scopePopover:t,forceMount:n,children:o,container:i}=e,a=D(I,t);return(0,r.createElement)(F,{scope:t,forceMount:n},(0,r.createElement)(h.z,{present:n||a.open},(0,r.createElement)(f.h,{asChild:!0,container:i},o)))},R="PopoverContent",N=(0,r.forwardRef)(((e,t)=>{const n=M(R,e.__scopePopover),{forceMount:i=n.forceMount,...a}=e,s=D(R,e.__scopePopover);return(0,r.createElement)(h.z,{present:i||s.open},s.modal?(0,r.createElement)(L,o({},a,{ref:t})):(0,r.createElement)(B,o({},a,{ref:t})))})),L=(0,r.forwardRef)(((e,t)=>{const n=D(R,e.__scopePopover),s=(0,r.useRef)(null),l=(0,a.e)(t,s),c=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{const e=s.current;if(e)return(0,y.Ry)(e)}),[]),(0,r.createElement)(b.f,{as:g.g7,allowPinchZoom:!0},(0,r.createElement)(j,o({},e,{ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.M)(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),c.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:(0,i.M)(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,o=2===t.button||n;c.current=o}),{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.M)(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})))})),B=(0,r.forwardRef)(((e,t)=>{const n=D(R,e.__scopePopover),i=(0,r.useRef)(!1);return(0,r.createElement)(j,o({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,r;(null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented)||(i.current||null===(r=n.triggerRef.current)||void 0===r||r.focus(),t.preventDefault());i.current=!1},onInteractOutside:t=>{var o,r;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(i.current=!0);const a=t.target;(null===(r=n.triggerRef.current)||void 0===r?void 0:r.contains(a))&&t.preventDefault()}}))})),j=(0,r.forwardRef)(((e,t)=>{const{__scopePopover:n,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:d,disableOutsidePointerEvents:f,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,...y}=e,b=D(R,n),w=P(n),[S,E]=(0,r.useState)(document),x=(0,a.e)(t,(e=>{var t;return E(null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document)}));return(0,c.EW)(S),(0,r.createElement)(u.M,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:d},(0,r.createElement)(l.XB,{asChild:!0,disableOutsidePointerEvents:f,onInteractOutside:v,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:g,onDismiss:()=>b.onOpenChange(!1)},(0,r.createElement)(p.VY,o({"data-state":z(b.open),role:"dialog",id:b.contentId},w,y,{ref:x,style:{...y.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function z(e){return e?"open":"closed"}const K=C,Z=A,U=T,V=_,G=N},74943:(e,t,n)=>{"use strict";function o(){return o=Object.assign||function(e){for(var t=1;tZe,Eh:()=>Ve,VY:()=>Ue,fC:()=>Ke,D7:()=>Ee});var r=n(67294);function i(e){return e.split("-")[0]}function a(e){return e.split("-")[1]}function s(e){return["top","bottom"].includes(i(e))?"x":"y"}function l(e){return"y"===e?"height":"width"}function c(e,t,n){let{reference:o,floating:r}=e;const c=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,d=s(t),p=l(d),f=o[p]/2-r[p]/2,h="x"===d;let m;switch(i(t)){case"top":m={x:c,y:o.y-r.height};break;case"bottom":m={x:c,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:u};break;case"left":m={x:o.x-r.width,y:u};break;default:m={x:o.x,y:o.y}}switch(a(t)){case"start":m[d]-=f*(n&&h?-1:1);break;case"end":m[d]+=f*(n&&h?-1:1)}return m}function u(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function d(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function p(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=t,g=u(m),v=s[h?"floating"===f?"reference":"floating":f],y=d(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:p,strategy:l})),b=d(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...a.floating,x:o,y:r}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),strategy:l}):a[f]);return{top:y.top-b.top+g.top,bottom:b.bottom-y.bottom+g.bottom,left:y.left-b.left+g.left,right:b.right-y.right+g.right}}const f=Math.min,h=Math.max;function m(e,t,n){return h(e,f(t,n))}const g=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:c,rects:d,platform:p}=t;if(null==n)return{};const f=u(o),h={x:r,y:i},g=s(c),v=a(c),y=l(g),b=await p.getDimensions(n),w="y"===g?"top":"left",S="y"===g?"bottom":"right",E=d.reference[y]+d.reference[g]-h[g]-d.floating[y],P=h[g]-d.reference[g],x=await(null==p.getOffsetParent?void 0:p.getOffsetParent(n));let D=x?"y"===g?x.clientHeight||0:x.clientWidth||0:0;0===D&&(D=d.floating[y]);const C=E/2-P/2,k=f[w],A=D-b[y]-f[S],O=D/2-b[y]/2+C,T=m(k,O,A),I=("start"===v?f[w]:f[S])>0&&O!==T&&d.reference[y]<=d.floating[y];return{[g]:h[g]-(I?Ov[e]))}function b(e,t,n){void 0===n&&(n=!1);const o=a(e),r=s(e),i=l(r);let c="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=y(c)),{main:c,cross:y(c)}}const w={start:"end",end:"start"};function S(e){return e.replace(/start|end/g,(e=>w[e]))}const E=["top","right","bottom","left"],P=(E.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",flipAlignment:m=!0,...g}=e,v=i(o),w=f||(v!==s&&m?function(e){const t=y(e);return[S(e),t,S(t)]}(s):[y(s)]),E=[s,...w],P=await p(t,g),x=[];let D=(null==(n=r.flip)?void 0:n.overflows)||[];if(u&&x.push(P[v]),d){const{main:e,cross:t}=b(o,a,await(null==l.isRTL?void 0:l.isRTL(c.floating)));x.push(P[e],P[t])}if(D=[...D,{placement:o,overflows:x}],!x.every((e=>e<=0))){var C,k;const e=(null!=(C=null==(k=r.flip)?void 0:k.index)?C:0)+1,t=E[e];if(t)return{data:{index:e,overflows:D},reset:{placement:t}};let n="bottom";switch(h){case"bestFit":{var A;const e=null==(A=D.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:A[0].placement;e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}});function x(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function D(e){return E.some((t=>e[t]>=0))}const C=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=x(await p(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:D(t)}}}case"escaped":{const t=x(await p(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:D(t)}}}default:return{}}}}},k=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,l=await(null==o.isRTL?void 0:o.isRTL(r.floating)),c=i(n),u=a(n),d="x"===s(n),p=["left","top"].includes(c)?-1:1,f=l&&d?-1:1,h="function"==typeof t?t(e):t;let{mainAxis:m,crossAxis:g,alignmentAxis:v}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return u&&"number"==typeof v&&(g="end"===u?-1*v:v),d?{x:g*f,y:m*p}:{x:m*p,y:g*f}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};function A(e){return"x"===e?"y":"x"}const O=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=e,d={x:n,y:o},f=await p(t,u),h=s(i(r)),g=A(h);let v=d[h],y=d[g];if(a){const e="y"===h?"bottom":"right";v=m(v+f["y"===h?"top":"left"],v,v-f[e])}if(l){const e="y"===g?"bottom":"right";y=m(y+f["y"===g?"top":"left"],y,y-f[e])}const b=c.fn({...t,[h]:v,[g]:y});return{...b,data:{x:b.x-n,y:b.y-o}}}}},T=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:a,middlewareData:l}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=e,p={x:n,y:o},f=s(r),h=A(f);let m=p[f],g=p[h];const v="function"==typeof c?c({...a,placement:r}):c,y="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+y.mainAxis,n=a.reference[f]+a.reference[e]-y.mainAxis;mn&&(m=n)}if(d){var b,w,S,E;const e="y"===f?"width":"height",t=["top","left"].includes(i(r)),n=a.reference[h]-a.floating[e]+(t&&null!=(b=null==(w=l.offset)?void 0:w[h])?b:0)+(t?0:y.crossAxis),o=a.reference[h]+a.reference[e]+(t?0:null!=(S=null==(E=l.offset)?void 0:E[h])?S:0)-(t?y.crossAxis:0);go&&(g=o)}return{[f]:m,[h]:g}}}};function I(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function F(e){if(null==e)return window;if(!I(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function M(e){return F(e).getComputedStyle(e)}function _(e){return I(e)?"":e?(e.nodeName||"").toLowerCase():""}function R(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function N(e){return e instanceof F(e).HTMLElement}function L(e){return e instanceof F(e).Element}function B(e){return"undefined"!=typeof ShadowRoot&&(e instanceof F(e).ShadowRoot||e instanceof ShadowRoot)}function j(e){const{overflow:t,overflowX:n,overflowY:o}=M(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function z(e){return["table","td","th"].includes(_(e))}function K(e){const t=/firefox/i.test(R()),n=M(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function Z(){return!/^((?!chrome|android).)*safari/i.test(R())}const U=Math.min,V=Math.max,G=Math.round;function W(e,t,n){var o,r,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&N(e)&&(l=e.offsetWidth>0&&G(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&G(s.height)/e.offsetHeight||1);const u=L(e)?F(e):window,d=!Z()&&n,p=(s.left+(d&&null!=(o=null==(r=u.visualViewport)?void 0:r.offsetLeft)?o:0))/l,f=(s.top+(d&&null!=(i=null==(a=u.visualViewport)?void 0:a.offsetTop)?i:0))/c,h=s.width/l,m=s.height/c;return{width:h,height:m,top:f,right:p+h,bottom:f+m,left:p,x:p,y:f}}function q(e){return(t=e,(t instanceof F(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function H(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $(e){return W(q(e)).left+H(e).scrollLeft}function Y(e,t,n){const o=N(t),r=q(t),i=W(e,o&&function(e){const t=W(e);return G(t.width)!==e.offsetWidth||G(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==_(t)||j(r))&&(a=H(t)),N(t)){const e=W(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else r&&(s.x=$(r));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function X(e){return"html"===_(e)?e:e.assignedSlot||e.parentNode||(B(e)?e.host:null)||q(e)}function J(e){return N(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function Q(e){const t=F(e);let n=J(e);for(;n&&z(n)&&"static"===getComputedStyle(n).position;)n=J(n);return n&&("html"===_(n)||"body"===_(n)&&"static"===getComputedStyle(n).position&&!K(n))?t:n||function(e){let t=X(e);for(B(t)&&(t=t.host);N(t)&&!["html","body"].includes(_(t));){if(K(t))return t;t=t.parentNode}return null}(e)||t}function ee(e){if(N(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=W(e);return{width:t.width,height:t.height}}function te(e){const t=X(e);return["html","body","#document"].includes(_(t))?e.ownerDocument.body:N(t)&&j(t)?t:te(t)}function ne(e,t){var n;void 0===t&&(t=[]);const o=te(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=F(o),a=r?[i].concat(i.visualViewport||[],j(o)?o:[]):o,s=t.concat(a);return r?s:s.concat(ne(a))}function oe(e,t,n){return"viewport"===t?d(function(e,t){const n=F(e),o=q(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){i=r.width,a=r.height;const e=Z();(e||!e&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):L(t)?function(e,t){const n=W(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):d(function(e){var t;const n=q(e),o=H(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=V(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=V(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let s=-o.scrollLeft+$(e);const l=-o.scrollTop;return"rtl"===M(r||n).direction&&(s+=V(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(q(e)))}function re(e){const t=ne(e),n=["absolute","fixed"].includes(M(e).position)&&N(e)?Q(e):e;return L(n)?t.filter((e=>L(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&B(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==_(e))):[]}const ie={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?re(t):[].concat(n),o],a=i[0],s=i.reduce(((e,n)=>{const o=oe(t,n,r);return e.top=V(o.top,e.top),e.right=U(o.right,e.right),e.bottom=U(o.bottom,e.bottom),e.left=V(o.left,e.left),e}),oe(t,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=N(n),i=q(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==_(n)||j(i))&&(a=H(n)),N(n))){const e=W(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:L,getDimensions:ee,getOffsetParent:Q,getDocumentElement:q,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:Y(t,Q(n),o),floating:{...ee(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===M(e).direction};function ae(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=o,l=r&&!s,c=i&&!s,u=l||c?[...L(e)?ne(e):[],...ne(t)]:[];u.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let d,p=null;if(a){let o=!0;p=new ResizeObserver((()=>{o||n(),o=!1})),L(e)&&!s&&p.observe(e),p.observe(t)}let f=s?W(e):null;return s&&function t(){const o=W(e);!f||o.x===f.x&&o.y===f.y&&o.width===f.width&&o.height===f.height||n(),f=o,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(d)}}const se=(e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=c(l,o,s),p=o,f={},h=0;for(let n=0;n{t.current=e})),t}(i),c=r.useRef(null),[u,d]=r.useState({x:null,y:null,strategy:o,placement:n,middlewareData:{}}),[p,f]=r.useState(t);ue(null==p?void 0:p.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||f(t);const h=r.useCallback((()=>{a.current&&s.current&&se(a.current,s.current,{middleware:p,placement:n,strategy:o}).then((e=>{m.current&&le.flushSync((()=>{d(e)}))}))}),[p,n,o]);ce((()=>{m.current&&h()}),[h]);const m=r.useRef(!1);ce((()=>(m.current=!0,()=>{m.current=!1})),[]);const g=r.useCallback((()=>{if("function"==typeof c.current&&(c.current(),c.current=null),a.current&&s.current)if(l.current){const e=l.current(a.current,s.current,h);c.current=e}else h()}),[h,l]),v=r.useCallback((e=>{a.current=e,g()}),[g]),y=r.useCallback((e=>{s.current=e,g()}),[g]),b=r.useMemo((()=>({reference:a,floating:s})),[]);return r.useMemo((()=>({...u,update:h,refs:b,reference:v,floating:y})),[u,h,b,v,y])}const pe=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return o=t,Object.prototype.hasOwnProperty.call(o,"current")?null!=t.current?g({element:t.current,padding:n}).fn(e):{}:t?g({element:t,padding:n}).fn(e):{};var o}}};function fe(){return fe=Object.assign||function(e){for(var t=1;t{const{children:n,width:o=10,height:i=5,...a}=e;return(0,r.createElement)(he.WV.svg,fe({},a,{ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,r.createElement)("polygon",{points:"0,0 30,0 15,10"}))})),ge=me;var ve=n(72261),ye=n(47257),be=n(14805);const we="Popper",[Se,Ee]=(0,ye.b)(we),[Pe,xe]=Se(we),De=e=>{const{__scopePopper:t,children:n}=e,[o,i]=(0,r.useState)(null);return(0,r.createElement)(Pe,{scope:t,anchor:o,onAnchorChange:i},n)},Ce="PopperAnchor",ke=(0,r.forwardRef)(((e,t)=>{const{__scopePopper:n,virtualRef:i,...a}=e,s=xe(Ce,n),l=(0,r.useRef)(null),c=(0,ve.e)(t,l);return(0,r.useEffect)((()=>{s.onAnchorChange((null==i?void 0:i.current)||l.current)})),i?null:(0,r.createElement)(he.WV.div,o({},a,{ref:c}))})),Ae="PopperContent",[Oe,Te]=Se(Ae),[Ie,Fe]=Se(Ae,{hasParent:!1,positionUpdateFns:new Set}),Me=(0,r.forwardRef)(((e,t)=>{var n,o,i,a,s,l,c,u;const{__scopePopper:d,side:p="bottom",sideOffset:f=0,align:h="center",alignOffset:m=0,arrowPadding:g=0,collisionBoundary:v=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,avoidCollisions:S=!0,...E}=e,x=xe(Ae,d),[D,A]=(0,r.useState)(null),I=(0,ve.e)(t,(e=>A(e))),[F,M]=(0,r.useState)(null),_=function(e){const[t,n]=(0,r.useState)(void 0);return(0,be.b)((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const o=t[0];let r,i;if("borderBoxSize"in o){const e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(F),R=null!==(n=null==_?void 0:_.width)&&void 0!==n?n:0,N=null!==(o=null==_?void 0:_.height)&&void 0!==o?o:0,L=p+("center"!==h?"-"+h:""),B="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},j=Array.isArray(v)?v:[v],z=j.length>0,K={padding:B,boundary:j.filter(Be),altBoundary:z},{reference:Z,floating:U,strategy:V,x:G,y:W,placement:q,middlewareData:H,update:$}=de({strategy:"fixed",placement:L,whileElementsMounted:ae,middleware:[k({mainAxis:f+N,alignmentAxis:m}),S?O({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?T():void 0,...K}):void 0,F?pe({element:F,padding:g}):void 0,S?P({...K}):void 0,je({arrowWidth:R,arrowHeight:N}),w?C({strategy:"referenceHidden"}):void 0].filter(Le)});(0,be.b)((()=>{Z(x.anchor)}),[Z,x.anchor]);const Y=null!==G&&null!==W,[X,J]=ze(q),Q=null===(i=H.arrow)||void 0===i?void 0:i.x,ee=null===(a=H.arrow)||void 0===a?void 0:a.y,te=0!==(null===(s=H.arrow)||void 0===s?void 0:s.centerOffset),[ne,oe]=(0,r.useState)();(0,be.b)((()=>{if(D){var e;const t=null!==(e=D.ownerDocument.defaultView)&&void 0!==e?e:window;oe(t.getComputedStyle(D).zIndex)}}),[D]);const{hasParent:re,positionUpdateFns:ie}=Fe(Ae,d),se=!re;(0,r.useLayoutEffect)((()=>{if(!se)return ie.add($),()=>{ie.delete($)}}),[se,ie,$]),(0,r.useLayoutEffect)((()=>{se&&Y&&Array.from(ie).reverse().forEach((e=>requestAnimationFrame(e)))}),[se,Y,ie]);const le={"data-side":X,"data-align":J,...E,ref:I,style:{...E.style,animation:Y?void 0:"none",opacity:null!==(l=H.hide)&&void 0!==l&&l.referenceHidden?0:void 0}};return(0,r.createElement)("div",{ref:U,"data-radix-popper-content-wrapper":"",style:{position:V,left:0,top:0,transform:Y?`translate3d(${Math.round(G)}px, ${Math.round(W)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[null===(c=H.transformOrigin)||void 0===c?void 0:c.x,null===(u=H.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,r.createElement)(Oe,{scope:d,placedSide:X,onArrowChange:M,arrowX:Q,arrowY:ee,shouldHideArrow:te},se?(0,r.createElement)(Ie,{scope:d,hasParent:!0,positionUpdateFns:ie},(0,r.createElement)(he.WV.div,le)):(0,r.createElement)(he.WV.div,le)))})),_e="PopperArrow",Re={top:"bottom",right:"left",bottom:"top",left:"right"},Ne=(0,r.forwardRef)((function(e,t){const{__scopePopper:n,...i}=e,a=Te(_e,n),s=Re[a.placedSide];return(0,r.createElement)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},(0,r.createElement)(ge,o({},i,{ref:t,style:{...i.style,display:"block"}})))}));function Le(e){return void 0!==e}function Be(e){return null!==e}const je=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,i,a;const{placement:s,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[f,h]=ze(s),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(o=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==o?o:0)+d/2,v=(null!==(i=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+p/2;let y="",b="";return"bottom"===f?(y=u?m:`${g}px`,b=-p+"px"):"top"===f?(y=u?m:`${g}px`,b=`${l.floating.height+p}px`):"right"===f?(y=-p+"px",b=u?m:`${v}px`):"left"===f&&(y=`${l.floating.width+p}px`,b=u?m:`${v}px`),{data:{x:y,y:b}}}});function ze(e){const[t,n="center"]=e.split("-");return[t,n]}const Ke=De,Ze=ke,Ue=Me,Ve=Ne},37103:(e,t,n)=>{"use strict";function o(){return o=Object.assign||function(e){for(var t=1;ts});var r=n(67294),i=n(73935),a=n(84178);const s=(0,r.forwardRef)(((e,t)=>{var n;const{container:s=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...l}=e;return s?i.createPortal((0,r.createElement)(a.WV.div,o({},l,{ref:t})),s):null}))},83583:(e,t,n)=>{"use strict";n.d(t,{z:()=>s});var o=n(67294),r=n(73935),i=n(72261),a=n(14805);const s=e=>{const{present:t,children:n}=e,s=function(e){const[t,n]=(0,o.useState)(),i=(0,o.useRef)({}),s=(0,o.useRef)(e),c=(0,o.useRef)("none"),u=e?"mounted":"unmounted",[d,p]=function(e,t){return(0,o.useReducer)(((e,n)=>{const o=t[e][n];return null!=o?o:e}),e)}(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,o.useEffect)((()=>{const e=l(i.current);c.current="mounted"===d?e:"none"}),[d]),(0,a.b)((()=>{const t=i.current,n=s.current;if(n!==e){const o=c.current,r=l(t);if(e)p("MOUNT");else if("none"===r||"none"===(null==t?void 0:t.display))p("UNMOUNT");else{const e=o!==r;p(n&&e?"ANIMATION_OUT":"UNMOUNT")}s.current=e}}),[e,p]),(0,a.b)((()=>{if(t){const e=e=>{const n=l(i.current).includes(e.animationName);e.target===t&&n&&(0,r.flushSync)((()=>p("ANIMATION_END")))},n=e=>{e.target===t&&(c.current=l(i.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}p("ANIMATION_END")}),[t,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:(0,o.useCallback)((e=>{e&&(i.current=getComputedStyle(e)),n(e)}),[])}}(t),c="function"==typeof n?n({present:s.isPresent}):o.Children.only(n),u=(0,i.e)(s.ref,c.ref);return"function"==typeof n||s.isPresent?(0,o.cloneElement)(c,{ref:u}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},84178:(e,t,n)=>{"use strict";function o(){return o=Object.assign||function(e){for(var t=1;ts,jH:()=>l});var r=n(67294),i=n(73935),a=n(8145);const s=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,r.forwardRef)(((e,n)=>{const{asChild:i,...s}=e,l=i?a.g7:t;return(0,r.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,r.createElement)(l,o({},s,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function l(e,t){e&&(0,i.flushSync)((()=>e.dispatchEvent(t)))}},20026:(e,t,n)=>{"use strict";function o(){return o=Object.assign||function(e){for(var t=1;tI,fC:()=>T,Pc:()=>S});var r=n(67294),i=n(53912),a=n(21286),s=n(72261),l=n(47257),c=n(69448),u=n(84178),d=n(88751),p=n(16180),f=n(69409);const h="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[v,y,b]=(0,a.B)(g),[w,S]=(0,l.b)(g,[b]),[E,P]=w(g),x=(0,r.forwardRef)(((e,t)=>(0,r.createElement)(v.Provider,{scope:e.__scopeRovingFocusGroup},(0,r.createElement)(v.Slot,{scope:e.__scopeRovingFocusGroup},(0,r.createElement)(D,o({},e,{ref:t})))))),D=(0,r.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:l=!1,dir:c,currentTabStopId:g,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:b,onEntryFocus:w,...S}=e,P=(0,r.useRef)(null),x=(0,s.e)(t,P),D=(0,f.gm)(c),[C=null,k]=(0,p.T)({prop:g,defaultProp:v,onChange:b}),[A,T]=(0,r.useState)(!1),I=(0,d.W)(w),F=y(n),M=(0,r.useRef)(!1),[_,R]=(0,r.useState)(0),[N,L]=(0,r.useState)(document);return(0,r.useEffect)((()=>{const e=P.current;if(e)return L(e.ownerDocument),e.addEventListener(h,I),()=>e.removeEventListener(h,I)}),[I]),(0,r.createElement)(E,{scope:n,orientation:a,dir:D,loop:l,currentTabStopId:C,onItemFocus:(0,r.useCallback)((e=>k(e)),[k]),onItemShiftTab:(0,r.useCallback)((()=>T(!0)),[]),onFocusableItemAdd:(0,r.useCallback)((()=>R((e=>e+1))),[]),onFocusableItemRemove:(0,r.useCallback)((()=>R((e=>e-1))),[])},(0,r.createElement)(u.WV.div,o({tabIndex:A||0===_?-1:0,"data-orientation":a},S,{ref:x,style:{outline:"none",...e.style},onMouseDown:(0,i.M)(e.onMouseDown,(()=>{M.current=!0})),onFocus:(0,i.M)(e.onFocus,(e=>{const t=!M.current;if(e.target===e.currentTarget&&t&&!A){const t=new CustomEvent(h,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=F().filter((e=>e.focusable));O([e.find((e=>e.active)),e.find((e=>e.id===C)),...e].filter(Boolean).map((e=>e.ref.current)),N)}}M.current=!1})),onBlur:(0,i.M)(e.onBlur,(()=>T(!1)))})))})),C="RovingFocusGroupItem",k=(0,r.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:l=!1,...d}=e,p=(0,c.M)(),f=P(C,n),h=f.currentTabStopId===p,m=y(n),[g,b]=(0,r.useState)(document),w=(0,s.e)(t,(e=>{var t;return b(null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document)})),{onFocusableItemAdd:S,onFocusableItemRemove:E}=f;return(0,r.useEffect)((()=>{if(a)return S(),()=>E()}),[a,S,E]),(0,r.createElement)(v.ItemSlot,{scope:n,id:p,focusable:a,active:l},(0,r.createElement)(u.WV.span,o({tabIndex:h?0:-1,"data-orientation":f.orientation},d,{ref:w,onMouseDown:(0,i.M)(e.onMouseDown,(e=>{a?f.onItemFocus(p):e.preventDefault()})),onFocus:(0,i.M)(e.onFocus,(()=>f.onItemFocus(p))),onKeyDown:(0,i.M)(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const o=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(o)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)?void 0:A[o]}(e,f.orientation,f.dir);if(void 0!==t){e.preventDefault();let r=m().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();const i=r.indexOf(e.currentTarget);r=f.loop?(o=i+1,(n=r).map(((e,t)=>n[(o+t)%n.length]))):r.slice(i+1)}setTimeout((()=>O(r,g)))}var n,o}))})))})),A={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function O(e,t=document){const n=t.activeElement;for(const o of e){if(o===n)return;if(o.focus(),t.activeElement!==n)return}}const T=x,I=k},8145:(e,t,n)=>{"use strict";function o(){return o=Object.assign||function(e){for(var t=1;ta});var r=n(67294),i=n(72261);const a=(0,r.forwardRef)(((e,t)=>{const{children:n,...i}=e,a=r.Children.toArray(n),l=a.find(c);if(l){const e=l.props.children,n=a.map((t=>t===l?r.Children.count(e)>1?r.Children.only(null):(0,r.isValidElement)(e)?e.props.children:null:t));return(0,r.createElement)(s,o({},i,{ref:t}),(0,r.isValidElement)(e)?(0,r.cloneElement)(e,void 0,n):null)}return(0,r.createElement)(s,o({},i,{ref:t}),n)}));a.displayName="Slot";const s=(0,r.forwardRef)(((e,t)=>{const{children:n,...o}=e;return(0,r.isValidElement)(n)?(0,r.cloneElement)(n,{...u(o,n.props),ref:(0,i.F)(t,n.ref)}):r.Children.count(n)>1?r.Children.only(null):null}));s.displayName="SlotClone";const l=({children:e})=>(0,r.createElement)(r.Fragment,null,e);function c(e){return(0,r.isValidElement)(e)&&e.type===l}function u(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...e)=>{i(...e),r(...e)}:r&&(n[o]=r):"style"===o?n[o]={...r,...i}:"className"===o&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}},88751:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var o=n(67294);function r(e){const t=(0,o.useRef)(e);return(0,o.useEffect)((()=>{t.current=e})),(0,o.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}},16180:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var o=n(67294),r=n(88751);function i({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[i,a]=function({defaultProp:e,onChange:t}){const n=(0,o.useState)(e),[i]=n,a=(0,o.useRef)(i),s=(0,r.W)(t);return(0,o.useEffect)((()=>{a.current!==i&&(s(i),a.current=i)}),[i,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:i,c=(0,r.W)(n);return[l,(0,o.useCallback)((t=>{if(s){const n=t,o="function"==typeof t?n(e):t;o!==e&&c(o)}else a(t)}),[s,e,a,c])]}},14805:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var o=n(67294);const r=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?o.useLayoutEffect:()=>{}},23541:(e,t,n)=>{"use strict";n.d(t,{Ry:()=>u});var o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},r=new WeakMap,i=new WeakMap,a={},s=0,l=function(e){return e&&(e.host||l(e.parentNode))},c=function(e,t,n,o){var c=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=l(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);a[n]||(a[n]=new WeakMap);var u=a[n],d=[],p=new Set,f=new Set(c),h=function(e){e&&!p.has(e)&&(p.add(e),h(e.parentNode))};c.forEach(h);var m=function(e){e&&!f.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(p.has(e))m(e);else{var t=e.getAttribute(o),a=null!==t&&"false"!==t,s=(r.get(e)||0)+1,l=(u.get(e)||0)+1;r.set(e,s),u.set(e,l),d.push(e),1===s&&a&&i.set(e,!0),1===l&&e.setAttribute(n,"true"),a||e.setAttribute(o,"true")}}))};return m(t),p.clear(),s++,function(){d.forEach((function(e){var t=r.get(e)-1,a=u.get(e)-1;r.set(e,t),u.set(e,a),t||(i.has(e)||e.removeAttribute(o),i.delete(e)),a||e.removeAttribute(n)})),--s||(r=new WeakMap,r=new WeakMap,i=new WeakMap,a={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||o(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),c(r,i,n,"aria-hidden")):function(){return null}}},10531:(e,t)=>{"use strict";function n(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TouchBackendImpl=void 0;var o,r=n(685),i=n(7584),a=n(52355),s=n(60814),l=n(39751),c=n(47473),u=n(10531);function d(e,t){for(var n=0;n0){var o=r.moveStartSourceIds;r.actions.beginDrag(o,{clientOffset:r._mouseClientOffset,getSourceClientOffset:r.getSourceClientOffset,publishSource:!1})}}r.waitingForDelay=!1}},this.handleTopMoveStartDelay=function(e){if((0,a.eventShouldStartDrag)(e)){var t=e.type===f.touch.start?r.options.delayTouchStart:r.options.delayMouseStart;r.timeout=setTimeout(r.handleTopMoveStart.bind(r,e),t),r.waitingForDelay=!0}},this.handleTopMoveCapture=function(){r.dragOverTargetIds=[]},this.handleMove=function(e,t){r.dragOverTargetIds&&r.dragOverTargetIds.unshift(t)},this.handleTopMove=function(e){if(r.document&&!r.waitingForDelay){r.timeout&&clearTimeout(r.timeout);var t=r.moveStartSourceIds,n=r.dragOverTargetIds,o=r.options.enableHoverOutsideTarget,i=(0,s.getEventClientOffset)(e,r.lastTargetTouchFallback);if(i)if(r._isScrolling||!r.monitor.isDragging()&&(0,l.inAngleRanges)(r._mouseClientOffset.x||0,r._mouseClientOffset.y||0,i.x,i.y,r.options.scrollAngleRanges))r._isScrolling=!0;else if(!r.monitor.isDragging()&&r._mouseClientOffset.hasOwnProperty("x")&&t&&(0,l.distance)(r._mouseClientOffset.x||0,r._mouseClientOffset.y||0,i.x,i.y)>(r.options.touchSlop?r.options.touchSlop:0)&&(r.moveStartSourceIds=void 0,r.actions.beginDrag(t,{clientOffset:r._mouseClientOffset,getSourceClientOffset:r.getSourceClientOffset,publishSource:!1})),r.monitor.isDragging()){var a=r.sourceNodes.get(r.monitor.getSourceId());r.installSourceNodeRemovalObserver(a),r.actions.publishDragSource(),e.cancelable&&e.preventDefault();var c=(n||[]).map((function(e){return r.targetNodes.get(e)})).filter((function(e){return!!e})),u=r.options.getDropTargetElementsAtPoint?r.options.getDropTargetElementsAtPoint(i.x,i.y,c):r.document.elementsFromPoint(i.x,i.y),d=[];for(var p in u)if(u.hasOwnProperty(p)){var f=u[p];for(d.push(f);f;)(f=f.parentElement)&&-1===d.indexOf(f)&&d.push(f)}var h=d.filter((function(e){return c.indexOf(e)>-1})).map((function(e){return r._getDropTargetId(e)})).filter((function(e){return!!e})).filter((function(e,t,n){return n.indexOf(e)===t}));if(o)for(var m in r.targetNodes){var g=r.targetNodes.get(m);if(a&&g&&g.contains(a)&&-1===h.indexOf(m)){h.unshift(m);break}}if(r.lastDragOverTargetIds=h.reverse(),r.lastClientOffset=i,!r.updateTimer){var v=function e(){r.monitor.isDragging()&&(r.actions.hover(r.lastDragOverTargetIds,{clientOffset:r.lastClientOffset}),r.updateTimer=requestAnimationFrame(e))};r.updateTimer=requestAnimationFrame((function(){v()}))}}}},this._getDropTargetId=function(e){for(var t=r.targetNodes.keys(),n=t.next();!1===n.done;){var o=n.value;if(e===r.targetNodes.get(o))return o;n=t.next()}},this.handleTopMoveEndCapture=function(e){r._isScrolling=!1,r.lastTargetTouchFallback=void 0,(0,a.eventShouldEndDrag)(e)&&(r.monitor.isDragging()&&!r.monitor.didDrop()?(e.cancelable&&e.preventDefault(),r._mouseClientOffset={},r.uninstallSourceNodeRemovalObserver(),r.actions.drop(),r.actions.endDrag(),r.updateTimer&&cancelAnimationFrame(r.updateTimer),r.updateTimer=null):r.moveStartSourceIds=void 0)},this.handleCancelOnEscape=function(e){"Escape"===e.key&&r.monitor.isDragging()&&(r._mouseClientOffset={},r.uninstallSourceNodeRemovalObserver(),r.actions.endDrag())},this.options=new u.OptionsReader(o,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(i.ListenerType.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(i.ListenerType.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(i.ListenerType.keyboard)}var t,n,o;return t=e,(n=[{key:"profile",value:function(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}},{key:"setup",value:function(){this.document&&((0,r.invariant)(!e.isSetUp,"Cannot have two Touch backends at the same time."),e.isSetUp=!0,this.addEventListener(this.document,"start",this.getTopMoveStartHandler()),this.addEventListener(this.document,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(this.document,"move",this.handleTopMove),this.addEventListener(this.document,"move",this.handleTopMoveCapture,!0),this.addEventListener(this.document,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(this.document,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(this.document,"keydown",this.handleCancelOnEscape,!0))}},{key:"teardown",value:function(){this.document&&(e.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(this.document,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(this.document,"start",this.handleTopMoveStart),this.removeEventListener(this.document,"move",this.handleTopMoveCapture,!0),this.removeEventListener(this.document,"move",this.handleTopMove),this.removeEventListener(this.document,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(this.document,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(this.document,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}},{key:"throttle",value:function(e,t){var n=!1;return function(o){n||(e(o),n=!0,setTimeout((function(){n=!1}),t))}}},{key:"addEventListener",value:function(e,t,n,o){var r=c.supportsPassive?{capture:o,passive:!1}:o,i=this.throttle(n,50);this.listenerTypes.forEach((function(n){var o=f[n][t];o&&e.addEventListener(o,i,r)}))}},{key:"removeEventListener",value:function(e,t,n,o){var r=c.supportsPassive?{capture:o,passive:!1}:o;this.listenerTypes.forEach((function(o){var i=f[o][t];i&&e.removeEventListener(i,n,r)}))}},{key:"connectDragSource",value:function(e,t){var n=this,o=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,t),this.addEventListener(t,"start",o),function(){n.sourceNodes.delete(e),n.removeEventListener(t,"start",o)}}},{key:"connectDragPreview",value:function(e,t,n){var o=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){o.sourcePreviewNodes.delete(e),o.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDropTarget",value:function(e,t){var n=this;if(!this.document)return function(){};var o=function(o){if(n.document&&n.monitor.isDragging()){var r;switch(o.type){case f.mouse.move:r={x:o.clientX,y:o.clientY};break;case f.touch.move:r={x:o.touches[0].clientX,y:o.touches[0].clientY}}var i=null!=r?n.document.elementFromPoint(r.x,r.y):void 0,a=i&&t.contains(i);return i===t||a?n.handleMove(o,e):void 0}};return this.addEventListener(this.document.body,"move",o),this.targetNodes.set(e,t),function(){n.document&&(n.targetNodes.delete(e),n.removeEventListener(n.document.body,"move",o))}}},{key:"getTopMoveStartHandler",value:function(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}},{key:"installSourceNodeRemovalObserver",value:function(e){var t=this;this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver((function(){e&&!e.parentElement&&(t.resurrectSourceNode(),t.uninstallSourceNodeRemovalObserver())})),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}},{key:"resurrectSourceNode",value:function(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}},{key:"uninstallSourceNodeRemovalObserver",value:function(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}},{key:"document",get:function(){return this.options.document}}])&&d(t.prototype,n),o&&d(t,o),e}();t.TouchBackendImpl=h},71634:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={TouchBackend:!0};t.TouchBackend=void 0;var r=n(6901);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));t.TouchBackend=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new r.TouchBackendImpl(e,t,n)}},7584:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ListenerType=void 0,t.ListenerType=n,function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(n||(t.ListenerType=n={}))},39751:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distance=function(e,t,n,o){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(o-t),2))},t.inAngleRanges=function(e,t,n,o,r){if(!r)return!1;for(var i=180*Math.atan2(o-t,n-e)/Math.PI+180,a=0;a=r[a].start)&&(null==r[a].end||i<=r[a].end))return!0;return!1}},60814:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeClientOffset=function(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return;var n=t.getBoundingClientRect(),o=n.top;return{x:n.left,y:o}},t.getEventClientTouchOffset=r,t.getEventClientOffset=i;var o=n(52355);function r(e,t){return 1===e.targetTouches.length?i(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?i(e.touches[0]):void 0}function i(e,t){return(0,o.isTouchEvent)(e)?r(e,t):{x:e.clientX,y:e.clientY}}},52355:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eventShouldStartDrag=function(e){return void 0===e.button||e.button===o},t.eventShouldEndDrag=function(e){return void 0===e.buttons||0==(e.buttons&n)},t.isTouchEvent=function(e){return!!e.targetTouches};var n=1,o=0},47473:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportsPassive=void 0;var n=function(){var e=!1;try{addEventListener("test",(function(){}),Object.defineProperty({},"passive",{get:function(){return e=!0,!0}}))}catch(e){}return e}();t.supportsPassive=n},685:(e,t,n)=>{"use strict";function o(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;ro})},79153:(e,t,n)=>{"use strict";n.d(t,{WG:()=>Ie,c0:()=>ot,f$:()=>rt,LW:()=>lt});var o=n(67294);const r=(0,o.createContext)({dragDropManager:void 0});var i=n(85893),a=n(40230);function s(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;re&&e[t]?e[t]:n||null),e)}function u(e,t){return e.filter((e=>e!==t))}function d(e){return"object"==typeof e}function p(e,t){const n=new Map,o=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(o),t.forEach(o);const r=[];return n.forEach(((e,t)=>{1===e&&r.push(t)})),r}const f="dnd-core/INIT_COORDS",h="dnd-core/BEGIN_DRAG",m="dnd-core/PUBLISH_DRAG_SOURCE",g="dnd-core/HOVER",v="dnd-core/DROP",y="dnd-core/END_DRAG";function b(e,t){return{type:f,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const w={type:f,payload:{clientOffset:null,sourceClientOffset:null}};function S(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0};const{publishSource:o=!0,clientOffset:r,getSourceClientOffset:i}=n,a=e.getMonitor(),s=e.getRegistry();e.dispatch(b(r)),E(t,a,s);const l=D(t,a);if(null==l)return void e.dispatch(w);let c=null;if(r){if(!i)throw new Error("getSourceClientOffset must be defined");P(i),c=i(l)}e.dispatch(b(r,c));const u=s.getSource(l),d=u.beginDrag(a,l);if(null==d)return;x(d),s.pinSource(l);const p=s.getSourceType(l);return{type:h,payload:{itemType:p,item:d,sourceId:l,clientOffset:r||null,sourceClientOffset:c||null,isSourcePublic:!!o}}}}function E(e,t,n){s(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){s(n.getSource(e),"Expected sourceIds to be registered.")}))}function P(e){s("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}function x(e){s(d(e),"Item must be an object.")}function D(e,t){let n=null;for(let o=e.length-1;o>=0;o--)if(t.canDragSource(e[o])){n=e[o];break}return n}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};const n=e.getMonitor(),o=e.getRegistry();O(n);const r=I(n);r.forEach(((r,i)=>{const a=T(r,i,o,n),s={type:v,payload:{dropResult:k({},t,a)}};e.dispatch(s)}))}}function O(e){s(e.isDragging(),"Cannot call drop while not dragging."),s(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function T(e,t,n,o){const r=n.getTarget(e);let i=r?r.drop(o,e):void 0;return function(e){s(void 0===e||d(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:o.getDropResult()),i}function I(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function F(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){s(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const o=t.getSourceId();if(null!=o){n.getSource(o,!0).endDrag(t,o),n.unpinSource()}return{type:y}}}function M(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function _(e){return function(t){let{clientOffset:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};R(t);const o=t.slice(0),r=e.getMonitor(),i=e.getRegistry(),a=r.getItemType();return L(o,i,a),N(o,r,i),B(o,r,i),{type:g,payload:{targetIds:o,clientOffset:n||null}}}}function R(e){s(Array.isArray(e),"Expected targetIds to be an array.")}function N(e,t,n){s(t.isDragging(),"Cannot call hover while not dragging."),s(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t=0;o--){const r=e[o];M(t.getTargetType(r),n)||e.splice(o,1)}}function B(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}function j(e){return function(){if(e.getMonitor().isDragging())return{type:m}}}class z{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const n=function(e){return{beginDrag:S(e),publishDragSource:j(e),hover:_(e),drop:A(e),endDrag:F(e)}}(this);return Object.keys(n).reduce(((o,r)=>{const i=n[r];var a;return o[r]=(a=i,function(){for(var n=arguments.length,o=new Array(n),r=0;r{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function K(e,t){return{x:e.x-t.x,y:e.y-t.y}}const Z=[],U=[];Z.__IS_NONE__=!0,U.__IS_ALL__=!0;class V{subscribeToStateChange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{handlerIds:n}=t;s("function"==typeof e,"listener must be a function."),s(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let o=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),r=t.stateId;try{const i=r===o||r===o+1&&!function(e,t){return e!==Z&&(e===U||void 0===t||(n=e,t.filter((e=>n.indexOf(e)>-1))).length>0);var n}(t.dirtyHandlerIds,n);i||e()}finally{o=r}}))}subscribeToOffsetChange(e){s("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return s(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if(s(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return M(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if(s(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const o=this.registry.getTargetType(e),r=this.getItemType();if(r&&!M(o,r))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return n?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:o}=e;return t&&n&&o?K((i=o,{x:(r=t).x+i.x,y:r.y+i.y}),n):null;var r,i}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?K(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const G=void 0!==n.g?n.g:self,W=G.MutationObserver||G.WebKitMutationObserver;function q(e){return function(){const t=setTimeout(o,0),n=setInterval(o,50);function o(){clearTimeout(t),clearInterval(n),e()}}}const H="function"==typeof W?function(e){let t=1;const n=new W(e),o=document.createTextNode("");return n.observe(o,{characterData:!0}),function(){t=-t,o.data=t}}:q;class ${call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const Y=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.indexthis.capacity){for(let t=0,n=e.length-this.index;t{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=H(this.flush),this.requestErrorThrow=q((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},X=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new $(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(Y.registerPendingError);const J="dnd-core/ADD_SOURCE",Q="dnd-core/ADD_TARGET",ee="dnd-core/REMOVE_SOURCE",te="dnd-core/REMOVE_TARGET";function ne(e,t){t&&Array.isArray(e)?e.forEach((e=>ne(e,!1))):s("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var oe;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(oe||(oe={}));let re=0;function ie(e){const t=(re++).toString();switch(e){case oe.SOURCE:return`S${t}`;case oe.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function ae(e){switch(e[0]){case"S":return oe.SOURCE;case"T":return oe.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function se(e,t){const n=e.entries();let o=!1;do{const{done:e,value:[,r]}=n.next();if(r===t)return!0;o=!!e}while(!o);return!1}class le{addSource(e,t){ne(e),function(e){s("function"==typeof e.canDrag,"Expected canDrag to be a function."),s("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),s("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(oe.SOURCE,e,t);return this.store.dispatch(function(e){return{type:J,payload:{sourceId:e}}}(n)),n}addTarget(e,t){ne(e,!0),function(e){s("function"==typeof e.canDrop,"Expected canDrop to be a function."),s("function"==typeof e.hover,"Expected hover to be a function."),s("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(oe.TARGET,e,t);return this.store.dispatch(function(e){return{type:Q,payload:{targetId:e}}}(n)),n}containsHandler(e){return se(this.dragSources,e)||se(this.dropTargets,e)}getSource(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return ae(e)===oe.SOURCE}isTargetId(e){return ae(e)===oe.TARGET}removeSource(e){var t;s(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:ee,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},Y.enqueueTask(X.create(t))}removeTarget(e){s(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:te,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);s(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){s(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const o=ie(e);return this.types.set(o,t),e===oe.SOURCE?this.dragSources.set(o,n):e===oe.TARGET&&this.dropTargets.set(o,n),o}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const ce=(e,t)=>e===t;function ue(e,t){return!e&&!t||!(!e||!t)&&(e.x===t.x&&e.y===t.y)}function de(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ce;if(e.length!==t.length)return!1;for(let o=0;o1?arguments[1]:void 0;switch(e.type){case g:break;case J:case Q:case te:case ee:return Z;default:return U}const{targetIds:t=[],prevTargetIds:n=[]}=e.payload,o=p(t,n),r=o.length>0||!de(t,n);if(!r)return Z;const i=n[n.length-1],a=t[t.length-1];return i!==a&&(i&&o.push(i),a&&o.push(a)),o}function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function he(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:me,t=arguments.length>1?arguments[1]:void 0;const{payload:n}=t;switch(t.type){case f:case h:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case g:return ue(e.clientOffset,n.clientOffset)?e:he({},e,{clientOffset:n.clientOffset});case y:case v:return me;default:return e}}function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:be,t=arguments.length>1?arguments[1]:void 0;const{payload:n}=t;switch(t.type){case h:return ye({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case m:return ye({},e,{isSourcePublic:!0});case g:return ye({},e,{targetIds:n.targetIds});case te:return-1===e.targetIds.indexOf(n.targetId)?e:ye({},e,{targetIds:u(e.targetIds,n.targetId)});case v:return ye({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case y:return ye({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Se(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case J:case Q:return e+1;case ee:case te:return e-1;default:return e}}function Ee(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}function Pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:pe(e.dirtyHandlerIds,{type:t.type,payload:xe({},t.payload,{prevTargetIds:c(e,"dragOperation.targetIds",[])})}),dragOffset:ge(e.dragOffset,t),refCount:Se(e.refCount,t),dragOperation:we(e.dragOperation,t),stateId:Ee(e.stateId)}}function Ce(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=ke(o),i=new V(r,new le(r)),a=new z(r,i),s=e(a,t,n);return a.receiveBackend(s),a}function ke(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return(0,a.MT)(De,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function Ae(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}let Oe=0;const Te=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Ie=(0,o.memo)((function(e){var{children:t}=e,n=Ae(e,["children"]);const[a,s]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fe(),n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;const r=t;r[Te]||(r[Te]={dragDropManager:Ce(e,t,n,o)});return r[Te]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(n);return(0,o.useEffect)((()=>{if(s){const e=Fe();return++Oe,()=>{0==--Oe&&(e[Te]=null)}}}),[]),(0,i.jsx)(r.Provider,{value:a,children:t})}));function Fe(){return void 0!==n.g?n.g:window}var Me=n(64063),_e=n.n(Me);const Re="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function Ne(e,t,n){const[r,i]=(0,o.useState)((()=>t(e))),a=(0,o.useCallback)((()=>{const o=t(e);_e()(r,o)||(i(o),n&&n())}),[r,e,n]);return Re(a),[r,a]}function Le(e,t,n){return function(e,t,n){const[o,r]=Ne(e,t,n);return Re((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(r,{handlerIds:[t]})}),[e,r]),o}(t,e||(()=>({})),(()=>n.reconnect()))}function Be(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),(0,o.useMemo)((()=>"function"==typeof e?e():e),n)}function je(e){return(0,o.useMemo)((()=>e.hooks.dragSource()),[e])}function ze(e){return(0,o.useMemo)((()=>e.hooks.dragPreview()),[e])}let Ke=!1,Ze=!1;class Ue{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){s(!Ke,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Ke=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Ke=!1}}isDragging(){if(!this.sourceId)return!1;s(!Ze,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Ze=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Ze=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let Ve=!1;class Ge{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;s(!Ve,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Ve=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Ve=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function We(e,t,n,o){let r=n?n.call(o,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let a=0;a, or turn it into a drag source or a drop target itself.`)}function $e(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=function(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,o.isValidElement)(t)){const o=t;return e(o,n),o}const r=t;He(r);return Xe(r,n?t=>e(t,n):e)}}(r);t[n]=()=>e}})),t}function Ye(e,t){"function"==typeof e?e(t):e.current=t}function Xe(e,t){const n=e.ref;return s("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,o.cloneElement)(e,{ref:e=>{Ye(n,e),Ye(t,e)}}):(0,o.cloneElement)(e,{ref:t})}class Je{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!We(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!We(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=$e({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,qe(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,qe(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class Qe{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!We(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=$e({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,qe(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function et(){const{dragDropManager:e}=(0,o.useContext)(r);return s(null!=e,"Expected drag drop context"),e}class tt{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,o=this.monitor,{isDragging:r}=n;return r?r(o):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:o}=e;o&&o(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function nt(e,t,n){const r=et(),i=function(e,t,n){const r=(0,o.useMemo)((()=>new tt(e,t,n)),[t,n]);return(0,o.useEffect)((()=>{r.spec=e}),[e]),r}(e,t,n),a=function(e){return(0,o.useMemo)((()=>{const t=e.type;return s(null!=t,"spec.type must be defined"),t}),[e])}(e);Re((function(){if(null!=a){const[e,o]=function(e,t,n){const o=n.getRegistry(),r=o.addSource(e,t);return[r,()=>o.removeSource(r)]}(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}}),[r,t,n,i,a])}function ot(e,t){const n=Be(e,t);s(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=function(){const e=et();return(0,o.useMemo)((()=>new Ue(e)),[e])}(),i=function(e,t){const n=et(),r=(0,o.useMemo)((()=>new Je(n.getBackend())),[n]);return Re((()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource())),[r,e]),Re((()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview())),[r,t]),r}(n.options,n.previewOptions);return nt(n,r,i),[Le(n.collect,r,i),je(i),ze(i)]}function rt(e){const t=et().getMonitor(),[n,r]=Ne(t,e);return(0,o.useEffect)((()=>t.subscribeToOffsetChange(r))),(0,o.useEffect)((()=>t.subscribeToStateChange(r))),n}function it(e){return(0,o.useMemo)((()=>e.hooks.dropTarget()),[e])}class at{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function st(e,t,n){const r=et(),i=function(e,t){const n=(0,o.useMemo)((()=>new at(e,t)),[t]);return(0,o.useEffect)((()=>{n.spec=e}),[e]),n}(e,t),a=function(e){const{accept:t}=e;return(0,o.useMemo)((()=>(s(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);Re((function(){const[e,o]=function(e,t,n){const o=n.getRegistry(),r=o.addTarget(e,t);return[r,()=>o.removeTarget(r)]}(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}),[r,t,i,n,a.map((e=>e.toString())).join("|")])}function lt(e,t){const n=Be(e,t),r=function(){const e=et();return(0,o.useMemo)((()=>new Ge(e)),[e])}(),i=function(e){const t=et(),n=(0,o.useMemo)((()=>new Qe(t.getBackend())),[t]);return Re((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return st(n,r,i),[Le(n.collect,r,i),it(i)]}},76154:(e,t,n)=>{"use strict";n.d(t,{_H:()=>Wt,Pj:()=>_t,dp:()=>Ft,Sn:()=>je,vU:()=>Ht,XN:()=>xt,YB:()=>Dt});var o=n(70655),r=n(67294),i=n(8679),a=n.n(i);["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"].map((function(e){return e.slice(e.indexOf("-")+1)}));function s(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}var l=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;new RegExp("^"+l.source),new RegExp(l.source+"$");var c,u,d,p;!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="MISSING_LOCALE_DATA",t}(0,o.ZT)(t,e)}(Error);function f(e){return e.type===d.literal}function h(e){return e.type===d.argument}function m(e){return e.type===d.number}function g(e){return e.type===d.date}function v(e){return e.type===d.time}function y(e){return e.type===d.select}function b(e){return e.type===d.plural}function w(e){return e.type===d.pound}function S(e){return e.type===d.tag}function E(e){return!(!e||"object"!=typeof e||e.type!==p.number)}function P(e){return!(!e||"object"!=typeof e||e.type!==p.dateTime)}!function(e){e.startRange="startRange",e.shared="shared",e.endRange="endRange"}(c||(c={})),function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(u||(u={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(d||(d={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(p||(p={}));var x=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,D=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function C(e){var t={};return e.replace(D,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var k=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var A,O=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,T=/^(@+)?(\+|#+)?$/g,I=/(\*)(0+)|(#+)(0+)|(0+)/g,F=/^(0+)$/;function M(e){var t={};return e.replace(T,(function(e,n,o){return"string"!=typeof o?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===o?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof o?o.length:0)),""})),t}function _(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function R(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!F.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function N(e){var t=_(e);return t||{}}function L(e){for(var t={},n=0,r=e;n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(I,(function(e,n,o,r,i,a){if(n)t.minimumIntegerDigits=o.length;else{if(r&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(F.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(O.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(O,(function(e,n,o,r,i,a){return"*"===o?t.minimumFractionDigits=n.length:r&&"#"===r[0]?t.maximumFractionDigits=r.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""})),i.options.length&&(t=(0,o.pi)((0,o.pi)({},t),M(i.options[0])))}else if(T.test(i.stem))t=(0,o.pi)((0,o.pi)({},t),M(i.stem));else{var a=_(i.stem);a&&(t=(0,o.pi)((0,o.pi)({},t),a));var s=R(i.stem);s&&(t=(0,o.pi)((0,o.pi)({},t),s))}}return t}var B=new RegExp("^"+x.source+"*"),j=new RegExp(x.source+"*$");function z(e,t){return{start:e,end:t}}var K=!!String.prototype.startsWith,Z=!!String.fromCodePoint,U=!!Object.fromEntries,V=!!String.prototype.codePointAt,G=!!String.prototype.trimStart,W=!!String.prototype.trimEnd,q=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},H=!0;try{H="a"===(null===(A=ne("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===A?void 0:A[0])}catch(e){H=!1}var $,Y=K?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},X=Z?String.fromCodePoint:function(){for(var e=[],t=0;ti;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");o+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return o},J=U?Object.fromEntries:function(e){for(var t={},n=0,o=e;n=n)){var o,r=e.charCodeAt(t);return r<55296||r>56319||t+1===n||(o=e.charCodeAt(t+1))<56320||o>57343?r:o-56320+(r-55296<<10)+65536}},ee=G?function(e){return e.trimStart()}:function(e){return e.replace(B,"")},te=W?function(e){return e.trimEnd()}:function(e){return e.replace(j,"")};function ne(e,t){return new RegExp(e,t)}if(H){var oe=ne("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$=function(e,t){var n;return oe.lastIndex=t,null!==(n=oe.exec(e)[1])&&void 0!==n?n:""}}else $=function(e,t){for(var n=[];;){var o=Q(e,t);if(void 0===o||ae(o)||se(o))break;n.push(o),t+=o>=65536?2:1}return X.apply(void 0,n)};var re=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var o=[];!this.isEOF();){var r=this.char();if(123===r){if((i=this.parseArgument(e,n)).err)return i;o.push(i.val)}else{if(125===r&&e>0)break;if(35!==r||"plural"!==t&&"selectordinal"!==t){if(60===r&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(u.UNMATCHED_CLOSING_TAG,z(this.clonePosition(),this.clonePosition()))}if(60===r&&!this.ignoreTag&&ie(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;o.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;o.push(i.val)}}else{var a=this.clonePosition();this.bump(),o.push({type:d.pound,location:z(a,this.clonePosition())})}}}return{val:o,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:d.literal,value:"<"+o+"/>",location:z(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var r=this.parseMessage(e+1,t,!0);if(r.err)return r;var i=r.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:d.tag,value:o,children:i,location:z(n,this.clonePosition())},err:null}:this.error(u.INVALID_TAG,z(a,this.clonePosition())))}return this.error(u.UNCLOSED_TAG,z(n,this.clonePosition()))}return this.error(u.INVALID_TAG,z(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),o="";;){var r=this.tryParseQuote(t);if(r)o+=r;else{var i=this.tryParseUnquoted(e,t);if(i)o+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;o+=a}}}var s=z(n,this.clonePosition());return{val:{type:d.literal,value:o,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ie(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return X.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),X(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,z(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(u.EMPTY_ARGUMENT,z(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(u.MALFORMED_ARGUMENT,z(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,z(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:d.argument,value:o,location:z(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,z(n,this.clonePosition())):this.parseArgumentOptions(e,t,o,n);default:return this.error(u.MALFORMED_ARGUMENT,z(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=$(this.message,t),o=t+n.length;return this.bumpTo(o),{value:n,location:z(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(u.EXPECT_ARGUMENT_TYPE,z(a,l));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition();if((w=this.parseSimpleArgStyleIfPossible()).err)return w;if(0===(g=te(w.val)).length)return this.error(u.EXPECT_ARGUMENT_STYLE,z(this.clonePosition(),this.clonePosition()));c={style:g,styleLocation:z(f,this.clonePosition())}}if((S=this.tryParseArgumentClose(r)).err)return S;var h=z(r,this.clonePosition());if(c&&Y(null==c?void 0:c.style,"::",0)){var m=ee(c.style.slice(2));if("number"===s)return(w=this.parseNumberSkeletonFromString(m,c.styleLocation)).err?w:{val:{type:d.number,value:n,location:h,style:w.val},err:null};if(0===m.length)return this.error(u.EXPECT_DATE_TIME_SKELETON,h);var g={type:p.dateTime,pattern:m,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?C(m):{}};return{val:{type:"date"===s?d.date:d.time,value:n,location:h,style:g},err:null}}return{val:{type:"number"===s?d.number:"date"===s?d.date:d.time,value:n,location:h,style:null!==(i=null==c?void 0:c.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var v=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(u.EXPECT_SELECT_ARGUMENT_OPTIONS,z(v,(0,o.pi)({},v)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),b=0;if("select"!==s&&"offset"===y.value){if(!this.bumpIf(":"))return this.error(u.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,z(this.clonePosition(),this.clonePosition()));var w;if(this.bumpSpace(),(w=this.tryParseDecimalInteger(u.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,u.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return w;this.bumpSpace(),y=this.parseIdentifierIfPossible(),b=w.val}var S,E=this.tryParsePluralOrSelectOptions(e,s,t,y);if(E.err)return E;if((S=this.tryParseArgumentClose(r)).err)return S;var P=z(r,this.clonePosition());return"select"===s?{val:{type:d.select,value:n,options:J(E.val),location:P},err:null}:{val:{type:d.plural,value:n,options:J(E.val),offset:b,pluralType:"plural"===s?"cardinal":"ordinal",location:P},err:null};default:return this.error(u.INVALID_ARGUMENT_TYPE,z(a,l))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,z(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(u.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,z(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,o=e.split(k).filter((function(e){return e.length>0}));n=48&&a<=57))break;r=!0,i=10*i+(a-48),this.bump()}var s=z(o,this.clonePosition());return r?q(i*=n)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Q(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Y(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ae(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function ie(e){return e>=97&&e<=122||e>=65&&e<=90}function ae(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function se(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function le(e){e.forEach((function(e){if(delete e.location,y(e)||b(e))for(var t in e.options)delete e.options[t].location,le(e.options[t].value);else m(e)&&E(e.style)||(g(e)||v(e))&&P(e.style)?delete e.style.location:S(e)&&le(e.children)}))}function ce(e,t){void 0===t&&(t={}),t=(0,o.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new re(e,t).parse();if(n.err){var r=SyntaxError(u[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||le(n.val),n.val}function ue(e,t){var n=t&&t.cache?t.cache:ye,o=t&&t.serializer?t.serializer:me;return(t&&t.strategy?t.strategy:he)(e,{cache:n,serializer:o})}function de(e,t,n,o){var r,i=null==(r=o)||"number"==typeof r||"boolean"==typeof r?o:n(o),a=t.get(i);return void 0===a&&(a=e.call(this,o),t.set(i,a)),a}function pe(e,t,n){var o=Array.prototype.slice.call(arguments,3),r=n(o),i=t.get(r);return void 0===i&&(i=e.apply(this,o),t.set(r,i)),i}function fe(e,t,n,o,r){return n.bind(t,e,o,r)}function he(e,t){return fe(e,this,1===e.length?de:pe,t.cache.create(),t.serializer)}var me=function(){return JSON.stringify(arguments)};function ge(){this.cache=Object.create(null)}ge.prototype.has=function(e){return e in this.cache},ge.prototype.get=function(e){return this.cache[e]},ge.prototype.set=function(e,t){this.cache[e]=t};var ve,ye={create:function(){return new ge}},be={variadic:function(e,t){return fe(e,this,pe,t.cache.create(),t.serializer)},monadic:function(e,t){return fe(e,this,de,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(ve||(ve={}));var we,Se=function(e){function t(t,n,o){var r=e.call(this,t)||this;return r.code=n,r.originalMessage=o,r}return(0,o.ZT)(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),Ee=function(e){function t(t,n,o,r){return e.call(this,'Invalid values for "'+t+'": "'+n+'". Options are "'+Object.keys(o).join('", "')+'"',ve.INVALID_VALUE,r)||this}return(0,o.ZT)(t,e),t}(Se),Pe=function(e){function t(t,n,o){return e.call(this,'Value for "'+t+'" must be of type '+n,ve.INVALID_VALUE,o)||this}return(0,o.ZT)(t,e),t}(Se),xe=function(e){function t(t,n){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+n+'"',ve.MISSING_VALUE,n)||this}return(0,o.ZT)(t,e),t}(Se);function De(e){return"function"==typeof e}function Ce(e,t,n,o,r,i,a){if(1===e.length&&f(e[0]))return[{type:we.literal,value:e[0].value}];for(var s=[],l=0,c=e;l needs to exist in the component ancestry.")}var gt=(0,o.pi)((0,o.pi)({},Be),{textComponent:r.Fragment});function vt(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),o=Object.keys(t),r=n.length;if(o.length!==r)return!1;for(var i=0;i=g?a-r:a,c=Math.abs(s-g);return g!==s&&(l=setTimeout((function(){return v(s)}),1e3*c)),e}),[g,i,n]);var y=t||0,b=n;if(jt(n)&&"number"==typeof g&&i){var w=Lt(b=Nt(g));y=Math.round(g/w)}return r.createElement(zt,(0,o.pi)({value:y,unit:b},a))};Kt.displayName="FormattedRelativeTime",Kt.defaultProps={value:0,unit:"second"};var Zt=function(e){var t=Dt(),n=t.formatPlural,o=t.textComponent,i=e.value,a=e.other,s=e.children,l=e[n(i,e)]||a;return"function"==typeof s?s(l):o?r.createElement(o,null,l):l};Zt.defaultProps={type:"cardinal"},Zt.displayName="FormattedPlural";function Ut(e,t){var n=e.values,r=(0,o._T)(e,["values"]),i=t.values,a=(0,o._T)(t,["values"]);return vt(i,n)&&vt(r,a)}function Vt(e){var t=Dt(),n=t.formatMessage,o=t.textComponent,i=void 0===o?r.Fragment:o,a=e.id,s=e.description,l=e.defaultMessage,c=e.values,u=e.children,d=e.tagName,p=void 0===d?i:d,f=n({id:a,description:s,defaultMessage:l},c,{ignoreTag:e.ignoreTag});return Array.isArray(f)||(f=[f]),"function"==typeof u?u(f):p?r.createElement(p,null,r.Children.toArray(f)):r.createElement(r.Fragment,null,f)}Vt.displayName="FormattedMessage";var Gt=r.memo(Vt,Ut);Gt.displayName="MemoizedFormattedMessage";const Wt=Gt;var qt=function(e){var t=Dt(),n=e.from,i=e.to,a=e.children,s=(0,o._T)(e,["from","to","children"]),l=t.formatDateTimeRange(n,i,s);if("function"==typeof a)return a(l);var c=t.textComponent||r.Fragment;return r.createElement(c,null,l)};qt.displayName="FormattedDateTimeRange";function Ht(e){return e}At("formatDate"),At("formatTime"),At("formatNumber"),At("formatList"),At("formatDisplayName"),kt("formatDate"),kt("formatTime")},71984:(e,t,n)=>{"use strict";n.d(t,{AO:()=>b,L7:()=>S,$u:()=>D,Qk:()=>C,d:()=>E,Sk:()=>P,AL:()=>O,oH:()=>k});var o=n(84121),r=n(50974),i=(n(77552),n(91117)),a=n.n(i),s=n(35349),l=n.n(s),c=n(26656),u=n.n(c);let d;d="object"==typeof process&&"object"==typeof process.versions&&void 0!==process.versions.node||"undefined"!=typeof window&&"Deno"in window||"undefined"!=typeof self&&"Deno"in self?u():function(e){return"object"==typeof window?new Promise(((t,n)=>{const o=document.createElement("script");o.type="text/javascript",o.async=!0,o.onload=()=>t(window.PSPDFModuleInit),o.onerror=n,o.src=e;const{documentElement:i}=document;(0,r.kG)(i),i.appendChild(o)})):(self.importScripts(e),Promise.resolve(self.PSPDFModuleInit))};const p="pspdfkit-lib/";l(),a();n(37015);var f=n(96617),h=(n(55024),n(91859),n(5038));n(26248);h.x.Maui_iOS,h.x.Maui_Android,h.x.Maui_MacCatalyst,h.x.Maui_Windows;var m=n(35369),g=n(78827),v=n.n(g);const y=()=>{};class b{constructor(){(0,o.Z)(this,"_worker",new(v())),(0,o.Z)(this,"_requests",(0,m.D5)()),(0,o.Z)(this,"_nextRequestId",1),(0,o.Z)(this,"_isLoading",!0),(0,o.Z)(this,"_loadPromise",null),(0,o.Z)(this,"_initPromise",null),(0,o.Z)(this,"_hasOpenedDocument",!1),(0,o.Z)(this,"_hasLoadedCertificates",!1),(0,o.Z)(this,"_handleMessage",(e=>{const t=e.data,n=this._requests.get(t.id);(0,r.kG)(n,`No request was made for id ${t.id}.`);const{resolve:o,reject:i}=n;if(this._requests=this._requests.delete(t.id),t.error){const e=new r.p2(t.error);e.callArgs=t.callArgs,i(e)}else o(t.result)})),this._worker.onmessage=this._handleMessage}loadNativeModule(e,t){let{mainThreadOrigin:n,disableWebAssemblyStreaming:o,enableAutomaticLinkExtraction:i,overrideMemoryLimit:a}=t;return(0,r.kG)(!this._hasOpenedDocument,"cannot invoke `loadNativeModule` while an instance is still in use. Please call `recycle` first."),this._loadPromise?this._loadPromise.then((()=>{})):(this._initPromise||(this._baseCoreUrl=e,this._mainThreadOrigin=n,this._initPromise=this._sendRequest("loadNativeModule",[e,{mainThreadOrigin:n,disableWebAssemblyStreaming:o,enableAutomaticLinkExtraction:i,overrideMemoryLimit:a}]).then((e=>e)).catch((e=>{throw this._isLoading=!1,this._worker.terminate(),e}))),this._initPromise)}load(e,t,n){let{mainThreadOrigin:o,customFonts:i,productId:a}=n;return(0,r.kG)(!this._hasOpenedDocument,"cannot invoke `load` while an instance is still in use. Please call `recycle` first."),this._loadPromise||(this._loadPromise=this._sendRequest("load",[e,t,{mainThreadOrigin:o,customFonts:i,productId:a}]).then((e=>(this._isLoading=!1,e))).catch((e=>{throw this._isLoading=!1,this._worker.terminate(),e}))),this._loadPromise}version(){return this._assertLoaded(),this._sendRequest("version")}openDocument(e,t,n){return this._assertLoaded(),this._hasOpenedDocument=!0,this._sendRequest("openDocument",[e,t,n]).catch((e=>{throw this._hasOpenedDocument=!1,e}))}async getMeasurementScales(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getMeasurementScales")}async removeMeasurementScale(e){return this._sendRequest("removeMeasurementScale",[e])}async addMeasurementScale(e){return await this._sendRequest("addMeasurementScale",[e])}async getAnnotationsByScale(e){return await this._sendRequest("getAnnotationsByScale",[e])}async openDocumentAt(){throw new Error("Should never be called")}async getAllPageInfos(e){return this._assertLoaded(),this._sendRequest("getAllPageInfos",[e])}async enablePDFJavaScriptSupport(){return this._assertLoaded(),this._sendRequest("enablePDFJavaScriptSupport")}async runPDFFormattingScripts(e,t){return this._assertLoaded(),this._sendRequest("runPDFFormattingScripts",[e,t])}async getAvailableFontFaces(e){return this._assertLoaded(),this._sendRequest("getAvailableFontFaces",[e])}getBookmarks(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getBookmarks")}getFormJSON(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getFormJSON")}evalFormValuesActions(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("evalFormValuesActions",[e])}evalScript(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("evalScript",[e,t])}setFormJSONUpdateBatchMode(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setFormJSONUpdateBatchMode",[e])}getFormValues(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getFormValues")}closeDocument(){return this._assertLoaded(),this._hasOpenedDocument=!1,this._sendRequest("closeDocument")}renderTile(e,t,n,o,r,i,a,s){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("renderTile",[e,t,n,o,r,i,a,s])}renderAnnotation(e,t,n,o,r,i){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("renderAnnotation",[e,t,n,o,r,i])}renderPageAnnotations(e,t,n,o,r){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("renderPageAnnotations",[e,t,n,o,r])}renderDetachedAnnotation(e,t,n,o,r){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("renderDetachedAnnotation",[e,t,n,o,r])}onKeystrokeEvent(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("onKeystrokeEvent",[e])}getAttachment(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getAttachment",[e])}textForPageIndex(e){this._assertLoaded(),this._assertDocumentOpen();return this._sendRequest("textForPageIndex",[e])}textContentTreeForPageIndex(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("textContentTreeForPageIndex",[e])}annotationsForPageIndex(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("annotationsForPageIndex",[e])}createAnnotation(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("createAnnotation",[e,t])}updateAnnotation(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("updateAnnotation",[e])}deleteAnnotation(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("deleteAnnotation",[e])}createFormField(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("createFormField",[e,t])}updateFormField(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("updateFormField",[e,t])}deleteFormField(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("deleteFormField",[e])}setFormFieldValue(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setFormFieldValue",[e])}deleteFormFieldValue(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("deleteFormFieldValue",[e])}createBookmark(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("createBookmark",[e])}updateBookmark(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("updateBookmark",[e])}deleteBookmark(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("deleteBookmark",[e])}getTextFromRects(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getTextFromRects",[e,t])}search(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:f.S.TEXT;return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("search",[e,t,n,o,r])}getSecondaryMeasurementUnit(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getSecondaryMeasurementUnit",[])}setSecondaryMeasurementUnit(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setSecondaryMeasurementUnit",[e])}getMeasurementSnappingPoints(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getMeasurementSnappingPoints",[e])}parseXFDF(e){return this._sendRequest("parseXFDF",[e])}getEmbeddedFilesList(){return this._sendRequest("getEmbeddedFilesList")}exportFile(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"pdf",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0;return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("exportFile",[e,t,n,o,r,i,a])}importXFDF(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("importXFDF",[e,t])}exportXFDF(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("exportXFDF",[])}importInstantJSON(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("importInstantJSON",[e])}exportInstantJSON(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("exportInstantJSON",[e])}getDocumentOutline(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getDocumentOutline")}getPageGlyphs(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getPageGlyphs",[e])}applyOperations(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("applyOperations",[e,t])}reloadDocument(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("reloadDocument")}exportPDFWithOperations(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("exportPDFWithOperations",[e,t])}loadCertificates(e){return this._assertLoaded(),this._assertDocumentOpen(),this._hasLoadedCertificates=Boolean(e.length),this._sendRequest("loadCertificates",[e]).catch((e=>{throw this._hasLoadedCertificates=!1,e}))}getSignaturesInfo(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getSignaturesInfo",[])}getComments(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getComments",[])}applyComments(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("applyComments",[e])}prepareSign(e,t,n,o,r,i,a){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("prepareSign",[e,t,n,o,r,i,a])}sign(e,t,n,o,r,i){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("sign",[e,t,n,o,r,i])}restoreToOriginalState(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("restoreToOriginalState")}applyRedactions(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("applyRedactions",[])}readFormJSONObjects(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("readFormJSONObjects")}clearAPStreamCache(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("clearAPStreamCache")}setComparisonDocument(e,t){return this._assertLoaded(),t||this._assertDocumentOpen(),this._sendRequest("setComparisonDocument",[e,t])}openComparisonDocument(e){return this._assertLoaded(),this._hasOpenedDocument=!0,this._sendRequest("openComparisonDocument",[e]).catch((e=>{throw this._hasOpenedDocument=!1,e}))}documentCompareAndOpen(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("documentCompareAndOpen",[e])}persistOpenDocument(e){return this._assertLoaded(),e||this._assertDocumentOpen(),this._sendRequest("persistOpenDocument",[e])}cleanupDocumentComparison(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("cleanupDocumentComparison")}contentEditorEnter(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorEnter",[])}contentEditorExit(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorExit",[])}contentEditorGetTextBlocks(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorGetTextBlocks",[e])}contentEditorDetectParagraphs(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorDetectParagraphs",[e])}contentEditorRenderTextBlock(e,t,n){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorRenderTextBlock",[e,t,n])}contentEditorSetTextBlockCursor(e,t,n,o){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorSetTextBlockCursor",[e,t,n,o])}contentEditorMoveTextBlockCursor(e,t,n,o){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorMoveTextBlockCursor",[e,t,n,o])}contentEditorInsertTextBlockString(e,t,n,o){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorInsertTextBlockString",[e,t,n,o])}contentEditorInsertTextBlockContentRef(e,t,n,o){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorInsertTextBlockContentRef",[e,t,n,o])}contentEditorCreateTextBlock(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorCreateTextBlock",[e])}contentEditorLayoutTextBlock(e,t,n,o){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorLayoutTextBlock",[e,t,n,o])}contentEditorDeleteTextBlockRange(e,t,n){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorDeleteTextBlockRange",[e,t,n])}contentEditorDeleteTextBlockString(e,t,n){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorDeleteTextBlockString",[e,t,n])}contentEditorSetTextBlockSelection(e,t,n){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorSetTextBlockSelection",[e,t,n])}contentEditorSetTextBlockSelectionRange(e,t,n,o,r){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorSetTextBlockSelectionRange",[e,t,n,o,r])}contentEditorTextBlockUndo(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorTextBlockUndo",[e,t])}contentEditorTextBlockRedo(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorTextBlockRedo",[e,t])}contentEditorTextBlockRestore(e,t,n){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorTextBlockRestore",[e,t,n])}contentEditorTextBlockApplyFormat(e,t,n,o){return this._sendRequest("contentEditorTextBlockApplyFormat",[e,t,n,o])}contentEditorGetAvailableFaces(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorGetAvailableFaces",[])}contentEditorSave(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorSave",[e])}recycle(){this._hasLoadedCertificates&&this.loadCertificates([]),this._hasOpenedDocument&&this.closeDocument(),this._isLoading||(this._requests=this._requests.map((()=>({resolve:y,reject:y}))))}destroy(){this._loadPromise=null,this._worker.terminate()}_assertLoaded(){if(this._isLoading)throw new r.p2("CoreClient not yet initialized")}_assertDocumentOpen(){if(!this._hasOpenedDocument)throw new r.p2("This method can not be called since there is no open document. Have you run PSPDFKit.unload()?")}_sendRequest(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return new Promise(((n,o)=>{const r=this._assignId(),i=[...t].filter((e=>e instanceof ArrayBuffer));this._worker.postMessage({id:r,action:e,args:t},i),this._requests=this._requests.set(r,{resolve:n,reject:o})}))}_assignId(){const e=this._nextRequestId;return this._nextRequestId=this._nextRequestId+1,e}}n(17375),n(97528);var w=n(56664);(0,w.Z)();class S{constructor(e){(0,o.Z)(this,"size",1),(0,o.Z)(this,"_freeObjects",[]),this._constructor=e}checkOut(){let e;return e=this._freeObjects.length>0?this._freeObjects.shift():new this._constructor,{object:e,checkIn:()=>{this._freeObjects.length>=this.size?e.destroy():(e.recycle(),this._freeObjects.push(e))}}}}function E(){return"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron/")>=0}function P(){const e=A()[atob("cmVxdWlyZQ==")];return E()&&"undefined"!=typeof window&&window&&window.process&&window.process.type&&"function"==typeof e}function x(){let e;try{e=k("@electron/remote")}catch(t){if("MODULE_NOT_FOUND"!==t.code)throw t;try{e=k("electron").remote}catch(e){(0,r.vU)(`Failed to load the remote module package. PSPDFKit for Web needs access to it in order to work in Electron.\n Please read our Electron guides to help you set it up: https://pspdfkit.com/getting-started/electron/\n ${t.message}\n ${e.message}`)}}return e}function D(){if(!E())return null;if(!P())return null;try{const e=k("fs"),t=x().app.getAppPath()+"/package.json";return JSON.parse(e.readFileSync(t).toString()).name}catch(e){throw new Error(`There was an error parsing this project's \`package.json\`: ${e.message}`)}}function C(){if(!E())return null;try{return`file://${x().app.getAppPath()}/node_modules/pspdfkit/dist/`}catch(e){return null}}function k(e){return(0,A()[atob("cmVxdWlyZQ==")])(e)}function A(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g}function O(e,t){return"string"==typeof e&&(null==t?void 0:t.startsWith("Maui_"))}},46797:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(84121);class r{constructor(e){(0,o.Z)(this,"_subscriptions",new Set),this._state=e}getState(){return this._state}setState(e){this._state="function"==typeof e?e(this._state):e;for(const e of this._subscriptions)e(this._state)}subscribe(e){return this._subscriptions.add(e),()=>this.unsubscribe(e)}unsubscribe(e){this._subscriptions.delete(e)}}},75920:(e,t,n)=>{"use strict";n.d(t,{XV:()=>r,ZK:()=>a,a1:()=>o,cM:()=>i,um:()=>l,vU:()=>s});n(56664);function o(e){a(e)}function r(e,t,n){if(n)return o(`The API ${e} has been deprecated and will be removed in the next major release. Please use ${t} instead. Please go to https://pspdfkit.com/api/web/ for more informations`);o(`The function ${e} was deprecated and will be removed in future version. Please use ${t} instead.`)}function i(e){console.log(e)}function a(e){console.warn(e)}function s(e){console.error(e)}function l(){console.info(...arguments)}},87350:(e,t,n)=>{"use strict";n.d(t,{GO:()=>r,cO:()=>o});const o=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");function r(e){return Array.prototype.filter.call(e.querySelectorAll(o),(e=>!(e.inert||e.hasAttribute("inert")||"-1"===e.getAttribute("tabindex")||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))))}},50974:(e,t,n)=>{"use strict";n.d(t,{p2:()=>r,Rz:()=>s,GB:()=>p,Qo:()=>b,$O:()=>d,FE:()=>m,Tr:()=>i,XV:()=>h.XV,a1:()=>h.a1,vU:()=>h.vU,um:()=>h.um,kG:()=>a,PO:()=>l,AK:()=>c,cM:()=>h.cM,lH:()=>w,wp:()=>f,ZK:()=>h.ZK});const o=function e(t){let n;return n=t instanceof Error?t:new Error(t),Object.setPrototypeOf(n,e.prototype),n};o.prototype=Object.create(Error.prototype,{name:{value:"PSPDFKitError",enumerable:!1}});const r=o;function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t=>new o(""===e?t:`${e}: ${t}`)}function a(e,t){if(!e)throw new r(`Assertion failed: ${t||"Condition not met"}\n\nFor further assistance, please go to: https://pspdfkit.com/support/request`)}const s=e=>{throw new Error("")};function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){const t=new MessageChannel;try{t.port1.postMessage(e)}catch(e){return!1}return!0}const u={keys:[]};function d(e,t){var n;let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u;if(o={keys:null!=(null===(n=o)||void 0===n?void 0:n.keys)?o.keys:u.keys},Object.is(e,t))return[];let r=o.keys||[];if(0===r.length){r=[...new Set(Object.keys(e).concat(Object.keys(t)))]}const i=r.filter((n=>e[n]!==t[n]));return i.map((n=>({key:n,previous:e[n],current:t[n]})))}function p(e){return e.map((e=>{let{key:t,previous:n,current:o}=e;return`- ${t} was previously ${n}, but is now ${o}`})).join("\n")}function f(e){alert(e)}var h=n(75920);n(59271),n(87350),n(30667),n(46797);function m(){for(var e=arguments.length,t=new Array(e),n=0;nv(e,t)),t[0]);return o||null}const g=new WeakMap;function v(e,t){if(e&&t){const n=g.get(e)||new WeakMap;g.set(e,n);const o=n.get(t)||(n=>{y(e,n),y(t,n)});return n.set(t,o),o}return e||t}function y(e,t){"function"==typeof e?e(t):e.current=t}function b(e,t){if(t.caretRangeFromPoint)return t.caretRangeFromPoint(e.x,e.y);if("caretPositionFromPoint"in t&&"function"==typeof t.caretPositionFromPoint){const n=t.caretPositionFromPoint(e.x,e.y),o=t.createRange();return o.setStart(n.offsetNode,n.offset),o.setEnd(n.offsetNode,n.offset),o}}function w(e){return null!=e}},59271:(e,t,n)=>{"use strict";function o(e){return"true"===e.contentEditable||"INPUT"===e.tagName||"TEXTAREA"===e.tagName}n.d(t,{c:()=>o})},30667:(e,t,n)=>{"use strict";n.d(t,{AV:()=>v,Cp:()=>o,E$:()=>l,MS:()=>p,OC:()=>w,P9:()=>f,b8:()=>i,bs:()=>b,cS:()=>g,d2:()=>y,gs:()=>m,gx:()=>s,iT:()=>a,j4:()=>r,rw:()=>h,tW:()=>u,wG:()=>d,zz:()=>c});const o=48,r=70,i=71,a=80,s=90,l=13,c=27,u=32,d=34,p=33,f=37,h=38,m=39,g=40,v=187,y=189,b=8,w=9},25915:(e,t,n)=>{"use strict";n.d(t,{HJ:()=>$t,zx:()=>p,hE:()=>f,qe:()=>ht,M5:()=>vt,bK:()=>zn,FE:()=>Kt,ub:()=>mr,N9:()=>hr,nB:()=>gr,D:()=>er,Hp:()=>lr,F0:()=>Gt,w6:()=>Vt,z:()=>kn,QO:()=>gn,u_:()=>dn,Ex:()=>bn,Ee:()=>Nn,xv:()=>Cn,oi:()=>Fn,TX:()=>nn,ri:()=>o});var o={};n.r(o),n.d(o,{applyStyle:()=>qo,cssStringToObject:()=>xo,deserialize:()=>Eo,escapeHtml:()=>bo,getComputedStyleAll:()=>Zo,getInnerHTML:()=>Io,getLastNCharacters:()=>_o,getSelectedNodesColor:()=>Uo,getStyleString:()=>Do,getText:()=>Ao,getWrapperTags:()=>To,isAtStartOfWordOrText:()=>Ro,isMarkActive:()=>Co,isRangeSelected:()=>Mo,isSelectionUnderlined:()=>Ho,parseHTML:()=>Oo,prepareHTML:()=>Fo,serialize:()=>Po,setStyleOrToggleFormat:()=>jo,toHex:()=>zo,toggleMark:()=>ko,unwrapNode:()=>Wo,wrapNode:()=>Go});var r=n(22122),i=n(17375),a=n(67294),s=n(9327),l=n.n(s),c=n(38996),u=n.n(c);const d=["className","disabled","inverted","primary","danger","type"],p=e=>{const{className:t,disabled:n,inverted:o,primary:s,danger:c,type:p}=e,f=(0,i.Z)(e,d),h=l()({[u().general]:!0,[u().default]:!s,[u().primary]:s,[u().danger]:c,[u().disabled]:n,[u().inverted]:!n&&o},t);return a.createElement("button",(0,r.Z)({},f,{className:h,disabled:n,type:p||"button"}))},f=e=>{const{className:t,children:n,align:o,style:r}=e;let i=null;return a.createElement("div",{className:l()(u().group,"start"===o&&u().groupAlignStart,"end"===o&&u().groupAlignEnd,t),style:r},a.Children.map(n,(e=>e?i?(i=e,a.createElement(a.Fragment,null,a.createElement("div",{className:u().groupSpacer}),e)):(i=e,e):null)))};function h(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function m(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function g(e){m(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function v(e,t){m(2,arguments);var n=g(e).getTime(),o=h(t);return new Date(n+o)}function y(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}Math.pow(10,8);function b(e){m(1,arguments);var t=g(e);return!isNaN(t)}var w={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function S(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,o=e.formats[n]||e.formats[e.defaultWidth];return o}}var E={date:S({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:S({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:S({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var P={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function x(e){return function(t,n){var o,r=n||{};if("formatting"===(r.context?String(r.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=r.width?String(r.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,l=r.width?String(r.width):e.defaultWidth;o=e.values[l]||e.values[s]}return o[e.argumentCallback?e.argumentCallback(t):t]}}function D(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var a,s=i[0],l=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?k(l,(function(e){return e.test(s)})):C(l,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(c):c,a=n.valueCallback?n.valueCallback(a):a;var u=t.slice(s.length);return{value:a,rest:u}}}function C(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function k(e,t){for(var n=0;n0?"in "+o:o+" ago":o},formatLong:E,formatRelative:function(e,t,n,o){return P[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:x({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:x({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:x({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:x({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:x({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(A={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(A.matchPattern);if(!n)return null;var o=n[0],r=e.match(A.parsePattern);if(!r)return null;var i=A.valueCallback?A.valueCallback(r[0]):r[0];i=t.valueCallback?t.valueCallback(i):i;var a=e.slice(o.length);return{value:i,rest:a}}),era:D({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:D({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:D({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:D({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:D({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function T(e,t){m(2,arguments);var n=h(t);return v(e,-n)}function I(e,t){for(var n=e<0?"-":"",o=Math.abs(e).toString();o.length0?n:1-n;return I("yy"===t?o%100:o,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):I(n+1,2)},d:function(e,t){return I(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return I(e.getUTCHours()%12||12,t.length)},H:function(e,t){return I(e.getUTCHours(),t.length)},m:function(e,t){return I(e.getUTCMinutes(),t.length)},s:function(e,t){return I(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,o=e.getUTCMilliseconds();return I(Math.floor(o*Math.pow(10,n-3)),t.length)}};const M=F;var _=864e5;function R(e){m(1,arguments);var t=1,n=g(e),o=n.getUTCDay(),r=(o=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function L(e){m(1,arguments);var t=N(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var o=R(n);return o}var B=6048e5;function j(e){m(1,arguments);var t=g(e),n=R(t).getTime()-L(t).getTime();return Math.round(n/B)+1}function z(e,t){m(1,arguments);var n=t||{},o=n.locale,r=o&&o.options&&o.options.weekStartsOn,i=null==r?0:h(r),a=null==n.weekStartsOn?i:h(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=g(e),l=s.getUTCDay(),c=(l=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(o+1,0,l),c.setUTCHours(0,0,0,0);var u=z(c,t),d=new Date(0);d.setUTCFullYear(o,0,l),d.setUTCHours(0,0,0,0);var p=z(d,t);return n.getTime()>=u.getTime()?o+1:n.getTime()>=p.getTime()?o:o-1}function Z(e,t){m(1,arguments);var n=t||{},o=n.locale,r=o&&o.options&&o.options.firstWeekContainsDate,i=null==r?1:h(r),a=null==n.firstWeekContainsDate?i:h(n.firstWeekContainsDate),s=K(e,t),l=new Date(0);l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0);var c=z(l,t);return c}var U=6048e5;function V(e,t){m(1,arguments);var n=g(e),o=z(n,t).getTime()-Z(n,t).getTime();return Math.round(o/U)+1}var G="midnight",W="noon",q="morning",H="afternoon",$="evening",Y="night",X={G:function(e,t,n){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var o=e.getUTCFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return M.y(e,t)},Y:function(e,t,n,o){var r=K(e,o),i=r>0?r:1-r;return"YY"===t?I(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):I(i,t.length)},R:function(e,t){return I(N(e),t.length)},u:function(e,t){return I(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return I(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return I(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){var o=e.getUTCMonth();switch(t){case"M":case"MM":return M.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return I(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var r=V(e,o);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):I(r,t.length)},I:function(e,t,n){var o=j(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):I(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):M.d(e,t)},D:function(e,t,n){var o=function(e){m(1,arguments);var t=g(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=t.getTime(),r=n-o;return Math.floor(r/_)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):I(o,t.length)},E:function(e,t,n){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return I(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return I(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var o=e.getUTCDay(),r=0===o?7:o;switch(t){case"i":return String(r);case"ii":return I(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var o,r=e.getUTCHours();switch(o=12===r?W:0===r?G:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){var o,r=e.getUTCHours();switch(o=r>=17?$:r>=12?H:r>=4?q:Y,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var o=e.getUTCHours()%12;return 0===o&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return M.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):M.H(e,t)},K:function(e,t,n){var o=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(o,{unit:"hour"}):I(o,t.length)},k:function(e,t,n){var o=e.getUTCHours();return 0===o&&(o=24),"ko"===t?n.ordinalNumber(o,{unit:"hour"}):I(o,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):M.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):M.s(e,t)},S:function(e,t){return M.S(e,t)},X:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Q(r);case"XXXX":case"XX":return ee(r);default:return ee(r,":")}},x:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"x":return Q(r);case"xxxx":case"xx":return ee(r);default:return ee(r,":")}},O:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+J(r,":");default:return"GMT"+ee(r,":")}},z:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+J(r,":");default:return"GMT"+ee(r,":")}},t:function(e,t,n,o){var r=o._originalDate||e;return I(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,o){return I((o._originalDate||e).getTime(),t.length)}};function J(e,t){var n=e>0?"-":"+",o=Math.abs(e),r=Math.floor(o/60),i=o%60;if(0===i)return n+String(r);var a=t||"";return n+String(r)+a+I(i,2)}function Q(e,t){return e%60==0?(e>0?"-":"+")+I(Math.abs(e)/60,2):ee(e,t)}function ee(e,t){var n=t||"",o=e>0?"-":"+",r=Math.abs(e);return o+I(Math.floor(r/60),2)+n+I(r%60,2)}const te=X;function ne(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function oe(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var re={p:oe,P:function(e,t){var n,o=e.match(/(P+)(p+)?/),r=o[1],i=o[2];if(!i)return ne(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",ne(r,t)).replace("{{time}}",oe(i,t))}};const ie=re;var ae=["D","DD"],se=["YY","YYYY"];function le(e){return-1!==ae.indexOf(e)}function ce(e){return-1!==se.indexOf(e)}function ue(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var de=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,pe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fe=/^'([^]*?)'?$/,he=/''/g,me=/[a-zA-Z]/;function ge(e,t,n){m(2,arguments);var o=String(t),r=n||{},i=r.locale||O,a=i.options&&i.options.firstWeekContainsDate,s=null==a?1:h(a),l=null==r.firstWeekContainsDate?s:h(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=i.options&&i.options.weekStartsOn,u=null==c?0:h(c),d=null==r.weekStartsOn?u:h(r.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!i.localize)throw new RangeError("locale must contain localize property");if(!i.formatLong)throw new RangeError("locale must contain formatLong property");var p=g(e);if(!b(p))throw new RangeError("Invalid time value");var f=y(p),v=T(p,f),w={firstWeekContainsDate:l,weekStartsOn:d,locale:i,_originalDate:p},S=o.match(pe).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,ie[t])(e,i.formatLong,w):e})).join("").match(de).map((function(n){if("''"===n)return"'";var o=n[0];if("'"===o)return ve(n);var a=te[o];if(a)return!r.useAdditionalWeekYearTokens&&ce(n)&&ue(n,t,e),!r.useAdditionalDayOfYearTokens&&le(n)&&ue(n,t,e),a(v,n,i.localize,w);if(o.match(me))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return n})).join("");return S}function ve(e){return e.match(fe)[1].replace(he,"'")}function ye(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function be(e,t,n){m(2,arguments);var o=n||{},r=o.locale,i=r&&r.options&&r.options.weekStartsOn,a=null==i?0:h(i),s=null==o.weekStartsOn?a:h(o.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=g(e),c=h(t),u=l.getUTCDay(),d=c%7,p=(d+7)%7,f=(p0,r=o?t:1-t;if(r<=50)n=e||100;else{var i=r+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return o?n:1-n}var Xe=[31,28,31,30,31,30,31,31,30,31,30,31],Je=[31,29,31,30,31,30,31,31,30,31,30,31];function Qe(e){return e%400==0||e%4==0&&e%100!=0}var et={G:{priority:140,parse:function(e,t,n,o){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,o){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,o){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return qe(4,e,r);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:r});default:return qe(t.length,e,r)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,o){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var i=Ye(n.year,r);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,o){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return qe(4,e,r);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:r});default:return qe(t.length,e,r)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,o){var r=K(e,o);if(n.isTwoDigitYear){var i=Ye(n.year,r);return e.setUTCFullYear(i,0,o.firstWeekContainsDate),e.setUTCHours(0,0,0,0),z(e,o)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,o.firstWeekContainsDate),e.setUTCHours(0,0,0,0),z(e,o)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,o){return He("R"===t?4:t.length,e)},set:function(e,t,n,o){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),R(r)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,o){return He("u"===t?4:t.length,e)},set:function(e,t,n,o){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,o){switch(t){case"Q":case"QQ":return qe(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,o){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,o){switch(t){case"q":case"qq":return qe(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,o){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,o){var r=function(e){return e-1};switch(t){case"M":return Ve(we,e,r);case"MM":return qe(2,e,r);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:r});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,o){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,o){var r=function(e){return e-1};switch(t){case"L":return Ve(we,e,r);case"LL":return qe(2,e,r);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:r});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,o){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,o){switch(t){case"w":return Ve(Pe,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return qe(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,o){return z(function(e,t,n){m(2,arguments);var o=g(e),r=h(t),i=V(o,n)-r;return o.setUTCDate(o.getUTCDate()-7*i),o}(e,n,o),o)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,o){switch(t){case"I":return Ve(Pe,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return qe(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,o){return R(function(e,t){m(2,arguments);var n=g(e),o=h(t),r=j(n)-o;return n.setUTCDate(n.getUTCDate()-7*r),n}(e,n,o),o)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,n,o){switch(t){case"d":return Ve(Se,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return qe(t.length,e)}},validate:function(e,t,n){var o=Qe(e.getUTCFullYear()),r=e.getUTCMonth();return o?t>=1&&t<=Je[r]:t>=1&&t<=Xe[r]},set:function(e,t,n,o){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,n,o){switch(t){case"D":case"DD":return Ve(Ee,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return qe(t.length,e)}},validate:function(e,t,n){return Qe(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,o){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,o){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,o){return(e=be(e,n,o)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,o){var r=function(e){var t=7*Math.floor((e-1)/7);return(e+o.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return qe(t.length,e,r);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:r});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,o){return(e=be(e,n,o)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,o){var r=function(e){var t=7*Math.floor((e-1)/7);return(e+o.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return qe(t.length,e,r);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:r});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,o){return(e=be(e,n,o)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,o){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return qe(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:r})||n.day(e,{width:"short",context:"formatting",valueCallback:r})||n.day(e,{width:"narrow",context:"formatting",valueCallback:r});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:r});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:r})||n.day(e,{width:"narrow",context:"formatting",valueCallback:r});default:return n.day(e,{width:"wide",context:"formatting",valueCallback:r})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:r})||n.day(e,{width:"short",context:"formatting",valueCallback:r})||n.day(e,{width:"narrow",context:"formatting",valueCallback:r})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,o){return e=function(e,t){m(2,arguments);var n=h(t);n%7==0&&(n-=7);var o=1,r=g(e),i=r.getUTCDay(),a=((n%7+7)%7=1&&t<=12},set:function(e,t,n,o){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,o){switch(t){case"H":return Ve(xe,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return qe(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,o){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,o){switch(t){case"K":return Ve(Ce,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return qe(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,o){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,o){switch(t){case"k":return Ve(De,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return qe(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,o){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,o){switch(t){case"m":return Ve(Ae,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return qe(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,o){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,o){switch(t){case"s":return Ve(Oe,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return qe(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,o){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,o){return qe(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,o){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,o){switch(t){case"X":return Ge(je,e);case"XX":return Ge(ze,e);case"XXXX":return Ge(Ke,e);case"XXXXX":return Ge(Ue,e);default:return Ge(Ze,e)}},set:function(e,t,n,o){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,o){switch(t){case"x":return Ge(je,e);case"xx":return Ge(ze,e);case"xxxx":return Ge(Ke,e);case"xxxxx":return Ge(Ue,e);default:return Ge(Ze,e)}},set:function(e,t,n,o){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,o){return We(e)},set:function(e,t,n,o){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,o){return We(e)},set:function(e,t,n,o){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}};const tt=et;var nt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ot=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rt=/^'([^]*?)'?$/,it=/''/g,at=/\S/,st=/[a-zA-Z]/;function lt(e,t,n,o){m(3,arguments);var r=String(e),i=String(t),a=o||{},s=a.locale||O;if(!s.match)throw new RangeError("locale must contain match property");var l=s.options&&s.options.firstWeekContainsDate,c=null==l?1:h(l),u=null==a.firstWeekContainsDate?c:h(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=s.options&&s.options.weekStartsOn,p=null==d?0:h(d),f=null==a.weekStartsOn?p:h(a.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===i)return""===r?g(n):new Date(NaN);var v,b={firstWeekContainsDate:u,weekStartsOn:f,locale:s},w=[{priority:10,subPriority:-1,set:ct,index:0}],S=i.match(ot).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,ie[t])(e,s.formatLong,b):e})).join("").match(nt),E=[];for(v=0;v0&&at.test(r))return new Date(NaN);var M=w.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return w.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),_=g(n);if(isNaN(_))return new Date(NaN);var R=T(_,y(_)),N={};for(v=0;v{const n=a.useRef(null),o=a.useRef(null),[r,i]=a.useState(!1);a.useImperativeHandle(t,(()=>n.current));const s=e.format.split("").map((e=>{switch(e){case"m":return"M";case"M":return"m"}return e})).join(""),c=ft.i7||ft.TL||"date"===e.type,u=t=>{const r=n.current,a=o.current;if(!r)return;const s=r.ownerDocument.activeElement;s!==r&&s!==a&&(e.onBlur&&e.onBlur(t),i(!1))},d=t=>{!r&&e.onFocus&&(e.onFocus(t),i(!0)),i(!0)},p=()=>{switch(e.type){case"date":return"yyyy-MM-dd";case"time":return"HH:mm";case"datetime-local":return"yyyy-MM-dd'T'HH:mm"}};return a.createElement("div",{className:pt().wrapper},a.createElement("input",{"data-testid":"input",ref:n,name:e.name,value:e.value,style:e.style,className:l()(pt().input,e.className,"PSPDFKit-Annotation-Widget-Date-Input"),type:"text",disabled:e.disabled,maxLength:e.maxLength,placeholder:e.format,required:e.required,onChange:t=>{const r=n.current,i=o.current;if(r){const n=lt(r.value,s,new Date);!0===b(n)&&i&&(i.value=ge(n,p())),e.onChange&&e.onChange(t)}},onBlur:u,onFocus:d}),c?a.createElement("div",{style:{opacity:r?1:0},className:pt().pickerWidget},a.createElement("input",{"data-testid":"picker",ref:o,className:pt().picker,type:e.type,onChange:t=>{const r=n.current,i=o.current;if(r&&i){var a;const n=lt(i.value,p(),new Date);b(n)&&i&&(r.value=ge(n,s)),null===(a=e.onChange)||void 0===a||a.call(e,t)}},onBlur:u,onFocus:d})):null)}));ht.defaultProps={};var mt=n(81585),gt=n.n(mt);function vt(e){let{children:t,className:n}=e;return a.createElement("div",{className:l()(gt().center,n)},t)}var yt=n(84121),bt=n(79153),wt=n(71634),St=n(35369),Et=n(12459),Pt=n.n(Et);const xt=e=>{const{onDragOver:t}=e,[,n]=(0,bt.c0)({type:Dt,item:()=>(e.onDragStart&&e.onDragStart(e.index),{id:e.index,type:Dt}),canDrag:()=>e.draggable||!1,end:()=>{e.onDragEnd&&e.onDragEnd()}}),[,o]=(0,bt.LW)({accept:Dt,hover:(n,o)=>{t&&t(e.index,o.getClientOffset())}});return a.createElement("div",{"data-id":e.index,ref:o},a.createElement("div",{ref:n,className:Pt().item},a.createElement("div",{className:Pt().content},e.children)))},Dt="ITEM",Ct=e=>{const{renderItem:t}=e,{item:n,isDragging:o,currentOffset:r}=(0,bt.f$)((e=>({item:e.getItem(),currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging()}))),i=a.useMemo((()=>o?a.createElement(xt,{index:n.id},t(n.id)):null),[o,n,t]);if(!o||!r)return null;const{x:s,y:l}=r;return a.createElement("div",{className:Pt().dragPreview},a.createElement("div",{style:{transform:`translate(${s}px, ${l}px)`}},i))};var kt=n(34855);function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ot(e){for(var t=1;t{const{scrollY:t=0,onViewportChange:n,initialForcedScrollY:o}=e,[r,i]=a.useState(null),[s,l]=a.useState({height:0,width:0,scrollY:0}),c=a.useRef(null),u=a.useRef(null),d=a.useRef(0);a.useLayoutEffect((()=>{r&&(r.scrollTop=t)}),[r,t]),a.useLayoutEffect((()=>{r&&"number"==typeof o&&(r.scrollTop=o)}),[r,o]);const{currentOffset:p,isDragging:f}=(0,bt.f$)((e=>({isDragging:e.isDragging(),currentOffset:e.getClientOffset()}))),h=a.useCallback((()=>{const{clientWidth:e=0,clientHeight:t=0}=r||{},n=e||0,o=t||0;n===s.width&&o===s.height||l(Ot(Ot({},s),{},{width:n||0,height:o||0}))}),[r,s]),m=a.useCallback((e=>{const t=e.currentTarget.scrollTop,n=Ot(Ot({},s),{},{scrollY:t});s.scrollY!==t&&l(n)}),[s]);a.useLayoutEffect((()=>{n(s)}),[n,s]),a.useEffect((()=>{c.current=null==r?void 0:r.getBoundingClientRect(),h()}),[r,h]);const g=a.useCallback((()=>{clearInterval(u.current),u.current=null}),[]),v=a.useCallback((e=>{g(),r&&d.current!==e&&(g(),u.current=setInterval((()=>{r.scrollBy(0,e)}),Rt),d.current=e)}),[r,g]);a.useEffect((()=>{if(!c.current||!p)return void g();const{height:e}=c.current,t=p.ye-It,o=p.y,r=e-p.y,i=Ft+(It-(t?o:r))/It*(Mt-Ft);!u.current||t||n?t?v(-_t*i):n&&v(_t*i):g()}),[p,v,g]);const y={position:"relative",width:"100%",height:"100%",overflowX:"hidden",overflowY:f&&(0,ft.b1)()?"hidden":"scroll"},b=a.useRef(null);return a.useEffect((()=>{var e;b.current&&(null===(e=b.current)||void 0===e||e.focus({preventScroll:!0}))})),a.createElement("div",{"data-testid":"scroll",ref:e=>i(e),style:y,onScroll:m},a.createElement(kt.Z,{onResize:h}),r?e.renderContent(s,b):null)},It=50,Ft=.5,Mt=1,_t=10,Rt=1;var Nt=n(50974);class Lt{constructor(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;(0,yt.Z)(this,"itemWidth",0),(0,yt.Z)(this,"itemHeight",0),(0,yt.Z)(this,"itemPaddingLeft",0),(0,yt.Z)(this,"itemPaddingRight",0),(0,yt.Z)(this,"totalItems",0),(0,Nt.kG)(e>0,"You must provide an item width of greater than 0"),(0,Nt.kG)(t>0,"You must provide an item height of greater than 0"),(0,Nt.kG)(o>=0,"Padding must be greater than 0"),(0,Nt.kG)(r>=0,"Padding must be greater than 0"),this.itemWidth=e,this.itemHeight=t,this.totalItems=n,this.itemPaddingLeft=o,this.itemPaddingRight=r}contentHeight(e){const t=this.itemsPerRow(e);return Math.ceil(this.totalItems/t)*this.itemHeight}itemsPerRow(e){return Math.max(Math.floor(e.width/this.itemWidth),1)}layoutAttributesForItemsIn(e){const{scrollY:t,height:n}=e,o=this.itemsPerRow(e),r=Math.ceil(this.totalItems/o),i=t?Math.floor(t/this.itemHeight):0,a=Math.ceil(n/this.itemHeight),s=Math.max(i-Bt,0),l=Math.min(i+a+Bt,r),c=[];for(let t=s*o;t{var t;const{draggingEnabled:n=!1,totalItems:o,itemHeight:r,itemWidth:i,itemPaddingLeft:s,itemPaddingRight:l,selectedItemIndexes:c=(0,St.l4)(),canInsert:u,renderDragPreview:d,renderInsertionCursor:p,focusedItemIndex:f}=e,[h,m]=a.useState(null),g=a.useRef(null),v=a.useRef(null),y=a.useRef(null),[b,w]=a.useState((0,St.l4)([])),S=new Lt(i,r,o,s,l),[E,P]=a.useState(0);a.useLayoutEffect((()=>{0!==c.size&&(e=>{const t=v.current;if(0===e.size)return;if(!t)return;const n=t.height+t.scrollY,o=e=>{const o=e.top+e.height/2;return o>t.scrollY&&oe.has(t.index)));if(r.filter(o).length>0)return;let i=r.filter((e=>!o(e)));0===i.length&&(i=e.map((e=>S.layoutAttributeForItemAt(t,e))).toArray()),i=i.sort(((e,t)=>e.index-t.index));const a=i[0];v.current=zt(zt({},t),{},{scrollY:a.top}),P(a.top)})(c)}),[c]);const x=e=>{e.preventDefault()},D=e=>c.has(e)||!1,C=()=>{g.current=null,y.current=null,w((0,St.l4)([]))},k=a.useCallback(((e,t)=>{const n=g.current;if(h&&t)if(null===n||n.index!==e){const t=h.querySelector(`[data-id="${e}"]`),n=null==t?void 0:t.getBoundingClientRect();if(!n)return void(g.current=null);g.current={index:e,bounds:n}}else{const r=n.bounds.left+n.bounds.width/2,i=t.x{const t=D(e);w(t?(0,St.l4)(c):(0,St.l4)([e]))},O=()=>{const t=y.current;if(null!==t){const n=Array.from(b);if(b.has(t))return void T();e.onDragEnd&&e.onDragEnd(n,t)}C()},T=()=>{requestAnimationFrame((()=>C()))},I=t=>{if(d)return d(t,Array.from(b));{const n={selected:!1,dragging:!1};return e.renderItem(t,n)}},F=e=>{v.current=e},M=(t,n)=>{if(!p)return null;const o=null!==y.current?y.current:e.insertionIndex;if(null==o)return;const r=t.layoutAttributeForInsertionCursor(n,g.current?g.current.index:null,o),i={position:"absolute",width:r.width,height:r.height,left:r.left,top:r.top,zIndex:100},s=(e=>!u||u(b.isEmpty()&&c?Array.from(c):Array.from(b),e))(r.index);return a.createElement("div",{style:i},p(s,!!r.atRowEnd))},_=(t,s)=>{const l=S.layoutAttributesForItemsIn(t);let c=!1;if(l.length>0){const e=l[0].index,t=l[l.length-1].index;c=null!=f&&(ft)}const u=l.map(((t,u)=>{const{index:d}=t,p={position:"absolute",left:t.left,top:t.top,width:t.width,height:t.height},f=u===Math.floor(l.length/2)&&c;return a.createElement("div",{key:e.itemKey?e.itemKey(d):d,style:p},((t,s)=>{const l={selected:D(t),dragging:b.has(t),itemRef:s},c=!(tm(e)},(()=>{var n;if(!h)return null;const o={enableMouseEvents:!0,delayTouchStart:500,touchSlop:10,ignoreContextMenu:!0,ownerDocument:h.ownerDocument},r={width:e.width,height:e.height};return a.createElement(bt.WG,{backend:wt.TouchBackend,options:o},a.createElement("div",{className:Pt().container,onContextMenu:x,style:r},t||(t=a.createElement(Ct,{renderItem:I})),a.createElement(Tt,{onViewportChange:F,renderContent:_,scrollY:(null===(n=v.current)||void 0===n?void 0:n.scrollY)||0,initialForcedScrollY:E})))})())};var Zt=n(68402),Ut=n.n(Zt);const Vt=e=>{const{children:t,onPress:n,expanded:o,ariaControls:r,className:i,headingRef:s}=e,c=e.headingTag;return a.createElement(c,{className:l()("PSPDFKit-Expando-Control",Ut().control,i),ref:s},a.createElement("button",{className:Ut().controlButton,"aria-expanded":r?o:void 0,"aria-controls":r,onClick:n,autoFocus:e.autoFocus},t))};Vt.defaultProps={headingTag:"div"};const Gt=e=>{const{children:t,expanded:n,id:o}=e;return a.createElement("div",{id:o,className:l()("PSPDFKit-Expando-Content",!n&&Ut().contentHidden,!n&&"PSPDFKit-Expando-Content-Hidden")},t)};var Wt=n(59271),qt=n(30667),Ht=n(87350);class $t extends a.Component{constructor(){super(...arguments),(0,yt.Z)(this,"rootRef",a.createRef()),(0,yt.Z)(this,"activeItem",a.createRef()),(0,yt.Z)(this,"state",{activeItemIndex:0,focusReason:"initial"}),(0,yt.Z)(this,"didSetActiveItem",!1),(0,yt.Z)(this,"onActiveItemIndexChange",(()=>{this.props.onActiveItemIndexChange&&this.props.onActiveItemIndexChange(this.state.activeItemIndex)})),(0,yt.Z)(this,"onKeyDown",(e=>{var t;const{ignoreOnKeyPress:n}=this.props;if("function"==typeof n?n(e):e.altKey||e.shiftKey)return;const o=null===(t=e.currentTarget.ownerDocument.defaultView)||void 0===t?void 0:t.HTMLElement;if(!(e.target instanceof o)||(0,Wt.c)(e.target))return;const{activeItemIndex:r}=this.state,i=e.ctrlKey||e.metaKey;if(e.which===this.props.prevKey&&r>0&&this.setState({activeItemIndex:i?0:r-1,focusReason:"keyboard"},this.onActiveItemIndexChange),e.which===this.props.nextKey){const e=this.props.items.length-1;r{const t=e.target!==e.currentTarget;let n=this.state.activeItemIndex;const o=e.currentTarget,r=o&&o.parentNode&&o.parentNode.children?Array.prototype.findIndex.call(o.parentNode.children,(e=>e===o)):-1;-1!==r&&(n=r),this.setState({activeItemIndex:n,focusReason:t?"focus_within":"focus"},this.onActiveItemIndexChange)}))}setActiveItem(e){this.didSetActiveItem=!0,this.setState({activeItemIndex:e,focusReason:"focus"})}getActiveItem(){return this.state.activeItemIndex}componentDidMount(){Yt(this.rootRef.current,this.activeItem.current),this.onActiveItemIndexChange()}componentDidUpdate(e,t){(this.didSetActiveItem||e.items.length!==this.props.items.length||t.activeItemIndex!==this.state.activeItemIndex)&&(this.didSetActiveItem=!1,Yt(this.rootRef.current,this.activeItem.current),"focus_within"!==this.state.focusReason&&function(e){if(!e)return;const t=e.children,n=t[0],o=n.matches||n.msMatchesSelector;1===t.length&&o.call(n,Ht.cO)?(e.removeAttribute("tabindex"),n.focus()):e.focus()}(this.activeItem.current))}render(){if("function"==typeof this.props.children){let e=!1,t=!1;const n=this.props.children({activeItemIndex:this.state.activeItemIndex,getContainerProps:()=>(e=!0,{onKeyDown:this.onKeyDown,ref:this.rootRef}),getItemProps:e=>{let{item:n}=e;(0,Nt.kG)(n,"getItemProps must be called with `{ item }`");const o=this.props.items.findIndex((e=>e===n));(0,Nt.kG)(o>-1,"getItemPropsL: Cannot find `item` in `props.items`");const r=o===this.state.activeItemIndex;return t=!0,{tabIndex:r?0:-1,ref:r?this.activeItem:void 0,onFocus:this.onFocus,onClick:e=>{e.target.closest(Ht.cO)||this.setState({activeItemIndex:o,focusReason:"focus"},this.onActiveItemIndexChange)}}}});return(0,Nt.kG)(n,"Did not return valid children"),(0,Nt.kG)(e,"Did not call getContainerProps"),(0,Nt.kG)(t,"Did not call getItemProps"),n}return a.createElement("div",{onKeyDown:this.onKeyDown,ref:this.rootRef,"data-testid":"accessible-collection"},this.props.items.map(((e,t)=>{const n=t===this.state.activeItemIndex;return a.createElement("div",{key:t,tabIndex:n?0:-1,ref:n?this.activeItem:void 0,onFocus:this.onFocus,onClick:e=>{e.target.closest(Ht.cO)||this.setState({activeItemIndex:t,focusReason:"focus"},this.onActiveItemIndexChange)}},e)})))}}function Yt(e,t){if(!e||!t)return;(0,Ht.GO)(e).forEach((t=>{t.parentNode!==e&&t.setAttribute("tabindex","-1")})),Array.prototype.forEach.call(t.querySelectorAll('[tabindex="-1"]'),(e=>{e.removeAttribute("tabindex")}))}(0,yt.Z)($t,"defaultProps",{prevKey:qt.rw,nextKey:qt.cS,ignoreOnKeyPress:null});var Xt=n(67665),Jt=n(19575),Qt=n(21246),en=n.n(Qt);const tn=["className","tag","announce"],nn=a.forwardRef((function(e,t){const{className:n,tag:o,announce:s}=e,c=(0,i.Z)(e,tn),u=s?{role:"status","aria-live":s}:{};return a.createElement(o||"p",(0,r.Z)({},c,{ref:t,className:l()(en().visuallyHidden,n)},u))}));class on extends a.Component{constructor(){super(...arguments),(0,yt.Z)(this,"_handleRef",(e=>{this._el=e,this._document=e?e.ownerDocument:null})),(0,yt.Z)(this,"_handleKeyDown",(e=>{const t=this._el,n=this._document;if(e.keyCode===qt.OC&&t&&n){const o=(0,Ht.GO)(t),r=o.indexOf(n.activeElement);e.shiftKey&&0===r?(o[o.length-1].focus(),e.preventDefault()):e.shiftKey||r!==o.length-1||(o[0].focus(),e.preventDefault())}}))}componentDidMount(){this._document&&this._document.addEventListener("keydown",this._handleKeyDown),document.addEventListener("keydown",this._handleKeyDown);const e=this._el;if(e&&!e.querySelector('[autofocus]:not([autofocus="false"])')){const t=(0,Ht.GO)(e)[0]||e.querySelector('[tabindex="-1"]');t&&t.focus()}}componentWillUnmount(){this._document&&this._document.removeEventListener("keydown",this._handleKeyDown),document.removeEventListener("keydown",this._handleKeyDown)}render(){return a.createElement("div",{ref:this._handleRef},this.props.children)}}var rn=n(48721),an=n.n(rn);const sn=["children","className","spaced"],ln=["className","spaced"],cn=[];function un(){const e=cn.length-1;cn.forEach(((t,n)=>{t.setState({isOnTop:n==e})}))}class dn extends a.Component{constructor(){super(...arguments),(0,yt.Z)(this,"descriptionId",this.props.accessibilityDescription?`modal-description-${Jt.Base64.encode(this.props.accessibilityDescription).substr(0,10)}`:null),(0,yt.Z)(this,"restoreOnCloseElement",this.props.restoreOnCloseElement),(0,yt.Z)(this,"useBorderRadius",!1!==this.props.useBorderRadius),(0,yt.Z)(this,"state",{isShaking:!1,isOnTop:!0}),(0,yt.Z)(this,"_preventPropagation",(e=>{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()})),(0,yt.Z)(this,"_handleClick",(()=>{this.props.onDismiss&&this.props.onDismiss()})),(0,yt.Z)(this,"onMount",(e=>{0===cn.length&&e.setAttribute("aria-hidden","true"),cn.push(this),un()})),(0,yt.Z)(this,"onUnmount",(e=>{cn.pop(),0===cn.length&&e.removeAttribute("aria-hidden"),un(),this.restoreOnCloseElement&&this.restoreOnCloseElement.focus()})),(0,yt.Z)(this,"_handleKeyDown",(e=>{e.keyCode!==qt.E$&&e.keyCode!==qt.tW||e.nativeEvent.stopImmediatePropagation(),this.props.onEscape&&e.keyCode===qt.zz&&(this.props.onEscape(),e.preventDefault(),e.target.ownerDocument.addEventListener("keyup",this._preventPropagation,{capture:!0,once:!0})),this.props.onEnter&&e.keyCode===qt.E$&&(this.props.onEnter(),e.preventDefault())})),(0,yt.Z)(this,"_handleAnimationEnd",(()=>{this.setState({isShaking:!1})}))}shake(){this.setState({isShaking:!0})}componentDidMount(){this.props.innerRef&&(this.props.innerRef.current=this)}componentWillUnmount(){this.props.innerRef&&(this.props.innerRef.current=null)}render(){var e,t;const{isShaking:n,isOnTop:o}=this.state,{className:r,backdropFixed:i}=this.props,s=o?on:a.Fragment,c={position:i?"fixed":"absolute"};return a.createElement(Xt.m,{onMount:this.onMount,onUnmount:this.onUnmount},a.createElement("div",{"aria-hidden":!o},a.createElement(s,null,a.createElement("div",{className:l()(an().backdropContainer,"PSPDFKit-Modal-Backdrop"),style:c,onClick:this._handleClick,onKeyDown:o?this._handleKeyDown:void 0},a.createElement("div",{role:this.props.role,"aria-label":this.props.accessibilityLabel,"aria-describedby":this.props.accessibilityDescription&&null!==(e=this.descriptionId)&&void 0!==e?e:void 0,className:l()(an().dialog,r,"PSPDFKit-Modal-Dialog",{[an().shaking]:n,[an().squareCorners]:!this.useBorderRadius}),onTouchEndCapture:this._preventPropagation,onMouseUpCapture:this._preventPropagation,onPointerUpCapture:this._preventPropagation,onKeyUpCapture:this._preventPropagation,onAnimationEnd:this._handleAnimationEnd,tabIndex:-1},this.props.children,this.props.accessibilityDescription&&a.createElement(nn,{id:null!==(t=this.descriptionId)&&void 0!==t?t:void 0},this.props.accessibilityDescription))))))}}function pn(e){const{children:t,className:n,spaced:o}=e,s=(0,i.Z)(e,sn),c=l()(an().section,o&&an().sectionSpaced,o&&"PSPDFKit-Modal-Section-Spaced",n,"PSPDFKit-Modal-Section");return a.createElement("div",(0,r.Z)({},s,{className:c}),t)}function fn(e){const{className:t,spaced:n}=e,o=(0,i.Z)(e,ln),s=l()(an().divider,n&&an().dividerSpaced,n&&"PSPDFKit-Modal-Divider-Spaced",t,"PSPDFKit-Modal-Divider");return a.createElement("div",(0,r.Z)({},o,{className:s}))}(0,yt.Z)(dn,"Section",pn),(0,yt.Z)(dn,"Divider",fn),(0,yt.Z)(dn,"defaultProps",{role:"dialog"}),pn.displayName="Modal.Section",pn.defaultProps={spaced:!1},fn.displayName="Modal.Divider",fn.defaultProps={spaced:!0};var hn=n(45265),mn=n.n(hn);const gn=a.forwardRef((function(e,t){const n=a.useRef(null);return a.useImperativeHandle(t,(()=>n.current)),a.useEffect((()=>{const e=n.current;return null==e||e.showModal(),()=>{null==e||e.close()}}),[]),a.createElement("dialog",{ref:n,className:l()("PSPDFKit-Modal-Backdrop",mn().wrapper,e.wrapperClass),onClose:e.onDismiss},a.createElement("form",{method:"dialog",className:e.formClass},e.children))}));var vn=n(41707),yn=n.n(vn);const bn=e=>{let{message:t,progress:n,style:o}=e;if(n){const e=Math.floor(100*n);return a.createElement("div",{className:l()("PSPDFKit-Progress",yn().progress),style:o,role:"progressbar","aria-valuenow":e,"aria-label":`${e}% complete`},a.createElement("div",{className:yn().progressBar},a.createElement("div",{className:yn().progressFill,style:{width:`${e}%`}})),t?a.createElement("div",{className:yn().progressText},t):null)}return a.createElement("div",{className:l()("PSPDFKit-Progress",yn().loader),style:o,role:"progressbar","aria-valuenow":0,"aria-label":"0% complete"},a.createElement("div",{className:yn().loaderDot}),a.createElement("div",{className:yn().loaderDot}),a.createElement("div",{className:yn().loaderDot}))};var wn=n(38104),Sn=n.n(wn);const En=["className","children"];function Pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function xn(e){for(var t=1;tt=>{const{className:n,children:o}=t,r=xn(xn({},(0,i.Z)(t,En)),{},{className:l()(Sn()[e],n)});return a.createElement(e,r,o)},Cn=Dn("p");Cn.displayName="Text";const kn=Dn("h1");kn.displayName="HeaderText";var An=n(60044),On=n.n(An);const Tn=["secureTextEntry","error","success","selectTextOnFocus","onBlur","onFocus"],In=(e,t)=>{const n=a.useRef(null);a.useImperativeHandle(t,(()=>n.current)),a.useEffect((()=>{const{selectTextOnFocus:t,autoFocus:n}=e;t&&n&&o()}),[]);const o=a.useCallback((()=>{const{selectTextOnFocus:t}=e,{current:o}=n;o&&(t&&o.select(),f&&f())}),[]),{secureTextEntry:s,error:c,success:u,selectTextOnFocus:d,onBlur:p,onFocus:f}=e,h=(0,i.Z)(e,Tn),m=l()({[On().default]:!c&&!u,[On().error]:c,[On().success]:u},e.className),g=s?"password":"text";return a.createElement("input",(0,r.Z)({},h,{className:m,type:g,ref:n,onFocus:o,onBlur:p}))},Fn=a.memo(a.forwardRef(In));var Mn=n(13540),_n=n(15967),Rn=n.n(_n);function Nn(e){let{inputName:t,label:n,options:o,onChange:r,selectedOption:i,labelClassNamePrefix:s,disabled:c=!1,showLabel:u,isButton:d,wrapperClasses:p}=e;return a.createElement("div",{className:l()(Rn().radioGroup,{[p]:p}),"aria-label":n,role:"radiogroup"},o.map((e=>{let{value:n,label:o,iconPath:p}=e;const f=n===i,h=l()(Rn().iconLabel,{[Rn().iconLabelIsActive]:f,[`${s}-${n}`]:!0,[`${s}-active`]:f,[Rn().focusedLabelFocusVisible]:f,[Rn().selectedLabel]:f&&d,[Rn().radioGroupLabel]:!f&&d,[Rn().fullWidthRadio]:d});return a.createElement("label",{key:n,className:h},a.createElement(nn,{tag:"span"},o),a.createElement("input",{type:"radio",name:t,value:n,checked:f,onChange:e=>r(e.target.value),"aria-label":o,disabled:c}),d&&f&&a.createElement(Mn.Z,{src:p,className:l()(Rn().icon,{[Rn().radioGroupIcon]:d})}),!d&&a.createElement(Mn.Z,{src:p,className:Rn().icon}),u&&a.createElement("span",null,o))})))}var Ln=n(98932),Bn=n.n(Ln);let jn=0;function zn(e){const t=a.useRef(jn++),{label:n,accessibilityLabel:o,onUpdate:r}=e,i=a.useCallback((e=>{r(e.target.checked)}),[r]);const s=l()(Bn().label,e.styles.label);return a.createElement("div",{className:e.styles.controlWrapper},a.createElement("div",{className:e.styles.control},a.createElement("div",{className:l()("PSPDFKit-Checkbox-Input",e.className,Bn().root)},a.createElement("input",{className:l()(Bn().input,e.styles.input),type:"checkbox",id:`${Bn().label}-${t.current}`,onChange:i,checked:e.value}),e.label?a.createElement("label",{htmlFor:`${Bn().label}-${t.current}`,className:s},n):o?a.createElement("label",{htmlFor:`${Bn().label}-${t.current}`,className:s},a.createElement(nn,{tag:"span"},o)):null)))}var Kn=n(74305),Zn=n(42308),Un=n(35583),Vn={isHistory:e=>(0,Un.P)(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||Zn.OX.isOperationList(e.redos[0].operations))&&(0===e.undos.length||Zn.OX.isOperationList(e.undos[0].operations))},Gn=(new WeakMap,new WeakMap),Wn=new WeakMap,qn={isHistoryEditor:e=>Vn.isHistory(e.history)&&Zn.ML.isEditor(e),isMerging:e=>Wn.get(e),isSaving:e=>Gn.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=qn.isMerging(e);Wn.set(e,!1),t(),Wn.set(e,n)},withoutSaving(e,t){var n=qn.isSaving(e);Gn.set(e,!1),t(),Gn.set(e,n)}},Hn=(e,t)=>!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Zn.y$.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Zn.y$.equals(e.path,t.path)),$n=(e,t)=>"set_selection"!==e.type,Yn=n(18953),Xn=n.n(Yn);function Jn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qn=new WeakMap,eo=new WeakMap;class to{}class no extends to{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:n}=e;this.offset=t,this.path=n}}class oo extends to{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:n}=e;this.offset=t,this.path=n}}var ro=e=>eo.get(e);function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ao(e){for(var t=1;t{var t=[],n=e=>{if(null!=e){var o=t[t.length-1];if("string"==typeof e){var r={text:e};so.add(r),e=r}if(Zn.xv.isText(e)){var i=e;Zn.xv.isText(o)&&so.has(o)&&so.has(i)&&Zn.xv.equals(o,i,{loose:!0})?o.text+=i.text:t.push(i)}else if(Zn.W_.isElement(e))t.push(e);else{if(!(e instanceof to))throw new Error("Unexpected hyperscript child object: ".concat(e));var a=t[t.length-1];Zn.xv.isText(a)||(n(""),a=t[t.length-1]),e instanceof no?((e,t)=>{var n=e.text.length;Qn.set(e,[n,t])})(a,e):e instanceof oo&&((e,t)=>{var n=e.text.length;eo.set(e,[n,t])})(a,e)}}};for(var o of e.flat(1/0))n(o);return t};function co(e,t,n){return ao(ao({},t),{},{children:lo(n)})}function uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function po(e){for(var t=1;t{var o,r=[];for(var i of n)Zn.e6.isRange(i)?o=i:r.push(i);var a,s=lo(r),l={},c=fo();for(var[u,d]of(Object.assign(c,t),c.children=s,Zn.NB.texts(c))){var p=(a=u,Qn.get(a)),f=ro(u);if(null!=p){var[h]=p;l.anchor={path:d,offset:h}}if(null!=f){var[m]=f;l.focus={path:d,offset:m}}}if(l.anchor&&!l.focus)throw new Error("Slate hyperscript ranges must have both `` and `` defined if one is defined, but you only defined ``. For collapsed selections, use `` instead.");if(!l.anchor&&l.focus)throw new Error("Slate hyperscript ranges must have both `` and `` defined if one is defined, but you only defined ``. For collapsed selections, use `` instead.");return null!=o?c.selection=o:Zn.e6.isRange(l)&&(c.selection=l),c}),element:co,focus:function(e,t,n){return new oo(t)},fragment:function(e,t,n){return lo(n)},selection:function(e,t,n){var o=n.find((e=>e instanceof no)),r=n.find((e=>e instanceof oo));if(!o||null==o.offset||null==o.path)throw new Error("The hyperscript tag must have an tag as a child with `path` and `offset` attributes defined.");if(!r||null==r.offset||null==r.path)throw new Error("The hyperscript tag must have a tag as a child with `path` and `offset` attributes defined.");return ao({anchor:{offset:o.offset,path:o.path},focus:{offset:r.offset,path:r.path}},t)},text:function(e,t,n){var o=lo(n);if(o.length>1)throw new Error("The hyperscript tag must only contain a single node's worth of children.");var[r]=o;if(null==r&&(r={text:""}),!Zn.xv.isText(r))throw new Error("\n The hyperscript tag can only contain text content as children.");return so.delete(r),Object.assign(r,t),r}},mo=e=>function(t,n){for(var o=arguments.length,r=new Array(o>2?o-2:0),i=2;i"));null==n&&(n={}),(0,Un.P)(n)||(r=[n].concat(r),n={});var s=a(t,n,r=r.filter((e=>Boolean(e))).flat());return s},go=e=>{var t={},n=function(n){var o=e[n];if("object"!=typeof o)throw new Error("Properties specified for a hyperscript shorthand should be an object, but for the custom element <".concat(n,"> tag you passed: ").concat(o));t[n]=(e,t,n)=>co(0,po(po({},o),t),n)};for(var o in e)n(o);return t},vo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{elements:t={}}=e,n=go(t),o=po(po(po({},ho),n),e.creators),r=mo(o);return r}();const yo=/["'&<>]/;function bo(e){const t=""+e,n=yo.exec(t);if(!n)return t;let o,r="",i=0,a=0;for(i=n.index;iEo(e,n))).flat();switch(0===o.length&&o.push(vo("text",n,"")),e.nodeName.toUpperCase()){case"BR":return vo("text",t,"\n");case"SPAN":{const t=function(e){return"SPAN"===e.nodeName.toUpperCase()&&e.getAttribute("data-user-id")}(e);if(t)return vo("element",{type:"mention",userId:t,displayName:Ao(Po(o))},o);if(function(e){return"SPAN"===e.nodeName.toUpperCase()&&e.getAttribute("style")}(e)&&!function(e){return"underline"===e.style.textDecoration&&!e.style.color&&!e.style.backgroundColor}(e)){const t=xo(e.getAttribute("style")||""),n=t.color?zo(t.color):void 0,r=t["background-color"]?zo(t["background-color"]):void 0;return vo("element",{type:"style",fontColor:n,backgroundColor:r},o)}return o}case"P":return vo("element",{type:"paragraph"},o);case"A":return vo("element",{type:"link",url:e.getAttribute("href")},o);default:return o}}function Po(e){function t(e){var t;if(function(e){return Zn.xv.isText(e)}(e)){let t=bo(e.text);return e.bold&&(t=`${t}`),e.italic&&(t=`${t}`),e.underline&&(t=`${t}`),t}const n=null===(t=e.children)||void 0===t?void 0:t.map((e=>Po(e))).join("");switch(e.type){case"paragraph":return`

${n}

`;case"link":return`${n}`;case"mention":return`${e.displayName}`;case"style":{const t=Do(e);return`${n}`}default:return n}}return Array.isArray(e)?e.map((e=>t(e))).join(""):t(e)}function xo(e){return e?((e=e.trim()).endsWith(";")&&(e=e.slice(0,-1)),e.split(";").map((e=>e.split(":").map((e=>e.trim())))).reduce(((e,t)=>{let[n,o]=t;return So(So({},e),{},{[n]:o})}),{})):{}}function Do(e){let t="";return e.fontColor&&(t+=`color: ${e.fontColor};`),e.backgroundColor&&(t+=`background-color: ${e.backgroundColor};`),t}function Co(e,t){const n=Zn.ML.marks(e);return!!n&&!0===n[t]}const ko=(e,t)=>{Co(e,t)?Zn.ML.removeMark(e,t):Zn.ML.addMark(e,t,!0)};function Ao(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||""}function Oo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(new DOMParser).parseFromString(e,"text/html")}function To(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=(e||"").match(/(<[^<>]+>)/g)||[],n={pre:[],post:[]};return t.forEach((e=>{if(e.startsWith("");e.startsWith(""))})),n}function Io(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Oo(e).body.innerHTML}function Fo(e){let{changeUnderlineCSStoHTML:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Oo(e).body;if(0===n.childNodes.length){const e=document.createElement("p");return n.appendChild(e),n}const o=document.createElement("body");let r=[];return[...n.childNodes].forEach(((e,t)=>{const i=n.childNodes.length-1===t;if("P"===e.nodeName.toUpperCase()||i){if(i&&"P"!==e.nodeName.toUpperCase()&&r.push(e),r.length){const e=document.createElement("p");r.forEach((t=>{e.appendChild(t)})),o.appendChild(e),r=[]}"P"===e.nodeName.toUpperCase()&&o.appendChild(e)}else r.push(e)})),o.childNodes.forEach((e=>{var n,o,r,i,a,s;(null===(n=(o=e).querySelectorAll)||void 0===n||n.call(o,"p").forEach((e=>{const t=document.createElement("span");e.style.cssText&&t.setAttribute("style",e.style.cssText),t.innerHTML=e.innerHTML,e.replaceWith(t)})),null===(r=(i=e).querySelectorAll)||void 0===r||r.call(i,"div").forEach((e=>{const t=document.createElement("span");e.style.cssText&&t.setAttribute("style",e.style.cssText),t.innerHTML=e.innerHTML,e.replaceWith(t)})),t)&&(null===(a=(s=e).querySelectorAll)||void 0===a||a.call(s,"span").forEach((e=>{if("underline"===e.style.textDecoration){const t=document.createElement("u");t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML,e.style.textDecoration="",e.style.cssText||(e.removeAttribute("style"),e.attributes.length||e.replaceWith(...e.childNodes))}})))})),o}function Mo(e){if(!e)return!1;const{selection:t}=e;return!!t&&Zn.e6.isExpanded(t)&&""!==Zn.ML.string(e,t)}function _o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const{selection:n}=e;if(n){const[o]=Zn.e6.edges(n),r=Zn.ML.before(e,o,{distance:t,unit:"character"}),i=r&&Zn.ML.range(e,r,o);return{text:i&&Zn.ML.string(e,i),range:i}}return null}function Ro(e){return e&&(" "===e.text||!e.range)}function No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Lo(e){for(var t=1;t{let[,t]=e;return void 0!==t})).map((e=>{let[t,n]=e;return`${t}: ${n}`})).join("; ").concat(";")}function jo(e,t,n){const o=Fo(e,{changeUnderlineCSStoHTML:!1});function r(e){var t;const n=null===(t=e.closest("p"))||void 0===t?void 0:t.textContent;return e.textContent===n&&!e.closest("span[style]")}return o.querySelectorAll("p").forEach((e=>{const{isBold:o,isUnderlined:i,isItalic:a}=Ko(e);if("fontColor"===t){let t=!1;if(e.querySelectorAll("span[style]").forEach((e=>{r(e)?(t=!0,e.setAttribute("style",Bo(e,"fontColor",n))):(e.style.color="",""===e.style.cssText&&e.replaceWith(...e.childNodes))})),!t){const t=document.createElement("span");t.setAttribute("style",Bo(t,"fontColor",n)),t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML}}else if("underline"===t){const t=e.querySelectorAll("span[style]");if(i)t.forEach((e=>{e.style.textDecoration=""}));else{let n=!1;if(t.forEach((e=>{r(e)&&(n=!0,e.style.textDecoration="underline")})),!n){const t=document.createElement("span");t.style.textDecoration="underline",t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML}}t.forEach((e=>{r(e)?e.style.textDecoration=i?"":"underline":(e.style.textDecoration="",""===e.style.cssText&&e.replaceWith(...e.childNodes))}))}else if("bold"===t){const t=e.querySelectorAll("b");if(o)t.forEach((e=>{e.replaceWith(...e.childNodes)}));else{const t=document.createElement("b");t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML}}else if("italic"===t){const t=e.querySelectorAll("i, em");if(a)t.forEach((e=>{e.replaceWith(...e.childNodes)}));else{const t=document.createElement("i");t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML}}})),o.innerHTML}function zo(e){if(!e)return"";if(e.startsWith("rgb")){return`#${e.replace("rgb(","").replace(")","").split(",").map((e=>parseInt(e,10))).map((e=>e.toString(16))).map((e=>1===e.length?`0${e}`:e)).join("")}`}return e.startsWith("#")&&9===e.length?`#${e.substr(3,6)}`:7===e.length&&e.startsWith("#")?e:"#000000"}function Ko(e){const t=e.querySelectorAll("span[style]"),n=Array.from(t).filter((t=>t.textContent===e.textContent)),o=n.filter((e=>e.style.color)),r=n.filter((e=>e.style.backgroundColor)),i=n.filter((e=>"underline"===e.style.textDecoration)),a=e.querySelectorAll("b"),s=Array.from(a).filter((t=>t.textContent===e.textContent)),l=e.querySelectorAll("i, em"),c=Array.from(l).filter((t=>t.textContent===e.textContent));return{fontColor:o.length>0?zo(o[o.length-1].style.color):null,backgroundColor:r.length>0?zo(r[r.length-1].style.backgroundColor):null,isUnderlined:i.length>0,isBold:s.length>0,isItalic:c.length>0}}function Zo(e){const t=Fo(e,{changeUnderlineCSStoHTML:!1}).querySelectorAll("p"),n=Array.from(t).map((e=>Ko(e)));return{fontColor:n.every((e=>{let{fontColor:t}=e;return t&&t===n[0].fontColor}))?n[0].fontColor:null,isUnderlined:n.every((e=>{let{isUnderlined:t}=e;return t&&t===n[0].isUnderlined})),isBold:n.every((e=>{let{isBold:t}=e;return t&&t===n[0].isBold})),isItalic:n.every((e=>{let{isItalic:t}=e;return t&&t===n[0].isItalic})),backgroundColor:n.every((e=>{let{backgroundColor:t}=e;return t&&t===n[0].backgroundColor}))?n[0].backgroundColor:null}}function Uo(e,t){var n;const{selection:o}=e;if(!o)return;const[...r]=Array.from(Zn.ML.nodes(e,{at:Zn.ML.unhangRange(e,o),match:e=>!Zn.ML.isEditor(e)&&Vo(e)})),i=r.map((e=>{let[t]=e;return t}));if(!i)return;const a=i.map((e=>zo(e[t])));return 1===new Set(a).size&&null!==(n=a[0])&&void 0!==n?n:void 0}function Vo(e){return"style"===e.type}function Go(e,t){const{selection:n}=e;n&&Zn.e6.isCollapsed(n)?Zn.YR.insertNodes(e,t):(Zn.YR.wrapNodes(e,t,{split:!0}),Zn.YR.collapse(e,{edge:"end"}))}function Wo(e,t){Zn.YR.unwrapNodes(e,{match:e=>!Zn.ML.isEditor(e)&&Zn.W_.isElement(e)&&e.type===t})}function qo(e,t,n){(0,Nt.kG)(e,"Editor is not defined.");const[o]=Zn.ML.nodes(e,{match:e=>!Zn.ML.isEditor(e)&&Zn.W_.isElement(e)&&Vo(e)});o?Zn.YR.setNodes(e,{[t]:n},{match:e=>Vo(e),split:!0}):Go(e,{type:"style",[t]:n,children:[{text:""}]})}function Ho(e){var t;const{selection:n}=e;if(!n)return!1;const[...o]=Array.from(Zn.ML.nodes(e,{at:Zn.ML.unhangRange(e,n),match:e=>!Zn.ML.isEditor(e)&&Vo(e)})),r=o.map((e=>{let[t]=e;return t}));return!(null==r||null===(t=r[0])||void 0===t||!t.underline)}function $o(e){return"mention"===e.type}var Yo,Xo;const Jo="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),Qo="undefined"!=typeof navigator&&/Chrome/.test(navigator.userAgent),er=a.forwardRef(((e,t)=>{let{text:n,style:o,updateBoundingBox:r,onValueChange:i,onBlurSave:s,maxLength:c,onStopEditing:u,onEscape:d,lastMousePoint:p,onEditorInit:f,className:h,placeholder:m,onBlur:g,autoFocus:v=!0,onSelectionChange:y,autoOpenKeyboard:b=!0,onKeyDown:w,title:S="Rich text editor"}=e;const{value:E,wrapperTags:P}=(0,a.useMemo)((()=>({wrapperTags:To(n),value:Io(n)})),[n]),x=(0,a.useRef)(null),D=a.useRef(E),C=(0,a.useMemo)((()=>(e=>{const{insertData:t,isInline:n,markableVoid:o,isVoid:r}=e;return e.isInline=e=>"link"===e.type||$o(e)||"style"===e.type||n(e),e.isVoid=e=>$o(e)||r(e),e.markableVoid=e=>$o(e)||o(e),e.insertData=n=>{try{const o=n.getData("text/html");if(o){const t=Eo(Fo(o));return void Zn.YR.insertFragment(e,t)}t(n)}catch(e){}},e})((e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var o=n[n.length-1];o.selectionBefore&&Zn.YR.setSelection(t,o.selectionBefore),qn.withoutSaving(t,(()=>{Zn.ML.withoutNormalizing(t,(()=>{for(var e of o.operations)t.apply(e)}))})),e.redos.pop(),e.undos.push(o)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var o=n[n.length-1];qn.withoutSaving(t,(()=>{Zn.ML.withoutNormalizing(t,(()=>{var e=o.operations.map(Zn.OX.inverse).reverse();for(var n of e)t.apply(n);o.selectionBefore&&Zn.YR.setSelection(t,o.selectionBefore)}))})),e.redos.push(o),e.undos.pop()}},t.apply=e=>{var{operations:o,history:r}=t,{undos:i}=r,a=i[i.length-1],s=a&&a.operations[a.operations.length-1],l=qn.isSaving(t),c=qn.isMerging(t);if(null==l&&(l=$n(e)),l){if(null==c&&(c=null!=a&&(0!==o.length||Hn(e,s))),a&&c)a.operations.push(e);else{var u={operations:[e],selectionBefore:t.selection};i.push(u)}for(;i.length>100;)i.shift();r.redos=[]}n(e)},t})((0,Kn.BU)((0,Zn.Jh)())))),[]),k=(0,a.useCallback)((e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}),[]);(0,a.useEffect)((()=>{const e=x.current;function t(t){null!=e&&e.contains(t.target)||null==s||s()}return null==e||e.ownerDocument.addEventListener("pointerdown",t,{capture:!0}),Zn.YR.select(C,Zn.ML.end(C,[])),()=>{null==e||e.ownerDocument.removeEventListener("pointerdown",t,{capture:!0})}}),[C,s]);const A=(0,a.useMemo)((()=>Eo(Fo(E))),[E]),O=(0,a.useCallback)((e=>a.createElement(or,e)),[]),T=(0,a.useCallback)((e=>a.createElement(tr,e)),[]);(0,a.useEffect)((()=>(null==f||f(C),()=>{null==f||f(null)})),[C,f]),(0,a.useEffect)((()=>{v&&(Kn.F3.focus(C),setTimeout((()=>{Kn.F3.blur(C),Kn.F3.focus(C),b||Kn.F3.blur(C)}),0))}),[b]),(0,a.useEffect)((()=>{setTimeout((()=>{if(p&&x.current){const e=(0,Nt.Qo)(p,x.current.ownerDocument);if(!e)return;const t=Kn.F3.toSlatePoint(C,[e.startContainer,e.startOffset],{exactMatch:!0,suppressThrow:!0});t&&Zn.YR.select(C,t)}}),0)}),[C,p,t]);const I=(0,a.useCallback)((e=>{if("Escape"!==e.key)return"Enter"===e.key&&e.shiftKey?(null==u||u(),void e.preventDefault()):void(c&&Ao(D.current).length>=c&&e.preventDefault());null==d||d(e)}),[c,d,u]),F=(0,a.useCallback)((()=>{const{selection:e}=C;if(e&&Zn.e6.isCollapsed(e)){var t,n,o;const[i]=Zn.e6.edges(e),a=_o(C,2);if((null!=a&&null!==(t=a.text)&&void 0!==t&&t.startsWith(" ")||1===(null==a||null===(n=a.text)||void 0===n?void 0:n.length))&&null!=a&&null!==(o=a.text)&&void 0!==o&&o.endsWith("@")){var r;(0,Nt.kG)(a,"lastTwoCharacters should be defined");const e=null===(r=_o(C))||void 0===r?void 0:r.range;return e?{query:"",target:e}:null}{const e=Zn.ML.before(C,i,{unit:"word"}),t=e&&Zn.ML.before(C,e),n=t&&Zn.ML.range(C,t,i),o=n&&Zn.ML.string(C,n),r=o&&o.match(/^@(\w+)$/),a=Zn.ML.after(C,i),s=Zn.ML.range(C,i,a),l=Zn.ML.string(C,s).match(/^(\s|$)/);return r&&l&&n?{query:r[1],target:n}:null}}return null}),[C]),M=(0,a.useCallback)((e=>{var t;C.operations.every((e=>"set_selection"===e.type))&&(null==y||y(),"onSelectionChange"in C&&"function"==typeof C.onSelectionChange&&C.onSelectionChange());const n=e.map((e=>Po(e))).join("");D.current=n,i(`${P.pre.join("")}${n}${P.post.join("")}`,{activeMention:null!==(t=F())&&void 0!==t?t:null}),null==r||r(),"onValueChange"in C&&"function"==typeof C.onValueChange&&C.onValueChange(n)}),[i,r,P,C,y,F]);return a.createElement("div",{role:"presentation",className:l()(Xn().richTextEditor,"PSPDFKit-Rich-Text-Editor",h),style:o,ref:(0,Nt.FE)(t,x),onBlur:()=>{null==s||s(),null==g||g()},onDragStart:k,onDragEnd:k,onKeyUp:k,onMouseDown:k,onPointerUp:k,onTouchStart:k,onTouchEnd:k,onMouseUp:k},a.createElement(Kn.mH,{onChange:M,editor:C,value:A},a.createElement(Kn.CX,{title:S,placeholder:m,renderLeaf:T,renderElement:O,onInput:r,className:Xn().wrapper,onKeyDown:e=>{w?w(e):(I(e),(e.metaKey||e.ctrlKey)&&"b"===e.key?(e.preventDefault(),ko(C,"bold")):(e.metaKey||e.ctrlKey)&&"i"===e.key?(e.preventDefault(),ko(C,"italic")):(e.metaKey||e.ctrlKey)&&"u"===e.key&&(e.preventDefault(),ko(C,"underline")),Jo&&!Kn.F3.isComposing(C)&&setTimeout(C.onChange,10))}})))})),tr=e=>{let{attributes:t,children:n,leaf:o}=e;return o.bold&&(n=a.createElement("strong",null,n)),o.italic&&(n=a.createElement("em",null,n)),o.underline&&(n=a.createElement("u",null,n)),a.createElement("span",t,n)},nr=()=>a.createElement("span",{contentEditable:!1,style:{fontSize:0}},"$",String.fromCodePoint(160)),or=e=>{const{attributes:t,children:n,element:o}=e;switch(o.type){case"link":return a.createElement("a",(0,r.Z)({},t,{href:o.url}),Yo||(Yo=a.createElement(nr,null)),n,Xo||(Xo=a.createElement(nr,null)));case"mention":return a.createElement("span",(0,r.Z)({},t,{contentEditable:Qo?void 0:t.contentEditable,"data-user-id":o.userId}),n,"@",o.displayName);case"style":return a.createElement("span",(0,r.Z)({},t,{style:{color:o.fontColor,backgroundColor:o.backgroundColor}}),n);default:return a.createElement("p",t,n)}};var rr=n(87360),ir=n.n(rr),ar=n(54941);const sr=["onMention","users","onValueChange","mentionDropdownClassName","mentionListRenderer","mentionListClassName","onEditorInit","maxMentionSuggestions","onMentionSuggestionsOpenChange"],lr=a.forwardRef(((e,t)=>{let{onMention:n,users:o,onValueChange:s,mentionDropdownClassName:l,mentionListRenderer:c,mentionListClassName:u,onEditorInit:d,maxMentionSuggestions:p=5,onMentionSuggestionsOpenChange:f}=e,h=(0,i.Z)(e,sr);const[m,g]=a.useState([]),[v,y]=(0,a.useState)(null),b=(0,a.useRef)(null),[w,S]=(0,a.useState)(null),[E,P]=(0,a.useState)(0),x=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,(()=>({startMention:()=>{const e=b.current;(0,Nt.kG)(e,"Editor ref is not set");const t=_o(e,1);Zn.YR.insertText(e,Ro(t)?"@":" @"),Kn.F3.focus(e)}})));const D=(0,a.useCallback)((e=>{null==n||n(e);const t={userId:e.id,displayName:e.displayName||e.name,children:[{text:""}],type:"mention"};(0,Nt.kG)(b.current,"Editor ref is not set"),(0,Nt.kG)(v,"Target is not set"),Zn.YR.select(b.current,v),Zn.YR.insertNodes(b.current,t),Zn.YR.move(b.current),Zn.YR.insertText(b.current," "),P(0),g([]),y(null)}),[n,v]),C=(0,a.useCallback)((e=>{null==d||d(e),b.current=e}),[d]),k=(0,a.useCallback)((e=>{"ArrowDown"===e.key?(e.preventDefault(),P((e=>(e+1)%m.length))):"ArrowUp"===e.key?(e.preventDefault(),P((e=>(e-1+m.length)%m.length))):"Enter"===e.key?(e.preventDefault(),D(m[E])):"Escape"===e.key&&(e.preventDefault(),P(0),g([]),y(null))}),[m,E,D,v]);(0,a.useEffect)((()=>{if(x.current){const e=x.current.querySelector('[data-highlighted="true"]');e&&e.scrollIntoView({block:"nearest"})}}),[E]);const A=!(!v||!m.length);return(0,a.useEffect)((()=>{null==f||f(A)}),[f,A]),a.createElement(ar.fC,{modal:!1,open:A},a.createElement(ar.xz,{asChild:!0},a.createElement(er,(0,r.Z)({},h,{onValueChange:function(e,t){var n;null==s||s(e,t);const{activeMention:r}=t;if(y(null!==(n=null==r?void 0:r.target)&&void 0!==n?n:null),r)if(r.query.length){const e=ir().go(r.query,o,{keys:["name","displayName","description"]});g(e.slice(0,p).map((e=>e.obj)))}else g(o.slice(0,p));else g([]);P(0)},onEditorInit:C,ref:e=>{var t,n;e&&S(null!==(t=null===(n=e.ownerDocument)||void 0===n?void 0:n.body)&&void 0!==t?t:null)},onKeyDown:A?k:void 0}))),a.createElement(ar.h_,{container:w},a.createElement(ar.VY,{onOpenAutoFocus:e=>e.preventDefault(),className:l,role:"menu",ref:x,onInteractOutside:()=>{g([]),y(null)}},m.map(((e,t)=>a.createElement("div",{role:"menuitem",tabIndex:t===E?0:-1,"data-highlighted":t===E,key:e.id,className:u,onClick:()=>{D(e)},onMouseEnter:()=>P(t)},(null==c?void 0:c(e))||a.createElement("div",null,e.name)))))))}));var cr=n(12921),ur=n(12704),dr=n.n(ur),pr=n(11149),fr=n.n(pr);function hr(e){let{label:t,trigger:n,items:o,container:r=document.body,alignContent:i="center",className:s}=e;return a.createElement("div",{className:l()(fr().wrapper,s)},a.createElement(cr.fC,null,a.createElement(cr.xz,{asChild:!0},a.createElement("button",{className:fr().trigger,"aria-label":t},n||a.createElement(Mn.Z,{src:dr(),className:fr().triggerIcon}))),a.createElement(cr.Uv,{container:r},a.createElement(cr.VY,{className:fr().content,align:i},o.map(((e,t)=>(0,a.isValidElement)(e)?a.createElement(a.Fragment,{key:t},e):a.createElement(cr.ck,{key:t,className:fr().item,onSelect:e.onClick},e.content,e.helperText&&a.createElement("div",{className:fr().itemHelperText},e.helperText))))))))}function mr(e){let{checked:t,onCheckedChange:o,children:r}=e;return a.createElement(cr.oC,{className:l()(fr().item,fr().checkboxItem),checked:t,onCheckedChange:o},t&&a.createElement(Mn.Z,{src:n(70190),className:fr().itemCheckmark}),a.createElement("span",null,r))}const gr=function(){return a.createElement("div",{role:"separator",className:fr().separatorItem})}},74855:(e,t,n)=>{"use strict";n.d(t,{default:()=>rD});var o=n(84121),r=n(17375);n(41817),n(72443),n(69007),n(83510),n(41840),n(32159),n(84944),n(86535),n(2707),n(33792),n(99244),n(61874),n(9494),n(56977),n(19601),n(38559),n(54678),n(91058),n(88674),n(17727),n(83593),n(24603),n(74916),n(92087),n(39714),n(27852),n(32023),n(4723),n(15306),n(64765),n(23123),n(23157),n(48702),n(55674),n(33105),n(3462),n(33824),n(12974),n(4129),n(33948),n(84633),n(85844),n(60285),n(83753),n(41637),n(94301);"object"==typeof window&&(window._babelPolyfill=!1);var i=n(35369),a=n(50974),s=n(15973),l=(n(75376),n(59780)),c=n(89335),u=n(3845),d=n(1053),p=n(83634),f=n(74985),h=n(19209),m=n(18509),g=n(19419),v=n(65338),y=n(34426),b=n(11863),w=n(39745),S=n(76192),E=n(26248),P=n(13997),x=n(20792),D=n(52842),C=n(77973),k=n(67665),A=n(67366),O=n(73935),T=n(67294),I=n(94184),F=n.n(I),M=n(46797),_=n(75920),R=n(87153),N=n.n(R),L=(n(17938),n(71984)),B=n(88804),j=n(82481),z=n(97333),K=n(40230);function Z(e){return function(t){var n=t.dispatch,o=t.getState;return function(t){return function(r){return"function"==typeof r?r(n,o,e):t(r)}}}}var U=Z();U.withExtraArgument=Z;const V=U;n(94500);var G=n(30570),W=n(79827),q=n(36489),H=n(80857),$=n(72584);const Y=(0,H.Z)("MeasurementValueConfiguration");function X(e){let t=!1;e.forEach(((n,o)=>{var r;r=n,Y((0,a.PO)(r)&&!!r,"Expected item to be an object"),Y((0,a.PO)(r.scale)&&!!r.scale,"Expected scale to be an object"),Y(void 0!==r.scale.unitFrom&&Object.values(q.s).includes(r.scale.unitFrom),`Scale ${r.name} does not have a valid 'unitFrom' value.`),Y(void 0!==r.scale.unitTo&&Object.values(W.K).includes(r.scale.unitTo),`Scale ${r.name} does not have a valid 'unitTo' value.`),Y(void 0!==r.scale.fromValue&&(0,$.hj)(Number(r.scale.fromValue)),`Scale ${r.name} does not have a valid 'fromValue' value.`),Y(void 0!==r.scale.toValue&&(0,$.hj)(Number(r.scale.toValue)),`Scale ${r.name} does not have a valid 'toValue' value.`),Y("string"==typeof r.precision||void 0===r.precision,"`measurementValueConfiguration.measurementPrecision` must be a string.");for(let t=o+1;te.withMutations((e=>{t.annotations.forEach((t=>{(0,J.ud)(e,t)}))})),[te.ILc]:(e,t)=>{const n=t.annotation.withMutations((n=>n.merge((0,J.lx)(e)).set("pageIndex",t.pageIndex)));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,i.l4)([n.id])),e.set("interactionMode",x.A.INK),e.set("selectedAnnotationMode",Q.o.EDITING),(0,J.ud)(e,n)}))},[te.RPc]:(e,t)=>e.set("inkEraserCursorWidth",t.lineWidth),[te.HS7]:(e,t)=>{const n=t.annotation.withMutations((n=>n.merge((0,J.lx)(e)).set("pageIndex",t.pageIndex)));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,i.l4)([n.id])),e.set("interactionMode",(0,ee.R4)(t.annotation.constructor)),e.set("selectedAnnotationMode",Q.o.EDITING),(0,J.ud)(e,n)}))},[te.jzI]:(e,t)=>{const n=t.annotation.withMutations((n=>n.merge((0,J.lx)(e)).set("pageIndex",t.pageIndex)));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,i.l4)([n.id])),e.set("interactionMode",x.A.REDACT_SHAPE_RECTANGLE),e.set("selectedAnnotationMode",Q.o.EDITING),(0,J.ud)(e,n)}))},[te.oE1]:(e,t)=>{let{attributes:n}=t;const{currentItemPreset:o}=e;return o?e.hasIn(["annotationPresets"],o)?e.mergeIn(["annotationPresets",o],n):e.setIn(["annotationPresets",o],n):e},[te.oWy]:(e,t)=>{let{currentItemPreset:n}=t;return e.set("currentItemPreset",n)},[te.UiQ]:(e,t)=>{let{annotationPresets:n}=t;return e.set("annotationPresets",n)},[te.R1i]:(e,t)=>{let{annotationID:n,annotationPresetID:o}=t;return e.setIn(["annotationPresetIds",n],o)},[te.x0v]:(e,t)=>{let{annotationID:n}=t;return e.delete("annotationPresetIds",n)},[te.JwD]:(e,t)=>{let{annotationID:n}=t;const o=e.annotationPresetIds.has(n)?e.annotationPresetIds.get(n):(0,J.X5)(e,n);return e.set("currentItemPreset",o)},[te.R8P]:(e,t)=>e.withMutations((e=>{t.annotations.forEach((t=>{(0,J._E)(e,t)}))})),[te.gF5]:(e,t)=>e.withMutations((e=>{t.ids.forEach((t=>{(0,J.Dl)(e,t)}))})),[te.sCM]:(e,t)=>{let{annotationsIDs:n}=t;return e.set("annotationsIdsToDelete",n)},[te.qRJ]:(e,t)=>{let{stampAnnotationTemplates:n}=t;return e.set("stampAnnotationTemplates",n)},[te.WaW]:(e,t)=>e.set("collapseSelectedNoteContent",t.value),[te.ieh]:(e,t)=>e.withMutations((e=>{t.ids.forEach(((t,n)=>{e.invalidAPStreams.get(t)||e.set("invalidAPStreams",e.invalidAPStreams.set(t,(0,i.l4)()));const o=e.invalidAPStreams.get(t);o&&e.set("invalidAPStreams",e.invalidAPStreams.set(t,o.add(n)))}))})),[te.kVz]:(e,t)=>e.withMutations((e=>{t.ids.forEach(((t,n)=>{e.invalidAPStreams.get(t)&&e.deleteIn(["invalidAPStreams",t],n)}))})),[te.hw0]:(e,t)=>e.set("onAnnotationResizeStart",t.callback),[te.$8O]:(e,t)=>{let{measurementToolState:n}=t;return e.set("measurementToolState",n?oe(oe({},e.measurementToolState),n):null)},[te.UP4]:(e,t)=>{let{hintLines:n}=t;return e.set("hintLines",n)},[te.vkF]:(e,t)=>{let{configurationCallback:n}=t;return e.set("measurementValueConfiguration",n)},[te.SdX]:(e,t)=>{var n,o;let{scales:r}=t;const i=null!==(n=null===(o=e.measurementValueConfiguration)||void 0===o?void 0:o.call(e,r))&&void 0!==n?n:r;i&&X(i);const a=e.activeMeasurementScale||i.find((e=>e.selected))||i[0];return e.withMutations((e=>{e.set("measurementScales",i),a&&e.set("activeMeasurementScale",a)}))},[te.Zt9]:(e,t)=>e.set("secondaryMeasurementUnit",t.secondaryMeasurementUnit),[te.VNu]:(e,t)=>e.set("activeMeasurementScale",t.activeMeasurementScale),[te.wgG]:(e,t)=>e.set("isCalibratingScale",t.isCalibratingScale),[te.Dqw]:(e,t)=>e.withMutations((e=>{"down"===t.variant?e.updateIn(["APStreamVariantsDown"],(e=>e.concat(t.annotationObjectIds))):"rollover"===t.variant&&e.updateIn(["APStreamVariantsRollover"],(e=>e.concat(t.annotationObjectIds)))})),[te.uOP]:(e,t)=>e.set("widgetAnnotationToFocus",t.annotationId)};function ae(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re,t=arguments.length>1?arguments[1]:void 0;const n=ie[t.type];return n?n(e,t):e}const se=new j.ZM,le={[te.huI]:(e,t)=>{const{hash:n,attachment:o}=t;return e.setIn(["attachments",n],o)}};function ce(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:se,t=arguments.length>1?arguments[1]:void 0;const n=le[t.type];return n?n(e,t):e}var ue=n(25915),de=n(27515),pe=n(18146),fe=n(75237),he=n(79941),me=n(49027),ge=n(60132),ve=n(72131);function ye(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function we(e){for(var t=1;t()=>{};function Ee(){const e=T.createContext(Se);class t extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"state",{instances:{}}),(0,o.Z)(this,"refCreator",((e,t,n)=>o=>{this.setState((r=>{let{instances:i}=r;const a=i[e]||{node:null,portalTarget:document.createElement("div"),target:null};return n&&(a.portalTarget.className=n),a.portalTarget.parentNode!==o&&o&&o.appendChild(a.portalTarget),a.node===t&&a.target===o?null:{instances:we(we({},i),{},{[e]:we(we({},a),{},{node:t,target:o})})}}),(()=>{if(null===o){null===this.state.instances[e].target&&this.setState((t=>{let{instances:n}=t;const{[e]:o}=n;return{instances:(0,r.Z)(n,[e].map(ye))}}))}}))}))}render(){const t=Object.entries(this.state.instances).map((e=>{let[t,{node:n,portalTarget:o}]=e;return O.createPortal(void 0===n?null:n,o,t)}));return T.createElement(e.Provider,{value:this.refCreator},this.props.children,t)}}return{Provider:t,Reparent:function(t){let{id:n,children:o,className:r}=t;return T.createElement(e.Consumer,null,(e=>T.createElement("div",{ref:e(n,o,r)})))}}}const Pe=Ee(),xe=Ee();Ee();var De=n(22122);function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ke(e){for(var t=1;t{if(a&&n&&n!==a.firstChild){for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(n)}return()=>{const e=l.current;e&&e(n)}}),[n,a]),T.useLayoutEffect((()=>{l.current=i}),[i]),T.createElement("div",{style:{position:"relative"}},t&&o,n&&T.createElement("div",{ref:s,style:r}))}function Oe(e,t){return!e&&!t}const Te={node:"object",append:"boolean",noZoom:"boolean",onDisappear:"function"};const Ie=(0,A.$j)((e=>({customRenderers:e.customRenderers})))((function(e){const{children:t,customRenderers:n,renderer:o,zoomLevel:r,notCSSScaled:i=!1}=e;if(!n||!n[o])return t;const s=T.Children.only(t),l=s.props,c=Fe[o],u=n[o];(0,a.kG)(null!=u);const d=u(c(l));if(!d)return t;!function(e){(0,a.kG)(e.node,"Custom renderers must return an object with a node property.");for(const t in e)e.hasOwnProperty(t)&&((0,a.kG)(void 0!==Te[t],`Render configuration '${t}' property is not supported`),(0,a.kG)(typeof e[t]===Te[t],`Render configuration ${t} property has wrong '${typeof e[t]}' type, should be '${Te[t]}'`))}(d);const{node:p,append:f,noZoom:h=!1,onDisappear:m}=d,g=Me[o];(0,a.kG)("boolean"==typeof h);const v=ke({pointerEvents:f?"none":"all"},g?g(l,h,i,r):null);return T.createElement(Ae,{node:p,append:f,onDisappear:m,rendererStyles:v},s)})),Fe={Annotation:e=>({annotation:e.annotation}),CommentAvatar:e=>({comment:e.comment})},Me={Annotation:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(e&&e.annotation&&e.annotation.boundingBox){const{left:r,top:i,width:a,height:s}=e.annotation.boundingBox;return ke({position:"absolute",left:r*o,top:i*o,width:n?a*o:a,height:n?s*o:s},Oe(t,n)?{transform:`scale(${o})`,transformOrigin:"0 0"}:null)}return{}},CommentAvatar:null};var _e=n(18390),Re=n(76154),Ne=n(97413);function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}class Be extends T.PureComponent{render(){const{applyZoom:e,children:t,position:n,zoomLevel:r,noRotate:i,currentPagesRotation:a,disablePointerEvents:s,additionalStyle:l={},isMultiAnnotationsSelected:c}=this.props;(0,Ne.k)(!i||"number"==typeof a);const u=(e?`scale(${r}) `:"")+(i?`rotate(-${String(a)}deg)`:""),d=function(e){for(var t=1;t{e.isPrimary&&(!this.props.isReadOnly&&e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null))})),(0,o.Z)(this,"_handlePress",((e,t)=>{this.props.dispatch((0,je.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0,ignoreReadOnly:!0}))})),(0,o.Z)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,o.Z)(this,"_onFocus",(e=>{this.props.onFocus&&this.props.onFocus(this.props.annotation,e)})),(0,o.Z)(this,"_onBlur",(e=>{this.props.onBlur&&this.props.onBlur(this.props.annotation,e)}))}render(){const{annotation:e,zoomLevel:t,rotation:n,active:o,intl:{formatMessage:r}}=this.props,{width:i,height:a}=e.boundingBox,s=this.props.isReadOnly?{onPointerUp:this._onPointerDownUp}:{onPointerDown:this._onPointerDownUp},l=F()("PSPDFKit-Annotation","PSPDFKit-Comment-Marker-Annotation",o&&!this.props.isDisabled&&"PSPDFKit-Annotation-Selected",o&&!this.props.isDisabled&&"PSPDFKit-Comment-Marker-Annotation-Selected",Ve().annotation);return T.createElement(Be,{position:e.boundingBox.getLocation(),zoomLevel:t,currentPagesRotation:n,noRotate:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},T.createElement(_e.Z,(0,De.Z)({},s,{onClick:this._handleClick,onFocus:this._onFocus,onBlur:this._onBlur,disabled:this.props.isDisabled,style:{width:i,height:a,transformOrigin:"top left",transform:`translate(${i*t/2-i/2}px, ${a*t/2-a/2}px)`},className:l,"data-annotation-id":e.id,"aria-controls":`CommentThread-${e.id}`,"aria-label":`${r(Ke.Z.annotation)}: ${r(Ke.Z.comment)}`}),T.createElement(Ze.Z,{style:{width:20,height:20},className:F()(Ve().icon,o&&Ve().iconActive),type:"comment-indicator"})))}}const We=(0,Re.XN)(Ge,{forwardRef:!0});var qe,He=n(45588),$e=n(86366),Ye=n(13540),Xe=n(73264),Je=n(91859),Qe=n(58054),et=n.n(Qe),tt=n(36095),nt=n(16126),ot=n(75669),rt=n(92606),it=n.n(rt);function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function st(e){for(var t=1;t{e&&!this._fetchImageComponentInstance&&(this._fetchImageComponentInstance=e)})),(0,o.Z)(this,"_fetchImageComponentInstance",null),(0,o.Z)(this,"state",{loadingState:"LOADING",showLoadingIndicator:!1,renderedAnnotation:null}),(0,o.Z)(this,"_fetchImage",(()=>{const{backend:e,attachment:t,zoomLevel:n,isDetachedAnnotation:o}=this.props;let r=this.props.annotation;return o&&(r=r.update("boundingBox",(e=>null==e?void 0:e.set("left",0).set("top",0)))),(0,He.an)({backend:e,blob:null==t?void 0:t.data,annotation:r,isDetachedAnnotation:Boolean(o),zoomLevel:n,variant:this.props.variant})})),(0,o.Z)(this,"_renderFinished",(()=>{var e,t;this.isAlive&&(this.props.annotation instanceof j.GI&&this.setState({renderedAnnotation:this.props.annotation}),this._shouldShowIndicators&&this.setState({loadingState:"LOADED"}),null===(e=(t=this.props).onRenderFinished)||void 0===e||e.call(t))})),(0,o.Z)(this,"_showError",(()=>{var e,t;this.isAlive&&(this.props.annotation instanceof j.GI||this.props.annotation instanceof j.sK||this.props.annotation instanceof j.Ih?this._shouldShowIndicators&&this.setState({loadingState:"ERROR"}):null===(e=(t=this.props).onError)||void 0===e||e.call(t))})),(0,o.Z)(this,"_showLoadingIndicator",(()=>{this.isAlive&&this._shouldShowIndicators&&this.setState((e=>({showLoadingIndicator:"LOADING"===e.loadingState})))}))}componentDidUpdate(e){!this.props.isDragging&&this.isAlive&&dt(e,this.props)&&(this._fetchImageComponentInstance&&this.props.annotation.rotation!==e.annotation.rotation?this._fetchImageComponentInstance.refreshSkippingThrottle():this._fetchImageComponentInstance&&this._fetchImageComponentInstance.refresh())}componentDidMount(){this._shouldShowIndicators&&setTimeout(this._showLoadingIndicator,Je.rB)}componentWillUnmount(){this.isAlive=!1;const{annotation:e,backend:t}=this.props;"imageAttachmentId"in e&&e.imageAttachmentId&&(t.attachmentsCache=t.attachmentsCache.delete((0,He.UW)(e)))}render(){var e;const{annotation:t,attachment:n,formField:o,label:r,zoomLevel:i}=this.props,s=t instanceof j.GI&&(null===(e=this.state.renderedAnnotation)||void 0===e?void 0:e.opacity)!==t.opacity,l=st(st(st({},ct),function(e){let{annotation:t,attachment:n,zoomLevel:o}=e;if(t instanceof j.x_||t instanceof j.R1)return{position:"absolute",top:0};if(t instanceof j.UX||t instanceof j.Zc)return{padding:tt.Ni?Je.wK:Je.XZ};if(t instanceof j.GI&&(0,ot.kv)(t)){const e=(0,ot.h4)(t),n=(t.boundingBox.width-e.boundingBox.width)/2*o,r=(t.boundingBox.height-e.boundingBox.height)/2*o;return{transformOrigin:"50% 50%",transform:`translate(${-n}px, ${-r}px) rotate(${String(t.rotation)}deg)`,width:t.boundingBox.width*o,height:t.boundingBox.height*o}}if(t instanceof j.gd&&(0,ot.kv)(t)){const e=(0,ot.h4)(t),n=(t.boundingBox.width-e.boundingBox.width)/2*o,r=(t.boundingBox.height-e.boundingBox.height)/2*o;return{transformOrigin:"50% 50%",transform:`translate(${-n}px, ${-r}px) rotate(${String(t.rotation)}deg)`,width:t.boundingBox.width*o,height:t.boundingBox.height*o}}if(t instanceof j.sK&&n&&t.opacity<1)return{opacity:t.opacity};if(t instanceof j.R1||t instanceof j.gd||t instanceof j.On||t instanceof j.Qi||t instanceof j.Ih||t instanceof j.sK||t instanceof j.GI)return{};(0,a.Rz)(t.constructor)}({annotation:this.state.renderedAnnotation||t,attachment:n,zoomLevel:i})),s?{opacity:t.opacity}:null),c=F()(it().wrapper,"PSPDFKit-APStream-Wrapper",{[it().loading]:this._shouldShowIndicators&&"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator,[it().error]:this._shouldShowIndicators&&"ERROR"===this.state.loadingState}),u=F()(t instanceof j.GI&&it().stampAnnotation,t instanceof j.x_&&it().widgetAnnotation,"PSPDFKit-APStream"),d=t instanceof j.GI||t instanceof j.sK||t instanceof j.Ih||t instanceof j.x_&&o instanceof j.Yo?null:0;return T.createElement("figure",{style:l,className:c,"data-name":null==o?void 0:o.name},T.createElement($e.Z,{className:u,fetchImage:this._fetchImage,label:r,visible:!0,onRenderFinished:this._renderFinished,onError:this._showError,throttleTimeout:d,rectStyle:ut,ref:this._imageFetcherRef}),"description"in t&&t.description&&T.createElement(ue.TX,{tag:"figcaption"},t.description),this._shouldShowIndicators&&"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator?T.createElement("div",{className:it().placeholder},qe||(qe=T.createElement(Xe.Z,null))):this._shouldShowIndicators&&"ERROR"===this.state.loadingState?T.createElement("div",{className:it().placeholder},T.createElement(Ye.Z,{src:et(),className:it().errorIcon})):null)}}const ct={position:"relative",overflow:"hidden",margin:0,pointerEvents:"none",width:"100%",height:"100%"},ut={pointerEvents:"none",width:"100%",height:"100%"};function dt(e,t){return t.zoomLevel>e.zoomLevel||(0,J.AC)(e.annotation,t.annotation)||(0,J.TL)(e.formField,t.formField)||t.formField&&e.formField&&t.formField.formattedValue!==e.formField.formattedValue||!(0,nt.BT)(t.formField,e.formField)||e.variant!==t.variant||e.isDigitallySigned!==t.isDigitallySigned}var pt=n(13944);class ft extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"el",null),(0,o.Z)(this,"_innerRef",(e=>{this.el=e})),(0,o.Z)(this,"_handlePointerDown",(e=>{e.isPrimary&&this.props.isSelectable&&this._handlePress(e,"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null)})),(0,o.Z)(this,"_handlePress",((e,t)=>{this.props.dispatch((0,je.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,o.Z)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,o.Z)(this,"_handlePointerUp",(e=>{e.stopPropagation()})),(0,o.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n}=this.props;t&&t(n,e),this.props.dispatch((0,je.Oc)(n.id))}))}componentDidUpdate(){this.props.isFocused&&this.el&&this.el.focus()}render(){const{annotation:e,attachment:t,backend:n,onRenderFinished:o,zoomLevel:r,isSelectable:i,isDisabled:a,isDragging:s,intl:{formatMessage:l}}=this.props,{boundingBox:c,id:u}=e,d={cursor:i?"pointer":"auto",overflow:"hidden",width:c.width*r,height:c.height*r,display:"block",outline:this.props.isFocused?J.A8:null};return T.createElement(Pe.Reparent,{id:`annotation-image-${u}`},T.createElement(Be,{position:c.getLocation(),zoomLevel:r,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},T.createElement(pt.Z,{onPointerUp:this._handlePointerUp},T.createElement(_e.Z,{disabled:a,onPointerDown:this._handlePointerDown,onClick:this._handleClick,onFocus:this._handleFocus,onBlur:this._handleBlur,style:d,className:"PSPDFKit-Annotation PSPDFKit-Image-Annotation","data-annotation-id":e.id,"aria-label":`${l(Ke.Z.annotation)}: ${l(Ke.Z.imageAnnotation)}`,innerRef:this._innerRef},T.createElement(lt,{annotation:e,attachment:t,backend:n,onRenderFinished:o,zoomLevel:r,label:l(Ke.Z.imageAnnotation),isDragging:s,onError:this.props.onError})))))}}const ht=(0,Re.XN)(ft,{forwardRef:!0});var mt=n(97528),gt=n(51731),vt=n(78233);function yt(e){switch(e){case gt.V.TOP:return{mx:0,my:-1};case gt.V.BOTTOM:return{mx:0,my:1};case gt.V.LEFT:return{mx:-1,my:0};case gt.V.RIGHT:return{mx:1,my:0};case gt.V.TOP_LEFT:return{mx:-1,my:-1};case gt.V.TOP_RIGHT:return{mx:1,my:-1};case gt.V.BOTTOM_RIGHT:return{mx:1,my:1};case gt.V.BOTTOM_LEFT:return{mx:-1,my:1}}throw new a.p2("Expected `getMultipliersFromResizeStartingAnchor` to be called with a valid `ResizeStartingAnchor` value.")}function bt(e,t,n,o,r){const i=yt(t);let a,s=e.width+i.mx*n.x,l=e.height+i.my*n.y;return r&&o&&(i.mx>0&&e.left+s>o.width?(s=o.width-e.left,a="width"):i.mx<0&&s-e.width>e.left&&(s=e.left+e.width,a="width"),i.my>0&&e.top+l>o.height?(l=o.height-e.top,a="height"):i.my<0&&l-e.height>e.top&&(l=e.top+e.height,a="height")),{rect:e.set("width",s).set("height",l),keepToSide:a}}function wt(e,t,n,o,r){const i=yt(t),a=-1*i.mx*(e.width-e.width*n),s=-1*i.my*(e.height-e.height*o),l=r?new j.E9({x:i.mx>=0?0:Math.max(-e.left,a),y:i.my>=0?0:Math.max(-e.top,s)}):new j.E9({x:i.mx>=0?0:a,y:i.my>=0?0:s});return{translation:l,dragDifference:r?new j.E9({x:i.mx>=0?0:a-l.x,y:i.my>=0?0:s-l.y}):new j.E9({x:0,y:0})}}function St(e,t){const n=yt(t);return new j.E9({x:e.boundingBox.left+e.boundingBox.width/2+-1*n.mx*e.boundingBox.width/2,y:e.boundingBox.top+e.boundingBox.height/2+-1*n.my*e.boundingBox.height/2})}function Et(e,t,n,o){let r=e.lines;const i=St(e,o);return r=r.map((e=>e.map((e=>e.translate(i.scale(-1)).scale(t,n).translate(i))))),r}function Pt(e,t,n,o){let r;if(e instanceof j.o9)r=(0,i.aV)([e.startPoint,e.endPoint]);else{if(!(e instanceof j.Hi||e instanceof j.om))return(0,i.aV)();r=e.points}const a=St(e,o);return r=r.map((e=>e.translate(a.scale(-1)).scale(t,n).translate(a))),r}function xt(e,t,n){const o=Ct(e);if(o>0){const r=e.boundingBox,i=r.widtho.maxWidth&&(i=o.maxWidth),o.minWidth&&io.maxHeight&&(s=o.maxHeight),o.minHeight&&t.height4&&void 0!==arguments[4])||arguments[4],i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0;const l=e.boundingBox;let c;if((0,ot.o0)(e)&&!(0,ot.Ag)(e)){const o=yt(n),r=new j.E9({x:l.width/2*o.mx,y:l.height/2*o.my}),i=r.rotate(e.rotation),a=new j.E9({x:i.x+t.x,y:i.y+t.y}).rotate(-e.rotation);c=new j.E9({x:a.x-r.x,y:a.y-r.y})}else c=t;const u=bt(l,n,c,i,a);let d=u.rect;if(o&&(d=kt(u.keepToSide,l,d)),r&&s&&(null!=s&&s.maxHeight||null!=s&&s.maxWidth||null!=s&&s.minHeight||null!=s&&s.minWidth)){const t=Ct(e);s.minHeight=s.minHeight?s.minHeight:t,s.minWidth=s.minWidth?s.minWidth:t}else r&&(d=xt(e,d,o));const p=0!==l.width?d.width/l.width:0,f=0!==l.height?d.height/l.height:0,{translation:h,dragDifference:m}=wt(l,n,p,f,a);d=d.set("width",d.width+m.x).set("height",d.height+m.y),d=d.translate(h),(null!=s&&s.maxHeight||null!=s&&s.maxWidth||null!=s&&s.minHeight||null!=s&&s.minWidth)&&(d=Dt(e,d,o,s));const g=function(){const t=e.set("boundingBox",d),r=Math.sqrt(p*f);let i;return t instanceof j.gd?(0,vt.XA)((0,ot.Ag)(e)&&n===At[e.rotation]||!(0,ot.Ag)(e)&&n===gt.V.BOTTOM_RIGHT?t.set("fontSize",e.fontSize*r):t):t instanceof j.Zc?t.withMutations((e=>{e.set("lines",Et(t,p,f,o?Ot[n]:n)),e.set("lineWidth",t.lineWidth*r)})):t instanceof j.o9?(i=Pt(t,p,f,n),t.withMutations((e=>{e.set("startPoint",i.get(0)),e.set("endPoint",i.get(1))}))):t instanceof j.Hi||t instanceof j.om?(i=Pt(t,p,f,n),t.withMutations((e=>{e.set("boundingBox",d),e.set("points",i)}))):t}();return It(g,l)}function It(e,t){if((0,ot.o0)(e)&&!(0,ot.Ag)(e)){const n=new j.E9({x:e.boundingBox.getCenter().x-t.getCenter().x,y:e.boundingBox.getCenter().y-t.getCenter().y}).rotate(e.rotation);return e.update("boundingBox",(e=>e.set("left",t.left+n.x-(e.width-t.width)/2).set("top",t.top+n.y-(e.height-t.height)/2)))}return e}var Ft=n(73815);function Mt(e){var t,n,o,r;if(0===e.lines.size)return new j.UL;const i=e.lines.flatMap((e=>e)),a=Math.ceil((null===(t=i.maxBy((e=>e.x)))||void 0===t?void 0:t.x)+e.lineWidth/2),s=Math.ceil((null===(n=i.maxBy((e=>e.y)))||void 0===n?void 0:n.y)+e.lineWidth/2),l=Math.floor((null===(o=i.minBy((e=>e.x)))||void 0===o?void 0:o.x)-e.lineWidth/2),c=Math.floor((null===(r=i.minBy((e=>e.y)))||void 0===r?void 0:r.y)-e.lineWidth/2);return new j.UL({width:a-l,height:s-c,top:c,left:l})}function _t(e,t,n){const{width:o,height:r}=e.boundingBox,i=function(e,t){const{width:n,height:o}=e,r=t.width/n,i=t.height/o,a=Math.min(r,i);return new j.$u({width:n*a,height:o*a})}(new j.$u({width:o,height:r}),t);return Tt(e,new j.E9({x:i.width-o,y:i.height-r}),gt.V.BOTTOM_RIGHT,n,!1)}const Rt=e=>{const t=Math.abs(Math.ceil(Math.log10((0,Ft.L)()*e)));let n;return n=t>100?100:t,n},Nt=(e,t)=>{const n=e.first();if(1===e.size&&n)return[`L ${n.x},${n.y}`];const o=[`M ${n.x},${n.y}`],r=e.get(1);if(2===e.size&&r)return o.push(`L ${r.x},${r.y}`),o;for(let n=2,r=e.size;n{const t=e.first();return 1===e.size&&t?[`L ${t.x},${t.y}`]:e.reduce(((e,t,n)=>(n>0&&e.push(`L ${t.x},${t.y}`),e)),[`M ${t.x},${t.y}`])};function Bt(e){const t=Math.ceil(2*e)+4,n=Math.ceil(2*e)+4,o=document.createElement("canvas");o.width=t,o.height=n;const r=o.getContext("2d");return(0,Ne.k)(r),r.beginPath(),r.arc(e+2,e+2,e,0,2*Math.PI,!1),r.lineWidth=1,r.strokeStyle="rgba(0,0,0,.7)",r.stroke(),r.beginPath(),r.arc(e+2,e+2,e+1,0,2*Math.PI,!1),r.lineWidth=1,r.strokeStyle="white",r.stroke(),o.toDataURL()}function jt(e){if(tt.Mn||e<3)return"crosshair";const t=Bt(e),n=tt.SR;if("webkit"===n||"blink"===n){return`-webkit-image-set(\n url('${t}') 1x,\n url('${Bt(2*e)}') 2x\n ) ${e+2} ${e+2}, crosshair`}return`url('${t}') ${e+2} ${e+2}, crosshair`}var zt=n(70994),Kt=n.n(zt);function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ut(e){for(var t=1;t{e.persist(),e.isPrimary&&(e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null))})),(0,o.Z)(this,"_handlePress",((e,t)=>{this.precision=Rt(this.props.zoomLevel),this.props.dispatch((0,je.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,o.Z)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,o.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n}=this.props;t&&t(n,e),this.props.dispatch((0,je.Oc)(n.id))})),(0,o.Z)(this,"_handlePointerUp",(e=>{e.stopPropagation()})),(0,o.Z)(this,"el",null),(0,o.Z)(this,"_innerRef",(e=>{this.el=e}))}componentDidUpdate(){this.props.isFocused&&this.el&&this.el.focus()}render(){const{annotation:e,intl:{formatMessage:t},isSelectable:n,pathDataFromFragments:o,backend:r,zoomLevel:i,isDragging:a=!1,shouldKeepRenderingAPStream:s=!1}=this.props,{boundingBox:l,blendMode:c}=e,u=l.grow(tt.Ni?Je.wK:Je.XZ),d=Ut(Ut(Ut({},u.toJS()),n&&{cursor:"pointer"}),{},{outline:this.props.isFocused?J.A8:null}),p=c&&"normal"!==c?Ut({mixBlendMode:(0,J.vk)(c)},tt.G6?{transform:"translate3d(0,0,0)"}:null):{};return T.createElement("div",{style:p},T.createElement(Be,{zoomLevel:this.props.zoomLevel,applyZoom:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},T.createElement(_e.Z,{disabled:this.props.isDisabled,onClick:this._handleClick,onFocus:this._handleFocus,onBlur:this._handleBlur,onPointerUp:s?this._handlePointerUp:void 0,className:F()(Kt().container,"PSPDFKit-Ink-Annotation PSPDFKit-Annotation"),style:d,"data-annotation-id":e.id,"aria-label":`${t(Ke.Z.annotation)}: ${t(Ke.Z.inkAnnotation)}`,innerRef:this._innerRef},T.createElement(Wt,{annotation:e,onPointerDown:this._handlePointerDown,isSelectable:this.props.isSelectable,viewBox:u,pathDataFromFragments:o,renderInvisibleClickPath:s,precision:this.precision}),s&&r&&T.createElement(Pe.Reparent,{id:`annotation-ink-${e.id}`},T.createElement(lt,{annotation:e,backend:r,zoomLevel:i,label:t(Ke.Z.inkAnnotation),isDragging:a,onError:this.props.onError})))))}}const Gt=(0,Re.XN)(Vt,{forwardRef:!0}),Wt=function(e){let{annotation:t,isSelectable:n,viewBox:o,pathDataFromFragments:r=(()=>null),onPointerDown:a,renderInvisibleClickPath:s=!1,precision:l=Rt(1)}=e;const{ENABLE_INK_SMOOTH_LINES:c}=mt.Ei,u=T.useMemo((()=>c?e=>Nt(e,l):Lt),[l,c]),d=T.useRef([]),p=T.useCallback(((e,n,o)=>r(t.id,n,o)||(e=>e.reduce(((e,t)=>(null==t?e.push((0,i.aV)()):e[e.length-1]=e[e.length-1].push(t),e)),[(0,i.aV)()]).filter((e=>e.size>0)))(e).map(u).flat()),[r,u,t]);d.current=T.useMemo((()=>{t.lines.size!==d.current.length&&(d.current=[]);const e=[];return t.lines.forEach((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.aV)(),n=arguments.length>1?arguments[1]:void 0;e.push(p(t,n,d.current[n]))})),e}),[t,p]);const f=T.useMemo((()=>{const{strokeColor:e,lineWidth:o,lines:r}=t,i={stroke:(null==e?void 0:e.toCSSValue())||"transparent",strokeWidth:o,pointerEvents:"none"},l={strokeWidth:n?Math.max(tt.Ni?Je.wK:Je.XZ,o):0},u=F()({[Kt().path]:!0,[Kt().selectable]:!0,"PSPDFKit-Smooth-Lines":c}),p=r.map(((e,t)=>{const o=(r=d.current[t]).reduce(((e,t,n)=>(r[n-1]&&"M 0,0"!==r[n-1]||!t.startsWith("L")||e.push(t.replace("L","M")),e.push(t),e)),[]).join(" ");var r;return T.createElement("g",{key:t},!s&&T.createElement("path",{className:u,style:i,d:o,"data-testid":"ink-path"}),n&&T.createElement("path",{onPointerDown:a,className:u,style:l,stroke:"transparent",d:o,"data-testid":"clickable-path"}))}));return T.createElement("g",null,p)}),[t,n,a,c,s]),h=T.useMemo((()=>{const{backgroundColor:e,boundingBox:n}=t,o=F()({[Kt().rect]:!0,[Kt().selectable]:!!e}),r={fill:(null==e?void 0:e.toCSSValue())||"transparent"},{width:i,height:s,top:l,left:c}=n;return T.createElement("rect",{onPointerDown:a,x:c,y:l,width:i,height:s,className:o,style:r})}),[a,t,s]),m=`${o.left} ${o.top} ${o.width} ${o.height}`,g={left:0,top:0,width:"100%",height:"100%",opacity:t.opacity,overflow:"hidden"};return T.createElement("svg",{viewBox:m,style:g,className:Kt().svg,focusable:!1,"data-testid":"ink-svg"},h,f)};var qt=n(17090),Ht=n.n(qt);function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Yt(e){for(var t=1;tfunction(e){var t;switch((null===(t=e.action)||void 0===t?void 0:t.constructor)||null){case c.lm:{const t=e.action;return(0,a.kG)("string"==typeof t.uri,"URIAction requires `uri`"),{type:"a",props:{href:t.uri,"aria-label":t.uri}}}case c.Di:{const t=e.action;(0,a.kG)("number"==typeof t.pageIndex,"GoToAction requires `pageIndex`");const n=`#page=${t.pageIndex}`;return{type:"a",props:{href:n,"aria-label":n}}}case c.BO:{const t=e.action;return(0,a.kG)("boolean"==typeof t.includeExclude,"ResetFormAction requires `includeExclude`"),{type:"button",props:{type:"reset","aria-label":`Reset${t.fields?t.fields.join(" "):""}`}}}case c.pl:{const t=e.action;return(0,a.kG)("string"==typeof t.uri,"ResetFormAction requires `uri`"),(0,a.kG)("boolean"==typeof t.includeExclude,"ResetFormAction requires `includeExclude`"),{type:"button",props:{type:"submit","aria-label":`Submit to ${t.uri}`}}}default:return{type:"div",props:{}}}}(t)),[t]),C=T.useCallback((function(e){o(t,e)}),[t,o]),k=T.useCallback((function(e){r(t,e)}),[t,r]);return T.createElement(Be,{position:i.getLocation(),zoomLevel:s,disablePointerEvents:!0,isMultiAnnotationsSelected:h},T.createElement(_e.Z,{disabled:n,className:F()(`PSPDFKit-${t.constructor.readableName}-Annotation PSPDFKit-Annotation`),style:P,onClick:function(e){"keypress"===e.type&&function(e,n){(0,je.mg)(t,e,{selectedAnnotationShouldDrag:n,stopPropagation:!0})}(e,null)},onFocus:function(t){const{onFocus:n,annotation:o}=e;n&&n(o,t)},onBlur:function(t){const{onBlur:n,annotation:o}=e;n&&n(o,t),d((0,je.Oc)(o.id))},onPointerUp:u?function(e){e.stopPropagation()}:void 0,"data-annotation-id":t.id,"aria-label":"Link-annotation",innerRef:g,onMouseEnter:()=>{d((0,je.oX)(t.id))},onMouseLeave:()=>{d((0,je.IP)(t.id))}},T.createElement(D.type,(0,De.Z)({},D.props,{className:v,style:x,onFocus:C,onBlur:k,"data-annotation-id":t.id,tabIndex:n?-1:0,"aria-disabled":n?"true":"false"})),u&&p&&T.createElement(Pe.Reparent,{id:`annotation-link-${t.id}`},T.createElement(lt,{annotation:t,backend:p,zoomLevel:s,label:m(Ke.Z.linkAnnotation),isDragging:f,onError:e.onError}))))}));const Jt=Xt;var Qt=n(69939),en=n(18025),tn=n(72032),nn=n.n(tn);class on extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"el",null),(0,o.Z)(this,"_innerRef",(e=>{this.el=e})),(0,o.Z)(this,"onClick",(()=>{this.props.dispatch((0,Qt.i0)()),window.setTimeout((()=>{this.props.dispatch((0,je.VR)(this.props.annotation.id))}),0)})),(0,o.Z)(this,"_onPointerDownUp",(e=>{e.isPrimary&&(!this.props.isReadOnly&&e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null),this.props.isOpen||this.props.dispatch((0,je.IP)(this.props.annotation.id)),e.stopPropagation())})),(0,o.Z)(this,"_handlePress",((e,t)=>{this.props.dispatch((0,je.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0,ignoreReadOnly:!0}))})),(0,o.Z)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,o.Z)(this,"_onMouseEnter",(()=>{this.props.dispatch((0,je.oX)(this.props.annotation.id))})),(0,o.Z)(this,"_onMouseLeave",(()=>{this.props.dispatch((0,je.IP)(this.props.annotation.id))})),(0,o.Z)(this,"_onFocus",(e=>{this.props.onFocus&&this.props.onFocus(this.props.annotation,e)})),(0,o.Z)(this,"_onBlur",(e=>{this.props.onBlur&&this.props.onBlur(this.props.annotation,e),this.props.dispatch((0,je.Oc)(this.props.annotation.id))}))}componentDidUpdate(){this.props.isFocused&&this.el&&this.el.focus()}render(){const{intl:{formatMessage:e},backend:t,shouldKeepRenderingAPStream:o,isFocused:r}=this.props,i=!this.props.isOpen&&!this.props.isFullscreen&&!tt.Ni,{annotation:a,zoomLevel:s,rotation:l}=this.props,{boundingBox:c,color:u,icon:d}=a,{width:p,height:f}=c,h={width:p,height:f,transformOrigin:"top left",transform:`translate(${p*s/2-p/2}px, ${f*s/2-f/2}px)`,color:u.toCSSValue(),opacity:a.opacity,outline:r?J.A8:null},m=en.Y4[d]||en.Y4[en.Zi.COMMENT],g=(0,$.Oe)(m);let v;try{v=n(91435)(`./${m}.svg`)}catch(e){}const y=this.props.isReadOnly?{onPointerUp:this._onPointerDownUp}:{onPointerDown:this._onPointerDownUp},b=F()({"PSPDFKit-Annotation":!0,"PSPDFKit-Note-Annotation":!0,[`PSPDFKit-Note-Annotation-Icon-${g}`]:!0,[nn().annotation]:!0});return T.createElement(T.Fragment,null,T.createElement(Be,{position:c.getLocation(),zoomLevel:s,currentPagesRotation:l,noRotate:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},T.createElement(_e.Z,(0,De.Z)({},y,{onClick:this._handleClick,onFocus:this._onFocus,onBlur:this._onBlur,disabled:this.props.isDisabled,style:h,className:b,onMouseEnter:i?this._onMouseEnter:void 0,onMouseLeave:i?this._onMouseLeave:void 0,"data-annotation-id":a.id,"aria-label":`${e(Ke.Z.annotation)}: ${e(Ke.Z.noteAnnotation)}`,"aria-controls":`NoteAnnotationContent-${a.id}`,innerRef:this._innerRef}),o?T.createElement(Pe.Reparent,{id:`annotation-note-${a.id}`},T.createElement(lt,{annotation:a,zoomLevel:s,backend:t,label:e(Ke.Z.noteAnnotation),onError:this.props.onError})):v?T.createElement(Ye.Z,{src:v,className:nn().icon,role:"presentation"}):m)),!this.props.isOpen&&T.createElement(ue.TX,{id:`NoteAnnotationContent-${a.id}`}))}}const rn=(0,Re.XN)(on,{forwardRef:!0});const an=(0,A.$j)((function(e,t){let{annotation:n}=t;return{annotation:n,isFullscreen:e.viewportState.viewportRect.width<=Je.j1,rotation:e.viewportState.pagesRotation,isOpen:e.selectedAnnotationIds.has(n.id)&&"number"==typeof n.pageIndex}}),null,null,{forwardRef:!0})(rn),sn=an;var ln=n(34997),cn=n(26467);const un=e=>{let{lineCap:t,style:n,id:o,position:r}=e;return T.createElement("marker",{id:o,style:n,markerWidth:"5",markerHeight:"5",refX:"start"===r?3.75:.5,refY:"2",orient:"auto"},cn.O[t][`${r}Element`](n))};var dn=n(29978),pn=n.n(dn);const fn=e=>{let{isSelectable:t,onPointerDown:n,annotation:{strokeDashArray:o,strokeColor:r,strokeWidth:a,startPoint:s,endPoint:l,lineCaps:c,fillColor:u,pageIndex:d,id:p=(0,ln.SK)()},renderInvisibleClickPath:f=!1}=e;if(null===d||0===a&&!f)return null;const h={stroke:(null==r?void 0:r.toCSSValue())||"transparent",strokeWidth:a,fill:"transparent"},m=F()({[pn().visible]:!0}),g=t?tt.Ni?Math.max(Je.wK,a):Math.max(Je.XZ,a):0,v=F()({[pn().selectable]:!0}),y={stroke:(null==r?void 0:r.toCSSValue())||"transparent",pointerEvents:"none",fill:(null==u?void 0:u.toCSSValue())||"transparent",strokeWidth:1},b=`${p}-StartLineCap`,w=`${p}-EndLineCap`,S=(0,ee.CW)((0,i.aV)([s,l]),a,c||{}),E=S.first(),P=S.get(1),x={x1:void 0!==E?E.x:s.x,y1:void 0!==E?E.y:s.y,x2:void 0!==P?P.x:l.x,y2:void 0!==P?P.y:l.y},D=x.x1!==s.x||x.y1!==s.y,C=x.x2!==l.x||x.y2!==l.y,k=c&&D?`url(#${b})`:void 0,A=c&&C?`url(#${w})`:void 0;return T.createElement("g",{style:{strokeWidth:a}},(D||C)&&T.createElement("defs",null,c&&D&&c.start&&T.createElement(un,{style:y,lineCap:c.start,id:b,position:"start"}),c&&C&&c.end&&T.createElement(un,{style:y,lineCap:c.end,id:w,position:"end"})),!f&&T.createElement("line",{className:m,style:h,x1:x.x1,y1:x.y1,x2:x.x2,y2:x.y2,strokeDasharray:o?o.map((e=>e*a)).join(","):"",markerStart:k,markerEnd:A,strokeLinecap:"butt"}),t&&T.createElement("line",{onPointerDown:n,className:v,stroke:"transparent",style:{fill:"none",strokeWidth:g},x1:s.x,y1:s.y,x2:l.x,y2:l.y}))},hn=e=>{let{isSelectable:t,onPointerDown:n,annotation:o,renderInvisibleClickPath:r=!1}=e;const{strokeDashArray:i,strokeColor:a,strokeWidth:s,fillColor:l,pageIndex:c,boundingBox:u,cloudyBorderIntensity:d,cloudyBorderInset:p}=o,f=Number(d);if(null===c||0===s&&!l&&!r)return null;const{width:h,height:m,top:g,left:v}=u,y={stroke:(null==a?void 0:a.toCSSValue())||"transparent",strokeWidth:s,fill:(null==l?void 0:l.toCSSValue())||"transparent"},b=F()({[pn().visible]:!0,[pn().cloudy]:!!f,[pn().strokeDashArray]:!!i}),w=t?tt.Ni?Math.max(Je.wK,s):Math.max(Je.XZ,s):0,S={fill:l&&!l.equals(j.Il.TRANSPARENT)?"transparent":"none",strokeWidth:w},E=F()({[pn().selectable]:!0,[pn().cloudy]:!!f}),P=h>s?h-s:h/4,x=m>s?m-s:m/4,D=i?i.map((e=>e*s)).join(","):"",C=f>0,k=C?mn(f,p,u):"";return T.createElement(T.Fragment,null,!r&&(C?T.createElement("path",{d:k,className:b,style:y,strokeDasharray:D}):T.createElement("rect",{className:b,style:y,strokeDasharray:D,x:v+s/2,y:g+s/2,width:P,height:x})),t&&(C?T.createElement("path",{onPointerDown:n,d:k,className:E,style:S,stroke:"transparent"}):T.createElement("rect",{onPointerDown:n,className:E,stroke:"transparent",style:S,x:v+s/2,y:g+s/2,width:P,height:x})))},mn=(e,t,n)=>{const{left:o,top:r,width:i,height:a}=t instanceof j.eB?j.eB.applyToRect(t,n):n;return(0,ee.rr)({points:[[o,r],[o+i,r],[o+i,r+a],[o,r+a]],intensity:e})},gn=e=>{let{isSelectable:t,onPointerDown:n,annotation:o,renderInvisibleClickPath:r=!1}=e;const{strokeDashArray:i,strokeColor:a,strokeWidth:s,fillColor:l,pageIndex:c,boundingBox:u,cloudyBorderIntensity:d,cloudyBorderInset:p}=o,f=Number(d);if(null===c||0===s&&!l&&!r)return null;const{width:h,height:m,top:g,left:v}=u,y={stroke:(null==a?void 0:a.toCSSValue())||"transparent",strokeWidth:s,fill:(null==l?void 0:l.toCSSValue())||"transparent"},b=F()({[pn().visible]:!0,[pn().cloudy]:!!f,[pn().strokeDashArray]:!!i}),w=t?tt.Ni?Math.max(Je.wK,s):Math.max(Je.XZ,s):0,S={fill:l&&!l.equals(j.Il.TRANSPARENT)?"transparent":"none",strokeWidth:w},E=F()({[pn().selectable]:!0,[pn().cloudy]:!!f}),P=h>2*s?(h-s)/2:h/4,x=m>2*s?(m-s)/2:m/4,D=i?i.map((e=>e*s)).join(","):"",C=f>0,k=C?(0,ee.Hz)({boundingBox:u,cloudyBorderIntensity:f,cloudyBorderInset:p}):"";return T.createElement(T.Fragment,null,!r&&(C?T.createElement("path",{className:b,style:y,strokeDasharray:D,d:k}):T.createElement("ellipse",{className:b,style:y,strokeDasharray:D,cx:v+h/2,cy:g+m/2,rx:P,ry:x})),t&&(C?T.createElement("path",{onPointerDown:n,className:E,style:S,d:k,stroke:"transparent"}):T.createElement("ellipse",{onPointerDown:n,className:E,stroke:"transparent",style:S,cx:v+h/2,cy:g+m/2,rx:P,ry:x})))},vn=e=>{let{isSelectable:t,onPointerDown:n,annotation:o,renderInvisibleClickPath:r=!1}=e;const{strokeDashArray:i,strokeColor:a,strokeWidth:s,fillColor:l,pageIndex:c,points:u,cloudyBorderIntensity:d}=o,p=Number(d);if(null===c||0===u.size||0===s&&(!l||l.equals(j.Il.TRANSPARENT))&&!r)return null;const f={stroke:a?a.toCSSValue():"transparent",strokeWidth:s,fill:(null==l?void 0:l.toCSSValue())||"transparent"},h=F()({[pn().visible]:!0,[pn().cloudy]:!!p,[pn().strokeDashArray]:!!i}),m=t?tt.Ni?Math.max(Je.wK,s):Math.max(Je.XZ,s):0,g={fill:l&&!l.equals(j.Il.TRANSPARENT)?"transparent":"none",strokeWidth:m},v=F()({[pn().selectable]:!0,[pn().cloudy]:!!p}),y=u.first();if(void 0===y)return null;const b=1===u.size||2===u.size?u.push(y):u,w=i?i.map((e=>e*s)).join(","):"",S=p>0&&b.size>2,E=S?yn({annotation:o,intensity:p}):`${b.map((e=>`${e.x},${e.y}`)).join(" ")}`;return T.createElement(T.Fragment,null,!r&&(S?T.createElement("path",{className:h,style:f,strokeDasharray:w,d:E}):T.createElement("polygon",{className:h,style:f,strokeDasharray:w,points:E})),t&&(S?T.createElement("path",{onPointerDown:n,className:v,style:g,stroke:"transparent",d:E}):T.createElement("polygon",{onPointerDown:n,className:v,stroke:"transparent",style:g,points:E})))},yn=e=>{let{intensity:t,annotation:n}=e;return(0,ee.rr)({points:n.points.map((e=>[e.x,e.y])).toArray(),intensity:t})},bn=e=>{let{isSelectable:t,onPointerDown:n,annotation:{strokeDashArray:o,strokeColor:r,strokeWidth:i,lineCaps:a,fillColor:s,pageIndex:l,points:c,id:u=(0,ln.SK)()},renderInvisibleClickPath:d=!1}=e;if(null===l||void 0===c||0===c.size||0===i&&!d)return null;const p=c.first(),f=c.last();if(!p||!f)return null;const h={stroke:(null==r?void 0:r.toCSSValue())||"transparent",strokeWidth:i,fill:"transparent"},m=F()({[pn().visible]:!0}),g=t?tt.Ni?Math.max(Je.wK,i):Math.max(Je.XZ,i):0,v=F()({[pn().selectable]:!0}),y={stroke:(null==r?void 0:r.toCSSValue())||"transparent",pointerEvents:"none",fill:(null==s?void 0:s.toCSSValue())||"transparent",strokeWidth:1},b=`${u}-StartLineCap`,w=`${u}-EndLineCap`,S=1===c.size?` ${p.x},${p.y}`:"",E=(0,ee.CW)(c,i,a||{}),P=E.first(),x=E.last();if(!P||!x)return null;const D=a&&(P.x!==p.x||P.y!==p.y),C=a&&(x.x!==f.x||x.y!==f.y),k=`${E.map((e=>`${e.x},${e.y}`)).join(" ")}${S}`,A=a&&D?`url(#${b})`:void 0,O=a&&C?`url(#${w})`:void 0;return T.createElement("g",{style:{strokeWidth:i}},(D||C)&&T.createElement("defs",null,a&&D&&a.start&&T.createElement(un,{style:y,lineCap:a.start,id:b,position:"start"}),a&&C&&a.end&&T.createElement(un,{style:y,lineCap:a.end,id:w,position:"end"})),!d&&T.createElement("polyline",{className:m,style:h,points:k,strokeDasharray:o?o.map((e=>e*i)).join(","):"",markerStart:A,markerEnd:O}),t&&T.createElement("polyline",{onPointerDown:n,className:v,stroke:"transparent",style:{fill:"none",strokeWidth:g},points:k}))},wn=e=>{const{annotation:t,viewBox:n,isSelectable:o,onPointerDown:r,renderInvisibleClickPath:i=!1}=e,a=`${n.left} ${n.top} ${n.width} ${n.height}`,s={left:0,top:0,width:"100%",height:"100%",opacity:t.opacity,overflow:"hidden"},l=(e=>{switch(e){case j.o9:return fn;case j.b3:return hn;case j.Xs:return gn;case j.Hi:return vn;case j.om:return bn;default:throw new Error("Unexpected shape annotation type")}})(t.constructor);return T.createElement("svg",{viewBox:a,style:s,className:pn().svg,focusable:!1},T.createElement(l,{isSelectable:o,onPointerDown:r,annotation:t,renderInvisibleClickPath:i}))};var Sn=n(60840),En=n(63738);function Pn(e,t){return e.distance(t)>Je.c1}var xn=n(44763),Dn=n(39583);function Cn(e){const{pageIndex:t,currentAnnotation:n,onAnnotationUpdate:o,keepSelectedTool:r,interactionMode:a,defaultAutoCloseThreshold:s}=e,l=T.useRef(null),c=(0,A.v9)((e=>e.eventEmitter)),d=(0,A.I0)(),[p,f]=T.useState(!1),[h,m]=T.useState(null),g=T.useMemo((()=>(0,ee.sS)(n.constructor)),[n.constructor]),v=T.useCallback((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];d((0,Qt.FG)(e)),t&&(d((0,En.Ce)()),d((0,je.Df)((0,i.l4)([e.id]),null)),d((0,Qt.ZE)(e.id)),d((0,xn.eO)(null)))}),[d]),y=T.useCallback((()=>{(n instanceof j.om||n instanceof j.Hi)&&v(n,!0)}),[n,v]),b=T.useCallback(((e,r)=>{var a,s;let p=n;const f={annotations:(0,i.aV)([p]),reason:u.f.DRAW_START};c.emit("annotations.willChange",f);const h=new j.E9({x:e.x,y:e.y});if(p instanceof j.o9)p=p.merge({startPoint:h,endPoint:h});else if(p instanceof j.b3||p instanceof j.Xs){l.current=h;const e=p.cloudyBorderIntensity*Je.St+p.strokeWidth/2;p=p.merge({boundingBox:new j.UL({left:h.x,top:h.y,width:0,height:0}),cloudyBorderInset:p.cloudyBorderIntensity?p.cloudyBorderInset||j.eB.fromValue(e):null})}else if(p instanceof pe.Z){l.current=h;const e=new j.UL({left:h.x,top:h.y,width:0,height:0});p=p.merge({boundingBox:e,rects:(0,i.aV)([e])})}else(p instanceof j.Hi||p instanceof j.om)&&(p=p.update("points",(e=>e.push(h))));p=p.set("boundingBox",g(p));const m=p.pageIndex;if(null===m)p=p.set("pageIndex",t);else if(m!==t){p=p.set("pageIndex",t);const e=p instanceof pe.Z?Qt.hj:Qt.hX;d(e(p,t))}p instanceof j.Xs||!("isMeasurement"in p)||null===(a=(s=p).isMeasurement)||void 0===a||!a.call(s)||d((0,xn.eO)({magnifierLabel:p.getMeasurementDetails().label,drawnAnnotationID:p.id,drawnAnnotationPageIndex:p.pageIndex,magnifierCursorPosition:r})),o(p)}),[n,d,c,t,o,g]),w=T.useCallback(((e,t)=>{var r,a;let c=n;const u=e[e.length-1],y=t[t.length-1],b=new j.E9({x:u.x,y:u.y});if(c instanceof j.o9)c=c.set("endPoint",b);else if(c instanceof j.b3||c instanceof j.Xs){(0,Ne.k)(null!=l.current);const e=l.current,t=new j.UL({left:Math.min(e.x,b.x),top:Math.min(e.y,b.y),width:Math.abs(b.x-e.x),height:Math.abs(b.y-e.y)});c=c.merge({boundingBox:t})}else if(c instanceof pe.Z){(0,Ne.k)(null!=l.current);const e=l.current,t=new j.UL({left:Math.min(e.x,b.x),top:Math.min(e.y,b.y),width:Math.abs(b.x-e.x),height:Math.abs(b.y-e.y)});c=c.merge({boundingBox:t,rects:(0,i.aV)([t])})}else if(c instanceof j.Hi||c instanceof j.om){const e=c.points.size-1;if(h&&Pn(h,b))f(!1),m(null);else if(!p){const t=(0,Dn.K)(c,e,s),n=-1!==t;c=kn(c,b,n,t),n&&(v(c),f(!0),m(c.points.get(e)))}c.isMeasurement()&&"isMeasurement"in c&&d((0,xn.eO)({magnifierLabel:c.getMeasurementDetails().label,drawnAnnotationID:c.id,drawnAnnotationPageIndex:c.pageIndex,magnifierCursorPosition:y}))}c=c.set("boundingBox",g(c)),o(c),c instanceof j.Xs||c instanceof j.om||c instanceof j.Hi||!("isMeasurement"in c)||null===(r=(a=c).isMeasurement)||void 0===r||!r.call(a)||d((0,xn.eO)({magnifierLabel:c.getMeasurementDetails().label,magnifierCursorPosition:t[t.length-1]}))}),[n,g,o,h,p,s,v,d]),S=T.useCallback((()=>{var e,t;let l=n;const{left:p,top:f,width:h,height:m}=l.boundingBox,g={annotations:(0,i.aV)([l]),reason:u.f.DRAW_END};if(c.emit("annotations.willChange",g),l instanceof j.Xs||!("isMeasurement"in l)||null===(e=(t=l).isMeasurement)||void 0===e||!e.call(t)||d((0,xn.eO)(null)),l instanceof j.o9)Pn(l.startPoint,l.endPoint)?(d((0,Qt.FG)(l)),d((0,En.Ce)()),d((0,je.Df)((0,i.l4)([l.id]),null)),d((0,Qt.ZE)(l.id)),r&&d((0,En.yg)(l.constructor,a))):(l=l.merge({startPoint:new j.E9,endPoint:new j.E9,boundingBox:new j.UL}),o(l));else if(l instanceof j.b3||l instanceof j.Xs||l instanceof pe.Z)if(Pn(new j.E9({x:p,y:f}),new j.E9({x:p+h,y:f+m})))d((0,Qt.FG)(l)),d((0,je.Df)((0,i.l4)([l.id]),null)),l instanceof pe.Z||d((0,En.Ce)()),d((0,Qt.ZE)(l.id)),l instanceof pe.Z&&r&&d((0,En.t)()),r&&l instanceof j.UX&&d((0,En.yg)(l.constructor,a));else{const e=new j.UL;l=l instanceof pe.Z?l.merge({boundingBox:e,rects:(0,i.aV)([e])}):l.merge({boundingBox:e}),o(l)}else if(l instanceof j.Hi||l instanceof j.om){const e=l.points.size-1,t=(0,Dn.K)(l,e,s),n=-1!==t,o=kn(l,l.points.last(),n,t);n?v(o):d((0,Qt.FG)(o))}else d((0,Qt.FG)(l))}),[n,o,d,c,r,a]),E=(0,A.v9)((e=>(0,de.zi)(e,t))),P=T.useCallback((e=>e.apply(E)),[E]);return T.createElement(Sn.Z,{size:e.pageSize,onDrawStart:b,onDrawCoalesced:w,onDrawEnd:S,transformPoint:P,interactionMode:a,scrollElement:e.scrollElement,onDoubleClick:y,currentAnnotation:n,defaultAutoCloseThreshold:s,dispatch:d})}const kn=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3?arguments[3]:void 0;if(n){var r;const t=null===(r=e.get("points"))||void 0===r?void 0:r.get(o);return e.update("points",(e=>e.set(e.size-1,t)))}return e.update("points",(e=>e.set(e.size-1,t)))};var An,On;function Tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function In(e){for(var t=1;t{this.setState({currentShapeAnnotation:e,isDrawing:!0})}))}static getDerivedStateFromProps(e,t){return(0,i.is)(t.shapeAnnotationFromCurrentProps,e.shapeAnnotation)||(0,i.is)(t.currentShapeAnnotation,e.shapeAnnotation)?null:Fn(e)}componentDidMount(){this.props.dispatch((0,En.X2)())}componentWillUnmount(){this.props.dispatch((0,En.Zg)())}render(){const e=this.state.currentShapeAnnotation,{pageSize:t,viewportState:{zoomLevel:n}}=this.props,{boundingBox:o}=e,r=F()({[pn().canvas]:!0});return T.createElement("div",{className:r},T.createElement(Be,{zoomLevel:n,applyZoom:!0},e.isMeasurement()&&this.state.isDrawing?T.createElement("div",{className:"PSPDFKit-Measurement-Label",style:(0,G.KI)(e)},T.createElement(Rn,{value:e.getMeasurementDetails().label})):null,T.createElement("div",{style:In(In({},o.toJS()),{},{position:"absolute"})},T.createElement(wn,{isSelectable:!1,annotation:e,viewBox:o}))),T.createElement(Cn,{pageSize:t,pageIndex:this.props.pageIndex,currentAnnotation:e,onAnnotationUpdate:this._handleAnnotationUpdate,keepSelectedTool:this.props.keepSelectedTool,interactionMode:this.props.interactionMode,scrollElement:this.props.scrollElement,defaultAutoCloseThreshold:this.props.defaultAutoCloseThreshold}))}}const _n=(0,A.$j)(((e,t)=>{let{pageIndex:n}=t;return{viewportState:e.viewportState,clientToPageTransformation:(0,de.zi)(e,n),eventEmitter:e.eventEmitter,keepSelectedTool:e.keepSelectedTool,interactionMode:e.interactionMode,scrollElement:e.scrollElement,defaultAutoCloseThreshold:e.defaultAutoCloseThreshold}}))(Mn),Rn=e=>{let{value:t,isSecondaryMeasurement:n}=e;if(n&&t.includes("/")){const e=t.split("/");return T.createElement("span",null,"  (",T.createElement("span",null,e[0],An||(An=T.createElement(T.Fragment,null,"â„")),e[1]),")")}if(n&&!t.includes("/"))return T.createElement("span",null,"  (",T.createElement("span",null,t),")");if(!n&&t.includes("/")){const e=t.split("/");return T.createElement("span",null,e[0],On||(On=T.createElement(T.Fragment,null,"â„")),e[1],";")}return T.createElement("span",null,t)};function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ln(e){for(var t=1;t{e.isPrimary&&this.props.isSelectable&&(e.preventDefault(),this.handlePress(e,"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null))})),(0,o.Z)(this,"handlePress",((e,t)=>{this.props.dispatch((0,je.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,o.Z)(this,"handleClick",(e=>{"keypress"===e.type&&this.handlePress(e,null)})),(0,o.Z)(this,"handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"handleBlur",(e=>{const{onBlur:t,annotation:n}=this.props;t&&t(n,e),this.props.dispatch((0,je.Oc)(n.id))})),(0,o.Z)(this,"handlePointerUp",(e=>{e.stopPropagation()})),(0,o.Z)(this,"el",null),(0,o.Z)(this,"innerRef",(e=>{this.el=e}))}componentDidUpdate(){this.props.isFocused&&this.el&&this.el.focus()}render(){const{annotation:e,intl:{formatMessage:t},zoomLevel:n,backend:o,isDragging:r,shouldKeepRenderingAPStream:i}=this.props,{boundingBox:a}=e;let s;s=!!((0,G.S6)(e)&&!e.measurementBBox&&(a.width<100||a.height<100)||e.isMeasurement()&&!i);const l=a.grow(tt.Ni?Je.wK:Je.XZ),c=Ln(Ln({},l.toJS()),{},{outline:this.props.isFocused?J.A8:null}),u=e.constructor.readableName,d=u&&Ke.Z[`${u.charAt(0).toLowerCase()+u.slice(1)}Annotation`],p=(0,J.vk)(e.blendMode),f=p?{mixBlendMode:p}:{},h=e.isMeasurement()&&this.props.secondaryMeasurementUnit&&(0,G.Rw)(e,this.props.secondaryMeasurementUnit);return T.createElement(Be,{zoomLevel:n,additionalStyle:f,applyZoom:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},e.isMeasurement()&&s&&T.createElement("div",{className:"PSPDFKit-Measurement-Label",style:(0,G.KI)(e,!!h)},T.createElement(Rn,{value:e.getMeasurementDetails().label}),h?T.createElement(Rn,{value:h.label,isSecondaryMeasurement:!0}):null),T.createElement(_e.Z,{disabled:this.props.isDisabled,className:F()(pn().container,`PSPDFKit-${jn(e)}-Annotation`,"PSPDFKit-Shape-Annotation","PSPDFKit-Annotation"),style:c,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onPointerUp:i?this.handlePointerUp:void 0,"data-annotation-id":e.id,"aria-label":`${t(Ke.Z.annotation)}${u&&d?`: ${t(d)}`:""}`,innerRef:this.innerRef},T.createElement(wn,{annotation:e,onPointerDown:this.handlePointerDown,isSelectable:this.props.isSelectable,viewBox:l,renderInvisibleClickPath:i}),i&&T.createElement(Pe.Reparent,{id:`annotation-shape-${e.id}`},T.createElement(lt,{annotation:e,zoomLevel:n,backend:o,label:t(u&&d?d:Ke.Z.annotation),isDragging:r,onError:this.props.onError}))))}}function jn(e){const t=e.constructor.readableName;return e.isMeasurement()?"Line"===t?"Distance":"Polyline"===t?"Perimeter":"Polygon"===t?"Polygon-Area":"Rectangle"===t?"Rectangle-Area":"Ellipse"===t?"Ellipse-Area":void 0:t}const zn=(0,Re.XN)(Bn,{forwardRef:!0});function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}class Zn extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"_handlePointerDown",(e=>{e.isPrimary&&this.props.isSelectable&&this._handlePress(e,"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null)})),(0,o.Z)(this,"_handlePress",((e,t)=>{this.props.dispatch((0,je.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,o.Z)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,o.Z)(this,"_handlePointerUp",(e=>{e.stopPropagation()})),(0,o.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n}=this.props;t&&t(n,e),this.props.dispatch((0,je.Oc)(n.id))})),(0,o.Z)(this,"el",null),(0,o.Z)(this,"_innerRef",(e=>{this.el=e}))}componentDidUpdate(){this.props.isFocused&&this.el&&this.el.focus()}render(){const{annotation:e,globalAnnotation:t,onRenderFinished:n,zoomLevel:r,backend:i,isSelectable:a,isDisabled:s,isDragging:l,cursor:c,intl:{formatMessage:u},isFocused:d}=this.props,{boundingBox:p,id:f}=e,h=function(e){for(var t=1;t{var n;let{annotation:{callout:r,borderWidth:i,borderStyle:s,boundingBox:l,borderColor:c,id:u,backgroundColor:d,verticalAlign:p,fontSize:f,font:h},annotation:m,children:g,isEditing:v}=e;const y=(0,A.I0)(),b=T.useRef(null),w=(0,A.v9)((e=>e.viewportState.zoomLevel));(0,a.kG)(r,"CalloutTextComponent: callout is undefined");const S=(0,T.useRef)(!0);(0,Wn.useGranularLayoutEffect)((()=>{if(S.current)S.current=!1;else{var e;const t=null===(e=b.current)||void 0===e?void 0:e.getBoundingClientRect();if(!t)return;const n=(0,qn.Vq)({annotation:m,rect:t,zoomLevel:w,callout:m.callout,text:m.text});n&&y((0,Qt.FG)(n))}}),[f,h],[m,w]);const E=null===(n=r.innerRectInset)||void 0===n?void 0:n.setScale(w),P=function(e){for(var t=1;t{(0,a.kG)(e,"CalloutTextComponent: point is undefined");const{x:t,y:n}=function(e,t,n){return{x:(e.x-t.left)*n,y:(e.y-t.top)*n}}(e,l,w);return`${t},${n}`})).join(" ");return T.createElement(T.Fragment,null,T.createElement("svg",{style:{position:"absolute",inset:0},width:D.width,height:D.height,stroke:null==c?void 0:c.toCSSValue(),viewBox:`0 0 ${D.width} ${D.height}`},T.createElement("g",null,r.cap&&T.createElement("defs",null,T.createElement(un,{lineCap:r.cap,style:C,id:x,position:"start"})),T.createElement("polyline",{fill:"none",points:k,stroke:(null==c?void 0:c.toCSSValue())||"black",strokeWidth:i||void 0,markerStart:`url(#${x})`}))),T.createElement("div",{style:P,ref:t,className:"Callout"},T.createElement("div",{style:{verticalAlign:"center"===p?"middle":p,display:"inline-block"},ref:b},g)))}));const Yn=["backgroundColor"];function Xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Jn(e){for(var t=1;t{this.el=e})),(0,o.Z)(this,"onClick",(e=>{"function"==typeof this.props.onClick&&this.props.onClick(e),window.setTimeout((()=>{this.props.dispatch((0,je.VR)(this.props.annotation.id))}),0)})),(0,o.Z)(this,"_handlePointerDown",(e=>{e.isPrimary&&this.props.isSelectable&&(e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null))})),(0,o.Z)(this,"_handlePress",((e,t)=>{"function"==typeof this.props.onClick?this.onClick(e):this.props.dispatch((0,je.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,o.Z)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,o.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n}=this.props;t&&t(n,e),this.props.dispatch((0,je.Oc)(n.id))})),(0,o.Z)(this,"_handlePointerUp",(e=>{e.stopPropagation()}))}componentDidUpdate(){this.props.isFocused&&this.el&&this.el.focus()}render(){const{annotation:{boundingBox:e},annotation:t,globalAnnotation:n,zoomLevel:o,isDisabled:i,isSelectable:a,intl:{formatMessage:s},backend:l,isDragging:c,cursor:u,shouldKeepRenderingAPStream:d,isFocused:p,isMultiAnnotationsSelected:f}=this.props,h=Jn(Jn({},(0,vt.z1)(t.isFitting?(0,vt.MF)(t,o):t,o,d)),{},{cursor:u||(a?"pointer":"auto"),outline:p?J.A8:null},(0,ot.kv)(t)&&d?{transformOrigin:"50% 50%",transform:`rotate(${String(-t.rotation)}deg)`}:null),{backgroundColor:m}=h,g=(0,r.Z)(h,Yn),v="xhtml"===t.text.format;let y;var b,w;d||(y=v?T.createElement("div",{dangerouslySetInnerHTML:{__html:null===(b=t.text)||void 0===b?void 0:b.value}}):(0,vt.hr)(null===(w=t.text)||void 0===w?void 0:w.value),v&&(g.color=void 0));return T.createElement(Be,{position:e.getLocation(),zoomLevel:o,isMultiAnnotationsSelected:f},T.createElement(pt.Z,{onPointerUp:d?this._handlePointerUp:void 0},T.createElement(_e.Z,{disabled:i,onPointerDown:this._handlePointerDown,onClick:this._handleClick,onFocus:this._handleFocus,onBlur:this._handleBlur,style:Jn(Jn({},g),{},{backgroundColor:(0,J.Vc)(t)?void 0:m}),className:`${Gn().annotation} PSPDFKit-Text-Annotation PSPDFKit-Annotation`,"data-annotation-id":t.id,"aria-label":`${s(Ke.Z.annotation)}: ${s(Ke.Z.textAnnotation)}`,innerRef:this._innerRef},d?T.createElement(Pe.Reparent,{id:`annotation-text-${t.id}`},T.createElement(lt,{annotation:n,zoomLevel:o,backend:l,label:s(Ke.Z.textAnnotation),isDragging:c,onError:this.props.onError})):t.callout?T.createElement($n,{annotation:t},y):y)))}}const eo=(0,Re.XN)(Qn,{forwardRef:!0});var to=n(54670),no=n(20276),oo=n(92135),ro=n.n(oo);function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ao(e){for(var t=1;t{if(n&&t.overlayText&&t.repeatOverlayText){const e=new to.default(`${l}px Helvetica, sans-serif`),{width:n}=e.measureText(t.overlayText);s(n),e.clean()}}),[n,t.overlayText,t.repeatOverlayText,l,s]);const d=T.useMemo((()=>t.overlayText&&!t.repeatOverlayText?t.rects.sortBy({0:e=>[e.top,e.left],90:e=>[e.left,-e.top],180:e=>[-e.top,-e.left],270:e=>[-e.left,e.top]}[t.rotation||"0"],ze.b).first():null),[t.overlayText,t.repeatOverlayText,t.rects,t.rotation]),p=t.rects.map(((e,s)=>{const c=e.scale(o),{overlayText:p,textHeight:f}=function(e,t,n,o,r,i){let a=e.overlayText,s=o;if(t&&a&&e.repeatOverlayText&&n){const e=i.width/n,t=Math.max(1,Math.floor(i.height/o)),l=Math.ceil(e*t);s=o*t,s+r<=i.height&&(s+=r),a=a.repeat(l)}return{overlayText:a,textHeight:s}}(t,n,a,u,l,c),h={fontSize:l,lineHeight:`${u}px`,height:t.repeatOverlayText?f:"100%"};if((0,ot.kv)(t)){const e=90===t.rotation||270===t.rotation;h.transformOrigin="50% 50%",h.transform=(e?`translate(${Math.round(c.width/2-c.height/2)}px, ${-Math.round(c.width/2-c.height/2)}px) `:"")+`rotate(${String(-t.rotation)}deg)`,e&&(h.width=c.height,h.height=c.width)}const m={top:(e.top-i.top)*o,left:(e.left-i.left)*o,width:c.width,height:c.height,cursor:r?"pointer":"auto",backgroundColor:n?"white":void 0},g={width:c.width,height:c.height},v=ao(ao({},g),{},{border:t.outlineColor instanceof j.Il?`2px solid ${t.outlineColor.toCSSValue()}`:void 0,opacity:t.opacity}),y=ao(ao({},g),{},{border:0,color:t.color instanceof j.Il?t.color.toCSSValue():void 0,backgroundColor:t.fillColor instanceof j.Il?t.fillColor.toCSSValue():"black",opacity:t.opacity}),b=F()({[ro().textContainer]:!0,[ro().selectable]:!0});return T.createElement("div",{key:s,className:ro().rectContainer,style:m},T.createElement("div",{className:b,style:n?y:v},n&&(t.repeatOverlayText||e.equals(d))&&T.createElement("span",{className:ro().textSpan,style:h},p)))}));return T.createElement(T.Fragment,null,p)}const lo=function(e){const{isSelectable:t,dispatch:n,annotation:o,zoomLevel:r,onFocus:i,onBlur:a,active:s,isDisabled:l,isMultiAnnotationsSelected:c}=e,{boundingBox:u}=o,d=T.useRef(s),p=T.useCallback((e=>{n((0,je.mg)(o,e))}),[n,o]),f=T.useCallback((e=>{i&&i(o,e)}),[i,o]),h=T.useCallback((e=>{a&&a(o,e)}),[a,o]),m=T.useRef(null),g=(0,A.v9)((e=>e.previewRedactionMode));T.useEffect((()=>{m.current&&m.current.ownerDocument.activeElement!==m.current&&(!d.current&&s?m.current.focus():d.current&&!s&&l&&h((0,no.M)("blur"))),d.current=s}),[s,h,l]);const v={width:u.width*r,height:u.height*r,cursor:t?"pointer":"auto"};return T.createElement(Be,{zoomLevel:e.zoomLevel,position:u.getLocation(),className:ro().wrapper,disablePointerEvents:!0,isMultiAnnotationsSelected:c},T.createElement(_e.Z,{is:"div",disabled:Boolean(e.isDisabled),className:F()(ro().container,"PSPDFKit-Redaction-Annotation PSPDFKit-Annotation",s&&!e.isDisabled&&"PSPDFKit-Annotation-Selected",s&&!e.isDisabled&&"PSPDFKit-Redaction-Annotation-Selected"),style:v,"data-annotation-id":o.id,onClick:p,onFocus:f,onBlur:h,innerRef:m},e.active?T.createElement("div",{className:ro().active}):null,T.createElement(so,{annotation:o,previewRedactionMode:g,isSelectable:t,zoomLevel:r})))};var co,uo=n(65642),po=n.n(uo);class fo extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"shouldComponentUpdate",ze.O)}render(){const{color:e,markupStyle:t,zoomLevel:n,pageRotation:o}=this.props,r=(0,ln.SK)(),i=0!==o?{transform:`rotate(${90*o}deg)`}:{};return T.createElement("svg",{className:po().markup,style:t,focusable:!1},T.createElement("defs",null,T.createElement("pattern",{id:r,width:"8",height:"3",patternUnits:"userSpaceOnUse",fill:e instanceof j.Il?e.toCSSValue():"transparent",style:i},co||(co=T.createElement("path",{d:"M8 2.9C7.2 2.9 6.7 2.3 6.5 1.9 6.2 1.5 6.1 1.4 6 1.4 5.9 1.4 5.8 1.5 5.5 1.9 5.3 2.3 4.8 2.9 4 2.9 3.2 2.9 2.7 2.3 2.5 1.9 2.2 1.5 2.1 1.4 2 1.4 1.9 1.4 1.8 1.5 1.5 1.9 1.3 2.3 0.8 2.9 0 2.9L0 1.6C0.1 1.6 0.2 1.5 0.5 1.1 0.7 0.7 1.2 0.1 2 0.1 2.8 0.1 3.3 0.7 3.5 1.1 3.8 1.5 3.9 1.6 4 1.6 4.1 1.6 4.2 1.5 4.5 1.1 4.7 0.7 5.2 0.1 6 0.1 6.8 0.1 7.3 0.7 7.5 1.1 7.8 1.5 7.9 1.6 8 1.6L8 2.9 8 2.9Z"})))),T.createElement("rect",{fill:`url(#${r})`,width:"100%",height:"100%",transform:`scale(${n<1?`1, ${n}`:`${n}`})`}))}}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function mo(e){for(var t=1;t{this.el=e})),(0,o.Z)(this,"_handlePress",(e=>{this.props.dispatch((0,je.mg)(this.props.annotation,e))})),(0,o.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n}=this.props;t&&t(n,e),this.props.dispatch((0,je.Oc)(n.id))})),(0,o.Z)(this,"_handleCommentIconPress",(e=>{this._handlePress(e),e.stopPropagation()}))}componentDidUpdate(e){this.el&&this.el.ownerDocument.activeElement!==this.el&&(this.props.isFocused&&this.el&&this.el.focus(),!e.active&&this.props.active?this.el.focus():e.active&&!this.props.active&&this.props.isDisabled&&this._handleBlur((0,no.M)("blur")))}render(){const{active:e,annotation:t,zoomLevel:n,isSelectable:o,intl:{formatMessage:r},backend:i,shouldKeepRenderingAPStream:s,pageRotation:l}=this.props,c=t instanceof j.FV,{boundingBox:u}=t,d=t.rects.map(((r,i)=>{const a=F()({[po().annotationRect]:!0,[po()[t.constructor.className]]:!0}),s={top:(r.top-u.top)*n,left:(r.left-u.left)*n,width:r.width*n,height:r.height*n,opacity:t.opacity,cursor:o?"pointer":"auto"},d=function(e){let{annotation:t,rect:n,zoomLevel:o,pageRotation:r}=e;const i={width:n.width*o,height:n.height*o,backgroundColor:t.color instanceof j.Il?t.color.toCSSValue():"transparent"};if(t instanceof j.R9)switch(r){case 0:return mo(mo({},i),{},{height:Math.max(1,Math.floor(2*o)),marginTop:Math.max(1,Math.floor(-1*o))});case 1:return mo(mo({},i),{},{width:Math.max(1,Math.floor(2*o)),left:"auto",right:"50%",top:0,marginRight:Math.max(1,Math.floor(-1*o))});case 2:return mo(mo({},i),{},{height:Math.max(1,Math.floor(2*o)),top:"auto",bottom:"50%",marginBottom:Math.max(1,Math.floor(-1*o))});case 3:return mo(mo({},i),{},{width:Math.max(1,Math.floor(2*o)),right:"auto",left:"50%",top:0,marginLeft:Math.max(1,Math.floor(-1*o))})}else if(t instanceof j.xu)switch(r){case 0:return mo(mo({},i),{},{marginTop:Math.max(1,Math.floor(2*o)),height:Math.max(1,Math.floor(2*o))});case 1:return mo(mo({},i),{},{marginRight:Math.max(1,Math.floor(2*o)),width:Math.max(1,Math.floor(2*o))});case 2:return mo(mo({},i),{},{marginBottom:Math.max(1,Math.floor(2*o)),height:Math.max(1,Math.floor(2*o)),top:0});case 3:return mo(mo({},i),{},{width:Math.max(1,Math.floor(2*o)),left:"auto",marginLeft:Math.max(1,Math.floor(2*o))})}else if(t instanceof j.hL)switch(r){case 0:return mo(mo({},i),{},{height:3*o,overflow:"hidden"});case 1:return mo(mo({},i),{},{width:3*o,overflow:"hidden"});case 2:return mo(mo({},i),{},{height:3*o,top:0,overflow:"hidden"});case 3:return mo(mo({},i),{},{width:3*o,left:"auto",overflow:"hidden"})}return i}({annotation:t,rect:r,zoomLevel:n,pageRotation:l}),p={backgroundColor:t.color instanceof j.Il?t.color.toCSSValue():"transparent"};return T.createElement("div",{key:i,className:a,style:s},e?T.createElement("div",{className:F()({[po().active]:!c}),style:p}):null,t instanceof j.hL?T.createElement(fo,{markupStyle:d,color:t.color,zoomLevel:n,pageRotation:l}):T.createElement("div",{className:po().markup,style:d}))})).toArray(),p=(0,J.vk)(t.blendMode),f=p?{mixBlendMode:p}:void 0,h=mo({width:u.width*n,height:u.height*n,cursor:o?"pointer":"auto",outline:this.props.isFocused?J.A8:null},tt.G6?null:f),m=function(e){switch(e.constructor){case j.FV:return"Highlight";case j.R9:return"StrikeOut";case j.xu:return"Underline";case j.hL:return"Squiggle";default:throw new a.p2(`Unknown text markup annotation type of annotation: ${JSON.stringify(e.toJS())}`)}}(t),g=Ke.Z[`${m.charAt(0).toLowerCase()+m.slice(1)}Annotation`],v=F()(po().annotation,"PSPDFKit-Annotation","PSPDFKit-Text-Markup-Annotation",`PSPDFKit-${m}-Annotation`,{[po().activeTextMarkup]:e&&c,[po().highlight]:c,"PSPDFKit-Text-Markup-Annotation-selected":e,"PSPDFKit-Text-Markup-Comment-Annotation":t.isCommentThreadRoot}),y={};return e&&(y["data-testid"]="selected annotation"),T.createElement(Be,{position:u.getLocation(),zoomLevel:n,disablePointerEvents:!0,additionalStyle:tt.G6?f:void 0},T.createElement(_e.Z,(0,De.Z)({is:"div",style:h,className:v,onClick:this._handlePress,onFocus:this._handleFocus,onBlur:this._handleBlur,disabled:!!this.props.isDisabled,"data-annotation-id":t.id,"aria-label":`${r(Ke.Z.annotation)}: ${r(g)}`,innerRef:this._innerRef},y),T.createElement(T.Fragment,null,s&&T.createElement(lt,{annotation:t,zoomLevel:n,backend:i,label:r(g),onError:this.props.onError}),(!s||e)&&d)))}}(0,o.Z)(go,"defaultProps",{active:!1});const vo=(0,Re.XN)(go,{forwardRef:!0});var yo=n(68108),bo=n.n(yo);function wo(e){let{annotation:t,zoomLevel:n,isDisabled:o,backend:r,isFocused:i,isMultiAnnotationsSelected:a}=e;const s=T.useRef(null),{formatMessage:l}=(0,Re.YB)(),{boundingBox:c}=t,u={width:c.width*n,height:c.height*n};return T.useEffect((()=>{i&&s.current&&s.current.focus()}),[i]),T.createElement(Be,{position:c.getLocation(),zoomLevel:n,applyZoom:!0,isMultiAnnotationsSelected:a},T.createElement(_e.Z,{disabled:o,className:F()(bo().annotation,"PSPDFKit-Annotation-Unknown PSPDFKit-Annotation-Unsupported PSPDFKit-Annotation"),style:u,"data-annotation-id":t.id,"aria-label":l(Ke.Z.annotation),innerRef:s},r&&T.createElement(lt,{annotation:t,backend:r,zoomLevel:n,label:l(Ke.Z.annotation)})))}var So=n(19815),Eo=n(55961),Po=n(23661),xo=n.n(Po),Do=n(29544),Co=n.n(Do);function ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ao(e){for(var t=1;t{this.props.dispatch((0,je.mg)(this.props.annotation,e))})),(0,o.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n,annotationToFocus:o}=this.props;o===n.id&&this.props.dispatch((0,Qt.vy)(null)),t&&t(n,e)}))}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;var o;n!==t&&this.props.annotation.id===t&&(null===(o=this._inputRef.current)||void 0===o||o.focus())}render(){const{annotation:e,formField:{name:t,readOnly:n,buttonLabel:o,label:r},zoomLevel:i,formDesignMode:a,isRenderingAPStream:s,canFillFormFieldCP:l}=this.props,c="number"==typeof e.fontSize?e.fontSize:12,u=Ao({width:Math.ceil(e.boundingBox.width*i),height:Math.ceil(e.boundingBox.height*i)},s?{opacity:0}:Ao(Ao({},(0,nt.i2)(e,i)),{},{fontSize:Math.ceil(c*i),justifyContent:e.verticalAlign&&Io[e.verticalAlign]||"center",alignItems:e.horizontalAlign&&Fo[e.horizontalAlign]||"center"})),d=l&&!n,p=!d||a,f=F()({[xo().widget]:!0,[xo().onFocus]:!0,[xo().readOnly]:!d,[xo().flexText]:!0,[Co().btn]:!p,[Co().btnFormDesigner]:a,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-Button":!0,"PSPDFKit-Annotation-Widget-read-only":!d});return T.createElement("button",{ref:this._inputRef,className:f,disabled:p,name:t,type:To(e),style:u,onClick:this._handleClickAction,onFocus:this._handleFocus,onBlur:this._handleBlur},o||r||"")}}function To(e){const{action:t}=e;if(!t)return"button";switch(t.constructor){case c.BO:return"reset";case c.pl:return"submit";default:return"button"}}const Io={top:"flex-start",center:"center",bottom:"flex-end"},Fo={left:"flex-start",center:"center",right:"flex-end"};var Mo=n(96114),_o=n(69554),Ro=n.n(_o);function No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}class Lo extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"state",{checked:(0,nt.CK)(this.props.formField,this.props.annotation)}),(0,o.Z)(this,"UNSAFE_componentWillReceiveProps",(e=>{e.formField.values.equals(this.props.formField.values)||this.setState({checked:(0,nt.CK)(e.formField,e.annotation)})})),(0,o.Z)(this,"_inputRef",T.createRef()),(0,o.Z)(this,"_onChange",(()=>{const{formField:e,annotation:t}=this.props,n=(0,nt.l_)(e,t),o=this.state.checked?(0,i.aV)(["Off"]):(0,i.aV)([n]),r=(0,nt.g6)(e,t,!this.state.checked);this.setState({checked:!this.state.checked}),this.props.dispatch((0,Mo.xh)([{name:e.name,value:o,optionIndexes:r}]))})),(0,o.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;null==t||t(n,e)})),(0,o.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n}=this.props;this.props.annotationToFocus===this.props.annotation.id&&this.props.dispatch((0,Qt.vy)(null)),null==t||t(n,e)}))}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;var o;n!==t&&this.props.annotation.id===t&&(null===(o=this._inputRef.current)||void 0===o||o.focus())}render(){const{annotation:{id:e},annotation:t,zoomLevel:r,formField:i,formDesignMode:a,isRenderingAPStream:s,canFillFormFieldCP:l}=this.props,{readOnly:c}=i,u=(0,nt.l_)(i,t),d=function(e){for(var t=1;t=this.itemCount)throw Error("Requested index "+e+" is outside of range 0.."+this.itemCount);if(e>this.lastMeasuredIndex){for(var t=this.getSizeAndPositionOfLastMeasuredItem(),n=t.offset+t.size,o=this.lastMeasuredIndex+1;o<=e;o++){var r=this.itemSizeGetter(o);if(null==r||isNaN(r))throw Error("Invalid size returned for index "+o+" of value "+r);this.itemSizeAndPositionData[o]={offset:n,size:r},n+=r}this.lastMeasuredIndex=e}return this.itemSizeAndPositionData[e]},e.prototype.getSizeAndPositionOfLastMeasuredItem=function(){return this.lastMeasuredIndex>=0?this.itemSizeAndPositionData[this.lastMeasuredIndex]:{offset:0,size:0}},e.prototype.getTotalSize=function(){var e=this.getSizeAndPositionOfLastMeasuredItem();return e.offset+e.size+(this.itemCount-this.lastMeasuredIndex-1)*this.estimatedItemSize},e.prototype.getUpdatedOffsetForIndex=function(e){var t=e.align,n=void 0===t?qo:t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a,s=this.getSizeAndPositionForIndex(i),l=s.offset,c=l-o+s.size;switch(n){case"end":a=c;break;case Ho:a=l-(o-s.size)/2;break;case qo:a=l;break;default:a=Math.max(c,Math.min(l,r))}var u=this.getTotalSize();return Math.max(0,Math.min(u-o,a))},e.prototype.getVisibleRange=function(e){var t=e.containerSize,n=e.offset,o=e.overscanCount;if(0===this.getTotalSize())return{};var r=n+t,i=this.findNearestItem(n);if(void 0===i)throw Error("Invalid offset "+n+" specified");var a=this.getSizeAndPositionForIndex(i);n=a.offset+a.size;for(var s=i;n=e?this.binarySearch({high:n,low:0,offset:e}):this.exponentialSearch({index:n,offset:e})},e.prototype.binarySearch=function(e){for(var t=e.low,n=e.high,o=e.offset,r=0,i=0;t<=n;){if(r=t+Math.floor((n-t)/2),(i=this.getSizeAndPositionForIndex(r).offset)===o)return r;io&&(n=r-1)}return t>0?t-1:0},e.prototype.exponentialSearch=function(e){for(var t=e.index,n=e.offset,o=1;t=n)&&(e=0),this.sizeAndPositionManager.getUpdatedOffsetForIndex({align:t,containerSize:this.props[er[r]],currentOffset:this.state&&this.state.offset||0,targetIndex:e})},t.prototype.getSize=function(e){var t=this.props.itemSize;return"function"==typeof t?t(e):Array.isArray(t)?t[e]:t},t.prototype.getStyle=function(e){var t=this.styleCache[e];if(t)return t;var n,o=this.props.scrollDirection,r=void 0===o?$o:o,i=this.sizeAndPositionManager.getSizeAndPositionForIndex(e),a=i.size,s=i.offset;return this.styleCache[e]=Uo({},ir,((n={})[er[r]]=a,n[tr[r]]=s,n))},t.prototype.recomputeSizes=function(e){void 0===e&&(e=0),this.styleCache={},this.sizeAndPositionManager.resetItem(e)},t.prototype.render=function(){var e,t=this.props,n=(t.estimatedItemSize,t.height),o=t.overscanCount,r=void 0===o?3:o,i=t.renderItem,a=(t.itemCount,t.itemSize,t.onItemsRendered),s=(t.onScroll,t.scrollDirection),l=void 0===s?$o:s,c=(t.scrollOffset,t.scrollToIndex,t.scrollToAlignment,t.style),u=t.width,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{if(e.isEmpty())return"";{const t=this.props.formField.options.find((t=>t.get("value")===e.first()));return t?t.label:e.first()||""}})),(0,o.Z)(this,"state",{initialValue:this._getInput(this.props.formField.values),value:this._getInput(this.props.formField.values),values:this.props.formField.values,isOpen:!1,isFocused:!1,textSelected:!1}),(0,o.Z)(this,"_getSelectedLabel",(()=>{const{options:e}=this.props.formField,t=this.state.values.first(),n=e.find((e=>e.value===t));return n&&n.label||t})),(0,o.Z)(this,"UNSAFE_componentWillReceiveProps",(e=>{e.formField.values!==this.props.formField.values&&this.setState({values:e.formField.values})})),(0,o.Z)(this,"_onChange",(e=>{const t=e.currentTarget,{value:n}=t,{backend:o,formField:r,annotation:i}=this.props;if(!(0,nt.sC)(o,i,r))return void this.setState({value:n,textSelected:!1});const{selectionStart:s,selectionEnd:l}=t,c=(0,$.QE)(this.state.initialValue,n,s);this.latestKeystrokeDiff=c;const u={change:c.change,value:c.prev,returnCode:!0,name:this.props.formField.name,selStart:s,selEnd:l};this.setState({value:n,textSelected:!1}),o.onKeystrokeEvent(u).then((e=>{if(c!==this.latestKeystrokeDiff||0===e.length)return;const n=e[0].object;if(!n.returnCode)return void this.setState({value:this.state.initialValue,textSelected:!1});const o=(0,$.F6)(c,n.change),r=e.slice(1);r.length&&this.props.dispatch((0,Mo.bt)({changes:r})),this.setState({value:o,initialValue:o,textSelected:!1},(function(){n.selStart!==t.selectionStart&&(t.selectionStart=n.selStart),n.selEnd!==t.selectionEnd&&(t.selectionEnd=n.selEnd)}))})).catch(a.vU)})),(0,o.Z)(this,"_onSelect",(e=>{if(!e){const e=this.state;return this.setState({values:e.values,isOpen:!1,value:e.value,textSelected:!1},(()=>{this.props.onOpenStateChange(this.state.isOpen)})),this.latestKeystrokeDiff=null,void(this._button&&this._button.focus())}const t=(0,i.aV)([e.value]);this.setState({values:t,isOpen:!1,value:e.label,textSelected:!1},(()=>{this.props.onOpenStateChange(this.state.isOpen)})),this.latestKeystrokeDiff=null,this.props.formField.commitOnChange&&(this.props.formField.values.equals(t)||this.props.dispatch((0,Mo.xh)([{name:this.props.formField.name,value:t}]))),this._button&&this._button.focus()})),(0,o.Z)(this,"_handleBlur",(e=>{e.persist();const{currentTarget:t}=e;this.props.dispatch((0,Qt.vy)(null)),this.latestKeystrokeDiff=null,setTimeout((()=>{if(!t.contains(this.props.frameWindow.document.activeElement)){const t=this._getInput(this.state.values);this.setState({isOpen:!1,isFocused:!1,value:t,initialValue:t},(()=>{this.props.onOpenStateChange(this.state.isOpen)})),this.props.formField.values.equals(this.state.values)||this.props.dispatch((0,Mo.xh)([{name:this.props.formField.name,value:this.state.values}]));const{onBlur:n,annotation:o}=this.props;n&&n(o,e)}}),0)})),(0,o.Z)(this,"calculateFilteredOptions",(()=>{const e=this.state.isOpen,{formField:{options:t,edit:n}}=this.props,o=e?t.toSeq().filter((e=>this.state.textSelected||!this.state.value||e.label.toLowerCase().includes(this.state.value.toLowerCase()))).toList():(0,i.aV)();return n?o.some((e=>this.state.value.includes(e.label)))?o:o.unshift(new j.mv({label:this.state.value,value:this.state.value})):o})),(0,o.Z)(this,"_renderComboBoxTop",((e,t,o,r)=>{const{name:i,readOnly:a}=this.props.formField,s=this.props.formDesignMode,l=this.props.canFillFormFieldCP&&!a,c=F()({[ur().comboBoxTop]:!0,"PSPDFKit-Annotation-Widget-ComboBox-Button":!0,"PSPDFKit-Annotation-Widget-read-only":!l}),u=this._getSelectedLabel();return T.createElement("div",{className:c,onClick:this._openDropdownClick,ref:r},T.createElement("button",{"aria-controls":`PSPDFKit-dd-${this.props.formField.name}-menu`,"aria-expanded":o,"aria-haspopup":"true",tabIndex:o?-1:0,style:e,disabled:!l||s,className:ur().valueBtn,onFocus:e=>{this.setState({isFocused:!0});const{onFocus:t,annotation:n}=this.props;t&&(e.persist(),t(n,e))},ref:e=>this._button=e,name:i,value:u},u),T.createElement("div",(0,De.Z)({"aria-hidden":!o,className:ur().arrowBtn},t),T.createElement(Ye.Z,{src:n(58021)})))})),(0,o.Z)(this,"_openDropdownClick",(()=>{this.props.formField.readOnly||this.props.formField.formDesignMode||!this.props.canFillFormFieldCP||this.setState((e=>{let{isOpen:t}=e;return{isOpen:!t}}),(()=>{this._inputRef.current&&(this._inputRef.current.select(),this.setState({textSelected:!0},(()=>{this.props.onOpenStateChange(this.state.isOpen)})))}))})),(0,o.Z)(this,"_setContentElementRect",(e=>{this.props.handleComboxBoxRect(e)})),(0,o.Z)(this,"_downShiftRenderFn",(e=>{let{getInputProps:t,getItemProps:n,getToggleButtonProps:o,isOpen:i,highlightedIndex:a}=e;const{annotation:{boundingBox:{width:s,height:l}},annotation:c,formField:{doNotSpellCheck:u,readOnly:d,required:p},formDesignMode:f,isRenderingAPStream:h,canFillFormFieldCP:m,viewportState:g}=this.props,{zoomLevel:v}=g,y=this.calculateFilteredOptions(),b=y.size>5?5:y.size,w={fontSize:10*v,padding:2*v},S=d||f||!m,E=t({ref:this._inputRef,value:this.state.value,onFocus:()=>this.setState({isOpen:!0},(()=>{this.props.onOpenStateChange(this.state.isOpen)})),spellCheck:!u,onChange:this._onChange}),P=o(),x=F()({[ur().comboBox]:!0,[ur().expanded]:i,[xo().widget]:!0,[xo().focusedWidget]:i||this.state.isFocused,[xo().readOnly]:S,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-ComboBox":!0,"PSPDFKit-Annotation-Widget-ComboBox-isOpen":i,"PSPDFKit-Annotation-Widget-Required":p}),D=Math.max(4,Math.min(.7*l,12))*v,C=90===c.rotation||270===c.rotation,k=this._memoizedCalculateFontSize(this._getSelectedLabel(),s,l,c.fontSize,!1,0,this._inputRef.current),A=fr({width:Math.ceil(c.boundingBox.width*v),height:Math.ceil(c.boundingBox.height*v)},h?{opacity:0}:(0,nt.i2)(c,v,!1)),{height:O,width:I,opacity:M}=A,_=(0,r.Z)(A,dr),R=fr(fr({},(0,nt.VY)(c,v)),{},{borderWidth:Math.max(1,v),fontSize:D,opacity:M,[C?"height":"width"]:I,[C?"width":"height"]:O}),N=fr(fr({},_),{},{cursor:S?"default":"pointer",padding:`0 ${lr.DI*v}px`,fontSize:k*v,[C?"width":"height"]:O,[C?"height":"width"]:I}),L=F()({[ur().menu]:!0,"PSPDFKit-Annotation-Widget-ComboBox-Menu":!0});return T.createElement("div",{className:x,style:fr(fr({},R),i?{position:"fixed"}:void 0),tabIndex:-1,onBlur:this._handleBlur},T.createElement(mr,{viewportRect:g.viewportRect,isVertical:90===c.rotation||270===c.rotation,setContentElementRect:this._setContentElementRect},(e=>{let{referenceRef:t,contentRef:o,style:r}=e;return T.createElement(T.Fragment,null,this._renderComboBoxTop(N,P,i,t),i&&T.createElement("div",{className:L,ref:o,style:r},T.createElement("input",(0,De.Z)({},E,{className:F()(ur().comboBoxInput,"PSPDFKit-Annotation-Widget-ComboBox-SearchInput"),style:{textAlign:"center"},tabIndex:-1,required:p})),T.createElement("div",{className:F()(ur().comboBoxList,"PSPDFKit-Annotation-Widget-ComboBox-List"),id:`PSPDFKit-dd-${this.props.formField.name}-menu`},y.isEmpty()?T.createElement("div",{className:ur().comboBoxListItem,style:w},"No results found"):T.createElement(sr,{scrollToIndex:a||0,scrollToAlignment:"auto",width:"100%",height:Math.ceil(20*b*v),itemCount:y.size,itemSize:Math.ceil(20*v),renderItem:e=>{let{index:t,style:o}=e;const r=y.get(t),i=a===t;(0,Ne.k)(r);const s=this.state.values.includes(r.get("value")),l=F()({[ur().comboBoxListItem]:!0,[ur().comboBoxListItemActive]:i,[ur().comboBoxListItemSelected]:s});let c;return c=0===t&&this.props.formField.edit&&!this.props.formField.options.includes(r)?r.label.length?`Create "${r.label}"`:T.createElement("span",{className:ur().empty},"(empty)"):r.label,T.createElement("div",(0,De.Z)({className:F()(l,"PSPDFKit-Annotation-Widget-ComboBox-ListItem",{"PSPDFKit-Annotation-Widget-ComboBox-ListItem-Active":i,"PSPDFKit-Annotation-Widget-ComboBox-ListItem-Selected":s}),title:r.label},n({key:r.value,index:t,item:r,style:fr(fr({},o),w)})),c)}}))))})))})),(0,o.Z)(this,"_itemToString",(e=>e?e.label:""))}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;n!==t&&this.props.annotation.id===t&&this._openDropdownClick()}componentWillUnmount(){this.latestKeystrokeDiff=null}render(){const{frameWindow:e}=this.props;return T.createElement(Bo.ZP,{environment:e,onSelect:this._onSelect,itemToString:this._itemToString,isOpen:this.state.isOpen,defaultHighlightedIndex:0},this._downShiftRenderFn)}}const mr=function(e){const{children:t,viewportRect:n,isVertical:o,setContentElementRect:r}=e,[i,a]=T.useState(null),[s,l]=T.useState(null),[c,u]=T.useState(null),d=T.useCallback((()=>{const e=s?s.getBoundingClientRect():null,t=i?i.getBoundingClientRect():null,a=o?"left":"top",l=o?"width":"height";let c=e?e[l]:0;null!==t&&null!==e&&e[a]+e[l]+t[l]>n[l]&&0!==e[a]&&(c=-t[l]),r&&r(t),u({top:c})}),[i,s,n,o]);T.useLayoutEffect((()=>{d()}),[d]);return t({referenceRef:e=>l(e),contentRef:e=>a(e),style:fr(fr({position:"absolute"},c),{},{width:"100%"},s&&i?null:{opacity:0})})};var gr=n(82654),vr=n.n(gr);function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function br(e){for(var t=1;t{e.formField.values.equals(this.props.formField.values)||this.setState({values:e.formField.values})})),(0,o.Z)(this,"_inputRef",T.createRef()),(0,o.Z)(this,"_onChange",(e=>{const t=e.target.options,n=(0,i.dM)([...t]).filter((e=>e.selected)).map((e=>e.value)).toList();this.setState({values:n}),this.props.formField.commitOnChange&&(this.props.formField.values.equals(n)||this.props.dispatch((0,Mo.xh)([{name:this.props.formField.name,value:n}])))})),(0,o.Z)(this,"_onBlur",(e=>{this.props.annotationToFocus===this.props.annotation.id&&this.props.dispatch((0,Qt.vy)(null)),this.props.formField.values.equals(this.state.values)||this.props.dispatch((0,Mo.xh)([{name:this.props.formField.name,value:this.state.values}]));const{onBlur:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"_onFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)}))}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;var o;n!==t&&this.props.annotation.id===t&&(null===(o=this._inputRef.current)||void 0===o||o.focus())}render(){const{annotation:e,formField:{options:t,name:n,multiSelect:o,readOnly:r,required:i},zoomLevel:a,formDesignMode:s,isRenderingAPStream:l,canFillFormFieldCP:c}=this.props,u=c&&!r,d=br({width:Math.ceil(e.boundingBox.width*a),height:Math.ceil(e.boundingBox.height*a)},l?{opacity:0}:br(br({},(0,nt.i2)(e,a)),{},{fontSize:Math.ceil(12*a),textAlign:e.horizontalAlign})),p=F()({[vr().listBox]:!0,[xo().widget]:!0,[xo().onFocus]:!0,[xo().readOnly]:!u,[vr().listBoxRotated]:!!e.rotation,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-ListBox":!0,"PSPDFKit-Annotation-Widget-read-only":!u,"PSPDFKit-Annotation-Widget-Required":i}),f=o?this.state.values.toArray():this.state.values.size>0?this.state.values.get(0):void 0;return T.createElement("select",{ref:this._inputRef,disabled:!u||s,style:d,size:t.size,className:p,name:n,onChange:this._onChange,multiple:o,onBlur:this._onBlur,onFocus:this._onFocus,value:f,required:i},t.map((e=>T.createElement("option",{key:e.value,value:e.value},e.label))))}}var Sr=n(30667);const Er=["borderColor","borderWidth","borderStyle","height","width","opacity","backgroundColor"];function Pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function xr(e){for(var t=1;t{const t=(0,nt.CK)(e.formField,e.annotation);this.setState({checked:t})})),(0,o.Z)(this,"_inputRef",T.createRef()),(0,o.Z)(this,"handleChange",(()=>{const{dispatch:e,formField:t,annotation:n}=this.props;if(this.state.checked&&t.noToggleToOff)return;const o=(0,nt.g6)(t,n,!this.state.checked);e((0,Mo.xh)([{name:t.name,value:this.state.checked?null:(0,nt.l_)(t,n),optionIndexes:o}])),this.setState((e=>{let{checked:t}=e;return{checked:!t}}))})),(0,o.Z)(this,"uncheck",(e=>{const{formField:t,dispatch:n,annotation:o}=this.props;if(t.readOnly||t.noToggleToOff||!this.state.checked||"keydown"===e.type&&e.keyCode!==Sr.tW)return;"keydown"===e.type&&e.preventDefault();const r=(0,nt.g6)(t,o,!1);n((0,Mo.xh)([{name:t.name,value:null,optionIndexes:r}]))})),(0,o.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n,annotationToFocus:o}=this.props;o===n.id&&this.props.dispatch((0,Qt.vy)(null)),t&&t(n,e)}))}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;var o;n!==t&&this.props.annotation.id===t&&(null===(o=this._inputRef.current)||void 0===o||o.focus())}render(){const{annotation:{id:e},annotation:t,zoomLevel:n,formField:o,formDesignMode:i,isRenderingAPStream:a,canFillFormFieldCP:s}=this.props,{checked:l}=this.state,c=xr({width:Math.ceil(t.boundingBox.width*n),height:Math.ceil(t.boundingBox.height*n)},a?{opacity:0}:(0,nt.i2)(t,n,!1)),{borderColor:u,borderWidth:d,borderStyle:p,height:f,width:h,opacity:m,backgroundColor:g}=c,v=(0,r.Z)(c,Er),{transform:y,transformOrigin:b}=(0,nt.i2)(t,n);let w={width:h,height:f,opacity:m};(0,ot.kv)(t)&&(w=xr(xr({},w),{},{transform:y,transformOrigin:b}));const S=s&&!o.readOnly,E=F()({[Ro().input]:!0,[Ro().inputRadio]:!0,[xo().widget]:!0,[xo().readOnly]:!S,"PSPDFKit-Annotation-Widget-RadioButton-Control":!0}),P=F()({[Ro().checkradio]:!0,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-RadioButton":!0,"PSPDFKit-Annotation-Widget-read-only":!S});return T.createElement("label",{style:w,className:P},T.createElement("input",{ref:this._inputRef,type:"radio",name:o.name,disabled:!S||i,key:e,checked:l,value:(0,nt.l_)(o,t),className:l?Ro().checked:null,onChange:S?this.handleChange:void 0,onClick:this.uncheck,onKeyDown:this.uncheck,onFocus:this._handleFocus,onBlur:this._handleBlur,style:v}),T.createElement("span",{className:E,style:{borderColor:u,borderWidth:null!=d?d:Math.max(1,n),borderStyle:p,backgroundColor:g}}))}}var Cr=n(43578),kr=n.n(Cr),Ar=n(67628);function Or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Tr(e){for(var t=1;t{this._focusableElement=e})),(0,o.Z)(this,"_handlePress",(e=>{e.stopPropagation(),e.preventDefault();const t=this.props.features.includes(ge.q.ELECTRONIC_SIGNATURES)?"es-signature":"ink-signature",n=this.props.isAnnotationPressPrevented({annotation:this.props.annotation,nativeEvent:e.nativeEvent,selected:!1});if(!e.isPrimary||n||this.props.isDigitallySigned)return;const{overlappingAnnotation:o}=this.state;o?this.props.dispatch((0,je.mg)(o,e,{selectedAnnotationShouldDrag:"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null})):(this._focusableElement&&this._focusableElement.focus(),this.props.dispatch((0,Qt.Ds)(t)),this.props.dispatch((0,En.Cc)({signatureRect:this.props.annotation.boundingBox,signaturePageIndex:this.props.annotation.pageIndex,formFieldName:this.props.formField.name})))})),(0,o.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n,annotationToFocus:o}=this.props;o===n.id&&this.props.dispatch((0,Qt.vy)(null)),t&&t(n,e)})),(0,o.Z)(this,"_handlePointerUp",(e=>{e.stopPropagation()}))}static getDerivedStateFromProps(e){const t=e.inkAnnotations.find((t=>t.boundingBox.isRectOverlapping(e.annotation.boundingBox)))||e.imageAnnotations.find((t=>t.boundingBox.isRectOverlapping(e.annotation.boundingBox)));return{overlappingAnnotation:t||null}}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;if(n!==t&&this.props.annotation.id===t&&!this.props.isDigitallySigned){const{overlappingAnnotation:e}=this.state,t=this.props.features.includes(ge.q.ELECTRONIC_SIGNATURES)?"es-signature":"ink-signature";e?this.props.dispatch((0,je.Df)((0,i.l4)([e.id]),null)):(this._focusableElement&&this._focusableElement.focus(),this.props.dispatch((0,Qt.Ds)(t)),this.props.dispatch((0,En.Cc)({signatureRect:this.props.annotation.boundingBox,signaturePageIndex:this.props.annotation.pageIndex,formFieldName:this.props.formField.name})))}}render(){const{formatMessage:e}=this.props.intl,{annotation:t,annotation:{boundingBox:n,id:o},formField:{readOnly:r,name:i},zoomLevel:a,formDesignMode:s,isDigitallySigned:l,hasSignatureLicenseComponent:c,backend:u,isDragging:d,canFillFormFieldCP:p,signatureFeatureAvailability:f}=this.props,h=Math.ceil(n.height*a),m=Tr(Tr({},(0,nt.i2)(t,a,!1)),{},{fontSize:(20e instanceof s.Zc)).toList(),u=l.filter((e=>e instanceof s.sK)).toList();return{isDigitallySigned:(0,Mr.Zt)(e,n),inkAnnotations:c,imageAnnotations:u,isAnnotationPressPrevented:t=>(0,J.TW)(t,e.eventEmitter),backend:e.backend,features:i,signatureFeatureAvailability:a,hasSignatureLicenseComponent:i.includes(ge.q.DIGITAL_SIGNATURES)||i.includes(ge.q.ELECTRONIC_SIGNATURES)}}))(Fr),Rr=_r;function Nr(e,t){return Nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nr(e,t)}function Lr(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&&Nr(e,t)}var Br=n(34710),jr=n(4054);function zr(){zr=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,o,r){var i=new RegExp(e,o);return t.set(i,r||t.get(e)),Nr(i,n.prototype)}function o(e,n){var o=t.get(n);return Object.keys(o).reduce((function(t,n){var r=o[n];if("number"==typeof r)t[n]=e[r];else{for(var i=0;void 0===e[r[i]]&&i+1]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof r){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(o(e,a)),r.apply(this,e)}))}return e[Symbol.replace].call(this,n,r)},zr.apply(this,arguments)}function Kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Zr(e){for(var t=1;t{const e=this._inputRef.current;(0,a.kG)(e);const{value:t}=e,{comb:n,doNotScroll:o,multiLine:r}=this.props.formField,i=t.length{if(h!==this._latestKeystrokeDiff||0===t.length)return;const n=t[0].object;if(!n.returnCode)return void this.setState({value:this.state.initialValue,editingValue:this.state.initialEditingValue});const o=(0,$.F6)(h,n.change),r=t.slice(1);r.length&&this.props.dispatch((0,Mo.bt)({changes:r})),this.setState({value:o,initialValue:o,editingValue:o,initialEditingValue:o},(function(){n.selStart!==e.selectionStart&&(e.selectionStart=n.selStart),n.selEnd!==h.endCursorPosition&&(e.selectionEnd=n.selEnd)}))})).catch(a.vU)})),(0,o.Z)(this,"_onFocus",(e=>{const t=this._inputRef.current;this.setState({isFocused:!0,shouldRecalculateWhenOverflow:!!t&&t.clientHeight{this.setState({isFocused:!1}),this.props.annotationToFocus===this.props.annotation.id&&this.props.dispatch((0,Qt.vy)(null)),this._latestKeystrokeDiff=null,this._commitChanges();const{onBlur:t}=this.props;t&&(e.persist(),t(this.props.annotation,e.nativeEvent))}))}static getDerivedStateFromProps(e,t){return t.valueFromCurrentProps!==e.formField.value||t.readOnlyFromCurrentProps!==e.formField.readOnly?Gr(e,t):null}componentWillUnmount(){this._latestKeystrokeDiff=null,this._commitChanges();const{onBlur:e,annotation:t}=this.props;e&&e(t,(0,no.M)("blur"))}_commitChanges(){this.props.formField.value!==this.state.value&&this.props.dispatch((0,Mo.xh)([Zr({name:this.props.formField.name,value:this.state.value},this.props.formField.multiLine&&{isFitting:(0,lr.$Z)(this.props.annotation,this.state.value,this.props.zoomLevel)})]))}_dateFormat(){var e,t;const{annotation:n}=this.props,o=null===(e=n.additionalActions)||void 0===e||null===(t=e.onFormat)||void 0===t?void 0:t.script;if(!o)return null;const r=zr(/(AFTime|AFDate)_([FormatEx]*)\("*([0-9]+|[\w\d\s:\-/]*)"*\)/,{name:1,type:2,argument:3}),i=o.match(r);if(!i)return null;const{argument:a,type:s,name:l}=i.groups;if("FormatEx"===s){const e=a.match(/[d|y|m]/);return"AFDate"===l&&e||"AFTime"===l&&!e?a:null}switch(l){case"AFDate":return Ur[a];case"AFTime":return Vr[a]}return null}_dateInputType(e){if(e){const t=e.match(/[d|y|m]/),n=e.match(/[H|h|M|t]/);if(t&&n)return"datetime-local";if(n)return"time"}return"date"}_getReusableRealm(){return this._reusableRealm?this._reusableRealm.window.document.body.innerHTML="":this._reusableRealm=(0,jr.Aw)(this.props.frameWindow),this._reusableRealmRemoveTimeout&&clearTimeout(this._reusableRealmRemoveTimeout),this._reusableRealmRemoveTimeout=setTimeout((()=>{this._reusableRealm&&this._reusableRealm.remove(),this._reusableRealm=null,this._reusableRealmRemoveTimeout=null}),200),(0,a.kG)(this._reusableRealm),this._reusableRealm}componentDidUpdate(e){var t;e.annotationToFocus!==this.props.annotationToFocus&&this.props.annotationToFocus===this.props.annotation.id&&(null===(t=this._inputRef.current)||void 0===t||t.focus())}render(){const{annotation:{boundingBox:{width:e,height:t},lineHeightFactor:n},annotation:o,formField:{name:r,password:i,maxLength:a,doNotSpellCheck:s,doNotScroll:l,multiLine:c,readOnly:u,comb:d,required:p},zoomLevel:f,formDesignMode:h,formattedValue:m,frameWindow:g,isRenderingAPStream:v,canFillFormFieldCP:y}=this.props,b=function(e,t){return e.isFocused||null==t?e.isFocused&&null!=e.editingValue?e.editingValue:e.value:t}(this.state,m),w=this._memoizedCalculateFontSize(b,e,t,o.fontSize,c,o.borderWidth||0,this._inputRef.current),S=Zr({width:o.boundingBox.width*f,height:o.boundingBox.height*f,fontSize:w*f},v?{opacity:0}:Zr(Zr({},(0,nt.i2)(o,f)),{},{overflow:l?"hidden":"auto",paddingTop:0,paddingBottom:0,paddingLeft:c?lr.DI*f:0,paddingRight:c?lr.DI*f:0}));if(o.horizontalAlign&&(S.textAlign=o.horizontalAlign),o.verticalAlign&&!c&&("bottom"===o.verticalAlign?S.paddingTop=S.height-S.fontSize-2*S.borderWidth:"top"===o.verticalAlign&&(S.paddingBottom=S.height-S.fontSize-2*S.borderWidth)),d&&"number"==typeof a&&!c){const t=this._memoizedCalculateCombLetterSpacing(w,e,a,g.document,this._inputRef.current)*f;S.fontFamily="monospace",S.letterSpacing=t,S.paddingLeft=t/2,S.paddingRight=0}const E=i?"password":"text",P=y&&!u,x=F()({[xo().readOnly]:!P,[xo().widget]:!0,[xo().combNoPaddingLeftOnFocus]:d&&a,[xo().onFocus]:!0,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-Text":!0,"PSPDFKit-Annotation-Widget-read-only":!P,"PSPDFKit-Annotation-Widget-Required":p}),D=!P||h;if(!i&&c){let e=lr.n*f;const t=S.height-S.fontSize;t-2*e<0&&(e=t>0?t/2:0);const i=S.fontSize*(null!=n?n:1),l=S.height/i<2?0:Math.min((null!=n?n:1)*w*.4*f,5*f),c=Zr(Zr({},S),{},{resize:"none",paddingTop:e+l,paddingLeft:lr.DI*f,paddingRight:lr.DI*f,paddingBottom:Math.max(e-l,0),lineHeight:`${i}px`});if(o.verticalAlign&&"top"!==o.verticalAlign){this._usedHeight=this._memoizedGetTextareaUsedHeight(b||" ",o.boundingBox.width,f,w,this._getReusableRealm());const t=c.height-(this._usedHeight||c.fontSize);"bottom"===o.verticalAlign?c.paddingTop=c.height>this._usedHeight?t-e-2*c.borderWidth:0:"center"===o.verticalAlign&&(c.paddingTop=c.height>this._usedHeight?t/2-c.borderWidth:0,c.paddingBottom=c.height>this._usedHeight?t/2-e-c.borderWidth:0)}return T.createElement("textarea",{ref:this._inputRef,className:x,name:r,disabled:D,value:b,style:c,maxLength:a,spellCheck:!s,onChange:this._onChange,onBlur:this._onBlur,onFocus:this._onFocus,required:p})}const C=this._dateFormat(),k=this._dateInputType(C);return C&&k?T.createElement(ue.qe,{ref:this._inputRef,style:S,className:x,name:r,value:b,disabled:D,type:k,maxLength:a,format:C,onChange:this._onChange,onBlur:this._onBlur,onFocus:this._onFocus,required:p}):T.createElement("input",{ref:this._inputRef,className:x,type:E,disabled:D,maxLength:a,name:r,value:b,style:S,spellCheck:!s,onChange:this._onChange,onBlur:this._onBlur,onFocus:this._onFocus,required:p})}}function qr(e,t,n,o,r){let s,l=e/2;try{s=new Br.f(o,(0,i.aV)(["_"]),{fontSize:`${e}px`,width:`${t}px`,wordWrap:"break-word",whiteSpace:"pre-wrap",fontFamily:"monospace"},xo().widget,r&&r.parentNode);const n=s.measure().first();(0,a.kG)(n),l=n.width}finally{s&&s.remove()}const c=t/n-l;return Math.max(c,0)}function Hr(e,t,n,o,r){let i;try{const a={width:`${Math.ceil(t*n)}px`,fontSize:o*n+"px",padding:`0 ${lr.DI*n}px`,whiteSpace:"pre-wrap",overflowWrap:"break-word",maxWidth:t*n+"px",border:`${Math.max(1,n)}px solid transparent`,boxSizing:"border-box",display:"block",fontFamily:"Helvetica, sans-serif",margin:"0",outline:"0"};return i=new Br.f(r.window.document,e,a),i.wrapper?i.wrapper.scrollHeight:0}finally{i&&i.remove()}}var $r=n(61631),Yr=n(5020);function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Jr(e){for(var t=1;t{this._pointerRecognizer=e})),(0,o.Z)(this,"onFocus",((e,t)=>{const{onFocus:n,dispatch:o,annotation:{additionalActions:r,formFieldName:i}}=this.props;r&&r.onFocus&&o((0,$r.gH)(r.onFocus.script,i)),n&&n(e,t),this.setState({isFocused:!0})})),(0,o.Z)(this,"onBlur",((e,t)=>{const{onBlur:n,dispatch:o,annotation:{additionalActions:r,formFieldName:i}}=this.props;r&&r.onBlur&&o((0,$r.gH)(r.onBlur.script,i)),n&&n(e,t),this.setState({isFocused:!1})})),(0,o.Z)(this,"onPointerUp",(()=>{var e;null!==(e=this.props.annotation.additionalActions)&&void 0!==e&&e.onPointerUp&&this.props.dispatch((0,$r.TU)(this.props.annotation,"onPointerUp")),this.state.isDown&&this.setState({isDown:!1})})),(0,o.Z)(this,"onPointerEnter",(()=>{var e,t;this._elementBoundingBox=null===(e=this._pointerRecognizer)||void 0===e?void 0:e.getBoundingClientRect(),null!==(t=this.props.annotation.additionalActions)&&void 0!==t&&t.onPointerEnter&&this.props.dispatch((0,$r.TU)(this.props.annotation,"onPointerEnter")),this.props.hasRolloverVariantAPStream&&this.setState({isRollover:!0})})),(0,o.Z)(this,"onPointerLeave",(()=>{var e;null!==(e=this.props.annotation.additionalActions)&&void 0!==e&&e.onPointerLeave&&this.props.dispatch((0,$r.TU)(this.props.annotation,"onPointerLeave")),this.state.isRollover&&this.setState({isRollover:!1,isDown:!1})})),(0,o.Z)(this,"onRootPointerMove",(e=>{var t,n,o,r;this._elementBoundingBox&&this.state.isRollover&&(e.clientX<(null===(t=this._elementBoundingBox)||void 0===t?void 0:t.left)||e.clientX>(null===(n=this._elementBoundingBox)||void 0===n?void 0:n.right)||e.clientY<(null===(o=this._elementBoundingBox)||void 0===o?void 0:o.top)||e.clientY>(null===(r=this._elementBoundingBox)||void 0===r?void 0:r.bottom))&&this.onPointerLeave()})),(0,o.Z)(this,"handlePointerUp",(e=>{e.stopPropagation()})),(0,o.Z)(this,"handleOpenStateChange",(e=>{var t,n;(this.setState({isComboboxOpen:e}),this.props.isComboBoxOpen&&this.props.isComboBoxOpen(e),e)||(null===(t=(n=this.props).handleComboBoxRect)||void 0===t||t.call(n,null))})),(0,o.Z)(this,"handleComboBoxRect",(e=>{var t,n;null===(t=(n=this.props).handleComboBoxRect)||void 0===t||t.call(n,e)})),(0,o.Z)(this,"handlePointerDown",(e=>{if(e.isPrimary&&this.props.isSelectable&&this.props.hasDownVariantAPStream&&this.setState({isDown:!0}),!e.isPrimary||!this.props.isSelectable||this.props.formField instanceof j.R0&&!this.props.formDesignMode)return;const t={selectedAnnotationShouldDrag:"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null,stopPropagation:!0};this.props.dispatch((0,je.mg)(this.props.annotation,e,t))}))}renderWidgetComponent(e){const{formField:t,canFillFormFieldCP:n,frameWindow:o}=this.props;(0,a.kG)(t),(0,a.kG)(o);const r={dispatch:this.props.dispatch,annotation:this.props.annotation,zoomLevel:this.props.zoomLevel,frameWindow:o,onFocus:this.onFocus,onBlur:this.onBlur,onPointerUp:e?this.handlePointerUp:void 0,formDesignMode:this.props.formDesignMode,backend:this.props.backend,formattedValue:this.props.formattedValue,editingValue:this.props.editingValue,isRenderingAPStream:e,canFillFormFieldCP:n,viewportState:this.props.viewportState,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected,annotationToFocus:this.props.annotationToFocus};if(t instanceof j.$o)return T.createElement(Wr,(0,De.Z)({},r,{formField:t}));if(t instanceof j.Vi)return T.createElement(wr,(0,De.Z)({},r,{formField:t}));if(t instanceof j.rF)return T.createElement(Lo,(0,De.Z)({},r,{formField:t}));if(t instanceof j.fB)return T.createElement(hr,(0,De.Z)({},r,{handleComboxBoxRect:this.handleComboBoxRect,onOpenStateChange:this.handleOpenStateChange,formField:t}));if(t instanceof j.XQ)return T.createElement(Dr,(0,De.Z)({},r,{formField:t}));if(t instanceof j.R0)return T.createElement(Oo,(0,De.Z)({},r,{formField:t}));if(t instanceof j.Yo)return T.createElement(Rr,(0,De.Z)({},r,{isDragging:this.props.isDragging,formField:t}));throw new Error("Unsupported type for FormField.")}renderWidgetMaybeWithAPStream(){const{annotation:e,zoomLevel:t,backend:n,formField:o,isDragging:r,shouldKeepRenderingAPStream:i,intl:{formatMessage:a}}=this.props,s=i&&!this.state.isComboboxOpen&&(!this.state.isFocused||o instanceof j.rF||o instanceof j.XQ||o instanceof j.R0)&&!(o instanceof j.Yo),l=(0,J.vk)(e.blendMode),c=l?{mixBlendMode:l}:{};let u;return this.state.isRollover&&(u="rollover"),this.state.isDown&&(u="down"),T.createElement("div",{style:c},this.renderWidgetComponent(s),s?T.createElement(Pe.Reparent,{id:`annotation-widget-${e.id}`,className:it().APStreamParent},T.createElement(lt,{annotation:e,variant:u,zoomLevel:t,backend:n,formField:o,label:a(Ke.Z.annotation),isDragging:r})):null)}render(){const{annotation:{rotation:e,boundingBox:t,id:n},zoomLevel:o,formDesignMode:r,formField:i,isSelectable:a}=this.props;if(!i)return null;const s=90===(0,Yr.Lv)(e)||270===(0,Yr.Lv)(e);let l=ti,c=ni;return s&&(l=Jr(Jr({},l),{},{transformOrigin:"50% 50%",transform:(0,nt.G8)({width:Math.ceil(t.width*o),height:Math.ceil(t.height*o),rotation:(0,Yr.Lv)(e)})}),c=Jr(Jr({},c),{},{transformOrigin:"50% 50%",transform:(0,nt.G8)({width:Math.ceil(t.width*o),height:Math.ceil(t.height*o),rotation:(0,Yr.Lv)(e),reverse:!0})})),T.createElement(Be,{position:t.getLocation(),zoomLevel:o,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},T.createElement(pt.Z,{onPointerDown:this.handlePointerDown,onPointerUp:this.onPointerUp,onPointerEnter:this.onPointerEnter,onPointerLeave:this.onPointerLeave,onRootPointerMove:this.onRootPointerMove,onDOMElement:this._pointerRecognizerRef},r&&a?T.createElement("div",{style:l,className:"PSPDFKit-Annotation","data-annotation-id":n},T.createElement("div",{style:c},this.renderWidgetMaybeWithAPStream())):T.createElement("div",{className:"PSPDFKit-Annotation","data-annotation-id":n},this.renderWidgetMaybeWithAPStream())))}}const ei=(0,Re.XN)(Qr,{forwardRef:!0}),ti={cursor:"pointer"},ni={pointerEvents:"none"};var oi=n(10284);const ri=(0,Eo.x)((function(e,t){let{annotation:n}=t;const o=e.formFields.get(n.formFieldName),r=o&&e.formattedFormFieldValues.get(o.name),i=o&&e.editingFormFieldValues.get(o.name);return{annotation:n,formField:(null==o?void 0:o.set("readOnly",(0,So.VY)(o,n,e)))||null,frameWindow:e.frameWindow,formDesignMode:e.formDesignMode,backend:e.backend,formattedValue:r,editingValue:i,canFillFormFieldCP:!!o&&(0,oi.os)(o,e),viewportState:e.viewportState,hasDownVariantAPStream:!("number"!=typeof n.pdfObjectId||!e.APStreamVariantsDown.has(n.pdfObjectId)),hasRolloverVariantAPStream:!("number"!=typeof n.pdfObjectId||!e.APStreamVariantsRollover.has(n.pdfObjectId)),annotationToFocus:e.widgetAnnotationToFocus}}),{forwardRef:!0})(ei),ii=ri;var ai=n(57497),si=n.n(ai),li=n(70094);const ci=li.p1;const ui=function(e){var t;const{annotation:n,dispatch:o,zoomLevel:r,isAnnotationSelected:i,activeAnnotationNote:a,visible:l}=e,c=a&&(null===(t=a.parentAnnotation)||void 0===t?void 0:t.id)===n.id,u=n.isCommentThreadRoot,d=T.useMemo((()=>c&&a?a:(0,li.Yu)(n,u?24:ci,u?24:ci)),[n,c,u,a]),p=d.position,f=(u||n.note||c)&&function(e){return!(e instanceof s.Qi||e instanceof s.gd||e instanceof s.Jn||e instanceof s.x_||e instanceof s.R1||function(e){return e.creatorName&&/AutoCAD SHX Text/i.test(e.creatorName)}(e))}(n),h=!tt.Ni&&!u,{width:m,height:g}=d.boundingBox,v={width:m,height:g,transformOrigin:"top left",transform:`translate(${m*r/2-m/2}px, ${g*r/2-g/2}px)`},y=n.constructor.readableName;return T.createElement(T.Fragment,null,f&&T.createElement(Be,{position:p,zoomLevel:r},T.createElement(pt.Z,{onPointerUp:e=>{u?o((0,je.mg)(n,e)):(i||o((0,je.mg)(d.parentAnnotation,e)),o((0,je.mv)(d))),e&&e.stopPropagation()}},T.createElement("div",{className:F()({"PSPDFKit-Annotation-Note":!0,[si().noteIndicator]:!0,[si().noteIndicatorActive]:i||c,[`PSPDFKit-Annotation-Note-${y}Annotation`]:!!y}),onMouseEnter:h?e=>{o((0,je._3)(d)),e&&e.stopPropagation()}:void 0,onMouseLeave:h?e=>{o((0,je._3)(null)),e&&e.stopPropagation()}:void 0},l?T.createElement(Ze.Z,{style:v,className:F()(si().icon,c&&si().iconActive),type:u?"comment-indicator":"note-indicator"}):T.createElement("div",{style:v})))))},di=T.memo((function(e){const{annotation:t,annotation:{boundingBox:n},zoomLevel:o,backend:r,onFocus:i,onBlur:s,isMultiAnnotationsSelected:l}=e,{formatMessage:c}=(0,Re.YB)(),u={width:n.width*o,height:n.height*o},[d,p]=T.useState(void 0),[f,h]=T.useState(void 0);T.useEffect((()=>{r.cachedRenderAnnotation(t,void 0,u.width,u.height).promise.then((e=>{if((null==e?void 0:e.element)instanceof HTMLImageElement)return h(e.element.src)})).catch((e=>{throw new a.p2(`Could not render the media annotation: ${e.message}`)}))}),[t,r,u.width,u.height]),T.useEffect((()=>{r.getAttachment(t.mediaAttachmentId).then((e=>p(e))).catch((()=>{throw new a.p2("Could not get media attachment for "+t.id)}))}),[t.mediaAttachmentId,r,t.id]);const m=T.useMemo((()=>d?URL.createObjectURL(d):""),[d]);T.useEffect((()=>function(){m&&URL.revokeObjectURL(m)}),[m]);const g=T.useCallback((function(e){i(t,e)}),[t,i]),v=T.useCallback((function(e){s(t,e)}),[t,s]);return m?T.createElement(Be,{position:n.getLocation(),zoomLevel:o,isMultiAnnotationsSelected:l},T.createElement("div",{className:F()("PSPDFKit-MediaAnnotation","PSPDFKit-Annotation"),"data-annotation-id":t.id,tabIndex:0,onFocus:g,onBlur:v},T.createElement("video",{src:m,controls:!0,width:u.width,height:u.height,poster:f,"aria-label":`${c(Ke.Z.annotation)}: ${c(Ke.Z.mediaAnnotation)} ${t.fileName}`},c(Ke.Z.mediaFormatNotSupported)))):null})),pi=di;var fi=n(58479);const hi=T.forwardRef((function(e,t){let{annotation:n,globalAnnotation:o,attachments:r,backend:i,dispatch:a,isAnnotationReadOnly:l,isDisabled:c,isHover:u,isFocused:d,onBlur:p,onFocus:f,pageSize:h,zoomLevel:m,rotation:g,pageRotation:v,isSelected:y,showAnnotationNotes:b,activeAnnotationNote:w,onClick:S,isResizing:E=!1,isModifying:P=!1,isDragging:x=!1,isRotating:D=!1,cursor:C,shouldRenderAPStream:k,isMultiAnnotationsSelected:O=!1,isComboBoxOpen:I,handleComboBoxRect:F}=e;const[M,_]=T.useState(!1),R=T.useCallback((()=>_(!0)),[]),N=(0,A.v9)((e=>"formFieldName"in n?e.formFields.get(n.formFieldName):void 0)),L=(0,A.v9)((e=>(0,Mr.Zt)(e,n))),B=(0,fi.jC)({annotation:n,formField:N,zoomLevel:m,isDigitallySignedWidget:L});T.useEffect((()=>{B&&dt({annotation:n,formField:N,zoomLevel:m,isDigitallySigned:L},B)&&_(!1)}),[n,N,m,L]);const j=l(n),z={backend:i,dispatch:a,isDisabled:c,isSelectable:!j,onBlur:p,onFocus:f,ref:t,zoomLevel:m,rotation:g,isDragging:x,shouldKeepRenderingAPStream:k&&!E&&!P&&!D&&!M,isFocused:d,isMultiAnnotationsSelected:O,cursor:C,isComboBoxOpen:I,handleComboBoxRect:F,onError:R},K=(0,A.v9)((e=>e.secondaryMeasurementUnit));let Z=null;return n instanceof s.Hu&&(Z=T.createElement(pi,(0,De.Z)({},z,{annotation:n}))),n instanceof s.sK?Z=T.createElement(ht,(0,De.Z)({},z,{attachment:n.imageAttachmentId?r.get(n.imageAttachmentId):null,annotation:n})):n instanceof s.Zc?Z=T.createElement(Gt,(0,De.Z)({},z,{annotation:n})):n instanceof s.R1?Z=T.createElement(Jt,(0,De.Z)({},z,{isHover:u,annotation:n})):n instanceof s.Qi?Z=T.createElement(sn,(0,De.Z)({},z,{isReadOnly:j,annotation:n})):n instanceof s.UX?Z=T.createElement(zn,(0,De.Z)({},z,{annotation:n,secondaryMeasurementUnit:K})):n instanceof s.GI?Z=T.createElement(Un,(0,De.Z)({},z,{annotation:n,globalAnnotation:o})):n instanceof s.gd?Z=T.createElement(eo,(0,De.Z)({},z,{pageSize:h,onClick:S,annotation:n,globalAnnotation:o})):n instanceof s.Wk?Z=T.createElement(lo,(0,De.Z)({},z,{active:y,annotation:n})):n instanceof s.On?Z=T.createElement(vo,(0,De.Z)({},z,{active:y,pageRotation:v,annotation:n})):n instanceof s.Ih?Z=T.createElement(wo,(0,De.Z)({},z,{annotation:n})):n instanceof s.x_?Z=T.createElement(ii,(0,De.Z)({},z,{annotation:n})):n instanceof s.Jn&&(Z=T.createElement(We,(0,De.Z)({},z,{isReadOnly:j,active:y,annotation:n}))),T.createElement(Ie,{key:n.id,zoomLevel:m,renderer:"Annotation",notCSSScaled:n instanceof s.x_},T.createElement(gi,{annotation:n},Z,b&&(0,J.YV)(n)&&T.createElement(ui,{dispatch:a,annotation:n,zoomLevel:m,isAnnotationSelected:y,activeAnnotationNote:w,visible:!0})))})),mi=hi;function gi(e){let{children:t}=e;return T.createElement("div",null,t)}const vi=(0,A.$j)(((e,t)=>{let{pageIndex:n}=t;return{viewportState:e.viewportState,transformClientToPage:function(t){return e.transformClientToPage(t,n)}}})),yi=(0,A.$j)((e=>({transformClientToPage:e.transformClientToPage})));var bi=n(51333),wi=n(2019),Si=n.n(wi);class Ei extends T.PureComponent{constructor(e){let t,n,r;if(super(e),(0,o.Z)(this,"layerRef",T.createRef()),(0,o.Z)(this,"_handlePointerUp",(e=>{if(!e.isPrimary)return;const t=this._getNormalizedMousePosition(e);if(!t)return;const n=this._fitRectInPage(new j.UL({left:t.x-this.sizes.width/2,top:t.y-this.sizes.height/2,width:this.sizes.width,height:this.sizes.height}),this.props.pageSize),o=this.props.annotation.set("pageIndex",this.props.pageIndex).set("boundingBox",n);e.stopPropagation(),o instanceof j.Qi?this.props.dispatch((0,Qt.FG)(o)):o instanceof j.Jn&&(this.props.dispatch((0,Qt.Zr)((0,i.aV)([o]))),this.props.dispatch((0,bi.mh)(o.id)))})),e.annotation instanceof j.Qi)t=n=r=Je.SP,this.cursor="context-menu";else{if(!(e.annotation instanceof j.Jn))throw Error("Annotation type not supported.");t=n=r=Je.zk,this.cursor="context-menu"}this.sizes={width:t,height:n,minWidth:r}}_getNormalizedMousePosition(e){const{target:t}=e;if(this.layerRef.current){const{defaultView:n}=this.layerRef.current.ownerDocument;if(t instanceof n.HTMLDivElement)return this.props.transformClientToPage(new j.E9({x:e.clientX,y:e.clientY}),this.props.pageIndex)}}_fitRectInPage(e,t){const{width:n,height:o}=t,r=this.sizes.minWidth||this.sizes.width;return e.top+e.height>o&&(e=e.set("top",o-e.height)),e.left+r>n&&(e=e.set("left",n-r)),e}render(){return T.createElement(pt.Z,{onPointerUp:this._handlePointerUp},T.createElement("div",{"data-testid":"create-annotation-layer"},T.createElement("div",{className:Si().layer,style:{cursor:this.cursor||"auto"},ref:this.layerRef})))}}const Pi=yi(Ei);var xi=n(921),Di=n.n(xi);class Ci extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"state",{currentSelectableAnnotation:null}),(0,o.Z)(this,"_handlePointerDownCapture",(e=>{this._pointerDownTime=Date.now();const t=this._transformToPagePoint(e);this._selectableAnnotation=this.findSelectableAnnotation(t);const n=this._selectableAnnotation instanceof j.R1;var o,r,i,a;(n&&(this._selectedAnnotationOnDown=this.findSelectedAnnotationAtPoint(t)),this._isInterestedInUpCapture=n&&!this._selectedAnnotationOnDown,e.metaKey||e.ctrlKey&&this.props.isMultiSelectionEnabled)?(null===(o=(r=this.props).setMultiAnnsInitialEvent)||void 0===o||o.call(r,e.nativeEvent),this.props.dispatch((0,En.YF)(!0))):null===(i=(a=this.props).setMultiAnnsInitialEvent)||void 0===i||i.call(a,void 0)})),(0,o.Z)(this,"_handlePointerUpCapture",(e=>{if(!this._selectableAnnotation||!this._isInterestedInUpCapture||!this.getSelection().isCollapsed)return;const t=Date.now()-this._pointerDownTime>300,n=this._selectableAnnotation,o=n instanceof j.R1;if(t&&!o)return void(this._selectableAnnotation=null);const r=n instanceof j.On||o,i=!this._selectedAnnotationOnDown&&Boolean(this.findSelectedAnnotationAtPoint(this._transformToPagePoint(e)));this.props.dispatch((0,je.mg)(n,e,{preventDefault:r,stopPropagation:r,clearSelection:i,longPress:t&&o}))})),(0,o.Z)(this,"_handlePointerUp",(e=>{if(!this.getSelection().isCollapsed||!this._selectableAnnotation||this._selectedAnnotationOnDown)return;const t=this._selectableAnnotation,n=t instanceof j.On;this.props.dispatch((0,je.mg)(t,e,{preventDefault:n,stopPropagation:n}))})),(0,o.Z)(this,"_handlePointerMove",(e=>{if("mouse"!==e.pointerType)return;const{currentSelectableAnnotation:t}=this.state,n=this._transformToPagePoint(e),o=this.findSelectableAnnotation(n);!(0,i.is)(o,t)&&(t&&this.props.hoverAnnotationIds.has(t.id)&&this.props.dispatch((0,je.IP)(t.id)),!o||this.props.hoverAnnotationIds.has(o.id)||this.checkifHoverPointIsDefferedRegion(new j.E9({x:e.clientX,y:e.clientY}))||this.props.dispatch((0,je.oX)(o.id)),this.setState({currentSelectableAnnotation:o}))}))}checkifHoverPointIsDefferedRegion(e){if(this.props.hitCaptureDefferedRect&&this.props.hitCaptureDefferedRect.length>0)for(const t of this.props.hitCaptureDefferedRect){if(e.x>=t.left&&e.x<=t.right&&e.y>=t.top&&e.y<=t.bottom)return!0}return!1}_transformToPagePoint(e){return this.props.transformClientToPage(new j.E9({x:e.clientX,y:e.clientY}),this.props.pageIndex)}_boundingBoxHitTest(e){const t=tt.Ni?Je.wK:Je.XZ;return n=>n instanceof j.R1?n.boundingBox.isPointInside(e):n.boundingBox.grow(t).isPointInside(e)}_findSelectableLinkAnnotation(e){return this.props.selectableLinkAnnotations.filter(J.Fp).findLast(this._boundingBoxHitTest(e))}_findSelectableTextMarkupAnnotation(e){return this.props.selectableTextMarkupAnnotations.filter(J.Fp).findLast((t=>t.rects.find((t=>t.grow(tt.Ni?Je.wK:Je.XZ).isPointInside(e)))))}findSelectableAnnotation(e){const t=this._findSelectableLinkAnnotation(e),n=this._findSelectableTextMarkupAnnotation(e);return t||n}findSelectedAnnotationAtPoint(e){return this.props.selectedAnnotations.findLast(this._boundingBoxHitTest(e))}getSelection(){return this.props.window.getSelection()}render(){const e=!!this.state.currentSelectableAnnotation,t=F()({[Di().layer]:!0,[Di().cursorText]:this.props.keepSelectedTool&&"TEXT"===this.props.interactionMode,[Di().cursorPointer]:e,"PSPDFKit-CursorPointer":e});return T.createElement(pt.Z,{onPointerMove:this._handlePointerMove,onPointerUp:this._handlePointerUp,onPointerDownCapture:this.props.isHitCaptureDeffered?void 0:this._handlePointerDownCapture,onPointerDown:this.props.isHitCaptureDeffered?this._handlePointerDownCapture:void 0,onPointerUpCapture:this._handlePointerUpCapture},T.createElement("div",{className:t},this.props.children))}}const ki=yi(Ci);class Ai extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"precision",Rt(this.props.zoomLevel)),(0,o.Z)(this,"pointsToPathArray",mt.Ei.ENABLE_INK_SMOOTH_LINES?e=>Nt(e,this.precision):Lt),(0,o.Z)(this,"_pathDataFromFragments",((e,t,n)=>{if(!n||n.length<3)return null;const o=this.props.annotation.lines.get(t);return!o||o.size{let{annotation:t,onDrawStart:n}=this.props;this.precision=Rt(this.props.zoomLevel),t=t.update("lines",(t=>t.push((0,i.aV)([e,new j.Wm({x:e.x,y:e.y,intensity:e.intensity})])))),t=t.set("boundingBox",Mt(t)),n(t)})),(0,o.Z)(this,"_onDraw",(e=>{let{annotation:t,onDraw:n}=this.props,o=t.lines.last();(0,a.kG)(o),o=e.reduce(((e,t)=>function(e,t,n){return 0===n||0===e.size||e.last().distance(t)>n}(e,t,this.props.distanceBetweenPoints)?e.push(t):e),o.pop()).push(e[e.length-1]),t=t.setIn(["lines",this.props.annotation.lines.size-1],o),t=t.set("boundingBox",function(e,t){const{boundingBox:n,lineWidth:o}=e;let{left:r,top:i,width:a,height:s}=n,l=Math.floor(r),c=Math.floor(i),u=Math.ceil(r+a),d=Math.ceil(i+s);return t.forEach((e=>{l=Math.floor(Math.min(r,e.x-o/2)),c=Math.floor(Math.min(i,e.y-o/2)),u=Math.ceil(Math.max(r+a,e.x+o/2)),d=Math.ceil(Math.max(i+s,e.y+o/2)),r=l,i=c,a=u-l,s=d-c})),new j.UL({left:r,top:i,width:a,height:s})}(t,o)),n(t)})),(0,o.Z)(this,"_onDrawEnd",(()=>{let{annotation:e,onDrawEnd:t}=this.props;const n=e.lines.last();if((0,a.kG)(n),n.size>1){const t=n.get(n.size-2);t&&0===n.last().distance(t)&&(e=e.updateIn(["lines",e.lines.size-1],(e=>e.pop())))}t(e)}))}render(){const{annotation:e,canvasSize:t,zoomLevel:n}=this.props,{boundingBox:o}=e;return T.createElement("div",{className:Kt().canvas,style:{cursor:this.props.cursor,mixBlendMode:(0,J.vk)(e.blendMode)},"data-testid":"ink-canvas-outer-div"},T.createElement(Be,{zoomLevel:n,applyZoom:!0},T.createElement("div",{style:{position:"absolute",top:o.top,left:o.left,width:o.width,height:o.height}},T.createElement(Wt,{isSelectable:!1,annotation:e,viewBox:o,pathDataFromFragments:this._pathDataFromFragments,precision:this.precision}))),T.createElement(Sn.Z,{scrollElement:this.props.scrollElement,size:t,onDrawStart:this._onDrawStart,onDrawCoalesced:this._onDraw,onDrawEnd:this._onDrawEnd,transformPoint:this.props.transformPoint,interactionMode:this.props.interactionMode,canScrollWhileDrawing:this.props.canScrollWhileDrawing}))}}(0,o.Z)(Ai,"defaultProps",{canvasSize:new j.$u({width:300,height:200}),distanceBetweenPoints:0,cursor:"default",zoomLevel:1});const Oi=(0,jo.Z)(jt);function Ti(e){const t=e.inkAnnotation.lineWidth/2*e.viewportState.zoomLevel;return{currentInkAnnotation:e.inkAnnotation,cursor:Oi(t),zoomLevel:e.viewportState.zoomLevel,inkAnnotationFromCurrentProps:e.inkAnnotation}}class Ii extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"state",Ti(this.props)),(0,o.Z)(this,"lastEndDrawingTime",Date.now()),(0,o.Z)(this,"_transformClientToPage",(e=>e.apply(this.props.clientToPageTransformation))),(0,o.Z)(this,"_onDrawStart",(e=>{const t=e.pageIndex,n={annotations:(0,i.aV)([e]),reason:u.f.DRAW_START};this.props.eventEmitter.emit("annotations.willChange",n),null===t?e=e.set("pageIndex",this.props.pageIndex):t!==this.props.pageIndex?(e=e.set("pageIndex",this.props.pageIndex),this.props.dispatch((0,Qt.vc)(e,this.props.pageIndex))):function(e,t,n){if(e.lines.size<2)return!0;const o=e.lines.last();if(null==e.lines.get(e.lines.size-2)||null==o||0===o.size||o.size>2)return!0;const r=.5*(t.width+t.height),i=e.lines.size<50?.15:.03,a=(Date.now()-n)/1e3;if(ae.some((e=>e.distance(s)(0,i.aV)([e.last()])))).set("boundingBox",Mt(e)),this.props.dispatch((0,Qt.vc)(e,this.props.pageIndex))),this.setState({currentInkAnnotation:e})})),(0,o.Z)(this,"_onDraw",(e=>{this.setState({currentInkAnnotation:e})})),(0,o.Z)(this,"_onDrawEnd",(e=>{const t={annotations:(0,i.aV)([e]),reason:u.f.DRAW_END};this.props.eventEmitter.emit("annotations.willChange",t),this.lastEndDrawingTime=Date.now(),this.setState({currentInkAnnotation:e},(()=>{this.state.currentInkAnnotation.lines.size&&this.props.dispatch((0,Qt.FG)(this.state.currentInkAnnotation))}))}))}static getDerivedStateFromProps(e,t){return(0,i.is)(t.inkAnnotationFromCurrentProps,e.inkAnnotation)||(0,i.is)(t.currentInkAnnotation,e.inkAnnotation)&&e.viewportState.zoomLevel===t.zoomLevel?null:Ti(e)}componentDidMount(){this.props.dispatch((0,En.X2)())}componentWillUnmount(){this.props.dispatch((0,En.Zg)())}render(){const e=this.state.currentInkAnnotation,{pageSize:t}=this.props,{INK_EPSILON_RANGE_OPTIMIZATION:n}=mt.Ei;return T.createElement(Ai,{scrollElement:this.props.scrollElement,annotation:e,canvasSize:t,onDrawStart:this._onDrawStart,onDrawEnd:this._onDrawEnd,onDraw:this._onDraw,transformPoint:this._transformClientToPage,distanceBetweenPoints:n/(this.props.viewportState.zoomLevel*(0,Ft.L)()),cursor:this.state.cursor,zoomLevel:this.props.viewportState.zoomLevel,interactionMode:this.props.interactionMode,canScrollWhileDrawing:this.props.canScrollWhileDrawing})}}const Fi=(0,A.$j)(((e,t)=>{let{pageIndex:n}=t;return{viewportState:e.viewportState,clientToPageTransformation:(0,de.zi)(e,n),eventEmitter:e.eventEmitter,interactionMode:e.interactionMode,canScrollWhileDrawing:e.canScrollWhileDrawing}}))(Ii);var Mi=n(52871);const _i=100;function Ri(e,t){const n=Math.floor(e.x/_i);return Math.floor(e.y/_i)*t+n}function Ni(e,t,n,o){const{lineWidth:r,id:i}=e,a=Math.ceil(o.width/_i),s=t/2;return e.lines.forEach(((e,t)=>{e.forEach(((e,o)=>{if(null==e)return;const l=Math.floor(e.x/_i),c=Math.floor(e.y/_i),u={point:e,annotationId:i,lineIndex:t,pointIndex:o,strokeRadius:r/2},d=Math.ceil((s+u.strokeRadius)/_i);for(let t=c-d;t<=c+d;t++)for(let o=l-d;o<=l+d;o++)if(o>-1&&t>-1){if(new Mi.Z({x:ot.x+n||e.y+ot.y+n)&&e.distance(t){let{pageIndex:n}=t;return{inkEraserCursorWidth:e.inkEraserCursorWidth,zoomLevel:e.viewportState.zoomLevel,clientToPageTransformation:(0,de.zi)(e,n),scrollElement:e.scrollElement,interactionMode:e.interactionMode}}))((function(e){const{canvasSize:t=new j.$u({width:300,height:200}),inkEraserCursorWidth:n,zoomLevel:o,dispatch:r,inkAnnotations:a,clientToPageTransformation:s}=e,l=T.useMemo((function(){return jt(n/2*o)}),[n,o]),[c,u]=T.useState({localAnnotations:a,lastErasedPointsPaths:[]}),d=T.useRef(null),p=T.useCallback((e=>e.apply(s)),[s]);T.useEffect((()=>{d.current=a.reduce(((e,o)=>Ni(o,n,e,t)),[]),u({localAnnotations:a,lastErasedPointsPaths:[]})}),[a,n,t]);const f=T.useCallback((e=>{u(function(e,t,n,o,r,i){const a=Math.ceil(i.width/_i),s={};return t.forEach((e=>{const t=Ri(e,a);o[t]&&o[t].forEach((t=>{t&&t.point&&Li(t.point,e,n/2,t.strokeRadius)&&(t.point=null,r.push([t.annotationId,t.lineIndex,t.pointIndex]),s[t.annotationId]=!0)}))})),{localAnnotations:e.map((e=>s[e.id]?e.withMutations((t=>{r.filter((t=>t[0]===e.id)).forEach((e=>{t.setIn(["lines",e[1],e[2]],null)}))})):e)),lastErasedPointsPaths:r}}(c.localAnnotations,Array.isArray(e)?e:[e],n,d.current,[],t))}),[c.localAnnotations,n,t]),h=T.useCallback((()=>{const e=function(e,t){return e.map(((e,n)=>e===t.get(n)?e:(e=e.withMutations((e=>{e.update("lines",(e=>e.reduce(((e,t)=>e.concat(t.reduce(((e,t)=>null==t?e.push((0,i.aV)()):e.update(-1,(e=>e.push(t)))),(0,i.aV)([(0,i.aV)()])).filter((e=>e.size>0)))),(0,i.aV)()).filter((e=>e.size>0))))}))).set("boundingBox",Mt(e))))}(c.localAnnotations,a);r((0,Qt.GZ)(e.filter((e=>e.lines&&e.lines.size>0)),e.filter((e=>!e.lines||0===e.lines.size)).map((e=>e.id))))}),[c.localAnnotations,r,a]);T.useEffect((()=>(r((0,En.X2)()),()=>{r((0,En.Zg)())})),[r]);const m=T.useCallback(((e,t,n)=>{var o;if(!n)return null;const{lastErasedPointsPaths:r,localAnnotations:i}=c;if(0===r.length)return n;const a=null==i||null===(o=i.find((t=>t.id===e)))||void 0===o?void 0:o.lines.get(t);return a&&a.size===n.length?r.reduce(((n,o)=>{if(function(e,t,n,o){return e[0]===n&&e[1]===o&&"M 0,0"!==t[e[2]]}(o,n,e,t)){n[o[2]]="M 0,0";const e=n[o[2]+1],t=a.get(o[2]+1);if(t&&ji(e)){const e=n[o[2]+2];n[o[2]+1]=`${ji(e)?"M":"L"} ${t.x},${t.y}`}const r=n[o[2]-1],i=a.get(o[2]-1),s=i?`L ${i.x},${i.y}`:"";if(ji(r)){const e=n[o[2]-2];i&&zi(e)&&(n[o[2]-1]=s)}else i&&zi(r)&&(n[o[2]-1]=s);return n}return n}),n):null}),[c]);return T.createElement("div",{className:Kt().canvas,style:{cursor:l}},c.localAnnotations.map((e=>T.createElement(Gt,{dispatch:r,annotation:e,isSelectable:!1,isDisabled:!0,zoomLevel:o,key:e.id,pathDataFromFragments:m}))),T.createElement(Sn.Z,{size:t,onDrawStart:f,onDrawCoalesced:f,onDrawEnd:h,transformPoint:p,interactionMode:e.interactionMode,scrollElement:e.scrollElement}))}));function ji(e){return"string"==typeof e&&e.startsWith("C")}function zi(e){return"string"==typeof e&&e.startsWith("M")}const Ki=(0,A.$j)(((e,t)=>{let{pageIndex:n}=t;return{inkEraserCursorWidth:e.inkEraserCursorWidth,zoomLevel:e.viewportState.zoomLevel,clientToPageTransformation:(0,de.zi)(e,n),scrollElement:e.scrollElement,interactionMode:e.interactionMode}}))((function(e){const{canvasSize:t=new j.$u({width:300,height:200}),inkEraserCursorWidth:n,zoomLevel:o,dispatch:r,inkAnnotations:a,clientToPageTransformation:s}=e,l=T.useMemo((function(){return jt(n/2*o)}),[n,o]),[c,u]=T.useState({localAnnotations:a,lastErasedLinesPaths:[]}),d=T.useRef(null),p=T.useCallback((e=>e.apply(s)),[s]);T.useEffect((()=>{d.current=a.reduce(((e,o)=>Ni(o,n,e,t)),[]),u({localAnnotations:a,lastErasedLinesPaths:[]})}),[a,n,t]);const f=T.useCallback((e=>{u(function(e,t,n,o,r,a){const s=Math.ceil(a.width/_i),l={};return t.forEach((e=>{const t=Ri(e,s);o[t]&&o[t].forEach((t=>{t&&t.point&&Li(t.point,e,n/2,t.strokeRadius)&&(t.point=null,r.push([t.annotationId,t.lineIndex]),l[t.annotationId]=!0)}))})),{localAnnotations:e.map((e=>l[e.id]?e.withMutations((t=>{r.filter((t=>t[0]===e.id)).forEach((e=>{t.setIn(["lines",e[1]],(0,i.aV)([]))}))})):e)),lastErasedLinesPaths:r}}(c.localAnnotations,Array.isArray(e)?e:[e],n,d.current,[],t))}),[c.localAnnotations,n,t]),h=T.useCallback((()=>{const e=function(e,t){return e.map(((e,n)=>e===t.get(n)?e:(e=e.update("lines",(e=>e.filter(Boolean).filter((e=>e.size>0))))).set("boundingBox",Mt(e))))}(c.localAnnotations,a);r((0,Qt.GZ)(e.filter((e=>{var t;return(null===(t=e.lines)||void 0===t?void 0:t.size)>0})),e.filter((e=>!e.lines||0===e.lines.size)).map((e=>e.id))))}),[c.localAnnotations,r,a]);return T.useEffect((()=>(r((0,En.X2)()),()=>{r((0,En.Zg)())})),[r]),T.createElement("div",{className:Kt().canvas,style:{cursor:l}},c.localAnnotations.map((e=>T.createElement(Gt,{dispatch:r,annotation:e,isSelectable:!1,isDisabled:!0,zoomLevel:o,key:e.id}))),T.createElement(Sn.Z,{size:t,onDrawStart:f,onDrawCoalesced:f,onDrawEnd:h,transformPoint:p,interactionMode:e.interactionMode,scrollElement:e.scrollElement}))}));class Zi extends T.Component{constructor(e){super(e),(0,o.Z)(this,"_handledBlur",!1),(0,o.Z)(this,"editor",T.createRef()),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"clearText",(()=>{const{current:e}=this.editor;if(!e)return"";e.innerText="",setTimeout((()=>{this.props.valueDidUpdate&&this.props.valueDidUpdate()}),0),this.focus()})),(0,o.Z)(this,"focus",(()=>{const{current:e}=this.editor;e&&(e.focus(),setTimeout((()=>{const{current:e}=this.editor;e&&("webkit"!==tt.SR&&(this._handledBlur=!0,e.blur()),e.focus())}),0),this.setInitialSelection())})),(0,o.Z)(this,"_createRangeAndSelect",(e=>{const{current:t}=this.editor;if(!t)return;const{ownerDocument:n,childNodes:o}=t,r=o[o.length-1];if(!r)return;if(void 0===n.createRange)return;const i=n.createRange();let a;a="gecko"===tt.SR?r.length-1:r.length,i.setStart(r,e?0:a),i.setEnd(r,a),this.setSelection(i)})),(0,o.Z)(this,"_preventDeselect",(e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()})),(0,o.Z)(this,"_handleKeyDown",(e=>{if(e.keyCode!==Sr.zz){if(e.keyCode===Sr.E$&&e.shiftKey)return this.props.onStopEditing(),void e.preventDefault();if(this.getPlainText().length>=this.props.maxLength)e.preventDefault();else if("blink"===tt.SR&&e.keyCode===Sr.E$){const{current:n}=this.editor;if(!n)return;const{defaultView:o}=n.ownerDocument;(0,a.kG)(o,"defaultView is null");const r=o.getSelection();if(null!=r&&r.anchorNode&&"#text"===(null==r?void 0:r.anchorNode.nodeName)){var t;const n=Ui(r);if(null===(t=r.anchorNode.parentNode)||void 0===t||t.normalize(),r.anchorNode&&"#text"===r.anchorNode.nodeName){const t=r.anchorOffset;"Range"===r.type&&r.deleteFromDocument();const o=r.anchorNode.nodeValue;(0,a.kG)(o,"currentText is null");const i=n&&o.replace(/\n/,"").length>0;r.anchorNode.nodeValue=o.substr(0,r.anchorOffset)+"\n"+(i?"\n":"")+o.substr(r.anchorOffset),r.collapse(r.anchorNode,t+1),e.preventDefault(),setTimeout((()=>{this.props.valueDidUpdate&&this.props.valueDidUpdate()}),0)}}}else if("gecko"===tt.SR&&e.keyCode===Sr.E$){const{current:t}=this.editor;if(!t)return;const{defaultView:o}=t.ownerDocument;(0,a.kG)(o,"defaultView is null");const r=o.getSelection();if(null!=r&&r.anchorNode&&"#text"===(null==r?void 0:r.anchorNode.nodeName)&&(function(e){let{anchorNode:t,anchorOffset:n}=e;return null!=t&&("#text"===t.nodeName&&(0===n||t.nodeValue.length>n&&"\n"===t.nodeValue.charAt(n-1))||"DIV"===t.nodeName&&t.hasChildNodes()&&t.childNodes.length>0&&"BR"===t.childNodes[0].nodeName)}(r)||Ui(r))){var n;const t=Ui(r);if(null===(n=r.anchorNode.parentNode)||void 0===n||n.normalize(),r.anchorNode&&"#text"===r.anchorNode.nodeName){const n=r.anchorOffset;"Range"===r.type&&r.deleteFromDocument();const o=r.anchorNode.nodeValue;(0,a.kG)(o,"currentText is null");const i=t&&o.replace(/\n/,"").length>0;r.anchorNode.nodeValue=o.substr(0,r.anchorOffset)+"\n"+(i?"\n":"")+o.substr(r.anchorOffset),r.collapse(r.anchorNode,n+1+(i?1:0)),e.preventDefault(),setTimeout((()=>{this.props.valueDidUpdate&&this.props.valueDidUpdate()}),0)}}}}else this.props.onEscape(e)})),(0,o.Z)(this,"_handleInput",(()=>{const{current:e}=this.editor;if(e){if("gecko"===tt.SR){const{innerText:t}=e,n=t.charAt(t.length-1);if(" "===n){const t=e.childNodes[e.childNodes.length-1];t.nodeValue===n&&(t.nodeValue="\n")}}this.props.valueDidUpdate&&this.props.valueDidUpdate()}})),(0,o.Z)(this,"_handlePaste",(e=>{var t,n;if(!this.editor.current)return;const o=this.editor.current.ownerDocument;e.preventDefault();const r=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text/plain");this.getPlainText().length+r.length>=this.props.maxLength||o.execCommand("insertText",!1,null===(n=e.clipboardData)||void 0===n?void 0:n.getData("text/plain"))})),(0,o.Z)(this,"_handleDrop",(e=>{if(!this.editor.current)return;const t=this.editor.current.ownerDocument;if(e.preventDefault(),e.dataTransfer){const n=e.dataTransfer.getData("text/plain");if(this.getPlainText.length+n.length>=this.props.maxLength)return;t.execCommand("insertText",!1,n),this.props.valueDidUpdate&&this.props.valueDidUpdate()}})),(0,o.Z)(this,"_handleScroll",(e=>{const{current:t}=this.editor;t&&(t.scrollTop=0,t.scrollLeft=0,e.stopPropagation(),e.preventDefault())})),(0,o.Z)(this,"_handlePointerDown",(e=>{this.editor.current&&(this.editor.current.contains(e.target)||this._handleBlur())})),(0,o.Z)(this,"_handleBlur",(()=>{this._handledBlur||(this._handledBlur=!0,this.props.onBlur())})),(0,o.Z)(this,"_handleFocus",(()=>{this._handledBlur=!1,this.props.onFocus&&this.props.onFocus()})),this.innerText=this.props.defaultValue+"\n"}componentDidMount(){this.editor.current&&(this.props.autoFocus||this.props.autoSelect)&&this.focus()}getElement(){return this.editor.current}getEditorBoundingClientRect(){const{current:e}=this.editor;return(0,a.kG)(e),j.UL.fromClientRect(e.getBoundingClientRect())}getPlainText(){const{current:e}=this.editor;return e?void 0===e.innerText?"":e.innerText.replace(/\n$/,""):""}setSelection(e){const{current:t}=this.editor;if(!t)return;const n=t.ownerDocument.getSelection();null==n||n.removeAllRanges(),null==n||n.addRange(e)}blur(){this.editor.current&&this.editor.current.blur()}setInitialSelection(){if(this.props.autoSelect)return void this.autoSelectText();const{lastMousePoint:e}=this.props;let t,n=!1;if(e){if(!this.editor.current)return;const{ownerDocument:o}=this.editor.current;t=(0,a.Qo)(e,o),n=!!t&&(t.commonAncestorContainer===this.editor.current||t.commonAncestorContainer.parentElement===this.editor.current)}t&&n?this.setSelection(t):this.moveFocusToEnd()}moveFocusToEnd(){this._createRangeAndSelect(!1)}autoSelectText(){this._createRangeAndSelect(!0)}render(){return T.createElement(T.Fragment,null,T.createElement("div",{style:this.props.style,className:Gn().editor,onInput:this._handleInput,onBlur:this._handleBlur,onFocus:this._handleFocus,onMouseUp:this._preventDeselect,onPointerUp:this._preventDeselect,onKeyDown:this._handleKeyDown,onKeyUp:this._preventDeselect,onTouchStart:this._preventDeselect,onTouchEnd:this._preventDeselect,onPaste:this._handlePaste,onDrop:this._handleDrop,onScroll:this._handleScroll,ref:this.editor,contentEditable:!0,suppressContentEditableWarning:!0,spellCheck:"false"},this.innerText),T.createElement(pt.Z,{onRootPointerDownCapture:this._handlePointerDown}))}}function Ui(e){return null!=e.anchorNode&&null==e.anchorNode.nextSibling&&("#text"===e.anchorNode.nodeName&&e.anchorOffset===e.anchorNode.nodeValue.length||"DIV"===e.anchorNode.nodeName&&e.anchorNode.hasChildNodes()&&e.anchorNode.childNodes.length>0&&"BR"===e.anchorNode.childNodes[0].nodeName)}(0,o.Z)(Zi,"defaultProps",{autoFocus:!0,autoSelect:!1});var Vi=n(32360),Gi=n.n(Vi);function Wi(e){let{x:t,y:n,direction:o,startResizing:r,endResizing:i,onFitToSide:s,viewportSize:l,title:c,cursor:u}=e;const d=function(e){switch(e){case gt.V.TOP_LEFT:return"Top-Left";case gt.V.TOP:return"Top";case gt.V.TOP_RIGHT:return"Top-Right";case gt.V.LEFT:return"Left";case gt.V.RIGHT:return"Right";case gt.V.BOTTOM_LEFT:return"Bottom-Left";case gt.V.BOTTOM:return"Bottom";case gt.V.BOTTOM_RIGHT:return"Bottom-Right";default:(0,a.Rz)(e)}}(gt.V[o]),p=F()({[Gi().resizeAnchor]:!0,[Gi().nwseCursor]:o===gt.V.TOP_LEFT||o===gt.V.BOTTOM_RIGHT,[Gi().neswCursor]:o===gt.V.TOP_RIGHT||o===gt.V.BOTTOM_LEFT,[Gi().ewCursor]:o===gt.V.LEFT||o===gt.V.RIGHT,[Gi().nsCursor]:o===gt.V.TOP||o===gt.V.BOTTOM,"PSPDFKit-Resize-Anchor":!0,[`PSPDFKit-Resize-Anchor-${d}`]:!0}),{RESIZE_ANCHOR_RADIUS:f}=mt.Ei,h=f(l),m=u?{cursor:u}:void 0;return T.createElement(pt.Z,{onPointerDown:r,onPointerUp:i},T.createElement("circle",{cx:t,cy:n,r:h-Je.Hr/2,strokeWidth:Je.Hr,className:p,onDoubleClick:s,style:m},c?T.createElement("title",null,c):null))}function qi(e){let{x:t,y:n,startModifying:o,endModifying:r,pointIndex:i,viewportSize:a,title:s,cursor:l}=e;const c=F()({[Gi().resizeAnchor]:!0}),{RESIZE_ANCHOR_RADIUS:u}=mt.Ei,d=u(a),p=l?{cursor:l}:void 0;return T.createElement(pt.Z,{onPointerDown:o,onPointerUp:r},T.createElement("circle",(0,De.Z)({cx:t,cy:n,r:d-Je.Hr/2,strokeWidth:Je.Hr,className:c,id:`pointIndex${i}`,style:p},{title:s})))}function Hi(e){let{width:t,startRotating:n,endRotating:o,viewportSize:r,rotationHandleLength:i,rotation:a=0,title:s}=e;const{RESIZE_ANCHOR_RADIUS:l,SELECTION_STROKE_WIDTH:c}=mt.Ei,u=F()({"PSPDFKit-Annotations-Rotation-Anchor":!0,[Gi().rotateAnchor]:!0}),d=l(r);return T.createElement("svg",{"data-testid":"rotation-handle-ui",className:"PSPDFKit-Annotations-Rotation-Handle"},T.createElement("line",{className:F()(Gi().rotationLine,"PSPDFKit-Annotations-Rotation-Line"),x1:t/2,y1:0,x2:t/2,y2:i,style:{strokeWidth:c}}),T.createElement(pt.Z,{onPointerDown:n,onPointerUp:o},T.createElement("circle",{cx:t/2,cy:i,r:d-Je.Hr/2,strokeWidth:Je.Hr,className:u,style:{cursor:(0,ot.Mg)(a,"grab")}},s?T.createElement("title",null,s):null)))}var $i=n(41952);function Yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Xi(e){for(var t=1;tt(Ke.Z[`resizeHandle${e.trim()}`]))).join(", ")}`;return T.createElement(Wi,{key:r,x:n,y:o,direction:a,title:s,startResizing:t=>{e.startResizing&&e.startResizing(t,i)},endResizing:ta,onFitToSide:()=>{e.onFitToSide&&e.onFitToSide(a)},viewportSize:e.viewportSize,cursor:e.cursor})}const{zoomLevel:o,annotation:r,annotationBoundingBox:i,viewportSize:a,customZIndex:s,cursor:l}=e,{RESIZE_ANCHOR_RADIUS:c,SELECTION_STROKE_WIDTH:u}=mt.Ei,d=(0,$i.q)(i.scale(o),a),{SELECTION_OUTLINE_PADDING:p}=mt.Ei,f=p(a),h=c(a),m=r?Ct(r)+2*(0,$i.K)(a):0,g=Math.min(2*h,m),v=Math.max(d.width,g),y=Math.max(d.height,g),b=Math.max(h+u/2,u),w=2*b,S=Math.max(h,u/2),E=(0,J.fk)(r,i,o,a,b),P=F()({[Gi().selectionRect]:!0,[Gi().isDragging]:e.isDragging,"PSPDFKit-Selection-Outline-Rect":!0}),x=!r||(0,J.vj)(r)?Xi({strokeWidth:u},l?{cursor:l}:null):{stroke:"transparent"},D=F()({[Gi().draggingRect]:!0,[Gi().isDragging]:e.isDragging,"PSPDFKit-Selection-Outline-Border":!0}),C=r?r.rotation:e.annotationRotation,k=35*o,A=T.useRef(d),O=Xi(Xi({left:d.left-b,top:d.top-b,width:v+w,height:y+w,overflow:"visible"},r||"number"!=typeof C||0===C?null:{transformOrigin:`${f+A.current.width/2}px ${f+A.current.height/2}px`}),{},{transform:"number"!=typeof C||0===C||r instanceof j.x_||r instanceof j.sK?void 0:`rotate(${-C}deg)`,zIndex:null!=s?s:0},l?{cursor:l}:null),I=o*(c(a)-Je.Hr/2),M={left:O.left+O.width/2-I,top:O.top+O.height,width:2*I,height:k+I,overflow:"visible",transformOrigin:`center -${O.height/2}px`,transform:"number"==typeof C&&0!==C?`rotate(${-C}deg)`:void 0};return T.createElement(T.Fragment,null,T.createElement("svg",{style:O,className:Gi().svg,focusable:!1},r instanceof j.o9?T.createElement("line",{className:P,x1:E[0].x,y1:E[0].y,x2:E[1].x,y2:E[1].y,style:Xi(Xi({},x),{},{strokeWidth:tt.Ni?Math.max(Je.wK,r.strokeWidth)*o:Math.max(Je.XZ,r.strokeWidth)*o,pointerEvents:"all"})}):T.createElement("rect",{className:P,style:x,x:b-u/2,y:b-u/2,width:v+u,height:y+u})),e.children||null,T.createElement("svg",{style:O,className:Gi().svg,focusable:!1},T.createElement(pt.Z,{onPointerDown:function(t){e.deselectAnnotation&&t.shiftKey&&e.deselectAnnotation?e.deselectAnnotation(t):(t.stopPropagation(),e.isEditableCP&&2!==t.buttons&&null!=e.startDragging&&e.startDragging(t))}},r instanceof j.o9?T.createElement("line",{className:D,x1:E[0].x,y1:E[0].y,x2:E[1].x,y2:E[1].y,style:Xi(Xi({},x),{},{strokeWidth:tt.Ni?Math.max(Je.wK,r.strokeWidth)*o:Math.max(Je.XZ,r.strokeWidth)*o,pointerEvents:"all"})}):T.createElement("rect",{x:b-u/2,y:b-u/2,width:v+u,height:y+u,className:D,style:x})),e.startResizing&&e.isResizable?[n(O.width/2,S,0),n(O.width-S,S,45),n(O.width-S,O.height/2,90),n(O.width-S,O.height-S,135),n(O.width/2,O.height-S,180),n(S,O.height-S,225),n(S,O.height/2,270),n(S,S,315)]:null,e.startModifying&&e.isModifiable?E.map(((t,n)=>function(t,n,o,r){return T.createElement(qi,{key:`modifyAnchor${o}`,x:t,y:n,pointIndex:o,title:r,startModifying:t=>{e.startModifying&&e.startModifying(t,o)},endModifying:ta,viewportSize:e.viewportSize,cursor:e.cursor})}(t.x,t.y,n,"Modify point"))):null),e.startRotating&&e.isRotatable?T.createElement("svg",{style:M,className:Gi().svg,focusable:!1},T.createElement(Hi,{key:"rotateAnchor",width:M.width,startRotating:t=>{var n;return null===(n=e.startRotating)||void 0===n?void 0:n.call(e,t)},endRotating:ta,viewportSize:e.viewportSize,rotationHandleLength:k,rotation:C,title:t(Ke.Z.rotation)})):null)}function Qi(e){switch((0,a.kG)(e%45==0,"Only multiples of 45° allowed."),e%360){case 0:return gt.V.TOP;case 45:return gt.V.TOP_RIGHT;case 90:return gt.V.RIGHT;case 135:return gt.V.BOTTOM_RIGHT;case 180:return gt.V.BOTTOM;case 225:return gt.V.BOTTOM_LEFT;case 270:return gt.V.LEFT;case 315:return gt.V.TOP_LEFT;default:throw new Error("Unsupported resize degrees")}}const ea={[gt.V.TOP]:"Top",[gt.V.TOP_RIGHT]:"Top, Right",[gt.V.RIGHT]:"Right",[gt.V.BOTTOM_RIGHT]:"Bottom, Right",[gt.V.BOTTOM]:"Bottom",[gt.V.BOTTOM_LEFT]:"Bottom, Left",[gt.V.LEFT]:"Left",[gt.V.TOP_LEFT]:"Top, Left"};function ta(e){e.stopPropagation()}function na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function oa(e){for(var t=1;t{const e=this._getNormalizedEditorBoundingBox(),t=mt.Ei.TEXT_ANNOTATION_AUTOFIT_BOUNDING_BOX_ON_EDIT?e:this.state.selectionBoundingBox.set("left",e.left).set("top",e.top),n=this.props.annotation.set("boundingBox",t);var o,r;j.UL.areRectsCloserThan((0,ot.h4)(n).boundingBox,(0,ot.h4)(n.set("boundingBox",this.state.selectionBoundingBox)).boundingBox,this.props.viewportState.zoomLevel)||(this.setState({selectionBoundingBox:n.boundingBox}),null===(o=(r=this.props).onChange)||void 0===o||o.call(r,n.boundingBox,this.getText()))})),(0,o.Z)(this,"handleEscape",(()=>{this.props.dispatch((0,je.fz)()),this.props.onEditingDone()})),(0,o.Z)(this,"handleBlur",(()=>{this._triggerOnEditingDone()})),(0,o.Z)(this,"onStopEditing",(()=>{this._triggerOnEditingDone(!0)})),(0,o.Z)(this,"onRichEditorInit",(e=>{this.props.dispatch((0,En.$Q)(e))}));const{annotation:r}=e;this.lastSavedAnnotation=r,this.initialOutlineBoundingBox=this.getInitialBoundingBox(r);let i=!1,a=(0,vt.hr)(null===(t=e.annotation.text)||void 0===t?void 0:t.value)||"";var s,l,c;if(e.enableRichText(e.annotation)){if(i=!0,"plain"===(null===(s=e.annotation.text)||void 0===s?void 0:s.format)){var u;const t=(null===(u=e.annotation.fontColor)||void 0===u?void 0:u.toHex())||"",n=ue.ri.prepareHTML(e.annotation.text.value);a=ue.ri.setStyleOrToggleFormat(ue.ri.serialize(ue.ri.deserialize(n)),"fontColor",t)}}else"xhtml"===(null===(l=e.annotation.text)||void 0===l?void 0:l.format)&&(a=ue.ri.getText((null===(c=e.annotation.text)||void 0===c?void 0:c.value)||""));this.state={selectionBoundingBox:this.initialOutlineBoundingBox,annotation:r,richTextContent:null===(n=e.annotation.text)||void 0===n?void 0:n.value,useRichText:i,text:a}}getInitialBoundingBox(e){let t=e.boundingBox;return(0,J.U7)(t)||(t=t.set("width",mt.Ei.MIN_TEXT_ANNOTATION_SIZE).set("height",e.fontSize)),t}componentDidUpdate(e){this.updateSelectionBoundingBox(),e&&!e.annotation.equals(this.props.annotation)&&(this.initialOutlineBoundingBox=this.getInitialBoundingBox(this.props.annotation))}_getNormalizedEditorBoundingBox(){const{current:e}=this.editorRef,{current:t}=this.richTextEditorRef;return t?this.props.transformClientToPage(j.UL.fromClientRect(aa(t))):e?this.props.transformClientToPage(j.UL.fromClientRect(aa(e.getElement()))):new j.UL}getText(){const{current:e}=this.editorRef;return e||this.state.useRichText?e?{value:e.getPlainText(),format:"plain"}:{value:this.state.richTextContent,format:"xhtml"}:{value:"",format:"plain"}}_triggerOnEditingDone(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{current:n}=this.editorRef,o=this.getText(),{annotation:r,onChange:i}=this.props;if((0,J.Vc)(r))return void(null==i||i(this.state.selectionBoundingBox,o));if(!n&&!this.state.useRichText)return;let a=(null===(e=this.props.annotation.text)||void 0===e?void 0:e.value)!==o.value?this.props.annotation.set("text",o).set("boundingBox",this.state.selectionBoundingBox):this.props.annotation;if("xhtml"===o.format&&this.props.annotation.fontColor?a=a.set("fontColor",null):"plain"!==o.format||this.props.annotation.fontColor||(a=a.set("fontColor",j.Il.BLACK)),mt.Ei.TEXT_ANNOTATION_AUTOFIT_BOUNDING_BOX_ON_EDIT){const e=this._getNormalizedEditorBoundingBox(),t=a.boundingBox;!e.getSize().equals(t.getSize())&&(a=a.set("boundingBox",e)),a=(0,vt.XA)(a,this.props.viewportState.zoomLevel)}this.lastSavedAnnotation.equals(a)||(this.lastSavedAnnotation=a,this.props.onEditingDone(It(a,this.props.annotation.boundingBox),t))}render(){var e;const t=this.props.annotation,{zoomLevel:n}=this.props.viewportState,o=t.boundingBox,r=this.props.pageSize.width,i=this.props.pageSize.height,a=(0,vt.z1)(t.set("rotation",0),n,!1);let s,l;const c=Math.floor(o.left*n),u=Math.floor(o.top*n);switch(t.rotation){case 0:s=r*n-c,l=i*n-u;break;case 90:s=o.bottom*n,l=r*n-c;break;case 180:s=o.right*n,l=o.bottom*n;break;case 270:s=i*n-u,l=o.right*n}const d=(0,J.Vc)(t),p=oa(oa({},!d&&{left:c,top:u}),{},{minWidth:mt.Ei.MIN_TEXT_ANNOTATION_SIZE*n,minHeight:t.fontSize*n,maxWidth:s,maxHeight:l}),f=mt.Ei.TEXT_ANNOTATION_AUTOFIT_BOUNDING_BOX_ON_EDIT?p:oa(oa({},a),p);delete a.width,delete a.height,delete a.overflow;const h=Math.ceil(t.boundingBox.width*n),m=Math.ceil(t.boundingBox.height*n);switch(f.transformOrigin="0 0",t.rotation){case 90:f.transform=`translate(0, ${m}px) rotate(${-t.rotation}deg)`;break;case 180:f.transform=`translate(${h}px, ${m}px) rotate(${-t.rotation}deg)`;break;case 270:f.transform=`translate(${h}px, 0) rotate(${-t.rotation}deg)`;break;default:(0,ot.kv)(t)&&(f.transformOrigin=`${n*this.initialOutlineBoundingBox.width/2}px ${n*this.initialOutlineBoundingBox.height/2}px`,f.transform=`rotate(${String(-t.rotation)}deg)`)}return this.state.useRichText||"xhtml"!==(null===(e=this.props.annotation.text)||void 0===e?void 0:e.format)||(f.color=j.Il.BLACK.toHex()),T.createElement(T.Fragment,null,!d&&T.createElement(Ji,{zoomLevel:n,pagesRotation:this.props.viewportState.pagesRotation,annotationBoundingBox:this.state.selectionBoundingBox,annotationRotation:t.rotation,isResizable:!0,isModifiable:!1,isRotatable:!0,isEditableCP:!0,viewportSize:this.props.viewportState.viewportRect.getSize()}),T.createElement("div",{style:oa(oa({},a),!this.state.useRichText&&{wordBreak:d?void 0:a.wordBreak,overflowWrap:d?"break-word":a.overflowWrap}),className:Gn().editorWrapper},this.state.useRichText?T.createElement(ue.D,{text:this.state.text,style:oa(oa({},f),{},{color:j.Il.BLACK.toHex()}),updateBoundingBox:this.updateSelectionBoundingBox,ref:this.richTextEditorRef,onValueChange:e=>{this.setState({richTextContent:e})},onBlurSave:this.handleBlur,onStopEditing:this.onStopEditing,onEscape:this.handleEscape,maxLength:Je.RI,lastMousePoint:this.props.lastMousePoint,onEditorInit:this.onRichEditorInit,className:!d&&Gn().richEditor,autoFocus:!0}):T.createElement(Zi,{style:oa(oa({},f),{position:d?"static":f.position}),valueDidUpdate:this.updateSelectionBoundingBox,onBlur:this.handleBlur,onStopEditing:this.onStopEditing,onEscape:this.handleEscape,ref:this.editorRef,maxLength:Je.RI,defaultValue:this.state.text,lastMousePoint:this.props.lastMousePoint,autoSelect:this.props.autoSelect})))}}(0,o.Z)(ra,"defaultProps",{autoSelect:!1});const ia=vi(ra);function aa(e){var t;const n=e.cloneNode(!0);n.style.transform="none",n.style.visibility="hidden",n.style.pointerEvents="none",null===(t=e.parentElement)||void 0===t||t.append(n);const o=n.getBoundingClientRect();return n.remove(),o}const sa=e=>{let{annotation:t,children:n}=e;const[o,r]=(0,T.useState)(t),i=(0,A.v9)((e=>e.viewportState.zoomLevel)),a=(0,T.useRef)(null),s=(0,A.I0)(),l=o.boundingBox.scale(i),c=(0,T.useRef)(o);(0,T.useLayoutEffect)((()=>{c.current=o}),[o]),(0,T.useEffect)((()=>{r((e=>e.set("fontSize",t.fontSize).set("font",t.font).set("horizontalAlign",t.horizontalAlign).set("verticalAlign",t.verticalAlign)))}),[t.font,t.fontSize,t.horizontalAlign,t.verticalAlign]);const u=(0,T.useCallback)(((e,n)=>{var s;const l=null===(s=a.current)||void 0===s?void 0:s.getBoundingClientRect();if(!l)return;const{callout:c}=t,u=(0,qn.Vq)({rect:l,annotation:o,zoomLevel:i,text:n,callout:c});u&&r(u)}),[t,i,o]);return(0,T.useEffect)((()=>()=>{("xhtml"===c.current.text.format?(0,qn.KY)(c.current.text.value):c.current.text.value)||s((0,Qt.hQ)(c.current))}),[s]),(0,T.useEffect)((()=>{s((0,Qt.FG)(o))}),[o,s]),T.createElement("div",{style:{position:"absolute",left:l.left,top:l.top,minHeight:l.height,width:l.width}},T.createElement($n,{annotation:o,isEditing:!0,ref:a},n(u)))};class la extends T.PureComponent{constructor(){var e;super(...arguments),e=this,(0,o.Z)(this,"_onEditingDone",(function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=t&&(0,ot.az)(t),r=o?(0,i.aV)([o]):(0,i.aV)([]),a={annotations:r,reason:u.f.TEXT_EDIT_END};e.props.eventEmitter.emit("annotations.willChange",a),o&&(e.props.dispatch((0,Qt.FG)(o)),n&&e.props.dispatch((0,je.Df)((0,i.l4)([e.props.annotation.id]),null)),e.props.keepSelectedTool&&e.props.dispatch((0,En.DU)()))}))}componentDidMount(){const e={annotations:(0,i.aV)([this.props.annotation]),reason:u.f.TEXT_EDIT_START};this.props.eventEmitter.emit("annotations.willChange",e),this.props.dispatch((0,En.X2)())}componentWillUnmount(){this.props.dispatch((0,En.Zg)())}render(){const{annotation:e,autoSelect:t,dispatch:n,pageSize:o,lastMousePoint:r,pageIndex:i,enableRichText:a}=this.props,s=s=>T.createElement(ia,{dispatch:n,annotation:(0,ot.h4)(e),lastMousePoint:r,pageSize:o,pageIndex:i,onEditingDone:this._onEditingDone,autoSelect:t,enableRichText:a,onChange:s});return(0,J.Vc)(e)?T.createElement(sa,{annotation:e},(e=>s(e))):s()}}(0,o.Z)(la,"defaultProps",{autoSelect:!1});class ca extends T.Component{constructor(e){super(e),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"_handlePointerUp",(e=>{if(!e.isPrimary)return;const t=this._getNormalizedMousePosition(e);if(!t)return;const{pagesRotation:n}=this.props.viewportState,o=(0,vt.gB)(t,n),r=this._fitRectInPage(o,this.props.pageSize);this.setState({bindPointerUpEvent:!1});let a=this.props.annotation.set("pageIndex",this.props.pageIndex).set("boundingBox",r).set("rotation",n);this.props.interactionMode===x.A.CALLOUT&&(a=function(e,t,n){const o=function(e,t){let n="top-right";const{width:o}=t;e.x+100>o&&(n=n.replace("right","left"));e.y-120<0&&(n=n.replace("top","bottom"));return n}(e,t),r=new j.E9({x:e.x,y:e.y}),i=new j.E9({x:o.includes("right")?e.x+50:e.x-50,y:o.includes("top")?e.y-50:e.y+50}),a=new j.E9({x:o.includes("right")?e.x+50:e.x-50,y:o.includes("top")?e.y-ua:e.y+ua}),s=new j.eB({top:o.includes("top")?0:ua,right:o.includes("right")?0:42,bottom:o.includes("top")?ua:0,left:o.includes("right")?42:0}),l=new j.UW({start:r,knee:i,end:a,innerRectInset:s,cap:"openArrow"}),c=new j.UL({top:o.includes("top")?e.y-100:e.y,left:o.includes("right")?e.x:e.x-85,width:85,height:100});return n.set("callout",l).set("boundingBox",c).set("borderWidth",n.borderWidth||2).set("borderStyle",n.borderStyle||"solid").set("borderColor",n.borderColor||j.Il.BLACK)}(t,this.props.pageSize,a)),this.props.dispatch((0,Qt.Zr)((0,i.aV)([a]))),e.stopPropagation()})),this.state={bindPointerUpEvent:!0}}_getNormalizedMousePosition(e){const{target:t}=e;if("DIV"==t.tagName)return this.props.transformClientToPage(new j.E9({x:e.clientX,y:e.clientY}))}_fitRectInPage(e,t){const{width:n,height:o}=t,{MIN_TEXT_ANNOTATION_SIZE:r}=mt.Ei;return e.top+e.height>o&&(e=e.set("top",o-e.height)),e.left+r>n&&(e=e.set("left",n-r)),e}render(){const e=F()({[Gn().layer]:!0,"PSPDFKit-Text-Canvas":!0});return T.createElement(pt.Z,{onPointerUpCapture:this.state.bindPointerUpEvent?this._handlePointerUp:void 0},T.createElement("div",{className:e,style:{cursor:"text"}}))}}(0,o.Z)(ca,"defaultProps",{autoSelect:!1});const ua=80;const da=vi(ca);function pa(e,t){const n=e.set("boundingBox",e.boundingBox.translate(t));return n instanceof s.Zc?n.update("lines",(e=>e.map((e=>e.map((e=>e.translate(t))))))):n instanceof s.o9?n.update("startPoint",(e=>e.translate(t))).update("endPoint",(e=>e.translate(t))):n instanceof s.Hi||n instanceof s.om?n.update("points",(e=>e.map((e=>e.translate(t))))):(0,J.Vc)(e)?n.update("callout",(e=>(e.knee&&(e=e.update("knee",(e=>e.translate(t)))),e.update("start",(e=>e.translate(t))).update("end",(e=>e.translate(t)))))):n}function fa(e,t,n,o,r){const i=function(e,t,n,o,r){const{boundingBox:i}=(0,ot.az)(e),a=new B.UL({x:0,y:0,width:n.width,height:n.height}).isRectInside(i);r&&a?(i.left+t.x<0&&(t=t.set("x",-i.left)),i.left+i.width+t.x>n.width&&(t=t.set("x",n.width-i.width-i.left)),i.top+t.y<0&&(t=t.set("y",-i.top)),i.top+i.height+t.y>n.height&&(t=t.set("y",n.height-i.height-i.top))):(o.x+i.left+t.x<0&&(t=t.set("x",-o.x-i.left)),o.x+i.left+t.x>n.width&&(t=t.set("x",n.width-(o.x+i.left))),o.y+i.top+t.y<0&&(t=t.set("y",-o.y-i.top)),o.y+i.top+t.y>n.height&&(t=t.set("y",n.height-(o.y+i.top))));return t}(e,t,n,o,r);return pa(e,i)}function ha(e,t,n,o,r,a,s,l,c){const[d,p]=T.useState(!1),f=T.useRef(!1),h=T.useCallback((function(t){if(!(0,jr.eR)(t.target))switch(t.key){case"Enter":case" ":case"Spacebar":if((0,jr.gC)(t.target)||(0,jr.N1)(t.target))return;e(t),t.preventDefault();break;case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":{if((0,jr.N1)(t.target))return;t.preventDefault();const e=t.shiftKey?10:1,r=(0,Yr.n5)(ma[t.key]-s),d=function(e){switch(e){case 0:return new B.E9({x:0,y:-1});case 90:return new B.E9({x:1,y:0});case 180:return new B.E9({x:0,y:1});case 270:return new B.E9({x:-1,y:0});default:throw Error()}}(r),h=0===r||270===r?new B.E9:new B.E9({x:n.boundingBox.width,y:n.boundingBox.height}),m=fa(n,d.scale(e),a,h,c);if(o(m),!f.current){const e={annotations:(0,i.aV)([n]),reason:u.f.MOVE_START};l.emit("annotations.willChange",e),f.current=!0}p(!0)}}}),[e,a,s,o,n,l,c]),m=T.useCallback((function(e){if(!(0,jr.eR)(e.target)&&(("Spacebar"!==e.key&&" "!==e.key||!(0,jr.gC)(e.target))&&e.preventDefault(),d&&r(n),f.current)){const e={annotations:(0,i.aV)([n]),reason:u.f.MOVE_END};l.emit("annotations.willChange",e),f.current=!1}}),[d,n,f,l,r]),g=t.document;T.useLayoutEffect((function(){return g.addEventListener("keydown",h),g.addEventListener("keyup",m),function(){g.removeEventListener("keydown",h),g.removeEventListener("keyup",m)}}),[h,m,g])}const ma={ArrowUp:0,ArrowRight:90,ArrowDown:180,ArrowLeft:270};var ga=n(18803);function va(e){var t;null!==(t=e.getSelection())&&void 0!==t&&t.isCollapsed||(0,ga.a7)(e)}function ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ba(e){for(var t=1;t{let e;return(0,G.S6)(t)&&t.measurementBBox?(e=t.set("boundingBox",t.measurementBBox),e):t}),[t]),[R,N]=(0,fi.Ah)(_),[L,z]=T.useState(null),[K,Z]=function(e,t,n){const o=T.useRef(null);return[T.useCallback((function(e){const{current:t}=o;if(!t)return;const r="function"==typeof t.getWrappedInstance?t.getWrappedInstance():t;r&&"function"==typeof r.onClick&&!n&&r.onClick(e)}),[n]),o]}(0,0,I.current);(0,T.useEffect)((()=>{R&&P.emit("annotations.transform",{annotation:R})}),[R,P]);const U=T.useMemo((()=>(0,de.cr)(e.viewportState,t.pageIndex)),[e.viewportState,t.pageIndex]),V=T.useCallback((function(e){return e.scale(1/o).rotate(s)}),[o,s]),W=T.useCallback((e=>{z(e),k(e)}),[k]),q=T.useCallback((function(e){const t=(0,ot.az)(e);if(S&&x){if(!new j.UL({left:0,top:0,width:S.width,height:S.height}).isRectInside(t.boundingBox))return}b((0,Qt.FG)(t))}),[b,S,x]),{isDragging:H,cancelDrag:$,startDraggingWithEvent:Y,startDraggingAtPoint:X,dragListener:Q}=function(e){let{getScrollElement:t,transformClientToPage:n,transformedAnnotation:o,setTransformedAnnotation:r,setGlobalAnnotation:s,annotation:l,interactionsDisabled:c,dispatch:d,frameWindow:p,pageSize:f,onClick:h,transformDeltaFromClientToPage:m,eventEmitter:g,restrictAnnotationToPageBounds:v,isEditableCP:y}=e;const[b,w]=T.useReducer(Sa,wa),{isListening:S,isDragging:E}=b,P=T.useCallback((function(){return new j.E9({x:t().scrollLeft,y:t().scrollTop})}),[t]);T.useEffect((()=>()=>{E&&c&&d((0,En.Zg)())}),[d,c,E]);const x=T.useRef(null),D=T.useCallback((function(e){x.current=P();const t=n(e).translate(l.boundingBox.getLocation().scale(-1)),o=m(e);w({type:"start",mousePosition:o,initialClickWithinAnnotation:t})}),[P,n,m,l.boundingBox]),C=T.useCallback((function(e){e.isPrimary&&D(new j.E9({x:e.clientX,y:e.clientY}))}),[D]),k=T.useCallback((function(){w({type:"stop"}),va(p),d((0,En.Zg)())}),[p,d]),A=T.useCallback((function(e){if((E||Ea(e))&&e.stopPropagation(),o.equals(l)?b.initialDragCompleted&&h(e):s(o),w({type:"stop"}),E){const e={annotations:(0,i.aV)([o]),reason:u.f.MOVE_END};g.emit("annotations.willChange",e)}va(p),d((0,En.Zg)())}),[l,p,d,E,h,b.initialDragCompleted,o,g,s]),O=T.useCallback((function(e){if(e.stopPropagation(),e.preventDefault(),E&&0===e.buttons)return void A(e);const{previousMousePosition:t,initialClickWithinAnnotation:n,translation:o}=b;(0,a.kG)(t),(0,a.kG)(n);const s=m(new j.E9({x:e.clientX,y:e.clientY})),h=Pn(n,t);!c&&h&&d((0,En.X2)());const y=s.translate(t.scale(-1)),S=o.translate(y),P=fa(l,S,f,n,v),x=(0,G.S6)(P)?P.set("measurementBBox",P.boundingBox):P;if(r(x),w({type:"drag",mousePosition:s,translation:S}),va(p),!E){const e={annotations:(0,i.aV)([l]),reason:u.f.MOVE_START};g.emit("annotations.willChange",e)}}),[l,p,d,c,f,r,b,E,m,g,A,v]),I=T.useCallback((function(){const e=t();if(void 0===e.scrollTop||void 0===e.scrollLeft)return;const n=P(),o=x.current;(0,a.kG)(o);const i=m(n.translate(o.scale(-1))),s=b.translation.translate(i);let c=b.initialClickWithinAnnotation;c||(c=new j.E9);const u=fa(l,s,f,c);r(u),w({type:"scroll",translation:s}),x.current=n,va(p)}),[l,p,t,P,f,r,b.initialClickWithinAnnotation,b.translation,m]);(0,fi.wA)(S,t,I);const F=S&&T.createElement(pt.Z,{onRootPointerDownCapture:A,onRootPointerMoveCapture:y?O:void 0,onRootPointerUpCapture:A});return{isDragging:E,cancelDrag:k,startDraggingWithEvent:C,startDraggingAtPoint:D,dragListener:F}}({getScrollElement:m,transformClientToPage:g,transformedAnnotation:R,setTransformedAnnotation:N,setGlobalAnnotation:q,annotation:t,interactionsDisabled:y,dispatch:b,frameWindow:v,pageSize:S,onClick:K,transformDeltaFromClientToPage:V,eventEmitter:P,restrictAnnotationToPageBounds:x,isEditableCP:D}),{startResizing:ee,resizeListener:te,isResizing:ne}=function(e){let{transformedAnnotation:t,setTransformedAnnotation:n,setGlobalAnnotation:o,annotation:r,dispatch:s,frameWindow:l,transformDeltaFromClientToPage:c,eventEmitter:d,pageSize:p,restrictAnnotationToPageBounds:f,shouldConstrainAspectRatio:h,annotationDimensions:m,clientTransformationMatrix:g,interactionsDisabled:v}=e;const[y,b]=T.useState(Ca),[w,S]=T.useState(!1),E=T.useRef(void 0),P=T.useRef(null),x=T.useRef(!1);T.useEffect((()=>()=>{w&&v&&s((0,En.Zg)())}),[s,v,w]);const D=T.useCallback((function(e,n){var o;if(!e.isPrimary)return;const l=new j.E9({x:e.clientX,y:e.clientY}),p=c(l);b({startingMousePosition:p,startingResizeAnchor:n,isListening:!0}),S(!0);const f={annotations:(0,i.aV)([r]),reason:u.f.RESIZE_START};d.emit("annotations.willChange",f),r instanceof j.b3&&![gt.V.TOP,gt.V.RIGHT,gt.V.BOTTOM,gt.V.LEFT].includes(n)&&null!==(o=r.isMeasurement)&&void 0!==o&&o.call(r)&&((0,a.kG)(t instanceof j.b3),s((0,xn.eO)({magnifierLabel:t.getMeasurementDetails().label,drawnAnnotationID:t.id,drawnAnnotationPageIndex:t.pageIndex,magnifierCursorPosition:ka(r,g,n)}))),s((0,En.X2)())}),[t,s,c,r,d,g]),C=T.useCallback((function(e){var t;e.preventDefault();const o=new j.E9({x:e.clientX,y:e.clientY}),i=c(o),{startingMousePosition:u,startingResizeAnchor:d}=y;(0,a.kG)(u),(0,a.kG)(d);const v={annotation:r,resizeAnchor:d,isShiftPressed:e.shiftKey},b=P.current;null!==b&&b.annotation.id===v.annotation.id&&b.isShiftPressed===v.isShiftPressed&&b.resizeAnchor===v.resizeAnchor||(x.current=h(v),E.current=m(v)),P.current=v;const w=i.translate(u.scale(-1)),S=Tt(r,w,d,x.current,void 0,p,f,E.current),D=(0,G.S6)(S)?S.set("measurementBBox",S.boundingBox):S;n(D),va(l),r instanceof j.b3&&![gt.V.TOP,gt.V.RIGHT,gt.V.BOTTOM,gt.V.LEFT].includes(d)&&null!==(t=r.isMeasurement)&&void 0!==t&&t.call(r)&&((0,a.kG)(S instanceof j.b3),s((0,xn.eO)({magnifierLabel:S.getMeasurementDetails().label,magnifierCursorPosition:ka(S,g,d)})))}),[s,r,l,n,g,h,y,c,p,f]),k=T.useCallback((function(e){var n;e.stopPropagation(),S(!1),b(Ca),o(t),s((0,En.Zg)()),va(l);const a={annotations:(0,i.aV)([t]),reason:u.f.RESIZE_END};d.emit("annotations.willChange",a),r instanceof j.b3&&null!==(n=r.isMeasurement)&&void 0!==n&&n.call(r)&&s((0,xn.eO)(null))}),[r,l,s,o,t,d]);return{startResizing:D,resizeListener:y.isListening&&T.createElement(pt.Z,{onRootPointerMoveCapture:C,onRootPointerUpCapture:k}),isResizing:w}}({transformedAnnotation:R,setTransformedAnnotation:N,setGlobalAnnotation:q,annotation:t,dispatch:b,frameWindow:v,transformDeltaFromClientToPage:V,eventEmitter:P,pageSize:S,restrictAnnotationToPageBounds:x,shouldConstrainAspectRatio:C,annotationDimensions:O,clientTransformationMatrix:U,interactionsDisabled:y}),{startRotating:oe,rotateListener:re,isRotating:ie}=function(e){let{transformedAnnotation:t,setTransformedAnnotation:n,setGlobalAnnotation:o,annotation:r,dispatch:a,frameWindow:s,transformClientToPage:l,eventEmitter:c,pageSize:d,restrictAnnotationToPageBounds:p,centerPoint:f,interactionsDisabled:h,setLocalAndGlobalCursor:m}=e;const[g,v]=T.useState(!1),[y,b]=T.useState(!1);T.useEffect((()=>()=>{y&&h&&a((0,En.Zg)())}),[a,h,y]);const w=T.useCallback((e=>{const t=new j.E9({x:e.clientX,y:e.clientY}),n=l(t),o=f.x-n.x,r=n.y-f.y,i=-Math.atan2(o,r);return Math.round(i*(180/Math.PI))}),[f,l]),S=T.useCallback((function(e){if(!e.isPrimary)return;v(!0),b(!0);const t={annotations:(0,i.aV)([r]),reason:u.f.ROTATE_START};c.emit("annotations.willChange",t),a((0,En.X2)()),m((0,ot.Mg)(w(e),"grabbing"))}),[a,r,c,w,m]),E=T.useCallback((function(e){const o=w(e),r=(0,ot.sw)(t,o,d,p);n(r),va(s),m((0,ot.Mg)(o,"grabbing"))}),[t,s,n,w,m,d,p]),P=T.useCallback((function(e){e.stopPropagation(),b(!1),v(!1);const t=w(e),n=(0,ot.sw)(r,t,d,p);o(n),a((0,En.Zg)()),va(s),m("");const l={annotations:(0,i.aV)([n]),reason:u.f.ROTATE_END};c.emit("annotations.willChange",l)}),[s,a,o,r,w,c,d,p,m]);return{startRotating:S,rotateListener:g&&T.createElement(pt.Z,{onRootPointerMoveCapture:E,onRootPointerUpCapture:P}),isRotating:y}}({transformedAnnotation:R,setTransformedAnnotation:N,setGlobalAnnotation:q,annotation:t,dispatch:b,frameWindow:v,transformClientToPage:g,eventEmitter:P,pageSize:S,restrictAnnotationToPageBounds:x,centerPoint:t.boundingBox.getCenter(),interactionsDisabled:y,setLocalAndGlobalCursor:W}),ae=(0,fi.lB)(t,S,o,b),{startModifying:se,modifyListener:le,isModifying:ce}=function(e){let{transformedAnnotation:t,setTransformedAnnotation:n,setGlobalAnnotation:o,annotation:r,dispatch:s,frameWindow:l,transformDeltaFromClientToPage:c,eventEmitter:d,clientTransformationMatrix:p,pageSize:f,restrictAnnotationToPageBounds:h}=e;const[m,g]=T.useState(xa),[v,y]=T.useState(!1),b=(0,A.v9)((e=>e.defaultAutoCloseThreshold)),w=T.useCallback((function(e,t){var n;if(!e.isPrimary)return;const o=new j.E9({x:e.clientX,y:e.clientY}),a=c(o);g({pointIndex:t,startingMousePosition:a,isListening:!0}),y(!0);const l={annotations:(0,i.aV)([r]),reason:u.f.RESIZE_START};d.emit("annotations.willChange",l),r instanceof j.UX&&null!==(n=r.isMeasurement)&&void 0!==n&&n.call(r)&&s((0,xn.eO)({magnifierLabel:r.getMeasurementDetails().label,drawnAnnotationID:r.id,drawnAnnotationPageIndex:r.pageIndex,magnifierCursorPosition:Da(r,t,p)})),s((0,En.X2)())}),[s,c,r,d,p]),S=T.useCallback((function(e){var t;e.preventDefault();const o=new j.E9({x:e.clientX,y:e.clientY}),i=c(o),{startingMousePosition:u,pointIndex:d}=m;(0,a.kG)(u),(0,a.kG)(null!==d);const f=i.translate(u.scale(-1)),h=(0,Pa.Sy)(r,f,d);if((0,a.kG)(h),h instanceof j.om||h instanceof j.Hi){const e=(0,Dn.K)(h,d,b);n(-1!==e?(0,Dn.d)(h,d,e):h)}else n(h);va(l),"isMeasurement"in h&&null!==(t=h.isMeasurement)&&void 0!==t&&t.call(h)&&s((0,xn.eO)({magnifierLabel:h.getMeasurementDetails().label,magnifierCursorPosition:Da(h,d,p)}))}),[s,r,l,n,m,c,p]),E=T.useCallback((function(e){var n;if(e.stopPropagation(),y(!1),g(xa),f&&h&&!new B.UL({left:0,top:0,width:f.width,height:f.height}).isRectInside(t.boundingBox))return;o(t),s((0,En.Zg)()),va(l);const a={annotations:(0,i.aV)([t]),reason:u.f.RESIZE_END};d.emit("annotations.willChange",a),"isMeasurement"in r&&null!==(n=r.isMeasurement)&&void 0!==n&&n.call(r)&&s((0,xn.eO)(null))}),[r,l,s,t,d,o,f,h]);return{startModifying:w,modifyListener:m.isListening&&T.createElement(pt.Z,{onRootPointerMoveCapture:S,onRootPointerUpCapture:E}),isModifying:v}}({transformedAnnotation:R,setTransformedAnnotation:N,setGlobalAnnotation:q,annotation:t,dispatch:b,frameWindow:v,transformDeltaFromClientToPage:V,eventEmitter:P,clientTransformationMatrix:U,pageSize:S,restrictAnnotationToPageBounds:x});(0,fi.Sv)(w,b,X);const ue=function(e,t){return T.Children.map(e,(e=>T.cloneElement(e,Oa(Oa({},t),{},{isDisabled:!0}))))}(l,Oa({annotation:R,globalAnnotation:n,ref:Z,isResizing:ne,isModifying:ce,isDragging:H,isRotating:ie},L?{cursor:L}:null)),pe=T.useRef(null);pe.current=function(e){h&&h(t,e)};const fe=(0,fi.wL)(m);T.useEffect((function(){const{current:e}=fe;return function(){if(e&&e===(null==e?void 0:e.ownerDocument.activeElement)){const e=pe.current;e&&e((0,no.M)("blur"))}}}),[]),T.useLayoutEffect((function(){H&&$()}),[o,$]),ha(K,v,R,N,q,S,s,P,x);const he=(0,J._k)(R,M);return T.createElement(pt.Z,{onPointerDownCapture:function(e){e.isPrimary&&(I.current=E({annotation:t,nativeEvent:e.nativeEvent,selected:!0},P),I.current||b((0,je.mg)(R,e,{selectedAnnotationShouldDrag:"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null,stopPropagation:!1,isAnnotationPressPrevented:!1})))},onPointerUp:Ia},T.createElement("div",{style:{touchAction:"none"},role:"application"},T.createElement(Ji,{zoomLevel:o,viewportSize:r.getSize(),startModifying:se,startResizing:ee,startDragging:Y,startRotating:oe,onFitToSide:ae,isDragging:H,pagesRotation:s,annotation:R,isResizable:c&&D,isModifiable:d&&D,isRotatable:p&&D,isEditableCP:D,annotationBoundingBox:(0,J.SY)(R,s),window:v,cursor:L},T.createElement("div",{tabIndex:0,ref:fe,role:"button","aria-label":R instanceof j.x_?M(Ke.Z.selectedAnnotation,{arg0:he}):R instanceof j.gd||R instanceof j.Qi?M(Ke.Z.selectedAnnotationWithText,{arg0:he,arg1:R.text.value}):M(Ke.Z.selectedAnnotation,{arg0:he}),"data-testid":"selected annotation",onFocus:function(e){f&&f(t,e)},onBlur:pe.current,className:F()("PSPDFKit-Annotation-Selected",R.constructor.readableName&&`PSPDFKit-${R.constructor.readableName}-Annotation-Selected`)},ue)),Q,te,le,re))}));function Ia(e){e.stopPropagation()}const Fa=(0,A.$j)((function(e,t){let{annotation:n}=t;return{interactionsDisabled:e.interactionsDisabled,selectedAnnotationShouldDrag:e.selectedAnnotationShouldDrag,isAnnotationPressPrevented:t=>(0,J.TW)(t,e.eventEmitter),eventEmitter:e.eventEmitter,restrictAnnotationToPageBounds:e.restrictAnnotationToPageBounds,isEditableCP:(0,oi.CM)(n,e),shouldConstrainAspectRatio:t=>(0,J.xU)(t,e),annotationDimensions:t=>(0,J.aI)(t,e)}}))(Ta),Ma={isListening:!1,isDragging:!1,previousMousePosition:null,initialClickWithinAnnotation:null,translation:new j.E9,initialDragCompleted:!1};function _a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ra(e){for(var t=1;t{const t=(0,ot.az)(e);if(v&&b){if(!new j.UL({left:0,top:0,width:v.width,height:v.height}).isRectInside(t.boundingBox))return null}return t})).filter(Boolean);r((0,Qt.GZ)(t,(0,i.aV)()))}),[r,v,b]),{isDragging:I,cancelDrag:M,startDraggingWithEvent:_,startDraggingAtPoint:R,dragListener:N}=function(e){let{getScrollElement:t,transformClientToPage:n,transformedAnnotations:o,setTransformedAnnotations:r,setGlobalAnnotations:i,interactionsDisabled:s,dispatch:l,frameWindow:c,pageSize:d,transformDeltaFromClientToPage:p,eventEmitter:f,restrictAnnotationToPageBounds:h,isEditableCP:m,selectedAnnotationsBoundingBox:g,selectedAnnotations:v}=e;const[y,b]=T.useReducer(Sa,Ma),{isListening:w,isDragging:S}=y,E=T.useCallback((function(){return new j.E9({x:t().scrollLeft,y:t().scrollTop})}),[t]);T.useEffect((()=>()=>{S&&s&&l((0,En.Zg)())}),[l,s,S]);const P=T.useRef(null),x=T.useCallback((function(e){P.current=E();const t=n(e).translate(g.getLocation().scale(-1)),o=p(e);b({type:"start",mousePosition:o,initialClickWithinAnnotation:t})}),[E,n,p,g]),D=T.useCallback((function(e){e.isPrimary&&x(new j.E9({x:e.clientX,y:e.clientY}))}),[x]),C=T.useCallback((function(){b({type:"stop"}),va(c),l((0,En.Zg)())}),[c,l]),k=T.useCallback((function(e){if((S||Ea(e))&&e.stopPropagation(),o&&i(o),b({type:"stop"}),S){const e={annotations:o,reason:u.f.MOVE_END};f.emit("annotations.willChange",e)}va(c),l((0,En.Zg)())}),[c,l,S,o,f,i]),A=T.useCallback((function(e){if(e.stopPropagation(),e.preventDefault(),S&&0===e.buttons)return void k(e);const{previousMousePosition:t,initialClickWithinAnnotation:n,translation:o}=y;(0,a.kG)(t),(0,a.kG)(n);const i=p(new j.E9({x:e.clientX,y:e.clientY})),m=Pn(n,t);!s&&m&&l((0,En.X2)());const g=i.translate(t.scale(-1)),w=o.translate(g),E=v.map((e=>fa(e,w,d,n,h)));if(function(e,t){return e.left<=0||e.top<=0||e.left+e.width>=t.width||e.top+e.height>=t.height}((0,J.Jy)(E),d)||(r(E),b({type:"drag",mousePosition:i,translation:w})),va(c),!S){const e={annotations:E,reason:u.f.MOVE_START};f.emit("annotations.willChange",e)}}),[c,l,s,d,r,y,S,p,f,k,h,v]),O=T.useCallback((function(){const e=t();if(void 0===e.scrollTop||void 0===e.scrollLeft)return;const n=E(),o=P.current;(0,a.kG)(o);const i=p(n.translate(o.scale(-1))),s=y.translation.translate(i),l=y.initialClickWithinAnnotation||new j.E9,u=v.map((e=>fa(e,s,d,l)));r(u),b({type:"scroll",translation:s}),P.current=n,va(c)}),[c,t,E,d,r,y.initialClickWithinAnnotation,y.translation,p,v]);(0,fi.wA)(w,t,O);const I=w&&T.createElement(pt.Z,{onRootPointerDownCapture:k,onRootPointerMoveCapture:m?A:void 0,onRootPointerUpCapture:k});return{isDragging:S,cancelDrag:C,startDraggingWithEvent:D,startDraggingAtPoint:x,dragListener:I}}({getScrollElement:f,transformClientToPage:h,transformedAnnotations:x,setTransformedAnnotations:D,setGlobalAnnotations:O,interactionsDisabled:g,dispatch:r,frameWindow:m,pageSize:v,transformDeltaFromClientToPage:A,eventEmitter:y,restrictAnnotationToPageBounds:b,isEditableCP:p,selectedAnnotationsBoundingBox:k,selectedAnnotations:n}),L=T.Children.toArray(t).map((e=>T.isValidElement(e)?function(e,t){return T.cloneElement(e,Ra(Ra({},t),{},{isDisabled:!0}))}(e,{annotation:x.find((t=>{var n;return t.id===(null===(n=e.props)||void 0===n?void 0:n.annotation.id)})),globalAnnotation:o.find((t=>{var n;return t.id===(null===(n=e.props)||void 0===n?void 0:n.annotation.id)})),isDragging:I}):e));(0,fi.Sv)(w,r,R),T.useLayoutEffect((function(){I&&M()}),[l,M]);const B=T.useRef(null);B.current=function(e,t){E&&E(e,t)};const z=L.filter((e=>Boolean(e.props.annotation))).length>1;return T.createElement(pt.Z,{onPointerDownCapture:function(e){e.isPrimary},onPointerUp:La},T.createElement("div",{style:{touchAction:"none",zIndex:1}},T.createElement(Ji,{zoomLevel:l,viewportSize:c.getSize(),startDragging:_,isDragging:I,pagesRotation:d,isResizable:!1,isModifiable:!1,isEditableCP:p,annotationBoundingBox:k,isRotatable:!1},L.filter((e=>Boolean(e.props.annotation))).map(((e,t)=>{const n=e.props.annotation,o=(0,J._k)(n,P);return T.createElement(Ji,{key:n.id,zoomLevel:l,viewportSize:c.getSize(),startDragging:_,isDragging:I,pagesRotation:d,isResizable:!1,isModifiable:!1,isRotatable:!1,isEditableCP:p,annotationBoundingBox:(0,J.SY)(n,d),deselectAnnotation:e=>{r((0,je.mg)(n,e))},annotationRotation:n.rotation,customZIndex:2},T.createElement("div",{tabIndex:t,"aria-label":n instanceof s.x_?P(Ke.Z.selectedAnnotation,{arg0:o}):n instanceof s.gd||n instanceof s.Qi?P(Ke.Z.selectedAnnotationWithText,{arg0:o,arg1:n.text.value}):P(Ke.Z.selectedAnnotation,{arg0:o}),ref:z?void 0:C,role:"button","data-testid":`selected annotation ${t}`,onFocus:e=>{return t=n,o=e,void(S&&S(t,o));var t,o},onBlur:e=>{var t;return null===(t=B.current)||void 0===t?void 0:t.call(B,n,e)},className:F()(`PSPDFKit-Annotation-Selected-${t}`,"PSPDFKit-Annotation-Selected",n.constructor.readableName&&`PSPDFKit-${n.constructor.readableName}-Annotation-Selected`)},e))}))),N))}));function La(e){e.stopPropagation()}const Ba=(0,A.$j)((function(e,t){let{annotation:n}=t;return{interactionsDisabled:e.interactionsDisabled,selectedAnnotationShouldDrag:e.selectedAnnotationShouldDrag,eventEmitter:e.eventEmitter,restrictAnnotationToPageBounds:e.restrictAnnotationToPageBounds,isEditableCP:(0,oi.CM)(n,e),shouldConstrainAspectRatio:t=>(0,J.xU)(t,e)}}))(Na);function ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function za(e){for(var t=1;t(a((0,En.X2)()),()=>{a((0,En.Zg)())})),[a]);const{pageIndex:c}=e,u=(0,A.v9)((e=>e.viewportState.zoomLevel)),d=F()([ro().canvas],"PSPDFKit-Redaction-Canvas"),{boundingBox:p}=o,f=(0,A.v9)((e=>e.scrollElement));return T.createElement("div",{className:d},T.createElement(Be,{zoomLevel:u,applyZoom:!0},T.createElement("div",{style:za(za({},p.toJS()),{},{position:"absolute"})},T.createElement(so,{annotation:o,zoomLevel:1,previewRedactionMode:!1,isSelectable:!1}))),T.createElement(Cn,{pageSize:s,pageIndex:c,currentAnnotation:o,onAnnotationUpdate:r,keepSelectedTool:l,scrollElement:f}))}var Za=n(61193),Ua=n.n(Za),Va=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ga=function(){return Ga=Object.assign||function(e){for(var t,n=1,o=arguments.length;n1&&void 0!==arguments[1]?arguments[1]:1;return e.scale(1/t)}function vs(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}let ys;!function(e){e[e.NOT_CREATED=0]="NOT_CREATED",e[e.CREATING=1]="CREATING",e[e.CREATED=2]="CREATED"}(ys||(ys={}));const bs=e=>{let{page:t,viewportState:n,onAreaChangeComplete:o,frameWindow:r,onAreaChangeStart:i,initialDraggingEvent:s}=e;const{zoomLevel:l}=n,[c,u]=(0,T.useState)(l),d=(0,T.useRef)(null),[p,f]=(0,T.useState)({left:0,top:0,height:0,width:0}),[h,m]=(0,T.useState)(!1),[g,v]=(0,T.useState)(null),[y,b]=(0,T.useState)(ys.NOT_CREATED),[w,S]=(0,T.useState)(!1),[E,P]=(0,T.useState)(void 0),[x,D]=(0,T.useState)(!1),C=(0,T.useRef)(null);(0,T.useEffect)((()=>{const e=r.document.querySelector(".PSPDFKit-Scroll");(0,a.kG)(e),e.style.overflow=w?"hidden":"auto",r.document.body.style.overscrollBehavior=w?"contain":"auto"}),[w]),(0,T.useEffect)((()=>{function e(e){"Shift"===e.key&&D(!0)}function t(e){"Shift"===e.key&&D(!1)}return r.document.addEventListener("keydown",e),r.document.addEventListener("keyup",t),()=>{r.document.removeEventListener("keydown",e),r.document.removeEventListener("keyup",t)}}),[]),(0,T.useEffect)((()=>{if(E&&l!==c){const e=E.scale(l/c);P(e),u(l),y===ys.CREATING&&(b(ys.CREATED),null==o||o(gs(e,l)))}}),[c,l,E]);const k=(0,T.useCallback)(((e,t,n,o)=>{P((e=>{var n,r;(0,a.kG)(e);let i=new j.UL({left:e.left,top:e.top,width:(null===(n=C.current)||void 0===n?void 0:n.width)+o.width,height:(null===(r=C.current)||void 0===r?void 0:r.height)+o.height});return e&&t.toLowerCase().includes("top")&&(i=i.set("top",e.top-(i.height-e.height))),e&&t.toLowerCase().includes("left")&&(i=i.set("left",e.left-(i.width-e.width))),i}))}),[P,t.pageSize,l,p]);function A(e){var t;return parseInt(null===(t=e.target.closest(".PSPDFKit-Page"))||void 0===t?void 0:t.getAttribute("data-page-index"),10)}const O=(0,fi.R9)((e=>{"touches"in e&&2===e.touches.length&&m(!0);const n=A(e);if(t.pageIndex!==n)return;e.stopImmediatePropagation(),(0,a.kG)(d.current);const o=d.current.getBoundingClientRect(),{clientY:r,clientX:i}=vs(e);f(o),v(new j.E9({x:i-o.left,y:r-o.top}))}));(0,T.useEffect)((()=>{s&&O(s)}),[s,O]);const I=(0,fi.R9)((e=>{if(!g||y===ys.CREATED)return;const{clientX:t,clientY:n}=vs(e);if(g.x!==t||g.y!==t){e.stopImmediatePropagation(),S(!0);const o=t-p.left,r=n-p.top,a=new j.UL({left:Math.max(0,Math.min(o,g.x)),top:Math.max(0,Math.min(r,g.y)),width:o{if(y===ys.CREATED)return;m(!1);const n=A(e);t.pageIndex===n&&e.stopImmediatePropagation(),S(!1),v(null),E?(null==o||o(gs(E,l)),b(ys.CREATED)):b(ys.NOT_CREATED)}));(0,T.useEffect)((()=>(r.document.addEventListener("pointerdown",O),r.document.addEventListener("pointermove",I),r.document.addEventListener("pointerup",M),r.document.addEventListener("touchstart",O),r.document.addEventListener("touchmove",I),r.document.addEventListener("touchend",M),()=>{r.document.removeEventListener("pointerdown",O),r.document.removeEventListener("pointermove",I),r.document.removeEventListener("pointerup",M),r.document.removeEventListener("touchstart",O),r.document.removeEventListener("touchmove",I),r.document.removeEventListener("touchend",M)})),[O,I,M]);const _=E&&{x:E.left,y:E.top,width:E.width,height:E.height};return T.createElement("div",{ref:d,className:ps().wrapper,onPointerUp:e=>e.stopPropagation(),role:"application"},y!==ys.NOT_CREATED&&T.createElement(T.Fragment,null,y===ys.CREATED&&function(e){const t={position:"absolute",backgroundColor:"rgba(0,0,0,0.2)"};return e?T.createElement(T.Fragment,null,T.createElement("div",{style:hs(hs({},t),{},{left:0,top:0,bottom:0,width:e.left})}),T.createElement("div",{style:hs(hs({},t),{},{left:e.left,top:0,right:0,height:e.top})}),T.createElement("div",{style:hs(hs({},t),{},{left:e.left+e.width,top:e.top,right:0,bottom:0})}),T.createElement("div",{style:hs(hs({},t),{},{left:e.left,top:e.top+e.height,bottom:0,width:e.width})})):null}(E),T.createElement(Ua(),{position:_,onStart:()=>{(0,a.kG)(E),null==i||i(gs(E,l))},onDrag:(e,t)=>{if(h)return!1;P((e=>((0,a.kG)(e),e.merge({left:t.x,top:t.y}))))},onStop:()=>{(0,a.kG)(E),null==o||o(gs(E,l))},defaultPosition:_,cancel:`.${ps().handles}`,bounds:"parent"},T.createElement(us,{size:E?{width:E.width,height:E.height}:void 0,onResizeStart:()=>{S(!0),(0,a.kG)(d.current&&E),null==i||i(gs(E,l)),f(d.current.getBoundingClientRect()),C.current=E},onResize:k,onResizeStop:()=>{S(!1),(0,a.kG)(E),null==o||o(gs(E,l)),C.current=null},handleClasses:ms,bounds:"parent",boundsByDirection:!0,lockAspectRatio:x},T.createElement("div",{style:E?{width:E.width,height:E.height}:void 0,className:F()(ps().cropBox,"PSPDFKit-Document-Crop-Box")})))))};function ws(e){const{dispatch:t,linkAnnotation:n,pageIndex:o}=e;T.useEffect((()=>()=>{t((0,En.lL)())}),[]);const r=F()({[ro().canvas]:!0});return T.createElement("div",{className:r},T.createElement(bs,{viewportState:e.viewportState,page:e.page,onAreaChangeComplete:function(e){const r=n.set("pageIndex",o).set("boundingBox",e);window.setTimeout((()=>{(0,A.dC)((()=>{t((0,Qt.FG)(r)),t((0,En.UU)()),t((0,je.Df)((0,i.l4)([r.id]),null)),t((0,Qt.ZE)(r.id)),t((0,En.lL)())}))}),10)},frameWindow:e.window}))}var Ss=n(76374),Es=n.n(Ss);const Ps=e=>{let{viewportState:t,onAreaChangeComplete:n,frameWindow:o,onAreaChangeStart:r,initialDraggingEvent:i}=e;const s=(0,A.I0)(),{zoomLevel:l}=t,c=(0,T.useRef)(null),[u,d]=(0,T.useState)({left:0,top:0,height:0,width:0}),[p,f]=(0,T.useState)(!1),[h,m]=(0,T.useState)(null),[g,v]=(0,T.useState)(ys.NOT_CREATED),[y,b]=(0,T.useState)(void 0),w=(0,fi.R9)((e=>{"touches"in e&&2===e.touches.length&&f(!0),s((0,je._)(!0)),e.stopImmediatePropagation(),(0,a.kG)(c.current);const t=c.current.getBoundingClientRect(),{clientY:n,clientX:o}=vs(e);d(t),m(new j.E9({x:o-t.left,y:n-t.top}))}));(0,T.useEffect)((()=>{i&&w(i)}),[i,w]);const S=(0,fi.R9)((e=>{if(!h||g===ys.CREATED)return;const{clientX:t,clientY:n}=vs(e);if(h.x!==t||h.y!==t){e.stopImmediatePropagation();const o=t-u.left,i=n-u.top,a=new j.UL({left:Math.max(0,Math.min(o,h.x)),top:Math.max(0,Math.min(i,h.y)),width:o{g!==ys.CREATED&&(f(!1),s((0,je._)(!1)),e.stopImmediatePropagation(),m(null),y?(null==n||n(gs(y,l)),v(ys.CREATED)):v(ys.NOT_CREATED))}));(0,T.useEffect)((()=>(o.document.addEventListener("pointerdown",w),o.document.addEventListener("pointermove",S),o.document.addEventListener("pointerup",E),o.document.addEventListener("touchstart",w),o.document.addEventListener("touchmove",S),o.document.addEventListener("touchend",E),()=>{o.document.removeEventListener("pointerdown",w),o.document.removeEventListener("pointermove",S),o.document.removeEventListener("pointerup",E),o.document.removeEventListener("touchstart",w),o.document.removeEventListener("touchmove",S),o.document.removeEventListener("touchend",E)})),[w,S,E]);const P=y&&{x:y.left,y:y.top,width:y.width,height:y.height};return T.createElement("div",{ref:c,className:Es().wrapper,onPointerUp:e=>e.stopPropagation(),role:"application"},g!==ys.NOT_CREATED&&T.createElement(T.Fragment,null,T.createElement(Ua(),{position:P,onStart:()=>{(0,a.kG)(y),null==r||r(gs(y,l))},onDrag:(e,t)=>{if(p)return!1;b((e=>((0,a.kG)(e),e.merge({left:t.x,top:t.y}))))},onStop:()=>{(0,a.kG)(y),null==n||n(gs(y,l))},defaultPosition:P,bounds:"parent"},T.createElement("div",{style:y?{width:y.width,height:y.height}:void 0,className:F()(Es().selectionBox,"PSPDFKit-Multiple-Selection-Box")}))))};function xs(e){const t=(0,A.I0)(),n=(0,A.v9)((e=>e.annotations)),{pageIndex:o,viewportState:r,window:a,initialDraggingEvent:s,multiAnnotationsUsingShortcut:l}=e;return T.createElement("div",{className:ro().canvas},T.createElement(Ps,{viewportState:r,onAreaChangeComplete:function(e){const r=n.filter((e=>e.pageIndex===o)).toArray(),s=[];r.forEach((t=>{let[n,o]=t;const r=o.boundingBox;e.isRectOverlapping(r)&&s.push(n)})),s.length?a.setTimeout((()=>{(0,A.dC)((()=>{t((0,je.fz)()),t((0,je.Df)((0,i.l4)(s),null))}))}),5):t((0,En.FA)())},frameWindow:a,initialDraggingEvent:l?s:void 0}))}const Ds=[x.A.SHAPE_LINE,x.A.SHAPE_RECTANGLE,x.A.SHAPE_ELLIPSE,x.A.SHAPE_POLYLINE,x.A.SHAPE_POLYGON],Cs=[x.A.DISTANCE,x.A.PERIMETER,x.A.RECTANGLE_AREA,x.A.ELLIPSE_AREA,x.A.POLYGON_AREA];var ks=n(33320),As=n(71603);function Os(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ts(e){for(var t=1;te.set("debugMode",!0),[te.RTr]:e=>e.set("hasFetchedInitialRecordsFromInstant",!0),[te.kt4]:(e,t)=>{let{enabled:n}=t;return e.set("areClipboardActionsEnabled",n)},[te.heZ]:(e,t)=>{let{group:n}=t;return e.set("group",n)},[te.G5w]:e=>e.set("isDebugConsoleVisible",!0),[te.GW4]:e=>e.set("isDebugConsoleVisible",!1),[te.mqf]:(e,t)=>{let{preset:n="text-highlighter"}=t;const o=new j.FV((0,J.lx)(e.set("currentItemPreset",n)));return e.withMutations((e=>{e.set("currentItemPreset",n),e.set("interactionMode",x.A.TEXT_HIGHLIGHTER),e.set("selectedAnnotationIds",(0,i.l4)([o.id])),e.set("selectedAnnotationMode",Q.o.EDITING),n&&!(n in fe.AQ)&&e.setIn(["annotationPresetIds",o.id],n),e.setIn(["annotations",o.id],o)}))},[te.tLW]:e=>e.withMutations((t=>{t.set("currentItemPreset",null),t.set("interactionMode",null),e.interactionMode===x.A.TEXT_HIGHLIGHTER&&(0,J.Xu)(t),t.set("selectedAnnotationIds",(0,i.l4)())})),[te.tS$]:(e,t)=>{let{preset:n="redaction"}=t;const o=new pe.Z((0,J.lx)(e.set("currentItemPreset",n)));return e.withMutations((e=>{e.set("currentItemPreset",n),e.set("interactionMode",x.A.REDACT_TEXT_HIGHLIGHTER),e.set("selectedAnnotationIds",(0,i.l4)([o.id])),e.set("selectedAnnotationMode",Q.o.EDITING),n&&!(n in fe.AQ)&&e.setIn(["annotationPresetIds",o.id],n),e.setIn(["annotations",o.id],o)}))},[te.g30]:e=>e.withMutations((t=>{t.set("currentItemPreset",null),t.set("interactionMode",null),e.interactionMode===x.A.REDACT_TEXT_HIGHLIGHTER&&(0,J.Xu)(t),t.set("selectedAnnotationIds",(0,i.l4)())})),[te.VNM]:(e,t)=>{let{editor:n}=t;return e.set("richTextEditorRef",n)},[te.yPS]:(e,t)=>{let{preset:n}=t;return e.withMutations((e=>{e.set("interactionMode",x.A.MEASUREMENT),void 0!==n&&e.set("currentItemPreset",n)}))},[te.m_C]:e=>e.set("interactionMode",null),[te.GXR]:(e,t)=>{let{preset:n}=t;const o=new j.Zc((0,J.lx)(e));return e.withMutations((t=>{t.set("interactionMode",x.A.INK),t.set("interactionsDisabled",!0),t.set("selectedAnnotationIds",(0,i.l4)([o.id])),t.set("selectedAnnotationMode",Q.o.EDITING),void 0!==n&&t.set("currentItemPreset",n);const r=void 0!==n?n:e.currentItemPreset;r&&!fe.AQ[r]&&t.setIn(["annotationPresetIds",o.id],r),t.setIn(["annotations",o.id],o)}))},[te.J7J]:e=>e.set("interactionMode",null),[te.JyO]:e=>e.withMutations((e=>{e.set("interactionMode",x.A.INK_ERASER),e.set("selectedAnnotationIds",(0,i.l4)()),e.set("interactionsDisabled",!0)})),[te.NDs]:e=>e.set("interactionMode",null),[te.Vu4]:(e,t)=>{let{signatureRect:n,signaturePageIndex:o,formFieldName:r}=t;null!==o&&(0,a.kG)("number"==typeof o&&o>=0&&o{e.set("interactionMode",x.A.SIGNATURE),e.setIn(["signatureState","signatureRect"],n),e.setIn(["signatureState","signaturePageIndex"],o),e.setIn(["signatureState","formFieldName"],r)}))},[te.S$y]:e=>e.withMutations((e=>{e.set("widgetAnnotationToFocus",null),e.set("interactionMode",null),e.set("currentItemPreset",null),e.setIn(["signatureState","formFieldName"],null),e.setIn(["signatureState","signatureRect"],null),e.setIn(["signatureState","signaturePageIndex"],null)})),[te.Dzg]:e=>{const t={annotations:(0,i.aV)([new j.GI({pageIndex:e.viewportState.currentPageIndex})]),reason:u.f.SELECT_START};return e.eventEmitter.emit("annotations.willChange",t),e.withMutations((e=>{e.set("interactionMode",x.A.STAMP_PICKER),e.set("currentItemPreset",null)}))},[te.M3C]:e=>e.withMutations((e=>{e.set("interactionMode",x.A.STAMP_CUSTOM),e.set("currentItemPreset",null)})),[te.tie]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[te.JS9]:(e,t)=>{const n=Cs.includes(t.shapeInteractionMode),o=(0,J.lx)(e),{activeMeasurementScale:r,isCalibratingScale:a}=e;n&&(o.measurementScale=null!=r&&r.scale?new As.Z({fromValue:Number(r.scale.fromValue),toValue:Number(r.scale.toValue),unitFrom:r.scale.unitFrom,unitTo:r.scale.unitTo}):e.measurementScale,o.measurementPrecision=null!=r&&r.precision?r.precision:e.measurementPrecision,a&&(o.strokeColor=j.Il.BLUE));const s=new t.shapeClass(o);return e.withMutations((n=>{n.set("interactionMode",t.shapeInteractionMode),n.set("interactionsDisabled",!0),n.set("selectedAnnotationIds",(0,i.l4)([s.id])),n.set("selectedAnnotationMode",Q.o.EDITING),void 0!==t.preset&&n.set("currentItemPreset",t.preset);const o=void 0!==t.preset?t.preset:e.currentItemPreset;o&&!fe.AQ[o]&&n.setIn(["annotationPresetIds",s.id],o),n.setIn(["annotations",s.id],s)}))},[te.AIf]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[te.cbv]:(e,t)=>{let{preset:n="redaction"}=t;const o=new pe.Z((0,J.lx)(e.set("currentItemPreset",n)));return e.withMutations((e=>{e.set("currentItemPreset",n),e.set("interactionMode",x.A.REDACT_SHAPE_RECTANGLE),e.set("interactionsDisabled",!0),e.set("selectedAnnotationIds",(0,i.l4)([o.id])),e.set("selectedAnnotationMode",Q.o.EDITING),n&&!(n in fe.AQ)&&e.setIn(["annotationPresetIds",o.id],n),e.setIn(["annotations",o.id],o)}))},[te.TUA]:e=>e.withMutations((t=>{t.set("interactionMode",null),t.set("currentItemPreset",null),e.interactionMode===x.A.REDACT_SHAPE_RECTANGLE&&(0,J.Xu)(t),t.set("selectedAnnotationIds",(0,i.l4)())})),[te.ZDQ]:(e,t)=>{const{annotation:n,preset:o}=t,r=n||new j.Qi((0,J.lx)(e));return e.withMutations((t=>{t.set("interactionMode",x.A.NOTE),t.set("selectedAnnotationIds",(0,i.l4)([r.id])),t.set("selectedAnnotationMode",Q.o.EDITING),void 0!==o&&t.set("currentItemPreset",o);const n=void 0!==o?o:e.currentItemPreset;n&&!fe.AQ[n]&&t.setIn(["annotationPresetIds",r.id],n),t.setIn(["annotations",r.id],r)}))},[te.B1n]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[te.dEe]:(e,t)=>{const n=t.annotation?t.annotation:new j.Jn((0,J.lx)(e));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,i.l4)([n.id])),e.set("selectedAnnotationMode",Q.o.EDITING),e.setIn(["annotations",n.id],n),e.set("interactionMode",x.A.COMMENT_MARKER),e.set("currentItemPreset",null)}))},[te.iMs]:e=>e.set("interactionMode",null),[te.pnu]:(e,t)=>{const{annotation:n,preset:o}=t;let r=n;if(!r&&(r=new j.gd((0,J.lx)(e)),e.enableRichText(r))){var a;const e=ue.ri.setStyleOrToggleFormat(r.text.value||"","fontColor",(null===(a=r.fontColor)||void 0===a?void 0:a.toHex())||"");r=r.set("fontColor",null).set("text",{format:"xhtml",value:e})}const s=r.id;return e.withMutations((n=>{n.set("interactionMode",t.isCallout?x.A.CALLOUT:x.A.TEXT),void 0!==o&&n.set("currentItemPreset",o);const a=void 0!==o?o:e.currentItemPreset;a&&!fe.AQ[a]&&n.setIn(["annotationPresetIds",s],a),n.setIn(["annotations",s],r),n.set("selectedAnnotationIds",(0,i.l4)([s])),n.set("selectedAnnotationMode",Q.o.EDITING)}))},[te.KqR]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[te.JRS]:e=>e.withMutations((e=>{e.set("interactionMode",x.A.DOCUMENT_CROP),e.set("interactionsDisabled",!0),e.set("currentItemPreset",null)})),[te.Gox]:e=>e.withMutations((e=>{e.set("interactionMode",null),e.set("interactionsDisabled",!1)})),[te.eFQ]:e=>e.set("interactionsDisabled",!1),[te.L8n]:e=>e.set("interactionsDisabled",!0),[te.MuN]:e=>e.set("showToolbar",!0),[te.xk1]:e=>e.set("showToolbar",!1),[te.tYC]:e=>e.set("enableAnnotationToolbar",!0),[te.NAH]:e=>e.set("enableAnnotationToolbar",!1),[te.Ce5]:(e,t)=>e.set("clientsChangeCallback",t.callback),[te.WtY]:(e,t)=>e.set("transformClientToPage",t.transformClientToPage),[te.tPZ]:(e,t)=>{const n=t.width>0?Math.abs(t.width-e.scrollbarOffset):-1*e.scrollbarOffset,o=(0,de.a$)(e.viewportState,e.viewportState.viewportRect,!1,n);return e.merge({viewportState:o,scrollbarOffset:t.width})},[te.rWQ]:(e,t)=>{let{layoutMode:n}=t;return e.update("viewportState",(e=>(0,de.YA)(e,n)))},[te.b0l]:(e,t)=>{let{scrollMode:n}=t;return e.update("viewportState",(e=>(0,de._U)(e,n)))},[te._n_]:(e,t)=>{let{scrollElement:n}=t;return e.set("scrollElement",n)},[te.bxr]:(e,t)=>{let{spreadSpacing:n}=t;return e.set("viewportState",(0,de.JN)(e.viewportState,n))},[te._ko]:(e,t)=>{let{pageSpacing:n}=t;return e.set("viewportState",(0,de.vY)(e.viewportState,n))},[te.FHt]:(e,t)=>{let{keepFirstSpreadAsSinglePage:n}=t;return e.set("viewportState",(0,de.EY)(e.viewportState,n))},[te.ht3]:(e,t)=>{let{viewportPadding:n}=t;return e.set("viewportState",(0,de._P)(e.viewportState,n))},[te.aYj]:e=>e.set("printingEnabled",!0),[te.hpj]:e=>e.set("printingEnabled",!1),[te.QYP]:e=>e.set("exportEnabled",!0),[te.zKF]:e=>e.set("exportEnabled",!1),[te.NfO]:(e,t)=>{let{readOnlyEnabled:n}=t;return e.set("readOnlyEnabled",n)},[te.cyk]:e=>e.set("showAnnotations",!0),[te.KYU]:e=>e.set("showAnnotations",!1),[te.Nl1]:e=>e.set("showComments",!0),[te.L9g]:e=>e.set("showComments",!1),[te.Dl4]:e=>e.set("showAnnotationNotes",!0),[te.GfR]:e=>e.set("showAnnotationNotes",!1),[te.Xlm]:e=>((0,a.kG)(!e.backendPermissions.readOnly,"Can not disable read only mode."),e.set("readOnlyEnabled",ve.J.NO)),[te.iQZ]:(e,t)=>{let{features:n}=t;return(0,a.kG)(0===e.features.size,"Cannot alterate the supported features list after initialization."),n.includes(ge.q.FORMS)||(e=e.set("formsEnabled",!1)),(0,So.Vz)(n)||n.includes(ge.q.ELECTRONIC_SIGNATURES)||(e=(e=e.set("readOnlyEnabled",ve.J.LICENSE_RESTRICTED)).setIn(["backendPermissions","readOnly"],!0)),e.set("features",n)},[te.JQC]:(e,t)=>{let{signatureFeatureAvailability:n}=t;return(0,a.kG)(!e.signatureFeatureAvailability,"Cannot alterate the signature feature availability after initialization."),e.set("signatureFeatureAvailability",n)},[te.hv0]:(e,t)=>{let{mode:n}=t;return e.set("sidebarMode",n)},[te.eI4]:(e,t)=>{let{placement:n}=t;return e.set("sidebarPlacement",n)},[te.bP3]:(e,t)=>{let{sidebarOptions:n}=t;return e.set("sidebarOptions",n)},[te._TO]:(e,t)=>{let{showSignatureValidationStatus:n}=t;return e.set("showSignatureValidationStatus",n)},[te.dVW]:(e,t)=>{let{locale:n}=t;return e.set("locale",n)},[te.hlI]:(e,t)=>{let{annotationCreatorName:n,immutable:o}=t;return e.set("annotationCreatorName",n).set("annotationCreatorNameReadOnly",o)},[te.ZbY]:(e,t)=>{let{editableAnnotationTypes:n}=t;return e.set("editableAnnotationTypes",n).set("isEditableAnnotation",null)},[te.uFU]:(e,t)=>{let{isEditableAnnotation:n}=t;return e.set("isEditableAnnotation",n).set("editableAnnotationTypes",(0,i.l4)(he.Z))},[te.ArU]:(e,t)=>{let{editableAnnotationTypes:n,isEditableAnnotation:o}=t;return e.set("isEditableAnnotation",o).set("editableAnnotationTypes",n)},[te.Q2U]:(e,t)=>{let{isEditableComment:n}=t;return e.set("isEditableComment",n)},[te.IFt]:(e,t)=>{let{formDesignMode:n}=t;return e.withMutations((t=>{t.set("formDesignMode",n),!1===n&&t.set("selectedAnnotationIds",e.selectedAnnotationIds.filter((t=>e.annotations.get(t)&&!(e.annotations.get(t)instanceof j.x_))))}))},[te.YIz]:e=>e.set("interactionMode",x.A.DOCUMENT_EDITOR),[te.Gkm]:(e,t)=>{let{measurementSnapping:n}=t;return e.set("measurementSnapping",n)},[te.fwq]:(e,t)=>{let{measurementPrecision:n}=t;return e.set("measurementPrecision",n)},[te.G6t]:(e,t)=>{let{scale:n}=t;return e.set("measurementScale",n)},[te.K26]:e=>e.set("interactionMode",null),[te.Hbz]:e=>e.set("interactionMode",x.A.MARQUEE_ZOOM),[te.$VE]:(e,t)=>{let{interactionMode:n}=t;return e.set("interactionMode",n)},[te.yrz]:e=>e.set("interactionMode",null),[te.sYK]:e=>e.set("interactionMode",null),[te.fAF]:(e,t)=>e.set("customRenderers",t.customRenderers),[te.pNz]:e=>e.withMutations((e=>{e.set("isSigning",!0),e.set("interactionsDisabled",!0)})),[te.bV3]:e=>e.withMutations((e=>{e.set("isSigning",!1),e.set("interactionsDisabled",!1)})),[te.EpY]:e=>e.withMutations((e=>{e.set("isApplyingRedactions",!0),e.set("interactionsDisabled",!0)})),[te.bui]:e=>e.withMutations((e=>{e.set("isApplyingRedactions",!1),e.set("interactionsDisabled",!1)})),[te.vVk]:(e,t)=>{let{previewRedactionMode:n}=t;return e.set("previewRedactionMode",n)},[te.D5x]:(e,t)=>e.set("a11yStatusMessage",t.a11yStatusMessage),[te.rpU]:(e,t)=>{let{lastToolbarActionUsedKeyboard:n}=t;return e.set("lastToolbarActionUsedKeyboard",n)},[te.KA1]:(e,t)=>{let{documentComparisonState:n}=t;return e.set("documentComparisonState",n?Ts(Ts({},e.documentComparisonState),n):null)},[te.MYU]:e=>e.set("canScrollWhileDrawing",!0),[te.mbD]:e=>e.set("canScrollWhileDrawing",!1),[te.wog]:e=>e.set("keepSelectedTool",!0),[te.UL9]:e=>e.set("keepSelectedTool",!1),[te.IyB]:(e,t)=>{let{instance:n}=t;return e.set("instance",n)},[te.eJ4]:(e,t)=>{let{customUIStore:n}=t;return e.set("customUIStore",n)},[te.R7l]:e=>{const t=new j.R1((0,J.lx)(e)),n="link";return e.withMutations((e=>{e.set("linkAnnotationMode",!0),e.set("interactionMode",x.A.LINK),e.set("selectedAnnotationIds",(0,i.l4)([t.id])),e.set("selectedAnnotationMode",Q.o.EDITING),e.setIn(["annotations",t.id],t),e.set("currentItemPreset",n);const o=n;!fe.AQ.link&&e.setIn(["annotationPresetIds",t.id],o)}))},[te.qKG]:e=>e.withMutations((e=>{e.set("linkAnnotationMode",!1)})),[te.oZW]:(e,t)=>{let{multiAnnotationsUsingShortcut:n}=t;return e.withMutations((t=>{e.isMultiSelectionEnabled&&(t.set("interactionMode",x.A.MULTI_ANNOTATIONS_SELECTION),t.set("selectedAnnotationIds",(0,i.l4)()),t.set("selectedAnnotationMode",Q.o.SELECTED),t.set("multiAnnotationsUsingShortcut",n))}))},[te.odo]:e=>e.withMutations((e=>{e.set("interactionMode",null),e.set("multiAnnotationsUsingShortcut",null)})),[te.Vje]:e=>e.set("interactionMode",x.A.MEASUREMENT_SETTINGS),[te.XTO]:e=>e.set("interactionMode",null),[te.FQb]:(e,t)=>{let{annotationsIds:n}=t;return e.withMutations((e=>{var t;const{annotationsGroups:o,annotations:r}=e,s=null===(t=r.find((e=>e.get("id")===n.first())))||void 0===t?void 0:t.get("pageIndex");n.forEach((e=>{const t=r.find((t=>t.id===e));(0,a.kG)(t,`Annotation with id ${e} couldn't be found.`),(0,a.kG)(s===t.get("pageIndex"),"Annotations can't be grouped if they are not on the same page")}));const l=o.map((e=>{const t=e.annotationsIds;return e.annotationsIds=t.filter((e=>!n.includes(e))),e})).filter((e=>e.annotationsIds.size>0)),c=(0,ks.C)();e.set("annotationsGroups",l.set(c,{groupKey:c,annotationsIds:(0,i.l4)(n)})),e.set("selectedGroupId",c)}))},[te.t$K]:(e,t)=>{let{groupId:n}=t;return e.set("selectedGroupId",n)},[te.vBn]:(e,t)=>{let{pullToRefreshNewState:n}=t;return e.set("disablePullToRefresh",n)},[te.bzW]:(e,t)=>{let{groupId:n}=t;return e.withMutations((e=>{const{annotationsGroups:t}=e;e.set("annotationsGroups",t.delete(n)),e.set("selectedGroupId",null)}))},[te.b4I]:(e,t)=>{let{annotationId:n,groupId:o}=t;return e.withMutations((e=>{const{annotationsGroups:t}=e,r=t.get(o);r&&(e.set("annotationsGroups",t.set(o,{groupKey:o,annotationsIds:r.annotationsIds.delete(n)})),e.set("selectedGroupId",null))}))},[te.tzG]:(e,t)=>{let{customFontsReadableNames:n}=t;return e.set("customFontsReadableNames",n)}};function Ms(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Is,t=arguments.length>1?arguments[1]:void 0;const n=Fs[t.type];return n?n(e,t):e}var _s=n(89849);const Rs=new j.ZM,Ns={[te.BS3]:(e,t)=>e.set("connectionState",new j.em({name:_s.F.CONNECTING,reason:t.reason,progress:t.progress})),[te.nmm]:e=>e.set("connectionState",new j.em({name:_s.F.CONNECTED})),[te.zZV]:(e,t)=>e.set("connectionState",new j.em({name:_s.F.CONNECTION_FAILED,reason:t.reason})),[te.rxv]:(e,t)=>e.set("annotationManager",t.annotationManager),[te.Hrp]:(e,t)=>e.set("bookmarkManager",t.bookmarkManager),[te.GHc]:(e,t)=>e.set("formFieldValueManager",t.formFieldValueManager),[te.oj5]:(e,t)=>e.set("formFieldManager",t.formFieldManager),[te.UII]:(e,t)=>e.set("commentManager",t.commentManager),[te.gbd]:(e,t)=>e.set("changeManager",t.changeManager),[te.Ty$]:(e,t)=>e.set("connectionState",new j.em({name:_s.F.PASSWORD_REQUIRED})).set("resolvePassword",t.resolvePassword),[te.hC8]:e=>e.set("isUnlockedViaModal",!0).set("resolvePassword",null),[te.poO]:(e,t)=>e.set("hasPassword",t.hasPassword),[te.iZ1]:(e,t)=>e.set("allowedTileScales",t.allowedTileScales)};function Ls(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rs,t=arguments.length>1?arguments[1]:void 0;const n=Ns[t.type];return n?n(e,t):e}const Bs=new j.ZM,js={[te.jJ7]:(e,t)=>{const{item:n}=t;return(0,Ne.k)(e.pages.get(n.pageIndex),`Trying to insert a CustomOverlayItem at pageIndex ${n.pageIndex}. But such a page does not exist.`),e.withMutations((e=>{e.updateIn(["pages",n.pageIndex,"customOverlayItemIds"],(e=>e.add(n.id))).setIn(["customOverlayItems",n.id],n)}))},[te.G8_]:(e,t)=>{const n=e.customOverlayItems.get(t.id);return(0,Ne.k)(n,"CustomOverlayItem not found"),e.withMutations((e=>{e.deleteIn(["pages",n.pageIndex,"customOverlayItemIds",n.id]).deleteIn(["customOverlayItems",n.id])}))}};function zs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bs,t=arguments.length>1?arguments[1]:void 0;const n=js[t.type];return n?n(e,t):e}const Ks=new j.ZM,Zs={[te.lRe]:(e,t)=>e.set("digitalSignatures",t.digitalSignatures)};function Us(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ks,t=arguments.length>1?arguments[1]:void 0;const n=Zs[t.type];return n?n(e,t):e}const Vs=new me.Z,Gs={[te.Oh4]:(e,t)=>{let{outline:n}=t;return e.withMutations((e=>{e.setIn(["documentOutlineState","elements"],n),e.setIn(["documentOutlineState","expanded"],qs((0,i.D5)(),n,"0"))}))},[te.Whn]:(e,t)=>{let{level:n}=t;return e.updateIn(["documentOutlineState","expanded",n],(e=>!e))}};function Ws(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vs,t=arguments.length>1?arguments[1]:void 0;const n=Gs[t.type];return n?n(e,t):e}function qs(e,t,n){return t.reduce(((e,t,o)=>{if(0===t.size)return e;const r=`${n}-${o}`;return qs(e.set(r,t.isExpanded),t.children,r)}),e)}var Hs=n(71693),$s=n(56956),Ys=n(52560),Xs=n(28098);const Js=new j.ZM,Qs={[te.wtk]:e=>{const{viewportState:t}=e,n=(0,Hs.dF)(t,t.currentPageIndex),o=(0,Hs.kd)(t),r=n>=o-1?o-1:n+1,s=(0,Hs.P1)(t,r)[0];return(0,a.kG)("number"==typeof s,"Can not find the next pageIndex."),e.withMutations((t=>{t.set("viewportState",(0,$s.eb)(e.viewportState,s)),t.set("hoverAnnotationIds",(0,i.l4)())}))},[te.mE7]:e=>{const{viewportState:t}=e,n=(0,Hs.dF)(t,t.currentPageIndex),o=n<=0?0:n-1,r=(0,Hs.P1)(t,o)[0];return(0,a.kG)("number"==typeof r,"Can not find the next pageIndex."),e.withMutations((n=>{n.set("viewportState",(0,$s.eb)(e.viewportState,r)),r!==t.currentPageIndex&&n.set("hoverAnnotationIds",(0,i.l4)())}))},[te.RxB]:(e,t)=>{const{pageIndex:n}=t;return(0,a.kG)(n>=0&&n{t.set("viewportState",(0,$s.eb)(e.viewportState,n)),n!==e.viewportState.currentPageIndex&&t.set("hoverAnnotationIds",(0,i.l4)())}))},[te.mLh]:(e,t)=>{const{scrollPosition:n,lastScrollUsingKeyboard:o=!1}=t;return e.set("viewportState",(0,$s.hu)(e.viewportState,n).set("lastScrollUsingKeyboard",o))},[te.g4f]:(e,t)=>{let{pageIndex:n,rect:o}=t;return e.set("viewportState",(0,$s.kN)(e.viewportState,n,o))},[te.Lyo]:(e,t)=>{let{pageIndex:n,rect:o}=t;return e.set("viewportState",(0,$s.vP)(e.viewportState,n,o))},[te.xYE]:(e,t)=>{var n;let{viewportRect:o,isTriggeredByOrientationChange:r}=t;const i=j.UL.fromClientRect(null===(n=e.rootElement)||void 0===n?void 0:n.getBoundingClientRect()),a=(0,de.a$)(e.viewportState,o,r,e.scrollbarOffset);return e.withMutations((e=>{e.set("containerRect",i),e.set("viewportState",a)}))},[te.syg]:(e,t)=>{let n=(0,Ys.cq)(e.viewportState,t.zoomLevel);return t.scrollPosition&&(n=n.set("scrollPosition",t.scrollPosition)),e.set("viewportState",n)},[te.u9b]:(e,t)=>{const n=e.viewportState.set("zoomStep",t.zoomStep);return e.set("viewportState",n)},[te.ZGb]:(e,t)=>e.set("viewportState",t.viewportState),[te.UFs]:e=>e.set("viewportState",(0,Ys.cq)(e.viewportState,e.viewportState.zoomLevel*e.viewportState.zoomStep)),[te.RCc]:e=>e.set("viewportState",(0,Ys.cq)(e.viewportState,e.viewportState.zoomLevel/e.viewportState.zoomStep)),[te.MfE]:e=>e.set("viewportState",(0,Ys.cq)(e.viewportState,Xs.c.AUTO)),[te.BWS]:e=>e.set("viewportState",(0,Ys.cq)(e.viewportState,Xs.c.FIT_TO_VIEWPORT)),[te.QU3]:e=>e.set("viewportState",(0,Ys.cq)(e.viewportState,Xs.c.FIT_TO_WIDTH)),[te.lD1]:(e,t)=>{let{degCW:n}=t;return e.update("viewportState",(e=>(0,Yr.U1)(e,n)))},[te.kRo]:e=>e.set("interactionMode",x.A.PAN),[te.UFK]:e=>e.set("interactionMode",null),[te.D1d]:(e,t)=>{let{width:n}=t;return e.set("sidebarWidth",n)},[te.WsN]:(e,t)=>{let{shouldDisable:n}=t;return e.set("scrollDisabled",n)}};function el(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Js,t=arguments.length>1?arguments[1]:void 0;const n=Qs[t.type];return n?n(e,t):e}var tl=n(19568),nl=n(47710),ol=n(4757),rl=n(56169),il=n(98013);function al(e){return(0,a.kG)(6===e.length,"Tried to deserialize matrix that does not have 6 entries"),new B.sl({a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]})}var sl=n(93572),ll=n(76413),cl=n.n(ll);function ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function dl(e){for(var t=1;t{const n=e.pages.map((e=>e.pageKey)),o=(0,i.aV)(t.payload).map((e=>{const t=new j.$u({width:e.width,height:e.height}),o=n.get(e.pageIndex)||(0,ks.C)();return new j.T3(dl(dl({},e),{},{matrix:al(e.matrix),reverseMatrix:al(e.reverseMatrix),untransformedRect:(0,sl.k)(e.untransformedBBox),transformedRect:(0,sl.k)(e.transformedBBox),rawPdfBoxes:e.rawPdfBoxes,pageKey:o,pageSize:t}))})),r=o.map((e=>e.pageSize));return e.withMutations((e=>{const t=e.viewportState.set("pageSizes",r);e.set("pages",o),e.set("viewportState",t),e.set("arePageSizesLoaded",!0)}))},[te.ME7]:(e,t)=>{const n=(0,i.aV)(t.payload.pages).map((e=>{var n;const o=new j.$u({width:e.width,height:e.height}),r=(null===(n=t.pageKeys)||void 0===n?void 0:n.get(e.pageIndex))||(0,ks.C)();return new j.T3(dl(dl({},e),{},{matrix:al(e.matrix),reverseMatrix:al(e.reverseMatrix),untransformedRect:(0,sl.k)(e.untransformedBBox),transformedRect:(0,sl.k)(e.transformedBBox),rawPdfBoxes:e.rawPdfBoxes,pageKey:r,pageSize:o}))})),o=n.map((e=>e.pageSize));return e.withMutations((r=>{let i=r.viewportState.set("pageSizes",o);if(r.set("pages",n),r.set("totalPages",n.size),r.set("documentPermissions",new tl.Z(mt.Ei.IGNORE_DOCUMENT_PERMISSIONS?void 0:t.payload.permissions)),i.currentPageIndex>=n.size&&(i=i.set("currentPageIndex",0)),i.zoomMode===Xs.c.CUSTOM){const e=(0,Ys.Yo)(i),t=(0,Ys.Sm)(i);(i.zoomLevelt)&&(i=i.set("zoomMode",Xs.c.AUTO))}if(i=i.zoomMode===Xs.c.CUSTOM?i.merge({zoomLevel:(0,Ys.X9)(i,i.zoomLevel)}):i.merge({zoomLevel:(0,Ys.X9)(i,i.zoomMode)}),i.scrollMode===nl.G.PER_SPREAD&&(i=(0,de._U)(i.set("scrollMode",nl.G.CONTINUOUS),nl.G.PER_SPREAD)),i.scrollMode===nl.G.DISABLED&&(i=(0,de._U)(i.set("scrollMode",nl.G.CONTINUOUS),nl.G.DISABLED)),i.currentPageIndex>0){if(0===i.viewportRect.width||0===i.viewportRect.height){let t=e.containerRect;e.showToolbar&&(t=t.set("top",il.k3).set("height",t.height-il.k3)),i=i.set("viewportRect",t)}i=(0,$s.eb)(i.set("currentPageIndex",0),i.currentPageIndex)}r.set("viewportState",i)}))},[te.GZZ]:(e,t)=>{const n=(0,i.D5)().withMutations((n=>{const o=[];t.textLines.forEach((t=>{var n;o.push(new Br.f(null===(n=e.frameWindow)||void 0===n?void 0:n.document,(0,i.aV)([(0,ol.LD)((0,So.HI)(e),t)]),{},cl().line))})),t.textLines.forEach(((e,t)=>{const r=o[t].measure().get(0);(0,Ne.k)(r);const{id:i}=e;n.set(i,{scaleX:e.boundingBox.width/r.width,scaleY:e.boundingBox.height/r.height})})),t.textLines.forEach(((e,t)=>{o[t].remove()}))}));return e.setIn(["pages",t.pageIndex,"textLines"],t.textLines).setIn(["pages",t.pageIndex,"textLineScales"],n)},[te.fnw]:(e,t)=>{let{backendPermissions:n}=t;return e.withMutations((e=>{n.readOnly&&e.set("readOnlyEnabled",ve.J.VIA_BACKEND_PERMISSIONS),n.downloadingAllowed||(e.set("exportEnabled",!1),e.set("printingEnabled",!1)),e.set("backendPermissions",n)}))},[te.obk]:e=>e.withMutations((e=>{e.set("annotations",(0,i.D5)()),e.set("attachments",(0,i.D5)()),e.set("formFields",(0,i.D5)()),e.set("currentTextSelection",null),e.set("interactionMode",null),e.set("selectedAnnotationIds",(0,i.l4)()),e.set("selectedAnnotationShouldDrag",null),e.set("selectedAnnotationMode",null),e.set("activeAnnotationNote",null),e.set("interactionsDisabled",!1),e.set("annotationPresetIds",(0,i.D5)()),e.set("documentOutlineState",new j.S),e.set("comments",(0,i.D5)()),e.set("commentThreads",(0,i.D5)()),e.set("invalidAPStreams",(0,i.D5)()),e.set("searchState",new rl.Z)})),[te.S0t]:(e,t)=>e.set("documentHandle",t.documentHandle).set("isDocumentHandleOutdated",!1),[te.YS$]:(e,t)=>e.set("isDocumentHandleOutdated",t.isDocumentHandleOutdated),[te.UX$]:(e,t)=>e.set("reuseState",t.state?new me.w(t.state):null),[te.TG1]:(e,t)=>e.withMutations((e=>{t.pageIndexes.forEach((t=>{e.setIn(["pages",t,"pageKey"],(0,ks.C)())}))}))};function hl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pl,t=arguments.length>1?arguments[1]:void 0;const n=fl[t.type];return n?n(e,t):e}const ml=new me.Z,gl={[te.skc]:e=>e.set("isPrinting",!0),[te.snh]:e=>e.set("isPrinting",!1),[te._uU]:e=>e.set("isPrinting",!1),[te.qV6]:(e,t)=>{let{currentPage:n}=t;return e.set("printLoadingIndicatorProgress",n)}};function vl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ml,t=arguments.length>1?arguments[1]:void 0;const n=gl[t.type];return n?n(e,t):e}function yl(e,t){const{focusedResultIndex:n}=e.searchState,o=e.searchState.results.size;if(o<=0)return e;let r=n+t;r<0&&(r+=o);const i=Math.abs(r%o),a=e.searchState.results.get(i);(0,Ne.k)(a);const s=(0,$s.kN)(e.viewportState,a.pageIndex,j.UL.union(null==a?void 0:a.rectsOnPage));return e.setIn(["searchState","focusedResultIndex"],i).set("viewportState",s)}const bl={[te.FH6]:(e,t)=>t.term.length>=e.searchState.minSearchQueryLength?e.setIn(["searchState","term"],t.term):e.setIn(["searchState","term"],t.term).setIn(["searchState","focusedResultIndex"],-1).setIn(["searchState","results"],(0,i.aV)()).setIn(["searchState","isLoading"],!1),[te.$Jy]:e=>yl(e,1),[te.gIV]:e=>yl(e,-1),[te.$hO]:e=>e.set("interactionMode",x.A.SEARCH).setIn(["searchState","isFocused"],!0),[te._AY]:e=>e.set("interactionMode",null).mergeIn(["searchState"],{isFocused:!1,term:"",results:(0,i.aV)(),focusedResultIndex:-1}),[te.Ifu]:e=>e.setIn(["searchState","isFocused"],!0),[te.nFn]:e=>e.setIn(["searchState","isFocused"],!1),[te.F6q]:(e,t)=>{let{isLoading:n}=t;return e.setIn(["searchState","isLoading"],n)},[te.qZT]:(e,t)=>{let{results:n}=t,o=e.viewportState,r=-1;if(-1!==e.searchState.focusedResultIndex){const t=e.searchState.results.get(e.searchState.focusedResultIndex);(0,Ne.k)(t);const{pageIndex:o}=t,i=t.rectsOnPage.first();(0,Ne.k)(i);const{top:a,left:s}=i;r=n.findIndex((e=>{const t=e.rectsOnPage.first();return(0,Ne.k)(t),e.pageIndex===o&&t.top===a&&t.left===s}))}if(-1===r&&n.size>0){r=n.findIndex((t=>t.pageIndex>=e.viewportState.currentPageIndex)),-1===r&&(r=0);const t=n.get(r);(0,Ne.k)(t),o=(0,$s.kN)(e.viewportState,t.pageIndex,j.UL.union(t.rectsOnPage))}return e.setIn(["searchState","results"],n).setIn(["searchState","focusedResultIndex"],r).set("viewportState",o)},[te.p1u]:(e,t)=>{let{state:n}=t;return e.set("searchState",n)},[te.esN]:(e,t)=>{let{provider:n}=t;return e.set("searchProvider",n)}};function wl(e,t){const n=bl[t.type];return n?n(e,t):e}const Sl=new j.ZM,El={[te.f3N]:(e,t)=>{const n=t.textRange,{startTextLineId:o,endTextLineId:r,startPageIndex:a,endPageIndex:s}=n.startAndEndIds(),l=new j.Bs({textRange:t.textRange,startTextLineId:o,endTextLineId:r,startPageIndex:a,endPageIndex:s}),c=e.withMutations((t=>{t.set("currentTextSelection",l),e.interactionMode!==x.A.TEXT_HIGHLIGHTER&&e.interactionMode!==x.A.REDACT_TEXT_HIGHLIGHTER&&t.set("selectedAnnotationIds",(0,i.l4)())}));return(0,So.j$)(j.On,e)?c:c.withMutations((e=>{e.set("inlineTextMarkupToolbar",t.inlineTextMarkupToolbar)}))},[te.MOe]:e=>e.delete("currentTextSelection"),[te.a33]:e=>e.withMutations((t=>{t.delete("selectedAnnotationMode"),t.set("currentItemPreset",null),e.interactionMode===x.A.TEXT_HIGHLIGHTER&&(0,J.Xu)(t),t.set("selectedAnnotationIds",(0,i.l4)()),t.set("widgetAnnotationToFocus",null),t.set("interactionMode",e.interactionMode===x.A.PAN||e.interactionMode===x.A.FORM_CREATOR?e.interactionMode:null),t.set("selectedTextOnEdit",!1),t.set("activeAnnotationNote",null),e.interactionMode===x.A.DISTANCE&&e.isCalibratingScale&&t.set("isCalibratingScale",!1)})),[te._Yi]:(e,t)=>{let n=null;const o=t.annotations.filter((t=>{const o=e.annotations.get(t);return n=e.annotationPresetIds.get(t)||null,o&&(o instanceof j.Qi||o.isCommentThreadRoot||!(0,So.lV)(o,e))}));return 0===o.size?e:e.withMutations((e=>{e.set("selectedAnnotationIds",o),e.set("currentItemPreset",n),e.set("selectedAnnotationMode",t.mode),e.set("selectedAnnotationShouldDrag",t.selectedAnnotationShouldDrag),e.delete("currentTextSelection")}))},[te.c3G]:e=>e.set("selectedAnnotationShouldDrag",null),[te.RvB]:e=>e.set("selectedTextOnEdit",!0),[te.qh0]:(e,t)=>((0,a.kG)(e.annotations.has(t.id),"Annotation not found"),e.readOnlyEnabled?e.update("focusedAnnotationIds",(e=>e.add(t.id))):e),[te.rm]:(e,t)=>((0,a.kG)(e.annotations.has(t.id),"Annotation not found"),e.readOnlyEnabled?e.update("focusedAnnotationIds",(e=>e.delete(t.id))):e),[te.TPT]:(e,t)=>{(0,a.kG)(e.annotations.has(t.id),"Annotation not found");const n=e.annotations.get(t.id);return e.readOnlyEnabled===ve.J.NO||n instanceof j.Qi?((0,a.kG)(n instanceof j.On||n instanceof j.R1||n instanceof j.gd||n instanceof j.Qi,"Annotation type does not support hovering"),e.updateIn(["hoverAnnotationIds"],(e=>e.has(t.id)?e:e.add(t.id)))):e},[te.iyZ]:(e,t)=>{(0,a.kG)(e.annotations.has(t.id),"Annotation not found");const n=e.annotations.get(t.id);return e.readOnlyEnabled===ve.J.NO||n instanceof j.Qi?((0,a.kG)(n instanceof j.On||n instanceof j.R1||n instanceof j.gd||n instanceof j.Qi,"Annotation type does not support hovering"),e.updateIn(["hoverAnnotationIds"],(e=>e.has(t.id)?e.delete(t.id):e))):e},[te.yyM]:(e,t)=>{const n=t.annotationNote;return e.set("hoverAnnotationNote",n)},[te.vSH]:(e,t)=>e.set("activeAnnotationNote",t.annotationNote),[te._fK]:(e,t)=>e.withMutations((n=>{if(t.newSelectedAnnotationsIds.size>0)n.set("selectedAnnotationIds",t.newSelectedAnnotationsIds);else{const o=1===e.selectedAnnotationIds.size&&e.annotations.get(e.selectedAnnotationIds.first());if(!o||null!=o.pageIndex){const o=new t.annotationClass((0,J.lx)(e));n.setIn(["annotations",o.id],o),n.set("selectedAnnotationIds",(0,i.l4)([o.id])),null!=e.currentItemPreset&&n.setIn(["annotationPresetIds",o.id],e.currentItemPreset)}}})),[te.L2A]:(e,t)=>e.set("inlineTextSelectionToolbarItems",t.inlineTextSelectionToolbarItemsCallback)};function Pl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sl,t=arguments.length>1?arguments[1]:void 0;const n=El[t.type];return n?n(e,t):e}const xl=new j.ZM,Dl={[te.mGH]:(e,t)=>{let{signature:n}=t;return e.withMutations((e=>{(0,J.ud)(e,n)}))},[te.W0l]:(e,t)=>{let{annotation:n}=t;return e.signatureState.formFieldName&&(0,a.kG)(!e.signatureState.formFieldsNotSavingSignatures.includes(e.signatureState.formFieldName),`Cannot save signature for the form field \`${e.signatureState.formFieldName}\` because this field is in formFieldsNotSavingSignatures`),e.updateIn(["signatureState","storedSignatures"],(e=>e.push(n)))},[te.Kw7]:(e,t)=>{let{annotations:n}=t;return e.setIn(["signatureState","storedSignatures"],n)},[te.Kc8]:(e,t)=>{let{annotation:n}=t;return e.updateIn(["signatureState","storedSignatures"],(e=>e.filter((e=>!e.equals(n)))))}};function Cl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xl,t=arguments.length>1?arguments[1]:void 0;const n=Dl[t.type];return n?n(e,t):e}const kl=new j.ZM,Al={[te.aWu]:(e,t)=>e.set("toolbarItems",t.toolbarItems),[te.T3g]:(e,t)=>e.set("annotationToolbarItems",t.annotationToolbarItemsCallback),[te.A8G]:(e,t)=>e.set("annotationToolbarHeight",t.height)};function Ol(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kl,t=arguments.length>1?arguments[1]:void 0;const n=Al[t.type];return n?n(e,t):e}const Tl=new j.ZM,Il={[te.iJ2]:(e,t)=>{let{formJSON:n}=t;(0,a.kG)("pspdfkit/form"==n.type,"Invalid type for form JSON."),(0,a.kG)(1==n.v,"Invalid version for form JSON."),(0,a.kG)(n.fields instanceof Array,"Invalid type for `fields` in form JSON.");const o=(0,nt.U_)(n.fields),r=(0,nt.hT)(n.annotations);return e.withMutations((e=>{e.set("formFields",o),r.forEach((t=>{const{id:n}=t;e.setIn(["annotations",n],t),(0,a.kG)(e.pages.has(t.pageIndex),"Invalid `pageIndex` of widget annotation: "+t.pageIndex),e.updateIn(["pages",t.pageIndex,"annotationIds"],(e=>e.add(n)))}))}))},[te.zGM]:(e,t)=>e.withMutations((e=>{t.formFields.forEach((t=>{e.setIn(["formFields",t.name],t)}))})),[te.Wyx]:(e,t)=>e.withMutations((n=>{t.formFields.forEach((t=>{const o=e.formFields.valueSeq().find((e=>e.id===t.id));(0,a.kG)(o,"Invalid form field ID: "+t.id);const r=o.name!==t.name;if(t instanceof j.XQ){const n=e.formFields.find((e=>e.name===t.name)),o=null==n?void 0:n.annotationIds;if(o&&n.id!==t.id){let e=o,r=n.options;[...t.annotationIds].forEach(((n,o)=>{e.includes(n)||(e=e.push(n),r=r.push(t.options.get(o)))})),t=t.set("annotationIds",e).set("options",r)}}if(r){t.annotationIds.forEach((e=>{n.annotations.get(e)&&n.setIn(["annotations",e,"formFieldName"],t.name)})),n.deleteIn(["formFields",o.name])}n.setIn(["formFields",t.name],t),(0,nt.r_)(o,e,n)}))})),[te.fDl]:(e,t)=>{const n=e.formFields.find((e=>e.id===t.formField.id));return e.withMutations((o=>{o.deleteIn(["formFields",null==n?void 0:n.name]),o.setIn(["formFields",t.formField.name],t.formField),(0,nt.r_)(e.formFields.get(t.formField.name),e,o)}))},[te.D_w]:(e,t)=>e.withMutations((n=>{t.formFieldsIds.forEach((t=>{const o=(0,nt.CL)(e,t);o&&n.deleteIn(["formFields",o.name])}))})),[te.Ui_]:(e,t)=>e.withMutations((n=>{(0,nt.AM)({state:e,mutableState:n,formFieldValues:t.formFieldValues,areFormFieldValuesNew:!0})})),[te.m3$]:(e,t)=>e.withMutations((n=>{(0,nt.AM)({state:e,mutableState:n,formFieldValues:t.formFieldValues,areFormFieldValuesNew:!1})})),[te.VK7]:(e,t)=>{let{formattedFormFieldValues:n}=t;return e.set("formattedFormFieldValues",e.formattedFormFieldValues.merge(n))},[te.yET]:(e,t)=>{let{editingFormFieldValues:n}=t;return e.set("editingFormFieldValues",e.editingFormFieldValues.merge(n))},[te.u7V]:(e,t)=>e.withMutations((n=>{t.formFieldValuesIds.forEach((t=>{const o=t.split("/")[1],r=e.formFields.get(o);r&&(r instanceof j.$o?n.setIn(["formFields",o,"value"],""):r instanceof j.XQ?n.setIn(["formFields",o,"value"],null):r instanceof j.Dz||r instanceof j.rF?n.setIn(["formFields",o,"values"],(0,i.aV)()):r instanceof j.R0||r instanceof j.Yo||(0,a.kG)(!1,`DELETE_FORM_FIELD_VALUE not implemented for ${o}`))}))})),[te.TYu]:(e,t)=>{let{onWidgetCreationStartCallback:n}=t;return e.set("onWidgetAnnotationCreationStart",n)},[te.vgx]:(e,t)=>{let{annotationId:n}=t;return e.set("formDesignerUnsavedWidgetAnnotation",n)}};function Fl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tl,t=arguments.length>1?arguments[1]:void 0;const n=Il[t.type];return n?n(e,t):e}var Ml=n(62164);const _l=new j.ZM,Rl={[te.ckI]:(e,t)=>e.withMutations((e=>{t.comments.forEach((t=>{if((0,Ne.k)(t.id&&!e.comments.has(t.id),`Comment with ID ${t.id} already exists.`),t.pageIndex<0||t.pageIndex>=e.pages.size)(0,a.ZK)(`Tried to add a comment with ID ${t.id} with an out of bounds page index (${t.pageIndex}). This comment was skipped.`);else if(e.setIn(["comments",t.id],t),(0,Ne.k)(t.rootId&&t.id),e.commentThreads.has(t.rootId)){const n=e.commentThreads.get(t.rootId);(0,Ne.k)(n),e.setIn(["commentThreads",t.rootId],n.add(t.id).sortBy((t=>{const n=e.comments.get(t);(0,Ne.k)(n);const o=n.createdAt.getTime();return[(0,Ml.kT)(n)?1:0,o]}),ze.b))}else e.setIn(["commentThreads",t.rootId],(0,i.hU)([t.id]))}))})),[te.hxO]:(e,t)=>{const n=t.rootId,o=e.annotations.get(n),r=new Date;let a=new j.sv({id:(0,ks.C)(),rootId:n,creatorName:e.annotationCreatorName||null,createdAt:r,updatedAt:r,text:{format:"plain",value:""}});if(e.onCommentCreationStart){const t=e.onCommentCreationStart(a);(0,Ne.k)(t instanceof j.sv,"`onCommentCreationStart` should return an instance of `Comment`"),a=t}(0,Ne.k)(e.backend),e.backend.isCollaborationPermissionsEnabled()&&e.group!==e.backend.getDefaultGroup()&&(a=a.set("group",e.group));return!(0,So.Ez)(a,e)&&o&&(0,oi.mi)(o,e)?e.withMutations((e=>{e.setIn(["comments",a.id],a),e.commentThreads.has(n)?e.updateIn(["commentThreads",n],(e=>e.add(a.id))):e.setIn(["commentThreads",n],(0,i.hU)([a.id]))})):e.set("interactionMode",null)},[te.FdD]:(e,t)=>e.withMutations((e=>{t.comments.forEach((t=>{(0,Ne.k)(t.id&&e.comments.has(t.id),`Comment with missing ID ${t.id} not found and thus cannot be updated.`),e.setIn(["comments",t.id],t)}))})),[te.kg]:(e,t)=>e.withMutations((e=>{t.ids.forEach((t=>{(0,Ne.k)(e.comments.has(t),`Comment with ID ${t} not found, so it cannot be deleted.`);const n=e.comments.get(t);(0,Ne.k)(null!=n,`Attempted to delete non-existent comment with ID ${t}`),(0,Ne.k)(n.rootId);const o=e.commentThreads.get(n.rootId);if((0,Ne.k)(null!=o,`Comment with ID ${t} has no corresponding thread with matching root ID ${n.rootId}`),(0,Ne.k)(n.id&&o.has(n.id),`Comment with ID ${n.id} is missing from its thread.`),1===o.size)e.removeIn(["commentThreads",n.rootId]);else{const t=o.remove(n.id);if(e.setIn(["commentThreads",n.rootId],t),1===t.size){const o=e.comments.get(t.first());(0,Ne.k)(null!=o),(0,Ml.kT)(o)&&(e.removeIn(["commentThreads",n.rootId]),e.removeIn(["comments",o.id]))}}e.removeIn(["comments",t])}))})),[te.NB4]:e=>e.setIn(["viewportState","commentMode"],(0,Ml.dq)(e)),[te.YHT]:(e,t)=>e.set("mentionableUsers",t.users),[te.ZLr]:(e,t)=>e.set("maxMentionSuggestions",t.maxSuggestions),[te.mfU]:(e,t)=>{let{onCommentCreationStartCallback:n}=t;return e.set("onCommentCreationStart",n)}};function Nl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_l,t=arguments.length>1?arguments[1]:void 0;const n=Rl[t.type];return n?n(e,t):e}const Ll=new j.ZM,Bl={[te.Kpf]:(e,t)=>e.set("documentEditorFooterItems",t.documentEditorFooterItems),[te.wPI]:(e,t)=>e.set("documentEditorToolbarItems",t.documentEditorToolbarItems)};function jl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ll,t=arguments.length>1?arguments[1]:void 0;const n=Bl[t.type];return n?n(e,t):e}function zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Kl(e){for(var t=1;te.withMutations((n=>{n.set("redoActions",e.redoActions.push(t.nextRedoAction));const o=t.oldId;if(o){n.update("redoActions",(e=>e.map((e=>e.payload.id===t.oldId?Kl(Kl({},e),{},{payload:Kl(Kl({},e.payload),{},{id:t.nextRedoAction.payload.id})}):e))));const r=t.nextRedoAction.payload.pageIndex,i="number"==typeof r&&e.invalidAPStreams.has(r)?e.invalidAPStreams.get(r):null;i&&i.has(o)&&n.setIn(["invalidAPStreams",r],i.add(t.nextRedoAction.payload.id).delete(o))}n.set("undoActions",e.undoActions.pop())})),[te.iwn]:(e,t)=>e.withMutations((n=>{n.set("undoActions",e.undoActions.push(t.nextUndoAction));const o=t.oldId;if(o){n.update("undoActions",(e=>e.map((e=>e.payload.id===t.oldId?Kl(Kl({},e),{},{payload:Kl(Kl({},e.payload),{},{id:t.nextUndoAction.payload.id})}):e))));const r=t.nextUndoAction.payload.pageIndex,i="number"==typeof r&&e.invalidAPStreams.has(r)?e.invalidAPStreams.get(r):null;i&&i.has(o)&&n.setIn(["invalidAPStreams",r],i.add(t.nextUndoAction.payload.id).delete(o))}n.set("redoActions",e.redoActions.pop())})),[te.faS]:(e,t)=>e.set("historyChangeContext",t.historyChangeContext),[te.tC1]:(e,t)=>e.set("historyIdsMap",e.historyIdsMap.set(t.newId,t.oldId)),[te._Qf]:e=>e.withMutations((t=>{t.set("undoActions",e.undoActions.clear()),t.set("redoActions",e.redoActions.clear()),t.set("historyIdsMap",e.historyIdsMap.clear())})),[te._33]:e=>e.set("isHistoryEnabled",!0),[te.wG7]:e=>e.set("isHistoryEnabled",!1)};function Vl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl,t=arguments.length>1?arguments[1]:void 0;const n=Ul[t.type];return n?n(e,t):e}var Gl=n(68218);const Wl=e=>new Gl.Sg(e),ql=e=>new Gl.UL({offset:Wl(e.offset),size:Wl(e.size)}),Hl=e=>new Gl.W4(e),$l=e=>{let t=i.l4.of();for(const n of e)t=t.add(Hl(n));return t},Yl=e=>new Gl.I5({family:e.family,variants:$l(e.variants)}),Xl=e=>new Gl.yO({family:e.family,variant:Hl(e.variant)}),Jl=e=>new Gl.IA({faceRef:Xl(e.faceRef),size:e.size}),Ql=e=>new Gl.mZ(e),ec=e=>new Gl.vz({fontRef:Jl(e.fontRef),color:e.color,effects:Ql(e.effects)}),tc=e=>new Gl.JR(e),nc=e=>new Gl.yJ({family:e.family,faceMismatch:e.faceMismatch?tc(e.faceMismatch):null,bold:e.bold,italic:e.italic,xScale:e.xScale,skew:e.skew,color:e.color,size:e.size}),oc=e=>new Gl.a2(e),rc=e=>new Gl.DN(e),ic=e=>new Gl.FQ({cluster:e.cluster,offset:Wl(e.offset),advance:Wl(e.advance),text:e.text,control:e.control,lastOfSegment:e.lastOfSegment,beginOfWord:e.beginOfWord,endOfWord:e.endOfWord}),ac=e=>new Gl.tW({offset:Wl(e.offset),lineSpacing:oc(e.lineSpacing),elements:i.aV.of(...e.elements.map(ic))});var sc=n(72643);const lc=new me.Z,cc=(e,t)=>{let n=!1;const o=ql(t.contentRect);(0,i.is)(o,e.contentRect)||(e=e.set("contentRect",o)),(0,i.is)(t.version,e.version)||(e=e.set("version",t.version),n=!0);const r=(a=t.cursor,new Gl.CF({offset:Wl(a.offset),lineSpacing:oc(a.lineSpacing)}));var a;(0,i.is)(r,e.cursor)||(e=e.set("cursor",r),n=!0);const s=t.selection?(e=>new Gl.Y1(e))(t.selection):null;(0,i.is)(s,e.selection)||(e=e.set("selection",s),n=!0);const l=(e=>new Gl.Ts({lines:i.aV.of(...e.lines.map(ac))}))(t.layoutView);(0,i.is)(l,e.layoutView)||(e=e.set("layoutView",l));const c=(e=>new Gl.tk({selectionStyleInfo:e.selectionStyleInfo?nc(e.selectionStyleInfo):null,modificationsCharacterStyle:e.modificationsCharacterStyle?ec(e.modificationsCharacterStyle):null,modificationsCharacterStyleFaceMismatch:e.modificationsCharacterStyleFaceMismatch?tc(e.modificationsCharacterStyleFaceMismatch):null}))(t.detectedStyle);if((0,i.is)(c,e.detectedStyle)||(e=e.set("detectedStyle",c)),c.modificationsCharacterStyle){let t=c.modificationsCharacterStyle;t=t.setIn(["effects"],new Gl.mZ({})),n&&!(0,i.is)(t,e.modificationsCharacterStyle)&&(e=e.set("modificationsCharacterStyle",t))}return e},uc={[te.MGL]:e=>e.withMutations((e=>{const t=e.contentEditorSession.sessionId+1;e.set("contentEditorSession",new Gl.aN({sessionId:t,active:!0})).set("interactionMode",x.A.CONTENT_EDITOR)})),[te.Qm9]:e=>e.withMutations((e=>{e.setIn(["contentEditorSession","active"],!1).set("interactionMode",null)})),[te.l$y]:(e,t)=>e.withMutations((e=>{(0,Ne.k)(!e.contentEditorSession.pageStates.has(t.pageIndex)),e.setIn(["contentEditorSession","pageStates",t.pageIndex],new Gl.nv({loading:!0}))})),[te.kD6]:(e,t)=>e.withMutations((e=>{var n;(0,Ne.k)(null===(n=e.contentEditorSession.pageStates.get(t.pageIndex))||void 0===n?void 0:n.loading);let o=e.contentEditorSession.pageStates.get(t.pageIndex);(0,Ne.k)(o);const r=t.initialTextBlocks.map((e=>{const t=e.textBlock,n=Wl(t.anchor),o=rc(t.globalEffects),r=new Gl.Ar({maxWidth:t.maxWidth,alignment:t.alignment,lineSpacingFactor:t.lineSpacingFactor}),i=new Gl.Q7({id:e.id,initialAnchor:n,initialGlobalEffects:o,initialLayout:r,anchor:n,globalEffects:o,layout:r,modificationsCharacterStyle:ec(t.modificationsCharacterStyle)});return cc(i,e.updateInfo)})),a=i.aV.of(...r);o=o.set("textBlocks",a),o=o.set("initialTextBlocks",a),o=o.set("loading",!1),e.setIn(["contentEditorSession","pageStates",t.pageIndex],o)})),[te.joZ]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","textBlockInteractionState"],new Gl._h({pageIndex:t.pageIndex,textBlockId:t.textBlockId,state:Gl.FP.Active}))})),[te.fQw]:e=>e.withMutations((e=>{const t=e.contentEditorSession.textBlockInteractionState;if(t.state===Gl.FP.Active){let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,Ne.k)(n),n=n.set("textBlocks",n.textBlocks.filter((e=>!(e.justCreated&&0===e.contentRect.size.x))).map((e=>e.id===t.textBlockId&&e.justCreated?e=e.set("justCreated",!1).set("layout",e.layout.set("maxWidth",Math.max(e.contentRect.size.x,10))):e))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)}e.setIn(["contentEditorSession","textBlockInteractionState"],e.contentEditorSession.textBlockInteractionState.state===Gl.FP.Active?e.contentEditorSession.textBlockInteractionState.set("state",Gl.FP.Selected):new Gl._h)})),[te.VOt]:(e,t)=>e.withMutations((e=>{let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,Ne.k)(n),n=((e,t,n)=>{const o=e.textBlocks.map((e=>e.id!=t?e:cc(e,n)));return e.set("textBlocks",o)})(n,t.textBlockId,t.updateInfo),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[te.U7k]:e=>e.withMutations((e=>{e.setIn(["contentEditorSession","availableFaces","loading"],!0)})),[te.ZgW]:(e,t)=>e.withMutations((e=>{const n=(o=t.faceList,i.aV.of(...o.map(Yl)));var o;e.setIn(["contentEditorSession","availableFaces"],new Gl.t9({faceList:n,loading:!1}))})),[te.Y4]:e=>e.withMutations((e=>{e.setIn(["contentEditorSession","saving"],!0)})),[te.HYy]:e=>e.withMutations((e=>{e.setIn(["contentEditorSession","dirty"],!0)})),[te.bOH]:(e,t)=>e.set("showExitContentEditorDialog",t.isVisible),[te.Han]:(e,t)=>e.set("contentEditorSession",e.contentEditorSession.set("fontMismatchTooltip",new Gl.xb({fontFace:t.fontFace,rect:t.tooltipRect}))),[te.WmI]:e=>e.set("contentEditorSession",e.contentEditorSession.set("fontMismatchTooltip",null)),[te.nI6]:(e,t)=>e.contentEditorSession.fontMismatchTooltip?e.setIn(["contentEditorSession","fontMismatchTooltip","dismissAbortController"],t.abortController):e,[te.Ebp]:(e,t)=>e.withMutations((e=>{let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,Ne.k)(n),n=n.set("textBlocks",n.textBlocks.map((e=>{if(e.id!=t.textBlockId)return e;let n=e.modificationsCharacterStyle;return t.faceRef&&!(0,i.is)(t.faceRef,n.fontRef.faceRef)&&(n=n.setIn(["fontRef","faceRef"],t.faceRef)),t.size&&!(0,i.is)(t.size,n.fontRef.size)&&(n=n.setIn(["fontRef","size"],t.size)),t.color&&!(0,i.is)(t.color,n.color)&&(n=n.set("color",t.color)),e=e.set("modificationsCharacterStyle",n)}))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[te.ciU]:(e,t)=>e.withMutations((e=>{e.contentEditorSession.dirty||e.setIn(["contentEditorSession","dirty"],!0);let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,Ne.k)(n),n=n.set("textBlocks",n.textBlocks.map((e=>{if(e.id!=t.textBlockId)return e;const{fixpointValue:n,newWidth:o}=t,{layout:r,globalEffects:i,anchor:a}=e;(0,Ne.k)(r.maxWidth);const s=(0,sc.uB)(r.alignment,i,n,o-r.maxWidth);return e=(e=e.set("anchor",new Gl.Sg({x:a.x+s.x,y:a.y+s.y}))).setIn(["layout","maxWidth"],o)}))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[te.fLm]:(e,t)=>e.withMutations((e=>{let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,Ne.k)(n),e.contentEditorSession.dirty||e.setIn(["contentEditorSession","dirty"],!0),t.isKeyboardMove||e.contentEditorSession.textBlockInteractionState.state===Gl.FP.Moving||e.setIn(["contentEditorSession","textBlockInteractionState"],new Gl._h({state:Gl.FP.Moving,pageIndex:t.pageIndex,textBlockId:t.textBlockId})),n=n.set("textBlocks",n.textBlocks.map((e=>e.id!=t.textBlockId?e:e=e.set("anchor",new Gl.Sg({x:t.anchor.x,y:t.anchor.y}))))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[te.xhM]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","textBlockInteractionState"],new Gl._h({pageIndex:t.pageIndex,textBlockId:t.textBlockId,state:Gl.FP.Selected}))})),[te.snK]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","textBlockInteractionState"],new Gl._h);let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,Ne.k)(n),n=n.set("textBlocks",n.textBlocks.filter((e=>e.id!==t.textBlockId))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n),e.setIn(["contentEditorSession","mode"],Gl.wR.Edit)})),[te.teI]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","mode"],t.mode)})),[te.uo5]:(e,t)=>e.withMutations((e=>{var n,o;let r=e.contentEditorSession.pageStates.get(t.pageIndex);const i=null===(n=e.pages.get(t.pageIndex))||void 0===n||null===(o=n.pageSize)||void 0===o?void 0:o.width;(0,Ne.k)(r),(0,Ne.k)(i);const{pageIndex:a,initialTextBlock:s}=t,l=s.textBlock,c=rc(l.globalEffects),u=new Gl.Ar({maxWidth:i-t.anchor.x,alignment:l.alignment,lineSpacingFactor:l.lineSpacingFactor});let d=new Gl.Q7({id:s.id,initialAnchor:t.anchor,initialGlobalEffects:c,initialLayout:u,anchor:t.anchor,globalEffects:c,layout:u,justCreated:!0,modificationsCharacterStyle:ec(l.modificationsCharacterStyle)});return d=cc(d,s.updateInfo),r=r.set("textBlocks",r.textBlocks.push(d)),e.setIn(["contentEditorSession","pageStates",a],r).setIn(["contentEditorSession","mode"],Gl.wR.Edit).setIn(["contentEditorSession","textBlockInteractionState"],new Gl._h({pageIndex:a,textBlockId:s.id,state:Gl.FP.Active}))}))};function dc(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lc,t=arguments.length>1?arguments[1]:void 0;const n=uc[t.type];return n?n(e,t):e}function pc(e,t){return[ae,ce,Ms,Ls,zs,Us,Ws,el,hl,vl,wl,Pl,Cl,Ol,Fl,Nl,jl,Vl,dc].reduce(((e,n)=>n(e,t)),e)}const fc=[V];const hc=(0,K.md)(...fc)(K.MT);function mc(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return hc(pc,new me.Z(e))}var gc=n(14012),vc=n(2810),yc=n(30761);async function bc(e){let t,{backend:n,dispatch:o,getState:r,maxPasswordRetries:s,password:l,stylesheetPromise:c,formFieldValuesJSON:u,customFonts:d}=e;try{await c;let e=!1;const{features:p,signatureFeatureAvailability:f,hasPassword:h,minSearchQueryLength:m,allowedTileScales:g,creatorName:v,defaultGroup:y}=await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,r=null,i=0;for(;!r;){try{r=await n(e)}catch(n){const r=in.load({password:t,progressCallback:(t,n)=>{e||o((0,gc.qZ)(t,n))},isPDFJavaScriptEnabled:mt.Ei.PDF_JAVASCRIPT})),(()=>(e=!0,new Promise((e=>o((0,gc.uT)(e))))))),{frameWindow:b}=r();let w=(0,i.l4)();if(d&&b){const e=await n.getAvailableFontFaces(d);for(const t of d){const n=e.find((e=>e.name===t.name)),o=(null==n?void 0:n.readableName)||t.name;b.document.fonts.add(new FontFace((0,vt.hm)(o),await t.data.arrayBuffer())),w=w.add(o)}w.size>0&&o((0,En.p2)(w))}await(0,yc.jX)(o,r,{attemptedUnlockViaModal:e,features:p,signatureFeatureAvailability:f,hasPassword:h,minSearchQueryLength:m,allowedTileScales:g});const{annotations:S,isAPStreamRendered:E,formFields:P}=r();n.isUsingInstantProvider()&&o((0,En.Ie)()),n.isCollaborationPermissionsEnabled()&&o((0,En.YK)(y));const x=await n.runPDFFormattingScriptsFromWidgets(S,P,E);if(x.length){const{formFieldManager:e}=r();let n,i;null!==e&&await e.loadFormFields(),t=new Promise(((e,t)=>{n=e,i=t})),o((0,Mo.bt)({changes:x,resolve:n,reject:i}))}"STANDALONE"===n.type&&mt.Ei.PDF_JAVASCRIPT&&u&&o((0,Mo.ul)((0,i.aV)(u.map(vc.u9)))),o((0,gc.Bm)()),v&&o((0,En.X8)(v,!0))}catch(e){(0,a.vU)("An error occurred while initializing PSPDFKit for Web.\n\n Please contact our customer support, if you're having troubles setting up PSPDFKit for Web or the PSPDFKit Server: https://pspdfkit.com/guides/web/current/pspdfkit-for-web/troubleshooting/");const t=e instanceof a.p2?e:new a.p2(e);throw-1!==t.message.indexOf("File not in PDF format or corrupted")?o((0,gc.sr)(t.message)):o((0,gc.sr)()),t}return t}var wc=n(68258);function Sc(e){try{return e.querySelector(":focus-visible"),void(e.documentElement&&e.documentElement.setAttribute("data-focusvisible-supported","true"))}catch(e){}const t="data-focusvisible-polyfill";let n=!0,o=!1,r=null;const i={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function a(t){return!!(t&&t!==e&&"HTML"!==t.nodeName&&"BODY"!==t.nodeName&&"classList"in t&&"contains"in t.classList)}function s(e){e.hasAttribute(t)||e.setAttribute(t,!0)}function l(e){e.removeAttribute(t)}function c(){!0===n&&function(){const t=e.querySelectorAll("[data-focusvisible-polyfill]");for(let e=0;e0;){"SERVER"===e.backend.type&&(t=kc[n],n+=n>=kc.length-1?0:1);let o=t;l<1.5*t&&(o=l);const i=await e.backend.search(this.term,a,o,!1);if(s=s.concat(i),!this._activeSearches[r])return;this.dispatch((0,Dc.Sc)(s)),l-=o,a+=o}}this.dispatch((0,Dc.M0)(!1))}_cancelSearchRequests(e){for(const t of this._activeSearches.keys())null!=e&&t===e||(this._activeSearches[t]=!1)}}const Oc=(0,H.Z)("AnnotationPreset"),Tc=e=>{Oc("object"==typeof e,"`annotationPreset` is not an `object`")};var Ic=n(92457),Fc=n(30679);function Mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _c(e){for(var t=1;t{const{type:t,mediaQueries:n,preset:o}=e;Rc("string"==typeof t,"Mandatory `type` is either missing or not a `string`"),(0,Fc.G)(_c(_c({},e),{},{type:"custom"}),Rc),Rc(Ic._o.includes(t),`Invalid built-in type \`${t}\`. Choose one from ${Ic._o.join(", ")}`),n&&(Rc(Array.isArray(n),"`mediaQueries` must be an `array`"),Rc(n.length>0,"`mediaQueries` must not be an empty `array`"),n.forEach((e=>{Rc("string"==typeof e,`Invalid media query: \`${e}\``);const t=e.split("(").length,n=e.split(")").length;0===t&&0===n||Rc(t===n,`Detected unbalanced parenthesis in the media query: ${e}`)}))),"preset"in e&&Rc("string"==typeof o,"`preset` must be a `string`")},Lc=[{type:"cancel"},{type:"selected-pages"},{type:"spacer"},{type:"loading-indicator"},{type:"save-as"},{type:"save"}],Bc=(0,i.d0)(Lc),jc=(0,H.Z)("DocumentEditorFooterItem"),zc=[...Lc.map((e=>e.type)),"custom"],Kc=e=>{const{type:t,id:n,className:o,onPress:r,node:i}=e;jc("string"==typeof t,"Mandatory `type` is either missing or not a `string`"),jc(zc.indexOf(t)>=0,`Invalid built-in type \`${t}\`. Choose one from ${zc.join(", ")}`),"custom"===t&&(jc(i,"`node` is mandatory for `custom` footer items."),jc(i&&Fc.a.includes(i.nodeType),"`node.nodeType` is invalid. Expected one of "+Fc.a.join(", ")),n&&jc("string"==typeof n,"`id` must be a `string`"),o&&jc("string"==typeof o,"`className` must be a `string`"),r&&jc("function"==typeof r,"`onPress` must be a `function`")),n&&jc("string"==typeof n,"`id` must be a `string`")},Zc=[{type:"add"},{type:"remove"},{type:"duplicate"},{type:"rotate-left"},{type:"rotate-right"},{type:"move"},{type:"move-left"},{type:"move-right"},{type:"import-document"},{type:"spacer"},{type:"undo"},{type:"redo"},{type:"select-all"},{type:"select-none"}],Uc=(0,i.d0)(Zc);function Vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Gc(e){for(var t=1;te.type)),"custom"],Hc=e=>{const{type:t}=e;Wc("string"==typeof t,"Mandatory `type` is either missing or not a `string`"),(0,Fc.G)(Gc(Gc({},e),{},{type:"custom"}),Wc),Wc(qc.indexOf(t)>=0,`Invalid built-in type \`${t}\`. Choose one from ${qc.join(", ")}`)};var $c=n(33754),Yc=n(86071);const Xc=(0,Re.vU)({approved:{id:"approved",defaultMessage:"Approved",description:"Approved Stamp Annotation"},notApproved:{id:"notApproved",defaultMessage:"Not Approved",description:"Not Approved Stamp Annotation"},draft:{id:"draft",defaultMessage:"Draft",description:"Draft Stamp Annotation"},final:{id:"final",defaultMessage:"Final",description:"Final Stamp Annotation"},completed:{id:"completed",defaultMessage:"Completed",description:"Completed Stamp Annotation"},confidential:{id:"confidential",defaultMessage:"Confidential",description:"Confidential Stamp Annotation"},forPublicRelease:{id:"forPublicRelease",defaultMessage:"For Public Release",description:"For Public Release Stamp Annotation"},notForPublicRelease:{id:"notForPublicRelease",defaultMessage:"Not For Public Release",description:"Not For Public Release Stamp Annotation"},forComment:{id:"forComment",defaultMessage:"For Comment",description:"ForComment Stamp Annotation"},void:{id:"void",defaultMessage:"Void",description:"Void Stamp Annotation"},preliminaryResults:{id:"preliminaryResults",defaultMessage:"Preliminary Results",description:"Preliminary Results Stamp Annotation"},informationOnly:{id:"informationOnly",defaultMessage:"Information Only",description:"Information Only Stamp Annotation"},rejected:{id:"rejected",defaultMessage:"Rejected",description:"Rejected Stamp Annotation"},accepted:{id:"accepted",defaultMessage:"Accepted",description:"Accepted Stamp Annotation"},initialHere:{id:"initialHere",defaultMessage:"Initial Here",description:"Initial Here Stamp Annotation"},signHere:{id:"signHere",defaultMessage:"Sign Here",description:"Sign Here Stamp Annotation"},witness:{id:"witness",defaultMessage:"Witness",description:"Witness Stamp Annotation"},asIs:{id:"asIs",defaultMessage:"As Is",description:"As Is Stamp Annotation"},departmental:{id:"departmental",defaultMessage:"Departmental",description:"Departmental Stamp Annotation"},experimental:{id:"experimental",defaultMessage:"Experimental",description:"Experimental Stamp Annotation"},expired:{id:"expired",defaultMessage:"Expired",description:"Expired Stamp Annotation"},sold:{id:"sold",defaultMessage:"Sold",description:"Sold Stamp Annotation"},topSecret:{id:"topSecret",defaultMessage:"Top Secret",description:"TopSecret Stamp Annotation"},revised:{id:"revised",defaultMessage:"Revised",description:"Revised Stamp Annotation"},custom:{id:"custom",defaultMessage:"Custom",description:"Custom Stamp Annotation"},stampAnnotationTemplatesDialog:{id:"stampAnnotationTemplatesDialog",defaultMessage:"Stamp Annotation Templates",description:"Stamp Annotation Templates Dialog"},stampAnnotationTemplatesDialogDescription:{id:"stampAnnotationTemplatesDialogDesc",defaultMessage:"This dialog lets you select a stamp annotation to insert into the document or create a custom stamp annotation with your own text.",description:"Stamp Annotation Templates Dialog Description"}});function Jc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Qc(e){for(var t=1;t{eu(e instanceof s.GI||e instanceof s.sK,"`annotationTemplate` is not an instance of `PSPDFKit.Annotations.StampAnnotation` or ``PSPDFKit.Annotations.ImageAnnotation`")},nu=function(e){var t;let{includeDate:n,includeTime:o}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,i=arguments.length>2?arguments[2]:void 0;const a={};n&&(a.day="2-digit",a.month="2-digit",a.year="numeric"),o&&(a.hour="2-digit",a.minute="2-digit");let s=n||o?i.formatDate(r,a):null;return s&&tt.rO&&(s=s.replace(/[^A-Za-z 0-9 .,?""!@#$%^&*()-_=+;:<>/\\|}{[\]`~]*/g,"")),null!==(t=s)&&void 0!==t?t:null},ou=e=>{let{annotation:t,intl:n}=e;const{formatMessage:o}=n,{stampType:r,title:i,description:a,fileName:l}=t;return t instanceof s.GI?"Custom"===r&&i?Xc[(0,$.LE)(i)]?o(Xc[(0,$.LE)(i)]):i:Xc[(0,$.LE)((0,$c.k1)(r))]?o(Xc[(0,$.LE)((0,$c.k1)(r))]):r:a||l||" "},ru=(0,Ft.L)(),iu=2*ru,au=8*ru,su=iu/2,lu=e=>{let{canvas:t,title:n,subtitle:o,color:r,defaultStampWidth:i,stampHeight:a,container:s}=e,l=i*ru;if(t&&s&&s.offsetWidth){const e=t.getContext("2d"),c="string"==typeof o&&o.length>0,u=(e=>{let{ctx:t,title:n,fontSize:o,containerWidth:r}=e;t.font=`bold ${o}px Arial`;const i=t.measureText(n);let a=r*ru;const s=o;return i.width+s>a?o=a/((i.width+s)/o):a=i.width+s,{fontSize:o,stampWidth:a}})({ctx:e,title:n,fontSize:(c?.6:.7)*ru*a,containerWidth:s.offsetWidth});l=Math.max(u.stampWidth,i*ru),t.width=l,t.height=a*ru,null==e||e.clearRect(0,0,t.width,t.height),(e=>{let{ctx:t,stampWidth:n,stampHeight:o,color:r}=e;t.lineWidth=iu;const i=n-su,a=ru*o-su;t.strokeStyle=r.toCSSValue(),t.fillStyle=r.lighter(Je.zT).toCSSValue(),t.beginPath(),t.moveTo(au+su,su),t.lineTo(i-au,su),t.quadraticCurveTo(i-1,su,i-1,au+su),t.lineTo(i-1,a-au),t.quadraticCurveTo(i-1,a,i-au,a),t.lineTo(au+su,a),t.quadraticCurveTo(su,a,su,a-au),t.lineTo(su,au+su),t.quadraticCurveTo(su,su,au+su,su),t.closePath(),t.stroke(),t.fill()})({ctx:e,stampWidth:l,color:r,stampHeight:a}),(e=>{let{ctx:t,fontSize:n,color:o,stampWidth:r,stampHeight:i,title:a,hasSubTitle:s}=e;t.font=`bold ${n}px Arial`,t.fillStyle=o.toCSSValue(),t.textBaseline="middle",t.textAlign="center",t.fillText(a,r/2,(s?.4*i:.5*i)*ru)})({ctx:e,fontSize:u.fontSize,color:r,stampWidth:l,stampHeight:a,title:n,hasSubTitle:c}),c&&(e.font=ru*a*.175+"px Arial",null==e||e.fillText(o,l/2,.85*a*ru))}return l/ru},cu=Yc.Z.filter((e=>[p.Z.BLUE,p.Z.RED,p.Z.ORANGE,p.Z.LIGHT_YELLOW,p.Z.GREEN].includes(e.color)||"mauve"===e.localization.id)).map((e=>function(e){return(0,a.kG)(null!=e.color),Qc(Qc({},e),{},{color:Object.values(uu(e.color))[0].color})}(e)));function uu(e){const t=e.lighter(Je.zT);let n=e;const o=Math.max(n.r,n.g,n.b);for(let e=0;e<10&&t.contrastRatio(n)<4.5;e++)n=n.darker((255-o)/25.5);return{[`${n.toCSSValue()}`]:{color:n,backgroundColor:t}}}var du=n(19702),pu=n(65872),fu=n(64494);function hu(e){return(0,a.kG)(Array.isArray(e)&&e.length>0,"Operations must be a non-empty array of operations."),e.forEach((e=>{(0,a.kG)(e.hasOwnProperty("type"),"Invalid operation: no `type` field")})),e}var mu=n(20234);const gu="The API you're trying to use requires a document editing license. Document editing is a component of PSPDFKit for Web and sold separately.",vu=["document.change"];var yu=n(41194);const bu="The API you're trying to use requires a digital signatures license. Digital Signatures is a component of PSPDFKit for Web and sold separately.";var wu=n(55909),Su=n(38151),Eu=n(3219);function Pu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"undefined"!=typeof location?location.hash:null;if(!t)return e;const n=t.replace("#","").split("&").map((e=>{const t=e.split("=");if(2===t.length)return[t[0],t[1]]})).filter(Boolean);return n.forEach((t=>{let[n,o]=t;switch(n){case"page":{const t=parseInt(o,10);if("number"!=typeof t||Number.isNaN(t)||t<=0)break;e=e.set("currentPageIndex",t-1);break}}})),e}function xu(e,t,n){const o=e.viewportState.viewportRect.set("height",t.height);return e.sidebarMode?o.set("width",e.containerRect.width-n).set("left",e.sidebarPlacement===pu.d.START?n:0):o.set("width",e.containerRect.width).set("left",0)}const Du=["viewState.change","viewState.currentPageIndex.change","viewState.zoom.change"],Cu=["cropArea.changeStart","cropArea.changeStop"];function ku(e,t){return{[x.A.TEXT_HIGHLIGHTER]:{onEnterAction:En.d5,onLeaveAction:En.lC,allowWhenInReadOnlyMode:!1},[x.A.INK]:{onEnterAction:En.P4,onLeaveAction:En.s3,allowWhenInReadOnlyMode:!1},[x.A.INK_ERASER]:{onEnterAction:En.Ug,onLeaveAction:En.VU,allowWhenInReadOnlyMode:!1},[x.A.STAMP_PICKER]:{onEnterAction:En.C4,onLeaveAction:En.pM,allowWhenInReadOnlyMode:!1},[x.A.STAMP_CUSTOM]:{onEnterAction:En._z,onLeaveAction:En.pM,allowWhenInReadOnlyMode:!1},[x.A.INK_SIGNATURE]:{onEnterAction:En.Cc,onLeaveAction:En.MV,allowWhenInReadOnlyMode:!1},[x.A.SIGNATURE]:{onEnterAction:En.Cc,onLeaveAction:En.MV,allowWhenInReadOnlyMode:!1},[x.A.SHAPE_LINE]:{onEnterAction:(0,En.p9)(j.o9,x.A.SHAPE_LINE),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.SHAPE_RECTANGLE]:{onEnterAction:(0,En.p9)(j.b3,x.A.SHAPE_RECTANGLE),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.SHAPE_ELLIPSE]:{onEnterAction:(0,En.p9)(j.Xs,x.A.SHAPE_ELLIPSE),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.SHAPE_POLYGON]:{onEnterAction:(0,En.p9)(j.Hi,x.A.SHAPE_POLYGON),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.SHAPE_POLYLINE]:{onEnterAction:(0,En.p9)(j.om,x.A.SHAPE_POLYLINE),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.NOTE]:{onEnterAction:En.i9,onLeaveAction:En.dp,allowWhenInReadOnlyMode:!1},[x.A.COMMENT_MARKER]:{onEnterAction:()=>((0,a.kG)(t&&t.features.includes(ge.q.COMMENTS),Ml.kx),(0,En.k6)()),onLeaveAction:()=>((0,a.kG)(t&&t.features.includes(ge.q.COMMENTS),Ml.kx),(0,En.tr)()),allowWhenInReadOnlyMode:!1},[x.A.TEXT]:{onEnterAction:En.DU,onLeaveAction:En.k4,allowWhenInReadOnlyMode:!1},[x.A.CALLOUT]:{onEnterAction:En.Lt,onLeaveAction:En.k4,allowWhenInReadOnlyMode:!1},[x.A.PAN]:{onEnterAction:Eu.vc,onLeaveAction:Eu.Yr,allowWhenInReadOnlyMode:!0},[x.A.SEARCH]:{onEnterAction:Dc.Xe,onLeaveAction:Dc.ct,allowWhenInReadOnlyMode:!0},[x.A.DOCUMENT_EDITOR]:{onEnterAction:En.lV,onLeaveAction:En.sJ,allowWhenInReadOnlyMode:!1},[x.A.MARQUEE_ZOOM]:{onEnterAction:En.xF,onLeaveAction:En.si,allowWhenInReadOnlyMode:!0},[x.A.REDACT_TEXT_HIGHLIGHTER]:{onEnterAction:En.aw,onLeaveAction:En.TR,allowWhenInReadOnlyMode:!1},[x.A.REDACT_SHAPE_RECTANGLE]:{onEnterAction:En.t,onLeaveAction:En.jP,allowWhenInReadOnlyMode:!1},[x.A.DOCUMENT_CROP]:{onEnterAction:En.rL,onLeaveAction:En.Cn,allowWhenInReadOnlyMode:!1},[x.A.CONTENT_EDITOR]:{onEnterAction:()=>Su.gY,onLeaveAction:()=>Su.u8,allowWhenInReadOnlyMode:!1},[x.A.FORM_CREATOR]:{onEnterAction:Mo.el,onLeaveAction:Mo.h4,allowWhenInReadOnlyMode:!1},[x.A.SIGNATURE_WIDGET]:{onEnterAction:()=>(0,En.UF)(x.A.SIGNATURE_WIDGET),onLeaveAction:En.XX,allowWhenInReadOnlyMode:!1},[x.A.LIST_BOX_WIDGET]:{onEnterAction:()=>(0,En.UF)(x.A.LIST_BOX_WIDGET),onLeaveAction:En.XX,allowWhenInReadOnlyMode:!1},[x.A.COMBO_BOX_WIDGET]:{onEnterAction:()=>(0,En.UF)(x.A.COMBO_BOX_WIDGET),onLeaveAction:En.XX,allowWhenInReadOnlyMode:!1},[x.A.CHECKBOX_WIDGET]:{onEnterAction:()=>(0,En.UF)(x.A.CHECKBOX_WIDGET),onLeaveAction:En.XX,allowWhenInReadOnlyMode:!1},[x.A.RADIO_BUTTON_WIDGET]:{onEnterAction:()=>(0,En.UF)(x.A.RADIO_BUTTON_WIDGET),onLeaveAction:En.XX,allowWhenInReadOnlyMode:!1},[x.A.TEXT_WIDGET]:{onEnterAction:()=>(0,En.UF)(x.A.TEXT_WIDGET),onLeaveAction:En.XX,allowWhenInReadOnlyMode:!1},[x.A.BUTTON_WIDGET]:{onEnterAction:()=>(0,En.UF)(x.A.BUTTON_WIDGET),onLeaveAction:En.XX,allowWhenInReadOnlyMode:!1},[x.A.DATE_WIDGET]:{onEnterAction:()=>(0,En.UF)(x.A.DATE_WIDGET),onLeaveAction:En.XX,allowWhenInReadOnlyMode:!1},[x.A.LINK]:{onEnterAction:En.Jn,onLeaveAction:En.UU,allowWhenInReadOnlyMode:!1},[x.A.DISTANCE]:{onEnterAction:(0,En.p9)(j.o9,x.A.DISTANCE),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.PERIMETER]:{onEnterAction:(0,En.p9)(j.om,x.A.PERIMETER),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.RECTANGLE_AREA]:{onEnterAction:(0,En.p9)(j.b3,x.A.RECTANGLE_AREA),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.ELLIPSE_AREA]:{onEnterAction:(0,En.p9)(j.Xs,x.A.ELLIPSE_AREA),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.POLYGON_AREA]:{onEnterAction:(0,En.p9)(j.Hi,x.A.POLYGON_AREA),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.MULTI_ANNOTATIONS_SELECTION]:{onEnterAction:En.YF,onLeaveAction:En.FA,allowWhenInReadOnlyMode:!1},[x.A.MEASUREMENT_SETTINGS]:{onEnterAction:(0,En.PR)(),onLeaveAction:(0,En.jJ)(),allowWhenInReadOnlyMode:!1}}[e]}function Au(e,t){var n,o;const r=t?t.getState():null;if("number"!=typeof e.currentPageIndex)throw new a.p2("The currentPageIndex set on the new ViewState is not of type `number`.");if(r&&(e.currentPageIndex<0||e.currentPageIndex>=r.totalPages))throw new a.p2(`The currentPageIndex set on the new ViewState is out of bounds.\nThe index is expected to be in the range from 0 to ${r.totalPages-1} (inclusive).`);if("number"==typeof e.zoom){if(r){const{viewportState:t}=r,n=(0,Ys.Yo)(t),o=(0,Ys.Sm)(t);if(e.zoomo)throw new a.p2(`The supplied zoom level is larger than the maximum zoom level for this document (${o})`)}}else if(e.zoom!==Xs.c.AUTO&&e.zoom!==Xs.c.FIT_TO_WIDTH&&e.zoom!==Xs.c.FIT_TO_VIEWPORT)throw new a.p2("The supplied zoom mode is not valid.\nValid zoom modes are: PSPDFKit.ZoomMode.AUTO, PSPDFKit.ZoomMode.FIT_TO_VIEWPORT, or PSPDFKit.ZoomMode.FIT_TO_WIDTH");if(e.pagesRotation%90!=0)throw new a.p2("The supplied pagesRotation must be a multiple of 90°.");if(e.layoutMode!==C.X.SINGLE&&e.layoutMode!==C.X.DOUBLE&&e.layoutMode!==C.X.AUTO)throw new a.p2("The supplied layout mode is not valid.\nValid layout modes are: PSPDFKit.LayoutMode.SINGLE, PSPDFKit.LayoutMode.DOUBLE, or PSPDFKit.LayoutMode.AUTO");if(e.scrollMode!==nl.G.CONTINUOUS&&e.scrollMode!==nl.G.PER_SPREAD&&e.scrollMode!==nl.G.DISABLED)throw new a.p2("The supplied scroll mode is not valid.\nValid scroll modes are: PSPDFKit.ScrollMode.CONTINUOUS, PSPDFKit.ScrollMode.PER_SPREAD, or PSPDFKit.ScrollMode.DISABLED");if(e.showSignatureValidationStatus!==fu.W.IF_SIGNED&&e.showSignatureValidationStatus!==fu.W.HAS_ERRORS&&e.showSignatureValidationStatus!==fu.W.HAS_WARNINGS&&e.showSignatureValidationStatus!==fu.W.NEVER)throw new a.p2("The supplied mode for showing the digital signature validation UI is not valid.");if("number"!=typeof e.spreadSpacing||e.spreadSpacing<0)throw new a.p2(`Expected \`spreadSpacing\` to be a positive number but instead got: ${e.spreadSpacing}.`);if("number"!=typeof e.pageSpacing||e.pageSpacing<0)throw new a.p2(`Expected \`pageSpacing\` to be a positive number but instead got: ${e.pageSpacing}.`);if("boolean"!=typeof e.keepFirstSpreadAsSinglePage)throw new a.p2(`Expected \`keepFirstSpreadAsSinglePage\` to be a boolean but instead got: ${e.keepFirstSpreadAsSinglePage}.`);if("number"!=typeof e.viewportPadding.vertical)throw new a.p2("The supplied viewportPadding has a missing property: vertical not found");if("number"!=typeof e.viewportPadding.horizontal)throw new a.p2("The supplied viewportPadding has a missing property: horizontal not found");if(e.viewportPadding.vertical<0||e.viewportPadding.horizontal<0)throw new a.p2("The supplied viewportPadding horizontal or vertical value is not a positive number");if("boolean"!=typeof e.allowPrinting)throw new a.p2("`allowPrinting` must be of type boolean.");if(r&&!0===e.allowPrinting&&!r.backendPermissions.downloadingAllowed)throw new a.p2("To enable printing, you need to authenticate the `download` permission in the JWT (See: https://pspdfkit.com/guides/web/server-backed/client-authentication/)");if("boolean"!=typeof e.allowExport)throw new a.p2("`allowExport` must be of type boolean.");if(r&&!0===e.allowExport&&!r.backendPermissions.downloadingAllowed)throw new a.p2("To enable PDF export, you need to authenticate the `download` permission in the JWT (See: https://pspdfkit.com/guides/web/server-backed/client-authentication/)");if("boolean"!=typeof e.previewRedactionMode)throw new a.p2("`previewRedactionMode` must be of type boolean.");if("boolean"!=typeof e.readOnly)throw new a.p2("`readOnly` must be of type boolean.");if(!r||!1!==e.readOnly||mt.Ei.IGNORE_DOCUMENT_PERMISSIONS||!r.backendPermissions.readOnly&&(r.documentPermissions.annotationsAndForms||r.documentPermissions.fillForms)||(e=e.set("readOnly",!0),(0,a.ZK)("It’s not possible to change PSPDFKit.ViewState#readOnly to false if the current backend or document permissions do not allow it. For document permissions, you can override this behavior by setting the PSPDFKit.Options.IGNORE_DOCUMENT_PERMISSIONS option before initializing PSPDFKit.")),e.interactionMode&&Object.values(x.A).indexOf(e.interactionMode)<0)throw new a.p2(`The supplied interaction mode is not valid.\nValid view modes are: ${Object.keys(x.A).map((e=>`PSPDFKit.InteractionMode.${e}`)).join(", ")}`);if(null!=e.interactionMode){const t=ku(e.interactionMode,r);null!=r&&(e.interactionMode===x.A.DOCUMENT_EDITOR&&(0,So.Xr)({features:r.features,backendPermissions:r.backendPermissions,documentPermissions:r.documentPermissions,readOnlyEnabled:r.readOnlyEnabled})||e.interactionMode===x.A.CONTENT_EDITOR&&(0,So.qs)({features:r.features,backendPermissions:r.backendPermissions,documentPermissions:r.documentPermissions,readOnlyEnabled:r.readOnlyEnabled}))||!e.readOnly||t.allowWhenInReadOnlyMode||((0,a.ZK)(`Can’t set PSPDFKit.ViewState#interactionMode to ${e.interactionMode} when PSPDFKit.ViewState#readOnly is true.`),e=e.set("interactionMode",null))}if("boolean"!=typeof e.showAnnotations)throw new a.p2("`showAnnotations` must be of type boolean.");if(!1===e.showAnnotations&&!1===e.readOnly)throw new a.p2("In order to hide annotations, you must also enable read only mode.");if("boolean"!=typeof e.showComments)throw new a.p2("`showComments` must be of type boolean.");if("boolean"!=typeof e.showAnnotationNotes)throw new a.p2("`showAnnotationNotes` must be of type boolean.");if(e.sidebarMode&&Object.values(du.f).indexOf(e.sidebarMode)<0)throw new a.p2(`The supplied sidebar mode is not valid.\nValid view modes are: ${Object.keys(du.f).map((e=>`PSPDFKit.SidebarMode.${e}`)).join(", ")} or \`null\`.`);if(Object.values(pu.d).indexOf(e.sidebarPlacement)<0)throw new a.p2(`The supplied sidebar placement is not valid.\nValid placements are: ${Object.keys(pu.d).map((e=>`PSPDFKit.SidebarPlacement.${e}`)).join(" or ")}.`);if(null===(n=e.sidebarOptions)||void 0===n||!n[du.f.ANNOTATIONS])throw new a.p2("The supplied sidebar options configuration is missing the required `PSPDFKit.SidebarMode.ANNOTATIONS` property.");if(!Array.isArray(null===(o=e.sidebarOptions[du.f.ANNOTATIONS])||void 0===o?void 0:o.includeContent))throw new a.p2("The `includeContent` property is mandatory for the `PSPDFKit.SidebarMode.ANNOTATIONS` sidebar options and it must be an array");if(e.sidebarOptions[du.f.ANNOTATIONS].includeContent.length&&e.sidebarOptions[du.f.ANNOTATIONS].includeContent.some((e=>!(e.prototype instanceof j.q6)&&e!==j.sv)))throw new a.p2("The `includeContent` array can only contain annotations classes or `PSPDFKit.Comment` as possible values");if("boolean"!=typeof e.canScrollWhileDrawing)throw new a.p2("`canScrollWhileDrawing` must be of type boolean.");if("boolean"!=typeof e.keepSelectedTool)throw new a.p2("`keepSelectedTool` must be of type boolean.");if("number"!=typeof e.sidebarWidth)throw new a.p2("`sidebarWidth` must be of type number.");return e}var Ou=n(32125),Tu=n(26353),Iu=n(84013),Fu=n(27001);const Mu=(0,T.createContext)((()=>{throw new Error}));var _u=n(59386),Ru=n(89e3);const Nu={COMMENT_THREAD:"COMMENT_THREAD",ANNOTATIONS_SIDEBAR:"ANNOTATIONS_SIDEBAR"};var Lu=n(80303),Bu=n.n(Lu);const ju=function(e){var t,o;const{formatMessage:r}=(0,Re.YB)(),i=T.useCallback((e=>e.stopPropagation()),[]),a=F()("PSPDFKit-Sidebar-Annotations-Item",e.layoutClassName,Bu().layout,{[Bu().selected]:e.isSelectedItem,[Bu().layoutNavigationDisabled]:e.navigationDisabled,"PSPDFKit-Sidebar-Annotations-Item-Selected":e.isSelectedItem});return T.createElement("div",{ref:e.itemRef},T.createElement(pt.Z,{onPointerUpCapture:i},T.createElement("div",(0,De.Z)({className:a,onClick:e.onPress},e.itemWrapperProps),e.icon,T.createElement("div",{className:Bu().layoutContent},e.children,(null===(t=e.showFooter)||void 0===t||t)&&(e.author||e.formattedDate)&&T.createElement("footer",{className:F()(Bu().footer,"PSPDFKit-Sidebar-Annotations-Footer")},T.createElement("p",null,e.author&&T.createElement("span",null,e.author,e.formattedDate?", ":""),e.formattedDate&&T.createElement("time",{dateTime:null===(o=e.date)||void 0===o?void 0:o.toISOString()},e.formattedDate)),e.additionalFooter)),e.isDeletable&&T.createElement("button",{className:F()(Bu().delete,"PSPDFKit-Sidebar-Annotations-Delete"),onClick:e.onDelete,"aria-label":r(Ke.Z.delete)},T.createElement(Ye.Z,{src:n(61019),role:"presentation"})))))},zu={highlighter:"highlighter",arrow:"arrow",callout:"textAnnotation","cloudy-rectangle":"cloudyRectangleAnnotation","dashed-rectangle":"dashedRectangleAnnotation","cloudy-ellipse":"cloudyEllipseAnnotation","dashed-ellipse":"dashedEllipseAnnotation","cloudy-polygon":"cloudyPolygonAnnotation","dashed-polygon":"dashedPolygonAnnotation","ellipse-area":"ellipseAreaMeasurement","rectangle-area":"rectangularAreaMeasurement","polygon-area":"polygonAreaMeasurement",distance:"distanceMeasurement",perimeter:"perimeterMeasurement"},Ku=e=>{const{formatMessage:t}=e.intl,n=zu[e.type]||`${e.type}Annotation`;return T.createElement(T.Fragment,null,T.createElement("button",{autoFocus:e.autoFocus},t(Ke.Z[n])),","," ",t(Ke.Z.linesCount,{arg0:e.annotation.lines.size}))},Zu=e=>{const t=e.annotation.text.value||"";let n=(0,$.aF)("xhtml"===e.annotation.text.format?(0,qn.KY)(t):t);const o=zu[e.type]||"textAnnotation";return 0===n.length&&(n=e.intl.formatMessage(Ke.Z[o])),T.createElement("button",{autoFocus:e.autoFocus},n)},Uu=e=>T.createElement("button",{autoFocus:e.autoFocus},e.intl.formatMessage(Ke.Z[`${e.type}Annotation`])),Vu=e=>{const t=zu[e.type]||`${e.type}Annotation`;return T.createElement("button",{autoFocus:e.autoFocus},e.intl.formatMessage(Ke.Z[t]))},Gu=e=>T.createElement("button",{autoFocus:e.autoFocus},e.annotation.formFieldName),Wu={text:Zu,callout:Zu,ink:Ku,highlighter:Ku,note:e=>{let t=(0,$.aF)(e.annotation.text.value||"");return 0===t.length&&(t=e.intl.formatMessage(Ke.Z.noteAnnotation)),T.createElement("button",{autoFocus:e.autoFocus},t)},highlight:Uu,underline:Uu,strikeOut:Uu,squiggle:Uu,link:e=>{var t;return T.createElement("button",{autoFocus:e.autoFocus},(null===(t=e.annotation.action)||void 0===t?void 0:t.uri)||e.intl.formatMessage(Ke.Z.linkAnnotation))},rectangle:Vu,"cloudy-rectangle":Vu,"dashed-rectangle":Vu,ellipse:Vu,"cloudy-ellipse":Vu,"dashed-ellipse":Vu,polygon:Vu,"cloudy-polygon":Vu,"dashed-polygon":Vu,polyline:Vu,line:Vu,arrow:Vu,image:e=>{const{formatMessage:t}=e.intl,{fileName:n}=e.annotation,o=(0,$.aF)(e.annotation.description||"");return T.createElement(T.Fragment,null,T.createElement("button",{autoFocus:e.autoFocus},t(Ke.Z[`${e.type}Annotation`])),n&&!o&&T.createElement("div",{title:t(Ke.Z.filePath)+`: ${n}`},n),o&&T.createElement("div",null,o))},stamp:e=>{const{formatMessage:t}=e.intl,{fileName:n}=e.annotation,o=(0,$.aF)(ou({annotation:e.annotation,intl:e.intl})||"");return T.createElement(T.Fragment,null,T.createElement("button",{autoFocus:e.autoFocus},t(Ke.Z[`${e.type}Annotation`])),n&&!o&&T.createElement("div",{title:`${t(Ke.Z.stampText)}: ${t(Ke.Z[e.annotation.stampType])}`},`${t(Ke.Z.stampText)}: ${t(Ke.Z[e.annotation.stampType])}`),o&&T.createElement("div",null,o))},"form-text":Gu,"form-checkbox":Gu,"form-button":Gu,"form-signature":Gu,redaction:e=>T.createElement("button",{autoFocus:e.autoFocus},e.intl.formatMessage(Ke.Z[`${e.type}Annotation`])),media:e=>{const{formatMessage:t}=e.intl,{fileName:n}=e.annotation,o=(0,$.aF)(e.annotation.description||"");return T.createElement(T.Fragment,null,T.createElement("button",{autoFocus:e.autoFocus},t(Ke.Z[`${e.type}Annotation`])),n&&!o&&T.createElement("div",{title:t(Ke.Z.filePath)+`: ${n}`},n),o&&T.createElement("div",null,o))},perimeter:Vu,distance:Vu,"ellipse-area":Vu,"rectangle-area":Vu,"polygon-area":Vu};class qu extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"_itemRef",(e=>{var t,n;e&&(this._el=e,null===(t=(n=this.props).onRenderItemCallback)||void 0===t||t.call(n,e,this.props.annotation))})),(0,o.Z)(this,"onPress",(()=>{const{annotation:e,dispatch:t,onPress:n}=this.props;if(!this.props.navigationDisabled){if(t((0,Eu.kN)(e.pageIndex,e.boundingBox)),this.props.isAnnotationReadOnly(e))return setTimeout((()=>{t((0,je.Q2)(e.id))}),100);e instanceof s.x_?t((0,je.fz)()):tt.Ni&&e instanceof s.Qi?t((0,je.VR)(e.id)):t((0,je.Df)((0,i.l4)([e.id]),null)),n&&n()}})),(0,o.Z)(this,"onDelete",(()=>{const{annotation:e,dispatch:t,navigationDisabled:n}=this.props;n||t((0,Eu.kN)(e.pageIndex,e.boundingBox)),t((0,Qt.d8)((0,i.l4)([e.id])))})),(0,o.Z)(this,"preventDeselect",(e=>e.stopPropagation()))}componentDidUpdate(e){var t,n;this._el&&e.onRenderItemCallback!==this.props.onRenderItemCallback&&(null===(t=(n=this.props).onRenderItemCallback)||void 0===t||t.call(n,this._el,this.props.annotation))}render(){const{annotation:e,intl:t,isSelectedAnnotation:n,annotationType:o,isAnnotationReadOnly:r,autoFocus:i,canDeleteAnnotationCP:a,dateTimeStringCallback:l}=this.props,{formatDate:c}=t,u=e.creatorName;let d=null;e.updatedAt.getTime()&&(l&&(d=l({dateTime:e.updatedAt,element:Nu.ANNOTATIONS_SIDEBAR,object:e})),null==d&&(d=c(e.updatedAt)));const p=Wu[o],f=F()("PSPDFKit-Sidebar-Annotations-Annotation",`PSPDFKit-Sidebar-Annotations-Annotation-${(0,qn.in)(o)}`,{"PSPDFKit-Sidebar-Annotations-Annotation-Selected":n}),h=!(e instanceof s.x_)&&!(e instanceof s.Hu)&&!r(e)&&!tt.Ni&&a(e),m=(0,Ze.Z)({type:o.toLowerCase(),className:F()(Bu().icon,"PSPDFKit-Sidebar-Annotations-Icon")});return T.createElement(ju,{itemRef:this._itemRef,layoutClassName:f,isSelectedItem:n,navigationDisabled:this.props.navigationDisabled,onPress:this.onPress,onDelete:this.onDelete,isDeletable:h,itemWrapperProps:{"data-annotation-id":e.id},icon:m,showFooter:!(e instanceof s.x_),author:u,formattedDate:d,date:e.updatedAt},T.createElement(p,{intl:t,annotation:e,type:o,autoFocus:i}))}}const Hu=(0,Re.XN)(qu);var $u=n(35860);const Yu=(0,Re.vU)({commentOptions:{id:"commentOptions",defaultMessage:"Comment Options",description:"Comment Options"},editContent:{id:"editContent",defaultMessage:"Edit Content",description:"Edit Content"},deleteCommentConfirmMessage:{id:"deleteCommentConfirmMessage",defaultMessage:"Are you sure you want to delete this comment?",description:'Message displayed in the "Delete Comment" confirm dialog'},deleteCommentConfirmAccessibilityLabel:{id:"deleteCommentConfirmAccessibilityLabel",defaultMessage:"Confirm comment deletion",description:'Accessibility label (title) for the "Delete Comment" confirm dialog'},deleteCommentConfirmAccessibilityDescription:{id:"deleteCommentConfirmAccessibilityDescription",defaultMessage:"Dialog allowing the user to confirm or cancel deleting the comment",description:'Accessibility description for the "Delete Comment" confirm dialog'},moreComments:{id:"moreComments",defaultMessage:"More comments",description:"More comments indicator in comments popover"}});const Xu=function(e){var t;const n=T.useRef(),{rootComment:o,commentsCount:r,onRenderItemCallback:a,annotation:s,onPress:l,navigationDisabled:c,isCommentReadOnly:u,dateTimeStringCallback:d,isSelectedAnnotation:p,canDeleteCommentCP:f}=e,h=(0,A.I0)(),{formatMessage:m,formatDate:g}=(0,Re.YB)(),[v,y]=T.useState(!1),b=T.useCallback((e=>{e&&(n.current=e,null==a||a(e,s))}),[s,a]),w=(0,fi.R9)((()=>{if(!c){if(h((0,Eu.kN)(s.pageIndex,s.boundingBox)),u(o))return setTimeout((()=>{h((0,je.Q2)(s.id))}),100);h((0,je.Df)((0,i.l4)([s.id]),null)),l&&l()}})),S=(0,fi.R9)((()=>{c||h((0,Eu.kN)(s.pageIndex,s.boundingBox)),y(!0)})),E=T.useCallback((()=>{h((0,bi.UM)(o)),y(!1)}),[o,h]),P=o.isAnonymous?m(Ke.Z.anonymous):null!==(t=o.creatorName)&&void 0!==t?t:m(Ke.Z.anonymous);let x=null;o.createdAt.getTime()&&(d&&(x=d({dateTime:o.createdAt,element:Nu.ANNOTATIONS_SIDEBAR,object:o})),null==x&&(x=g(o.createdAt,s.isCommentThreadRoot&&o?{hour12:!0,hour:"numeric",minute:"numeric",month:"numeric",day:"numeric",year:"numeric"}:void 0)));let D=null;r&&r>1&&(D=m(Ke.Z.nMoreComments,{arg0:r-1}));const C=F()("PSPDFKit-Sidebar-Annotations-Comment",{"PSPDFKit-Sidebar-Annotations-Comment-Selected":p}),k=!u(o)&&!tt.Ni&&f(o),O=(0,Ze.Z)({type:"comment",className:F()(Bu().icon,"PSPDFKit-Sidebar-Annotations-Icon")});return T.createElement(T.Fragment,null,T.createElement(ju,{itemRef:b,layoutClassName:C,isSelectedItem:p,navigationDisabled:c,onPress:w,onDelete:S,isDeletable:k,itemWrapperProps:{"data-annotation-id":s.id},icon:O,showFooter:!0,author:P,formattedDate:x,date:s.updatedAt,additionalFooter:s.isCommentThreadRoot&&D?T.createElement("span",null,D):null},T.createElement("button",{autoFocus:e.autoFocus},(0,$.aF)((0,qn.KY)((null==o?void 0:o.text.value)||"")))),v&&T.createElement($u.Z,{onConfirm:E,onCancel:()=>{y(!1)},accessibilityLabel:m(Yu.deleteCommentConfirmAccessibilityLabel),accessibilityDescription:m(Yu.deleteCommentConfirmAccessibilityDescription)},T.createElement("p",null,m(Yu.deleteCommentConfirmMessage))))},Ju=T.memo((function(e){let{closeOnPress:t=!1,navigationDisabled:n,annotations:o,comments:r,commentThreads:a,formFields:s,pages:l,isAnnotationReadOnly:c,isCommentReadOnly:u,selectedAnnotationIds:d,canDeleteAnnotationCP:p,canDeleteCommentCP:f,sidebarOptions:h}=e;const[m,g]=T.useState(null),{includeContent:v}=h;T.useEffect((()=>{null==m||m.focus()}),[m]);const{formatMessage:y}=(0,Re.YB)(),b=(0,A.I0)(),w=(0,A.v9)((e=>e.dateTimeString)),S=(0,fi.R9)((()=>{n||t&&b((0,En.mu)())})),E=v.some((e=>e===j.sv)),P=F()(Bu().container,"PSPDFKit-Sidebar-Annotations"),x=T.useMemo((()=>o.filter((e=>null!==e.pageIndex&&(E&&e.isCommentThreadRoot||!e.isCommentThreadRoot&&null!==Qu(e,s)&&v.some((t=>e instanceof t)))))),[o,s,v,E]),D=T.useMemo((()=>l.reduce(((e,t)=>{const n=function(e){let t=e.filter((e=>e.isCommentThreadRoot)).sortBy((e=>e.boundingBox.top));return e.map((e=>{if(!e.isCommentThreadRoot)return e;const n=t.first();return t=t.shift(),n}))}((0,J.xp)(x,t));return 0===n.size?e:e.push(n)}),(0,i.aV)())),[l,x]),C=(0,fi.Bo)(m,D),k=(null==D?void 0:D.reduce(((e,t)=>e+t.size),0))||0,O=(0,fi.mP)(C,(e=>e.id),(e=>x.get(e)));return T.createElement("div",{className:P,role:"region","aria-label":y(Ke.Z.annotations),ref:g},T.createElement("div",{className:"PSPDFKit-Sidebar-Header"},k>0?T.createElement("div",{className:F()(Bu().annotationCounter,"PSPDFKit-Sidebar-Annotations-Annotation-Counter")},y(Ke.Z.annotationsCount,{arg0:k})):null),k>0&&D?T.createElement(T.Fragment,null,D.map(((e,t)=>{const o=e.first().pageIndex,i=l.get(o);(0,Ne.k)(i);const h=i.get("pageLabel");return T.createElement("section",{key:`Annotations-Sidebar-Page-${o}`},T.createElement("h1",{className:F()(Bu().pageNumber,"PSPDFKit-Sidebar-Annotations-Page-Number")},y(Ke.Z.pageX,{arg0:h||o+1})),T.createElement("div",{className:F()(Bu().content,Bu().annotations,"PSPDFKit-Sidebar-Annotations-Container")},e.map(((e,o)=>{if(e.isCommentThreadRoot&&E){const i=a.get(e.id),s=null==i?void 0:i.first(),l=null==i?void 0:i.last();if(i&&l&&s){const a=r.get(l);if(a){const l=!(0,Ml.kT)(a)&&(null==a?void 0:a.text.value).length>0?null==i?void 0:i.size:(null==i?void 0:i.size)-1,c=r.get(s);return T.createElement(Xu,{annotation:e,rootComment:c,commentsCount:l,onPress:S,isCommentReadOnly:u,isSelectedAnnotation:d.has(e.id),navigationDisabled:n,autoFocus:0===o&&0===t,canDeleteCommentCP:f,key:`Annotation-Info-${e.id}`,onRenderItemCallback:O,dateTimeStringCallback:w})}}}const i=Qu(e,s);return null!=i?T.createElement(Hu,{dispatch:b,annotation:e,annotationType:i,onPress:S,isAnnotationReadOnly:c,isSelectedAnnotation:d.has(e.id),navigationDisabled:n,autoFocus:0===o&&0===t,canDeleteAnnotationCP:p,key:`Annotation-Info-${e.id}`,onRenderItemCallback:O,dateTimeStringCallback:w}):null}))))}))):T.createElement("div",{className:F()(Bu().container,Bu().empty,"PSPDFKit-Sidebar-Empty"),role:"region","aria-label":y(Ke.Z.annotations)},y(ed.noAnnotations)))}));function Qu(e,t){var n;let o;const r=Number(e.cloudyBorderIntensity)>0,i=null===(n=e.strokeDashArray)||void 0===n?void 0:n.length;return e instanceof s.Zc?function(e){return"normal"===e.blendMode?0===e.opacity||e.lineWidth/e.opacity>40?"highlighter":"ink":e.lineWidth>15?"highlighter":"ink"}(e):e instanceof s.gd?e.callout?"callout":"text":e instanceof s.Qi?"note":e instanceof s.sK?"image":e instanceof s.GI?"stamp":e instanceof s.FV?"highlight":e instanceof s.xu?"underline":e instanceof s.R9?"strikeOut":e instanceof s.hL?"squiggle":e instanceof s.R1?"link":e instanceof s.b3?e.isMeasurement()?"rectangle-area":r?"cloudy-rectangle":i?"dashed-rectangle":"rectangle":e instanceof s.Xs?e.isMeasurement()?"ellipse-area":r?"cloudy-ellipse":i?"dashed-ellipse":"ellipse":e instanceof s.Hi?e.isMeasurement()?"polygon-area":r?"cloudy-polygon":i?"dashed-polygon":"polygon":e instanceof s.om?e.isMeasurement()?"perimeter":"polyline":e instanceof s.o9?function(e){if(e.isMeasurement())return"distance";if(!e.lineCaps)return"line";const t="openArrow"===e.lineCaps.start||"closedArrow"===e.lineCaps.start||"reverseOpenArrow"===e.lineCaps.start||"reverseClosedArrow"===e.lineCaps.start,n="openArrow"===e.lineCaps.end||"closedArrow"===e.lineCaps.end||"reverseOpenArrow"===e.lineCaps.end||"reverseClosedArrow"===e.lineCaps.end;return t||n?"arrow":"line"}(e):e instanceof s.x_?((0,Ne.k)(t),o=t.get(e.formFieldName),o instanceof l.$o||o instanceof l.Vi||o instanceof l.fB?"form-text":o instanceof l.rF?"form-checkbox":o instanceof l.XQ||o instanceof l.R0?"form-button":o instanceof l.Yo?"form-signature":null):e instanceof pe.Z?"redaction":e instanceof s.Hu?"media":null}const ed=(0,Re.vU)({noAnnotations:{id:"noAnnotations",defaultMessage:"No Annotations",description:"Message shown when there is no annotations"}});var td,nd=n(24871),od=n(81619),rd=n(5462),id=n(27435),ad=n.n(id),sd=n(44364),ld=n.n(sd),cd=n(93628),ud=n.n(cd);function dd(e){return gd[e]||Ke.Z[e]}function pd(e){let{item:t,isEnd:n,formatMessage:o}=e;return T.createElement(T.Fragment,null,T.createElement(ue.TX,{tag:"div"},o(dd(t))),T.createElement("svg",{viewBox:"0 0 8 4",style:{height:16,width:32}},T.createElement("g",{transform:n?"rotate(180 4,2)":void 0},cn.O[t].startElement({fill:"transparent"}),td||(td=T.createElement("line",{x1:"3.5",y1:"2",x2:"8",y2:"2"})))))}function fd(e){let{item:t,formatMessage:n}=e;const o=od.x.find((e=>e.id===t));return T.createElement(T.Fragment,null,T.createElement(ue.TX,{tag:"div"},n(dd(t))),T.createElement("svg",{viewBox:"0 0 16 4",style:{width:54,height:16}},T.createElement("line",{x1:"0",y1:"2",x2:"16",y2:"2",strokeDasharray:o?o.dashArray:void 0,fill:"transparent"})))}class hd extends T.PureComponent{constructor(){for(var e,t=arguments.length,n=new Array(t),r=0;r{const{annotation:t}=this.props,n={};return"none"!==e&&(n.start=e),"lineCaps"in t&&t.lineCaps&&null!=t.lineCaps.end&&(n.end=t.lineCaps.end),this.props.updateAnnotation({lineCaps:n,boundingBox:this.calculateBoundingBox(t.set("lineCaps",n))})})),(0,o.Z)(this,"_onChangeDashArray",(e=>{const t=od.x.find((t=>t.id===e));return this.props.updateAnnotation({strokeDashArray:void 0!==t?t.dashArray:null})})),(0,o.Z)(this,"_onChangeEndLineCap",(e=>{const{annotation:t}=this.props,n={};return"lineCaps"in t&&t.lineCaps&&null!=t.lineCaps.start&&(n.start=t.lineCaps.start),"none"!==e&&(n.end=e),this.props.updateAnnotation({lineCaps:n,boundingBox:this.calculateBoundingBox(t.set("lineCaps",n))})})),(0,o.Z)(this,"LineCapSelectButton",(function(t,n){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return i=>{var a;let{btnComponentProps:s,selectedItem:l}=i;return T.createElement(_e.Z,(0,De.Z)({is:"div"},s,{className:F()("PSPDFKit-Input-Dropdown-Button",ud().selectBox,e.props.styles.startLineCapSelect),name:"clickableBox",ref:e=>{s.ref(e),"function"==typeof r?r(e):r&&(r.current=e)}}),T.createElement(pd,{item:null!==(a=null==l?void 0:l.label)&&void 0!==a?a:"",isEnd:o,formatMessage:t}),T.createElement("div",null,(0,Ze.Z)({type:"caret-"+n,style:{width:12,height:12,flexBasis:12,marginLeft:3,strokeWidth:0},className:F()(ud().dropdownIcon)})))}})),(0,o.Z)(this,"LineCapItem",(function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n=>{var o;let{item:r,state:i,itemComponentProps:a,ref:s}=n;return T.createElement(_e.Z,(0,De.Z)({is:"div",className:F()(ld().root,ad().root,(null==i?void 0:i.includes("selected"))&&ud().isSelected,(null==i?void 0:i.includes("focused"))&&ud().isSelected)},a,{ref:s}),T.createElement(pd,{item:null!==(o=null==r?void 0:r.label)&&void 0!==o?o:"",isEnd:t,formatMessage:e}))}})),(0,o.Z)(this,"DashArrayButton",((e,t)=>n=>{var o;let{btnComponentProps:r,selectedItem:i}=n;return T.createElement(_e.Z,(0,De.Z)({is:"div"},r,{ref:r.ref,className:F()("PSPDFKit-Input-Dropdown-Button",ud().selectBox,this.props.styles.strokeDashArraySelect),name:"clickableBox"}),T.createElement(fd,{item:null!==(o=null==i?void 0:i.label)&&void 0!==o?o:"",formatMessage:e}),T.createElement("div",null,(0,Ze.Z)({type:"caret-"+t,style:{width:12,height:12,flexBasis:12,marginLeft:3,strokeWidth:0},className:F()(ud().dropdownIcon)})))})),(0,o.Z)(this,"DashArrayItem",(e=>t=>{var n;let{item:o,state:r,itemComponentProps:i,ref:a}=t;return T.createElement(_e.Z,(0,De.Z)({is:"div",className:F()(ld().root,ad().root,(null==r?void 0:r.includes("selected"))&&ud().isSelected,(null==r?void 0:r.includes("focused"))&&ud().isSelected),ref:a},i),T.createElement(fd,{item:null!==(n=null==o?void 0:o.label)&&void 0!==n?n:"",formatMessage:e}))})),(0,o.Z)(this,"_startButton",this.LineCapSelectButton(this.props.intl.formatMessage,this.props.caretDirection,!1,this.props.innerRef)),(0,o.Z)(this,"_endButton",this.LineCapSelectButton(this.props.intl.formatMessage,this.props.caretDirection,!0)),(0,o.Z)(this,"_startItem",this.LineCapItem(this.props.intl.formatMessage)),(0,o.Z)(this,"_endItem",this.LineCapItem(this.props.intl.formatMessage,!0)),(0,o.Z)(this,"_dashArrayButton",this.DashArrayButton(this.props.intl.formatMessage,this.props.caretDirection)),(0,o.Z)(this,"_dashArrayItem",this.DashArrayItem(this.props.intl.formatMessage))}render(){const{intl:{formatMessage:e},styles:t,annotation:n,caretDirection:o}=this.props,{strokeDashArray:r}=n,i=mt.Ei.LINE_CAP_PRESETS,a={start:"none",end:"none"};"lineCaps"in n&&n.lineCaps&&(nd.a.includes(n.lineCaps.start)&&(a.start=n.lineCaps.start),nd.a.includes(n.lineCaps.end)&&(a.end=n.lineCaps.end)),i.includes(a.start)||(a.start="N/A"),i.includes(a.end)||(a.end="N/A");const s=i.map((e=>({value:e,label:e}))),l=r instanceof Array&&2===r.length?od.x.find((e=>2===e.dashArray.length&&e.dashArray[0]===r[0]&&e.dashArray[1]===r[1])):od.x[0],c=od.x.map((e=>({value:e.id,label:e.id})));return T.createElement("div",{className:t.controlWrapper},T.createElement("div",{className:t.control},T.createElement(rd.Z,{items:s,value:{value:a.start,label:a.start},discreteDropdown:!1,isActive:!1,caretDirection:o,accessibilityLabel:e(Ke.Z.startLineCap),className:F()("PSPDFKit-Annotation-Toolbar-StartLineCap",t.startLineCapSelect,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:F()(t.dropdownMenu,t.lineCapsDashArrayMenu),maxCols:5,itemWidth:54,ButtonComponent:this._startButton,ItemComponent:this._startItem,onSelect:(e,t)=>{t.value&&this._onChangeStartLineCap(t.value)},frameWindow:this.props.frameWindow}),T.createElement(rd.Z,{items:c,value:l?{label:l.id,value:l.id}:{label:"solid",value:"solid"},discreteDropdown:!1,isActive:!1,caretDirection:o,accessibilityLabel:e(Ke.Z.strokeDashArray),className:F()("PSPDFKit-Annotation-Toolbar-DashArray",t.strokeDashArraySelect,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:F()(t.dropdownMenu,t.lineCapsDashArrayMenu),itemWidth:76,ButtonComponent:this._dashArrayButton,ItemComponent:this._dashArrayItem,onSelect:(e,t)=>{t.value&&this._onChangeDashArray(t.value)},frameWindow:this.props.frameWindow}),T.createElement(rd.Z,{items:s,value:{label:a.end,value:a.end},discreteDropdown:!1,isActive:!1,caretDirection:o,accessibilityLabel:e(Ke.Z.endLineCap),className:F()("PSPDFKit-Annotation-Toolbar-EndLineCap",t.endLineCapSelect,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:F()(t.dropdownMenu,t.lineCapsDashArrayMenu),maxCols:5,itemWidth:54,ButtonComponent:this._endButton,ItemComponent:this._endItem,onSelect:(e,t)=>{t.value&&this._onChangeEndLineCap(t.value)},frameWindow:this.props.frameWindow})))}}const md=hd,gd=(0,Re.vU)({square:{id:"square",defaultMessage:"Square",description:"Square line cap"},circle:{id:"circle",defaultMessage:"Circle",description:"Circle line cap"},diamond:{id:"diamond",defaultMessage:"Diamond",description:"Diamond line cap"},openArrow:{id:"openArrow",defaultMessage:"Open Arrow",description:"Open arrow line cap"},closedArrow:{id:"closedArrow",defaultMessage:"Closed Arrow",description:"Closed arrow line cap"},butt:{id:"butt",defaultMessage:"Butt",description:"Butt line cap"},reverseOpenArrow:{id:"reverseOpenArrow",defaultMessage:"Reverse Open Arrow",description:"Reverse open arrow line cap"},reverseClosedArrow:{id:"reverseClosedArrow",defaultMessage:"Reverse Closed Arrow",description:"Reverse closed arrow line cap"},slash:{id:"slash",defaultMessage:"Slash",description:"Slash line cap"},solid:{id:"solid",defaultMessage:"Solid",description:"Solid line"},narrowDots:{id:"narrowDots",defaultMessage:"Narrow Dots",description:"Narrow dotted line"},wideDots:{id:"wideDots",defaultMessage:"Wide Dots",description:"Wide dotted line"},narrowDashes:{id:"narrowDashes",defaultMessage:"Narrow Dashes",description:"Narrow dashed line"},wideDashes:{id:"wideDashes",defaultMessage:"Wide Dashes",description:"Wide dashed line"}});var vd;const yd=74,bd={width:54,height:13.5,fill:"transparent"};const wd=Je.i1*Je.St;function Sd(e){let{item:t,lineStyleOptions:n,formatMessage:o}=e;const r=n.get(t);return T.createElement(T.Fragment,null,T.createElement(ue.TX,{tag:"div"},o(xd[t])),r)}class Ed extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"state",{calculateShapeBoundingBox:(0,ee.sS)(this.props.annotation.constructor)}),(0,o.Z)(this,"DashArrayButton",(e=>{var t;let{btnComponentProps:n,selectedItem:o}=e;return T.createElement(_e.Z,(0,De.Z)({is:"div"},n,{className:F()("PSPDFKit-Input-Dropdown-Button",ud().selectBox,this.props.styles.strokeDashArraySelect),name:"clickableBox",ref:e=>{n.ref(e),"function"==typeof this.props.innerRef?this.props.innerRef(e):this.props.innerRef&&(this.props.innerRef.current=e)}}),T.createElement(Sd,{item:null!==(t=null==o?void 0:o.label)&&void 0!==t?t:"solid",lineStyleOptions:this._lineStyleOptions,formatMessage:this.props.intl.formatMessage}),T.createElement("div",null,(0,Ze.Z)({type:"caret-"+this.props.caretDirection,style:{width:12,height:12,flexBasis:12,marginLeft:3,strokeWidth:0},className:F()(ud().dropdownIcon)})))})),(0,o.Z)(this,"DashArrayItem",(e=>{var t;let{item:n,state:o,itemComponentProps:r,ref:i}=e;return T.createElement(_e.Z,(0,De.Z)({is:"div",className:F()(ld().root,ad().root,(null==o?void 0:o.includes("selected"))&&ud().isSelected,(null==o?void 0:o.includes("focused"))&&ud().isSelected)},r,{ref:i}),T.createElement(Sd,{item:null!==(t=null==n?void 0:n.label)&&void 0!==t?t:"solid",lineStyleOptions:this._lineStyleOptions,formatMessage:this.props.intl.formatMessage}))})),(0,o.Z)(this,"_onChange",((e,t)=>{const{value:n}=t,{annotation:o}=this.props,r="cloudy"===n?Je.i1:0,i=od.x.find((e=>e.id===n)),a=((e,t,n)=>{if(e.constructor===s.Xs||e.constructor===s.b3){if(t>0&&!e.cloudyBorderIntensity)return e.boundingBox.grow(wd+e.strokeWidth/2);if(!t&&e.cloudyBorderIntensity>0)return e.boundingBox.grow(-(wd+e.strokeWidth/2))}return e.constructor===s.Hi?n(e.set("cloudyBorderIntensity",t)):n(e)})(o,r,this.state.calculateShapeBoundingBox);return this.props.updateAnnotation({strokeDashArray:void 0!==i&&Array.isArray(i.dashArray)&&2===i.dashArray.length?i.dashArray:null,cloudyBorderIntensity:r,cloudyBorderInset:r?j.eB.fromValue(wd+o.strokeWidth/2):o.cloudyBorderInset,boundingBox:a})})),(0,o.Z)(this,"_lineStyleOptions",function(){const e=new Map;return od.x.forEach((t=>{e.set(t.id,T.createElement("svg",{viewBox:"0 0 16 4",style:bd,key:t.id},T.createElement("line",{x1:"0",y1:"2",x2:"16",y2:"2",strokeDasharray:t.dashArray})))})),e.set("cloudy",vd||(vd=T.createElement("svg",{viewBox:"0 0 16 4",style:bd,key:"cloudy"},T.createElement("path",{d:"M 1 2.23 A 2.125 2.125 0 0 1 4.67 1.68 A 2.125 2.125 0 0 0 4.35 2.23 A 2.125 2.125 0 0 1 8 1.68 A 2.125 2.125 0 0 0 7.68 2.23 A 2.125 2.125 0 0 1 11.33 1.68 A 2.125 2.125 0 0 0 11.02 2.23 A 2.125 2.125 0 1 1 14.14 4.80 A 2.125 2.125 0 0 0 13.55 4.54"})))),e}(this.props.intl.formatMessage))}static getDerivedStateFromProps(e){return{calculateShapeBoundingBox:(0,ee.sS)(e.annotation.constructor)}}render(){const{intl:{formatMessage:e},styles:t,annotation:n,frameWindow:o}=this.props,{strokeDashArray:r,cloudyBorderIntensity:i}=n,a=Array.isArray(r)&&2===r.length&&od.x.find((e=>2===e.dashArray.length&&e.dashArray[0]===r[0]&&e.dashArray[1]===r[1])),s=i>0?a||i!==Je.i1?"":"cloudy":a?a.id:r?"":"solid",l=Array.from(this._lineStyleOptions.keys()).map((e=>({label:e,value:e})));return T.createElement("div",{className:t.controlWrapper},T.createElement("div",{className:t.control},T.createElement(rd.Z,{items:l,value:{label:s||"solid",value:s||"solid"},discreteDropdown:!1,isActive:!1,caretDirection:this.props.caretDirection,accessibilityLabel:e(Ke.Z.strokeDashArray),className:F()("PSPDFKit-Annotation-Toolbar-LineStyle",t.strokeDashArraySelect,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:F()(t.dropdownMenu,t.strokeDashArrayMenu),maxCols:1,itemWidth:yd,ButtonComponent:this.DashArrayButton,ItemComponent:this.DashArrayItem,onSelect:this._onChange,frameWindow:o})))}}const Pd=Ed,xd=(0,Re.vU)({solid:{id:"solid",defaultMessage:"Solid",description:"Solid line"},narrowDots:{id:"narrowDots",defaultMessage:"Narrow Dots",description:"Narrow dotted line"},wideDots:{id:"wideDots",defaultMessage:"Wide Dots",description:"Wide dotted line"},narrowDashes:{id:"narrowDashes",defaultMessage:"Narrow Dashes",description:"Narrow dashed line"},wideDashes:{id:"wideDashes",defaultMessage:"Wide Dashes",description:"Wide dashed line"},cloudy:{id:"cloudy",defaultMessage:"Cloudy border",description:"Cloudy border effect"}});var Dd=n(2726);function Cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}const kd=T.forwardRef(((e,t)=>{let n=[],r=!1;Array.isArray(mt.Ei.LINE_WIDTH_PRESETS)&&(n=mt.Ei.LINE_WIDTH_PRESETS,r=!0);let i=!1,a=!1;e.annotation instanceof j.Zc&&(i=!0),e.annotation instanceof j.R1&&(a=!0);const{intl:{formatMessage:s},styles:l,annotation:c,type:u,caretDirection:d}=e,p=u?`PSPDFKit-${u}-Annotation-Toolbar-StrokeWidth`:"",f=F()("PSPDFKit-Annotation-Toolbar-StrokeWidth",u&&p);let h=1,m=40,g=i?c.lineWidth:a?c.borderWidth:c.strokeWidth;return r&&(h=0,m=n.length-1,g=n.indexOf(g)),T.createElement("div",{className:l.controlWrapper},T.createElement("div",{className:l.control},T.createElement(Dd.Z,{name:"lineWidth",accessibilityLabel:e.accessibilityLabel||s(Ke.Z.size),className:f,value:g,valueLabel:t=>{let o=t;if(r){if(-1===t)return"N/A";o=n[t]}return e.intl.formatMessage(Ke.Z.numberInPt,{arg0:o.toFixed(0)})},min:h,max:m,step:1,onChange:t=>{let s=t;if(r&&(s=n[t]),i)return e.updateAnnotation({lineWidth:s});if(a)return e.updateAnnotation({borderWidth:s});if(e.annotation instanceof j.b3||e.annotation instanceof j.Xs){const t=s/2-e.annotation.strokeWidth/2,n=e.annotation.cloudyBorderInset?new j.eB({left:e.annotation.cloudyBorderInset.left+t,top:e.annotation.cloudyBorderInset.top+t,right:e.annotation.cloudyBorderInset.right+t,bottom:e.annotation.cloudyBorderInset.bottom+t}):null;return e.updateAnnotation(function(e){for(var t=1;tthis.props.updateAnnotation({opacity:e/100}))),(0,o.Z)(this,"valueLabel",(e=>`${Math.round(e)}%`))}render(){const{intl:{formatMessage:e},styles:t,annotation:n,type:o,caretDirection:r}=this.props,i=o?`PSPDFKit-${o}-Annotation-Toolbar-Opacity`:"",a=F()("PSPDFKit-Annotation-Toolbar-Opacity",o&&i);return T.createElement("div",{className:t.controlWrapper},T.createElement("div",{className:t.control},T.createElement(Dd.Z,{name:"opacity",accessibilityLabel:e(Ke.Z.opacity),className:a,value:100*n.opacity,valueLabel:this.valueLabel,min:10,max:100,step:1,onChange:this.updateAnnotation,caretDirection:r,innerRef:this.props.innerRef})))}}const Td={LineCapsDashArrayComponent:md,LineStyleComponent:Pd,StrokeWidthComponent:Ad,OpacityComponent:Od};var Id=n(11010),Fd=n(66003),Md=n(16593),_d=n.n(Md);let Rd=0;const Nd=T.forwardRef((function(e,t){const n=T.useRef(Rd++),{label:o,accessibilityLabel:r,onUpdate:i,onBlur:a,onFocus:s,onKeyDown:l,textStyles:c,disabled:u=!1,autoFocus:d=!0,name:p="name"}=e,f=T.useCallback((e=>{i&&i(e.target.value)}),[i]);return T.createElement("div",{className:e.styles.controlWrapper},T.createElement("div",{className:e.styles.control},T.createElement("div",{className:`PSPDFKit-Text-Input ${e.className||""} ${_d().root}`},e.label?T.createElement("label",{htmlFor:`${_d().root}-${n.current}`,className:_d().label},o):r?T.createElement(ue.TX,{tag:"label",htmlFor:`${_d().root}-${n.current}`},r):null,T.createElement(ue.oi,{className:F()(_d().input,e.styles.input),value:e.value,onChange:f,onBlur:a,onFocus:s,onKeyDown:l,autoFocus:d,selectTextOnFocus:!0,name:p,placeholder:e.placeholder,autoComplete:"off",id:`${_d().root}-${n.current}`,ref:t,style:c,disabled:u}))))}));var Ld=n(9437),Bd=n.n(Ld);const jd=T.forwardRef((function(e,t){const{intl:n,isEditing:o,showAnnotationNotes:r,isAnnotationNoteActive:i,hasAnnotationNote:a,onAnnotationNotePress:s,disabled:l}=e,{formatMessage:c}=n;return T.createElement(T.Fragment,null,r&&!o?T.createElement(Id.Z,{type:a||i?"note":"note-add",title:c(Ke.Z.noteAnnotation),className:F()(Bd().button,Bd().annotationNoteButton,{[Bd().disableEditing]:l}),onPress:l?void 0:s,selected:i,ref:t}):null)}));var zd=n(24852),Kd=n(11378),Zd=n(44706);function Ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Vd(e){for(var t=1;t{let{annotationToolbarItems:t,builtInItems:n,btnFocusRefIfFocusedItem:o,onGroupExpansion:r,builtInToolbarProps:i={},expandedGroup:a,hasDesktopLayout:s,onGroupTransitionEnded:l,position:c,typeMap:u}=e;const d=(0,T.useMemo)((()=>t.every((e=>{if(Gd(e))return!1;if("spacer"===e.type)return!0;{const t=n.find((t=>t.type===e.type));return!(null==t||!t.hidden)}}))),[n,t]),p=a?n.find((e=>Wd(e)===a))||t.filter(Gd).find((e=>Wd(e)===a)):void 0,f=(0,T.useMemo)((()=>((e,t,n)=>{if(n)return e.map((e=>{const n=!Gd(e)&&t.find((t=>t.type===e.type));return Vd(Vd({},e),n&&{group:n.group,node:n.node,title:e.title||n.title,onPress:(t,o)=>{var r,i;null===(r=n.onPress)||void 0===r||r.call(n,t.nativeEvent,e.id),null===(i=e.onPress)||void 0===i||i.call(e,t.nativeEvent,o)},disabled:n.disabled&&e.disabled,className:F()(n.className,e.className)})})).find((e=>n===Wd(e)))})(t,n,a)),[t,a,n]);if(f)return T.createElement("div",{className:Bd().right},T.createElement(Zd.Z,{onClose:()=>r(null),isPrimary:!1,position:c,onEntered:l,accessibilityLabel:f?f.title:void 0,className:Bd().expanded},f.node instanceof HTMLElement?T.createElement(Kd.Z,{node:f.node,className:f.className,onPress:f.onPress,title:f.title,disabled:f.disabled}):T.createElement("div",{className:f.className,onClick:e=>{var t;return null===(t=f.onPress)||void 0===t?void 0:t.call(f,e.nativeEvent,f.id)},title:f.title},f.node)));if(d)return null;const h=t.find((e=>{var t;return"spacer"!==e.type&&!(null!==(t=n.find((t=>t.type===e.type)))&&void 0!==t&&t.hidden)}));return T.createElement("form",{className:Bd().form,onSubmit:jr.PF},t.map(((e,t)=>{if("spacer"===e.type)return T.createElement("div",{key:e.type,className:F()("PSPDFKit-Annotation-Toolbar-Spacer",e.className),style:{display:"flex",flex:1},onClick:t=>{var n;return null===(n=e.onPress)||void 0===n?void 0:n.call(e,t.nativeEvent,e.id)}});const l=n.find((t=>t.type===e.type)),c=(null==h?void 0:h.id)===e.id&&(null==h?void 0:h.type)===e.type;if(Gd(e)){const n="node"in e&&!!e.node&&T.createElement("div",{role:"button",ref:o(Wd(e),p,0===t&&!a),key:e.id},T.createElement(Kd.Z,{node:e.node,className:e.className,onPress:t=>{var n;return null===(n=e.onPress)||void 0===n?void 0:n.call(e,t,e.id)},title:e.title,disabled:e.disabled,variant:"annotationToolbar"})),i="icon"in e&&!!e.icon&&T.createElement("div",{role:"button",key:e.id,className:F()(Bd().button,ad().root,ld().root,`${e.className}-Icon`),onClick:t=>{var n;"custom"===e.type&&e.node&&r(`custom-${e.id}`),null===(n=e.onPress)||void 0===n||n.call(e,t,e.id)},ref:o(Wd(e),p,c&&!a),title:e.title},(e=>"icon"in e?"string"==typeof e.icon?/{var n;return null===(n=e.onIconPress)||void 0===n?void 0:n.call(e,t,e.id)},title:e.title,disabled:e.disabled}):void 0:null)(e));return s?n||i:i||n}if(!l||l.hidden)return null;const d=(null==u?void 0:u[e.type])||e.type,f="function"==typeof i?i(l):i;return l.group?T.createElement(T.Fragment,{key:l.type},T.createElement("div",{className:F()(l.className,{[Bd().disableEditing]:l.disabled})},T.createElement(Id.Z,(0,De.Z)({type:d,icon:e.icon,title:e.title||l.title,onPress:t=>{var n,o;(r(l.group||null),s)?null===(n=e.onPress)||void 0===n||n.call(e,t,e.id):null===(o=e.onIconPress)||void 0===o||o.call(e,t,e.id)}},f,{className:F()(f.className,e.className),ref:o(Wd(l),p,c&&!a)})),l.node),!l.hideSeparator&&T.createElement("div",{className:Bd().separator})):T.createElement("div",{className:F()(l.className,{[Bd().disableEditing]:l.disabled},e.className),key:l.type,onClick:t=>{var n;null===(n=e.onPress)||void 0===n||n.call(e,t.nativeEvent,e.id)},title:e.title||l.title},l.node)})))};var Hd=n(77528);function $d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Yd(e){for(var t=1;t{r&&(t.rects.size>0&&n?(o((0,Qt.gX)(i)),o((0,En.aw)()),o((0,je.vR)())):e.updateAnnotation(i,"redaction"))})),f=(0,fi.R9)((()=>(o((0,En.fq)()),new Promise(((e,t)=>(o((0,zd.g)((()=>{o((0,En.Di)()),e()}),(e=>{o((0,En.Di)()),t(e)}))),e)))))),{position:h,intl:m}=e,{formatMessage:g}=m,v={updateAnnotation:p,annotation:t,styles:Bd(),intl:m,caretDirection:"bottom"===h?"up":"down"},y=[{node:T.createElement(Fd.Z,(0,De.Z)({},v,{record:t,colorProperty:"fillColor",onChange:p,className:"PSPDFKit-Redaction-Annotation-Toolbar-Fill-Color",accessibilityLabel:g(Ke.Z.fillColor),removeTransparent:!0,keepOpacity:!0,frameWindow:e.frameWindow,innerRef:s("fillColor",!a),lastToolbarActionUsedKeyboard:c,annotationToolbarColorPresets:e.annotationToolbarColorPresets})),title:g(Ke.Z.fillColor),type:"fill-color",className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Fill-Color"),group:"fillColor",disabled:!r,hideSeparator:!0},{node:T.createElement("div",{style:{display:"flex"}},T.createElement(Nd,{accessibilityLabel:g(Ke.Z.overlayText),placeholder:g(Ke.Z.insertOverlayText),className:Bd().overlayTextInput,value:t.overlayText||"",onUpdate:e=>{p({overlayText:e})},styles:Yd(Yd({},Bd()),{},{controlWrapper:Bd().controlWrapperAutoWidth,input:Bd().overlayInput}),ref:s("overlayText")}),T.createElement(Fd.Z,(0,De.Z)({},v,{record:t,colorProperty:"color",onChange:p,className:"PSPDFKit-Redaction-Annotation-Toolbar-Color",removeTransparent:!0,accessibilityLabel:g(Ke.Z.color),keepOpacity:!0,styles:Yd(Yd({},Bd()),{},{controlWrapper:Bd().controlWrapperAutoWidth}),frameWindow:e.frameWindow,annotationToolbarColorPresets:e.annotationToolbarColorPresets})),T.createElement(ue.bK,{label:g(Ke.Z.repeatText),value:Boolean(t.repeatOverlayText),onUpdate:e=>{p({repeatOverlayText:e})},styles:Yd(Yd({},Bd()),{},{controlWrapper:Bd().controlWrapperAutoWidth})})),title:g(Ke.Z.overlayText),group:"overlayText",className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Overlay-Text",Bd().overlayTextMargin),disabled:!e.canEditAnnotationCP,type:"overlay-text"},{node:T.createElement(Fd.Z,(0,De.Z)({},v,{record:t,colorProperty:"outlineColor",onChange:p,className:"PSPDFKit-Redaction-Annotation-Toolbar-Outline-Color",accessibilityLabel:g(Ke.Z.outlineColor),frameWindow:e.frameWindow,innerRef:s("outlineColor"),annotationToolbarColorPresets:e.annotationToolbarColorPresets})),title:g(Ke.Z.outlineColor),group:"outlineColor",className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Outline-Color"),disabled:!e.canEditAnnotationCP,type:"outline-color"},{node:T.createElement(Td.OpacityComponent,(0,De.Z)({},v,{innerRef:s("opacity")})),title:g(Ke.Z.opacity),group:"opacity",className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity"),disabled:!e.canEditAnnotationCP,type:"opacity"},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(u),title:g(Ke.Z.delete),className:F()("PSPDFKit-Redaction-Annotation-Toolbar-Button-Delete",Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!i}),onPress:i?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===t.pageIndex||!!a||d},{node:T.createElement("div",{className:F()(Bd().applyRedactionsWrapper)},T.createElement(Id.Z,{type:"applyRedaction",title:g(Ke.Z.applyRedactions),className:F()("PSPDFKit-Redaction-Annotation-Toolbar-Button-Apply-Redactions",Bd().button,Bd().buttonNoBorder,Bd().applyRedactionsButton),onPress:f})),type:"apply-redactions",hidden:null===t.pageIndex||!!a||d},{node:T.createElement(jd,{intl:m,isEditing:e.isEditing,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),disabled:!e.canEditAnnotationCP,hidden:!e.showAnnotationNotes||n,type:"annotation-note"}],b={"overlay-text":t.repeatOverlayText?"redaction-text-repeating":"redaction-text-single","outline-color":"border-color"},w={presentational:e.viewportWidth>Je.GI,disabled:Boolean(a),className:F()(Bd().button,Bd().buttonNoBorder)};return T.createElement("div",{className:F()("PSPDFKit-Redaction-Annotation-Toolbar",Bd().content)},T.createElement(qd,{annotationToolbarItems:u,builtInItems:y,btnFocusRefIfFocusedItem:l,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:w,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:a,onGroupTransitionEnded:e.onGroupTransitionEnded,position:h,typeMap:b}))}));const Jd=Xd,Qd=T.memo((function(e){const{annotation:t,intl:n,position:o,expandedGroup:r,btnFocusRefIfFocusedGroup:i,btnFocusRefIfFocusedItem:a,canDeleteSelectedAnnotationCP:s,annotationToolbarItems:l}=e,c=(0,fi.R9)((t=>e.updateAnnotation(t,"stamp"))),{formatMessage:u}=n,d=[{node:T.createElement(Td.OpacityComponent,{intl:n,type:"Image",styles:Bd(),annotation:t,updateAnnotation:c,caretDirection:"bottom"===o?"up":"down",innerRef:i("opacity",!r)}),title:u(Ke.Z.opacity),type:"opacity",disabled:!e.canEditAnnotationCP,group:"opacity",className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(l),title:u(Ke.Z.delete),className:F()("PSPDFKit-Stamp-Annotation-Toolbar-Button-Delete",Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!s}),onPress:s?()=>e.deleteAnnotation():()=>{}}),type:"delete",disabled:null===e.annotation.pageIndex},{node:T.createElement(jd,{intl:e.intl,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),type:"annotation-note",disabled:!e.showAnnotationNotes}];return T.createElement("div",{className:F()("PSPDFKit-Stamp-Annotation-Toolbar",Bd().content)},T.createElement(qd,{annotationToolbarItems:l,builtInItems:d,btnFocusRefIfFocusedItem:a,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:{className:Bd().button},hasDesktopLayout:e.hasDesktopLayout,expandedGroup:r,onGroupTransitionEnded:e.onGroupTransitionEnded,position:o}))}));const ep=Qd,tp=T.memo((function(e){const{annotation:t,intl:n,position:o,expandedGroup:r,btnFocusRefIfFocusedGroup:i,btnFocusRefIfFocusedItem:a,canDeleteSelectedAnnotationCP:s,annotationToolbarItems:l}=e,c=(0,fi.R9)((t=>e.updateAnnotation(t,"image"))),{formatMessage:u}=n,d=[{node:T.createElement(Td.OpacityComponent,{intl:n,type:"Image",styles:Bd(),annotation:t,updateAnnotation:c,caretDirection:"bottom"===o?"up":"down",innerRef:i("opacity",!r)}),title:u(Ke.Z.opacity),type:"opacity",group:"opacity",disabled:!e.canEditAnnotationCP,hidden:e.areOnlyElectronicSignaturesEnabled,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:T.createElement(Id.Z,{type:"counterclockwise",title:u(Ke.Z.rotateCounterclockwise),className:`PSPDFKit-Image-Annotation-Toolbar-Button-Rotate PSPDFKit-Image-Annotation-Toolbar-Button-Rotate-Counterclockwise ${Bd().button} ${Bd().rotateButton}`,onPress:()=>{e.selectedAnnotationPageSize&&e.updateAnnotation((0,J.eJ)(e.annotation,e.selectedAnnotationPageSize,J.z1.COUNTERCLOCKWISE))}}),type:"counterclockwise-rotation",disabled:!e.canEditAnnotationCP,hidden:e.areOnlyElectronicSignaturesEnabled},{node:T.createElement(Id.Z,{type:"clockwise",title:u(Ke.Z.rotateClockwise),className:`PSPDFKit-Image-Annotation-Toolbar-Button-Rotate PSPDFKit-Image-Annotation-Toolbar-Button-Rotate-Clockwise ${Bd().button} ${Bd().rotateButton}`,onPress:()=>{e.selectedAnnotationPageSize&&e.updateAnnotation((0,J.eJ)(e.annotation,e.selectedAnnotationPageSize,J.z1.CLOCKWISE))}}),type:"clockwise-rotation",disabled:!e.canEditAnnotationCP,hidden:e.areOnlyElectronicSignaturesEnabled},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(l),title:u(Ke.Z.delete),className:F()("PSPDFKit-Image-Annotation-Toolbar-Button-Delete",Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!s}),onPress:s?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex||!!r},{node:T.createElement(jd,{intl:e.intl,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),type:"annotation-note",hidden:!e.showAnnotationNotes||e.areOnlyElectronicSignaturesEnabled}];return T.createElement("div",{className:F()("PSPDFKit-Image-Annotation-Toolbar",Bd().content)},T.createElement(qd,{annotationToolbarItems:l,builtInItems:d,btnFocusRefIfFocusedItem:a,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:{className:Bd().button},hasDesktopLayout:e.hasDesktopLayout,expandedGroup:r,onGroupTransitionEnded:e.onGroupTransitionEnded,position:o}))}));const np=tp;var op=n(927),rp=n.n(op);const ip=["Tab","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"];class ap extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"state",{keyboardFocus:!!this.props.lastToolbarActionUsedKeyboard}),(0,o.Z)(this,"_handleKeyUp",(e=>{ip.includes(e.key)&&this.setState({keyboardFocus:!0})})),(0,o.Z)(this,"_handlePointerUp",(()=>{this.setState({keyboardFocus:!1})})),(0,o.Z)(this,"shouldComponentUpdate",ze.O)}componentDidMount(){var e,t;const n=null===(e=this.props.innerRef)||void 0===e||null===(t=e.current)||void 0===t?void 0:t.parentNode;n&&n.focus()}render(){const{colorPresets:e,activeColor:t,innerRef:n}=this.props,{formatMessage:o}=this.props.intl;return this.props.colorPresets.length<2?null:T.createElement("div",{className:F()("PSPDFKit-Input-ColorPicker",this.props.className,rp().root),role:"radiogroup","aria-label":this.props.accessibilityLabel,onKeyUp:this._handleKeyUp,onPointerUp:this._handlePointerUp,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||this.setState({keyboardFocus:!1})}},e.map(((e,r)=>{const i=e.color===t||e.color&&t&&e.color.equals(t),a=F()({[rp().input]:!0,[rp().inputIsActive]:i,"PSPDFKit-Input-ColorPicker-Label":!0,"PSPDFKit-Input-ColorPicker-Label-active":i,[rp().focusRing]:this.state.keyboardFocus&&i}),s=F()({[rp().swatch]:!0,[rp().swatchIsTransparent]:!e.color,[rp().swatchIsWhite]:!e.color||e.color.equals(j.Il.WHITE),"PSPDFKit-Input-ColorPicker-Swatch":!0}),l=e.color?e.color.toCSSValue():null;let c=e.localization.defaultMessage;null!=l&&(e.localization.id?c=o(e.localization):null!=Ke.Z[l]&&(c=o(Ke.Z[l])));const u=e.color&&e.color.toCSSValue();return T.createElement("label",{className:a,key:r,title:c,"aria-label":c},T.createElement("span",{className:s,style:{backgroundColor:u||"transparent"}}),T.createElement(ue.TX,null," ",c," "),T.createElement(ue.TX,{tag:"input",type:"radio",name:rp().root,value:r,checked:!!i,onChange:t=>{t.target.checked&&this.props.onClick(e.color)},ref:i&&n?n:void 0}))})))}}(0,o.Z)(ap,"defaultProps",{className:""});const sp=(0,Re.XN)(ap),lp={normal:"normal",multiply:"multiply",screen:"screen",overlay:"overlay",darken:"darken",lighten:"lighten",colorDodge:"colorDodge",colorBurn:"colorBurn",hardLight:"hardLight",softLight:"softLight",difference:"difference",exclusion:"exclusion"},cp=T.forwardRef((function(e,t){let{value:n="normal",onChange:o,className:r,caretDirection:i,frameWindow:a}=e;const{formatMessage:s}=(0,Re.YB)(),l=Object.keys(lp).map((e=>({value:e,label:e}))),c=T.useCallback(up(s,i),[s,i]),u=T.useCallback(dp(s),[s]);return T.createElement(T.Fragment,null,T.createElement(rd.Z,{items:l,value:{label:n,value:n},discreteDropdown:!1,isActive:!1,caretDirection:i,accessibilityLabel:s(Ke.Z.blendMode),className:F()(Bd().blendModeSelect,r,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:Bd().dropdownMenu,ButtonComponent:c,ItemComponent:u,onSelect:(e,t)=>{if(t.value){const e=lp[t.value];o(e)}},frameWindow:a,ref:t}),T.createElement("div",{className:F()(Bd().fontSizeNativeFlexbox)},T.createElement("div",{className:Bd().nativeDropdown},T.createElement("select",{"aria-label":s(Ke.Z.blendMode),className:"PSPDFKit-Input-Dropdown-Select",value:n,onChange:e=>{if(void 0!==e.target.value){const t=lp[e.target.value];o(t)}},ref:t},l.map((e=>T.createElement("option",{key:e.value,value:e.value,disabled:e.disabled},s(pp[e.label]))))))))})),up=(e,t)=>n=>{let{btnComponentProps:o,selectedItem:r}=n;return T.createElement(_e.Z,(0,De.Z)({is:"div"},o,{ref:o.ref,className:F()("PSPDFKit-Input-Dropdown-Button ",ud().selectBox,Bd().selectBox),style:{minWidth:"100px"}}),T.createElement("span",null,null!=r&&r.label?e(pp[r.label]):null),T.createElement("div",null,(0,Ze.Z)({type:"caret-"+t,style:{width:12,height:12,flexBasis:12},className:F()(ud().dropdownIcon)})))},dp=e=>t=>{let{item:n,state:o,itemComponentProps:r,ref:i}=t;return T.createElement(_e.Z,(0,De.Z)({is:"div",ref:i,className:F()(ud().item,{[ud().isSelected]:(null==o?void 0:o.includes("selected"))||(null==o?void 0:o.includes("focused"))}),name:null==n?void 0:n.label},r),null!=n&&n.label?e(pp[n.label]):null)},pp=(0,Re.vU)({normal:{id:"normal",defaultMessage:"Normal",description:"Blend Mode Normal"},multiply:{id:"multiply",defaultMessage:"Multiply",description:"Blend Mode Multiply"},screen:{id:"screenBlend",defaultMessage:"Screen",description:"Blend Mode Screen"},overlay:{id:"overlay",defaultMessage:"Overlay",description:"Blend Mode Overlay"},darken:{id:"darken",defaultMessage:"Darken",description:"Blend Mode Darken"},lighten:{id:"lighten",defaultMessage:"Lighten",description:"Blend Mode Lighten"},colorDodge:{id:"colorDodge",defaultMessage:"Color Dodge",description:"Blend Mode Color Dodge"},colorBurn:{id:"colorBurn",defaultMessage:"Color Burn",description:"Blend Mode Color Burn"},hardLight:{id:"hardLight",defaultMessage:"Hard Light",description:"Blend Mode Hard Light"},softLight:{id:"softLight",defaultMessage:"Soft Light",description:"Blend Mode Soft Light"},difference:{id:"difference",defaultMessage:"Difference",description:"Blend Mode Difference"},exclusion:{id:"exclusion",defaultMessage:"Exclusion",description:"Blend Mode Exclusion"},hue:{id:"hue",defaultMessage:"Hue",description:"Blend Mode Hue"},saturation:{id:"saturation",defaultMessage:"Saturation",description:"Blend Mode Saturation"},color:{id:"color",defaultMessage:"Color",description:"Blend Mode Color"},luminosity:{id:"luminosity",defaultMessage:"Luminosity",description:"Blend Mode Luminosity"}}),fp=T.memo((function(e){const t=(0,fi.R9)((t=>{const{annotation:n,isEditing:o,dispatch:r,variantAnnotationPresetID:i,canEditAnnotationCP:a}=e;if(a)if(n.rects.size>0&&o)r((0,Qt.gX)(t)),r((0,En.d5)()),r((0,je.vR)());else{const o=i||fe.hD.get(n.constructor);e.updateAnnotation(t,o)}})),{position:n,annotation:o,expandedGroup:r,btnFocusRefIfFocusedGroup:i,btnFocusRefIfFocusedItem:a,canDeleteSelectedAnnotationCP:s,lastToolbarActionUsedKeyboard:l,annotationToolbarItems:c}=e,{formatMessage:u}=e.intl,d=mt.Ei.TEXT_MARKUP_COLOR_PRESETS,p=mt.Ei.HIGHLIGHT_COLOR_PRESETS,f=o instanceof j.FV?p:d,h=[{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(sp,{className:"PSPDFKit-Text-Markup-Annotation-Toolbar-Color",accessibilityLabel:u(Ke.Z.color),colorPresets:f,activeColor:o.color,onClick:e=>t({color:e}),innerRef:i("color",!r),lastToolbarActionUsedKeyboard:l}))),title:u(Ke.Z.color),group:"color",type:"color",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Color")},{node:T.createElement(Td.OpacityComponent,{intl:e.intl,type:"Text-Markup",styles:Bd(),annotation:o,updateAnnotation:e=>t(e),caretDirection:"bottom"===n?"up":"down",innerRef:i("opacity")}),title:u(Ke.Z.opacity),group:"opacity",type:"opacity",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(cp,{value:o.blendMode,className:"PSPDFKit-Text-Markup-Annotation-Toolbar-Blend-Mode",onChange:e=>t({blendMode:e}),caretDirection:"bottom"===n?"up":"down",frameWindow:e.frameWindow,ref:i("blendMode")}))),title:u(Ke.Z.blendMode),group:"blendMode",type:"blend-mode",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-BlendMode")},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(c),title:u(Ke.Z.delete),className:F()("PSPDFKit-Text-Markup-Annotation-Toolbar-Button-Delete",Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!s}),onPress:s?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex||!!r||e.isEditing},{node:T.createElement(jd,{intl:e.intl,isEditing:e.isEditing,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),type:"annotation-note",hidden:!e.showAnnotationNotes||e.isEditing}],m={className:Bd().button,presentational:e.viewportWidth>=Je.GI,disabled:!!r};return T.createElement("div",{className:F()("PSPDFKit-Text-Markup-Annotation-Toolbar",Bd().content)},T.createElement(qd,{annotationToolbarItems:c,builtInItems:h,btnFocusRefIfFocusedItem:a,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:m,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:r,onGroupTransitionEnded:e.onGroupTransitionEnded,position:n,typeMap:{color:"border-color"}}))}));const hp=fp;var mp=n(38623),gp=n(47751),vp=n(61252),yp=n.n(vp),bp=n(70190),wp=n.n(bp);const Sp=e=>{let{item:t,state:n,itemComponentProps:o,ref:r}=e;return T.createElement(Ep,{item:t,state:n,fontFamily:void 0,itemComponentProps:o,ref:r})},Ep=T.forwardRef(((e,t)=>{var n;let{item:o,state:r,fontFamily:i,itemComponentProps:a,width:s}=e;return T.createElement(_e.Z,(0,De.Z)({is:"div",className:F()(ud().item,yp().item,{[ud().isSelected]:(null==r?void 0:r.includes("selected"))||(null==r?void 0:r.includes("focused"))}),name:null!==(n=null==o?void 0:o.value)&&void 0!==n?n:null==o?void 0:o.label,style:{fontFamily:i,width:s},ref:t},a),null!=r&&r.includes("selected")?T.createElement(Ye.Z,{src:wp(),className:yp().icon}):T.createElement("span",{className:yp().icon}),null==o?void 0:o.label)})),Pp=e=>function(t){var n;let{btnComponentProps:o,selectedItem:r,caretDirection:i,disabled:a,isOpen:s}=t;const l=T.useRef(),{formatMessage:c}=(0,Re.YB)();T.useLayoutEffect((()=>{l.current&&(l.current.value=(null==r?void 0:r.label)||"")}),[r]);const u=T.useCallback((()=>{var t;const n=null===(t=l.current)||void 0===t?void 0:t.value;if(n&&l.current&&n!==(null==r?void 0:r.label)){const t=parseFloat(n);var o,i,a;if(Number.isNaN(t))l.current.value=null!==(o=null==r?void 0:r.label)&&void 0!==o?o:"";else e({selectedItem:{label:null!==(i=t.toString())&&void 0!==i?i:"",value:null!==(a=t.toString())&&void 0!==a?a:""},preventFocusShift:!1})}}),[null==r?void 0:r.label]);return T.createElement("div",{className:F()(yp().wrapper)},T.createElement(Nd,{accessibilityLabel:c(Ke.Z.fontSize),className:yp().textInput,onBlur:u,onKeyDown:t=>{var n,o;const r=null!==(n=null===(o=l.current)||void 0===o?void 0:o.value)&&void 0!==n?n:"0";if("ArrowUp"===t.key){var i,a;const t=parseFloat(r)+1;e({selectedItem:{label:null!==(i=t.toString())&&void 0!==i?i:"",value:null!==(a=t.toString())&&void 0!==a?a:""},preventFocusShift:!0})}else if("ArrowDown"===t.key){var s,c;const t=Math.max(0,parseFloat(r)-1);e({selectedItem:{label:null!==(s=t.toString())&&void 0!==s?s:"",value:null!==(c=t.toString())&&void 0!==c?c:""},preventFocusShift:!0})}else"Enter"===t.key&&(t.preventDefault(),u())},onFocus:()=>{tt.G6&&setTimeout((()=>{l.current&&l.current.setSelectionRange(0,l.current.value.length)}),100)},name:"fontSize",styles:{input:F()({[yp().inputDisabled]:a},yp().textInputField)},disabled:a,ref:l,autoFocus:!1}),T.createElement("button",(0,De.Z)({},o,{ref:o.ref,key:null!==(n=null==r?void 0:r.value)&&void 0!==n?n:null==r?void 0:r.label,className:F()("PSPDFKit-Input-Dropdown-Button",ud().selectBox,yp().arrowDropdownBtn,yp().fontSizeDropdownBtn,{[yp().inputDisabled]:a,[ud().disabled]:a}),disabled:a}),T.createElement(ue.TX,null,c(Ke.Z.fontSize)),T.createElement("div",null,(0,Ze.Z)({type:`caret-${i}`,style:{width:12,height:12,flexBasis:12},className:F()(ud().dropdownIcon,{[ud().isOpen]:s})}))))},xp=function(e){const{disabled:t=!1}=e;return T.createElement(rd.Z,{frameWindow:e.frameWindow,items:e.items,value:e.value,className:e.className,maxCols:1,isActive:!1,caretDirection:e.caretDirection,disabled:t,menuClassName:F()(e.menuClass,yp().dropdownMenu),ButtonComponent:Pp(e.onSelect),ItemComponent:Sp,onSelect:(t,n)=>{e.onSelect({selectedItem:n,preventFocusShift:!1})},menuPositionOffsets:{top:-1}})},Dp=T.forwardRef((function(e,t){var o,r;const{caretDirection:i,onChange:a,frameWindow:s,intl:l,styles:c,fontSizes:u,fontFamilyItems:d,isBold:p=!1,isItalic:f=!1,isUnderline:h=!1,currentFontFamily:m,currentFontSize:g,currentHorizontalAlign:v,currentVerticalAlign:y,showAlignmentOptions:b,showFontStyleOptions:w,disabled:S=!1,showUnderline:E=!1}=e,{formatMessage:P}=l,x=T.useCallback(Ap(150,i,c,S,c.fontFamily),[i,c,S]),D=u.map((e=>({label:e.toString(),value:e.toString(),disabled:!1}))),C=d.map((e=>{var t,n;return T.createElement("option",{key:null!==(t=e.value)&&void 0!==t?t:e.label,value:null!==(n=e.value)&&void 0!==n?n:e.label,disabled:e.disabled},e.label)}));return T.createElement("div",{className:c.controlWrapper},T.createElement("div",{className:F()(c.control,c.textFormatControls)},T.createElement("div",{className:F()(c.fontFamilyNativeFlexbox)},T.createElement("div",{className:c.nativeDropdown},T.createElement("select",{"aria-label":P(Ke.Z.font),className:"PSPDFKit-Input-Dropdown-Select",value:null!=m?m:"",onChange:e=>{void 0!==e.target.value&&a({modification:{font:e.target.value}})},ref:t,disabled:S},C,d.some((e=>e.value===m))?null:T.createElement("option",{style:{display:"none"}},m)))),T.createElement(rd.Z,{items:d,value:m?{label:m,value:m}:null,accessibilityLabel:P(Ke.Z.font),discreteDropdown:!1,isActive:!1,caretDirection:i,className:F()(e.fontFamilyClasses,c.fontFamilySelect),menuClassName:F()(c.dropdownMenu,e.fontFamilyMenuClasses),ButtonComponent:x,ItemComponent:kp,onSelect:(e,t)=>{null!=t.value&&a({modification:{font:t.value}})},frameWindow:s,disabled:S}),T.createElement(xp,{items:D,value:{label:g?g.toString():"",value:(null!=g?g:"").toString()||""},frameWindow:s,className:F()(c.fontSizeSelect,e.fontSizeClasses),menuClass:F()(e.fontSizeMenuClasses),caretDirection:i,disabled:S,onSelect:e=>{let{selectedItem:t,preventFocusShift:n}=e;null!=t.value&&a({modification:{fontSize:Number(t.value)},preventFocusShift:n})}}),w?T.createElement(T.Fragment,null,T.createElement(ue.zx,{className:F()(c.fontStyleBtn,c.fontStyleBtnBorderless,{[c.activeFontStyleBtn]:p}),style:{marginRight:8},title:P(Ke.Z.bold),onClick:()=>{a({modification:{bold:!p}})},disabled:S,"aria-pressed":p},T.createElement(Ye.Z,{src:n(99604)}),T.createElement(ue.TX,null,P(Ke.Z.bold))),T.createElement(ue.zx,{className:F()(c.fontStyleBtn,c.fontStyleBtnBorderless,{[c.activeFontStyleBtn]:f}),onClick:()=>{a({modification:{italic:!f}})},disabled:S,title:P(Ke.Z.italic),"aria-pressed":f},T.createElement(Ye.Z,{src:n(99082)}),T.createElement(ue.TX,null,P(Ke.Z.italic))),E&&T.createElement(ue.zx,{className:F()(c.fontStyleBtn,c.fontStyleBtnBorderless,{[c.activeFontStyleBtn]:h}),style:{marginLeft:8},onClick:()=>{a({modification:{underline:!h}})},disabled:S,title:P(Ke.Z.underline),"aria-pressed":h},T.createElement(Ye.Z,{src:n(80394)}),T.createElement(ue.TX,null,P(Ke.Z.underline)))):null,b?T.createElement(T.Fragment,null,T.createElement("span",{className:c.radioGroupWrapper},T.createElement(ue.Ee,{inputName:"horizontalAlign",label:P(Ke.Z.horizontalAlignment),selectedOption:null!=v?v:"",labelClassNamePrefix:null!==(o=e.horizontalAlignClasses)&&void 0!==o?o:"",options:["left","center","right"].map((e=>({value:e,label:P(Ke.Z[`alignment${(0,qn.kC)(e)}`]),iconPath:n(58758)(`./text-align-horizontal-${e}.svg`)}))),onChange:e=>a({modification:{horizontalAlign:e}}),disabled:S})),T.createElement(ue.Ee,{inputName:"verticalAlign",label:P(Ke.Z.verticalAlignment),selectedOption:null!=y?y:"",labelClassNamePrefix:null!==(r=e.verticalAlignClasses)&&void 0!==r?r:"",options:["top","center","bottom"].map((e=>({value:e,label:P(Ke.Z["center"===e?"alignmentCenter":e]),iconPath:n(29712)(`./text-align-vertical-${e}.svg`)}))),onChange:e=>a({modification:{verticalAlign:e}}),disabled:S})):null))})),Cp=T.forwardRef(((e,t)=>{var n;let{item:o,state:r,fontFamily:i,itemComponentProps:a,width:s}=e;return T.createElement(_e.Z,(0,De.Z)({is:"div",className:F()(ud().item,{[ud().isSelected]:(null==r?void 0:r.includes("selected"))||(null==r?void 0:r.includes("focused"))}),name:null!==(n=null==o?void 0:o.value)&&void 0!==n?n:null==o?void 0:o.label,style:{fontFamily:i,width:s},ref:t},a),null==o?void 0:o.label)})),kp=e=>{let{item:t,state:n,itemComponentProps:o}=e;return T.createElement(Cp,{item:t,state:n,fontFamily:null==t?void 0:t.label,itemComponentProps:o})},Ap=(e,t,n,o,r)=>i=>{var a;let{btnComponentProps:s,selectedItem:l}=i;return T.createElement("button",(0,De.Z)({},s,{ref:s.ref,key:null!==(a=null==l?void 0:l.value)&&void 0!==a?a:null==l?void 0:l.label,className:F()("PSPDFKit-Input-Dropdown-Button",ud().selectBox,n.selectBox,{[ad().isDisabled]:o,[n.controlIsDisabled]:o,[ud().disabled]:o}),style:{width:e},disabled:o}),T.createElement("span",{className:r},null==l?void 0:l.label),T.createElement("div",null,(0,Ze.Z)({type:`caret-${t}`,style:{width:12,height:12,flexBasis:12},className:F()(ud().dropdownIcon)})))};var Op=n(56939),Tp=n.n(Op);function Ip(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Fp(e){for(var t=1;te-t)):d,h=mp.vt.toArray().map((e=>({label:e,value:e}))),m=h.concat(c.toArray().map((e=>({label:e,value:e}))).filter((e=>!h.some((t=>t.value===e.value)))));if(!mp.vt.has(n.font)&&!c.has(n.font)&&""!==n.font.trim()){const e=u(Ke.Z.fontFamilyUnsupported,{arg0:n.font});m.push({label:e,value:e,disabled:!0})}return T.createElement(Dp,{onChange:e=>{let{modification:t}=e;return r(t)},caretDirection:o,frameWindow:i,ref:t,intl:a,styles:Fp(Fp({},s),{},{fontStyleBtn:Tp().fontStyleBtn,fontStyleBtnBorderless:Tp().fontStyleBtnBorderless,activeFontStyleBtn:Tp().activeFontStyleBtn}),fontSizes:f,fontFamilyItems:m,showAlignmentOptions:!0,showFontStyleOptions:l,showUnderline:l,isBold:e.selectedIsBold,isItalic:e.selectedIsItalic,isUnderline:e.selectedIsUnderline,currentFontFamily:n.font,currentFontSize:p,currentHorizontalAlign:n.horizontalAlign,currentVerticalAlign:n.verticalAlign,fontFamilyClasses:"PSPDFKit-Text-Annotation-Toolbar-Font-Family",fontSizeClasses:"PSPDFKit-Text-Annotation-Toolbar-Font-Size",horizontalAlignClasses:"PSPDFKit-Text-Annotation-Toolbar-Alignment",verticalAlignClasses:"PSPDFKit-Text-Annotation-Toolbar-Vertical-Alignment",inlineStyleClasses:"PSPDFKit-Text-Annotation-Toolbar-Inline-Style"})}));function _p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Rp(e){for(var t=1;t{if(!e.canEditAnnotationCP)return;let n=e.annotation.merge(t);if((0,J.Vc)(n))e.updateAnnotation(t);else if(e.selectedAnnotationPageSize&&(t.fontSize||t.font||t.text&&"xhtml"===t.text.format)){const{rotation:o}=n;let r=(0,ot.h4)(n);const i=r.boundingBox.getCenter();r=(0,vt.Zv)(r.set("rotation",0),e.selectedAnnotationPageSize,e.zoomLevel),r=(0,vt.XA)(r,e.zoomLevel);const a=new j.E9({x:r.boundingBox.getCenter().x-i.x,y:r.boundingBox.getCenter().y-i.y}),s=a.rotate(o),l=new j.E9({x:s.x-a.x,y:s.y-a.y});r=r.update("boundingBox",(e=>null==e?void 0:e.translate(l))),n=(0,ot.az)(r.set("rotation",o)),e.updateAnnotation(Bp(Bp({},t),{},{isFitting:n.isFitting,boundingBox:n.boundingBox}))}else{const{isFitting:o}=(0,vt.XA)((0,ot.h4)(n).set("rotation",0),e.zoomLevel);e.updateAnnotation(Bp(Bp({},t),{},{isFitting:o}))}})),{activeTextStyle:i,updateAnnotationOrEditorText:s,selectedIsUnderline:l,selectedIsBold:c,selectedIsItalic:u}=function(e){let{editor:t,frameWindow:n,updateAnnotation:o,text:r,isRichText:i}=e;const[s,l]=(0,T.useState)(null),[c,u]=(0,T.useState)(!1),[d,p]=(0,T.useState)(!1),[f,h]=(0,T.useState)(!1),m=(0,T.useCallback)((()=>{t&&(u(ue.ri.isMarkActive(t,"bold")),p(ue.ri.isMarkActive(t,"italic")),h(ue.ri.isMarkActive(t,"underline")))}),[t]),g=(0,T.useCallback)((()=>{if(!t||!i)return;const e=(0,qn.BK)(ue.ri.getSelectedNodesColor(t,"fontColor")),n=(0,qn.BK)(ue.ri.getSelectedNodesColor(t,"backgroundColor"));l({fontColor:e?j.Il.fromHex(e):Np,backgroundColor:n?j.Il.fromHex(n):null}),m()}),[t,m,i]);t&&(t.onSelectionChange=g,t.onValueChange=()=>{m(),g()}),(0,T.useEffect)((()=>{var e;if(i&&t)return null===(e=n.document)||void 0===e||e.addEventListener("keydown",o),()=>{var e;null===(e=n.document)||void 0===e||e.removeEventListener("keydown",o)};function o(e){t&&(!e.ctrlKey&&!e.metaKey||"u"!==e.key&&"i"!==e.key&&"b"!==e.key||m())}}),[t,n,i,m]);const v=(0,T.useCallback)((e=>{const i=new Map(Object.entries(e)),s=i.has("fontColor")||i.has("backgroundColor"),c=i.has("bold")||i.has("italic")||i.has("underline");if(s){const i=e.fontColor?"fontColor":"backgroundColor";var d,f;if(ue.ri.isRangeSelected(t))ue.ri.applyStyle(t,i,!e[i]||null!==(d=e[i])&&void 0!==d&&d.equals(j.Il.TRANSPARENT)?null:e[i].toHex()),o({text:{format:"xhtml",value:ue.ri.serialize(null==t?void 0:t.children[0])}}),l((t=>Rp(Rp({},t),{},{[i]:e[i]}))),null===(f=n.getSelection())||void 0===f||f.removeAllRanges();else if("fontColor"===i){const t=ue.ri.setStyleOrToggleFormat(r,i,e[i].toHex());o({text:{format:"xhtml",value:t},borderColor:e[i]})}else l({backgroundColor:e.backgroundColor}),o(e)}else if(c){const n=Object.keys(e)[0];if((0,a.kG)(t,"Editor is not defined"),ue.ri.isRangeSelected(t)){switch(ue.ri.toggleMark(t,n),n){case"bold":u(e.bold);break;case"italic":p(e.italic);break;case"underline":h(e.underline)}o({text:{format:"xhtml",value:ue.ri.serialize(null==t?void 0:t.children[0])}})}else{const e=ue.ri.setStyleOrToggleFormat(r,n);o({text:{format:"xhtml",value:e}})}}else o(e)}),[o,r,t,n]);if(i){if(t)return{activeTextStyle:s,updateAnnotationOrEditorText:v,selectedIsBold:c,selectedIsItalic:d,selectedIsUnderline:f};{const{fontColor:e,isUnderlined:t,isItalic:n,isBold:o}=ue.ri.getComputedStyleAll(r);return{activeTextStyle:{fontColor:e?j.Il.fromHex(e):void 0,backgroundColor:null==s?void 0:s.backgroundColor},updateAnnotationOrEditorText:v,selectedIsBold:o,selectedIsItalic:n,selectedIsUnderline:t}}}return{updateAnnotationOrEditorText:o}}({editor:e.richTextEditorRef,frameWindow:e.frameWindow,updateAnnotation:r,text:(null===(t=e.annotation.text)||void 0===t?void 0:t.value)||"",isRichText:o}),{annotation:d,position:p,intl:f,expandedGroup:h,btnFocusRefIfFocusedGroup:m,canDeleteSelectedAnnotationCP:g,keepSelectedTool:v,interactionMode:y,annotationToolbarColorPresets:b}=e,{formatMessage:w}=f,S="bottom"===p?"up":"down",E={onChange:s,annotation:d,styles:Bd(),intl:f,caretDirection:S},P=v&&y===x.A.TEXT,D=[{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(Fd.Z,(0,De.Z)({},E,{record:o?Bp(Bp({},i),{},{opacity:d.opacity}):d,colorProperty:"fontColor",className:"PSPDFKit-Text-Annotation-Toolbar-Font-Color",removeTransparent:!0,frameWindow:e.frameWindow,accessibilityLabel:w(Ke.Z.color),innerRef:m("color"),annotationToolbarColorPresets:b})))),title:w(Ke.Z.color),type:"color",group:"color",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-TextColor")},{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(Fd.Z,(0,De.Z)({},E,{record:o?Bp(Bp({},i),{},{opacity:d.opacity},!e.richTextEditorRef&&{backgroundColor:d.backgroundColor}):d,colorProperty:"backgroundColor",className:"PSPDFKit-Text-Annotation-Toolbar-Background-Color",frameWindow:e.frameWindow,accessibilityLabel:w(Ke.Z.fillColor),innerRef:m("backgroundColor"),annotationToolbarColorPresets:b})))),title:w(Ke.Z.fillColor),type:"background-color",group:"backgroundColor",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-FillColor")},{node:T.createElement(Td.OpacityComponent,{intl:e.intl,type:"Text",styles:Bd(),annotation:d,updateAnnotation:r,caretDirection:S,innerRef:m("opacity")}),title:w(Ke.Z.opacity),type:"opacity",group:"opacity",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:T.createElement(Mp,(0,De.Z)({},E,{frameWindow:e.frameWindow,ref:m("font"),selectedIsBold:c,selectedIsItalic:u,selectedIsUnderline:l,showInlineFontStyles:o,customFontsReadableNames:e.customFontsReadableNames})),title:w(Ke.Z.font),type:"font",group:"font",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Font")},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(e.annotationToolbarItems),title:w(Ke.Z.delete),className:F()("PSPDFKit-Text-Annotation-Toolbar-Button-Delete",Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!g}),onPress:g?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:P||null===e.annotation.pageIndex||!!h,disabled:!e.canDeleteSelectedAnnotationCP}],C={className:Bd().button,presentational:e.viewportWidth>Je.GI,disabled:!!h};return T.createElement("div",{ref:n,className:F()("PSPDFKit-Text-Annotation-Toolbar",Bd().content)},T.createElement(qd,{annotationToolbarItems:e.annotationToolbarItems,builtInItems:D,btnFocusRefIfFocusedItem:e.btnFocusRefIfFocusedItem,onGroupExpansion:e.onGroupExpansion,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:e.expandedGroup,builtInToolbarProps:C,onGroupTransitionEnded:e.onGroupTransitionEnded,position:e.position,typeMap:{color:"text-color","background-color":"fill-color"}}))}));const zp=jp,Kp=T.forwardRef((function(e,t){const{annotation:n,updateAnnotation:o,intl:r}=e,{formatMessage:i}=r,[a,s]=T.useState(!1),l=T.useCallback((e=>{"Tab"===e.key&&s(!0)}),[s]),c=T.useCallback((()=>{s(!1)}),[s]);return T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:`${Bd().control} PSPDFKit-Note-Annotation-Toolbar-Icons`,role:"radiogroup","aria-label":i(Ke.Z.icon),onKeyUp:l,onPointerUp:c,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||s(!1)}},Object.keys(en.Zi).map(((e,r)=>{const s=en.Y4[e],l=(0,$.Oe)(s),c=n.icon===e,u=F()(ld().root,Bd().noteIconLabel,Bd().button,Bd().icon,"PSPDFKit-Tool-Button",c&&"PSPDFKit-Tool-Button-active",`PSPDFKit-Note-Annotation-Icon-${l}`,{[Bd().isActive]:c,[Bd().focusRing]:c&&a});return T.createElement("label",{"aria-label":i(Zp[`icon${(0,qn.kC)(s)}`]),className:u,key:`NoteAnnotationToolbarIcon-${e}`},T.createElement(Ze.Z,{type:`note/toolbar/${s}`}),T.createElement(ue.TX,{tag:"input",type:"radio",name:Bd().radioInput,value:r,checked:c,onChange:t=>{t.target.checked&&o({icon:e})},ref:c&&t?t:void 0}))}))))})),Zp=(0,Re.vU)({iconRightPointer:{id:"iconRightPointer",defaultMessage:"Right Pointer",description:"Icon Right Pointer"},iconRightArrow:{id:"iconRightArrow",defaultMessage:"Right Arrow",description:"Icon Right Arrow"},iconCheck:{id:"iconCheck",defaultMessage:"Checkmark",description:"Icon Checkmark"},iconCircle:{id:"iconCircle",defaultMessage:"Circle",description:"Icon Circle"},iconCross:{id:"iconCross",defaultMessage:"Cross",description:"Icon Cross"},iconInsert:{id:"iconInsert",defaultMessage:"Insert Text",description:"Icon Insert Text"},iconNewParagraph:{id:"iconNewParagraph",defaultMessage:"New Paragraph",description:"Icon New Paragraph"},iconNote:{id:"iconNote",defaultMessage:"Text Note",description:"Icon Text Note"},iconComment:{id:"iconComment",defaultMessage:"Comment",description:"Icon Comment"},iconParagraph:{id:"iconParagraph",defaultMessage:"Paragraph",description:"Icon Paragraph"},iconHelp:{id:"iconHelp",defaultMessage:"Help",description:"Icon Help"},iconStar:{id:"iconStar",defaultMessage:"Star",description:"Icon Star"},iconKey:{id:"iconKey",defaultMessage:"Key",description:"Icon Key"}}),Up=T.memo((function(e){let{annotation:t,intl:n,updateAnnotation:o,isAnnotationReadOnly:r,deleteAnnotation:i,position:a,viewportWidth:s,expandedGroup:l,btnFocusRefIfFocusedGroup:c,btnFocusRefIfFocusedItem:u,canEditAnnotationCP:d,canDeleteSelectedAnnotationCP:p,keepSelectedTool:f,interactionMode:h,annotationToolbarItems:m,onGroupExpansion:g,hasDesktopLayout:v,onGroupTransitionEnded:y}=e;const{formatMessage:b}=n,w=mt.Ei.NOTE_COLOR_PRESETS,S=r(t)||t instanceof li.FN,E=null!==t.pageIndex&&!r(t),P=f&&h===x.A.NOTE,D=[{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(sp,{className:"PSPDFKit-Note-Annotation-Toolbar-Color",accessibilityLabel:b(Ke.Z.color),colorPresets:w,activeColor:t.color,onClick:e=>o({color:e}),innerRef:c("color")}))),title:b(Ke.Z.color),className:`${Bd().formGroup} PSPDFKit-Toolbox PSPDFKit-Toolbox-FillColor`,hidden:S,disabled:!d,onPress:()=>{},type:"color",group:"color",hideSeparator:!0},{node:T.createElement(Kp,{annotation:t,updateAnnotation:o,intl:n,ref:c("note")}),title:b(Ke.Z.icon),hidden:S,onPress:()=>{},disabled:!d,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-NoteIcon"),type:"note-icon",group:"note"},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(m),title:b(Ke.Z.delete),className:F()("PSPDFKit-Note-Annotation-Toolbar-Button-Delete",Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!p}),onPress:p?()=>i():()=>{}}),disabled:!p,hidden:P||!(E&&"note"!==l&&"color"!==l),type:"delete",onPress:()=>{},className:""}];return T.createElement("div",{className:F()("PSPDFKit-Note-Annotation-Toolbar",Bd().content)},T.createElement(qd,{annotationToolbarItems:m,builtInItems:D,btnFocusRefIfFocusedItem:u,onGroupExpansion:g,builtInToolbarProps:e=>({className:F()(Bd().button,{[Bd().iconOnlyMobile]:"note-icon"===e.type}),presentational:s>Je.GI,disabled:!!l}),hasDesktopLayout:v,expandedGroup:l,onGroupTransitionEnded:y,position:a,typeMap:{"note-icon":"note",color:"fill-color"}}))}));const Vp=Up,Gp=["boundingBox"],Wp=T.memo((function(e){const t=(0,fi.R9)((t=>{const{annotation:n,isEditing:o,dispatch:i,canEditAnnotationCP:a}=e;if(a)if(n.lines.size>0&&o){const{boundingBox:e}=t,n=(0,r.Z)(t,Gp);i((0,Qt.gX)(n)),i((0,En.P4)())}else t.lineWidth&&n.lines.size>0&&(t.boundingBox=n.boundingBox.grow((t.lineWidth-n.lineWidth)/2)),e.updateAnnotation(t)})),{annotation:n,intl:o,position:i,isEditing:a,expandedGroup:s,canDeleteSelectedAnnotationCP:l,btnFocusRefIfFocusedGroup:c,lastToolbarActionUsedKeyboard:u,annotationToolbarItems:d,btnFocusRefIfFocusedItem:p}=e,{formatMessage:f}=o,h={onChange:t,record:n,styles:Bd(),intl:o,caretDirection:"bottom"===i?"up":"down",frameWindow:e.frameWindow},m=e.areOnlyElectronicSignaturesEnabled&&e.annotation.isSignature,g=[{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(Fd.Z,(0,De.Z)({},h,{className:"PSPDFKit-Ink-Annotation-Toolbar-Stroke-Color",colorProperty:"strokeColor",removeTransparent:!0,accessibilityLabel:f(Ke.Z.color),innerRef:c("color",!s),lastToolbarActionUsedKeyboard:u,annotationToolbarColorPresets:e.annotationToolbarColorPresets})))),title:f(Ke.Z.color),className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-StrokeColor"),hidden:m,disabled:!e.canEditAnnotationCP,type:"stroke-color",group:"color"},{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(Fd.Z,(0,De.Z)({},h,{accessibilityLabel:f(Ke.Z.fillColor),className:"PSPDFKit-Ink-Annotation-Toolbar-Background-Color",colorProperty:"backgroundColor",innerRef:c("backgroundColor"),annotationToolbarColorPresets:e.annotationToolbarColorPresets})))),title:f(Ke.Z.fillColor),className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-FillColor"),hidden:m,disabled:!e.canEditAnnotationCP,type:"fill-color",group:"backgroundColor"},{node:T.createElement(Td.OpacityComponent,{intl:e.intl,type:"Ink",styles:Bd(),annotation:n,updateAnnotation:t,caretDirection:"bottom"===i?"up":"down",innerRef:c("opacity")}),title:f(Ke.Z.opacity),className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity"),hidden:m,disabled:!e.canEditAnnotationCP,type:"opacity",group:"opacity"},{node:T.createElement(Td.StrokeWidthComponent,{intl:e.intl,type:"Ink",styles:Bd(),annotation:n,updateAnnotation:t,caretDirection:"bottom"===i?"up":"down",accessibilityLabel:f(Ke.Z.thickness),ref:c("lineWidth")}),title:f(Ke.Z.thickness),className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth"),hidden:m,disabled:!e.canEditAnnotationCP,type:"line-width",group:"lineWidth"},{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(cp,{value:n.blendMode,className:"PSPDFKit-Ink-Annotation-Toolbar-Blend-Mode",onChange:e=>t({blendMode:e}),caretDirection:"bottom"===i?"up":"down",frameWindow:e.frameWindow,ref:c("blendMode")}))),title:f(Ke.Z.blendMode),className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-BlendMode"),hidden:m,disabled:!e.canEditAnnotationCP,type:"blend-mode",group:"blendMode"},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(d),title:f(Ke.Z.delete),className:F()("PSPDFKit-Ink-Annotation-Toolbar-Button-Delete",Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!l}),onPress:l?()=>e.deleteAnnotation():()=>{}}),disabled:!l,hidden:!(null!=e.annotation.pageIndex&&!a),type:"delete"},{node:T.createElement(jd,{intl:o,isEditing:a,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),hidden:e.areOnlyElectronicSignaturesEnabled||!e.showAnnotationNotes||a,disabled:!e.canEditAnnotationCP,type:"annotation-note"}],v={className:Bd().button,presentational:e.viewportWidth>Je.GI,disabled:!!s};return T.createElement("div",{className:F()("PSPDFKit-Ink-Annotation-Toolbar",Bd().content)},T.createElement(qd,{annotationToolbarItems:d,builtInItems:g,btnFocusRefIfFocusedItem:p,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:v,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:s,onGroupTransitionEnded:e.onGroupTransitionEnded,position:i}))}));const qp=Wp;var Hp=n(34855),$p=n(63564);const Yp=function(e){const{intl:t,position:n,annotation:o,expandedGroup:r,btnFocusRefIfFocusedItem:i,annotationToolbarItems:a,hasDesktopLayout:s,btnFocusRefIfFocusedGroup:l,lastToolbarActionUsedKeyboard:c,name:u,canDeleteSelectedAnnotationCP:d}=e,p=(0,fi.R9)((t=>{const{annotation:n,canEditAnnotationCP:o}=e;o&&(t.strokeWidth&&(t.boundingBox=n.boundingBox.grow((t.strokeWidth-n.strokeWidth)/2)),e.updateAnnotation(t))})),f=o instanceof j.b3||o instanceof j.Xs?e.updateAnnotation:p,h=o instanceof j.o9||o instanceof j.om,{formatMessage:m}=t,g={updateAnnotation:f,annotation:o,styles:Bd(),intl:t,caretDirection:"bottom"===n?"up":"down"},v=[{node:T.createElement(Fd.Z,(0,De.Z)({},g,{record:e.annotation,colorProperty:"strokeColor",onChange:e.updateAnnotation,className:`PSPDFKit-${u}-Annotation-Toolbar-Stroke-Color`,removeTransparent:!0,frameWindow:e.frameWindow,accessibilityLabel:m(Ke.Z.color),innerRef:l("color",!r),lastToolbarActionUsedKeyboard:c,annotationToolbarColorPresets:e.annotationToolbarColorPresets})),title:m(Ke.Z.color),group:"color",type:"stroke-color",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox",{"PSPDFKit-Toolbox-BorderColor":!h,"PSPDFKit-Toolbox-StrokeColor":h})},{node:T.createElement(Fd.Z,(0,De.Z)({},g,{record:o,colorProperty:"fillColor",onChange:e.updateAnnotation,className:`PSPDFKit-${u}-Annotation-Toolbar-Fill-Color`,frameWindow:e.frameWindow,accessibilityLabel:m(Ke.Z.fillColor),innerRef:l("fillColor"),annotationToolbarColorPresets:e.annotationToolbarColorPresets})),title:m(Ke.Z.fillColor),group:"fillColor",type:"fill-color",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-FillColor")},{node:T.createElement(Td.OpacityComponent,(0,De.Z)({},g,{type:u,innerRef:l("opacity")})),title:m(Ke.Z.opacity),group:"opacity",type:"opacity",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:T.createElement(Td.StrokeWidthComponent,(0,De.Z)({},g,{type:u,accessibilityLabel:m(Ke.Z.thickness),ref:l("line-width")})),title:m(Ke.Z.thickness),group:"line-width",type:"line-width",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth")},...o instanceof j.o9||o instanceof j.om?[{node:T.createElement(Td.LineCapsDashArrayComponent,(0,De.Z)({},g,{frameWindow:e.frameWindow,innerRef:l("linecaps-dasharray")})),title:m(Ke.Z["linecaps-dasharray"]),group:"linecaps-dasharray",type:"linecaps-dasharray",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineCaps-DashArray")}]:[{node:T.createElement(Td.LineStyleComponent,(0,De.Z)({},g,{frameWindow:e.frameWindow,innerRef:l("linestyle")})),title:m(Ke.Z.linestyle),group:"linestyle",type:"line-style",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineStyle")}],{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(a),title:m(Ke.Z.delete),className:F()(`PSPDFKit-${u}-Annotation-Toolbar-Button-Delete`,Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!d}),onPress:d?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex||!!r},{node:T.createElement(jd,{intl:e.intl,isEditing:e.isEditing,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),type:"annotation-note",hidden:!e.showAnnotationNotes||e.isEditing}],y={className:Bd().button,presentational:e.viewportWidth>Je.GI,disabled:!!r},b={"line-style":"linestyle"};return o instanceof j.o9||o instanceof j.om||(b["stroke-color"]="border-color"),T.createElement("div",{className:F()(`PSPDFKit-${u}-Annotation-Toolbar`,Bd().content)},T.createElement(qd,{annotationToolbarItems:a,builtInItems:v,btnFocusRefIfFocusedItem:i,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:y,hasDesktopLayout:s,expandedGroup:r,onGroupTransitionEnded:e.onGroupTransitionEnded,position:n,typeMap:b}))},Xp=T.memo((function(e){const{formatMessage:t}=e.intl,n=[{node:T.createElement(Id.Z,{type:"widget_ccw",title:t(Ke.Z.rotateCounterclockwise),className:`PSPDFKit-Widget-Annotation-Toolbar-Button-Rotate PSPDFKit-Widget-Annotation-Toolbar-Button-Rotate-Counterclockwise ${Bd().button} ${Bd().rotateButton}`,onPress:()=>{e.selectedAnnotationPageSize&&e.updateAnnotation((0,J.eJ)(e.annotation,e.selectedAnnotationPageSize,J.z1.COUNTERCLOCKWISE))}}),type:"counterclockwise-rotation",disabled:!e.canEditAnnotationCP},{node:T.createElement(Id.Z,{type:"widget_cw",title:t(Ke.Z.rotateClockwise),className:`PSPDFKit-Widget-Annotation-Toolbar-Button-Rotate PSPDFKit-Widget-Toolbar-Button-Rotate-Clockwise ${Bd().button} ${Bd().rotateButton}`,onPress:()=>{e.selectedAnnotationPageSize&&e.updateAnnotation((0,J.eJ)(e.annotation,e.selectedAnnotationPageSize,J.z1.CLOCKWISE))}}),type:"clockwise-rotation",disabled:!e.canEditAnnotationCP},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(e.annotationToolbarItems),title:t(Ke.Z.delete),className:F()("PSPDFKit-Widget-Annotation-Toolbar-Button-Delete",Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!e.canDeleteSelectedAnnotationCP}),onPress:e.canDeleteSelectedAnnotationCP?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex}];return T.createElement("div",{className:`PSPDFKit-Widget-Annotation-Toolbar ${Bd().content}`},T.createElement(qd,{annotationToolbarItems:e.annotationToolbarItems,builtInItems:n,btnFocusRefIfFocusedItem:e.btnFocusRefIfFocusedItem,onGroupExpansion:e.onGroupExpansion,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:e.expandedGroup,onGroupTransitionEnded:e.onGroupTransitionEnded,position:e.position}))}));const Jp=T.memo((function(e){const t=(0,Re.YB)(),n=(0,fi.R9)((t=>{const{canEditAnnotationCP:n}=e;n&&e.updateAnnotation(t)})),{annotation:o,position:r,expandedGroup:i,canDeleteSelectedAnnotationCP:a,btnFocusRefIfFocusedGroup:s,annotationToolbarItems:l,btnFocusRefIfFocusedItem:c,lastToolbarActionUsedKeyboard:u}=e,d={onChange:n,record:o,styles:Bd(),intl:t,caretDirection:"bottom"===r?"up":"down",frameWindow:e.frameWindow},p=e.annotation.isSignature,f=[{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(Fd.Z,(0,De.Z)({},d,{className:"PSPDFKit-Link-Annotation-Toolbar-Border-Color",colorProperty:"borderColor",accessibilityLabel:t.formatMessage(Ke.Z.color),innerRef:s("color",!i),lastToolbarActionUsedKeyboard:u,annotationToolbarColorPresets:e.annotationToolbarColorPresets})))),title:t.formatMessage(Ke.Z.borderColor),className:F()(Bd().formGroup,"PSPDFKit-Toolbox","PSPDFKit-Toolbox-BorderColor"),hidden:p,disabled:!e.canEditAnnotationCP,type:"stroke-color",group:"color"},{node:T.createElement(Td.OpacityComponent,{intl:e.intl,type:"Link",styles:Bd(),annotation:o,updateAnnotation:n,caretDirection:"bottom"===r?"up":"down",innerRef:s("opacity")}),title:t.formatMessage(Ke.Z.opacity),className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity"),hidden:p,disabled:!e.canEditAnnotationCP,type:"opacity",group:"opacity"},{node:T.createElement(Td.StrokeWidthComponent,{intl:e.intl,type:"Link",styles:Bd(),annotation:o,updateAnnotation:n,caretDirection:"bottom"===r?"up":"down",accessibilityLabel:t.formatMessage(Ke.Z.thickness),ref:s("lineWidth")}),title:t.formatMessage(Ke.Z.thickness),className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth"),hidden:p,disabled:!e.canEditAnnotationCP,type:"line-width",group:"lineWidth"},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(l),title:t.formatMessage(Ke.Z.delete),className:F()("PSPDFKit-Link-Annotation-Toolbar-Button-Delete",Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!a}),onPress:a?()=>e.deleteAnnotation():()=>{}}),disabled:!a,hidden:null===e.annotation.pageIndex||!!i,type:"delete"}],h={className:Bd().button,presentational:e.viewportWidth>Je.GI,disabled:!!i};return T.createElement("div",{className:F()("PSPDFKit-Link-Annotation-Toolbar",Bd().content)},T.createElement(qd,{annotationToolbarItems:l,builtInItems:f,btnFocusRefIfFocusedItem:c,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:h,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:i,onGroupTransitionEnded:e.onGroupTransitionEnded,position:r}))}));const Qp=Jp;var ef=n(82405),tf=n(9599),nf=n(68073),of=n.n(nf),rf=n(94505);const af=function(e){const{intl:t,position:n,annotation:o,expandedGroup:r,btnFocusRefIfFocusedItem:i,annotationToolbarItems:a,hasDesktopLayout:s,btnFocusRefIfFocusedGroup:l,lastToolbarActionUsedKeyboard:c,canDeleteSelectedAnnotationCP:u,selectedAnnotations:d}=e,p=(0,A.I0)(),f=(0,A.v9)((e=>e.secondaryMeasurementUnit)),h=T.useMemo((()=>e.selectedAnnotations&&e.selectedAnnotations.size>1),[e.selectedAnnotations]),m=T.useMemo((()=>!!d&&(0,G.xA)(d)),[d]),g=T.useMemo((()=>(0,G.bs)(o)),[o]),v=(0,fi.R9)((t=>{const{annotation:n,canEditAnnotationCP:o}=e;if(o){if(t.strokeWidth){if(h&&d){const o=[];return d.forEach((e=>{o.push({boundingBox:e.boundingBox.grow((t.strokeWidth-n.strokeWidth)/2),strokeWidth:t.strokeWidth})})),void e.updateAnnotation(o)}t.boundingBox=n.boundingBox.grow((t.strokeWidth-n.strokeWidth)/2)}e.updateAnnotation(t)}})),y=o instanceof j.b3||o instanceof j.Xs?e.updateAnnotation:v,b=o instanceof j.o9||o instanceof j.om,{formatMessage:w}=t,S={updateAnnotation:y,annotation:o,styles:Bd(),intl:t,caretDirection:"bottom"===n?"up":"down"},E=G.Di.find((e=>e.title===g)),P=T.useMemo((()=>(0,G.Rw)(o,f)),[o,f]),x=[{node:T.createElement(Id.Z,{type:"back",title:w(Ke.Z.back),className:F()(`PSPDFKit-${g}-Annotation-Toolbar-Button-Back`,Bd().button,Bd().measurementBackButton),onPress:()=>{(0,A.dC)((()=>{p((0,je.fz)()),p((0,Qt.Ds)("measurement")),p((0,En.BR)())}))}}),type:"back"},{node:m?T.createElement(rf.Z,{key:w(Ke.Z.mixedMeasurements),type:"measure",title:w(Ke.Z.mixedMeasurements),className:F()(E.className,of().measurementValue,Bd().measurementToolbarButton,"PSPDFKit-Annotation-Toolbar-Measurement")},o&&null!=o&&o.note?T.createElement(T.Fragment,null,w(Ke.Z.mixedMeasurements)):null):T.createElement(rf.Z,{key:E.interactionMode,type:E.icon,title:w(Ke.Z[E.localeKey]),className:F()(E.className,of().measurementValue,Bd().measurementToolbarButton,"PSPDFKit-Annotation-Toolbar-Measurement")},o&&null!=o&&o.note?h?T.createElement(T.Fragment,null,E.title):T.createElement(T.Fragment,null,E.title,":"," ",T.createElement("b",null,o.note,P?` (${P.label})`:"")):null),title:w(Ke.Z[E.localeKey]),type:"measurementType",className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-MeasurementType")},{node:T.createElement(T.Fragment,null,T.createElement(rf.Z,{key:"scale",type:"scale",title:w(Fu.sY.measurementScale),className:F()(Bd().measurementToolbarButton)}),T.createElement(tf.ZP,{frameWindow:e.frameWindow,selectedAnnotation:o,onAnnotationScaleUpdate:e.updateAnnotation,selectedAnnotations:e.selectedAnnotations})),title:w(Fu.sY.measurementScale),type:"measurementScale",className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-MeasurementScale")},{node:T.createElement(Fd.Z,(0,De.Z)({},S,{record:e.annotation,colorProperty:"strokeColor",onChange:e.updateAnnotation,className:`PSPDFKit-${g}-Annotation-Toolbar-Stroke-Color`,frameWindow:e.frameWindow,accessibilityLabel:w(Ke.Z.color),innerRef:l("color",!r),lastToolbarActionUsedKeyboard:c,annotationToolbarColorPresets:e.annotationToolbarColorPresets})),title:w(Ke.Z.color),group:"color",type:"stroke-color",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox",{"PSPDFKit-Toolbox-BorderColor":!b,"PSPDFKit-Toolbox-StrokeColor":b})},{node:T.createElement(Td.OpacityComponent,(0,De.Z)({},S,{type:g,innerRef:l("opacity")})),title:w(Ke.Z.opacity),group:"opacity",type:"opacity",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:T.createElement(Td.StrokeWidthComponent,(0,De.Z)({},S,{type:g,accessibilityLabel:w(Ke.Z.thickness),ref:l("line-width")})),title:w(Ke.Z.thickness),group:"line-width",type:"line-width",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth")},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(a),title:w(Ke.Z.delete),className:F()(`PSPDFKit-${g}-Annotation-Toolbar-Button-Delete`,Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!u}),onPress:u?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex||!!r},{node:T.createElement(jd,{intl:e.intl,isEditing:e.isEditing,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP||h}),type:"annotation-note",hidden:!e.showAnnotationNotes||e.isEditing}],D={className:Bd().button,presentational:e.viewportWidth>Je.GI,disabled:!!r},C={"line-style":"linestyle"};return o instanceof j.o9||o instanceof j.om||(C["stroke-color"]="border-color"),T.createElement("div",{className:F()(`PSPDFKit-${g}-Annotation-Toolbar`,Bd().content,Bd().measurementToolbar)},T.createElement(qd,{annotationToolbarItems:a,builtInItems:x,btnFocusRefIfFocusedItem:i,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:D,hasDesktopLayout:s,expandedGroup:r,onGroupTransitionEnded:e.onGroupTransitionEnded,position:n,typeMap:C}))},sf=["text"];class lf extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"state",{showConfirmDelete:!1,expandedGroup:null,transitionFinished:!1,prevActiveGroup:null}),(0,o.Z)(this,"focusRef",T.createRef()),(0,o.Z)(this,"deleteAnnotation",(()=>{var e;const t=this.props.annotation,n=this.props.selectedAnnotations&&(null===(e=this.props.selectedAnnotations)||void 0===e?void 0:e.size)>1;t&&!n?this.props.dispatch((0,Qt.d8)((0,i.l4)([t.id]))):n&&this.props.selectedAnnotations&&this.props.dispatch((0,Qt.d8)(this.props.selectedAnnotations.map((e=>e.id))))})),(0,o.Z)(this,"handleEntered",(()=>{this.setState({transitionFinished:!0})})),(0,o.Z)(this,"handleGroupExpansion",(e=>{e?this.setState({prevActiveGroup:e,expandedGroup:e}):this.setState({expandedGroup:e,transitionFinished:!1})})),(0,o.Z)(this,"_handleKeyPress",(e=>{e.keyCode===Sr.zz&&this.state.expandedGroup&&this.handleGroupExpansion()})),(0,o.Z)(this,"updateAnnotation",((e,t,n)=>{if(!e||!this.props.canEditAnnotationCP)return;e=e.merge(t);const o={annotations:(0,i.aV)([e]),reason:u.f.PROPERTY_CHANGE};this.props.eventEmitter.emit("annotations.willChange",o),n&&this.props.dispatch((0,Qt.Ds)(n));const{text:a}=t,s=(0,r.Z)(t,sf);this.props.dispatch((0,Qt.gX)(s)),this.props.dispatch((0,Qt.FG)(e))})),(0,o.Z)(this,"updateSingleAnnotation",((e,t)=>{const n=this.props.annotation;this.updateAnnotation(n,e,t)})),(0,o.Z)(this,"updateAnnotations",((e,t)=>{const{selectedAnnotations:n}=this.props;n&&(null==n?void 0:n.size)>1&&(0,A.dC)((()=>{var n;null===(n=this.props.selectedAnnotations)||void 0===n||n.toList().forEach(((n,o)=>{Array.isArray(e)?this.updateAnnotation(n,e[o],t):this.updateAnnotation(n,e,t)}))}))})),(0,o.Z)(this,"onAnnotationNotePress",(()=>{const e=this.props.annotation;if(this.isActiveAnnotationNote())this.closeAnnotationNote();else if(e){const t=(0,li.Yu)(e);this.props.dispatch((0,je.mv)(t))}})),(0,o.Z)(this,"deleteAnnotationNote",(()=>{const e=this.props.annotation;e&&(this.props.dispatch((0,Qt.FG)(e.delete("note"))),this.closeAnnotationNote())})),(0,o.Z)(this,"closeAnnotationNote",(()=>{this.props.dispatch((0,je.mv)(null))})),(0,o.Z)(this,"_handleResize",(e=>{var t;this.props.dispatch((t=e.height,{type:te.A8G,height:t}))}))}isActiveAnnotationNote(){var e;const{activeAnnotationNote:t,annotation:n}=this.props;return Boolean(t&&n&&(null===(e=t.parentAnnotation)||void 0===e?void 0:e.id)===n.id)}defaultToolbarItems(){var e,t;const{annotation:n,annotationToolbarItems:o,viewportWidth:r}=this.props;if((0,a.kG)(n),!$p.qH.get(uf(n)))return(0,i.aV)();const s=r>Je.GI,l=null===(e=$p.qH.get(uf(n)))||void 0===e||null===(t=e.get(s?"desktop":"mobile"))||void 0===t?void 0:t.map((e=>({type:e})));if((0,a.kG)(l,`No default toolbar items found for annotation type: ${uf(n)}`),o){const e=o(n,{hasDesktopLayout:s,defaultAnnotationToolbarItems:l.toJS()});if(e)return e.forEach((e=>{(0,$p.gb)(e,uf(n))})),(0,i.aV)(e)}return l}renderContent(){var e,t=this;const{annotation:n,variantAnnotationPresetID:o,position:r,viewportWidth:i,frameWindow:s,intl:l,showAnnotationNotes:c,canEditAnnotationCP:u,canDeleteSelectedAnnotationCP:d,lastToolbarActionUsedKeyboard:p,interactionMode:f,keepSelectedTool:h,annotationToolbarColorPresets:m,richTextEditorRef:g,customFontsReadableNames:v,isCalibratingScale:y}=this.props;if(!n)return null;const b={deleteAnnotation:this.deleteAnnotation,updateAnnotation:this.props.selectedAnnotations&&(null===(e=this.props.selectedAnnotations)||void 0===e?void 0:e.size)>1?this.updateAnnotations:this.updateSingleAnnotation,intl:l,position:r,viewportWidth:i,onGroupTransitionEnded:this.handleEntered,onGroupExpansion:this.handleGroupExpansion,expandedGroup:this.state.expandedGroup,btnFocusRefIfFocusedGroup:function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,Hd.CN)(e,t.state.expandedGroup)||n&&null!==f&&i>Je.GI?t.focusRef:void 0},btnFocusRefIfFocusedItem:function(e,n){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,Hd.Kt)(e,n,t.state.prevActiveGroup)||o&&null!==f&&iJe.GI,customFontsReadableNames:this.props.customFontsReadableNames},w={onAnnotationNotePress:this.onAnnotationNotePress,showAnnotationNotes:c&&!n.isCommentThreadRoot,hasAnnotationNote:Boolean(n.note),isAnnotationNoteActive:this.isActiveAnnotationNote()};return n instanceof pe.Z?T.createElement(Jd,(0,De.Z)({},b,w,{annotation:n,isEditing:this.props.selectedAnnotationMode===Q.o.EDITING,dispatch:this.props.dispatch,keepSelectedTool:h})):n instanceof j.R1?T.createElement(Qp,(0,De.Z)({},b,w,{annotation:n})):n instanceof j.On?T.createElement(hp,(0,De.Z)({},b,w,{annotation:n,isEditing:this.props.selectedAnnotationMode===Q.o.EDITING,dispatch:this.props.dispatch,variantAnnotationPresetID:o})):n instanceof j.Zc?T.createElement(qp,(0,De.Z)({},b,w,{annotation:n,isEditing:this.props.selectedAnnotationMode===Q.o.EDITING,dispatch:this.props.dispatch,areOnlyElectronicSignaturesEnabled:this.props.areOnlyElectronicSignaturesEnabled})):n instanceof ef.Z&&n.isMeasurement()?y?null:T.createElement(af,(0,De.Z)({},b,w,{annotation:n,dispatch:this.props.dispatch,isEditing:this.props.selectedAnnotationMode===Q.o.EDITING,selectedAnnotations:this.props.selectedAnnotations})):n instanceof j.o9?T.createElement(Yp,(0,De.Z)({},b,w,{annotation:n,isEditing:this.props.selectedAnnotationMode===Q.o.EDITING,name:"Line"})):n instanceof j.b3?T.createElement(Yp,(0,De.Z)({},b,w,{annotation:n,isEditing:this.props.selectedAnnotationMode===Q.o.EDITING,name:"Rectangle"})):n instanceof j.Xs?T.createElement(Yp,(0,De.Z)({},b,w,{annotation:n,isEditing:this.props.selectedAnnotationMode===Q.o.EDITING,name:"Ellipse"})):n instanceof j.Hi?T.createElement(Yp,(0,De.Z)({},b,w,{annotation:n,isEditing:this.props.selectedAnnotationMode===Q.o.EDITING,name:"Polygon"})):n instanceof j.om?T.createElement(Yp,(0,De.Z)({},b,w,{annotation:n,isEditing:this.props.selectedAnnotationMode===Q.o.EDITING,name:"Polyline"})):n instanceof j.gd?T.createElement(zp,(0,De.Z)({},b,{annotation:n,richTextEditorRef:g,selectedAnnotationPageSize:this.props.selectedAnnotationPageSize,zoomLevel:this.props.zoomLevel||1,keepSelectedTool:h,interactionMode:f,customFontsReadableNames:v})):n instanceof j.Qi?T.createElement(Vp,(0,De.Z)({},b,{annotation:n,dispatch:this.props.dispatch,isAnnotationReadOnly:this.props.isAnnotationReadOnly,keepSelectedTool:h,interactionMode:f})):n instanceof j.sK?T.createElement(np,(0,De.Z)({},b,w,{annotation:n,areOnlyElectronicSignaturesEnabled:this.props.areOnlyElectronicSignaturesEnabled,selectedAnnotationPageSize:this.props.selectedAnnotationPageSize})):n instanceof j.GI?T.createElement(ep,(0,De.Z)({},b,w,{annotation:n})):n instanceof j.x_?T.createElement(Xp,(0,De.Z)({},b,{annotation:n,selectedAnnotationPageSize:this.props.selectedAnnotationPageSize})):n instanceof j.Jn?null:void(0,a.kG)(!1,"Annotation type not handled")}componentDidUpdate(e,t){const n=this.state.expandedGroup&&this.state.transitionFinished&&!t.transitionFinished,o=!this.state.expandedGroup&&t.expandedGroup&&this.state.prevActiveGroup;(n||o)&&this.focusRef.current&&this.focusRef.current.focus()}render(){return T.createElement("div",{className:F()("PSPDFKit-Annotation-Toolbar",Bd().root,{[Bd().stickToBottom]:"bottom"===this.props.position}),onKeyDown:this._handleKeyPress},T.createElement(Hp.Z,{onResize:this._handleResize}),this.renderContent())}}const cf=(0,Re.XN)(lf);function uf(e){var t;return"isMeasurement"in e&&null!==(t=e.isMeasurement)&&void 0!==t&&t.call(e)?"Measurement":$p.qH.get(e.constructor.readableName)?e.constructor.readableName:e instanceof j.On?j.On.readableName:e instanceof j.x_?j.x_.readableName:void new a.p2("AnnotationToolbarComponent: getReadableName: Annotation type not handled")}function df(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}const pf=T.memo((function(e){let{intl:t,dispatch:n,inkEraserCursorWidth:o,position:r,viewportWidth:i}=e;const{handleGroupExpansion:a,handleEntered:s,expandedGroup:l,prevActiveGroup:c,btnFocusRef:u}=(0,fi.Tp)(),[d,p]=T.useState(o);T.useEffect((()=>{n((0,Qt.GT)(d))}),[d,n]),T.useEffect((()=>{p(o)}),[o]);const f=T.useCallback((e=>{n((0,Qt.gX)({inkEraserWidth:e})),p(e)}),[n]),h=T.useCallback((e=>{e.keyCode===Sr.zz&&l&&a()}),[l,a]),{formatMessage:m}=t,g={lineWidth:{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(Dd.Z,{name:"lineWidth",accessibilityLabel:m(Ke.Z.size),className:"PSPDFKit-Ink-Eraser-Toolbar-Line-Width",value:d,valueLabel:e=>m(Ke.Z.numberInPt,{arg0:e.toFixed(0)}),min:1,max:40,step:1,onChange:f,caretDirection:"bottom"===r?"up":"down",innerRef:(0,Hd.CN)("lineWidth",l)?u:void 0}))),title:m(Ke.Z.thickness)}};return T.createElement("div",{className:F()("PSPDFKit-Annotation-Toolbar",Bd().root,{[Bd().stickToBottom]:"bottom"===r}),onMouseUp:df,onTouchEnd:df,onPointerUp:df,onKeyDown:h},T.createElement("div",{className:`\n PSPDFKit-Ink-Eraser-Toolbar\n ${Bd().content}\n\n `},T.createElement("div",{className:Bd().left},T.createElement("form",{className:Bd().form,onSubmit:jr.PF},T.createElement("div",{className:`${Bd().formGroup} PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth`},T.createElement(Id.Z,{type:"line-width",title:g.lineWidth.title,className:Bd().button,onPress:()=>a("lineWidth"),disabled:Boolean(l),presentational:i>Je.GI,ref:(0,Hd.Kt)("lineWidth",l,c)?u:void 0}),g.lineWidth.node))),T.createElement("div",{className:Bd().right},T.createElement(Zd.Z,{position:r,onClose:()=>a(null),isPrimary:!1,onEntered:s,accessibilityLabel:l?g[l].title:void 0},l?g[l].node:void 0))))})),ff=(0,Re.XN)(pf);var hf=n(50653),mf=n.n(hf);const gf=(0,A.$j)((e=>({connectionFailureReason:e.connectionFailureReason})),(()=>({})))((e=>T.createElement("div",{className:`PSPDFKit-Error ${mf().root}`},T.createElement("div",{className:`PSPDFKit-Error-Box ${mf().box}`},T.createElement("div",{className:mf().error},T.createElement(Ye.Z,{src:n(58054),className:mf().icon})),T.createElement("div",{className:`PSPDFKit-Error-Message ${mf().errorMessage}`},T.createElement("p",null,null!=e.connectionFailureReason?e.connectionFailureReason:T.createElement(T.Fragment,null,"An error occurred while loading the document. Try"," ",T.createElement("a",{href:"#",onClick:()=>window.location.reload()},"reloading the page"),".")))))));var vf,yf=n(28890),bf=n(55733),wf=n.n(bf);const Sf={timeout:300,classNames:{enter:wf().unlockEnter,enterActive:wf().unlockEnterActive,exit:wf().unlockExit,exitActive:wf().unlockExitActive}};class Ef extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"_modalRef",T.createRef()),(0,o.Z)(this,"_inputRef",T.createRef()),(0,o.Z)(this,"state",{value:"",isIncorrectPassword:!1,inputShowError:!1}),(0,o.Z)(this,"_onConfirm",(()=>{this.props.resolvePassword&&this.props.resolvePassword(this.state.value)})),(0,o.Z)(this,"_onChange",(e=>{const{value:t}=e.currentTarget;this.setState({value:t,inputShowError:!1})}))}componentDidUpdate(e){e.resolvePassword===this.props.resolvePassword||this.props.unlocked||(this._modalRef.current&&this._modalRef.current.shake(),this._inputRef.current&&this._inputRef.current.focus(),this.setState({isIncorrectPassword:!0,inputShowError:!0}))}render(){const{unlocked:e}=this.props,{isIncorrectPassword:t,inputShowError:o}=this.state,{formatMessage:r}=this.props.intl;return T.createElement(yf.Z,{role:"dialog",onEnter:this._onConfirm,background:"rgba(0,0,0,.1)",className:F()("PSPDFKit-Password-Dialog",wf().container),accessibilityLabel:r(Pf.password),accessibilityDescription:r(Pf.passwordAccessibilityDescription),innerRef:this._modalRef},T.createElement("div",{className:"PSPDFKit-Password-Dialog-Content"},T.createElement(yf.Z.Section,null,T.createElement(ue.M5,null,T.createElement("div",{className:wf().iconBox},T.createElement(Iu.Z,null,e?T.createElement(Tu.Z,(0,De.Z)({},Sf,{key:"unlock"}),T.createElement(Ye.Z,{src:n(96242),className:F()(wf().icon,wf()["icon-success"])})):T.createElement(Tu.Z,(0,De.Z)({},Sf,{key:"lock"}),T.createElement(Ye.Z,{src:n(65883),className:F()({[wf().icon]:!0,[wf()["icon-regular"]]:!t,[wf()["icon-error"]]:t})})))))),T.createElement(ue.z,null,r(Pf.passwordRequired)),T.createElement(yf.Z.Section,null,T.createElement(ue.xv,null,r(Pf.unlockDocumentDescription))),T.createElement(ue.oi,{name:"password",value:this.state.value,onChange:this._onChange,"aria-label":r(Pf.password),autoFocus:!0,selectTextOnFocus:!0,disabled:e,secureTextEntry:!0,error:o,success:e,ref:this._inputRef})),t&&!e?T.createElement(yf.Z.Section,{className:wf().alert,spaced:!0},r(Pf.incorrectPassword)):vf||(vf=T.createElement(yf.Z.Divider,null)),T.createElement("div",{className:F()("PSPDFKit-Password-Dialog-Buttons",wf().dialogButtons)},T.createElement(ue.hE,{className:"PSPDFKit-Confirm-Dialog-Buttons"},T.createElement(ue.zx,{onClick:this._onConfirm,primary:!0,className:"PSPDFKit-Confirm-Dialog-Button PSPDFKit-Confirm-Dialog-Button-Confirm"},r(Pf.unlock)))))}}const Pf=(0,Re.vU)({password:{id:"password",defaultMessage:"Password",description:"Text on a label"},passwordAccessibilityDescription:{id:"passwordAccessibilityDescription",defaultMessage:"Dialog prompting for a password to unlock the document",description:"Accessibility description for password modal"},passwordRequired:{id:"passwordRequired",defaultMessage:"Password Required",description:"Title of the modal to indicate a password is required"},unlockDocumentDescription:{id:"unlockDocumentDescription",defaultMessage:"You have to unlock this document to view it. Please enter the password in the field below.",description:"Label of the password prompt"},incorrectPassword:{id:"incorrectPassword",defaultMessage:"The password you entered isn't correct. Please try again.",description:"Error message when an incorrect password was entered"},unlock:{id:"unlock",defaultMessage:"Unlock",description:"Button to unlock a password protected PDF"}}),xf=(0,Re.XN)(Ef);var Df,Cf=n(61470),kf=n.n(Cf);class Af extends T.Component{render(){const{resolvePassword:e,children:t,intl:n}=this.props,{formatMessage:o}=n,{name:r,progress:i,reason:a}=this.props.connectionState;switch(r){case _s.F.CONNECTING:{var s;const e=a?null!==(s=Of[a])&&void 0!==s?s:a:null,t=e?o(e):"";return T.createElement("div",{className:kf().loader},T.createElement(ue.Ex,{message:t,progress:null!=i?i:0}))}case _s.F.CONNECTION_FAILED:return Df||(Df=T.createElement(gf,null));case _s.F.PASSWORD_REQUIRED:return T.createElement(xf,{resolvePassword:e,unlocked:this.props.isUnlockedViaModal});default:return void 0===t?null:t}}}const Of=(0,Re.vU)({loading:{id:"loading",defaultMessage:"Loading...",description:"Shown while the document is being fetched"}}),Tf=(0,Re.XN)(Af);var If=n(38858);const Ff=(0,jo.Z)(((e,t)=>(0,J.xp)(e,t).sort(Lf)));const Mf=(0,Eo.x)((function(e,t){let{page:n}=t;const o=!!e.reuseState,r=Ff(e.annotations,n);let s=(0,i.aV)(),l=null;switch(e.selectedAnnotationMode){case Q.o.SELECTED:s=r.filter((t=>e.selectedAnnotationIds.has(t.id)));break;case Q.o.EDITING:l=e.selectedAnnotationIds.map((t=>{const n=e.annotations.get(t);return(0,a.kG)(n),n})).first(),(l instanceof j.Qi||l instanceof j.Jn)&&l.pageIndex===n.pageIndex&&(s=(0,i.aV)([l]))}return{backend:e.backend,hoverAnnotationIds:e.hoverAnnotationIds,interactionMode:e.interactionMode,isAnnotationReadOnly:t=>(0,So.lV)(t,e),selectedAnnotationIds:e.selectedAnnotationIds,activeAnnotationNote:e.activeAnnotationNote,selectedTextOnEdit:e.selectedTextOnEdit,showAnnotations:e.showAnnotations,window:e.frameWindow,zoomLevel:e.viewportState.zoomLevel,rotation:e.viewportState.pagesRotation,onFocusAnnotation:Rf(e.eventEmitter),onBlurAnnotation:Nf(e.eventEmitter),formDesignMode:e.formDesignMode,annotations:r,isReloadingDocument:o,attachments:e.attachments,selectedAnnotations:s,editingAnnotation:l,showComments:(0,Ml.Y7)(e),showAnnotationNotes:e.showAnnotationNotes,eventEmitter:e.eventEmitter,isAPStreamRendered:e.isAPStreamRendered,pageInvalidAPStreams:e.invalidAPStreams.get(n.pageIndex),canEditAnnotationCP:t=>(0,oi.CM)(t,e),canDeleteAnnotationCP:t=>(0,oi.Kd)(t,e),keepSelectedTool:e.keepSelectedTool,scrollElement:e.scrollElement,focusedAnnotationIds:e.focusedAnnotationIds,inkEraserMode:e.inkEraserMode,viewportState:e.viewportState,page:n,enableRichText:e.enableRichText,multiAnnotationsUsingShortcut:e.multiAnnotationsUsingShortcut,isMultiSelectionEnabled:e.isMultiSelectionEnabled}}))((function(e){const{annotations:t,isReloadingDocument:n,showAnnotations:o,zoomLevel:r,rotation:s,attachments:l,backend:c,dispatch:u,hoverAnnotationIds:d,page:p,isAnnotationReadOnly:f,canEditAnnotationCP:h,canDeleteAnnotationCP:m,getScrollElement:g,onFocusAnnotation:v,onBlurAnnotation:y,formDesignMode:b,selectedTextOnEdit:w,selectedAnnotationIds:S,selectedAnnotations:E,activeAnnotationNote:P,interactionMode:C,editingAnnotation:k,window:A,children:O,showComments:I,showAnnotationNotes:F,eventEmitter:M,isAPStreamRendered:_,pageInvalidAPStreams:R=(0,i.l4)(),keepSelectedTool:N,focusedAnnotationIds:L,inkEraserMode:B,enableRichText:z,multiAnnotationsUsingShortcut:K,setGlobalCursor:Z,isMultiSelectionEnabled:U}=e;(0,a.kG)(R);const{pageSize:V,pageIndex:G}=p,W=T.useCallback((e=>!(e instanceof j.Jn||e instanceof j.On&&e.isCommentThreadRoot)||I),[I]),[q,H]=T.useState(null),[$,Y]=T.useState(void 0),[X,Q]=T.useState(!1),[te,ne]=T.useState(Array()),oe=T.useCallback((function(e){"number"==typeof e.clientX&&"number"==typeof e.clientY&&H(new j.E9({x:e.clientX,y:e.clientY}))}),[]),re=S.size>0,ie=t.filter((e=>e instanceof j.On&&(e.isCommentThreadRoot||!f(e)))),ae=T.useMemo((()=>t.filter((e=>e instanceof j.R1))),[t]),se=T.useMemo((()=>t.filter((e=>e instanceof j.Zc))),[t]),le=(0,fi.R9)((e=>e instanceof j.Zc&&(0,J.Fp)(e)&&!f(e)&&h(e)&&m(e))),ce=T.useMemo((()=>se.filter(le)),[se,le]);function ue(e){const t=S.has(e.id);return e instanceof pe.Z?t&&C!==x.A.REDACT_TEXT_HIGHLIGHTER:t}function de(e){ne(e?[...te,e]:[])}const fe=k instanceof j.Zc?k:null,he=k instanceof j.UX?k:null,me=k instanceof j.gd&&null===k.pageIndex?k:null,ge=k instanceof j.gd&&k.pageIndex===G?k:null,ve=k instanceof j.Qi&&null===k.pageIndex?k:null,ye=k instanceof j.Jn&&null===k.pageIndex?k:null,be=k instanceof pe.Z&&null===k.pageIndex?k:null,we=k instanceof j.R1&&null===k.pageIndex?k:null,[Se,Ee]=T.useState(!1),xe=T.useRef(!1),De=e=>Se&&(0,J.eD)(e)&&!(null!=R&&R.has(e.id))&&(0,J.U7)(e.boundingBox)&&_(e),Ce=T.useRef(r),ke=T.useRef(G),Ae=(0,fi.tm)();T.useEffect((()=>{if(n)return void(xe.current=!1);(r>Ce.current||ke.current!==G)&&(xe.current=!1,ke.current=G),Ce.current=r;const e=t.filter((e=>!(null!=R&&R.has(e.id))&&(0,J.eD)(e)&&(0,J.U7)(e.boundingBox)&&_(e)));e.size>0&&!xe.current&&(xe.current=!0,c.renderPageAnnotations(G,e,r*(0,Ft.L)()).then((()=>{Ae()&&Ee(!0)})))}),[G,r,_,c,R,t,Ee,Se,n,Ae]),T.useEffect((()=>{Se&&c.clearPageAPStreams(G,R)}),[Se,c,G,R]),T.useEffect((()=>{if(Se)return()=>{c.clearAllPageAPStreams(G)}}),[c,G,Se]);const Oe=(0,fi.jC)({zoomLevel:r}),Te=!(null==Oe||!Oe.zoomLevel)&&Oe.zoomLevel{Te&&c.clearAllPageAPStreams(G)}));const Ie=B===D.b.POINT?Bi:Ki,Fe=E.filter((e=>W(e)&&(0,J.Fp)(e)&&(0,J.yU)(e)&&!f(e)&&(!(e instanceof j.Jn)||null==k))),Me=Fe.size>1;return T.createElement(Pe.Provider,null,T.createElement(ki,{dispatch:u,selectableTextMarkupAnnotations:ie,selectableLinkAnnotations:ae,hoverAnnotationIds:d,zoomLevel:r,window:A,pageIndex:G,selectedAnnotations:E,keepSelectedTool:N,interactionMode:C,setMultiAnnsInitialEvent:Y,isMultiSelectionEnabled:U,isHitCaptureDeffered:X,hitCaptureDefferedRect:te},O,o?T.createElement("div",null,t.filter((e=>W(e)&&(0,J.Fp)(e)&&function(e){return!(C===x.A.INK_ERASER&&le(e))}(e)&&(!ue(e)||!(0,J.yU)(e)||f(e)||e instanceof j.Jn&&k&&k.equals(e))&&!function(e){return e instanceof j.x_&&ue(e)&&b}(e))).map((e=>T.createElement(mi,{key:e.id,annotation:(0,ot.h4)(e),globalAnnotation:e,attachments:l,backend:c,dispatch:u,isAnnotationReadOnly:f,isDisabled:re&&!ue(e),isHover:d.has(e.id),isSelected:ue(e),activeAnnotationNote:P,showAnnotationNotes:F,onBlur:y,onFocus:v,pageSize:V,zoomLevel:r,rotation:s,pageRotation:p.rotation,shouldRenderAPStream:De(e),isFocused:L.has(e.id),isMultiAnnotationsSelected:Me,isComboBoxOpen:Q,handleComboBoxRect:de}))),Me&&T.createElement(T.Fragment,{key:"multi-annotations-selection"},T.createElement(Ba,{dispatch:u,pageIndex:G,pageSize:V,window:A,getScrollElement:g,selectedAnnotations:Fe.map((e=>(0,ot.h4)(e))),selectedGlobalAnnotations:Fe},Fe.map((e=>T.createElement(mi,{key:e.id,annotation:(0,ot.h4)(e),globalAnnotation:e,attachments:l,backend:c,dispatch:u,isAnnotationReadOnly:f,isDisabled:!1,isHover:d.has(e.id),isSelected:!0,activeAnnotationNote:P,showAnnotationNotes:F,onBlur:y,onFocus:v,pageSize:V,zoomLevel:r,rotation:s,pageRotation:p.rotation,onClick:e instanceof j.gd?oe:void 0,shouldRenderAPStream:De(e),isFocused:!1,isComboBoxOpen:Q,handleComboBoxRect:de}))))),!Me&&Fe.map((e=>T.createElement(T.Fragment,{key:e.id},T.createElement(Fa,{pageIndex:G,pageSize:V,annotation:(0,ot.h4)(e),globalAnnotation:e,window:A,getScrollElement:g,onFocus:v,onBlur:y,isResizable:(0,J.IO)(e),isModifiable:(0,J.Km)(e),isRotatable:(0,J.a$)(e),setGlobalCursor:Z},T.createElement(mi,{annotation:(0,ot.h4)(e),globalAnnotation:e,attachments:l,backend:c,dispatch:u,isAnnotationReadOnly:f,isDisabled:!1,isHover:d.has(e.id),isSelected:!0,isFocused:!1,activeAnnotationNote:P,showAnnotationNotes:F,onBlur:y,onFocus:v,pageSize:V,zoomLevel:r,rotation:s,pageRotation:p.rotation,onClick:e instanceof j.gd?oe:void 0,shouldRenderAPStream:De(e),isComboBoxOpen:Q,handleComboBoxRect:de})),F&&(0,J.YV)(e)&&T.createElement(ui,{dispatch:u,annotation:e,zoomLevel:r,isAnnotationSelected:!0,activeAnnotationNote:P,visible:!1}))))):null),C===x.A.INK&&null!==fe&&(0,J.Fp)(fe)?T.createElement(Fi,{dispatch:u,pageSize:V,pageIndex:G,inkAnnotation:fe.pageIndex===G?fe:fe.delete("lines").delete("boundingBox"),scrollElement:e.scrollElement}):null,C===x.A.INK_ERASER&&se.size>0?T.createElement(Ie,{inkAnnotations:ce,canvasSize:V,pageIndex:G}):null,he&&[...Ds,...Cs].includes(C)&&(0,J.Fp)(he)?T.createElement(_n,{dispatch:u,pageSize:V,pageIndex:G,shapeAnnotation:he.pageIndex===G?he:(0,ee.Hx)(he),isAnnotationMeasurement:[...Cs].includes(C)}):null,C!==x.A.TEXT&&C!==x.A.CALLOUT||!me?null:T.createElement(da,{annotation:me,interactionMode:C,dispatch:u,pageSize:V,pageIndex:G,autoSelect:w,eventEmitter:M}),ge&&(0,J.Fp)(ge)?T.createElement(la,{dispatch:u,annotation:ge,pageIndex:G,pageSize:V,autoSelect:w,lastMousePoint:null===q?void 0:q,eventEmitter:M,keepSelectedTool:N,enableRichText:z}):null,(ve||ye)&&T.createElement(Pi,{dispatch:u,annotation:ve||ye,pageSize:V,pageIndex:G,zoomLevel:r}),be&&C===x.A.REDACT_SHAPE_RECTANGLE&&(0,J.Fp)(be)?T.createElement(Ka,{dispatch:u,pageSize:V,pageIndex:G,redactionAnnotation:be.pageIndex===G?be:be.delete("boundingBox"),keepSelectedTool:N}):null,C===x.A.LINK&&we?T.createElement(ws,{dispatch:u,linkAnnotation:we,viewportState:e.viewportState,page:e.page,window:e.window,pageIndex:G,keepSelectedTool:N}):null,C===x.A.MULTI_ANNOTATIONS_SELECTION?T.createElement(xs,{viewportState:e.viewportState,window:e.window,pageIndex:G,initialDraggingEvent:$,multiAnnotationsUsingShortcut:K}):null)})),_f=Mf,Rf=(0,jo.Z)((e=>(t,n)=>{e.emit("annotations.focus",{annotation:t,nativeEvent:void 0!==n.nativeEvent?n.nativeEvent:n})})),Nf=(0,jo.Z)((e=>(t,n)=>{e.emit("annotations.blur",{annotation:t,nativeEvent:void 0!==n.nativeEvent?n.nativeEvent:n})}));function Lf(e,t){const n=Bf(e),o=Bf(t);return n>o?1:n{const t=this._hostElement.current;if(!t)return;const n=t.ownerDocument.defaultView.getSelection()||{},{anchorNode:o,extentNode:r,focusNode:i,isCollapsed:a}=n;if(o&&t.contains(o)||r&&t.contains(r)||i&&t.contains(i)){if(a)return;e.stopPropagation(),e.stopImmediatePropagation()}}))}_appendNode(){const e=this._hostElement.current;if(!e)return;const{node:t,onAppear:n}=this.props.item;e.innerHTML="",e.appendChild(t),"function"!=typeof n||this._onAppearInvoked||(this._onAppearInvoked=!0,n())}componentDidMount(){const e=this._hostElement.current;if(e){const t=e.ownerDocument;Kf.forEach((e=>{t.addEventListener(e,this._preventTextSelection,!0)}))}this._appendNode()}componentDidUpdate(e){this.props.item.node!==e.item.node&&this._appendNode()}componentWillUnmount(){const e=this._hostElement.current;if(!e)return;const t=e.ownerDocument;Kf.forEach((e=>{t.removeEventListener(e,this._preventTextSelection,!0)})),this._onAppearInvoked=!1;const{onDisappear:n}=this.props.item;"function"==typeof n&&n()}render(){return T.createElement(Be,{applyZoom:!this.props.item.disableAutoZoom,position:this.props.item.position,noRotate:this.props.item.noRotate,currentPagesRotation:this.props.rotation,zoomLevel:this.props.zoomLevel},T.createElement("div",{className:zf().selectable,ref:this._hostElement}))}}var Uf=n(72800);class Vf extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"_handlePointerUp",(e=>{const{transformClientToPage:t,onEmit:n,pageIndex:o}=this.props;n(e,t(new B.E9({x:e.clientX,y:e.clientY}),o))}))}render(){return T.createElement(pt.Z,{onPointerUp:this._handlePointerUp},T.createElement(this.props.element,{},this.props.children))}}const Gf=yi(Vf);var Wf=n(99398),qf=n.n(Wf);function Hf(e){let{focused:t,searchResult:n,zoomLevel:o}=e;const r=F()({[qf().highlight]:!0,[qf().focused]:t,"PSPDFKit-Search-Highlight":!0,"PSPDFKit-Search-Highlight-focused":t});return T.createElement("div",{"data-testid":"SearchHighlight","aria-live":"polite"},t?T.createElement(ue.TX,{announce:"polite"},"Search Result: ",n.previewText):null,n.rectsOnPage.map(((e,t)=>T.createElement("div",{key:t,style:{top:Math.floor(e.top*o),left:Math.floor(e.left*o),width:Math.ceil(e.width*o),height:Math.ceil(e.height*o)},className:r}))).toArray())}const $f=(0,A.$j)((function(e,t){const{searchState:n}=e;return{searchResults:n.results.filter((e=>e.pageIndex===t.pageIndex)),focusedResult:n.results.get(n.focusedResultIndex)}}))((function(e){let{searchResults:t,focusedResult:n,zoomLevel:o}=e;return T.createElement("div",{className:qf().layer,"data-testid":"SearchHighlightLayer"},t.map(((e,t)=>T.createElement(Hf,{focused:e===n,key:t,searchResult:e,zoomLevel:o}))))})),Yf={P:"p",TH:"th",TD:"td",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",Figure:"figure",Link:"a"};function Xf(e){var t,n;const{textLine:o,content:r,isPanModeEnabled:i,enableTextSelection:a,vertical:s,scaling:l,pageIndex:c}=e,u=null===(t=o.contentTreeElementMetadata)||void 0===t?void 0:t.pdfua_type;let d="span";u&&u in Yf&&(d=Yf[u]);const p=F()({[cl().line]:!0,[cl().lineTextCursor]:!i,[cl().debug]:!1,[cl().enableTextSelection]:a,"PSPDFKit-Text":!0,[cl().vertical]:!!s}),f={top:o.boundingBox.top,left:o.boundingBox.left,transform:l&&l.scaleX>0&&l.scaleY>0?`scale(${l.scaleX}, ${l.scaleY})`:""};return T.createElement(d,{className:p,style:f,key:o.id||void 0,alt:(null===(n=o.contentTreeElementMetadata)||void 0===n?void 0:n.alt)||void 0},T.createElement("span",{"data-textline-id":o.id,"data-page-index":c,className:cl().selectableText},r))}class Jf extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"_handleOnPressEmit",((e,t)=>{const{textLine:n,eventEmitter:o}=this.props,r={textLine:n,point:t,nativeEvent:e.nativeEvent};o.emit("textLine.press",r)})),(0,o.Z)(this,"_handleDeselectText",(()=>{this.props.dispatch((0,je.vR)())}))}render(){const{textLine:e,isTextCopyingAllowed:t}=this.props,n={top:e.boundingBox.top,left:e.boundingBox.left-20,transform:"none"},o=(0,ol.LD)(t,e);return T.createElement(Gf,{pageIndex:this.props.pageIndex,onEmit:this._handleOnPressEmit,element:"div"},!tt.vU&&T.createElement("span",{className:F()({[cl().linePadding]:!0,[cl().preventUserSelect]:tt.G6||tt.b5}),style:n,onClick:tt.G6||tt.b5?this._handleDeselectText:void 0}),T.createElement(Xf,(0,De.Z)({content:o},this.props)))}}var Qf;class eh extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"layerRef",T.createRef()),(0,o.Z)(this,"state",{needsTextSelectionOverlay:"gecko"===tt.SR,overlayHeight:0}),(0,o.Z)(this,"handleMouseDown",(e=>{if(this.state.needsTextSelectionOverlay&&this.layerRef.current){const t=this.layerRef.current.getBoundingClientRect();if(e.clientY){const n=Math.max(0,e.clientY-t.top);this.setState({overlayHeight:n/this.props.zoomLevel})}}})),(0,o.Z)(this,"handleMouseUp",(()=>{this.state.needsTextSelectionOverlay&&this.setState({overlayHeight:0})}))}getChildren(){return this.layerRef.current&&(0,i.aV)(this.layerRef.current.getElementsByClassName(cl().line))}getLayer(){return this.layerRef.current}render(){const{enableTextSelection:e,zoomLevel:t,rotation:n,eventEmitter:o,textLines:r,pageIndex:i,textLineScales:a}=this.props;return T.createElement("div",{className:cl().layer,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,style:{transform:`scale(${t})`,transformOrigin:"0 0"},ref:this.layerRef,role:"webkit"===tt.SR?"text":void 0},Qf||(Qf=T.createElement("div",null)),null==r?void 0:r.map((t=>T.createElement(Jf,{dispatch:this.props.dispatch,enableTextSelection:e,key:t.id,pageIndex:i,scaling:a&&a.get(t.id),textLine:t,vertical:90===n||270===n,eventEmitter:o,isTextCopyingAllowed:this.props.isTextCopyingAllowed,isPanModeEnabled:this.props.isPanModeEnabled}))),this.state.needsTextSelectionOverlay&&this.state.overlayHeight>0?T.createElement("div",{className:cl().overlay,style:{top:this.state.overlayHeight}}):null)}}var th=n(51869),nh=n.n(th);function oh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function rh(e){for(var t=1;te.apply(o)),[o]);T.useEffect((function(){return t((0,En.X2)()),function(){t((0,En.Zg)())}}),[t]);const{rect:c}=a;return T.createElement("div",{className:nh().canvas},null!==c?T.createElement("svg",{className:nh().svg,style:{left:c.left*i,top:c.top*i,width:c.width*i,height:c.height*i},focusable:!1},T.createElement("rect",{className:nh().rect,height:c.height*i,width:c.width*i,x:0,y:0}),T.createElement("rect",{className:nh().rectStrokeBetween,height:c.height*i,width:c.width*i,x:0,y:0})):null,T.createElement(Sn.Z,{size:n,onDrawStart:function(e){s((t=>rh(rh({},t),{},{startingPoint:e})))},onDrawCoalesced:function(e){const{startingPoint:t}=a;(0,Ne.k)(t);const n=e[e.length-1];s((e=>rh(rh({},e),{},{rect:sh(t,n)})))},onDrawEnd:function(){const{rect:e}=a,n=5/i;null===e||e.width{if(!(0,tt.b1)())return t.addEventListener("mousemove",e),()=>{(0,tt.b1)()||t.removeEventListener("mousemove",e)};function e(e){const{pageX:t,pageY:n}=e,r=e.target.closest(".PSPDFKit-Page");if(!r)return void p(!1);const i=r.getAttribute("data-page-index");if((0,a.kG)("string"==typeof i,"Page number is not a string"),+i===s){p(!0),(0,a.kG)(o.current);const{left:e,top:r}=o.current.getBoundingClientRect();u([t-e,n-r])}else p(!1)}}),[o,t,s]),d?T.createElement("div",{className:F()({[ch().wrapper]:(0,tt.b1)()},"PSPDFKit-Form-Creator-Guides"),onPointerUp:i,role:"application"},!(0,tt.b1)()&&T.createElement(T.Fragment,null,T.createElement("div",{className:ch().hGuide,style:{transform:`translate(0, ${c[1]}px)`}}),T.createElement("div",{className:ch().vGuide,style:{transform:`translate(${c[0]}px,0)`}}),T.createElement("div",{className:F()({[ch().buttonWidget]:r===x.A.BUTTON_WIDGET,[ch().textWidget]:r===x.A.TEXT_WIDGET,[ch().radioWidget]:r===x.A.RADIO_BUTTON_WIDGET,[ch().checkboxWidget]:r===x.A.CHECKBOX_WIDGET,[ch().signWidget]:r===x.A.SIGNATURE_WIDGET,[ch().listBoxWidget]:r===x.A.LIST_BOX_WIDGET,[ch().comboBoxWidget]:r===x.A.COMBO_BOX_WIDGET,[ch().dateWidget]:r===x.A.DATE_WIDGET}),style:{transform:`translate(${c[0]}px,${c[1]}px)`}},T.createElement("div",null,l.formatMessage(Ke.Z.sign)),T.createElement(Ye.Z,{src:n(58021)})))):null}var dh=n(12671);function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function fh(e){for(var t=1;t{const{page:t,textBlockId:n,anchor:o,zoomLevel:r,textBlockState:i,backend:a,isActive:s}=e,l=T.useRef(null),c=T.useRef({offset:{x:0,y:0},size:{x:-1,y:-1}}),u=T.useCallback((0,Cc.k)(((e,t)=>a.contentEditorRenderTextBlock(n,e,t)),20),[]),d=i.layout,p=i.globalEffects,f=i.modificationsCharacterStyle;T.useEffect((()=>{!async function(){const e=(0,dh.T8)(d,f),n=(0,Ft.L)(),i=await u({pixelAnchor:{x:o.x*r*n,y:o.y*r*n},globalEffects:(0,dh.uE)(p),pixelPageSize:{x:t.pageSize.width*r*n,y:t.pageSize.height*r*n},pixelViewport:{offset:{x:0,y:0},size:{x:t.pageSize.width*r*n,y:t.pageSize.height*r*n}},cursor:null,selection:s?{color:"#b5d7ff"}:null},e),a=i.displayRect,h=l.current;if(!h)return;const m=c.current;m.offset.x!=a.offset.x&&(h.style.left=a.offset.x/n+"px"),m.offset.y!=a.offset.y&&(h.style.top=a.offset.y/n+"px"),m.size.x!=a.size.x&&(h.style.width=a.size.x/(tt.G6?1:n)+"px",h.width=a.size.x),m.size.y!=a.size.y&&(h.style.height=a.size.y/(tt.G6?1:n)+"px",h.height=a.size.y);const g=h.getContext("2d");if(g){if(g.clearRect(0,0,a.size.x,a.size.y),a.size.x&&a.size.y){const e=new ImageData(new Uint8ClampedArray(i.imageBuffer),a.size.x,a.size.y);g.putImageData(e,0,0)}c.current=a}}()}));const h=tt.G6?{transformOrigin:"top left",transform:`scale(${1/devicePixelRatio})`}:{};return T.createElement("canvas",{ref:l,style:fh({position:"absolute",left:0,top:0},h)})},mh=T.memo(hh),gh={on(e,t){document.addEventListener(e,(e=>t(e.detail)))},dispatch(e,t){document.dispatchEvent(new CustomEvent(e,{detail:t}))},remove(e,t){document.removeEventListener(e,t)}};var vh=n(20423),yh=n.n(vh),bh=n(94385);const wh=(0,Re.vU)({fontMismatch:{id:"ceFontMismatch",defaultMessage:"The {arg0} font isn’t available or can’t be used to edit content in this document. Added or changed content will revert to a default font.",description:"Message to show when there is a mismatch"},toggleFontMismatchTooltip:{id:"ceToggleFontMismatchTooltip",defaultMessage:"Toggle font mismatch tooltip",description:"Message to show for the button that displays the font mismatch tooltip"},deleteTextBlockConfirmMessage:{id:"deleteTextBlockConfirmMessage",defaultMessage:"Are you sure you want to delete this text box?",description:"Message for the delete text block confirm dialog"},deleteTextBlockConfirmAccessibilityLabel:{id:"deleteTextBlockConfirmAccessibilityLabel",defaultMessage:"Confirm text box deletion",description:"Accessibility label for the delete text block confirm dialog"},deleteTextBlockConfirmAccessibilityDescription:{id:"deleteTextBlockConfirmAccessibilityDescription",defaultMessage:"Dialog allowing the user to confirm or cancel deleting the text box",description:"Accessibility description for the delete annotation confirm dialog"}});function Sh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Eh(e){for(var t=1;t{const e=B.sl.IDENTITY.rotateRad(p.rotation).scale(1,p.flipY?-1:1),t=o.offset.x+s.width,n=new j.E9({x:t+5*i,y:o.offset.y}).apply(e),r=n.x+a.x*i+(p.rotation<0?o.offset.x:0),l=n.y+a.y*i+(p.rotation<0?o.offset.y:0);return new j.E9({x:r,y:l})}),[s.width,i,p.flipY,p.rotation,a.x,a.y,o.offset.x,o.offset.y]),m=Eh(Eh({},l),{},{position:"fixed",left:h.x,top:h.y,width:Math.max(12,Math.round(16*i)),height:Math.max(12,Math.round(16*i)),zIndex:3});return T.createElement("button",{style:m,className:yh().tooltipButton,onClick:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault()},onPointerDown:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault()},onPointerOver:()=>{var e;const n=o.offset.x+d.size.x,r=o.offset.y,s=new j.E9({x:n,y:r}),l=B.sl.IDENTITY.rotateRad(p.rotation).scale(1,p.flipY?-1:1),c=s.apply(l);u((0,Su.lx)(new j.UL({left:a.x+(null!==(e=f.maxWidth)&&void 0!==e?e:c.x),top:h.y/i,width:16,height:16}),t))},onPointerLeave:()=>{if(!tt.Ni){const e=new AbortController;u((0,Su.Hv)(e)),u((0,Su.uy)(e.signal))}}},T.createElement(Ye.Z,{src:n(46113),className:yh().tooltipSVG}),T.createElement(ue.TX,null,c(wh.toggleFontMismatchTooltip)))}function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Dh(e){for(var t=1;t{var t,n;const{page:{pageSize:o,pageIndex:r},textBlockId:i,anchor:a,zoomLevel:s,textBlockState:l,isActive:c,frameWindow:u}=e,d=(0,A.I0)(),p=l.contentRect,f=l.globalEffects,h=l.detectedStyle,m=l.cursor,g=T.useRef(!1),[v,y]=T.useState(!1),b=T.useRef(!1),w=(0,A.v9)((e=>(0,Gl.G_)(r,i)(e))),S=(0,A.v9)((e=>(0,Gl.QC)(r,i)(e)));T.useEffect((()=>{if(!c){const e=new AbortController;d((0,Su.Hv)(e)),d((0,Su.uy)(e.signal))}}),[c,d]);const E=T.useRef(null),P=T.useMemo((()=>{var e,t,n;return c?null!=(null===(e=h.selectionStyleInfo)||void 0===e?void 0:e.faceMismatch)?h.selectionStyleInfo.faceMismatch.unavailableFaceName:null!==(t=null===(n=h.modificationsCharacterStyleFaceMismatch)||void 0===n?void 0:n.unavailableFaceName)&&void 0!==t?t:null:null}),[null===(t=h.selectionStyleInfo)||void 0===t?void 0:t.faceMismatch,null===(n=h.modificationsCharacterStyleFaceMismatch)||void 0===n?void 0:n.unavailableFaceName,c]),x=T.useRef(null),D=T.useRef(null),C=e=>{var t,n;(0,Ne.k)(e.currentTarget);return new j.E9({x:(null!==(t=e.nativeEvent.offsetX)&&void 0!==t?t:0)/s+p.offset.x,y:(null!==(n=e.nativeEvent.offsetY)&&void 0!==n?n:0)/s+p.offset.y})},k=()=>(0,dh.T8)(l.layout,l.modificationsCharacterStyle),O=function(e){let{textAreaRef:t,textBlockId:n,pageIndex:o,makeExternalState:r}=e;const i=T.useRef(!1),a=(0,A.I0)(),s=e=>{t.current&&null!=e&&e.length&&a((0,Su.qt)(o,n,null,e,r()))},l=tt.Dt||tt.TL;return{onChange:e=>{i.current||s("insertLineBreak"===e.nativeEvent.inputType?"\n":e.nativeEvent.data)},onCompositionStart:()=>{l||(i.current=!0)},onCompositionEnd:e=>{l||(i.current=!1,s(e.data))}}}({textAreaRef:E,textBlockId:i,pageIndex:r,makeExternalState:k}),I=function(e){let{textBlockState:t,textBlockId:n,pageIndex:o,makeExternalState:r}=e;const i=(0,A.I0)();return{onCopy:e=>{e.preventDefault(),t.selection&&e.clipboardData.setData("text/plain",t.selection.text)},onCut:e=>{e.preventDefault(),t.selection&&(e.clipboardData.setData("text/plain",t.selection.text),i((0,Su.qt)(o,n,null,"",r())))},onPaste:e=>{e.preventDefault();const t=e.clipboardData.getData("text/plain");i((0,Su.qt)(o,n,null,t,r()))}}}({textBlockId:i,pageIndex:r,textBlockState:l,makeExternalState:k}),M=function(e){let{textBlockId:t,makeExternalState:n,textBlockState:o,pageSize:r,pageIndex:i,isSelected:a,isActive:s}=e;const l=(0,A.I0)();return e=>{const c=tt.V5&&e.altKey||!tt.V5&&e.ctrlKey;if(s)switch(e.key){case"ArrowRight":l((0,Su.FD)(i,t,c?"forwardWord":"forward",e.shiftKey,n()));break;case"ArrowLeft":l((0,Su.FD)(i,t,c?"backwardWord":"backward",e.shiftKey,n()));break;case"ArrowDown":l((0,Su.FD)(i,t,"nextLine",e.shiftKey,n()));break;case"ArrowUp":l((0,Su.FD)(i,t,"previousLine",e.shiftKey,n()));break;case"Home":l((0,Su.FD)(i,t,"first",e.shiftKey,n()));break;case"End":l((0,Su.FD)(i,t,"last",e.shiftKey,n()));break;case"Backspace":l((0,Su.RL)(i,t,"backward",n()));break;case"Delete":l((0,Su.RL)(i,t,"forward",n()));break;case"a":case"A":if(!(tt.V5&&e.metaKey||!tt.V5&&e.ctrlKey))break;l((0,Su.Ow)(i,t,"everything",n()));break;case"z":case"Z":if(!(tt.V5&&e.metaKey||!tt.V5&&e.ctrlKey))break;e.shiftKey?l((0,Su.yy)(i,t,n())):l((0,Su.Zv)(i,t,n()));break;case"y":case"Y":if(!(tt.V5&&e.metaKey||!tt.V5&&e.ctrlKey))break;l((0,Su.yy)(i,t,n()));break;case"Escape":l(Su.Pq),e.preventDefault()}else if(a){let n=1;switch(e.shiftKey&&(n=10),e.key){case"ArrowRight":{e.preventDefault();const t=new j.E9({x:o.anchor.x+n,y:o.anchor.y});if(t.x+o.contentRect.offset.x+o.contentRect.size.x>=r.width)break;l((0,Su.$t)({anchor:t,isKeyboardMove:!0}));break}case"ArrowLeft":{e.preventDefault();const t=new j.E9({x:o.anchor.x-n,y:o.anchor.y});if(t.x+o.contentRect.offset.x<=0)break;l((0,Su.$t)({anchor:t,isKeyboardMove:!0}));break}case"ArrowDown":{e.preventDefault();const t=new j.E9({x:o.anchor.x,y:o.anchor.y+n});if(t.y+o.contentRect.offset.y+o.contentRect.size.y>=r.height)break;l((0,Su.$t)({anchor:t,isKeyboardMove:!0}));break}case"ArrowUp":{e.preventDefault();const t=new j.E9({x:o.anchor.x,y:o.anchor.y-n});if(t.y+o.contentRect.offset.y<=0)break;l((0,Su.$t)({anchor:t,isKeyboardMove:!0}));break}case"Enter":l((0,Su.SF)(i,t)),e.preventDefault();break;case"Escape":l(Su.Pq),e.preventDefault();break;case"Backspace":case"Delete":case"Del":l((0,Su.u)(Gl.wR.Delete)),e.preventDefault(),e.stopPropagation();break;default:e.preventDefault()}}else switch(e.key){case"Enter":l((0,Su.C0)(i,t)),e.preventDefault();break;case"Escape":l(Su.Pq),e.preventDefault()}}}({textBlockId:i,textBlockState:l,makeExternalState:k,pageSize:o,pageIndex:r,isActive:c,isSelected:w});function _(e){var t;const n=C(e),o={x:n.x,y:n.y};null===(t=E.current)||void 0===t||t.focus(),d((0,Su.v2)(r,i,o,e.shiftKey,k())),x.current={mode:"characters",begin:o}}function R(e){e.stopPropagation(),e.stopImmediatePropagation();const t={x:e.clientX,y:e.clientY};if(!D.current)return[null,null];const n=new j.UL({width:o.width,height:o.height});let r=new j.E9(t);const i=D.current;if(r=r.apply(i.transformation),!n.isPointInside(r))return[null,null];return[(t.x-i.start.x)*i.scale/i.zoomLevel,(t.y-i.start.y)*i.scale/i.zoomLevel]}T.useEffect((()=>{b.current&&w&&(b.current=!1)}),[w]);const N=T.useCallback((0,bh.Z)((e=>{const[t,n]=R(e);if(null===t||null===n||!D.current)return;const o=new j.E9({x:D.current.anchor.x+t,y:D.current.anchor.y+n});D.current.changed=!0,d((0,Su.$t)({anchor:o,pageIndex:r,textBlockId:i}))}),20),[]),L=T.useCallback((()=>{var e;u.document.removeEventListener("pointermove",N),u.document.removeEventListener("pointerup",L),d((0,Eu.ac)(!1)),null!==(e=D.current)&&void 0!==e&&e.changed&&(D.current.previousInteractionState===Gl.FP.Selected?d((0,Su.C0)(r,i)):d(Su.Pq)),D.current=null}),[]);T.useEffect((()=>{var e;c&&l.justCreated&&(null===(e=E.current)||void 0===e||e.focus())}),[c,l.justCreated]);const B=()=>{var e;return c&&(null===(e=E.current)||void 0===e?void 0:e.focus())};T.useEffect((()=>(gh.on("content-editing:re-focus",B),()=>gh.remove("content-editing:re-focus",B))));const z=l.layout;(0,Ne.k)(null!==z.maxWidth);const K={offset:{x:(0,sc._v)(z.alignment,sc.Im,z.maxWidth),y:p.offset.y},size:{x:z.maxWidth,y:p.size.y}},Z=(0,sc.sz)(ql(K),s),U=(0,sc.yK)(Z,a,s),V={position:"absolute",left:U.offset.x,top:U.offset.y},G=Dh(Dh({},V),{},{width:U.size.x,height:U.size.y,transformOrigin:`${-Z.offset.x}px ${-Z.offset.y}px`,transform:`rotate(${f.rotation}rad) scaleY(${f.flipY?-1:1})`});l.justCreated&&(G.width=Math.max(p.size.x,10)*s);const W=(0,A.v9)((e=>(0,de.zi)(e,r))),q=(e,t)=>n=>{n.stopPropagation(),n.isPrimary&&0===n.button&&(n.nativeEvent.stopImmediatePropagation(),n.preventDefault(),u.document.addEventListener("pointermove",H,{passive:!0}),u.document.addEventListener("pointerup",$,{passive:!0}),d((0,Eu.ac)(!0)),w||c||d((0,Su.SF)(r,i)),(0,Ne.k)(null!==z.maxWidth),D.current={fixpoint:e,scale:t,zoomLevel:s,start:{x:n.clientX,y:n.clientY},anchor:l.anchor,maxWidth:z.maxWidth,transformation:W,previousInteractionState:w?Gl.FP.Selected:Gl.FP.None})},H=T.useCallback((0,bh.Z)((e=>{const[t]=R(e);null!==t&&D.current&&d((0,Su.PZ)({fixpointValue:D.current.fixpoint,newWidth:D.current.maxWidth+t}))}),20),[]),$=T.useCallback((()=>{D.current=null,u.document.removeEventListener("pointermove",H),u.document.removeEventListener("pointerup",$),d((0,Eu.ac)(!1))}),[]);return T.createElement(T.Fragment,null,P?T.createElement(Ph,{faceMismatch:P,relativePixelContentRect:Z,textBlockState:l,zoomLevel:s,anchor:a,geometricStyleAttributes:G,positionAttributes:V}):null,T.createElement("div",{style:Dh(Dh({},G),{},{position:"fixed",zIndex:2}),className:F()(yh().textBlock,{[yh().selectedTextBlock]:w,[yh().movingTextBlock]:S,[yh().activeTextBlock]:c,[yh().focusIn]:v}),onFocus:()=>{g.current=!0},onBlur:()=>{g.current=!1,y(!1)},onKeyUp:e=>{const t=e.target.ownerDocument.defaultView&&e.target instanceof e.target.ownerDocument.defaultView.HTMLTextAreaElement;g.current&&"Tab"===e.key&&t&&(y(!0),d((0,Su.FD)(r,i,"first",!1,k())))}},T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`${p.offset.x*s} ${Z.offset.y} ${Z.size.x} ${Z.size.y}`,style:Dh(Dh({},G),{},{width:U.size.x,position:"absolute",left:0,top:0,transform:void 0,transformOrigin:void 0,display:c?"block":"none"}),className:yh().blinkingCaret},T.createElement("line",{stroke:"currentColor",x1:m.offset.x*s,y1:(m.offset.y+m.lineSpacing.bottom)*s,x2:m.offset.x*s,y2:(m.offset.y-m.lineSpacing.top)*s})),T.createElement("textarea",(0,De.Z)({ref:E,onPointerDown:e=>{e.stopPropagation(),c?_(e):(e.preventDefault(),e.isPrimary&&(u.document.addEventListener("pointermove",N,{passive:!0}),u.document.addEventListener("pointerup",L,{passive:!0}),d((0,Eu.ac)(!0)),(0,Ne.k)(null!==z.maxWidth),D.current={fixpoint:0,scale:1,zoomLevel:s,start:{x:e.clientX,y:e.clientY},anchor:l.anchor,maxWidth:z.maxWidth,transformation:W,previousInteractionState:w?Gl.FP.Selected:Gl.FP.None}))},onPointerMove:e=>{if(D.current)return;if(e.preventDefault(),!(c&&1&e.buttons))return;e.stopPropagation();const t=C(e),n={x:t.x,y:t.y},o=x.current;(0,Ne.k)(o),d((0,Su.sC)(r,i,o.begin,n,o.mode,k()))},onPointerUp:e=>{var t;null!==(t=D.current)&&void 0!==t&&t.changed||(e.preventDefault(),e.stopPropagation(),w||c?c||(d((0,Su.SF)(r,i)),_(e)):(d((0,Su.C0)(r,i)),b.current=!0))},onMouseUp:e=>{if(e.detail>=2){e.preventDefault(),e.stopPropagation();const t=C(e),n={x:t.x,y:t.y};x.current={mode:"words",begin:n},d((0,Su.sC)(r,i,n,n,"words",k())),e.detail>=3&&d((0,Su.Ow)(r,i,"everything",k()))}},onClick:e=>{e.preventDefault(),e.stopPropagation()},onKeyDown:M},O,I,{onContextMenu:jr.PF,style:Dh(Dh({},G),{},{resize:"none",opacity:0,touchAction:"none",left:0,top:0,transform:void 0,transformOrigin:void 0}),defaultValue:l.layoutView.lines.map((e=>(0,sc.z8)(e.elements))).join(" ")})),w?T.createElement(T.Fragment,null,T.createElement("div",{draggable:!0,onPointerDown:q(sc.Tl,-1),className:F()(yh().resizeHandle,yh().resizeHandleLeft)},T.createElement("div",{className:yh().resizeHandleCircle})),T.createElement("div",{draggable:!0,onPointerDown:q(sc.Im,1),className:F()(yh().resizeHandle,yh().resizeHandleRight)},T.createElement("div",{className:yh().resizeHandleCircle}))):null))},kh=T.memo(Ch),Ah=e=>{const{page:t,textBlockId:n,zoomLevel:o,backend:r,frameWindow:i}=e,a=(0,A.v9)((e=>{const o=(0,Gl.aT)(t.pageIndex,n)(e);return(0,Ne.k)(o),o.anchor})),s=(0,A.v9)((e=>(0,Gl.aT)(t.pageIndex,n)(e)));(0,Ne.k)(s);const l=(0,A.v9)((e=>(0,Gl.Dn)(t.pageIndex,n)(e)));return T.createElement("div",{className:"PSPDFKit-Content-Editing-Text-Block"},T.createElement(mh,{page:t,textBlockId:n,anchor:a,zoomLevel:o,textBlockState:s,isActive:l,backend:r}),T.createElement(kh,{page:t,textBlockId:n,anchor:a,zoomLevel:o,isActive:l,textBlockState:s,frameWindow:i}))},Oh=T.memo(Ah);function Th(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ih(e){for(var t=1;t{const t=(0,A.I0)(),{formatMessage:n}=(0,Re.YB)(),{page:o,zoomLevel:r,backend:i,frameWindow:a}=e;T.useEffect((()=>{var e;t((e=o.pageIndex,async(t,n)=>{if((0,Gl.Cd)(e)(n())!=Gl.R1.Uninitialized)return;t({type:te.l$y,pageIndex:e});const o=await n().backend.contentEditorDetectParagraphs(e);t({type:te.kD6,pageIndex:e,initialTextBlocks:o})}))}),[t,o.pageIndex]);const s=o.pageSize.height*r,l=o.pageSize.width*r,c=(0,A.v9)((0,Gl.jI)(o.pageIndex),A.wU),u=(0,A.v9)((e=>e.contentEditorSession.mode)),d=u===Gl.wR.Create,p=u===Gl.wR.Delete,f=(0,A.v9)((e=>(0,de.zi)(e,o.pageIndex))),h=(0,A.v9)((e=>e.contentEditorSession.textBlockInteractionState.state)),m=h===Gl.FP.Active,g=h===Gl.FP.Moving;return T.createElement("div",{tabIndex:0,onPointerDown:e=>{if(d){const n=new j.E9({x:e.clientX,y:e.clientY}).apply(f),r=new Gl.Sg({x:n.x,y:n.y});t((0,Su.rO)(o.pageIndex,r))}else p||(m&&(e.preventDefault(),e.stopPropagation()),t(Su.Pq))},className:"content-editing-overlay",style:Ih({position:"absolute",top:0,left:0,touchAction:g?"none":"auto",height:s,width:l,zIndex:1},d?{cursor:"text"}:{})},p&&T.createElement($u.Z,{onConfirm:()=>t(Su.um),onCancel:()=>t((0,Su.u)(Gl.wR.Edit)),accessibilityLabel:n(wh.deleteTextBlockConfirmAccessibilityLabel),accessibilityDescription:n(wh.deleteTextBlockConfirmAccessibilityDescription),"aria-atomic":!0,restoreOnClose:!1},T.createElement("p",null,n(wh.deleteTextBlockConfirmMessage))),c.map((e=>T.createElement(Oh,{key:e,backend:i,textBlockId:e,page:o,zoomLevel:r,frameWindow:a}))))},Mh=T.memo(Fh);function _h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Rh(e){for(var t=1;t{let{pageSize:t}=e;const n=(0,A.v9)((e=>e.hintLines));return n?T.createElement("svg",{id:"hint-lines",viewBox:`0 0 ${t.width} ${t.height}`,className:Kh().hintLineSvg},n.lines.map(((e,t)=>T.createElement("line",{key:t,x1:e.start.x,y1:e.start.y,x2:e.end.x,y2:e.end.y,className:Kh().line})))):null};class Uh extends T.Component{constructor(e){super(e),(0,o.Z)(this,"pageRef",T.createRef()),(0,o.Z)(this,"_handleOverviewRenderFinished",(()=>{this.setState({isOverviewRendered:!0}),this.props.onInitialOverviewRenderFinished&&this.props.onInitialOverviewRenderFinished(this.props.page.pageIndex)})),(0,o.Z)(this,"_handleScroll",(e=>{this.pageRef.current&&(this.pageRef.current.scrollTop=0,this.pageRef.current.scrollLeft=0),e.stopPropagation(),e.preventDefault()})),(0,o.Z)(this,"_handleOnPressEmit",((e,t)=>{const n={pageIndex:this.props.page.pageIndex,point:t,nativeEvent:e.nativeEvent};this.props.eventEmitter.emit("page.press",n)})),(0,o.Z)(this,"onCropAreaChangeComplete",(e=>{const t=(0,Yr.kI)(e,this.props.page.pageSize,this.props.viewportState.pagesRotation),n={cropBox:t,pageIndex:this.props.page.pageIndex};this.props.eventEmitter.emit("cropArea.changeStop",n),this.props.onCropChange(t,this.props.page.pageIndex)})),(0,o.Z)(this,"onCropAreaChangeStart",(e=>{const t=(0,Yr.kI)(e,this.props.page.pageSize,this.props.viewportState.pagesRotation),n={cropBox:t,pageIndex:this.props.page.pageIndex};this.props.eventEmitter.emit("cropArea.changeStart",n),this.props.onCropChange(t,this.props.page.pageIndex)})),(0,o.Z)(this,"createWidgetAnnotation",(e=>{var t,n,o;e.stopPropagation(),this.props.dispatch((t=this.props.page.pageIndex,n=[e.pageX,e.pageY],o=this.props.intl,async(e,r)=>{const{interactionMode:s,viewportState:l,onWidgetAnnotationCreationStart:c,changeManager:u}=r();Lh++;const d=(0,de.Ek)(l,t),p=(0,J.xc)();(0,a.kG)(s,"interactionMode is not defined");const f=Nh[s],h=new Date;let m,g=new j.x_(Rh(Rh({id:p,formFieldName:`${s}_${(0,ks.C)()}`,boundingBox:new j.UL({left:n[0],top:n[1],width:f[0],height:f[1]}).apply(d),pageIndex:t,createdAt:h,updatedAt:h,fontSize:12},s===x.A.BUTTON_WIDGET?{backgroundColor:j.Il.BLUE,fontColor:j.Il.WHITE}:{}),s===x.A.DATE_WIDGET?{additionalActions:{onFormat:new j.bp({script:'AFDate_FormatEx("yyyy-mm-dd")'})}}:{}));switch(s){case x.A.BUTTON_WIDGET:m=new j.R0({annotationIds:(0,i.aV)([g.id]),name:g.formFieldName,buttonLabel:"Button"});break;case x.A.TEXT_WIDGET:case x.A.DATE_WIDGET:m=new j.$o({annotationIds:(0,i.aV)([g.id]),name:g.formFieldName});break;case x.A.RADIO_BUTTON_WIDGET:m=new j.XQ({annotationIds:(0,i.aV)([g.id]),name:g.formFieldName,options:(0,i.aV)([new j.mv({label:o.formatMessage(Gh.labelX,{arg0:1}),value:`Value ${Lh}`})])});break;case x.A.CHECKBOX_WIDGET:m=new j.rF({annotationIds:(0,i.aV)([g.id]),name:g.formFieldName,options:(0,i.aV)([new j.mv({label:o.formatMessage(Gh.labelX,{arg0:1}),value:`Value ${Lh}`})])});break;case x.A.SIGNATURE_WIDGET:m=new j.Yo({annotationIds:(0,i.aV)([g.id]),name:g.formFieldName});break;case x.A.LIST_BOX_WIDGET:m=new j.Vi({annotationIds:(0,i.aV)([g.id]),name:g.formFieldName,options:(0,i.aV)([new j.mv({label:"Option 1",value:`Value ${Lh}`})])});break;case x.A.COMBO_BOX_WIDGET:m=new j.fB({annotationIds:(0,i.aV)([g.id]),name:g.formFieldName,options:(0,i.aV)([new j.mv({label:"Option 1",value:"Option 1"}),new j.mv({label:"Option 2",value:"Option 2"})])});break;default:throw new Error(`Unknown interaction mode: ${s}`)}if(m=m.set("id",(0,ks.C)()),c){const e=c(g,m);g=e.annotation||g,m=e.formField||m,(0,a.kG)(g instanceof j.x_,"widgetAnnotation must be an instance of WidgetAnnotation"),(0,a.kG)(m instanceof j.Wi,"formField must be an instance of FormField"),(0,a.kG)(g.formFieldName===m.name,"widgetAnnotation.formFieldName must be equal to formField.name"),(0,a.kG)(t===g.pageIndex,"You are not allowed to change the pageIndex")}e({type:te.vgx,annotationId:g.id}),null==u||u.create([g,m]),e((0,Mo.el)()),e((0,je.J4)((0,i.l4)([g.id]),Q.o.SELECTED))}))})),this._textLinesPromise=null,this._cancelTextPromise=null,this.state={hasBeenInViewport:e.inViewport,isOverviewRendered:!e.renderPagePreview}}shouldComponentUpdate(e,t){return!!e.page&&(this.props.isReused!==e.isReused||(this.props.page.pageIndex!==e.page.pageIndex||(!(!e.inViewport||this.props.inViewport)||(!(e.inViewport||!this.props.inViewport)||(e.shouldPrerender!==this.props.shouldPrerender||(e.inViewport?ze.O.call(this,e,t):this.props.interactionMode===x.A.CONTENT_EDITOR&&e.interactionMode!==x.A.CONTENT_EDITOR||this.props.viewportState.zoomLevel!==e.viewportState.zoomLevel))))))}UNSAFE_componentWillReceiveProps(e){e.inViewport&&!this.state.hasBeenInViewport&&this.setState({hasBeenInViewport:!0})}UNSAFE_componentWillMount(){(this.props.inViewport||this.props.shouldPrerender)&&this.componentWillEnterViewport(this.props),this.props.inViewport&&this.setState({hasBeenInViewport:!0})}UNSAFE_componentWillUpdate(e){this.props.isReused?(this._resetTextLines(),this._fetchPageContent(e)):!this.props.inViewport&&e.inViewport||e.shouldPrerender?this.componentWillEnterViewport(e):this.props.inViewport&&!e.inViewport&&this.componentWillExitViewport()}componentDidUpdate(e){this.state.isOverviewRendered&&this.props.onInitialOverviewRenderFinished&&this.props.parent!==e.parent&&this.props.onInitialOverviewRenderFinished(this.props.page.pageIndex)}componentWillEnterViewport(e){this._fetchPageContent(e)}_fetchPageContent(e){e.annotationManager.loadAnnotationsForPageIndex(e.page.pageIndex),null==e.page.textLines&&null==this._textLinesPromise&&this.fetchTextLinesForProps(e)}componentWillExitViewport(){this._resetTextLines()}_resetTextLines(){this._textLinesPromise&&this._cancelTextPromise&&(this._cancelTextPromise(),this._textLinesPromise=null)}async fetchTextLinesForProps(e){if(!this.props.enableTextLoading||this.props.interactionMode===x.A.CONTENT_EDITOR)return void e.dispatch((0,If.Lv)(e.page.pageIndex,(0,i.aV)()));const{promise:t,cancel:n}=e.backend.getTextContentTreeForPageIndex(e.page.pageIndex);this._textLinesPromise=t,this._cancelTextPromise=n;try{const t=await this._textLinesPromise;e.dispatch((0,If.Lv)(e.page.pageIndex,t))}catch(e){if(e&&!e.aborted)throw e}}isWithinRange(){const{page:{pageIndex:e},viewportState:{currentPageIndex:t}}=this.props;return e>=Math.min(0,t-2)&&e<=t+2}render(){const{props:e}=this,{page:t,intl:n,innerRef:o,viewportState:r,frameWindow:i,cropInfo:a}=e,{formatMessage:s}=n,l={width:t.pageSize.width*r.zoomLevel,height:t.pageSize.height*r.zoomLevel};let c={height:l.height,width:l.width,transform:B.sl.IDENTITY.rotate(-r.pagesRotation).toCssValue()};if(90===r.pagesRotation||270===r.pagesRotation){const e=(l.height-l.width)/2;c={height:l.width,width:l.height,transform:B.sl.IDENTITY.rotate(r.pagesRotation).translate({x:-e,y:e}).toCssValue()}}const u=F()({"PSPDFKit-Page":!0,[`PSPDFKit-Page-Rotation-${r.pagesRotation}-degree`]:!0,[jh().root]:!0,[jh()["deg-"+r.pagesRotation]]:!0,[jh().textHighlighterMode]:e.interactionMode===x.A.TEXT_HIGHLIGHTER||e.interactionMode===x.A.REDACT_TEXT_HIGHLIGHTER,[jh().hideCursor]:(0,nt.o6)(e.interactionMode)});return t?T.createElement("section",{className:u,style:l,ref:this.pageRef,"data-page-index":t.pageIndex,"data-page-is-loaded":null!==t.textLines,onScroll:this._handleScroll,key:t.pageKey,"aria-label":s(Gh.pageX,{arg0:t.pageLabel||t.pageIndex+1})},T.createElement("div",{tabIndex:e.documentHasActiveAnnotation?-1:0,className:jh().focusPage,ref:o}),this.state.hasBeenInViewport&&this.state.isOverviewRendered&&t.textLines?null:T.createElement(ue.TX,null,s(Ke.Z.loading)),T.createElement(Gf,{pageIndex:t.pageIndex,onEmit:this._handleOnPressEmit,element:"div"},(this.state.hasBeenInViewport||this.state.isOverviewRendered||e.shouldPrerender)&&T.createElement(Uf.Z,{inViewport:e.inViewport,shouldPrerender:!e.inViewport&&e.shouldPrerender,page:t,backend:e.backend,zoomLevel:r.zoomLevel,rotation:r.pagesRotation,renderPageCallback:e.renderPageCallback,onInitialOverviewRenderFinished:this._handleOverviewRenderFinished,allowedTileScales:e.allowedTileScales,viewportRect:r.viewportRect,forceDetailView:!1,renderPagePreview:e.renderPagePreview,isPageSizeReal:e.isPageSizeReal,inContentEditorMode:e.interactionMode===x.A.CONTENT_EDITOR}),e.interactionMode===x.A.CONTENT_EDITOR&&e.inViewport&&T.createElement(Mh,{backend:e.backend,zoomLevel:r.zoomLevel,page:t,frameWindow:i}),this.props.hintLinesPageIndex===t.pageIndex?T.createElement(Zh,{pageSize:t.pageSize}):null,this.state.hasBeenInViewport&&this.state.isOverviewRendered&&T.createElement(T.Fragment,null,T.createElement($f,{pageIndex:t.pageIndex,zoomLevel:r.zoomLevel}),T.createElement(Mu.Consumer,null,(n=>T.createElement(_f,{page:t,getScrollElement:n,setGlobalCursor:this.props.setGlobalCursor},t.textLines?T.createElement(eh,{dispatch:e.dispatch,enableTextSelection:e.enableTextSelection,zoomLevel:r.zoomLevel,rotation:r.pagesRotation,eventEmitter:e.eventEmitter,isTextCopyingAllowed:e.isTextCopyingAllowed,isPanModeEnabled:e.isPanModeEnabled,pageIndex:t.pageIndex,textLines:t.textLines,textLineScales:t.textLineScales}):null))),e.interactionMode===x.A.MARQUEE_ZOOM?T.createElement(ah,{pageIndex:t.pageIndex,pageSize:t.pageSize,scrollElement:e.scrollElement}):null,e.customOverlayItems.size>0&&T.createElement("div",null,e.customOverlayItems.map((e=>T.createElement(Zf,{key:e.id,item:e,rotation:r.pagesRotation,zoomLevel:r.zoomLevel})))))),e.interactionMode===x.A.DOCUMENT_CROP&&(null===a&&this.isWithinRange()||(null==a?void 0:a.pageIndex)===t.pageIndex)&&T.createElement("div",{style:c},T.createElement(bs,{viewportState:r,page:this.props.page,onAreaChangeComplete:this.onCropAreaChangeComplete,frameWindow:i,onAreaChangeStart:this.onCropAreaChangeStart})),(0,nt.o6)(e.interactionMode)&&T.createElement("div",{style:c},T.createElement(uh,{frameWindow:i,pageRef:this.pageRef,interactionMode:e.interactionMode,pageIndex:t.pageIndex,onCreate:this.createWidgetAnnotation,intl:e.intl}))):null}}const Vh=(0,Re.XN)(Uh),Gh=(0,Re.vU)({pageX:{id:"pageX",defaultMessage:"Page {arg0}",description:"Current page"},labelX:{id:"labelX",defaultMessage:"Label {arg0}",description:"Label"}});const Wh=(0,Eo.x)((function(e,t){var n;const o=e.pages.get(t.pageIndex),r=(null==o?void 0:o.customOverlayItemIds.map((t=>e.customOverlayItems.get(t))).toList())||null;return{frameWindow:e.frameWindow,enableTextLoading:(0,So.$Q)(e),enableTextSelection:e.interactionMode!==x.A.PAN,annotationManager:e.annotationManager,backend:e.backend,customOverlayItems:r,eventEmitter:e.eventEmitter,page:o,isTextCopyingAllowed:(0,So.HI)(e),renderPageCallback:e.renderPageCallback,interactionMode:e.interactionMode,documentHasActiveAnnotation:e.selectedAnnotationIds.size>0,allowedTileScales:e.allowedTileScales,isPanModeEnabled:e.interactionMode===x.A.PAN&&!tt.Ni,viewportState:e.viewportState,scrollElement:e.scrollElement,isReused:!!e.reuseState,renderPagePreview:e.renderPagePreview,isPageSizeReal:e.firstCurrentPageIndex===t.pageIndex||e.arePageSizesLoaded,hintLinesPageIndex:null===(n=e.hintLines)||void 0===n?void 0:n.pageIndex}}))(Vh);class qh extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"spreadRef",T.createRef()),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"pageIndexesWaitingForRender",(0,Hs.P1)(this.props.viewportState,this.props.spreadIndex)),(0,o.Z)(this,"_handleOverviewRenderFinished",(e=>{if(this.props.onOverviewRenderFinished){const t=this.pageIndexesWaitingForRender.indexOf(e);t>-1&&this.pageIndexesWaitingForRender.splice(t,1),0===this.pageIndexesWaitingForRender.length&&this.props.onOverviewRenderFinished&&this.props.onOverviewRenderFinished(this.props.spreadIndex)}}))}render(){const{spreadIndex:e,viewportState:t,inViewport:n,shouldPrerender:o,onCropChange:r,cropInfo:i}=this.props,a=(0,Hs.Xk)(t,e);return T.createElement("div",{style:{width:a.width*t.zoomLevel,height:a.height*t.zoomLevel},hidden:this.props.hidden},(0,Hs.P1)(t,e).map((a=>{const s=(0,de.DB)(B.sl.IDENTITY,t,a,e,t.zoomLevel),l=this.props.pageKeys.get(a);return T.createElement("div",{key:l,style:{transform:s.toCssValue(!0),transformOrigin:"0 0",position:"absolute"}},T.createElement(xe.Reparent,{id:`page-${l}`},T.createElement(Wh,{pageIndex:a,inViewport:n,shouldPrerender:o,viewportRect:t.viewportRect,onInitialOverviewRenderFinished:this._handleOverviewRenderFinished,innerRef:this.props.innerRef,parent:this.spreadRef,onCropChange:r,cropInfo:i,setGlobalCursor:this.props.setGlobalCursor})))})))}}var Hh=n(40045);const $h=T.memo((function(e){const{viewportState:t}=e,{lastScrollUsingKeyboard:n}=t,o=T.useRef(null),r=(0,Hs.dF)(t,t.currentPageIndex),[i,a]=(0,Hs.wU)(t,r);return T.useEffect((()=>{r-Je.J8>0&&o.current&&n&&o.current.focus({preventScroll:!0})}),[r,n]),0===t.viewportRect.width||0===t.viewportRect.height?null:T.createElement(Hh.Z,{dispatch:e.dispatch,viewportState:t},T.createElement("div",null,function(){const{viewportState:t,viewportState:{viewportRect:n,scrollPosition:s,zoomLevel:l},onCropChange:c,cropInfo:u}=e,d=(0,Hs.kd)(t),p=s.y,f=s.y+n.height/l,h=(0,Hs.Ad)(t);let m=0,g=0;const v=[];for(let n=0;np,y=(h-s.width)/2,b=new B.UL({left:y,top:m,width:s.width,height:s.height}).scale(l),w={left:b.left,top:b.top,width:b.width,height:b.height,position:"absolute"};if(g+=t.spreadSpacing,m=g,(0,Hs.wX)(n,r)){const s=n===r,l=(0,Hs.nw)(t)===C.X.DOUBLE?n.toString():e.pageKeys.get(n);v.push(T.createElement("div",{key:l,className:"PSPDFKit-Spread",style:w,"data-spread-index":n},T.createElement(qh,{spreadIndex:n,viewportState:t,inViewport:d,shouldPrerender:!s&&"number"==typeof i&&r===i,onOverviewRenderFinished:a,innerRef:s?o:void 0,onCropChange:c,cropInfo:u,pageKeys:e.pageKeys,setGlobalCursor:e.setGlobalCursor})))}}return v}()))}));var Yh=n(87222),Xh=n(74305);function Jh(){return Jh=Object.assign||function(e){for(var t=1;t{const{decorative:n,orientation:o=rm,...r}=e,i=sm(o)?o:rm,a=n?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return(0,T.createElement)(nm.WV.div,om({"data-orientation":i},a,r,{ref:t}))}));function sm(e){return im.includes(e)}am.propTypes={orientation(e,t,n){const o=e[t],r=String(o);return o&&!sm(o)?new Error(function(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${rm}\`.`}(r,n)):null}};const lm=am;function cm(){return cm=Object.assign||function(e){for(var t=1;t{const{pressed:n,defaultPressed:o=!1,onPressedChange:r,...i}=e,[a=!1,s]=(0,dm.T)({prop:n,onChange:r,defaultProp:o});return(0,T.createElement)(nm.WV.button,um({type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":e.disabled?"":void 0},i,{ref:t,onClick:(0,Qh.M)(e.onClick,(()=>{e.disabled||s(!a)}))}))}));var fm=n(69409);const hm="ToggleGroup",[mm,gm]=(0,em.b)(hm,[tm.Pc]),vm=(0,tm.Pc)(),ym=T.forwardRef(((e,t)=>{const{type:n,...o}=e;if("single"===n){const e=o;return T.createElement(Sm,cm({},e,{ref:t}))}if("multiple"===n){const e=o;return T.createElement(Em,cm({},e,{ref:t}))}throw new Error("Missing prop `type` expected on `ToggleGroup`")})),[bm,wm]=mm(hm),Sm=T.forwardRef(((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=(()=>{}),...i}=e,[a,s]=(0,dm.T)({prop:n,defaultProp:o,onChange:r});return T.createElement(bm,{scope:e.__scopeToggleGroup,type:"single",value:a?[a]:[],onItemActivate:s,onItemDeactivate:T.useCallback((()=>s("")),[s])},T.createElement(Dm,cm({},i,{ref:t})))})),Em=T.forwardRef(((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=(()=>{}),...i}=e,[a=[],s]=(0,dm.T)({prop:n,defaultProp:o,onChange:r}),l=T.useCallback((e=>s(((t=[])=>[...t,e]))),[s]),c=T.useCallback((e=>s(((t=[])=>t.filter((t=>t!==e))))),[s]);return T.createElement(bm,{scope:e.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:l,onItemDeactivate:c},T.createElement(Dm,cm({},i,{ref:t})))})),[Pm,xm]=mm(hm),Dm=T.forwardRef(((e,t)=>{const{__scopeToggleGroup:n,disabled:o=!1,rovingFocus:r=!0,orientation:i,dir:a,loop:s=!0,...l}=e,c=vm(n),u=(0,fm.gm)(a),d={role:"group",dir:u,...l};return T.createElement(Pm,{scope:n,rovingFocus:r,disabled:o},r?T.createElement(tm.fC,cm({asChild:!0},c,{orientation:i,dir:u,loop:s}),T.createElement(nm.WV.div,cm({},d,{ref:t}))):T.createElement(nm.WV.div,cm({},d,{ref:t})))})),Cm="ToggleGroupItem",km=T.forwardRef(((e,t)=>{const n=wm(Cm,e.__scopeToggleGroup),o=xm(Cm,e.__scopeToggleGroup),r=vm(e.__scopeToggleGroup),i=n.value.includes(e.value),a=o.disabled||e.disabled,s={...e,pressed:i,disabled:a},l=T.useRef(null);return o.rovingFocus?T.createElement(tm.ck,cm({asChild:!0},r,{focusable:!a,active:i,ref:l}),T.createElement(Am,cm({},s,{ref:t}))):T.createElement(Am,cm({},s,{ref:t}))})),Am=T.forwardRef(((e,t)=>{const{__scopeToggleGroup:n,value:o,...r}=e,i=wm(Cm,n),a={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s="single"===i.type?a:void 0;return T.createElement(pm,cm({},s,r,{ref:t,onPressedChange:e=>{e?i.onItemActivate(o):i.onItemDeactivate(o)}}))})),Om=ym,Tm=km,Im="Toolbar",[Fm,Mm]=(0,em.b)(Im,[tm.Pc,gm]),_m=(0,tm.Pc)(),Rm=gm(),[Nm,Lm]=Fm(Im),Bm=(0,T.forwardRef)(((e,t)=>{const{__scopeToolbar:n,orientation:o="horizontal",dir:r,loop:i=!0,...a}=e,s=_m(n),l=(0,fm.gm)(r);return(0,T.createElement)(Nm,{scope:n,orientation:o,dir:l},(0,T.createElement)(tm.fC,Jh({asChild:!0},s,{orientation:o,dir:l,loop:i}),(0,T.createElement)(nm.WV.div,Jh({role:"toolbar","aria-orientation":o,dir:l},a,{ref:t}))))})),jm="ToolbarSeparator",zm=(0,T.forwardRef)(((e,t)=>{const{__scopeToolbar:n,...o}=e,r=Lm(jm,n);return(0,T.createElement)(lm,Jh({orientation:"horizontal"===r.orientation?"vertical":"horizontal"},o,{ref:t}))})),Km=(0,T.forwardRef)(((e,t)=>{const{__scopeToolbar:n,...o}=e,r=_m(n);return(0,T.createElement)(tm.ck,Jh({asChild:!0},r,{focusable:!e.disabled}),(0,T.createElement)(nm.WV.button,Jh({type:"button"},o,{ref:t})))})),Zm="ToolbarToggleGroup",Um=(0,T.forwardRef)(((e,t)=>{const{__scopeToolbar:n,...o}=e,r=Lm(Zm,n),i=Rm(n);return(0,T.createElement)(Om,Jh({"data-orientation":r.orientation,dir:r.dir},i,o,{ref:t,rovingFocus:!1}))})),Vm=(0,T.forwardRef)(((e,t)=>{const{__scopeToolbar:n,...o}=e,r=Rm(n),i={__scopeToolbar:e.__scopeToolbar};return(0,T.createElement)(Km,Jh({asChild:!0},i),(0,T.createElement)(Tm,Jh({},r,o,{ref:t})))})),Gm=Bm,Wm=zm,qm=Km,Hm=Um,$m=Vm;var Ym,Xm=n(12921),Jm=n(54941);const Qm=e=>{let{rect:t,onInteractOutside:n,onEscapeKeyDown:o,children:r,onOpenAutoFocus:i,contentClassName:a}=e;return T.createElement(Jm.fC,{open:!!t},T.createElement(Jm.ee,{style:{position:"absolute",left:null==t?void 0:t.left,top:null==t?void 0:t.top,width:null==t?void 0:t.width,height:null==t?void 0:t.height,visibility:"hidden"}},Ym||(Ym=T.createElement("div",null,"Demo"))),T.createElement(Jm.VY,{sideOffset:10,onInteractOutside:n,onOpenAutoFocus:i,onEscapeKeyDown:o,className:a},r))};var eg=n(14526),tg=n.n(eg),ng=n(42308),og=n(66489),rg=n.n(og),ig=n(23756),ag=n.n(ig);const sg=["label","errorMessage","inputClassName","className","disablePadding"];function lg(e){let{label:t,errorMessage:n,inputClassName:o,className:i,disablePadding:a}=e,s=(0,r.Z)(e,sg);return T.createElement("div",{className:F()(!a&&ag().wrapper,i)},T.createElement("label",{className:ag().label},t,s.required&&"*",T.createElement(ue.oi,(0,De.Z)({},s,{className:F()(ag().input,{[ag().inputError]:!!n},o)}))),n&&T.createElement("span",{className:ag().errorLabel},n))}var cg=n(51205);const ug={uri:"uri",page:"page"},dg="edit",pg="hover",fg="open";function hg(e){if(!e.action)return null;const t=e.action;return t instanceof j.lm?t.uri:t.pageIndex+1}function mg(e){return T.createElement("div",{className:F()(rg().container)},T.createElement("div",{className:rg().innerContainer},T.createElement("div",{className:rg().content},T.createElement(gg,e))))}function gg(e){var t,o;let{pages:r,dispatch:i,annotation:a}=e;const s=(0,Re.YB)(),l=a.action instanceof j.Di,c=a.action instanceof j.lm;let u;l&&(u=a.action),c&&(u=a.action);const d=(0,T.useMemo)((()=>!c&&!l||c?ug.uri:ug.page),[l,c]),[p,f]=(0,T.useState)(d),[h,m]=(0,T.useState)((null===(t=u)||void 0===t?void 0:t.uri)||""),[g,v]=(0,T.useState)((null===(o=u)||void 0===o?void 0:o.pageIndex)+1||""),[y,b]=(0,T.useState)(""),w=p===ug.uri,S=(0,T.useCallback)((e=>r.get(e-1)),[r]),E=(0,T.useCallback)((()=>{const e=Number(g);if(e)if(S(e)){const t=new j.Di({pageIndex:e-1}),n=a.set("action",t);i((0,Qt.FG)(n))}else b(s.formatMessage(yg.invalidPageNumber));else b(s.formatMessage(yg.invalidPageNumber))}),[a,i,g,S]),P=(0,T.useCallback)((()=>{if(!h)return void b(s.formatMessage(yg.invalidPageLink));const e=new j.lm({uri:h}),t=a.set("action",e);i((0,Qt.FG)(t))}),[a,i,h]),x=(0,T.useCallback)((()=>{if(w)return T.createElement(lg,{label:s.formatMessage(Ke.Z.linkAnnotation),value:h,onChange:e=>{m(e.target.value),b("")},onBlur:P,errorMessage:y,placeholder:"www.example.com",disablePadding:!0})}),[y,s,w,h,P]),D=(0,T.useCallback)((()=>{if(!w)return T.createElement(lg,{disablePadding:!0,label:s.formatMessage(yg.targetPageLink),value:g,onChange:e=>{v(e.target.value),y&&b("")},onBlur:E,placeholder:"1",errorMessage:y})}),[y,s,w,g,E]);return T.createElement(T.Fragment,null,T.createElement("label",{className:rg().label},s.formatMessage(yg.linkTo),T.createElement(ue.Ee,{inputName:"LinkTo",label:s.formatMessage(Ke.Z.horizontalAlignment),selectedOption:p,labelClassNamePrefix:"PSPDFKit-Link-Popover-Editor-LinkTo",wrapperClasses:rg().radioGroupWrapper,options:Object.keys(ug).map((e=>({value:e,label:s.formatMessage(yg[`${e}Link`]),iconPath:n(11379)}))),onChange:e=>{f(ug[e]),y&&b("")},isButton:!0,showLabel:!0})),x(),D())}function vg(e){const{viewportState:t,isHidden:n,annotation:o,isHover:r,dispatch:i}=e,a=(0,Re.YB)(),[s,l]=(0,T.useState)(!1),c=(0,T.useMemo)((()=>(0,$i.q)((0,J.Wj)(o,t.pagesRotation,t.viewportRect.getSize()).apply((0,de.cr)(t,t.currentPageIndex).translate(t.scrollPosition.scale(t.zoomLevel))),t.viewportRect.getSize())),[o,t]),u=(0,T.useMemo)((()=>o&&r?pg:o&&!o.action||s?dg:fg),[o,r,s]),d=(null==o?void 0:o.action)instanceof j.lm,p=(0,T.useMemo)((()=>u===dg?a.formatMessage(yg.linkSettingsPopoverTitle):d?hg(o):`${a.formatMessage(yg.linkToPage,{arg0:hg(o)})}: ${hg(o)}`),[o,u,a]),f=(0,T.useCallback)((t=>{if(t){const e=o.action instanceof j.lm;return T.createElement("div",{className:F()(rg().container)},T.createElement("div",{className:rg().contentRow},T.createElement(ue.zx,{className:F()("PSPDFKit-Link-Popover-Editor-Edit-Button"),onClick:()=>l(!0)},a.formatMessage(Ke.Z.edit)),T.createElement(ue.zx,{className:F()("PSPDFKit-Link-Popover-Editor-Open-Button"),onClick:()=>{i((0,je.fz)()),i((0,$r.oo)(o))},primary:!0},a.formatMessage(e?yg.openLink:yg.goToPageLink))))}return T.createElement(mg,e)}),[o,i,a,e]),h=(0,T.useCallback)((()=>{switch(u){case dg:return f();case fg:return f(!0);default:return null}}),[u,f]);return T.createElement(cg.Z,{referenceRect:c,viewportState:t,isHidden:n,className:"PSPDFKit-Link-Editor-Popover",wrapperClassName:"PSPDFKit-Link-Editor",title:p,centeredTitle:u!==dg},h())}const yg=(0,Re.vU)({linkSettingsPopoverTitle:{id:"linkSettingsPopoverTitle",defaultMessage:"Link Settings",description:"Link settings popover title"},linkTo:{id:"linkTo",defaultMessage:"Link To",description:"Link to popover option"},linkToPage:{id:"linkToPage",defaultMessage:"Link to Page",description:"Link to page action"},targetPageLink:{id:"targetPageLink",defaultMessage:"Page Number",description:"Link settings popover target link"},linkSettings:{id:"linkSettings",defaultMessage:"Link Settings",description:"Link Settings"},uriLink:{id:"uriLink",defaultMessage:"Website",description:"Link to uri"},pageLink:{id:"pageLink",defaultMessage:"Page",description:"Link to a page"},openLink:{id:"openLink",defaultMessage:"Open Link",description:"Open link to a page"},goToPageLink:{id:"goToPageLink",defaultMessage:"Go to Page",description:"Go to a page link"},invalidPageNumber:{id:"invalidPageNumber",defaultMessage:"Enter a valid page number.",description:"Invalid page number"},invalidPageLink:{id:"invalidPageLink",defaultMessage:"Enter a valid page link.",description:"Invalid page link"}}),bg=e=>{var t,o,r,i;let{editor:s,closeInlineToolbar:l,container:c}=e;const u=(0,T.useCallback)((e=>{const[t]=ng.ML.nodes(e,{match:e=>!ng.ML.isEditor(e)&&ng.W_.isElement(e)&&"link"===e.type});return t}),[]),d=(0,T.useRef)(s&&(null===(t=u(s))||void 0===t||null===(o=t[0])||void 0===o?void 0:o.url)),[p,f]=T.useState(s?null===(r=u(s))||void 0===r||null===(i=r[0])||void 0===i?void 0:i.url:""),[h,m]=T.useState(!1),[g,v]=T.useState(!1),{formatMessage:y}=(0,Re.YB)(),b=T.useCallback((e=>{f(e.target.value)}),[f]),w=(0,T.useCallback)((e=>{ng.YR.unwrapNodes(e,{match:e=>!ng.ML.isEditor(e)&&ng.W_.isElement(e)&&"link"===e.type})}),[]),S=(0,T.useCallback)((e=>{if(!s)return;u(s)&&ue.ri.unwrapNode(s,"link");const{selection:t}=s,n=t&&ng.e6.isCollapsed(t);ue.ri.wrapNode(s,{type:"link",url:e,children:n?[{text:e,type:"text"}]:[]})}),[s,u]),E=T.useCallback((()=>{(0,a.kG)(s),p?S(p):w(s),l()}),[s,p,l,w,S]),P=T.useCallback((()=>{(0,a.kG)(s),w(s),l()}),[s,w,l]),x=T.useCallback((()=>!d.current||g?T.createElement("div",null,T.createElement("label",{htmlFor:"linkUrl"},y(Ke.Z.linkAnnotation)),T.createElement("input",{id:"linkUrl",placeholder:"https://yourdomain.com",value:p,type:"url",onChange:b,onKeyPress:e=>{"Enter"===e.key&&E()}})):T.createElement("div",{className:F()(tg().linkEditorMenu)},T.createElement("div",{className:F()(tg().linkEditorRow,tg().linkEditorCenteredRow)},T.createElement(ue.zx,{className:F()("PSPDFKit-Link-Popover-Editor-Edit-Button",tg().linkEditorFullWidthButton),onClick:()=>v(!0)},y(Ke.Z.edit)),T.createElement(ue.zx,{className:F()("PSPDFKit-Link-Popover-Editor-Open-Button",tg().linkEditorFullWidthButton),onClick:P,primary:!0},y(wg.removeLink))))),[y,b,g,p,P]),D=T.useCallback((()=>d.current&&!g?null:g?T.createElement("div",{className:F()(tg().linkSaveContainer,tg().linkEditorMenu)},T.createElement("div",{className:F()(tg().linkEditorRow,tg().linkEditorEndAlignedRow)},T.createElement(ue.zx,{className:F()("PSPDFKit-Link-Popover-Editor-Edit-Button",tg().linkEditorFooterButton),onClick:()=>v(!1)},y(Ke.Z.cancel)),T.createElement(ue.zx,{className:F()("PSPDFKit-Link-Popover-Editor-Open-Button",tg().linkEditorFooterButton),onClick:E,primary:!0},y(Ke.Z.save)))):T.createElement("button",{className:tg().removeLink,disabled:!p&&!d.current||d.current&&d.current===p&&!p,onClick:E},d.current?p&&d.current!==p?y(wg.editLink):y(wg.removeLink):y(wg.addLink))),[y,E,g,p]);return s?T.createElement(Xm.fC,{open:h,modal:!1},T.createElement(Xm.xz,{asChild:!0},T.createElement(qm,{onKeyDown:e=>{"Enter"!==e.key&&"Spacebar"!==e.key&&" "!==e.key||(e.nativeEvent.stopImmediatePropagation(),m(!h))},onClick:()=>m(!h),className:F()(tg().inlineToolbarButton,{[tg().linkActive]:!!u(s)}),title:y(wg.addLink),"aria-label":y(wg.addLink)},T.createElement(Ye.Z,{src:n(55676)}))),T.createElement(Xm.Uv,{container:c},T.createElement(Xm.VY,{onPointerDownOutside:()=>m(!1),className:F()(tg().linkEditor,"PSPDFKit-Rich-Link-Editor-Dropdown")},T.createElement("h4",{className:F()(tg().linkEditorHeader,{[tg().centeredLinkEditorHeader]:!(g||!d.current)})},g||!d.current?y(yg.linkSettings):d.current),x(),D(),T.createElement(Xm.Eh,{className:tg().linkEditorArrow})))):null},wg=(0,Re.vU)({addLink:{id:"addLink",defaultMessage:"Add Link",description:"Add Link"},removeLink:{id:"removeLink",defaultMessage:"Remove Link",description:"Remove Link"},editLink:{id:"editLink",defaultMessage:"Edit Link",description:"Edit Link"}});var Sg;function Eg(e){"Enter"!==e.key&&"Spacebar"!==e.key&&" "!==e.key||e.nativeEvent.stopImmediatePropagation()}const Pg=(0,Re.vU)({commentEditorLabel:{id:"commentEditorLabel",defaultMessage:"Add your comment…",description:"Label for comment area textarea"},reply:{id:"reply",defaultMessage:"Reply",description:"Button text for adding a comment reply"}}),xg=e=>{let{name:t,avatarUrl:o,description:r}=e;return T.createElement("div",{className:F()(tg().mentionDropdownList,{[tg().mentionDropdownListWithoutDescription]:!r})},o?T.createElement("img",{className:tg().mentionImg,src:o,alt:t}):T.createElement(Ye.Z,{className:tg().mentionImg,src:n(32443)}),T.createElement("span",{className:tg().mentionName},t),!!r&&T.createElement("span",{className:tg().mentionDescription},r))},Dg=e=>{let{color:t,onValueChange:n,children:o,includeTransparent:r,label:i,frameWindow:s}=e;const l=mt.Ei.COLOR_PRESETS,{formatMessage:c}=(0,Re.YB)(),[u,d]=T.useState(!1);return T.createElement(Xm.fC,{open:u,modal:!1},T.createElement(Xm.xz,{asChild:!0},T.createElement(qm,{"aria-label":i,title:i,onKeyDown:e=>{"Enter"!==e.key&&"Spacebar"!==e.key&&" "!==e.key||(e.nativeEvent.stopImmediatePropagation(),d(!u))},onClick:()=>d(!u),className:tg().inlineToolbarButton},o)),T.createElement(Xm.Uv,{container:s.document.body},T.createElement(Xm.VY,{align:"start",className:F()(tg().colorPickerContent,"PSPDFKit-Color-Picker-Dropdown"),asChild:!0,onPointerDownOutside:()=>d(!1),defaultValue:null!=t?t:"transparent"},T.createElement(Xm.Ee,{value:null!=t?t:"transparent",onValueChange:n},l.filter((e=>!!e.color&&!e.color.equals(j.Il.TRANSPARENT))).map((e=>{(0,a.kG)(e.color);const t=e.color.toHex();return T.createElement(Xm.Rk,{className:tg().colorPickerItem,value:t,key:t,"aria-label":c(e.localization),title:c(e.localization),asChild:!0},T.createElement("div",{style:{backgroundColor:t}}))})),r&&T.createElement(Xm.Rk,{className:tg().colorPickerItem,value:"transparent",asChild:!0},T.createElement("div",{className:tg().colorPickerCheckered},Sg||(Sg=T.createElement("div",null))))))))},Cg=e=>{let{comment:t,dispatch:o,isFirstComment:r,keepSelectedTool:s,onEditorInit:l,frameWindow:c,anonymousComments:u,isEditing:d,onChangeDone:p,className:f,mentionableUsers:h,maxMentionSuggestions:m}=e;const g=(0,T.useRef)(t),{formatMessage:v}=(0,Re.YB)(),[y,b]=T.useState(t.text.value&&ue.ri.getText(t.text.value).length>0),[w,S]=T.useState(t.text.value||""),E=T.useRef(null),[P,x]=T.useState(null),D=T.useRef(null),[C,k]=T.useState(!1),[A,O]=(0,T.useState)(null),I=(0,T.useRef)(null),M=T.useCallback((()=>{if(d)return;if(w===t.text.value)return;const e=t.set("text",{format:"xhtml",value:w.trim()});o((0,bi.gk)((0,i.aV)([e])))}),[o,t,w,d]),_=T.useCallback((()=>{if(!y)return;let e=t;d&&(e=e.set("text",{format:"xhtml",value:w.trim()})),o((0,bi.BY)(e,g.current));const n=e.rootId;(0,a.kG)(n),d||o((0,bi.mh)(n)),r&&o((0,je.Df)((0,i.l4)([n]),null)),s&&o((0,En.k6)()),null==p||p()}),[o,t,r,y,d,w,s,p]),R=T.useCallback((()=>{const e=t.set("isAnonymous",!t.isAnonymous);o((0,bi.gk)((0,i.aV)([e])))}),[t,o]),N=T.useCallback((e=>{C&&!e||((0,a.kG)(E.current),x(null),O(null),E.current.selection=null,Xh.F3.focus(E.current))}),[E.current,C]),L=(0,T.useCallback)((()=>{const e=E.current,t=c.getSelection();if(null==e||!e.selection||!D.current||!D.current.contains(null==t?void 0:t.anchorNode))return;if(!ue.ri.isRangeSelected(e))return x(null),void O(null);const n=Xh.F3.toDOMRange(e,e.selection).getBoundingClientRect(),o=D.current.getBoundingClientRect();O({fontColor:(0,qn.BK)(ue.ri.getSelectedNodesColor(e,"fontColor")),backgroundColor:(0,qn.BK)(ue.ri.getSelectedNodesColor(e,"backgroundColor")),inlineFormat:["bold","italic","underline"].map((t=>"underline"===t?ue.ri.isSelectionUnderlined(e):ue.ri.isMarkActive(e,t)?t:null)).filter(Boolean)}),x({height:n.height,width:n.width,top:n.top-o.top,left:n.left-o.left})}),[c]);(0,T.useEffect)((()=>{var e,t,n;const o=E.current;if(!o)return;function r(e){"Escape"===e.key?(N(!0),ue.ri.isRangeSelected(o)&&(e.preventDefault(),e.stopPropagation())):"Tab"===e.key&&(e.preventDefault(),e.stopPropagation())}function i(e){"keyup"===e.type&&k(!0)}const a=(0,Cc.Z)(L,50);return c.document.addEventListener("selectionchange",i),c.document.addEventListener("keyup",r,{capture:!0}),null===(e=D.current)||void 0===e||e.addEventListener("pointerup",L),null===(t=D.current)||void 0===t||t.addEventListener("keyup",a),null===(n=D.current)||void 0===n||n.addEventListener("dblclick",a),()=>{var e,t,n;c.document.removeEventListener("selectionchange",i),c.document.removeEventListener("keyup",r,{capture:!0}),null===(e=D.current)||void 0===e||e.removeEventListener("pointerup",L),null===(t=D.current)||void 0===t||t.removeEventListener("keyup",a),null===(n=D.current)||void 0===n||n.removeEventListener("dblclick",a)}}),[N,c.document,L]);const B=T.useCallback((e=>{null==l||l(e),E.current=e}),[l]),j=e=>{const t=E.current;(0,a.kG)(t),ue.ri.toggleMark(t,e),N()},z=T.useCallback((e=>{S(e),b(ue.ri.getText(e).length>0)}),[S,b]);return T.createElement("div",{className:F()(tg().commentWrapper,f,"PSPDFKit-Comment-Editor")},T.createElement("div",{ref:D,style:{position:"relative"},onBlur:M},T.createElement(ue.Hp,{title:v(Pg.commentEditorLabel),users:h,autoFocus:!!r,text:t.text.value||"",onMentionSuggestionsOpenChange:M,onEditorInit:B,onValueChange:z,placeholder:v(Pg.commentEditorLabel),className:F()(tg().commentEditorInput,"PSPDFKit-Comment-Editor-Input"),autoOpenKeyboard:!tt.TL&&!tt.Dt,mentionListRenderer:xg,mentionDropdownClassName:tg().mentionDropdown,mentionListClassName:tg().mentionDropdownListWrapper,ref:I,maxMentionSuggestions:m}),T.createElement(Qm,{rect:P,onInteractOutside:N,container:c.document.body,onOpenAutoFocus:e=>e.preventDefault(),contentClassName:"PSPDFKit-Comment-Editor-Inline-Toolbar"},T.createElement(Gm,{className:tg().inlineToolbar},T.createElement(Dg,{color:null==A?void 0:A.fontColor,onValueChange:e=>{ue.ri.applyStyle(E.current,"fontColor",e),N()},frameWindow:c,label:v(Ke.Z.color)},T.createElement("div",{role:"button",className:tg().inlineToolbarButton},T.createElement(Ye.Z,{src:n(19587)}),T.createElement(Ye.Z,{className:tg().caret,src:n(64762)}))),T.createElement(Wm,{className:tg().inlineToolbarSeparator}),T.createElement(Dg,{color:null==A?void 0:A.backgroundColor,onValueChange:e=>{ue.ri.applyStyle(E.current,"backgroundColor",e),N()},includeTransparent:!0,label:v(Ke.Z.fillColor),frameWindow:c},T.createElement("div",{role:"button",className:tg().inlineToolbarButton},T.createElement(Ye.Z,{src:n(59601)}),T.createElement(Ye.Z,{className:tg().caret,src:n(64762)}))),T.createElement(Wm,{className:tg().inlineToolbarSeparator}),T.createElement(Hm,{type:"multiple",value:null==A?void 0:A.inlineFormat,className:tg().inlineToolbarGroup},T.createElement($m,{onClick:()=>{j("bold")},value:"bold",className:tg().inlineToolbarButton,"aria-label":v(Ke.Z.bold),title:v(Ke.Z.bold)},T.createElement(Ye.Z,{role:"presentation",src:n(99604)})),T.createElement($m,{onClick:()=>j("italic"),value:"italic",className:tg().inlineToolbarButton,"aria-label":v(Ke.Z.italic),title:v(Ke.Z.italic)},T.createElement(Ye.Z,{role:"presentation",src:n(99082)})),T.createElement($m,{onClick:()=>j("underline"),value:"underline",className:tg().inlineToolbarButton,"aria-label":v(Ke.Z.underline),title:v(Ke.Z.underline)},T.createElement(Ye.Z,{role:"presentation",src:n(80394)}))),T.createElement(Wm,{className:tg().inlineToolbarSeparator}),T.createElement(bg,{container:c.document.body,editor:E.current,closeInlineToolbar:N})))),T.createElement("div",{className:tg().commentEditorActions},T.createElement("div",{className:tg().commentActionsFooter},!!h.length&&T.createElement("button",{className:tg().commentEditorAction,onClick:()=>{var e;null===(e=I.current)||void 0===e||e.startMention()},title:v(Ke.Z.anonymous),"aria-label":v(Ke.Z.anonymous)},T.createElement(Ye.Z,{role:"presentation",src:n(35122)})),!!u&&T.createElement("button",{className:F()(tg().commentEditorAction,{[tg().commentEditorAnonymityActive]:t.isAnonymous}),onClick:R,"aria-checked":!!t.isAnonymous,role:"checkbox",title:v(Ke.Z.anonymous),"aria-label":v(Ke.Z.anonymous)},T.createElement(Ye.Z,{role:"presentation",src:n(15445)}))),T.createElement("div",{className:tg().editingCommentText},d?T.createElement(T.Fragment,null,T.createElement("button",{type:"button",title:v(Ke.Z.discard),"aria-label":v(Ke.Z.discard),onClick:p,className:F()(tg().editingCommentActionButton,tg().editingCommentActionCancel)},T.createElement(Ye.Z,{src:n(4587)})),T.createElement("button",{title:v(Ke.Z.edit),"aria-label":v(Ke.Z.edit),type:"submit",className:F()(tg().editingCommentActionButton,tg().editingCommentActionSave),onClick:_},T.createElement(Ye.Z,{src:n(33862)}))):T.createElement("button",{title:v(r?Ke.Z.commentAction:Pg.reply),"aria-label":v(r?Ke.Z.commentAction:Pg.reply),className:F()(tg().editingCommentActionButton,tg().editingCommentActionSaveNew,"PSPDFKit-Comment-Editor-Save-Button"),disabled:!y,"aria-disabled":!y,onKeyDown:Eg,onClick:_},T.createElement(Ye.Z,{src:n(96447)})))))};var kg,Ag,Og=n(37676);const Tg=e=>e.children;const Ig=(0,A.$j)((function(e,t){return{isReadOnly:(0,So.Ez)(t.comment,e),canDeleteCommentCP:!!(0,oi.Ss)(t.comment,e),canEditCommentCP:!!(0,oi.kR)(t.comment,e),dateTimeStringCallback:e.dateTimeString,frameWindow:e.frameWindow,anonymousComments:e.anonymousComments,mentionableUsers:e.mentionableUsers}}))((function(e){const{comment:t,onToggleContent:n,dispatch:o,isGrouped:r,isExpanded:i,isReadOnly:a,canDeleteCommentCP:s,canEditCommentCP:l,dateTimeStringCallback:c,frameWindow:u,anonymousComments:d,mentionableUsers:p,maxMentionSuggestions:f}=e,{text:h,isAnonymous:m}=t,g=i&&!a&&s,v=i&&!a&&l,[y,b]=T.useState(!1),[w,S]=T.useState(!1);T.useEffect((()=>{!i&&w&&S(!1)}),[i,w]);const E=(0,qn.KY)(h.value||"").length>120,[P,x]=T.useState(!E),D=`Comment-${t.id}`,C=T.useCallback((e=>{E&&(e.stopPropagation(),x(!P),n&&n(!P))}),[P,E,x,n]),k=T.useCallback((()=>{o((0,bi.UM)(t))}),[t,o]),{formatDate:A,formatMessage:O}=(0,Re.YB)();let I="?";null==t.creatorName||t.isAnonymous||(I=t.creatorName.split(" ").map((e=>e[0])).join(" "));const M=O(P?Ke.Z.showLess:Ke.Z.showMore);let _=null;c&&(_=c({dateTime:t.createdAt,element:Nu.COMMENT_THREAD,object:t})),null==_&&(_=A(t.createdAt,{hour12:!0,hour:"numeric",minute:"numeric",month:"short",day:"numeric"}));const R=T.useCallback((e=>{const n=t.set("isAnonymous",!!e);o((0,bi.DO)(n)),S(!1)}),[t,o]),N=T.useMemo((()=>{const e=[];return v&&e.push({content:O(Yu.editContent),onClick:()=>{S(!0)}}),g&&e.push({content:O(Ke.Z.delete),onClick:()=>{b(!0)}}),v&&d&&e.push(kg||(kg=T.createElement(ue.nB,null)),T.createElement(ue.ub,{checked:!!m,onCheckedChange:R},O(Ke.Z.anonymous))),e}),[m,g,O,v,R]);return T.createElement("div",{className:F()(tg().comment,"PSPDFKit-Comment")},T.createElement("div",{className:F()(tg().header,"PSPDFKit-Comment-Header")},!r&&T.createElement("div",{className:F()(tg().avatar,"PSPDFKit-Comment-Avatar")},T.createElement(Ie,{key:t.creatorName,renderer:"CommentAvatar"},T.createElement(Tg,{comment:t},T.createElement("span",{title:t.isAnonymous?O(Ke.Z.anonymous):t.creatorName||void 0},I)))),T.createElement("div",{className:tg().nameAndDate},!r&&T.createElement("div",{className:F()(tg().creatorName,"PSPDFKit-Comment-CreatorName")},m?O(Ke.Z.anonymous):t.creatorName||O(Ke.Z.anonymous)),T.createElement("time",{dateTime:t.createdAt.toISOString(),className:F()(tg().commentDate,"PSPDFKit-Comment-CommentDate")},_)),!!N.length&&T.createElement(ue.N9,{container:null==u?void 0:u.document.body,label:O(Yu.commentOptions),items:N,alignContent:"end",className:tg().dropdownWrapper})),w?T.createElement(Cg,{maxMentionSuggestions:f,mentionableUsers:p,className:tg().editingCommentWrapper,comment:t,isEditing:!0,frameWindow:u,anonymousComments:d,dispatch:o,keepSelectedTool:!1,onChangeDone:()=>S(!1)}):T.createElement("div",{className:F()(tg().commentText,"PSPDFKit-Comment-Text")},T.createElement("div",{onClick:e=>{"A"===e.target.nodeName&&((0,Og.l)(e.target.href,!0),e.stopPropagation(),e.preventDefault())},className:P?void 0:tg().notExpanded,id:D,dangerouslySetInnerHTML:{__html:h.value||""}})),(g||E)&&T.createElement("div",{className:F()(tg().commentActions,"PSPDFKit-Comment-Actions")},E?T.createElement(ue.w6,{ariaControls:D,onPress:E?C:void 0,expanded:P,className:F()(tg().commentToggle,"PSPDFKit-Comment-Toggle")},T.createElement("span",{className:tg().showMore,title:M},M)):Ag||(Ag=T.createElement("div",null)),g&&y&&T.createElement($u.Z,{onConfirm:k,onCancel:()=>{b(!1)},accessibilityLabel:O(Yu.deleteCommentConfirmAccessibilityLabel),accessibilityDescription:O(Yu.deleteCommentConfirmAccessibilityDescription)},T.createElement("p",null,O(Yu.deleteCommentConfirmMessage)))))})),Fg=Ig,Mg=T.forwardRef((function(e,t){const{comments:n,rootId:o,isExpanded:r,dispatch:i,commentThread:s,onUpdate:l,isSelected:c,keepSelectedTool:u,frameWindow:d,anonymousComments:p,mentionableUsers:f,maxMentionSuggestions:h}=e,{formatMessage:m}=(0,Re.YB)(),g=T.useRef(null),v=T.useRef(c);T.useEffect((()=>{const e=v.current,t=setTimeout((()=>{e&&c&&g.current&&Xh.F3.focus(g.current)}),150);return v.current=!1,()=>{t&&clearTimeout(t)}}),[c]);const y=T.useCallback((e=>{null!=l&&l(o,r,e)}),[r,l,o]);return T.createElement("div",{className:F()("PSPDFKit-Comment-Thread",tg().commentThread,{"PSPDFKit-Comment-Thread-Selected":c,"PSPDFKit-Comment-Thread-Expanded":r}),ref:t},n.map(((t,o)=>{(0,a.kG)(null!==t,"Comment must not be null");const l=0===o;if((0,Ml.kT)(t))return T.createElement("div",{className:F()(tg().commentFooter,tg().commentFooterEditor),key:`draft-${t.id}`,onFocus:()=>{v.current=!0}},T.createElement(Cg,{maxMentionSuggestions:h,mentionableUsers:f,isFirstComment:l,comment:t,dispatch:e.dispatch,onEditorInit:e=>g.current=e,keepSelectedTool:u,frameWindow:d,anonymousComments:p}));const c=o>0&&n.get(o-1),m=!!c&&(c.creatorName!==t.creatorName||t.isAnonymous||c.isAnonymous);return T.createElement(T.Fragment,{key:t.id||void 0},r&&s.size>1&&o>0?T.createElement("div",{className:m?tg().separatorDifferentAuthor:tg().separatorSameAuthor}):null,T.createElement(Fg,{maxMentionSuggestions:h,isExpanded:r,comment:t,onToggleContent:()=>y(l),isGrouped:0!==o&&!m,dispatch:i}))})),s.size>1&&!r&&T.createElement("div",{className:F()(tg().commentFooter,tg().moreComments)},T.createElement("div",null,m(Ke.Z.nMoreComments,{arg0:s.size-1})),T.createElement(_e.Z,{className:tg().showMore},m(Ke.Z.showMore))))}));var _g=n(49200);function Rg(e){let{selectedAnnotation:t,viewportState:o,keepSelectedTool:r,anonymousComments:s,frameWindow:l,commentThread:c,comments:u,maxMentionSuggestions:d,mentionableUsers:p}=e;const{formatMessage:f}=(0,Re.YB)(),h=(0,A.I0)(),[m,g]=(0,fi.U5)({threshold:.2}),v=T.useRef(null);let y,b;y=t instanceof _g.Z?(0,$i.q)((0,J.Wj)(t,o.pagesRotation,o.viewportRect.getSize()).apply((0,de.cr)(o,t.pageIndex).translate(o.scrollPosition.scale(o.zoomLevel))),o.viewportRect.getSize()):t.boundingBox.apply((0,de.cr)(o,t.pageIndex).translate(o.scrollPosition.scale(o.zoomLevel)));const w=c.reduce(((e,t)=>{const n=u.get(t);return(0,a.kG)(n),(0,Ml.kT)(n)?b=n:e=e.push(n),e}),(0,i.aV)());return T.createElement(cg.Z,{referenceRect:y,viewportState:o,className:"PSPDFKit-Comment-Thread-Popover",wrapperClassName:F()(tg().commentThreadPopover,"PSPDFKit-Comment-Thread"),footerClassName:F()(tg().commentThreadPopoverFooter,{[tg().commentThreadPopoverFooterEmpty]:0===w.size}),innerWrapperClassName:tg().innerWrapper,title:f(Ke.Z.comment),footer:T.createElement("div",{className:F()(tg().commentFooter,tg().commentFooterEditor),key:b.id},T.createElement(Cg,{isFirstComment:0===w.size,comment:b,dispatch:h,keepSelectedTool:r,frameWindow:l,anonymousComments:s,maxMentionSuggestions:d,mentionableUsers:p}))},T.createElement("div",{className:tg().commentThread},w.map(((e,t)=>{const n=t>0&&w.get(t-1),o=!!n&&(n.creatorName!==e.creatorName||e.isAnonymous||n.isAnonymous);return T.createElement(T.Fragment,{key:e.id||void 0},c.size>1&&t>0?T.createElement("div",{ref:t===w.size-1?m:null,className:o?tg().separatorDifferentAuthor:tg().separatorSameAuthor}):null,T.createElement("div",{ref:w.size-1===t?e=>{v.current=e,m(e)}:null},T.createElement(Fg,{isExpanded:!0,comment:e,isGrouped:0!==t&&!o,dispatch:h,maxMentionSuggestions:d})))})),!1===g.isIntersecting&&T.createElement("div",{className:tg().moreCommentsContainer},T.createElement("div",{className:tg().moreCommentsContent,role:"button",onClick:()=>{v.current&&v.current.scrollIntoView({block:"nearest",inline:"nearest"})}},T.createElement(Ye.Z,{className:tg().moreCommentsIcon,src:n(96447)}),f(Yu.moreComments)))))}const Ng=T.memo((function(e){let{annotations:t,selectedAnnotation:n,comments:o,commentThreads:r,viewportState:s,dispatch:l,keepSelectedTool:c,frameWindow:u,anonymousComments:d,mentionableUsers:p,maxMentionSuggestions:f}=e;const h=T.useCallback(((e,t)=>{Kg(e),n&&n.id===t.id||(l((0,bi.Dm)()),l((0,je.Df)((0,i.l4)([t.id]),null)))}),[l,n]);if(s.commentMode===Yh._.PANE){(0,a.kG)(n);const e=r.get(n.id);return e?T.createElement(Bg,{maxMentionSuggestions:f,mentionableUsers:p,comments:o,commentThread:e,id:n.id,viewportState:s,onThreadClick:Kg,dispatch:l,keepSelectedTool:c,frameWindow:u,anonymousComments:d}):null}if(s.zoomMode===Xs.c.FIT_TO_WIDTH){if(!n)return null;const e=r.get(n.id);return e?T.createElement(Rg,{selectedAnnotation:n,comments:o,commentThread:e,anonymousComments:d,viewportState:s,keepSelectedTool:c,frameWindow:u,mentionableUsers:p,maxMentionSuggestions:f}):null}return T.createElement(Lg,{maxMentionSuggestions:f,mentionableUsers:p,annotations:t,selectedAnnotation:n,comments:o,commentThreads:r,viewportState:s,onThreadClick:h,dispatch:l,keepSelectedTool:c,frameWindow:u,anonymousComments:d})})),Lg=T.memo((function(e){let{annotations:t,selectedAnnotation:n,comments:o,commentThreads:r,viewportState:i,onThreadClick:s,dispatch:l,keepSelectedTool:c,frameWindow:u,anonymousComments:d,mentionableUsers:p,maxMentionSuggestions:f}=e;const h=function(e,t,n){const{scrollMode:o,layoutMode:r,currentPageIndex:i}=n,a=o===nl.G.PER_SPREAD||o===nl.G.DISABLED?i:null,s=T.useMemo((()=>n),[r,o,a]),l=T.useMemo((()=>{if(s.scrollMode===nl.G.PER_SPREAD||s.scrollMode===nl.G.DISABLED){const n=(0,Hs.P1)(s,(0,Hs.dF)(s,s.currentPageIndex));return t.filter(((t,o)=>{const r=e.get(o);return r&&n.includes(r.pageIndex)}))}return t}),[s,e,t]);return T.useMemo((()=>l.sortBy(((t,n)=>{const o=e.get(n);if(!o)return[0,0];return[(0,Hs.dF)(s,o.pageIndex),o.boundingBox.top]}),ze.b)),[s,l,e])}(t,r,i),{selectedOffset:m,threadElements:g,totalHeight:v}=function(e,t,n,o,r,i,s,l,c,u,d,p){const{currentPageIndex:f,viewportRect:h,layoutMode:m}=r,g=h.height,v=m===C.X.SINGLE?4:8,y=T.useCallback(((e,t,n)=>{n&&delete jg[zg(e,!1)],delete jg[zg(e,t)],S({})}),[]),b=T.useMemo((()=>o.map(((t,n)=>{const o=e.get(n);return o&&"number"==typeof o.pageIndex?(0,Ml.nN)(o,r):-1}))),[e,o,r]),[w,S]=T.useState({}),{formatMessage:E}=(0,Re.YB)();return T.useMemo((()=>{let r=0,h=0,m=null,w=null,P=0;const x=o.map(((o,x,D)=>{var C,k;const A=e.get(x);if(!A||"number"!=typeof A.pageIndex)return null;let O=!1;if((0,Ml._P)(o,n)){const e=o.last();(0,a.kG)(null!=e);const t=n.get(e);(0,a.kG)(null!=t),O=t.text.value.length>0}const I=Boolean(t&&t.id===A.id),M=Boolean(I||O);let _=jg[zg(x,M)];if(null!=_){const e=!M&&_.threadCommentIds.first()!==o.first(),t=!M&&(o.size>=2&&_.threadCommentIds.size<=1||o.size<=1&&_.threadCommentIds.size>=2),n=M&&!o.equals(_.threadCommentIds);(e||t||n)&&(delete jg[zg(x,M)],_=null)}const R=_&&_.height||(M?.4*g:80);let N=b.get(x),L="number"==typeof N&&-1!==N?N:R;N=L,Lf+v))return null;const j=!_;let z;j&&(P++,z=function(e){e&&(jg[zg(x,M)]={height:e.offsetHeight,threadCommentIds:o},P--,0===P&&S({}))}),I&&(h=L-N,m=L,w=D);const K=(M?o:o.take(1)).map((e=>{const t=n.get(e);return(0,a.kG)(null!=t),t})).toList(),Z=M?E(Zg.commentThread):E(Zg.commentDialogClosed,{arg0:null===(C=K.first())||void 0===C?void 0:C.creatorName,arg1:null===(k=K.first())||void 0===k?void 0:k.text.value});return T.createElement(pt.Z,{key:x,onPointerUp:Kg},T.createElement("div",{onClick:Kg,style:{transform:`translate(${I&&!j?-40:0}px, ${L}px)`,visibility:j?"hidden":void 0,width:Je.h8,height:j?"auto":R},className:F()(tg().commentThreadWrapper,"PSPDFKit-Comment-Thread-Wrapper",{"PSPDFKit-Comment-Thread-Wrapper-Expanded":M,"PSPDFKit-Comment-Thread-Wrapper-Selected":I,[tg().commentThreadWrapperExpanded]:M})},T.createElement(_e.Z,{is:"div",disabled:I,onClick:e=>i(e.nativeEvent,A),role:I?"dialog":"button","aria-label":Z,"aria-disabled":void 0},T.createElement(Mg,{maxMentionSuggestions:d,mentionableUsers:u,comments:K,commentThread:o,rootId:A.id,dispatch:s,onUpdate:y,ref:z,isExpanded:M,isSelected:I,keepSelectedTool:l,frameWindow:c,anonymousComments:p}))))})).valueSeq();return{selectedIndex:w,selectedOffset:h,selectedTop:m,threadElements:x,totalHeight:r}}),[n,o,e,b,t,f,g,v,i,s,w])}(t,n,o,h,i,s,l,c,u,p,f,d),{formatMessage:y}=(0,Re.YB)(),b=T.useMemo((()=>{const e=(0,de.G4)(i);return Math.ceil(e.left)+e.width+i.viewportPadding.x}),[i]);return T.createElement("aside",{style:{height:v+2*i.viewportPadding.y,flex:`0 0 ${Je.h8}px`,transform:`translate(${b}px, -${m}px)`,width:Je.h8},className:F()(tg().commentThreads,"PSPDFKit-Comment-Threads"),"aria-label":y(Ke.Z.comments)},g)})),Bg=T.memo((function(e){let{id:t,comments:n,commentThread:o,dispatch:r,viewportState:i,onThreadClick:s,keepSelectedTool:l,frameWindow:c,anonymousComments:u,mentionableUsers:d,maxMentionSuggestions:p}=e;const{formatMessage:f}=(0,Re.YB)(),h=T.useMemo((()=>o.map((e=>{const t=n.get(e);return(0,a.kG)(t),t})).toList()),[o,n]);return T.createElement(k.m,null,T.createElement(pt.Z,{onPointerUp:s},T.createElement("aside",{style:{height:i.viewportRect.height/2},className:F()(tg().commentThreads,tg().commentThreadsSmall,"PSPDFKit-Comment-Threads"),"aria-label":f(Ke.Z.comments)},T.createElement("div",{className:"PSPDFKit-Comment-Thread PSPDFKit-Comment-Thread-Expanded"},T.createElement(Mg,{maxMentionSuggestions:p,mentionableUsers:d,comments:h,commentThread:o,rootId:t,dispatch:r,isExpanded:!0,isSelected:!0,keepSelectedTool:l,frameWindow:c,anonymousComments:u})))))}));const jg={};function zg(e,t){return`${e}-${t?"expanded":"collapsed"}`}function Kg(e){e.stopPropagation()}const Zg=(0,Re.vU)({commentDialogClosed:{id:"commentDialogClosed",defaultMessage:"Open comment thread started by {arg0}: “{arg1}â€",description:"With the dialog closed, show the author of the comment and the number of replies."},commentThread:{id:"commentThread",defaultMessage:"Comment Thread",description:"Comment thread."}});var Ug,Vg,Gg=n(93162),Wg=n.n(Gg),qg=n(6969),Hg=n.n(qg);class $g extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"rootRef",T.createRef()),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"_handleOnClose",(()=>{this.props.dispatch((0,En.Sn)())})),(0,o.Z)(this,"_download",(()=>{Wg().saveAs(this._getBlob(),`PSPDFKit-for-Web-Debug-Output-${Date.now()}.txt`)}))}_getDebugOutput(){const e=document.documentElement;if((0,a.kG)(e,"externalDocumentElement must not be null"),this.rootRef.current){const t=this.rootRef.current.ownerDocument.documentElement;return(0,a.kG)(t,"internalDocumentElement must not be null"),`-----BEGIN VERSION-----\n PSPDFKit for Web Version: 2023.4.0 (80c992b150)\n PSPDFKit Server Version: 2023.4.0\n -----END VERSION-----\n\n -----BEGIN CLIENT INFO-----\n User Agent: ${navigator.userAgent}\n Language: ${navigator.language}\n Engine: ${tt.SR}\n System: ${tt.By}\n Pixel ratio: ${(0,Ft.L)()}\n -----END CLIENT INFO-----\n\n -----BEGIN EXTERNAL HTML-----\n ${e.innerHTML}\n -----END EXTERNAL HTML-----\n\n -----BEGIN INTERNAL HTML-----\n ${t.innerHTML}\n -----END INTERNAL HTML-----\n `}}_getBlob(){return new Blob([this._getDebugOutput()],{type:"text/plain;charset=utf-8"})}render(){return T.createElement(yf.Z,{onDismiss:this._handleOnClose},T.createElement("div",{className:Hg().root,ref:this.rootRef},T.createElement("div",{className:Hg().header},Ug||(Ug=T.createElement("h2",null,"Debug Output")),Vg||(Vg=T.createElement("p",null,"When reporting an issue to support, please provide the debug output. The output contains the PSPDFKit for Web version, information about your device, a snapshot of the current DOM. Please submit new support requests via our"," ",T.createElement("a",{target:"_blank",href:"https://pspdfkit.com/support/request"},"support form"),".")),T.createElement(ue.zx,{onClick:this._download},"Download Debug Output"))))}}class Yg extends T.Component{constructor(){var e;super(...arguments),e=this,(0,o.Z)(this,"onConfirm",(()=>{if(this.props.setA11yStatusMessage){const{formatMessage:e}=this.props.intl;this.props.setA11yStatusMessage(e(Jg.annotationDeleted))}const e={annotations:(0,i.aV)(this.props.annotations),reason:u.f.DELETE_END};this.props.eventEmitter.emit("annotations.willChange",e),this.props.annotations.forEach((e=>{this.props.dispatch((0,Qt.hQ)(e))})),this.onCancel(!1),this.props.dispatch((0,je.fz)())})),(0,o.Z)(this,"onCancel",(function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(e.props.dispatch((0,Qt.d8)(null)),t){const t={annotations:(0,i.aV)(),reason:u.f.DELETE_END};e.props.eventEmitter.emit("annotations.willChange",t)}}))}render(){const{formatMessage:e}=this.props.intl;return T.createElement($u.Z,{onConfirm:this.onConfirm,onCancel:this.onCancel,accessibilityLabel:e(Jg.deleteAnnotationConfirmAccessibilityLabel),accessibilityDescription:e(Jg.deleteAnnotationConfirmAccessibilityDescription),"aria-atomic":!0,restoreOnClose:!1},T.createElement("p",null,e(Jg.deleteAnnotationConfirmMessage)))}}const Xg=(0,Re.XN)(Yg),Jg=(0,Re.vU)({deleteAnnotationConfirmMessage:{id:"deleteAnnotationConfirmMessage",defaultMessage:"Are you sure you want to delete this annotation?",description:'Message displayed in the "Delete Annotation" confirm dialog'},deleteAnnotationConfirmAccessibilityLabel:{id:"deleteAnnotationConfirmAccessibilityLabel",defaultMessage:"Confirm annotation deletion",description:'Accessibility label (title) for the "Delete Annotation" confirm dialog'},deleteAnnotationConfirmAccessibilityDescription:{id:"deleteAnnotationConfirmAccessibilityDescription",defaultMessage:"Dialog allowing the user to confirm or cancel deleting the annotation",description:'Accessibility description for the "Delete Annotation" confirm dialog'},annotationDeleted:{id:"annotationDeleted",defaultMessage:"Annotation deleted.",description:"An annotation has been deleted."}});function Qg(e){let{locale:t}=e;const n=(0,T.useRef)(null);return(0,T.useEffect)((function(){const e=n.current;if(!e)return;const o=e.ownerDocument.documentElement;o&&(o.lang=t)}),[t]),T.createElement("div",{ref:n})}var ev=n(32170),tv=n(94358),nv=n.n(tv);function ov(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function rv(e){for(var t=1;t{const{isBold:i,isItalic:a,children:s,action:l,color:c}=e,u=`${this.props.parentLevel}-${r}`;let d=t.get(u);"boolean"!=typeof d&&(d=e.isExpanded);const p=s.size>0,f=T.createElement("span",{className:F()(nv().controlContainer,{[nv().controlContainerNoIcon]:!p,[nv().controlContainerNavigationDisabled]:!p&&n})},p&&T.createElement("span",{onClick:e=>{e.stopPropagation(),this.props.onPress(u,null,p)}},T.createElement(Ze.Z,{type:"caret",className:F()(nv().icon,d&&nv().iconExpanded),style:{width:24,height:24}})),T.createElement("span",{className:nv().control,style:rv({fontWeight:i?"bold":void 0,fontStyle:a?"italic":void 0},c?{color:c.toCSSValue()}:null)},e.title)),h=()=>{this.props.onPress(u,l,p)},m=o?t=>o(t,e):void 0;if(!p||!d)return T.createElement(ue.w6,{key:u,onPress:h,expanded:!1,autoFocus:0===r&&"0"===this.props.parentLevel,headingRef:m},f);const g=`outline-control-${u}`;return T.createElement("div",{key:u,ref:m},T.createElement(ue.w6,{onPress:h,expanded:d,ariaControls:g,autoFocus:0===r&&"0"===this.props.parentLevel},f),T.createElement(ue.F0,{expanded:d,id:g},T.createElement("div",{className:nv().content},T.createElement(iv,{parentLevel:u,onPress:this.props.onPress,outlineElements:s,expanded:t,navigationDisabled:n,onRenderItemCallback:o}))))}))}}(0,o.Z)(iv,"defaultProps",{parentLevel:"0"});var av,sv=n(42952),lv=n.n(sv),cv=n(60493),uv=n.n(cv);const dv=T.memo((function(e){const{outlineElements:t,expanded:n,backend:o,documentHandle:r,navigationDisabled:i,closeOnPress:s=!1}=e,[l,c]=T.useState(null);T.useEffect((()=>{null==l||l.focus()}),[l]);const u=(0,A.I0)();T.useEffect((()=>{t||((0,a.kG)(o),o.getDocumentOutline().then((e=>{u((0,ev.o)(e))})))}),[]);const d=(0,fi.jC)(e);T.useEffect((()=>{r===(null==d?void 0:d.documentHandle)||t||((0,a.kG)(o),o.getDocumentOutline().then((e=>{u((0,ev.o)(e))})))}));const p=(0,fi.R9)(((e,t,n)=>{n&&u((0,ev.Q)(e)),i||(setTimeout((()=>{t&&u((0,$r.aG)(t))})),s&&!n&&u((0,En.mu)()))})),f=t||null,h=(0,fi.Bo)(l,f),m=(0,fi.mP)(h,(e=>e.title),(e=>null==f?void 0:f.find((t=>t.title===e)))),g=F()(nv().container,!t&&nv().empty+" PSPDFKit-Sidebar-Loading",t&&0===t.size&&nv().empty+" PSPDFKit-Sidebar-Empty","PSPDFKit-Sidebar-Document-Outline"),{formatMessage:v}=(0,Re.YB)();return f?0===f.size?T.createElement("div",{className:g,ref:c},v(pv.noOutline)):T.createElement("div",{className:g,role:"region","aria-label":v(pv.outline),ref:c},T.createElement("div",{className:uv().sidebarHeader},T.createElement("h2",{"aria-hidden":"true",className:F()(lv().heading,"PSPDFKit-Sidebar-Document-Outline-Heading")},T.createElement("span",null,v(pv.outline)))),T.createElement(iv,{outlineElements:f,expanded:n,onPress:p,navigationDisabled:i,onRenderItemCallback:m})):T.createElement("div",{className:g,ref:c},av||(av=T.createElement(Xe.Z,null)))})),pv=(0,Re.vU)({noOutline:{id:"noOutline",defaultMessage:"No Outline",description:"Message shown when there is no document outline / table of contents"},outline:{id:"outline",defaultMessage:"Outline",description:"Outline"}});class fv extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"_handleKeydown",(e=>{const t=this.props.document.activeElement;this.props.hasSelectedAnnotations||t&&"BODY"!==t.tagName&&(0,jr.Qu)(t)||e.shiftKey||e.metaKey||e.ctrlKey||e.alt||(e.keyCode===Sr.P9&&this._handleKeyLeft(),e.keyCode===Sr.gs&&this._handleKeyRight())})),(0,o.Z)(this,"_handleKeyRight",(()=>{const e=(0,$s.TW)(this.props.viewportState);Math.ceil(this.props.viewportState.scrollPosition.x)>=Math.floor(e.x)&&this.props.dispatch((0,Eu.fz)())})),(0,o.Z)(this,"_handleKeyLeft",(()=>{Math.floor(this.props.viewportState.scrollPosition.x)<=0&&this.props.dispatch((0,Eu.IT)())}))}componentDidMount(){this.props.document.addEventListener("keydown",this._handleKeydown)}componentWillUnmount(){this.props.document.removeEventListener("keydown",this._handleKeydown)}render(){const{children:e}=this.props;return void 0===e?null:e}}var hv=n(59271),mv=n(25644),gv=n(92234),vv=n(29165);function yv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function bv(e){for(var t=1;t{const{viewportState:{currentPageIndex:u},formFields:d}=c();if(n instanceof j.x_){const r=d.get(n.formFieldName)||l;(0,a.kG)(r,`Form field with name "${n.formFieldName}" not found`);const c=(0,J.xc)(),p="cut"===o?n.formFieldName:`${null==r?void 0:r.name} copy`;let f=n.set("id",c).set("formFieldName",p).set("boundingBox",s?n.boundingBox.translate(s):n.boundingBox).delete("group").delete("pdfObjectId");o&&(f=f.set("pageIndex",u));let h=r.set("name",p).set("annotationIds",r.annotationIds.map((e=>e===n.id?c:e))).set("id",(0,ks.C)()).delete("group").delete("pdfObjectId");r.options&&"cut"!==o&&(h=h.set("options",(0,i.aV)([r.options.get(0).set("value",`${r.options.get(0).value}_1`)])).set("annotationIds",(0,i.aV)([c]))),e((0,Qt.$d)(f)),e((0,Mo.kW)(h)),t(bv({annotation:f,formField:h,originalAnnotation:n,originalFormField:r},o&&{previousAction:o.toUpperCase()}))}else{let i=n.set("id",(0,J.xc)()).delete("pdfObjectId");if(s&&(i=pa(i,s)),o&&(i=i.set("pageIndex",u)),"imageAttachmentId"in n&&n.imageAttachmentId&&r){let t;try{t=await r}catch(e){throw new a.p2(`Could not retrieve attachment data: ${e.message}`)}(0,a.kG)(t,"Attachment not found");const{hash:n}=await(0,He.uq)(t),o=new j.Pg({data:t});e((0,vv.O)(n,o)),i=i.set("imageAttachmentId",n)}e((0,Qt.$d)(i)),t(bv({annotation:i,originalAnnotation:n},o&&{previousAction:o.toUpperCase()}))}}}function Sv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ev(e){for(var t=1;t{const{annotations:e,selectedAnnotationsIds:t,backend:n}=this.props,o=null==e?void 0:e.filter((e=>null==t?void 0:t.has(e.id))).valueSeq().toArray();return null==o?void 0:o.map((e=>{let t;return e instanceof j.sK&&e.imageAttachmentId&&(t=null==n?void 0:n.getAttachment(e.imageAttachmentId)),{annotation:e,attachmentBlobPromise:t}}))})),(0,o.Z)(this,"handleKeyDown",(async e=>{const{dispatch:t,selectedAnnotationsIds:n,commentThreads:o,isPrinting:r,printingEnabled:s,canDeleteSelectedAnnotationCP:l,selectedAnnotation:c,eventEmitter:u,backend:d,formFields:p,areClipboardActionsEnabled:f,modalClosurePreventionError:h,setModalClosurePreventionError:m,annotations:g,frameWindow:v,isMultiSelectionEnabled:y,contentEditorSession:b,interactionMode:w}=this.props;if((0,a.kG)(d,"backend is required"),e.metaKey&&e.ctrlKey)return;if(this.props.canUndo&&(e.metaKey||e.ctrlKey)&&!e.shiftKey&&e.keyCode===Sr.gx&&!(0,jr.eR)(e.target))return t((0,gv.Yw)()),void e.preventDefault();if(this.props.canRedo&&!(0,jr.eR)(e.target)&&(e.metaKey||e.ctrlKey)&&e.shiftKey&&e.keyCode===Sr.gx)return t((0,gv.KX)()),void e.preventDefault();if(f&&(e.metaKey||e.ctrlKey)&&e.keyCode===Sr.b8&&e.shiftKey&&n&&n.size>0&&(e.preventDefault(),this.props.selectedGroupId?t((0,En.UZ)(this.props.selectedGroupId)):(0,A.dC)((()=>{n.forEach((e=>{var n;const o=null===(n=this.props.annotationsGroups)||void 0===n?void 0:n.find((t=>{let{annotationsIds:n}=t;return n.has(e)}));o&&t((0,En.of)(e,o.groupKey))}))}))),e.shiftKey)return;f&&(e.metaKey||e.ctrlKey)&&e.keyCode===Sr.b8&&n&&n.size>0&&(e.preventDefault(),t((0,En._R)(n))),(e.ctrlKey&&e.keyCode===Sr.j4||e.metaKey&&e.keyCode===Sr.j4)&&(t((0,je.fz)()),t((0,Dc.Xe)()),e.preventDefault()),(e.metaKey||e.ctrlKey)&&e.keyCode===Sr.iT&&(!r&&s&&t((0,mv.S0)()),e.preventDefault(),e.stopImmediatePropagation()),(e.metaKey||e.ctrlKey)&&e.keyCode===Sr.AV&&(t((0,Eu.kr)()),e.preventDefault()),(e.metaKey||e.ctrlKey)&&e.keyCode===Sr.d2&&(t((0,Eu.vG)()),e.preventDefault()),(e.metaKey||e.ctrlKey)&&e.keyCode===Sr.Cp&&(t((0,Eu._R)()),e.preventDefault());const{copiedOrCutAnnotations:S}=this.state;var E,P,D;if(f&&(e.ctrlKey||e.metaKey)&&S&&"v"===e.key&&(e.preventDefault(),e.stopPropagation(),t((E=S,(e,t)=>{const{eventEmitter:n,viewportState:{currentPageIndex:o}}=t();E.forEach((t=>{const r="copy"===t.previousAction&&t.annotation.pageIndex===o;e(wv(bv(bv({},t),r&&{offset:new j.E9({x:20,y:20})}),(e=>{n.emit("annotations.paste",e)})))}))})),this.setState({copiedOrCutAnnotations:null})),f&&y&&(e.ctrlKey||e.metaKey)&&"a"===e.key){var C;const n=null==v?void 0:v.document.activeElement,o=n&&(0,jr.eR)(n),r=null===(C=window.top)||void 0===C?void 0:C.document.activeElement,i=r&&(0,jr.eR)(r);if(o||i)return;e.preventDefault(),e.stopPropagation();const a=null==g?void 0:g.filter((e=>e.pageIndex===this.props.currentPageIndex)).map((e=>e.id));a&&(0,A.dC)((()=>{t((0,je.fz)()),t((0,je.Df)(a.toSet(),null))}))}if(b.active&&b.textBlockInteractionState.state===Gl.FP.Selected&&["Del","Delete","Backspace"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),t((0,Su.u)(Gl.wR.Delete))),n&&n.size>0&&!(0,jr.eR)(e.target))if(!["Del","Delete","Backspace"].includes(e.key)||o&&n.some((e=>o.has(e)))||!l){if(f&&(e.ctrlKey||e.metaKey)&&c&&"c"===e.key){var k;e.preventDefault(),e.stopPropagation();const t=null===(k=this.getSelectedAnnotations())||void 0===k?void 0:k.map((e=>Ev(Ev({},e),{},{previousAction:"copy"})));this.setState({copiedOrCutAnnotations:t}),u.emit("annotations.copy",{annotation:c})}else if(f&&(e.ctrlKey||e.metaKey)&&c&&"x"===e.key){var O;if(!t((D=c,(e,t)=>(0,oi.Kd)(D,t()))))return;e.preventDefault(),e.stopPropagation();const n=null===(O=this.getSelectedAnnotations())||void 0===O?void 0:O.map((e=>{const t=e.annotation;return Ev(Ev({},e),{},{formField:t instanceof j.x_?null==p?void 0:p.get(t.formFieldName):void 0,previousAction:"cut"})}));this.setState({copiedOrCutAnnotations:n}),u.emit("annotations.cut",{annotation:c}),(0,A.dC)((()=>{n.forEach((e=>{t((0,Qt.hQ)(e.annotation))}))}))}else if(f&&(e.ctrlKey||e.metaKey)&&c&&"d"===e.key){e.preventDefault(),e.stopPropagation();const n=this.getSelectedAnnotations();t((P=n,(e,t)=>{const{eventEmitter:n}=t();P.map((e=>wv({annotation:e.annotation,offset:new j.E9({x:20,y:20}),attachmentBlobPromise:e.attachmentBlobPromise},(e=>{n.emit("annotations.duplicate",e)})))).forEach((t=>{e(t)})),e((0,je.J4)((0,i.l4)(P.map((e=>e.annotation.id))),Q.o.SELECTED))})),this.setState({copiedOrCutAnnotations:null})}else if(!("Esc"!==e.key&&"Escape"!==e.key||(0,jr.N1)(e.target)||(0,jr.fp)(e.target)||h&&h.annotationId===(null==c?void 0:c.id))){e.preventDefault(),e.stopPropagation(),t((0,je.fz)());const o=n.first(),r=this.props.getScrollElement();if(r&&o){const e=r.querySelector(`[data-annotation-id="${o}"]`);e&&(0,jr._s)(r,e)}}}else(null==h?void 0:h.annotationId)===(null==c?void 0:c.id)&&m(null),e.preventDefault(),e.stopPropagation(),t((0,Qt.d8)(n));"Esc"!==e.key&&"Escape"!==e.key||w!==x.A.MEASUREMENT||(0,A.dC)((()=>{t((0,Qt.Ds)(null)),t((0,En.hS)())})),e.keyCode!==Sr.bs||(0,jr.eR)(e.target)||(e.preventDefault(),e.stopPropagation())})),(0,o.Z)(this,"_handleRef",(e=>{e&&(this._document=e.ownerDocument)}))}componentDidMount(){this._document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleKeyDown),this.props.isTextCopyingAllowed||this._document.addEventListener("copy",xv)}componentWillUnmount(){this._document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keydown",this.handleKeyDown),this.props.isTextCopyingAllowed||this._document.removeEventListener("copy",xv)}render(){return T.createElement("div",{ref:this._handleRef})}}function xv(e){const{target:t}=e;(0,hv.c)(t)||e.preventDefault()}const Dv=["highlight","strikeout","underline","squiggle","redact-text-highlighter","comment"],Cv=(0,H.Z)("InlineTextSelectionToolbarItem ");var kv=n(51025),Av=n.n(kv);function Ov(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Tv(e){for(var t=1;t{n((0,Qt.VX)(e,t)),n((0,je.fz)())}),[n]),p=T.useCallback((()=>{n((0,bi.cQ)())}),[n]),f=F()({[Av().button]:!s},{[Bd().button]:s}),h=T.useMemo((()=>{const e=[{type:"highlight",title:u(Ke.Z.highlightAnnotation),className:F()("PSPDFKit-Text-Markup-Inline-Toolbar-Highlight",f),onPress:()=>{d(j.FV,"highlight")}},{type:"strikeout",title:u(Ke.Z.strikeOutAnnotation),className:F()("PSPDFKit-Text-Markup-Inline-Toolbar-Strike-Out",f),onPress:()=>{d(j.R9,"strikeout")}},{type:"underline",title:u(Ke.Z.underlineAnnotation),className:F()("PSPDFKit-Text-Markup-Inline-Toolbar-Underline",f),onPress:()=>{d(j.xu,"underline")}},{type:"squiggle",title:u(Ke.Z.squiggleAnnotation),className:F()("PSPDFKit-Text-Markup-Inline-Toolbar-Squiggle",f),onPress:()=>{d(j.hL,"squiggle")}}];return r&&e.push({type:"comment",title:u(Ke.Z.comment),className:F()("PSPDFKit-Text-Markup-Inline-Toolbar-Comment",f),onPress:()=>{p()}}),i&&e.push({type:"redact-text-highlighter",title:u(Ke.Z.redactionAnnotation),className:F()("PSPDFKit-Text-Markup-Inline-Toolbar-Redaction",f),onPress:()=>{d(pe.Z,"redaction")}}),e}),[d,f,u,p,r,i]),m=T.useMemo((()=>{if(l){if(!c)return[];const e=l({defaultItems:h,hasDesktopLayout:!s},c);e.forEach((e=>{!function(e){Cv((0,a.PO)(e)&&!!e,"Expected item to be an object");const{type:t,id:n,title:o,icon:r,className:i,onPress:s,disabled:l}=e;Cv("type"in e&&(0,$.HD)(t)&&[...Dv,"custom"].includes(t),`Expected item.type to be one of ${[...Dv,"custom"].join(", ")}`),o&&Cv((0,$.HD)(o),"Expected `title` to be a string"),r&&Cv((0,$.HD)(r),"Expected `icon` to be a string"),n&&Cv((0,$.HD)(n),"Expected `id` to be a string"),i&&Cv((0,$.HD)(i),"Expected `className` to be a string"),s&&Cv("function"==typeof s,"`onPress` must be a `function`"),"disabled"in e&&Cv("boolean"==typeof l,"`disabled` must be a `boolean`"),e.node&&Cv(Fc.a.includes(e.node.nodeType),"`node.nodeType` is invalid. Expected one of "+Fc.a.join(", "))}(e)}));return e.map((e=>"custom"===e.type&&null!==e.onPress?Tv(Tv({},e),{},{onPress:()=>{e.onPress(),n((0,je.fz)())}}):e)).map((e=>({node:Fv(e),type:e.type})))}return h.map((e=>({node:Fv(e),type:e.type})))}),[h,c,s,l,Fv,n]),g=F()({[Bd().content]:s,[Bd().mobileTextMarkup]:s,[Av().inner]:!s});return T.createElement("div",{className:F()("PSPDFKit-Text-Markup-Inline-Toolbar",{[Av().root]:!s}),role:"dialog","aria-label":u(Ke.Z.markupToolbar)},T.createElement("div",{className:g},m.map(((e,t)=>"custom"!==e.type&&o(Iv.get(e.type))?null:"custom"===e.type?T.createElement("div",{key:`custom-${t}`},e.node):T.createElement("div",{key:e.type},e.node)))))}class _v extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"shouldComponentUpdate",ze.O)}render(){const{position:e,dispatch:t,showComments:n,showRedactions:o,currentTextSelection:r,isAnnotationTypeReadOnly:i,inlineTextSelectionToolbarItems:a}=this.props;return T.createElement("div",{className:F()("PSPDFKit-Annotation-Toolbar",Bd().root,{[Bd().stickToBottom]:"bottom"===e})},T.createElement(Mv,{dispatch:t,isAnnotationTypeReadOnly:i,showComments:n,showRedactions:o,hasMobileLayout:!0,inlineTextSelectionToolbarItems:a,currentTextSelection:r}))}}var Rv=n(54543),Nv=n(65627),Lv=n(3999),Bv=n(97066),jv=n.n(Bv);const zv=T.memo((function(e){const t=e.items.map(((t,n)=>{const{className:o,disabled:r,selected:i,icon:a,title:s,onPress:l}=t;return t.node?T.createElement(Lv.Z,{node:t.node,className:F()("PSPDFKit-Annotation-Tool-Node",e.itemClassName,o,jv().node),onPress:l,title:s,disabled:r,selected:i,key:`AnnotationTools-tool-${n}`}):T.createElement(rf.Z,{type:"custom",className:F()("PSPDFKit-Annotation-Tool-Button",e.itemClassName,o,jv().button),disabled:r,selected:i,icon:a,title:s,onPress:l,key:`AnnotationTools-tool-${n}`})}));return T.createElement("div",{role:"toolbar",className:F()(jv().root,e.rootClassName)},t)})),Kv=["children","fullScreen","hover","tools","intl","closeNote","clearNote"];function Zv(e){e.stopPropagation()}const Uv=(0,Re.XN)((e=>{const{children:t,fullScreen:n,hover:o,tools:i,intl:a,closeNote:s,clearNote:l}=e,c=(0,r.Z)(e,Kv),{formatMessage:u}=a,d=T.useRef(null);T.useEffect((function(){const e=d.current;if(e)return e.addEventListener("wheel",Zv,!0),()=>e.removeEventListener("wheel",Zv,!0)}),[]);const p=(0,Ze.Z)({type:"close"}),f=(0,Ze.Z)({type:"delete"});return T.createElement("div",(0,De.Z)({className:`PSPDFKit-Note-Annotation-Content ${nn().wrapper}${n?" "+nn().fullScreen:""}`},c,{ref:d}),T.createElement("div",{className:nn().header},T.createElement("h3",{className:nn().title},u(Ke.Z.noteAnnotation)),T.createElement("button",{className:F()(nn().button,o?nn().hidden:null),title:u(Ke.Z.close),"aria-label":u(Ke.Z.close),onClick:s||void 0,role:"button",type:"button"},p)),T.createElement("div",{className:nn().content},t),l&&T.createElement("button",{className:F()(nn().button,o?nn().hidden:null),title:u(Ke.Z.clear),"aria-label":u(Ke.Z.clear),onClick:l,role:"button",type:"button"},f),i&&!n&&T.createElement("div",{className:nn().tools},T.createElement(zv,{items:i,rootClassName:nn().tools,itemClassName:nn().tool})))})),Vv={left:0,top:0,maxWidth:"100%",maxHeight:"auto",minWidth:"100%",minHeight:"100%"};class Gv extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"_didUpdate",!1),(0,o.Z)(this,"_didEditorFocus",!1),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"state",{value:this.props.annotation.text.value}),(0,o.Z)(this,"focus",(()=>{this._isFocused||(this._isFocused=!0,this._editor&&this._editor.focus())})),(0,o.Z)(this,"clearText",(()=>{this._editor&&this._editor.clearText()})),(0,o.Z)(this,"_isFocused",!1),(0,o.Z)(this,"_lastSavedAnnotation",this.props.annotation),(0,o.Z)(this,"_onRef",(e=>{this._editor=e})),(0,o.Z)(this,"_valueDidUpdate",(()=>{this._didUpdate=!0})),(0,o.Z)(this,"_updateAnnotation",(()=>{if(this._didUpdate){var e;const n=this.props.annotation.set("text",{format:"plain",value:null===(e=this._editor)||void 0===e?void 0:e.getPlainText()});if(this._lastSavedAnnotation.text.value!==n.text.value||this._lastSavedAnnotation.text.format!==n.text.format)if(this._lastSavedAnnotation=n,n instanceof li.FN){var t;const e=null===(t=n.parentAnnotation)||void 0===t?void 0:t.set("note",n.text.value);(0,a.kG)(e),this.props.dispatch((0,Qt.FG)(e))}else this.props.dispatch((0,Qt.FG)(n)),this.props.keepSelectedTool&&this.props.dispatch((0,En.i9)())}else this.props.keepSelectedTool&&this.props.dispatch((0,En.i9)())})),(0,o.Z)(this,"_onBlur",(()=>{this._updateAnnotation()})),(0,o.Z)(this,"_onStopEditing",(()=>{this._updateAnnotation(),this.props.dispatch((0,Qt.i0)(!0))})),(0,o.Z)(this,"_onEscape",(()=>{this.props.dispatch((0,je.fz)()),this._updateAnnotation()})),(0,o.Z)(this,"_handleEditorFocus",(()=>{if(!this._didEditorFocus){const e={annotations:(0,i.aV)([this.props.annotation]),reason:u.f.TEXT_EDIT_START};this.props.eventEmitter.emit("annotations.willChange",e)}this._didEditorFocus=!0}))}UNSAFE_componentWillReceiveProps(e){e.annotation.equals(this.props.annotation)||this.setState({value:e.annotation.text.value})}componentWillUnmount(){if(this._didEditorFocus){const e={annotations:(0,i.aV)([this.props.annotation]),reason:u.f.TEXT_EDIT_END};this.props.eventEmitter.emit("annotations.willChange",e)}this._updateAnnotation()}render(){return T.createElement(Zi,{autoFocus:!1,autoSelect:this.props.autoSelect,onBlur:this._onBlur,onStopEditing:this._onStopEditing,onEscape:this._onEscape,ref:this._onRef,maxLength:Je.RI,defaultValue:this.state.value,lastMousePoint:this.props.lastMousePoint,style:Vv,valueDidUpdate:this._valueDidUpdate,onFocus:this._handleEditorFocus,key:this.state.value})}}(0,o.Z)(Gv,"defaultProps",{autoSelect:!1});var Wv=n(48311);class qv extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"state",{}),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"_closeNote",(()=>{this.props.noteAnnotation instanceof li.FN?this.props.dispatch((0,je.mv)(null)):this.props.dispatch((0,je.fz)())})),(0,o.Z)(this,"_clearNote",(()=>{this._editor&&this._editor.clearText()})),(0,o.Z)(this,"_preventDeselect",(e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()})),(0,o.Z)(this,"_makeHandleMouseUpAndTouchEnd",(e=>(0,Rv.S)((t=>{this.setState({lastMousePoint:new j.E9({x:t.clientX,y:t.clientY})},(()=>{this.props.dispatch((0,je.VR)(e))}))})))),(0,o.Z)(this,"_onRef",(e=>{this._editor=e,this.props.isFullscreen&&this._editor&&this._editor.focus()})),(0,o.Z)(this,"_getGradient",(0,jo.Z)((e=>{let t=e.lighter(30);const n=Math.min(t.r,t.g,t.b);for(let e=0;e<10&&t.contrastRatio(j.Il.BLACK)<4.5;e++)t=t.lighter((255-n)/25.5);return{top:t.lighter(30),bottom:t}}))),(0,o.Z)(this,"isPopoverPositioned",!1),(0,o.Z)(this,"onPopoverPositioned",(()=>{!this.isPopoverPositioned&&this._editor&&(this.isPopoverPositioned=!0,this._editor.focus())}))}render(){const{dispatch:e,noteAnnotation:t,noteAnnotationToModify:n,viewportState:o,isFullscreen:r,collapseSelectedNoteContent:i}=this.props;if(null==t.pageIndex||i)return null;const s=n&&t.id===n.id,l=this.props.isAnnotationReadOnly(t),c=t instanceof li.FN,{color:u}=t,d=$v[u.toCSSValue()]||this._getGradient(u.saturate(60));if(r){if(!s&&!l)return null;const n=u.toCSSValue(),r=`linear-gradient(to bottom, ${d.top.toCSSValue()} 0%, ${d.bottom.toCSSValue()} 100%)`,i=o.viewportRect.height-(this.props.annotationToolbarHeight((0,a.kG)(e),e.merge({left:e.left+(e.width-e.width/o.zoomLevel)/2,top:e.top+(e.height-e.height/o.zoomLevel)/2,width:e.width/o.zoomLevel,height:e.height/o.zoomLevel}))));return T.createElement(Wv.Z,{referenceRect:(0,J.SY)(m,o.pagesRotation).apply(h),viewportState:o,onPositionInfoChange:this.onPopoverPositioned,baseColor:u,color:[d.top,d.bottom],className:"PSPDFKit-Popover-Note-Annotation",customZIndex:1001},T.createElement(Uv,{onMouseUp:p,onTouchEnd:f,tools:this.props.tools,closeNote:this._closeNote,clearNote:s&&!l&&c?this._clearNote:void 0,hover:this.props.isHover,id:`NoteAnnotationContent-${t.id}`},this.props.isAnnotationReadOnly(t)?t.text.value:T.createElement(Gv,{annotation:t,dispatch:e,ref:s?this._onRef:void 0,lastMousePoint:this.state.lastMousePoint,autoSelect:this.props.autoSelect,eventEmitter:this.props.eventEmitter,keepSelectedTool:this.props.keepSelectedTool})))}}(0,o.Z)(qv,"defaultProps",{autoSelect:!1});const Hv={yellow:{top:new j.Il({r:245,g:240,b:158}),bottom:new j.Il({r:250,g:247,b:106})},orange:{top:new j.Il({r:250,g:213,b:161}),bottom:new j.Il({r:255,g:184,b:112})},red:{top:new j.Il({r:255,g:181,b:178}),bottom:new j.Il({r:255,g:134,b:126})},fuchsia:{top:new j.Il({r:255,g:186,b:255}),bottom:new j.Il({r:240,g:139,b:233})},blue:{top:new j.Il({r:164,g:211,b:255}),bottom:new j.Il({r:113,g:166,b:244})},green:{top:new j.Il({r:190,g:255,b:161}),bottom:new j.Il({r:130,g:227,b:111})}},$v={};for(const e of Nv.W)null!=e.color&&null!=e.localization.id&&($v[e.color.toCSSValue()]=Hv[e.localization.id]);var Yv=n(49242),Xv=n(5912),Jv=n.n(Xv);class Qv extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"elementRef",T.createRef()),(0,o.Z)(this,"state",{isPanning:!1}),(0,o.Z)(this,"initialPosition",null),(0,o.Z)(this,"previousPosition",null),(0,o.Z)(this,"_handleDragStart",(e=>{this.props.enabled&&(0,Yv.I)(e)&&(this.initialPosition=this.previousPosition=new B.E9({x:e.clientX,y:e.clientY}),this.setState({isPanning:!0}),this._addEventListeners())})),(0,o.Z)(this,"_handleDragMove",(e=>{if(!(0,Yv.W)(e))return void this._handleDragEnd(e);if(!this.props.enabled||!this.previousPosition)return;const t=new B.E9({x:e.clientX,y:e.clientY}),n=this.previousPosition.translate(t.scale(-1)),o=this._getScrollElement(),{scrollLeft:r,scrollTop:i}=o;o.scrollLeft=r+n.x,o.scrollTop=i+n.y,this.previousPosition=t,e.stopPropagation()})),(0,o.Z)(this,"_handleDragEnd",(e=>{this.initialPosition&&this.previousPosition&&(Pn(this.initialPosition,this.previousPosition)&&(e.stopPropagation(),e.stopImmediatePropagation()),this.previousPosition=null,this.setState({isPanning:!1}),this._removeEventListeners())}))}componentDidMount(){this.elementRef.current&&this.elementRef.current.addEventListener("mousedown",this._handleDragStart)}componentWillUnmount(){this.elementRef.current&&this.elementRef.current.removeEventListener("mousedown",this._handleDragStart),this._removeEventListeners()}render(){const{enabled:e}=this.props,{isPanning:t}=this.state,n=F()({[Jv().layer]:e,[Jv().isPanning]:t});return T.createElement("div",{className:n,ref:this.elementRef},this.props.children)}_addEventListeners(){const{defaultView:e}=this._getScrollElement().ownerDocument;null==e||e.addEventListener("mouseup",this._handleDragEnd,!0),null==e||e.addEventListener("mousemove",this._handleDragMove)}_removeEventListeners(){const e=this._getScrollElement();if(!e)return;const{defaultView:t}=e.ownerDocument;t&&(t.removeEventListener("mouseup",this._handleDragEnd,!0),t.removeEventListener("mousemove",this._handleDragMove))}_getScrollElement(){return this.context()}}(0,o.Z)(Qv,"contextType",Mu);const ey=T.memo((function(e){const{dispatch:t,viewportState:n,interactionMode:o,spreadIndex:r,onCropChange:i,cropInfo:a}=e,s=T.useRef(null);T.useEffect((()=>{null!==s.current&&s.current!==r&&(o===x.A.SEARCH?t((0,je.vR)()):t((0,je.fz)())),s.current=r}),[t,r,o]);const[l,c]=(0,Hs.wU)(n,r);if(0===n.viewportRect.width||0===n.viewportRect.height)return null;function u(t,o,r){const s={transform:(0,de.vs)(B.sl.IDENTITY,n,t).toCssValue(),transformOrigin:"0 0"},l=(0,Hs.nw)(n)===C.X.DOUBLE?t.toString():e.pageKeys.get(t);return T.createElement("div",{key:l,className:"PSPDFKit-Spread",style:s,"data-spread-index":t},T.createElement(qh,{key:l,spreadIndex:t,viewportState:n,inViewport:o,shouldPrerender:r,hidden:!o,onOverviewRenderFinished:c,onCropChange:i,cropInfo:a,pageKeys:e.pageKeys,setGlobalCursor:e.setGlobalCursor}))}return T.createElement(Hh.Z,{dispatch:e.dispatch,viewportState:n},T.createElement("div",null,function(e){const t=[];if(t.push(u(e,!0,!1)),n.scrollMode===nl.G.DISABLED)return t;const o=(0,Hs.kd)(n),r=Math.max(e-Je.J8,0),i=Math.min(e+Je.J8,o-1);for(let n=r;n<=i;n++)n!==e&&t.push(u(n,!1,"number"==typeof l&&e===l));return t}(r)))}));var ty=n(71231),ny=n(45590),oy=n.n(ny);const ry=!(!ty.Gn||"edge"==tt.SR)&&{passive:!0};class iy extends T.Component{constructor(){super(),(0,o.Z)(this,"_elementRef",T.createRef()),(0,o.Z)(this,"_handleWheel",(e=>{const{viewportState:t,scrollElement:n}=this.props,o=t.zoomLevel<=(0,Ys.Mq)(t);let r=!0;if(n){const{clientHeight:e,scrollHeight:o}=n;r=t.commentMode!==Yh._.SIDEBAR||t.scrollMode!==nl.G.PER_SPREAD||t.scrollPosition.y+e>=o}if(!(o&&r))return;const i=(0,de.G4)(t);e.clientX>Math.ceil(i.left)+i.width+t.viewportPadding.x||(e.deltaY<0?this.props.dispatch((0,Eu.IT)()):e.deltaY>0&&this.props.dispatch((0,Eu.fz)()))})),(0,o.Z)(this,"_handleSwipeLeft",(()=>{const e=(0,$s.TW)(this.props.viewportState);Math.ceil(this.props.viewportState.scrollPosition.x)>=Math.floor(e.x)&&this.props.dispatch((0,Eu.fz)())})),(0,o.Z)(this,"_handleSwipeRight",(()=>{Math.floor(this.props.viewportState.scrollPosition.x)<=0&&this.props.dispatch((0,Eu.IT)())})),(0,o.Z)(this,"_handleTouchStart",(e=>{const t=this._elementRef.current;t&&null===this._touchStart&&(0,Ec.sX)(e)&&(this._touchStart=ly(e),t.ownerDocument.addEventListener("touchend",this._handleTouchEnd,!0))})),(0,o.Z)(this,"_handleTouchEnd",(e=>{const t=this._elementRef.current;if(!t)return;const n=this._touchStart;if(!n)return;const o=ly(e),r=o.x-n.x,i=o.y-n.y,a=function(e,t,n){const o=t/e||0,r=n/e||0;return Math.abs(o)>Math.abs(r)?o:r}(o.timestamp-n.timestamp,r,i),s=function(e,t){const n=t.x-e.x,o=t.y-e.y;return Math.sqrt(n*n+o*o)}(n,o),l=function(e,t){if(e===t)return 0;if(Math.abs(e)>=Math.abs(t))return e<0?ay:sy;return t<0?3:4}(r,i);if(s>10&&Math.abs(a)>.3&&!this.props.interactionsDisabled)switch(l){case ay:this._handleSwipeLeft();break;case sy:this._handleSwipeRight()}t.ownerDocument.removeEventListener("touchend",this._handleTouchEnd,!0),this._touchStart=null})),(0,o.Z)(this,"_handleClick",(e=>{const t=this._elementRef.current;if(!t||this.props.hasSelection||t.ownerDocument.defaultView&&e.target instanceof t.ownerDocument.defaultView.HTMLElement&&(0,hv.c)(e.target))return;const n=t.getBoundingClientRect(),o=(e.clientX-n.left)/n.width;o<.3?this._handleSwipeRight():o>.7&&this._handleSwipeLeft()})),this._handleWheel=(0,bh.Z)(this._handleWheel,250),this._touchStart=null}componentDidMount(){const e=this._elementRef.current;e&&(e.addEventListener("touchstart",this._handleTouchStart),e.addEventListener("wheel",this._handleWheel,ry))}componentWillUnmount(){const e=this._elementRef.current;e&&(e.removeEventListener("touchstart",this._handleTouchStart),e.removeEventListener("wheel",this._handleWheel,ry),e.ownerDocument.removeEventListener("touchend",this._handleTouchEnd,!0))}render(){return T.createElement("div",{className:oy().root,onClick:this._handleClick,ref:this._elementRef},this.props.children)}}const ay=1,sy=2;function ly(e){const t=e.touches[0]||e.changedTouches[0];return{x:t.clientX,y:t.clientY,timestamp:Date.now()}}var cy=n(58005),uy=n.n(cy);const dy=function(e){let{progress:t,totalPages:n}=e;const{formatMessage:o}=(0,Re.YB)(),r=(0,A.I0)(),i=T.useCallback((()=>{(0,A.dC)((()=>{r((0,En.Zg)()),r((0,mv.WQ)())}))}),[r]);return T.createElement(yf.Z,{onEscape:i,accessibilityLabel:o(py.printProgressModal),accessibilityDescription:o(py.printProgressModalDesc)},T.createElement("div",{className:uy().root},T.createElement("div",null,o(py.printPrepare)),"number"==typeof t&&T.createElement(T.Fragment,null,T.createElement("div",{className:uy().progressWrapper},T.createElement("div",{className:uy().progress,"aria-label":`${t}% complete`,role:"progressbar","aria-valuenow":t},T.createElement("div",{className:uy().progressBar,style:{width:`${Math.floor(100*t/n)}%`}})),T.createElement("div",{className:uy().progressText},o(py.pageXofY,{arg0:t,arg1:n}))),T.createElement(ue.zx,{title:o(Ke.Z.cancel),onClick:i},o(Ke.Z.cancel)))))},py=(0,Re.vU)({pageXofY:{id:"pageXofY",defaultMessage:"Page {arg0} of {arg1}",description:"Printing processing progress"},printPrepare:{id:"printPrepare",defaultMessage:"Preparing document for printing…",description:"Shown while the printing process is preparing the pages for printing"},printProgressModal:{id:"printProgressModal",defaultMessage:"Printing in progress",description:"Printing in progress modal"},printProgressModalDesc:{id:"printProgressModalDesc",defaultMessage:"Indicates that a document is being prepared for printing",description:"Description for the Printing in progress modal"}});var fy,hy=n(93621),my=n.n(hy);const gy=function(){const{formatMessage:e}=(0,Re.YB)();return T.createElement(yf.Z,{accessibilityLabel:e(vy.signingModal),accessibilityDescription:e(vy.signingModalDescription)},T.createElement("div",{className:my().root},T.createElement(Ye.Z,{src:n(17285),className:my().icon,role:"presentation"}),T.createElement("div",{className:my().message},e(vy.signing),fy||(fy=T.createElement(Xe.Z,null)))))},vy=(0,Re.vU)({signing:{id:"signing",defaultMessage:"Signing...",description:"Shown while the digital signature flow is in progress"},signingModal:{id:"signingInProgress",defaultMessage:"Signing in progress",description:"Signing in progress modal"},signingModalDescription:{id:"signingModalDesc",defaultMessage:"Indicates that the current document is being signed",description:"Description of the Signing in progress modal"}});var yy,by=n(76134),wy=n.n(by);function Sy(){const{formatMessage:e}=(0,Re.YB)();return T.createElement(yf.Z,{accessibilityLabel:e(Ey.redactionsModal),accessibilityDescription:e(Ey.redactionModalDescription)},T.createElement("div",{className:wy().root},T.createElement(Ye.Z,{src:n(1088),className:wy().icon,role:"presentation"}),T.createElement("div",{className:wy().message},e(Ey.applyingRedactions),yy||(yy=T.createElement(Xe.Z,null)))))}const Ey=(0,Re.vU)({applyingRedactions:{id:"applyingRedactions",defaultMessage:"Applying redactions...",description:"Shown while the redactions flow is in progress"},redactionsModal:{id:"redactionInProgress",defaultMessage:"Redaction in progress",description:"Redaction in progress modal"},redactionModalDescription:{id:"redactionModalDesc",defaultMessage:"Indicates that the current document is being redacted",description:"Description of the Redacted in progress modal"}});var Py=n(93242),xy=n.n(Py);function Dy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Cy(e){for(var t=1;t{Ay.indexOf(e.keyCode)>=0&&!this.usingNavigationKeys&&(this.usingNavigationKeys=!0)})),(0,o.Z)(this,"handleKeyUp",(e=>{Ay.indexOf(e.keyCode)>=0&&this.usingNavigationKeys&&(this.usingNavigationKeys=!1)})),(0,o.Z)(this,"_handleRef",(e=>{e&&(this.element=e,this.props.onScrollElementChange(e))})),this.previousKnownScrollPosition=new j.E9,this.previousKnownZoomLevel=1}updateScrollbarOffset(e){const t=this.element.offsetWidth-this.element.clientWidth,n="hidden"!==this.element.style.overflow;"number"==typeof t&&e!=t&&n&&this.props.dispatch((0,En.IU)(t))}componentDidUpdate(e){requestAnimationFrame((()=>this.updateScrollbarOffset(e.scrollbarOffset))),this.updateScrollPosition()}componentDidMount(){this.updateScrollbarOffset(),this.updateScrollPosition(),this.props.dispatch((0,En.K_)(this.element)),this.element.ownerDocument.addEventListener("keydown",this.handleKeyDown),this.element.ownerDocument.addEventListener("keyup",this.handleKeyUp)}componentWillUnmount(){this.props.dispatch((0,En.K_)(null)),this.element.ownerDocument.removeEventListener("keydown",this.handleKeyDown),this.element.ownerDocument.removeEventListener("keyup",this.handleKeyUp)}updateScrollPosition(){const{viewportState:e}=this.props;if(0===e.viewportRect.width)return;if(this.previousKnownScrollPosition.equals(e.scrollPosition)&&this.previousKnownZoomLevel===e.zoomLevel)return;const t=this.element,n=Math.round(e.scrollPosition.x*e.zoomLevel),o=Math.round(e.scrollPosition.y*e.zoomLevel);t.scrollTop!==o&&(t.scrollTop=o),t.scrollLeft!==n&&(t.scrollLeft=n),this.previousKnownScrollPosition=e.scrollPosition,this.previousKnownZoomLevel=e.zoomLevel}handleScroll(){const{dispatch:e,viewportState:t}=this.props,{scrollPosition:n,zoomLevel:o}=t;if(0===t.viewportRect.width)return;const r=this.element;if(void 0===r.scrollTop||void 0===r.scrollLeft)return;const i=new j.E9({x:r.scrollLeft/o,y:r.scrollTop/o}),a=function(e,t,n){const o=1/n;return Math.abs(e.x-t.x)>o||Math.abs(e.y-t.y)>o}(n,i,o);a&&(this.previousKnownScrollPosition=i,this.previousKnownZoomLevel=o,e((0,Eu.lt)(i,this.usingNavigationKeys)))}render(){const{children:e,scrollDisabled:t}=this.props;return T.createElement("div",{ref:this._handleRef,className:`PSPDFKit-Scroll ${xy().root}`,style:Cy(Cy({},ky),{},{overflow:t?"hidden":"auto"}),onScroll:this.handleScroll},e)}}var Ty,Iy=n(98973),Fy=n.n(Iy);const My=(0,Re.XN)((function(e){const{formatMessage:t}=e.intl,n=t(_y.searchResultOf,{arg0:e.searchResultsSize>0?e.focusedResultIndex+1:0,arg1:e.searchResultsSize}),o=T.createElement("div",{role:"status",className:Fy().searchPosition,"aria-live":"polite","aria-label":tt.vU?n:void 0},n);return T.createElement(T.Fragment,null,e.isLoading&&T.createElement("div",{className:Fy().loader},Ty||(Ty=T.createElement(Xe.Z,null))),o)})),_y=(0,Re.vU)({searchResultOf:{id:"searchResultOf",defaultMessage:"{arg0} of {arg1}",description:"Shows the current search result number. E.g. 1 of 10"}});var Ry=n(50397),Ny=n.n(Ry);const Ly=(0,Re.vU)({searchPreviousMatch:{id:"searchPreviousMatch",defaultMessage:"Previous",description:"Go to the previous search result"},searchNextMatch:{id:"searchNextMatch",defaultMessage:"Next",description:"Go to the next search result"}}),By=(0,Re.XN)((e=>{const t=T.useRef(null);T.useEffect((()=>{(()=>{const n=t.current;(0,Ne.k)(null!=n),n.ownerDocument.activeElement!==n&&e.isFocused?n.focus():n.ownerDocument.activeElement!==n||e.isFocused||n.blur()})()}));const{formatMessage:o}=e.intl,r=F()({[Ny().previous]:!0,"PSPDFKit-Search-Control-Prev":!0,"PSPDFKit-Search-Control-Prev-disabled":e.searchResultsSize<=0}),i=F()({[Ny().next]:!0,"PSPDFKit-Search-Control-Next":!0,"PSPDFKit-Search-Control-Next-disabled":e.searchResultsSize<=0}),a=0===e.term.length,s=F()({[Ny().results]:!0,[Ny().resultsDisabled]:a,"PSPDFKit-Search-Form-Result":!0}),l=o(Ke.Z.searchDocument);return T.createElement("div",{className:F()("PSPDFKit-Search",Ny().root,{[Ny().noToolbar]:!e.showToolbar||e.toolbarPlacement!==Ru.p.TOP}),"data-testid":"pspdfkit-search-form-component-root"},T.createElement("div",{className:`PSPDFKit-Search-Form ${Ny().searchBox}`},T.createElement("input",{type:"text",name:"search",ref:t,autoComplete:"off",placeholder:l,"aria-label":l,value:e.term,onChange:()=>{const n=t.current;(0,Ne.k)(null!=n);const o=n.value;let r=!1;e.eventEmitter.emit("search.termChange",{term:o,preventDefault:()=>{r=!0}}),r||(e.searchForTerm(n.value),e.searchProvider.searchTerm(n.value))},onKeyDown:t=>{t.shiftKey&&(t.keyCode===Sr.E$||t.metaKey&&t.keyCode===Sr.b8)?(t.preventDefault(),e.focusPreviousSearchHighlight()):t.keyCode===Sr.E$||t.metaKey&&t.keyCode===Sr.b8?(t.preventDefault(),e.focusNextSearchHighlight()):t.keyCode===Sr.zz&&(t.preventDefault(),e.hideSearch())},onFocus:()=>{e.focusSearch()},onBlur:()=>{e.blurSearch()},className:`PSPDFKit-Search-Form-Input ${Ny().input}`}),T.createElement("div",{className:s},!a&&T.createElement(My,{isLoading:e.isLoading,searchResultsSize:e.searchResultsSize,focusedResultIndex:e.focusedResultIndex})),T.createElement("div",{className:`PSPDFKit-Search-Control ${Ny().control}`},T.createElement("button",{className:r,title:o(Ly.searchPreviousMatch),disabled:e.searchResultsSize<=1,onClick:e.focusPreviousSearchHighlight},T.createElement(Ye.Z,{src:n(28069),className:`${Ny().icon} ${Ny().iconLeft}`})),T.createElement("button",{className:i,title:o(Ly.searchNextMatch),disabled:e.searchResultsSize<=1,onClick:e.focusNextSearchHighlight},T.createElement(Ye.Z,{src:n(14341),className:`${Ny().icon} ${Ny().iconRight}`})))),T.createElement("button",{className:`PSPDFKit-Search-Button-Close ${Ny().button}`,onClick:e.hideSearch},o(Ke.Z.close)))}));const jy=(0,A.$j)((function(e){return{isFocused:e.searchState.isFocused,isLoading:e.searchState.isLoading,term:e.searchState.term,searchResultsSize:e.searchState.results.size,focusedResultIndex:e.searchState.focusedResultIndex,searchProvider:e.searchProvider,eventEmitter:e.eventEmitter,locale:e.locale,showToolbar:e.showToolbar,toolbarPlacement:e.toolbarPlacement}}),(function(e){return(0,K.DE)({searchForTerm:Dc._8,focusNextSearchHighlight:Dc.jL,focusPreviousSearchHighlight:Dc.dZ,hideSearch:Dc.ct,focusSearch:Dc.tB,blurSearch:Dc.nJ},e)}))(By);class zy{constructor(e,t,n){var o;const r=e.getRangeAt(0);let i=new j.SV;if(this.selection=e,this.className=n,this.rootElement=t,this.window=t.ownerDocument.defaultView,this.commonAncestorContainer=r.commonAncestorContainer,e.rangeCount>1){const t=e.getRangeAt(e.rangeCount-1);r.setEnd(t.endContainer,t.endOffset)}const s=!(null!=t&&t.contains(r.startContainer)),l=!(null!=t&&t.contains(r.endContainer)),c=!(null!==(o=this.commonAncestorContainer)&&void 0!==o&&o.contains(t));if(s&&l&&c)this.textRange=null;else{if(r.startContainer instanceof this.window.Text&&null!=t&&t.contains(r.startContainer)&&this._parentsMatchClass(r.startContainer))i=i.set("startNode",r.startContainer).set("startOffset",r.startOffset);else if(r.startContainer instanceof this.window.Element||r.startContainer instanceof this.window.Text){let e;if(e=r.startContainer.hasChildNodes()?this._nextTextNode(r.startContainer.childNodes[r.startOffset]):this._nextTextNode(r.startContainer),null==e)return void(this.textRange=null);i=i.set("startNode",e).set("startOffset",0)}else(0,a.kG)(!1,"Selected start container is neither DOM Element nor Text");if(r.endContainer instanceof this.window.Text&&null!=t&&t.contains(r.endContainer)&&this._parentsMatchClass(r.endContainer))i=i.set("endNode",r.endContainer).set("endOffset",r.endOffset);else if(r.endContainer instanceof this.window.Element||r.endContainer instanceof this.window.Text){let e;if(r.endContainer.hasChildNodes())if(r.endOffset>=r.endContainer.childNodes.length){let t=this._nextCrossSibling(r.endContainer);t||(t=r.endContainer.childNodes[r.endContainer.childNodes.length-1]),e=this._previousTextNode(t)}else e=this._previousTextNode(r.endContainer.childNodes[r.endOffset]);else e=this._previousTextNode(r.endContainer);if(null==e)return void(this.textRange=null);i=i.set("endNode",e).set("endOffset",e.length)}else(0,a.kG)(!1,"Selected start container is neither DOM Element nor Text");if(i.startNode==i.endNode&&i.startOffset>=i.endOffset)return void(this.textRange=null);if(!this._isBeforeOrSame(i.startNode,i.endNode))return void(this.textRange=null);this.textRange=i}}getTextRange(){return this.textRange}_nextTextNode(e){let t=this._findNextSpanNodeInTree(e);if(e===this.commonAncestorContainer)return null;let n=e;for(;!t;){if(n=this._nextCrossSibling(n),null==n)return null;t=this._findNextSpanNodeInTree(n)}return t.firstChild}_previousTextNode(e){let t=null;if(e===this.commonAncestorContainer)return null;let n=e;for(;!t;){if(n=this._previousCrossSibling(n),null==n)return null;t=this._findLastSpanNodeInTree(n)}return t.firstChild}_nextCrossSibling(e){if(!e)return null;if(null!=e.nextSibling)return e.nextSibling;const t=e.parentNode;return null==t||t===this.commonAncestorContainer?null:null!=t.nextSibling?t.nextSibling:this._nextCrossSibling(t)}_previousCrossSibling(e){if(null!==e.previousSibling)return e.previousSibling;const t=e.parentNode;return null==t||t===this.commonAncestorContainer?null:null!==t.previousSibling?t.previousSibling:this._previousCrossSibling(t)}_findNextSpanNodeInTree(e){if(e instanceof this.window.HTMLElement&&e.classList.contains(this.className))return e;if(e instanceof this.window.HTMLElement)for(let t=0;t=0;t--){const n=e.childNodes[t],o=this._findLastSpanNodeInTree(n);if(null!==o)return o}return null}_parentsMatchClass(e){let t=e.parentNode;for(;t&&t instanceof this.window.HTMLElement&&t!==this.rootElement;){if(t.classList.contains(this.className))return!0;t=t.parentNode}return!1}_isBeforeOrSame(e,t){const n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=0==e.compareDocumentPosition(t);return n||o}_getSelectedTextWithNL(){if(!this.textRange)return this.selection.toString();const{startNode:e,endNode:t,startOffset:n,endOffset:o}=this.textRange;if(!e||!t)return this.selection.toString();if(e===t)return e.textContent?e.textContent.substring(n,o):"";let r=e,i=r.textContent?r.textContent.substring(n)+"\n":"";for(;r&&r!==t;)r=this._nextTextNode(r),r&&r.textContent&&(i+=r!==t?r.textContent+"\n":r.textContent.substring(0,o));return i}}var Ky=n(22181),Zy=n.n(Ky);let Uy=null,Vy=null;const Gy=(e,t)=>e.container===t.container&&e.offset===t.offset,Wy={Left:!0,ArrowLeft:!0,Top:!0,ArrowTop:!0,Right:!0,ArrowRight:!0,Bottom:!0,ArrowBottom:!0,Home:!0,End:!0,PageDown:!0,PageUp:!0,Esc:!0,Escape:!0};class qy extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"isMouseSelection",!1),(0,o.Z)(this,"pointerMadeSelection",!1),(0,o.Z)(this,"isShiftPressed",!1),(0,o.Z)(this,"isPrimaryPointerGesture",!1),(0,o.Z)(this,"_handleSelectStart",(()=>{this.props.interactionMode!==x.A.TEXT_HIGHLIGHTER&&this.props.interactionMode!==x.A.REDACT_TEXT_HIGHLIGHTER||(this.isShiftPressed?this._processTextSelection(tt.Ni?"touch":"mouse"):this.props.dispatch((0,je.d5)((0,i.l4)(),this.props.interactionMode===x.A.TEXT_HIGHLIGHTER?j.FV:pe.Z)))})),(0,o.Z)(this,"_handleSelectionChange",(()=>{const{rootElement:e,interactionMode:t}=this.props,{defaultView:n}=e.ownerDocument,o=null==n?void 0:n.getSelection();!this.pointerMadeSelection&&(e=>{if(e.rangeCount<=0)return!1;if(e.rangeCount>1){const t=e.getRangeAt(e.rangeCount-1);t.setEnd(t.endContainer,t.endOffset)}const t=e.getRangeAt(0),{startContainer:n,endContainer:o,startOffset:r,endOffset:i}=t,a={container:n,offset:r},s={container:o,offset:i};let l;return l=null===Uy||null===Vy||!(Gy(Uy,a)||Gy(Vy,s)||Gy(Uy,s)||Gy(Vy,a)),Uy=a,Vy=s,l})(o)&&(this._handleSelectStart(),this.pointerMadeSelection=!0),this.isMouseSelection&&t!==x.A.TEXT_HIGHLIGHTER&&t!==x.A.REDACT_TEXT_HIGHLIGHTER||o&&!o.isCollapsed&&this._processTextSelection(tt.Ni?"touch":"mouse")})),(0,o.Z)(this,"_handlePointerUp",(e=>{let{pointerType:t,shiftKey:n}=e;this.isPrimaryPointerGesture&&("mouse"===t&&(this.isMouseSelection=!1),this.pointerMadeSelection=!1,this.isShiftPressed=n,n||window.setTimeout((()=>{this._checkForTextSelection(t)}),0))})),(0,o.Z)(this,"_handlePointerDown",(e=>{let{pointerType:t,shiftKey:n,isPrimary:o}=e;this.isPrimaryPointerGesture=o,"mouse"===t&&(this.isMouseSelection=!0,this.isShiftPressed=n)})),(0,o.Z)(this,"_handleKeyUp",(e=>{const{rootElement:t}=this.props;if(t){const n=t.ownerDocument.defaultView;this.isShiftPressed=e.shiftKey;const o=e.target;if(!Wy.hasOwnProperty(e.key)||n&&o instanceof n.HTMLElement&&((0,jr.eR)(o,n)||(0,jr.N1)(o)||(0,jr.gC)(o)))return;window.setTimeout((()=>{e.defaultPrevented||this._checkForTextSelection("mouse")}),0)}}))}componentDidMount(){const{rootElement:e}=this.props;e&&(e.ownerDocument.addEventListener("keyup",this._handleKeyUp),e.ownerDocument.addEventListener("selectionchange",this._handleSelectionChange))}componentWillUnmount(){const{rootElement:e}=this.props;e&&(e.ownerDocument.removeEventListener("keyup",this._handleKeyUp),e.ownerDocument.removeEventListener("selectionchange",this._handleSelectionChange)),Uy=null,Vy=null}_checkForTextSelection(e){const{dispatch:t,currentTextSelection:n,selectedAnnotationIds:o,activeAnnotationNote:r,rootElement:i,interactionMode:a}=this.props,{defaultView:s}=i.ownerDocument;if(this.props.modalClosurePreventionError&&o.includes(this.props.modalClosurePreventionError.annotationId)){const e=i.ownerDocument.querySelector(".PSPDFKit-Form-Creator-Popover > .PSPDFKit-Popover");return null==e||e.classList.add(Zy().shakeEffect),void setTimeout((()=>{null==e||e.classList.remove(Zy().shakeEffect)}),200)}if(!s)return;const l=s.getSelection();l&&(l.isCollapsed?(n||o.size>0||r)&&(a===x.A.TEXT_HIGHLIGHTER||a===x.A.REDACT_TEXT_HIGHLIGHTER||a===x.A.CONTENT_EDITOR?(this.isShiftPressed&&t((0,je.td)(a===x.A.TEXT_HIGHLIGHTER?j.FV:pe.Z)),t((0,je.vR)())):t((0,je.fz)())):this._processTextSelection(e))}_processTextSelection(e){const{dispatch:t,rootElement:n,interactionMode:o}=this.props,{defaultView:r}=n.ownerDocument;if(!r)return;const i=r.getSelection();if(!i)return;const a=i.rangeCount>0?((e,t,n)=>new zy(e,t,n).getTextRange())(i,n,cl().selectableText):null;null!=a&&(0,A.dC)((()=>{t((0,je.FP)(a,"mouse"===e&&o!==x.A.TEXT_HIGHLIGHTER&&o!==x.A.REDACT_TEXT_HIGHLIGHTER)),o===x.A.TEXT_HIGHLIGHTER?t((0,je.BO)(j.FV)):o===x.A.REDACT_TEXT_HIGHLIGHTER&&t((0,je.BO)(pe.Z))}))}render(){return T.createElement(pt.Z,{onPointerUp:this._handlePointerUp,onPointerDown:this._handlePointerDown},T.createElement("div",null,this.props.children))}}var Hy=n(47859);function $y(e,t){return e>t?t/1.5:e}class Yy extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"sidebarRef",T.createRef()),(0,o.Z)(this,"state",{size:Math.min(this.props.initialSize,this.props.maxWidth),prevSize:Math.min(this.props.initialSize,this.props.maxWidth)}),(0,o.Z)(this,"onResize",(e=>{const{size:t}=this.state,{onResize:n}=this.props,o=this.sidebarRef.current&&this.sidebarRef.current.getBoundingClientRect();o&&(null==n||n({sidebarRect:o,isDragging:e,size:t}))})),(0,o.Z)(this,"onResizeFinish",(e=>{e!==this.props.initialSize&&this.props.dispatch((0,Eu.Pt)(e))})),(0,o.Z)(this,"onDrag",((e,t)=>{const{minWidth:n,maxWidth:o}=this.props;this.setState((t=>{let{size:r}=t;return eo||o-e<10?{size:o,prevSize:r}:{size:e,prevSize:r}}),(()=>{this.onResize(t)}))})),(0,o.Z)(this,"onDoubleClick",(()=>{const{maxWidth:e}=this.props;this.setState((t=>{let{size:n,prevSize:o}=t;return n===e?{size:$y(o,e)}:{size:e,prevSize:n}}),(()=>this.onResize(!1)))}))}componentDidMount(){this.onResize(!1)}componentDidUpdate(e){const{size:t,prevSize:n}=this.state,{maxWidth:o}=this.props;o!==e.maxWidth&&(t===e.maxWidth||t>o)?this.setState({size:o,prevSize:$y(n,o)}):this.props.initialSize!==e.initialSize&&this.setState({size:this.props.initialSize})}componentWillUnmount(){this.onResize(!1)}render(){const{size:e}=this.state,{draggerSize:t,isRTL:n,maxWidth:o,minWidth:r}=this.props;return T.createElement("div",{ref:this.sidebarRef},T.createElement(Xy,{size:e,onDrag:this.onDrag,onDoubleClick:this.onDoubleClick,onResizeFinish:this.onResizeFinish,draggerSize:t,isRTL:n,currentValue:Math.round((e-r)/(o-r)*100)},T.createElement(Hy.ZP,null,this.props.children(e-t,t))))}}class Xy extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"state",{isDragging:!1,previousPosition:null}),(0,o.Z)(this,"_handlePointerDown",(e=>{const{isPrimary:t}=e;if(!t)return;const n=new B.E9({x:e.clientX,y:e.clientY});this.setState({isDragging:!0,previousPosition:n})})),(0,o.Z)(this,"_handlePointerMove",(e=>{if(!this.state.isDragging)return;const t=new B.E9({x:e.clientX,y:e.clientY});this._handleDrag(t)})),(0,o.Z)(this,"_handlePointerUp",(e=>{if(!this.state.isDragging)return;this.setState({isDragging:!1});const{previousPosition:t}=this.state;if(!t)return;const n=new B.E9({x:e.clientX,y:e.clientY}),o=this.props.size+(this.props.isRTL?t.x-n.x:n.x-t.x);this.props.onResizeFinish(o)})),(0,o.Z)(this,"_handleDoubleClick",(()=>{this.props.onDoubleClick()})),(0,o.Z)(this,"_handleKeyDown",(e=>{const{size:t,isRTL:n,onDrag:o,onDoubleClick:r}=this.props;"ArrowRight"===e.key?o(n?t-2:t+2,!1):"ArrowLeft"===e.key?o(n?t+2:t-2,!1):"Enter"===e.key&&r()})),(0,o.Z)(this,"_handleDrag",(e=>{const{previousPosition:t}=this.state;if(!t)return;const n=this.props.size+(this.props.isRTL?t.x-e.x:e.x-t.x);this.props.onDrag(n,!1),this.setState({previousPosition:e})}))}render(){const{isRTL:e,draggerSize:t,currentValue:n}=this.props;return T.createElement("div",{className:`${uv().sidebar} PSPDFKit-Sidebar`,style:{width:this.props.size,position:"relative",overflow:"hidden",[e?"paddingLeft":"paddingRight"]:t}},this.props.children,T.createElement("div",{onDoubleClick:this._handleDoubleClick},T.createElement(pt.Z,{onPointerDown:this._handlePointerDown,onRootPointerMoveCapture:this._handlePointerMove,onRootPointerUpCapture:this._handlePointerUp},T.createElement("div",{style:{[e?"left":"right"]:0,width:t},className:`${uv().dragger} PSPDFKit-Sidebar-Dragger`},T.createElement("div",{tabIndex:0,role:"separator","aria-label":"Resizer handle","aria-orientation":"vertical","aria-valuenow":n,onKeyDown:this._handleKeyDown,style:{[e?"right":"left"]:this.props.size-t},className:`${uv().draggerHandle} PSPDFKit-Sidebar-DraggerHandle`})))))}}class Jy extends T.PureComponent{render(){const{formatMessage:e}=this.props.intl;return T.createElement(yf.Z,{role:"dialog",onEscape:this.props.onEscape,background:"rgba(0,0,0,.1)",className:kr().modal,accessibilityLabel:e(Qy.signatureDialog),accessibilityDescription:e(Qy.signatureDialogDescription)},this.props.children)}}const Qy={signatureDialog:{id:"signatureDialog",defaultMessage:"Signature",description:"Signature Dialog"},signatureDialogDescription:{id:"signatureDialogDesc",defaultMessage:"This dialog lets you select an ink signature to insert into the document. If you do not have stored signatures, you can create one using the canvas view.",description:"Signature Dialog description"}},eb=(0,Re.XN)(Jy);var tb=n(73039);function nb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ob(e){for(var t=1;t[p.Z.BLACK,p.Z.BLUE,p.Z.RED].includes(e.color)));class ib extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"state",{annotation:new tb.Z(ob(ob({},this.props.preset),{},{isSignature:!0})),zoomLevel:1}),(0,o.Z)(this,"_onAnnotationColorChange",(e=>{const t=this.state.annotation.withMutations((t=>{t.set("strokeColor",e)}));this._onChange(t)})),(0,o.Z)(this,"_clear",(()=>{this.setState({annotation:new tb.Z(ob(ob({},this.props.preset),{},{isSignature:!0}))},this._callOnChange)})),(0,o.Z)(this,"_onChange",(e=>{this.setState({annotation:e},this._callOnChange)})),(0,o.Z)(this,"_callOnChange",(()=>{const{onChange:e}=this.props;if(!e)return;e(fa(this.state.annotation,this.state.annotation.boundingBox.getLocation().scale(-1),this.props.canvasSize,new B.E9))})),(0,o.Z)(this,"_onResize",(e=>{this.setState({zoomLevel:e.width/this.props.canvasSize.width})}))}render(){const{annotation:e}=this.state,{canvasSize:t}=this.props,{formatMessage:n}=this.props.intl,o=e.lines.isEmpty();return T.createElement(T.Fragment,null,T.createElement("div",{className:kr().header},T.createElement(sp,{colorPresets:rb,activeColor:e.strokeColor,onClick:this._onAnnotationColorChange,className:F()(kr().colorPicker,"PSPDFKit-Signature-Dialog-Color-Picker")}),T.createElement(ue.zx,{onClick:this._clear,inverted:!0,disabled:o,className:F()(kr().button,"PSPDFKit-Signature-Dialog-Clear-Signature-Button")},n(Ke.Z.clearSignature))),T.createElement("div",{className:kr().editorCanvasContainer},T.createElement("div",{className:F()(kr().editorCanvas,"PSPDFKit-Signature-Dialog-Canvas","PSPDFKit-Signature-Canvas","interactions-disabled")},T.createElement(Hp.Z,{onResize:this._onResize}),T.createElement("div",{className:F()(kr().signHere,"PSPDFKit-Signature-Dialog-Sign-Here-Label",{[kr().signHereHidden]:!e.lines.isEmpty()})},n(ab.pleaseSignHere)),T.createElement(Ai,{annotation:e,canvasSize:t,onDrawStart:this._onChange,onDraw:this._onChange,onDrawEnd:this._onChange,zoomLevel:this.state.zoomLevel,cursor:"crosshair"}))))}}(0,o.Z)(ib,"defaultProps",{canvasSize:new B.$u({width:600,height:260}),preset:{}});const ab=(0,Re.vU)({pleaseSignHere:{id:"pleaseSignHere",defaultMessage:"Please sign here",description:"Message on the signature canvas"}}),sb=(0,Re.XN)(ib);var lb,cb=n(41067),ub=n.n(cb);function db(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function pb(e){for(var t=1;t{const{backend:e,attachment:t,templateWidth:n}=this.props;let o=this.props.annotation.update("boundingBox",(e=>null==e?void 0:e.set("left",0).set("top",0))),{boundingBox:r}=o;const i=Math.max(r.width,r.height);return i{this.unmounted||(this.setState({loadingState:"LOADED"}),this.props.onRenderFinished&&this.props.onRenderFinished(e))})),(0,o.Z)(this,"_showError",(()=>{this.setState({loadingState:"ERROR"})})),(0,o.Z)(this,"_showLoadingIndicator",(()=>{this.setState((e=>({showLoadingIndicator:"LOADING"===e.loadingState})))}))}componentDidUpdate(e){if(!(0,i.is)((0,J.ip)(this.props.annotation),(0,J.ip)(e.annotation))||e.annotation.imageAttachmentId!==this.props.annotation.imageAttachmentId||e.templateWidth0&&a>0?i/a:1,l=s>1?ub().wideImg:ub().highImg,c=F()(e instanceof j.sK?ub().imageAnnotation:ub().stampAnnotation,o?ub().containedImg:ub().notContainedImg,l),u=F()(ub().wrapper,{[ub()["imageAnnotation-loading"]]:"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator,[ub()["imageAnnotation-error"]]:"ERROR"===this.state.loadingState}),d={opacity:r,position:"relative",width:o?0===t||s>=1?"100%":t:"auto"},p=pb(pb({},d),{},{height:0===t?"100%":s>1?t:t*s});return T.createElement("div",{style:d,className:u},T.createElement($e.Z,{className:c,fetchImage:this._fetchImage,label:n,visible:!0,onRenderFinished:this._renderFinished,onError:this._showError,rectStyle:p,ref:this.imageFetcherRef}),"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator?T.createElement("div",{className:ub().placeHolder},lb||(lb=T.createElement(Xe.Z,null))):"ERROR"===this.state.loadingState?T.createElement("div",{className:ub().placeHolder},T.createElement(Ye.Z,{src:et(),className:ub().errorIcon})):null)}}class hb extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"shouldComponentUpdate",ze.O)}render(){const{formatMessage:e}=this.props.intl,t=null==this.props.showDeleteBtn||this.props.showDeleteBtn;return T.createElement("ul",{className:F()(kr().signaturePickerList,"PSPDFKit-Signature-Dialog-Picker","PSPDFKit-Signature-Picker")},this.props.signatures.map(((o,r)=>T.createElement("li",{key:r,className:F()(kr().signaturePickerListItem,"PSPDFKit-Signature-Dialog-Picker-Item"),"data-signature":r},T.createElement(ue.zx,{className:F()(kr().selectSignatureButton,"PSPDFKit-Signature-Dialog-Picker-Item-Button",{[kr().imageAnnotation]:o instanceof j.sK}),onClick:()=>{this.props.onSelect(o)},autoFocus:0===r},o instanceof j.Zc?T.createElement(Wt,{isSelectable:!1,annotation:o,viewBox:o.boundingBox}):T.createElement(fb,{annotation:o,backend:this.props.backend,label:o.description||e(Ke.Z.imageAnnotation),attachment:o.imageAttachmentId?this.props.attachments.get(o.imageAttachmentId):null,templateWidth:153.5})),t?T.createElement("button",{className:F()(kr().deleteSignatureButton,"PSPDFKit-Signature-Dialog-Picker-Item-Delete-Button"),onClick:()=>{this.props.onDelete(o)},"aria-label":e(Ke.Z.delete)},T.createElement(Ye.Z,{src:n(61019)})):null))))}}const mb=(0,Re.XN)(hb);var gb;function vb(e){let{children:t,hasDivider:n}=e;return n?T.createElement(T.Fragment,null,gb||(gb=T.createElement(ue.u_.Divider,{spaced:!1})),T.createElement(ue.u_.Section,null,t)):T.createElement("div",{className:kr().footer},t)}class yb extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"state",{annotation:null,hideSignaturePicker:!1,storeSignature:!!this.props.canStoreSignature}),(0,o.Z)(this,"_hideSignaturePicker",(()=>{this.setState({hideSignaturePicker:!0,annotation:null})})),(0,o.Z)(this,"_onSignatureChange",(e=>{this.setState({annotation:e})})),(0,o.Z)(this,"_onDone",(()=>{const{onCreate:e,onCancel:t}=this.props,{annotation:n,storeSignature:o}=this.state;n?null==e||e(n,o,!0):null==t||t()})),(0,o.Z)(this,"_toggleStoreSignature",(()=>{this.setState((e=>({storeSignature:!e.storeSignature})))}))}render(){const{onCreate:e,onDelete:t,storedSignatures:n,preset:o}=this.props,r=!!this.props.canStoreSignature,a=!this.state.hideSignaturePicker&&r&&Boolean(n&&n.size>0),{formatMessage:s}=this.props.intl,{annotation:l,storeSignature:c}=this.state,u=null!==l&&l.lines instanceof i.aV&&!l.lines.isEmpty(),{SIGNATURE_SAVE_MODE:d}=mt.Ei,p=d===_u.f.USING_UI;return T.createElement("div",{className:F()(kr().viewRoot,"PSPDFKit-Signature-Dialog",{[kr().viewSignaturePicker]:a})},a&&n?T.createElement(T.Fragment,null,T.createElement("div",{className:kr().header},T.createElement("div",{className:F()(kr().title,"PSPDFKit-Signature-Dialog-Signature-Heading"),role:"heading","aria-level":"1"},s(Ke.Z.signatures)),T.createElement(ue.zx,{className:"PSPDFKit-Signature-Dialog-Add-Signature-Button",onClick:this._hideSignaturePicker,inverted:!0},s(Ke.Z.addSignature))),T.createElement("div",{className:kr().signaturePickerContainer},T.createElement(mb,{signatures:n,onSelect:t=>{e(t,!1,!0)},onDelete:e=>{t(e,!0)},backend:this.props.backend,attachments:this.props.attachments,viewportWidth:this.props.viewportWidth}))):T.createElement(sb,{onChange:this._onSignatureChange,preset:o}),T.createElement(vb,{hasDivider:a&&r},!a&&r&&p&&T.createElement("label",{className:F()(kr().checkbox,"PSPDFKit-Signature-Dialog-Store-Signature-Checkbox")},T.createElement("input",{type:"checkbox",name:"store",checked:c,onChange:this._toggleStoreSignature}),T.createElement("span",{className:kr().checkboxLabel},s(Ke.Z.storeSignature))),T.createElement(ue.hE,{className:kr().group,align:"end"},T.createElement(ue.zx,{onClick:this.props.onCancel,className:F()(kr().button,"PSPDFKit-Signature-Dialog-Cancel-Button"),autoFocus:!a},s(Ke.Z.cancel)),!a&&T.createElement(ue.zx,{primary:!0,disabled:!u,onClick:u?this._onDone:null,className:F()(kr().button,"PSPDFKit-Signature-Dialog-Done-Button")},s(Ke.Z.done)))))}}(0,o.Z)(yb,"defaultProps",{canStoreSignature:!0});const bb=(0,Re.XN)(yb);var wb=n(44182),Sb=n.n(wb);const Eb=e=>{const{formatMessage:t}=(0,Re.YB)();return T.createElement(yf.Z,{backdropFixed:!0,role:"dialog",onEscape:e.onEscape,background:"rgba(0, 0, 0, 0.1)",className:e.showPicker?Sb().modal:Sb().editorModal,accessibilityLabel:t(Xc.stampAnnotationTemplatesDialog),accessibilityDescription:t(Xc.stampAnnotationTemplatesDialogDescription)},e.children)};class Pb extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"_onSelect",(e=>{this.props.onSelect(e)})),(0,o.Z)(this,"_initializeTemplateValues",(e=>(e instanceof s.GI&&(null==e.title&&(e=e.set("title",ou({annotation:e,intl:this.props.intl}))),e.subtitle&&"Custom"===e.stampType||(e=e.set("subtitle",nu($c.pY[e.stampType],new Date,this.props.intl))),void 0!==$c.a$[e.stampType]&&(e=e.set("stampType",$c.a$[e.stampType]))),e)))}componentDidMount(){const{stampAnnotationTemplates:e,attachments:t}=this.props;let n=!1;e.forEach((e=>{e.imageAttachmentId&&!t.has(e.imageAttachmentId)&&(n=!0,(0,a.ZK)("No attachment found for stamp template with imageAttachmentId set: "+e.toJS()))})),n&&(0,a.ZK)("When the document is reloaded due to having performed operations on the document you need to regenerate any attachments that are not present in the document. Check the corresponding KB article: https://pspdfkit.com/guides/web/current/knowledge-base/image-attachments-lost-stamp-annotation-templates/")}render(){const{intl:{formatMessage:e},viewportWidth:t}=this.props,n=t{const o=ou({annotation:t,intl:this.props.intl});return T.createElement("li",{key:n,className:Sb().stampPickerListItem},T.createElement(ue.zx,{className:Sb().selectStampButton,onClick:()=>{this._onSelect(t)},autoFocus:0===n,"aria-label":o,title:o},T.createElement("div",{className:Sb().templateImageContainer},T.createElement(fb,{annotation:t,backend:this.props.backend,label:t instanceof s.sK?e(Ke.Z.imageAnnotation):t.title||e(Xc[(0,$.LE)((0,$c.k1)(t.stampType))]),attachment:t.imageAttachmentId?this.props.attachments.get(t.imageAttachmentId):null,templateWidth:r,contain:!0}))))})))),T.createElement(_b,{raised:"top"},T.createElement(ue.hE,{className:Sb().group,align:"start"},T.createElement(ue.zx,{onClick:this.props.onCancel,className:Sb().button},e(Ke.Z.cancel)))))}}const xb=(0,Re.XN)(Pb),Db={textTransform:"uppercase"},Cb=cu.find((e=>"blue"===e.localization.id));(0,Ne.k)(null!=Cb),(0,Ne.k)(Cb.color instanceof p.Z);const kb=Cb.color;class Ab extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"_stampWidth",Je.$P),(0,o.Z)(this,"currentDate",new Date),(0,o.Z)(this,"state",{includeDate:!0,includeTime:!0,title:"",color:kb}),(0,o.Z)(this,"_setWidth",(e=>{this._stampWidth=e})),(0,o.Z)(this,"_onAnnotationColorChange",(e=>{this.setState({color:e})})),(0,o.Z)(this,"_toggleIncludeDate",(()=>{this.setState({includeDate:!this.state.includeDate})})),(0,o.Z)(this,"_toggleIncludeTime",(()=>{this.setState({includeTime:!this.state.includeTime})})),(0,o.Z)(this,"_updateText",(e=>{this.setState({title:e.currentTarget.value.toUpperCase()})})),(0,o.Z)(this,"_onCreate",(()=>{const{includeDate:e,includeTime:t}=this.state;this.props.onCreate(new j.GI({stampType:"Custom",title:this.state.title,subtitle:nu({includeDate:e,includeTime:t},this.currentDate,this.props.intl),color:this.state.color,boundingBox:new j.UL({left:0,top:0,width:this._stampWidth,height:Je.mM})}))}))}render(){const{formatMessage:e}=this.props.intl,{includeDate:t,includeTime:n,title:o,color:r}=this.state,i=nu({includeDate:t,includeTime:n},this.currentDate,this.props.intl);return T.createElement(T.Fragment,null,T.createElement("div",{className:Sb().previewContainerBlock},T.createElement("div",{className:F()(Sb().previewContainer,"PSPDFKit-Stamp-Editor")},T.createElement(Ob,{title:o,subtitle:i,color:r,setWidth:this._setWidth})),T.createElement("div",{className:Sb().modalSubHeader},e(Ke.Z.stampText)),T.createElement(ue.oi,{"aria-label":e(Ke.Z.stampText),autoFocus:!0,onChange:this._updateText,value:o,style:Db}),T.createElement("div",{className:Sb().dateTimeLabels},T.createElement("label",{className:Sb().checkbox},T.createElement("input",{type:"checkbox",name:"store",checked:t,onChange:this._toggleIncludeDate}),T.createElement("span",{style:{width:"0.5em"}}),T.createElement("span",null,e(Ke.Z.date))),T.createElement("label",{className:Sb().checkbox},T.createElement("input",{type:"checkbox",name:"store",checked:n,onChange:this._toggleIncludeTime}),T.createElement("span",{style:{width:"0.5em"}}),T.createElement("span",null,e(Ke.Z.time)))),T.createElement("div",{className:Sb().modalSubHeader},e(Ke.Z.chooseColor)),T.createElement(sp,{colorPresets:cu,activeColor:r||kb,onClick:this._onAnnotationColorChange,className:Sb().colorPicker,accessibilityLabel:e(Ke.Z.color)})),T.createElement(_b,null,T.createElement(ue.hE,{className:F()(Sb().group,Sb().spaceBetween)},T.createElement(ue.zx,{onClick:this.props.onCancel,className:Sb().button},e(Ke.Z.cancel)),T.createElement(ue.zx,{className:Sb().button,primary:!0,onClick:this._onCreate},e(Tb.createStamp)))))}}class Ob extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"_canvasEl",null),(0,o.Z)(this,"_canvasRef",(e=>{this._canvasEl=e,this.props.setWidth(this._drawCustomStamp())})),(0,o.Z)(this,"_drawCustomStamp",(()=>lu({canvas:this._canvasEl,title:this.props.title,subtitle:this.props.subtitle,color:this.props.color,defaultStampWidth:Je.$P,stampHeight:Je.mM,container:this._canvasEl&&this._canvasEl.parentElement&&this._canvasEl.parentElement.parentElement})))}render(){const e=this._drawCustomStamp();return this.props.setWidth(e),T.createElement("div",{className:Sb().customStampPreviewContainer,style:{width:e,height:Je.mM}},T.createElement("canvas",{ref:this._canvasRef,style:{width:e,height:Je.mM}}))}}const Tb=(0,Re.vU)({createStamp:{id:"createStamp",defaultMessage:"Create Stamp",description:"Create Stamp from edited template."}}),Ib=(0,Re.XN)(Ab);class Fb extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"_toggleStampsPicker",(()=>{this.props.dispatch(this.props.showPicker?(0,En._z)():(0,En.C4)())}))}render(){const{onCreate:e,onCancel:t,stampAnnotationTemplates:n,backend:o,dispatch:r,attachments:i,viewportWidth:a,intl:{formatMessage:s}}=this.props;return T.createElement("div",{className:F()(Sb().viewRoot,this.props.showPicker&&Sb().viewStampsPicker)},this.props.showPicker?T.createElement(T.Fragment,null,T.createElement(_b,{raised:"bottom",className:Sb().header,useDivider:!1},T.createElement(T.Fragment,null,T.createElement("div",{className:Sb().title,role:"heading","aria-level":"1"},s(Ke.Z.useAnExistingStampDesign)),T.createElement(ue.zx,{onClick:this._toggleStampsPicker,inverted:!0,className:`PSPDFKit-Stamp-Dialog-Custom-Stamp-Button ${Sb().group}`},s(Ke.Z.customStamp)))),T.createElement(xb,{stampAnnotationTemplates:n,onSelect:e,onCancel:t,backend:o,dispatch:r,attachments:i,viewportWidth:a})):T.createElement(T.Fragment,null,T.createElement(_b,{className:Sb().header},T.createElement(T.Fragment,null,T.createElement("div",{className:Sb().title,role:"heading","aria-level":"1"},s(Ke.Z.customStamp)),T.createElement(ue.zx,{onClick:this._toggleStampsPicker,inverted:!0,className:`.PSPDFKit-Stamp-Dialog-Existing-Stamp-Button ${Sb().group}`},s(Ke.Z.useAnExistingStampDesign)))),T.createElement(Ib,{onCreate:e,onCancel:t,dispatch:r})))}}const Mb={top:"0 -2px",left:"-2px 0",right:"2px 0",bottom:"0 2px"},_b=e=>{let{children:t,raised:n,className:o,useDivider:r=!0}=e;const i=n?{boxShadow:`${Mb[n]} 5px rgba(0,0,0, 0.1)`,position:"relative",[`border${n.charAt(0).toUpperCase()}${n.substr(1)}Width`]:1}:{};return T.createElement(T.Fragment,null,r&&T.createElement(yf.Z.Divider,{spaced:!1,className:Sb().modalDivider}),T.createElement(yf.Z.Section,{className:F()(Sb().stampModalSection,o),style:i},t))},Rb=((0,Re.vU)({customStamp:{id:"customStamp",defaultMessage:"Custom Stamp",description:"Edit custom stamp template."}}),(0,Re.XN)(Fb));var Nb=n(6437),Lb=n(98785);const Bb=(0,Re.vU)({thumbnails:{id:"thumbnails",defaultMessage:"Thumbnails",description:"Thumbnails"}});const jb=(0,Eo.x)((function(e){const{pages:t,backend:n,viewportState:{viewportRect:o},annotations:r,attachments:a,showAnnotations:s,formFields:l,renderPageCallback:c}=e,u=(0,nt.Qg)(l);return{annotations:s?r:(0,i.D5)(),attachments:a,backend:n,formFields:l,formFieldValues:u,height:o.height,pages:t,renderPageCallback:c}}))((function(e){const{pages:t,closeOnPress:n,selectedPageIndex:o,navigationDisabled:r}=e,[a,s]=T.useState(null);T.useEffect((()=>{null==a||a.focus()}),[a]);const l=T.useMemo((()=>t.map(g.J)),[t]),{formatMessage:c}=(0,Re.YB)(),u=(0,fi.Bo)(a,l),d=(0,fi.mP)(u,(e=>String(e.index)),(e=>null==l?void 0:l.find((t=>String(t.index)===String(e))))),p=(0,A.I0)(),f=T.useCallback((function(e){r||(n?(p((0,Eu.YA)(e)),p((0,En.mu)())):e!==o&&p((0,Eu.YA)(e)))}),[n,p,o,r]),h=T.useCallback((function(e,n,o){const r=t.find((t=>t.pageIndex===e));if(!r)return{item:null,label:e+1+""};const i=d?e=>{d(e,(0,g.J)(r))}:void 0;return{item:T.createElement(Lb.Z,{key:r.pageKey,page:r,size:n,maxSize:o,pageRef:i}),label:r.pageLabel||e+1+""}}),[t,d]),m=T.useCallback((function(e){const n=t.find((t=>t.pageIndex===e));return(null==n?void 0:n.pageKey)||`${e}`}),[t]);return T.createElement("div",{role:"region","aria-label":c(Bb.thumbnails),tabIndex:-1,ref:s,className:"PSPDFKit-Sidebar-Thumbnails"},l?T.createElement(Nb.Z,{width:e.width,height:e.height,totalItems:l.size,renderItemCallback:h,itemKeyCallback:m,itemScale:e.scale,onItemPress:f,selectedItemIndexes:(0,i.l4)([o]),cssPrefix:"PSPDFKit-Sidebar",clickDisabled:r}):null)}));var zb=n(46983),Kb=n.n(zb);function Zb(e){let{position:t,children:n}=e;return T.createElement("div",null,T.createElement("div",{className:F()("PSPDFKit-Toolbars",Kb().root,{[Kb().stickToBottom]:"bottom"===t})},n))}var Ub=n(76367),Vb=n(70742),Gb=n.n(Vb);function Wb(e){const[t,o]=T.useState(!1),[r,i]=T.useState(!1),a=T.useRef(e.digitalSignatures);T.useEffect((()=>{e.digitalSignatures!==a.current&&o(!1),a.current=e.digitalSignatures}),[e.digitalSignatures]),T.useEffect((()=>{!async function(){const t=(0,Mr.jI)(e.digitalSignatures,e.showSignatureValidationStatus);i(t)}()}),[e.showSignatureValidationStatus,e.digitalSignatures]);const{formatMessage:s}=(0,Re.YB)(),{status:l,messageId:c,iconPath:u}=e.digitalSignatures?function(e){let{documentModifiedSinceSignature:t,status:n}=e;if(n===Ub._.valid)return t?{status:"warning",messageId:"digitalSignaturesDocModified",iconPath:"warning-2.svg"}:{status:"valid",messageId:"digitalSignaturesAllValid",iconPath:"digital-signatures/signature-valid.svg"};if(n===Ub._.warning)return{status:"warning",messageId:t?"digitalSignaturesSignatureWarningDocModified":"digitalSignaturesSignatureWarning",iconPath:"warning-2.svg"};if(n===Ub._.error)return{status:"error",messageId:t?"digitalSignaturesSignatureErrorDocModified":"digitalSignaturesSignatureError",iconPath:"digital-signatures/signature-error.svg"};return{status:null,messageId:null,iconPath:null}}(e.digitalSignatures):{status:null,messageId:null,iconPath:null};if(null==l||null==c||t)return null;const d=F()(Gb().root,Gb()[`status-${l}`],"PSPDFKit-Digital-Signatures-Status",`PSPDFKit-Digital-Signatures-Status-${(0,qn.kC)(l)}`),p=F()(Gb().signatureValidationStatusIcon,Gb()[`status-${l}-icon`],"PSPDFKit-Digital-Signatures-Status-Icon");return r?T.createElement("div",{className:d},T.createElement("div",{className:Gb().signatureInfoContainer},T.createElement("div",{className:Gb().signatureValidationStatusIconContainer},T.createElement(Ye.Z,{className:p,src:n(79230)(`./${u}`)})),T.createElement("span",{className:F()(Gb().signatureValidationStatusText,"PSPDFKit-Digital-Signatures-Status-Text")},s(qb[c]))),T.createElement(ue.zx,{className:F()(Gb().signatureValidationCloseButton,"PSPDFKit-Digital-Signatures-Status-Close-Button"),onClick:()=>{o(!0)},"aria-label":"Close digital signatures status bar"},T.createElement(Ye.Z,{className:Gb().signatureValidationCloseIcon,src:n(15708)}))):null}const qb=(0,Re.vU)({digitalSignaturesDocModified:{id:"digitalSignaturesDocModified",defaultMessage:"The document has been digitally signed, but it has been modified since it was signed.",description:"Message when document is valid but has been modified since it was signed."},digitalSignaturesAllValid:{id:"digitalSignaturesAllValid",defaultMessage:"The document has been digitally signed and all signatures are valid.",description:"Message when document is valid."},digitalSignaturesSignatureWarningDocModified:{id:"digitalSignaturesSignatureWarningDocModified",defaultMessage:"The document has been digitally signed, but it has been modified since it was signed and at least one signature has problems.",description:'Message when the document is in a "warning" status and the document has been modified since signing.'},digitalSignaturesSignatureWarning:{id:"digitalSignaturesSignatureWarning",defaultMessage:"The document has been digitally signed, but at least one signature has problems.",description:'Message when the document is in a "warning" status.'},digitalSignaturesSignatureErrorDocModified:{id:"digitalSignaturesSignatureErrorDocModified",defaultMessage:"The document has been digitally signed, but it has been modified since it was signed and at least one signature is invalid.",description:'Message when the document is in a "error" status and the document has been modified since signing.'},digitalSignaturesSignatureError:{id:"digitalSignaturesSignatureError",defaultMessage:"The document has been digitally signed, but at least one signature is invalid.",description:'Message when the document is in a "error" status.'}});var Hb=n(90133),$b=n.n(Hb);const Yb=T.memo((function(e){return T.createElement(zv,{itemClassName:$b().item,rootClassName:F()("PSPDFKit-Annotation-Tooltip",$b().root),items:e.items})}));var Xb=n(73396),Jb=n.n(Xb);function Qb(e){let{viewportState:{viewportRect:t,commentMode:n},children:o,scrollbarOffset:r}=e;const i={width:t.width+r,height:n===Yh._.PANE?t.height/2:t.height};return T.createElement("div",{className:`PSPDFKit-Viewport ${Jb().root}`,style:i},o)}var ew=n(73535),tw=n.n(ew);const nw=(0,Re.XN)((function(e){const{formatMessage:t}=e.intl;return T.createElement(yf.Z,{role:"alertdialog",onEscape:e.onCancel,background:"rgba(0,0,0,.1)",className:"PSPDFKit-Confirm-Dialog PSPDFKit-Reload-Document-Confirm-Dialog",accessibilityLabel:t(ow.reloadDocumentDialog),accessibilityDescription:t(ow.reloadDocumentDialogDesc)},T.createElement(yf.Z.Section,{style:{paddingBottom:0}},T.createElement("div",{className:`${tw().content} PSPDFKit-Confirm-Dialog-Content`},T.createElement("div",null,t(ow.instantModifiedWarning)))),T.createElement(yf.Z.Section,null,T.createElement(ue.hE,{className:"PSPDFKit-Confirm-Dialog-Buttons",align:"end"},T.createElement(ue.zx,{autoFocus:!0,onClick:e.onCancel,className:"PSPDFKit-Confirm-Dialog-Button PSPDFKit-Confirm-Dialog-Button-Cancel"},t(Ke.Z.cancel)),T.createElement(ue.zx,{onClick:e.onConfirm,primary:!0,className:"PSPDFKit-Confirm-Dialog-Button PSPDFKit-Confirm-Dialog-Button-Confirm"},t(ow.reloadDocument)))))})),ow=(0,Re.vU)({instantModifiedWarning:{id:"instantModifiedWarning",defaultMessage:"Reload document confirm dialog message",description:"The document was modified and is now in read-only mode. Reload the page to fix this."},reloadDocument:{id:"reloadDocument",defaultMessage:"Reload document",description:"Reload"},reloadDocumentDialog:{id:"reloadDocumentDialog",defaultMessage:"Confirm document reload",description:"Reload Document Confirm Dialog"},reloadDocumentDialogDesc:{id:"reloadDocumentDialogDesc",defaultMessage:"Dialog prompting the user to confirm reloading the document.",description:"Description for the Reload Document Dialog"}});var rw=n(83251),iw=n.n(rw);function aw(e){const{formatMessage:t}=(0,Re.YB)();return T.createElement(yf.Z,{role:"dialog",onEscape:e.onEscape,className:iw().modal,accessibilityLabel:t(sw.signatureDialog),accessibilityDescription:t(sw.signatureDialogDescription)},e.children)}const sw={signatureDialog:{id:"signatureDialog",defaultMessage:"Signature",description:"Signature Dialog"},signatureDialogDescription:{id:"signatureDialogDesc",defaultMessage:"This dialog lets you select a signature to insert into the document. If you do not have stored signatures, you can create one by drawing, typing or selecting an existing image.",description:"Signature Dialog description"}};function lw(e){return function(t){return!!t.type&&t.type.tabsRole===e}}var cw=lw("Tab"),uw=lw("TabList"),dw=lw("TabPanel");function pw(){return pw=Object.assign||function(e){for(var t=1;t=this.getTabsCount())){var n=this.props;(0,n.onSelect)(e,n.selectedIndex,t)}},r.getNextTab=function(e){for(var t=this.getTabsCount(),n=e+1;ne;)if(!Dw(this.getTab(t)))return t;return e},r.getFirstTab=function(){for(var e=this.getTabsCount(),t=0;t=0||(r[n]=e[n]);return r}(t,["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys"]));return T.createElement("div",Sw({},r,{className:gw(n),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:function(t){e.node=t,o&&o(t)},"data-tabs":!0}),this.getChildren())},o}(T.Component);function kw(e,t){return kw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kw(e,t)}Cw.defaultProps={className:"react-tabs",focus:!1},Cw.propTypes={};var Aw=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).handleSelected=function(e,t,o){var r=n.props.onSelect,i=n.state.mode;if("function"!=typeof r||!1!==r(e,t,o)){var a={focus:"keydown"===o.type};1===i&&(a.selectedIndex=e),n.setState(a)}},n.state=o.copyPropsToState(n.props,{},t.defaultFocus),n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,kw(t,n),o.getDerivedStateFromProps=function(e,t){return o.copyPropsToState(e,t)},o.getModeFromProps=function(e){return null===e.selectedIndex?1:0},o.copyPropsToState=function(e,t,n){void 0===n&&(n=!1);var r={focus:n,mode:o.getModeFromProps(e)};if(1===r.mode){var i=Math.max(0,ww(e.children)-1),a=null;a=null!=t.selectedIndex?Math.min(t.selectedIndex,i):e.defaultIndex||0,r.selectedIndex=a}return r},o.prototype.render=function(){var e=this.props,t=e.children,n=(e.defaultIndex,e.defaultFocus,function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["children","defaultIndex","defaultFocus"])),o=this.state,r=o.focus,i=o.selectedIndex;return n.focus=r,n.onSelect=this.handleSelected,null!=i&&(n.selectedIndex=i),T.createElement(Cw,n,t)},o}(T.Component);function Ow(){return Ow=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,["children","className"]);return T.createElement("ul",Ow({},o,{className:gw(n),role:"tablist"}),t)},o}(T.Component);function Fw(){return Fw=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(n,["children","className","disabled","disabledClassName","focus","id","panelId","selected","selectedClassName","tabIndex","tabRef"]);return T.createElement("li",Fw({},f,{className:gw(r,(e={},e[u]=c,e[a]=i,e)),ref:function(e){t.node=e,p&&p(e)},role:"tab",id:s,"aria-selected":c?"true":"false","aria-disabled":i?"true":"false","aria-controls":l,tabIndex:d||(c?"0":null)}),o)},o}(T.Component);function Nw(){return Nw=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(t,["children","className","forceRender","id","selected","selectedClassName","tabId"]);return T.createElement("div",Nw({},c,{className:gw(o,(e={},e[s]=a,e)),role:"tabpanel",id:i,"aria-labelledby":l}),r||a?n:null)},o}(T.Component);jw.defaultProps={className:Bw,forceRender:!1,selectedClassName:"react-tabs__tab-panel--selected"},jw.propTypes={},jw.tabsRole="TabPanel";var zw=n(52940),Kw=n.n(zw),Zw=n(70768),Uw=n.n(Zw);function Vw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Gw(e){for(var t=1;t{const e=new tb.Z(Gw(Gw({},o),{},{isSignature:!0,strokeColor:a.strokeColor}));n(e)}),[o,n,a]),d=T.useCallback((e=>{const t=a.set("strokeColor",e);n(t)}),[n,a]),p=T.useCallback((e=>{l(e.width/r.width)}),[r.width]),f=T.useCallback((e=>{n(e)}),[n]);return T.createElement("div",{className:Uw().wrapper},T.createElement("div",{className:Uw().colorPickerContainer},T.createElement(sp,{colorPresets:i,activeColor:a.strokeColor,accessibilityLabel:t(Ke.Z.color),onClick:d,className:F()(kr().colorPicker,"PSPDFKit-Electronic-Signatures-Color-Picker")})),T.createElement("div",{className:F()(kr().editorCanvasContainer,Uw().editorCanvasContainer)},T.createElement("div",{className:F()(kr().editorCanvas,Uw().canvas,"PSPDFKit-Electronic-Signatures-Canvas","interactions-disabled"),tabIndex:0},T.createElement(Hp.Z,{onResize:p}),T.createElement(Ai,{annotation:a,canvasSize:r,onDrawStart:f,onDraw:f,onDrawEnd:f,zoomLevel:s,cursor:"crosshair"}))),T.createElement("div",{className:Uw().actionContainer},a.lines.isEmpty()?T.createElement("div",{className:F()(kr().signHere,Uw().signHere,"PSPDFKit-Electronic-Signatures-Sign-Here-Label",{[kr().signHereHidden]:!a.lines.isEmpty()})},t(qw.signHere)):T.createElement(ue.zx,{onClick:u,inverted:!0,disabled:c,className:F()(kr().button,Uw().deleteSignature,"PSPDFKit-Electronic-Signatures-Clear-Signature-Button")},t(Ke.Z.clearSignature))))}const qw=(0,Re.vU)({signHere:{id:"signHere",defaultMessage:"Sign here",description:"Message on the signature canvas"}});var Hw=n(27074),$w=n.n(Hw),Yw=n(10713),Xw=n.n(Yw);function Jw(e){const{formatMessage:t}=(0,Re.YB)(),{image:n,onImageSelected:o,onRenderFinished:r}=e,[i,a]=T.useState(!1),[s,l]=T.useState(!1),[c,u]=T.useState(null),d=T.useRef(null),p=T.useRef(null),f=T.useCallback((e=>{const t=e.target.files[0];if(!t)return;const n=e.target.files[0].type;"image/jpeg"!==n&&"image/png"!==n||(o(t),e.target.value="")}),[o]),h=T.useCallback((e=>{e.stopPropagation(),d.current&&d.current.click()}),[]);return T.useEffect((function(){n&&n!==p.current&&(c&&URL.revokeObjectURL(c),u(URL.createObjectURL(n)),r(),p.current=n)}),[n,c,u,r]),T.createElement("div",{className:$w().wrapper},T.createElement("div",{className:F()($w().dragZone,{[$w().draggingOver]:i,[$w().hoveringOver]:s,[$w().dragZoneNoSelection]:!n,[$w().dragZoneNoLegacyEdge]:!0},"PSPDFKit-Electronic-Signatures-Image-Dropzone"),onDrag:e=>{e.preventDefault(),e.stopPropagation()},onDragStart:e=>{e.preventDefault(),e.stopPropagation()},onDragEnd:e=>{e.preventDefault(),e.stopPropagation(),a(!1)},onDragOver:e=>{e.preventDefault(),e.stopPropagation(),a(!0)},onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),a(!0)},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),a(!1)},onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),a(!1),e.dataTransfer.files&&e.dataTransfer.files[0]){const t=e.dataTransfer.files[0];if("image/jpeg"!==t.type&&"image/png"!==t.type)return;o(t)}},onClickCapture:h,onPointerOver:()=>{l(!0)},onPointerOut:()=>{l(!1)}},T.createElement("input",{type:"file",id:"image-picker",className:$w().filePicker,accept:"image/png, image/jpeg",onChange:f,ref:d,tabIndex:-1}),n?T.createElement("img",{src:c||void 0,className:$w().imagePreview}):T.createElement("div",{className:$w().dragZoneContent},T.createElement("button",{tabIndex:0,className:F()($w().addButton,"PSPDFKit-Electronic-Signatures-Add-Image-Button"),onClick:h},T.createElement(ue.TX,null,t(Qw.selectDragImage)),T.createElement(Ye.Z,{src:Xw(),className:$w().addIcon,"aria-hidden":"true"})),T.createElement("p",{className:$w().legend,"aria-hidden":!0},t(Qw.selectDragImage)))),n&&T.createElement("button",{className:F()($w().fileLabel,$w().buttonLink,"PSPDFKit-Electronic-Signatures-Replace-Image-Button"),onClick:h},t(Qw.replaceImage)))}const Qw=(0,Re.vU)({selectDragImage:{id:"selectDragImage",defaultMessage:"Select or Drag Image",description:"Indicate that the space is reserved to select or drag an image"},replaceImage:{id:"replaceImage",defaultMessage:"Replace Image",description:"Click to replace the image currently visible"}});var eS=n(52247),tS=n(49814),nS=n.n(tS);function oS(e){var t,n,o;const r=(0,Re.YB)().formatMessage,{signingFonts:i,onChange:s,colors:l,signature:c}=e,u=e.frameWindow.innerWidth,d=i.map((e=>e.name));let p,f;d.size<=1&&(p={paddingTop:"5%",height:"100%"},u>Je.Fg&&(f=48));const h=T.useCallback((e=>{if(!e)return;const t=c.set("fontColor",e);s(t)}),[c,s]),m=T.useCallback((e=>{const t=c.set("font",e);s(t)}),[c,s]),g=T.useCallback((e=>{const t=c.set("text",{format:"plain",value:e});s(t)}),[c,s]),v=T.useCallback((()=>{const e=c.set("text",{format:"plain",value:""});s(e)}),[c,s]),y=F()(nS().fontFamilyWrapper,"PSPDFKit-Electronic-Signatures-Font-Family-Wrapper"),b=l.find((e=>e.color&&e.color.equals(c.fontColor)));return T.createElement("div",{className:nS().wrapper},T.createElement("div",{className:nS().typingUiContainer,style:p},T.createElement("div",{className:nS().colorPickerContainer},T.createElement(sp,{colorPresets:l,activeColor:c.fontColor,onClick:h,className:F()(kr().colorPicker,"PSPDFKit-Electronic-Signatures-Color-Picker")})),T.createElement("style",null,`\n .PSPDFKit-Electronic-Signatures-Text-Input::placeholder {\n color: rgb(${null==b||null===(t=b.color)||void 0===t?void 0:t.r}, ${null==b||null===(n=b.color)||void 0===n?void 0:n.g}, ${null==b||null===(o=b.color)||void 0===o?void 0:o.b});\n }\n `),T.createElement("div",{className:nS().inputContainer},T.createElement(Nd,{accessibilityLabel:r(rS.ElectronicSignatures_SignHereTypeHint),placeholder:r(rS.signature),autoFocus:!0,value:c.text.value,onUpdate:g,styles:{input:F()(nS().input,"PSPDFKit-Electronic-Signatures-Text-Input",{[nS().opaque]:!c.text})},textStyles:{color:c.fontColor.toCSSValue(),fontFamily:(0,vt.hm)(c.font),fontSize:f}}),T.createElement("div",{className:nS().actionContainer},c.text?T.createElement(ue.zx,{onClick:v,inverted:!0,className:F()(kr().button,nS().deleteSignature,"PSPDFKit-Electronic-Signatures-Clear-Signature-Button")},r(Ke.Z.clearSignature)):T.createElement("div",{className:F()(kr().signHere,nS().signHere,"PSPDFKit-Electronic-Signatures-Sign-Here-Label")},r(rS.ElectronicSignatures_SignHereTypeHint))))),d.size>1?T.createElement("div",{className:F()(nS().fontFamiliesPickerContainer,"PSPDFKit-Electronic-Signatures-Font-Families-Container")},d.map(((e,t)=>{const n=e===c.font;return(0,a.kG)((0,$.HD)(e)&&(0,$.HD)(t)),T.createElement("div",{onClick:()=>{m(e)},className:y,key:e},T.createElement("input",{type:"radio",checked:n,value:t,id:e,name:e,onChange:t=>{t.target.checked&&m(e)},className:F()(nS().fontFamilyRadio,"PSPDFKit-Electronic-Signatures-Font-Family-Radio-Input")}),T.createElement("label",{"aria-label":e,htmlFor:e,style:{color:c.fontColor.toCSSValue(),fontFamily:`${(0,vt.hm)(e)}, cursive`},className:F()(nS().fontLabel,"PSPDFKit-Electronic-Signatures-Font-Family-Label")},c.text.value||r(rS.signature)))}))):null)}const rS=(0,Re.vU)({signature:{id:"signature",defaultMessage:"Signature",description:"Placeholder for the signature"},ElectronicSignatures_SignHereTypeHint:{id:"ElectronicSignatures_SignHereTypeHint",defaultMessage:"Type Your Signature Above",description:"Indicates where the signature will be"}});function iS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function aS(e){for(var t=1;te.name)),[d,p]=T.useState(0),[f,h]=T.useState(null),[m,g]=T.useState(!0),[v,y]=T.useState(null),[b,w]=T.useState(!1),[S,E]=T.useState(new s.gd(aS(aS({},n),{},{font:u.first(),fontSize:16,text:{format:"plain",value:""},fontColor:e.colorPresets[0].color}))),[P,x]=T.useState(new tb.Z(aS(aS({},n),{},{isSignature:!0,strokeColor:e.colorPresets[0].color}))),D=T.useRef(null),C=T.useCallback((e=>{E(e)}),[E]),k=T.useCallback((e=>{x(e)}),[x]),A=T.useCallback((async function(){if(0===d&&P){const e=fa(P,P.boundingBox.getLocation().scale(-1),c,new B.E9);o(e,m,!1)}else if(1===d&&v)o(v,m,!1);else if(2===d&&S&&S.fontColor){const e=await(0,He.Y)(S.text.value,S,a);l((0,Qt.gX)({fontColor:S.fontColor,font:S.font})),o(e,m,!1)}}),[d,v,P,S,o,m,a,c,l]);let O=!0;const I=i.toArray()[d];I!==eS.M.DRAW||P.lines.isEmpty()?(I===eS.M.IMAGE&&v&&b||I===eS.M.TYPE&&S.text.value)&&(O=!1):O=!1;const M=i.map((o=>{switch(o){case eS.M.DRAW:return{tab:T.createElement(Rw,{className:F()(Kw().tab,"PSPDFKit-Electronic-Signatures-Tab PSPDFKit-Electronic-Signatures-Tab-Draw"),key:"draw"},t(cS.draw)),tabPanel:T.createElement(jw,{key:"draw",className:"PSPDFKit-Electronic-Signatures-Tab-Panel PSPDFKit-Electronic-Signatures-Tab-Panel-Draw"},T.createElement(Ww,{preset:n,colors:e.colorPresets,onChange:k,signature:P,canvasSize:c}))};case eS.M.IMAGE:return{tab:T.createElement(Rw,{className:F()(Kw().tab,"PSPDFKit-Electronic-Signatures-Tab PSPDFKit-Electronic-Signatures-Tab-Image"),key:"image"},t(cS.image)),tabPanel:T.createElement(jw,{key:"image",className:"PSPDFKit-Electronic-Signatures-Tab-Panel PSPDFKit-Electronic-Signatures-Tab-Panel-Image"},T.createElement(Jw,{image:v,onImageSelected:y,onRenderFinished:()=>w(!0)}))};case eS.M.TYPE:return{tab:T.createElement(Rw,{className:F()(Kw().tab,"PSPDFKit-Electronic-Signatures-Tab PSPDFKit-Electronic-Signatures-Tab-Type"),key:"type"},t(cS.type)),tabPanel:T.createElement(jw,{key:"type",className:"PSPDFKit-Electronic-Signatures-Tab-Panel PSPDFKit-Electronic-Signatures-Tab-Panel-Type"},T.createElement(oS,{signingFonts:r,onChange:C,frameWindow:e.frameWindow,colors:e.colorPresets,signature:S,preset:n}))};default:return}}));return T.useLayoutEffect((()=>{if(D.current){const e=D.current.querySelectorAll('li[role="tab"]');h(Array.from(e).map((e=>e.getBoundingClientRect().width)))}}),[h]),T.createElement(Aw,{onSelect:e=>{p(e)},className:F()(Kw().tabsContainer,"PSPDFKit-Electronic-Signatures-Tabs-Container"),defaultFocus:!0,environment:e.frameWindow,domRef:e=>D.current=e},T.createElement(Iw,{className:F()(Kw().tabsList,{[Kw().singleTab]:1===M.size},"PSPDFKit-Electronic-Signatures-Tabs-List")},T.createElement("div",{className:Kw().activeTabIndicator,style:{left:(f?f.filter(((e,t)=>te+t+13),0):0)+32,width:f?f[d]:0}}),M.map((e=>e&&e.tab))),T.createElement("div",{className:Kw().contentArea},M.map((e=>e&&e.tabPanel))),T.createElement("div",{className:Kw().footer},e.hasSignaturesCreationListener&&T.createElement("label",{className:F()(Kw().checkbox,"PSPDFKit-Electronic-Signatures-Store-Signature-Checkbox")},T.createElement("input",{type:"checkbox",name:"store",checked:m,onChange:e=>{g(e.target.checked)}}),T.createElement("span",{className:Kw().checkboxLabel},t(cS.saveSignature))),T.createElement(ue.hE,{className:Kw().group,align:"end",style:e.hasSignaturesCreationListener?void 0:{width:"100%"}},T.createElement(ue.zx,{onClick:e.onCancel,className:F()(Kw().button,"PSPDFKit-Electronic-Signatures-Cancel-Button")},t(Ke.Z.cancel)),T.createElement(ue.zx,{primary:!0,disabled:O,onClick:A,className:F()(Kw().button,"PSPDFKit-Electronic-Signatures-Done-Button")},t(Ke.Z.done)))))}const cS=(0,Re.vU)({saveSignature:{id:"saveSignature",defaultMessage:"Save Signature",description:"Save the signature that is in creation"},draw:{id:"draw",defaultMessage:"Draw",description:"Draw tab"},image:{id:"image",defaultMessage:"Image",description:"Image tab"},type:{id:"type",defaultMessage:"Type",description:"Type tab"}});var uS=n(44295),dS=n.n(uS);function pS(e){const{formatMessage:t}=(0,Re.YB)(),{storedSignatures:n,onCreate:o,onDelete:r,dispatch:i}=e,[a,s]=T.useState(!1),l=!a&&Boolean(n&&n.size>0);return T.useEffect((()=>{e.frameWindow.document.fonts&&(0,mp.GE)(e.signingFonts,e.frameWindow.document.fonts)}),[e.signingFonts,e.frameWindow.document.fonts]),l&&n?T.createElement(T.Fragment,null,T.createElement("div",{className:dS().header},T.createElement("div",{className:F()(dS().legend,"PSPDFKit-Electronic-Signatures-Signature-Heading"),role:"heading","aria-level":"1"},t(Ke.Z.signatures)),T.createElement(ue.zx,{className:F()(dS().addButton,"PSPDFKit-Electronic-Signatures-Add-Signature-Button"),onClick:()=>{s(!0)},inverted:!0},t(Ke.Z.addSignature))),T.createElement("div",{className:dS().signaturePickerContainer},T.createElement(mb,{signatures:n,onSelect:e=>{o(e,!1,!1)},onDelete:e=>{r(e,!1)},backend:e.backend,attachments:e.attachments,viewportWidth:e.viewportWidth,showDeleteBtn:e.hasSignaturesDeletionListener})),T.createElement("div",{className:dS().footer},T.createElement(ue.hE,{className:dS().group,align:"end"},T.createElement(ue.zx,{onClick:e.onCancel,className:F()(dS().button,"PSPDFKit-Signature-Dialog-Cancel-Button")},t(Ke.Z.cancel))))):T.createElement(T.Fragment,null,T.createElement("p",{className:dS().legend},t(Ke.Z.addSignature)),T.createElement(lS,{preset:e.preset,frameWindow:e.frameWindow,colorPresets:e.colorPresets,onCreate:e.onCreate,onCancel:e.onCancel,hasSignaturesCreationListener:e.hasSignaturesCreationListener,signingFonts:e.signingFonts,creationModes:e.creationModes,dispatch:i}))}var fS=n(72952),hS=n.n(fS),mS=n(84747),gS=n(23477),vS=n(6733),yS=n.n(vS);function bS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function wS(e){for(var t=1;tn.e(5747).then(n.bind(n,12711)))),PS=T.createElement("div",{className:yS().fallback,"data-testid":"fallback"},T.createElement("div",{className:yS().fallbackToolbar}),T.createElement("div",{className:yS().fallbackPagesView},T.createElement(Xe.Z,{scale:2})),T.createElement("div",{className:yS().fallbackToolbar})),xS={documentEditor:{id:"documentEditor",defaultMessage:"Document Editor",description:"Document Editor"},documentEditorDesc:{id:"documentEditorDesc",defaultMessage:"Make changes to the current document",description:"Description of the Document Editor modal"}},DS=e=>{const{formatMessage:t}=(0,Re.YB)(),[n,o]=T.useState(!0),r=T.useCallback((e=>{o(!e)}),[]),i=T.useCallback((()=>{n&&e.onCancel()}),[n,e]);return T.createElement(yf.Z,{onEscape:i,useBorderRadius:!1,className:yS().modal,accessibilityLabel:t(xS.documentEditor),accessibilityDescription:t(xS.documentEditorDesc)},T.createElement(T.Suspense,{fallback:PS},T.createElement(ES,{onCancel:e.onCancel,scale:e.scale,CSS_HACK:SS,onDialog:r})))};function CS(){const[e,t]=T.useState(null);T.useEffect((()=>{null==e||e.focus()}),[e]),(0,fi.Bo)(e,null);const n=F()(uv().container,"PSPDFKit-Sidebar-Custom");return T.createElement("div",{role:"region",tabIndex:-1,ref:t,className:n})}var kS,AS=n(74792),OS=n(47825);function TS(e){const{formatMessage:t}=(0,Re.YB)();return T.createElement("form",{onSubmit:e.onSave,className:F()(lv().editor,"PSPDFKit-Sidebar-Bookmarks-Editor"),onKeyUp:t=>{t.which===Sr.zz&&e.onCancel()}},e.title&&T.createElement("h2",{className:F()(lv().heading,"PSPDFKit-Sidebar-Bookmarks-Heading")},e.title),T.createElement("label",null,T.createElement(ue.oi,{value:e.value,onChange:e.onChange,autoFocus:!0,selectTextOnFocus:!0,name:"name",placeholder:t(Ke.Z.name),autoComplete:"off",style:{fontSize:"inherit",fontWeight:"normal",padding:"calc(0.8125em/ 2) 0.8125em"}})),T.createElement("div",{className:F()(lv().buttonContainer,"PSPDFKit-Sidebar-Bookmarks-Button-Container")},e.onDelete&&T.createElement(ue.zx,{onClick:e.onDelete,inverted:!0,danger:!0,className:"PSPDFKit-Sidebar-Bookmarks-Button-Delete",style:{marginRight:"5em"}},t(Ke.Z.delete)),T.createElement("div",null,T.createElement(ue.zx,{onClick:e.onCancel,className:"PSPDFKit-Sidebar-Bookmarks-Button-Cancel",style:{marginRight:"0.5em"}},t(Ke.Z.cancel)),T.createElement(ue.zx,{primary:!0,type:"submit",className:"PSPDFKit-Sidebar-Bookmarks-Button-Save"},t(Ke.Z.save)))))}function IS(e){var t;const{bookmarks:o,pages:r,currentPageIndex:a,bookmarkManager:s}=e,[l,c]=T.useState(null);T.useEffect((()=>{null==l||l.focus()}),[l]);const[u,d]=T.useState(null),[p,f]=T.useState(null),[h,m]=T.useState(!1),[g,v]=T.useState(null),y=(0,A.I0)(),b=T.useRef(),w=T.useRef(null),S=T.useRef(!1),[E,P]=T.useState(new Set),{formatMessage:x}=(0,Re.YB)(),D=(0,fi.R9)((()=>{d(null),f(null),m(!1)})),C=(0,fi.R9)((e=>{f(e.currentTarget.value)})),k=(0,fi.R9)((()=>{u&&u.id&&(S.current=!0),D(),v(x(_S.cancelledEditingBookmark))})),O=(0,fi.R9)((e=>{if(e.persist(),e.preventDefault(),u&&p!==u.name){let e=u.set("name",p).setIn(["action","pageIndex"],a);e.id?s.updateObject(e):(e=e.set("id",(0,OS.A)()),w.current=e.id,s.createObject(e)),s.autoSave(),v(x(_S.bookmarkEdited))}else v(x(_S.bookmarkCreated));D()})),I=(0,fi.R9)((()=>{u&&(s.deleteObject(u),s.autoSave()),D(),v(x(_S.bookmarkDeleted))})),M=(0,fi.R9)((()=>{m(!1)})),_=(0,fi.R9)((()=>{m(!0)})),R=(0,fi.R9)((e=>{d(e),f(e.name||"")})),N=(0,fi.R9)((()=>{d(new j.rp({action:new j.Di({pageIndex:e.currentPageIndex})})),f("")}));T.useEffect((()=>{null!=l&&l.hasAttribute("aria-label")&&l.focus()}),[l]);const L=(0,fi.jC)(e);T.useEffect((()=>{if(b.current&&null!=L&&L.bookmarks&&o&&(L.bookmarks!==o||S.current)){var e;const t=null!==(e=MS(o).findIndex((e=>e.id===w.current)))&&void 0!==e?e:-1;t>-1&&b.current.setActiveItem(t),S.current=!1}}));const B=o?(0,i.aV)(MS(o)):o,z=(0,fi.Bo)(l,B),K={className:F()(lv().container,!B&&lv().loading+" PSPDFKit-Sidebar-Loading",B&&0===B.size&&" PSPDFKit-Sidebar-Empty","PSPDFKit-Sidebar-Bookmarks"),ref:c,style:{width:e.width},role:"region","aria-label":x(Ke.Z.bookmarks)},Z=(0,fi.mP)(z,(e=>e.id),(e=>null==B?void 0:B.find((t=>t.id===e))));if(!B)return T.createElement("div",(0,De.Z)({},K,{tabIndex:0}),T.createElement(ue.TX,{"aria-live":"polite"},x(_S.loadingBookmarks)),kS||(kS=T.createElement(Xe.Z,null)));const U=r.get(a),V=U&&U.get("pageLabel");return T.createElement("div",K,T.createElement(ue.TX,{"aria-live":"polite"},x(Ke.Z.bookmarks)),u&&!u.id?T.createElement(TS,{onChange:C,onSave:O,onCancel:k,value:p,title:x(Ke.Z.pageX,{arg0:V||e.currentPageIndex+1})+": "+x(_S.newBookmark)}):T.createElement("div",{style:{width:"100%"}},T.createElement("div",{className:uv().sidebarHeader},T.createElement("h2",{"aria-hidden":"true",className:F()(lv().heading,"PSPDFKit-Sidebar-Bookmarks-Heading")}," ",T.createElement("span",null,x(Ke.Z.bookmarks))),T.createElement(ue.zx,{primary:!0,onClick:N,className:F()("PSPDFKit-Sidebar-Bookmarks-Button-Add"),autoFocus:!0},x(_S.newBookmark)))),B&&B.size>0&&T.createElement(ue.HJ,{onActiveItemIndexChange:e=>{const t=B.get(e);t&&t.id&&(w.current=t.id)},ref:b,items:B.toArray().map(((o,i)=>{const s=o.action,l=s.pageIndex===a,c=F()({[lv().layout]:!0,[lv().layoutWidth]:!0,[lv().layoutEditing]:o===u,[lv().layoutNarrow]:e.closeOnPress,[lv().selected]:l,"PSPDFKit-Sidebar-Bookmarks-Bookmark":!0,"PSPDFKit-Sidebar-Bookmarks-Bookmark-Selected":l,"PSPDFKit-Sidebar-Bookmarks-Bookmark-Editing":o===u}),d=F()([lv().name],{[lv().nameEllipsis]:!E.has(i)},"PSPDFKit-Sidebar-Bookmarks-Name"),f=r.get(s.pageIndex),h=f&&f.pageLabel,m=o.action instanceof j.Di?x(Ke.Z.pageX,{arg0:h||s.pageIndex+1}):null,g=o.action instanceof j.Di?h||s.pageIndex+1:null,v=m||x(Ke.Z.bookmark),b=T.createElement(T.Fragment,null,T.createElement("div",{onClick:()=>(e=>{P((t=>(t.has(e)?t.delete(e):t.add(e),new Set(t))))})(i),className:d},o.name||x(Ke.Z.bookmark)),!!g&&T.createElement("span",{className:F()(lv().pageNumber)},g));o.name;const w=Z?e=>{Z(e,o)}:void 0;return T.createElement("div",{key:"bookmark-item-"+o.id,ref:w,className:F()(lv().wrapper,lv().container)},o===u?t||(t=T.createElement(TS,{onChange:C,onSave:O,onCancel:k,onDelete:_,value:p})):T.createElement("div",{className:F()(lv().wrapper,lv().fullWidth)},T.createElement("div",{className:c,"aria-label":v,onClick:t=>{t.preventDefault(),y((0,$r.aG)(o.action)),e.closeOnPress&&y((0,En.mu)())}},T.createElement("button",{type:"button",className:lv().layoutSmallWidth,"aria-label":o.action instanceof j.Di?x(Ke.Z.gotoPageX,{arg0:h||o.action.pageIndex+1}):o.name||void 0},T.createElement("span",{className:lv().wrapper},b)),T.createElement("button",{title:v+": "+x(Ke.Z.edit),className:F()(lv().edit,e.closeOnPress&&lv().editVisible,"PSPDFKit-Sidebar-Bookmarks-Button-Edit"),onClick:e=>{e.stopPropagation(),R(o)}},T.createElement(Ye.Z,{src:n(56735),role:"presentation"})))))}))}),T.createElement(ue.TX,{announce:"polite"},g),B&&B.size>0&&h&&T.createElement($u.Z,{onCancel:M,onConfirm:I,accessibilityLabel:x(_S.deleteBookmarkConfirmAccessibilityLabel),accessibilityDescription:x(_S.deleteBookmarkConfirmAccessibilityDescription)},x(_S.deleteBookmarkConfirmMessage)))}const FS=(0,AS.createSubscription)({getCurrentValue:()=>{},subscribe:(e,t)=>{let n=function(){};const o=()=>{const n=e.getBookmarks();return n.then(t),n};return o().then((()=>{e.eventEmitter.on("change",o),n=()=>{e.eventEmitter.off("change",o)}})),()=>n()}}),MS=(0,jo.Z)((e=>e.valueSeq().toArray().sort(((e,t)=>{const n=e.action.pageIndex,o=t.action.pageIndex,r=!isNaN(n),i=!isNaN(o);return r&&i?n===o?0:n2&&void 0!==arguments[2]?arguments[2]:{};return(t,l)=>{var c,d;null===o&&(o=l().viewportState.currentPageIndex),(0,a.kG)("number"==typeof o,"Page index for a signature should be a number.");const p=l().pages.get(o);(0,a.kG)(p,`Cannot find page at index ${o}`);const f=p.pageSize;let h,m=e.withMutations((e=>{const t=(0,J.lx)(l());Object.keys(t).forEach((n=>{e.set(n,t[n])})),e.set("pageIndex",o),e.set("isSignature",!0)}));if(n){m=m.set("boundingBox",m.boundingBox.set("top",0).set("left",0)),m=_t(m,new RS.Z({width:n.width,height:n.height}),!0);const{boundingBox:e}=m,t=n.left+(n.width-e.width)/2,o=n.top+(n.height-e.height)/2;h=new Mi.Z({x:t,y:o})}else if(!m.boundingBox.top&&!m.boundingBox.left){const{boundingBox:e}=m;h=new Mi.Z({x:f.width/2-e.width/2,y:f.height/2-e.height/2})}h&&(m=fa(m,h,f,new Mi.Z));const g={annotations:(0,i.aV)([m]),reason:u.f.SELECT_END};l().eventEmitter.emit("annotations.willChange",g),t({type:te.mGH,signature:m}),null===(c=l().annotationManager)||void 0===c||c.createObject(m,{attachments:r&&s?(0,i.D5)([[r,s]]):(0,i.D5)()}),null===(d=l().annotationManager)||void 0===d||d.autoSave()}}function LS(e,t){return(n,o)=>{const r=e.merge({id:null,name:null,pageIndex:0});t&&n({type:te.W0l,annotation:r}),o().eventEmitter.emit("inkSignatures.create",r),o().eventEmitter.emit("inkSignatures.change"),o().eventEmitter.emit("storedSignatures.create",r),o().eventEmitter.emit("storedSignatures.change")}}function BS(e){return{type:te.Kw7,annotations:e}}function jS(){return async(e,t)=>{const{populateStoredSignatures:n}=t().signatureState;e(BS(await n()))}}var zS=n(78869),KS=n.n(zS);const ZS=(0,Re.XN)((e=>{let{position:t,onCropApply:o,onCropCancel:r,isCropAreaSelected:i,frameWindow:a,intl:{formatMessage:s}}=e;return T.useEffect((()=>{function e(e){"Enter"===e.key?i&&o(!1):"Escape"===e.key&&r()}return a.document.addEventListener("keydown",e),()=>{a.document.removeEventListener("keydown",e)}}),[i]),T.createElement("div",{className:F()("PSPDFKit-Annotation-Toolbar","PSPDFKit-Document-Crop-Toolbar",Bd().root,KS().container,{[Bd().stickToBottom]:"bottom"===t}),onMouseUp:US,onTouchEnd:US,onPointerUp:US},T.createElement("div",{className:KS().buttonContainer},T.createElement("div",{role:"button",className:F()(KS().cropButton,{[KS().cropButtonDisabled]:!i}),onClick:i?()=>o(!1):void 0,title:s(Ke.Z.cropCurrentPage),"aria-disabled":!i},T.createElement(Ye.Z,{src:n(8571)})," ",T.createElement("span",{className:KS().desktopButtonText},s(Ke.Z.cropCurrentPage)),T.createElement("span",{className:KS().mobileButtonText},s(Ke.Z.cropCurrent))),T.createElement("div",{role:"button",className:F()(KS().cropButton,{[KS().cropButtonDisabled]:!i}),onClick:i?()=>o(!0):void 0,title:s(Ke.Z.cropAllPages),"aria-disabled":!i},T.createElement(Ye.Z,{src:n(80525)}),T.createElement("span",{className:KS().desktopButtonText},s(Ke.Z.cropAllPages)),T.createElement("span",{className:KS().mobileButtonText},s(Ke.Z.cropAll)))),T.createElement("div",{role:"button",className:`${KS().cancelButton} ${KS().cancelDesktop}`,onClick:()=>r(),title:s(Ke.Z.cancel)},T.createElement("span",null,s(Ke.Z.cancel))),T.createElement("div",{role:"button",className:`${KS().cropButton} ${KS().cancelMobile}`,onClick:()=>r(),title:s(Ke.Z.cancel)},T.createElement(Ye.Z,{src:n(58054)})))}));function US(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}var VS=n(32801);const GS=sc.AK,WS=e=>{var t,o,r,a;const s=(0,Re.YB)(),{formatMessage:l}=s,c=(0,A.I0)(),{frameWindow:u,position:d,viewportWidth:p,creationMode:f}=e,h=(0,A.v9)(Gl.YG),{handleGroupExpansion:m,handleEntered:g,expandedGroup:v,prevActiveGroup:y,btnFocusRef:b}=(0,fi.Tp)(),w=(0,A.v9)(Gl.lK),S=(0,A.v9)((e=>e.contentEditorSession.textBlockInteractionState.state)),E=(0,A.v9)((e=>e.contentEditorSession.dirty)),P=null===w||S!==Gl.FP.Active;T.useEffect((()=>{h.faceList||h.loading||c(Su.O2)}),[h.faceList,h.loading,c]);const x=h.faceList||[new Gl.I5({family:""})],D=(0,A.v9)((e=>e.customFontsReadableNames))||(0,i.l4)(),C=[...x.concat(D.toArray().map((e=>new Gl.I5({family:e}))).filter((e=>!x.some((t=>t.family===e.family))))).map((e=>({label:e.family,value:e.family})))],k=T.useCallback((e=>{let{modification:t,preventFocusShift:n=!1}=e;const[[o,r]]=Object.entries(t);switch(o){case"fontSize":c((0,Su.Mq)({size:r})),n||gh.dispatch("content-editing:re-focus",null);break;case"font":c((0,Su.Mq)({family:r})),n||gh.dispatch("content-editing:re-focus",null);break;case"bold":c((0,Su.Mq)({bold:r})),n||gh.dispatch("content-editing:re-focus",null);break;case"italic":c((0,Su.Mq)({italic:r})),n||gh.dispatch("content-editing:re-focus",null)}}),[c]),O=T.useCallback((()=>c((0,Su.u)(f?Gl.wR.Edit:Gl.wR.Create))),[c,f]),I=T.useCallback((()=>{c((0,Su.u)(Gl.wR.Delete))}),[c]),M=w?(e=>{if(e.detectedStyle.selectionStyleInfo){const{family:t,bold:n,italic:o,color:r,size:i}=e.detectedStyle.selectionStyleInfo;return{family:t,bold:n,italic:o,color:r?j.Il.fromHex(r):null,size:i}}const{family:t,variant:{bold:n,italic:o}}=e.modificationsCharacterStyle.fontRef.faceRef,{color:r,fontRef:{size:i}}=e.modificationsCharacterStyle;return{family:t,bold:n,italic:o,color:j.Il.fromHex(r),size:i}})(w):null,_=null!==(t=null==M?void 0:M.family)&&void 0!==t?t:void 0,R=null!==(o=null==M?void 0:M.size)&&void 0!==o?o:void 0,N=null==M?void 0:M.bold,L=null==M?void 0:M.italic;let B=null;if(null!=(null==M?void 0:M.color)){var z;const e=M.color;B=null!==(z=mt.Ei.COLOR_PRESETS.find((t=>{var n;return null===(n=t.color)||void 0===n?void 0:n.equals(e)})))&&void 0!==z?z:{color:e,localization:Ke.Z.color}}const K=Boolean((null==w?void 0:w.detectedStyle.selectionStyleInfo)&&null==B),Z={"text-color":{node:T.createElement(VS.Z,{onChange:e=>{var t;e&&c((0,Su.Mq)({color:null===(t=e.color)||void 0===t?void 0:t.toHex()}));gh.dispatch("content-editing:re-focus",null)},styles:Tp(),value:null!==(r=B)&&void 0!==r?r:K?null:null!==(a=mt.Ei.COLOR_PRESETS.find((e=>e.color===j.Il.BLACK)))&&void 0!==a?a:null,caretDirection:"down",className:"PSPDFKit-Content-Editing-Toolbar-Font-Color",menuClassName:"PSPDFKit-Content-Editing-Toolbar-Font-Color-Menu",removeTransparent:!0,frameWindow:u,colors:mt.Ei.COLOR_PRESETS,innerRef:(0,Hd.CN)("text-color",v)?b:void 0,unavailableItemFallback:K?{type:"label",label:""}:{type:"swatch"},disabled:P,accessibilityLabel:l(Ke.Z.color)}),title:l(Ke.Z.color)},font:{node:T.createElement(Dp,{onChange:k,caretDirection:"down",frameWindow:u,intl:s,styles:Tp(),fontSizes:GS,fontFamilyItems:C,showAlignmentOptions:!1,showFontStyleOptions:!0,currentFontFamily:_,currentFontSize:R,isBold:N,isItalic:L,fontFamilyClasses:"PSPDFKit-Content-Editing-Toolbar-Font-Family",fontFamilyMenuClasses:"PSPDFKit-Content-Editing-Toolbar-Font-Family-Menu",fontSizeClasses:"PSPDFKit-Content-Editing-Toolbar-Font-Size",fontSizeMenuClasses:"PSPDFKit-Content-Editing-Toolbar-Font-Size-Menu",horizontalAlignClasses:"PSPDFKit-Content-Editing-Toolbar-Alignment",verticalAlignClasses:"PSPDFKit-Content-Editing-Toolbar-Vertical-Alignment",disabled:P,ref:(0,Hd.CN)("font",v)?b:void 0}),title:l(Ke.Z.font)}};return T.createElement("div",{className:F()("PSPDFKit-Content-Editing-Toolbar",Tp().root,{[Tp().stickToBottom]:"bottom"===d})},T.createElement("div",{className:Tp().content},v?T.createElement("div",{className:Tp().right},T.createElement(Zd.B,{position:d,onClose:()=>m(null),isPrimary:!1,onEntered:g,intl:s,className:Tp().expanded},v?Z[v].node:void 0)):T.createElement("form",{className:Tp().form,onSubmit:jr.PF},T.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"}},T.createElement("div",{className:F()(Tp().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Add-Text")},T.createElement(Id.Z,{type:"add-text-box",icon:n(92982),title:l(qS.addTextBox),className:F()("PSPDFKit-Content-Editing-Toolbar-Add-Text-Box",Tp().iconButton,{[Tp().iconButtonActive]:f}),onPress:O,selected:f})),T.createElement("div",{className:F()(Tp().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-TextColor")},T.createElement(Id.Z,{type:"text-color",title:Z["text-color"].title,className:Tp().button,onPress:()=>m("text-color"),disabled:Boolean(v)||P,presentational:p>Je.GI,ref:(0,Hd.Kt)("text-color",v,y)?b:void 0}),Z["text-color"].node),T.createElement("div",{className:F()(Tp().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Font")},T.createElement(Id.Z,{type:"font",title:Z.font.title,className:Tp().button,onPress:()=>m("font"),disabled:P,presentational:p>Je.GI,ref:(0,Hd.Kt)("font",v,y)?b:void 0}),Z.font.node)),T.createElement("div",{className:"PSPDFKit-Toolbar-Spacer",style:{display:"flex",flex:1}}),p>=Je.GI?T.createElement("div",{className:Tp().buttonContainer},T.createElement(Id.Z,{type:"delete",title:s.formatMessage(Ke.Z.delete),className:F()("PSPDFKit-Content-Editor-Toolbar-Button-Delete",Tp().iconButton),onPress:I,disabled:!w}),T.createElement("button",{className:Tp().contentEditorButton,type:"button",onClick:()=>c(Su.u8),title:s.formatMessage(Ke.Z.cancel)},T.createElement("span",null,s.formatMessage(Ke.Z.cancel))),T.createElement("button",{className:F()(Tp().contentEditorButton,Tp().saveButton,{[Tp().disabledButton]:!E}),type:"button",onClick:()=>c(Su.Ij),title:s.formatMessage(Ke.Z.saveAndClose),disabled:!E},T.createElement("span",null,s.formatMessage(Ke.Z.saveAndClose)))):T.createElement(T.Fragment,null,T.createElement(Id.Z,{type:"delete",title:s.formatMessage(Ke.Z.delete),className:F()("PSPDFKit-Content-Editor-Toolbar-Button-Delete",Tp().iconButton),onPress:I,disabled:!w}),T.createElement(Id.Z,{type:"close",title:s.formatMessage(Ke.Z.close),className:Tp().button,onPress:()=>{c(E?(0,Su.Yg)(!0):Su.u8)}})))))},qS=(0,Re.vU)({addTextBox:{id:"addTextBox",defaultMessage:"Add Text Box",description:"Label for the add text box button"}});var HS,$S,YS,XS=n(51559),JS=n(2270),QS=n(99728),eE=n(55024),tE=n(4888),nE=n.n(tE);function oE(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}const rE={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iE=(0,tt.b1)(),aE=T.memo((function(e){let{position:t}=e;const{formatMessage:n}=(0,Re.YB)(),[o,r]=(0,fi.$)(),[i,a]=(0,fi.nG)(),s=(0,fi.R9)((()=>{(0,O.unstable_batchedUpdates)((()=>{a([]),u===eE.Q.result&&d(eE.Q.documentA)}))})),[l,c]=(0,fi.jw)(),u=(0,XS.SH)(l),d=(0,fi.R9)((e=>{e!==u&&c(e||eE.Q.result)})),p=()=>{(0,O.unstable_batchedUpdates)((()=>{a([]),r(!1),d(eE.Q.documentA)}))},[,f]=(0,fi.dX)(),h=(0,fi.R9)((()=>{s(),d(eE.Q.documentA),f(!1)}));return T.createElement("div",{className:F()(nE().root,{"PSPDFKit-DocumentComparison-Toolbar":!0,[nE().stickToBottom]:"bottom"===t}),onMouseUp:oE,onTouchEnd:oE,onPointerUp:oE},T.createElement("div",{className:nE().content},T.createElement("div",{className:nE().left},T.createElement("form",{className:nE().form,onSubmit:jr.PF},T.createElement("div",{className:nE().tabsContainer},T.createElement("div",{className:F()(nE().documentTab,{[nE().documentTabActive]:u===eE.Q.documentA,[nE().autoCompareTab]:o,[nE().mobileTab]:iE}),onPointerUp:()=>d(eE.Q.documentA),onTouchEnd:()=>d(eE.Q.documentA)},T.createElement("span",{className:F()(nE().documentText,{[nE().mobileText]:!!iE,[nE().documentTabActiveText]:u===eE.Q.documentA})},n(iE?QS.messages.Comparison_documentOldTouch:QS.messages.Comparison_documentOld)),!o&&i.length<3&&T.createElement(sE,{referencePoints:i,startIndex:0,styles:nE(),touchDevice:iE}),!o&&i.length>=3&&T.createElement("span",{className:F()([nE().toolbarReferencePoints,nE().toolbarReferencePointsSet])},T.createElement("div",{className:nE().toolbarReferencePoint},T.createElement("svg",(0,De.Z)({},rE,{className:nE().documentCheckMark}),HS||(HS=T.createElement("circle",{cx:"10",cy:"10",r:"10"})),cE)))),T.createElement("div",{className:F()(nE().documentTab,{[nE().documentTabActive]:u===eE.Q.documentB,[nE().autoCompareTab]:o,[nE().mobileTab]:iE}),onPointerUp:()=>d(eE.Q.documentB),onTouchEnd:()=>d(eE.Q.documentB)},T.createElement("span",{className:F()(nE().documentText,{[nE().mobileText]:!!iE,[nE().documentTabActiveText]:u===eE.Q.documentB})},n(iE?QS.messages.Comparison_documentNewTouch:QS.messages.Comparison_documentNew)),!o&&i.length<6&&T.createElement(sE,{referencePoints:i,startIndex:3,styles:nE(),touchDevice:iE}),!o&&6===i.length&&T.createElement("span",{className:F()([nE().toolbarReferencePoints,nE().toolbarReferencePointsSet])},T.createElement("div",{className:nE().toolbarReferencePoint},T.createElement("svg",(0,De.Z)({},rE,{className:nE().documentCheckMark}),$S||($S=T.createElement("circle",{cx:"10",cy:"10",r:"10"})),cE)))),(o||6===i.length)&&T.createElement("div",{className:F()(nE().documentTab,nE().resultTab,{[nE().documentTabActive]:u===eE.Q.result,[nE().autoCompareTab]:o}),onPointerUp:()=>d(null),onTouchEnd:()=>d(null)},T.createElement("span",{className:F()(nE().documentText,{[nE().mobileText]:!!iE,[nE().documentTabActiveText]:u===eE.Q.result})},n(QS.messages.Comparison_result)))),T.createElement("div",{className:nE().controlButtonContainer},!o&&i.length>0&&T.createElement("div",{className:F()(nE().buttonReset,nE().buttonResetActive,{[nE().mobileButton]:iE}),onPointerUp:h,onTouchEnd:h},n(QS.messages.Comparison_resetButton)),o&&T.createElement("div",{className:F()({[nE().buttonAlignDocuments]:!0,[nE().mobileButton]:iE}),onPointerUp:p,onTouchEnd:p},n(iE?QS.messages.Comparison_alignButtonTouch:QS.messages.Comparison_alignButton)))))))}));const sE=e=>{const{styles:t,referencePoints:n,startIndex:o,touchDevice:r}=e,i=n.slice(o,o+3),a=Array.from({length:3-i.length});return T.createElement("span",{className:F()(t.toolbarReferencePoints,{[t.toolbarReferencePointMobile]:!!r,[t.second]:3===o})},i.concat(a).map(((e,r,i)=>{const a=e?"set":0===r&&n.length===o||i[r-1]?"current":"empty";return T.createElement("div",{className:F()(t.referencePointParent,"PSPDFKit-DocumentComparison-ReferencePoint-State",`PSPDFKit-DocumentComparison-ReferencePoint-State-${(0,qn.kC)(a)}`),key:`point_${r+o}`},r>0?T.createElement("div",{className:t.separator}):null,T.createElement("div",{className:t.toolbarReferencePoint},T.createElement("svg",(0,De.Z)({},rE,{className:t[lE[a]]}),YS||(YS=T.createElement("circle",{cx:"10",cy:"10",r:"10"})),e?cE:T.createElement(uE,null,r+1))))})))},lE={set:"checkMark",current:"referencePointSet",empty:"referencePoint"},cE=T.createElement("path",{d:"M5.45508 10.1125L8.53758 12.94L14.5451 6.25",strokeWidth:"1.875",strokeMiterlimit:"10",strokeLinecap:"round"}),uE=e=>{let{children:t}=e;return T.createElement("text",{x:"10",y:"11",textAnchor:"middle",dominantBaseline:"middle",dy:""},t)};var dE=n(36401),pE=n.n(dE),fE=n(11521),hE=n.n(fE);const mE=[{interactionMode:x.A.BUTTON_WIDGET,icon:"fd-button",title:"Create Button Widget",className:"PSPDFKit-Form-Creator-Toolbar-ButtonWidget"},{interactionMode:x.A.TEXT_WIDGET,icon:"fd-text",title:"Create Text Widget",className:"PSPDFKit-Form-Creator-Toolbar-TextWidget"},{interactionMode:x.A.RADIO_BUTTON_WIDGET,icon:"fd-radio",title:"Create Radio Widget",className:"PSPDFKit-Form-Creator-Toolbar-RadioWidget"},{interactionMode:x.A.CHECKBOX_WIDGET,icon:"fd-checkbox",title:"Create Checkbox Widget",className:"PSPDFKit-Form-Creator-Toolbar-CheckboxWidget"},{interactionMode:x.A.COMBO_BOX_WIDGET,icon:"fd-combobox",title:"Create Combobox widget",className:"PSPDFKit-Form-Creator-Toolbar-ComboboxWidget"},{interactionMode:x.A.LIST_BOX_WIDGET,icon:"fd-listbox",title:"Create List Box Widget",className:"PSPDFKit-Form-Creator-Toolbar-ListBoxWidget"},{interactionMode:x.A.SIGNATURE_WIDGET,icon:"fd-signature",title:"Create Signature Widget",className:"PSPDFKit-Form-Creator-Toolbar-SignatureWidget"},{interactionMode:x.A.DATE_WIDGET,icon:"fd-date",title:"Create Date Widget",className:"PSPDFKit-Form-Creator-Toolbar-DateWidget"}];var gE=n(56966);const vE=e=>{let{position:t,dispatch:n,interactionMode:o,frameWindow:r,modalClosurePreventionError:i,selectedAnnotation:a}=e;return T.useEffect((()=>{function e(e){"Escape"!==e.key||i&&(null==i?void 0:i.error)===gE.x.FORM_DESIGNER_ERROR||a||n((0,En.XX)())}return r.document.addEventListener("keydown",e),()=>{r.document.removeEventListener("keydown",e)}}),[n,i,a]),T.createElement("div",{className:F()("PSPDFKit-Form-Creator-Toolbar",Bd().root,of().formDesignerContainer,{[Bd().stickToBottom]:"bottom"===t}),onMouseUp:US,onTouchEnd:US,onPointerUp:US},T.createElement("div",null,mE.map((e=>T.createElement(rf.Z,{key:e.interactionMode,type:e.icon,title:e.title,className:F()(of().formDesignerButton,{[of().formDesignerButtonActive]:o===e.interactionMode},e.className),onPress:()=>{o===e.interactionMode?n((0,Mo.el)()):(n((0,Mo.h4)()),n((0,En.UF)(e.interactionMode)))},selected:o===e.interactionMode})))),T.createElement("div",{className:of().spacer}))};var yE=n(40853),bE=n(28910),wE=n(22458),SE=n.n(wE);function EE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function PE(e){for(var t=1;t({label:e,value:e}))),h=f.concat(p.toArray().map((e=>({label:e,value:e}))).filter((e=>!f.some((t=>t.value===e.value)))));if(s.font&&!mp.vt.has(s.font||"")&&!p.some((e=>e===s.font))&&""!==s.font.trim()){const e=c.formatMessage(Ke.Z.fontFamilyUnsupported,{arg0:s.font});h.push({label:e,value:e,disabled:!0})}const m=["auto",4,6,8,10,12,14,18,24,36,48,64,72,96,144,192,200].map((e=>({value:e,label:e.toString()}))),g=T.useCallback((e=>l({horizontalAlign:e})),[l]),v=T.useCallback((e=>l({verticalAlign:e})),[l]);return T.createElement(bE.U,{title:c.formatMessage(AE.textStyle)},T.createElement("div",{className:SE().item},T.createElement(Ye.Z,{src:n(20626),className:SE().itemIcon,role:"presentation"}),T.createElement("div",{className:SE().itemLabel},c.formatMessage(Ke.Z.font)),T.createElement("div",{className:SE().nativeDropdown},T.createElement("select",{"aria-label":c.formatMessage(Ke.Z.font),className:"PSPDFKit-Input-Dropdown-Select",value:s.font||"",onChange:e=>{void 0!==e.target.value&&l({font:e.target.value})}},h.map((e=>T.createElement("option",{key:e.value,value:e.value,disabled:e.disabled},e.label))))),T.createElement(rd.Z,{items:h,value:{label:null!==(t=s.font)&&void 0!==t?t:h[0].label,value:null!==(o=s.font)&&void 0!==o?o:h[0].value},accessibilityLabel:c.formatMessage(Ke.Z.font),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:SE().dropdownGroupComponent,menuClassName:SE().dropdownGroupMenu,ButtonComponent:xE,ItemComponent:DE,onSelect:(e,t)=>{void 0!==t.value&&l({font:t.value})},frameWindow:u})),T.createElement("div",{className:SE().item},T.createElement(Ye.Z,{src:n(89882),className:SE().itemIcon,role:"presentation"}),T.createElement("div",{className:SE().itemLabel},c.formatMessage(AE.fontSize)),T.createElement("div",{className:SE().nativeDropdown},T.createElement("select",{"aria-label":c.formatMessage(AE.fontSize),className:"PSPDFKit-Input-Dropdown-Select",value:s.fontSize||"",onChange:e=>{l({fontSize:"auto"===e.target.value?"auto":parseFloat(e.target.value)})}},m.map((e=>T.createElement("option",{key:e.value,value:e.value,disabled:e.disabled},e.label))))),T.createElement(rd.Z,{items:m,value:(null!==(r=m.find((e=>e.value===Math.round(s.fontSize||0))))&&void 0!==r?r:null!=s.fontSize)?{value:s.fontSize,label:null!==(i=null===(a=s.fontSize)||void 0===a?void 0:a.toString())&&void 0!==i?i:""}:null,accessibilityLabel:c.formatMessage(AE.fontSize),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:SE().dropdownGroupComponent,menuClassName:SE().dropdownGroupMenu,ButtonComponent:xE,ItemComponent:DE,onSelect:(e,t)=>{null==t.value||"auto"!==t.value&&isNaN(t.value)||l({fontSize:t.value})},frameWindow:u})),T.createElement("div",{className:SE().item},T.createElement(Ye.Z,{src:n(59601),className:SE().itemIcon,role:"presentation"}),T.createElement("div",{className:SE().itemLabel},c.formatMessage(Ke.Z.color)),T.createElement(Fd.Z,{record:s,onChange:l,styles:PE(PE({},Bd()),{},{colorSvg:SE().colorSvg,colorItem:SE().colorItem,dropdownMenu:SE().colorDropdownMenu,controlWrapper:PE(PE({},Bd().controlWrapper),{},{width:"auto"})}),accessibilityLabel:c.formatMessage(Ke.Z.fillColor),caretDirection:"down",colorProperty:"fontColor",frameWindow:u,className:SE().colorDropdown})),T.createElement("div",{className:SE().item},T.createElement(Ye.Z,{src:n(65908),className:SE().itemIcon,role:"presentation"}),T.createElement("div",{className:SE().itemLabel},c.formatMessage(Ke.Z.horizontalAlignment)),T.createElement(ue.Ee,{inputName:"horizontalAlign",label:c.formatMessage(Ke.Z.horizontalAlignment),selectedOption:CE(s,d),labelClassNamePrefix:"PSPDFKit-Form-Creator-Editor-Horizontal-Alignment",options:["left","center","right"].map((e=>({value:e,label:c.formatMessage(Ke.Z[`alignment${(0,qn.kC)(e)}`]),iconPath:n(58758)(`./text-align-horizontal-${e}.svg`)}))),onChange:g})),!(d instanceof j.Vi)&&T.createElement("div",{className:SE().item},T.createElement(Ye.Z,{src:n(1792),className:SE().itemIcon,role:"presentation"}),T.createElement("div",{className:SE().itemLabel},c.formatMessage(Ke.Z.verticalAlignment)),T.createElement(ue.Ee,{inputName:"verticalAlign",label:c.formatMessage(Ke.Z.verticalAlignment),selectedOption:kE(s,d),labelClassNamePrefix:"PSPDFKit-Form-Creator-Editor-Vertical-Alignment",options:["top","center","bottom"].map((e=>({value:e,label:c.formatMessage(Ke.Z["center"===e?"alignmentCenter":e]),iconPath:n(29712)(`./text-align-vertical-${e}.svg`)}))),onChange:v})))};var TE=n(84537);const IE=(0,Re.vU)({advanced:{id:"advanced",defaultMessage:"Advanced",description:"Form designer popover advanced section title"},creatorName:{id:"creatorName",defaultMessage:"Creator Name",description:"Form designer popover advanced section creator name label"},note:{id:"note",defaultMessage:"Note",description:"Form designer popover advanced section note label"},customData:{id:"customData",defaultMessage:"Custom data",description:"Form designer popover advanced section custom data label"},required:{id:"required",defaultMessage:"Required",description:"Form designer popover advanced section required label"},readOnly:{id:"readOnly",defaultMessage:"Read Only",description:"Form designer popover advanced section read only label"},multiSelect:{id:"multiSelect",defaultMessage:"Multi Select",description:"Form designer popover advanced section multi select label"},createdAt:{id:"createdAt",defaultMessage:"Created at",description:"Form designer popover advanced section created at label"},updatedAt:{id:"updatedAt",defaultMessage:"Updated at",description:"Form designer popover advanced section updated at label"},customDataErrorMessage:{id:"customDataErrorMessage",defaultMessage:"Must be a plain JSON-serializable object",description:"Form designer popover advanced section custom data error"},multiLine:{id:"multiLine",defaultMessage:"Multi Line",description:"Form designer popover multiline input label"}}),FE=function(e){let{intl:t,annotation:n,updateAnnotation:o,formField:r,updateFormField:i,locale:a,onCustomDataError:s}=e;const[l,c]=T.useState({value:JSON.stringify(n.customData),error:""}),u=T.useCallback((e=>o({creatorName:e.target.value})),[o]),d=T.useCallback((e=>o({note:e.target.value})),[o]),p=T.useCallback((e=>{let n="";try{JSON.parse(e.target.value),s(!1)}catch(e){n=t.formatMessage(IE.customDataErrorMessage),s(!0)}c({value:e.target.value,error:n})}),[t,s]),f=T.useCallback((()=>{if(!l.error)try{const e=JSON.parse(l.value);o({customData:e})}catch(e){}}),[o,l]),h=T.useCallback((e=>i({required:e})),[i]),m=T.useCallback((e=>i({readOnly:e})),[i]),g=T.useCallback((e=>i({multiSelect:e})),[i]),v=T.useCallback((e=>i({multiLine:e})),[i]);return T.createElement(bE.U,{title:t.formatMessage(IE.advanced)},T.createElement(lg,{label:t.formatMessage(IE.creatorName),value:n.creatorName||"",onChange:u}),T.createElement(lg,{label:t.formatMessage(IE.note),value:n.note||"",onChange:d}),T.createElement(lg,{label:t.formatMessage(IE.customData),value:l.value,onChange:p,onBlur:f,errorMessage:l.error,className:SE().lastInputField}),T.createElement("div",{className:SE().advancedItem},T.createElement("div",{className:SE().advancedItemLabel},t.formatMessage(IE.required)),T.createElement(TE.n,{value:!(null==r||!r.required),onUpdate:h,accessibilityLabel:t.formatMessage(IE.required)})),T.createElement("div",{className:SE().advancedItem},T.createElement("div",{className:SE().advancedItemLabel},t.formatMessage(IE.readOnly)),T.createElement(TE.n,{value:!(null==r||!r.readOnly),onUpdate:m,accessibilityLabel:t.formatMessage(IE.readOnly)})),r instanceof j.Dz&&T.createElement("div",{className:SE().advancedItem},T.createElement("div",{className:SE().advancedItemLabel},t.formatMessage(IE.multiSelect)),T.createElement(TE.n,{value:!(null==r||!r.multiSelect),onUpdate:g,accessibilityLabel:t.formatMessage(IE.multiSelect)})),r instanceof j.$o&&T.createElement("div",{className:SE().advancedItem},T.createElement("div",{className:SE().advancedItemLabel},t.formatMessage(IE.multiLine)),T.createElement(TE.n,{value:!(null==r||!r.multiLine),onUpdate:v,accessibilityLabel:t.formatMessage(IE.multiLine)})),T.createElement("div",{className:SE().advancedItem},T.createElement("div",{className:SE().advancedItemLabel},"ID"),T.createElement("div",{className:SE().advancedItemValue},n.id)),T.createElement("div",{className:SE().advancedItem},T.createElement("div",{className:SE().advancedItemLabel},t.formatMessage(IE.createdAt)),T.createElement("div",{className:SE().advancedItemValue},n.createdAt.toLocaleDateString(a))),T.createElement("div",{className:SE().advancedItem},T.createElement("div",{className:SE().advancedItemLabel},t.formatMessage(IE.updatedAt)),T.createElement("div",{className:SE().advancedItemValue},n.updatedAt.toLocaleDateString(a))))};var ME=n(79153),_E=n(71634),RE=n(47860),NE=n.n(RE),LE=function(){var e,t,n=(0,ME.f$)((function(e){return{currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging(),itemType:e.getItemType(),item:e.getItem()}}));return n.isDragging&&null!==n.currentOffset?{display:!0,itemType:n.itemType,item:n.item,style:(e=n.currentOffset,t="translate(".concat(e.x,"px, ").concat(e.y,"px)"),{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t})}:{display:!1}};Ko().func,Ko().oneOfType([Ko().node,Ko().func]);function BE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function jE(e){for(var t=1;t{let{id:t,index:o,moveCard:r,option:i,onDelete:a}=e;const s=(0,T.useRef)(null),l=(0,T.useRef)(null),[{handlerId:c},u]=(0,ME.LW)({accept:"CARD",collect:e=>({handlerId:e.getHandlerId()}),hover(e,t){var n;if(!l.current)return;const i=e.index,a=o;if(i===a)return;const s=null===(n=l.current)||void 0===n?void 0:n.getBoundingClientRect(),c=(s.bottom-s.top)/2,u=t.getClientOffset().y-s.top;ia&&u>c||(r(i,a),e.index=a)}}),{display:d,style:p}=LE(),[{isDragging:f,id:h},m]=(0,ME.c0)({type:"CARD",item:()=>({id:t,index:o}),collect:e=>{var t;return{isDragging:e.isDragging(),id:null===(t=e.getItem())||void 0===t?void 0:t.id}}}),g=f?.5:1;m(u(s));const v=e=>T.createElement("div",{style:e?jE(jE({},p),{width:332}):{opacity:g},className:F()(NE().option,{[NE().preview]:e}),ref:e?void 0:l},T.createElement("button",(0,De.Z)({type:"button",className:NE().hamburger},e?void 0:{ref:s,"data-handler-id":c}),T.createElement(Ye.Z,{src:n(50618),role:"presentation"})),T.createElement("div",{className:NE().optionContent},i.label),T.createElement("button",{className:F()(NE().button,NE().deleteButton),type:"button",onClick:()=>a(o)},T.createElement(Ye.Z,{src:n(33374),className:F()(NE().icon,NE().deleteIcon),role:"presentation"})));return T.createElement(T.Fragment,null,v(!1),d&&h===t&&v(!0))};const KE=(0,Re.vU)({options:{id:"options",defaultMessage:"Options",description:"Options control label"},enterDescriptionHere:{id:"enterDescriptionHere",defaultMessage:"Enter description here",description:"New option input placeholder"},addOption:{id:"addOption",defaultMessage:"Add option",description:"New option button text"},emptyInput:{id:"emptyInput",defaultMessage:"Please fill in this field",description:"New option empty input label"}}),ZE=(0,Re.XN)((function(e){let{intl:t,options:n,onChange:o,ownerDocument:r}=e;const{formatMessage:i}=t,[s,l]=T.useState(!0);return T.createElement(ME.WG,{backend:_E.TouchBackend,options:{enableMouseEvents:!0,delayTouchStart:500,touchSlop:10,ignoreContextMenu:!0,ownerDocument:r}},T.createElement("form",{className:NE().wrapper,onSubmit:e=>{e.preventDefault();const t=e.target,{value:r}=t.newOption;r?(t.reset(),o(n.push(new j.mv({value:r,label:r})))):l(!1)}},T.createElement("div",{className:NE().title},i(KE.options)),T.createElement("div",null,n.map(((e,t)=>T.createElement(zE,{key:e.value,index:t,moveCard:(e,t)=>{const r=n.get(t);(0,a.kG)(r,"Item not found"),o(n.delete(t).insert(e,r))},option:e,id:e.value,onDelete:e=>o(n.delete(e))}))),T.createElement("div",{className:F()(NE().option,NE().addOptionInputWrapper,{[NE().addOptionInputWrapperInvalid]:!s})},T.createElement("input",{autoFocus:!0,className:F()(NE().optionContent,NE().addOptionInput),name:"newOption",type:"text",placeholder:i(KE.enterDescriptionHere),onBlur:()=>l(!0),onChange:e=>{!s&&e.target.value.trim()&&l(!0)}}))),!s&&T.createElement("div",{className:NE().invalidOptionInput},t.formatMessage(KE.emptyInput)),T.createElement("button",{className:F()(NE().button,NE().addOptionButton),type:"submit"},i(KE.addOption))))}));var UE,VE,GE,WE,qE;function HE(e,t){return t?Ke.Z.dateField:e instanceof j.R0?Ke.Z.button:e instanceof j.$o?Ke.Z.textField:e instanceof j.XQ?Ke.Z.radioField:e instanceof j.rF?Ke.Z.checkboxField:e instanceof j.fB?Ke.Z.comboBoxField:e instanceof j.Vi?Ke.Z.listBoxField:Ke.Z.signatureField}const $E=(0,Re.vU)({formDesignerPopoverTitle:{id:"formDesignerPopoverTitle",defaultMessage:"{formFieldType} properties",description:"Form designer popover title"},styleSectionLabel:{id:"styleSectionLabel",defaultMessage:"{formFieldType} style",description:"Form designer style section"},formFieldName:{id:"formFieldName",defaultMessage:"Form field name",description:"Form designer popover form field name input label"},format:{id:"format",defaultMessage:"Format",description:"Format"},buttonText:{id:"buttonText",defaultMessage:"Button Text",description:"Form designer popover button text input label"},defaultValue:{id:"defaultValue",defaultMessage:"Default Value",description:"Form designer popover default value input label"},multiline:{id:"multiline",defaultMessage:"Multiline",description:"Form designer popover multiline input label"},radioButtonFormFieldNameWarning:{id:"radioButtonFormFieldNameWarning",defaultMessage:"To group the radio buttons, make sure they have the same form field names.",description:"Form designer popover radio button form field name warning message"},formFieldNameExists:{id:"formFieldNameExists",defaultMessage:"A form field named {formFieldName} already exists. Please choose a different name.",description:"Change form field name if it already exists."},formFieldNameNotEmpty:{id:"formFieldNameNotEmpty",defaultMessage:"Form Field Name cannot be left empty.",description:"Form Field Name cannot be left empty."},label:{id:"label",defaultMessage:"Label",description:"Label"},value:{id:"value",defaultMessage:"Value",description:"Value"}}),YE=(0,Re.XN)((function(e){var t;let{referenceRect:o,viewportState:r,isHidden:s,intl:l,formFields:c,dispatch:d,annotation:p,frameWindow:f,eventEmitter:h,locale:m,isUnsavedAnnotation:g,setModalClosurePreventionError:v,modalClosurePreventionError:y,pageSize:b,customFontsReadableNames:w}=e;const S=(0,T.useMemo)((()=>{const e=c.get(p.formFieldName);return(0,a.kG)(e,"Form field not found"),e}),[p,c]),E=(0,T.useMemo)((()=>{if(S instanceof j.XQ||S instanceof j.rF)return S.annotationIds.findIndex((0,J.oF)(p))}),[S,p]),[P,x]=(0,T.useState)(S.name),[D,C]=(0,T.useState)(),[k,A]=T.useState(!1),O=T.useCallback((e=>{let t=p;if(!t)return;t=t.merge(e);const n={annotations:(0,i.aV)([t]),reason:u.f.PROPERTY_CHANGE};h.emit("annotations.willChange",n),d((0,Qt.FG)(t))}),[h,d,p]),I=T.useCallback((e=>{let t=S;t&&(t=t.merge(e),d((0,Mo.vK)(t)))}),[S,d]);(0,Wn.useGranularEffect)((()=>{x(S.name),C(void 0)}),[p.id],[S.name]);const M=T.useCallback((e=>{const t=e.target.value;x(t),null!=t&&t.trim()?!c.has(t)||p.formFieldName===t||S instanceof j.XQ?(C(void 0),k||v(null)):(C(l.formatMessage($E.formFieldNameExists,{formFieldName:t})),v({annotationId:p.id,error:gE.x.FORM_DESIGNER_ERROR})):(C(l.formatMessage($E.formFieldNameNotEmpty)),v({annotationId:p.id,error:gE.x.FORM_DESIGNER_ERROR}))}),[l,p,S,c,v,k]),_=T.useCallback((e=>I({buttonLabel:e.target.value})),[I]),R=T.useCallback((e=>I({options:e})),[I]),N=(0,T.useCallback)((e=>{const t=e.target.value;(0,a.kG)(void 0!==E);const n=S.options.get(E),o=S.options.set(E,n.set("label",t));I({options:o})}),[I,S,E]),L=T.useCallback((e=>{A(e),e?v({annotationId:p.id,error:gE.x.FORM_DESIGNER_ERROR}):y&&!D&&v(null)}),[v,y,D,p]),B=(0,T.useCallback)((e=>{const t=e.target.value;(0,a.kG)(void 0!==E);const n=S.options.get(E),o=S.options.set(E,n.set("value",t));I({options:o})}),[I,S,E]),z=T.useMemo((()=>{return S instanceof j.R0?T.createElement(lg,{label:l.formatMessage($E.buttonText),value:(null==S?void 0:S.buttonLabel)||"",onChange:_,className:SE().lastInputField}):S instanceof j.XQ?((0,a.kG)(void 0!==E),T.createElement(T.Fragment,null,T.createElement("div",{className:SE().radioButtonWarning},T.createElement(Ye.Z,{src:n(14896),role:"presentation",className:SE().radioButtonWarningIcon}),T.createElement("span",{className:SE().radioButtonWarningLabel},l.formatMessage($E.radioButtonFormFieldNameWarning))),T.createElement(lg,{label:l.formatMessage($E.label),value:(null==S||null===(e=S.options.get(E))||void 0===e?void 0:e.label)||"",onChange:N,required:!0}),T.createElement(lg,{label:l.formatMessage($E.value),value:(null==S||null===(t=S.options.get(E))||void 0===t?void 0:t.value)||"",onChange:B,required:!0,className:SE().lastInputField}))):S instanceof j.rF?((0,a.kG)(void 0!==E),T.createElement(T.Fragment,null,T.createElement(lg,{label:l.formatMessage($E.label),value:(null==S||null===(o=S.options.get(E))||void 0===o?void 0:o.label)||"",onChange:N,required:!0}),T.createElement(lg,{label:l.formatMessage($E.value),value:(null==S||null===(r=S.options.get(E))||void 0===r?void 0:r.value)||"",onChange:B,required:!0,className:SE().lastInputField}))):S instanceof j.Vi||S instanceof j.fB?T.createElement(ZE,{options:S.options,onChange:R,ownerDocument:f.document}):null;var e,t,o,r}),[f.document,S,l,_,R,N,B,E]),K=S instanceof j.$o&&!(null===(t=p.additionalActions)||void 0===t||!t.onFormat);return T.createElement(cg.Z,{referenceRect:o,viewportState:r,isHidden:s||!S,className:"PSPDFKit-Form-Creator-Popover",wrapperClassName:"PSPDFKit-Form-Creator-Editor",title:l.formatMessage($E.formDesignerPopoverTitle,{formFieldType:S?l.formatMessage(HE(S,K)):""}),footer:T.createElement(T.Fragment,null,T.createElement(cg.j,{className:F()(SE().footerButton,SE().deleteButton,"PSPDFKit-Form-Creator-Editor-Delete"),onClick:()=>{v(null),d((0,Qt.d8)((0,i.l4)([p.id])))}},l.formatMessage(Ke.Z.delete)),T.createElement(cg.j,{className:F()(SE().footerButton,SE().doneButton,"PSPDFKit-Form-Creator-Editor-Done"),onClick:()=>{y||d((0,je.fz)())}},l.formatMessage(Ke.Z.done)))},T.createElement(T.Fragment,null,T.createElement("div",{className:g?void 0:SE().formFieldNameReadOnly},T.createElement("div",null,T.createElement(lg,{label:l.formatMessage($E.formFieldName),value:P,onChange:M,onKeyDown:e=>e.stopPropagation(),required:!0,errorMessage:D,className:F()({[SE().lastInputField]:!z&&!K}),inputClassName:"PSPDFKit-Form-Creator-Editor-Form-Field-Name",onBlur:()=>{D||I({name:P})}})),z),K&&T.createElement("div",{className:F()(ag().wrapper,SE().lastInputField)},T.createElement("label",{className:ag().label,htmlFor:"dateTimeFormat"},"Format",T.createElement("div",{className:ag().formatSelectWrapper,role:"button"},T.createElement("select",{className:ag().dateSelect,name:"dateTimeFormat",id:"dateTimeFormat",onChange:e=>{const t=e.target.value;O({additionalActions:{onFormat:new j.bp({script:`AFDate_FormatEx("${t}")`})}})}},UE||(UE=T.createElement("option",{value:"yyyy-mm-dd"},"yyyy-mm-dd")),VE||(VE=T.createElement("option",{value:"mm/dd/yyyy"},"mm/dd/yyyy")),GE||(GE=T.createElement("option",{value:"dd/mm/yyyy"},"dd/mm/yyyy")),WE||(WE=T.createElement("option",{value:"m/d/yyyy HH:MM"},"m/d/yyyy HH:MM")),qE||(qE=T.createElement("option",{value:"d/m/yyyy HH:MM"},"d/m/yyyy HH:MM")))))),T.createElement(yE.ZP,{intl:l,annotation:p,label:l.formatMessage($E.styleSectionLabel,{formFieldType:S?l.formatMessage(HE(S,K)):""}),updateAnnotation:O,frameWindow:f,pageSize:b}),!(S instanceof j.Yo)&&!(S instanceof j.XQ)&&!(S instanceof j.rF)&&T.createElement(OE,{intl:l,annotation:p,updateAnnotation:O,frameWindow:f,formField:S,customFontsReadableNames:w}),T.createElement(FE,{intl:l,annotation:p,updateAnnotation:O,formField:S,updateFormField:I,locale:m,onCustomDataError:L})))}));var XE,JE,QE=n(31060),eP=n.n(QE);const tP=tt.Ni?()=>{const e=(0,A.I0)();return T.createElement(ue.QO,{wrapperClass:F()(eP().mobileWrapper,"PSPDFKit-ContentEditor-Exit-Dialog"),formClass:eP().formWrapper,onDismiss:()=>{e((0,Su.Yg)(!1))}},JE||(JE=T.createElement(nP,null)))}:()=>{const{formatMessage:e}=(0,Re.YB)(),t=(0,A.I0)();return T.createElement(yf.Z,{role:"alertdialog",background:"rgba(0,0,0,.1)",className:F()(eP().modalRoot,"PSPDFKit-ContentEditor-Exit-Dialog"),accessibilityLabel:e(oP.contentEditorSavePromptAccessibilityLabel),accessibilityDescription:e(oP.contentEditorSavePromptAccessibilityDescription),restoreOnClose:!0,onEscape:()=>{t((0,Su.Yg)(!1))}},XE||(XE=T.createElement(nP,null)))},nP=()=>{const{formatMessage:e}=(0,Re.YB)(),t=(0,A.I0)();return T.createElement(T.Fragment,null,T.createElement(yf.Z.Section,{className:F()(eP().dropdownSection,eP().mainSection)},T.createElement(ue.zx,{className:F()(eP().closeButton,"PSPDFKit-ContentEditor-Exit-Dialog-Close-Button"),onClick:()=>{t((0,Su.Yg)(!1))},"aria-label":e(Ke.Z.close)},T.createElement(Ye.Z,{className:eP().closeIcon,src:n(15708)})),T.createElement("div",{className:F()(eP().container,"PSPDFKit-ContentEditor-Exit-Dialog-Content")},T.createElement(Ye.Z,{className:eP().warningIcon,src:n(73986)}),T.createElement("h2",{className:eP().heading},e(oP.contentEditorSavePromptHeading)),T.createElement("p",{className:eP().description},e(oP.contentEditorSavePromptMessage)))),T.createElement(yf.Z.Section,{className:F()(eP().buttonsGroupSection,eP().dropdownSection)},T.createElement(ue.hE,{className:F()(eP().buttonsGroup,"PSPDFKit-ContentEditor-Exit-Dialog-Buttons"),align:"end"},T.createElement(ue.zx,{autoFocus:!0,onClick:()=>{t(Su.u8)},className:F()("PSPDFKit-ContentEditor-Exit-Dialog-Button","PSPDFKit-ContentEditor-Exit-Dialog-Button-Discard-Changes",eP().button)},"Don't Save"),T.createElement(ue.zx,{onClick:()=>{t(Su.Ij)},primary:!0,className:F()("PSPDFKit-ContentEditor-Exit-Dialog-Button","PSPDFKit-ContentEditor-Exit-Dialog-Button-Save-Changes",eP().button)},"Save"))))},oP=(0,Re.vU)({contentEditorSavePromptHeading:{id:"contentEditorSavePromptHeading",defaultMessage:"Save changes before exiting?",description:'Heading displayed in the "Exit Content Editing Mode" confirm dialog'},contentEditorSavePromptMessage:{id:"contentEditorSavePromptMessage",defaultMessage:"If you don’t save your changes to the document, your changes will be lost.",description:'Message displayed in the "Exit Content Editing Mode" confirm dialog'},contentEditorSavePromptAccessibilityLabel:{id:"contentEditorSavePromptAccessibilityLabel",defaultMessage:"Confirm content editing exit dialog",description:'Accessibility description for the "Delete Annotation" confirm dialog'},contentEditorSavePromptAccessibilityDescription:{id:"contentEditorSavePromptAccessibilityDescription",defaultMessage:"A content editing session is about to be dismissed and data could be loss. This dialog serves as a confirmation to whether continue with this action or not.",description:'Accessibility description for the "Exit Content Editing Mode" confirm dialog'}});var rP=n(20500),iP=n(14149),aP=n.n(iP);const sP=function(e){const{referenceRect:t,viewportState:n,activeTextBlock:o,fontFace:r}=e,i=(0,A.I0)(),{formatMessage:a}=(0,Re.YB)(),s=(0,A.v9)((e=>{var t,n;return null!==(t=null===(n=e.contentEditorSession.fontMismatchTooltip)||void 0===n?void 0:n.dismissAbortController)&&void 0!==t?t:null}));return T.createElement(Wv.Z,{referenceRect:t.apply((0,de.cr)(n,o.pageIndex)).translate(n.scrollPosition.scale(n.zoomLevel)),viewportState:n,className:F()(aP().container,"PSPDFKit-Font-Mismatch-Notification-Container"),color:[new j.Il({r:255,g:199,b:143})],arrowSize:0,arrowClassName:aP().arrow},T.createElement("div",{className:F()(aP().wrapper,"PSPDFKit-Font-Mismatch-Notification"),onPointerOver:()=>{s&&s.abort()},onPointerLeave:()=>{const e=new AbortController;i((0,Su.Hv)(e)),i((0,Su.uy)(e.signal))}},T.createElement("span",{className:aP().tooltipFont},a(wh.fontMismatch,{arg0:r}))))},lP=T.memo((function(e){const t=(0,Re.YB)(),n=(0,A.I0)(),o=(0,A.v9)((e=>e.selectedGroupId)),{selectedAnnotationIds:r}=e;return T.createElement("div",{className:F()("PSPDFKit-Multi-Annotations-Selection-Toolbar",Bd().root,Bd().content,Bd().reverseRow)},T.createElement(Id.Z,{type:"delete",title:t.formatMessage(Ke.Z.delete),className:Bd().button,onPress:()=>{n((0,Qt.d8)(r))}}),o?null:T.createElement(Id.Z,{type:"group",title:t.formatMessage(Ke.Z.group),className:Bd().button,onPress:()=>{n((0,En._R)(r))}}),o?T.createElement(Id.Z,{type:"ungroup",title:t.formatMessage(Ke.Z.ungroup),className:Bd().button,onPress:()=>{n((0,En.UZ)(o))}}):null)}));const cP=lP,uP=e=>{const t=(0,A.I0)(),{formatMessage:n}=(0,Re.YB)(),{interactionMode:o,currentItemPreset:r,frameWindow:i}=e;function a(e,n,i){t((0,je.fz)()),o===n&&i===r?(0,A.dC)((()=>{t((0,Qt.Ds)(null)),t((0,En.Ce)())})):(0,A.dC)((()=>{t((0,Qt.Ds)(i)),t((0,En.yg)(e,n))}))}return T.createElement("div",{className:F()("PSPDFKit-Measurement-Toolbar",Bd().root,Bd().content,Bd().measurementToolbar),onMouseUp:US,onTouchEnd:US,onPointerUp:US},G.Di.map((e=>T.createElement(rf.Z,{key:e.interactionMode,type:e.icon,title:n(Ke.Z[e.localeKey]),className:F()(of().formDesignerButton,{[of().formDesignerButtonActive]:o===e.interactionMode},e.className),onPress:()=>{a(e.class,e.interactionMode,e.preset)},selected:o===e.interactionMode}))),T.createElement("div",{className:of().spacer}),T.createElement("div",{className:Bd().right},T.createElement(tf.ZP,{frameWindow:i}),T.createElement(rf.Z,{key:"scale",type:"scale",title:n(Fu.sY.measurementScale),className:F()(Bd().measurementToolbarButton)}),T.createElement(rf.Z,{key:"calibrate",type:"calibrate",title:n(Fu.sY.calibrate),className:F()(of().formDesignerButton,"PSPDFKit-Scale-Calibration"),onPress:()=>{const e=G.Di.find((e=>e.interactionMode===x.A.DISTANCE));e&&(t((0,xn.Xh)(!0)),a(e.class,e.interactionMode,e.preset))}})))};var dP,pP,fP,hP,mP,gP=n(90012);function vP(e){return mt.Ei.DISABLE_KEYBOARD_SHORTCUTS||e.viewportState.scrollMode===nl.G.DISABLED?e.children:T.createElement(fv,e)}class yP extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"state",{isResizingSidebar:!1,scrollElement:null,silenceOutdatedDocumentPromptForHandle:null,filteredItems:(0,Hd.I4)(this.props.state),isAnnotationTypeReadOnlyMemoized:(0,jo.Z)(((e,t)=>(0,So.j$)(e,this.props.state,t))),crop:null,modalClosurePreventionError:null}),(0,o.Z)(this,"_memoizedMapPagesToPageKeys",(0,jo.Z)((e=>e.map((e=>e.pageKey))))),(0,o.Z)(this,"handleScrollElementChange",(e=>{this.setState({scrollElement:e})})),(0,o.Z)(this,"getScrollElement",(()=>{const{scrollElement:e}=this.state;return(0,a.kG)(e),e})),(0,o.Z)(this,"setGlobalCursor",(e=>{this.getScrollElement().style.cursor=e})),(0,o.Z)(this,"getThumbnailScale",(()=>this.props.state.containerRect.width<=Je.Fg?.55:1)),(0,o.Z)(this,"isAnnotationReadOnly",(e=>(0,So.lV)(e,this.props.state)||!(0,oi.CM)(e,this.props.state))),(0,o.Z)(this,"isCommentReadOnly",(e=>(0,So.Ez)(e,this.props.state)||!(0,oi.kR)(e,this.props.state))),(0,o.Z)(this,"reloadDocument",(()=>{const e=this.props.state.documentHandle;this.props.dispatch((0,mu.NV)((()=>this.closeReloadDocumentModal(e)),(e=>{throw e})))})),(0,o.Z)(this,"closeReloadDocumentModal",(e=>{this.setState({silenceOutdatedDocumentPromptForHandle:e})})),(0,o.Z)(this,"_canDeleteAnnotationCP",(e=>(0,oi.Kd)(e,this.props.state))),(0,o.Z)(this,"_canDeleteCommentCP",(e=>(0,oi.Ss)(e,this.props.state))),(0,o.Z)(this,"renderSidebar",((e,t)=>{const n=this.props.state,o=this.props.state.containerRect.width-e<=t,r=n.viewportState.scrollMode===nl.G.DISABLED;if(e<=0)return null;switch(n.sidebarMode){case du.f.THUMBNAILS:return T.createElement(jb,{scale:this.getThumbnailScale(),width:e,selectedPageIndex:n.viewportState.currentPageIndex,closeOnPress:o,navigationDisabled:r});case du.f.DOCUMENT_OUTLINE:return T.createElement(dv,{outlineElements:n.documentOutlineState.elements,expanded:n.documentOutlineState.expanded,closeOnPress:o,backend:n.backend,documentHandle:n.documentHandle,navigationDisabled:r});case du.f.ANNOTATIONS:return T.createElement(Ju,{pages:n.pages,annotations:n.annotations,comments:n.comments,commentThreads:n.commentThreads,formFields:n.formFields,isAnnotationReadOnly:this.isAnnotationReadOnly,isCommentReadOnly:this.isCommentReadOnly,selectedAnnotationIds:n.selectedAnnotationIds,sidebarOptions:n.sidebarOptions.ANNOTATIONS,closeOnPress:o,navigationDisabled:r,canDeleteAnnotationCP:this._canDeleteAnnotationCP,canDeleteCommentCP:this._canDeleteCommentCP});case du.f.BOOKMARKS:return T.createElement(FS,{source:n.bookmarkManager},(t=>T.createElement(IS,{bookmarks:t,bookmarkManager:n.bookmarkManager,currentPageIndex:n.viewportState.currentPageIndex,pages:n.pages,width:e,closeOnPress:o})));case du.f.CUSTOM:return dP||(dP=T.createElement(CS,null));default:return null}})),(0,o.Z)(this,"_viewportEl",null),(0,o.Z)(this,"_viewportRef",(e=>{"gecko"===tt.SR&&(e?(this._viewportEl=e,this._viewportEl.addEventListener("copy",this._copyEventHandler)):this._viewportEl&&(this._viewportEl.removeEventListener("copy",this._copyEventHandler),this._viewportEl=null))})),(0,o.Z)(this,"_copyEventHandler",(e=>{var t;if(!this._viewportEl)return;if(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;const n=(o=this._viewportEl,new zy(null===(r=o.ownerDocument.defaultView)||void 0===r?void 0:r.getSelection(),o,cl().selectableText)._getSelectedTextWithNL());var o,r;null===(t=e.clipboardData)||void 0===t||t.setData("text/plain",n),e.preventDefault()})),(0,o.Z)(this,"renderViewport",(e=>{var t,n;const{selectedAnnotation:o,state:r,dispatch:i}=this.props,{viewportState:a}=r,s=o&&null!==o.pageIndex&&"function"==typeof r.annotationTooltipCallback&&!r.interactionsDisabled?r.annotationTooltipCallback(o):[];return T.createElement(qy,{dispatch:this.props.dispatch,currentTextSelection:this.props.state.currentTextSelection,selectedAnnotationIds:this.props.state.selectedAnnotationIds,activeAnnotationNote:this.props.state.activeAnnotationNote,rootElement:null===(t=this.props.state.frameWindow)||void 0===t?void 0:t.document.documentElement,interactionMode:this.props.state.interactionMode,modalClosurePreventionError:this.state.modalClosurePreventionError},T.createElement("div",{style:{position:"relative",height:"100%"}},T.createElement(Qb,{viewportState:a,scrollbarOffset:r.scrollbarOffset},T.createElement(vP,{dispatch:i,viewportState:a,hasSelectedAnnotations:this.props.state.selectedAnnotationIds.size>0,document:null===(n=r.frameWindow)||void 0===n?void 0:n.document},T.createElement(xe.Provider,null,a.scrollMode===nl.G.PER_SPREAD?T.createElement(iy,{dispatch:i,viewportState:a,hasSelection:this.props.state.selectedAnnotationIds.size>0||null!==this.props.state.currentTextSelection,scrollElement:this.state.scrollElement,interactionsDisabled:r.interactionsDisabled},this.renderViewportContent(s,e)):this.renderViewportContent(s,e))),this._isFullscreen&&this.renderExpandendNoteAnnotations(s))))})),(0,o.Z)(this,"_handleDocumentEditorCancel",(()=>{this.props.dispatch((0,En.sJ)())})),(0,o.Z)(this,"_closeSignatureModal",(()=>{const e={annotations:(0,i.aV)(),reason:u.f.SELECT_END};this.props.state.eventEmitter.emit("annotations.willChange",e),this.props.dispatch((0,En.MV)())})),(0,o.Z)(this,"_createSignatureFromAnnotation",((e,t,n)=>{e instanceof s.Zc&&this.props.dispatch((0,Qt.gX)({strokeColor:e.strokeColor}));const{signatureRect:o,signaturePageIndex:r}=this.props.state.signatureState,{attachments:i}=this.props.state;let l;if("imageAttachmentId"in e&&e.imageAttachmentId&&i.has(e.imageAttachmentId)){const t=i.get(e.imageAttachmentId);(0,a.kG)(t),l={hash:e.imageAttachmentId,attachment:t}}this.props.dispatch(NS(e,{signatureRect:o,signaturePageIndex:r},l)),t&&this.props.dispatch(LS(e,n)),this.props.dispatch((0,En.MV)())})),(0,o.Z)(this,"_createSignatureFromFile",(async(e,t,n)=>{const{signatureRect:o,signaturePageIndex:r}=this.props.state.signatureState;this.props.dispatch((0,En.MV)());const{hash:i,dimensions:a,attachment:s}=await(0,Qt.Iv)(e);this.props.dispatch(function(e,t,n,o){let{dimensions:r,hash:i,attachment:a,file:s}=e,{signatureRect:l,signaturePageIndex:c}=o;return(e,o)=>{let u;e((0,Qt.Ds)("image")),u=s instanceof File?(0,J.om)(o(),r,i,s.type,s.name):(0,J.om)(o(),r,i,"image/png"),u=u.set("isSignature",!0),e((0,vv.O)(i,a)),e(NS(u,{signatureRect:l,signaturePageIndex:c},{hash:i,attachment:a})),t&&e(LS(u,n))}}({hash:i,dimensions:a,attachment:s,file:e},t,n,{signatureRect:o,signaturePageIndex:r}))})),(0,o.Z)(this,"_createSignature",((e,t,n)=>{e instanceof s.q6?this._createSignatureFromAnnotation(e,t,n):this._createSignatureFromFile(e,t,n)})),(0,o.Z)(this,"_deleteStoredSignature",((e,t)=>{this.props.dispatch(function(e,t){return(n,o)=>{t&&n({type:te.Kc8,annotation:e}),o().eventEmitter.emit("inkSignatures.delete",e),o().eventEmitter.emit("inkSignatures.change"),o().eventEmitter.emit("storedSignatures.delete",e),o().eventEmitter.emit("storedSignatures.change")}}(e,t))})),(0,o.Z)(this,"_closeStampModal",(()=>{const e={annotations:(0,i.aV)(),reason:u.f.SELECT_END};this.props.state.eventEmitter.emit("annotations.willChange",e),this.props.dispatch((0,En.pM)())})),(0,o.Z)(this,"_createAnnotationFromTemplate",(e=>{this.props.dispatch((0,En.pM)()),this.props.dispatch((0,Qt.ip)(e))})),(0,o.Z)(this,"_getAttachments",(()=>this.props.state.attachments)),(0,o.Z)(this,"_fetchDigitalSignaturesInfo",(()=>{var e;null===(e=this.props.state.backend)||void 0===e||e.getSignaturesInfo().then((e=>{this.props.dispatch((0,yu.Y)(e))})).catch(a.vU)})),(0,o.Z)(this,"_setA11yStatusMessage",(e=>{this.props.dispatch((0,En.iJ)("")),window.setTimeout((()=>{this.props.dispatch((0,En.iJ)(e))}),200)})),(0,o.Z)(this,"isDocumentComparisonAvailable",(()=>(0,XS.RG)(this.props.state))),(0,o.Z)(this,"handleCrop",(e=>{(0,a.kG)(this.state.crop),this.props.dispatch((0,mu.b_)([{type:"cropPages",cropBox:this.state.crop.area,pageIndexes:e?void 0:[this.state.crop.pageIndex]}],(()=>{}),(()=>{}))),this.props.dispatch((0,En.Cn)())})),(0,o.Z)(this,"setCropDetails",((e,t)=>{this.setState({crop:{area:e,pageIndex:t}})})),(0,o.Z)(this,"onCropCancel",(()=>{const{dispatch:e}=this.props;e((0,En.Cn)())})),(0,o.Z)(this,"getToolbarComponent",(()=>{const{selectedAnnotation:e,activeAnnotationNote:t,state:n,currentTextSelection:o}=this.props,{viewportState:r,selectedAnnotationIds:i}=n,a=n.toolbarPlacement===Ru.p.TOP?"top":"bottom",s=n.selectedAnnotationIds.every((e=>{const t=n.annotations.get(e);return!!t&&("isMeasurement"in t&&t.isMeasurement())}));if(n.selectedAnnotationIds.size>1&&!s)return T.createElement(cP,{selectedAnnotationIds:i});if(e&&!(0,nt.fF)(n.interactionMode)||t){const o=e?n.pages.get(e.pageIndex):null,a=o&&o.pageSize,s=e&&n.annotationPresetIds.get(e.id),l=!(!e||!(0,oi.CM)(e,n)),c=(0,So.aE)(this.props.state),u=!(!e||!(0,oi.Kd)(e,n)),d=i.map((e=>n.annotations.get(e)));return T.createElement(cf,{dispatch:this.props.dispatch,annotation:e,selectedAnnotationPageSize:a,isAnnotationReadOnly:this.isAnnotationReadOnly,variantAnnotationPresetID:s,selectedAnnotationMode:this.props.state.selectedAnnotationMode,zoomLevel:r.zoomLevel,position:n.toolbarPlacement===Ru.p.TOP?"top":"bottom",eventEmitter:n.eventEmitter,frameWindow:n.frameWindow,viewportWidth:n.containerRect.width,activeAnnotationNote:t,showAnnotationNotes:this.props.state.showAnnotationNotes,canEditAnnotationCP:l,canDeleteSelectedAnnotationCP:u,areOnlyElectronicSignaturesEnabled:c,lastToolbarActionUsedKeyboard:n.lastToolbarActionUsedKeyboard,interactionMode:n.interactionMode,keepSelectedTool:this.props.state.keepSelectedTool,annotationToolbarColorPresets:n.annotationToolbarColorPresets,annotationToolbarItems:n.annotationToolbarItems,richTextEditorRef:n.richTextEditorRef,customFontsReadableNames:n.customFontsReadableNames,isCalibratingScale:n.isCalibratingScale,selectedAnnotations:d})}var l,c;return n.interactionMode===x.A.INK_ERASER?T.createElement(ff,{dispatch:this.props.dispatch,inkEraserCursorWidth:null!==(l=null===(c=n.annotationPresets.get("ink"))||void 0===c?void 0:c.inkEraserWidth)&&void 0!==l?l:mt.Ei.DEFAULT_INK_ERASER_CURSOR_WIDTH,position:a,viewportWidth:n.containerRect.width}):n.interactionMode===x.A.DOCUMENT_CROP?T.createElement(ZS,{onCropApply:this.handleCrop,onCropCancel:this.onCropCancel,position:a,isCropAreaSelected:!!this.state.crop,frameWindow:n.frameWindow}):(0,nt.fF)(n.interactionMode)?T.createElement(vE,{position:a,interactionMode:n.interactionMode,dispatch:this.props.dispatch,frameWindow:n.frameWindow,modalClosurePreventionError:this.state.modalClosurePreventionError,selectedAnnotation:!!n.selectedAnnotationIds.size}):n.interactionMode===x.A.CONTENT_EDITOR?T.createElement(WS,{position:a,viewportWidth:n.containerRect.width,frameWindow:n.frameWindow,creationMode:n.contentEditorSession.mode===Gl.wR.Create}):n.interactionMode===x.A.MEASUREMENT?T.createElement(uP,{position:a,interactionMode:n.interactionMode,viewportWidth:n.containerRect.width,frameWindow:n.frameWindow}):T.createElement(_v,{dispatch:this.props.dispatch,isAnnotationTypeReadOnly:this.state.isAnnotationTypeReadOnlyMemoized,position:n.toolbarPlacement===Ru.p.TOP?"top":"bottom",showComments:(0,Ml.oK)(n),showRedactions:this.props.state.features.includes(ge.q.REDACTIONS),inlineTextSelectionToolbarItems:n.inlineTextSelectionToolbarItems,currentTextSelection:o})})),(0,o.Z)(this,"handleSidebarResize",(e=>{let{sidebarRect:t,isDragging:n,size:o}=e;const r=xu(this.props.state,t,o);this.props.dispatch((0,Eu.dx)(r,!1)),this.setState({isResizingSidebar:n})})),(0,o.Z)(this,"handleResizeHelperResize",((e,t)=>{const n=this.props.state,o=e.width,r=n.containerRect.width===n.sidebarWidth,i=!r&&o-n.sidebarWidth<200;let a;n.sidebarMode&&!i?r?(a=e.set("width",o).set("left",0),this.props.dispatch((0,Eu.Pt)(o))):a=e.set("width",o-n.sidebarWidth).set("left",n.sidebarPlacement===pu.d.START?n.sidebarWidth:0):(a=e,n.sidebarMode&&i&&this.props.dispatch((0,En.mu)())),this.props.dispatch((0,Eu.dx)(a,t))}))}renderViewportContent(e,t){const{selectedAnnotation:n,state:o,dispatch:r,currentTextSelection:a}=this.props,{viewportState:l,interactionsDisabled:c,interactionMode:u,formFields:d,frameWindow:p,eventEmitter:f,locale:h,scrollElement:m,measurementToolState:g,contentEditorSession:{fontMismatchTooltip:v,textBlockInteractionState:y},selectedAnnotationIds:b}=o;let w,S,E=null;if(o.interactionMode!==x.A.TEXT_HIGHLIGHTER&&!o.interactionsDisabled&&a&&!t(s.On)&&o.inlineTextMarkupToolbar&&(E=T.createElement(Wv.Z,{referenceRect:(0,ga.U2)(o,a.textRange),viewportState:l,className:"PSPDFKit-Popover-Text-Markup-Toolbar",isArrowHidden:!!this.props.state.inlineTextSelectionToolbarItems&&!(this.props.state.inlineTextSelectionToolbarItems.length>0)},T.createElement(Mv,{dispatch:r,isAnnotationTypeReadOnly:t,showComments:(0,Ml.oK)(this.props.state),showRedactions:this.props.state.features.includes(ge.q.REDACTIONS),inlineTextSelectionToolbarItems:this.props.state.inlineTextSelectionToolbarItems,currentTextSelection:a}))),w=o.viewportState.documentComparisonMode&&o.backend?T.createElement(JS.Z,{renderPageCallback:o.renderPageCallback,backend:o.backend,allowedTileScales:o.allowedTileScales,viewportState:o.viewportState,interactionMode:o.interactionMode,scrollElement:o.scrollElement,dispatch:r,configuration:o.viewportState.documentComparisonMode,viewportWidth:o.containerRect.width,renderPagePreview:o.renderPagePreview}):l.scrollMode===nl.G.PER_SPREAD||l.scrollMode===nl.G.DISABLED?T.createElement(ey,{onCropChange:this.setCropDetails,dispatch:r,spreadIndex:(0,Hs.dF)(l,l.currentPageIndex),viewportState:l,interactionMode:o.interactionMode,cropInfo:this.state.crop,pageKeys:this._memoizedMapPagesToPageKeys(o.pages),setGlobalCursor:this.setGlobalCursor}):T.createElement($h,{onCropChange:this.setCropDetails,dispatch:r,viewportState:l,cropInfo:this.state.crop,pageKeys:this._memoizedMapPagesToPageKeys(o.pages),setGlobalCursor:this.setGlobalCursor}),g&&o.backend&&(0,$.hj)(g.drawnAnnotationPageIndex)){var P;const e={inViewport:!0,page:o.pages.get(g.drawnAnnotationPageIndex),backend:o.backend,shouldPrerender:!0,zoomLevel:l.zoomLevel,rotation:l.pagesRotation,renderPageCallback:o.renderPageCallback,allowedTileScales:"all",documentHandle:o.documentHandle,viewportRect:l.viewportRect,forceDetailView:!1,renderPagePreview:o.renderPagePreview,isPageSizeReal:!!o.arePageSizesLoaded,inContentEditorMode:!1};let t=g.magnifierCursorPosition;const n=(0,Hs.Ad)(l),r=(0,Hs.dF)(l,g.drawnAnnotationPageIndex),i=(0,Hs.Xk)(l,r);let a=(n-i.width)/2*l.zoomLevel;o.sidebarMode&&(a+=o.sidebarWidth);let s=0;if((0,Hs.nw)(l)===C.X.DOUBLE){const e=(0,Hs.hK)(l,g.drawnAnnotationPageIndex);if(i.height!==e.height&&(s=(i.height-e.height)/2*l.zoomLevel),g.drawnAnnotationPageIndex%2!=0){a+=(0,Hs.hK)(l,g.drawnAnnotationPageIndex-1).width*l.zoomLevel}}t=null===(P=g.magnifierCursorPosition)||void 0===P?void 0:P.merge({x:g.magnifierCursorPosition.x-a,y:g.magnifierCursorPosition.y-s}),S=T.createElement(rP.B,{pageRendererComponentProps:e,viewportState:l,scrollElement:m,currentMainToolbarHeight:il.k3,className:"PSPDFKit-Measurement-Magnifier",label:g.magnifierLabel,pageIndex:g.drawnAnnotationPageIndex,cursorPosition:t,isMobile:o.containerRect.width<=Je.Fg})}const D=n?o.pages.get(n.pageIndex):null,k=D&&D.pageSize;return T.createElement(Oy,{dispatch:r,viewportState:l,scrollbarOffset:o.scrollbarOffset,onScrollElementChange:this.handleScrollElementChange,scrollDisabled:o.scrollDisabled},T.createElement(Qv,{enabled:o.interactionMode===x.A.PAN&&!tt.Ni&&!o.interactionsDisabled&&!!o.scrollElement},T.createElement("div",{className:pE().viewportContent,ref:this._viewportRef,"data-testid":"viewport"},w,(0,Ml.Y7)(o)&&l.commentMode&&T.createElement(Ng,{maxMentionSuggestions:o.maxMentionSuggestions,mentionableUsers:o.mentionableUsers,annotations:this.props.state.annotations,viewportState:l,selectedAnnotation:this.props.selectedAnnotation,comments:this.props.state.comments,commentThreads:this.props.state.commentThreads,dispatch:r,keepSelectedTool:this.props.state.keepSelectedTool,frameWindow:this.props.state.frameWindow,anonymousComments:this.props.state.anonymousComments})),E,n&&!(n instanceof j.Qi)&&e.length>0&&!this.props.noteAnnotationToModify&&T.createElement(Wv.Z,{referenceRect:(0,$i.q)((0,J.Wj)(n,l.pagesRotation,l.viewportRect.getSize()).apply((0,de.cr)(l,n.pageIndex).translate(l.scrollPosition.scale(l.zoomLevel))),l.viewportRect.getSize()),viewportState:l,className:"PSPDFKit-Popover-Annotation-Tooltip"},T.createElement(Yb,{items:e})),n&&null!==n.pageIndex&&n instanceof j.UX&&n.isMeasurement()&&o.isCalibratingScale&&T.createElement(Fu.ZP,{annotation:n,isHidden:c,referenceRect:(0,$i.q)((0,J.Wj)(n,l.pagesRotation,l.viewportRect.getSize()).apply((0,de.cr)(l,n.pageIndex).translate(l.scrollPosition.scale(l.zoomLevel))),l.viewportRect.getSize()),viewportState:l,eventEmitter:f,modalClosurePreventionError:this.state.modalClosurePreventionError,setModalClosurePreventionError:e=>this.setState({modalClosurePreventionError:e}),frameWindow:p,locale:h}),n&&1===b.size&&(0,nt.fF)(u)&&n instanceof j.x_&&T.createElement(YE,{modalClosurePreventionError:this.state.modalClosurePreventionError,setModalClosurePreventionError:e=>this.setState({modalClosurePreventionError:e}),annotation:n,isHidden:c,referenceRect:(0,$i.q)((0,J.Wj)(n,l.pagesRotation,l.viewportRect.getSize()).apply((0,de.cr)(l,n.pageIndex).translate(l.scrollPosition.scale(l.zoomLevel))),l.viewportRect.getSize()),viewportState:l,formFields:d,dispatch:r,frameWindow:p,eventEmitter:f,locale:h,isUnsavedAnnotation:n.id===this.props.state.formDesignerUnsavedWidgetAnnotation,pageSize:k,customFontsReadableNames:this.props.state.customFontsReadableNames||(0,i.l4)()}),this.renderLinkAnnotationPopover(),S,this.renderAnimatedExpandendNoteAnnotations(e),null!=v&&v.fontFace&&(null==y?void 0:y.state)===Gl.FP.Active&&null!=v&&v.rect?T.createElement(sP,{referenceRect:v.rect,fontFace:v.fontFace,viewportState:l,activeTextBlock:y}):null))}getSnapshotBeforeUpdate(e){const t=e.selectedNoteAnnotations&&this.props.selectedNoteAnnotations&&0!==e.selectedNoteAnnotations.size&&e.selectedNoteAnnotations.size===this.props.selectedNoteAnnotations.size;return this._animateNoteAnnotation=!window["PSPDFKit-disable-animations"]&&!t,null}renderAnimatedExpandendNoteAnnotations(e){const t=this._isFullscreen?null:this.renderExpandendNoteAnnotations(e);return this._animateNoteAnnotation&&null!==t?T.createElement(Iu.Z,null,t.map((e=>T.createElement(Tu.Z,{key:`NoteAnnotationPopopver-${e.props.noteAnnotation.id}`,timeout:{enter:window["PSPDFKit-disable-animations"]?0:100,exit:window["PSPDFKit-disable-animations"]?0:150},classNames:{enter:hE().fadeEnter,enterActive:hE().fadeEnterActive,exit:hE().fadeExit,exitActive:hE().fadeExitActive}},e)))):T.createElement("div",null,t)}renderExpandendNoteAnnotations(e){var t,n,o,r,a,s;if(!this.props.state.showAnnotations||this.props.state.interactionsDisabled&&!this._isFullscreen||this.props.state.selectedAnnotationIds.size>1)return(0,i.l4)();const l=[];if(this.props.activeAnnotationNote&&(0,J.YV)(null===(t=this.props.activeAnnotationNote)||void 0===t?void 0:t.parentAnnotation)){const e=this.props.activeAnnotationNote;l.push(T.createElement(qv,{key:`NoteAnnotationPopopver-${e.id}`,noteAnnotation:e,noteAnnotationToModify:e,viewportState:this.props.state.viewportState,dispatch:this.props.dispatch,isFullscreen:this._isFullscreen,collapseSelectedNoteContent:!1,annotationToolbarHeight:this.props.state.annotationToolbarHeight,isAnnotationReadOnly:this.isAnnotationReadOnly,autoSelect:this.props.state.selectedTextOnEdit,eventEmitter:this.props.state.eventEmitter,keepSelectedTool:this.props.state.keepSelectedTool}))}if(this.props.hoverAnnotationNote&&(0,J.YV)(null===(n=this.props.hoverAnnotationNote)||void 0===n?void 0:n.parentAnnotation)&&(!this.props.activeAnnotationNote||(null===(o=this.props.hoverAnnotationNote)||void 0===o||null===(r=o.parentAnnotation)||void 0===r?void 0:r.id)!==(null===(a=this.props.activeAnnotationNote)||void 0===a||null===(s=a.parentAnnotation)||void 0===s?void 0:s.id))){const e=this.props.hoverAnnotationNote;l.push(T.createElement(qv,{key:`NoteAnnotationPopopver-${e.id}`,noteAnnotation:e,noteAnnotationToModify:null,viewportState:this.props.state.viewportState,dispatch:this.props.dispatch,isFullscreen:this._isFullscreen,isHover:!0,collapseSelectedNoteContent:!1,annotationToolbarHeight:this.props.state.annotationToolbarHeight,isAnnotationReadOnly:this.isAnnotationReadOnly,autoSelect:this.props.state.selectedTextOnEdit,eventEmitter:this.props.state.eventEmitter,keepSelectedTool:this.props.state.keepSelectedTool}))}return this.props.selectedNoteAnnotations&&0!==this.props.selectedNoteAnnotations.size?this.props.selectedNoteAnnotations.filter((e=>null!==e.pageIndex)).map((t=>{const n=!!this.props.selectedAnnotation&&t.id===this.props.selectedAnnotation.id;return T.createElement(qv,{key:`NoteAnnotationPopopver-${t.id}`,noteAnnotation:t,noteAnnotationToModify:this.props.noteAnnotationToModify,viewportState:this.props.state.viewportState,dispatch:this.props.dispatch,isFullscreen:this._isFullscreen,isHover:!n,annotationToolbarHeight:this.props.state.annotationToolbarHeight,isAnnotationReadOnly:this.isAnnotationReadOnly,tools:n?e:[],collapseSelectedNoteContent:this.props.state.collapseSelectedNoteContent,autoSelect:this.props.state.selectedTextOnEdit,eventEmitter:this.props.state.eventEmitter,keepSelectedTool:this.props.state.keepSelectedTool})})).concat(l):(0,i.l4)(l)}renderLinkAnnotationPopover(){const{selectedAnnotation:e,state:t,dispatch:n,hoveredLinkAnnotation:o}=this.props,{viewportState:r,frameWindow:i,locale:a,pages:l,linkAnnotationMode:c,viewportState:{currentPageIndex:u}}=t,d=e&&e instanceof s.R1&&!c,p=!(null==o||!o.action||d),f=e?(null==e?void 0:e.pageIndex)===u:(null==o?void 0:o.pageIndex)===u;if(!p&&!d)return null;if(!f)return o&&this.props.dispatch((0,je.IP)(o.id)),null;const h=p?o:e;return T.createElement(vg,{annotation:h,viewportState:r,dispatch:n,frameWindow:i,locale:a,pages:l,isHover:p})}componentDidUpdate(e){this.props.state.interactionMode!==x.A.DOCUMENT_CROP&&e.state.interactionMode===x.A.DOCUMENT_CROP&&this.setState({crop:null}),(0,nt.fF)(e.state.interactionMode)&&!(0,nt.fF)(this.props.state.interactionMode)&&this.props.dispatch((0,En.LE)(!1)),this.props.state.interactionMode!==x.A.INK_SIGNATURE&&this.props.state.interactionMode!==x.A.SIGNATURE||this.props.state.signatureState.storedSignatures||this.props.dispatch(jS());!(this.props.state.features.includes(ge.q.DIGITAL_SIGNATURES)&&!this.props.state.digitalSignatures&&this.props.state.connectionState.name===_s.F.CONNECTED)&&(e.state.documentHandle===this.props.state.documentHandle&&this.props.state.digitalSignatures||this.props.state.connectionState.name!==_s.F.CONNECTED)||this._fetchDigitalSignaturesInfo(),e.state.features.equals(this.props.state.features)&&e.state.backend===this.props.state.backend&&e.state.backendPermissions.equals(this.props.state.backendPermissions)&&e.state.documentPermissions.equals(this.props.state.documentPermissions)&&e.state.readOnlyEnabled===this.props.state.readOnlyEnabled&&e.state.editableAnnotationTypes.equals(this.props.state.editableAnnotationTypes)&&e.state.toolbarItems.equals(this.props.state.toolbarItems)&&e.state.showComments===this.props.state.showComments||this.setState({isAnnotationTypeReadOnlyMemoized:(0,jo.Z)((e=>(0,So.j$)(e,this.props.state))),filteredItems:(0,Hd.I4)(this.props.state)})}render(){const{selectedAnnotation:e,activeAnnotationNote:t,state:n}=this.props,{viewportState:o,isDocumentHandleOutdated:r}=n;this._isFullscreen=o.viewportRect.width<=Je.j1;const i=n.containerRect.width<=Je.Fg?n.containerRect.width:200,a=e instanceof j.Qi&&this.isAnnotationReadOnly(e)&&!this._isFullscreen,s=n.currentItemPreset&&n.annotationPresets.get(n.currentItemPreset)||{},{SIGNATURE_SAVE_MODE:l,DISABLE_KEYBOARD_SHORTCUTS:c}=mt.Ei,u=n.sidebarMode&&T.createElement(Yy,{initialSize:n.sidebarWidth,minWidth:i,maxWidth:n.containerRect.width,draggerSize:n.containerRect.width<=Je.Fg?0:6,onResize:this.handleSidebarResize,isRTL:n.sidebarPlacement===pu.d.END,dispatch:this.props.dispatch},this.renderSidebar),d=(e||t)&&!a||!n.interactionsDisabled&&(n.currentTextSelection||n.interactionMode===x.A.TEXT_HIGHLIGHTER)&&!n.inlineTextMarkupToolbar||n.interactionMode===x.A.INK_ERASER||n.interactionMode===x.A.DOCUMENT_CROP||n.interactionMode===x.A.CONTENT_EDITOR||n.interactionMode===x.A.MEASUREMENT||(0,nt.fF)(n.interactionMode),p=!(!e||!(0,oi.Kd)(e,n)),f=o.documentComparisonMode&&T.createElement(aE,{position:n.toolbarPlacement===Ru.p.TOP?"top":"bottom"}),h=!f&&n.enableAnnotationToolbar&&!(e&&this.props.state.commentThreads.has(e.id))&&T.createElement(Iu.Z,null,d?T.createElement(Tu.Z,{timeout:{exit:window["PSPDFKit-disable-animations"]?0:120,enter:window["PSPDFKit-disable-animations"]?0:100},classNames:n.toolbarPlacement===Ru.p.TOP?{enter:hE().slideDownEnter,enterActive:hE().slideDownEnterActive,exit:hE().slideDownExit,exitActive:hE().slideDownExitActive}:{enter:hE().slideUpEnter,enterActive:hE().slideUpEnterActive,exit:hE().slideUpExit,exitActive:hE().slideUpExitActive}},this.getToolbarComponent()):null),m=n.digitalSignatures&&n.showSignatureValidationStatus!==fu.W.NEVER?T.createElement(Tu.Z,{in:!!d,timeout:{exit:window["PSPDFKit-disable-animations"]?0:120,enter:window["PSPDFKit-disable-animations"]?0:100},classNames:n.toolbarPlacement===Ru.p.TOP?{enter:hE().moveDownSignatureBarEnter,enterActive:hE().moveDownSignatureBarEnterActive,exit:hE().moveDownExit,exitActive:hE().moveDownSignatureBarExitActive}:{enter:hE().moveUpSignatureBarEnter,enterActive:hE().moveUpSignatureBarEnterActive,exit:hE().moveUpSignatureBarExit,exitActive:hE().moveUpSignatureBarExitActive}},T.createElement(Wb,{digitalSignatures:n.digitalSignatures,showSignatureValidationStatus:n.showSignatureValidationStatus})):null,g=n.signatureFeatureAvailability,v=(0,So.bp)(n),y=T.createElement(T.Fragment,null,n.showToolbar&&T.createElement(il.ZP,{sidebarMode:n.sidebarMode,currentPageIndex:o.currentPageIndex,debugMode:n.debugMode,dispatch:this.props.dispatch,eventEmitter:this.props.state.eventEmitter,frameWindow:n.frameWindow,interactionMode:n.interactionMode,items:this.state.filteredItems,layoutMode:o.layoutMode,maxZoomReached:o.zoomLevel>=(0,Ys.Sm)(o),minZoomReached:o.zoomLevel<=(0,Ys.Yo)(o),printingEnabled:(0,So.VT)(n),exportEnabled:(0,So.RZ)(n),isDocumentReadOnly:v,isAnnotationTypeReadOnly:this.state.isAnnotationTypeReadOnlyMemoized,isDocumentComparisonAvailable:this.isDocumentComparisonAvailable(),signatureFeatureAvailability:g,scrollMode:o.scrollMode,pages:n.pages,totalPages:n.totalPages,zoomMode:o.zoomMode,currentItemPreset:n.currentItemPreset,toolbarPlacement:n.toolbarPlacement,documentEditorEnabled:(0,So.Xr)(n),canUndo:n.isHistoryEnabled&&n.undoActions.size>0,canRedo:n.isHistoryEnabled&&n.redoActions.size>0,currentDocumentComparisonMode:o.documentComparisonMode,isContentEditorSessionDirty:n.contentEditorSession.dirty,isMultiSelectionEnabled:n.isMultiSelectionEnabled}),T.createElement(Zb,{position:n.toolbarPlacement===Ru.p.TOP?"top":"bottom"},n.toolbarPlacement===Ru.p.TOP?T.createElement(T.Fragment,null,f||h,m):T.createElement(T.Fragment,null,m,f||h)));return T.createElement(Mu.Provider,{value:this.getScrollElement},T.createElement("div",{className:`PSPDFKit-Container PSPDFKit-browser-engine-${tt.SR} PSPDFKit-browser-system-${tt.By} ${tt.Ni?"PSPDFKit-mobile-os":""} PSPDFKit-${(0,Hs.s)(n.containerRect)} ${pE().root} ${n.interactionsDisabled?"interactions-disabled":""} ${null!=n.backend?"PSPDFKit-backend-"+("STANDALONE"===n.backend.type?"standalone":"server"):""} ${n.disablePullToRefresh?"overscrollDisabled":""}`},n.isDebugConsoleVisible&&T.createElement($g,{dispatch:this.props.dispatch}),(n.interactionMode===x.A.STAMP_PICKER||n.interactionMode===x.A.STAMP_CUSTOM)&&T.createElement(Eb,{onEscape:this._closeStampModal,showPicker:n.interactionMode===x.A.STAMP_PICKER},T.createElement(Rb,{onCreate:this._createAnnotationFromTemplate,backend:n.backend,onCancel:this._closeStampModal,stampAnnotationTemplates:n.stampAnnotationTemplates,dispatch:this.props.dispatch,showPicker:n.interactionMode===x.A.STAMP_PICKER,attachments:n.attachments,viewportWidth:n.containerRect.width})),(n.interactionMode===x.A.INK_SIGNATURE||n.interactionMode===x.A.SIGNATURE)&&n.signatureState.storedSignatures&&g===Ar.H.LEGACY_SIGNATURES&&T.createElement(eb,{onEscape:this._closeSignatureModal},T.createElement(bb,{onCancel:this._closeSignatureModal,onCreate:this._createSignatureFromAnnotation,onDelete:this._deleteStoredSignature,storedSignatures:n.signatureState.storedSignatures,preset:s,canStoreSignature:(null==n.signatureState.formFieldName||!n.signatureState.formFieldsNotSavingSignatures.includes(n.signatureState.formFieldName))&&l!==_u.f.NEVER,backend:n.backend,attachments:n.attachments,viewportWidth:n.containerRect.width})),(n.interactionMode===x.A.INK_SIGNATURE||n.interactionMode===x.A.SIGNATURE)&&n.signatureState.storedSignatures&&g===Ar.H.ELECTRONIC_SIGNATURES&&T.createElement(aw,{onEscape:this._closeSignatureModal},T.createElement(pS,{preset:s,colorPresets:this.props.state.electronicSignatureColorPresets,frameWindow:n.frameWindow,onCreate:this._createSignature,onDelete:this._deleteStoredSignature,onCancel:this._closeSignatureModal,storedSignatures:n.signatureState.storedSignatures,hasSignaturesCreationListener:Object.keys(n.eventEmitter.listeners).includes("storedSignatures.create")||Object.keys(n.eventEmitter.listeners).includes("inkSignatures.create"),hasSignaturesDeletionListener:Object.keys(n.eventEmitter.listeners).includes("storedSignatures.delete")||Object.keys(n.eventEmitter.listeners).includes("inkSignatures.delete"),backend:n.backend,attachments:n.attachments,viewportWidth:n.containerRect.width,creationModes:n.electronicSignatureCreationModes,signingFonts:n.signingFonts,dispatch:this.props.dispatch})),n.interactionMode===x.A.MEASUREMENT_SETTINGS&&T.createElement(gP.Z,{frameWindow:n.frameWindow}),n.interactionMode===x.A.DOCUMENT_EDITOR&&T.createElement(DS,{onCancel:this._handleDocumentEditorCancel,scale:this.getThumbnailScale()}),n.isPrinting&&T.createElement(dy,{progress:n.printLoadingIndicatorProgress,totalPages:n.totalPages}),n.isSigning&&(pP||(pP=T.createElement(gy,null))),n.isApplyingRedactions&&(fP||(fP=T.createElement(Sy,null))),T.createElement(Tf,{connectionState:n.connectionState,resolvePassword:n.resolvePassword,isUnlockedViaModal:n.isUnlockedViaModal},n.toolbarPlacement===Ru.p.TOP&&y,n.interactionMode===x.A.SEARCH&&(hP||(hP=T.createElement(jy,null))),T.createElement("div",{className:pE().main},!u&&T.createElement(Hp.Z,{onResize:this.handleResizeHelperResize}),n.sidebarPlacement===pu.d.START&&u,T.createElement("div",{className:F()(pE().mainContent,this.state.isResizingSidebar&&pE().mainContentResizing)},this.renderViewport(this.state.isAnnotationTypeReadOnlyMemoized)),n.sidebarPlacement===pu.d.END&&u,u&&T.createElement(Hp.Z,{onResize:this.handleResizeHelperResize})),n.toolbarPlacement===Ru.p.BOTTOM&&y,n.annotationsIdsToDelete&&T.createElement(Xg,{dispatch:this.props.dispatch,annotations:n.annotationsIdsToDelete.map((e=>n.annotations.get(e))).filter(Boolean),eventEmitter:n.eventEmitter,setA11yStatusMessage:this._setA11yStatusMessage}),n.showExitContentEditorDialog&&(mP||(mP=T.createElement(tP,null))),!c&&T.createElement(Pv,{dispatch:this.props.dispatch,printingEnabled:(0,So.VT)(n),isPrinting:n.isPrinting,isTextCopyingAllowed:(0,So.HI)(n),selectedAnnotationsIds:this.props.editableSelectedAnnotationIds,commentThreads:this.props.state.commentThreads,getScrollElement:this.getScrollElement,canDeleteSelectedAnnotationCP:p,canUndo:n.isHistoryEnabled&&n.undoActions.size>0,canRedo:n.isHistoryEnabled&&n.redoActions.size>0,selectedAnnotation:this.props.selectedAnnotation,currentPageIndex:o.currentPageIndex,eventEmitter:n.eventEmitter,backend:n.backend,formFields:n.formFields,areClipboardActionsEnabled:n.areClipboardActionsEnabled,modalClosurePreventionError:this.state.modalClosurePreventionError,setModalClosurePreventionError:e=>{this.setState({modalClosurePreventionError:e})},annotations:n.annotations,selectedGroupId:n.selectedGroupId,annotationsGroups:n.annotationsGroups,frameWindow:n.frameWindow,isMultiSelectionEnabled:n.isMultiSelectionEnabled,contentEditorSession:n.contentEditorSession,interactionMode:n.interactionMode}),r&&this.state.silenceOutdatedDocumentPromptForHandle!==n.documentHandle&&T.createElement(nw,{onConfirm:this.reloadDocument,onCancel:()=>this.closeReloadDocumentModal(n.documentHandle)})),T.createElement(Qg,{locale:n.locale}),T.createElement(bP,{message:n.a11yStatusMessage})))}}const bP=T.memo((e=>T.createElement(ue.TX,{announce:"polite",role:"status",tag:"div"},T.createElement("div",null,e.message)))),wP=(0,A.$j)((e=>{const{annotations:t,hoverAnnotationIds:n,hoverAnnotationNote:o,activeAnnotationNote:r,selectedAnnotationIds:i}=e,a=i.concat(n).map((e=>t.get(e))).filter((e=>e&&e instanceof j.Qi)),s=n.concat(n).map((e=>t.get(e))).filter((e=>e&&e instanceof j.R1)).first(),l=a.first(),c=l&&e.selectedAnnotationMode===Q.o.EDITING?l:null,u=e.selectedAnnotationIds.size>0?e.annotations.get(e.selectedAnnotationIds.first()):null;return{state:e,selectedNoteAnnotations:a,noteAnnotationToModify:c,selectedAnnotation:u,activeAnnotationNote:r,hoverAnnotationNote:o,editableSelectedAnnotationIds:i.filter((t=>{const n=e.annotations.get(t);return n&&!(0,So.lV)(n,e)})),currentTextSelection:e.currentTextSelection,hoveredLinkAnnotation:s}}))(yP);var SP=n(55237);const EP=tt.Ni?396:240,PP=new SP.Z({width:EP,height:EP/3,left:0,top:0}),xP=new SP.Z({width:EP,height:EP,left:0,top:0}),DP=Object.freeze([["Approved",PP],["NotApproved",PP],["Draft",PP],["Final",PP],["Completed",PP],["Confidential",PP],["ForPublicRelease",PP],["NotForPublicRelease",PP],["ForComment",PP],["Void",PP],["PreliminaryResults",PP],["InformationOnly",PP],["Rejected",xP],["Accepted",xP],["InitialHere",PP],["SignHere",PP],["Witness",PP],["AsIs",PP],["Departmental",PP],["Experimental",PP],["Expired",PP],["Sold",PP],["TopSecret",PP],["Revised",PP],["RejectedWithText",PP]].map((e=>{let[t,n]=e;return new s.GI({stampType:t,boundingBox:n})})));var CP=n(84760),kP=n(31835);const AP=(0,H.Z)("ToolbarItems");const OP=["annotationSelection.change"];const TP=(0,H.Z)("Annotations");const IP=(0,H.Z)("Bookmarks");const FP=(0,H.Z)("CustomOverlayItem");var MP=n(8503);const _P=(0,H.Z)("Forms");const RP=(0,H.Z)("InkSignatures"),NP=["inkSignatures.create","inkSignatures.update","inkSignatures.delete","inkSignatures.change"],LP=["storedSignatures.create","storedSignatures.update","storedSignatures.delete","storedSignatures.change"];const BP=(0,H.Z)();async function jP(e,t,n){var o;if("object"!=typeof e||"number"!=typeof e.width&&"number"!=typeof e.height)throw new a.p2("The first argument must be an object with either `width` or `height` set to a number.");if("width"in e&&"height"in e)throw new a.p2("The first argument can't contain both `height` and `width` propeties at the same time.");if("width"in e&&"number"!=typeof e.width)throw new a.p2("`width` must be a number.");if("height"in e&&"number"!=typeof e.height)throw new a.p2("`height` must be a number.");BP("number"==typeof t,"pageIndex must be a number."),await(null===(o=n.getState().annotationManager)||void 0===o?void 0:o.loadAnnotationsForPageIndex(t));const r=n.getState(),i=r.pages.get(t);BP(i,`Could not find page with index ${t} in this document.`);const{pageSize:s}=i;let l,c;"width"in e&&"number"==typeof e.width&&e.width>0&&e.width<=Je.Qr?(l=Math.round(e.width),c=Math.round(l*s.height/s.width)):"height"in e&&"number"==typeof e.height&&e.height>0&&e.height<=Je.Qr?(c=Math.round(e.height),l=Math.round(c*s.width/s.height)):BP(!1,`Could not calculate cover dimensions. Values must be in the interval \`(0; ${Je.Qr}]\`.`);const u=r.annotations.filter((e=>e.pageIndex===t&&!(e instanceof j.Jn||e instanceof j.On&&r.commentThreads.has(e.id)))).toList(),d=r.formFields.filter((e=>e.annotationIds.some((e=>{const n=r.annotations.get(e);return!(!n||n.pageIndex!==t)})))),p=(0,nt.Qg)(d);BP(r.backend);const{promise:f}=r.backend.renderTile(t,new j.$u({width:l,height:c}),new j.UL({width:l,height:c}),!1,!0,{annotations:u,formFieldValues:p,formFields:d.toList(),attachments:r.attachments,signatures:r.digitalSignatures&&r.digitalSignatures.signatures}),{element:h}=await f;return{element:h,width:l,height:c}}var zP=n(96617);const KP={CREDIT_CARD_NUMBER:"credit_card_number",DATE:"date",TIME:"time",EMAIL_ADDRESS:"email_address",INTERNATIONAL_PHONE_NUMBER:"international_phone_number",IP_V4:"ipv4",IP_V6:"ipv6",MAC_ADDRESS:"mac_address",NORTH_AMERICAN_PHONE_NUMBER:"north_american_phone_number",SOCIAL_SECURITY_NUMBER:"social_security_number",URL:"url",US_ZIP_CODE:"us_zip_code",VIN:"vin"},ZP=["search.stateChange","search.termChange"];const UP=(0,H.Z)("StampAnnotationTemplates");var VP=n(49177);class GP extends((0,i.WV)({startTextLineId:null,endTextLineId:null,startPageIndex:null,endPageIndex:null,startNode:null,startOffset:null,endNode:null,endOffset:null,getText:null,getSelectedTextLines:null,getBoundingClientRect:null,getSelectedRectsPerPage:null})){}const WP=["textSelection.change"];function qP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function HP(e){for(var t=1;t{e.setFormJSONUpdateBatchMode(!1)})))}const QP=["history.undo","history.redo","history.change","history.willChange","history.clear"];const ex=(0,H.Z)("DocumentEditorFooterItem");const tx=["documentComparisonUI.start","documentComparisonUI.end"];const nx={Sidebar:Object.values(du.f)};function ox(e){for(const t in e)if(e.hasOwnProperty(t)){(0,Ne.k)(void 0!==typeof nx[t],`'${t}' is not a customizable UI element. Customizable UI elements are: ${Object.keys(nx).join(", ")}`);const n=nx[t];(0,Ne.k)(Object.keys(e[t]).every((e=>n.includes(e))),`The provided custom UI configuration contains one or more invalid keys for "${t}". Valid "${t}" keys are: ${n.join(",")}`),(0,Ne.k)(Object.values(e[t]).every((e=>"function"==typeof e)),"The custom UI values provided must be callback functions.")}return e}var rx=n(62793);const ix=(0,H.Z)(),ax=["instant.connectedClients.change","page.press","textLine.press","annotationPresets.update","annotationNote.hover","annotationNote.press"],sx=[function(e,t){Object.defineProperty(t,"editableAnnotationTypes",{enumerable:!0,configurable:!1,get:()=>e.getState().editableAnnotationTypes}),t.setEditableAnnotationTypes=function(t){if(!Array.isArray(t))throw new a.p2("editableAnnotationTypes must be an array of annotation types.");if(!t.every((e=>e&&e.prototype&&(e.prototype instanceof Ou.Z||e==Ou.Z))))throw new a.p2("editableAnnotationTypes must be an array of annotation types.");e.dispatch((0,En.ZV)((0,i.l4)(t)))},t.setIsEditableAnnotation=function(t){if("function"!=typeof t)throw new a.p2("The type for isEditableAnnotation is not valid. Must be `function`.");e.dispatch((0,En.R1)(t))}},function(e,t){const n=()=>e.getState().annotationPresets;Object.defineProperty(t,"annotationPresets",{enumerable:!0,configurable:!1,get:()=>n().toObject()}),Object.defineProperty(t,"currentAnnotationPreset",{enumerable:!0,configurable:!1,get:()=>e.getState().currentItemPreset}),t.setAnnotationPresets=function(t){let o=t;"function"==typeof t&&(o=t.call(null,n().toObject())),AP("object"==typeof o,`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an object.`),Object.values(o).forEach(Tc);const r=(0,i.D5)(o);n().equals(r)||e.dispatch((0,Qt.QA)(r))},t.setCurrentAnnotationPreset=function(t){const n=e.getState();"string"==typeof t&&(0,a.kG)(void 0!==n.annotationPresets.get(t),`There is no annotation preset with the supplied 'annotationPresetID' ${t}`),e.dispatch((0,Qt.Ds)(t))}},function(e,t){const n=()=>[...e.getState().stampAnnotationTemplates];Object.defineProperty(t,"stampAnnotationTemplates",{enumerable:!0,configurable:!1,get:()=>n()}),t.setStampAnnotationTemplates=function(t){let o=t;"function"==typeof o&&(o=o.call(null,n())),UP(Array.isArray(o),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an array.`),o.forEach(tu);const r=n();JSON.stringify(r)!==JSON.stringify(o)&&e.dispatch((0,Qt.fx)([...o]))}},function(e,t){const{eventEmitter:n}=e.getState();let o=!0,r=l();function i(){if(!o)return;const e=l(),t=r;r=e;const i=t.delete("instance"),a=e.delete("instance");i.equals(a)||(t.currentPageIndex!==e.currentPageIndex&&n.emit("viewState.currentPageIndex.change",e.currentPageIndex),t.zoom!==e.zoom&&n.emit("viewState.zoom.change",e.zoom),n.emit("viewState.change",e,t))}n.events.push(...Du),n.events.push(...Cu);const s=e.subscribe(i);function l(){return function(e,t){return new y.Z({currentPageIndex:e.viewportState.currentPageIndex,zoom:e.viewportState.zoomMode===Xs.c.CUSTOM?e.viewportState.zoomLevel:e.viewportState.zoomMode,pagesRotation:e.viewportState.pagesRotation,layoutMode:e.viewportState.layoutMode,scrollMode:e.viewportState.scrollMode,showToolbar:e.showToolbar,enableAnnotationToolbar:e.enableAnnotationToolbar,allowPrinting:e.printingEnabled,allowExport:e.exportEnabled,interactionMode:e.interactionMode,readOnly:e.readOnlyEnabled!==ve.J.NO,showAnnotations:e.showAnnotations,showComments:e.showComments,showAnnotationNotes:e.showAnnotationNotes,sidebarMode:e.sidebarMode,sidebarOptions:e.sidebarOptions,sidebarPlacement:e.sidebarPlacement,spreadSpacing:e.viewportState.spreadSpacing,pageSpacing:e.viewportState.pageSpacing,keepFirstSpreadAsSinglePage:e.viewportState.keepFirstSpreadAsSinglePage,viewportPadding:new j.gx({horizontal:e.viewportState.viewportPadding.x,vertical:e.viewportState.viewportPadding.y}),instance:t||e.instance,formDesignMode:e.formDesignMode,showSignatureValidationStatus:e.showSignatureValidationStatus,previewRedactionMode:e.previewRedactionMode,keepSelectedTool:e.keepSelectedTool,resolvedLayoutMode:(0,Hs.nw)(e.viewportState),sidebarWidth:e.sidebarWidth})}(e.getState(),t)}return Object.defineProperty(t,"viewState",{enumerable:!0,configurable:!1,get:l}),t.setViewState=function(t){let n=t;if("function"==typeof n&&(n=n.call(null,l())),!(n instanceof j.f7)){const e="function"==typeof n?"return value of your update function":"supplied argument";throw new a.p2(`The ${e} is not an instance of PSPDFKit.ViewState.`)}o=!1,n=Au(n,e),function(e,t,n){t.zoom!==n.zoom&&(n.zoom===Xs.c.AUTO?e.dispatch((0,Eu._R)()):n.zoom===Xs.c.FIT_TO_VIEWPORT?e.dispatch((0,Eu.lO)()):n.zoom===Xs.c.FIT_TO_WIDTH?e.dispatch((0,Eu.du)()):"number"==typeof n.zoom&&e.dispatch((0,Eu.Ic)(n.zoom)));if(t.pagesRotation!==n.pagesRotation){const o=(0,Yr.n5)(n.pagesRotation-t.pagesRotation);e.dispatch((0,Eu.U1)(o))}t.layoutMode!==n.layoutMode&&e.dispatch((0,En.YA)(n.layoutMode));t.scrollMode!==n.scrollMode&&e.dispatch((0,En._U)(n.scrollMode));t.showToolbar!==n.showToolbar&&(t.showToolbar?e.dispatch((0,En.iu)()):e.dispatch((0,En.bv)()));t.enableAnnotationToolbar!==n.enableAnnotationToolbar&&(t.enableAnnotationToolbar?e.dispatch((0,En.Wv)()):e.dispatch((0,En.m$)()));t.allowPrinting!==n.allowPrinting&&(n.allowPrinting?e.dispatch((0,En.Ol)()):e.dispatch((0,En.m0)()));t.allowExport!==n.allowExport&&(n.allowExport?e.dispatch((0,En.Rx)()):e.dispatch((0,En.YI)()));t.zoomStep!==n.zoomStep&&(!n.zoomStep||n.zoomStep<1?((0,a.ZK)(`The zoomStep value must be greater than 1. The value you provided was ${n.zoomStep}.The zoomStep value will be set to default ${Je.V4}`),e.dispatch((0,En.Ql)(Je.V4))):e.dispatch((0,En.Ql)(n.zoomStep)));const o=e.getState();t.showSignatureValidationStatus!==n.showSignatureValidationStatus&&((0,a.kG)(o.features.includes(ge.q.DIGITAL_SIGNATURES),bu),e.dispatch((0,En.A7)(n.showSignatureValidationStatus)));(!0===n.formDesignMode||(0,nt.fF)(n.interactionMode))&&((0,a.kG)(o.features.includes(ge.q.FORM_DESIGNER),wu.RB),(0,a.kG)(o.backend&&(0,So.k_)(o.backend),wu.Bl));!0===n.previewRedactionMode&&(0,a.kG)(o.features.includes(ge.q.REDACTIONS),"The API you're trying to use requires a redactions license. Redactions is a component of PSPDFKit for Web and sold separately.");n.interactionMode===x.A.DOCUMENT_EDITOR&&(0,a.kG)(o.features.includes(ge.q.DOCUMENT_EDITING),gu);n.interactionMode===x.A.CONTENT_EDITOR&&(0,a.kG)(o.features.includes(ge.q.CONTENT_EDITING),sc.Aq);t.formDesignMode!==n.formDesignMode&&e.dispatch((0,En.LE)(n.formDesignMode));if(t.interactionMode!==n.interactionMode){if(null!=n.interactionMode){const r=ku(n.interactionMode,o),i=t.interactionMode?ku(t.interactionMode,o):null;(n.interactionMode===x.A.DOCUMENT_EDITOR&&(0,So.Xr)({features:o.features,backendPermissions:o.backendPermissions,documentPermissions:o.documentPermissions,readOnlyEnabled:o.readOnlyEnabled})||n.interactionMode===x.A.CONTENT_EDITOR&&(0,So.qs)({features:o.features,backendPermissions:o.backendPermissions,documentPermissions:o.documentPermissions,readOnlyEnabled:o.readOnlyEnabled})||!n.readOnly||r.allowWhenInReadOnlyMode)&&(0,A.dC)((()=>{i&&e.dispatch(i.onLeaveAction()),e.dispatch(r.onEnterAction())}))}else if(null!=t.interactionMode){const n=ku(t.interactionMode,o);e.dispatch((0,je.fz)()),e.dispatch(n.onLeaveAction())}n.interactionMode===x.A.INK_SIGNATURE&&(0,_.a1)("PSPDFKit.InteractionMode.INK_SIGNATURE was deprecated and will be removed in future version. Please use PSPDFKit.InteractionMode.SIGNATURE instead.")}t.readOnly!==n.readOnly&&(n.readOnly?e.dispatch((0,En.oX)(ve.J.VIA_VIEW_STATE)):e.dispatch((0,En.ek)()));t.showAnnotations!==n.showAnnotations&&(n.showAnnotations?e.dispatch((0,En.cI)()):e.dispatch((0,En.Tu)()));t.showComments!==n.showComments&&((0,a.kG)(o.features.includes(ge.q.COMMENTS),Ml.kx),n.showComments?e.dispatch((0,En.Q8)()):e.dispatch((0,En.u0)()));t.showAnnotationNotes!==n.showAnnotationNotes&&(n.showAnnotationNotes?e.dispatch((0,En.T)()):e.dispatch((0,En.SE)()));const r={[du.f.ANNOTATIONS]:En.ze,[du.f.BOOKMARKS]:En.Hf,[du.f.DOCUMENT_OUTLINE]:En.EJ,[du.f.THUMBNAILS]:En.el,[du.f.CUSTOM]:En.rd};t.sidebarMode!==n.sidebarMode&&(null===n.sidebarMode?e.dispatch((0,En.mu)()):e.dispatch(r[n.sidebarMode]()));t.sidebarPlacement!==n.sidebarPlacement&&e.dispatch((0,En.Ox)(n.sidebarPlacement));t.sidebarOptions!==n.sidebarOptions&&e.dispatch((0,En.vI)(n.sidebarOptions));t.spreadSpacing!==n.spreadSpacing&&e.dispatch((0,En.JN)(n.spreadSpacing));t.pageSpacing!==n.pageSpacing&&e.dispatch((0,En.vY)(n.pageSpacing));t.keepFirstSpreadAsSinglePage!==n.keepFirstSpreadAsSinglePage&&e.dispatch((0,En.EY)(n.keepFirstSpreadAsSinglePage));if(t.viewportPadding.horizontal!==n.viewportPadding.horizontal||t.viewportPadding.vertical!==n.viewportPadding.vertical){const t=new j.E9({x:n.viewportPadding.horizontal,y:n.viewportPadding.vertical});e.dispatch((0,En._P)(t))}t.currentPageIndex!==n.currentPageIndex&&e.dispatch((0,Eu.YA)(n.currentPageIndex));t.previewRedactionMode!==n.previewRedactionMode&&e.dispatch((0,En.P_)(n.previewRedactionMode));n.canScrollWhileDrawing&&!t.canScrollWhileDrawing&&e.dispatch((0,En.xW)());!n.canScrollWhileDrawing&&t.canScrollWhileDrawing&&e.dispatch((0,En.Ft)());n.keepSelectedTool&&e.dispatch((0,En.HT)());!n.keepSelectedTool&&t.keepSelectedTool&&e.dispatch((0,En.Xv)());if(t.sidebarWidth!==n.sidebarWidth){const t=e.getState(),{containerRect:o}=t,r={width:n.sidebarWidth,height:o.height};(0,A.dC)((()=>{e.dispatch((0,Eu.Pt)(n.sidebarWidth)),e.dispatch((0,Eu.dx)(xu(t,r,n.sidebarWidth),!1))})),t.viewportState.viewportRect.set("height",r.height)}}(e,l(),n),o=!0,i()},s},function(e,t){const n=()=>e.getState().toolbarItems;Object.defineProperty(t,"toolbarItems",{enumerable:!0,configurable:!1,get:()=>n().toJS()}),t.setToolbarItems=function(t){let o=t;"function"==typeof o&&(o=o.call(null,n().toJS())),$P(Array.isArray(o),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an array.`);const{backend:r}=e.getState();o=o.map((e=>"ink-signature"===e.type?((0,a.a1)("The 'ink-signature' toolbar item type has been renamed to 'signature'. The 'ink-signature' identifier will be removed on a future release of PSPDFKit for Web."),HP(HP({},e),{},{type:"signature"})):e)).filter((e=>"content-editor"!==e.type||"SERVER"!==(null==r?void 0:r.type)||((0,a.ZK)("The 'content-editor' toolbar item type is not supported in the Server backend: Content Editing is only available in Standalone."),!1))),o.forEach(Nc);const s=(0,i.d0)(o);var l;n().equals(s)||e.dispatch((l=s,{type:te.aWu,toolbarItems:l}))},t.setAnnotationToolbarItems=t=>{(0,a.kG)("function"==typeof t,"The annotationToolbarItemsCallback argument must be a function."),e.dispatch((e=>({type:te.T3g,annotationToolbarItemsCallback:e}))(t))}},function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("annotations.willChange","annotations.change","annotations.willSave","annotations.didSave","annotations.load","annotations.create","annotations.update","annotations.delete","annotations.press","annotations.focus","annotations.blur","annotations.transform","annotations.cut","annotations.copy","annotations.paste","annotations.duplicate");let n=e.getState().annotations;const o=()=>t.emit("annotations.willSave"),r=()=>t.emit("annotations.didSave"),i=e=>t.emit("annotations.load",e),a=e=>t.emit("annotations.create",e),s=e=>t.emit("annotations.update",e),l=e=>t.emit("annotations.delete",e);let c=!1;const u=()=>{if(!c){const{annotationManager:t}=e.getState();t&&(t.eventEmitter.on("willSave",o),t.eventEmitter.on("didSave",r),t.eventEmitter.on("load",i),t.eventEmitter.on("create",a),t.eventEmitter.on("update",s),t.eventEmitter.on("delete",l),c=!0)}},d=e.subscribe((()=>{const o=e.getState().annotations;n!==o&&(n=o,t.emit("annotations.change")),u()}));return u(),()=>{if(c){const{annotationManager:t}=e.getState();TP(t,"AnnotationManager is not present in the state"),t.eventEmitter.off("willSave",o),t.eventEmitter.off("didSave",r),t.eventEmitter.off("load",i),t.eventEmitter.off("create",a),t.eventEmitter.off("update",s),t.eventEmitter.off("delete",l),c=!1}d()}}(e);return t.getAnnotations=async function(t){TP("number"==typeof t,"`pageIndex` must be a number");const{annotationManager:n,totalPages:o}=e.getState();TP(t>-1&&te.pageIndex===t)).toList()},t.createAttachment=async function(t){const{hash:n}=await(0,He.uq)(t),o=new j.Pg({data:t});return e.dispatch((0,vv.O)(n,o)),n},t.getAttachment=async function(t){if(!(0,J.F3)(t))throw new a.p2(`${t} is not a valid attachment.`);const n=e.getState(),o=n.attachments.get(t);if(o){if(o.data)return o.data;throw new a.p2(`Attachment ${t} not found.`)}return TP(n.backend),n.backend.getAttachment(t)},t.calculateFittingTextAnnotationBoundingBox=function(t){TP(t instanceof s.gd,"The annotation in `calculateFittingTextAnnotationBoundingBox(annotation)` must be of type `PSPDFKit.Annotations.TextAnnotation`"),TP("number"==typeof t.pageIndex,"`pageIndex` must be a number");const{viewportState:n}=e.getState(),o=n.pageSizes.get(t.pageIndex);return TP(o,"`pageIndex` is not a valid page index in the open document"),(0,vt.Zv)(t,o)},t.getEmbeddedFiles=async function(){const{backend:t}=e.getState();return TP(t),t.getEmbeddedFiles()},t.setOnAnnotationResizeStart=function(t){e.dispatch((0,Qt.dt)(t))},n},function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("bookmarks.change","bookmarks.willSave","bookmarks.didSave","bookmarks.load","bookmarks.create","bookmarks.update","bookmarks.delete");const n=()=>t.emit("bookmarks.change"),o=()=>t.emit("bookmarks.willSave"),r=()=>t.emit("bookmarks.didSave"),i=e=>t.emit("bookmarks.load",e),a=e=>t.emit("bookmarks.create",e),s=e=>t.emit("bookmarks.update",e),l=e=>t.emit("bookmarks.delete",e);let c=!1;const u=()=>{if(!c){const{bookmarkManager:t}=e.getState();t&&(t.eventEmitter.on("change",n),t.eventEmitter.on("willSave",o),t.eventEmitter.on("didSave",r),t.eventEmitter.on("load",i),t.eventEmitter.on("create",a),t.eventEmitter.on("update",s),t.eventEmitter.on("delete",l),c=!0)}},d=e.subscribe(u);return u(),()=>{if(c){const{bookmarkManager:t}=e.getState();t.eventEmitter.off("change",n),t.eventEmitter.off("willSave",o),t.eventEmitter.off("didSave",r),t.eventEmitter.off("load",i),t.eventEmitter.off("create",a),t.eventEmitter.off("update",s),t.eventEmitter.off("delete",l),c=!1}d()}}(e);return t.getBookmarks=async function(){var t;const n=await(null===(t=e.getState().bookmarkManager)||void 0===t?void 0:t.getBookmarks());return IP(n),n.toList()},n},function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("formFieldValues.update","formFieldValues.willSave","formFieldValues.didSave","forms.willSubmit","forms.didSubmit","formFields.change","formFields.willSave","formFields.didSave","formFields.load","formFields.create","formFields.update","formFields.delete");const n=e.getState();let{formFields:o}=n;const r=()=>t.emit("formFieldValues.willSave"),i=()=>t.emit("formFieldValues.didSave"),a=e=>t.emit("formFieldValues.update",e),s=e=>t.emit("forms.willSubmit",e),l=e=>t.emit("forms.didSubmit",e),c=()=>t.emit("formFields.willSave"),u=()=>t.emit("formFields.didSave"),d=e=>t.emit("formFields.load",e),p=e=>t.emit("formFields.create",e),f=e=>t.emit("formFields.update",e),h=e=>t.emit("formFields.delete",e);let m=!1,g=!1;const v=()=>{const t=e.getState();if(!m){const{formFieldValueManager:e}=t;e&&(e.eventEmitter.on("willSave",r),e.eventEmitter.on("didSave",i),e.eventEmitter.on("update",a),e.eventEmitter.on("willSubmit",s),e.eventEmitter.on("didSubmit",l),m=!0)}if(!g){const{formFieldManager:e}=t;e&&(0,So.ix)(t)&&(e.eventEmitter.on("willSave",c),e.eventEmitter.on("didSave",u),e.eventEmitter.on("load",d),e.eventEmitter.on("create",p),e.eventEmitter.on("update",f),e.eventEmitter.on("delete",h),g=!0)}},y=e.subscribe((()=>{const n=e.getState();if((0,So.ix)(n)){const e=n.formFields;o!==e&&(o=e,t.emit("formFields.change"))}v()}));return v(),()=>{if(m){const{formFieldValueManager:t}=e.getState();t.eventEmitter.off("willSave",r),t.eventEmitter.off("didSave",i),t.eventEmitter.off("update",a),t.eventEmitter.off("willSubmit",s),t.eventEmitter.off("didSubmit",l),m=!1}if(g){const{formFieldManager:t}=e.getState();t.eventEmitter.off("willSave",c),t.eventEmitter.off("didSave",u),t.eventEmitter.off("load",d),t.eventEmitter.off("create",p),t.eventEmitter.off("update",f),t.eventEmitter.off("delete",h),g=!1}y()}}(e);return t.getFormFields=async function(){const{features:t,formFieldManager:n,formsEnabled:o}=e.getState();_P(t.includes(ge.q.FORMS),wu.DR),_P(o,wu.BZ),n instanceof MP.c&&await n.loadFormFields();const{formFields:r}=e.getState();return r.valueSeq().toList()},t.getFormFieldValues=function(){const{formFields:t,features:n,formsEnabled:o}=e.getState();return _P(n.includes(ge.q.FORMS),wu.DR),_P(o,wu.BZ),(0,nt.Qg)(t).reduce(((e,t)=>(e[t.name]=t.value instanceof i.aV?t.value.toJS():t.value,e)),{})},t.setFormFieldValues=async function(t){const{formFieldManager:n,features:o,formsEnabled:r}=e.getState();_P(o.includes(ge.q.FORMS),wu.DR),_P(r,wu.BZ),n instanceof MP.c&&await n.loadFormFields();const{formFields:a}=e.getState(),s=Object.keys(t).map((e=>{const n=a.get(e);_P(a.has(e),`Tried to set the form field value for form field \`${e}\` which does not exist.`);const o=Array.isArray(t[e])?(0,i.aV)(t[e]):t[e];return n&&(0,wu._1)(n,o),{name:e,value:o,optionIndexes:void 0}}));return new Promise((t=>{e.dispatch((0,Mo.xh)(s,t))})).then((()=>{})).catch((e=>{throw e}))},t.setOnWidgetAnnotationCreationStart=function(t){const{features:n}=e.getState();_P("function"==typeof t,"The callback must be a function."),_P(n.includes(ge.q.FORMS),wu.DR),_P(n.includes(ge.q.FORM_DESIGNER),wu.RB),e.dispatch((0,Mo.r$)(t))},n},function(e,t){t.getTextSelection=function(){var t,n,o,r;const i=e.getState(),s=i.currentTextSelection;return s?new GP({startTextLineId:s.startTextLineId,endTextLineId:s.endTextLineId,startPageIndex:s.startPageIndex,endPageIndex:s.endPageIndex,startNode:null===(t=s.textRange)||void 0===t?void 0:t.startNode,startOffset:null===(n=s.textRange)||void 0===n?void 0:n.startOffset,endNode:null===(o=s.textRange)||void 0===o?void 0:o.endNode,endOffset:null===(r=s.textRange)||void 0===r?void 0:r.endOffset,getText:async()=>(0,ga.Q)(i,s),getSelectedTextLines:async()=>((0,a.kG)(s.textRange),(0,ga.ZJ)(i,s.textRange).valueSeq().toList().flatten(!0)),getBoundingClientRect:async()=>((0,a.kG)(s.textRange),(0,ga.U2)(i,s.textRange)),getSelectedRectsPerPage:async()=>(0,VP.rf)(i)}):null};let n=e.getState();const{eventEmitter:o}=n;return o.events.push(...WP),e.subscribe((()=>{const r=e.getState();n.currentTextSelection!==r.currentTextSelection&&o.emit("textSelection.change",t.getTextSelection()),n=r}))},function(e,t){function n(){const{selectedAnnotationIds:t,annotations:n}=e.getState();if(t.size>=1){const e=t.first();(0,a.kG)(e);return n.get(e)}return null}function o(t,n){if(!t)return void e.dispatch((0,je.fz)());const o=i.aV.isList(t)?t:(0,i.aV)([t]),{annotations:r}=e.getState(),l=e.getState(),c=o.map((t=>{const n=t instanceof s.q6?t.id:t;(0,a.kG)("string"==typeof n,"annotationId must be a string"),(0,a.kG)(r.has(n),"Unknown annotationId. Either the annotation was not yet created or is not yet loaded from the annotation provider.");const o=r.get(n);return(0,a.kG)(o&&(0,J.Fp)(o),"Annotations with the `noView` or `hidden` flag set cannot be selected."),o instanceof s.x_&&!l.formDesignMode?e.dispatch((0,Qt.vy)(n)):((0,a.kG)(!(o instanceof s.x_)||l.features.includes(ge.q.FORM_DESIGNER),`Cannot select PSPDFKit.Annotations.WidgetAnnotation: ${wu.RB}`),(0,a.kG)(!(o instanceof s.x_)||(0,So.k_)(l.backend),`Cannot select PSPDFKit.Annotations.WidgetAnnotation: ${wu.Bl}`)),n}));if(1===c.size){const t=r.get(c.first());e.dispatch((0,je.J4)(c.toSet(),t instanceof s.gd||t instanceof s.Qi?n:Q.o.SELECTED))}else e.dispatch((0,je.J4)(c.toSet(),Q.o.SELECTED))}t.getSelectedAnnotation=function(){(0,a.XV)("getSelectedAnnotation","getSelectedAnnotations",!1);for(var e=arguments.length,t=new Array(e),o=0;o=1?(0,i.aV)(t.map((e=>{const t=n.get(e);return(0,a.kG)(t),t}))):null},t.setSelectedAnnotation=function(e){(0,a.XV)("setSelectedAnnotation","setSelectedAnnotations",!1),o(e,Q.o.SELECTED)},t.setSelectedAnnotations=function(e){o(e,Q.o.SELECTED)},t.groupAnnotations=function(t){if(!t||0===(null==t?void 0:t.size))return;const n=null==t?void 0:t.map((e=>e instanceof s.q6?e.id:e));e.dispatch((0,En._R)(n.toSet()))},t.getAnnotationsGroups=function(){const{annotationsGroups:t}=e.getState();return t.size>=1?t:null},t.deleteAnnotationsGroup=function(t){t&&e.dispatch((0,En.UZ)(t))},t.setEditingAnnotation=function(t,n){e.dispatch((0,je.fz)()),!0===n&&e.dispatch((0,je.Y1)()),o(t,Q.o.EDITING)};let r=n();const{eventEmitter:l}=e.getState();return l.events.push(...OP),e.subscribe((()=>{const e=n();(r&&r.id)!==(e&&e.id)?(r=e,l.emit("annotationSelection.change",e)):r=e}))},function(e,t){t.setCustomOverlayItem=function(t){FP(t instanceof f.Z,"invalid item. Expected an instance of PSPDFKit.CustomOverlayItem"),(0,f.G)(t),e.dispatch((e=>({type:te.jJ7,item:e}))(t))},t.removeCustomOverlayItem=function(t){FP("string"==typeof t,"`id` must be a string"),e.dispatch((e=>({type:te.G8_,id:e}))(t))}},function(e,t){t.setLocale=async function(t){const n=(0,wc.z5)(t);await(0,wc.sS)(n),e.dispatch((0,En.i_)(n))},Object.defineProperty(t,"locale",{enumerable:!0,configurable:!1,get:()=>e.getState().locale})},function(e,t){const n=()=>e.getState().searchState;t.search=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{backend:o,totalPages:r,searchState:{minSearchQueryLength:i}}=e.getState(),a=null!=n.startPageIndex?n.startPageIndex:0,s=null!=n.endPageIndex?n.endPageIndex:r-1,l=n.searchType||zP.S.TEXT,c=n.searchInAnnotations||!1,u="boolean"==typeof n.caseSensitive?n.caseSensitive:l!==zP.S.TEXT;return(0,Ne.k)(Object.values(zP.S).includes(l),"searchType is not valid."),l===zP.S.PRESET&&(0,Ne.k)(Object.values(KP).includes(t),"search query is not a valid search pattern."),(0,Ne.k)("number"==typeof a&&"number"==typeof s,"startPageIndex/endPageIndex must be numbers"),(0,Ne.k)("boolean"==typeof c,"searchInAnnotations should be boolean"),(0,Ne.k)(void 0===n.caseSensitive||"boolean"==typeof n.caseSensitive,"caseSensitive should be boolean"),(0,Ne.k)(s>=a,"endPageIndex must be greater than or equal to startPageIndex"),(0,Ne.k)(t.length>=i,`"${t}" - search query length (${t.length}) shorter than the minimum (${i})`),(0,Ne.k)(o),await o.search(t,a,s-a+1,u,c,l)},Object.defineProperty(t,"searchState",{enumerable:!0,configurable:!1,get:n}),t.setSearchState=function(t){let o=t;if("function"==typeof o&&(o=o.call(null,n())),!(o instanceof rl.Z)){const e="function"==typeof o?"return value of your update function":"supplied argument";throw new a.p2(`The ${e} is not an instance of PSPDFKit.SearchState.`)}const r=n();o.minSearchQueryLength!==r.minSearchQueryLength&&((0,a.ZK)(`Trying to set readonly property SearchState.minSearchQueryLength from ${r.minSearchQueryLength} to ${o.minSearchQueryLength} failed. For more details please see https://pspdfkit.com/api/web/PSPDFKit.SearchState.html#minSearchQueryLength`),o=o.set("minSearchQueryLength",r.minSearchQueryLength)),function(e){if("boolean"!=typeof e.isFocused)throw new a.p2("`isFocused` must be of type boolean.");if("boolean"!=typeof e.isLoading)throw new a.p2("`isLoading` must be of type boolean.");if("string"!=typeof e.term)throw new a.p2("`term` must be of type string.");if("number"!=typeof e.focusedResultIndex)throw new a.p2("`focusedResultIndex` must be of type number.");if(!(e.results instanceof i.aV))throw new a.p2("`results` must be of type PSPDFKit.Immutable.List.")}(o),function(e,t,n){const{dispatch:o}=e;t!==n&&o((0,Dc.j8)(n))}(e,n(),o)},t.startUISearch=function(t){const{dispatch:n,getState:o}=e,{searchProvider:r,eventEmitter:i,searchState:{minSearchQueryLength:a}}=o();let s=!1;i.emit("search.termChange",{term:t,preventDefault:()=>{s=!0}}),s||((0,Ne.k)(t.length>=a,`"${t}" - search query length (${t.length}) shorter than the minimum (${a})`),n((0,Dc.Xe)()),n((0,Dc._8)(t)),null==r||r.searchTerm(t))};let o=e.getState();const{eventEmitter:r}=o;return r.events.push(...ZP),e.subscribe((()=>{const t=e.getState();o.searchState.equals(t.searchState)||r.emit("search.stateChange",t.searchState),o=t}))},function(e,t){t.renderPageAsArrayBuffer=async function(t,n){const{element:o,width:r,height:i}=await jP(t,n,e);let a;if(o instanceof HTMLImageElement){const e=document.createElement("canvas");e.width=r,e.height=i,a=e.getContext("2d"),await(0,jr.sR)(o),a.drawImage(o,0,0,r,i)}else o instanceof HTMLCanvasElement?a=o.getContext("2d"):BP(!1,"There was an error while rendering the page. Please try again.");return a.getImageData(0,0,r,i).data.buffer},t.renderPageAsImageURL=async function(t,n){const{element:o}=await jP(t,n,e);return o instanceof HTMLImageElement?o.src:o instanceof HTMLCanvasElement?URL.createObjectURL(await(0,jr._c)(o)):void BP(!1,"There was an error while generating the image URL. Please try again.")}},function(e,t){async function n(){let{storedSignatures:t}=e.getState().signatureState;if(!t){const n=jS();await n(e.dispatch,e.getState),t=e.getState().signatureState.storedSignatures}return t||(0,i.aV)()}async function o(t){let n=e.getState().signatureState.storedSignatures;const o=n instanceof i.aV;n||(n=await e.getState().signatureState.populateStoredSignatures());let r=t;"function"==typeof r&&(r=r.call(null,n)),RP(r instanceof i.aV&&r.every((e=>e instanceof j.Zc||e instanceof j.sK)),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not a PSPDFKit.Immutable.List of PSPDFKit.Annotations.InkAnnotation or PSPDFKit.Annotations.ImageAnnotation`),o&&n.equals(r)||(e.dispatch(BS(r)),e.getState().eventEmitter.emit("inkSignatures.update",r),e.getState().eventEmitter.emit("inkSignatures.change"),e.getState().eventEmitter.emit("storedSignatures.update",r),e.getState().eventEmitter.emit("storedSignatures.change"))}e.getState().eventEmitter.events.push(...NP,...LP),t.getInkSignatures=async function(){return(0,_.XV)("instance.getInkSignatures","instance.getStoredSignatures"),n()},t.getStoredSignatures=n,t.setInkSignatures=async function(e){return(0,_.XV)("instance.setInkSignatures","instance.setStoredSignatures"),o(e)},t.setStoredSignatures=o},function(e,t){e.getState().eventEmitter.events.push(...vu),t.applyOperations=function(t){const{features:n}=e.getState();return(0,a.kG)(n.includes(ge.q.DOCUMENT_EDITING),gu),hu(t),new Promise(((n,o)=>{e.dispatch((0,mu.b_)(t,n,o))}))},t.exportPDFWithOperations=async function(t){const{features:n,backend:o}=e.getState();return(0,a.kG)(n.includes(ge.q.DOCUMENT_EDITING),gu),hu(t),(0,a.kG)(o),o.exportPDFWithOperations(t.map(vc.kg))}},function(e,t){t.setIsEditableComment=function(t){(0,a.kG)("function"==typeof t,"The type for isEditableComment is not valid. Must be `function`."),e.dispatch((0,En.Gh)(t))}},function(e,t){t.getSignaturesInfo=function(){const{features:t,backend:n}=e.getState();return(0,a.kG)(t.includes(ge.q.DIGITAL_SIGNATURES),bu),(0,a.kG)(n),n.getSignaturesInfo().then((t=>(e.dispatch((0,yu.Y)(t)),t)))},t.signDocument=function(t,n){const{features:o,backend:r}=e.getState();var i;((0,a.kG)(o.includes(ge.q.DIGITAL_SIGNATURES),bu),t&&(0,Mr.w2)(t,r),"STANDALONE"===(null==r?void 0:r.type))?null!=t&&t.signingData?(0,a.kG)(void 0===n||void 0===(null==t||null===(i=t.signingData)||void 0===i?void 0:i.privateKey),"On a Standalone deployment, when `signaturePreparationData.signingData.privateKey` is set, `twoStepSignatureCallbackOrSigningServiceData` should not be provided."):(0,a.kG)("function"==typeof n,"On a Standalone deployment, when `signaturePreparationData.signingData` is not provided or does not include a `privateKey`, `twoStepSignatureCallbackOrSigningServiceData` must be a function."):"SERVER"===(null==r?void 0:r.type)&&(0,a.kG)(!n||"object"==typeof n,"On a Server deployment, `twoStepSignatureCallbackOrSigningServiceData` must be a `PSPDFKit.SigningServiceData` object if specified.");return e.dispatch((0,En.d9)()),new Promise(((o,r)=>{e.dispatch((0,yu.e)(t,n,(()=>{e.dispatch((0,En.t6)()),o()}),(t=>{e.dispatch((0,En.t6)()),r(t)})))}))}},function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("comments.change","comments.willSave","comments.didSave","comments.load","comments.create","comments.update","comments.delete","comments.mention");const n=()=>t.emit("comments.change"),o=()=>t.emit("comments.willSave"),r=()=>t.emit("comments.didSave"),i=e=>t.emit("comments.load",e),a=e=>t.emit("comments.create",e),s=e=>t.emit("comments.update",e),l=e=>t.emit("comments.delete",e);let c=!1;const u=()=>{if(!c){const{commentManager:t}=e.getState();t&&(t.eventEmitter.on("change",n),t.eventEmitter.on("willSave",o),t.eventEmitter.on("didSave",r),t.eventEmitter.on("load",i),t.eventEmitter.on("create",a),t.eventEmitter.on("update",s),t.eventEmitter.on("delete",l),c=!0)}},d=e.subscribe(u);return u(),()=>{if(c){const{commentManager:t}=e.getState();t&&(t.eventEmitter.off("change",n),t.eventEmitter.off("willSave",o),t.eventEmitter.off("didSave",r),t.eventEmitter.off("load",i),t.eventEmitter.off("create",a),t.eventEmitter.off("update",s),t.eventEmitter.off("delete",l)),c=!1}d()}}(e);return t.getComments=async function(){const{comments:t,backend:n}=e.getState(),o=t.filter((e=>!(0,Ml.kT)(e))).toList();return o.size||null==n||!n.isUsingInstantProvider()?o:new Promise((t=>{const n=setInterval((()=>{const{hasFetchedInitialRecordsFromInstant:o,comments:r}=e.getState();o&&(clearInterval(n),t(r.filter((e=>!(0,Ml.kT)(e))).toList()))}),500)}))},t.setMentionableUsers=function(t){e.dispatch((0,bi.v7)(t))},t.setMaxMentionSuggestions=function(t){e.dispatch((0,bi.aZ)(t))},t.setOnCommentCreationStart=function(t){(0,a.kG)("function"==typeof t,"The callback must be a function."),e.dispatch((0,bi.Rf)(t))},n},YP.Z,function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("document.saveStateChange");const n=e=>{t.emit("document.saveStateChange",e)};let o=!1;const r=()=>{if(!o){const{changeManager:t}=e.getState();t&&(t.eventEmitter.on("saveStateChange",n),o=!0)}},i=e.subscribe((()=>{r()}));return r(),()=>{if(o){const{changeManager:t}=e.getState();(0,a.kG)(t),t.eventEmitter.off("saveStateChange",n),o=!1}i()}}(e);return t.save=async function(){const{changeManager:t}=e.getState();return(0,a.kG)(t),t.save(!0)},t.hasUnsavedChanges=function(){const{changeManager:t}=e.getState();return(0,a.kG)(t),t.hasUnsavedChanges()},t.syncChanges=async function(){const{backend:n}=e.getState();if((0,a.kG)(n),!n.isUsingInstantProvider())throw new a.p2("You need PSPDFKit Instant to use this method.");return t.save()},t.create=async function(t){const{changeManager:n,backend:o}=e.getState();return(0,a.kG)(n&&o),JP(o,(()=>n.create(XP(t))))},t.update=async function(t){const{changeManager:n,backend:o}=e.getState();return(0,a.kG)(n&&o),JP(o,(()=>n.update(XP(t))))},t.delete=async function(t){const{changeManager:n,backend:o}=e.getState();return(0,a.kG)(n&&o),JP(o,(()=>n.delete(XP(t))))},t.ensureChangesSaved=async function(t){const{changeManager:n,backend:o}=e.getState();return(0,a.kG)(n&&o),"STANDALONE"===(null==o?void 0:o.type)&&await(null==o?void 0:o.setFormJSONUpdateBatchMode(!1)),n.ensureChangesSaved(XP(t))},n},YP.Z,function(e,t){t.setGroup=function(t){const{backend:n}=e.getState();null!=n&&n.isCollaborationPermissionsEnabled()?e.dispatch((0,En.YK)(t)):(0,a.ZK)("`instance.setGroup` is no-op if Collaboration Permissions is not enabled.")},t.resetGroup=function(){const{backend:t}=e.getState();null!=t&&t.isCollaborationPermissionsEnabled()?e.dispatch((0,En.YK)(t.getDefaultGroup())):(0,a.ZK)("`instance.setGroup` is no-op if Collaboration Permissions is not enabled.")}},function(e,t){const n=()=>e.getState().documentEditorFooterItems,o=()=>e.getState().documentEditorToolbarItems;Object.defineProperty(t,"documentEditorFooterItems",{enumerable:!0,configurable:!1,get:()=>n().toJS()}),Object.defineProperty(t,"documentEditorToolbarItems",{enumerable:!0,configurable:!1,get:()=>o().toJS()}),t.setDocumentEditorFooterItems=function(t){const{features:o}=e.getState();(0,Ne.k)(o.includes(ge.q.DOCUMENT_EDITING),gu);let r=t;"function"==typeof r&&(r=r(n().toJS())),ex(Array.isArray(r),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an array.`),r.forEach(Kc);const a=(0,i.d0)(r);var s;n().equals(a)||e.dispatch((s=a,{type:te.Kpf,documentEditorFooterItems:s}))},t.setDocumentEditorToolbarItems=function(t){const{features:n}=e.getState();(0,Ne.k)(n.includes(ge.q.DOCUMENT_EDITING),gu);let r=t;"function"==typeof r&&(r=r(o().toJS())),ex(Array.isArray(r),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an array.`),r.forEach(Hc);const a=(0,i.d0)(r);var s;o().equals(a)||e.dispatch((s=a,{type:te.wPI,documentEditorToolbarItems:s}))}},function(e,t){function n(){const{isHistoryEnabled:t,undoActions:n}=e.getState();return t&&n.size>0}function o(){const{isHistoryEnabled:t,redoActions:n}=e.getState();return t&&n.size>0}e.getState().eventEmitter.events.push(...QP),t.history={},t.history.undo=async function(){return!!n()&&(e.dispatch((0,gv.Yw)()),!0)},t.history.redo=async function(){return!!o()&&(e.dispatch((0,gv.KX)()),!0)},t.history.canUndo=function(){return n()},t.history.canRedo=function(){return o()},t.history.clear=function(){e.dispatch((0,gv.QQ)())},t.history.enable=function(){e.dispatch((0,gv.z9)())},t.history.disable=function(){e.dispatch((0,gv.ou)())}},function(e,t){t.parseXFDF=async t=>{const{backend:n}=e.getState();return(0,a.kG)(n,"backend is null."),(0,a.kG)("STANDALONE"===n.type,"`instance.parseXFDF` only works in standalone mode."),n.parseXFDF(t)}},function(e,t){e.getState().eventEmitter.events.push(...tx),t.setDocumentComparisonMode=async function(t){const{features:n,backend:o,viewportState:{documentComparisonMode:r}}=e.getState();if((0,a.kG)(n.includes(ge.q.DOCUMENT_COMPARISON),XS.nN),(0,a.kG)("STANDALONE"===(null==o?void 0:o.type),XS.bZ),function(e){if("object"!=typeof e)throw new a.p2("`PSPDFKit.DocumentComparisonConfiguration` must be a `PSPDFKit.DocumentComparisonConfiguration` plain object, or `null`.");if(null===e)return;if("boolean"!=typeof e.autoCompare)throw new a.p2("`PSPDFKit.DocumentComparisonConfiguration.autoCompare` must be a boolean value.");if("object"!=typeof e.documentA||null===e.documentA)throw new a.p2("`PSPDFKit.DocumentComparisonConfiguration.documentA` must be a plain object.");if("object"!=typeof e.documentB||null===e.documentB)throw new a.p2("`PSPDFKit.DocumentComparisonConfiguration.documentB` must be a plain object.");if(!("string"==typeof e.documentA.source||e.documentA.source instanceof ArrayBuffer||e.documentA.source instanceof Promise))throw new a.p2("`PSPDFKit.DocumentComparisonConfiguration.documentA#source` must be a string, an ArrayBuffer or a Promise object resolving to a string or an ArrayBuffer.");if(!("string"==typeof e.documentB.source||e.documentB.source instanceof ArrayBuffer||e.documentB.source instanceof Promise))throw new a.p2("`PSPDFKit.DocumentComparisonConfiguration.documentB#source` must be a string, an ArrayBuffer or a Promise object resolving to a string or an ArrayBuffer.");if(void 0!==e.documentA.pageIndex&&"number"!=typeof e.documentA.pageIndex)throw new a.p2("If provided, `PSPDFKit.DocumentComparisonConfiguration.documentA#pageIndex` must be a number.");if(void 0!==e.documentB.pageIndex&&"number"!=typeof e.documentB.pageIndex)throw new a.p2("If provided, `PSPDFKit.DocumentComparisonConfiguration.documentB#pageIndex` must be a number.");if(void 0!==e.blendMode&&!Object.values(lp).includes(e.blendMode))throw new a.p2("If provided, `PSPDFKit.DocumentComparisonConfiguration.blendMode` must be a `PSPDFKit.BlendMode`.");if(void 0!==e.strokeColors&&("object"!=typeof e.strokeColors||null===e.strokeColors))throw new a.p2("If provided, `PSPDFKit.DocumentComparisonConfiguration.strokeColors` must be a plain object.");if("object"==typeof e.strokeColors){if(void 0!==e.strokeColors.documentA&&!(e.strokeColors.documentA instanceof j.Il))throw new a.p2("If provided, `PSPDFKit.DocumentComparisonConfiguration.strokeColors#documentA` must be a `PSPDFKit.Color` value.");if(void 0!==e.strokeColors.documentB&&!(e.strokeColors.documentB instanceof j.Il))throw new a.p2("If provided, `PSPDFKit.DocumentComparisonConfiguration.strokeColors#documentB` must be a `PSPDFKit.Color` value.");e.strokeColors.documentA&&e.strokeColors.documentB&&e.strokeColors.documentA.equals(e.strokeColors.documentB)&&(0,a.ZK)("The values provided for `PSPDFKit.DocumentComparisonConfiguration.strokeColors#documentA` and `PSPDFKit.DocumentComparisonConfiguration.strokeColors#documentB` are identical.")}}(t),t)e.dispatch((0,En.cz)(t));else if(r){const{completion:{end:{promise:t}}}=r;return e.dispatch((0,En.cz)(null)),t}}}],lx="You need PSPDFKit Instant to use this method.",cx="You need to enable clients presence in your configuration (`instant: { clientsPresenceEnabled: true }`) to use this method.";class ux{constructor(e){let{store:t,backend:n,eventEmitter:o}=e;o.events.push(...ax);let r=!1;const s=sx.map((e=>e(t,this)));let l=(0,i.D5)();t.dispatch((0,En.lW)((e=>{r||(l=e.map((e=>(0,m.B)(e))),o.emit("instant.connectedClients.change",l))}))),Object.defineProperty(this,"totalPageCount",{enumerable:!0,configurable:!1,get:()=>t.getState().totalPages}),this.pageInfoForIndex=function(e){const n=t.getState().pages.get(e);return n?(0,g.J)(n):null},this.textLinesForPageIndex=async function(e){const{promise:t}=n.textForPageIndex(e);return t},this.toggleClipboardActions=function(e){ix("boolean"==typeof e,"`toggleClipboardActions` expects a boolean as an argument"),t.dispatch((0,En.UG)(e))},this.setMeasurementSnapping=function(e){ix("boolean"==typeof e,"`setMeasurementSnapping` expects a boolean as an argument"),t.dispatch((0,En.Gc)(e))},this.setMeasurementPrecision=function(e){ix("string"==typeof e,"`setMeasurementPrecision` expects a string as an argument"),t.dispatch((0,En.M4)(e))},this.setMeasurementScale=function(e){ix(e instanceof As.Z,"`setMeasurementScale` expects an instance of `MeasurementScale` as an argument"),t.dispatch((0,En._b)(e))},this.setMeasurementValueConfiguration=e=>{ix("function"==typeof e,"The `measurementValueConfigurationCallback` argument must be a function."),t.dispatch((0,En.QL)(e))},this.getMarkupAnnotationText=async function(e){return ix(e instanceof _g.Z,"annotation must be a PSPDFKit.Annotations.MarkupAnnotation"),n.getTextFromRects(e.pageIndex,e.rects)},this.getTextFromRects=async function(e,t){return ix("number"==typeof e,"pageIndex must be a number"),ix(t instanceof i.aV&&t.every((e=>e instanceof B.UL)),"rects must be a PSPDFKit.Immutable.List of PSPDFKit.Geometry.Rect"),n.getTextFromRects(e,t)},Object.defineProperty(this,"currentZoomLevel",{enumerable:!0,configurable:!1,get:()=>t.getState().viewportState.zoomLevel}),Object.defineProperty(this,"maximumZoomLevel",{enumerable:!0,configurable:!1,get(){const{viewportState:e}=t.getState();return(0,Ys.Sm)(e)}}),Object.defineProperty(this,"minimumZoomLevel",{enumerable:!0,configurable:!1,get(){const{viewportState:e}=t.getState();return(0,Ys.Yo)(e)}}),Object.defineProperty(this,"zoomStep",{enumerable:!0,configurable:!1,get(){const{viewportState:e}=t.getState();return e.zoomStep}}),Object.defineProperty(this,"connectedClients",{enumerable:!0,configurable:!1,get:()=>n.isUsingInstantProvider()?n.hasClientsPresence()?l:((0,a.ZK)(cx),(0,i.D5)()):((0,a.ZK)(lx),(0,i.D5)())}),this.addEventListener=function(e,t){ix("instant.connectedClients.change"!==e||n.isUsingInstantProvider(),lx),ix("instant.connectedClients.change"!==e||n.hasClientsPresence(),cx),ix(!e.startsWith("comments.")||(0,So.xr)(n),lx);const r=dx(e);try{o.on(r,t)}catch(e){throw new a.p2(e)}},this.removeEventListener=function(e,t){ix("instant.connectedClients.change"!==e||n.isUsingInstantProvider(),lx),ix("instant.connectedClients.change"!==e||n.hasClientsPresence(),cx);const r=dx(e);try{o.off(r,t)}catch(e){throw new a.p2(e)}},this.jumpToRect=function(e,n){const{totalPages:o}=t.getState();ix(e>=0&&e=0&&e=0&&n=0&&n=0&&n=0&&n0&&void 0!==arguments[0]?arguments[0]:{};return n.exportPDF(e)},this.exportXFDF=async function(){return n.exportXFDF()},this.exportInstantJSON=async function(e){return n.exportInstantJSON(e)},this._destroy=function(){s.filter(Boolean).forEach((e=>{null==e||e()})),r=!0},this.print=function(e){const n=t.getState(),{isPrinting:o}=n,r=(0,So.VT)(n);e&&"object"!=typeof e&&(0,a.ZK)("PSPDFKit.Instance.print: options must be an object. If you want to pass the `printMode`, use `{ mode: PSPDFKit.PrintMode.DOM }` instead.");const i="object"==typeof e?e.mode:e;if(!r)throw new a.p2("Tried to start a print job while printing is disabled.");if(o)throw new a.p2("Tried to start a print job while another one was already being processed.\nUse PSPDFKit.Instance#abortPrint to terminate the current print job.\n ");if(i&&!Object.prototype.hasOwnProperty.call(Pc.X,i))throw new a.p2("The supplied printMode is not valid.\nValid `printMode`s are: PSPDFKit.PrintMode.DOM, PSPDFKit.PrintMode.EXPORT_PDF");t.dispatch(mv.S0({mode:i,excludeAnnotations:"object"==typeof e&&e.excludeAnnotations}))},this.setAnnotationCreatorName=function(e){const{annotationCreatorNameReadOnly:n}=t.getState();if(n)throw new a.p2("When the annotation creator name is defined on the JWT it can't be overriden.");t.dispatch((0,En.X8)(e))},this.setCustomRenderers=function(e){t.dispatch((0,En.jM)(e))},this.setCustomUIConfiguration=function(e){const{customUIStore:n}=t.getState();if((null==n?void 0:n.getState())===e)return;let o,r;o="function"==typeof e?e((null==n?void 0:n.getState())||null):e,ox(o),n||(r=new M.Z(o),t.dispatch((0,En.W)(r))),(n||r).setState(o)},this.setInlineTextSelectionToolbarItems=e=>{ix("function"==typeof e,"The inlineTextSelectionToolbarItemsCallback argument must be a function."),t.dispatch((0,je.tu)(e))},this.abortPrint=function(){const e=t.getState(),{isPrinting:n}=e;if(!(0,So.VT)(e))throw new a.p2("Tried to terminate a print job while printing is disabled.");if(!n)throw new a.p2("No print job to abort found.");t.dispatch(mv.xF())},this.getDocumentOutline=async function(){const e=t.getState();if(e.documentOutlineState.elements)return e.documentOutlineState.elements;ix(e.backend);const n=await e.backend.getDocumentOutline();return t.dispatch((0,ev.o)(n)),n},this.getPageGlyphs=async function(e){const n=t.getState();return ix(n.backend),ix("number"==typeof e&&Number.isInteger(e)&&e>=0&&et.getState().frameWindow}),Object.defineProperty(this,"contentDocument",{enumerable:!0,configurable:!1,get(){var e;return null===(e=t.getState().frameWindow)||void 0===e?void 0:e.document}}),Object.defineProperty(this,"licenseFeatures",{enumerable:!0,configurable:!1,get:()=>t.getState().features}),"production"!==(0,P.zj)()&&(this._store=t,this._eventEmitter=o)}}function dx(e){switch(e){case"annotations.onPress":case"textLine.onPress":case"page.onPress":{const t=e.replace(".onPress",".press");return(0,a.a1)(`The event ${e} was renamed and will be removed in a a future version. Please use ${t} instead.`),t}default:return e}}var px=n(57742);const fx=(0,A.$j)((function(e){return{locale:e.locale,messages:px.ZP[e.locale]}}))(Re.Pj),hx=["Annotation","CommentAvatar"];const mx={LIGHT:"LIGHT",DARK:"DARK",AUTO:"AUTO"};var gx=n(53678),vx=n(151);const yx=new p.Z({r:70,g:54,b:227}),bx={color:p.Z.BLUE,localization:{id:"blue",defaultMessage:"Blue",description:"Blue color"}},wx=[{color:p.Z.BLACK,localization:{id:"black",defaultMessage:"Black",description:"Black color"}},bx,{color:yx,localization:{id:"darkBlue",defaultMessage:"Dark blue",description:"Dark blue color"}}];var Sx,Ex=n(60619),Px=(n(37940),n(37024),n(5038)),xx=n(63632),Dx=n(28028);function Cx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function kx(e){for(var t=1;t\nbody, html, .${Je.re} {\n margin: 0;\n padding: 0;\n overflow: hidden;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n}\n`,Mx=["baseUrl","baseCoreUrl","licenseKey","disableWebAssemblyStreaming","enableAutomaticLinkExtraction","overrideMemoryLimit","customFonts","isSharePoint","isSalesforce","productId"];let _x=null,Rx=null,Nx=null;function Lx(e){n.p=e}function Bx(e){var t;return e.baseUrl?e.baseUrl:"authPayload"in e&&"object"==typeof e.authPayload&&"string"==typeof(null===(t=e.authPayload)||void 0===t?void 0:t.accessToken)?"https://cdn.cloud.pspdfkit.com/pspdfkit-web@2023.4.0/":(0,P.SV)(window.document)}function jx(e){return e.baseCoreUrl?e.baseCoreUrl:Bx(e)}function zx(e,t){if(e[t]&&"boolean"!=typeof e[t])throw new a.p2(`The type for ${t} is not valid. Must be \`true\` or \`false\`.`)}function Kx(e,t){if(e[t]&&"function"!=typeof e[t])throw new a.p2(`The type for ${t} is not valid. Must be \`function\`.`)}function Zx(e){const t="string"==typeof e.container?document.querySelector(e.container):e.container;if(!(t instanceof HTMLElement))throw new a.p2("`Configuration#container` must either be a valid element or a CSS selector");return t}function Ux(e,t){const n=Ax.current.get(e);function o(){t(),null==n||n()}return(0,a.kG)(n),Ax.current=Ax.current.set(e,o),o}function Vx(e,t,n){const o=Array.prototype.slice.call(n.querySelectorAll('link[rel="stylesheet"]')).filter((e=>!e.dataset.loaded)).map((function(e){let t,n;e.dataset.loaded="true";const o=new Promise((function(e,o){t=e,n=o}));return e.onload=function(){t()},e.onerror=function(){const o=e.href+" could not be loaded. Make sure that the file is accessible from your webserver.";e.dataset.pspdfkit?n(new a.p2(o)):((0,a.vU)(o),t())},o}));Promise.all(o).then(e,t)}var Gx=n(9946),Wx=n(37231);var qx=n(46791),Hx=n(71652),$x=n(54097),Yx=n(45395),Xx=n(4132);const Jx=["color"];function Qx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function eD(e){for(var t=1;t(0,vc.vH)(null,e),rotate:(e,t,n)=>{const o=(0,ot.h4)(e,n);return(0,ot.az)(o.set("rotation",t))}},AnnotationPresets:{toSerializableObject:vc.xT,fromSerializableObject:vc.MR},Comment:b.ZP,Bookmark:d.Z,CustomOverlayItem:f.Z,FormFields:{FormField:l.Wi,ButtonFormField:l.R0,CheckBoxFormField:l.rF,ChoiceFormField:l.Dz,ComboBoxFormField:l.fB,ListBoxFormField:l.Vi,RadioButtonFormField:l.XQ,TextFormField:l.$o,SignatureFormField:l.Yo,toSerializableObject:vc.vD,fromSerializableObject:e=>(0,vc.IN)(String(e.pdfObjectId),e)},FormFieldValue:l.KD,FormOption:h.Z,Color:p.Z,Instance:ux,preloadWorker:nD,load:async function(e){tt.fq&&new a.p2("Starting 2022.5.0, we no longer support Internet Explorer 11."),tt.rO&&new a.p2("Starting 2023.2.0, we no longer support Microsoft Edge 18."),"disableWebAssembly"in e&&e.disableWebAssembly&&(0,a.a1)("The 'disableWebAssembly' option is deprecated. It will be removed in a future release as we are removing support for ASM.js.");const t={current:!0};let o=null;if(!0!==e.headless){o=Zx(e),(0,a.kG)(!Ax.current.has(o),"Configuration#container is already used to mount a PSPDFKit for Web instance. \n\nEither use PSPDFKit.unload(container) before loading again or use a different container.");const n=o;Ax.current=Ax.current.set(o,(function(){t.current=!1,Ax.current=Ax.current.delete(n)}))}try{var r,s,l,c,u;if(_x instanceof Promise)try{await _x}catch(t){if(Rx&&0===(0,a.$O)(e,Rx).length)throw t;Rx=null}else _x=Promise.resolve();let o;const p=Bx(e);if(Lx(p),!t.current)return Tx;if("document"in e&&e.document){if(null!=Rx){const t=(0,a.$O)(Rx,e,{keys:Mx});(0,a.kG)(0===t.length,"The configuration object passed to PSPDFKit is different from the one given previously\n"+(0,a.GB)(t))}Rx=e;{var d;Nx||(Nx=await Promise.all([n.e(1620),n.e(3610)]).then(n.bind(n,49136)));const t=null===(d=Nx)||void 0===d?void 0:d.default;o=new t(kx(kx({},e),{},{baseCoreUrl:jx(e)}))}e.autoSaveMode||(e.autoSaveMode=S.u.IMMEDIATE),(e.appName&&(0,L.d)()||e.electronAppName)&&(e.electronAppName&&((0,a.ZK)("The `Configuration.electronAppName` option is deprecated and will be removed in a future version. Please use `appName` instead."),(0,a.kG)((0,L.d)(),"`electronAppName` should only be set when using Electron.")),(0,Dx.t0)(e.appName||e.electronAppName,e.productId))}if("documentId"in e&&e.documentId||"authPayload"in e&&"object"==typeof e.authPayload&&"string"==typeof(null===(r=e.authPayload)||void 0===r?void 0:r.accessToken)){const t=(await Promise.all([n.e(1620),n.e(6377)]).then(n.bind(n,16288))).default;o=new t(e),e.autoSaveMode||(e.autoSaveMode=e.instant?S.u.IMMEDIATE:S.u.INTELLIGENT)}if(!t.current)return o&&o.destroy(),Tx;if(!o)throw new a.p2("Backend could not be inferred. Please add one of the following properties to the configuration:\n - `document` to load document and render the document client-side.\n - `documentId` to connect to PSPDFKit Server and render the document server-side.\n");if(e.autoSaveMode&&e.autoSaveMode!==S.u.INTELLIGENT&&e.autoSaveMode!==S.u.IMMEDIATE&&e.autoSaveMode!==S.u.DISABLED)throw new a.p2("The supplied autoSaveMode is not valid.\nValid `autoSaveMode`s are: PSPDFKit.AutoSaveMode.INTELLIGENT, PSPDFKit.AutoSaveMode.IMMEDIATE or PSPDFKit.AutoSaveMode.DISABLED");if(e.printOptions||(e.printOptions={}),e.printOptions&&e.printOptions.mode&&!Object.prototype.hasOwnProperty.call(Pc.X,e.printOptions.mode))throw new a.p2("The supplied mode in printOptions is not valid.\nValid `printMode`s are: PSPDFKit.PrintMode.DOM, PSPDFKit.PrintMode.EXPORT_PDF");if(e.printOptions&&e.printOptions.quality&&!Object.prototype.hasOwnProperty.call(xc.g,e.printOptions.quality))throw new a.p2("The supplied quality in printOptions is not valid.\nValid `printOptions.quality`s are: PSPDFKit.PrintQuality.LOW, PSPDFKit.PrintQuality.MEDIUM, PSPDFKit.PrintQuality.HIGH");if(e.printMode&&(0,a.ZK)("Configuration.printMode has been deprecated and will be removed in the next major version. Please refer to the migration guide in order to keep the desired behavior."),e.printMode&&!e.printOptions.mode){if(!Object.prototype.hasOwnProperty.call(Pc.X,e.printMode))throw new a.p2("The supplied printMode is not valid.\nValid `printMode`s are: PSPDFKit.PrintMode.DOM, PSPDFKit.PrintMode.EXPORT_PDF");e.printOptions.mode=e.printMode}if("disableHighQualityPrinting"in e&&((0,a.ZK)("Configuration.disableHighQualityPrinting has been deprecated and will be removed in the next major version. Please refer to the migration guide in order to keep the desired behavior."),zx(e,"disableHighQualityPrinting"),e.disableHighQualityPrinting&&"boolean"==typeof e.disableHighQualityPrinting&&!e.printOptions.quality&&("STANDALONE"!==o.type||"ios"!==tt.By&&"android"!==tt.By?e.printOptions.quality=e.disableHighQualityPrinting?xc.g.MEDIUM:xc.g.HIGH:e.printOptions.quality=xc.g.MEDIUM)),e.electronicSignatures){if(e.electronicSignatures.creationModes){if(!Array.isArray(e.electronicSignatures.creationModes)||!e.electronicSignatures.creationModes.length)throw new a.p2("PSPDFKit.Configuration.electronicSignatures#creationModes must be a non-empty array if specified.");if(e.electronicSignatures.creationModes.some((e=>!Object.keys(eS.M).includes(e))))throw new a.p2("PSPDFKit.Configuration.electronicSignatures#creationModes only accepts PSPDFKit.ElectronicSignatureCreationMode values.")}if(e.electronicSignatures.fonts){if(!Array.isArray(e.electronicSignatures.fonts)||!e.electronicSignatures.fonts.length)throw new a.p2("PSPDFKit.Configuration.electronicSignatures#fonts must be a non-empty array if specified.");if(e.electronicSignatures.fonts.some((e=>!(e instanceof w.Z))))throw new a.p2("PSPDFKit.Configuration.electronicSignatures#fonts only accepts PSPDFKit.Font values.")}if(e.electronicSignatures.forceLegacySignaturesFeature&&"boolean"!=typeof e.electronicSignatures.forceLegacySignaturesFeature)throw new a.p2("PSPDFKit.Configuration.electronicSignatures#forceLegacySignaturesFeature only accepts boolean values.")}let f;zx(e,"disableForms"),Kx(e,"annotationTooltipCallback"),zx(e,"disableTextSelection"),zx(e,"preventTextCopy"),Kx(e,"renderPageCallback"),function(e,t){if(e[t]){if(!Array.isArray(e[t]))throw new a.p2(`${t} must be an array of annotation types.`);if(!e[t].every((e=>e&&e.prototype&&(e.prototype instanceof Ou.Z||e==Ou.Z))))throw new a.p2(`${t} must be an array of annotation types.`)}}(e,"editableAnnotationTypes"),Kx(e,"isEditableAnnotation"),Kx(e,"isEditableComment"),Kx(e,"dateTimeString"),Kx(e,"annotationToolbarColorPresets"),Kx(e,"annotationToolbarItems"),Kx(e,"onWidgetAnnotationCreationStart"),Kx(e,"inlineTextSelectionToolbarItems"),Kx(e,"onCommentCreationStart"),Kx(e,"measurementValueConfiguration"),"mentionableUsers"in e&&((0,a.kG)(Array.isArray(e.mentionableUsers),"mentionableUsers must be an array"),e.mentionableUsers.forEach(b.vQ)),(0,a.um)(`PSPDFKit for ${(0,L.d)()?"Electron":"Web"} 2023.4.0 (https://pspdfkit.com/web)`);try{f=(0,wc.z5)(e.locale||navigator.language)}catch(e){f="en"}if(e.populateInkSignatures&&"function"!=typeof e.populateInkSignatures)throw new a.p2("populateInkSignatures must be a function.");if(e.populateStoredSignatures&&"function"!=typeof e.populateStoredSignatures)throw new a.p2("populateStoredSignatures must be a function.");if(null!=e.maxPasswordRetries&&"number"!=typeof e.maxPasswordRetries)throw new a.p2("maxPasswordRetries must be a number.");if(e.formFieldsNotSavingSignatures&&(!Array.isArray(e.formFieldsNotSavingSignatures)||e.formFieldsNotSavingSignatures.some((e=>"string"!=typeof e))))throw new a.p2("formFieldsNotSavingSignatures must be an array of strings.");let h,m,g,v=new y.Z;e.disableOpenParameters||(v=Pu(v)),e.initialViewState&&(v=e.initialViewState,v=Au(v,null)),e.customRenderers&&(h=function(e){for(const t in e)e.hasOwnProperty(t)&&((0,a.kG)(hx.includes(t),`'${t}' is not a custom renderable entity. Custom renderable entities are: ${hx.join(", ")}`),(0,a.kG)("function"==typeof e[t],`'${t}' custom renderer must be a function.`));return e}(e.customRenderers)),e.customUI&&(m=ox(e.customUI)),(0,a.kG)("number"==typeof mt.Ei.DEFAULT_INK_ERASER_CURSOR_WIDTH&&mt.Ei.DEFAULT_INK_ERASER_CURSOR_WIDTH>=0,"PSPDFKit.Options.DEFAULT_INK_ERASER_CURSOR_WIDTH must be set to a positive number."),(0,a.kG)(!e.isAPStreamRendered||"function"==typeof e.isAPStreamRendered,"When provided, `configuration.isAPStreamRendered` must be a function."),(0,a.kG)(!e.enableRichText||"function"==typeof e.enableRichText,"When provided, `configuration.enableRichText` must be a function."),(0,a.kG)("boolean"==typeof e.enableHistory||void 0===e.enableHistory,"When provided, `configuration.enableHistory` must be a boolean value."),(0,a.kG)("boolean"==typeof e.enableClipboardActions||void 0===e.enableClipboardActions,"When provided, `configuration.enableClipboardOperations` must be a boolean value."),e.unstable_inkEraserMode&&((0,a.kG)(Object.keys(D.b).includes(e.unstable_inkEraserMode),"`unstable_inkEraserMode` must be one of: `PSPDFKit.unstable_InkEraserMode.POINT` or `PSPDFKit.unstable_InkEraserMode.STROKE`"),g=e.unstable_inkEraserMode),(0,a.kG)("boolean"==typeof e.measurementSnapping||void 0===e.measurementSnapping,"When provided, `configuration.measurementSnapping` must be a boolean value."),(0,a.kG)("string"==typeof e.measurementPrecision||void 0===e.measurementPrecision,"When provided, `configuration.measurementPrecision` must be a string."),(0,a.kG)(e.measurementScale instanceof As.Z||void 0===e.measurementScale,"When provided, `configuration.measurementScale` must be an instance of `MeasurementScale`."),(0,a.kG)("boolean"==typeof e.anonymousComments||void 0===e.anonymousComments||!0===e.anonymousComments&&"STANDALONE"!==o.type,"When provided, `configuration.anonymousComments` must be used only with PSPDFKit Server and be a boolean value."),(0,a.kG)("boolean"==typeof e.disableMultiSelection||void 0===e.disableMultiSelection,"When provided, `configuration.disableMultiSelection` must be a boolean value."),(0,a.kG)("number"==typeof e.autoCloseThreshold||void 0===e.autoCloseThreshold,"When provided, `configuration.autoCloseThreshold` must be a number.");const E=kx(kx({backend:o,autoSaveMode:e.autoSaveMode,printMode:null===(s=e.printOptions)||void 0===s?void 0:s.mode,printQuality:null===(l=e.printOptions)||void 0===l?void 0:l.quality,showComments:!!v.showComments,showAnnotationNotes:!!v.showAnnotationNotes,printingEnabled:v.allowPrinting,exportEnabled:v.allowExport,readOnlyEnabled:v.readOnly?ve.J.VIA_VIEW_STATE:ve.J.NO,formsEnabled:!e.disableForms,formDesignMode:!e.disableForms&&v.formDesignMode,showAnnotations:v.showAnnotations,eventEmitter:new kP.Z,locale:f,clientPermissions:new j.uh({extract:!e.disableTextSelection,preventTextCopy:!!e.preventTextCopy,printHighQuality:(null===(c=e.printOptions)||void 0===c?void 0:c.quality)===xc.g.HIGH}),signatureState:new j.dp({populateStoredSignatures:e.populateStoredSignatures||e.populateInkSignatures,formFieldsNotSavingSignatures:(0,i.l4)(e.formFieldsNotSavingSignatures||[])}),renderPageCallback:e.renderPageCallback,annotationTooltipCallback:e.annotationTooltipCallback?t=>{var n;const o=null===(n=e.annotationTooltipCallback)||void 0===n?void 0:n.call(e,t);return null==o||o.forEach((e=>{(0,Fc.G)(e)})),o}:null,sidebarMode:v.sidebarMode,sidebarOptions:v.sidebarOptions,sidebarPlacement:v.sidebarPlacement,isEditableAnnotation:e.isEditableAnnotation,isEditableComment:e.isEditableComment,customRenderers:h},m?{customUIStore:new M.Z(m)}:null),{},{toolbarPlacement:e.toolbarPlacement,showSignatureValidationStatus:v.showSignatureValidationStatus||fu.W.NEVER,previewRedactionMode:v.previewRedactionMode,keepSelectedTool:v.keepSelectedTool,isAPStreamRendered:e.isAPStreamRendered,restrictAnnotationToPageBounds:e.restrictAnnotationToPageBounds,electronicSignatureCreationModes:(0,i.hU)(e.electronicSignatures&&e.electronicSignatures.creationModes||vx.Z),signingFonts:(0,i.hU)(e.electronicSignatures&&e.electronicSignatures.fonts||CP.Z),isHistoryEnabled:!!e.enableHistory,areClipboardActionsEnabled:!!e.enableClipboardActions,onOpenURI:e.onOpenURI,onAnnotationResizeStart:e.onAnnotationResizeStart,canScrollWhileDrawing:v.canScrollWhileDrawing,dateTimeString:e.dateTimeString,annotationToolbarColorPresets:e.annotationToolbarColorPresets,annotationToolbarItems:e.annotationToolbarItems,onWidgetAnnotationCreationStart:e.onWidgetAnnotationCreationStart,inkEraserMode:g,firstCurrentPageIndex:v.currentPageIndex,arePageSizesLoaded:"STANDALONE"!==o.type||!1,inlineTextSelectionToolbarItems:e.inlineTextSelectionToolbarItems,measurementSnapping:e.measurementSnapping,measurementPrecision:e.measurementPrecision,measurementScale:e.measurementScale,measurementValueConfiguration:e.measurementValueConfiguration,anonymousComments:e.anonymousComments,enableRichText:e.enableRichText,maxMentionSuggestions:"maxMentionSuggestions"in e&&e.maxMentionSuggestions||void 0,mentionableUsers:"mentionableUsers"in e&&e.mentionableUsers||[],isMultiSelectionEnabled:!e.disableMultiSelection,defaultAutoCloseThreshold:e.autoCloseThreshold,onCommentCreationStart:e.onCommentCreationStart});let P,C,I=Promise.resolve();if(!0===e.headless)P=mc(kx(kx({},E),{},{frameWindow:window}));else if([P,I,C]=await async function(e,t,n,o,r){var s;const l=Zx(o);if(l.childNodes.length>0)throw new a.p2('`Configuration#container` is expected to be an empty element but instead it contains child nodes.\nTo fix this, please make sure that the container is empty (e.g. by using an empty div `
`');if(o.styleSheets&&!(o.styleSheets instanceof Array))throw new a.p2("styleSheets must either be an Array of strings");let c=[];const u=window.getComputedStyle(l).getPropertyValue("width"),d=window.getComputedStyle(l).getPropertyValue("height");if(!u||u&&"0px"===u)throw new a.p2("The mounting container has no width.\n PSPDFKit for Web adapts to the dimensions of this element and will require this to be set. You can set it to 100% to adopt to the dimensions of the parent node.");if(!d||d&&"0px"===d)throw new a.p2("The mounting container has no height.\n PSPDFKit for Web adapts to the dimensions of this element and will require this to be set. You can set it to 100% to adopt to the dimensions of the parent node.");if(o.theme){if("string"!=typeof o.theme||!mx[o.theme])throw new a.p2("Invalid theme. Configuration#theme must be a valid PSPDFKit.Theme");(o.theme===mx.DARK||o.theme===mx.AUTO&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&c.push(`${t}pspdfkit-lib/dark-${N()}.css`)}o.styleSheets&&(c=c.concat(o.styleSheets));let p=Je.cY;null!=o.minDefaultZoomLevel&&((0,a.kG)("number"==typeof o.minDefaultZoomLevel&&o.minDefaultZoomLevel>0,"minDefaultZoomLevel must be a number greater than 0"),p=o.minDefaultZoomLevel);let f=Je.QS;null!=o.maxDefaultZoomLevel&&((0,a.kG)("number"==typeof o.maxDefaultZoomLevel&&o.maxDefaultZoomLevel>0,"maxDefaultZoomLevel must be a number greater than 0"),f=o.maxDefaultZoomLevel);(0,a.kG)(f>=p,`maxDefaultZoomLevel (${f}) must be greater than or equal to minDefaultZoomLevel (${p}). If you didn't set one of those values, then the default value was used.`);const h=B.UL.fromClientRect(l.getBoundingClientRect()).setLocation(new B.E9),m=new j.Vk({currentPageIndex:r.currentPageIndex,zoomLevel:"number"==typeof r.zoom?r.zoom:1,zoomMode:"number"==typeof r.zoom?Xs.c.CUSTOM:r.zoom,pagesRotation:(0,Yr.n5)(r.pagesRotation),layoutMode:r.layoutMode,scrollMode:r.scrollMode,pageSpacing:r.pageSpacing,spreadSpacing:r.spreadSpacing,keepFirstSpreadAsSinglePage:r.keepFirstSpreadAsSinglePage,viewportPadding:new B.E9({x:r.viewportPadding.horizontal,y:r.viewportPadding.vertical}),minDefaultZoomLevel:p,maxDefaultZoomLevel:f});let g=Ic.ZP.toJS();o.toolbarItems&&(g=o.toolbarItems,g=g.map((e=>"ink-signature"===e.type?((0,a.a1)("The 'ink-signature' toolbar item type has been renamed to 'signature'. The 'ink-signature' identifier will be removed on a future release of PSPDFKit for Web."),kx(kx({},e),{},{type:"signature"})):e)).filter((e=>{var t;return"content-editor"!==e.type||"SERVER"!==(null===(t=n.backend)||void 0===t?void 0:t.type)||((0,a.ZK)("The 'content-editor' toolbar item type is not supported in the Server backend: Content Editing is only available in Standalone."),!1)})),g.forEach(Nc));let v=Bc.toJS();o.documentEditorFooterItems&&(v=o.documentEditorFooterItems,v.forEach(Kc));let y=Uc.toJS();o.documentEditorToolbarItems&&(y=o.documentEditorToolbarItems,y.forEach(Hc));let w=fe.ZP.toObject();w.ink.inkEraserWidth=mt.Ei.DEFAULT_INK_ERASER_CURSOR_WIDTH,o.annotationPresets&&(w=o.annotationPresets,Object.values(w).forEach(Tc));let S=DP;o.stampAnnotationTemplates&&Array.isArray(o.stampAnnotationTemplates)&&(S=o.stampAnnotationTemplates,S.forEach(tu));"mentionableUsers"in o&&((0,a.kG)(Array.isArray(o.mentionableUsers),"mentionableUsers must be an array"),o.mentionableUsers.forEach(b.vQ));"maxMentionSuggestions"in o&&(0,a.kG)("number"==typeof o.maxMentionSuggestions&&o.maxMentionSuggestions>0,"maxMentionSuggestions must be a number greater than 0");Object.isFrozen(mt.Ei)||(mt.Wv!==mt.Ei.COLOR_PRESETS&&(0,_.XV)("Options.COLOR_PRESETS","PSPDFKit#Customisation.AnnotationToolbarColorPresets",!0),(0,mt.ng)(mt.Ei),Object.freeze(mt.Ei));const E=function(){const e=document.createElement("div");return e.className="PSPDFKit-Container",e.style.width="100%",e.style.height="100%",e}();let P,x;if(l.appendChild(E),Ux(l,(function(){const{parentNode:e}=E;e&&e.removeChild(E)})),[P,x]=await async function(e,t,n,o){let r,i;const a=new Promise((function(e,t){r=e,i=t}));let s;if(o){let e;try{e=await(0,z.jK)([t+Ix].concat(n).map((e=>{const n=n=>{const o=n instanceof Error;return{filename:e,css:o?null:n,isCustom:e!==t+Ix}};return fetch(e,{credentials:"same-origin"}).then((e=>{if(200!==e.status)throw Error(`${e.status} ${e.statusText}`);return e.text()})).then(n).catch(n)})))}catch(t){e=t}e=e.filter((e=>null!==e.css)),s=Fx+e.map((e=>{let{css:t,isCustom:n,filename:o}=e;return`${t}`})).join("")}else s=`\n${n.map((e=>``)).join("\n")}\n${Fx}\n`;return new Promise((t=>{const n=document.createElement("iframe");n.setAttribute("allowfullscreen","true"),n.setAttribute("title","PSPDFKit"),n.style.width="100%",n.style.height="100%",n.style.border="0",n.style.display="block",e.appendChild(n);const o=n.contentDocument;if(o){o.open(),o.write(`PSPDFKit
`),o.close(),o.addEventListener("touchstart",(()=>{document.body&&(document.body.style.overscrollBehavior="none")})),o.addEventListener("touchcancel",(()=>{document.body&&(document.body.style.overscrollBehavior="inherit")})),o.addEventListener("touchend",(()=>{document.body&&(document.body.style.overscrollBehavior="inherit")}));const e=o.createRange().createContextualFragment(s);o.head.appendChild(e),Vx(r,i,o),t([o,a])}}))}(E,t,c,o.enableServiceWorkerSupport||!1),!e.current)return Tx;Sc(P);const D=(0,Ec.bl)(P);"function"==typeof D&&Ux(l,(function(){D()}));const C=(null===(s=o.electronicSignatures)||void 0===s?void 0:s.unstable_colorPresets)||wx;if(0===C.length)throw new a.p2("PSPDFKit.Configuration.electronicSignatures#unstable_colorPresets should have at least one preset.");let I=null;if("customFonts"in o&&o.customFonts){const e=n.backend.getCustomFontsPromise();e.current||(e.current=(0,mp.x6)(o.customFonts)),I=await e.current}const M=mc(kx(kx({},n),{},{rootElement:l,containerRect:h,showToolbar:r.showToolbar,enableAnnotationToolbar:r.enableAnnotationToolbar,toolbarItems:(0,i.d0)(g),electronicSignatureColorPresets:C,annotationPresets:(0,i.D5)(w),stampAnnotationTemplates:Object.freeze(S),currentItemPreset:null,viewportState:m,interactionMode:null,documentEditorFooterItems:(0,i.d0)(v),documentEditorToolbarItems:(0,i.d0)(y),frameWindow:P.defaultView,sidebarWidth:h.width<=Je.Fg?h.width:mt.Ei.INITIAL_DESKTOP_SIDEBAR_WIDTH,renderPagePreview:"boolean"!=typeof o.renderPagePreview||o.renderPagePreview}));if(await(0,wc.sS)(M.getState().locale),!e.current)return Tx;M.dispatch((0,Dc.t2)(new Ac(M.getState,M.dispatch))),M.dispatch((0,En.z5)((0,de.YV)(M.getState)));const R=P.querySelector(`.${Je.re}`);return(0,a.kG)(R,"Internal PSPDFKit Error: Mount Target could not be found in contentDocument. Please contact support@pspdfkit.com"),(0,O.render)(T.createElement(A.zt,{store:M},T.createElement(fx,{onError:e=>(e.code,e)},T.createElement("div",{className:F()(zf().withLayers,(!("CSS"in window)||!window.CSS.supports("isolation: isolate"))&&zf().withLayersFallback)},T.createElement(k.P,null,Sx||(Sx=T.createElement(wP,null)))))),R),Ux(l,(function(){(0,O.unmountComponentAtNode)(R)})),[M,x,I]}(t,p,E,e,v),!t.current)return Tx;const R=P.getState(),{eventEmitter:K,rootElement:Z}=R;Z&&Ux(Z,(function(){o&&o.destroy()})),j.UX.prototype.getMeasurementDetails=function(){return R.features.includes(ge.q.MEASUREMENT_TOOLS)||new a.p2(Ex.oD),(0,G.t9)(this)};const U=new ux({store:P,backend:o,eventEmitter:K});if(await bc({dispatch:P.dispatch,backend:o,getState:P.getState,password:e.password,maxPasswordRetries:!0===e.headless?0:"number"==typeof e.maxPasswordRetries?e.maxPasswordRetries:Number.POSITIVE_INFINITY,stylesheetPromise:I,formFieldValuesJSON:"STANDALONE"===o.type?"instantJSON"in e&&e.instantJSON&&e.instantJSON.formFieldValues:null,customFonts:C}),!t.current)return o&&o.destroy(),Tx;let V=function(){U._destroy(),!0===e.headless&&o&&o.destroy(),Ox.current=Ox.current.delete(U)};Z&&(V=Ux(Z,V)),Ox.current=Ox.current.set(U,V);const{features:W,formDesignMode:q,previewRedactionMode:H,documentPermissions:$,frameWindow:Y}=P.getState();if($.fillForms||$.annotationsAndForms||mt.Ei.IGNORE_DOCUMENT_PERMISSIONS?P.dispatch((0,En.we)(e.editableAnnotationTypes?(0,i.l4)(e.editableAnnotationTypes):(0,i.l4)(he.Z),e.isEditableAnnotation)):P.dispatch((0,En.ZV)((0,i.l4)([]))),W.includes(ge.q.ELECTRONIC_SIGNATURES)&&function(e,t){const n=e.document.createRange(),o=mp.eE.map((e=>`@font-face {\n font-family: '${e.name}';\n font-style: normal;\n font-weight: ${e.weight};\n font-display: swap;\n src: url(${t}pspdfkit-lib/${e.file}.woff2) format('woff2'),\n url(${t}pspdfkit-lib/${e.file}.woff) format('woff');\n }`)).join("\n"),r=n.createContextualFragment(``);e.document.head.appendChild(r)}(Y,p),q&&!(0,So.ix)(P.getState()))throw P.dispatch((0,En.LE)(!1)),$.annotationsAndForms||$.fillForms?new a.p2("Widget annotation selection (`configuration.viewState.formDesignMode = true`) can only be enabled if the license includes the Form Designer component and on standalone mode or with PSPDFKit Instant."):new a.p2('Widget annotation selection (`configuration.viewState.formDesignMode = true`) can only be enabled if the current document has either the "Editing Annotations and Forms" or the "Filling Forms" permissions granted. you can override this behavior by setting the PSPDFKit.Options.IGNORE_DOCUMENT_PERMISSIONS option before initializing PSPDFKit. Please make also sure the license includes the Form Designer component and a backend that supports it.');if(H&&!W.includes(ge.q.REDACTIONS))throw P.dispatch((0,En.P_)(!1)),new a.p2("`configuration.viewState.previewRedactionMode = true` can only be enabled if the license includes the Redactions component.");if(e.initialViewState&&e.initialViewState.interactionMode===x.A.DOCUMENT_EDITOR&&!W.includes(ge.q.DOCUMENT_EDITING))throw P.dispatch((0,En.sJ)()),new a.p2(gu);if(e.initialViewState&&e.initialViewState.interactionMode===x.A.CONTENT_EDITOR&&!W.includes(ge.q.CONTENT_EDITING))throw P.dispatch({type:te.Qm9}),new a.p2(sc.Aq);if((0,nt.fF)(null===(u=e.initialViewState)||void 0===u?void 0:u.interactionMode)&&!W.includes(ge.q.FORM_DESIGNER))throw P.dispatch((0,En.XX)()),new a.p2(wu.RB);if(e.initialViewState&&e.initialViewState.showSignatureValidationStatus!==fu.W.NEVER&&!W.includes(ge.q.DIGITAL_SIGNATURES))throw new a.p2(bu);if((e.documentEditorFooterItems||e.documentEditorToolbarItems)&&!W.includes(ge.q.DOCUMENT_EDITING))throw new a.p2(gu);if(!0!==e.headless&&!W.includes(ge.q.UI))throw P.dispatch((0,gc.sr)("Your license does not cover the configured functionality.")),new a.p2("The web UI feature is not enabled for your license key. Please contact support or sales to purchase the UI module for PSPDFKit for Web.");if(!0!==e.headless&&v.interactionMode){const e=ku(v.interactionMode,R);P.dispatch(e.onEnterAction())}return P.dispatch((0,En._$)(U)),U}catch(e){const{type:t,request:n}=e;throw"error"===t&&n&&/\/pspdfkit-lib\//.test(n)&&e("Failed to load pspdfkit-lib.\nMake sure you are serving all PSPDFKit library files as described in https://pspdfkit.com/guides/web/current/standalone/adding-to-your-project/#copy-the-pspdfkit-for-web-assets."),e}},unload:function(e){if(null==e)throw new a.p2("Expected `PSPDFKit.unload` to be called with an `HTMLElement | string | PSPDFKit.Instance`\ninstead none was provided.");if("string"==typeof e){const t=e;if(null===(e=document.querySelector(t)))throw new a.p2(`Couldn't find a container which matches the provided selector \`${t}\``)}else if(!(e instanceof HTMLElement||e instanceof ux))throw new a.p2("Expected `PSPDFKit.unload` to be called with a valid `target` argument.\nAllowed values for `target` are: `HTMLElement | string | PSPDFKit.Instance`.\n");let t;return e instanceof ux?t=Ox.current.get(e):Ax.current.has(e)&&(t=Ax.current.get(e)),!!t&&(t(),!0)},convertToPDF:async function(e,t){const{licenseKey:o,electronAppName:r,productId:i,appName:s}=e;"string"==typeof e.baseUrl&&(0,gx.Pn)(e.baseUrl);const l=Bx(e);Lx(l),(0,a.kG)(null==o||"string"==typeof o,"licenseKey must be a string value if provided. Please obtain yours from https://customers.pspdfkit.com."),"string"==typeof o&&(0,a.kG)(!o.startsWith("TRIAL-"),"You're using the npm key instead of the license key. This key is used to download the PSPDFKit for Web package via the node package manager.\n\nLeave out the license key to activate as a trial."),(0,a.kG)(i!==Px.x.Salesforce,"Document conversion is not currently supported in Salesforce."),(s&&(0,L.d)()||r)&&((0,a.kG)(r,"The `electronAppName` option is deprecated and will be removed in a future version. Please use `appName` instead."),(0,Dx.t0)(s||r,i)),t&&(0,a.kG)(t&&Object.values(xx.w).includes(t),"The supplied PDF/A Conformance type is not valid. Valid Conformance should be one of the following options PSPDFKit.Conformance."+Object.keys(xx.w).join(", PSPDFKit.Conformance."));const c=await(0,yc.D4)(l,e.document,i),u=s||r||(0,L.$u)()||window.location.origin;let d;try{return d=new(tt.vU?(await n.e(4516).then(n.bind(n,14516))).GdPictureClientNative:(await n.e(4516).then(n.bind(n,14516))).GdPictureWorker)(kx({baseUrl:l,mainThreadOrigin:u,licenseKey:o},e.customFonts?{customFonts:await(0,mp.x6)(e.customFonts)}:null)),await d.toPdf(c,t)}finally{var p;null===(p=d)||void 0===p||p.destroy()}},Error:a.p2,SaveError:Hx.V,ViewState:y.Z,PageInfo:g.Z,TextLine:v.Z,InstantClient:m.Z,TextSelection:GP,SearchResult:qx.Z,SearchState:rl.Z,AutoSaveMode:S.u,SignatureSaveMode:_u.f,LayoutMode:C.X,PrintMode:Pc.X,PrintQuality:xc.g,ScrollMode:nl.G,ZoomMode:Xs.c,InteractionMode:x.A,unstable_InkEraserMode:D.b,SidebarMode:du.f,UIElement:{Sidebar:"Sidebar"},BlendMode:lp,BorderStyle:Yx.N,LineCap:nd.u,SidebarPlacement:pu.d,SignatureAppearanceMode:Wx.H,ShowSignatureValidationStatusMode:fu.W,NoteIcon:en.Zi,Theme:mx,ToolbarPlacement:Ru.p,ElectronicSignatureCreationMode:eS.M,I18n:wc.ZP,baseUrl:tD,DocumentIntegrityStatus:E.QA,SignatureValidationStatus:E.qA,SignatureType:E.BG,SignatureContainerType:E.FR,CertificateChainValidationStatus:E.wk,AnnotationsWillChangeReason:u.f,DocumentComparisonSourceType:Gx.b,MeasurementScaleUnitFrom:q.s,MeasurementScaleUnitTo:W.K,MeasurementPrecision:Xx.L,MeasurementScale:As.Z,ProductId:Px.x,Conformance:xx.w,DocumentPermissions:tl.A,viewStateFromOpenParameters:Pu,get unstable_defaultElectronicSignatureColorPresets(){return(0,i.d0)(wx).toJS().map((e=>{let{color:t}=e;return eD(eD({},(0,r.Z)(e,Jx)),{},{color:new p.Z(t)})}))},get defaultToolbarItems(){return Ic.ZP.toJS()},get defaultDocumentEditorFooterItems(){return Bc.toJS()},get defaultDocumentEditorToolbarItems(){return Uc.toJS()},get defaultAnnotationPresets(){return fe.ZP.toObject()},get defaultStampAnnotationTemplates(){return[...DP]},get defaultAnnotationsSidebarContent(){return $x.Z.toJS()},defaultEditableAnnotationTypes:he.Z,defaultElectronicSignatureCreationModes:vx.Z,defaultSigningFonts:CP.Z,Options:mt.Ei,SearchPattern:KP,SearchType:zP.S,UIDateTimeElement:Nu,generateInstantId:ks.C,Font:w.Z},rD=oD},61631:(e,t,n)=>{"use strict";n.d(t,{TU:()=>m,aG:()=>f,gH:()=>g,oo:()=>h});var o=n(50974),r=n(67366),i=n(35369),a=n(96114),s=n(3219),l=n(89335),c=n(37676),u=n(97528),d=n(69939),p=n(29346);const f=e=>(t,n)=>{!function e(u){try{if(u instanceof l.lm){(0,o.kG)("string"==typeof u.uri,"URIAction requires `uri`");const e=n();(!e.onOpenURI||e.onOpenURI(u.uri,!0))&&(0,c.Z)(u.uri)}else if(u instanceof l.Di)(0,o.kG)("number"==typeof u.pageIndex,"GoToAction requires `pageIndex`"),t((0,s.YA)(u.pageIndex));else if(u instanceof l.BO)(0,o.kG)("boolean"==typeof u.includeExclude,"ResetFormAction requires `includeExclude`"),t((0,a.yM)(u.fields,u.includeExclude));else if(u instanceof l.pl)(0,o.kG)("string"==typeof u.uri,"ResetFormAction requires `uri`"),(0,o.kG)("boolean"==typeof u.includeExclude,"ResetFormAction requires `includeExclude`"),t((0,a.V6)(u));else{if(!(u instanceof l.ZD))throw new o.p2(`Annotation action not handled: ${u.constructor.name}`);{(0,o.kG)(i.aV.isList(u.annotationReferences),"HideAction must have `annotationReferences`");const{annotations:e,formFields:a}=n(),s=u.annotationReferences.map((e=>"fieldName"in e&&a.get(e.fieldName))),l=u.annotationReferences.map((t=>"pdfObjectId"in t&&"number"==typeof t.pdfObjectId?e.find((e=>e.pdfObjectId===t.pdfObjectId)):null));(0,r.dC)((()=>{l.forEach((e=>{e&&t((0,d.FG)(e.set("noView",u.hide)))})),s.forEach((n=>{n&&n.annotationIds.forEach((n=>{const o=e.get(n);o&&t((0,d.FG)(o.set("noView",u.hide)))}))}))}))}}}catch(e){(0,o.ZK)(e.message)}u.subActions&&u.subActions.forEach((t=>{e(t)}))}(e)},h=e=>{const{action:t}=e;return t instanceof l.bp?g(t.script,e instanceof p.Z?e.formFieldName:null):f(t)},m=(e,t)=>{const{additionalActions:n,formFieldName:o}=e;return(null==n?void 0:n[t])instanceof l.bp?g(n[t].script,e instanceof p.Z?o:null):f(null==n?void 0:n[t])};function g(e,t){return async(n,r)=>{const{backend:i}=r();if((0,o.kG)(i),"STANDALONE"!==i.type||!u.Ei.PDF_JAVASCRIPT)return;(0,o.kG)("string"==typeof e,"JavaScriptAction requires `script`");const s=await i.evalScript(e,t);n((0,a.bt)({changes:s}))}}},69939:(e,t,n)=>{"use strict";n.d(t,{$d:()=>T,$e:()=>A,Ds:()=>R,FG:()=>G,GI:()=>te,GT:()=>X,GZ:()=>H,Iv:()=>k,QA:()=>N,RK:()=>Q,VX:()=>z,XG:()=>J,ZE:()=>j,Zr:()=>F,aF:()=>M,d8:()=>$,dt:()=>oe,fx:()=>Y,gX:()=>_,hQ:()=>q,hX:()=>D,hj:()=>C,i0:()=>ee,ip:()=>O,lA:()=>I,mw:()=>re,pZ:()=>L,sF:()=>B,ug:()=>ne,uk:()=>U,vc:()=>x,vy:()=>ie});var o=n(35369),r=n(67366),i=n(50974),a=n(82481),s=n(3845),l=n(88804),c=n(34573),u=n(29165),d=n(63738),p=n(3219),f=n(96114),h=n(51333),m=n(95651),g=n(7921),v=n(78233),y=n(49177),b=n(45588),w=n(62164),S=n(25387),E=n(91859),P=n(75237);const x=(e,t)=>n=>{n((0,c.Ab)()),n({type:S.ILc,annotation:e,pageIndex:t})},D=(e,t)=>n=>{n((0,c.Ab)()),n({type:S.HS7,annotation:e,pageIndex:t})},C=(e,t)=>n=>{n((0,c.Ab)()),n({type:S.jzI,annotation:e,pageIndex:t})},k=async e=>{const{hash:t,dimensions:n}=await(0,b.uq)(e);return{hash:t,dimensions:n,attachment:new a.Pg({data:e})}},A=e=>async(t,n)=>{const{dimensions:i,hash:a,attachment:l}=await k(e),d=(0,m.om)(n(),i,a,e.type,e.name),f={annotations:(0,o.aV)([d]),reason:s.f.SELECT_END},{eventEmitter:h,annotationManager:g}=n();(0,r.dC)((()=>{null==h||h.emit("annotations.willChange",f),t((0,u.O)(a,l)),t(I((0,o.aV)([d]))),null==g||g.createObject(d,{attachments:(0,o.D5)([[a,l]])}),null==g||g.autoSave(),t((0,c.Df)((0,o.l4)([d.id]),null)),t((0,p.kN)(d.pageIndex,d.boundingBox))}))},O=e=>(t,n)=>{let i;const{imageAttachmentId:u,contentType:d,fileName:f,description:h}=e,g=u&&n().attachments.get(u);if(e instanceof a.GI)t(R("stamp")),i=(0,m.hG)(n(),new l.$u({width:e.boundingBox.width,height:e.boundingBox.height}),e);else{if(!(e instanceof a.sK))return;if(!u)return;t(R("image")),i=(0,m.om)(n(),new l.$u({width:e.boundingBox.width,height:e.boundingBox.height}),u,d||"",f),h&&(i=i.set("description",h))}const v={annotations:(0,o.aV)([i]),reason:s.f.SELECT_END},{eventEmitter:y,annotationManager:b}=n();(0,r.dC)((()=>{null==y||y.emit("annotations.willChange",v),t(I((0,o.aV)([i]))),null==b||b.createObject(i,{attachments:u&&g?(0,o.D5)([[u,g]]):(0,o.D5)()}),null==b||b.autoSave(),t((0,c.Df)((0,o.l4)([i.id]),null)),t((0,p.kN)(i.pageIndex,i.boundingBox))}))},T=e=>(t,n)=>{const a=n();(0,i.kG)(a.backend);const{annotationManager:s,backend:l}=a;(0,r.dC)((()=>{"STANDALONE"===(null==l?void 0:l.type)?t(I((0,o.aV)([e.set("pdfObjectId",null).delete("APStreamCache")]))):t(I((0,o.aV)([e]))),null==s||s.createObject(e,{attachments:(0,m.Dc)(n(),e)})}))},I=e=>({type:S.M85,annotations:e}),F=e=>({type:S.R8P,annotations:e}),M=e=>({type:S.gF5,ids:e}),_=e=>(t,n)=>{const o=n(),r=o.currentItemPreset;if(!r)return;const i=o.annotationPresets.get(r);if(!i)return;let a=!1;o.eventEmitter.emit("annotationPresets.update",{preventDefault:()=>a=!0,currentPreset:r,currentPresetProperties:i,newPresetProperties:e}),a||t({type:S.oE1,attributes:e})},R=e=>({type:S.oWy,currentItemPreset:e}),N=e=>({type:S.UiQ,annotationPresets:e}),L=(e,t)=>({type:S.R1i,annotationID:e,annotationPresetID:t}),B=e=>({type:S.x0v,annotationID:e}),j=e=>({type:S.JwD,annotationID:e}),z=(e,t)=>(n,o)=>{n(R(t)),(0,y.PK)(o(),e).forEach((e=>{n(T(e)),!P.AQ[t]&&n(L(e.id,t))}))},K=(e,t)=>{e().annotationManager.updateObject(t,(0,m.Dc)(e(),t))},Z={},U=e=>(t,n)=>{const{annotations:r,invalidAPStreams:a,backend:s}=n();if(!r.has(e.id))return void(0,i.ZK)("An annotation that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this annotation was skipped.");(0,m.tl)({annotations:r,backend:s},(0,o.aV)([e]));let l=e.set("updatedAt",new Date);t(F((0,o.aV)([l]))),l=(0,m.tM)(n(),a,l),Z[l.id]||(Z[l.id]=(0,g.Z)(K,E.sP)),Z[l.id](n,l)};function V(e,t,n){const{annotations:o,invalidAPStreams:r,backend:s}=t;(0,m.tl)({annotations:o,backend:s},n);const l=n.map((e=>o.has(e.id)?(e instanceof a.UX&&e.isMeasurement()&&(e=e.set("note",e.getMeasurementDetails().label)),"STANDALONE"===(null==s?void 0:s.type)?e.delete("APStreamCache").set("updatedAt",new Date):e.set("updatedAt",new Date)):((0,i.ZK)("An annotation that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this annotation was skipped."),!1))).filter(Boolean);e(F(l)),l.forEach((e=>{const n=(0,m.tM)(t,r,e);var o;null!==e.pageIndex&&(null===(o=t.annotationManager)||void 0===o||o.updateObject(n,{attachments:(0,m.Dc)(t,n)}))}))}const G=e=>(t,n)=>{const i=n();(0,r.dC)((()=>{V(t,i,(0,o.aV)([e]))}))};function W(e,t,n){const{commentThreads:s,comments:l,annotationManager:c,formFieldValueManager:u}=t;n.forEach((t=>{const n=s.get(t.id);if(n&&1===n.size){const t=l.get(n.first());t&&(0,w.kT)(t)&&((0,i.kG)(t.id),e((0,h.Vn)((0,o.l4)([t.id]))))}})),n.forEach((t=>{(t instanceof a.Jn||t instanceof a.FV||t.isCommentThreadRoot)&&e((0,h.Wn)(t))}));let d=(0,o.aV)();(0,r.dC)((()=>{e(M(n.map((e=>e.id)).toSet())),d=n.map((e=>(0,m.dk)(t,e))),d.forEach((e=>{null==c||c.deleteObject(e)}))})),d.forEach((n=>{if(n instanceof a.x_){const r=n.formFieldName?t.formFields.get(n.formFieldName):null;var o;if(r)if(1===r.annotationIds.size&&r.annotationIds.first()===n.id)e((0,f.Wh)(r)),null!==(o=t.backend)&&void 0!==o&&o.isUsingInstantProvider()||null==u||u.deleteObject(new a.KD({name:r.name,value:r.value}));else if(r.annotationIds.includes(n.id)){const t=r.annotationIds.findIndex((e=>e===n.id));let o=r.set("annotationIds",r.annotationIds.filter((e=>e!==n.id)));o.options&&(o=o.set("options",r.options.filter(((e,n)=>n!==t)))),e((0,f.vK)(o))}}Z[n.id]&&delete Z[n.id]}))}const q=e=>(t,n)=>{W(t,n(),(0,o.aV)([e]))},H=(e,t)=>(n,o)=>{const i=o(),{annotations:a}=i,s=t.map((e=>a.get(e))).filter(Boolean);(0,r.dC)((()=>{e.size>0&&V(n,i,e),s.size>0&&W(n,i,s)}))};function $(e){return(t,n)=>{if(e&&!e.isEmpty()){const t=n(),r=e.map((e=>t.annotations.get(e))).filter(Boolean),i={annotations:(0,o.aV)(r),reason:s.f.DELETE_START};t.eventEmitter.emit("annotations.willChange",i)}t({type:S.sCM,annotationsIDs:e})}}const Y=e=>({type:S.qRJ,stampAnnotationTemplates:e}),X=e=>({type:S.RPc,lineWidth:e});function J(){return(e,t)=>{const n=t();let o=new a.Qi((0,m.lx)(n));const r=n.pages.get(n.viewportState.currentPageIndex);(0,i.kG)(r);const s=a.UL.getCenteredRect(new l.$u({width:E.SP,height:E.SP}),r.pageSize);o=o.set("pageIndex",n.viewportState.currentPageIndex).set("boundingBox",s),e((0,d.i9)(null,o)),e(G(o))}}function Q(){return(e,t)=>{const n=t();let o=new a.gd((0,m.lx)(n));const r=n.pages.get(n.viewportState.currentPageIndex);(0,i.kG)(r);const{pagesRotation:s,currentPageIndex:l}=n.viewportState,c=r.pageSize.scale(.5),u=(0,v.gB)(new a.E9({x:c.width,y:c.height}),s);o=o.set("pageIndex",l).set("boundingBox",u).set("rotation",s),e((0,d.DU)(null,o)),e(G(o))}}const ee=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:S.WaW,value:e}},te=e=>({type:S.ieh,ids:e}),ne=e=>({type:S.kVz,ids:e}),oe=e=>({type:S.hw0,callback:e}),re=(e,t)=>({type:S.Dqw,variant:e,annotationObjectIds:t}),ie=e=>({type:S.uOP,annotationId:e})},29165:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var o=n(25387);const r=(e,t)=>({type:o.huI,hash:e,attachment:t})},51333:(e,t,n)=>{"use strict";n.d(t,{$z:()=>T,BY:()=>x,DO:()=>O,Dm:()=>E,GH:()=>I,Jr:()=>D,Rf:()=>F,UM:()=>k,V4:()=>C,Vn:()=>S,Wn:()=>A,aZ:()=>b,cQ:()=>v,fg:()=>m,gk:()=>w,mh:()=>g,v7:()=>y});var o=n(35369),r=n(25387),i=n(91859),a=n(82481),s=n(69939),l=n(34573),c=n(63738),u=n(49177),d=n(62164),p=n(95651),f=n(97413),h=n(30360);const m=e=>t=>{t({type:r.ckI,comments:e}),t(T())},g=e=>t=>{t({type:r.hxO,rootId:e}),t(T())};function v(){return(e,t)=>{const n=(0,u.PK)(t(),a.FV,!0);if(n.size){e((0,l.fz)()),e((0,s.lA)(n));const r=t().annotations.get(n.first().id);(0,f.k)(r),e((0,l.Df)((0,o.l4)([r.id]),null)),e(g(r.id))}}}const y=e=>({type:r.YHT,users:e}),b=e=>({type:r.ZLr,maxSuggestions:e}),w=e=>t=>{t((e=>({type:r.FdD,comments:e}))(e)),t(T())},S=e=>t=>{t({type:r.kg,ids:e}),t(T())};function E(){return(e,t)=>{const n=t(),r=[],i=[];n.selectedAnnotationIds.forEach((e=>{const t=n.commentThreads.get(e);if(!t)return;let o=t.size;t.forEach((e=>{var t;const i=n.comments.get(e);!i||null!=i.pageIndex||null!=(null===(t=i.text)||void 0===t?void 0:t.value)&&""!==(0,h.KY)(i.text.value)||(r.push(e),o--)})),0===o&&i.push(e)})),r.length>0&&e(S((0,o.l4)(r))),i.length>0&&e((0,s.aF)((0,o.l4)(i)))}}function P(e,t){let{oldComment:n,comment:r,action:i}=t;const{comments:a,eventEmitter:s}=e;if("DELETE"===i)(0,f.k)(n),s.emit("comments.mention",{comment:n,modifications:n.getMentionedUserIds().map((e=>({userId:e,action:"REMOVED"}))).toList()});else if("CREATE"===i)(0,f.k)(r),s.emit("comments.mention",{comment:r,modifications:r.getMentionedUserIds().map((e=>({userId:e,action:"ADDED"}))).toList()});else{(0,f.k)(r);const e=n||r.id&&a.get(r.id),t=r.getMentionedUserIds();let i=(0,o.aV)();(0,f.k)(e);const l=e.getMentionedUserIds(),c=l.subtract(t);c.size>0&&(i=i.push(...c.map((e=>({userId:e,action:"REMOVED"}))).toList()));const u=t.subtract(l);u.size>0&&(i=i.push(...u.map((e=>({userId:e,action:"ADDED"}))).toList())),s.emit("comments.mention",{comment:r,modifications:i})}}const x=(e,t)=>(n,r)=>{const i=r();(0,f.k)(e.rootId);const a=i.annotations.get(e.rootId);(0,f.k)(a);const l=new Date,c=e.set("createdAt",l).set("updatedAt",l).set("pageIndex",a.pageIndex);P(i,{comment:c,oldComment:t,action:"UPDATE"}),n(w((0,o.aV)([c])));const u=i.commentThreads.get(e.rootId);if((0,f.k)(null!=u),1===u.size&&(0,d.kT)(e)){var p,h;const e=a.set("isCommentThreadRoot",!0);n((0,s.Zr)((0,o.aV)([e]))),null===(p=i.annotationManager)||void 0===p||p.createObject(e),null===(h=i.annotationManager)||void 0===h||h.autoSave()}(0,f.k)(null!=i.commentManager);const m=r(),g=m.comments.toList().filter((e=>!(0,d.kT)(e)));i.commentManager.createObject(c,{comments:g,annotations:m.annotations}),i.commentManager.autoSave()},D=e=>(t,n)=>{const r=new Date,i=e.set("createdAt",r).set("updatedAt",r);t(m((0,o.aV)([i]))),P(n(),{comment:i,action:"CREATE"});const{commentManager:a,annotations:s}=n();(0,f.k)(null!=a);const l=n().comments.toList().filter((e=>!(0,d.kT)(e)));a.createObject(i,{comments:l,annotations:s})},C=e=>(t,n)=>{const r=e.set("updatedAt",new Date);t(w((0,o.aV)([r]))),P(n(),{comment:r,oldComment:e,action:"UPDATE"});const{annotations:i,commentManager:a}=n();(0,f.k)(null!=a);const s=n().comments.toList().filter((e=>!(0,d.kT)(e)));a.updateObject(r,{comments:s,annotations:i})},k=e=>(t,n)=>{const r=n();if((0,f.k)(e.id),P(r,{oldComment:e,action:"DELETE"}),e.rootId){const n=r.commentThreads.get(e.rootId);if(n&&(1===n.size||(0,d._P)(n,r.comments)&&2===n.size)){const n=r.annotations.get(e.rootId);if(n)return void t((0,s.hQ)(n))}}t(S((0,o.l4)([e.id])));const{commentManager:i}=r;(0,f.k)(null!=i);const a=n(),l=a.comments.toList().filter((e=>!(0,d.kT)(e)));i.deleteObject(e,{comments:l,annotations:a.annotations}),i.autoSave()},A=e=>(t,n)=>{var o;const r=n();if((0,f.k)(e),"SERVER"===(null===(o=r.backend)||void 0===o?void 0:o.type))return;const i=r.comments.filter((t=>t.rootId===e.id&&!(0,d.kT)(t))).map((e=>e.id));if(0===i.size)return;t(S(i.toSet())),r.comments.forEach((e=>{P(r,{oldComment:e,action:"DELETE"})}));const{commentManager:a}=r;(0,f.k)(null!=a);const s=n();let l=s.comments.toList().filter((e=>!(0,d.kT)(e)));l.forEach((t=>{t.rootId===e.id&&(a.deleteObject(t,{comments:l,annotations:s.annotations}),l=l.filter((e=>e.id!==t.id)))})),a.autoSave()},O=e=>(t,n)=>{const r=n();(0,f.k)(e.id),P(r,{comment:e,oldComment:r.comments.get(e.id),action:"UPDATE"}),t(w((0,o.aV)([e])));const{commentManager:i}=r;(0,f.k)(null!=i);const{annotations:a,comments:s}=n(),l=s.toList().filter((e=>!(0,d.kT)(e)));i.updateObject(e,{comments:l,annotations:a}),i.autoSave()};function T(){return{type:r.NB4}}const I=()=>(e,t)=>{const n=t();let r=new a.Jn((0,p.lx)(n));const l=n.pages.get(n.viewportState.currentPageIndex);(0,f.k)(l);const u=a.UL.getCenteredRect(new a.$u({width:i.zk,height:i.zk}),l.pageSize);r=r.set("pageIndex",n.viewportState.currentPageIndex).set("boundingBox",u),e((0,c.k6)(r)),e((0,s.Zr)((0,o.aV)([r]))),e(g(r.id))};function F(e){return{type:r.mfU,onCommentCreationStartCallback:e}}},63738:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>ce,A7:()=>ge,BB:()=>m,BR:()=>x,C4:()=>R,Cc:()=>A,Ce:()=>F,Cn:()=>dt,DU:()=>oe,Di:()=>it,EJ:()=>je,EY:()=>we,FA:()=>St,Ft:()=>ht,GL:()=>Te,Gc:()=>U,Gh:()=>Ne,HT:()=>mt,Hf:()=>Be,IU:()=>ue,Ie:()=>We,JN:()=>ye,Jn:()=>ie,K_:()=>ve,LE:()=>Z,Lt:()=>ne,M4:()=>G,M5:()=>lt,MV:()=>O,Ol:()=>H,Ox:()=>Ue,P4:()=>E,PR:()=>Ct,P_:()=>at,Q8:()=>Ce,QL:()=>W,Ql:()=>de,R:()=>h,R1:()=>_e,RN:()=>q,Rx:()=>Y,SE:()=>Oe,Sn:()=>v,T:()=>Ae,TR:()=>S,Tu:()=>De,UF:()=>Xe,UG:()=>g,UU:()=>ae,UZ:()=>Pt,Ug:()=>C,VU:()=>k,W:()=>yt,Wv:()=>te,X2:()=>le,X8:()=>He,XX:()=>Je,Xv:()=>gt,YA:()=>he,YF:()=>wt,YI:()=>X,YK:()=>qe,ZV:()=>Me,Zg:()=>se,_$:()=>vt,_P:()=>Se,_R:()=>Et,_U:()=>me,_b:()=>V,_z:()=>N,aw:()=>w,bv:()=>J,cI:()=>xe,cz:()=>st,d5:()=>y,d9:()=>nt,dp:()=>j,ek:()=>Pe,el:()=>ze,fq:()=>rt,hS:()=>D,i9:()=>B,iJ:()=>ct,i_:()=>Ge,iu:()=>Q,jJ:()=>kt,jM:()=>tt,jP:()=>_,k4:()=>re,k6:()=>z,lC:()=>b,lL:()=>bt,lV:()=>$e,lW:()=>pe,m$:()=>ee,m0:()=>$,mu:()=>Ze,oX:()=>Ee,of:()=>xt,p2:()=>Dt,p9:()=>T,pM:()=>L,qB:()=>pt,rL:()=>ut,rd:()=>Ke,s3:()=>P,sJ:()=>Ye,sY:()=>Ie,si:()=>et,t:()=>M,t6:()=>ot,tr:()=>K,u0:()=>ke,vI:()=>Ve,vY:()=>be,we:()=>Re,xF:()=>Qe,xW:()=>ft,yg:()=>I,z5:()=>fe,ze:()=>Le});var o=n(84121),r=n(50974),i=n(67366),a=n(32170),s=n(25387),l=n(34573),c=n(19702),u=n(3219),d=n(55024);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t({type:s.Dj2}),m=()=>({type:s.G5w}),g=e=>({type:s.kt4,enabled:e}),v=()=>({type:s.GW4}),y=e=>({type:s.mqf,preset:e}),b=()=>({type:s.tLW}),w=e=>({type:s.tS$,preset:e}),S=()=>({type:s.g30}),E=e=>({type:s.GXR,preset:e}),P=()=>({type:s.J7J}),x=e=>({type:s.yPS,preset:e}),D=()=>({type:s.m_C}),C=()=>({type:s.JyO}),k=()=>({type:s.NDs}),A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{signatureRect:null,signaturePageIndex:null,formFieldName:null};return f({type:s.Vu4},e)},O=()=>({type:s.S$y}),T=(e,t)=>()=>I(e,t),I=(e,t,n)=>({type:s.JS9,shapeClass:e,shapeInteractionMode:t,preset:n}),F=()=>({type:s.AIf}),M=e=>({type:s.cbv,preset:e}),_=()=>({type:s.TUA}),R=()=>({type:s.Dzg}),N=()=>({type:s.M3C}),L=()=>({type:s.tie}),B=(e,t)=>({type:s.ZDQ,preset:e,annotation:t}),j=()=>({type:s.B1n}),z=e=>({type:s.dEe,annotation:e}),K=()=>({type:s.iMs});function Z(e){return{type:s.IFt,formDesignMode:e}}function U(e){return{type:s.Gkm,measurementSnapping:e}}function V(e){return{type:s.G6t,scale:e}}function G(e){return{type:s.fwq,measurementPrecision:e}}function W(e){return{type:s.vkF,configurationCallback:e}}function q(e){return{type:s.SdX,scales:e}}function H(){return{type:s.aYj}}function $(){return{type:s.hpj}}function Y(){return{type:s.QYP}}function X(){return{type:s.zKF}}const J=()=>({type:s.MuN}),Q=()=>({type:s.xk1}),ee=()=>({type:s.tYC}),te=()=>({type:s.NAH}),ne=(e,t)=>({type:s.pnu,preset:e,annotation:t,isCallout:!0}),oe=(e,t)=>({type:s.pnu,preset:e,annotation:t}),re=()=>({type:s.KqR}),ie=()=>({type:s.R7l}),ae=()=>({type:s.Vpf}),se=()=>({type:s.eFQ}),le=()=>({type:s.L8n}),ce=e=>({type:s.VNM,editor:e}),ue=e=>({type:s.tPZ,width:e}),de=e=>({type:s.u9b,zoomStep:e}),pe=e=>({type:s.Ce5,callback:e}),fe=e=>({type:s.WtY,transformClientToPage:e});function he(e){return{type:s.rWQ,layoutMode:e}}function me(e){return{type:s.b0l,scrollMode:e}}function ge(e){return{type:s._TO,showSignatureValidationStatus:e}}function ve(e){return{type:s._n_,scrollElement:e}}function ye(e){return{type:s.bxr,spreadSpacing:e}}function be(e){return{type:s._ko,pageSpacing:e}}function we(e){return{type:s.FHt,keepFirstSpreadAsSinglePage:e}}function Se(e){return{type:s.ht3,viewportPadding:e}}function Ee(e){return{type:s.NfO,readOnlyEnabled:e}}function Pe(){return{type:s.Xlm}}function xe(){return{type:s.cyk}}function De(){return{type:s.KYU}}function Ce(){return{type:s.Nl1}}function ke(){return{type:s.L9g}}function Ae(){return{type:s.Dl4}}function Oe(){return{type:s.GfR}}function Te(e){return{type:s.iQZ,features:e}}function Ie(e){return{type:s.JQC,signatureFeatureAvailability:e}}function Fe(e){return t=>{t({type:s.hv0,mode:e}),t((0,l.vR)())}}function Me(e){return{type:s.ZbY,editableAnnotationTypes:e}}function _e(e){return{type:s.uFU,isEditableAnnotation:e}}function Re(e,t){return{type:s.ArU,editableAnnotationTypes:e,isEditableAnnotation:t}}function Ne(e){return{type:s.Q2U,isEditableComment:e}}const Le=()=>(e,t)=>{e(Fe(c.f.ANNOTATIONS));const n=t();for(let e=0;easync(e,t)=>{e(Fe(c.f.DOCUMENT_OUTLINE));const n=t();if(n.documentOutlineState.elements)return;(0,r.kG)(n.backend);const o=await n.backend.getDocumentOutline();e((0,a.o)(o))};function ze(){return Fe(c.f.THUMBNAILS)}function Ke(){return Fe(c.f.CUSTOM)}function Ze(){return{type:s.hv0,mode:null}}function Ue(e){return{type:s.eI4,placement:e}}function Ve(e){return{type:s.bP3,sidebarOptions:e}}function Ge(e){return{type:s.dVW,locale:e}}function We(){return{type:s.RTr}}function qe(e){return{type:s.heZ,group:e}}function He(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:s.hlI,annotationCreatorName:e,immutable:t}}const $e=()=>({type:s.YIz}),Ye=()=>({type:s.K26}),Xe=e=>({type:s.$VE,interactionMode:e}),Je=()=>({type:s.yrz});function Qe(){return{type:s.Hbz}}function et(){return{type:s.sYK}}const tt=e=>({type:s.fAF,customRenderers:e});function nt(){return{type:s.pNz}}function ot(){return{type:s.bV3}}function rt(){return{type:s.EpY}}function it(){return{type:s.bui}}function at(e){return{type:s.vVk,previewRedactionMode:e}}function st(e){return async(t,n)=>{const{viewportState:o,eventEmitter:a,documentComparisonState:s}=n();if(e){const n={start:{},end:{}};n.start.promise=new Promise(((e,t)=>{n.start.resolve=e,n.start.reject=t})),n.end.promise=new Promise(((e,t)=>{n.end.resolve=e,n.end.reject=t})),(0,i.dC)((()=>{t((0,u.nr)(o.set("documentComparisonMode",f(f({},e),{},{completion:n})))),t(lt({referencePoints:[],autoCompare:e.autoCompare,isResultFetched:!1,currentTab:e.autoCompare?null:d.Q.documentA,documentKey:d.Q.documentA,previousViewportState:{zoomMode:o.zoomMode,zoomLevel:o.zoomLevel,scrollPosition:o.scrollPosition,currentPageIndex:o.currentPageIndex,pageSizes:o.pageSizes}}))})),a.emit("documentComparisonUI.start",e)}else if(o.documentComparisonMode){const{completion:e}=o.documentComparisonMode;try{e.start.resolve(),await e.end.promise,(0,i.dC)((()=>{t((0,u.nr)(o.set("documentComparisonMode",null).merge(s.previousViewportState))),t(lt(null))})),a.emit("documentComparisonUI.end")}catch(e){throw new r.p2(e.message)}}}}function lt(e){return{type:s.KA1,documentComparisonState:e}}function ct(e){return{type:s.D5x,a11yStatusMessage:e}}function ut(){return{type:s.JRS}}function dt(){return{type:s.Gox}}function pt(e){return{type:s.rpU,lastToolbarActionUsedKeyboard:e}}function ft(){return{type:s.MYU}}function ht(){return{type:s.mbD}}function mt(){return{type:s.wog}}function gt(){return{type:s.UL9}}function vt(e){return{type:s.IyB,instance:e}}function yt(e){return{type:s.eJ4,customUIStore:e}}const bt=()=>({type:s.qKG}),wt=e=>({type:s.oZW,multiAnnotationsUsingShortcut:e}),St=()=>({type:s.odo}),Et=e=>({type:s.FQb,annotationsIds:e}),Pt=e=>({type:s.bzW,groupId:e}),xt=(e,t)=>({type:s.b4I,annotationId:e,groupId:t}),Dt=e=>({type:s.tzG,customFontsReadableNames:e}),Ct=()=>({type:s.Vje}),kt=()=>({type:s.XTO})},14012:(e,t,n)=>{"use strict";n.d(t,{Bm:()=>p,qZ:()=>d,rJ:()=>m,sr:()=>f,uT:()=>h});var o=n(67366),r=n(25387),i=n(70006),a=n(96114),s=n(38858),l=n(63738),c=n(20234),u=n(92234);function d(e,t){return{type:r.BS3,reason:e,progress:t}}function p(){return{type:r.nmm}}function f(e){return{type:r.zZV,reason:e}}function h(e){return{type:r.Ty$,resolvePassword:e}}function m(e){let{attemptedUnlockViaModal:t,hasPassword:n,features:d,signatureFeatureAvailability:p,permissions:f,documentInfo:h,formJSON:m,annotationManager:g,bookmarkManager:v,formFieldManager:y,formFieldValueManager:b,commentManager:w,changeManager:S,minSearchQueryLength:E,documentHandle:P,allowedTileScales:x,pageKeys:D}=e;return(e,C)=>{const{searchState:k,documentHandle:A,features:O,signatureFeatureAvailability:T}=C();(0,o.dC)((()=>{x&&e(function(e){return{type:r.iZ1,allowedTileScales:e}}(x)),t&&e({type:r.hC8}),e(function(e){return{type:r.poO,hasPassword:e}}(n)),d&&0===O.size&&e((0,l.GL)(d)),p&&!T&&e((0,l.sY)(p)),e((0,s.at)(f)),A&&A!==P&&e({type:r.obk}),e((0,s.GO)(h,D)),m&&e((0,a.Qi)(m)),e((0,u.QQ)()),e(function(e){return{type:r.rxv,annotationManager:e}}(g)),e(function(e){return{type:r.Hrp,bookmarkManager:e}}(v)),e(function(e){return{type:r.oj5,formFieldManager:e}}(y)),e(function(e){return{type:r.GHc,formFieldValueManager:e}}(b)),null!=w&&e(function(e){return{type:r.UII,commentManager:e}}(w)),e(function(e){return{type:r.gbd,changeManager:e}}(S)),"number"==typeof E&&e((0,i.j8)(k.set("minSearchQueryLength",E))),e((0,c.kE)(P))}))}}},38151:(e,t,n)=>{"use strict";n.d(t,{$t:()=>A,C0:()=>x,FD:()=>g,Hv:()=>_,Ij:()=>C,Mq:()=>O,O2:()=>T,Ow:()=>y,PZ:()=>k,Pq:()=>D,RL:()=>v,SF:()=>P,Yg:()=>E,Zv:()=>w,gY:()=>p,lx:()=>F,qt:()=>m,rO:()=>j,sC:()=>b,u:()=>B,u8:()=>f,um:()=>L,uy:()=>M,v2:()=>h,yy:()=>S});var o=n(67366),r=n(25387),i=n(97413),a=n(30761),s=n(96114),l=n(72643),c=n(68218),u=n(34573),d=n(12671);const p=async(e,t)=>{const{backend:n,contentEditorSession:i}=t();i.sessionId>0&&await(null==n?void 0:n.contentEditorExit()),await(null==n?void 0:n.contentEditorEnter()),(0,o.dC)((()=>{e((0,u.fz)()),e({type:r.MGL})}))},f=async(e,t)=>{const{backend:n}=t();await(null==n?void 0:n.contentEditorExit()),(0,o.dC)((()=>{e({type:r.Qm9}),e(E(!1))}))};const h=(e,t,n,o,r)=>N(e,t,(e=>e.contentEditorSetTextBlockCursor(t,n,o,r))),m=(e,t,n,o,r)=>N(e,t,(e=>e.contentEditorInsertTextBlockString(t,n,o,r))),g=(e,t,n,o,r)=>N(e,t,(e=>e.contentEditorMoveTextBlockCursor(t,n,o,r))),v=(e,t,n,o)=>N(e,t,(e=>e.contentEditorDeleteTextBlockString(t,n,o))),y=(e,t,n,o)=>N(e,t,(e=>e.contentEditorSetTextBlockSelection(t,n,o))),b=(e,t,n,o,r,i)=>N(e,t,(e=>e.contentEditorSetTextBlockSelectionRange(t,n,o,r,i))),w=(e,t,n)=>N(e,t,(e=>e.contentEditorTextBlockUndo(t,n))),S=(e,t,n)=>N(e,t,(e=>e.contentEditorTextBlockRedo(t,n))),E=e=>({type:r.bOH,isVisible:e}),P=(e,t)=>({type:r.joZ,pageIndex:e,textBlockId:t}),x=(e,t)=>({type:r.xhM,pageIndex:e,textBlockId:t}),D=e=>{e({type:r.fQw})},C=(e,t)=>{e({type:r.Y4});const n=t().contentEditorSession;e(function(e){return async(t,n)=>{const{backend:o,features:r,annotations:l,isAPStreamRendered:c}=n();(0,i.k)(o),o.cancelRequests(),await o.contentEditorSaveAndReload(e);const u=await o.runPDFFormattingScriptsFromWidgets(l,null,c);await(0,a.jX)(t,n,{features:r}),u.length&&t((0,s.bt)({changes:u}))}}((0,l.Gp)(n))),e(f)},k=e=>{let{fixpointValue:t,newWidth:n}=e;return async(e,o)=>{const a=o(),{backend:s}=a;(0,i.k)(s);const{textBlockInteractionState:l}=a.contentEditorSession;if((null==l?void 0:l.state)!==c.FP.Selected)return;const{pageIndex:u,textBlockId:p}=l;e({type:r.ciU,pageIndex:u,textBlockId:p,fixpointValue:t,newWidth:n});const f=(0,c.aT)(u,p)(o());(0,i.k)(f),await s.contentEditorLayoutTextBlock(p,null,null,(0,d.hH)(f)).then((t=>e({type:r.VOt,pageIndex:u,textBlockId:p,updateInfo:t}))).catch()}},A=e=>{let{anchor:t,pageIndex:n=null,textBlockId:o=null,isKeyboardMove:a}=e;return async(e,s)=>{const l=s(),{backend:u}=l;if((0,i.k)(u),null===n||!o){const{textBlockInteractionState:e}=l.contentEditorSession;if(({pageIndex:n,textBlockId:o}=e),(null==e?void 0:e.state)===c.FP.Active)return}e({type:r.fLm,pageIndex:n,textBlockId:o,anchor:t,isKeyboardMove:a});const p=(0,c.aT)(n,o)(s());(0,i.k)(p),await u.contentEditorLayoutTextBlock(o,null,null,(0,d.hH)(p)).then((t=>e({type:r.VOt,pageIndex:n,textBlockId:o,updateInfo:t}))).catch()}},O=e=>(t,n)=>{const o=n(),{backend:a}=o;(0,i.k)(a);const{textBlockInteractionState:s}=o.contentEditorSession;(0,i.k)((null==s?void 0:s.state)===c.FP.Active);const l=(0,c.aT)(s.pageIndex,s.textBlockId)(o);if(l)if(l.selection)a.contentEditorTextBlockApplyFormat(s.textBlockId,null,e,(0,d.hH)(l)).then((e=>{t({type:r.VOt,pageIndex:s.pageIndex,textBlockId:s.textBlockId,updateInfo:e})}));else{let n=l.modificationsCharacterStyle.fontRef.faceRef;e.family&&(n=n.set("family",e.family)),null!=e.bold&&(n=n.setIn(["variant","bold"],e.bold)),null!=e.italic&&(n=n.setIn(["variant","italic"],e.italic)),t({type:r.Ebp,pageIndex:s.pageIndex,textBlockId:s.textBlockId,faceRef:n,color:e.color,size:e.size})}},T=async(e,t)=>{e(I());const{backend:n}=t();(0,i.k)(n);const o=await n.contentEditorGetAvailableFaces();e(R(o))},I=()=>({type:r.U7k}),F=(e,t)=>({type:r.Han,tooltipRect:e,fontFace:t}),M=e=>async t=>{new Promise((n=>{setTimeout((()=>{e.aborted||t({type:r.WmI}),n()}),100)}))},_=e=>({type:r.nI6,abortController:e}),R=e=>({type:r.ZgW,faceList:e}),N=(e,t,n)=>async(o,a)=>{const{backend:s}=a();(0,i.k)(s),o({type:r.HYy});const l=await n(s);o({type:r.VOt,pageIndex:e,textBlockId:t,updateInfo:l})},L=async(e,t)=>{const n=t(),{backend:a,contentEditorSession:s}=n;(0,i.k)(a);const{textBlockInteractionState:l}=s;(0,i.k)((null==l?void 0:l.state)===c.FP.Selected||(null==l?void 0:l.state)===c.FP.Active);const{pageIndex:u,textBlockId:p}=l,f=(0,c.aT)(u,p)(t());(0,i.k)(f);const h=(0,d.hH)(f);(0,o.dC)((()=>{e(y(u,p,"everything",h)),e(v(u,p,"forward",h)),e({type:r.snK,pageIndex:u,textBlockId:p})}))},B=e=>({type:r.teI,mode:e}),j=(e,t)=>async(n,a)=>{const{backend:s}=a();(0,i.k)(s),n({type:r.HYy});const l=await s.contentEditorCreateTextBlock(e);l.textBlock.modificationsCharacterStyle.fontRef.size=16;const{id:c,textBlock:{maxWidth:u,alignment:d,lineSpacingFactor:p,modificationsCharacterStyle:f}}=l,h=await s.contentEditorLayoutTextBlock(c,null,null,{maxWidth:u,alignment:d,lineSpacingFactor:p,modificationsCharacterStyle:f});(0,o.dC)((()=>{n({type:r.uo5,pageIndex:e,initialTextBlock:l,anchor:t.set("y",t.y-h.contentRect.offset.y/2)}),n({type:r.VOt,pageIndex:e,textBlockId:c,updateInfo:h})}))}},41194:(e,t,n)=>{"use strict";n.d(t,{Y:()=>l,e:()=>s});var o=n(50974),r=n(30761),i=n(25387),a=n(96114);function s(e,t,n,i){return async(s,l)=>{const{backend:c,features:u,pages:d}=l();try{(0,o.kG)(c),c.cancelRequests();const n=await c.signDocumentAndReload(e,t);if(await(0,r.jX)(s,l,{features:u,pageKeys:d.map((e=>e.pageKey))}),n&&"STANDALONE"===c.type){const e=await c.runPDFFormattingScripts([n],!1);e.length>0&&s((0,a.bt)({changes:e,isReloading:!0}))}}catch(e){return i(e)}l().eventEmitter.emit("document.change",[]),n()}}function l(e){return{type:i.lRe,digitalSignatures:e}}},20234:(e,t,n)=>{"use strict";n.d(t,{KY:()=>p,NV:()=>f,b_:()=>u,kE:()=>d});var o=n(50974),r=n(30761),i=n(25387),a=n(96114),s=n(2810),l=n(33320),c=n(18146);function u(e,t,n){return async(i,l)=>{const{backend:u,features:d,pages:p,annotations:f,isAPStreamRendered:m}=l();(0,o.kG)(u);try{const t=e.map(s.kg);u.cancelRequests(),await u.applyOperationsAndReload(t);const n=await u.runPDFFormattingScriptsFromWidgets(f,null,m);await(0,r.jX)(i,l,{features:d,pageKeys:h(p.map((e=>e.pageKey)),e,f.filter((e=>e instanceof c.Z)))}),n.length&&i((0,a.bt)({changes:n}))}catch(e){return n(e)}l().eventEmitter.emit("document.change",e),t()}}function d(e){return{type:i.S0t,documentHandle:e}}function p(e){return{type:i.YS$,isDocumentHandleOutdated:e}}function f(e,t){return async(n,i)=>{const{backend:s,features:l,annotations:c,isAPStreamRendered:u}=i();(0,o.kG)(s);try{s.cancelRequests(),await s.reloadDocument();const e=await s.runPDFFormattingScriptsFromWidgets(c,null,u);await(0,r.jX)(n,i,{features:l}),e.length&&n((0,a.bt)({changes:e}))}catch(e){return t(e)}i().eventEmitter.emit("document.change",[]),e()}}function h(e,t,n){return t.reduce(((e,t)=>{switch(t.type){case"addPage":return e.insert("beforePageIndex"in t?t.beforePageIndex:t.afterPageIndex+1,(0,l.C)());case"movePages":{const n=e.filter(((e,n)=>t.pageIndexes.includes(n)));return e.map(((e,n)=>t.pageIndexes.includes(n)?null:e)).splice("beforePageIndex"in t?t.beforePageIndex:t.afterPageIndex+1,0,...n.toArray()).filter((e=>e))}case"removePages":return e.filter(((e,n)=>!t.pageIndexes.includes(n)));case"keepPages":return e.filter(((e,n)=>t.pageIndexes.includes(n)));case"duplicatePages":return e.flatMap(((e,n)=>t.pageIndexes.includes(n)?[e,(0,l.C)()]:[e]));case"cropPages":case"rotatePages":case"flattenAnnotations":return e.map(((e,n)=>!t.pageIndexes||t.pageIndexes.includes(n)?(0,l.C)():e));case"applyRedactions":{const t=n.map((e=>e.pageIndex)).toSet();return e.map(((e,n)=>t.includes(n)?(0,l.C)():e))}case"updateMetadata":case"setPageLabel":return e;case"importDocument":if(t.treatImportedDocumentAsOnePage){const n="beforePageIndex"in t?t.beforePageIndex:t.afterPageIndex+1;return e.map(((e,t)=>t(0,l.C)()));default:throw new Error(`Operation ${t} is not implemented`)}}),e)}},32170:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i,o:()=>r});var o=n(25387);function r(e){return{type:o.Oh4,outline:e}}function i(e){return{type:o.Whn,level:e}}},96114:(e,t,n)=>{"use strict";n.d(t,{bt:()=>Z,kW:()=>U,zq:()=>T,TD:()=>M,Wh:()=>G,HE:()=>F,M$:()=>R,h4:()=>B,el:()=>L,ul:()=>K,yM:()=>W,xW:()=>I,xh:()=>j,Qi:()=>O,r$:()=>N,V6:()=>q,vK:()=>V,C2:()=>_});var o=n(67366),r=n(50974),i=n(35369),a=n(73935),s=n(82481),l=n(25387),c=n(2810),u=n(69939),d=n(86920),p=n(37676),f=n(16126),h=n(25644),m=n(97333),g=n(97528),v=n(35129),y=n(84121),b=n(76154),w=n(37756);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function E(e){for(var t=1;t(0,r.wp)(i.formatMessage(t,null==n?void 0:n.reduce(((e,t,n)=>E(E({},e),{},{[`arg${n}`]:t})),{})))),0)}var x=n(63738),D=n(20792),C=n(76192),k=n(95651),A=n(25904);function O(e){return{type:l.iJ2,formJSON:e}}function T(e){return{type:l.Ui_,formFieldValues:e}}function I(e){return{type:l.m3$,formFieldValues:e}}function F(e){return{type:l.u7V,formFieldValuesIds:e}}function M(e){return{type:l.zGM,formFields:e}}function _(e){return{type:l.Wyx,formFields:e}}function R(e){return{type:l.D_w,formFieldsIds:e}}function N(e){return{type:l.TYu,onWidgetCreationStartCallback:e}}function L(){return e=>{e((0,x.LE)(!0)),e((0,x.UF)(D.A.FORM_CREATOR))}}function B(){return e=>{e((0,x.LE)(!1)),e((0,x.XX)())}}function j(e,t){return(n,a)=>{const l=e.map((e=>new s.KD({name:e.name,value:e.value,optionIndexes:e.optionIndexes,isFitting:e.isFitting}))),c=(0,i.aV)(l),{backend:u,formFields:d,formFieldValueManager:p,annotations:h,viewportState:{zoomLevel:m}}=a();if((0,r.kG)(u),(0,r.kG)(p),g.Ei.PDF_JAVASCRIPT&&"STANDALONE"===u.type)n(K(c,t));else{const e=[];(0,o.dC)((()=>{c.forEach((t=>{let o;const a=new Promise((e=>{o=e}));e.push(a),(0,f.Ay)({getState:()=>({formFields:d,annotations:h,backend:u}),originalFormFields:(0,i.D5)({[t.name]:d.get(t.name)}),formFieldValues:(0,i.aV)(l),callback:e=>{if(!e.includes(t.name)){const e=d.get(t.name);(0,r.kG)(e);const o=e.annotationIds.reduce(((e,t)=>{const n=h.get(t);return n instanceof s.x_?e.push(n):e}),(0,i.aV)());if(e.multiLine){const r=(0,A.$Z)(o.first(),e.value,m);n(I((0,i.aV)([t.set("isFitting",r)])))}else n(I((0,i.aV)([t])))}},resolve:o}),p.updateObject(t)}))})),Promise.all(e).then((()=>{null==t||t()})).catch((e=>{throw e}))}}}let z=Promise.resolve();function K(e,t){return async(n,o)=>{const l=z;let c=()=>{};z=new Promise((function(e){c=e})),await l;try{const{backend:t}=o();if((0,r.kG)(t),"STANDALONE"!==t.type||!g.Ei.PDF_JAVASCRIPT)return;const l=await(0,m.Vs)(t.evalFormValuesActions(e),1e4),u=l.filter((e=>e.change_type===d.zR&&"pspdfkit/form-field-value"===e.object.type)),p=u.map((e=>e.object.name)),h=(0,i.aV)(u.map((e=>new s.KD({name:e.object.name,value:Array.isArray(e.object.value)?(0,i.aV)(e.object.value):e.object.value,optionIndexes:e.object.optionIndexes})))),v=e.map((e=>e.name)).toArray().filter((e=>p.indexOf(e)<0)),{formFields:y}=o(),b=(0,f.Qg)(y.filter(((e,t)=>v.indexOf(t)>=0))),w=y.filter((t=>e.find((e=>e.name===t.name))||b.find((e=>e.name===t.name))||p.includes(t.name))),S=e.map((e=>h.find((t=>t.name===e.name))||e)).concat(h.filter((t=>!e.find((e=>e.name===t.name)))));(0,f.Ay)({getState:o,originalFormFields:w,formFieldValues:S,callback:t=>{e.size>0&&(0,a.flushSync)((function(){n(I(e))})),b.size>0&&n(I(b)),n(Z({changes:l,unchangedFormFieldValues:t}))}})}catch(e){}finally{c()}null==t||t()}}function Z(e){let{changes:t,unchangedFormFieldValues:n=[],resolve:a,reject:s,isReloading:m=!1}=e;return(e,g)=>{const y=g(),{annotations:b,formFields:w,formFieldManager:S,backend:E,autoSaveMode:x}=y,D=y.formattedFormFieldValues;let k,A=(0,i.aV)(),O=y.editingFormFieldValues;(0,o.dC)((function(){null==E||E.setFormJSONUpdateBatchMode(!0).catch((e=>{null==s||s(e)})),A=(0,i.aV)().withMutations((n=>{k=D.withMutations((o=>{t.forEach((t=>{let{change_type:i,object:a}=t;switch(i){case d.uV:case d.zR:if("pspdfkit/form-field-value"===a.type){const e=(0,c.u9)(a);n.push(e),"string"==typeof a.formattedValue&&o.set(e.name,a.formattedValue),"string"==typeof a.editingValue&&(O=O.set(e.name,a.editingValue))}else if(a.type.startsWith("pspdfkit/form-field/")){if(!S)return;const t=(0,c.IN)(a.id,a,{permissions:a.permissions,group:a.group});w.has(t.name)?e(V(t)):e(U(t))}else try{const t=(0,c.vH)(a.id,a);b.has(t.id)?e((0,u.FG)(t)):e((0,u.$d)(t))}catch(e){(0,r.ZK)(`Form actions: unable to apply change of type "${i}"\n\n${a}\n\n${e.message}`)}break;case d.co:if(a.type.startsWith("pspdfkit/form-field/")){const t=w.get(a.name);t?e(G(t)):(0,r.ZK)(`Form actions: unable to find FormField to delete with id "${a.id}".`)}else{const t=b.get(a.id);t?e((0,u.hQ)(t)):(0,r.ZK)(`Form actions: unable to find Annotation to delete with id "${a.id}".`)}break;case d.D2:switch(a.type){case"pspdfkit/javascript/effects/alert":{const{message:e}=a;if(e.startsWith(f.$Y)){const t=e.split("[")[1].split("]"),n=t[1].split(f.as);P(y.locale,v.A.dateValidationBadFormat,[t[0],n[1]])}else if(e.startsWith(f.sh)){const t=e.split("[")[1].split("]");P(y.locale,v.A.numberValidationBadFormat,[t[0]])}else(0,r.wp)(e);break}case"pspdfkit/javascript/effects/print":e((0,h.S0)());break;case"pspdfkit/javascript/effects/launchURL":var s;(null===(s=y.onOpenURI)||void 0===s?void 0:s.call(y,a.url,!1))&&(a.newFrame?(0,p.Z)(a.url):(0,p.l)(a.url));break;case"pspdfkit/javascript/effects/mail":{if(!a.to)break;let e=`mailto:${Array.isArray(a.to)?a.to.join(","):a.to}?`;const t=[];if(a.subject&&t.push(`subject=${encodeURIComponent(a.subject)}`),a.cc){const e=Array.isArray(a.cc)?a.cc.map((e=>encodeURIComponent(e))).join(";"):encodeURIComponent(a.cc);t.push(`cc=${e}`)}if(a.bcc){const e=Array.isArray(a.bcc)?a.bcc.map((e=>encodeURIComponent(e))).join(";"):encodeURIComponent(a.bcc);t.push(`bcc=${e}`)}a.message&&t.push(`body=${encodeURIComponent(a.message)}`),e+=t.join("&"),(0,p.Z)(e);break}case"pspdfkit/javascript/effects/importIcon":break;default:(0,r.ZK)(`Form actions: side effect "${a.type}" not supported.`)}break;case d.Q:break;default:(0,r.ZK)(`Form actions: change type "${i}" not supported.`)}}))}))}))}));const T=null==E?void 0:E.setFormJSONUpdateBatchMode(!1);let F=[];if(A.size>0){e(I(A)),k.size>0&&e(function(e){return{type:l.VK7,formattedFormFieldValues:e}}(k)),O.size>0&&e(function(e){return{type:l.yET,editingFormFieldValues:e}}(O));const{formFieldValueManager:t}=g();(0,r.kG)(t);let o=(0,i.l4)();F=A.filter((e=>!n.includes(e.name))).map((e=>{if(t.updateObject(e),m){const t=w.get(e.name);if(t){const e=t.annotationIds.map((e=>b.get(e))).filter(Boolean);o=o.concat((0,i.l4)(e.map((e=>e.pageIndex))))}}return x===C.u.DISABLED?Promise.resolve():t.ensureObjectSaved(e)})).toArray(),m&&o.size>0&&e({type:l.TG1,pageIndexes:o})}Promise.all([T,...F]).then((()=>{null==a||a()})).catch((e=>{null==s||s(e)}))}}function U(e){return(t,n)=>{const{formFields:o,formFieldManager:a}=n();if(o.get(e.name))throw new r.p2(`Cannot create form field: a form field with the name "${e.name}" already exists. Form field names must be unique.`);t(M((0,i.aV)([e]))),null==a||a.createObject(e)}}function V(e){return(t,n)=>{var o;const{formFields:a,annotations:s,backend:l}=n(),c=a.find((t=>t.id===e.id||t.name===e.name));if(!c)return void(0,r.ZK)("A form field that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this form field was skipped.");if(c.readOnly!==e.readOnly){const t=e.annotationIds.map((e=>s.get(e))).filter(Boolean);(0,k.CU)({formFields:a,backend:l},t,e)}const u=e.merge({value:c.value,values:c.values});t(_((0,i.aV)([u]))),null===(o=n().formFieldManager)||void 0===o||o.updateObject(u)}}function G(e){return(t,n)=>{var o;const r=n(),a=e.annotationIds.map((e=>r.annotations.get(e))).filter(Boolean);a.isEmpty()||(t((0,u.aF)(a.map((e=>null==e?void 0:e.id)).toSet())),a.forEach((e=>{var t;null===(t=r.annotationManager)||void 0===t||t.deleteObject(e)}))),t(R((0,i.l4)([e.id]))),null===(o=n().formFieldManager)||void 0===o||o.deleteObject(e)}}function W(e,t){return(n,o)=>{const i=H(o(),e,t).map((e=>{const{name:t}=e;let n;return e instanceof s.$o||e instanceof s.XQ?n=e.defaultValue:e instanceof s.Dz||e instanceof s.rF?n=e.defaultValues:e instanceof s.R0?n=null:(0,r.kG)(!1),new s.KD({name:t,value:n})}));g.Ei.PDF_JAVASCRIPT&&n(K(i)),n(I(i)),i.forEach((e=>{var t;null===(t=o().formFieldValueManager)||void 0===t||t.updateObject(e)}))}}function q(e){return(t,n)=>{var o;const a=n();let l,c=!1;if(null===(o=a.formFieldValueManager)||void 0===o||o.eventEmitter.emit("willSubmit",{preventDefault:()=>c=!0}),c)return;const{uri:u,fields:d,includeExclude:p,exportFormat:f,getMethod:h,submitPDF:m,xfdf:g}=e,v=(0,i.D5)(H(a,d,p).filter((e=>!e.noExport)).map((e=>{const{name:t}=e;return[t,e instanceof s.R0?null:void 0===e.value?e.values:e.value]})));if(f){const e=function(e){const t=[];return e.forEach(((e,n)=>{const o=encodeURIComponent(n);"string"==typeof e?t.push(`${o}=${encodeURIComponent(e)}`):null===e?t.push(`${o}=`):e instanceof i.aV&&e.forEach((e=>{t.push(`${o}[]=${encodeURIComponent(e)}`)}))})),t.join("&")}(v);if(h)l=Promise.resolve({uri:`${u}?${e}`,fetchOptions:{method:"GET"}});else{const t={headers:new Headers({"Content-Type":"application/x-www-form-urlencoded"}),method:"POST",body:e};l=Promise.resolve({uri:u,fetchOptions:t})}}else{if(!m)return g?void(0,r.vU)("XFDF Form submission not supported yet."):void(0,r.vU)("FDF Form submission not supported yet.");var y;l=null===(y=a.backend)||void 0===y?void 0:y.exportPDF({flatten:!0,incremental:!1}).then((e=>{const t={headers:new Headers({"Content-Type":"application/pdf"}),method:"POST",body:e};return{uri:u,fetchOptions:t}}))}l.then((e=>{let{uri:t,fetchOptions:n}=e;fetch(t,n).then((e=>{var t;null===(t=a.formFieldValueManager)||void 0===t||t.eventEmitter.emit("didSubmit",{response:e})}))})).catch((e=>{var t;e(`Form submission failed with the following error:\n\n${e}`),null===(t=a.formFieldValueManager)||void 0===t||t.eventEmitter.emit("didSubmit",{error:e})}))}}function H(e,t,n){let o;const r=e.formFields.keySeq().toSet();return o=t?n?r.subtract(t):r.intersect(t):r,e.get("formFields").valueSeq().filter((e=>o.includes(e.name))).toList()}},92234:(e,t,n)=>{"use strict";n.d(t,{KX:()=>w,QQ:()=>S,Yw:()=>b,ou:()=>P,pB:()=>y,z9:()=>E});var o=n(84121),r=n(35369),i=n(50974),a=n(25387),s=n(69939),l=n(39728),c=n(32125),u=n(95651),d=n(67699),p=n(51333),f=n(33320),h=n(96114);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;t{const{historyChangeContext:r}=o();n(v(e)),t(),n(v(r))}}function b(){return(e,t)=>{const{undoActions:n,annotations:o,isHistoryEnabled:m}=t();if(!m)throw new i.p2("Cannot undo: the Undo Redo history API is disabled.");if(0===n.size)throw new i.p2("Cannot undo: the Undo actions history is empty.");const v=n.last(),b=(0,l.kM)(v,o);e(y(d.j.HISTORY,(()=>{"create"===v.type?e(function(e){return function(t,n){const{historyIdsMap:o,backend:i}=n();let l=e.payload;const c=e.formField;if(e.restoreAPStream&&"STANDALONE"===(null==i?void 0:i.type)&&(l=l.set("APStreamCache",{attach:o.get(l.id)||l.id})),t((0,s.$d)(l)),c&&t((0,h.kW)(c)),l.isCommentThreadRoot&&e.comments){e.comments.map((t=>t.set("rootId",e.payload.id).set("id",(0,f.C)()))).forEach((e=>{t((0,p.Jr)(e))}))}e.restoreAPStream?t((0,s.ug)((0,r.D5)({[l.id]:l.pageIndex}))):t((0,s.GI)((0,r.D5)({[l.id]:l.pageIndex})));const u={type:"delete",payload:{id:l.id}};t({type:a.bVL,nextRedoAction:u})}}(v)):"update"===v.type?e(function(e){return function(t,n){const{annotations:o,historyIdsMap:d,backend:p}=n();let f=o.get(e.payload.id);!f&&e.deletedAnnotation&&(f=e.deletedAnnotation.set("id",(0,u.xc)()),t((0,s.$d)(f))),(0,i.kG)(f instanceof c.Z);let h=f.merge(g(g({},e.payload),{},{pdfObjectId:f.pdfObjectId,id:f.id}));e.restoreAPStream&&"STANDALONE"===(null==p?void 0:p.type)&&(h=h.set("APStreamCache",{attach:d.get(h.id)||h.id})),t((0,s.FG)(h)),e.restoreAPStream&&t((0,s.ug)((0,r.D5)({[h.id]:h.pageIndex})));const m={type:"update",payload:g(g({},(0,l.mZ)(h,f)),{},{id:f.id})};t({type:a.bVL,nextRedoAction:m}),t({type:a.tC1,oldId:d.get(e.payload.id)||e.payload.id,newId:f.id})}}(v)):"delete"===v.type?e(function(e){return function(t,n){const o=n(),{annotations:i,commentThreads:d,comments:p,historyIdsMap:f}=o,m=i.get(e.payload.id);if(!(m instanceof c.Z))return;t((0,s.hQ)(m));const g=(0,u.xc)(),v=(0,l.Yr)(m,g,d,p),y=(0,l.ax)(m,g,o);y&&t((0,h.M$)((0,r.l4)([y.id])));const b={type:"create",payload:m.merge(e.payload).set("id",g),comments:v,formField:y};t({type:a.bVL,nextRedoAction:b,oldId:e.payload.id}),t({type:a.tC1,oldId:f.get(e.payload.id)||e.payload.id,newId:g})}}(v)):(0,i.Rz)(v.type)})));const{annotations:w,eventEmitter:S}=t(),E=(0,l.FA)(v,w,v.payload.id);S.emit("history.undo",{before:b,after:E}),S.emit("history.change",{before:b,after:E,action:"undo"})}}function w(){return(e,t)=>{const{redoActions:n,annotations:o,isHistoryEnabled:r}=t();if(!r)throw new i.p2("Cannot redo: the Undo Redo history API is disabled.");if(0===n.size)throw new i.p2("Cannot redo: the Redo actions history is empty.");const m=n.last(),v=(0,l.kM)(m,o);e(y(d.j.HISTORY,(()=>{"create"===m.type?e(function(e){return t=>{const n=e.payload,o=e.formField;if(t((0,s.$d)(n)),n.isCommentThreadRoot&&e.comments){e.comments.map((e=>e.set("rootId",n.id).set("id",(0,f.C)()))).forEach((e=>{t((0,p.Jr)(e))}))}o&&t((0,h.kW)(o));const r={type:"delete",payload:{id:n.id}};t({type:a.iwn,nextUndoAction:r})}}(m)):"update"===m.type?e(function(e){return(t,n)=>{const{annotations:o}=n(),r=o.get(e.payload.id);(0,i.kG)(r instanceof c.Z);const d=r.merge(g(g({},e.payload),{},{id:r.id})),p=(0,u.pe)(n,r,(()=>{t((0,s.FG)(d))})),f={type:"update",payload:(0,l.mZ)(d,r),restoreAPStream:p};t({type:a.iwn,nextUndoAction:f})}}(m)):"delete"===m.type&&e(function(e){return(t,n)=>{const o=n(),{historyIdsMap:r,annotations:d,commentThreads:p,comments:f}=o,h=d.get(e.payload.id);(0,i.kG)(h instanceof c.Z);const m=(0,u.pe)(n,h,(()=>{t((0,s.hQ)(h))})),g=(0,u.xc)(),v=(0,l.Yr)(h,g,p,f),y=(0,l.ax)(h,g,o),b={type:"create",payload:h.set("id",g),restoreAPStream:m,comments:v,formField:y};t({type:a.iwn,nextUndoAction:b,oldId:e.payload.id}),t({type:a.tC1,oldId:r.get(e.payload.id)||e.payload.id,newId:g})}}(m))})));const{annotations:b,eventEmitter:w}=t(),S=(0,l.FA)(m,b,m.payload.id);w.emit("history.redo",{before:v,after:S}),w.emit("history.change",{before:v,after:S,action:"redo"})}}function S(){return(e,t)=>{e({type:a._Qf});const{backend:n,eventEmitter:o}=t();"STANDALONE"===(null==n?void 0:n.type)&&n.clearAPStreamCache(),o.emit("history.clear")}}function E(){return{type:a._33}}function P(){return{type:a.wG7}}},44763:(e,t,n)=>{"use strict";n.d(t,{C0:()=>h,Ik:()=>l,Se:()=>u,U7:()=>f,VO:()=>c,Xh:()=>d,eO:()=>s,v9:()=>p});var o=n(50974),r=n(30570),i=n(63738),a=n(25387);function s(e){return{type:a.$8O,measurementToolState:e}}function l(e){return{type:a.UP4,hintLines:e}}function c(e){return{type:a.Zt9,secondaryMeasurementUnit:e}}function u(e){return{type:a.VNu,activeMeasurementScale:e}}function d(e){return{type:a.wgG,isCalibratingScale:e}}const p=e=>async(t,n)=>{const r=n();(0,o.kG)(r.backend);const{backend:i,secondaryMeasurementUnit:a}=r;try{e&&(await(null==i?void 0:i.setSecondaryMeasurementUnit(e)),t(c(e))),a&&!e&&(await(null==i?void 0:i.setSecondaryMeasurementUnit(null)),t(c(null)))}catch(e){(0,o.ZK)(`Failed to set secondary measurement unit: ${e}.`),t(c(a))}},f=(e,t)=>async(n,a)=>{const s=a();(0,o.kG)(s.backend);const{backend:l,measurementScales:c}=s,u="STANDALONE"===l.type;(0,o.kG)(c);const{added:d,deleted:p}=(0,r.Rc)(c,e),f=p.map((async e=>{u&&await(null==l?void 0:l.removeMeasurementScale(e));(null==t?void 0:t.find((t=>t.prevScale===e)))||await(0,r.fH)({deletedScale:e,getState:a,dispatch:n})})),h=d.map((async e=>{u&&await(null==l?void 0:l.addMeasurementScale(e))})),m=null==t?void 0:t.map((async t=>{await(0,r.Hg)({scale:e[t.index],oldScale:t.prevScale,getState:a,dispatch:n})}));Promise.all([f,h,m]).then((async()=>{u||(d.length>0?await(null==l?void 0:l.addMeasurementScale(d[0])):p.length>0&&await(null==l?void 0:l.removeMeasurementScale(p[0]))),n((0,i.RN)(e))}))},h=e=>async(t,n)=>{const r=n();(0,o.kG)(r.backend);const{backend:a,measurementScales:s}=r;await(null==a?void 0:a.addMeasurementScale(e)),t((0,i.RN)(s?[...s,e]:[e]))}},3219:(e,t,n)=>{"use strict";n.d(t,{IT:()=>a,Ic:()=>p,Pt:()=>E,U1:()=>b,YA:()=>s,Yr:()=>S,_R:()=>g,ac:()=>P,du:()=>y,dx:()=>d,fz:()=>i,kN:()=>c,kr:()=>h,lO:()=>v,lt:()=>l,nr:()=>f,vG:()=>m,vP:()=>u,vc:()=>w});var o=n(25387),r=n(51333);const i=()=>({type:o.wtk}),a=()=>({type:o.mE7}),s=e=>({type:o.RxB,pageIndex:e}),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:o.mLh,scrollPosition:e,lastScrollUsingKeyboard:t}},c=(e,t)=>({type:o.g4f,pageIndex:e,rect:t}),u=(e,t)=>({type:o.Lyo,pageIndex:e,rect:t});function d(e,t){return n=>{n({type:o.xYE,viewportRect:e,isTriggeredByOrientationChange:t}),n((0,r.$z)())}}const p=(e,t)=>({type:o.syg,zoomLevel:e,scrollPosition:t}),f=e=>({type:o.ZGb,viewportState:e}),h=()=>({type:o.UFs}),m=()=>({type:o.RCc}),g=()=>({type:o.MfE}),v=()=>({type:o.BWS}),y=()=>({type:o.QU3}),b=e=>({type:o.lD1,degCW:e}),w=()=>({type:o.kRo}),S=()=>({type:o.UFK}),E=e=>({type:o.D1d,width:e}),P=e=>({type:o.WsN,shouldDisable:e})},38858:(e,t,n)=>{"use strict";n.d(t,{GO:()=>r,Lv:()=>a,at:()=>s,uM:()=>i});var o=n(25387);function r(e,t){return{type:o.ME7,payload:e,pageKeys:t}}function i(e){return{type:o.dCo,payload:e}}const a=(e,t)=>({type:o.GZZ,pageIndex:e,textLines:t});function s(e){return{type:o.fnw,backendPermissions:e}}},25644:(e,t,n)=>{"use strict";n.d(t,{xF:()=>T,WQ:()=>O,S0:()=>F});var o=n(35369),r=n(50974),i=n(91859),a=n(80440),s=n(82481),l=n(36095);const c=l.Ni;function u(e,t,n){const o=i.nJ[n];let r=o>=i.nJ[a.g.LOW]&&c?i.nJ[a.g.MEDIUM]:o;t||(r=i.nJ[a.g.MEDIUM]);let l=e.scale(r).floor();return l.width>i.Qr&&l.width>l.height&&(l=new s.$u({width:i.Qr,height:Math.round(i.Qr*l.height/l.width)})),l.height>i.Qr&&l.height>l.width&&(l=new s.$u({width:Math.round(i.Qr*l.width/l.height),height:i.Qr})),[l,r]}const d=e=>{const t=e.scale(i.Ui);return new s.$u({width:Math.ceil(t.width),height:Math.floor(t.height)})};function p(e,t,n,o){const a=e.ownerDocument,l=a.createElement("div");l.id="print";const c=a.createElement("style");c.textContent=function(e){const t=`\n @page {\n size: ${e.width}pt ${e.height}pt;\n }\n\n \n @page {\n margin: 0;\n }`;return`\n @media print {\n \n * {\n ${f()}\n padding: 0 !important;\n margin: 0 !important;\n box-sizing: initial !important;\n display: none !important;\n visibility: hidden !important;\n }\n\n html, body {\n ${f()}\n height: 100% !important;\n width: 100% !important;\n display: block !important;\n visibility: visible !important;\n }\n\n \n\n body {\n background: transparent none !important;\n }\n\n #print, #print-container {\n ${f()}\n display: block !important;\n visibility: visible !important;\n height: 100% !important;\n }\n\n #print-container > div {\n ${f()}\n display: block !important;\n visibility: visible !important;\n position: relative !important;\n top: 0 !important;\n left: 0 !important;\n width: 1px !important;\n height: 1px !important;\n overflow: visible !important;\n page-break-after: always !important;\n page-break-inside: avoid !important;\n }\n\n #print-container canvas {\n ${f()}\n display: block !important;\n visibility: visible !important;\n }\n\n \n #print-container > .rotate90 {\n ${f()}\n display: block !important;\n visibility: visible !important;\n transform: rotate(90deg) !important;\n }\n\n \n #print-container > .rotateNegative90 {\n ${f()}\n display: block !important;\n visibility: visible !important;\n transform: translateY(${Math.abs(e.height-e.width)}pt) rotate(-90deg) !important;\n }\n\n \n @-moz-document url-prefix() {\n #print-container > .rotateNegative90 , #print-container > .rotate90 {\n margin-bottom: ${Math.abs(e.height-e.width)}pt !important;\n }\n }\n\n\n\n\n ${t}\n `}(function(e){const t=e.first();if(!t)return new s.$u({width:i.zA,height:i._2});let n=!1;const o=e.reduce(((e,t)=>{let{pageSize:o}=t;return o.width{const{rotation:r}=n.get(t)||{},i=a.createElement("div");if(i.classList.add("page"),o){e.width>e.height&&(1===r?i.classList.add("rotateNegative90"):i.classList.add("rotate90"))}i.appendChild(e),u.appendChild(i)})),l.appendChild(c),l.appendChild(u),e.appendChild(l),()=>{e.removeChild(l)}}function f(){return"animation: none 0s ease 0s 1 normal none running !important;\nbackface-visibility: visible !important;\nbackground: transparent none repeat 0 0/auto auto padding-box border-box scroll !important;\nborder: medium none currentColor !important;\nborder-collapse: separate !important;\nborder-image: none !important;\nborder-radius: 0 !important;\nborder-spacing: 0 !important;\nbottom: auto !important;\nbox-shadow: none !important;\nbox-sizing: content-box !important;\ncaption-side: top !important;\nclear: none !important;\nclip: auto !important;\ncolor: #000 !important;\ncolumns: auto !important;\ncolumn-count: auto !important;\ncolumn-fill: balance !important;\ncolumn-gap: normal !important;\ncolumn-rule: medium none currentColor !important;\ncolumn-span: 1 !important;\ncolumn-width: auto !important;\ncontent: normal !important;\ncounter-increment: none !important;\ncounter-reset: none !important;\ncursor: auto !important;\ndirection: ltr !important;\ndisplay: inline !important;\nempty-cells: show !important;\nfloat: none !important;\nfont-family: serif !important;\nfont-size: medium !important;\nfont-style: normal !important;\nfont-variant: normal !important;\nfont-weight: 400 !important;\nfont-stretch: normal !important;\nline-height: normal !important;\nheight: auto !important;\nhyphens: none !important;\nleft: auto !important;\nletter-spacing: normal !important;\nlist-style: disc outside none !important;\nmargin: 0 !important;\nmax-height: none !important;\nmax-width: none !important;\nmin-height: 0 !important;\nmin-width: 0 !important;\nopacity: 1 !important;\norphans: 2 !important;\noutline: medium none invert !important;\noverflow: visible !important;\noverflow-x: visible !important;\noverflow-y: visible !important;\npadding: 0 !important;\npage-break-after: auto !important;\npage-break-before: auto !important;\npage-break-inside: auto !important;\nperspective: none !important;\nperspective-origin: 50% 50% !important;\nposition: static !important;\nright: auto !important;\ntab-size: 8 !important;\ntable-layout: auto !important;\ntext-align: left !important;\ntext-align-last: auto !important;\ntext-decoration: none !important;\ntext-indent: 0 !important;\ntext-shadow: none !important;\ntext-transform: none !important;\ntop: auto !important;\ntransform: none !important;\ntransform-origin: 50% 50% 0 !important;\ntransform-style: flat !important;\ntransition: none 0s ease 0s !important;\nunicode-bidi: normal !important;\nvertical-align: baseline !important;\nvisibility: visible !important;\nwhite-space: normal !important;\nwidows: 2 !important;\nwidth: auto !important;\nword-spacing: normal !important;\nz-index: auto !important;\nall-initial !important;"}n(75376);var h=n(63738),m=n(16126),g=n(55615),v=n(95651),y=n(39511),b=n(97413);const w={macos:{blink:!0,webkit:!0},windows:{blink:!0,trident:!0},ios:{webkit:!0},android:{},linux:{blink:!0},unknown:{}};let S=null,E=null,P=null,x=null;function D(){P&&(clearTimeout(P),P=null),x&&(clearTimeout(x),x=null),S&&S.parentNode&&(S.parentNode.removeChild(S),S=null),E&&E()}var C=n(25387),k=n(19815);function A(){return{type:C.skc}}function O(){return{type:C.snh}}function T(){return{type:C._uU}}function I(e){const t="number"==typeof e?e:null;return{type:C.qV6,currentPage:t}}function F(){let{mode:e,excludeAnnotations:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(n,o)=>{e||(e=o().printMode);return(e===y.X.DOM?_:R)(n,o,t)}}let M=()=>{};async function _(e,t,n){e((0,h.X2)()),e(I(0)),e(A());const r=[];let i=t(),a=[];function c(){a.forEach((e=>{e()})),a=[]}M(),M=c;for(const{pageIndex:p,pageSize:h}of i.pages){if(!t().isPrinting)return M(),M=()=>{},void e(I(null));const[g,S]=u(h,(0,k.jb)(i),i.printQuality);try{var f;await(null===(f=i.annotationManager)||void 0===f?void 0:f.loadAnnotationsForPageIndex(p)),i=t();const c=i.pages.get(p);let u;if((0,b.k)(c&&i.backend),n)u=i.backend.renderTile(p,g,new s.UL({width:g.width,height:g.height}),!0,!0).promise;else{var y,w;const{annotationIds:e}=c,t=e.map((e=>i.annotations.get(e))).filter(Boolean).filter((e=>(0,v.x2)(e)&&(0,v.d)(e)&&!(e instanceof s.Jn||e instanceof s.On&&i.commentThreads.has(e.id)))).toList(),n=i.formFields.filter((e=>e.annotationIds.some((e=>{const t=i.annotations.get(e);return!(!t||t.pageIndex!==p)})))),r=(0,m.Qg)(n),a=t.reduce(((e,t)=>e.merge((0,v.Dc)(i,t))),(0,o.D5)()),l=null===(y=i.digitalSignatures)||void 0===y||null===(w=y.signatures)||void 0===w?void 0:w.filter((e=>n.some((t=>{let{name:n}=t;return n===e.signatureFormFQN}))));u=i.backend.renderTile(p,g,new s.UL({width:g.width,height:g.height}),!0,!0,{annotations:t,formFieldValues:r,attachments:a,signatures:l,formFields:n.toList()}).promise}let{element:E,release:P}=await u;if(a.push(P),"IMG"===E.nodeName){const e=E,t=document.createElement("canvas");t.width=g.width,t.height=g.height;const n=t.getContext("2d");(0,b.k)(n),null==n||n.drawImage(e,0,0),E=t}const{renderPageCallback:x}=i;if("function"==typeof x){const e=E.getContext("2d");null==e||e.scale(S,S),x(e,p,h)}const D=l.G6?h:d(h);E.style.cssText=`width: ${D.width}px !important;\nheight: ${D.height}px !important; display: none; filter: none; ${l.vU?"border: 1px solid transparent !important":""}`,r.push(E),e(I(p+1))}catch(e){throw c(),e}}try{(0,b.k)(document.body,"Printing requires a `` tag in the main HTML layout.");const{pages:t}=i,n=function(e){let t;for(const[n,{pageSize:o}]of e.entries()){const e=o.width>o.height?"landscape":"portrait";if(0!==n){if(e!==t)return!0}else t=e}return!1}(t),o=p(document.body,r,t,n);M=()=>{c(),o()},await(S=()=>{if((0,g.il)(),window.focus(),l.b5){let e=!1;const t=()=>{e=!0,window.focus()},n=()=>{e=!1},o=()=>{e||(window.removeEventListener("focus",o),window.removeEventListener("beforeprint",t),window.removeEventListener("afterprint",n),M(),M=()=>{})};window.addEventListener("focus",o),window.addEventListener("beforeprint",t),window.addEventListener("afterprint",n)}window.print()},E=()=>{e((0,h.Zg)()),e(O()),e(I(null))},new Promise((e=>{const t=Date.now();setTimeout((()=>{S(),E();const n=Date.now()-t>500?25:18e4;setTimeout(e,n)}))})))}catch(e){throw e}finally{l.b5||(M(),M=()=>{})}var S,E}async function R(e,t,n){const o=t().backend;if((0,b.k)(o),!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.By,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.SR,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:navigator.plugins;const o=w[e].hasOwnProperty(t);let r="ios"===e;const i=/pdf/i;for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:l.SR,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((async(o,r)=>{const i=12e4;D();const a=document.documentElement;(0,b.k)(a,"Could not access document.documentElement");const s=e=>{e.dataset.pspdfkitPrint="true",e.style.position="absolute",e.style.bottom="0px",e.style.left="0px",e.style.width="0px",e.style.height="0px",e.style.border="none",e.setAttribute("type","application/pdf")},{promise:l,revoke:c}=e.generatePDFObjectURL({includeComments:!1,saveForPrinting:!0,excludeAnnotations:n});E=c;const u=await l;if("trident"===t){S=document.createElement("embed"),S.setAttribute("src",u),s(S),a.appendChild(S),S.focus();const e=Date.now();!function t(){const n=document.querySelector("embed[data-pspdfkit-print=true]");(0,b.k)(n,"element not found"),Date.now()-e>3e4&&(c(),r(new Error("timeout")));try{n.print(),o(),P=setTimeout(D,i)}catch(e){x=setTimeout(t,500)}}()}else try{S=document.createElement("iframe"),S.setAttribute("src",u),S.setAttribute("aria-hidden","true"),s(S),S.onload=()=>{(0,b.k)(S,"iframe.onload called without element"),(0,b.k)(S instanceof HTMLIFrameElement,"element must be of type iframe");const e=S.contentWindow;if("webkit"===t){const t=setInterval((()=>{var n;"about:blank"!==(null==e?void 0:e.location.href)&&"complete"===(null==e?void 0:e.document.readyState)&&(clearInterval(t),null===(n=S)||void 0===n||n.focus(),null==e||e.print(),o(),P=setTimeout(D,i))}),100);setTimeout((()=>{clearInterval(t),r("Print failed: the document is taking too long to prepare"),D()}),5e3)}else S.focus(),null==e||e.print(),o(),P=setTimeout(D,i)},a.appendChild(S)}catch(e){r(e),D()}}))}(o,void 0,n),e(O())}catch(t){e(O())}}}},24852:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});var o=n(50974),r=n(30761),i=n(18146),a=n(33320);function s(e,t){return async(n,i)=>{const{backend:a,features:s}=i();try{(0,o.kG)(a),a.cancelRequests(),await a.applyRedactionsAndReload(),await(0,r.jX)(n,i,{features:s,pageKeys:l(i())})}catch(e){return t(e)}i().eventEmitter.emit("document.change",[]),e()}}function l(e){const{pages:t,annotations:n}=e,o=n.filter((e=>e instanceof i.Z)).map((e=>e.pageIndex)).toSet();return t.map((e=>o.includes(e.pageIndex)?(0,a.C)():e.pageKey))}},70006:(e,t,n)=>{"use strict";n.d(t,{M0:()=>d,Sc:()=>p,Xe:()=>s,_8:()=>r,ct:()=>l,dZ:()=>a,j8:()=>f,jL:()=>i,nJ:()=>u,t2:()=>h,tB:()=>c});var o=n(25387);function r(e){return{type:o.FH6,term:e}}function i(){return{type:o.$Jy}}function a(){return{type:o.gIV}}function s(){return{type:o.$hO}}function l(){return{type:o._AY}}function c(){return{type:o.Ifu}}function u(){return{type:o.nFn}}function d(e){return{type:o.F6q,isLoading:e}}function p(e){return{type:o.qZT,results:e}}function f(e){return{type:o.p1u,state:e}}function h(e){return{type:o.esN,provider:e}}},34573:(e,t,n)=>{"use strict";n.d(t,{Ab:()=>C,BO:()=>D,Df:()=>T,FP:()=>w,IP:()=>_,J4:()=>A,Oc:()=>N,Q2:()=>R,Sb:()=>F,VR:()=>I,Y1:()=>O,_:()=>K,_3:()=>L,d5:()=>E,fz:()=>k,mg:()=>j,mv:()=>B,oX:()=>M,td:()=>P,tu:()=>Z,vR:()=>S});var o=n(67366),r=n(35369),i=n(50974),a=n(82481),s=n(18803),l=n(19815),c=n(95651),u=n(51333),d=n(69939),p=n(75237),f=n(68382),h=n(25387),m=n(49177),g=n(61631),v=n(62164),y=n(91039),b=n(44763);const w=(e,t)=>n=>{n((0,u.Dm)()),n(((e,t)=>({type:h.f3N,textRange:e,inlineTextMarkupToolbar:t}))(e,t))},S=()=>(e,t)=>{(0,s.a7)(t().frameWindow),e({type:h.MOe})},E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.l4)(),t=arguments.length>1?arguments[1]:void 0;return{type:h._fK,newSelectedAnnotationsIds:e,annotationClass:t}},P=e=>(t,n)=>{const{annotations:o,selectedAnnotationIds:i}=n(),a=i.reduce(((e,t)=>{const n=o.get(t);return n?e.push(n):e}),(0,r.aV)());t(x(a)),t(E((0,r.l4)(),e))},x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.aV)(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,r.aV)(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,r.aV)();return(o,r)=>{const i=r().currentItemPreset;e.forEach((e=>{e&&o((0,d.hQ)(e)),e&&!p.ZP[i]&&o((0,d.sF)(e.id))})),t.forEach((e=>{o((0,d.$d)(e)),i&&!p.ZP[i]&&o((0,d.pZ)(e.id,i))})),n.forEach((e=>{o((0,d.uk)(e))}))}},D=e=>(t,n)=>{const o=n();if(!o.currentTextSelection)return t(P(e)),void t(S());const i=o.annotations.filter((e=>o.selectedAnnotationIds.has(e.id))).mapEntries((e=>{let[,t]=e;return[null!=t.pageIndex?t.pageIndex:o.viewportState.currentPageIndex,null!=t.pageIndex?t:t.set("pageIndex",o.viewportState.currentPageIndex)]})),a=(0,m.Bx)(o,i,e),s=i.reduce(((e,t)=>a.find((e=>e.id===t.id))?e:e.push(t)),(0,r.aV)()),l=a.filter((e=>!o.selectedAnnotationIds.has(e.id))),c=a.filter((e=>o.selectedAnnotationIds.has(e.id)&&!e.equals(i.get(e.pageIndex))));t(x(s,l,c));const u=(0,r.l4)(a.map((e=>e.id)));t(E(u,e))},C=()=>(e,t)=>{const n=t();n.selectedAnnotationIds.toSeq().map((e=>n.annotations.get(e))).filter(Boolean).filter((e=>e instanceof a.gd?!e.text.value||""===e.text.value:(e instanceof a.Hi||e instanceof a.om)&&(!e.points||e.points.size<=1))).forEach((t=>{e((0,d.hQ)(t))}))},k=()=>(e,t)=>{var n;(0,s.a7)(t().frameWindow),(0,o.dC)((()=>{e((0,u.Dm)()),e(C()),e((0,d.i0)()),e({type:h.MOe}),e({type:h.a33}),e((0,u.$z)()),e(z(null)),e((0,b.Ik)(null))})),null===(n=t().annotationManager)||void 0===n||n.autoSave()},A=(e,t)=>(n,o)=>{const r=o(),c=r.annotations.filter(((t,n)=>e.includes(n))),d=(0,l.ix)(r),p=c.some((e=>e instanceof a.x_));(0,i.kG)(!p||d,"Widget annotations cannot be selected without the corresponding license feature nor without instant enabled.");const f=c.map((e=>e.id)).toSet();n((0,u.Dm)()),(0,s.a7)(r.frameWindow);const m=f.find((e=>r.commentThreads.has(e)));if(m){const e=r.commentThreads.get(m);(0,i.kG)(null!=e);(0,v._P)(e,r.comments)||n((0,u.mh)(m))}n({type:h._Yi,annotations:f,mode:t,selectedAnnotationShouldDrag:null}),n((0,u.$z)())},O=()=>({type:h.RvB}),T=(e,t)=>(n,o)=>{const{commentThreads:a,comments:s,annotationsGroups:l}=o();if(1===e.size){const o=null==l?void 0:l.find((t=>{let{annotationsIds:n}=t;return n.has(e.first())}));if(o)return n(T(o.annotationsIds,t||null)),void n(z(o.groupKey))}e.forEach((e=>{if(a.has(e)){const t=a.get(e);(0,i.kG)(t);(0,v._P)(t,s)||n((0,u.mh)(e))}})),n(((e,t)=>({type:h._Yi,annotations:(0,r.l4)(e),mode:f.o.SELECTED,selectedAnnotationShouldDrag:t}))(e,t)),n((0,u.$z)())},I=e=>({type:h._Yi,annotations:(0,r.l4)([e]),mode:f.o.EDITING});function F(){return{type:h.c3G}}const M=e=>({type:h.TPT,id:e}),_=e=>({type:h.iyZ,id:e}),R=e=>({type:h.qh0,id:e}),N=e=>({type:h.rm,id:e}),L=e=>(t,n)=>{const{eventEmitter:o}=n();if(e){let t=!1;if(o.emit("annotationNote.hover",{preventDefault:()=>t=!0,annotationNote:e}),t)return}t({type:h.yyM,annotationNote:e})},B=e=>(t,n)=>{const{eventEmitter:o}=n();if(e){let t=!1;if(o.emit("annotationNote.press",{preventDefault:()=>t=!0,annotationNote:e}),t)return}t({type:h.vSH,annotationNote:e})},j=function(e,t){let{selectedAnnotationShouldDrag:n,preventDefault:i,stopPropagation:s,ignoreReadOnly:u,isAnnotationPressPrevented:p,clearSelection:f,longPress:h}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{selectedAnnotationShouldDrag:null,preventDefault:!1,stopPropagation:!1,ignoreReadOnly:!1,isAnnotationPressPrevented:void 0,clearSelection:!1,longPress:!1};return(m,v)=>{var b,w;const S=v(),{selectedAnnotationIds:E,annotations:P,activeAnnotationNote:x,collapseSelectedNoteContent:D,interactionsDisabled:C,eventEmitter:A,formDesignMode:O,isMultiSelectionEnabled:I}=S,F=E.size>1,M=t.shiftKey;if(x&&m(B(null)),D&&m((0,d.i0)()),!u&&(C||e&&(!("action"in e)||!e.action)&&(null===(b=e.additionalActions)||void 0===b||!b.onPointerDown)&&!e.isCommentThreadRoot&&(0,l.lV)(e,S)))return;if(void 0===p&&(p=!!e&&(0,c.TW)({annotation:e,nativeEvent:t.nativeEvent,selected:!1},A)),p)return;if((i||t.hasOwnProperty("type")&&"keypress"===t.type)&&t.preventDefault(),s&&t.stopPropagation(),f&&m(k()),!e)return;if(M){const t=P.get(E.first());if((null==t?void 0:t.pageIndex)!==e.pageIndex)return}const _=E.has(e.id);if("action"in e&&e.action&&!h&&!_&&!M)return void m((0,g.oo)(e));if("additionalActions"in e&&null!==(w=e.additionalActions)&&void 0!==w&&w.onPointerDown)return void m((0,g.TU)(e,"onPointerDown"));const R=!(0,y.Zt)(S,e)&&(!(e instanceof a.x_)||O);if(!R)return;const N=S.annotationsGroups.find((t=>{let{annotationsIds:n}=t;return n.has(e.id)}));if(_||!R||M||N){if(M&&I){if(_)return m(T(E.remove(e.id),n||null)),void m(z(null));if(N)return void(0,o.dC)((()=>{m(T(S.selectedAnnotationIds.merge(N.annotationsIds),n||null)),m(z(null))}));if(!_&&!N)return m(T(E.add(e.id),n||null)),void m(z(null))}if(!M){if(!_&&!N)return void(0,o.dC)((()=>{m(k()),m(T((0,r.l4)([e.id]),n||null))}));_||!N||F||(0,o.dC)((()=>{m(T(N.annotationsIds,n||null)),m(z(N.groupKey))}))}}else(0,o.dC)((()=>{m(k()),m(T((0,r.l4)([e.id]),n||null))}))}},z=e=>({type:h.t$K,groupId:e}),K=e=>({type:h.vBn,pullToRefreshNewState:e}),Z=e=>({type:h.L2A,inlineTextSelectionToolbarItemsCallback:e})},60840:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var o=n(84121),r=n(67294),i=n(82481),a=n(7844),s=n(13944),l=n(36095),c=n(4054),u=n(90523),d=n.n(u),p=n(95919),f=n.n(p),h=n(14483),m=n.n(h),g=n(39583),v=n(44763);const y=(0,l.yx)(),b="data:image/svg+xml;base64,"+globalThis.btoa(f()),w="data:image/svg+xml;base64,"+globalThis.btoa(m());class S extends r.Component{constructor(){super(...arguments),(0,o.Z)(this,"shouldComponentUpdate",a.O),(0,o.Z)(this,"position",null),(0,o.Z)(this,"rect",null),(0,o.Z)(this,"state",{isDrawing:!1,isPenUser:!1,explicitScroll:!1,clientX:0,clientY:0,canAutoCloseShape:!1}),(0,o.Z)(this,"_drawingAreaEl",null),(0,o.Z)(this,"lastClickTime",null),(0,o.Z)(this,"_drawingAreaRef",(e=>{var t;(this._drawingAreaEl=e,e&&l.TL)&&(null===(t=this._drawingAreaEl)||void 0===t||t.addEventListener("touchmove",c.PF))})),(0,o.Z)(this,"onUnmount",(()=>{var e;this._drawingAreaEl&&l.TL&&(null===(e=this._drawingAreaEl)||void 0===e||e.removeEventListener("touchmove",c.PF));this._drawingAreaEl=null})),(0,o.Z)(this,"_handlePointerDown",(e=>{let t=!0;if(y&&this.props.canScrollWhileDrawing&&("pen"!==e.pointerType||this.state.isPenUser?"touch"===e.pointerType&&this.state.isPenUser&&(this.setState({explicitScroll:!0,clientX:e.clientX,clientY:e.clientY}),t=!1):this.setState({explicitScroll:!1,isPenUser:!0})),this.state.isDrawing)return void this._handlePointerUp();if(!e.isPrimary)return;if(!this._drawingAreaEl)return;this.rect=this._drawingAreaEl.getBoundingClientRect(),e.stopPropagation();const n=new i.E9({x:e.clientX,y:e.clientY}),o=this.position&&n.distance(this.position)<=10;var r,a;(this.position=n,this._buffer=[],this.setState({isDrawing:!0}),this.props.currentAnnotation instanceof i.om||this.props.currentAnnotation instanceof i.Hi)&&(null===(r=(a=this.props).dispatch)||void 0===r||r.call(a,(0,v.Ik)(null)));const{onDrawStart:s,onDoubleClick:l}=this.props,c=(new Date).getTime();if(this.lastClickTime&&l&&c-this.lastClickTime<500&&o)return l(this._transformPoint(n)),void(this.lastClickTime=null);this.lastClickTime=c,t&&s&&s(this._transformPoint(n),n)})),(0,o.Z)(this,"_buffer",[]),(0,o.Z)(this,"_throttleMove",E()),(0,o.Z)(this,"_throttleUp",E()),(0,o.Z)(this,"_handlePointerMove",(e=>{if(this.state.explicitScroll){const t={x:e.clientX,y:e.clientY},n={x:this.state.clientX,y:this.state.clientY};return requestAnimationFrame((()=>{if(this.props.scrollElement){const e=this.props.scrollElement.scrollTop+(n.y-t.y),o=this.props.scrollElement.scrollLeft+(n.x-t.x);this.props.scrollElement.scrollTop=e,this.props.scrollElement.scrollLeft=o}})),void this.setState({clientX:t.x,clientY:t.y})}this._handleDrawLine(e),this._handleCursorMove(e)})),(0,o.Z)(this,"_handleCursorMove",(e=>{if(this.props.currentAnnotation instanceof i.om||this.props.currentAnnotation instanceof i.Hi){if(!this.props.defaultAutoCloseThreshold)return;const a=new i.E9({x:e.clientX,y:e.clientY}),s=this.props.currentAnnotation.points,l=s.last(),c=this._transformPoint(a);var t,n;if(l&&c)null===(t=(n=this.props).dispatch)||void 0===t||t.call(n,(0,v.Ik)({lines:[{start:l,end:c}],pageIndex:this.props.currentAnnotation.pageIndex}));if(s&&s.size<3)return;const u=(0,g.K)(this.props.currentAnnotation,0,this.props.defaultAutoCloseThreshold,new i.E9({x:c.x,y:c.y}));var o,r;if(-1!==u&&u!==s.size-1)this.setState({canAutoCloseShape:!0}),null===(o=(r=this.props).dispatch)||void 0===o||o.call(r,(0,v.Ik)({lines:[{start:l,end:s.get(u)}],pageIndex:this.props.currentAnnotation.pageIndex}));else this.setState({canAutoCloseShape:!1})}})),(0,o.Z)(this,"_handlePointerUp",(e=>{e&&!e.isPrimary||(e&&e.stopPropagation(),this.setState({isDrawing:!1}),this.state.isPenUser&&"touch"==(null==e?void 0:e.pointerType)?this.setState({explicitScroll:!1}):this._throttleUp((()=>{const{onDrawEnd:e}=this.props;this._drawingAreaEl&&(this.rect=this._drawingAreaEl.getBoundingClientRect(),this._buffer=[],this.position&&e&&e(this._transformPoint(this.position)))})))})),(0,o.Z)(this,"_defaultTransformPoint",(e=>{if(!this.rect)return e;const t=this.props.size.width/this.rect.width,n=this.props.size.height/this.rect.height,o="number"==typeof this.rect.x?this.rect.x:this.rect.left,r="number"==typeof this.rect.y?this.rect.y:this.rect.top;return new i.Wm({x:e.x-o,y:e.y-r}).scale(t,n)})),(0,o.Z)(this,"_transformPoint",(e=>this._clipPointToContainerBounds((this.props.transformPoint||this._defaultTransformPoint)(new i.Wm({x:e.x,y:e.y})))))}render(){return r.createElement(s.Z,{onPointerDown:this._handlePointerDown,onRootPointerMove:this.state.isDrawing?this._handlePointerMove:this._handleCursorMove,onRootPointerUpCapture:this.state.isDrawing?this._handlePointerUp:void 0,interactionMode:this.props.interactionMode},r.createElement("div",{"data-testid":"drawcomponent",role:"application"},r.createElement("div",{className:d().layer,style:(this.props.currentAnnotation instanceof i.om||this.props.currentAnnotation instanceof i.Hi)&&!l.G6?{cursor:this.state.canAutoCloseShape?`url(${w}) 6 6, auto`:`url(${b}) 6 6, auto`}:{},ref:this._drawingAreaRef})))}_handleDrawLine(e){e.preventDefault(),e.stopPropagation();const t=new i.E9({x:e.clientX,y:e.clientY});if(t.equals(this.position))return;this.position=t;const{onDrawCoalesced:n}=this.props;if(n){const t=e.getCoalescedEvents();this._buffer=this._buffer.concat(t),this._throttleMove((()=>{const[e,t]=this._buffer.reduce(((e,t)=>{const n=new i.E9({x:t.clientX,y:t.clientY});return e[0].push(this._transformPoint(n)),e[1].push(n),e}),[[],[]]);this._buffer=[],n(e,t)}))}}_clipPointToContainerBounds(e){if(this._isPointWithinContainer(e))return e;const{size:t}=this.props;return e.x>t.width&&(e=e.set("x",t.width)),e.x<0&&(e=e.set("x",0)),e.y>t.height&&(e=e.set("y",t.height)),e.y<0&&(e=e.set("y",0)),e}_isPointWithinContainer(e){const{size:t}=this.props;return new i.UL({width:t.width,height:t.height}).isPointInside(e)}}function E(){let e;return t=>{e||requestAnimationFrame((()=>{const t=e;e=null,t()})),e=t}}},86366:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var o=n(84121),r=n(50974),i=n(67294),a=n(94184),s=n.n(a),l=n(94385),c=n(4054),u=n(21824),d=n.n(u);class p extends i.PureComponent{constructor(){var e;super(...arguments),e=this,(0,o.Z)(this,"_cancelImagePromise",null),(0,o.Z)(this,"_throttledFetchImage",(0,l.Z)(this._fetchImage,"number"==typeof this.props.throttleTimeout?this.props.throttleTimeout:2e3,!0)),(0,o.Z)(this,"imageRef",i.createRef()),(0,o.Z)(this,"_replaceImage",(function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.imageRef.current?(e.imageRef.current.appendChild(t.element),setTimeout((()=>t.release()),500),e.imageRef.current&&e.imageRef.current.children.length>1&&e.imageRef.current.removeChild(e.imageRef.current.firstChild),e.props.onRenderFinished&&e.props.onRenderFinished(),n&&e._throttledFetchImage()):t.release()})),(0,o.Z)(this,"_onImageAvailable",(function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{label:o,visible:i}=e.props,a=t.element;a&&e.imageRef.current&&a!==e.imageRef.current.firstChild&&(a.setAttribute("alt",o||""),i||a.setAttribute("role","presentation"),(0,c.sR)(a).then((()=>requestAnimationFrame((()=>e._replaceImage(t,n))))).catch((t=>{(0,r.vU)(t),e.props.onError&&e.props.onError(t)})))}))}componentDidMount(){this._throttledFetchImage()}refresh(){this._throttledFetchImage()}refreshSkippingThrottle(){this._fetchImage()}async _fetchImage(){let e;this._cancelOutstandingRequests();const{promise:t,isProvisional:n,cancel:o}=this.props.fetchImage();this._cancelImagePromise=o;try{var i,a;if(e=await t,e)this._onImageAvailable(e,n);else null===(i=(a=this.props).onError)||void 0===i||i.call(a)}catch(e){var s,l;(0,r.vU)(e),o(e),null===(s=(l=this.props).onError)||void 0===s||s.call(l,e)}this._cancelImagePromise=null}_cancelOutstandingRequests(){this._cancelImagePromise&&this._cancelImagePromise()}componentWillUnmount(){this._cancelOutstandingRequests()}render(){const{className:e,rectStyle:t}=this.props;return i.createElement("div",{className:s()(d().root,e),style:t,ref:this.imageRef})}}},6437:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var o=n(22122),r=n(84121),i=n(25915),a=n(67294),s=n(94184),l=n.n(s),c=n(18390),u=n(30667),d=n(88804),p=n(36095),f=n(6006),h=n.n(f);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1],n=0;const[o,r]=a.useState(null),[i,s]=a.useState(!1),l=e=>{t||s(e)};function c(){n=Date.now(),l(!1)}return[i,{onTouchStart(){n=Date.now(),l(!0)},onTouchEnd:c,onTouchCancel:c,onMouseEnter(){Date.now()-n>500&&l(!0)},onMouseLeave(){l(!1)},onMouseDown(e){r(e)},onPointerDown(e){r(e)},onClick(t){o&&o.clientX===t.clientX&&o.clientY===t.clientY&&(e(t),r(null))}}]}((()=>{i.dragging||d(t)})),{item:E,label:P,props:x}=r(t,b,v),D=l()(h().thumbnail,n+"-Thumbnails-Page-Image",{[h().thumbnailClickDisabled]:s,[h().thumbnailSelected]:i.selected,[h().thumbnailBeingDragged]:i.dragging});return a.createElement("div",(0,o.Z)({style:w,className:l()(h().column,n+"-Thumbnails-Page",h()[`engine-${p.SR}`],{[n+"-Thumbnails-Page-Selected"]:i.selected}),"data-testid":"grid-column","data-page-index":t},x),a.createElement("div",{style:{width:b,height:b},className:h().columnPreview},e.clickDisabled?a.createElement("div",{className:D},E):a.createElement(c.Z,(0,o.Z)({is:"div",className:D,"aria-label":`Select Page ${P}`,"aria-pressed":i.selected,onKeyPress:e=>{const{charCode:n}=e;n===u.tW&&d(t)},onFocus:()=>f(t),onBlur:()=>f(null),ref:i.itemRef},"object"==typeof S&&S),E)),a.createElement("div",{style:{height:24,maxWidth:b,marginTop:16*y,lineHeight:"24px"},className:l()(h().label,n+"-Thumbnails-Page-Label",{[h().labelSelected]:i.selected})},P))}const b=e=>{const{cssPrefix:t,clickDisabled:n,width:o,moveCursor:r}=e;let{itemScale:s}=e;const[c,u]=a.useState(null);s=Math.min(s,(o-15)/314),s=Math.max(s,.01);const p=a.useMemo((function(){return new d.$u({width:314*s,height:322*s+24})}),[s]),f=v*s,m=r?"left"===r.position?r.pageIndex:r.pageIndex+1:void 0;return a.createElement(i.FE,{width:e.width,height:e.height,canInsert:e.canInsert,draggingEnabled:!!e.onItemsMove&&!n,totalItems:e.totalItems,itemWidth:p.width,itemHeight:p.height,itemPaddingLeft:32*s,itemPaddingRight:32*s,renderItem:(o,r)=>a.createElement(y,{selectedItemIndexes:e.selectedItemIndexes,size:p,itemScale:s,pageIndex:o,itemState:r,cssPrefix:t,clickDisabled:n||!1,renderItemCallback:e.renderItemCallback,onItemPress:e.onItemPress,onItemFocus:e=>u(e)}),itemKey:e.itemKeyCallback,renderDragPreview:e.renderDragPreviewCallback?(t,n)=>e.renderDragPreviewCallback?e.renderDragPreviewCallback(n,t,f,v):null:void 0,renderInsertionCursor:(e,t)=>{const n={top:32*s+1,height:v*s-1};return a.createElement("div",{style:n,className:l()(h().moveCursor,{[h().moveCursorDisabled]:!e})},null!=(null==r?void 0:r.previewContent)&&a.createElement("div",{className:l()(h().moveCursorPreview,{[h().moveCursorPreviewEnd]:t})},r.previewContent))},onDragEnd:e.onItemsMove,selectedItemIndexes:e.selectedItemIndexes,insertionIndex:m,focusedItemIndex:c})}},13540:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(22122),r=n(17375),i=n(67294);const a=["src"];function s(e){let{src:t}=e,n=(0,r.Z)(e,a);const s=i.useRef(null);return i.useEffect((function(){if(s.current){const e=s.current.childNodes[0];"function"==typeof e.setAttribute&&e.setAttribute("focusable","false")}}),[]),i.createElement("span",(0,o.Z)({},n,{dangerouslySetInnerHTML:{__html:t},ref:s}))}},26467:(e,t,n)=>{"use strict";n.d(t,{O:()=>p});var o=n(84121),r=n(67294);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;tr.createElement("polygon",{points:"0.5,2 0.5,0.5 3.5,0.5 3.5,3.5 0.5,3.5 0.5,2",style:a(a({},e),s)}),u=e=>r.createElement("circle",{cx:"2",cy:"2",r:"1.5",style:a(a({},e),s)}),d=e=>r.createElement("line",{x1:"0",y1:"2",x2:"4",y2:"2",style:a(a({},e),l)}),p={none:{startElement:d,endElement:d,width:4},square:{startElement:c,endElement:c,width:3.5},circle:{startElement:u,endElement:u,width:3.5},diamond:{startElement:e=>r.createElement("polygon",{points:"3.5,2 2.25,3.25 1,2 2.25,0.75 3.5,2 4,2",style:a(a({},e),s)}),endElement:e=>r.createElement("polygon",{points:"0.75,2 2,0.75 3.25,2 2,3.25 0.75,2 0.25,2",style:a(a({},e),s)}),width:3.5},openArrow:{startElement:e=>r.createElement("polyline",{points:"4.25,0.5 1.25,2 4.25,3.5 1.25,2 4.75,2",style:a(a({},e),l)}),endElement:e=>r.createElement("polyline",{points:"0.25,0.5 3.25,2 0.25,3.5 3.25,2 -0.25,2",style:a(a({},e),l)}),width:3.75},closedArrow:{startElement:e=>r.createElement("polygon",{points:"3.75,2 3.75,0.75 1.25,2 3.75,3.25 3.75,2 4.75,2",style:a(a({},e),s)}),endElement:e=>r.createElement("polygon",{points:"0.75,2 0.75,0.75 3.25,2 0.75,3.25 0.75,2 -0.75,2",style:a(a({},e),s)}),width:3.75},butt:{startElement:e=>r.createElement("line",{x1:"3.75",y1:"0.5",x2:"3.75",y2:"3.5",style:a(a({},e),l)}),endElement:e=>r.createElement("line",{x1:"0.5",y1:"0.5",x2:"0.5",y2:"3.5",style:a(a({},e),l)}),width:.5},reverseOpenArrow:{startElement:e=>r.createElement("polyline",{points:"1,0.5 4,2 1,3.5",style:a(a({},e),l)}),endElement:e=>r.createElement("polyline",{points:"3.25,0.5 0.25,2 3.25,3.5",style:a(a({},e),l)}),width:3},reverseClosedArrow:{startElement:e=>r.createElement("polygon",{points:"4,2 1.5,3.25 1.5,0.75",style:a(a({},e),s)}),endElement:e=>r.createElement("polygon",{points:"0.25,2 2.75,3.25 2.75,0.75",style:a(a({},e),s)}),width:2.75},slash:{startElement:e=>r.createElement("polyline",{points:"3.25,0.5 2.25,3.75 2.85,2 3.75,2",style:a(a({},e),l)}),endElement:e=>r.createElement("polyline",{points:"1.85,0.5 0.85,3.75 1.25,2 0.35,2",style:a(a({},e),l)}),width:1.5}}},73264:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(67294),r=n(94184),i=n.n(r),a=n(71945),s=n.n(a);function l(e){let{scale:t=1,rotate:n=0}=e;const[r,a]=o.useState(!1);o.useEffect((()=>{const e=setTimeout((()=>{a(!0)}),400);return()=>{clearTimeout(e)}}),[]);const l=`scale(${t})`,c={transform:n?`rotate(${n}deg) ${l}`:l,transformOrigin:"center center"};return o.createElement("div",{style:c,className:i()("PSPDFKit-Loading-Indicator",s().loader,{[s().loaderShown]:r})},o.createElement("div",{className:s().loaderDot}),o.createElement("div",{className:s().loaderDot}),o.createElement("div",{className:s().loaderDot}))}},40045:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var o=n(84121),r=n(67366),i=n(67294),a=n(52560),s=n(27515),l=n(18803),c=n(36095),u=n(47710),d=n(3219),p=n(82481),f=n(42911),h=n(97413);const m=(0,f.Yw)(),g={onPinchStart:"pinchstart",onPinchIn:"pinchin",onPinchOut:"pinchout",onPinchCancel:"pinchcancel",onPinchEnd:"pinchend",onSwipeLeft:"swipeleft",onSwipeRight:"swiperight",onDoubleTap:"doubletap"};function v(e,t,n){t&&Object.keys(t).forEach((o=>{const r=g[o];!r||"function"!=typeof t[o]||n&&"function"==typeof n[o]&&n[o]===t[o]||e.off(r,t[o])})),n&&(n.enablePinch&&e.get("pinch").set({enable:!0,threshold:.3}),n.onDoubleTap&&e.get("doubletap").set({posThreshold:50}),Object.keys(n).forEach((o=>{const r=g[o];!r||"function"!=typeof n[o]||t&&"function"==typeof n[o]&&n[o]===t[o]||e.on(r,n[o])})))}class y extends i.Component{constructor(){super(...arguments),(0,o.Z)(this,"_handleRef",(e=>{e&&((0,h.k)("string"==typeof e.nodeName,"TRC requires a basic HTML element as children. This looks like a custom react component."),this._refElement=e)}))}componentDidMount(){this.initializeHammer(),v(this._hammer,null,this.props)}initializeHammer(){this._hammer=new m(this._refElement,{touchAction:"pan-x pan-y"}),this._refElement.style.msTouchSelect="initial"}componentDidUpdate(e){this._hammer&&v(this._hammer,e,this.props)}componentWillUnmount(){v(this._hammer,this.props,null),this._hammer&&(this._hammer.stop(),this._hammer.destroy()),this._hammer=null}render(){const e=i.Children.only(this.props.children);return(0,h.k)(!e.ref,"TRC requires the child element to not have a `ref` assigned. Consider inserting a new `
` in between."),i.cloneElement(e,{ref:this._handleRef})}}const b=!n(71231).Gn||{passive:!1,capture:!0};class w extends i.Component{constructor(){super(...arguments),(0,o.Z)(this,"_trackpadRef",i.createRef()),(0,o.Z)(this,"_hasWheelEventStarted",!1),(0,o.Z)(this,"_currentWheelTimeout",null),(0,o.Z)(this,"_lastScale",1),(0,o.Z)(this,"_handleWheel",(e=>{if(!e.ctrlKey)return;e.preventDefault(),e.stopPropagation(),this._currentWheelTimeout&&clearTimeout(this._currentWheelTimeout),this._currentWheelTimeout=setTimeout((()=>{this.props.onPinchEnd(),this._hasWheelEventStarted=!1,this._lastScale=1}),250);const t=function(e,t){return{center:{x:e.clientX,y:e.clientY},scale:t-e.deltaY/120,pointerType:"mouse",preventDefault:e.preventDefault,srcEvent:e}}(e,this._lastScale);let n=1;n=t.scale>1?1.05*this._lastScale:.95*this._lastScale,t.scale=n,n*this.props.zoomLevel>this.props.minZoomLevel&&n*this.props.zoomLevel{e.preventDefault(),this.props.onPinchStart(S(e))})),(0,o.Z)(this,"_handleGestureChange",(e=>{e.preventDefault(),this.props.onPinch(S(e))})),(0,o.Z)(this,"_handleGestureEnd",(e=>{e.preventDefault(),this.props.onPinchEnd(S(e))}))}componentDidMount(){const{current:e}=this._trackpadRef;if(e){const t=e.ownerDocument;t.addEventListener("wheel",this._handleWheel,b),"ios"!==c.By&&(t.addEventListener("gesturestart",this._handleGestureStart),t.addEventListener("gesturechange",this._handleGestureChange),t.addEventListener("gestureend",this._handleGestureEnd))}}componentWillUnmount(){const{current:e}=this._trackpadRef;if(e){const t=e.ownerDocument;t.removeEventListener("wheel",this._handleWheel,b),"ios"!==c.By&&(t.removeEventListener("gesturestart",this._handleGestureStart),t.removeEventListener("gesturechange",this._handleGestureChange),t.removeEventListener("gestureend",this._handleGestureEnd))}}render(){return i.createElement("div",{ref:this._trackpadRef},this.props.children)}}function S(e){return{center:{x:e.clientX,y:e.clientY},scale:e.scale,pointerType:"mouse",preventDefault:e.preventDefault,srcEvent:e}}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function P(e){for(var t=1;t{if("touch"!==e.pointerType)return;const{viewportState:t}=this.props,{viewportRect:n,zoomLevel:o}=t;this._startZooming();const r=new p.E9({x:e.center.x,y:e.center.y}).translate(n.getLocation().scale(-1)),i=this.props.viewportState.scrollMode===u.G.PER_SPREAD||this.props.viewportState.scrollMode===u.G.DISABLED?(0,a.vw)(t):(0,a.kh)(t),s=o>i?i:1.5*o,l=(0,a.cq)(t,s,{zoomCenter:r});this.setState({nextViewportState:l,shouldAnimate:!0}),this._callEndZoomingAfterTransition(l)})),(0,o.Z)(this,"_handlePinchStart",(e=>{const{viewportState:t}=this.props,{viewportRect:n}=t;this._startZooming(),this._touchZoomCenter=new p.E9({x:e.center.x,y:e.center.y}).translate(n.getLocation().scale(-1))})),(0,o.Z)(this,"_handlePinch",(e=>{this._isZooming&&(this._lastPinchScale=e.scale,this.requestAnimationFrameId||(this.requestAnimationFrameId=window.requestAnimationFrame(this._renderNextFrame)),null!==this._pinchResetTimeoutId&&clearTimeout(this._pinchResetTimeoutId),this._pinchResetTimeoutId=setTimeout((()=>this._handlePinchEnd()),2e3))})),(0,o.Z)(this,"_handlePinchEnd",(()=>{if(!this._isZooming)return;null!==this._pinchResetTimeoutId&&(clearTimeout(this._pinchResetTimeoutId),this._pinchResetTimeoutId=null);const{viewportState:e}=this.props,{zoomLevel:t}=e;if(!this._touchZoomCenter)return;this.requestAnimationFrameId&&(window.cancelAnimationFrame(this.requestAnimationFrameId),this.requestAnimationFrameId=null);const n=t*this._lastPinchScale,o=(0,a.cq)(e,n,{zoomCenter:this._touchZoomCenter});this.state.nextViewportState&&(0,a.hT)(this.state.nextViewportState)?(this.setState({nextViewportState:o,shouldAnimate:!0}),this._callEndZoomingAfterTransition(o)):this._zoomComplete(o)})),(0,o.Z)(this,"_renderNextFrame",(()=>{const{viewportState:e}=this.props,{zoomLevel:t}=e,n=t*this._lastPinchScale,o=(0,a.cq)(e,n,{zoomCenter:this._touchZoomCenter,unbounded:!0});this.setState({nextViewportState:o}),this.requestAnimationFrameId=null})),(0,o.Z)(this,"_zoomComplete",(e=>{(0,r.dC)((()=>{this.props.dispatch((0,d.nr)(e)),this._endZooming()}))})),this._touchZoomCenter=new p.E9,this._isZooming=!1,this.state={shouldAnimate:!1,nextViewportState:null},this.requestAnimationFrameId=null}render(){const{children:e,viewportState:t}=this.props,{nextViewportState:n}=this.state,o=(0,s.G4)(t);let r={transformOrigin:"0 0",width:o.width+t.viewportPadding.x,height:o.height+t.viewportPadding.y};if(n){const e=n.scrollPosition.scale(n.zoomLevel).translate(t.scrollPosition.scale(-t.zoomLevel)),o=(0,s.G4)(n).translate(e.scale(-1)),i=n.zoomLevel/t.zoomLevel;r=P(P({},r),{},{transform:`translate(${o.left}px, ${o.top}px)\n scale(${i}, ${i})`,willChange:"transform",transition:this.state.shouldAnimate?"transform 150ms ease-in":""})}else r=P(P({},r),{},{transform:`translate(${Math.ceil(o.left)}px, ${Math.ceil(o.top)}px)`});return i.createElement(w,{onPinchStart:this._handlePinchStart,onPinch:this._handlePinch,onPinchEnd:this._handlePinchEnd,zoomLevel:this.props.viewportState.zoomLevel,minZoomLevel:(0,a.Yo)(this.props.viewportState),maxZoomLevel:(0,a.Sm)(this.props.viewportState)},i.createElement(y,{onPinchStart:this._handlePinchStart,onPinchIn:this._handlePinch,onPinchOut:this._handlePinch,onPinchEnd:this._handlePinchEnd,onPinchCancel:this._handlePinchEnd,onDoubleTap:this._handleDoubleTap,enablePinch:!0},i.createElement("div",null,i.createElement("div",{ref:this._zoomLayerRef,style:r,className:"PSPDFKit-Zoom"},e))))}_callEndZoomingAfterTransition(e){this._removeAnimationEventListener();const t=this._zoomComplete.bind(this,e);this._zoomCompleteFn=t,this._zoomLayerRef.current&&this._zoomLayerRef.current.addEventListener("transitionend",this._zoomCompleteFn),setTimeout((()=>{this._zoomCompleteFn&&t===this._zoomCompleteFn&&this._zoomCompleteFn()}),250)}_startZooming(){if(!this._isZooming&&(this._isZooming=!0,"gecko"===c.SR&&"windows"===c.By&&this._zoomLayerRef.current)){const{defaultView:e}=this._zoomLayerRef.current.ownerDocument;(0,l.a7)(e)}}_endZooming(){this._resetState()}_resetState(){this.setState({shouldAnimate:!1,nextViewportState:null}),this._lastPinchScale=1,this._touchZoomCenter=new p.E9,this._isZooming=!1,this._removeAnimationEventListener()}_removeAnimationEventListener(){this._zoomLayerRef.current&&this._zoomLayerRef.current.removeEventListener("transitionend",this._zoomCompleteFn),this._zoomCompleteFn=null}}},99728:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ne,getDocumentKeyForReferencePoints:()=>te,messages:()=>oe});var o,r,i,a,s,l,c,u,d=n(67294),p=n(73935),f=n(76154),h=n(51559),m=n(55024),g=n(84121),v=n(73264),y=n(22122),b=n(67665),w=n(94184),S=n.n(w),E=n(67366),P=n(40045),x=n(60840),D=n(13540),C=n(88804),k=n(58479),A=n(20500),O=n(20792),T=n(72800),I=n(98013),F=n(36095),M=n(53033),_=n.n(M);const R=(0,F.b1)(),N=R?{x:31.25,y:13}:{x:12.5,y:-4},L=e=>{const{viewportState:t,backend:o,scrollElement:r,styles:i,currentDocumentKey:a,referencePoints:s,addReferencePoint:l,page:c,isAutoCompare:u,interactionMode:p}=e,{formatMessage:h}=(0,f.YB)(),g=(0,k.tm)(),[v,y]=d.useState(!1),w=d.useRef(null),F=(0,k.R9)((e=>{R?(v||y(!0),w.current&&clearTimeout(w.current),w.current=setTimeout((()=>{w.current=null,g()&&y(!1)}),300)):e()})),M=a!==m.Q.result?a===m.Q.documentA?s.slice(0,3):s.slice(3,6):[],L=s.length<6&&M.filter(Boolean).length<3&&!u&&p!==O.A.PAN&&(a===m.Q.documentA&&s.length<3||a===m.Q.documentB&&s.length>=3),B={width:c.pageSize.width*t.zoomLevel,height:c.pageSize.height*t.zoomLevel},z=d.useRef(null),K=S()({"PSPDFKit-Page":!0,[`PSPDFKit-Page-Rotation-${t.pagesRotation}-degree`]:!0,[i.page]:!0,[i["deg-"+t.pagesRotation]]:!0}),Z=(0,k._x)(),U=(0,E.v9)((e=>e.showToolbar))?I.k3:0,V=(0,k.R9)((()=>{l(Z(new C.Wm({x:t.viewportRect.width/2+2,y:t.viewportRect.height/2+U})))})),G={inViewport:!0,page:c,backend:o,shouldPrerender:!0,zoomLevel:t.zoomLevel,rotation:t.pagesRotation,renderPageCallback:e.renderPageCallback,allowedTileScales:e.allowedTileScales,documentHandle:a,viewportRect:t.viewportRect,forceDetailView:!1,renderPagePreview:e.renderPagePreview,isPageSizeReal:!0,crispTiles:!0,inContentEditorMode:!1},W=(0,E.v9)((e=>e.scrollbarOffset)),q=M.map(((e,n)=>e?d.createElement("div",{className:S()({"PSPDFKit-DocumentComparison-ReferencePoint-Marker":!0,[i.referencePoint]:!0}),style:{left:e.x*t.zoomLevel-N.x+(R?W/2:0),top:e.y*t.zoomLevel-N.y},key:`point_${n}`},d.createElement(j,{touchDevice:R,className:i.comparisonPin},n+1)):null));return d.createElement(d.Fragment,null,d.createElement("div",{className:S()({[i.source]:!R,[i.sourceTouch]:!!R,"PSPDFKit-DocumentComparison-Source":!0,[`PSPDFKit-DocumentComparison-Source-${a}`]:!!a}),style:{cursor:L&&!R?`url('data:image/svg+xml,${_()}') 4 20, crosshair`:"auto"}},L&&R&&d.createElement(b.m,null,d.createElement("div",{className:i.crosshair,ref:z},d.createElement("div",{className:S()(i.selectPoint,{[i.hidden]:v}),onClick:V},h(oe.Comparison_selectPoint)),d.createElement(D.Z,{src:n(96373)}))),d.createElement(P.Z,{dispatch:e.dispatch,viewportState:t},d.createElement("section",{className:K,style:B,"data-page-index":c?c.pageIndex:""},d.createElement(T.Z,G),q,R?null:d.createElement("div",{className:i.pointerLayer},L?d.createElement(x.Z,{size:c.pageSize,onDrawEnd:l,transformPoint:Z,interactionMode:p,scrollElement:r}):null)))),r&&!R?d.createElement(A.B,{viewportState:t,scrollElement:r,onScroll:F,currentMainToolbarHeight:U,className:"PSPDFKit-DocumentComparison-Magnifier",pageIndex:c.pageIndex,pageRendererComponentProps:G},q):null)},B=R?{width:"100",height:"100",viewBox:"-10 0 90 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"}:{width:"66",height:"66",viewBox:"-10 0 56 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j=e=>{let{children:t,touchDevice:n,className:p}=e;return d.createElement("svg",(0,y.Z)({},B,{className:p}),n?d.createElement("g",{stroke:"#f5281b"},o||(o=d.createElement("path",{d:"M44.0171 43.4142L72.3014 71.6985",strokeWidth:"4"})),r||(r=d.createElement("path",{d:"M12.9043 12.3015L41.1886 40.5858",strokeWidth:"4"})),i||(i=d.createElement("path",{d:"M72.3013 12.3015L44.017 40.5858",strokeWidth:"4"})),a||(a=d.createElement("path",{d:"M41.189 43.4142L12.9047 71.6985",strokeWidth:"4"})),d.createElement("text",{x:"-10",y:"82",fontSize:"28",fill:"#f5281b",dominantBaseline:"central"},t)):d.createElement("g",{stroke:"#f5281b"},s||(s=d.createElement("path",{d:"M26.0083 25.7072L40.1505 39.8493",strokeWidth:"1.99616"})),l||(l=d.createElement("path",{d:"M10.4521 10.1508L24.5943 24.2929",strokeWidth:"1.99616"})),c||(c=d.createElement("path",{d:"M40.1509 10.1508L26.0087 24.2929",strokeWidth:"1.99616"})),u||(u=d.createElement("path",{d:"M24.5952 25.7072L10.453 39.8493",strokeWidth:"1.99616"})),d.createElement("text",{x:"0",y:"44",fontSize:"14",fill:"#f5281b",dominantBaseline:"central"},t)))};var z=n(25915);const K=e=>{const{addSource:t}=e,n=d.useCallback((e=>{(null==e?void 0:e.click)&&e.click()}),[]),o=d.useCallback((e=>{if(e.target.files[0]){const n=new FileReader;n.onload=e=>{var n;t(null===(n=e.target)||void 0===n?void 0:n.result)},n.readAsArrayBuffer(e.target.files[0])}}),[t]);return d.createElement(z.TX,{tag:"div"},d.createElement("input",{ref:n,"aria-label":"","aria-hidden":!0,type:"file",accept:"image/png, image/jpeg, image/tiff, application/pdf",onChange:o,tabIndex:-1}))};var Z,U=n(9946),V=n(80399),G=n(3219),W=n(22660),q=n(2270);function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function $(e){for(var t=1;t{const{styles:t,currentDocumentKey:n,referencePoints:o,addReferencePoint:r,settings:i,completionConfiguration:a,setDocumentSources:s,documentSources:l,backend:c,viewportState:u,interactionMode:f,dispatch:g,isAutoCompare:y,renderPagePreview:b}=e,w=(0,k.tm)(),[S,E]=d.useState(null),[P,x]=d.useState(!1),D=(0,k.R9)((()=>{S&&g((0,G.nr)((0,h.mr)(u,S)))}));d.useEffect((()=>{D()}),[S,D]);const[A,O]=(0,k.dX)();d.useEffect((()=>{O(!1)}),[y,O]);const T=(0,k.R9)((e=>{e&&!l[e]&&i[e].source!==U.b.USE_OPEN_DOCUMENT||async function(){if(P)return;let t;e!==m.Q.result&&e?(S&&E(null),t=await c.openComparisonDocument(e)):(S&&E(null),t=A?await c.openComparisonDocument(m.Q.result):await X(o,i,c),O(!0));const n=i[m.Q.documentA].pageIndex||0,r=new V.Z($({pageSize:new C.$u(t.pages[n])},t.pages[n]));w()&&E(r)}()})),I=d.useRef(null);d.useEffect((()=>{I.current!==n&&S&&E(null),I.current=n}),[n,S]),d.useEffect((()=>{S||P||T(n)}),[S,n,T,P,l]);const F=6===o.length||y;d.useEffect((()=>{F&&!y&&T(null)}),[T,F,y]),d.useEffect((()=>{!async function(){try{await a.start.promise,w()&&(0,p.unstable_batchedUpdates)((()=>{x(!0),E(null)}))}catch(e){a.start.reject(e)}}()}),[a,w]),d.useEffect((()=>{P&&async function(){try{await c.cleanupDocumentComparison(),a.end.resolve()}catch(e){a.end.reject(e)}}()}),[P,c,a]);const M=d.useCallback((async e=>{e&&(await c.setComparisonDocument(n,e),w()&&s($($({},l),{},{[n]:e})))}),[n,l,s,c,w]);return S?d.createElement(L,{backend:e.backend,renderPageCallback:e.renderPageCallback,allowedTileScales:e.allowedTileScales,viewportState:u,scrollElement:e.scrollElement,styles:t,dispatch:e.dispatch,viewportWidth:e.viewportWidth,currentDocumentKey:n,addReferencePoint:r,referencePoints:o,page:S,isAutoCompare:y,interactionMode:f,renderPagePreview:b}):F||l[n]||i[n].source!==U.b.USE_FILE_DIALOG?d.createElement("div",{className:t.documentComparisonPageLoading},Z||(Z=d.createElement(v.Z,{scale:2}))):d.createElement(K,{addSource:M})},X=async(e,t,n)=>{var o,r,i,a,s,l;let c;c=e&&e.length?[[[e[3].x,e[3].y],[e[0].x,e[0].y]],[[e[4].x,e[4].y],[e[1].x,e[1].y]],[[e[5].x,e[5].y],[e[2].x,e[2].y]]]:h.h6;return await n.documentCompareAndOpen({documentA:{pageIndex:t.documentA.pageIndex||0,strokeColor:null!==(o=t.strokeColors)&&void 0!==o&&o.documentA?(0,W.C)(null===(r=t.strokeColors)||void 0===r?void 0:r.documentA):(0,W.C)(null===(i=q.s.strokeColors)||void 0===i?void 0:i.documentA)},documentB:{pageIndex:t.documentB.pageIndex||0,strokeColor:null!==(a=t.strokeColors)&&void 0!==a&&a.documentB?(0,W.C)(null===(s=t.strokeColors)||void 0===s?void 0:s.documentB):(0,W.C)(null===(l=q.s.strokeColors)||void 0===l?void 0:l.documentB)},options:{type:"path",points:c,blendMode:t.blendMode||"darken"}})},J=e=>{const{onHide:t,styles:o}=e,{formatMessage:r}=(0,f.YB)();return d.createElement("div",{className:o.container},d.createElement("div",{className:o.wrapper},d.createElement(D.Z,{src:n(96462),className:o.icon}),d.createElement("div",{className:o.header},r(Q.UserHint_title)),d.createElement("div",{className:o.hint},r(Q.UserHint_description)),d.createElement("div",{className:o.hideButton},d.createElement(z.zx,{onClick:t},r(Q.UserHint_dismissMessage)))))},Q=(0,f.vU)({UserHint_title:{id:"UserHint_Select",defaultMessage:"Selecting Points",description:"User hint Title. User should select points to compare documents."},UserHint_description:{id:"UserHint_description",defaultMessage:"Select 3 points on both documents for manual alignment. For best results, choose points near corners of the document, and make sure to choose the points in the same order on both documents.",description:"Main body of the user hint. Explains what to do to compare documents"},UserHint_dismissMessage:{id:"UserHint_dismissMessage",defaultMessage:"Dismiss Message",description:"Dismiss user hint message"}}),ee=(0,F.b1)(),te=e=>e.length<3?m.Q.documentA:e.length<6?m.Q.documentB:m.Q.result,ne=e=>{const{interactionMode:t,initialDocumentSources:n,settings:o,backend:r}=e,{styles:i}=e.CSS_HACK,a=(0,k.tm)(),[s,l]=(0,k.nG)(),[c,u]=(0,k.jw)(),[f]=(0,k.$)(),[g,v]=d.useState(!0),y=(0,h.SH)(c),b=(0,k.R9)((e=>{e!==y&&u(e||m.Q.result)})),w=d.useCallback((e=>{const t=[...s,e];(0,p.unstable_batchedUpdates)((()=>{l(t),b(te(t))}))}),[s,b,l]),[S,E]=d.useState(null);return d.useEffect((()=>{!async function(){const[e,t]=await Promise.all([n[m.Q.documentA],n[m.Q.documentB]]);(e&&e.byteLength>0||o[m.Q.documentA].source===U.b.USE_OPEN_DOCUMENT)&&await r.setComparisonDocument(m.Q.documentA,e),(t&&t.byteLength>0||o[m.Q.documentB].source===U.b.USE_OPEN_DOCUMENT)&&await r.setComparisonDocument(m.Q.documentB,t),a()&&E({[m.Q.documentA]:e,[m.Q.documentB]:t,[m.Q.result]:{source:null}})}()}),[n,r,o,a]),d.createElement("div",{className:i.docComparison},S?d.createElement(Y,{backend:r,renderPageCallback:e.renderPageCallback,allowedTileScales:e.allowedTileScales,viewportState:e.viewportState,interactionMode:t,scrollElement:e.scrollElement,styles:i,dispatch:e.dispatch,settings:o,completionConfiguration:e.completionConfiguration,documentSources:S,setDocumentSources:E,viewportWidth:e.viewportWidth,currentDocumentKey:y,addReferencePoint:w,referencePoints:s,isAutoCompare:f,renderPagePreview:e.renderPagePreview}):null,!ee&&!(6===s.length)&&!f&&g&&d.createElement(J,{styles:i.userHintStyles,onHide:()=>v(!1)}))},oe=(0,f.vU)({Comparison_documentOld:{id:"Comparison_documentOld",defaultMessage:"Old Document",description:"One of the documents to be compared."},Comparison_documentOldTouch:{id:"Comparison_documentOldTouch",defaultMessage:"Old",description:"The original document used in the comparison."},Comparison_documentNew:{id:"Comparison_documentNew",defaultMessage:"New Document",description:"The new document used in the comparison."},Comparison_documentNewTouch:{id:"Comparison_documentNewTouch",defaultMessage:"New",description:"The new document used in the comparison."},Comparison_result:{id:"Comparison_result",defaultMessage:"Comparison",description:"The compared document."},Comparison_resetButton:{id:"Comparison_resetButton",defaultMessage:"Reset",description:"Reset all placed alignment points."},Comparison_alignButton:{id:"Comparison_alignButton",defaultMessage:"Align Documents",description:"Start the manual document alignment process."},Comparison_alignButtonTouch:{id:"Comparison_alignButtonTouch",defaultMessage:"Align",description:"Start the manual document alignment process."},Comparison_selectPoint:{id:"Comparison_selectPoint",defaultMessage:"Select Point",description:"Select alignment point."}})},2270:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E,s:()=>y});var o=n(84121),r=n(67294),i=n(73264),a=n(83634),s=n(9946),l=n(51559),c=n(55024),u=n(79973),d=n.n(u),p=n(94287),f=n.n(p);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;tPromise.resolve().then(n.bind(n,99728)))),y={documentA:{source:s.b.USE_OPEN_DOCUMENT,pageIndex:0},documentB:{source:s.b.USE_FILE_DIALOG,pageIndex:0},strokeColors:{documentA:new a.Z({r:245,g:40,b:27}),documentB:new a.Z({r:49,g:193,b:255})},blendMode:"darken",autoCompare:!1},b=r.createElement("div",{className:d().documentComparisonPageLoading,"data-testid":"documentComparisonFallback"},r.createElement(i.Z,{scale:2})),w=(e,t)=>({documentA:m(m({},y.documentA),{},{pageIndex:(null==e?void 0:e.documentA.source)===s.b.USE_OPEN_DOCUMENT?t:0},null==e?void 0:e.documentA),documentB:m(m({},y.documentB),{},{pageIndex:(null==e?void 0:e.documentB.source)===s.b.USE_OPEN_DOCUMENT?t:0},null==e?void 0:e.documentB),strokeColors:m(m({},y.strokeColors),null==e?void 0:e.strokeColors),blendMode:(null==e?void 0:e.blendMode)||y.blendMode,autoCompare:e.autoCompare}),S=e=>e!==s.b.USE_OPEN_DOCUMENT&&e!==s.b.USE_FILE_DIALOG?(0,l.rh)(e):null,E=e=>{const{backend:t,viewportState:n,interactionMode:o=null,configuration:i}=e,a=r.useMemo((()=>w(i,n.currentPageIndex)),[i,n.currentPageIndex]);r.useEffect((()=>{let e;a[c.Q.documentA].source===s.b.USE_OPEN_DOCUMENT?e=c.Q.documentA:a[c.Q.documentB].source===s.b.USE_OPEN_DOCUMENT&&(e=c.Q.documentB),t.persistOpenDocument(e)}),[t,a]);const l=r.useRef({[c.Q.documentA]:S(a.documentA.source),[c.Q.documentB]:S(a.documentB.source)});return r.createElement(r.Suspense,{fallback:b},r.createElement(v,{backend:e.backend,interactionMode:o,renderPageCallback:e.renderPageCallback,allowedTileScales:e.allowedTileScales,viewportState:n,scrollElement:e.scrollElement,CSS_HACK:g,viewportWidth:e.viewportWidth,dispatch:e.dispatch,settings:a,completionConfiguration:i.completion,initialDocumentSources:l.current,renderPagePreview:e.renderPagePreview}))}},84537:(e,t,n)=>{"use strict";n.d(t,{n:()=>l});var o=n(22122),r=n(67294),i=n(25915),a=n(72673),s=n.n(a);function l(e){return r.createElement(i.bK,(0,o.Z)({},e,{styles:{label:s().label,input:s().input}}))}},28910:(e,t,n)=>{"use strict";n.d(t,{U:()=>l});var o=n(67294),r=n(25915),i=n(13540),a=n(99580),s=n.n(a);function l(e){let{title:t,children:a}=e;const[l,c]=o.useState(!1),u=(0,o.useCallback)((()=>c((e=>!e))),[]);return o.createElement(o.Fragment,null,o.createElement(r.w6,{expanded:l,onPress:u,className:s().wrapper},o.createElement("div",{className:s().controlContent},o.createElement(i.Z,{src:n(35982)(`./caret-${l?"down":"right"}.svg`),className:s().icon}),o.createElement("span",null,t))),o.createElement(r.F0,{expanded:l},o.createElement("div",{className:s().content},a)))}},40853:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>F,ck:()=>T,zx:()=>O});var o=n(84121),r=n(22122),i=n(67294),a=n(76154),s=n(94184),l=n.n(s),c=n(18390),u=n(35129),d=n(28910),p=n(13540),f=n(66003),h=n(2726),m=n(84537),g=n(5462),v=n(45395),y=n(13448),b=n(95651),w=n(22458),S=n.n(w),E=n(9437),P=n.n(E),x=n(93628),D=n.n(x);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function k(e){for(var t=1;to=>{let{btnComponentProps:a,selectedItem:s}=o;return i.createElement(c.Z,(0,r.Z)({is:"div"},a,{className:l()("PSPDFKit-Input-Dropdown-Button",D().selectBox,S().selectBox,{[D().measurementDropdownText]:"measurement"===t}),style:{minWidth:"measurement"===t?"60px":"100px",columnGap:"measurement"===t?"8px":"",width:n?`${n}px`:""}}),i.createElement("span",null,null!=s&&s.label?A(s.label)?e(A(s.label)):s.label:null),i.createElement("div",null,(0,y.Z)({type:"caret-down",style:{width:12,height:12,flexBasis:12},className:l()(D().dropdownIcon)})))},T=(e,t)=>n=>{let{item:o,state:a,itemComponentProps:s,ref:u}=n;return i.createElement(c.Z,(0,r.Z)({is:"div",className:l()(D().item,{[D().isSelected]:(null==a?void 0:a.includes("selected"))||(null==a?void 0:a.includes("focused")),[D().measurementDropdownText]:"measurement"===t}),name:null==o?void 0:o.value},s,{ref:u}),i.createElement("span",null,null!=o&&o.label?A(o.label)?e(A(o.label)):o.label:null))};const I=(0,a.vU)({borderColor:{id:"borderColor",defaultMessage:"Border Color",description:"Form designer popover style section border color label"},borderWidth:{id:"borderWidth",defaultMessage:"Border Width",description:"Form designer popover style section border width label"},borderStyle:{id:"borderStyle",defaultMessage:"Border Style",description:"Form designer popover style section border style label"},print:{id:"print",defaultMessage:"Print",description:"Form designer popover style section print label"},solid:{id:"solid",defaultMessage:"Solid",description:"Form designer popover style section solid border label"},dashed:{id:"dashed",defaultMessage:"Dashed",description:"Form designer popover style section dashed border label"},beveled:{id:"beveled",defaultMessage:"Beveled",description:"Form designer popover style section beveled border label"},inset:{id:"inset",defaultMessage:"Inset",description:"Form designer popover style section inset border label"},underline:{id:"underline",defaultMessage:"Underline",description:"Form designer popover style section unredline border label"}}),F=function(e){var t;let{annotation:o,updateAnnotation:r,intl:a,frameWindow:s,label:l,pageSize:c}=e;const y=i.useCallback((e=>a.formatMessage(u.Z.numberInPt,{arg0:e.toFixed(0)})),[a]),w=i.useCallback((e=>`${Math.round(e)}%`),[]),E=i.useCallback((e=>r({borderWidth:e})),[r]),x=i.useCallback((e=>{if(!c)return;const t=Number(e);if(90!==Math.abs(t-o.rotation)&&270!==Math.abs(t-o.rotation))r({rotation:t});else{const e=(0,b.eJ)(o,c),n=e.set("rotation",t);r({rotation:n.rotation,boundingBox:e.boundingBox})}}),[c,r,o]),D=i.useMemo((()=>[{label:"none",value:"none"},...Object.keys(v.N).map((e=>({label:e,value:e})))]),[]),C=null!==(t=D.find((e=>{var t;return(null!==(t=o.borderStyle)&&void 0!==t?t:"none")===e.value})))&&void 0!==t?t:null,F=[{label:"0°",value:"0"},{label:"90°",value:"90"},{label:"180°",value:"180"},{label:"270°",value:"270"}];let M=o.rotation?F.find((e=>{let{value:t}=e;return Number(t)===o.rotation})):F[0];void 0===M&&(M=F[0]);const _=i.useCallback(O(a.formatMessage),[a.formatMessage]),R=i.useCallback(T(a.formatMessage),[a.formatMessage]);return i.createElement(d.U,{title:l},i.createElement("div",{className:S().item},i.createElement(p.Z,{src:n(59601),className:S().itemIcon,role:"presentation"}),i.createElement("div",{className:S().itemLabel},a.formatMessage(u.Z.fillColor)),i.createElement(f.Z,{record:o,onChange:r,styles:k(k({},P()),{},{colorSvg:S().colorSvg,colorItem:S().colorItem,controlWrapper:k(k({},P().controlWrapper),{},{width:"auto"})}),accessibilityLabel:a.formatMessage(u.Z.fillColor),caretDirection:"down",colorProperty:"backgroundColor",frameWindow:s,className:S().colorDropdown})),i.createElement("div",{className:S().item},i.createElement(p.Z,{src:n(35147),className:S().itemIcon,role:"presentation"}),i.createElement("div",{className:S().itemLabel},a.formatMessage(I.borderColor)),i.createElement(f.Z,{record:o,onChange:r,styles:k(k({},P()),{},{colorSvg:S().colorSvg,colorItem:S().colorItem,controlWrapper:k(k({},P().controlWrapper),{},{width:"auto"})}),accessibilityLabel:a.formatMessage(I.borderColor),caretDirection:"down",colorProperty:"borderColor",frameWindow:s,className:S().colorDropdown})),i.createElement("div",{className:S().item},i.createElement(p.Z,{src:n(81913),className:S().itemIcon,role:"presentation"}),i.createElement("div",{className:S().itemLabel},a.formatMessage(I.borderStyle)),i.createElement("div",{className:S().nativeDropdown},i.createElement("select",{"aria-label":a.formatMessage(I.borderStyle),className:"PSPDFKit-Input-Dropdown-Select",value:o.borderStyle||"",onChange:e=>{e.target.value!==D[0].value?void 0!==e.target.value&&r({borderStyle:e.target.value}):r({borderStyle:null})}},D.map((e=>i.createElement("option",{key:e.value,value:e.value,disabled:e.disabled},e.label?a.formatMessage(A(e.label)):""))))),i.createElement(g.Z,{items:D,value:C,accessibilityLabel:a.formatMessage(I.borderStyle),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:S().dropdownGroupComponent,menuClassName:S().dropdownGroupMenu,ButtonComponent:_,ItemComponent:R,onSelect:(e,t)=>{t.value!==D[0].value?void 0!==t.value&&r({borderStyle:t.value}):r({borderStyle:null})},frameWindow:s})),i.createElement("div",{className:S().item},i.createElement(p.Z,{src:n(62846),className:S().itemIcon,role:"presentation"}),i.createElement("div",{className:S().itemLabel},a.formatMessage(I.borderWidth)),i.createElement(h.Z,{onChange:E,value:o.borderWidth||0,name:"borderWidth",caretDirection:"down",min:0,max:40,valueLabel:y,className:S().sliderDropdown,accessibilityLabel:a.formatMessage(I.borderWidth)})),i.createElement("div",{className:S().item},i.createElement(p.Z,{src:n(53491),className:S().itemIcon,role:"presentation"}),i.createElement("div",{className:S().itemLabel},a.formatMessage(u.Z.opacity)),i.createElement(h.Z,{onChange:e=>r({opacity:e/100}),value:100*o.opacity,name:"opacity",caretDirection:"down",valueLabel:w,className:S().sliderDropdown,accessibilityLabel:a.formatMessage(u.Z.opacity)})),i.createElement("div",{className:S().item},i.createElement(p.Z,{src:n(55426),className:S().itemIcon,role:"presentation"}),i.createElement("div",{className:S().itemLabel},a.formatMessage(u.Z.rotation)),i.createElement("div",{className:S().nativeDropdown},i.createElement("select",{"aria-label":a.formatMessage(u.Z.rotation),className:"PSPDFKit-Input-Dropdown-Select",value:o.rotation||0,onChange:e=>{e.target.value&&x(e.target.value)}},F.map((e=>i.createElement("option",{key:e.value,value:e.value,disabled:e.disabled},e.label))))),i.createElement(g.Z,{items:F,value:M,accessibilityLabel:a.formatMessage(u.Z.rotation),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:S().dropdownGroupComponent,menuClassName:S().dropdownGroupMenu,ButtonComponent:_,ItemComponent:R,onSelect:(e,t)=>{t.value&&x(t.value)},frameWindow:s})),i.createElement("div",{className:S().item},i.createElement(p.Z,{src:n(54629),className:S().itemIcon,role:"presentation"}),i.createElement("div",{className:S().itemLabel},a.formatMessage(I.print)),i.createElement(m.n,{value:!o.noPrint,onUpdate:e=>r({noPrint:!e}),accessibilityLabel:a.formatMessage(I.print)})))}},98785:(e,t,n)=>{"use strict";n.d(t,{X:()=>f,Z:()=>h});var o=n(67294),r=n(35369),i=n(55961),a=n(87515),s=n(88804),l=n(73815),c=n(95651),u=n(16126),d=n(10333),p=n.n(d);function f(e,t,n,o){const{width:r,height:i}=e,a=Math.min(n/r,n/i),s=Math.min(o/r,o/i),c=Math.ceil(r*s*(0,l.L)()),u=Math.ceil(i*s*(0,l.L)()),d=Math.floor(r*a),p=Math.floor(i*a);let f=d,h=p;90!==t&&270!==t||(f=p,h=d);let m=0,g=0;return 90===t?m=f:180===t?(m=f,g=h):270===t&&(g=h),{ratio:a,tileRatio:s,tileWidth:c,tileHeight:u,containerWidth:d,containerHeight:p,rotatedWidth:f,rotatedHeight:h,translationX:m,translationY:g}}const h=(0,i.x)((function(e,t){const{page:n}=t,{backend:o,annotations:i,attachments:a,formFields:s,showAnnotations:l,renderPageCallback:d}=e,p=l?(0,c.xp)(i,n):void 0,f=l?(0,u.ET)(s,n):void 0,h=l&&f?(0,u.Qg)(f.reduce(((e,t)=>e.set(t.name,t)),(0,r.D5)())):void 0;return{annotations:p,formFields:f,formFieldValues:h,attachments:l?a:void 0,backend:o,renderPageCallback:d,digitalSignatures:e.digitalSignatures}}))((function(e){const{page:{pageSize:t,pageIndex:n,pageKey:r},size:i,maxSize:c,backend:u,annotations:d,attachments:h,formFields:m,formFieldValues:g,renderPageCallback:v,digitalSignatures:y,pageRef:b}=e,w=e.rotation||0,{ratio:S,tileRatio:E,tileWidth:P,tileHeight:x,rotatedWidth:D,rotatedHeight:C,translationX:k,translationY:A}=f(t,w,i,c),O=o.useMemo((function(){return new s.$u({width:P,height:x})}),[x,P]),T=o.useMemo((function(){return new s.UL({width:P,height:x})}),[x,P]),I={width:D,height:C,transform:`\n translateX(${k}px)\n translateY(${A}px)\n rotate(${w}deg)\n scale(${S/E/(0,l.L)()})\n `,transformOrigin:"top left"};return o.createElement("div",{style:I,ref:b},o.createElement("div",{className:p().tilePlaceholder,style:{width:P,height:x}}),o.createElement(a.Z,{backend:u,pageIndex:n,originalPageSize:t,scaledPageSize:O,rect:T,annotations:d,attachments:h,formFields:m,formFieldValues:g,renderPageCallback:v,digitalSignatures:y,pageKey:r}))}))},34855:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var o=n(22122),r=n(84121),i=n(67294),a=n(73935),s=n(7844),l=n(82481),c=n(45719),u=n.n(c);class d extends i.Component{constructor(){super(...arguments),(0,r.Z)(this,"shouldComponentUpdate",s.O),(0,r.Z)(this,"_lastOrientationChange",0),(0,r.Z)(this,"_handleResize",(()=>{const e=this._element&&this._element.getBoundingClientRect();if(!e)return;const t=Date.now()-this._lastOrientationChange<1e3;(0,a.unstable_batchedUpdates)((()=>{this.props.onResize(l.UL.fromClientRect(e),t)}))})),(0,r.Z)(this,"_handleOrientationChange",(()=>{this._lastOrientationChange=Date.now()})),(0,r.Z)(this,"_handleRef",(e=>{this._element=e}))}componentDidMount(){const e=this._getIFrameWindow();null==e||e.addEventListener("resize",this._handleResize),null==e||e.addEventListener("orientationchange",this._handleOrientationChange),this._handleResize()}componentWillUnmount(){const e=this._getIFrameWindow();null==e||e.removeEventListener("resize",this._handleResize),null==e||e.removeEventListener("orientationchange",this._handleOrientationChange)}_getIFrameWindow(){var e;return null===(e=this._element)||void 0===e?void 0:e.contentWindow}render(){return i.createElement("iframe",(0,o.Z)({ref:this._handleRef,className:u().root},{inert:""},{"aria-hidden":!0,tabIndex:"-1"}))}}},13448:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(67294),r=n(94184),i=n.n(r),a=n(13540),s=n(25393),l=n.n(s),c=n(30360);function u(e){const{icon:t,type:r,style:s=null}=e,u=i()(l().root,e.className,"PSPDFKit-Icon","PSPDFKit-Icon-"+(0,c.in)(r));if(t)return/{"use strict";n.d(t,{Z:()=>p});var o=n(84121),r=n(67294),i=n(82481),a=n(97528),s=n(18146),l=n(95651),c=n(32801),u=n(35129);const d=[i.Xs,i.gd,i.Zc,s.Z,i.FV,i.o9,i.om,i.Hi,i.b3,i.x_];class p extends r.PureComponent{static getDerivedStateFromProps(e){if(e.annotationToolbarColorPresets){const t=e.annotationToolbarColorPresets({propertyName:(()=>{for(const[t,n]of l.fc.entries())if(n===e.colorProperty)return t})(),defaultAnnotationToolbarColorPresets:a.Ei.COLOR_PRESETS});if(void 0!==t)return!1===t.showColorPicker?{hasColorPicker:t.showColorPicker,colors:t.presets,isUsingCustomConfig:!0}:{colors:t.presets,hasColorPicker:!0,isUsingCustomConfig:!0}}return e.colors?{colors:e.colors}:{colors:a.Ei.COLOR_PRESETS}}constructor(e){super(e),(0,o.Z)(this,"state",{colors:a.Ei.COLOR_PRESETS,colorPresets:(0,l.sH)(this.props.colorProperty),creatingColor:void 0,hasColorPicker:!0,isDeleteButtonVisible:void 0,isUsingCustomConfig:!1}),(0,o.Z)(this,"defaultBorderColor","#404040"),(0,o.Z)(this,"_autoFocused",!1),(0,o.Z)(this,"_onChange",(e=>{this.props.onChange({[this.props.colorProperty]:e?e.color:null})})),(0,o.Z)(this,"showCustomPickerForAnnotation",(e=>d.some((t=>e instanceof t)))),(0,o.Z)(this,"_setStoredColors",(e=>localStorage.setItem(`persistedColors${this.props.colorProperty}`,JSON.stringify(e))))}render(){var e;const{record:t}=this.props,n=this.state.hasColorPicker&&(!(t instanceof i.q6)||this.showCustomPickerForAnnotation(t)),o=this.props.record[this.props.colorProperty],a=null!==(e=this.state.colors.find((e=>!(null!=e.color&&!e.color.transparent||null!=o)||null!=e.color&&null!=o&&e.color.equals(o))))&&void 0!==e?e:{color:o,localization:u.Z.color};return r.createElement(c.Z,{colors:this.state.colors,value:a,customColorPresets:this.state.colorPresets,setCustomColorPresets:e=>e?this.setState({colorPresets:e}):null,onChange:this._onChange,className:this.props.className,caretDirection:this.props.caretDirection,removeTransparent:this.props.removeTransparent,opacity:this.props.record.opacity,accessibilityLabel:this.props.accessibilityLabel,keepOpacity:this.props.keepOpacity,frameWindow:this.props.frameWindow,innerRef:this.props.innerRef,lastToolbarActionUsedKeyboard:this.props.lastToolbarActionUsedKeyboard,styles:this.props.styles,setStoredColors:this._setStoredColors,shouldShowCustomColorPicker:n,unavailableItemFallback:{type:"swatch"},isUsingCustomConfig:this.state.isUsingCustomConfig})}}(0,o.Z)(p,"defaultProps",{className:"",removeTransparent:!1,lastToolbarActionUsedKeyboard:!1})},32801:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Y});var o=n(22122),r=n(18390),i=n(67294),a=n(21614),s=n(50974),l=n(25915),c=n(94184),u=n.n(c),d=n(76154),p=n(44364),f=n.n(p),h=n(97528),m=n(82481),g=n(62967),v=n.n(g),y=n(93628),b=n.n(y),w=n(27435),S=n.n(w),E=n(38006),P=n.n(E),x=n(35129),D=n(5462),C=n(23093),k=n.n(C),A=n(36095),O=n(4054),T=n(13448),I=n(13540),F=n(775),M=n(47650),_=n.n(M);const R=i.memo((function(e){const{onCreateNewColor:t,onChange:n,disabled:o,isChoosingColor:r}=e,[a,s]=i.useState("#000000"),l={opacity:o?"40%":"100%",backgroundImage:r?"none":_().nativeColorInput.backgroundImage,backgroundColor:r?a:null,border:r?"1px solid var(--PSPDFKit-ColorDropdownPickerComponent-item-circle-border-stroke)":"none",width:r?"18px":"22px",height:r?"18px":"22px"};return i.createElement("label",{htmlFor:"input-color"},i.createElement("div",{className:_().nativeColorInputWrapper},i.createElement(F.DebounceInput,{className:u()(_().nativeColorInput,"PSPDFKit-Custom-Color-Input"),style:l,type:"color",id:"input-color",debounceTimeout:200,value:a,onChange:e=>{const t=e.target.value;t&&(s(t),n(m.Il.fromHex(t)))},onBlur:e=>{const n=e.target.value;n&&t(m.Il.fromHex(n))},disabled:o})))}));var N,L,B,j,z;const K=e=>{var t,n;const o=null!==(t=e.colors)&&void 0!==t?t:h.Ei.COLOR_PRESETS,{formatMessage:r}=(0,d.YB)(),{removeTransparent:s=!1,customColorPresets:l=[],setCustomColorPresets:c,setStoredColors:p,lastToolbarActionUsedKeyboard:f=!1,opacity:g=1,innerRef:v,value:y,caretDirection:b,keepOpacity:w,frameWindow:S,accessibilityLabel:E,onChange:P,unavailableItemFallback:x={type:"label"},disabled:C=!1,styles:k,shouldShowCustomColorPicker:O=!1,isUsingCustomConfig:T=!1,menuClassName:I}=e,[F,M]=i.useState(),[_,N]=i.useState(),L=i.useRef(!1),B=i.useCallback((e=>{const t=[...o,...l].find((t=>{var n,o,r,i;return null!==(n=null!=t.color&&null!=(null==e||null===(o=e.value)||void 0===o?void 0:o.color)&&(null===(r=e.value.color)||void 0===r?void 0:r.equals(t.color)))&&void 0!==n?n:null==(null==e||null===(i=e.value)||void 0===i?void 0:i.color)&&null==t.color})),n=[...o,...l].find((e=>t?V(e)===V(t):null));P(null!=n?n:null)}),[o,l,P]),j=i.useCallback((e=>{var t;const n={color:e,localization:{id:`custom-${(0,a.v4)()}`,defaultMessage:"Custom",description:"Custom color"}},o=[...l,n];null==p||p(o),c&&(c(o),M(void 0)),null!=y&&null!==(t=y.color)&&void 0!==t&&t.equals(e)||P(n)}),[l,c,p,P,y]),z=i.useCallback((e=>{var t;const n=l.filter((t=>t.localization.id!==e.localization.id));null==p||p(n),c&&(c(n),M(void 0)),e.color&&null!=y&&null!==(t=y.color)&&void 0!==t&&t.equals(e.color)&&P(o[0])}),[l,P,c,p,o,y]),K=i.useCallback((e=>{M(e);const t={color:e,localization:{id:`custom-${(0,a.v4)()}`,defaultMessage:"Custom",description:"Custom color"}};P(t)}),[P]),U=[...o,...l].filter((e=>!(s&&(null===e.color||e.color.transparent)))).map((e=>({label:e.localization.id,value:e,disabled:!1}))),G=H({caretDirection:b,colors:o,customColorPresets:l,colorItems:U,disabled:C,innerRef:v,keepOpacity:w,lastToolbarActionUsedKeyboard:f,opacity:g,unavailableItemFallback:x,styles:k,value:y,formatMessage:r,autoFocused:L}),W=$({colors:o,customColorPresets:l,isDeleteButtonVisible:_,setIsDeleteButtonVisible:N,formatMessage:r,handleChange:B,handleDeleteColor:z,keepOpacity:w,opacity:g,styles:k});return i.createElement("div",{className:k.controlWrapper},i.createElement("div",{className:k.control},i.createElement(D.Z,{items:U,value:null!=y&&null!==(n=U.find((e=>V(e.value)===V(y))))&&void 0!==n?n:null,discreteDropdown:!1,isActive:!1,caretDirection:b,className:`${e.className} ${k.colorSelect}`,menuClassName:u()(k.dropdownMenu,k.colorPickerDropdownMenu,I),ButtonComponent:G,ItemComponent:W,onSelect:(0,A.b1)()?void 0:(e,t)=>{B(t)},frameWindow:S,accessibilityLabel:E,maxCols:6,itemWidth:30,appendAfter:O?{node:Z,index:T?o.length-1:o.length-(s?2:1)}:null},O&&i.createElement(R,{onCreateNewColor:j,onChange:K,disabled:l.length>=17,isChoosingColor:F instanceof m.Il}))))},Z=()=>i.createElement("label",{style:{width:"100%",paddingTop:"10px",paddingBottom:"10px",paddingLeft:"5px"}},"Custom");function U(e){let{onClick:t}=e;return i.createElement(r.Z,{onClick:t,is:"button",className:u()(`PSPDFKit-AnnotationToolbar-Custom-Color-Delete-Button ${v().colorDeleteButton}`)},N||(N=i.createElement(I.Z,{src:k(),"aria-hidden":"true"})))}function V(e){return null!=e?null!=e.color?e.color.toCSSValue():"none":"N/A"}function G(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return{stroke:"var(--PSPDFKit-ColorDropdownPickerComponent-item-circle-border-stroke)",fill:e?e.toCSSValue():"none",strokeWidth:1,fillOpacity:t?n:1}}const W=()=>i.createElement(i.Fragment,null,i.createElement("defs",null,i.createElement("pattern",{id:"PSPDFKit-Color-Background-Chessboard",width:"0.5",height:"0.5",patternContentUnits:"objectBoundingBox"},i.createElement("rect",{x:"0",y:"0",width:"0.25",height:"0.25",style:{fill:"rgba(0,0,0,.2)"}}),i.createElement("rect",{x:"0.25",y:"0.25",width:"0.25",height:"0.25",style:{fill:"rgba(0,0,0,.2)"}}))),i.createElement("circle",{cx:"12",cy:"12",r:"10",style:{fill:"url(#PSPDFKit-Color-Background-Chessboard)"}})),q=()=>i.createElement("g",{transform:"translate(5 5)"},i.createElement("line",{x1:"2",x2:"12",y1:"12",y2:"2",style:{stroke:"#F00",strokeWidth:2},strokeLinecap:"round"})),H=e=>t=>{var n,r,a;let{btnComponentProps:s,selectedItem:c}=t,d=!1;if(null!=(null==c||null===(n=c.value)||void 0===n?void 0:n.color)){var p;const t=null===(p=c.value)||void 0===p?void 0:p.color;d=Boolean(!e.colorItems.some((e=>{var n,o;return null===(n=e.value)||void 0===n||null===(o=n.color)||void 0===o?void 0:o.equals(t)})))}else d=!e.colorItems.some((e=>{var t,n,o,r;return null==(null===(t=e.value)||void 0===t?void 0:t.color)&&null==(null==c||null===(n=c.value)||void 0===n?void 0:n.color)||(null===(o=e.value)||void 0===o||null===(r=o.color)||void 0===r?void 0:r.transparent)}));const f=[...e.colors,...e.customColorPresets].find((e=>{var t;return c?V(e)===V(c.value):null===(t=e.color)||void 0===t?void 0:t.transparent})),h=f?V(f):null,m=e.formatMessage(f?f.localization:{id:"transparent",defaultMessage:"Transparent",description:"Transparent"}),g=e.value,v=(!g||!f||"transparent"===f.localization.id||!e.keepOpacity&&e.opacity<1)&&(L||(L=i.createElement(W,null)));return i.createElement("button",(0,o.Z)({},s,{className:u()("PSPDFKit-Input-Dropdown-Button","PSPDFKit-Input-Color-Dropdown",e.styles.colorSelectButton,{[S().isDisabled]:e.disabled,[e.styles.controlIsDisabled]:e.disabled}),ref:t=>{s.ref(t),"function"==typeof e.innerRef?e.innerRef(t):e.innerRef&&"object"==typeof e.innerRef&&"current"in e.innerRef&&(e.innerRef.current=t),e.innerRef&&t&&!e.autoFocused.current&&(t.focus(),e.autoFocused.current=!0,e.lastToolbarActionUsedKeyboard&&(t.classList.add(P().focusedFocusVisible),t.addEventListener("blur",O.Cz)))},name:"clickableBox",disabled:e.disabled}),d&&"label"===e.unavailableItemFallback.type?i.createElement("span",null,null!==(r=e.unavailableItemFallback.label)&&void 0!==r?r:"N/A"):i.createElement(i.Fragment,null,i.createElement(l.TX,{tag:"div"},m),i.createElement("svg",(0,o.Z)({viewBox:"0 0 24 24",className:e.styles.colorSvg,key:h},{title:m,value:h},{"aria-hidden":!0}),v,(f&&"transparent"===f.localization.id||!g)&&(B||(B=i.createElement(q,null))),i.createElement("circle",{cx:"12",cy:"12",r:"10",style:G(null!==(a=null==g?void 0:g.color)&&void 0!==a?a:null)}))),i.createElement("div",null,(0,T.Z)({type:`caret-${e.caretDirection}`,style:{width:12,height:12,flexBasis:12},className:u()(b().dropdownIcon)})))},$=e=>t=>{var n,a;let{item:c,state:d,itemComponentProps:p}=t;const h=[...e.colors,...e.customColorPresets].find((e=>{var t,n;return null!=e.color&&null!=(null==c||null===(t=c.value)||void 0===t?void 0:t.color)?e.color.equals(null==c?void 0:c.value.color):null==e.color&&null==(null==c||null===(n=c.value)||void 0===n?void 0:n.color)})),m=e.colors.some((e=>{var t,n;return null!=e.color&&null!=(null==c||null===(t=c.value)||void 0===t?void 0:t.color)?e.color.equals(c.value.color):null==e.color&&null==(null==c||null===(n=c.value)||void 0===n?void 0:n.color)}));(0,s.kG)(h,"Couldn't find matching color.");const g=V(h),y=m?e.formatMessage(h.localization):e.formatMessage(x.Z.newColor),w=e.customColorPresets.find((e=>{var t,n;return null!=e.color&&null!=(null==c||null===(t=c.value)||void 0===t?void 0:t.color)?e.color.equals(c.value.color):null==e.color&&null==(null==c||null===(n=c.value)||void 0===n?void 0:n.color)}));let E,P=0;const D=("transparent"===h.localization.id||!e.keepOpacity&&e.opacity<1)&&(j||(j=i.createElement(W,null)));return i.createElement("div",{"data-testid":"color-swatch",className:v().colorItemContainer},w&&(e.isDeleteButtonVisible===g||!(0,A.b1)())&&i.createElement(U,{onClick:()=>e.handleDeleteColor(w)}),i.createElement(r.Z,(0,o.Z)({is:"div",className:u()(f().root,S().root,{[b().isSelected]:(null==d?void 0:d.includes("selected"))||(null==d?void 0:d.includes("focused"))},b().item,e.styles.colorItem),name:null!==(n=null==c||null===(a=c.value)||void 0===a?void 0:a.localization.id)&&void 0!==n?n:""},p,{onPointerDown:(0,A.b1)()?()=>{P=Date.now(),E=setTimeout((()=>{e.setIsDeleteButtonVisible(g)}),300)}:void 0,onPointerUp:(0,A.b1)()?(t=>()=>{Date.now()-P<300&&(window.clearTimeout(E),e.setIsDeleteButtonVisible(void 0),e.handleChange(t))})(c):void 0}),i.createElement(l.TX,{tag:"div"},y),i.createElement("svg",(0,o.Z)({viewBox:"0 0 24 24",className:`PSPDFKit-Input-Dropdown-Item ${e.styles.colorSvg}`,key:g},{title:y,value:g},{"aria-hidden":"true"}),D,"transparent"===h.localization.id&&(z||(z=i.createElement(q,null))),i.createElement("circle",{cx:"12",cy:"12",r:"10",style:G(h.color,e.keepOpacity)}))))},Y=i.memo(K)},2726:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var o=n(22122),r=n(84121),i=(n(50974),n(67294)),a=n(94184),s=n.n(a),l=n(25915),c=n(13540),u=n(7844),d=n(23215),p=n.n(d);let f=0;class h extends i.Component{constructor(){super(...arguments),(0,r.Z)(this,"inputRef",i.createRef()),(0,r.Z)(this,"shouldComponentUpdate",u.O),(0,r.Z)(this,"_guid",f++),(0,r.Z)(this,"triggerChange",(()=>{this.inputRef.current&&this.props.onChange(Number(this.inputRef.current.value))}))}render(){const{label:e,accessibilityLabel:t}=this.props;return i.createElement("div",{className:`PSPDFKit-Input-Slider ${this.props.className} ${p().root}`},this.props.label?i.createElement("label",{htmlFor:`${p().label}-${this._guid}`,className:p().label},this.props.label):this.props.accessibilityLabel?i.createElement(l.TX,{tag:"label",htmlFor:`${p().label}-${this._guid}`},this.props.accessibilityLabel):null,i.createElement("div",{className:p().input},i.createElement("input",{id:`${p().label}-${this._guid}`,type:"range",ref:this.inputRef,className:"PSPDFKit-Input-Slider-Input",min:this.props.min,max:this.props.max,step:this.props.step,value:this.props.value,onChange:this.triggerChange})),!this.props.hideLabel&&i.createElement("label",{className:`PSPDFKit-Input-Slider-Value ${p().value}`},this.props.valueLabel(this.props.value)))}}(0,r.Z)(h,"defaultProps",{min:0,max:100,step:1,valueLabel:e=>e.toString(),className:""});var m=n(19770),g=n.n(m);let v=0;class y extends i.Component{constructor(){super(...arguments),(0,r.Z)(this,"controlRef",i.createRef()),(0,r.Z)(this,"state",{isOpen:!1}),(0,r.Z)(this,"_guid",v++),(0,r.Z)(this,"_toggleItems",(()=>{this.state.isOpen?this._hideItems():this._showItems()})),(0,r.Z)(this,"_handleKeyDown",(e=>{"ArrowDown"!==e.key||this.state.isOpen||this._toggleItems()})),(0,r.Z)(this,"_handleBlur",(e=>{e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),setTimeout((()=>{const e=this.controlRef.current,t=e&&e.ownerDocument&&e.ownerDocument.activeElement;this.state.isOpen&&e&&!e.contains(t)&&this._hideItems()}),0)}))}_showItems(){this.setState({isOpen:!0})}_hideItems(){this.setState({isOpen:!1})}render(){const{label:e,accessibilityLabel:t,caretDirection:o}=this.props;const r=this.props.className?this.props.className:"",a=s()(g().root,this.state.isOpen&&g().show,r,"PSPDFKit-Input-Dropdown",this.state.isOpen&&"PSPDFKit-Input-Dropdown-open");return i.createElement("div",{style:this.props.style,className:a,onBlur:this._handleBlur,ref:this.controlRef,tabIndex:-1},i.createElement("button",{className:`PSPDFKit-Input-Dropdown-Button ${g().button}`,onClick:this._toggleItems,onKeyDown:this._handleKeyDown,"aria-labelledby":`${g().srLabel}-${this._guid} ${g().value}-${this._guid}`,style:{height:32},ref:this.props.innerRef,"aria-expanded":this.state.isOpen,"aria-controls":`${g().dropdownItems}-${this._guid}`,type:"button"},i.createElement("span",{className:`PSPDFKit-Input-Dropdown-FlexContainer ${g().flexContainer}`,"aria-hidden":"true"},i.createElement("span",{className:`PSPDFKit-Input-Slider-Value ${g().value}`,id:`${g().value}-${this._guid}`},this.props.valueLabel(this.props.value))),i.createElement(l.TX,{id:`${g().srLabel}-${this._guid}`},t||null),i.createElement(c.Z,{src:n("down"===o?58021:7359),className:g().toggle,"aria-hidden":"true"})),i.createElement("div",{className:s()("PSPDFKit-Input-Dropdown-Items",g().dropdownItems,g().dropdown,{[g().dropDownItemsUp]:"up"===this.props.caretDirection}),id:`${g().dropdownItems}-${this._guid}`},this.state.isOpen&&this._renderDropdownItems()))}_renderDropdownItems(){return i.createElement("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",width:"auto",padding:"5px 10px"}},i.createElement(h,(0,o.Z)({},this.props,{className:`${this.props.className} ${g().slider}`,hideLabel:!0})))}}(0,r.Z)(y,"defaultProps",{min:0,max:100,step:1,valueLabel:e=>e.toString(),className:""})},20500:(e,t,n)=>{"use strict";n.d(t,{B:()=>P});var o,r=n(22122),i=n(67294),a=n(67665),s=n(94184),l=n.n(s),c=n(27515),u=n(73815),d=n(36095),p=n(58479),f=n(13944),h=n(82481),m=n(72800),g=n(71693),v=n(89029),y=n.n(v);const b=d.G6&&(0,u.L)()>1,w=b?2:1,S=16/w;function E(e,t){const{zoomLevel:n}=e;return Math.round((0,g.e8)(e,(0,g.dF)(e,t))*n)}const P=e=>{const{pageRendererComponentProps:t,contentState:n,pageIndex:s,viewportState:g,onScroll:v,currentMainToolbarHeight:P,className:x,scrollElement:D,label:C,cursorPosition:k,isMobile:A}=e,[{x:O,y:T},I]=i.useState({x:0,y:0}),[{scrollTop:F,scrollLeft:M},_]=i.useState({scrollLeft:(null==D?void 0:D.scrollLeft)||0,scrollTop:((null==D?void 0:D.scrollTop)||0)-E(g,s)}),R=(0,p.R9)((e=>{k||I({x:e.clientX,y:e.clientY})})),N=(0,p.tm)(),L=(0,p.R9)((()=>{if(!D||!N())return;const e={scrollLeft:D.scrollLeft,scrollTop:D.scrollTop-E(g,s)};v?v((()=>_(e))):_(e)}));i.useEffect((()=>(null==D||D.addEventListener("scroll",L,!1),()=>{null==D||D.removeEventListener("scroll",L,!1)})),[L,D]);const B=A?136:174,j=g.scrollPosition.scale(g.zoomLevel).translate(g.scrollPosition.scale(-g.zoomLevel)),z=(0,c.G4)(g).translate(j.scale(-1)),K=(0,u.L)(),Z=Math.floor(K*(((null==k?void 0:k.x)||O)-z.left+M))/K,U=Math.floor(K*(((null==k?void 0:k.y)||T)-z.top-P+F))/K,V=Math.floor(B/2-Z),G=Math.floor(B/2-U),W=K/(w*S/K)+.5/w,q=w*S*.5*K,H=C||`${(g.zoomLevel*S*K/2).toFixed(1).replace(".0","")}x`;return i.createElement(f.Z,{onRootPointerMove:R},i.createElement(a.m,null,i.createElement("div",{className:l()(y().magnifierContainer,{[y().magnifierContainerMobile]:A},x)},i.createElement("div",{className:y().magnifier,style:{transformOrigin:`${Z}px ${U}px`,transform:`scale(${S*K/2}) translate(-${W}px, -${W}px)`,left:V,top:G}},i.createElement(m.Z,(0,r.Z)({},t,{contentState:n,viewportRect:new h.UL({left:Z,top:U,width:B,height:B}),forceDetailView:!0})),e.children),i.createElement("div",{className:y().magnifierGridContainer},i.createElement("svg",{width:B,height:B,viewBox:`0 0 ${B*K} ${B*K}`},i.createElement("defs",null,i.createElement("pattern",{id:"grid",x:A?-3*K:K>1?-.5*K:0,y:A?-3*K:K>1?-.5*K:0,width:q,height:q,patternUnits:"userSpaceOnUse"},i.createElement("polyline",{points:`${q-.5},0 ${q-.5},${q-.5} 0,${q-.5}`,className:y().magnifierGridStroke,strokeWidth:1,strokeLinejoin:"miter",strokeLinecap:"butt",shapeRendering:"crispEdges"}))),i.createElement("g",{transform:`translate(-${1+q/2},-${1+q/2})`},o||(o=i.createElement("rect",{fill:"url(#grid)",x:"0",y:"0",width:"100%",height:"100%",strokeLinejoin:"miter",strokeLinecap:"butt",shapeRendering:"crispEdges"})),i.createElement("rect",{x:Math.floor(B*K/2)+K*(b||d.vU&&K>1?0:.5),y:Math.floor(B*K/2)+(b?1:0),width:q,height:q,className:y().magnifierCenterStroke,strokeWidth:1,strokeLinejoin:"miter",strokeLinecap:"butt",shapeRendering:"crispEdges"}),i.createElement("rect",{x:Math.floor(B*K/2)-1,y:Math.floor(B*K/2)-1,width:q+3,height:q+3,className:y().magnifierCenterOutlineStroke,strokeWidth:2,strokeLinejoin:"miter",strokeLinecap:"butt",shapeRendering:"crispEdges"}))),i.createElement("div",{className:y().magnifierLabelBackground}),i.createElement("div",{className:y().magnifierLabelText},H)))))}},27001:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>H,qw:()=>X,sY:()=>$});var o,r,i,a,s=n(22122),l=n(67294),c=n(94184),u=n.n(c),d=n(76154),p=n(35369),f=n(25915),h=n(50974),m=n(67366),g=n(18390),v=n(9599),y=n(20792),b=n(34573),w=n(44763),S=n(35129),E=n(51205),P=n(22458),x=n.n(P),D=n(56966),C=n(69939),k=n(13540),A=n(4132),O=n(30570),T=n(36095),I=n(5462),F=n(40853),M=n(3845),_=n(36489),R=n(23756),N=n.n(R),L=n(10754),B=n.n(L),j=n(80324),z=n.n(j),K=n(93628),Z=n.n(K),U=n(79827),V=n(63738),G=n(2383),W=n(70190),q=n.n(W);const H=function(e){var t,o,r,i,a,s,c,g,P;let{referenceRect:T,viewportState:R,isHidden:L,annotation:j,frameWindow:K,eventEmitter:Z,setModalClosurePreventionError:W}=e;(0,h.kG)(j.measurementPrecision&&j.measurementScale);const{formatMessage:q}=(0,d.YB)(),H=(0,m.I0)(),Y=j.getMeasurementDetails().value,J=(0,m.v9)((e=>e.backend)),Q=(0,m.v9)((e=>e.measurementScales)),ee=(0,m.v9)((e=>e.activeMeasurementScale)),[te,ne]=(0,l.useState)(!1),[oe,re]=(0,l.useState)(!1),ie=ee&&!te?ee.precision:j.measurementPrecision,[ae,se]=(0,l.useState)((0,p.l4)([])),[le,ce]=(0,l.useState)(Y.toFixed(O._P[ie])),ue=l.useMemo((()=>ee&&!te?{unitFrom:ee.scale.unitFrom,unitTo:ee.scale.unitTo,fromValue:ee.scale.fromValue,toValue:ee.scale.toValue}:j.measurementScale),[ee,j.measurementScale,te]),[de,pe]=(0,l.useState)((0,v.sJ)({scale:ue,precision:ie}).label),[fe,he]=(0,l.useState)(null==ue?void 0:ue.fromValue.toString()),[me,ge]=(0,l.useState)(null==ue?void 0:ue.toValue.toString()),[ve,ye]=(0,l.useState)(!1),be=(0,l.useCallback)((e=>{const t=j.merge(e),n={annotations:(0,p.aV)([t]),reason:M.f.PROPERTY_CHANGE};Z.emit("annotations.willChange",n),H((0,C.FG)(t)),ne(!0)}),[j,H,Z]),we=l.useCallback((e=>{const t=(0,O.P_)(j,e);be({measurementScale:t}),he(t.fromValue.toString()),ge(t.toValue.toString())}),[j,be]);(0,l.useEffect)((()=>{W({error:D.x.MEASUREMENT_ERROR,annotationId:j.id})}),[j.id]),(0,l.useEffect)((()=>{we(parseFloat(le||"1"))}),[le,ue]),(0,l.useEffect)((()=>{H((0,V.M4)(ie))}),[ie]),(0,l.useEffect)((()=>{oe&&de||(pe((0,v.sJ)({scale:ue,precision:ie}).label),se(ae.delete("scaleName")));const e=null==Q?void 0:Q.find((e=>{let{scale:t,precision:n}=e;return t.fromValue===Number(null==ue?void 0:ue.fromValue)&&t.toValue===Number(null==ue?void 0:ue.toValue)&&t.unitFrom===(null==ue?void 0:ue.unitFrom)&&t.unitTo===(null==ue?void 0:ue.unitTo)&&n===ie}));se(e?ae.add("duplicate"):ae.delete("duplicate"))}),[fe,me,le,ue,ie]);const Se="startPoint"in j&&j.startPoint,Ee="endPoint"in j&&j.endPoint;(0,l.useEffect)((()=>{ce(j.getMeasurementDetails().value.toFixed(O._P[ie]))}),[Se,Ee,ie]);const Pe=l.useCallback((0,F.zx)(q,"measurement"),[q]),xe=l.useCallback((0,F.ck)(q),[q]),De=l.useCallback((()=>{const e={name:de,scale:{fromValue:parseFloat(fe),toValue:parseFloat(me),unitFrom:null==ue?void 0:ue.unitFrom,unitTo:null==ue?void 0:ue.unitTo},precision:ie};(0,m.dC)((()=>{H((0,w.C0)(e)),H((0,w.Se)(e))})),"SERVER"===(null==J?void 0:J.type)?(0,m.dC)((()=>{H((0,C.hQ)(j)),H((0,b.fz)()),H((0,V.UF)(y.A.MEASUREMENT)),H((0,w.Xh)(!1))})):ye(!0)}),[ye,H,fe,ie,null==ue?void 0:ue.unitFrom,null==ue?void 0:ue.unitTo,de,me]),Ce="in"===j.measurementScale.unitTo||"ft"===j.measurementScale.unitTo||"yd"===j.measurementScale.unitTo?O.nK:O.nK.filter((e=>!e.label.includes("/")));return ve?l.createElement(f.u_,{onEscape:()=>{(0,m.dC)((()=>{H((0,C.hQ)(j)),H((0,b.fz)()),H((0,V.UF)(y.A.MEASUREMENT)),H((0,w.Xh)(!1))}))},background:"var(--PSPDFKit-MeasurementModalComponent-background-color)",className:z().calibrationSuccessModal},l.createElement("div",{className:z().calibrationSuccessModalContainer},l.createElement("div",{className:z().calibrationSuccessRow},l.createElement(k.Z,{src:n(17076),className:x().itemIcon,role:"presentation"}),l.createElement("div",{onClick:()=>{(0,m.dC)((()=>{H((0,C.hQ)(j)),H((0,b.fz)()),H((0,V.UF)(y.A.MEASUREMENT)),H((0,w.Xh)(!1))}))}},l.createElement(k.Z,{src:n(58054),className:x().itemIcon,role:"presentation",style:{cursor:"pointer"}}))),l.createElement("div",{className:u()(z().calibrationSuccessRow,z().calibrationSuccessTitle)},l.createElement("p",null,q($.calibrationScaleSuccess))),l.createElement("div",{className:z().calibrationSuccessRow},l.createElement("p",null,q($.calibrationScaleSubtitle))))):L?null:l.createElement(E.Z,{referenceRect:T,viewportState:R,className:"PSPDFKit-Measurement-Popover",wrapperClassName:"PSPDFKit-Measurement-Editor",title:q($.calibrateScale),footer:l.createElement("div",{className:u()(z().footer,z().contentRow,z().spaceBetweenRow)},l.createElement(f.hE,{className:"PSPDFKit-Confirm-Dialog-Buttons",align:"end"},l.createElement(f.zx,{autoFocus:!0,onClick:()=>{(0,m.dC)((()=>{H((0,w.Xh)(!1)),H((0,C.hQ)(j)),H((0,b.fz)()),H((0,V.UF)(y.A.MEASUREMENT))}))},className:u()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Cancel",z().button)},q(S.Z.delete)),l.createElement(f.zx,{onClick:()=>De(),primary:!0,disabled:ae.size>0,className:u()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Confirm",z().button)},q(S.Z.done))))},l.createElement("div",{className:B().calibration},l.createElement("div",{className:B().calibrationTop},l.createElement(k.Z,{src:n(96810),className:x().itemIcon,role:"presentation"}),l.createElement("div",{className:x().itemLabel},q($.measurementCalibrateLength)),l.createElement("div",{className:B().calibrateRight},l.createElement(f.oi,{type:"number",value:le,onChange:e=>{if(ce(e.target.value),!function(e){const t=parseFloat(e);return!isNaN(t)&&isFinite(t)&&t>0}(e.target.value))return void se(ae.add("calibrationValue"));se(ae.delete("calibrationValue"));const t=parseFloat(e.target.value);we(t)},required:!0,style:{height:32,width:90,borderColor:ae.has("calibrationValue")?"#FF0000":void 0},className:u()(N().input,"PSPDFKit-Calibration-Input")}),l.createElement("div",{className:u()(x().nativeDropdown,B().nativeButton)},l.createElement("select",{"aria-label":q($.calibrate),className:u()("PSPDFKit-Input-Dropdown-Select","PSPDFKit-Calibration-UnitTo"),value:null!==(t=null===(o=O.b5.find((e=>e.value===(null==ue?void 0:ue.unitTo))))||void 0===o?void 0:o.value)&&void 0!==t?t:null===(r=j.measurementScale)||void 0===r?void 0:r.unitTo,onChange:e=>{var t;be({measurementScale:null===(t=j.measurementScale)||void 0===t?void 0:t.set("unitTo",e.target.value)})}},Object.keys(U.K).map((e=>l.createElement("option",{key:e,value:U.K[e]},U.K[e]))))),l.createElement(I.Z,{items:O.b5,value:null!==(i=O.b5.find((e=>e.value===(null==ue?void 0:ue.unitTo))))&&void 0!==i?i:null,accessibilityLabel:q($.calibrate),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:u()(x().dropdownGroupComponent,"PSPDFKit-Calibration-UnitTo"),menuClassName:x().dropdownGroupMenu,ButtonComponent:Pe,ItemComponent:xe,onSelect:(e,t)=>{var n;be({measurementScale:null===(n=j.measurementScale)||void 0===n?void 0:n.set("unitTo",t.value)})},frameWindow:K})))),l.createElement("span",{className:B().spacer}),l.createElement("div",{className:B().scale},l.createElement("div",{className:B().scaleTop},l.createElement(k.Z,{src:n(69695),className:x().itemIcon,role:"presentation"}),l.createElement("div",{className:x().itemLabel},q($.measurementScale))),l.createElement("div",{style:{width:"100%"},className:B().itemHeader},l.createElement(f.oi,{type:"text",value:de,onChange:e=>{e.target.value?se(ae.delete("scaleName")):se(ae.add("scaleName")),pe(e.target.value),oe||re(!0)},required:!0,style:{height:32,width:"100%",borderColor:ae.has("scaleName")?"#FF0000":void 0},className:u()(N().input,"PSPDFKit-Calibration-Name")})),l.createElement("div",{className:B().scaleBottom},l.createElement("div",null,l.createElement(f.oi,{type:"number",value:fe,required:!0,disabled:!0,style:{height:32,width:90,borderColor:ae.has("fromValue")?"#FF0000":void 0,opacity:"var(--PSPDFKit-Button-isDisabled-opacity)"},className:u()(N().input,N().disabled)}),l.createElement("div",{className:u()(x().nativeDropdown,B().nativeButton)},l.createElement("select",{"aria-label":q($.measurementScale),className:"PSPDFKit-Input-Dropdown-Select",value:(null===(a=j.measurementScale)||void 0===a?void 0:a.unitFrom)||"",disabled:!0},Object.keys(_.s).map((e=>l.createElement("option",{key:e,value:_.s[e]},_.s[e]))))),l.createElement(I.Z,{items:O.m_,value:null!==(s=O.m_.find((e=>e.value===(null==ue?void 0:ue.unitFrom))))&&void 0!==s?s:null,accessibilityLabel:q($.measurementScale),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:x().dropdownGroupComponent,menuClassName:x().dropdownGroupMenu,ButtonComponent:Pe,ItemComponent:xe,disabled:!0,frameWindow:K})),":",l.createElement("div",null,l.createElement(f.oi,{type:"number",value:me,required:!0,disabled:!0,style:{height:32,width:90,borderColor:ae.has("toValue")?"#FF0000":void 0,opacity:"var(--PSPDFKit-Button-isDisabled-opacity)"},className:u()(N().input,N().disabled)}),l.createElement("div",{className:u()(x().nativeDropdown,B().nativeButton)},l.createElement("select",{"aria-label":q($.measurementScale),className:"PSPDFKit-Input-Dropdown-Select",value:(null===(c=j.measurementScale)||void 0===c?void 0:c.unitTo)||"",disabled:!0},Object.keys(U.K).map((e=>l.createElement("option",{key:e,value:U.K[e]},U.K[e]))))),l.createElement(I.Z,{items:O.b5,value:null!==(g=O.b5.find((e=>e.value===(null==ue?void 0:ue.unitTo))))&&void 0!==g?g:null,accessibilityLabel:q($.measurementScale),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:x().dropdownGroupComponent,menuClassName:x().dropdownGroupMenu,ButtonComponent:Pe,ItemComponent:xe,disabled:!0,frameWindow:K})))),l.createElement("span",{className:B().spacer}),l.createElement("div",{className:x().item},l.createElement("div",{className:u()(x().itemLabel,B().itemLabel)},q($.measurementPrecision)),l.createElement("div",{className:u()(x().nativeDropdown,B().nativeButton)},l.createElement("select",{style:{height:30},"aria-label":q($.measurementPrecision),className:u()("PSPDFKit-Input-Dropdown-Select","PSPDFKit-Calibration-Precision"),value:j.measurementPrecision||"",onChange:e=>{be({measurementPrecision:e.target.value})}},Object.keys(A.L).map(((e,t)=>l.createElement("option",{key:e,value:A.L[e]},O.W9[t]))))),l.createElement(I.Z,{items:Ce,value:null!==(P=Ce.find((e=>e.value===j.measurementPrecision)))&&void 0!==P?P:null,accessibilityLabel:q($.measurementPrecision),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:u()(x().dropdownGroupComponent,"PSPDFKit-Measurement-Popover-Precision-Dropdown","PSPDFKit-Calibration-Precision"),menuClassName:x().dropdownGroupMenu,ButtonComponent:Pe,ItemComponent:X,onSelect:(e,t)=>{be({measurementPrecision:t.value}),ce(Y.toFixed(O._P[t.value]).toString())},frameWindow:K})),ae.has("duplicate")&&l.createElement("p",{className:z().scaleError},q(G.s.duplicateScaleError)))},$=(0,d.vU)({calibrationScaleSuccess:{id:"calibrationScaleSuccess",defaultMessage:"Scale has been successfully set",description:"Scale has been successfully set"},calibrationScaleSubtitle:{id:"calibrationScaleSubtitle",defaultMessage:"Start measuring by selecting one of the measurement tools.",description:"Start measuring by selecting one of the measurement tools."},perimeterMeasurementSettings:{id:"perimeterMeasurementSettings",defaultMessage:"Perimeter Measurement Settings",description:"Perimeter Measurement Settings"},polygonAreaMeasurementSettings:{id:"polygonAreaMeasurementSettings",defaultMessage:"Polygon Area Measurement Settings",description:"Polygon Area Measurement Settings"},rectangularAreaMeasurementSettings:{id:"rectangularAreaMeasurementSettings",defaultMessage:"Rectangle Area Measurement Settings",description:"Rectangle Area Measurement Settings"},ellipseAreaMeasurementSettings:{id:"ellipseAreaMeasurementSettings",defaultMessage:"Ellipse Area Measurement Settings",description:"Ellipse Area Measurement Settings"},measurementCalibrateLength:{id:"measurementCalibrateLength",defaultMessage:"Calibrate Length",description:"Calibrate"},measurementPrecision:{id:"measurementPrecision",defaultMessage:"Precision",description:"Precision"},measurementScale:{id:"measurementScale",defaultMessage:"Scale",description:"Scale"},calibrateScale:{id:"calibrateScale",defaultMessage:"Calibrate Scale",description:"Calibrate Scale"},calibrate:{id:"calibrate",defaultMessage:"Calibrate",description:"Calibrate"}});const Y=e=>T.G6?l.createElement("span",null,e.label):"1/2"===e.label?o||(o=l.createElement("span",null,"1â„2 in")):"1/4"===e.label?r||(r=l.createElement("span",null,"1â„4 in")):"1/8"===e.label?i||(i=l.createElement("span",null,"1â„8 in")):"1/16"===e.label?a||(a=l.createElement("span",null,"1â„16 in ")):l.createElement("span",null,e.label),X=e=>{let{item:t,state:n,itemComponentProps:o,ref:r}=e;return l.createElement(g.Z,(0,s.Z)({is:"div",className:u()(Z().item,{[Z().isSelected]:(null==n?void 0:n.includes("selected"))||(null==n?void 0:n.includes("focused"))},Z().measurementDropdownText),name:null==t?void 0:t.value},o,{ref:r}),null!=n&&n.includes("selected")?l.createElement(k.Z,{src:q(),className:B().icon}):l.createElement("span",{className:B().icon}),l.createElement(Y,{label:null==t?void 0:t.label}))}},90012:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I,s:()=>F});var o=n(67294),r=n(76154),i=n(25915),a=n(94184),s=n.n(a),l=n(67366),c=n(19338),u=n(71603),d=n(69939),p=n(34573),f=n(63738),h=n(35860),m=n(2383),g=n(28890),v=n(35129),y=n(80324),b=n.n(y),w=n(84537),S=n(10754),E=n.n(S),P=n(79827),x=n(22458),D=n.n(x),C=n(5462),k=n(40853),A=n(4132),O=n(30570),T=n(44763);const I=function(e){var t,n;let{frameWindow:a}=e;const y=(0,r.YB)(),{formatMessage:S}=(0,r.YB)(),x=(0,l.v9)((e=>e.measurementScales)),I=(0,l.v9)((e=>e.secondaryMeasurementUnit)),[M,_]=o.useState(Boolean(I)),[R,N]=o.useState(null==I?void 0:I.unitTo),[L,B]=o.useState(null==I?void 0:I.precision),[j,z]=o.useState(!1),[K,Z]=o.useState([]),[U,V]=o.useState(null),[G,W]=o.useState(null),[q,H]=o.useState(!1),$=(0,l.v9)((e=>{const{selectedAnnotationIds:t,annotations:n}=e;return t.map((e=>n.get(e)))})),Y=(0,l.I0)(),X=o.useCallback((0,k.zx)(S,"measurement"),[S]),J=o.useCallback((0,k.ck)(S),[S]),Q=o.useCallback((()=>{Y((0,f.jJ)()),Y((0,p.fz)()),Y((0,d.Ds)("measurement")),Y((0,f.BR)())}),[Y]),ee=o.useCallback((e=>{if(j&&K&&x){const{deleted:t}=(0,O.Rc)(x,K);if(t.filter((e=>!(null==G?void 0:G.find((t=>t.prevScale===e))))).length>0&&!e)return void H(!0);(0,l.dC)((()=>{Y((0,T.U7)(K,G)),Y((0,T.Se)(U))}))}M&&R&&L&&Y((0,T.v9)({unitTo:R,precision:L})),!I||R||L||Y((0,T.v9)(null)),$.size>0&&(0,l.dC)((()=>{$.toList().forEach((e=>{const t=e.set("measurementScale",new u.Z({fromValue:Number(null==U?void 0:U.scale.fromValue),toValue:Number(null==U?void 0:U.scale.toValue),unitFrom:null==U?void 0:U.scale.unitFrom,unitTo:null==U?void 0:U.scale.unitTo})).set("measurementPrecision",null==U?void 0:U.precision);Y((0,d.FG)(t))}))})),Q()}),[U,j,Y,G,x,Q,K,I,R,L,M]),te=o.useMemo((()=>!!R&&(0,O.B0)(R)),[R]);return q?o.createElement(h.z,{onConfirm:()=>{ee(!0)},onCancel:()=>{H(!1)},accessibilityLabel:S(F.scaleAnnotationsDeleteWarning),accessibilityDescription:S(F.scaleAnnotationsDeleteWarning),intl:y},o.createElement("p",null,S(F.scaleAnnotationsDeleteWarning))):o.createElement(g.Z,{onEscape:Q,background:"var(--PSPDFKit-MeasurementModalComponent-background-color)",className:b().modal},o.createElement("h2",{className:s()(b().title,b().header,b().contentRow)},S(F.setScale)),o.createElement(m.Z,{frameWindow:a,setAreValidScales:z,scalesSetter:Z,activeScaleSetter:V,editedScalesSetter:W}),o.createElement("h2",{className:s()(b().contentRow,b().sectionTitle,b().spaceBetweenRow)},S(F.secondaryUnit)),o.createElement("div",{className:s()(b().contentRow,b().spaceBetweenRow)},o.createElement("p",null,S(F.displaySecondaryUnit)),o.createElement(w.n,{value:M,onUpdate:()=>{M?(N(void 0),B(void 0)):(N(P.K.INCHES),B(A.L.WHOLE)),_(!M)},accessibilityLabel:S(F.displaySecondaryUnit)})),M?o.createElement("div",{className:"PSPDFKit-Secondary-Measurement"},o.createElement("div",{className:s()(b().contentRow,b().spaceBetweenRow)},o.createElement("p",null,S(F.unit)),o.createElement("div",{className:s()(b().nativeDropdown,E().nativeButton)},o.createElement("select",{style:{height:30},"aria-label":S(F.measurementScale),value:(null===(t=O.b5.find((e=>e.value===R)))||void 0===t?void 0:t.value)||"",className:"PSPDFKit-Input-Dropdown-Select",onChange:e=>{N(e.target.value)}},Object.keys(P.K).map((e=>o.createElement("option",{key:e,value:P.K[e]},P.K[e]))))),o.createElement(C.Z,{items:O.b5,value:null!==(n=O.b5.find((e=>e.value===R)))&&void 0!==n?n:null,accessibilityLabel:S(F.measurementScale),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:s()(b().dropdownGroupComponent,D().dropdownGroupComponent,"PSPDFKit-Secondary-Measurement-UnitTo"),menuClassName:D().dropdownGroupMenu,ButtonComponent:X,ItemComponent:J,onSelect:(e,t)=>{(0,O.B0)(t.value)&&(0,O.zl)(L)&&!te&&B(void 0),N(t.value)},frameWindow:a})),o.createElement("div",{className:s()(b().contentRow,b().spaceBetweenRow)},o.createElement("p",null,S(F.measurementPrecision)),o.createElement(c.Z,{frameWindow:a,unit:R,onPrecisionChange:B,selectedPrecision:L,precisionDropdownClassname:"PSPDFKit-Secondary-Measurement-Precision",accessibilityLabel:S(F.measurementPrecision)}))):null,o.createElement("div",{className:s()(b().footer,b().contentRow,b().spaceBetweenRow)},o.createElement(i.hE,{className:"PSPDFKit-Confirm-Dialog-Buttons",align:"end"},o.createElement(i.zx,{autoFocus:!0,onClick:Q,className:s()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Cancel",b().button)},S(v.Z.cancel)),o.createElement(i.zx,{onClick:()=>ee(),primary:!0,disabled:M&&(!R||!L)||!j,className:s()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Confirm",b().button)},S(v.Z.done)))))},F=(0,r.vU)({distanceMeasurementSettings:{id:"distanceMeasurementSettings",defaultMessage:"Distance Measurement Settings",description:"Distance Measurement Settings"},perimeterMeasurementSettings:{id:"perimeterMeasurementSettings",defaultMessage:"Perimeter Measurement Settings",description:"Perimeter Measurement Settings"},polygonAreaMeasurementSettings:{id:"polygonAreaMeasurementSettings",defaultMessage:"Polygon Area Measurement Settings",description:"Polygon Area Measurement Settings"},rectangularAreaMeasurementSettings:{id:"rectangularAreaMeasurementSettings",defaultMessage:"Rectangle Area Measurement Settings",description:"Rectangle Area Measurement Settings"},ellipseAreaMeasurementSettings:{id:"ellipseAreaMeasurementSettings",defaultMessage:"Ellipse Area Measurement Settings",description:"Ellipse Area Measurement Settings"},measurementCalibrateLength:{id:"measurementCalibrateLength",defaultMessage:"Calibrate Length",description:"Calibrate"},measurementPrecision:{id:"measurementPrecision",defaultMessage:"Precision",description:"Precision"},measurementScale:{id:"measurementScale",defaultMessage:"Scale",description:"Measurement Scale"},setScale:{id:"setScale",defaultMessage:"Set Scale",description:"Set Scale"},unit:{id:"unit",defaultMessage:"Unit",description:"Unit"},secondaryUnit:{id:"Secondary Unit",defaultMessage:"Secondary Unit",description:"Secondary Unit"},displaySecondaryUnit:{id:"displaySecondaryUnit",defaultMessage:"Display Secondary Unit",description:"Display Secondary Unit"},scaleAnnotationsDeleteWarning:{id:"scaleAnnotationsDeleteWarning",defaultMessage:"Deleting the scale will also delete measurements using the scale.",description:"Message displayed in the scales deletion dialog"}})},19338:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var o=n(94184),r=n.n(o),i=n(67294),a=n(76154),s=n(40853),l=n(27001),c=n(10754),u=n.n(c),d=n(90012),p=n(80324),f=n.n(p),h=n(22458),m=n.n(h),g=n(5462),v=n(4132),y=n(30570);const b=e=>{var t,n;let{unit:o,frameWindow:c,selectedPrecision:p,onPrecisionChange:h,wrapperClass:b,precisionDropdownClassname:w,accessibilityLabel:S,index:E}=e;const{formatMessage:P}=(0,a.YB)(),x=(0,i.useMemo)((()=>!!o&&(0,y.B0)(o)),[o]),D=(0,i.useMemo)((()=>x?y.Qc:y.nK),[x]),C=i.useCallback((0,s.zx)(P,"measurement"),[P]);return i.createElement("div",{className:b||void 0},i.createElement("div",{className:r()(f().nativeDropdown,u().nativeButton)},i.createElement("select",{style:{height:30},"aria-label":P(d.s.measurementPrecision),"data-test-id":void 0!==E?`PSPDFKit-Scale-${E+1}-Precision`:"PSPDFKit-Scale-Precision",value:(null===(t=y.nK.find((e=>e.value===p||e.label===p)))||void 0===t?void 0:t.value)||"",className:r()("PSPDFKit-Input-Dropdown-Select","PSPDFKit-Measurement-Precision-Dropdown"),onChange:e=>{h(e.target.value)}},Object.keys(v.L).filter((e=>x?!(0,y.zl)(v.L[e]):e)).map(((e,t)=>i.createElement("option",{key:e,value:v.L[e]},y.W9[t]))))),i.createElement(g.Z,{items:D,value:null!==(n=D.find((e=>e.value===p||e.label===p)))&&void 0!==n?n:null,accessibilityLabel:S,discreteDropdown:!1,isActive:!1,caretDirection:"down",className:r()("PSPDFKit-Input-Dropdown-Select",f().dropdownGroupComponent,"PSPDFKit-Measurement-Precision-Dropdown",w),"data-test-id":void 0!==E?`PSPDFKit-Scale-${E+1}-Precision`:"PSPDFKit-Scale-Precision",menuClassName:m().dropdownGroupMenu,ButtonComponent:C,ItemComponent:l.qw,onSelect:(e,t)=>{h(t.value)},frameWindow:c}))}},2383:(e,t,n)=>{"use strict";n.d(t,{Z:()=>L,s:()=>N});var o=n(84121),r=n(25915),i=n(94184),a=n.n(i),s=n(67294),l=n(76154),c=n(67366),u=n(19338),d=n(4132),p=n(40853),f=n(22458),h=n.n(f),m=n(23756),g=n.n(m),v=n(13540),y=n(27001),b=n(10754),w=n.n(b),S=n(35129),E=n(5462),P=n(36489),x=n(79827),D=n(30570),C=n(80324),k=n.n(C);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function O(e){for(var t=1;t0}const N=(0,l.vU)({scaleSelector:{id:"scaleSelector",defaultMessage:"Scale {arg0}",description:"Scale checkbox selector for multiple scale selection accessibility"},scaleName:{id:"scaleName",defaultMessage:"Scale Name",description:"Scale Name"},scaleUnitFrom:{id:"scaleUnitFrom",defaultMessage:"Scale unit from",description:"Scale unit from"},scaleUnitTo:{id:"scaleUnitTo",defaultMessage:"Scale unit to",description:"Scale unit to"},newScale:{id:"newScale",defaultMessage:"Add new scale",description:"Add new scale"},duplicateScaleError:{id:"duplicateScaleError",defaultMessage:"Scale with these settings has already been defined. Please choose a different scale.",description:"Scale with these settings has already been defined. Please choose a different scale."}}),L=function(e){const{frameWindow:t,setAreValidScales:o,scalesSetter:i,activeScaleSetter:f,editedScalesSetter:m}=e,{formatMessage:b}=(0,l.YB)(),C=(0,c.v9)((e=>e.measurementScales)),A=(0,c.v9)((e=>e.activeMeasurementScale)),[L,B]=(0,s.useState)([]),[j,z]=(0,s.useState)(C),[K,Z]=(0,s.useState)(A?null==C?void 0:C.findIndex((e=>(0,D.cd)(e,A))):0),[U,V]=(0,s.useState)([]),[G,W]=(0,s.useState)([]);s.useEffect((()=>{const e=function(e,t){const n=[];return t.forEach((t=>{const o=e[t],r=[],i=o.scale.fromValue,a=o.scale.toValue,s=o.precision;R(i)||r.push(F),R(a)||r.push(M),s||r.push(_);const l=[];e.forEach(((e,n)=>{n!==t&&(l.push(n),o.name&&o.name===e.name&&!r.includes(I)&&r.push(I),(0,D.cd)(o,e)&&!r.includes(T)&&r.push(T))})),r.length>0&&n.push({index:t,fields:r,conflicts:l})})),n}(j,G);if(e.length>0){const t=e[e.length-1];B([t])}else B([]),W([]),i(j);o(0===e.length)}),[j,i,o]),s.useEffect((()=>{z(C)}),[C]),s.useEffect((()=>{const e=null==j?void 0:j.find(((e,t)=>t===K));e&&f(e)}),[K,f,j]),s.useEffect((()=>{m(U)}),[U]);const q=(e,t,n)=>{z((o=>{const r=null==o?void 0:o.map((e=>O(O({},e),{},{scale:O({},e.scale)})));return"precision"===t?r[e][t]=n:r[e].scale=O(O({},r[e].scale),{},{[t]:n}),r})),null!=C&&C.find((t=>JSON.stringify(t)===JSON.stringify(null==j?void 0:j[e])))&&U&&!U.find((t=>t===e))&&V([...U,{index:e,prevScale:C[e]}]),G.includes(e)||W([...G,e])},H=s.useCallback((0,p.zx)(b,"measurement"),[b]),$=s.useCallback((0,p.ck)(b),[b]);return s.createElement("div",{className:k().scale},null==j?void 0:j.map(((e,o)=>{var i,l;const c=e.name,d=e.scale,p=e.precision,f=null==d?void 0:d.unitFrom,m=null==d?void 0:d.unitTo,A=null==d?void 0:d.fromValue,R=null==d?void 0:d.toValue,B=L.find((e=>e.index===o)),Y=null==B?void 0:B.fields.includes(T),X=null==B?void 0:B.fields.includes(I),J=null==B?void 0:B.fields.includes(F),Q=null==B?void 0:B.fields.includes(M),ee=null==B?void 0:B.fields.includes(_);return s.createElement("div",{key:o,style:{marginBottom:"var(--PSPDFKit-spacing-6)"}},s.createElement("div",{className:a()(k().scaleRow),style:Y?{borderBottom:0}:{},"data-test-id":`PSPDFKit-Scale-${o+1}`},s.createElement("input",{key:c,type:"radio",checked:Boolean(K===o&&!Y),value:o,id:b(N.scaleSelector,{arg0:o+1}),name:b(N.scaleSelector,{arg0:o+1}),onChange:e=>{e.target.checked&&Z(o)},className:a()(k().activeScaleRadio,"PSPDFKit-Active-Scale-Radio-Input")}),s.createElement("div",{className:a()(k().scaleContent,k().scaleMiddleSection)},s.createElement("div",{className:a()(k().scaleRow,k().spaceBetweenRow,k().rowSeparator)},s.createElement(r.oi,{type:"text",value:c,placeholder:b(N.scaleName),onChange:e=>{((e,t)=>{G.includes(e)||W([...G,e]),z((n=>{const o=null==n?void 0:n.map((e=>O(O({},e),{},{scale:O({},e.scale)})));return o[e].name=t,o})),null!=C&&C.find((t=>JSON.stringify(t)===JSON.stringify(null==j?void 0:j[e])))&&U&&!U.find((t=>t===e))&&V([...U,{index:e,prevScale:C[e]}])})(o,e.target.value)},required:!0,style:{height:32,width:"100%",borderColor:X?"#FF0000":void 0},className:a()(g().input),maxLength:40})),s.createElement("div",{className:a()(k().scaleRow,k().rowSeparator)},s.createElement("div",{className:k().scaleRowContent},s.createElement(r.oi,{type:"number",value:""+A,onChange:e=>{q(o,"fromValue",e.target.value)},required:!0,style:{height:32,width:54,borderColor:J||Y?"#FF0000":void 0},"data-test-id":`PSPDFKit-Scale-${o+1}-FromValue`,className:a()(g().input)}),s.createElement("div",{className:a()(k().nativeDropdown,w().nativeButton)},s.createElement("select",{style:{height:30},"aria-label":`${b(N.scaleUnitFrom)} ${o+1}`,className:a()("PSPDFKit-Input-Dropdown-Select"),"data-test-id":`PSPDFKit-Scale-${o+1}-UnitFrom`,value:f||"",onChange:e=>{q(o,"unitFrom",e.target.value)}},Object.keys(P.s).map((e=>s.createElement("option",{key:e,value:P.s[e]},P.s[e]))))),s.createElement(E.Z,{items:D.m_,value:null!==(i=D.m_.find((e=>e.value===f)))&&void 0!==i?i:null,accessibilityLabel:`${b(N.scaleUnitFrom)} ${o+1}`,discreteDropdown:!1,isActive:!1,caretDirection:"down","data-test-id":`PSPDFKit-Scale-${o+1}-UnitFrom`,className:a()(k().dropdownGroupComponent,h().dropdownGroupComponent),menuClassName:h().dropdownGroupMenu,ButtonComponent:H,ItemComponent:$,onSelect:(e,t)=>{q(o,"unitFrom",t.value)},frameWindow:t})),"=",s.createElement("div",{className:k().scaleRowContent},s.createElement(r.oi,{type:"number",value:""+R,onChange:e=>{q(o,"toValue",e.target.value)},required:!0,style:{height:32,width:54,borderColor:Q||Y?"#FF0000":void 0},"data-test-id":`PSPDFKit-Scale-${o+1}-ToValue`,className:a()(g().input)}),s.createElement("div",{className:a()(k().nativeDropdown,w().nativeButton)},s.createElement("select",{style:{height:30},"aria-label":`${b(N.scaleUnitFrom)} ${o+1}`,"data-test-id":`PSPDFKit-Scale-${o+1}-UnitTo`,className:a()("PSPDFKit-Input-Dropdown-Select"),value:m||"",onChange:e=>{q(o,"unitTo",e.target.value)}},Object.keys(x.K).map((e=>s.createElement("option",{key:e,value:x.K[e]},x.K[e]))))),s.createElement(E.Z,{items:D.b5,value:null!==(l=D.b5.find((e=>e.value===m)))&&void 0!==l?l:null,accessibilityLabel:`${b(N.scaleUnitFrom)} ${o+1}`,discreteDropdown:!1,isActive:!1,caretDirection:"down","data-test-id":`PSPDFKit-Scale-${o+1}-UnitTo`,className:a()(k().dropdownGroupComponent,h().dropdownGroupComponent),menuClassName:h().dropdownGroupMenu,ButtonComponent:H,ItemComponent:$,onSelect:(e,t)=>{q(o,"unitTo",t.value)},frameWindow:t}))),s.createElement("div",{className:a()(k().scaleRow,k().spaceBetweenRow,k().rowSeparator)},s.createElement("p",{className:h().itemLabel},b(y.sY.measurementPrecision)),s.createElement(u.Z,{frameWindow:t,unit:m,onPrecisionChange:e=>q(o,"precision",e),selectedPrecision:p,wrapperClass:a()({[k().error]:ee}),accessibilityLabel:`${y.sY.measurementScale} ${b(y.sY.measurementPrecision)} ${o+1}`,index:o}))),s.createElement("div",null,s.createElement(r.zx,{"data-test-id":`PSPDFKit-Scale-${o+1}-RemoveScale`,className:a()(k().closeButton,"PSPDFKit-Measurement-Exit-Dialog-Close-Button"),onClick:()=>{(e=>{if(z((t=>{const n=null==t?void 0:t.map((e=>O(O({},e),{},{scale:O({},e.scale)})));return n.splice(e,1),n})),U){const t=U.filter((t=>t.index!==e)).map((e=>O(O({},e),{},{index:e.index-1})));V(t)}if(G){const t=G.filter((t=>t!==e)).map((e=>e-1));W(t)}Z((e=>e?e-1:0))})(o)},"aria-label":b(S.Z.close),disabled:1===j.length,style:{position:"relative",top:"7px"}},s.createElement(v.Z,{className:k().signatureValidationCloseIcon,src:n(15708)})))),(Y||X)&&s.createElement("p",{className:a()(k().scaleError)},b(N.duplicateScaleError)))})),s.createElement("div",{className:k().addNewScale,onClick:()=>{z((e=>{const t=null==e?void 0:e.map((e=>O(O({},e),{},{scale:O({},e.scale)})));return t.push({name:"",scale:{unitFrom:"cm",unitTo:"cm",fromValue:1,toValue:1},precision:d.L.WHOLE}),t})),W([...G,null==j?void 0:j.length])}},s.createElement(v.Z,{className:k().signatureValidationCloseIcon,src:n(88232)}),s.createElement("u",{style:{color:"var(--color-blue600)"}},b(N.newScale))))}},9599:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>j,sJ:()=>L});var o=n(22122),r=n(94184),i=n.n(r),a=n(18390),s=n(85628),l=n.n(s),c=n(67294),u=n(76154),d=n(67366),p=n(70190),f=n.n(p),h=n(30570),m=n(90012),g=n(71603),v=n(20792),y=n(69939),b=n(44763),w=n(40853),S=n(93628),E=n.n(S),P=n(22458),x=n.n(P),D=n(10754),C=n.n(D),k=n(5462),A=n(63738),O=n(13540),T=n(9437),I=n.n(T),F=n(20683),M=n(80324),_=n.n(M),R=n(35129);function N(e,t){const n=Math.round(e*t);return new(l())(n/t).toFraction(!0)}function L(e){if(!e)return{label:"",value:null};let t,n;const o=function(e){switch(e){case"whole":return"1";case"oneDp":return"0.1";case"twoDp":return"0.001";case"threeDp":case"fourDp":return"0.0001";default:return null}}(e.precision)||e.precision;if(["1","0.1","0.01","0.001","0.0001"].includes(o)){const r=function(e){switch(e){case"1":default:return 0;case"0.1":return 1;case"0.01":return 2;case"0.001":return 3;case"0.0001":return 4}}(o);t=Number(e.scale.fromValue).toFixed(r),n=Number(e.scale.toValue).toFixed(r)}else if(["1/2","1/4","1/8","1/16"].includes(o)){const r=Number(o.split("/")[1]);t=N(e.scale.fromValue,r),n=N(e.scale.toValue,r)}return{label:e.name||`${t} ${e.scale.unitFrom} : ${n} ${e.scale.unitTo}`,value:e}}const B=(0,u.vU)({unit:{id:"unit",defaultMessage:"Unit",description:"Unit"},scalesDropdown:{id:"scalesDropdown",defaultMessage:"Scales dropdown",description:"Scales dropdown"},editAddScale:{id:"editAddScale",defaultMessage:"Edit or add new scale",description:"Edit or add new scale"},useCalibrationTool:{id:"useCalibrationTool",defaultMessage:"Use calibration tool",description:"Use calibration tool"}}),j=function(e){var t;let{frameWindow:o,selectedAnnotation:r,onAnnotationScaleUpdate:a,selectedAnnotations:s}=e;const l=(0,d.v9)((e=>e.measurementScales)),p=(0,d.v9)((e=>e.activeMeasurementScale)),f=(0,d.I0)(),{formatMessage:S}=(0,u.YB)(),P=c.useMemo((()=>function(e,t){if(t&&e)return null==e?void 0:e.find((e=>{var n,o,r,i;const a=e.precision===t.measurementPrecision,s=e.scale.fromValue===(null===(n=t.measurementScale)||void 0===n?void 0:n.fromValue),l=e.scale.toValue===(null===(o=t.measurementScale)||void 0===o?void 0:o.toValue),c=e.scale.unitFrom===(null===(r=t.measurementScale)||void 0===r?void 0:r.unitFrom),u=e.scale.unitTo===(null===(i=t.measurementScale)||void 0===i?void 0:i.unitTo);return a&&s&&l&&c&&u}))}(l,r)||p),[l,r,p]),D=c.useCallback((0,w.zx)(S,"measurement",200),[S]),T=c.useMemo((()=>!!s&&(0,h.mq)(s)),[s]),M=c.useMemo((()=>function(e,t,n){const o=e.map((e=>L(e)));return t?[...o,{label:n,value:n}]:o}(l,T,S(R.Z.mixed))),[T,S,l]),N=c.useCallback((e=>{if(e.value!==S(R.Z.mixed))if(r){const{value:t}=e,{precision:n,scale:o}=t,{fromValue:r,toValue:i,unitFrom:s,unitTo:l}=o;null==a||a({measurementPrecision:n,measurementScale:new g.Z({fromValue:Number(r),toValue:Number(i),unitFrom:s,unitTo:l})})}else f((0,b.Se)(e.value))}),[f,S,a,r]);if(!l)return null;if(!P)return c.createElement("div",{className:I().warningButton,onClick:()=>f((0,A.PR)())},c.createElement(O.Z,{src:n(78339),role:"presentation",className:I().warningButtonIcon}),c.createElement("span",{className:I().radioButtonWarningLabel},S(m.s.setScale)));function j(){(0,d.dC)((()=>{f((0,b.Xh)(!0)),f((0,y.Ds)("distance")),f((0,A.yg)(F.Z,v.A.DISTANCE))}))}return c.createElement("div",{className:C().scaleDropdownContainer},c.createElement("div",{className:i()(x().nativeDropdown,C().nativeButton)},c.createElement("select",{"aria-label":S(B.scalesDropdown),value:T?S(R.Z.mixed):null===(t=M.find((e=>JSON.stringify(e.value)===JSON.stringify(P))))||void 0===t?void 0:t.label,className:i()("PSPDFKit-Input-Dropdown-Select","PSPDFKit-Scales-Dropdown"),onChange:e=>{const t=e.target.value;"editAddScale"===t?f((0,A.PR)()):"calibrationTool"===t?j():N(M.find((e=>e.label===t)))}},null==M?void 0:M.map((e=>c.createElement("option",{key:e.label,value:e.label},e.label))),c.createElement("option",{key:S(B.editAddScale),value:"editAddScale"},S(B.editAddScale),"..."),c.createElement("option",{key:S(B.useCalibrationTool),value:"calibrationTool"},S(B.useCalibrationTool),"..."))),c.createElement(k.Z,{items:M,value:T?{label:S(R.Z.mixed),value:S(R.Z.mixed)}:M.find((e=>JSON.stringify(e.value)===JSON.stringify(P))),accessibilityLabel:S(B.scalesDropdown),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:i()(x().dropdownGroupComponent,"PSPDFKit-Measurement-Popover-Precision-Dropdown","PSPDFKit-Scales-Dropdown"),menuClassName:i()(x().dropdownGroupMenu,E().measurementDropdownText),ButtonComponent:D,ItemComponent:z,onSelect:(e,t)=>N(t),frameWindow:o},c.createElement("div",{className:_().scalesDropdownItem,onClick:()=>f((0,A.PR)())},S(B.editAddScale),"..."),c.createElement("div",{className:_().scalesDropdownItem,onClick:()=>{j()}},S(B.useCalibrationTool),"...")))},z=e=>{let{item:t,state:n,itemComponentProps:o,ref:r}=e;return c.createElement(K,{item:t,state:n,itemComponentProps:o,ref:r})},K=c.forwardRef(((e,t)=>{var n;let{item:r,state:s,itemComponentProps:l,width:u}=e;return c.createElement(a.Z,(0,o.Z)({is:"div",className:i()(E().item,_().item,{[E().isSelected]:(null==s?void 0:s.includes("selected"))||(null==s?void 0:s.includes("focused"))}),name:null!==(n=null==r?void 0:r.value)&&void 0!==n?n:null==r?void 0:r.label,style:{width:u},ref:t},l),null!=s&&s.includes("selected")?c.createElement(O.Z,{src:f(),className:_().icon}):c.createElement("span",{className:_().icon}),null==r?void 0:r.label)}))},35129:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,Z:()=>i});var o=n(76154),r=n(83634);const i=(0,o.vU)({color:{id:"color",defaultMessage:"Color",description:"Color"},fillColor:{id:"fillColor",defaultMessage:"Fill Color",description:"Background color"},newColor:{id:"newColor",defaultMessage:"New Color",description:"New Custom Color"},[r.Z.BLACK.toCSSValue()]:{id:"black",defaultMessage:"Black",description:"Black, the color"},[r.Z.WHITE.toCSSValue()]:{id:"white",defaultMessage:"White",description:"White, the color"},[r.Z.BLUE.toCSSValue()]:{id:"blue",defaultMessage:"Blue",description:"Blue, the color"},[r.Z.RED.toCSSValue()]:{id:"red",defaultMessage:"Red",description:"Red, the color"},[r.Z.GREEN.toCSSValue()]:{id:"green",defaultMessage:"Green",description:"Green, the color"},[r.Z.ORANGE.toCSSValue()]:{id:"orange",defaultMessage:"Orange",description:"Orange, the color"},[r.Z.LIGHT_BLUE.toCSSValue()]:{id:"lightBlue",defaultMessage:"Light Blue",description:"Light Blue color"},[r.Z.LIGHT_RED.toCSSValue()]:{id:"lightRed",defaultMessage:"Light Red",description:"Light Red color"},[r.Z.LIGHT_GREEN.toCSSValue()]:{id:"lightGreen",defaultMessage:"Light Green",description:"Light Green color"},[r.Z.LIGHT_YELLOW.toCSSValue()]:{id:"yellow",defaultMessage:"Yellow",description:"Yellow color"},opacity:{id:"opacity",defaultMessage:"Opacity",description:"Opacity"},thickness:{id:"thickness",defaultMessage:"Thickness",description:"Thickness of a line"},"linecaps-dasharray":{id:"linecaps-dasharray",defaultMessage:"Line Style",description:"Select line caps and dash pattern of lines"},linestyle:{id:"dasharray",defaultMessage:"Line style",description:"Select line style"},borderStyle:{id:"borderStyle",defaultMessage:"Border style",description:"Select border style"},borderColor:{id:"borderColor",defaultMessage:"Border color",description:"Select border color"},font:{id:"font",defaultMessage:"Font",description:"Font"},fontSize:{id:"fontSize",defaultMessage:"Font size",description:"Font size selection"},fonts:{id:"fonts",defaultMessage:"Fonts",description:"Fonts"},allFonts:{id:"allFonts",defaultMessage:"All Fonts",description:"Used when presenting a list of fonts"},fontFamilyUnsupported:{id:"fontFamilyUnsupported",defaultMessage:"{arg0} (not supported)",description:"Font family (type) is not supported"},alignment:{id:"alignment",defaultMessage:"Alignment",description:"Alignment (left, center, right, top, middle, bottom)"},alignmentRight:{id:"alignmentRight",defaultMessage:"Right",description:"Right alignment"},alignmentLeft:{id:"alignmentLeft",defaultMessage:"Left",description:"Left alignment"},alignmentCenter:{id:"alignmentCenter",defaultMessage:"center",description:"Center alignment"},verticalAlignment:{id:"verticalAlignment",defaultMessage:"Vertical Alignment",description:"Vertical Alignment (top, center, bottom)"},horizontalAlignment:{id:"horizontalAlignment",defaultMessage:"Horizontal Alignment",description:"Horizontal Alignment (left, center, right)"},size:{id:"size",defaultMessage:"Size",description:"Used to label sizes (eg. font)"},numberInPt:{id:"numberInPt",defaultMessage:"{arg0} pt",description:"A number in pt (points). eg. 10pt"},startLineCap:{id:"startLineCap",defaultMessage:"Line Start",description:'Start line cap marker. eg. "open arrow"'},strokeDashArray:{id:"strokeDashArray",defaultMessage:"Line Style",description:"Line Style"},endLineCap:{id:"endLineCap",defaultMessage:"Line End",description:'End line cap marker. eg. "open arrow"'},edit:{id:"edit",defaultMessage:"Edit",description:"Generic edit label"},save:{id:"save",defaultMessage:"Save",description:"Generic save label"},saveAs:{id:"saveAs",defaultMessage:"Save As...",description:'Generic "save as" label'},export:{id:"export",defaultMessage:"Export",description:'Generic "export" label'},delete:{id:"delete",defaultMessage:"Delete",description:"Generic delete label"},cancel:{id:"cancel",defaultMessage:"Cancel",description:"Cancel"},ok:{id:"ok",defaultMessage:"OK",description:"Ok, usually used to confirm an action"},close:{id:"close",defaultMessage:"Close",description:'Generic, usually to close something. "something" can be inferred from the context in which the message appears'},done:{id:"done",defaultMessage:"Done",description:'Generic "done" message. Usually used in a button.'},annotationsCount:{id:"annotationsCount",defaultMessage:"{arg0, plural,\n =0 {{arg0} Annotations}\n one {{arg0} Annotation}\n two {{arg0} Annotations}\n other {{arg0} Annotations}\n }",description:"Amount of annotations."},annotations:{id:"annotations",defaultMessage:"Annotations",description:"PDF Annotations"},bookmark:{id:"bookmark",defaultMessage:"Bookmark",description:"PDF Bookmark"},bookmarks:{id:"bookmarks",defaultMessage:"Bookmarks",description:"PDF Bookmarks"},annotation:{id:"annotation",defaultMessage:"Annotation",description:"Annotation"},selectedAnnotation:{id:"selectedAnnotation",defaultMessage:"selected {arg0}",description:"Selected Annotation"},selectedAnnotationWithText:{id:"selectedAnnotationWithText",defaultMessage:"Selected {arg0} with {arg1} as content",description:"Selected Text or Note Annotation"},noteAnnotation:{id:"noteAnnotation",defaultMessage:"Note",description:"Text Note Annotation"},comment:{id:"comment",defaultMessage:"Comment",description:"Comment"},commentAction:{id:"commentAction",defaultMessage:"Comment",description:"Comment"},comments:{id:"comments",defaultMessage:"Comments",description:"Comments"},textAnnotation:{id:"textAnnotation",defaultMessage:"Text",description:"Free Text Annotation"},calloutAnnotation:{id:"calloutAnnotation",defaultMessage:"Callout",description:"Free Text Annotation (Callout)"},pen:{id:"pen",defaultMessage:"Drawing",description:"Ink Annotation used to do freehand drawing."},eraser:{id:"eraser",defaultMessage:"Ink Eraser",description:"Ink Eraser tool to remove ink annotations points by hand."},inkAnnotation:{id:"inkAnnotation",defaultMessage:"Drawing",description:"Ink Annotation used to do freehand drawing."},highlighterAnnotation:{id:"highlighterAnnotation",defaultMessage:"Freeform Highlight",description:"Ink Annotation used to highlight content."},highlightAnnotation:{id:"highlightAnnotation",defaultMessage:"Text Highlight",description:"Highlight Annotation used to select and mark text."},underlineAnnotation:{id:"underlineAnnotation",defaultMessage:"Underline",description:"Undeline Annotation used to select and mark text."},squiggleAnnotation:{id:"squiggleAnnotation",defaultMessage:"Squiggle",description:"Squiggle Annotation used to select and mark text."},strikeOutAnnotation:{id:"strikeOutAnnotation",defaultMessage:"Strikethrough",description:"StrikeOut Annotation used to select and mark text."},lineAnnotation:{id:"lineAnnotation",defaultMessage:"Line",description:"Shape Annotation used to draw straight lines."},arrowAnnotation:{id:"arrowAnnotation",defaultMessage:"Arrow",description:"Shape Annotation used to draw an arrow."},rectangleAnnotation:{id:"rectangleAnnotation",defaultMessage:"Rectangle",description:"Shape Annotation used to draw rectangles."},ellipseAnnotation:{id:"ellipseAnnotation",defaultMessage:"Ellipse",description:"Shape Annotation used to draw ellipses."},polygonAnnotation:{id:"polygonAnnotation",defaultMessage:"Polygon",description:"Shape Annotation used to draw polygons."},polylineAnnotation:{id:"polylineAnnotation",defaultMessage:"Polyline",description:"Shape Annotation used to draw polylines."},imageAnnotation:{id:"imageAnnotation",defaultMessage:"Image",description:"Image Annotation"},stampAnnotation:{id:"stampAnnotation",defaultMessage:"Stamp",description:"Stamp Annotation"},redactionAnnotation:{id:"redactionAnnotation",defaultMessage:"Redaction",description:"Redaction Annotation"},arrow:{id:"arrow",defaultMessage:"Line with arrow",description:"Shape Annotation used to draw straight lines with an arrow."},highlighter:{id:"highlighter",defaultMessage:"Freeform Highlight",description:"Ink Annotation used to highlight content with freehand drawing."},icon:{id:"icon",defaultMessage:"Icon",description:"Label for when users need to select an icon"},pageXofY:{id:"pageXofY",defaultMessage:"Page {arg0} of {arg1}",description:"Page indicator."},pageX:{id:"pageX",defaultMessage:"Page {arg0}",description:"Page number"},searchDocument:{id:"searchDocument",defaultMessage:"Search Document",description:"Search document (for text)"},sign:{id:"sign",defaultMessage:"Sign",description:"Label for a signature field"},signed:{id:"signed",defaultMessage:"Signed",description:"Label for a signed field"},signatures:{id:"signatures",defaultMessage:"Signatures",description:"Signatures title"},blendMode:{id:"blendMode",defaultMessage:"Blend Mode",description:"Blend Mode"},linesCount:{id:"linesCount",defaultMessage:"{arg0, plural,\n =0 {{arg0} Lines}\n one {{arg0} Line}\n two {{arg0} Lines}\n other {{arg0} Lines}\n }",description:"Amount of lines (for example in a ink annotation)."},filePath:{id:"filePath",defaultMessage:"File Path",description:"Location of a file or file name"},useAnExistingStampDesign:{id:"useAnExistingStampDesign",defaultMessage:"Use an existing stamp design",description:"Use an existing stamp design"},customStamp:{id:"customStamp",defaultMessage:"Custom Stamp",description:"Custom Stamp"},stampText:{id:"stampText",defaultMessage:"Stamp Text",description:"Stamp Text"},clear:{id:"clear",defaultMessage:"Clear",description:"Clear"},date:{id:"date",defaultMessage:"Date",description:"Date."},time:{id:"time",defaultMessage:"Time",description:"Time."},sidebar:{id:"sidebar",defaultMessage:"Sidebar",description:"Generic label for a sidebar"},gotoPageX:{id:"gotoPageX",defaultMessage:"Go to Page {arg0}",description:"Go to a page"},name:{id:"name",defaultMessage:"Name",description:"Name field usually."},chooseColor:{id:"chooseColor",defaultMessage:"Choose Color",description:"Choose color from the UI."},textHighlighter:{id:"textHighlighter",defaultMessage:"Text highlighter",description:"Highlighter tool used to highlight selected text."},undo:{id:"undo",defaultMessage:"Undo",description:"Undo last action."},redo:{id:"redo",defaultMessage:"Redo",description:"Redo last undone action."},showMore:{id:"showMore",defaultMessage:"Show More",description:"Show more"},showLess:{id:"showLess",defaultMessage:"Show Less",description:"Show Less"},nMoreComments:{id:"nMoreComments",defaultMessage:"{arg0, plural,\none {{arg0} more comment}\nother {{arg0} more comments}\n}",description:"n more comments"},documentEditor:{id:"documentEditor",defaultMessage:"Document Editor",description:"Document Editor toolbar label"},areaRedaction:{id:"areaRedaction",defaultMessage:"Area Redaction",description:"Area Redaction toolbar item label"},textRedaction:{id:"textRedaction",defaultMessage:"Text Redaction",description:"Text Redaction toolbar item label"},outlineColor:{id:"outlineColor",defaultMessage:"Outline Color",description:"Outline color"},overlayText:{id:"overlayText",defaultMessage:"Overlay text",description:"Overlay text"},insertOverlayText:{id:"overlayTextPlaceholder",defaultMessage:"Insert overlay text",description:"Overlay Text property placeholder"},repeatText:{id:"repeatText",defaultMessage:"Repeat text",description:"Repeat text placeholder"},preview:{id:"preview",defaultMessage:"Preview",description:"Preview"},markupToolbar:{id:"markupAnnotationToolbar",defaultMessage:"Markup annotation toolbar",description:"Label for the markup annotation toolbar popover"},documentViewport:{id:"documentViewport",defaultMessage:"document viewport",description:"Label for document viewport region"},top:{id:"top",defaultMessage:"Top",description:"Top"},bottom:{id:"bottom",defaultMessage:"Bottom",description:"Bottom"},resize:{id:"resize",defaultMessage:"Resize",description:"Resize action when an annotation is selected."},resizeHandleTop:{id:"resizeHandleTop",defaultMessage:"top",description:"One of the top resize handlers."},resizeHandleBottom:{id:"resizeHandleBottom",defaultMessage:"bottom",description:"One of the bottom resize handlers."},resizeHandleLeft:{id:"resizeHandleLeft",defaultMessage:"left",description:"One of the left resize handlers."},resizeHandleRight:{id:"resizeHandleRight",defaultMessage:"right",description:"One of the right resize handlers."},cropAll:{id:"cropAll",defaultMessage:"Crop All",description:"Crop all pages."},cropAllPages:{id:"cropAllPages",defaultMessage:"Crop All Pages",description:"Crop all pages."},cropCurrent:{id:"cropCurrent",defaultMessage:"Crop Current",description:"Crop current page."},cropCurrentPage:{id:"cropCurrentPage",defaultMessage:"Crop Current Page",description:"Crop current page."},documentCrop:{id:"documentCrop",defaultMessage:"Document Crop",description:"Crop document pages."},documentComparison:{id:"documentComparison",defaultMessage:"Document Comparison",description:"Compare two documents."},rotateCounterclockwise:{id:"rotateCounterclockwise",defaultMessage:"Rotate counterclockwise",description:"Label for the rotate counterclockwise button"},rotateClockwise:{id:"rotateClockwise",defaultMessage:"Rotate clockwise",description:"Label for the rotate clockwise button"},rotation:{id:"rotation",defaultMessage:"Rotate",description:"Label for the rotate button"},applyRedactions:{id:"applyRedactions",defaultMessage:"Apply Redactions",description:"Applies redactions to document"},cloudyRectangleAnnotation:{id:"cloudyRectangleAnnotation",defaultMessage:"Cloudy Rectangle",description:"Cloudy Rectangle"},dashedRectangleAnnotation:{id:"dashedRectangleAnnotation",defaultMessage:"Dashed Rectangle",description:"Dashed Rectangle"},cloudyEllipseAnnotation:{id:"cloudyEllipseAnnotation",defaultMessage:"Cloudy Ellipse",description:"Cloudy Ellipse"},dashedEllipseAnnotation:{id:"dashedEllipseAnnotation",defaultMessage:"Dashed Ellipse",description:"Dashed Ellipse"},cloudyPolygonAnnotation:{id:"cloudyPolygonAnnotation",defaultMessage:"Cloudy Polygon",description:"Cloudy Polygon"},dashedPolygonAnnotation:{id:"dashedPolygonAnnotation",defaultMessage:"Dashed Polygon",description:"Dashed Polygon"},cloudAnnotation:{id:"cloudAnnotation",defaultMessage:"Cloud",description:"Cloud Annotation"},addSignature:{id:"addSignature",defaultMessage:"Add Signature",description:"Add Signature"},storeSignature:{id:"storeSignature",defaultMessage:"Store Signature",description:"Store the signature that is in creation"},clearSignature:{id:"clearSignature",defaultMessage:"Clear Signature",description:"Clear the signature canvas"},button:{id:"button",defaultMessage:"Button Field",description:"Button Field"},textField:{id:"textField",defaultMessage:"Text Field",description:"Text Field"},radioField:{id:"radioField",defaultMessage:"Radio Field",description:"Radio Field"},checkboxField:{id:"checkboxField",defaultMessage:"Checkbox Field",description:"Checkbox Field"},comboBoxField:{id:"comboBoxField",defaultMessage:"Combo Box Field",description:"Combo Box Field"},listBoxField:{id:"listBoxField",defaultMessage:"List Box Field",description:"List Box Field"},signatureField:{id:"signatureField",defaultMessage:"Signature Field",description:"Signature Field"},dateField:{id:"dateField",defaultMessage:"Date Field",description:"Date Field"},formCreator:{id:"formCreator",defaultMessage:"Form Creator",description:"Create, edit or Delete widget annotations."},mediaAnnotation:{id:"mediaAnnotation",defaultMessage:"Media Annotation",description:"Media Annotation"},mediaFormatNotSupported:{id:"mediaFormatNotSupported",defaultMessage:"This browser does not support embedded medias.",description:"The browser does not support embedded medias"},contentEditor:{id:"contentEditor",defaultMessage:"Content Editor",description:"Content Editor"},saveAndClose:{id:"saveAndClose",defaultMessage:"Save & Close",description:"Save changes"},none:{id:"none",defaultMessage:"None",description:"Normal line"},linkAnnotation:{id:"linkAnnotation",defaultMessage:"Link",description:"Link Annotation"},measurement:{id:"measurement",defaultMessage:"Measurement",description:"Measurement"},distanceMeasurement:{id:"distanceMeasurement",defaultMessage:"Distance",description:"Measurement Annotation used to measure distance between 2 points"},multiAnnotationsSelection:{id:"multiAnnotationsSelection",defaultMessage:"Select Multiple Annotations",description:"Multiple annotations selection tool used to enable selection of multiple annotations."},rectangularAreaMeasurement:{id:"rectangularAreaMeasurement",defaultMessage:"Rectangle Area",description:"Measurement Annotation used to measure rectangle areas."},ellipseAreaMeasurement:{id:"ellipseAreaMeasurement",defaultMessage:"Ellipse Area",description:"Measurement Annotation used to measure elliptical areas."},polygonAreaMeasurement:{id:"polygonAreaMeasurement",defaultMessage:"Polygon Area",description:"Measurement Annotation used to measure polygon areas."},perimeterMeasurement:{id:"perimeterMeasurement",defaultMessage:"Perimeter",description:"Measure Annotation used to measure perimeter."},bold:{id:"bold",defaultMessage:"Bold",description:"Bold text"},italic:{id:"italic",defaultMessage:"Italic",description:"Italic text"},underline:{id:"underline",defaultMessage:"Underline",description:"Underline"},discard:{id:"discardChanges",defaultMessage:"Discard Changes",description:"Discard"},anonymous:{id:"anonymous",defaultMessage:"Anonymous",description:"Anonymous"},loading:{id:"loading",defaultMessage:"Loading...",description:"Shown while the document is being fetched"},group:{id:"group",defaultMessage:"Group",description:"Group annotations."},ungroup:{id:"ungroup",defaultMessage:"Ungroup",description:"Ungroup annotations."},mixedMeasurements:{id:"mixedMeasurements",defaultMessage:"Mixed Measurements",description:"Mixed Measurements"},mixed:{id:"mixed",defaultMessage:"Mixed",description:"Mixed"},back:{id:"back",defaultMessage:"Back",description:"back"}}),a=(0,o.vU)({numberValidationBadFormat:{id:"numberValidationBadFormat",defaultMessage:"The value entered does not match the format of the field [{arg0}]",description:"The number form field value format is wrong."},dateValidationBadFormat:{id:"dateValidationBadFormat",defaultMessage:"Invalid date/time: please ensure that the date/time exists. Field [{arg0}] should match format {arg1}",description:"The date form field value format is wrong."}})},35860:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f,z:()=>p});var o=n(25915),r=n(76154),i=n(67294),a=n(94184),s=n.n(a),l=n(35129),c=n(28890),u=n(73535),d=n.n(u);class p extends i.PureComponent{render(){const{formatMessage:e}=this.props.intl;return i.createElement(c.Z,{role:"alertdialog",onEscape:this.props.onCancel,background:"rgba(0,0,0,.1)",className:"PSPDFKit-Confirm-Dialog",accessibilityLabel:this.props.accessibilityLabel||"Confirm Dialog",accessibilityDescription:this.props.accessibilityDescription,restoreOnClose:this.props.restoreOnClose},i.createElement(c.Z.Section,{style:{paddingBottom:0}},i.createElement("div",{className:`${d().content} PSPDFKit-Confirm-Dialog-Content`},this.props.children)),i.createElement(c.Z.Section,null,i.createElement(o.hE,{className:"PSPDFKit-Confirm-Dialog-Buttons",align:"end"},i.createElement(o.zx,{autoFocus:!0,onClick:this.props.onCancel,className:s()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Cancel",d().button)},e(l.Z.cancel)),i.createElement(o.zx,{onClick:this.props.onConfirm,primary:!0,className:s()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Confirm",d().button)},e(l.Z.delete)))))}}const f=(0,r.XN)(p)},72800:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var o=n(67294),r=n(73264),i=n(87515),a=n(82481);function s(e){const{backend:t,onInitialRenderFinished:n,pageIndex:r,pageSize:s,pageKey:l,renderPageCallback:c,zoomLevel:u,scaleFactor:d}=e,p=o.useRef(!1),f=o.useCallback((function(){p.current||(p.current=!0,n&&n())}),[n]),h=o.useMemo((function(){return new a.UL({width:Math.ceil(s.width*d),height:Math.ceil(s.height*d)})}),[s,d]),m=e.inContentEditorMode||!1;return o.createElement("div",{style:{transform:`scale(${u/d})`,transformOrigin:"0 0"},key:l},o.createElement(i.Z,{backend:t,pageIndex:r,scaledPageSize:h,originalPageSize:s,onRenderFinished:f,rect:h,renderPageCallback:c,pageKey:l,hasInitialRenderFinished:p.current,inContentEditorMode:m}))}var l=n(55961),c=n(22122),u=n(27515),d=n(88804);function p(e){let{backend:t,viewportState:n,page:r,tileSize:a,tileOverlapping:s,scale:l,renderPageCallback:p,tilesRenderedCallback:f,contentState:h,crispTiles:m,inContentEditorMode:g}=e;const{pageIndex:v,pageSize:y,pageKey:b}=r,[w,S]=function(e,t,n,r,i,a,s){const[l,c]=o.useState({}),p=o.useRef([]),f=o.useMemo((function(){return function(e,t,n,o,r,i,a){const{viewportRect:s}=e,l=(0,u.Ek)(e,r),c=s.grow(n).apply(l).scale(a).round(),p=t.scale(a).ceil(),f={};for(let e=0;e<=p.height;e+=n){let t=n;if(e+t>p.height&&(t=Math.floor(p.height-e)),e+t<=c.top||e>=c.bottom||t<=0)e-=o;else{for(let r=0;r<=p.width;r+=n){let s=n;if(r+n>p.width&&(s=Math.floor(p.width-r)),r+s<=c.left||r>=c.right||s<=0){r-=o;continue}const l=`${i}-sw${p.width}-sh${p.height}-x${r}-y${e}-w${s}-h${t}`;f[l]={key:l,scale:a,rect:new d.UL({width:s,height:t,left:r,top:e})},r-=o}e-=o}}return f}(e,t,n,r,i,a,s)}),[i,a,t,s,r,n,e]);o.useLayoutEffect((function(){c((e=>function(e,t,n){const o={};for(const n of t)o[n]=e[n];for(const e in n)o[e]=n[e];return o}(e,p.current,f)))}),[f]);return[o.useMemo((function(){return function(e){const t=[];for(const n in e){const o=e[n],{scale:r}=o;let i=t.find((function(e){return e[0]===r}));if(void 0===i){let e;for(i=[r,[]],e=0;e=t?(p.current=Object.keys(f),c(f)):p.current.push(e)}]}(n,y,a,s,v,b,l);return o.createElement(o.Fragment,null,w.map((e=>{let[a,s]=e;const l=y,u=l.scale(a).ceil();return o.createElement("div",{key:a},s.map((e=>o.createElement(i.Z,(0,c.Z)({key:e.key,rect:e.rect,pageIndex:v,originalPageSize:l,scaledPageSize:u,backend:t,renderPageCallback:p,onRenderFinished:()=>{S(e.key),f()},pageKey:r.pageKey,crisp:m,inContentEditorMode:g},h,{tileScale:n.zoomLevel/a})))))})))}const f=o.memo(p,(function(e,t){return e.page.pageKey===t.page.pageKey&&!(0,u.pA)(e.viewportState,t.viewportState)&&e.inContentEditorMode===t.inContentEditorMode}));var h=n(91859);const m=(0,l.x)((function(e){return{viewportState:e.viewportState,backend:e.backend,tileSize:h.I_,tileOverlapping:h.Dx,renderPageCallback:e.renderPageCallback}}))(f);var g=n(73815),v=n(36095);var y=n(58479),b=n(90523),w=n.n(b);const S=function(e){const{inViewport:t,shouldPrerender:n,rotation:i,backend:a,zoomLevel:l,renderPageCallback:c,page:u,onInitialOverviewRenderFinished:d,allowedTileScales:p,forceDetailView:f,renderPagePreview:h,isPageSizeReal:b,crispTiles:S=!1,inContentEditorMode:E,contentState:P}=e,[x,D]=o.useState(!h),C=o.useCallback((function(){D(!0),d&&d()}),[d]),k=function(e,t,n){var o;let r=(0,g.L)();const i=window.navigator,a=null==i||null===(o=i.connection)||void 0===o?void 0:o.saveData;"STANDALONE"===t.type&&v.Ni&&r>2&&(r=2),"SERVER"===t.type&&a&&(r=1);const s=e*r;return"all"===n?s:n.reduce(((e,t)=>eu.pageSize.floor()),[u.pageSize]),O=o.useMemo((function(){const t=Math.min((0,g.L)(),2);return Math.min(e.viewportRect.width*t/A.width,1)}),[A.width,e.viewportRect.width]),[T,I]=o.useState(!1),F=(0,y.R9)((()=>{T||h||I(!0)})),M=t&&b&&(!h||k>1||f||l>O)?o.createElement("div",{style:{opacity:x?1:0}},o.createElement(m,{contentState:P,page:u,scale:k,key:u.pageKey,crispTiles:S,tilesRenderedCallback:F,inContentEditorMode:E})):null;return o.createElement("div",null,(!x||!b||!T&&!h)&&o.createElement("div",{className:`${w().layer} ${w().deadCenter}`},o.createElement(r.Z,{scale:1.5,rotate:-i})),(t||x||n)&&h&&b&&o.createElement(s,{backend:a,pageIndex:u.pageIndex,pageSize:A,pageKey:u.pageKey,onInitialRenderFinished:C,zoomLevel:l,scaleFactor:O,renderPageCallback:c,inContentEditorMode:E}),M)}},87515:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var o=n(84121),r=n(67294),i=n(35369),a=n(94184),s=n.n(a),l=n(86366),c=n(97333),u=n(95651),d=n(36095),p=n(10333),f=n.n(p);class h extends r.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"imageFetcherRef",r.createRef()),(0,o.Z)(this,"_fetchImage",(()=>{const{backend:e,originalPageSize:t,scaledPageSize:n,pageIndex:o,rect:r,attachments:a,renderPageCallback:s,digitalSignatures:l}=this.props,d=(this.props.annotations||(0,i.aV)()).filter(u.bz),p=this.props.formFields||(0,i.aV)(),f=this.props.formFieldValues||(0,i.aV)(),h=l&&l.signatures||[],m=this.props.inContentEditorMode||!1;let g;if((d.size>0||f.size>0)&&(g={annotations:d,formFieldValues:f,formFields:p,attachments:a||(0,i.D5)(),signatures:h}),!n.width||!n.height)return{promise:Promise.resolve(null),cancel:()=>{}};const{cancel:v,promise:y}=e.renderTile(o,n,r,!1,!m,g);return(0,c.uZ)(y.then((e=>{let{element:i}=e;if("function"==typeof s){var a,l;let u;if("IMG"===i.nodeName){var c;const e=i,t=document.createElement("canvas");t.width=r.width,t.height=r.height,u=t.getContext("2d"),null===(c=u)||void 0===c||c.drawImage(e,0,0),i=t}u||(u=i.getContext("2d")),null===(a=u)||void 0===a||a.translate(-r.left,-r.top),null===(l=u)||void 0===l||l.scale(n.width/t.width,n.height/t.height),s(u,o,t);const d=document.createElement("img");d.src=i.toDataURL(),e.element=d}return e})),v)}))}componentDidUpdate(e){const{annotations:t,formFieldValues:n}=this.props,{annotations:o,formFieldValues:r}=e;(null!=this.props.hasInitialRenderFinished&&!this.props.hasInitialRenderFinished||!this.props.scaledPageSize.equals(e.scaledPageSize)||!this.props.rect.equals(e.rect)||t&&t!==o&&!t.equals(o)||n&&n!==r&&!n.equals(r)||this.props.pageKey!==e.pageKey||this.props.inContentEditorMode!==e.inContentEditorMode)&&this.imageFetcherRef.current&&this.imageFetcherRef.current.refresh()}render(){const{onRenderFinished:e,rect:t,tileScale:n=1,crisp:o=!1}=this.props,{width:i,height:a,left:c,top:u}=t,p={width:i*n,height:a*n,left:c*n,top:u*n,outline:null},h=s()({[f().tile]:!0,[f().tileChrome]:d.i7,[f().tileFirefox]:d.vU,[f().tileSafari]:d.G6,[f().crispTile]:o});return r.createElement(l.Z,{fetchImage:this._fetchImage,className:h,rectStyle:p,onRenderFinished:e,visible:!1,ref:this.imageFetcherRef})}}},51205:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,j:()=>u});var o=n(67294),r=n(94184),i=n.n(r),a=n(48311),s=n(22181),l=n.n(s);function c(e){let{referenceRect:t,viewportState:n,isHidden:r,children:s,title:c,className:u,wrapperClassName:d,innerWrapperClassName:p,footerClassName:f,footer:h,centeredTitle:m}=e;return o.createElement(a.Z,{referenceRect:t,viewportState:n,className:i()(l().popover,u,{[l().popoverHidden]:r})},o.createElement("div",{className:i()(l().container,d)},o.createElement("div",{className:i()(l().innerContainer,p)},o.createElement("h2",{className:i()(l().title,{[l().centeredTitle]:m})},c),s&&o.createElement("div",{className:l().content},s),h&&o.createElement("div",{className:i()(l().footer,f)},h))," "))}function u(e){let{children:t,className:n,onClick:r}=e;return o.createElement("button",{className:i()(l().footerButton,n),onClick:r},t)}},48311:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var o=n(84121),r=n(67294),i=n(94184),a=n.n(i),s=n(13944),l=n(34855),c=n(88804),u=n(30360),d=n(32905),p=n.n(d);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;t{if(!p)return;const e=o.translate(i);if(!e.isRectInside(n)&&!e.isRectOverlapping(n))return;const t=function(e){let{viewportRect:t,referenceRect:n,contentRect:o,scroll:r,onPositionConflict:i}=e,a=n.left+n.width/2-o.width/2;const s=new c.E9({x:a,y:n.top-o.height}),l=new c.E9({x:a,y:n.bottom});let u=n.top+n.height/2-o.height/2;const d=new c.E9({x:n.left-o.width,y:u}),p=new c.E9({x:n.right,y:u});let{position:f,direction:h}=m(t,o,{top:s,right:p,bottom:l,left:d});f||(at.width+t.left&&(a=t.width+t.left-o.width),ut.height+t.top&&(u=t.height+t.top-o.height),({position:f,direction:h}=m(t,o,{top:s.set("x",a),right:p.set("y",u),bottom:l.set("x",a),left:d.set("y",u)}))),f||("function"==typeof i?({position:f,direction:h}=i({referenceRect:n,viewportRect:t,contentRect:o,scroll:r,attempts:{top:s,right:p,bottom:l,left:d}})):t.isRectOverlapping(n)&&(f=new c.E9({x:t.left+t.width/2-o.width/2,y:t.top+t.height/2-o.height/2}),h="center"));return{direction:h,position:f}}({viewportRect:e,referenceRect:n,contentRect:p,scroll:i,onPositionConflict:s});t.position&&d(t)}),[o,n,p,s,i]),r.useEffect((()=>{a&&a(u)}),[u,a]);const{direction:g}=u,v=u.position&&u.position.translate(o.getLocation().scale(-1)),y=h(h({position:"absolute"},v?{top:v.y,left:v.x}:{top:-1e5,left:-1e5}),{},{visibility:v?void 0:"hidden"}),b=e=>{(e.height||e.width||e.top||e.left)&&f(e)};return"function"==typeof t?t({style:y,direction:g,onResize:b}):r.createElement("div",{style:y},r.createElement(l.Z,{onResize:b}),t)}const v=function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()};function y(e){let{children:t,referenceRect:n,color:o,baseColor:i,className:d,arrowClassName:f,viewportState:m,onPositionInfoChange:y,arrowSize:b=5,customZIndex:w,isArrowHidden:S=!1}=e;const{viewportRect:E,zoomLevel:P,scrollPosition:x}=m;return r.createElement(g,{referenceRect:n.grow(b),viewportRect:E,scroll:x.scale(P),onPositionInfoChange:y},(e=>{let{style:m,direction:g,onResize:y}=e;const P=g&&(0,u.kC)(g),x=g&&"center"!==g?function(e){let t,n,{referenceRect:o,viewportRect:r,size:i,direction:a}=e;switch("top"===a||"bottom"===a?n=o.left+o.width/2-i:t=o.top+o.height/2-i,a){case"top":t=o.top-i;break;case"bottom":t=o.top+o.height;break;case"left":n=o.left-i;break;case"right":n=o.left+o.width;break;default:throw new Error("invalid direction")}return new c.E9({y:t,x:n}).translate(r.getLocation().scale(-1))}({referenceRect:n,viewportRect:E,size:b,direction:g}):null,D={};let C;if(o){switch(g){case"top":D.color=o[o.length-1].toCSSValue();break;case"bottom":D.color=o[0].toCSSValue();break;default:D.color=o[Math.floor((o.length-1)/2)].toCSSValue()}const e=o.map(((e,t)=>`${e.toCSSValue()} ${100*t/(o.length-1)}%`)).join(", ");i&&(m=h(h({},m),{},{backgroundColor:i.toCSSValue()}),C={color:i.toCSSValue()}),m=h(h({},m),{},{backgroundImage:`linear-gradient(to bottom, ${e})`,zIndex:w})}return r.createElement(s.Z,{onPointerUp:v},r.createElement("div",{className:d},x&&!S&&r.createElement("span",{style:h(h({},C),{},{zIndex:w})},r.createElement("div",{style:h({position:"absolute",top:x.y,left:x.x,width:b,height:b,zIndex:w},D),className:a()(p().arrow,f,P&&p()[`arrow${P}`],"PSPDFKit-Popover-Arrow",P&&"PSPDFKit-Popover-Arrow-"+P)})),r.createElement("div",{style:m,className:a()(p().root,"PSPDFKit-Popover",P&&"PSPDFKit-Popover-"+P)},t,r.createElement(l.Z,{onResize:y}))))}))}},54543:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var o=n(50974),r=n(49242);const i=e=>t=>e(function(e){const t=e.nativeEvent||e;let n=!1,i=0,a=0;const s=t.shiftKey;let l=t.pointerType||"mouse";const c=(void 0!==e.touches||void 0!==e.changedTouches)&&void 0===e.width;c?(l="touch",n=1==t.touches.length||"touchend"===e.type,n&&t.changedTouches.length&&(i=t.changedTouches[0].clientX,a=t.changedTouches[0].clientY)):(n=e.isPrimary||(0,r.I)(e),i=e.clientX,a=e.clientY);let u={clientX:i,clientY:a,isPrimary:n,pointerType:l,shiftKey:s,metaKey:t.metaKey,ctrlKey:t.ctrlKey,getCoalescedEvents:"function"==typeof t.getCoalescedEvents?()=>{const e=t.getCoalescedEvents.call(t);return e.length?e:[u]}:()=>[u],stopPropagation:()=>{e.stopPropagation(),t.stopImmediatePropagation()},preventDefault:()=>{e.preventDefault()},get target(){if(c&&void 0!==e.target.ownerDocument){const t=e.target.ownerDocument;return t&&t.elementFromPoint?t.elementFromPoint(i,a):e.target}return e.target},nativeEvent:t,get buttons(){return c?(0,o.ZK)("TouchEvent do not have the method buttons"):e.buttons}};return u}(t))},13944:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var o=n(22122),r=n(84121),i=n(67294),a=n(50974),s=n(54543),l=n(71231),c=n(36095);const u=l.Gn?{passive:!1}:void 0,d=!l.Gn||{passive:!1,capture:!0},p=1e3;let f=0,h=0;function m(e){return e?function(){if(f=Date.now(),!(Date.now()-h{this.props.onDOMElement&&this.props.onDOMElement(e),e&&((0,a.kG)("string"==typeof e.nodeName,"PRC requires a basic HTML element as children (so that we can find the proper `ownerDocument`)."),this._refDocument=e.ownerDocument)}))}componentDidMount(){this._updateRootListeners(this.props)}componentDidUpdate(){this._updateRootListeners(this.props)}componentWillUnmount(){this._removeAllRootListeners()}_updateListener(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=this._refDocument;let r=null,i=null;const a=this._attachedListeners[e][n?1:0];if(a&&([r,i]=a),i!==t&&(r&&(o.removeEventListener(e,r,n?d:u),this._attachedListeners[e][n?1:0]=null),"function"==typeof t)){const r=(0,s.S)(t);o.addEventListener(e,r,n?d:u),this._attachedListeners[e][n?1:0]=[r,t]}}_removeAllRootListeners(){const e=this._refDocument;Object.entries(this._attachedListeners).forEach((t=>{let[n,o]=t;const[r,i]=o;r&&e.removeEventListener(n,r[0],u),i&&e.removeEventListener(n,i[0],d)}))}_updateRootListeners(e){Object.entries(e).forEach((e=>{let[t,n]=e;switch(t){case"onRootPointerDown":this._updateListener("touchstart",m(n)),this.disablePointerEvents||this._updateListener("pointerdown",v(n)),this._updateListener("mousedown",g(n));break;case"onRootPointerDownCapture":this._updateListener("touchstart",m(n),!0),this.disablePointerEvents||this._updateListener("pointerdown",v(n),!0),this._updateListener("mousedown",g(n),!0);break;case"onRootPointerMove":this._updateListener("touchmove",m(n)),this.disablePointerEvents||this._updateListener("pointermove",v(n)),this._updateListener("mousemove",g(n));break;case"onRootPointerMoveCapture":this._updateListener("touchmove",m(n),!0),this.disablePointerEvents||this._updateListener("pointermove",v(n),!0),this._updateListener("mousemove",g(n),!0);break;case"onRootPointerUp":this._updateListener("touchend",m(n)),this.disablePointerEvents||this._updateListener("pointerup",v(n)),this._updateListener("mouseup",g(n));break;case"onRootPointerEnter":this.disablePointerEvents||this._updateListener("pointerenter",v(n)),this._updateListener("mouseenter",g(n));break;case"onRootPointerLeave":this.disablePointerEvents||this._updateListener("pointerleave",v(n)),this._updateListener("mouseleave",g(n));break;case"onRootPointerUpCapture":this._updateListener("touchend",m(n),!0),this.disablePointerEvents||this._updateListener("pointerup",v(n),!0),this._updateListener("mouseup",g(n),!0);break;case"onRootPointerEnterCapture":this.disablePointerEvents||this._updateListener("pointerenter",v(n),!0),this._updateListener("mouseenter",g(n),!0);break;case"onRootPointerLeaveCapture":this.disablePointerEvents||this._updateListener("pointerleave",v(n),!0),this._updateListener("mouseleave",g(n),!0);break;case"onRootPointerCancel":this.disablePointerEvents||this._updateListener("pointercancel",v(n)),this._updateListener("touchcancel",m(n));break;case"onRootPointerCancelCapture":this.disablePointerEvents||this._updateListener("pointercancel",v(n),!0),this._updateListener("touchcancel",m(n),!0)}}))}render(){const e={};let t=!1;if(this.disablePointerEvents="INK"!==this.props.interactionMode&&(0,c.yx)(),Object.entries(this.props).forEach((n=>{let[o,r]=n;if("function"==typeof r)switch(o){case"onPointerDown":e.onTouchStart=m((0,s.S)(r)),this.disablePointerEvents||(e.onPointerDown=v((0,s.S)(r))),e.onMouseDown=g((0,s.S)(r)),t=!0;break;case"onPointerDownCapture":e.onTouchStartCapture=m((0,s.S)(r)),this.disablePointerEvents||(e.onPointerDownCapture=v((0,s.S)(r))),e.onMouseDownCapture=g((0,s.S)(r)),t=!0;break;case"onPointerMove":e.onTouchMove=m((0,s.S)(r)),this.disablePointerEvents||(e.onPointerMove=v((0,s.S)(r))),e.onMouseMove=g((0,s.S)(r)),t=!0;break;case"onPointerMoveCapture":e.onTouchMoveCapture=m((0,s.S)(r)),this.disablePointerEvents||(e.onPointerMoveCapture=v((0,s.S)(r))),e.onMouseMoveCapture=g((0,s.S)(r)),t=!0;break;case"onPointerUp":e.onTouchEnd=m((0,s.S)(r)),this.disablePointerEvents||(e.onPointerUp=v((0,s.S)(r))),e.onMouseUp=g((0,s.S)(r)),t=!0;break;case"onPointerUpCapture":e.onTouchEndCapture=m((0,s.S)(r)),this.disablePointerEvents||(e.onPointerUpCapture=v((0,s.S)(r))),e.onMouseUpCapture=g((0,s.S)(r)),t=!0;break;case"onPointerEnter":this.disablePointerEvents||(e.onPointerEnter=v((0,s.S)(r))),e.onMouseEnter=g((0,s.S)(r)),t=!0;break;case"onPointerEnterCapture":this.disablePointerEvents||(e.onPointerEnterCapture=v((0,s.S)(r))),e.onMouseEnterCapture=g((0,s.S)(r)),t=!0;break;case"onPointerLeave":this.disablePointerEvents||(e.onPointerLeave=v((0,s.S)(r))),e.onMouseLeave=g((0,s.S)(r)),t=!0;break;case"onPointerLeaveCapture":this.disablePointerEvents||(e.onPointerLeaveCapture=v((0,s.S)(r))),e.onMouseLeaveCapture=g((0,s.S)(r)),t=!0;break;case"onPointerCancel":this.disablePointerEvents||(e.onPointerCancel=v((0,s.S)(r))),e.onTouchCancel=m((0,s.S)(r)),t=!0;break;case"onPointerCancelCapture":this.disablePointerEvents||(e.onPointerCancelCapture=v((0,s.S)(r))),e.onTouchCancelCapture=m((0,s.S)(r)),t=!0;break;case"onRootPointerDown":case"onRootPointerDownCapture":e.onTouchStart=e.onTouchStart||y,this.disablePointerEvents||(e.onPointerDown=e.onPointerDown||y),e.onMouseDown=e.onMouseDown||y;break;case"onRootPointerMove":case"onRootPointerMoveCapture":e.onTouchMove=e.onTouchMove||y,this.disablePointerEvents||(e.onPointerMove=e.onPointerMove||y),e.onMouseMove=e.onMouseMove||y;break;case"onRootPointerUp":case"onRootPointerUpCapture":e.onTouchEnd=e.onTouchEnd||y,this.disablePointerEvents||(e.onPointerUp=e.onPointerUp||y),e.onMouseUp=e.onMouseUp||y;break;case"onRootPointerEnter":case"onRootPointerEnterCapture":this.disablePointerEvents||(e.onPointerEnter=e.onPointerEnter||y),e.onMouseEnter=e.onMouseEnter||y;break;case"onRootPointerLeave":case"onRootPointerLeaveCapture":this.disablePointerEvents||(e.onPointerLeave=e.onPointerLeave||y),e.onMouseLeave=e.onMouseLeave||y;break;case"onRootPointerCancel":case"onRootPointerCancelCapture":this.disablePointerEvents||(e.onPointerCancel=e.onPointerCancel||y),e.onTouchCancel=e.onTouchCancel||y}})),!t)return i.createElement("div",(0,o.Z)({ref:this._handleRef},e),this.props.children);const n=i.Children.only(this.props.children);return e.ref=this._handleRef,(0,a.kG)(!n.ref,"PRC requires the child element to not have a `ref` assigned. Consider inserting a new `
` in between."),i.cloneElement(n,e)}}},11010:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(22122),r=n(67294),i=n(94184),a=n.n(i),s=(n(44364),n(94505)),l=n(27435),c=n.n(l);const u=r.forwardRef((function(e,t){const{selected:n,disabled:i}=e,l=a()(c().root,n&&c().isActive,i&&c().isDisabled,"string"==typeof e.className&&e.className,"PSPDFKit-Toolbar-Button",n&&"PSPDFKit-Toolbar-Button-active",i&&"PSPDFKit-Toolbar-Button-disabled");return r.createElement(s.Z,(0,o.Z)({},e,{className:l,iconClassName:"PSPDFKit-Toolbar-Button-Icon",ref:t,itemComponentProps:e.itemComponentProps}))}))},98013:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>Ie,k3:()=>Ce});var o=n(84121),r=n(67294),i=n(35369),a=n(94184),s=n.n(a),l=n(30845),c=n(76154),u=n(50974),d=n(25915),p=n(30667),f=n(67366),h=n(7844),m=n(22122),g=n(67665),v=n(41756),y=n(26353),b=n(84013),w=n(47710),S=n(63738),E=n(58924),P=n(93628),x=n.n(P),D=n(60964),C=n.n(D),k=n(11010),A=n(23477),O=n.n(A),T=n(77973),I=n(3219),F=n(34573),M=n(11521),_=n.n(M),R=n(13448);function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function L(e){for(var t=1;tnull===e?"":`${e.type} ${e.mode}`,stateReducer:z,environment:e.frameWindow},(c=>{let{getToggleButtonProps:u,getMenuProps:d,getItemProps:p,isOpen:f,highlightedIndex:h,setHighlightedIndex:v}=c,S=!1;const P=d({onMouseDown:()=>{S=!0},onTouchStart:()=>{S=!0}},{suppressRefError:!0}),D=u(),A="down"===e.caretDirection;return r.createElement("div",{className:s()(f&&"PSPDFKit-Input-Dropdown-open")},r.createElement("div",(0,m.Z)({ref:l},L(L({},D),e.disabled?{onClick:null}:null),{onBlur:function(e){if(S&&(S=!1,e.nativeEvent.preventDownshiftDefault=!0,l.current)){const e=l.current.querySelector("button");e&&e.focus()}D.onBlur(e)}}),r.createElement(k.Z,{type:"layout-config",selected:f,title:a(Z.pageLayout),icon:e.icon,className:s()(O().toolbarButton,"PSPDFKit-Toolbar-Button-Layout-Config",e.className),onPress:e=>{e.target.focus&&e.target.focus(),f||t((0,F.fz)())},disabled:i})),r.createElement(g.m,null,r.createElement(b.Z,null,f&&r.createElement(y.Z,{timeout:{enter:window["PSPDFKit-disable-animations"]?0:240,exit:window["PSPDFKit-disable-animations"]?0:80},classNames:{enter:s()(_().scaleInEnter,{[_().scaleInEnterTop]:A,[_().scaleInEnterBottom]:!A}),enterActive:_().scaleInEnterActive,exit:s()(_().scaleInExit,{[_().scaleInExitTop]:A,[_().scaleInExitBottom]:!A}),exitActive:s()(_().scaleInExitActive,{[_().scaleInExitActiveTop]:A,[_().scaleInExitActiveBottom]:!A})}},r.createElement(E.Z,{referenceElement:l.current,horizontalAlignment:"center"},r.createElement("div",(0,m.Z)({},P,{className:s()(x().root,C().dropdownMenu,"PSPDFKit-Dropdown-Layout-Config",{[C().dropdownMenuUp]:!A}),style:{padding:0},onMouseLeave:()=>v(null)}),r.createElement("table",{className:s()(C().table,"PSPDFKit-Layout-Config")},r.createElement("tbody",null,r.createElement("tr",null,r.createElement("td",{className:"PSPDFKit-Layout-Config-Label"},a(Z.pageMode)),r.createElement("td",{style:{textAlign:"right"},className:"PSPDFKit-Layout-Config-Options"},r.createElement(B,{itemProps:p({item:j[0]}),isActive:n===T.X.SINGLE,isHighlighted:0===h,type:T.X.SINGLE,className:"PSPDFKit-Layout-Config-Option-Layout-Mode-Single",title:a(Z.pageModeSingle)}),r.createElement(B,{itemProps:p({item:j[1]}),isActive:n===T.X.DOUBLE,isHighlighted:1===h,type:T.X.DOUBLE,className:"PSPDFKit-Layout-Config-Option-Layout-Mode-Double",title:a(Z.pageModeDouble)}),r.createElement(B,{itemProps:p({item:j[2]}),isActive:n===T.X.AUTO,isHighlighted:2===h,type:T.X.AUTO,className:"PSPDFKit-Layout-Config-Option-Layout-Mode-Auto",title:a(Z.pageModeAutomatic)}))),r.createElement("tr",null,r.createElement("td",{className:"PSPDFKit-Layout-Config-Label"},a(Z.pageTransition)),r.createElement("td",{style:{textAlign:"right"},className:"PSPDFKit-Layout-Config-Options"},r.createElement(B,{itemProps:p({item:j[3]}),isActive:o===w.G.CONTINUOUS,isHighlighted:3===h,type:w.G.CONTINUOUS,className:"PSPDFKit-Layout-Config-Option-Scroll-Mode-Continuous",title:a(Z.pageTransitionContinuous)}),r.createElement(B,{itemProps:p({item:j[4]}),isActive:o===w.G.PER_SPREAD,isHighlighted:4===h,type:"single",className:"PSPDFKit-Layout-Config-Option-Scroll-Mode-Per-Spread",title:a(Z.pageTransitionJump)}))),r.createElement("tr",null,r.createElement("td",{className:"PSPDFKit-Layout-Config-Label"},a(Z.pageRotation)),r.createElement("td",{style:{textAlign:"right"},className:"PSPDFKit-Layout-Config-Options"},r.createElement(B,{itemProps:p({item:j[5]}),type:"view_rotate_left",title:a(Z.pageRotationLeft),className:"PSPDFKit-Layout-Config-Option-Page-Rotation-Left",isHighlighted:5===h,isActive:!1}),r.createElement(B,{itemProps:p({item:j[6]}),type:"view_rotate_right",title:a(Z.pageRotationRight),className:"PSPDFKit-Layout-Config-Option-Page-Rotation-Right",isHighlighted:6===h,isActive:!1})))))))))),!f&&r.createElement("div",P),r.createElement(g.m,null,r.createElement(b.Z,null,f&&r.createElement(y.Z,{timeout:{enter:window["PSPDFKit-disable-animations"]?0:240,exit:window["PSPDFKit-disable-animations"]?0:80},classNames:{enter:s()(_().scaleInEnter,{[_().scaleInEnterTop]:A,[_().scaleInEnterBottom]:!A}),enterActive:_().scaleInEnterActive,exit:s()(_().scaleInExit,{[_().scaleInExitTop]:A,[_().scaleInExitBottom]:!A}),exitActive:s()(_().scaleInExitActive,{[_().scaleInExitActiveTop]:A,[_().scaleInExitActiveBottom]:!A})}},r.createElement(E.Z,{referenceElement:l.current,horizontalAlignment:"center"},r.createElement(r.Fragment,null,r.createElement("div",{className:s()(C().arrow,{[C().arrowUp]:!A})},r.createElement("div",{className:s()({[C().arrowFill]:A,[C().arrowFillUp]:!A})}))))))))}))}));const Z=(0,c.vU)({pageLayout:{id:"pageLayout",defaultMessage:"Page Layout",description:'Button to open the "change page layout" menu'},pageMode:{id:"pageMode",defaultMessage:"Page Mode",description:"Label for the page mode configuration"},pageModeSingle:{id:"pageModeSingle",defaultMessage:"Single",description:"Single page mode"},pageModeDouble:{id:"pageModeDouble",defaultMessage:"Double",description:"Double page mode"},pageModeAutomatic:{id:"pageModeAutomatic",defaultMessage:"Automatic",description:"Automatic page mode"},pageTransition:{id:"pageTransition",defaultMessage:"Page Transition",description:"Label for the page transition mode"},pageTransitionContinuous:{id:"pageTransitionContinuous",defaultMessage:"Continuous",description:"Continuous page transition mode"},pageTransitionJump:{id:"pageTransitionJump",defaultMessage:"Jump",description:"Jump-ing page transition mode (one page at the time)"},pageRotation:{id:"pageRotation",defaultMessage:"Page Rotation",description:"Label for the page rotation mode (left, right)"},pageRotationLeft:{id:"pageRotationLeft",defaultMessage:"Rotate Left",description:"Button to rotate the page to the left of 90°"},pageRotationRight:{id:"pageRotationRight",defaultMessage:"Rotate Right",description:"Button to rotate the page to the right of 90°"}});var U=n(13540),V=n(36105),G=n.n(V);const W=e=>{["-","+",".","e","E"].some((t=>e.key===t))&&e.preventDefault()},q=e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},H=e=>{e.currentTarget.select()},$=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{withParens:!1};return t=>r.createElement("div",{className:G().desktop},e.withParens&&"(",t.map(((e,t)=>r.createElement("span",{key:t},e))),e.withParens&&")")};const Y=(0,c.XN)((function(e){const t=e.pages.get(e.currentPageNumber-1);(0,u.kG)(null!=t,`Couldn't get page number ${e.currentPageNumber}`);const o=r.useMemo((()=>e.pages.some((e=>e.pageLabel!==(e.pageIndex+1).toString()))),[e.pages]),[i,a]=r.useState(null==t?void 0:t.pageLabel);r.useEffect((()=>{a(null==t?void 0:t.pageLabel)}),[null==t?void 0:t.pageLabel]);const l=n=>{if(o){const t=e.pages.findIndex((e=>e.pageLabel===n));if(t>=0&&!e.readOnly)return void e.dispatch((0,I.YA)(t))}const r=parseInt(n);1<=r&&r<=e.totalPages&&!e.readOnly?e.dispatch((0,I.YA)(r-1)):a(t.pageLabel)},{formatMessage:d}=e.intl,p=s()({"PSPDFKit-Page-Indicator-Prev":!0,[G().prev]:!0,"PSPDFKit-Page-Indicator-Prev-disabled":1===e.currentPageNumber}),f=s()({"PSPDFKit-Page-Indicator-Next":!0,[G().next]:!0,"PSPDFKit-Page-Indicator-Next-disabled":e.currentPageNumber===e.totalPages}),h=r.createElement("div",{className:G().control},r.createElement("button",{className:p,title:d(X.prevPage),onClick:()=>e.dispatch((0,I.IT)()),disabled:1===e.currentPageNumber||e.readOnly},r.createElement(U.Z,{src:n(28069),className:G().icon})),r.createElement("label",{className:G().inputLabel,htmlFor:G().input},d(X.goToPage)),r.createElement("input",(0,m.Z)({id:G().input,type:o?"text":"number",value:i,className:`PSPDFKit-Page-Indicator-Input ${G().input}`,onMouseDown:q,onFocus:H,onChange:t=>{e.readOnly||a(t.currentTarget.value)},onBlur:e=>{l(e.currentTarget.value)},onKeyPress:e=>{"Enter"===e.key&&l(e.currentTarget.value)},disabled:e.readOnly},o?{}:{min:1,max:e.totalPages,onKeyDown:W,pattern:"[0-9]"})),r.createElement("button",{className:f,onClick:()=>e.dispatch((0,I.fz)()),title:d(X.nextPage),disabled:e.currentPageNumber===e.totalPages||e.readOnly},r.createElement(U.Z,{src:n(14341),className:G().icon})));return r.createElement("div",{className:`PSPDFKit-Page-Indicator ${G().root}`},o?r.createElement(r.Fragment,null,r.createElement(c._H,{id:"pageX",defaultMessage:"Page {arg0}",description:"Page indicator prefix",values:{arg0:h},children:$()}),r.createElement(c._H,{id:"XofY",defaultMessage:"{arg0} of {arg1}",description:"Page indicator label",values:{arg0:e.currentPageNumber,arg1:e.totalPages},children:$({withParens:!0})})):r.createElement(c._H,{id:"pageXofY",defaultMessage:"Page {arg0} of {arg1}",description:"Page indicator control. arg0 is an interactive widget to select pages.",values:{arg0:h,arg1:e.totalPages},children:$()}),r.createElement("div",{className:G().mobile},r.createElement("label",{className:G().label},r.createElement("strong",null,e.currentPageNumber)," ","/"," ",e.totalPages)))})),X=(0,c.vU)({prevPage:{id:"prevPage",defaultMessage:"Previous Page",description:"Button to go to the previous page"},nextPage:{id:"nextPage",defaultMessage:"Next Page",description:"Button to go to the next page"},goToPage:{id:"goToPage",defaultMessage:"Go to Page",description:"label for the go to page selector"}}),J=(0,f.$j)((e=>({currentPageNumber:e.viewportState.currentPageIndex+1})))(Y);var Q=n(11378),ee=n(44706),te=n(84747),ne=n(82481),oe=n(18146),re=n(3845),ie=n(38151),ae=n(69939),se=n(51333),le=n(77528),ce=n(25644),ue=n(70006),de=n(36095);function pe(e,t){const n=document.createElement("a");n.href=e,n.style.display="none",n.download=t,n.setAttribute("download",t);const o=document.body;return o?(o.appendChild(n),n.click(),()=>{const e=document.body;e&&e.removeChild(n)}):()=>{}}var fe=n(97528),he=n(20792),me=n(19702),ge=n(28098),ve=n(67628),ye=n(89e3),be=n(35129),we=n(92234),Se=n(2270),Ee=n(16126),Pe=n(96114);function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function De(e){for(var t=1;t{const{interactionMode:e,dispatch:t}=this.props;t((0,F.fz)()),e===he.A.PAN?t((0,I.Yr)()):t((0,I.vc)())})),(0,o.Z)(this,"handleFormDesignerTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,F.fz)()),(0,Ee.fF)(e)?t((0,Pe.h4)()):t((0,Pe.el)())})),(0,o.Z)(this,"_handleZoomOutTap",(()=>{this.props.dispatch((0,I.vG)())})),(0,o.Z)(this,"_handleZoomInTap",(()=>{this.props.dispatch((0,I.kr)())})),(0,o.Z)(this,"_handleUndoTap",(()=>{this.props.canUndo&&this.props.dispatch((0,we.Yw)())})),(0,o.Z)(this,"_handleRedoTap",(()=>{this.props.canRedo&&this.props.dispatch((0,we.KX)())})),(0,o.Z)(this,"_handleMarqueeZoomTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,F.fz)()),e===he.A.MARQUEE_ZOOM?t((0,S.si)()):t((0,S.xF)())})),(0,o.Z)(this,"_handleFitToWidthTap",(()=>{this.props.dispatch((0,I.du)())})),(0,o.Z)(this,"_handleFitToBothTap",(()=>{this.props.dispatch((0,I.lO)())})),(0,o.Z)(this,"handleCalloutTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.CALLOUT&&n===this.props.currentItemPreset?(r((0,ae.Ds)(null)),r((0,S.k4)())):(r((0,ae.Ds)(n)),r((0,S.Lt)()))})),(0,o.Z)(this,"_handleTextTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.TEXT&&n===this.props.currentItemPreset?(r((0,ae.Ds)(null)),r((0,S.k4)())):(r((0,ae.Ds)(n)),r((0,S.DU)()))})),(0,o.Z)(this,"_handleTextKeyPress",(()=>{const{dispatch:e}=this.props;e((0,F.fz)()),e((0,ae.RK)())})),(0,o.Z)(this,"_handleTextHighlighterTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.TEXT_HIGHLIGHTER&&n===this.props.currentItemPreset?r((0,S.lC)()):r((0,S.d5)(n))})),(0,o.Z)(this,"_handleLinkTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.LINK&&n===this.props.currentItemPreset?(r((0,ae.Ds)(null)),r((0,S.UU)())):(r((0,ae.Ds)(n)),r((0,S.Jn)()))})),(0,o.Z)(this,"_handleInkTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.INK&&n===this.props.currentItemPreset?(r((0,ae.Ds)(null)),r((0,S.s3)())):(r((0,ae.Ds)(n)),r((0,S.P4)()))})),(0,o.Z)(this,"_handleMeasurementTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.MEASUREMENT&&n===this.props.currentItemPreset?(r((0,ae.Ds)(null)),r((0,S.hS)())):(r((0,ae.Ds)(n)),r((0,S.BR)()))})),(0,o.Z)(this,"_handleInkEraserTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.INK_ERASER?(r((0,ae.Ds)(null)),r((0,S.VU)())):(r((0,ae.Ds)(n)),r((0,S.Ug)()))})),(0,o.Z)(this,"_handleLineTap",((e,t,n)=>this._handleShapeTap(ne.o9,he.A.SHAPE_LINE,n))),(0,o.Z)(this,"_handleRectangleTap",((e,t,n)=>this._handleShapeTap(ne.b3,he.A.SHAPE_RECTANGLE,n))),(0,o.Z)(this,"_handleEllipseTap",((e,t,n)=>this._handleShapeTap(ne.Xs,he.A.SHAPE_ELLIPSE,n))),(0,o.Z)(this,"_handlePolygonTap",((e,t,n)=>this._handleShapeTap(ne.Hi,he.A.SHAPE_POLYGON,n))),(0,o.Z)(this,"_handlePolylineTap",((e,t,n)=>this._handleShapeTap(ne.om,he.A.SHAPE_POLYLINE,n))),(0,o.Z)(this,"_handleShapeTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===t&&n===this.props.currentItemPreset?(r((0,ae.Ds)(null)),r((0,S.Ce)())):(r((0,ae.Ds)(n)),r((0,S.yg)(e,t)))})),(0,o.Z)(this,"_handleNoteTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.NOTE&&n===this.props.currentItemPreset?(r((0,ae.Ds)(null)),r((0,S.dp)())):(r((0,ae.Ds)(n)),r((0,S.i9)()))})),(0,o.Z)(this,"_handleNoteKeyPress",(()=>{const{dispatch:e}=this.props;e((0,F.fz)()),e((0,ae.XG)())})),(0,o.Z)(this,"_handleCommentMarkerTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,F.fz)()),e===he.A.COMMENT_MARKER?t((0,S.tr)()):t((0,S.k6)())})),(0,o.Z)(this,"_handleCommentMarkerKeyPress",(()=>{const{dispatch:e}=this.props;e((0,F.fz)()),e((0,se.GH)())})),(0,o.Z)(this,"_handleSignatureTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.INK_SIGNATURE||o===he.A.SIGNATURE?(r((0,ae.Ds)(null)),r((0,S.MV)())):(r((0,ae.Ds)(n)),r((0,S.Cc)()))})),(0,o.Z)(this,"_handleStampTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,F.fz)()),e===he.A.STAMP_PICKER?t((0,S.pM)()):t((0,S.C4)())})),(0,o.Z)(this,"_handleRedactRectangleTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.REDACT_SHAPE_RECTANGLE&&n===this.props.currentItemPreset?r((0,S.jP)()):r((0,S.t)(n))})),(0,o.Z)(this,"_handleRedactTextHighlighterTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.REDACT_TEXT_HIGHLIGHTER&&n===this.props.currentItemPreset?r((0,S.TR)()):r((0,S.aw)(n))})),(0,o.Z)(this,"_handleResponsiveGroupTap",(e=>{this.setState({activeResponsiveGroup:e}),e&&this.setState({prevActiveGroup:e})})),(0,o.Z)(this,"_handleAnnotateResponsiveGroupTap",(()=>this._handleResponsiveGroupTap("annotate"))),(0,o.Z)(this,"_handlePrintTap",(()=>{this.props.printingEnabled&&this.props.dispatch((0,ce.S0)())})),(0,o.Z)(this,"_handleSearchTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,F.fz)()),e===he.A.SEARCH?t((0,ue.ct)()):t((0,ue.Xe)())})),(0,o.Z)(this,"handleCropTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,F.fz)()),e===he.A.DOCUMENT_CROP?t((0,S.Cn)()):t((0,S.rL)())})),(0,o.Z)(this,"handleDocumentComparisonTap",(()=>{const{currentDocumentComparisonMode:e,dispatch:t}=this.props;t((0,F.fz)()),t(e?(0,S.cz)(null):(0,S.cz)(Se.s))})),(0,o.Z)(this,"_handleExportPDFTap",(async()=>{this.props.exportEnabled&&this.props.dispatch(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return async(t,n)=>{const{backend:o}=n();(0,u.kG)(o);const r=HTMLAnchorElement.prototype.hasOwnProperty("download"),i=await o.exportPDF(e),a=i.mimeType||"application/pdf",s=i.extension||"pdf",l=new Blob([i],{type:a}),c=`${(await o.documentInfo()).title||"document"}.${s}`;let d=()=>{};if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(l,c);else if(r){const e=window.URL.createObjectURL(l),t=pe(e,c);d=()=>{t(),window.URL.revokeObjectURL(e)}}else{const e=new FileReader;e.onloadend=()=>{d=pe(e.result,s)},e.readAsDataURL(l)}window.setTimeout(d,1e3)}}())})),(0,o.Z)(this,"_handleDebugTap",(()=>{this.props.dispatch((0,S.BB)())})),(0,o.Z)(this,"_handleThumbnailsSidebarTap",(()=>{const{sidebarMode:e,dispatch:t}=this.props;e===me.f.THUMBNAILS?t((0,S.mu)()):t((0,S.el)())})),(0,o.Z)(this,"_handleDocumentOutlineSidebarTap",(()=>{const{sidebarMode:e,dispatch:t}=this.props;e===me.f.DOCUMENT_OUTLINE?t((0,S.mu)()):t((0,S.EJ)())})),(0,o.Z)(this,"_handleDocumentEditorTap",(()=>{const{dispatch:e}=this.props;e((0,S.lV)())})),(0,o.Z)(this,"_handleAnnotationsSidebarTap",(()=>{const{sidebarMode:e,dispatch:t}=this.props;e===me.f.ANNOTATIONS?t((0,S.mu)()):t((0,S.ze)())})),(0,o.Z)(this,"_handleBookmarksSidebarTap",(()=>{const{sidebarMode:e,dispatch:t}=this.props;e===me.f.BOOKMARKS?t((0,S.mu)()):t((0,S.Hf)())})),(0,o.Z)(this,"_handleImageTap",(()=>{const e={annotations:(0,i.aV)([new ne.sK({pageIndex:this.state.currentPageIndex})]),reason:re.f.SELECT_START};this.props.eventEmitter.emit("annotations.willChange",e);const t=this.imagePickerRef&&this.imagePickerRef.current;if(t)try{const{formatMessage:e}=this.props.intl;this.props.dispatch((0,S.iJ)(e(Fe.selectAFileForImage))),t.removeAttribute("aria-hidden"),t.click()}catch(e){t.setAttribute("aria-hidden","true");const n={annotations:(0,i.aV)(),reason:re.f.SELECT_END};this.props.eventEmitter.emit("annotations.willChange",n)}})),(0,o.Z)(this,"_handleImageSelect",(e=>{if(e.target.setAttribute("aria-hidden","true"),e.target.files[0]){this.props.dispatch((0,F.fz)());{this.props.dispatch((0,ae.Ds)("image")),this.props.dispatch((0,ae.$e)(e.target.files[0]));const{formatMessage:t}=this.props.intl;this.props.dispatch((0,S.iJ)(t(Fe.newAnnotationCreated,{arg0:"image"})))}e.target.value=""}})),(0,o.Z)(this,"_handleResponsiveGroupClose",(()=>{this.props.dispatch((0,F.fz)()),this._handleResponsiveGroupTap(null)})),(0,o.Z)(this,"_handleContentEditorTap",(()=>{const{interactionMode:e,dispatch:t,isContentEditorSessionDirty:n}=this.props;e===he.A.CONTENT_EDITOR?t(n?(0,ie.Yg)(!0):ie.u8):t(ie.gY)})),(0,o.Z)(this,"_handleMultiAnnotationsSelectionTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;e===he.A.MULTI_ANNOTATIONS_SELECTION?t((0,S.FA)()):t((0,S.YF)())})),(0,o.Z)(this,"_getBuiltInDefaults",(0,l.Z)(((e,t,n,o,r,i,a,s,l,c,u,d,p,f,h,m,g,v)=>{const{formatMessage:y}=e,b=n===he.A.CONTENT_EDITOR;return{debug:{className:"",onPress:this._handleDebugTap,title:"Debug Info",forceHide:!t},image:{className:"PSPDFKit-Toolbar-Button-Image-Annotation",title:y(be.Z.imageAnnotation),forceHide:o(ne.sK),responsiveGroup:"annotate",preset:"image",onPress:this._handleImageTap,dropdownGroup:"image",disabled:b},stamp:{className:"PSPDFKit-Toolbar-Button-Stamp-Annotation",selected:n===he.A.STAMP_PICKER||n===he.A.STAMP_CUSTOM,onPress:this._handleStampTap,title:y(be.Z.stampAnnotation),forceHide:o(ne.GI),responsiveGroup:"annotate",preset:"stamp",dropdownGroup:"image",disabled:b},link:{className:"PSPDFKit-Toolbar-Button-Link-Annotation",selected:n===he.A.LINK&&"link"===this.state.lastSelectedToolbarItemType,onPress:this._handleLinkTap,title:y(be.Z.linkAnnotation),forceHide:o(ne.R1),responsiveGroup:"annotate",preset:"link",dropdownGroup:"image",disabled:b},ink:{className:"PSPDFKit-Toolbar-Button-Ink-Annotation",selected:n===he.A.INK&&"ink"===h,onPress:this._handleInkTap,title:y(be.Z.pen),forceHide:o(ne.Zc),responsiveGroup:"annotate",dropdownGroup:"ink",preset:"ink",disabled:b},"ink-eraser":{className:"PSPDFKit-Toolbar-Button-Ink-Eraser",selected:n===he.A.INK_ERASER&&"ink-eraser"===h,onPress:this._handleInkEraserTap,title:y(be.Z.eraser),forceHide:o(ne.Zc),responsiveGroup:"annotate",dropdownGroup:"ink",preset:"ink",disabled:b},highlighter:{className:"PSPDFKit-Toolbar-Button-Ink-Annotation PSPDFKit-Toolbar-Button-Variant-Highlighter",selected:n===he.A.INK&&"highlighter"===h,onPress:this._handleInkTap,title:y(be.Z.highlighter),forceHide:o(ne.Zc),responsiveGroup:"annotate",dropdownGroup:"ink",preset:"highlighter",disabled:b},"text-highlighter":{className:"PSPDFKit-Toolbar-Button-TextHighlighter-Annotation",selected:n===he.A.TEXT_HIGHLIGHTER&&"text-highlighter"===h,onPress:this._handleTextHighlighterTap,title:y(be.Z.textHighlighter),forceHide:o(ne.FV),responsiveGroup:"annotate",dropdownGroup:"ink",preset:"text-highlighter",disabled:b},line:{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Line-Annotation",selected:n===he.A.SHAPE_LINE&&"line"===h,onPress:this._handleLineTap,title:y(be.Z.lineAnnotation),forceHide:o(ne.o9),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"line",disabled:b},arrow:{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Line-Annotation PSPDFKit-Toolbar-Button-Variant-Arrow",selected:n===he.A.SHAPE_LINE&&"arrow"===h,onPress:this._handleLineTap,title:y(be.Z.arrow),forceHide:o(ne.o9),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"arrow",disabled:b},rectangle:{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Rectangle-Annotation",selected:n===he.A.SHAPE_RECTANGLE&&"rectangle"===h,onPress:this._handleRectangleTap,title:y(be.Z.rectangleAnnotation),forceHide:o(ne.b3),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"rectangle",disabled:b},"cloudy-rectangle":{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Rectangle-Annotation PSPDFKit-Toolbar-Button-Variant-CloudyRectangle",selected:n===he.A.SHAPE_RECTANGLE&&"cloudy-rectangle"===h,onPress:this._handleRectangleTap,title:y(be.Z.cloudyRectangleAnnotation),forceHide:o(ne.b3),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"cloudy-rectangle",disabled:b},"dashed-rectangle":{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Rectangle-Annotation PSPDFKit-Toolbar-Button-Variant-DashedRectangle",selected:n===he.A.SHAPE_RECTANGLE&&"dashed-rectangle"===h,onPress:this._handleRectangleTap,title:y(be.Z.dashedRectangleAnnotation),forceHide:o(ne.b3),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"dashed-rectangle",disabled:b},ellipse:{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Ellipse-Annotation",selected:n===he.A.SHAPE_ELLIPSE&&"ellipse"===h,onPress:this._handleEllipseTap,title:y(be.Z.ellipseAnnotation),forceHide:o(ne.Xs),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"ellipse",disabled:b},"cloudy-ellipse":{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Ellipse-Annotation PSPDFKit-Toolbar-Button-Variant-CloudyEllipse",selected:n===he.A.SHAPE_ELLIPSE&&"cloudy-ellipse"===h,onPress:this._handleEllipseTap,title:y(be.Z.cloudyEllipseAnnotation),forceHide:o(ne.Xs),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"cloudy-ellipse",disabled:b},"dashed-ellipse":{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Ellipse-Annotation PSPDFKit-Toolbar-Button-Variant-DashedEllipse",selected:n===he.A.SHAPE_ELLIPSE&&"dashed-ellipse"===h,onPress:this._handleEllipseTap,title:y(be.Z.dashedEllipseAnnotation),forceHide:o(ne.Xs),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"dashed-ellipse",disabled:b},polygon:{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Polygon-Annotation",selected:n===he.A.SHAPE_POLYGON&&"polygon"===h,onPress:this._handlePolygonTap,title:y(be.Z.polygonAnnotation),forceHide:o(ne.Hi),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"polygon",disabled:b},"cloudy-polygon":{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Polygon-Annotation PSPDFKit-Toolbar-Button-Variant-CloudyPolygon",selected:n===he.A.SHAPE_POLYGON&&"cloudy-polygon"===h,onPress:this._handlePolygonTap,title:Te("cloudy-",this.props.items)?y(be.Z.cloudAnnotation):y(be.Z.cloudyPolygonAnnotation),forceHide:o(ne.Hi),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"cloudy-polygon",disabled:b},"dashed-polygon":{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Polygon-Annotation PSPDFKit-Toolbar-Button-Variant-DashedPolygon",selected:n===he.A.SHAPE_POLYGON&&"dashed-polygon"===h,onPress:this._handlePolygonTap,title:y(be.Z.dashedPolygonAnnotation),forceHide:o(ne.Hi),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"dashed-polygon",disabled:b},polyline:{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Polyline-Annotation",selected:n===he.A.SHAPE_POLYLINE&&"polyline"===h,onPress:this._handlePolylineTap,title:y(be.Z.polylineAnnotation),forceHide:o(ne.om),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"polyline",disabled:b},note:{className:"PSPDFKit-Toolbar-Button-Note-Annotation",selected:n===he.A.NOTE&&"note"===h,onPress:this._handleNoteTap,onKeyPress:this._handleNoteKeyPress,title:y(be.Z.noteAnnotation),forceHide:o(ne.Qi),responsiveGroup:"annotate",preset:"note",disabled:b},comment:{className:"PSPDFKit-Toolbar-Button-Comment-Marker-Annotation",selected:n===he.A.COMMENT_MARKER,title:y(be.Z.comment),onPress:this._handleCommentMarkerTap,onKeyPress:this._handleCommentMarkerKeyPress,forceHide:o(ne.Jn),responsiveGroup:"annotate",disabled:b},signature:{className:"PSPDFKit-Toolbar-Button-InkSignature-Annotation PSPDFKit-Toolbar-Button-Signature",selected:n===he.A.INK_SIGNATURE||n===he.A.SIGNATURE,onPress:this._handleSignatureTap,title:y(be.Z.sign),forceHide:s===ve.H.NONE||a||o(ne.Zc)&&s!==ve.H.ELECTRONIC_SIGNATURES,responsiveGroup:"annotate",preset:s===ve.H.ELECTRONIC_SIGNATURES?"es-signature":"ink-signature",disabled:b},"redact-text-highlighter":{className:"PSPDFKit-Toolbar-Button-RedactTextHighlighter-Annotation",selected:n===he.A.REDACT_TEXT_HIGHLIGHTER,onPress:this._handleRedactTextHighlighterTap,title:y(be.Z.textRedaction),forceHide:o(oe.Z),responsiveGroup:"annotate",dropdownGroup:"redaction",preset:"redaction",disabled:b},"redact-rectangle":{className:"PSPDFKit-Toolbar-Button-Redaction-Annotation PSPDFKit-Toolbar-Button-Rectangle-Redaction-Annotation",selected:n===he.A.REDACT_SHAPE_RECTANGLE,onPress:this._handleRedactRectangleTap,title:y(be.Z.areaRedaction),forceHide:o(oe.Z),responsiveGroup:"annotate",dropdownGroup:"redaction",preset:"redaction",disabled:b},"form-creator":{className:"PSPDFKit-Toolbar-Button-Form-Creator",selected:(0,Ee.fF)(n),onPress:this.handleFormDesignerTap,title:y(be.Z.formCreator),forceHide:o(ne.x_),disabled:b},pan:{className:"PSPDFKit-Toolbar-Button-Pan",selected:n===he.A.PAN,onPress:this._handlePanTap,title:y(Fe.panMode),forceHide:de.Ni,disabled:b},print:{className:"PSPDFKit-Toolbar-Button-Print",onPress:this._handlePrintTap,title:y(Fe.print),disabled:!l||b},"document-editor":{className:"PSPDFKit-Toolbar-Button-Document-Editor",onPress:this._handleDocumentEditorTap,title:y(be.Z.documentEditor),dropdownGroup:"editor",disabled:b},"document-crop":{className:"PSPDFKit-Toolbar-Button-Document-Crop",onPress:this.handleCropTap,title:y(be.Z.documentCrop),dropdownGroup:"editor",selected:n===he.A.DOCUMENT_CROP,disabled:b},"document-comparison":{className:"PSPDFKit-Toolbar-Button-Document-Comparison",onPress:this.handleDocumentComparisonTap,title:y(be.Z.documentComparison),dropdownGroup:"editor",forceHide:!r,selected:i,disabled:b},search:{className:"PSPDFKit-Toolbar-Button-Search",selected:n===he.A.SEARCH,onPress:this._handleSearchTap,title:y(be.Z.searchDocument),disabled:b},text:{className:"PSPDFKit-Toolbar-Button-Text-Annotation",selected:n===he.A.TEXT&&"text"===this.state.lastSelectedToolbarItemType,onPress:this._handleTextTap,onKeyPress:this._handleTextKeyPress,title:y(be.Z.textAnnotation),forceHide:o(ne.gd),dropdownGroup:"text",responsiveGroup:"annotate",preset:"text",disabled:b},callout:{className:"PSPDFKit-Toolbar-Button-Callout-Annotation",selected:n===he.A.CALLOUT&&"callout"===this.state.lastSelectedToolbarItemType,onPress:this.handleCalloutTap,title:y(be.Z.calloutAnnotation),forceHide:o(ne.gd),dropdownGroup:"text",responsiveGroup:"annotate",preset:"callout",disabled:b},"zoom-mode":De({mediaQueries:[de.Ni?`(min-width: ${fe.Ei.BREAKPOINT_MD_TOOLBAR}px)`:"all"]},u===ge.c.FIT_TO_VIEWPORT?{className:"PSPDFKit-Toolbar-Button-Fit-To-Width",onPress:this._handleFitToWidthTap,title:y(Fe.fitWidth),type:"fit-width",disabled:b}:{className:"PSPDFKit-Toolbar-Button-Fit-To-Page",onPress:this._handleFitToBothTap,title:y(Fe.fitPage),type:"fit-page",disabled:b}),"zoom-out":{className:"PSPDFKit-Toolbar-Button-Zoom-Out",disabled:p,onPress:this._handleZoomOutTap,title:y(Fe.zoomOut),mediaQueries:[de.Ni?`(min-width: ${fe.Ei.BREAKPOINT_MD_TOOLBAR}px)`:"all"]},"zoom-in":{className:"PSPDFKit-Toolbar-Button-Zoom-In",disabled:d,onPress:this._handleZoomInTap,title:y(Fe.zoomIn),mediaQueries:[de.Ni?`(min-width: ${fe.Ei.BREAKPOINT_MD_TOOLBAR}px)`:"all"]},undo:{className:"PSPDFKit-Toolbar-Button-Undo",disabled:!m||b,onPress:this._handleUndoTap,title:y(Fe.undo),forceHide:a,responsiveGroup:"annotate"},redo:{className:"PSPDFKit-Toolbar-Button-Redo",disabled:!g||b,onPress:this._handleRedoTap,title:y(Fe.redo),forceHide:a,responsiveGroup:"annotate"},"marquee-zoom":{className:"PSPDFKit-Toolbar-Button-Marquee-Zoom",selected:n===he.A.MARQUEE_ZOOM,onPress:this._handleMarqueeZoomTap,title:y(Fe.marqueeZoom),disabled:b},spacer:{},pager:{disabled:b},"layout-config":{mediaQueries:[`(min-width: ${fe.Ei.BREAKPOINT_SM_TOOLBAR+1}px)`],disabled:b},"multi-annotations-selection":{className:"PSPDFKit-Toolbar-Button-Multiple-Annotations-Selection",selected:n===he.A.MULTI_ANNOTATIONS_SELECTION,onPress:this._handleMultiAnnotationsSelectionTap,title:y(be.Z.multiAnnotationsSelection),disabled:!v||b},annotate:{className:"PSPDFKit-Toolbar-Button-Annotate",onPress:this._handleAnnotateResponsiveGroupTap,title:y(be.Z.annotations),forceHide:o(ne.q6),mediaQueries:[`(max-width: ${fe.Ei.BREAKPOINT_MD_TOOLBAR}px)`],disabled:b},measure:{className:"PSPDFKit-Toolbar-Button-Measurement-Annotation",selected:n===he.A.MEASUREMENT||n===he.A.DISTANCE||n===he.A.PERIMETER||n===he.A.RECTANGLE_AREA||n===he.A.POLYGON_AREA||n===he.A.ELLIPSE_AREA,onPress:this._handleMeasurementTap,title:y(be.Z.measurement),forceHide:o(ne.q6),responsiveGroup:"annotate",preset:"measurement",disabled:b},"responsive-group":{onPress:(e,t)=>this._handleResponsiveGroupTap(t),disabled:b},"sidebar-thumbnails":{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Thumbnails",title:y(Fe.thumbnails),onPress:this._handleThumbnailsSidebarTap,selected:f===me.f.THUMBNAILS,dropdownGroup:"sidebar",disabled:b},"sidebar-document-outline":{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Document-Outline",title:y(Fe.outline),onPress:this._handleDocumentOutlineSidebarTap,selected:f===me.f.DOCUMENT_OUTLINE,dropdownGroup:"sidebar",disabled:b},"sidebar-annotations":{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Annotations",title:y(be.Z.annotations),onPress:this._handleAnnotationsSidebarTap,selected:f===me.f.ANNOTATIONS,dropdownGroup:"sidebar",disabled:b},"sidebar-bookmarks":{className:"PSPDFKit-Toolbar-Button-Bookmarks PSPDFKit-Toolbar-Button-Sidebar-Bookmarks",title:y(be.Z.bookmarks),onPress:this._handleBookmarksSidebarTap,selected:f===me.f.BOOKMARKS,dropdownGroup:"sidebar",disabled:b},"export-pdf":{className:"PSPDFKit-Toolbar-Button-Export-PDF",title:y(be.Z.export),onPress:this._handleExportPDFTap,disabled:!c||b,selected:!1},"content-editor":{className:"PSPDFKit-Toolbar-Button-Content-Editor",onPress:this._handleContentEditorTap,title:y(be.Z.contentEditor),selected:n===he.A.CONTENT_EDITOR}}}))),(0,o.Z)(this,"_prepareToolbarItems",(0,l.Z)(((e,t,n,o,r,i,a,s,l,c,u,d,p,f,h,m,g,v,y,b,w,S)=>{const E=this._getBuiltInDefaults(e,t,n,r,i,a,o,s,l,c,u,d,p,f,y,b,w,S),P=a?h:(0,le.q1)(h,E,m),x=(0,le.DQ)(P,E),D=a?function(e){return e.filter((e=>Oe.includes(e.get("type"))))}(x):x,C=(0,le.Ut)((0,le.hJ)(D)),k=(0,le.Ut)(D,!0,g);return{items:C,groupedItems:this.getDropdownGroupGroupedItems(C),groupedResponsiveItems:this.getDropdownGroupGroupedItems(k)}}))),(0,o.Z)(this,"_onMediaQueryUpdate",(()=>{var e;null!==(e=this.props.frameWindow)&&void 0!==e&&e.matchMedia("print").matches||this.setState({mediaQueryDidUpdate:{}})})),(0,o.Z)(this,"_updateMediaQueryListener",(()=>{const{intl:e,debugMode:t,interactionMode:n,isAnnotationTypeReadOnly:o,isDocumentComparisonAvailable:r,currentDocumentComparisonMode:i,isDocumentReadOnly:a,signatureFeatureAvailability:s,printingEnabled:l,exportEnabled:c,zoomMode:u,maxZoomReached:d,minZoomReached:p,sidebarMode:f,items:h,canUndo:m,canRedo:g,isMultiSelectionEnabled:v}=this.props,y=this._getBuiltInDefaults(e,t,n,o,r,!!i,a,s,l,c,u,d,p,f,this.state.lastSelectedToolbarItemType,m,g,v),b=(0,le.se)(h,y);b.forEach((e=>{var t;if(this._mediaListeners.hasOwnProperty(e))return;const n=null===(t=this.props.frameWindow)||void 0===t?void 0:t.matchMedia(e);null==n||n.addListener(this._onMediaQueryUpdate),this._mediaListeners[e]=n})),Object.keys(this._mediaListeners).filter((e=>!b.includes(e))).forEach((e=>{this._mediaListeners[e].removeListener(this._onMediaQueryUpdate),delete this._mediaListeners[e]}))})),(0,o.Z)(this,"_handleKeyPress",(e=>{e.keyCode===p.zz&&this.state.activeResponsiveGroup&&this._handleResponsiveGroupClose()})),(0,o.Z)(this,"_handleOnPress",(function(t,n,o,r,i){let a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6?arguments[6]:void 0;(0,le.Li)(r)&&e.setState({lastSelectedToolbarItemType:r}),(0,f.dC)((()=>{a&&s?s(n,o,i,a):t(n,o,i,a),e.props.dispatch((0,S.qB)(a))}))})),(0,o.Z)(this,"DropdownItemComponent",r.forwardRef(((e,t)=>{if(!e.item)return null;const n=e.item.item,o=e.item.index,{isSelectedItem:r,state:i,itemComponentProps:a}=e;return Ae(this.props,De(De({},n),{},{className:s()(n.className,{[O().dropdownButtonSelected]:null==i?void 0:i.includes("selected"),[O().dropdownButtonDisabled]:null==i?void 0:i.includes("disabled"),[O().dropdownButtonFocused]:null==i?void 0:i.includes("focused")}),onPress:r?n.onPress:void 0}),o,this._handleOnPress,!r,t,a)}))),(0,o.Z)(this,"_renderGroupedItems",(e=>{let{groupedItems:t,classNamePartial:n}=e;return t.map(((e,t)=>Array.isArray(e)?e.length<2?Ae(this.props,e[0].item,e[0].index,this._handleOnPress,!1,0===t?this.itemToFocusRef:void 0):r.createElement(te.Z,{frameWindow:this.props.frameWindow,items:e,disabled:e.every((e=>e.item.disabled)),ItemComponent:this.DropdownItemComponent,role:"menu",onSelect:(t,n)=>{const{onPress:o,id:r,type:i,preset:a,disabled:s}=n.item;if(!s&&(e.forEach((e=>{delete e.item.selected})),o)){const e="keydown"===t.type;this._handleOnPress(o,t,r,i,a,e)}},isActive:e.some((e=>e.item.selected)),key:`toolbar-items-group-${t}-${n}`,caretDirection:this.props.toolbarPlacement===ye.p.TOP?"down":"up",ref:0===t?this.itemToFocusRef:void 0}):Ae(this.props,e.item,e.index,this._handleOnPress,!1,0===t||e.item.type===this.state.prevActiveGroup?this.itemToFocusRef:void 0)))}))}static getDerivedStateFromProps(e,t){let n=null;if(e.interactionMode&&e.interactionMode in le.FO){const t=le.FO[e.interactionMode];Array.isArray(t)?n=e.currentItemPreset&&t.includes(e.currentItemPreset)?e.currentItemPreset:t[0]:"string"==typeof t&&(n=t)}return n!==t.lastSelectedToolbarItemType?{lastSelectedToolbarItemType:n,currentPageIndex:e.currentPageIndex}:{currentPageIndex:e.currentPageIndex}}getDropdownGroupGroupedItems(e){let t=(0,i.aV)();const n={};return e.forEach(((e,o)=>{const r=(0,i.D5)({index:o,item:e}),a=e.get("dropdownGroup");a?void 0!==n[a]?t=t.update(n[a],(e=>e instanceof i.aV?e.push(r):e)):(n[a]=t.size,t=t.push((0,i.aV)([r]))):t=t.push(r)})),t.toJS()}componentDidUpdate(e,t){this._updateMediaQueryListener();const n=t&&!t.activeResponsiveGroup&&this.state.activeResponsiveGroup,o=t&&t.activeResponsiveGroup&&!this.state.activeResponsiveGroup;(n||o)&&this.itemToFocusRef.current&&this.itemToFocusRef.current.focus()}componentDidMount(){this._updateMediaQueryListener()}componentWillUnmount(){Object.keys(this._mediaListeners).forEach((e=>{this._mediaListeners[e].removeListener(this._onMediaQueryUpdate),delete this._mediaListeners[e]}))}shouldComponentUpdate(e,t){const n=De(De({},e),{},{currentPageIndex:this.props.currentPageIndex}),o=De(De({},t),{},{currentPageIndex:this.state.currentPageIndex});return h.O.bind(this)(n,o)}render(){const{props:e}=this,{intl:t,debugMode:n,interactionMode:o,isDocumentReadOnly:i,isAnnotationTypeReadOnly:a,isDocumentComparisonAvailable:s,currentDocumentComparisonMode:l,signatureFeatureAvailability:c,printingEnabled:u,exportEnabled:p,zoomMode:f,maxZoomReached:h,minZoomReached:m,sidebarMode:g,items:v,frameWindow:y,toolbarPlacement:b,canUndo:w,canRedo:S,isMultiSelectionEnabled:E}=e,{formatMessage:P}=t,{activeResponsiveGroup:x,mediaQueryDidUpdate:D,lastSelectedToolbarItemType:C}=this.state,{groupedItems:k,groupedResponsiveItems:A}=this._prepareToolbarItems(t,n,o,i,a,s,!!l,c,u,p,f,h,m,g,v,y,x,D,C,w,S,E),T=x&&A.length,I=T?this._renderGroupedItems({groupedItems:A,classNamePartial:"groupedResponsiveItems"}):this._renderGroupedItems({groupedItems:k,classNamePartial:"groupedItems"}),F=T&&k.filter((e=>!Array.isArray(e))).find((e=>e.item.id===x)),M=F&&F.item?F.item.title:void 0,_=v.some((e=>"image"===e.get("type")));return r.createElement("div",{className:`PSPDFKit-Toolbar ${O().root}`,onKeyDown:this._handleKeyPress},T?null:I,r.createElement(ee.Z,{onClose:this._handleResponsiveGroupClose,isPrimary:!0,position:b===ye.p.TOP?"top":"bottom",accessibilityLabel:M},T?I:null),_&&r.createElement(d.TX,{tag:"div"},r.createElement("input",{ref:this.imagePickerRef,"aria-label":P(Fe.selectImage),"aria-hidden":!0,type:"file",accept:"image/png, image/jpeg, application/pdf",onChange:this._handleImageSelect,tabIndex:-1})))}}function Ae(e,t,n,o,i,a,l){switch(t.type){case"spacer":return r.createElement("div",{style:{flex:1},key:`spacer-${n}`});case"pager":return r.createElement(J,{dispatch:e.dispatch,pages:e.pages,totalPages:e.totalPages,key:e.currentPageIndex.toString(),readOnly:e.scrollMode===w.G.DISABLED});case"layout-config":var c;return r.createElement(K,{dispatch:e.dispatch,key:"layout-config",className:t.className,icon:t.icon,layoutMode:e.layoutMode,scrollMode:e.scrollMode,caretDirection:e.toolbarPlacement===ye.p.TOP?"down":"up",frameWindow:e.frameWindow,disabled:null!==(c=t.disabled)&&void 0!==c&&c});default:{const{type:e,id:c,className:u,disabled:d,selected:p,icon:f,title:h,onPress:m,preset:g,onKeyPress:v}=t;return"custom"===e&&t.node?r.createElement(Q.Z,{node:t.node,className:u,onPress:m?t=>o(m,t,c,e,g):void 0,title:h,disabled:d,selected:p,ref:a,itemComponentProps:l,key:`custom-node-${n}`}):r.createElement(k.Z,{type:e,className:s()(u,i?O().dropdownButton:O().toolbarButton),disabled:d,selected:p,icon:f,title:h,onPress:m?(t,n)=>o(m,t,c,e,g,n,v):void 0,key:`${e}-${n}`,children:i?h:void 0,role:i?"menuitem":void 0,ref:a,itemComponentProps:l,doNotAutoFocusOnFirstItem:!0})}}}const Oe=["pan","zoom-in","zoom-out","fit-page","fit-width","spacer","export-pdf","document-comparison"];function Te(e,t){return 1===t.filter((t=>{var n;return null===(n=t.get("type"))||void 0===n?void 0:n.startsWith(e)})).size}const Ie=(0,c.XN)(ke),Fe=(0,c.vU)({thumbnails:{id:"thumbnails",defaultMessage:"Thumbnails",description:"Show or hide the thumbnails sidebar"},outline:{id:"outline",defaultMessage:"Outline",description:"Show or hide the document outline sidebar"},panMode:{id:"panMode",defaultMessage:"Pan Mode",description:"Activate and deactivate the pan mode (the hand cursor to move the page)"},zoomIn:{id:"zoomIn",defaultMessage:"Zoom In",description:"Zoom in the document"},zoomOut:{id:"zoomOut",defaultMessage:"Zoom Out",description:"Zoom out the document"},undo:{id:"undo",defaultMessage:"Undo",description:"Undo a previous annotation operation"},redo:{id:"redo",defaultMessage:"Redo",description:"Redo a previous annotation operation"},marqueeZoom:{id:"marqueeZoom",defaultMessage:"Marquee Zoom",description:"Enables Marquee Zoom mode which allows to zoom to a rectangle"},fitPage:{id:"fitPage",defaultMessage:"Fit Page",description:"Fit the page in the viewer based on the bigger dimension"},fitWidth:{id:"fitWidth",defaultMessage:"Fit Width",description:"Fit the page in the document based on its width"},print:{id:"print",defaultMessage:"Print",description:"print"},selectImage:{id:"selectImage",defaultMessage:"Select Image",description:"Label for the select image field"},unsupportedImageFormat:{id:"unsupportedImageFormat",defaultMessage:"Unsupported type for image annotation: {arg0}. Please use a JPEG, PNG or PDF.",description:"Unsupported image type error."},newAnnotationCreated:{id:"newAnnotationCreated",defaultMessage:"New {arg0} annotation created.",description:"A new annotation was created."},selectAFileForImage:{id:"selectAFileForImage",defaultMessage:"Select a file for the new image annotation.",description:"Select a file from the file dialog for the new image annotation."}})},5462:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var o=n(22122),r=n(84121),i=n(67294),a=n(94184),s=n.n(a),l=n(76154),c=n(41756),u=n(67665),d=n(30667),p=n(25915),f=n(35369),h=n(36095),m=n(13448),g=n(58924),v=n(91859),y=n(27435),b=n.n(y),w=n(93628),S=n.n(w),E=n(38006),P=n.n(E),x=n(20276);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function C(e){for(var t=1;t{let{selectedItem:t}=e;E&&E(F.current||(0,x._)("click"),t),F.current=null}),[E]),_=i.useRef(),R=null!==(n=i.useMemo((()=>y.find((e=>e.value===(null==w?void 0:w.value)))),[y,w]))&&void 0!==n?n:w,N=e.ItemComponent,L={root:s()("PSPDFKit-Input-Dropdown",e.isActive&&!e.disabled&&"PSPDFKit-Input-Dropdown-active","PSPDFKit-Toolbar-Dropdown",e.className,b().withDropdown,!e.isActive&&b().withDropdownIdle,e.disabled&&b().withDropdownDisabled,R&&"string"==typeof R.icon?R.icon:void 0),button:s()("PSPDFKit-Input-Dropdown-Button",b().dropdown,e.isActive&&!e.disabled&&b().isActive,{[b().discreteDropdown]:e.discreteDropdown,[b().isDisabled]:e.disabled}),menu:s()("PSPDFKit-Input-Dropdown-Items",S().root,e.menuClassName)},[B,j]=i.useState(!1),{getToggleButtonProps:z,getMenuProps:K,getItemProps:Z,getLabelProps:U,isOpen:V,selectedItem:G,highlightedIndex:W,setHighlightedIndex:q}=(0,c.L7)(C(C({items:y,itemToString:O,selectedItem:R,onHighlightedIndexChange:e=>{switch(e.type){case c.L7.stateChangeTypes.MenuKeyDownArrowDown:case c.L7.stateChangeTypes.MenuKeyDownArrowUp:case c.L7.stateChangeTypes.MenuKeyDownEscape:case c.L7.stateChangeTypes.MenuKeyDownHome:case c.L7.stateChangeTypes.MenuKeyDownEnd:case c.L7.stateChangeTypes.MenuKeyDownEnter:case c.L7.stateChangeTypes.MenuKeyDownSpaceButton:case c.L7.stateChangeTypes.MenuKeyDownCharacter:case c.L7.stateChangeTypes.FunctionSetHighlightedIndex:!B&&j(!0);break;default:B&&j(!1)}},onSelectedItemChange:t=>{"menu"!==e.role&&M(t)}},e.frameWindow?{environment:e.frameWindow}:null),{},{circularNavigation:!e.hasOwnProperty("circularNavigation")||e.circularNavigation,getA11yStatusMessage(){},getA11ySelectionMessage(){}})),H=z({onKeyDown:e=>{let{nativeEvent:t,key:n}=e;"Enter"===n&&(F.current=t)},onClick:e=>{e.target.focus&&e.target.focus()},"aria-haspopup":"menu"===e.role?"true":"listbox"}),$=K({onKeyDown:t=>{if(t.keyCode===d.zz&&V&&!e.propagateEscPress)t.stopPropagation();else if((t.keyCode===d.E$||t.keyCode===d.tW)&&W>-1&&"menu"===e.role&&V&&!y[W].disabled)F.current=t.nativeEvent,M({selectedItem:y[W]});else if(t.keyCode===d.P9&&Q>1)q(0===W?y.length:W-1);else if(t.keyCode===d.gs&&Q>1)q(W===y.length-1?0:W+1);else if(t.keyCode===d.OC&&_.current){const e=_.current.querySelector(`#${H.id}`);e&&e.focus()}}},{suppressRefError:!0}),Y=U(),X=e.ButtonComponent,J="menu"===e.role?{role:void 0,"aria-labelledby":void 0,"aria-haspopup":void 0,"aria-expanded":void 0}:{},Q=Math.min(y.length,e.maxCols||1),ee={display:"flex",flexDirection:Q>1?"row":"column",flexWrap:"wrap",width:e.itemWidth?Q*e.itemWidth:"auto",boxSizing:"content-box"},te=null!=e.icon?e.icon:{};return i.createElement("div",(0,o.Z)({className:s()(V&&"PSPDFKit-Input-Dropdown-open",L.root)},J,{"data-test-id":e["data-test-id"]}),i.createElement(p.TX,{tag:"div"},i.createElement("span",Y,e.accessibilityLabel)),i.createElement("div",{ref:_,className:s()(b().wrapper,{[b().disabledWrapper]:e.disabled,[b().isDisabled]:e.disabled})},X?X({btnComponentProps:H,selectedItem:G,ref:t,caretDirection:e.caretDirection,disabled:null!==(r=e.disabled)&&void 0!==r&&r,isOpen:V}):i.createElement(i.Fragment,null,N({item:G,isSelectedItem:!0,state:null,ref:t}),i.createElement("button",(0,o.Z)({},C(C({},H),e.disabled?{onClick:null}:null),{className:L.button,style:{minWidth:0},type:"button"}),i.createElement(m.Z,(0,o.Z)({type:`caret-${e.caretDirection}`,style:{width:12,height:"100%"},className:s()("PSPDFKit-Toolbar-Button-Icon",b().dropdownIcon,{[b().disabledDropdownIcon]:e.disabled})},te)),i.createElement(p.TX,{tag:"div"},i.createElement("span",null,null==G?void 0:G.label))))),i.createElement(u.m,null,i.createElement(g.Z,{referenceElement:_.current,measure:V,offsets:A},(t=>{let{ref:n,style:r}=t;const l="down"===e.caretDirection;let c;c=(e.frameWindow?e.frameWindow.innerWidth:_.current.ownerDocument.defaultView.innerWidth)>=v.Fg?_.current.offsetWidth:"auto";const u=r.top,d={maxHeight:l&&"auto"!==u?`calc(100vh - ${u}px)`:void 0,overflowY:"auto"};return i.createElement("div",{ref:n,style:C({minWidth:c},r)},i.createElement("div",(0,o.Z)({},$,{className:`${L.menu} ${s()({[S().hiddenMenu]:!V})}`,style:C(C({},d),ee),onMouseLeave:()=>q(null),role:"menu"===e.role?"menu":"listbox","aria-labelledby":H["aria-label"]?void 0:$["aria-labelledby"],"aria-label":H["aria-label"],"aria-hidden":!V}),V&&y.map(((t,n)=>{var o;const r=!!G&&(G.value||t.label)===(t.value||t.label),l=function(e,t,n){return t.indexOf(e)===n}(t,y,W);let c=(0,f.l4)();t.disabled&&(c=c.add("disabled")),l&&(c=c.add("focused")),r&&(c=c.add("selected")),t.disabled||l||r||(c=c.add("default"));const u=s()("PSPDFKit-Input-Dropdown-Item",{"PSPDFKit-Input-Dropdown-Item-disabled":t.disabled,"PSPDFKit-Input-Dropdown-Item-focused":!t.disabled&&l,"PSPDFKit-Input-Dropdown-Item-selected":!t.disabled&&r,"PSPDFKit-Input-Dropdown-Item-default":!t.disabled&&!r&&!l,[P().focusVisible]:l&&B}),d=Z(C({item:t,index:n,disabled:null!==(o=t.disabled)&&void 0!==o&&o,onClick:n=>{let{nativeEvent:o}=n;t.disabled||(F.current=o,"menu"===e.role&&V&&M({selectedItem:t}))}},"menu"===e.role?{"aria-selected":void 0,role:void 0}:h.G6?{}:{"aria-selected":void 0,"aria-label":r?I(T.selectedItem,{arg0:t.label}):void 0}));return i.createElement(i.Fragment,{key:`${O(t)}${n}`},i.createElement("div",{className:u},N({item:t,isSelectedItem:!1,state:c,itemComponentProps:d})),null!=k&&(null==k?void 0:k.index)===n&&(a||(a=i.createElement(k.node,null))))})),D))}))))}const A=(0,i.memo)(i.forwardRef(k));function O(e){return null!=e&&e.label?null==e?void 0:e.label:(null!=(null==e?void 0:e.value)&&"object"==typeof e.value&&"toString"in e.value&&"function"==typeof e.value.toString&&e.value.toString(),null!=(null==e?void 0:e.value)&&"string"==typeof e.value?e.value:"N/A")}const T=(0,l.vU)({accessibilityLabelDropdownGroupToggle:{id:"accessibilityLabelDropdownGroupToggle",defaultMessage:"{arg0} tools, toggle menu",description:"Accessible label to announce the button to open and close a toolbar menu which contains tools like shapes or ink annotations buttons."},selectedItem:{id:"selectedItem",defaultMessage:"{arg0}, selected",description:"Label for selected item in a dropdown"}})},84747:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=n(22122),r=n(17375),i=n(76154),a=n(67294),s=n(94184),l=n.n(s),c=n(27435),u=n.n(c),d=n(5462),p=n(97413);const f=["item"],h=["selectedItem"],m=a.memo(a.forwardRef((function(e,t){const{items:n,noInitialSelection:s,ItemComponent:c,ButtonComponent:m}=e,[b,w]=a.useState(null),{formatMessage:S}=(0,i.YB)(),E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Toolbar";return e.charAt(0).toUpperCase()+e.substr(1)}(n[0].item.dropdownGroup),P=a.useMemo((()=>n.find((e=>e.item.selected))||b||(s?null:n[0])),[n,s,b]),x=l()("PSPDFKit-Toolbar-DropdownGroup",E&&"PSPDFKit-Toolbar-DropdownGroup-"+E,e.className,P?"string"==typeof P.item.icon?P.item.icon:"string"==typeof P.item.type&&"custom"!==P.item.type?u().withDropdownIcon:void 0:void 0),D=e.items.map(g),C=P?g(P):null,k=a.useCallback((e=>{const{item:i}=e,s=(0,r.Z)(e,f),l=n.find((e=>null!=i?v(i,e):null));return a.createElement(c,(0,o.Z)({item:l},s,{ref:t}))}),[n,c,t]),A=a.useCallback((e=>{const{selectedItem:t}=e,i=(0,r.Z)(e,h),s=n.find((e=>null!=t?v(t,e):null));return(0,p.k)(s,"A dropdown item must be present for the button"),(0,p.k)(m,"A button must be available to render dropdown"),a.createElement(m,(0,o.Z)({selectedItem:s},i))}),[m,n]);return a.createElement(d.Z,{onSelect:(t,n)=>{const o=e.items.find((e=>v(n,e)));var r;null!=o&&(null===(r=e.onSelect)||void 0===r||r.call(e,t,o));if(b!==e.items.find((e=>v(n,e)))){const t=e.items.find((e=>v(n,e)));t&&w(t)}},items:D,value:C,ItemComponent:k,ButtonComponent:m?A:void 0,isActive:e.isActive,className:x,menuClassName:e.menuClassName,icon:e.icon,discreteDropdown:e.discreteDropdown,caretDirection:e.caretDirection,frameWindow:e.frameWindow,role:e.role,ref:t,accessibilityLabel:e.accessibilityLabel||S(y.accessibilityLabelDropdownGroupToggle,{arg0:E}),noInitialSelection:e.noInitialSelection,maxCols:e.maxCols,itemWidth:e.itemWidth,circularNavigation:e.circularNavigation,propagateEscPress:e.propagateEscPress,appendAfter:e.appendAfter,disabled:e.disabled},e.children)})));function g(e){var t,n,o,r;return{value:null!==(t=null!==(n=null!==(o=e.item.id)&&void 0!==o?o:e.item.title)&&void 0!==n?n:e.item.type)&&void 0!==t?t:"",icon:e.item.icon,label:null!==(r=e.item.title)&&void 0!==r?r:"",disabled:e.item.disabled}}function v(e,t){return t.item.id===e.value||t.item.title===e.value||t.item.type===e.value}const y=(0,i.vU)({accessibilityLabelDropdownGroupToggle:{id:"accessibilityLabelDropdownGroupToggle",defaultMessage:"{arg0} tools, toggle menu",description:"Accessible label to announce the button to open and close a toolbar menu which contains tools like shapes or ink annotations buttons."},selectedItem:{id:"selectedItem",defaultMessage:"{arg0}, selected",description:"Label for selected item in a dropdown"}})},11378:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(22122),r=n(67294),i=n(94184),a=n.n(i),s=n(3999);const l=r.forwardRef((function(e,t){const{selected:n,disabled:i}=e,l=a()("string"==typeof e.className&&e.className,"PSPDFKit-Toolbar-Node",n&&"PSPDFKit-Toolbar-Node-active",i&&"PSPDFKit-Toolbar-Node-disabled");return r.createElement(s.Z,(0,o.Z)({},e,{className:l,ref:t,itemComponentProps:e.itemComponentProps}))}))},44706:(e,t,n)=>{"use strict";n.d(t,{B:()=>f,Z:()=>h});var o=n(67294),r=n(76154),i=n(26353),a=n(84013),s=n(94184),l=n.n(s),c=n(85578),u=n.n(c),d=n(35129),p=n(11010);function f(e){let{children:t,onClose:n,isPrimary:r,position:s,intl:c,accessibilityLabel:f,onEntered:h,className:m}=e;const{formatMessage:g}=c,v=o.Children.count(t)>0;return o.createElement(a.Z,null,v&&o.createElement(i.Z,{timeout:{enter:window["PSPDFKit-disable-animations"]?0:150,exit:window["PSPDFKit-disable-animations"]?0:120},classNames:{enter:u().slideRightEnter,enterActive:u().slideRightEnterActive,enterDone:u().slideRightEnterDone,exit:u().slideRightExit,exitActive:u().slideRightExitActive},onEntered:h},o.createElement("div",{className:l()({[u().responsiveGroup]:!0,[u().primary]:r,[u().secondary]:!r,[u().stickToBottom]:"bottom"===s,"PSPDFKit-Toolbar-Responsive-Group":!0},m),role:"dialog","aria-label":f},o.createElement(p.Z,{type:"custom",title:g(d.Z.close),className:u().button,onPress:n},o.createElement("div",{className:u().animatedArrow})),o.createElement("div",{style:{flex:1}}),o.createElement("div",{className:u().items},t))))}const h=(0,r.XN)(f)},94505:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(22122),r=n(67294),i=n(94184),a=n.n(i),s=n(13448),l=n(44364),c=n.n(l);const u=r.memo(r.forwardRef((function(e,t){const{type:n,selected:i,disabled:l,onPress:u,icon:d,role:p,title:f,doNotAutoFocusOnFirstItem:h=!1}=e,m=r.useRef(!1),g=r.useCallback((function(e){e.preventDefault(),!l&&u&&u(e.nativeEvent,m.current)}),[u,l]),v=r.useCallback((function(){m.current=!0}),[]),y=r.useCallback((function(){m.current=!1}),[]),b=(0,s.Z)({icon:d,type:n,className:a()(void 0!==e.children&&c().withLabel,"PSPDFKit-Tool-Button-Icon",e.iconClassName)}),w=e.children||(b?null:f),S=a()(c().root,i&&c().isActive,l&&c().isDisabled,"string"==typeof e.className&&e.className,"PSPDFKit-Tool-Button",i&&"PSPDFKit-Tool-Button-active",l&&"PSPDFKit-Tool-Button-disabled");r.useEffect((()=>{!e.presentational&&t&&t.current&&!h&&t.current.focus()}),[e.presentational,t,h]);const E=r.createElement("button",(0,o.Z)({className:S,title:f,"aria-label":f,disabled:l,onClick:u?g:void 0,onKeyDown:u?v:void 0,onPointerUp:u?y:void 0,"aria-pressed":"annotate"!==n&&"responsive-group"!==n&&void 0!==i?i:void 0},e.itemComponentProps,{role:p||(e.itemComponentProps?e.itemComponentProps.role:void 0),type:"button",ref:t}),b,null!=w&&r.createElement("span",null,w));return e.presentational?r.createElement("div",null,r.createElement("div",{className:S,title:f,"aria-hidden":"true",role:"presentation"},b)):e.disabled?r.createElement("div",{className:a()({[c().disabledWrapper]:e.disabled})},E):E})))},3999:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(22122),r=n(67294),i=n(94184),a=n.n(i),s=n(18571),l=n.n(s);const c=r.memo(r.forwardRef((function(e,t){const{node:n,title:i,selected:s,disabled:c}=e,u=r.useRef();r.useImperativeHandle(t,(()=>({focus:()=>{n instanceof n.ownerDocument.defaultView.HTMLElement&&n.focus()}}))),r.useLayoutEffect((()=>{const e=u&&u.current;e&&(e.innerHTML="",e.appendChild(n))}),[n]);const d=a()("PSPDFKit-Tool-Node",{"PSPDFKit-Tool-Node-active":s,"PSPDFKit-Tool-Node-disabled":c},e.className,l().root,{[l().disabled]:c,[l().annotationToolbar]:"annotationToolbar"===e.variant}),p=e.onPress?t=>{let{nativeEvent:n}=t;e.onPress&&e.onPress(n)}:void 0;return r.createElement("div",(0,o.Z)({onClick:p,className:d,title:i,"aria-label":i,tabIndex:c?-1:void 0,"aria-disabled":!!c||void 0},e.itemComponentProps,{ref:u}))})))},97528:(e,t,n)=>{"use strict";n.d(t,{Ei:()=>m,Wv:()=>f,ng:()=>v});var o=n(84121),r=n(80857),i=n(59386),a=n(83634),s=n(86071),l=n(65627),c=n(35129),u=n(24871),d=n(91859);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}const f=s.Z.filter((e=>e.color!==a.Z.DARK_BLUE)),h={MIN_TEXT_ANNOTATION_SIZE:5,MIN_INK_ANNOTATION_SIZE:16,MIN_SHAPE_ANNOTATION_SIZE:16,MIN_IMAGE_ANNOTATION_SIZE:5,MIN_STAMP_ANNOTATION_SIZE:15,MIN_WIDGET_ANNOTATION_SIZE:3,ENABLE_INK_SMOOTH_LINES:!0,INK_EPSILON_RANGE_OPTIMIZATION:10,SIGNATURE_SAVE_MODE:i.f.USING_UI,INITIAL_DESKTOP_SIDEBAR_WIDTH:300,IGNORE_DOCUMENT_PERMISSIONS:!1,SELECTION_OUTLINE_PADDING:function(e){return e.width>d.y$?10:13},RESIZE_ANCHOR_RADIUS:function(e){return e.width>d.y$?7:10},SELECTION_STROKE_WIDTH:2,TEXT_ANNOTATION_AUTOFIT_TEXT_ON_EXPORT:!0,TEXT_ANNOTATION_AUTOFIT_BOUNDING_BOX_ON_EDIT:!0,DISABLE_KEYBOARD_SHORTCUTS:!1,DEFAULT_INK_ERASER_CURSOR_WIDTH:12.5,COLOR_PRESETS:f,LINE_CAP_PRESETS:["none"].concat(u.a),LINE_WIDTH_PRESETS:null,HIGHLIGHT_COLOR_PRESETS:[a.Z.LIGHT_YELLOW,a.Z.LIGHT_BLUE,a.Z.LIGHT_GREEN,a.Z.LIGHT_RED].map((e=>({color:e,localization:c.Z[e.toCSSValue()]}))),TEXT_MARKUP_COLOR_PRESETS:s.Z.filter((e=>[a.Z.BLACK,a.Z.BLUE,a.Z.RED,a.Z.GREEN].includes(e.color))),NOTE_COLOR_PRESETS:l.W,PDF_JAVASCRIPT:!0,BREAKPOINT_MD_TOOLBAR:1070,BREAKPOINT_SM_TOOLBAR:768},m=Object.preventExtensions(function(e){for(var t=1;t{for(const t in e)g(void 0!==h[t],`Option \`${t}\` is not available in the \`Options\` object`),g(typeof h[t]==typeof e[t],`Option \`${t}\` is of incorrect type \`${typeof e[t]}\`, should be \`${typeof h[t]}\``)}},25387:(e,t,n)=>{"use strict";n.d(t,{$8O:()=>Po,$Jy:()=>Tt,$VE:()=>ht,$hO:()=>Ft,A8G:()=>Ee,AIf:()=>et,ArU:()=>Zn,B1n:()=>nt,BS3:()=>o,BWS:()=>se,Ce5:()=>g,D1d:()=>no,D5x:()=>Un,D_w:()=>$t,Dj2:()=>ue,Dl4:()=>q,Dqw:()=>uo,Dzg:()=>it,Ebp:()=>Fo,EpY:()=>kn,F6q:()=>Nt,FH6:()=>Ot,FHt:()=>M,FQb:()=>Go,FdD:()=>yt,G5w:()=>de,G6t:()=>wo,G8_:()=>Qt,GHc:()=>l,GW4:()=>pe,GXR:()=>qe,GZZ:()=>ze,GfR:()=>H,Gkm:()=>yo,Gox:()=>Wn,HS7:()=>Pt,HYy:()=>No,Han:()=>zo,Hbz:()=>pt,Hrp:()=>s,IFt:()=>mn,ILc:()=>Et,Ifu:()=>_t,IyB:()=>eo,J7J:()=>He,JQC:()=>Q,JRS:()=>Gn,JS9:()=>Qe,JwD:()=>Ae,JyO:()=>$e,K26:()=>dt,KA1:()=>Hn,KYU:()=>V,Kc8:()=>rn,Kpf:()=>zn,KqR:()=>rt,Kw7:()=>on,L2A:()=>co,L8n:()=>ct,L9g:()=>W,Lyo:()=>P,M3C:()=>at,M85:()=>St,ME7:()=>y,MGL:()=>po,MOe:()=>Fe,MYU:()=>$n,MfE:()=>ae,MuN:()=>fe,NAH:()=>ge,NB4:()=>wt,NDs:()=>Ye,NfO:()=>K,Nl1:()=>G,Oh4:()=>Yt,Q2U:()=>hn,QU3:()=>le,QYP:()=>j,Qm9:()=>fo,R1i:()=>ke,R7l:()=>mo,R8P:()=>Dt,RCc:()=>ie,RPc:()=>gn,RTr:()=>h,RvB:()=>je,RxB:()=>k,S$y:()=>Je,S0t:()=>yn,SdX:()=>Eo,T3g:()=>io,TG1:()=>Qo,TPT:()=>Me,TUA:()=>We,TYu:()=>so,Ty$:()=>sn,U7k:()=>Lo,UFK:()=>N,UFs:()=>re,UII:()=>u,UL9:()=>Qn,UP4:()=>xo,UX$:()=>Xn,UiQ:()=>Ce,Ui_:()=>Kt,VK7:()=>Ut,VNM:()=>Yo,VNu:()=>lr,VOt:()=>Io,Vje:()=>ir,Vpf:()=>go,Vu4:()=>Xe,W0l:()=>nn,WaW:()=>Tn,Whn:()=>Xt,WmI:()=>Ko,WsN:()=>tr,WtY:()=>v,Wyx:()=>qt,XTO:()=>ar,Xlm:()=>Z,Y4:()=>Ro,YHT:()=>d,YIz:()=>ut,YS$:()=>bn,ZDQ:()=>tt,ZGb:()=>T,ZLr:()=>p,ZbY:()=>fn,ZgW:()=>Bo,Zt9:()=>sr,_33:()=>Bn,_AY:()=>Mt,_Qf:()=>Ln,_TO:()=>Dn,_Yi:()=>Le,_fK:()=>dn,_ko:()=>F,_n_:()=>we,_uU:()=>ne,a33:()=>Te,aWu:()=>Pe,aYj:()=>L,b0l:()=>be,b4I:()=>Ho,bOH:()=>jo,bP3:()=>J,bV3:()=>xn,bVL:()=>Mn,bui:()=>An,bxr:()=>I,bzW:()=>qo,c3G:()=>Be,cbv:()=>Ge,ciU:()=>Mo,ckI:()=>gt,cyk:()=>U,dCo:()=>b,dEe:()=>Sn,dVW:()=>en,eFQ:()=>lt,eI4:()=>X,eJ4:()=>to,esN:()=>jt,f3N:()=>Ie,fAF:()=>wn,fDl:()=>Ht,fLm:()=>_o,fQw:()=>Ao,faS:()=>Rn,fnw:()=>w,fwq:()=>bo,g30:()=>Ve,g4f:()=>E,gF5:()=>Ct,gIV:()=>It,gbd:()=>f,hC8:()=>cn,heZ:()=>m,hlI:()=>Se,hpj:()=>B,ht3:()=>_,huI:()=>At,hv0:()=>Y,hw0:()=>qn,hxO:()=>vt,iJ2:()=>zt,iMs:()=>En,iQZ:()=>$,iZ1:()=>un,ieh:()=>In,iwn:()=>_n,iyZ:()=>_e,jJ7:()=>Jt,joZ:()=>ko,jzI:()=>xt,kD6:()=>Co,kRo:()=>R,kVz:()=>Fn,kg:()=>bt,kt4:()=>ao,l$y:()=>Do,lD1:()=>ce,lRe:()=>Cn,m3$:()=>Zt,mE7:()=>C,mGH:()=>tn,mLh:()=>S,m_C:()=>rr,mbD:()=>Yn,mfU:()=>Jo,mqf:()=>Ke,nFn:()=>Rt,nI6:()=>Zo,nmm:()=>r,oE1:()=>xe,oWy:()=>De,oZW:()=>Uo,obk:()=>vn,odo:()=>Vo,oj5:()=>c,p1u:()=>Bt,pNz:()=>Pn,pnu:()=>ot,poO:()=>ln,qKG:()=>vo,qRJ:()=>an,qV6:()=>oe,qZT:()=>Lt,qh0:()=>oo,rWQ:()=>ye,rm:()=>ro,rpU:()=>Vn,rxv:()=>a,sCM:()=>kt,sYK:()=>ft,skc:()=>ee,snK:()=>er,snh:()=>te,syg:()=>A,t$K:()=>Wo,tC1:()=>Nn,tLW:()=>Ze,tPZ:()=>ve,tS$:()=>Ue,tYC:()=>me,teI:()=>ho,tie:()=>st,tzG:()=>nr,u7V:()=>Gt,u9b:()=>O,uFU:()=>pn,uOP:()=>Xo,uo5:()=>To,vBn:()=>$o,vSH:()=>Ne,vVk:()=>On,vgx:()=>lo,vkF:()=>So,wG7:()=>jn,wPI:()=>Kn,wgG:()=>cr,wog:()=>Jn,wtk:()=>D,x0v:()=>Oe,xYE:()=>x,xhM:()=>Oo,xk1:()=>he,yET:()=>Vt,yPS:()=>or,yrz:()=>mt,yyM:()=>Re,zGM:()=>Wt,zKF:()=>z,zZV:()=>i});const o="CONNECTING",r="CONNECTED",i="CONNECTION_FAILED",a="SET_ANNOTATION_MANAGER",s="SET_BOOKMARK_MANAGER",l="SET_FORM_FIELD_VALUE_MANAGER",c="SET_FORM_FIELD_MANAGER",u="SET_COMMENT_MANAGER",d="SET_MENTIONABLE_USERS",p="SET_MAX_MENTION_SUGGESTIONS",f="SET_CHANGE_MANAGER",h="SET_HAS_FETCHED_INITIAL_RECORDS_FROM_INSTANT",m="SET_GROUP",g="SET_CLIENTS_UPDATE_CALLBACK",v="SET_TRANSFORM_CLIENT_TO_PAGE",y="FETCH_DOCUMENT_SUCCESS",b="FETCH_PAGES_SUCCESS",w="SET_BACKEND_PERMISSIONS",S="SCROLLED",E="JUMP_TO_RECT",P="JUMP_AND_ZOOM_TO_RECT",x="RESIZED",D="NEXT_PAGE",C="PREVIOUS_PAGE",k="SET_PAGE",A="SET_ZOOM_LEVEL",O="SET_ZOOM_STEP",T="SET_VIEWPORT_STATE",I="SET_SPREAD_SPACING",F="SET_PAGE_SPACING",M="SET_FIRST_PAGE_ALWAYS_SINGLE",_="SET_VIEWPORT_PADDING",R="ENABLE_PANNING",N="DISABLE_PANNING",L="ENABLE_PRINTING",B="DISABLE_PRINTING",j="ENABLE_EXPORT",z="DISABLE_EXPORT",K="ENABLE_READ_ONLY",Z="DISABLE_READ_ONLY",U="SHOW_ANNOTATIONS",V="HIDE_ANNOTATIONS",G="SHOW_COMMENTS",W="HIDE_COMMENTS",q="SHOW_ANNOTATION_NOTES",H="HIDE_ANNOTATION_NOTES",$="SET_FEATURES",Y="SET_SIDEBAR_MODE",X="SET_SIDEBAR_PLACEMENT",J="SET_SIDEBAR_OPTIONS",Q="SET_SIGNATURE_FEATURE_AVAILABILITY",ee="START_PRINTING",te="END_PRINTING",ne="ABORT_PRINTING",oe="UPDATE_PRINT_LOADING_INDICATOR",re="ZOOM_IN",ie="ZOOM_OUT",ae="ZOOM_TO_AUTO",se="ZOOM_TO_FIT_TO_VIEWPORT",le="ZOOM_TO_FIT_TO_WIDTH",ce="ROTATE",ue="ENABLE_DEBUG_MODE",de="SHOW_DEBUG_CONSOLE",pe="HIDE_DEBUG_CONSOLE",fe="SHOW_TOOLBAR",he="HIDE_TOOLBAR",me="ENABLE_ANNOTATION_TOOLBAR",ge="DISABLE_ANNOTATION_TOOLBAR",ve="SET_SCROLLBAR_OFFSET",ye="SET_LAYOUT_MODE",be="SET_SCROLL_MODE",we="SET_SCROLL_ELEMENT",Se="SET_ANNOTATION_CREATOR",Ee="SET_ANNOTATION_TOOLBAR_HEIGHT",Pe="UPDATE_TOOLBAR_ITEMS",xe="UPDATE_CURRENT_PRESET",De="SET_CURRENT_ITEM_PRESET",Ce="UPDATE_ANNOTATION_PRESETS",ke="ADD_ANNOTATION_PRESET_ID",Ae="SET_CURRENT_ITEM_PRESET_FROM_ANNOTATION",Oe="REMOVE_ANNOTATION_PRESET_ID",Te="DESELECT",Ie="TEXT_SELECTED",Fe="TEXT_DESELECTED",Me="SET_ANNOTATION_HOVER",_e="UNSET_ANNOTATION_HOVER",Re="SET_ANNOTATION_NOTE_HOVER",Ne="SET_ACTIVE_ANNOTATION_NOTE",Le="SET_SELECTED_ANNOTATIONS",Be="UNSET_SELECTED_ANNOTATION_SHOULD_DRAG",je="SET_SELECTED_TEXT_ON_EDIT",ze="FETCH_TEXT_LINES_SUCCESS",Ke="ENABLE_TEXT_HIGHLIGHTER_MODE",Ze="DISABLE_TEXT_HIGHLIGHTER_MODE",Ue="ENABLE_REDACT_TEXT_HIGHLIGHTER_MODE",Ve="DISABLE_REDACT_TEXT_HIGHLIGHTER_MODE",Ge="ENABLE_REDACT_SHAPE_RECTANGLE_MODE",We="DISABLE_REDACT_SHAPE_RECTANGLE_MODE",qe="ENABLE_INK_MODE",He="DISABLE_INK_MODE",$e="ENABLE_INK_ERASER_MODE",Ye="DISABLE_INK_ERASER_MODE",Xe="ENABLE_SIGNATURE_MODE",Je="DISABLE_SIGNATURE_MODE",Qe="ENABLE_SHAPE_MODE",et="DISABLE_SHAPE_MODE",tt="ENABLE_NOTE_MODE",nt="DISABLE_NOTE_MODE",ot="ENABLE_TEXT_MODE",rt="DISABLE_TEXT_MODE",it="ENABLE_STAMP_PICKER_MODE",at="ENABLE_STAMP_CUSTOM_MODE",st="DISABLE_STAMP_MODE",lt="ENABLE_INTERACTIONS",ct="DISABLE_INTERACTIONS",ut="SHOW_DOCUMENT_EDITOR",dt="HIDE_DOCUMENT_EDITOR",pt="ENABLE_MARQUEE_ZOOM",ft="DISABLE_MARQUEE_ZOOM",ht="SET_INTERACTION_MODE",mt="RESET_INTERACTION_MODE",gt="CREATE_COMMENTS",vt="CREATE_COMMENT_DRAFT",yt="UPDATE_COMMENTS",bt="DELETE_COMMENTS",wt="COMPUTE_COMMENT_MODE",St="CREATE_ANNOTATIONS",Et="CREATE_INK_ANNOTATION_ON_NEW_PAGE",Pt="CREATE_SHAPE_ANNOTATION_ON_NEW_PAGE",xt="CREATE_REDACTION_ANNOTATION_ON_NEW_PAGE",Dt="UPDATE_ANNOTATIONS",Ct="DELETE_ANNOTATIONS",kt="SET_ANNOTATIONS_TO_DELETE",At="CREATE_ATTACHMENT",Ot="SEARCH_FOR_TERM",Tt="FOCUS_NEXT_SEARCH_HIGHLIGHT",It="FOCUS_PREVIOUS_SEARCH_HIGHLIGHT",Ft="SHOW_SEARCH",Mt="HIDE_SEARCH",_t="FOCUS_SEARCH",Rt="BLUR_SEARCH",Nt="SET_SEARCH_IS_LOADING",Lt="SET_SEARCH_RESULTS",Bt="SET_SEARCH_STATE",jt="SET_SEARCH_PROVIDER",zt="SET_FORM_JSON",Kt="CREATE_FORM_FIELD_VALUES",Zt="SET_FORM_FIELD_VALUES",Ut="SET_FORMATTED_FORM_FIELD_VALUES",Vt="SET_EDITING_FORM_FIELD_VALUES",Gt="DELETE_FORM_FIELD_VALUES",Wt="CREATE_FORM_FIELDS",qt="UPDATE_FORM_FIELDS",Ht="REPLACE_FORM_FIELD",$t="DELETE_FORM_FIELDS",Yt="SET_DOCUMENT_OUTLINE",Xt="TOGGLE_DOCUMENT_OUTLINE_ELEMENT",Jt="SET_CUSTOM_OVERLAY_ITEM",Qt="REMOVE_CUSTOM_OVERLAY_ITEM",en="I18N_SET_LOCALE",tn="CREATE_SIGNATURE",nn="STORE_SIGNATURE",on="SET_STORED_SIGNATURES",rn="DELETE_STORED_SIGNATURE",an="UPDATE_STAMP_ANNOTATION_TEMPLATES",sn="SHOW_PASSWORD_PROMPT",ln="SET_HAS_PASSWORD",cn="UNLOCKED_VIA_MODAL",un="SET_ALLOWED_TILE_SCALES",dn="UPDATE_SELECTED_MARKUP_ANNOTATIONS",pn="SET_IS_EDITABLE_ANNOTATION",fn="SET_EDITABLE_ANNOTATION_TYPES",hn="SET_IS_EDITABLE_COMMENT",mn="SET_FORM_DESIGN_MODE",gn="SET_INK_ERASER_WIDTH",vn="RESET_DOCUMENT_STATE",yn="SET_DOCUMENT_HANDLE",bn="SET_DOCUMENT_HANDLE_OUTDATED",wn="UPDATE_CUSTOM_RENDERERS",Sn="ENABLE_COMMENT_MARKER",En="DISABLE_COMMENT_MARKER",Pn="START_DIGITAL_SIGNATURE",xn="END_DIGITAL_SIGNATURE",Dn="SET_SHOW_SIGNATURE_VALIDATION_STATUS_MODE",Cn="SET_DIGITAL_SIGNATURES",kn="START_REDACTION",An="END_REDACTION",On="SET_PREVIEW_REDACTION_MODE",Tn="SET_COLLAPSE_SELECTED_NOTE_CONTENT",In="INVALIDATE_AP_STREAMS",Fn="VALIDATE_AP_STREAMS",Mn="HISTORY_UPDATE_FROM_UNDO",_n="HISTORY_UPDATE_FROM_REDO",Rn="SET_HISTORY_CHANGE_CONTEXT",Nn="HISTORY_IDS_MAP_ADD",Ln="CLEAR_HISTORY",Bn="ENABLE_HISTORY",jn="DISABLE_HISTORY",zn="UPDATE_DOCUMENT_EDITOR_FOOTER_ITEMS",Kn="UPDATE_DOCUMENT_EDITOR_TOOLBAR_ITEMS",Zn="SET_EDITABLE_ANNOTATION_STATE",Un="SET_A11Y_STATUS_MESSAGE",Vn="SET_LAST_TOOLBAR_ACTION_USED_KEYBOARD",Gn="ENABLE_DOCUMENT_CROP_MODE",Wn="DISABLE_DOCUMENT_CROP_MODE",qn="SET_ON_ANNOTATION_RESIZE_START",Hn="SET_DOCUMENT_COMPARISON_STATE",$n="ENABLE_SCROLL_WHILE_DRAWING",Yn="DISABLE_SCROLL_WHILE_DRAWING",Xn="SET_REUSE_STATE",Jn="ENABLE_KEEP_SELECTED_TOOL",Qn="DISABLE_KEEP_SELECTED_TOOL",eo="SET_INSTANCE",to="SET_CUSTOM_UI_STORE",no="SET_SIDEBAR_WIDTH",oo="SET_READ_ONLY_ANNOTATION_FOCUS",ro="UNSET_READ_ONLY_ANNOTATION_FOCUS",io="SET_ANNOTATION_TOOLBAR_ITEMS_CALLBACK",ao="TOGGLE_CLIPBOARD_ACTIONS",so="SET_ON_WIDGET_CREATION_START_CALLBACK",lo="SET_FORM_DESIGNER_LOCAL_WIDGET_ANNOTATION",co="SET_INLINE_TOOLBAR_ITEMS_CALLBACK",uo="ADD_ANNOTATION_VARIANTS",po="ENABLE_CONTENT_EDITOR",fo="DISABLE_CONTENT_EDITOR",ho="CHANGE_CONTENT_EDITOR_SESSION_MODE",mo="ENABLE_LINK_MODE",go="DISABLE_LINK_MODE",vo="DISABLE_DRAWING_LINK_ANNOTATION_MODE",yo="SET_MEASUREMENT_SNAPPING",bo="SET_MEASUREMENT_PRECISION",wo="SET_MEASUREMENT_SCALE",So="SET_MEASUREMENT_VALUE_CONFIGURATION_CALLBACK",Eo="SET_MEASUREMENT_SCALES",Po="SET_MEASUREMENT_TOOL_STATE",xo="SET_HINT_LINES",Do="CONTENT_EDITOR/PAGE/LOADING",Co="CONTENT_EDITOR/PAGE/LOADED",ko="CONTENT_EDITOR/TEXT_BLOCK/INTERACTION/ACTIVE",Ao="CONTENT_EDITOR/TEXT_BLOCK/INTERACTION/TOGGLE",Oo="CONTENT_EDITOR/TEXT_BLOCK/INTERACTION/SELECT",To="CONTENT_EDITOR/TEXT_BLOCK/CREATE",Io="CONTENT_EDITOR/TEXT_BLOCK/UPDATE_INFO",Fo="CONTENT_EDITOR/TEXT_BLOCK/SET_FORMAT",Mo="CONTENT_EDITOR_/TEXT_BLOCK/RESIZE",_o="CONTENT_EDITOR_/TEXT_BLOCK/MOVE",Ro="CONTENT_EDITOR/SAVING",No="CONTENT_EDITOR/SET_DIRTY",Lo="CONTENT_EDITOR/FACE_LIST/LOADING",Bo="CONTENT_EDITOR/FACE_LIST/SET",jo="CONTENT_EDITOR_SET_EXIT_DIALOG",zo="CONTENT_EDITOR_SHOW_FONT_MISMATCH_TOOLTIP",Ko="CONTENT_EDITOR_HIDE_FONT_MISMATCH_TOOLTIP",Zo="CONTENT_EDITOR_FONT_MISMATCH_TOOLTIP_ABORT_CONTROLLER",Uo="ENABLE_MULTI_ANNOTATIONS_SELECTION_MODE",Vo="DISABLE_MULTI_ANNOTATIONS_SELECTION_MODE",Go="CREATE_ANNOTATION_GROUP",Wo="SET_SELECTED_GROUP",qo="DELETE_ANNOTATION_GROUP",Ho="REMOVE_ANNOTATION_FROM_GROUP",$o="SET_PULL_TO_REFRESH_STATE",Yo="SET_RICH_EDITOR_REF",Xo="FOCUS_WIDGET_ANNOTATION",Jo="SET_ON_COMMENT_CREATION_START_CALLBACK",Qo="INVALIDATE_PAGE_KEYS",er="CONTENT_EDITOR_ACTIVE_TEXT_BLOCK_DELETE",tr="CHANGE_SCROLL_STATE",nr="SET_CUSTOM_FONTS_READABLE_NAMES",or="ENABLE_MEASUREMENT_MODE",rr="DISABLE_MEASUREMENT_MODE",ir="SHOW_MEASUREMENT_SETTINGS",ar="HIDE_MEASUREMENT_SETTINGS",sr="SET_SECONDARY_MEASUREMENT_UNIT",lr="SET_ACTIVE_MEASUREMENT_SCALE",cr="SET_CALIBRATION_MODE"},91859:(e,t,n)=>{"use strict";n.d(t,{$P:()=>Z,Bs:()=>L,Dx:()=>C,Fg:()=>i,GI:()=>r,Hr:()=>x,I_:()=>D,J8:()=>I,Kk:()=>E,M5:()=>M,QS:()=>m,Qc:()=>q,Qq:()=>o,Qr:()=>R,RI:()=>s,SP:()=>O,Sk:()=>S,St:()=>G,Ui:()=>_,V4:()=>k,W3:()=>$,XU:()=>f,XZ:()=>v,YJ:()=>w,_2:()=>j,c1:()=>P,cY:()=>h,g3:()=>c,gZ:()=>b,h8:()=>p,i1:()=>W,j1:()=>u,mM:()=>K,nJ:()=>N,oW:()=>F,pt:()=>H,rB:()=>U,re:()=>A,rm:()=>l,sP:()=>V,wK:()=>y,xD:()=>d,y$:()=>a,zA:()=>B,zT:()=>z,zh:()=>g,zk:()=>T});const o=1200,r=1070,i=768,a=480,s=32768,l=18,c=50,u=a,d=a,p=320,f=250,h=.5,m=10,g=1.25,v=5,y=30,b=2,w=20,S=0,E=20,P=5,x=1,D=512,C=5,k=1.25,A="PSPDFKit-Root",O=32,T=32,I=5,F=0,M=1,_=96/72,R=5e3,N={LOW:75/72,MEDIUM:150/72,HIGH:300/72},L=2/3,B=595,j=842,z=50,K=96,Z=2*K,U=300,V=1e3,G=4.25,W=2,q=10,H=16383,$=4},75237:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>d,ZP:()=>g,hD:()=>m});var o=n(84121),r=n(35369),i=n(83634),a=n(15973),s=n(24871);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;tObject.keys(e).filter((t=>!f.includes(t)&&null!=e[t])).reduce(((t,n)=>(t[n]=e[n],t)),{});for(const e in d){const t=u[e];Object.getPrototypeOf(t)===a.UX?d[e]=h(c(c({},a.UX.defaultValues),t.defaultValues)):Object.getPrototypeOf(t)===a.On?d[e]=h(c(c({},a.On.defaultValues),t.defaultValues)):d[e]=h(t.defaultValues)}for(const e in p){const t=u[e];Object.getPrototypeOf(t)===a.UX?p[e]=h(c(c(c({},a.UX.defaultValues),t.defaultValues),p[e])):Object.getPrototypeOf(t)===a.On?p[e]=h(c(c(c({},a.On.defaultValues),t.defaultValues),p[e])):p[e]=h(c(c({},t.defaultValues),p[e]))}const m=(0,r.D5)([[a.FV,"highlight"],[a.xu,"underline"],[a.hL,"squiggle"],[a.R9,"strikeout"]]),g=(0,r.D5)(c(c({},d),p))},54097:(e,t,n)=>{"use strict";n.d(t,{J:()=>i,Z:()=>a});var o=n(35369),r=n(15973);const i=[r.Xs,r.FV,r.sK,r.Zc,r.o9,r.Qi,r.Hi,r.om,r.b3,r.hL,r.GI,r.R9,r.gd,r.xu,r.x_],a=(0,o.d0)(i)},79941:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(15973);const r=Object.freeze([o.Xs,o.FV,o.sK,o.Zc,o.o9,o.Qi,o.Hi,o.om,o.b3,o.Wk,o.hL,o.GI,o.R9,o.gd,o.x_,o.xu,o.Jn,o.R1].filter(Boolean))},151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(52247);const r=Object.freeze([o.M.DRAW,o.M.IMAGE,o.M.TYPE])},84760:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(39745);const r=Object.freeze([new o.Z({name:"Caveat"}),new o.Z({name:"Pacifico"}),new o.Z({name:"Marck Script"}),new o.Z({name:"Meddon"})])},92457:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>r,_o:()=>i});const o=[{type:"sidebar-thumbnails"},{type:"sidebar-document-outline"},{type:"sidebar-annotations"},{type:"sidebar-bookmarks"},{type:"pager"},{type:"multi-annotations-selection"},{type:"pan"},{type:"zoom-out"},{type:"zoom-in"},{type:"zoom-mode"},{type:"spacer"},{type:"annotate"},{type:"ink"},{type:"highlighter"},{type:"text-highlighter"},{type:"ink-eraser"},{type:"signature"},{type:"image"},{type:"stamp"},{type:"note"},{type:"text"},{type:"callout"},{type:"line"},{type:"link"},{type:"arrow"},{type:"rectangle"},{type:"ellipse"},{type:"polygon"},{type:"cloudy-polygon"},{type:"polyline"},{type:"print"},{type:"document-editor"},{type:"document-crop"},{type:"search"},{type:"export-pdf"},{type:"debug"}],r=(0,n(35369).d0)(o),i=[...o.map((e=>e.type)),"layout-config","marquee-zoom","custom","responsive-group","comment","redact-text-highlighter","redact-rectangle","cloudy-rectangle","dashed-rectangle","cloudy-ellipse","dashed-ellipse","dashed-polygon","document-comparison","measure","undo","redo","form-creator","content-editor","distance","perimeter","rectangle-area","ellipse-area","polygon-area"]},28890:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(67366),r=n(25915);const i=(0,o.$j)((function(e,t){var n;let{restoreOnClose:o=!0}=t;const r=null===(n=e.frameWindow)||void 0===n?void 0:n.document;return{restoreOnCloseElement:o?null!=r&&r.hasFocus()?r.activeElement&&"function"==typeof r.activeElement.focus?r.activeElement:r.body:document.activeElement:null}}))(r.u_)},58924:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(67366),r=n(84121),i=n(67294);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}class s extends i.Component{constructor(){super(...arguments),(0,r.Z)(this,"elRef",i.createRef()),(0,r.Z)(this,"state",{styles:this._calculatePositionStyles()})}_calculatePositionStyles(){var e;const{referenceElement:t,horizontalAlignment:n}=this.props,{containerRect:o,offsets:r}=this.props,i=null!==(e=null==r?void 0:r.top)&&void 0!==e?e:0,a=this.elRef.current,s=t?t.getBoundingClientRect():null,l=a?a.getBoundingClientRect():null;let c=s?s.top+s.height:0;if(null!==l&&null!==s&&s.top+s.height+l.height>o.height&&0!==s.top&&(c=Math.max(0,s.top-l.height)),!a||!s)return{top:c+i,right:"auto",left:"auto"};if(a.offsetWidth>o.width)return{top:c+i,right:0,left:0};const u=this.props.isRTL?"right":"left",d=this.props.isRTL?"left":"right";let p="left"===u?s.left:s.right;switch(n){case"center":p-=(a.offsetWidth-s.width)/2;break;case"end":p=p-a.offsetWidth+s.width}return p<0?{top:c+i,[u]:0,[d]:"auto"}:p+a.offsetWidth>o.width?{top:c+i,[d]:0,[u]:"auto"}:"auto"===n&&p>o.width/2?{top:c+i,[u]:p-a.offsetWidth+s.width,[d]:"auto"}:{top:c+i,[u]:p,[d]:"auto"}}componentDidUpdate(e){(e.containerRect!==this.props.containerRect||this.props.measure&&!e.measure)&&this.setState({styles:this._calculatePositionStyles()})}componentDidMount(){this.setState({styles:this._calculatePositionStyles()})}render(){const{children:e}=this.props,t=function(e){for(var t=1;t({containerRect:e.containerRect})))(s)},76192:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});const o={IMMEDIATE:"IMMEDIATE",INTELLIGENT:"INTELLIGENT",DISABLED:"DISABLED"}},45395:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});const o={solid:"solid",dashed:"dashed",beveled:"beveled",inset:"inset",underline:"underline"}},87222:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});const o={SIDEBAR:"SIDEBAR",PANE:"PANE"}},89849:(e,t,n)=>{"use strict";n.d(t,{F:()=>o});const o={PASSWORD_REQUIRED:"PASSWORD_REQUIRED",CONNECTING:"CONNECTING",CONNECTED:"CONNECTED",CONNECTION_FAILED:"CONNECTION_FAILED"}},55024:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});const o={documentA:"documentA",documentB:"documentB",result:"result"}},9946:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});const o={USE_OPEN_DOCUMENT:"USE_OPEN_DOCUMENT",USE_FILE_DIALOG:"USE_FILE_DIALOG"}},52247:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});const o={DRAW:"DRAW",IMAGE:"IMAGE",TYPE:"TYPE"}},67699:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});const o={DEFAULT:"DEFAULT",EXTERNAL:"EXTERNAL",HISTORY:"HISTORY"}},52842:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});const o={POINT:"POINT",STROKE:"STROKE"}},20792:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={TEXT_HIGHLIGHTER:"TEXT_HIGHLIGHTER",INK:"INK",INK_SIGNATURE:"INK_SIGNATURE",SIGNATURE:"SIGNATURE",STAMP_PICKER:"STAMP_PICKER",STAMP_CUSTOM:"STAMP_CUSTOM",SHAPE_LINE:"SHAPE_LINE",SHAPE_RECTANGLE:"SHAPE_RECTANGLE",SHAPE_ELLIPSE:"SHAPE_ELLIPSE",SHAPE_POLYGON:"SHAPE_POLYGON",SHAPE_POLYLINE:"SHAPE_POLYLINE",INK_ERASER:"INK_ERASER",NOTE:"NOTE",COMMENT_MARKER:"COMMENT_MARKER",TEXT:"TEXT",CALLOUT:"CALLOUT",PAN:"PAN",SEARCH:"SEARCH",DOCUMENT_EDITOR:"DOCUMENT_EDITOR",MARQUEE_ZOOM:"MARQUEE_ZOOM",REDACT_TEXT_HIGHLIGHTER:"REDACT_TEXT_HIGHLIGHTER",REDACT_SHAPE_RECTANGLE:"REDACT_SHAPE_RECTANGLE",DOCUMENT_CROP:"DOCUMENT_CROP",BUTTON_WIDGET:"BUTTON_WIDGET",TEXT_WIDGET:"TEXT_WIDGET",RADIO_BUTTON_WIDGET:"RADIO_BUTTON_WIDGET",CHECKBOX_WIDGET:"CHECKBOX_WIDGET",COMBO_BOX_WIDGET:"COMBO_BOX_WIDGET",LIST_BOX_WIDGET:"LIST_BOX_WIDGET",SIGNATURE_WIDGET:"SIGNATURE_WIDGET",DATE_WIDGET:"DATE_WIDGET",FORM_CREATOR:"FORM_CREATOR",LINK:"LINK",DISTANCE:"DISTANCE",PERIMETER:"PERIMETER",RECTANGLE_AREA:"RECTANGLE_AREA",ELLIPSE_AREA:"ELLIPSE_AREA",POLYGON_AREA:"POLYGON_AREA",CONTENT_EDITOR:"CONTENT_EDITOR",MULTI_ANNOTATIONS_SELECTION:"MULTI_ANNOTATIONS_SELECTION",MEASUREMENT:"MEASUREMENT",MEASUREMENT_SETTINGS:"MEASUREMENT_SETTINGS"}},77973:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});const o={SINGLE:"SINGLE",DOUBLE:"DOUBLE",AUTO:"AUTO"}},60132:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});const o={ANNOTATION_EDITING:"annotation_editing",FORMS:"acro_forms",DIGITAL_SIGNATURES:"digital_signatures",DOCUMENT_COMPARISON:"comparison",DOCUMENT_EDITING:"document_editing",WEB_VIEWER:"web:viewer",WEB_ANNOTATION_EDITING:"web:annotation_editing",INSTANT:"instant",SERVER_OPT_OUT_ANALYTICS:"server:disable-analytics",UI:"user_interface",TEXT_SELECTION:"text_selection",ELECTRON:"web:electron",FORM_DESIGNER:"editable_forms",COMMENTS:"comments",REDACTIONS:"redaction",ELECTRONIC_SIGNATURES:"electronic_signatures",CONTENT_EDITING:"content_editing",MEASUREMENT_TOOLS:"measurement_tools"}},24871:(e,t,n)=>{"use strict";n.d(t,{a:()=>r,u:()=>o});const o={square:"square",circle:"circle",diamond:"diamond",openArrow:"openArrow",closedArrow:"closedArrow",butt:"butt",reverseOpenArrow:"reverseOpenArrow",reverseClosedArrow:"reverseClosedArrow",slash:"slash"},r=Object.values(o)},4132:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});const o={WHOLE:"whole",ONE:"oneDp",TWO:"twoDp",THREE:"threeDp",FOUR:"fourDp",HALVES:"1/2",QUARTERS:"1/4",EIGHTHS:"1/8",SIXTEENTHS:"1/16"}},36489:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});const o={INCHES:"in",MILLIMETERS:"mm",CENTIMETERS:"cm",POINTS:"pt"}},79827:(e,t,n)=>{"use strict";n.d(t,{K:()=>o});const o={INCHES:"in",MILLIMETERS:"mm",CENTIMETERS:"cm",POINTS:"pt",FEET:"ft",METERS:"m",YARDS:"yd",KILOMETERS:"km",MILES:"mi"}},56966:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});const o={FORM_DESIGNER_ERROR:"FORM_DESIGNER_ERROR",MEASUREMENT_ERROR:"MEASUREMENT_ERROR"}},18025:(e,t,n)=>{"use strict";n.d(t,{V9:()=>i,Y4:()=>r,Zi:()=>o});const o={COMMENT:"COMMENT",RIGHT_POINTER:"RIGHT_POINTER",RIGHT_ARROW:"RIGHT_ARROW",CHECK:"CHECK",CIRCLE:"CIRCLE",CROSS:"CROSS",INSERT:"INSERT",NEW_PARAGRAPH:"NEW_PARAGRAPH",NOTE:"NOTE",PARAGRAPH:"PARAGRAPH",HELP:"HELP",STAR:"STAR",KEY:"KEY"},r={[o.COMMENT]:"comment",[o.RIGHT_POINTER]:"rightPointer",[o.RIGHT_ARROW]:"rightArrow",[o.CHECK]:"check",[o.CIRCLE]:"circle",[o.CROSS]:"cross",[o.INSERT]:"insert",[o.NEW_PARAGRAPH]:"newParagraph",[o.NOTE]:"note",[o.PARAGRAPH]:"paragraph",[o.HELP]:"help",[o.STAR]:"star",[o.KEY]:"key"},i=Object.keys(r).reduce(((e,t)=>(e[r[t]]=t,e)),{})},63632:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});const o={PDFA_1A:"pdfa-1a",PDFA_1B:"pdfa-1b",PDFA_2A:"pdfa-2a",PDFA_2U:"pdfa-2u",PDFA_2B:"pdfa-2b",PDFA_3A:"pdfa-3a",PDFA_3U:"pdfa-3u",PDFA_3B:"pdfa-3b",PDFA_4:"pdfa-4",PDFA_4E:"pdfa-4e",PDFA_4F:"pdfa-4f"}},39511:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});const o={DOM:"DOM",EXPORT_PDF:"EXPORT_PDF"}},80440:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});const o={LOW:"LOW",MEDIUM:"MEDIUM",HIGH:"HIGH"}},5038:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});const o={SharePoint:"SharePoint",Salesforce:"Salesforce",Maui_Android:"Maui_Android",Maui_iOS:"Maui_iOS",Maui_MacCatalyst:"Maui_MacCatalyst",Maui_Windows:"Maui_Windows"}},72131:(e,t,n)=>{"use strict";let o;n.d(t,{J:()=>o}),function(e){e.NO="NO",e.VIA_VIEW_STATE="VIA_VIEW_STATE",e.VIA_BACKEND_PERMISSIONS="VIA_BACKEND_PERMISSIONS",e.LICENSE_RESTRICTED="LICENSE_RESTRICTED"}(o||(o={}))},51731:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});const o={TOP:"TOP",BOTTOM:"BOTTOM",LEFT:"LEFT",RIGHT:"RIGHT",TOP_LEFT:"TOP_LEFT",TOP_RIGHT:"TOP_RIGHT",BOTTOM_RIGHT:"BOTTOM_RIGHT",BOTTOM_LEFT:"BOTTOM_LEFT"}},47710:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});const o={CONTINUOUS:"CONTINUOUS",PER_SPREAD:"PER_SPREAD",DISABLED:"DISABLED"}},96617:(e,t,n)=>{"use strict";n.d(t,{S:()=>o});const o={TEXT:"text",PRESET:"preset",REGEX:"regex"}},68382:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});const o={SELECTED:"SELECTED",EDITING:"EDITING"}},64494:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});const o={IF_SIGNED:"IF_SIGNED",HAS_WARNINGS:"HAS_WARNINGS",HAS_ERRORS:"HAS_ERRORS",NEVER:"NEVER"}},19702:(e,t,n)=>{"use strict";n.d(t,{f:()=>o});const o={ANNOTATIONS:"ANNOTATIONS",BOOKMARKS:"BOOKMARKS",DOCUMENT_OUTLINE:"DOCUMENT_OUTLINE",THUMBNAILS:"THUMBNAILS",CUSTOM:"CUSTOM"}},65872:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});const o={START:"START",END:"END"}},37231:(e,t,n)=>{"use strict";n.d(t,{H:()=>o});const o={signatureOnly:"signatureOnly",signatureAndDescription:"signatureAndDescription",descriptionOnly:"descriptionOnly"}},67628:(e,t,n)=>{"use strict";n.d(t,{H:()=>o});const o={ELECTRONIC_SIGNATURES:"electronic_signatures",LEGACY_SIGNATURES:"legacy_signatures",NONE:"none"}},59386:(e,t,n)=>{"use strict";n.d(t,{f:()=>o});const o={ALWAYS:"ALWAYS",NEVER:"NEVER",USING_UI:"USING_UI"}},89e3:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});const o={TOP:"TOP",BOTTOM:"BOTTOM"}},28098:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});const o={AUTO:"AUTO",FIT_TO_WIDTH:"FIT_TO_WIDTH",FIT_TO_VIEWPORT:"FIT_TO_VIEWPORT",CUSTOM:"CUSTOM"}},68258:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>f,sS:()=>p,z5:()=>d});var o=n(80857),r=n(29662),i=n.n(r),a=n(57742),s=n(13997),l=n(53678);const c=(0,o.Z)("I18n"),u=e=>e.split("-")[0],d=e=>{let t=e;return i().includes(t)||(t=u(t),c(i().includes(t),`The "${t}" locale is not supported. Available locales are: ${i().join(", ")}. You can also add "${t}" as a custom one with PSPDFKit.I18n.locales.push('${t}')`)),t};async function p(e){await(0,a.EV)(e),await(0,a.wP)(u(e))}const f={locales:i(),messages:a.ZP,preloadLocalizationData:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof t.baseUrl&&(0,l.Pn)(t.baseUrl);const o=t.baseUrl||(0,s.SV)(window.document);n.p=o;const r=d(e);await p(r)}}},29662:e=>{e.exports=["cs","cy","da","de","el","en-GB","en","es","fi","fr-CA","fr","hr","id","it","ja","ko","ms","nb-NO","nl","pl","pt-PT","pt","ru","sk","sl","sv","th","tr","uk","zh-Hans","zh-Hant"]},57742:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l,wP:()=>u,EV:()=>c});var o=n(80857),r=n(37756);const i={cs:()=>n.e(3005).then(n.t.bind(n,12282,23)),cy:()=>n.e(7050).then(n.t.bind(n,26873,23)),da:()=>n.e(752).then(n.t.bind(n,5407,23)),de:()=>n.e(8869).then(n.t.bind(n,60333,23)),el:()=>n.e(1882).then(n.t.bind(n,80056,23)),en:()=>n.e(5014).then(n.t.bind(n,32778,23)),es:()=>n.e(1252).then(n.t.bind(n,53802,23)),fi:()=>n.e(5528).then(n.t.bind(n,15857,23)),fr:()=>n.e(1145).then(n.t.bind(n,75828,23)),hr:()=>n.e(9677).then(n.t.bind(n,34029,23)),id:()=>n.e(5192).then(n.t.bind(n,32419,23)),it:()=>n.e(3424).then(n.t.bind(n,81998,23)),ja:()=>n.e(4728).then(n.t.bind(n,55389,23)),ko:()=>n.e(1089).then(n.t.bind(n,97301,23)),ms:()=>n.e(1518).then(n.t.bind(n,55367,23)),nb:()=>n.e(2279).then(n.t.bind(n,93673,23)),nl:()=>n.e(9486).then(n.t.bind(n,80953,23)),pl:()=>n.e(6523).then(n.t.bind(n,12533,23)),pt:()=>n.e(4932).then(n.t.bind(n,28708,23)),ru:()=>n.e(1385).then(n.t.bind(n,63409,23)),sk:()=>n.e(1077).then(n.t.bind(n,87042,23)),sl:()=>n.e(1277).then(n.t.bind(n,13367,23)),sv:()=>n.e(2727).then(n.t.bind(n,64520,23)),th:()=>n.e(1063).then(n.t.bind(n,69909,23)),tr:()=>n.e(9384).then(n.t.bind(n,99102,23)),uk:()=>n.e(1843).then(n.t.bind(n,32058,23)),zh:()=>n.e(4072).then(n.t.bind(n,2725,23))},a=(0,o.Z)("I18n"),s={},l=s;async function c(e){if(!(e in s))try{const t=await r.o[e]();s[e]=t.default}catch(t){a(!1,`Cannot find translations for "${e}". Please retry or add them manually to PSPDFKit.I18n.messages["${e}"]`)}return s[e]}async function u(e){if(i[e])try{await i[e]()}catch(t){a(!1,`Cannot find locale data for "${e}". Please retry or contact support for further assistance.`)}}},37756:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});const o={cs:()=>n.e(3579).then(n.t.bind(n,46984,19)),cy:()=>n.e(7578).then(n.t.bind(n,50706,19)),da:()=>n.e(1139).then(n.t.bind(n,32156,19)),de:()=>n.e(1009).then(n.t.bind(n,47875,19)),el:()=>n.e(1323).then(n.t.bind(n,87908,19)),"en-GB":()=>n.e(6045).then(n.t.bind(n,29207,19)),en:()=>n.e(1874).then(n.t.bind(n,70840,19)),es:()=>n.e(473).then(n.t.bind(n,59657,19)),fi:()=>n.e(9390).then(n.t.bind(n,5317,19)),"fr-CA":()=>n.e(2916).then(n.t.bind(n,76215,19)),fr:()=>n.e(3360).then(n.t.bind(n,28435,19)),hr:()=>n.e(157).then(n.t.bind(n,24733,19)),id:()=>n.e(9726).then(n.t.bind(n,33615,19)),it:()=>n.e(8839).then(n.t.bind(n,24068,19)),ja:()=>n.e(3463).then(n.t.bind(n,87854,19)),ko:()=>n.e(1168).then(n.t.bind(n,23980,19)),ms:()=>n.e(1391).then(n.t.bind(n,48853,19)),"nb-NO":()=>n.e(4966).then(n.t.bind(n,16844,19)),nl:()=>n.e(5677).then(n.t.bind(n,14314,19)),pl:()=>n.e(4899).then(n.t.bind(n,16365,19)),"pt-PT":()=>n.e(5431).then(n.t.bind(n,55910,19)),pt:()=>n.e(517).then(n.t.bind(n,7638,19)),ru:()=>n.e(8057).then(n.t.bind(n,21652,19)),sk:()=>n.e(9971).then(n.t.bind(n,57298,19)),sl:()=>n.e(5595).then(n.t.bind(n,33943,19)),sv:()=>n.e(6530).then(n.t.bind(n,99649,19)),th:()=>n.e(5666).then(n.t.bind(n,81446,19)),tr:()=>n.e(407).then(n.t.bind(n,18141,19)),uk:()=>n.e(3095).then(n.t.bind(n,76911,19)),"zh-Hans":()=>n.e(6678).then(n.t.bind(n,47224,19)),"zh-Hant":()=>n.e(7579).then(n.t.bind(n,58372,19))}},3479:(e,t,n)=>{e.exports=n(74855).default},31835:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});class o{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.events=e,this.listeners={}}on(e,t){if("function"!=typeof t)throw new TypeError("Listener must be a function");if(!this.supportsEvent(e))throw new TypeError(`Event '${e}' is not supported. Only supporting ${this.events.join(", ")}`);this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)}off(e,t){if("function"!=typeof t)throw new TypeError("Listener must be a function");if(!this.supportsEvent(e))throw new TypeError(`Event '${e}' is not supported. Only supporting ${this.events.join(", ")}`);const n=this.listeners[e]||[];n.forEach(((e,o)=>{e===t&&n.splice(o,1)})),0===n.length&&delete this.listeners[e]}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o{e.call(null,...n)}))}supportsEvent(e){return 0===this.events.length||-1!==this.events.indexOf(e)}}},8503:(e,t,n)=>{"use strict";n.d(t,{c:()=>c});var o=n(84121),r=n(35369),i=n(3534),a=n(76192),s=n(96846);class l{constructor(e,t){(0,o.Z)(this,"localFormFieldsMapping",(0,r.D5)()),(0,o.Z)(this,"onCreate",(e=>{this.localFormFieldsMapping=this.localFormFieldsMapping.set(e.id,e.name)})),(0,o.Z)(this,"onUpdate",(e=>{this.onCreate(e)})),(0,o.Z)(this,"onDelete",(e=>{this.localFormFieldsMapping=this.localFormFieldsMapping.delete(e.id)})),this.formFieldProvider=e,this.localFormFieldCallbacks=t}createBackendObject(e){return this.formFieldProvider.createFormField(e)}updateBackendObject(e){return this.formFieldProvider.updateFormField(e)}deleteBackendObject(e){return this.formFieldProvider.deleteFormField(e)}createStoreObjects(e){this.localFormFieldsMapping=this.localFormFieldsMapping.withMutations((t=>{e.forEach((e=>{t.set(e.id,e.name)}))})),this.localFormFieldCallbacks.createFormFields(e)}updateStoreObjects(e){this.localFormFieldsMapping=this.localFormFieldsMapping.withMutations((t=>{e.forEach((e=>{t.set(e.id,e.name)}))})),this.localFormFieldCallbacks.updateFormFields(e)}deleteStoreObjects(e){this.localFormFieldsMapping=this.localFormFieldsMapping.withMutations((t=>{e.forEach((e=>{t.delete(e)}))})),this.localFormFieldCallbacks.deleteFormFields(e)}validateObject(e){if(!e.name||"string"!=typeof e.name||!e.id||"string"!=typeof e.id)return!1;try{return(0,i.Gu)(e),!0}catch(e){return!1}}getObjectById(e){const t=this.localFormFieldsMapping.get(e);return t?this.localFormFieldCallbacks.getFormFieldByName(t):null}getObjectId(e){return e.id}refresh(){this.localFormFieldCallbacks.refreshSignaturesInfo()}syncChanges(){return this.formFieldProvider.syncChanges()}}class c extends s.a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.u.IMMEDIATE,r=arguments.length>3?arguments[3]:void 0;super(new l(e,t),n,r),(0,o.Z)(this,"loadFormFields",function(){let e=null;return async function(){e||(e=this.formFieldProvider.loadFormFields()),await e}}()),this.formFieldProvider=e}}},60797:(e,t,n)=>{"use strict";n.d(t,{D:()=>l,V:()=>s});var o=n(84121),r=n(35369);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t{Object.defineProperty(n,e,{get(){return this.get(e)},set(t){this.set(e,t)}})}))}class l extends((0,r.WV)({})){constructor(e){super(e)}}},55615:(e,t,n)=>{"use strict";n.d(t,{mH:()=>f,ZP:()=>v,il:()=>g});var o=n(84121),r=n(35369),i=n(21614),a=n(50974);function s(e,t){const n=t.record_rev,o=e.stagedRecordsChanges;if((0,a.kG)("number"==typeof n&&n>=0,"Tried to apply changes but the server responded with no `record_rev`"),(0,a.kG)(n>=e.localRecordsRev,"The server revision number is lower than the current one."),n<=e.localRecordsRev)return e;(0,a.kG)("number"==typeof t.previous_record_rev,"The payload must have a `previous_record_rev`"),(0,a.kG)(t.previous_record_rev>=e.localRecordsRev,"The payload's `previous_record_rev` is unknown to us, this means we missed out on changes.");let i=0;const s=e.requiredAttachmentIds;let l=(0,r.l4)(),c=(0,r.aV)();const u=[],d=e.localRecordsContents.withMutations((e=>{let n;n={accepted:{created:t=>{let{id:n,permissions:r,group:s,isAnonymous:l}=t;(0,a.kG)(!e.has(n),"There's already a record with the newly created record id");const c=o.find((e=>e.id===n));if(!c)return;c.resolve(null);const{content:u}=c;e.set(n,{content:u,permissions:r,group:s,isAnonymous:l}),i++},updated:t=>{let{id:n,permissions:r,group:s,isAnonymous:l}=t;(0,a.kG)(e.has(n),"Tried to update a record that is not present");const c=o.find((e=>e.id===n));if(!c)return;c.resolve(!0);const{content:u}=c;e.set(n,{content:u,permissions:r,group:s,isAnonymous:l}),i++},deleted:t=>{(0,a.kG)(e.has(t),"Tried to delete a record that is not present");const n=o.find((e=>e.id===t));n&&(n.resolve(!0),e.delete(t),i++)}},rejected:(e,t)=>{let[n,r]=t;const d=o.find((e=>e.id===n));if(d)switch(i++,r){case"conflict":d.reject(new a.p2("The server rejected the change due to a conflict")),"created"!==e&&u.push(n);break;case"attachment_not_found":{const e=Object.keys(d.attachments),t=!s.intersect(e).isEmpty();if(d.attachments&&!t&&Object.keys(d.attachments).length>0){l=l.union(Object.keys(d.attachments)),c=c.push(d);break}}default:d.reject(new a.p2("The server rejected the change")),"created"!==e&&u.push(n)}},changes:{created:t=>{(0,a.kG)(!e.has(t.id),"The change set tried to add a record that is already present");const{content:n,permissions:o,group:r,isAnonymous:i}=t;e.set(t.id,{content:n,permissions:o,group:r,isAnonymous:i})},updated:t=>{(0,a.kG)(e.has(t.id),`The change set tried to update a record with id ${t.id} that was not present`);const{content:n,permissions:o,group:r,isAnonymous:i}=t;e.set(t.id,{content:n,permissions:o,group:r,isAnonymous:i}),u.push(t.id)},deleted:t=>{(0,a.kG)(e.has(t),`The change set you tried to delete a record with id ${t} that was not present`),e.delete(t),u.push(t)}}},t.accepted.created.forEach(n.accepted.created),t.accepted.updated.forEach(n.accepted.updated),t.accepted.deleted.forEach(n.accepted.deleted),["created","updated","deleted"].forEach((e=>{Object.entries(t.rejected[e]).forEach((t=>{let o=t[1];"conflict"!==o&&"attachment_not_found"!==o&&(o=null),n.rejected(e,[t[0],o])}))})),t.changes.created.forEach(n.changes.created),t.changes.updated.forEach(n.changes.updated),t.changes.deleted.forEach(n.changes.deleted)}));(0,a.kG)(i===o.size,"Some changes were not processed by the server");const p=function(e,t){const n=e.localRecordsChanges.filter((e=>"created"===e.type||!t.includes(e.id)||(e.reject(new a.p2("Request was cleared because a newer revision arrived.")),!1)));return e.set("localRecordsChanges",n)}(e,(0,r.aV)(u));return p.withMutations((e=>e.set("requiredAttachmentIds",l).update("localRecordsChanges",(e=>e.merge(c))).set("stagedRecordsChanges",(0,r.aV)()).set("localRecordsContents",d).set("localRecordsRev",n)))}class l{constructor(e,t){(0,o.Z)(this,"_currentDelay",0),this._initialDelay=e,this._delayGrowthCap=t,this._currentDelay=e}schedule(e){const t=this._currentDelay;this.cancel(),te()),t)}cancel(){this._timeout&&(clearTimeout(this._timeout),this._timeout=null)}reset(){this._currentDelay=this._initialDelay,this.cancel()}}var c=n(23413),u=n(89551);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){for(var t=1;t{e._currentRequest&&!e._currentRequestHasChanges&&(e._abortCurrentRequest(),setTimeout((()=>e.nextCycle().catch(console.log)),0))}))}class v{constructor(e){let{getState:t,setState:n,onChanges:r,onAcceptedRecords:i,longPollingTimeout:a=f,backoffTimer:s=new l(1e3,6e4),RequestClass:u=c.Z}=e;(0,o.Z)(this,"onDocumentHandleConflictCallback",(()=>{})),(0,o.Z)(this,"_lastAbortedRequest",null),(0,o.Z)(this,"_handleBeforeUnload",(()=>{this._abortCurrentRequest()})),this._currentRequestHasChanges=!1,this._isDestroyed=!1,this.getState=t,this.setState=n,this.onChangesCallback=r||(()=>{}),this.onAcceptedRecordsCallback=i||(()=>{}),this.RequestClass=u,this._longPollingTimeout=a,this._backoffTimer=s,window.addEventListener("beforeunload",this._handleBeforeUnload),m.add(this)}async nextCycle(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._longPollingTimeout;if(this._isDestroyed)return;if(this._currentRequest&&this._currentRequestHasChanges)return(0,a.kG)(this._currentRequestPromise,"Expected to have request running but no one was ever made."),this._currentRequestPromise;this._currentRequest&&(this._abortCurrentRequest(),this._backoffTimer&&this._backoffTimer.cancel());const o=this.getState(),l=o.localRecordsChanges;this.setState(o.set("localRecordsChanges",(0,r.aV)()).set("stagedRecordsChanges",l));const c=this._createSyncRequest(),d=!l.isEmpty(),f=new Promise(((n,o)=>{e=n,t=o})),m=(0,i.v4)(),g={request_id:m,record_rev:o.localRecordsRev,changes:{created:l.filter((e=>"created"===e.type)).map((e=>{let{id:t,content:n,group:o,isAnonymous:r}=e;return p(p(p({id:t},"boolean"==typeof r&&{isAnonymous:r}),n&&{content:n}),o&&{group:o})})).toJS(),updated:l.filter((e=>"updated"===e.type)).map((e=>{let{id:t,content:n,group:o,isAnonymous:r}=e;return p(p(p({id:t},"boolean"==typeof r&&{isAnonymous:r}),n&&{content:n}),o&&{group:o})})).toJS(),deleted:l.filter((e=>"deleted"===e.type)).map((e=>e.id)).toJS()},timeout:d?0:n},v=o.requiredAttachmentIds.isEmpty()?g:function(e,t){const n=new FormData;return n.append("sync",JSON.stringify(e)),t.requiredAttachmentIds.forEach((e=>{var o;n.append(e,null===(o=t.localRecordsChanges.find((t=>t.attachments.hasOwnProperty(e))))||void 0===o?void 0:o.attachments[e])})),n}(g,o);return c.request({method:"POST",data:v}).then((t=>{void 0!==t.request_id&&(0,a.kG)(t.request_id===m,"The response doesn't match the client request ID"),(0,a.kG)(c!==this._lastAbortedRequest,"A manually aborted request still managed to resolve."),(0,a.kG)(c===this._currentRequest,"Expected the resolved request to be the latest created request."),(0,a.kG)(!this._isDestroyed,"The instance is destroyed yet the request managed to resolve.");const n=this.getState(),o=s(n,p(p({},t),{},{previous_record_rev:n.localRecordsRev}));this.setState(o),this._currentRequestHasChanges=!1,this._currentRequest=null,h-=1,e();try{t.record_rev>n.localRecordsRev&&(this.onAcceptedRecordsCallback(t.accepted),this.onChangesCallback(t.changes)),this._scheduleNextCycle(!1,(()=>!o.localRecordsChanges.isEmpty()))}catch(e){throw h+=1,e}})).catch((e=>{if("Outdated layer handle"===e.message&&!this._isDestroyed)return this.onDocumentHandleConflictCallback(),this.destroy(),t();c===this._lastAbortedRequest?t(new a.p2("A manually aborted request still managed to reject.")):c!==this._currentRequest?t(new a.p2("Expected the reject request to be the latest created request.")):this._isDestroyed?t(new a.p2("The instance is destroyed yet the request managed to reject.")):t(new a.p2("Pushing changes failed"+(e&&e.message?`: ${e.message}`:"")));const n=(0,u.n)({oldChanges:l,newChanges:this.getState().localRecordsChanges});this.setState(o.set("localRecordsChanges",n).set("stagedRecordsChanges",(0,r.aV)())),this._currentRequestHasChanges=!1,this._currentRequest=null,h-=1,this._scheduleNextCycle(!0)})),h+=1,h>3&&(0,a.ZK)(`PSPDFKit: detected ${h} open sync requests. This might be due to multiple PSPDFKit for Web instances running in parallel, did you forget to \`unload\` any of them? Due to the browser limit of maximum number of default simultaneous persistent connections per server, this might cause subsequent requests to be queued and processed later which might result in a slowdown for your app.`),this._currentRequest=c,this._currentRequestHasChanges=d,this._currentRequestPromise=f,f}setOnDocumentHandleConflictCallback(e){this.onDocumentHandleConflictCallback=e}destroy(){this._abortCurrentRequest(),window.removeEventListener("beforeunload",this._handleBeforeUnload),this._isDestroyed=!0,m.delete(this)}log(e){(0,a.cM)(e)}_scheduleNextCycle(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!0;const n=()=>{this.nextCycle().catch(this.log)};e?this._backoffTimer.schedule(n):(this._backoffTimer.reset(),(this._longPollingTimeout>0||t())&&n())}_createSyncRequest(){const{serverURL:e,authPayload:t}=this.getState().requestInfo;return(0,a.kG)("string"==typeof e,"Cannot call request without serverURL"),(0,a.kG)(t&&"string"==typeof t.auth_token,"Cannot call request without authPayload"),new this.RequestClass(e,t.auth_token)}_abortCurrentRequest(){this._currentRequest&&(h-=1,this._lastAbortedRequest=this._currentRequest,this._currentRequest.abort(),this._currentRequest=null)}}},89551:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});var o=n(50974);function r(){let{oldChanges:e,newChanges:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e;return t.forEach((e=>{n=i({oldChanges:n,newChange:e})})),n}function i(){let{oldChanges:e,newChange:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t,r=e.filter((e=>{if(e.id===t.id){switch(t.type){case"updated":if("created"===e.type){n=a(e,t.set("type","created"));break}if("updated"===e.type){n=a(e,t);break}case"deleted":if("created"===e.type){e.resolve(),t.resolve(),n=null;break}if("updated"===e.type){n=a(e,t);break}default:e.reject(new o.p2("Request was cleared because a more recent update was queued."))}return!1}return!0}));return n&&(r=r.push(n)),r}function a(e,t){const n=e.resolve,o=t.resolve,r=e.reject,i=t.reject;return t.set("resolve",(e=>{n(e),o(e)})).set("reject",(e=>{r(e),i(e)}))}},71652:(e,t,n)=>{"use strict";n.d(t,{V:()=>r,h:()=>i});var o=n(50974);function r(e,t){let n;return n=e instanceof Error?e:new Error(e),Object.setPrototypeOf(n,r.prototype),n.reason=t,n}function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new r(n?`Some changes could not be ${t?"synced":"saved"} to backend: ${n}`:`Some changes could not be ${t?"synced":"saved"} to backend.`,e)}r.prototype=Object.create(o.p2.prototype,{name:{value:"PSPDFKitSaveError",enumerable:!1}})},83253:(e,t,n)=>{"use strict";n.d(t,{y:()=>o,z:()=>r});const o=1,r=2},34710:(e,t,n)=>{"use strict";n.d(t,{f:()=>s});var o=n(84121),r=n(35369),i=n(50974),a=n(88804);class s{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4?arguments[4]:void 0;if(this.examples=t,this.customStyles=n,this.document=a?a.ownerDocument:e,this.wrapper=e.createElement("div"),this.wrapper.setAttribute("aria-hidden","true"),this.wrapper.className=o,this._setStyles(this.wrapper,Object.assign({},s.defaultWrapperStyles,n)),t instanceof r.aV)t.forEach((t=>{const n="string"==typeof t?t:"",o=e.createElement("span");o.setAttribute("aria-hidden","true"),o.style.display="inline-block",o.style.whiteSpace="pre-wrap",o.innerText=n,this.wrapper.appendChild(o)}));else{const e="string"==typeof t?t:"";this.wrapper.innerHTML=e}const l=a||this.document.documentElement;(0,i.kG)(l,"documentElement must not be null"),l.appendChild(this.wrapper)}measure(){const e=a.UL.fromClientRect(this.wrapper.getBoundingClientRect()),t=e.getLocation().scale(-1);return this.examples instanceof r.aV?this.examples.map(((e,n)=>{const o=this.wrapper.childNodes[n];return a.UL.fromClientRect(o.getBoundingClientRect()).translate(t)})):(0,r.aV)([e.translate(t)])}remove(){this.wrapper.parentNode&&this.wrapper.parentNode.removeChild(this.wrapper),this.wrapper=null,this.examples=null}_setStyles(e,t){for(const n in t)e.style[n]=t[n]}}(0,o.Z)(s,"defaultWrapperStyles",Object.freeze({maxWidth:"none",display:"inline-block",position:"absolute",height:"auto",width:"auto",margin:"0",padding:"0",whiteSpace:"nowrap",top:"-10000px",left:"-10000px",fontSize:"80px",fontWeight:"normal"}))},60619:(e,t,n)=>{"use strict";n.d(t,{GA:()=>O,Nk:()=>A,oD:()=>k});var o=n(50974),r=n(35369),i=n(67366),a=n(15973),s=n(82481),l=n(18146),c=n(80857),u=n(25797),d=n(95651),p=n(69939),f=n(17746),h=n(33754),m=n(68250),g=n(55909),v=n(19815),y=n(59780),b=n(10284),w=n(22571),S=n(45395),E=n(51269),P=n(60132);const x=(0,c.Z)("Annotations"),D="The API you're trying to use requires a annotation editing license. Annotation Editing is a component of PSPDFKit for Web and thus sold separately.\nhttps://pspdfkit.com/guides/web/current/annotations/introduction-to-annotations/",C="WidgetAnnotation can only be modified if you are using Standalone setup or with Instant turned on. If you are using server backed setup, make sure `instant` is set to `true` in configuration.",k="The API you're trying to use requires a measurement license. Measurement is a component of PSPDFKit for Web and sold separately.";class A extends m.I{constructor(e,t){super(t().annotationManager),this.dispatch=e,this.getState=t}async create(e,t){const n=this.getState(),r=e.map((e=>{T(n,e,"create");const r=e.id;if("string"==typeof r&&x(!n.annotations.has(r),`Annotation id (${r}) is already used.`),e instanceof a.x_&&t){O(n,e)||x(t.some((t=>t instanceof y.Wi&&t.name===e.formFieldName)),`Widget orphan: The widget annotation can't be created because no form field was found with the name '${e.formFieldName}'. Please ensure that you create the corresponding form field together with the widget via instance.create([widget, formField]).`)}const{annotationCreatorName:i,annotationCreatorNameReadOnly:s}=n;if(e.creatorName&&e.creatorName!==i&&s)throw new o.p2("The annotation creator name is different from the one set on the JWT.");M(e);let l=e.withMutations((t=>{t.merge((0,d.lx)(n.set("currentItemPreset",null))),["name","id","creatorName","createdAt","updatedAt"].map((n=>e[n]&&t.set(n,e[n])))}));if(e instanceof a.x_&&e.group)throw new o.p2("If you want to define the `group` of this widget annotation, pass it to the corresponding form field instead. Widget annotations inherit the `group` from their form field.");if(l instanceof a.x_&&(l=l.delete("group")),e instanceof a.x_){const n=this.getState;if((null==t?void 0:t.some((t=>t instanceof y.Wi&&t.name===e.formFieldName)))&&!!O(n(),e))throw new o.p2(`The widget annotation can't be created because the form field it'll be created with has a duplicated form field name '${e.formFieldName}'. Please ensure the form field name is unique.`);setTimeout((()=>{x(l instanceof a.x_,"Expected widget annotation");null==O(n(),l)&&(this.dispatch((0,p.hQ)(l)),(0,o.ZK)(`Widget orphan: The widget annotation has been deleted because no form was field found with the name ${l.formFieldName} after 500ms. Please ensure that once instance.create() resolves, a corresponding form field is created with instance.create(). (See: https://pspdfkit.com/api/web/PSPDFKit.Instance.html#create)`))}),500)}return l=_(l),l}));return(0,i.dC)((()=>{r.forEach((e=>{e instanceof Error||(this.dispatch((0,p.$d)(e)),this.autoSave())}))})),(0,E.s)(r)}async update(e){const t=this.getState(),n=e.map((e=>{var n;T(t,e,"update"),x("string"==typeof e.id,"The annotation you passed to Instance.update() has no id.\nPlease use Instance.create() first to assign an id.");const r=t.annotations.get(e.id);x(r,"An annotation that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this annotation was skipped."),x(!(e instanceof a.sK&&e.imageAttachmentId!==(null===(n=t.annotations.get(e.id))||void 0===n?void 0:n.imageAttachmentId)),"Changing the imageAttachmentId of an annotation is not allowed."),x(t.backend),t.backend.isCollaborationPermissionsEnabled()||e.group===r.group&&e.isEditable===r.isEditable&&e.isDeletable===r.isDeletable&&e.canSetGroup===r.canSetGroup||(e=e.set("group",r.group).set("isEditable",r.isEditable).set("isDeletable",r.isDeletable).set("canSetGroup",r.canSetGroup),(0,o.ZK)("`group`, `isEditable`, `isDeletable` and `canSetGroup` are only relevant when Collaboration Permissions are enabled in server backed setup. You do not have it enabled so these values are set to `undefined`."));if(!e.delete("group").equals(r.delete("group"))&&!(0,b.CM)(r,t))throw new o.p2("You don't have permission to update this annotation.");if(e instanceof a.x_&&e.group!==r.group)throw new o.p2("The `group` property of widget annotations is read only and can't be updated directly. If you want to do that you should update the `group` property of the connected form field and this annotation will inherit that `group`.");if(e.group!==r.group&&!(0,b.uW)(r,t))throw new o.p2("You don't have permission to update the `group` of this annotation.");if(e.isEditable!==r.isEditable||e.isDeletable!==r.isDeletable||e.canSetGroup!==r.canSetGroup)throw new o.p2("You can't update `isEditable`, `canSetGroup` or `isDeletable` since they are read only properties which depend on the `group` property.");if(e.creatorName!==r.creatorName&&t.annotationCreatorNameReadOnly)throw new o.p2("You can't change the creatorName of an annotation if it was already set on the JWT.");const i=(e=_(e)).set("updatedAt",new Date);return M(i),i}));return n.length>0&&(0,i.dC)((()=>{n.forEach((e=>{e instanceof Error||this.dispatch((0,p.FG)(e))})),this.autoSave()})),(0,E.s)(n)}async delete(e){const t=this.getState(),n=e.map((e=>{T(t,e,"delete");const n=t.annotations.get(e.id);if(x(n,`No annotation with id ${e.id} found.`),!(0,b.Kd)(n,t))throw new o.p2("You don't have permission to delete this annotation.");return e}));return n.length>0&&(0,i.dC)((()=>{n.forEach((e=>{e instanceof Error||this.dispatch((0,p.hQ)(e))})),this.autoSave()})),(0,E.s)(n)}async ensureChangesSaved(e){x("string"==typeof e.id,"The annotation you passed to Instance.ensureChangesSaved() has no id.\nPlease use Instance.create() first to assign an id.");const{annotationManager:t}=this.getState();return x(t),await t.ensureObjectSaved(e)}async getObjectById(e){x("string"==typeof e,"The supplied id is not a valid id.");const{annotations:t,features:n}=this.getState();return(0,v.Vz)(n)?t.get(e):null}}function O(e,t){const n=e.annotations.get(t.id);let o=t.formFieldName;return null!=n&&null!=n.formFieldName&&(o=n.formFieldName),null!=o?e.formFields.get(o):null}function T(e,t,n){const{features:r}=e;if(!(0,v.Vz)(r)){if(!(t instanceof s.Zc||t instanceof a.sK))throw new o.p2(`Annotations: ${D}`);if(!0===t.isSignature&&!r.includes(P.q.ELECTRONIC_SIGNATURES))throw new o.p2("Annotations: The API you're trying to use requires either an electronic signatures or annotation editing license. Electronic Signatures and Annotation Editing are components of PSPDFKit for Web and thus sold separately.\nhttps://pspdfkit.com/guides/web/current/annotations/introduction-to-annotations/");if(!t.isSignature||!r.includes(P.q.ELECTRONIC_SIGNATURES))throw new o.p2(`Annotations: ${D}`)}let i="";t.id&&(i=` with id "${t.id}"`),t instanceof a.x_&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{features:n}=e;x(n.includes(P.q.FORM_DESIGNER),(t||"")+g.RB),x((0,v.k_)(e.backend),C)}(e,`Tried to ${n} a widget annotation${i}. Widget annotations are part of forms. `),x(!(t instanceof l.Z)||r.includes(P.q.REDACTIONS),`Tried to ${n} a redaction annotation${i}. ${u.q}`),x(!(t instanceof s.UX&&t.isMeasurement())||r.includes(P.q.MEASUREMENT_TOOLS),`Tried to ${n} a measurement annotation${i}. ${k}`)}function I(e){x(e instanceof s.UL,"`boundingBox` must be an instance of PSPDFKit.Geometry.Rect");for(const[t,n]of e)x("number"==typeof n,`invalid value \`${n}\` for \`boundingBox.${t}\``)}function F(e){x(e instanceof s.E9,"`startPoint` and `endPoint` must be instances of PSPDFKit.Geometry.Point");for(const[t,n]of e)x("number"==typeof n,`invalid value \`${n}\` for \`point.${t}\``)}function M(e){if(x(e instanceof a.q6,"Invalid annotation"),x("number"==typeof e.pageIndex,"`pageIndex` must be a number"),x("number"==typeof e.opacity,"`opacity` must be a number"),x("boolean"==typeof e.noView,"`noView` must be a boolean"),x("boolean"==typeof e.noPrint,"`noPrint` must be a boolean"),x("boolean"==typeof e.hidden,"`hidden` must be a boolean"),x(null==e.customData||(0,o.PO)(e.customData)&&(0,o.AK)(e.customData),"`customData` must be a serializable object"),I(e.boundingBox),"text"in e&&null!=e.text&&(x("object"==typeof e.text&&null!==e.text,"`text` is not an object with properties `format` and `value`"),x("plain"===e.text.format||"xhtml"===e.text.format,"Invalid text format"),x("string"==typeof e.text.value,"`text.value` must be a string")),e instanceof s.Qi&&x("plain"===e.text.format,"Invalid text format. Only `plain` format is supported"),e instanceof a.x_){if(e.additionalActions)for(const[t,n]of Object.entries(e.additionalActions))x("onBlur"===t||"onFocus"===t||"onInput"===t||"onFormat"===t||"onChange"===t,`Invalid attribute ${t} in \`additionalActions\`. Supported attributes: \`onBlur\`, \`onFocus\`, \`onInput\`, \`onFormat\`, \`onChange\``),x(n instanceof w.b,`Invalid attribute type of ${t} in \`additionalActions\`. ${t} must be of type \`PSPDFKit.Actions.JavaScriptAction\``);x("string"==typeof e.formFieldName&&e.formFieldName.length>0,"Annotation attribute `formFieldName` must be of type `string` and larger than 0 characters")}if((e instanceof a.x_||e instanceof a.gd)&&(null!=e.isItalic&&x("boolean"==typeof e.isItalic,"Annotation attribute `isItalic` must be of type `boolean`"),null!=e.isBold&&x("boolean"==typeof e.isBold,"Annotation attribute `isBold` must be of type `boolean`"),null!=e.verticalAlign&&x("string"==typeof e.verticalAlign&&("top"===e.verticalAlign||"center"===e.verticalAlign||"bottom"===e.verticalAlign),"Annotation attribute `verticalAlign` must be of type `string` and either `top`, `center`, or `bottom`"),null!=e.horizontalAlign&&x("string"==typeof e.horizontalAlign&&("left"===e.horizontalAlign||"center"===e.horizontalAlign||"right"===e.horizontalAlign),"Annotation attribute `horizontalAlign` must be of type `string` and either `left`, `center`, or `right`"),null!=e.borderWidth&&x("number"==typeof e.borderWidth,"Annotation attribute `borderWidth` must be of type `number`"),null!=e.borderStyle&&x(e.borderStyle===S.N.solid||e.borderStyle===S.N.dashed||e.borderStyle===S.N.beveled||e.borderStyle===S.N.inset||e.borderStyle===S.N.underline,"Annotation attribute `borderStyle` must be one of `solid`, `dashed`, `beveled`, `inset`, `underline`"),null!=e.font&&x("string"==typeof e.font&&e.font.length>0,"Annotation attribute `font` must be of type `string` and larger than 0 characters."),null!=e.fontSize&&x("number"==typeof e.fontSize||"auto"===e.fontSize,"Annotation attribute `fontSize` must be of type `number` or the string `auto`")),["fillColor","backgroundColor","fontColor","color","borderColor","strokeColor"].forEach((t=>{e.has(t)&&null!==e.get(t)&&x(e.get(t)instanceof s.Il,`\`${t}\` must be an instance of PSPDFKit.Color`)})),e.has("lines")&&(x("lines"in e&&e.lines instanceof r.aV,"lines must be an instance of PSPDFKit.Immutable.List"),e.lines.forEach(((e,t)=>{x(e instanceof r.aV,"line must be an instance of PSPDFKit.Immutable.List"),e.some(((e,n)=>{x(e instanceof f.Z,`found an invalid DrawingPoint at index ${n} for line ${t}`)}))}))),e instanceof a.On&&x(e.has("rects"),"Text markup annotations must have `rects`"),e instanceof a.GI&&x(h.pY[e.stampType],`Unknown stamp annotation stampType: \`${e.stampType}\``),e.has("rects")&&(x("rects"in e&&e.rects instanceof r.aV,"rects must be an instance of `PSPDFKit.Immutable.List`"),x(e.rects.size>0,"rects must be contain at least one rect"),e.rects.forEach(I)),e.has("startPoint")&&(x("startPoint"in e&&e.startPoint instanceof s.E9,"startPoint must be an instance of `PSPDFKit.Immutable.Point`"),F(e.startPoint)),e.has("endPoint")&&(x("endPoint"in e&&e.endPoint instanceof s.E9,"endPoint must be an instance of `PSPDFKit.Immutable.Point`"),F(e.endPoint)),e.has("rotation")){const t=e.rotation;e instanceof a.x_?x(0===t||90===t||180===t||270===t,"`rotation` must be of type `number` and one of 0, 90, 180, or 270."):(e instanceof a.gd||e instanceof a.GI||e instanceof a.sK)&&x(Math.abs(t)%1==0,"`rotation` must be an integer")}}function _(e){let t=e;return e instanceof a.gd&&"xhtml"===e.text.format&&(x(t instanceof a.gd,"Expected TextAnnotation"),e.text.value.startsWith("

")&&e.text.value.endsWith("

")||((0,o.ZK)("TextAnnotation text value must be wrapped in

tags if the format is `xhtml`."),t=t.set("text",{format:"xhtml",value:`

${t.text.value}

`})),e.fontColor&&((0,o.ZK)('TextAnnotation fontColor is not supported for xhtml formatted text. You should add inline span element to the text value instead.\n\n Example:

your text

'),t=t.set("fontColor",null)),e.text.value||(t=t.set("text",{format:"xhtml",value:'

'}))),t}},68250:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});var o=n(50974);class r{constructor(e){this._objectManager=e}create(e,t){return Promise.reject(new o.p2("create() is not implemented"))}update(e,t){return Promise.reject(new o.p2("update() is not implemented"))}delete(e){return Promise.reject(new o.p2("delete() is not implemented"))}getObjectById(e){return Promise.resolve(null)}ensureChangesSaved(e){throw new o.p2("ensureChangesSaved() is not implemented")}hasUnsavedChanges(){return!!this._objectManager&&this._objectManager.hasUnsavedChanges()}manualSave(e){return this._objectManager?this._objectManager.manualSave(e):Promise.resolve()}autoSave(){this._objectManager&&this._objectManager.autoSave()}getEventEmitter(){return this._objectManager?this._objectManager.eventEmitter:null}lockSave(){return this._objectManager?this._objectManager.lockSave():()=>{}}}},55909:(e,t,n)=>{"use strict";n.d(t,{BZ:()=>E,Bl:()=>S,DR:()=>b,RB:()=>w,_1:()=>k,fu:()=>x});var o=n(34997),r=n(35369),i=n(50974),a=n(67366),s=n(80857),l=n(16126),c=n(19815),u=n(96114),d=n(11032),p=n(68250),f=n(10284),h=n(22571),m=n(51269),g=n(82481),v=n(59780),y=n(60132);const b="The API you're trying to use requires a forms license. Forms is a component of PSPDFKit for Web and thus sold separately.\nhttps://pspdfkit.com/guides/web/current/forms/introduction-to-forms/",w="The API you're trying to use requires a license that includes the Form Designer component on standalone mode or with PSPDFKit Instant. This is a separate component of PSPDFKit for Web and thus sold separately.\nhttps://pspdfkit.com/guides/web/current/forms/introduction-to-forms/",S="The API you're trying to use is only available when using the standalone mode or with PSPDFKit Instant.",E="The API you're trying to use is not available when `disableForms` is set to `true`.",P=(0,s.Z)("Forms");class x extends p.I{constructor(e,t){super(t().formFieldManager),this.dispatch=e,this.getState=t}async create(e,t){const n=[],i=this.getState();D(i,"Tried to create a form field. ");const s=e.map((e=>{try{const r=e.id;"string"==typeof r&&P(!(0,l.CL)(i,r),`Form field id (${r}) is already used.`),C(e,i,t);let a="string"==typeof r?e:e.set("id",(0,o.SK)());if(P(i.backend),P(i.formFieldValueManager),i.backend.isCollaborationPermissionsEnabled()&&!e.group&&i.group!==i.backend.getDefaultGroup()&&(a=a.set("group",i.group)),void 0!==e.value||void 0!==e.values){const t=new d.Z({name:e.name,value:void 0!==e.value?e.value:e.values});n.push(t)}return a}catch(e){return e}}));return(0,a.dC)((()=>{s.forEach((e=>{e instanceof Error||(this.dispatch((0,u.kW)(e)),this.autoSave())}))})),n.forEach((e=>{this.dispatch((0,u.xW)((0,r.aV)([e]))),P(i.formFieldValueManager),i.formFieldValueManager.createObject(e),i.formFieldValueManager.autoSave()})),(0,m.s)(s)}async update(e,t){const n=this.getState();P(n.formFieldValueManager);const o=e.map((e=>{try{D(n,"Tried to update a form field. "),P("string"==typeof e.id,"The form field you passed to Instance.update() has no id.\n Please use Instance.create() first to assign an id."),C(e,n,t);const o=(0,l.CL)(n,e.id);P(o,"A form field that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this form field was skipped."),P(n.backend),n.backend.isCollaborationPermissionsEnabled()||e.group===o.group&&e.isEditable===o.isEditable&&e.isDeletable===o.isDeletable&&e.canSetGroup===o.canSetGroup&&e.isFillable===o.isFillable||(e=e.set("group",o.group).set("isEditable",o.isEditable).set("isDeletable",o.isDeletable).set("canSetGroup",o.canSetGroup).set("isFillable",o.isFillable),(0,i.ZK)("`group`, `isEditable`, `isDeletable`, `isFillable` and `canSetGroup` are only relevant when Collaboration Permissions are enabled in server backed setup. You do not have it enabled so these values are set to `undefined`."));if(!e.delete("group").equals(o.delete("group"))&&!(0,f.iR)(o,n))throw new i.p2("You don't have permission to update this form field.");if(e.group!==o.group&&!(0,f.uW)(o,n))throw new i.p2("You don't have permission to update the `group` of this form field.");if(e.isEditable!==o.isEditable||e.isDeletable!==o.isDeletable||e.canSetGroup!==o.canSetGroup||e.isFillable!==o.isFillable)throw new i.p2("You can't update `isFillable`, `isEditable`, `canSetGroup` or `isDeletable` since they are read only properties which depend on the `group` property.");return e}catch(e){return e}}));return(0,a.dC)((()=>{o.forEach((e=>{e instanceof Error||(this.dispatch((0,u.vK)(e)),this.autoSave())}))})),(0,m.s)(o)}async delete(e){const t=this.getState();D(t,"Tried to delete a form field. ");const n=e.map((e=>{try{const o=(0,l.CL)(t,e.id);if(P(o,`There is no form field with id '${e.id}'`),P(t.formFieldValueManager),!(0,f.ev)(o,t))throw new i.p2("You don't have permission to delete this form field.");var n;if(void 0!==o.value||void 0!==o.values)null===(n=t.formFieldValueManager)||void 0===n||n.deleteObject(new d.Z({name:o.name,value:void 0!==o.value?o.value:o.values})),t.formFieldValueManager.autoSave();return e}catch(e){return e}}));return(0,a.dC)((()=>{n.forEach((e=>{e instanceof Error||(this.dispatch((0,u.Wh)(e)),this.autoSave())}))})),(0,m.s)(n)}async ensureChangesSaved(e){P("string"==typeof e.id,"The form field you passed to Instance.ensureSaved() has no id.\n Please use Instance.create() first to assign an id.");const{formFieldManager:t}=this.getState();return P(t),await t.ensureObjectSaved(e)}async getObjectById(e){return P("string"==typeof e,"The supplied id is not a valid id."),(0,l.CL)(this.getState(),e)}}function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{features:n,formsEnabled:o}=e;P(n.includes(y.q.FORMS),(t||"")+b),P(o,(t||"")+E),P(n.includes(y.q.FORM_DESIGNER),(t||"")+w),P((0,c.k_)(e.backend),S)}function C(e,t,n){if(e.additionalActions)for(const[t,n]of Object.entries(e.additionalActions))P("onCalculate"===t||"onChange"===t||"onFormat"===t||"onInput"===t,`Invalid attribute ${t} in \`additionalActions\`. Supported attributes: \`onCalculate\`, \`onChange\`, \`onFormat\`, \`onInput\``),P(n instanceof h.b,`Invalid attribute type of ${t} in \`additionalActions\`. ${t} must be of type \`PSPDFKit.Actions.JavaScriptAction\``);e.annotationIds&&(P(e.annotationIds instanceof r.aV,"Invalid form field `annotationIds` attribute. `annotationIds` must be of type `PSPDFKit.Immutable.List`"),P(e.annotationIds.every((e=>"string"==typeof e)),"Invalid form field `annotationIds` attribute. `annotationIds` should only contain string values."),e.annotationIds.forEach((e=>{!function(e,t,n){const o=e.get("annotations");if(!(((null==t?void 0:t.find((e=>e instanceof g.q6&&e.id===n)))||o.get(n)||o.find((e=>{var t;return(null==e||null===(t=e.pdfObjectId)||void 0===t?void 0:t.toString())===n})))instanceof g.x_))throw new i.p2("Invalid form field `annotationIds` attribute. `annotationIds` should only contain references to widget annotations.")}(t,n,e)}))),null!=e.id&&P("string"==typeof e.id&&e.id.length>0,"Invalid form field `id` attribute. `id` must be of type `string` and larger than 0 characters."),null!=e.label&&P("string"==typeof e.label,"Invalid form field `label` attribute. `label` must be of type `string`"),P("string"==typeof e.name&&e.name.length>0,"Invalid form field `name` attribute. `name` must be of type `string` and larger than 0 characters."),null!=e.noExport&&P("boolean"==typeof e.noExport,"Invalid form field `noExport` attribute. `noExport` must be of type `boolean`"),null!=e.pdfObjectId&&P("number"==typeof e.pdfObjectId,"Invalid form field `pdfObjectId` attribute. `pdfObjectId` must be of type `number`"),null!=e.readOnly&&P("boolean"==typeof e.readOnly,"Invalid form field `readOnly` attribute. `readOnly` must be of type `boolean`"),null!=e.required&&P("boolean"==typeof e.required,"Invalid form field `required` attribute. `required` must be of type `boolean`")}function k(e,t){e instanceof v.$o?P("string"==typeof(t=t||""),`The type of action value for a TextFormField ${e.name} is ${typeof t}, but has to be a string`):e instanceof v.Dz||e instanceof v.rF?P(t instanceof r.aV,`The type of action value for the ${e instanceof v.Dz?"ChoiceFormField":"CheckBoxFormField"} ${e.name} is ${typeof t}, but has to be a List of strings`):e instanceof v.XQ?P("string"==typeof t||null===t,`The type of action value for a RadioButtonFormField ${e.name} is ${typeof t}, but has to either be a string or null`):e instanceof v.R0||e instanceof v.Yo||P(!1,`Cannot set form field value for ${e.name}: unknown form field type`)}},92466:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});class o{constructor(e,t){this.element=e,this.release=t}}},96846:(e,t,n)=>{"use strict";n.d(t,{a:()=>w});var o=n(84121),r=n(35369),i=n(50974),a=n(76192);const s="CREATED",l="UPDATED",c="DELETED";var u=n(97333),d=n(31835),p=n(80857),f=n(34997);class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{};(0,o.Z)(this,"_locks",(0,r.l4)()),this._onUnlockCallback=e}lock(){const e=(0,f.SK)();return this._locks=this._locks.add(e),()=>{this._locks=this._locks.remove(e),this._locks.isEmpty()&&this._onUnlockCallback()}}isLocked(){return!this._locks.isEmpty()}}var m=n(71652);const g=(0,p.Z)("SaveModeQueue");class v{constructor(e){let{autoSaveMode:t,flushCreateObject:n,flushUpdateObject:i,flushDeleteObject:s,validateObject:l,getObjectId:c,syncChanges:u=(async()=>{})}=e;(0,o.Z)(this,"eventEmitter",new d.Z(["willSave","didSave","saveStateChange"])),(0,o.Z)(this,"_modifications",(0,r.D5)()),(0,o.Z)(this,"_inFlightModifications",(0,r.D5)()),(0,o.Z)(this,"_savedObjects",(0,r.l4)()),(0,o.Z)(this,"_ensureSavedRequests",(0,r.D5)()),(0,o.Z)(this,"_prevHasUnsavedObjects",!1),(0,o.Z)(this,"_saveLock",new h((()=>{if(this._autoSaveMode===a.u.IMMEDIATE||!this._saveRequests.isEmpty()){const e=this._autoSaveMode===a.u.IMMEDIATE||this._saveRequests.some((e=>e.syncChanges)),t=this._saveRequests.some((e=>e.manualSave)),n=this._saveRequests;this._saveRequests=this._saveRequests.clear(),this._save(e,t).then((()=>{n.forEach((e=>{e.resolve()}))})).catch((e=>{n.forEach((t=>{t.reject(e)}))}))}}))),(0,o.Z)(this,"_saveRequests",(0,r.aV)()),this._autoSaveMode=t,this._flushCreateObject=n,this._flushUpdateObject=i,this._flushDeleteObject=s,this._validateObject=l,this._getObjectId=c,this._syncChanges=u}lockSave(){return this._saveLock.lock()}assertSaveLocked(){g(this._saveLock.isLocked(),"This method can't be used without active save lock, use saveLock() to acquire the lock.")}createObject(e){this.assertSaveLocked();const t=this._getObjectId(e);this._setModificationsAndNotifyChange(this._modifications.set(t,{object:e,type:s}))}updateObject(e){this.assertSaveLocked();const t=this._getObjectId(e),n=this._modifications.get(t),o=n&&n.type===s&&!this._inFlightModifications.has(t);this._setModificationsAndNotifyChange(this._modifications.set(t,{object:e,type:o?s:l}))}deleteObject(e){this.assertSaveLocked();const t=this._getObjectId(e),n=this._modifications.get(t);n&&n.type===s?this._setModificationsAndNotifyChange(this._modifications.delete(t)):this._setModificationsAndNotifyChange(this._modifications.set(t,{object:e,type:c}))}enqueueInFlightModification(e){const t=this._getObjectId(e.object);return this._inFlightModifications.has(t)?this._inFlightModifications=this._inFlightModifications.updateIn([t],(t=>t.push(e))):this._inFlightModifications=this._inFlightModifications.set(t,(0,r.aV)([e])),this._notifySaveStateChange(),()=>{this._inFlightModifications=this._inFlightModifications.updateIn([t],(t=>t.filter((t=>t!==e))));const n=this._inFlightModifications.get(t);n&&0===n.size&&(this._inFlightModifications=this._inFlightModifications.delete(t)),this._notifySaveStateChange()}}clearQueueForObject(e){this._setModificationsAndNotifyChange(this._modifications.delete(e))}queuedObjectType(e){const t=this._inFlightModifications.get(e);if(t&&t.size>0)return t.last().type;{const t=this._modifications.get(e);return t?t.type:null}}hasUnsavedObjects(){return this._modifications.size>0||this._inFlightModifications.size>0}autoSave(){this._autoSaveMode===a.u.INTELLIGENT&&this.manualSave(!0).catch((()=>{}))}manualSave(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._save(e,!0)}_save(e,t){return new Promise(((n,o)=>{if(this._saveLock.isLocked())this._saveRequests=this._saveRequests.push({resolve:n,reject:o,syncChanges:e,manualSave:t});else{const a=this._modifications.filter((e=>{let{type:t}=e;return t!==c})).filter((e=>{let{object:t}=e;return!this._validateObject(t)}));t&&a.forEach((e=>{(0,i.ZK)(`Can not save invalid object with ID: ${this._getObjectId(e.object)}.\n Make sure to remove or update this object, before trying to save again.`)}));let d=(0,r.aV)();const p=this._modifications.filter(((e,t)=>!a.has(t))),f=p.map((e=>{let{object:t,type:n}=e;const o={object:t,type:n};let r;switch(d=d.push(this.enqueueInFlightModification(o)),n){case s:r=this._flushCreateObject(t);break;case l:r=this._flushUpdateObject(t);break;default:r=this._flushDeleteObject(t)}return r.then((()=>{this._markModificationAsSaved(o)})).catch((e=>{throw y(e),e}))})).valueSeq().toArray();if(this._setModificationsAndNotifyChange(a,!1),e&&f.length>0&&f.push(this._syncChanges().catch((e=>{throw y(e),e}))),this.eventEmitter.emit("willSave"),0===f.length)return this.eventEmitter.emit("didSave"),void n();let h;(0,u.jK)(f).catch((t=>{const n=p.toList(),o=e?t.pop():null,i=t.map(((e,t)=>{const o=n.get(t);if(e&&o)return{error:e,object:o.object,modificationType:o.type}})).filter(Boolean);throw h=(0,r.aV)(i),(0,m.h)(i,Boolean(o),o?o.message:null)})).finally((()=>{d.forEach((e=>{e()}));let e=p;h&&(e=e.withMutations((e=>{g(h),h.forEach((t=>{const n=this._getObjectId(t.object);e.remove(n)}))}))),this._resolveEnsureSavedRequests(e.map((e=>e.object)).valueSeq().toArray()),h&&this._rejectEnsureSavedRequests(h.toArray()),this.eventEmitter.emit("didSave")})).then((()=>{n()})).catch(o)}}))}markObjectsAsSaved(e){this._savedObjects=this._savedObjects.union(e)}isSaved(e){return this._savedObjects.has(e)&&null==this.queuedObjectType(e)}ensureObjectSaved(e){return new Promise(((t,n)=>{const o=this._getObjectId(e);this.isSaved(o)?t(e):this._ensureSavedRequests=this._ensureSavedRequests.withMutations((e=>{const i=e.get(o);i?e.set(o,i.push({resolve:t,reject:n})):e.set(o,(0,r.aV)([{resolve:t,reject:n}]))}))}))}_resolveEnsureSavedRequests(e){this._ensureSavedRequests=this._ensureSavedRequests.withMutations((t=>{e.forEach((e=>{const n=this._getObjectId(e),o=t.get(n);o&&this.isSaved(n)&&(o.forEach((t=>{let{resolve:n}=t;n(e)})),t.delete(n))}))}))}_rejectEnsureSavedRequests(e){this._ensureSavedRequests=this._ensureSavedRequests.withMutations((t=>{e.forEach((e=>{const n=this._getObjectId(e.object),o=t.get(n);o&&(o.forEach((t=>{let{reject:n}=t;n(e.error)})),t.delete(n))}))}))}_markModificationAsSaved(e){const t=this._getObjectId(e.object);switch(e.type){case"CREATED":case"UPDATED":this._savedObjects=this._savedObjects.add(t);break;case"DELETED":this._savedObjects=this._savedObjects.remove(t)}}_setModificationsAndNotifyChange(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._modifications=e,t&&this._notifySaveStateChange()}_notifySaveStateChange(){const e=this.hasUnsavedObjects();this._prevHasUnsavedObjects!==e&&(this._prevHasUnsavedObjects=e,this.eventEmitter.emit("saveStateChange",e))}}function y(e){(0,i.vU)(e)}var b=n(83253);class w{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.u.IMMEDIATE,n=arguments.length>2?arguments[2]:void 0;(0,o.Z)(this,"eventEmitter",new d.Z(this._getSupportedEvents())),(0,o.Z)(this,"_createdObjects",(0,r.D5)()),(0,o.Z)(this,"_updatedObjects",(0,r.D5)()),(0,o.Z)(this,"_deletedObjects",(0,r.D5)()),(0,o.Z)(this,"_crudEventsLock",new h((()=>{(this._createdObjects.size||this._updatedObjects.size||this._deletedObjects.size)&&this.eventEmitter.emit("change"),this._createdObjects.size&&(this.eventEmitter.emit("create",(0,r.aV)(this._createdObjects.values())),this._createdObjects=this._createdObjects.clear()),this._updatedObjects.size&&(this.eventEmitter.emit("update",(0,r.aV)(this._updatedObjects.values())),this._updatedObjects=this._updatedObjects.clear()),this._deletedObjects.size&&(this.eventEmitter.emit("delete",(0,r.aV)(this._deletedObjects.values())),this._deletedObjects=this._deletedObjects.clear())}))),this._callbacks=e,this._autoSaveMode=t,null!=n&&(this.eventEmitter=n),this._saveModeQueue=new v({autoSaveMode:t,flushCreateObject:async e=>{try{await this._callbacks.createBackendObject(e.object,e.additionalFields)}catch(t){throw this._callbacks.deleteStoreObjects((0,r.l4)([e.id])),this.eventEmitter.emit("change"),this.eventEmitter.emit("delete",(0,r.aV)([e.object])),t}this._callbacks.refresh()},flushUpdateObject:async e=>{await this._callbacks.updateBackendObject(e.object,e.additionalFields),this._callbacks.refresh()},flushDeleteObject:async e=>{try{await this._callbacks.deleteBackendObject(e.object,e.additionalFields)}catch(t){throw this._callbacks.createStoreObjects((0,r.aV)([e.object])),this.eventEmitter.emit("change"),this.eventEmitter.emit("create",(0,r.aV)([e.object])),t}this._callbacks.refresh()},validateObject:e=>this._callbacks.validateObject(e.object),getObjectId:e=>e.id,syncChanges:()=>this._callbacks.syncChanges()}),this._saveModeQueue.eventEmitter.on("willSave",(()=>{this.eventEmitter.emit("change"),this.eventEmitter.emit("willSave")})),this._saveModeQueue.eventEmitter.on("didSave",(()=>{this.eventEmitter.emit("change"),this.eventEmitter.emit("didSave")})),this._saveModeQueue.eventEmitter.on("saveStateChange",(e=>this.eventEmitter.emit("saveStateChange",e)))}autoSave(){this._saveModeQueue.autoSave()}manualSave(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._saveModeQueue.manualSave(e).catch((e=>{throw(0,i.kG)(e instanceof m.V),e.reason&&(e.reason=e.reason.map((e=>({error:e.error,modificationType:e.modificationType,object:e.object.object})))),e}))}ensureObjectSaved(e){return this._saveModeQueue.ensureObjectSaved(this._createSaveQueueObject(this._callbacks.getObjectId(e),e)).then((e=>e.object))}hasUnsavedChanges(){return this._saveModeQueue.hasUnsavedObjects()}lockSave(){const e=this._crudEventsLock.lock(),t=this._saveModeQueue.lockSave();return()=>{t(),e()}}createObject(e,t){const n=this.lockSave();try{const o=this._callbacks.getObjectId(e);(0,i.kG)(o);const r=this._saveModeQueue.queuedObjectType(o),a=this._saveModeQueue.isSaved(o)||r===l,c=r===s;a||c?(this._callbacks.onUpdate&&this._callbacks.onUpdate(e,t),this._saveModeQueue.updateObject(this._createSaveQueueObject(o,e,t)),this._updatedObjects=this._updatedObjects.set(o,e)):(this._callbacks.onCreate&&this._callbacks.onCreate(e,t),this._saveModeQueue.createObject(this._createSaveQueueObject(o,e,t)),this._createdObjects=this._createdObjects.set(o,e))}finally{n()}}updateObject(e,t){this.createObject(e,t)}deleteObject(e,t){const n=this.lockSave();try{const o=this._callbacks.getObjectId(e);(0,i.kG)(o);const r=this._saveModeQueue.queuedObjectType(o),a=this._saveModeQueue.isSaved(o)||r===l,c=r===s;this._callbacks.onDelete&&this._callbacks.onDelete(e,t),(a||c)&&this._saveModeQueue.deleteObject(this._createSaveQueueObject(o,e,t)),this._deletedObjects=this._deletedObjects.set(o,e)}finally{n()}}backendObjectsCreated(e,t,n){const o=t===b.y,r=e.map((e=>this._callbacks.getObjectId(e))).toArray();this._saveModeQueue.markObjectsAsSaved(r),this._callbacks.createStoreObjects(e,n),this.eventEmitter.emit("change"),this.eventEmitter.emit(o?"load":"create",e),r.forEach((e=>{this._saveModeQueue.clearQueueForObject(e)})),!o&&this._callbacks.refresh()}backendObjectsUpdated(e,t){this._callbacks.updateStoreObjects(e),t||(this.eventEmitter.emit("change"),this.eventEmitter.emit("update",e));e.map((e=>this._callbacks.getObjectId(e))).toArray().forEach((e=>{this._saveModeQueue.clearQueueForObject(e)})),this._callbacks.refresh()}backendObjectsDeleted(e){const t=e.map((e=>this._callbacks.getObjectById(e))).filter(Boolean).toList();this._callbacks.deleteStoreObjects(e),e.forEach((e=>{this._saveModeQueue.clearQueueForObject(e)})),this.eventEmitter.emit("change"),this.eventEmitter.emit("delete",t),this._callbacks.refresh()}_getSupportedEvents(){return["change","willSave","didSave","load","create","update","delete","saveStateChange"]}_createSaveQueueObject(e,t,n){return void 0===n?{id:e,object:t}:{id:e,object:t,additionalFields:n}}}},46292:(e,t,n)=>{"use strict";n(84121),n(13096)},56664:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});n(46292);let o;function r(){return o}},75376:(e,t,n)=>{"use strict";n(50974);var o=n(35369),r=(n(95651),n(20792),n(82481),n(63564)),i=(n(75237),n(59780),n(44048),n(2810),n(97528),n(88804),n(19702),n(65872),n(30578),n(92457)),a=n(56664);n(46791),n(52247),n(68258),n(97413),n(46292),n(13096);i.ZP.toJS(),(0,o.d0)({});(0,a.Z)();Object.entries(r.qH.toJS()).reduce(((e,t)=>{var n;let[o,r]=t;return e[o]=null===(n=r.desktop)||void 0===n?void 0:n.map((e=>({type:e}))),e}),{})},13096:(e,t,n)=>{"use strict";n(84121)},23413:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(53678),r=n(13997);class i{constructor(e,t){this.identifier=this.url=e,this.token=t,this.aborted=!1}request(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{method:"GET"};const{method:t,data:n=null}=e,i=new XMLHttpRequest;return i.open(t,this.url,!0),i.setRequestHeader("X-PSPDFKit-Token",this.token),i.setRequestHeader("PSPDFKit-Platform","web"),i.setRequestHeader("PSPDFKit-Version",(0,r.oM)()),new Promise(((e,t)=>{i.onreadystatechange=()=>{this.aborted||4===i.readyState&&((0,o.vu)(i.status)?e(JSON.parse(i.responseText)):t({message:i.responseText}))},this.httpRequest=i,i.send(n instanceof FormData?n:"object"==typeof n?JSON.stringify(n):void 0)}))}abort(){this.httpRequest&&(this.aborted=!0,this.httpRequest.abort(),this.httpRequest=null)}}},16159:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(84121),r=n(50974),i=n(31712),a=n(93572),s=n(84778);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t{this.annotation[t]&&e.push(t)})),e.length?e:null}}(0,o.Z)(u,"VERSION",2)},81041:(e,t,n)=>{"use strict";n.d(t,{M:()=>d,Z:()=>p});var o=n(84121),r=n(35369),i=n(16159),a=n(15973),s=n(93572),l=n(97413);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t(0,s.u)(e))).toJS()})}static fromJSON(e,t,n){return(0,l.k)("object"==typeof t.rects,"Missing `rects` field"),u(u({},super.fromJSON(e,t,n)),{},{rects:(0,r.aV)(t.rects).map((e=>(0,s.k)(e)))})}}},44048:(e,t,n)=>{"use strict";n.d(t,{a:()=>a,i:()=>s});var o=n(50974),r=n(31712),i=n(1053);function a(e){return{id:e.id,v:1,pdfBookmarkId:e.pdfBookmarkId,type:"pspdfkit/bookmark",name:e.name,sortKey:e.sortKey,action:e.action&&(0,r.vP)(e.action)}}function s(e,t){let n;(0,o.kG)(null==e||"string"==typeof e,"`id` must be null or of type `string`"),(0,o.kG)(null==t.name||"string"==typeof t.name,"`name` must be of type `string`"),(0,o.kG)(null==t.sortKey||"number"==typeof t.sortKey,"`sortKey` must be of type `number`"),(0,o.kG)("object"==typeof t.action,"Missing `action` field");try{n=(0,r.lk)(t.action)}catch(e){(0,o.ZK)(`PDF Action not supported:\n\n${t.action}`)}return new i.Z({id:e,pdfBookmarkId:t.pdfBookmarkId||null,name:t.name,sortKey:t.sortKey,action:n})}},56460:(e,t,n)=>{"use strict";n.d(t,{o:()=>c,z:()=>u});var o=n(84121),r=n(50974),i=n(82481),a=n(84778);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t{"use strict";n.d(t,{T8:()=>i,X$:()=>o,hH:()=>a,uE:()=>r});const o=e=>e.toJS(),r=e=>e.toJS(),i=(e,t)=>{return{maxWidth:e.maxWidth,alignment:e.alignment,lineSpacingFactor:e.lineSpacingFactor,modificationsCharacterStyle:(n=t,n.toJS())};var n},a=e=>i(e.layout,e.modificationsCharacterStyle)},30578:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var o=n(50974),r=n(35369),i=n(31712),a=n(22660),s=n(82481);function l(e){let t,n;(0,o.kG)("pspdfkit/outline-element"===e.type,"invalid outline element type."),(0,o.kG)(null==e.children||Array.isArray(e.children),"children must be an Array."),(0,o.kG)("string"==typeof e.title,"title must be a string."),(0,o.kG)(null==e.isBold||"boolean"==typeof e.isBold,"isBold must be a boolean."),(0,o.kG)(null==e.isItalic||"boolean"==typeof e.isItalic,"isItalic must be a boolean."),(0,o.kG)(null==e.isExpanded||"boolean"==typeof e.isExpanded,"isExpanded must be a boolean.");try{t=e.action&&(0,i.lk)(e.action)}catch(t){(0,o.ZK)(`PDF Action not supported\n\n${e.action}`)}try{n=e.color&&(0,a.b)(e.color)}catch(t){(0,o.ZK)(`Invalid color:\n\n${e.color}`)}const c={title:e.title,color:n,isBold:!0===e.isBold,isItalic:!0===e.isItalic,isExpanded:!0===e.isExpanded,action:t,children:(0,r.aV)()};return e.children&&e.children.length>0&&(c.children=(0,r.aV)(e.children.map(l))),new s.sT(c)}},13071:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var o=n(84121),r=n(50974),i=n(22660),a=n(18146),s=n(5020),l=n(81041);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>h,q:()=>f});var o=n(84121),r=n(35369),i=n(22660),a=n(16159),s=n(20367),l=n(97413),c=n(71603),u=n(4132);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){for(var t=1;t(0,s.K)(e))).toJS()}static _JSONToPoints(e){return(0,r.aV)(e.map((e=>(0,s.W)(e))))}static _JSONLinesToPoints(e){return(0,r.aV)(e.points[0].map(s.W))}}function m(e){return new c.Z({unitFrom:e.unitFrom,unitTo:e.unitTo,fromValue:e.from,toValue:e.to})}},78162:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var o=n(84121),r=n(50974),i=n(45395),a=n(22660),s=n(82481),l=n(16159),c=n(31712),u=n(2810),d=n(5020);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t{"use strict";n.d(t,{GI:()=>f,eb:()=>p,lk:()=>u,vP:()=>c});var o=n(84121),r=n(35369),i=n(50974),a=n(89335);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;te(t))).toArray()});if(t instanceof a.lm)return l({type:"uri",uri:t.uri},n);if(t instanceof a.Di)return l({type:"goTo",pageIndex:t.pageIndex},n);if(t instanceof a.Qr)return l({type:"goToEmbedded",newWindow:t.newWindow,relativePath:t.relativePath,targetType:t.targetType},n);if(t instanceof a._6)return l({type:"goToRemote",relativePath:t.relativePath,namedDestination:t.namedDestination},n);if(t instanceof a.ZD)return l({type:"hide",hide:t.hide,annotationReferences:t.annotationReferences.toJS()},n);if(t instanceof a.bp)return l({type:"javaScript",script:t.script},n);if(t instanceof a.b)return l({type:"launch",filePath:t.filePath},n);if(t instanceof a.oH)return l({type:"named",action:t.action},n);if(t instanceof a.BO)return l({type:"resetForm",fields:t.fields?t.fields.toArray():null,flags:t.includeExclude?"includeExclude":null},n);if(t instanceof a.pl)return l({type:"submitForm",uri:t.uri,fields:t.fields?t.fields.toArray():null,flags:d(t)},n);throw new Error(`Unknown action type: ${t.constructor.name}`)}(e)}function u(e){return function e(t){let n=null;switch(t.subactions&&(n={subActions:(0,r.aV)(t.subactions.map((t=>e(t))))}),t.type){case"uri":return(0,i.kG)("string"==typeof t.uri,"URI action must have a `uri`"),new a.lm(l({uri:t.uri},n));case"goTo":return(0,i.kG)("number"==typeof t.pageIndex,"Goto action must have a `pageIndex`"),new a.Di(l({pageIndex:t.pageIndex},n));case"goToEmbedded":return(0,i.kG)("boolean"==typeof t.newWindow,"GoToEmbeddedAction must have `newWindow`"),(0,i.kG)("parent"===t.targetType||"child"===t.targetType,"GoToEmbeddedAction must have a valid `targetType`"),new a.Qr(l({newWindow:t.newWindow,relativePath:t.relativePath||"",targetType:t.targetType||""},n));case"goToRemote":return new a._6(l({relativePath:t.relativePath||"",namedDestination:t.namedDestination||""},n));case"hide":return(0,i.kG)(Array.isArray(t.annotationReferences),"HideAction must have `annotationReferences`"),new a.ZD(l({hide:!!t.hide,annotationReferences:(0,r.aV)(t.annotationReferences)},n));case"javaScript":return new a.bp(l({script:t.script||""},n));case"launch":return new a.b(l({filePath:t.filePath||""},n));case"named":return new a.oH(l({action:t.action||""},n));case"resetForm":{(0,i.kG)(t.fields instanceof Array||void 0===t.fields,"The value of the `fields` field of ResetForm Action has to be an array or undefined"),(0,i.kG)("string"==typeof t.flags||void 0===t.flags,"The value of the `flags` field of ResetForm Action has to be a string or undefined");const e="includeExclude"===t.flags;return new a.BO(l({fields:t.fields?(0,r.aV)(t.fields):void 0,includeExclude:e},n))}case"submitForm":return(0,i.kG)("string"==typeof t.uri,"The value of the `uri` field of SubmitForm Action has to be a string"),(0,i.kG)(t.fields instanceof Array||void 0===t.fields,"The value of the `fields` field of SubmitForm Action has to be an array or undefined"),(0,i.kG)(t.flags instanceof Array||void 0===t.flags,"The value of the `flags` field of SubmitForm Action has to be a array or undefined"),t.flags||(t.flags=[]),new a.pl(l({fields:t.fields?(0,r.aV)(t.fields):void 0,uri:t.uri,includeExclude:t.flags.includes("includeExclude"),includeNoValueFields:t.flags.includes("includeNoValueFields"),exportFormat:t.flags.includes("exportFormat"),getMethod:t.flags.includes("getMethod"),submitCoordinated:t.flags.includes("submitCoordinated"),xfdf:t.flags.includes("xfdf"),includeAppendSaves:t.flags.includes("includeAppendSaves"),includeAnnotations:t.flags.includes("includeAnnotations"),submitPDF:t.flags.includes("submitPDF"),canonicalFormat:t.flags.includes("canonicalFormat"),excludeNonUserAnnotations:t.flags.includes("excludeNonUserAnnotations"),excludeFKey:t.flags.includes("excludeFKey"),embedForm:t.flags.includes("embedForm")},n));default:throw new Error(`Unknown action: ${t}`)}}(e)}function d(e){const t=[];return["includeExclude","includeNoValueFields","exportFormat","getMethod","submitCoordinated","xfdf","includeAppendSaves","includeAnnotations","submitPDF","canonicalFormat","excludeNonUserAnnotations","excludeFKey","embedForm"].forEach((n=>{e[n]&&t.push(n)})),t.length?t:null}function p(e){return Object.keys(e).reduce(((t,n)=>{const o=e[n];return o&&(t[n]=u(o)),t}),{})}function f(e){return Object.keys(e).reduce(((t,n)=>{const o=e[n];return o instanceof a.aU&&(t[n]=c(o)),t}),{})}},84778:(e,t,n)=>{"use strict";n.d(t,{G:()=>s,Ut:()=>c,a5:()=>l});var o=n(84121),r=n(50974);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};const{group:t,permissions:n}=e;(0,r.kG)(void 0===t||"string"==typeof t||null===t,"`group` should be `undefined` or `string`."),(0,r.kG)(void 0===n||(0,r.PO)(n),"`permissions` should be `undefined` or an `object`."),(0,r.PO)(n)&&((0,r.kG)("boolean"==typeof n.edit,"`permissions.edit` should be `boolean`."),(0,r.kG)("boolean"==typeof n.delete,"`permissions.delete` should be `boolean`."),(0,r.kG)("boolean"==typeof n.setGroup,"`permissions.setGroup` should be `boolean`."),void 0!==n.fill&&(0,r.kG)("boolean"==typeof n.fill,"`permissions.fill` should be `boolean`."),void 0!==n.reply&&(0,r.kG)("boolean"==typeof n.reply,"`permissions.reply` should be `boolean`."))}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{group:t,permissions:n}=e;let o={group:t};return(0,r.PO)(n)&&(o=a(a({},o),{},{canSetGroup:n.setGroup,isEditable:n.edit,isDeletable:n.delete}),"boolean"==typeof n.fill&&(o.isFillable=n.fill),"boolean"==typeof n.reply&&(o.canReply=n.reply)),o}function c(e){const t="boolean"==typeof e.isEditable&&"boolean"==typeof e.canSetGroup&&"boolean"==typeof e.isDeletable;let n={group:e.group};return t&&((0,r.kG)("boolean"==typeof e.isEditable),(0,r.kG)("boolean"==typeof e.isDeletable),(0,r.kG)("boolean"==typeof e.canSetGroup),n=a(a({},n),{},{permissions:{edit:e.isEditable,delete:e.isDeletable,setGroup:e.canSetGroup}}),"boolean"==typeof e.isFillable&&(n.permissions=a(a({},n.permissions),{},{fill:e.isFillable})),"boolean"==typeof e.canReply&&(n.permissions=a(a({},n.permissions),{},{reply:e.canReply}))),n}},22660:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,b:()=>a});var o=n(50974),r=n(82481);function i(e){return e.toHex()}function a(e){if((0,o.kG)(7===e.length||9===e.length,"Tried to deserialize color that does not have 7 or 9 characters"),"#00000000"===e)return r.Il.TRANSPARENT;const t=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),i=parseInt(e.substring(5,7),16);return new r.Il({r:t,g:n,b:i})}},62793:(e,t,n)=>{"use strict";n.d(t,{B:()=>i,r:()=>a});var o=n(50974),r=n(82481);function i(e){return[e.left,e.top,e.right,e.bottom]}function a(e){return(0,o.kG)(4===e.length,"Tried to deserialize inset that does not have 4 entries"),new r.eB({left:e[0],top:e[1],right:e[2],bottom:e[3]})}},20367:(e,t,n)=>{"use strict";n.d(t,{K:()=>i,W:()=>a});var o=n(50974),r=n(82481);function i(e){return[e.x,e.y]}function a(e){return(0,o.kG)(2===e.length,"Tried to deserialize point that does not have 2 entries"),new r.E9({x:e[0],y:e[1]})}},93572:(e,t,n)=>{"use strict";n.d(t,{k:()=>a,u:()=>i});var o=n(50974),r=n(82481);function i(e){return[e.left,e.top,e.width,e.height]}function a(e){return(0,o.kG)(4===e.length,"Tried to deserialize rect that does not have 4 entries"),new r.UL({left:e[0],top:e[1],width:e[2],height:e[3]})}},2810:(e,t,n)=>{"use strict";n.d(t,{Lw:()=>qe,vH:()=>Fe,Mu:()=>Re,IN:()=>Me,u9:()=>Be,Vl:()=>it,rS:()=>je,XH:()=>tt,l9:()=>Xe,Fd:()=>Je,_o:()=>et,_Q:()=>Ge,Qp:()=>We,$T:()=>Qe,Hs:()=>Ie,jA:()=>Ne,kg:()=>nt,vD:()=>_e,kr:()=>Le,xT:()=>$e,sr:()=>Ue,_D:()=>Ke,eE:()=>Ze,_L:()=>Ve,YA:()=>rt,MR:()=>Ye});var o=n(17375),r=n(84121),i=n(50974),a=n(35369),s=n(82481),l=n(18146),c=n(74973),u=n(22660),d=n(20367),p=n(16159);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;te.map((e=>(0,d.K)(e))))).toJS(),intensities:this.annotation.lines.map((e=>e.map((e=>e.intensity)))).toJS()}}static _JSONToLines(e){return(0,a.aV)(e.points).map(((t,n)=>{const o=e.intensities[n];return(0,a.aV)(t).map(((e,t)=>{const n=o[t],r=(0,d.W)(e);return new s.Wm({x:r.x,y:r.y,intensity:n})}))}))}}var g=n(74115),v=n(97413);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function b(e){for(var t=1;t{Object.keys(e).forEach((t=>{null==e[t]||e[t]instanceof Array&&0===e[t].length?delete e[t]:"object"!=typeof e[t]||e[t]instanceof Array||Te(e[t])}))};function Ie(e){const t=new(function(e){switch(e){case s.Zc:return m;case s.o9:return w;case s.b3:return D;case s.Xs:return A;case s.Hi:return I;case s.om:return _;case s.R1:return L;case s.FV:case s.R9:case s.xu:case s.hL:return X;case l.Z:return pe.Z;case s.gd:return q;case s.Qi:return K;case s.sK:return oe;case s.GI:return se;case s.x_:return le.Z;case s.Jn:return de;case s.Ih:return ee;case c.Z:return me;default:throw new Error("Unsupported annotation type")}}(e.constructor))(e).toJSON();return Te(t),t}function Fe(e,t,n){return He(t.type).fromJSON(e,t,n)}function Me(e,t,n){return function(e,t,n){(0,v.k)(1===t.v,"Version Unknown"),(0,v.k)("string"==typeof e,"`id` must be of type `string`"),(0,v.k)(null==t.name||"string"==typeof t.name,"`name` must be of type `string`"),(0,v.k)("string"==typeof t.type&&t.type.startsWith("pspdfkit/form-field/")&&3===t.type.split("/").length,`Invalid type for form field '${t.type}'`),(0,we.G)(n);const o=t.type.split("/")[2],r=t.flags?t.flags.reduce(((e,t)=>(e[t]=!0,e)),{}):{},s=Ee({id:e,pdfObjectId:t.pdfObjectId||null,name:t.name,annotationIds:(0,a.aV)(t.annotationIds),label:t.label,readOnly:r.readOnly,required:r.required,noExport:r.noExport,additionalActions:t.additionalActions?(0,be.eb)(t.additionalActions):null},(0,we.a5)(n));switch(t.type){case"pspdfkit/form-field/button":return new ge.R0(Ee(Ee({},s),{},{buttonLabel:t.buttonLabel}));case"pspdfkit/form-field/checkbox":return new ge.rF(Ee(Ee({},s),{},{defaultValues:(0,a.aV)(t.defaultValues),options:(0,a.aV)(t.options.map((e=>new ve.Z(e))))}));case"pspdfkit/form-field/combobox":return new ge.fB(Ee(Ee({},s),{},{options:(0,a.aV)(t.options.map((e=>new ve.Z(e)))),multiSelect:t.multiSelect,commitOnChange:t.commitOnChange,defaultValues:(0,a.aV)(t.defaultValues),edit:t.edit,doNotSpellCheck:t.doNotSpellCheck}));case"pspdfkit/form-field/listbox":return new ge.Vi(Ee(Ee({},s),{},{options:(0,a.aV)(t.options.map((e=>new ve.Z(e)))),multiSelect:t.multiSelect,commitOnChange:t.commitOnChange,defaultValues:(0,a.aV)(t.defaultValues)}));case"pspdfkit/form-field/radio":return new ge.XQ(Ee(Ee({},s),{},{noToggleToOff:t.noToggleToOff,radiosInUnison:t.radiosInUnison,defaultValue:t.defaultValue,options:(0,a.aV)(t.options.map((e=>new ve.Z(e))))}));case"pspdfkit/form-field/text":return new ge.$o(Ee(Ee({},s),{},{defaultValue:t.defaultValue,password:t.password,maxLength:t.maxLength,doNotSpellCheck:t.doNotSpellCheck,doNotScroll:t.doNotScroll,multiLine:t.multiLine,comb:t.comb}));case"pspdfkit/form-field/signature":return new ge.Yo(s);default:throw new i.p2(`Form field type not deserializable: ${o}`)}}(e,t,n)}function _e(e){return function(e){const t=ye.Mr.filter((t=>e[t])),n=Ee(Ee({id:e.id,v:1,pdfObjectId:e.pdfObjectId,name:e.name,annotationIds:e.annotationIds.toArray(),label:e.label,additionalActions:e.additionalActions&&(0,be.GI)(e.additionalActions)},(0,we.Ut)(e)),(null==t?void 0:t.length)&&{flags:t});if(e instanceof ge.R0)return Ee(Ee({},n),{},{type:"pspdfkit/form-field/button",buttonLabel:e.buttonLabel});if(e instanceof ge.rF)return Ee(Ee({},n),{},{type:"pspdfkit/form-field/checkbox",defaultValues:e.defaultValues.toArray(),options:e.options.toJS()});if(e instanceof ge.fB)return Ee(Ee({},n),{},{type:"pspdfkit/form-field/combobox",options:e.options.toJS(),multiSelect:e.multiSelect,commitOnChange:e.commitOnChange,defaultValues:e.defaultValues.toArray(),edit:e.edit,doNotSpellCheck:e.doNotSpellCheck});if(e instanceof ge.Vi)return Ee(Ee({},n),{},{type:"pspdfkit/form-field/listbox",options:e.options.toJS(),multiSelect:e.multiSelect,commitOnChange:e.commitOnChange,defaultValues:e.defaultValues.toArray()});if(e instanceof ge.XQ)return Ee(Ee({},n),{},{type:"pspdfkit/form-field/radio",options:e.options.toJS(),noToggleToOff:e.noToggleToOff,radiosInUnison:e.radiosInUnison,defaultValue:e.defaultValue});if(e instanceof ge.$o)return Ee(Ee({},n),{},{type:"pspdfkit/form-field/text",password:e.password,maxLength:e.maxLength,doNotSpellcheck:e.doNotSpellCheck,doNotScroll:e.doNotScroll,multiLine:e.multiLine,comb:e.comb,defaultValue:e.defaultValue});if(e instanceof ge.Yo)return Ee(Ee({},n),{},{type:"pspdfkit/form-field/signature"});throw new i.p2("Form field type not serializable")}(e)}function Re(e,t,n){return(0,De.z)(e,t,n)}function Ne(e,t){return(0,De.o)(e,t)}function Le(e){const t=a.aV.isList(e.value)?e.value.toArray():null==e.value?void 0:e.value;return Oe(Oe({v:1,type:"pspdfkit/form-field-value",name:e.name,value:t},e.optionIndexes&&e.optionIndexes.size>=1?{optionIndexes:e.optionIndexes.toArray()}:null),"boolean"==typeof e.isFitting&&{isFitting:e.isFitting})}function Be(e){(0,i.kG)("pspdfkit/form-field-value"===e.type,"Invalid `type` for form field value."),(0,i.kG)(1===e.v,"Invalid `version` for form field value."),(0,i.kG)("string"==typeof e.name,"Invalid `name` for form field value. Must be of type `string`."),(0,i.kG)(void 0===e.value||null===e.value||"string"==typeof e.value||Array.isArray(e.value),"Invalid `value` for form field value. Must be of type `undefined`, `null`, `string`, or `Array`."),(0,i.kG)(void 0===e.optionIndexes||Array.isArray(e.optionIndexes)&&e.optionIndexes.every(Number.isInteger),"Invalid `optionIndexes` value for form field value. Must be an Array of integers."),(0,i.kG)(void 0===(null==e?void 0:e.isFitting)||"boolean"==typeof e.isFitting,"Invalid `isFitting` value for form field value. Must be a boolean.");const t=e.value instanceof Array?(0,a.aV)(e.value):e.value,n=e.name;return new ge.KD(Oe(Oe({name:n,value:t},e.optionIndexes&&e.optionIndexes.length>=1?{optionIndexes:(0,a.aV)(e.optionIndexes)}:null),"boolean"==typeof e.isFitting&&{isFitting:e.isFitting}))}function je(e){if(!Object.values(xe._).includes(e.status))throw new i.p2("Invalid `status` for signatures info. Must be one of the `PSPDFKit.DocumentValidationStatus` values");if("string"!=typeof e.checkedAt)throw new i.p2("Invalid `checkedAt` for signatures info. Must be of type `string`.");if(void 0!==e.signatures&&!Array.isArray(e.signatures))throw new i.p2("Invalid `signatures` for signatures info. Must be of type `undefined` or `Array`.");if(!["undefined","boolean"].includes(typeof e.documentModifiedSinceSignature))throw new i.p2("Invalid `documentModifiedSinceSignature` for signatures info. Must be of type `undefined` or `boolean`.");const{checkedAt:t,signatures:n,documentModifiedSinceSignature:o}=e;return Oe(Oe({status:xe._[e.status],checkedAt:new Date(t)},n?{signatures:ze(n)}:null),"boolean"==typeof o?{documentModifiedSinceSignature:o}:null)}function ze(e){return e.map((e=>{if("pspdfkit/signature-info"!==e.type)throw new i.p2("Invalid `type` for signature info.");if(["signerName","creationDate","signatureReason","signatureLocation"].forEach((t=>{if(!["undefined","string"].includes(typeof e[t]))throw new i.p2(`Invalid \`${t}\` for signature info. Must be \`undefined\` or \`string\`.`)})),["isTrusted","isSelfSigned","isExpired","documentModifiedSinceSignature"].forEach((t=>{if(!["boolean"].includes(typeof e[t]))throw new i.p2(`Invalid \`${t}\` for signature info. Must be \`boolean\``)})),!["string"].includes(typeof e.signatureFormFQN))throw new i.p2("Invalid `signatureFormFQN` for signature info. Must be a `string`.");if(!Object.values(Pe.QA).includes(e.documentIntegrityStatus))throw new i.p2("Invalid `documentIntegrityStatus` for signature info. Must be one of the `PSPDFKit.DocumentIntegrityStatus` values");if(!Object.values(Pe.Xl).includes(e.signatureType))throw new i.p2(`Invalid \`signatureType\` for signature info: ${e.signatureType}. Must be 'cms' or 'cades'`);if(!Object.values(Pe.wk).includes(e.certificateChainValidationStatus))throw new i.p2("Invalid `certificateChainValidationStatus` for signature info. Must be one of the `PSPDFKit.CertificateChainValidationStatus` values");if(!Object.values(Pe.qA).includes(e.signatureValidationStatus))throw new i.p2("Invalid `signatureValidationStatus` for signature info. Must be one of the `PSPDFKit.SignatureValidationStatus` values");return{type:e.type,signatureType:ot[e.signatureType],documentIntegrityStatus:Pe.QA[e.documentIntegrityStatus],certificateChainValidationStatus:Pe.wk[e.certificateChainValidationStatus],signatureValidationStatus:Pe.qA[e.signatureValidationStatus],isTrusted:e.isTrusted,isSelfSigned:e.isSelfSigned,isExpired:e.isExpired,documentModifiedSinceSignature:e.documentModifiedSinceSignature,signerName:e.signerName,signatureReason:e.signatureReason,signatureLocation:e.signatureLocation,creationDate:e.creationDate?new Date(e.creationDate):void 0,signatureFormFQN:e.signatureFormFQN}}))}function Ke(e){return Oe({type:"pspdfkit/signature-metadata"},e)}function Ze(e){return e?{type:"pspdfkit/signature-position",pageIndex:e.pageIndex,rect:(0,E.u)(e.boundingBox)}:null}function Ue(e){if(!e)return null;const{watermarkImage:t}=e,n=(0,o.Z)(e,Ce);let r;return t&&(r=t.type),Oe(Oe({type:"pspdfkit/signature-appearance"},n),r?{contentType:r}:null)}function Ve(e){const t=e||{},{signatureType:n,certificates:r}=t,i=(0,o.Z)(t,ke);return Oe({type:"pspdfkit/signer-data-source",certificates:r||[],signatureType:rt[n||(r&&r.length>0?Pe.BG.CAdES:Pe.BG.CMS)]||Pe.Xl.cms},i)}function Ge(e){return"string"==typeof e.type&&e.type.startsWith("pspdfkit/form-field/")}function We(e){return"pspdfkit/form-field-value"===e.type}function qe(e){return e.map((e=>e.data)).toJS()}const He=e=>{switch(e){case"pspdfkit/ink":return m;case"pspdfkit/shape/line":return w;case"pspdfkit/shape/rectangle":return D;case"pspdfkit/shape/ellipse":return A;case"pspdfkit/shape/polygon":return I;case"pspdfkit/shape/polyline":return _;case"pspdfkit/link":return L;case"pspdfkit/markup/highlight":case"pspdfkit/markup/squiggly":case"pspdfkit/markup/strikeout":case"pspdfkit/markup/underline":return X;case"pspdfkit/markup/redaction":return pe.Z;case"pspdfkit/text":return q;case"pspdfkit/note":return K;case"pspdfkit/image":return oe;case"pspdfkit/stamp":return se;case"pspdfkit/widget":return le.Z;case"pspdfkit/comment-marker":return de;case"pspdfkit/media":return me;default:return ee}};function $e(e){const t=Object.entries(e).reduce(((e,t)=>{let[n,o]=t;switch(n){case"color":case"fontColor":case"strokeColor":case"backgroundColor":case"borderColor":case"fillColor":case"outlineColor":e[n]=o&&(0,u.C)(o);break;case"startPoint":case"endPoint":e[n]=o&&(0,d.K)(o);break;case"icon":e.icon=B.Y4[o];break;case"points":e.points=o&&o.map((e=>(0,d.K)(e))).toJS();break;case"lines":e.lines=o&&{points:o.map((e=>e.map((e=>(0,d.K)(e))))).toJS(),intensities:o.map((e=>e.map((e=>e.intensity)))).toJS()};break;case"isBold":e.fontStyle=Array.isArray(e.fontStyle)?e.fontStyle.concat("bold"):["bold"];break;case"isItalic":e.fontStyle=Array.isArray(e.fontStyle)?e.fontStyle.concat("italic"):["italic"];break;case"callout":e.callout=o&&{start:(0,d.K)(o.start),knee:o.knee&&(0,d.K)(o.knee),end:(0,d.K)(o.end),cap:o.cap};break;case"boundingBox":e.bbox=o&&(0,E.u)(o);break;case"cloudyBorderInset":e.cloudyBorderInset=o&&(0,S.B)(o);break;case"strokeDashArray":case"borderDashArray":e.strokeDashArray=o;break;case"action":e.action=o&&(0,be.vP)(o);break;case"createdAt":case"updatedAt":e[n]=o&&o.toISOString();break;case"noPrint":case"noZoom":case"noRotate":case"noView":case"hidden":!0===o&&(e.flags=Array.isArray(e.flags)?e.flags.concat(n):[n]);break;default:e[n]=o}return e}),{});return Te(t),t}function Ye(e){const t=Object.entries(e).reduce(((e,t)=>{let[n,o]=t;switch(n){case"color":case"fontColor":case"strokeColor":case"backgroundColor":case"borderColor":case"fillColor":case"outlineColor":e[n]=null!=o?(0,u.b)(o):null;break;case"startPoint":case"endPoint":e[n]=o&&(0,d.W)(o);break;case"icon":e.icon=B.V9[o];break;case"points":e.points=o&&(0,a.aV)(o.map((e=>(0,d.W)(e))));break;case"lines":e.lines=o&&(0,a.aV)(o.points).map(((e,t)=>{const n=o.intensities[t];return(0,a.aV)(e).map(((e,t)=>{const o=n[t],r=(0,d.W)(e);return new s.Wm({x:r.x,y:r.y,intensity:o})}))}));break;case"fontStyle":e.isBold=o&&o.includes("bold"),e.isItalic=o&&o.includes("italic");break;case"callout":e.callout=o&&{start:(0,d.W)(o.start),knee:o.knee&&(0,d.W)(o.knee),end:(0,d.W)(o.end),cap:o.cap};break;case"bbox":e.boundingBox=o&&(0,E.k)(o);break;case"cloudyBorderInset":e.cloudyBorderInset=o&&(0,S.r)(o);break;case"strokeDashArray":e.strokeDashArray=o;break;case"action":e.action=o&&(0,be.lk)(o);break;case"createdAt":case"updatedAt":e[n]=new Date(o);break;case"flags":o&&(e.noPrint=o.includes("noPrint"),e.noZoom=o.includes("noZoom"),e.noRotate=o.includes("noRotate"),e.noView=o.includes("noView"),e.hidden=o.includes("hidden"));break;default:e[n]=o}return e}),{});return Te(t),t}function Xe(e){return"pspdfkit/bookmark"===e.type}function Je(e){return"pspdfkit/comment"===e.type}function Qe(e){return"pspdfkit/signature-info"===e.type}function et(e){return"pspdfkit/embedded-file"===e.type}function tt(e){const t=[];return e.isBold&&t.push("bold"),e.isItalic&&t.push("italic"),t.length>0?t:null}function nt(e){if("addPage"===e.type){if("afterPageIndex"in e&&"number"==typeof e.afterPageIndex)return Oe({type:e.type,afterPageIndex:e.afterPageIndex,pageWidth:e.pageWidth,pageHeight:e.pageHeight,rotateBy:e.rotateBy,backgroundColor:e.backgroundColor.toCSSValue()},e.insets&&{insets:(0,E.u)(e.insets)});if("beforePageIndex"in e&&"number"==typeof e.beforePageIndex)return Oe({type:e.type,beforePageIndex:e.beforePageIndex,pageWidth:e.pageWidth,pageHeight:e.pageHeight,rotateBy:e.rotateBy,backgroundColor:e.backgroundColor.toCSSValue()},e.insets&&{insets:(0,E.u)(e.insets)});throw new i.p2("The `addPage` operation is missing either the `afterPageIndex` or the `beforePageIndex` property")}return"cropPages"===e.type?{type:e.type,cropBox:(0,E.u)(e.cropBox),pageIndexes:e.pageIndexes}:e}const ot={cms:"CMS",cades:"CAdES",documentTimestamp:"documentTimestamp"},rt={CMS:"cms",CAdES:"cades",documentTimestamp:"documentTimestamp"};function it(e){return(0,a.aV)(e.map((e=>({c:e.c,rect:(0,E.k)(e.r)}))))}},63564:(e,t,n)=>{"use strict";n.d(t,{gb:()=>y,qH:()=>g});var o=n(84121),r=n(17375),i=n(50974),a=n(35369),s=n(15973),l=n(72584),c=n(30679),u=n(80857),d=n(18146);const p=["icon"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>r});var o=n(35369);class r extends((0,o.WV)({readOnly:!1,downloadingAllowed:!0})){}},1053:(e,t,n)=>{"use strict";n.d(t,{G:()=>d,Z:()=>u});var o=n(84121),r=n(35369),i=n(80857),a=n(86920),s=n(44048);const l=(0,i.Z)("Bookmark"),c={id:null,pdfBookmarkId:null,name:null,sortKey:null,action:null};class u extends(r.WV(c)){}(0,o.Z)(u,"toSerializableObject",s.a),(0,o.Z)(u,"fromSerializableObject",(e=>(0,s.i)(null,e)));const d=e=>{const{name:t,sortKey:n,action:o}=e;null!=t&&l("string"==typeof t,"`name` must be a string"),null!=n&&l("number"==typeof n,"`sortKey` must be a number"),l(o instanceof a.aU,"`action` must be an instance of PSPDFKit.Actions.Action")}},98663:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(35369);class r extends((0,o.WV)({printHighQuality:!0,extract:!0,preventTextCopy:!1})){}},83634:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(84121),r=n(35369),i=n(50974);class a extends((0,r.WV)({r:0,g:0,b:0,transparent:!1})){constructor(e){!0!==e.transparent?super(e):super({transparent:!0})}lighter(e){(0,i.kG)("number"==typeof e&&e>=0&&e<=100,"Invalid `percent` value. Must be 0-100.");const t=255*e/100;let n=parseInt(this.r+t),o=parseInt(this.g+t),r=parseInt(this.b+t);return n=n<255?n:255,o=o<255?o:255,r=r<255?r:255,new a({r:n,g:o,b:r})}darker(e){(0,i.kG)("number"==typeof e&&e>=0&&e<=100,"Invalid `percent` value. Must be 0-100.");const t=255*e/100;let n=parseInt(this.r-t),o=parseInt(this.g-t),r=parseInt(this.b-t);return n=n>0?n:0,o=o>0?o:0,r=r>0?r:0,new a({r:n,g:o,b:r})}equals(e){return(0,i.kG)(e instanceof a||"object"==typeof e,"Invalid `color` provided. It must be an instance of Color or an RGB object."),(0,i.kG)("number"==typeof e.r&&e.r>=0&&e.r<=255,"Invalid `r` value provided. It must be an integer between 0 and 255."),(0,i.kG)("number"==typeof e.g&&e.g>=0&&e.g<=255,"Invalid `g` value provided. It must be an integer between 0 and 255."),(0,i.kG)("number"==typeof e.b&&e.b>=0&&e.b<=255,"Invalid `b` value provided. It must be an integer between 0 and 255."),!this.transparent&&!e.transparent&&this.r===e.r&&this.g===e.g&&this.b===e.b||this.transparent&&e.transparent}saturate(e){(0,i.kG)("number"==typeof e&&e>=0&&e<=100,"Invalid `percent` value. Must be 0-100.");const t=e/100,n=.3086*this.r+.6094*this.g+.082*this.b;return new a({r:Math.round(this.r*t+n*(1-t)),g:Math.round(this.g*t+n*(1-t)),b:Math.round(this.b*t+n*(1-t))})}sRGBToRGBComponent(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}relativeLuminance(){const{r:e,g:t,b:n}={r:this.r/255,g:this.g/255,b:this.b/255},{R:o,G:r,B:i}={R:this.sRGBToRGBComponent(e),G:this.sRGBToRGBComponent(t),B:this.sRGBToRGBComponent(n)};return.2126*o+.7152*r+.0722*i}contrastRatio(e){return(this.relativeLuminance()+.05)/(e.relativeLuminance()+.05)}toCSSValue(){return this.transparent?"transparent":`rgb(${this.r}, ${this.g}, ${this.b})`}toHex(){if(this.transparent)return"#00000000";let e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n}}(0,o.Z)(a,"BLACK",new a({r:0,g:0,b:0})),(0,o.Z)(a,"GREY",new a({r:128,g:128,b:128})),(0,o.Z)(a,"WHITE",new a({r:255,g:255,b:255})),(0,o.Z)(a,"DARK_BLUE",new a({r:36,g:131,b:199})),(0,o.Z)(a,"RED",new a({r:248,g:36,b:0})),(0,o.Z)(a,"PURPLE",new a({r:255,g:0,b:255})),(0,o.Z)(a,"PINK",new a({r:255,g:114,b:147})),(0,o.Z)(a,"GREEN",new a({r:110,g:176,b:0})),(0,o.Z)(a,"ORANGE",new a({r:243,g:149,b:0})),(0,o.Z)(a,"YELLOW",new a({r:255,g:255,b:0})),(0,o.Z)(a,"LIGHT_BLUE",new a({r:141,g:184,b:255})),(0,o.Z)(a,"LIGHT_RED",new a({r:247,g:141,b:138})),(0,o.Z)(a,"LIGHT_GREEN",new a({r:162,g:250,b:123})),(0,o.Z)(a,"LIGHT_YELLOW",new a({r:252,g:238,b:124})),(0,o.Z)(a,"BLUE",new a({r:34,g:147,b:251})),(0,o.Z)(a,"LIGHT_ORANGE",new a({r:255,g:139,b:94})),(0,o.Z)(a,"LIGHT_GREY",new a({r:192,g:192,b:192})),(0,o.Z)(a,"DARK_GREY",new a({r:64,g:64,b:64})),(0,o.Z)(a,"MAUVE",new a({r:245,g:135,b:255})),(0,o.Z)(a,"TRANSPARENT",new a({transparent:!0})),(0,o.Z)(a,"fromHex",(e=>e.length>=8&&(e.endsWith("00")||e.endsWith("00"))?a.TRANSPARENT:new a({r:parseInt(e.substr(1,2),16),g:parseInt(e.substr(3,2),16),b:parseInt(e.substr(5,2),16)})))},86071:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(83634);const r=[{color:o.Z.RED,localization:{id:"red",defaultMessage:"Red",description:"Red color"}},{color:o.Z.ORANGE,localization:{id:"orange",defaultMessage:"Orange",description:"Orange color"}},{color:o.Z.YELLOW,localization:{id:"yellow",defaultMessage:"Yellow",description:"Yellow color"}},{color:o.Z.GREEN,localization:{id:"green",defaultMessage:"Green",description:"Green color"}},{color:o.Z.DARK_BLUE,localization:{id:"darkBlue",defaultMessage:"Dark blue",description:"Dark blue color"}},{color:o.Z.BLUE,localization:{id:"blue",defaultMessage:"Blue",description:"Blue color"}},{color:o.Z.PURPLE,localization:{id:"purple",defaultMessage:"Purple",description:"Purple color"}},{color:o.Z.PINK,localization:{id:"pink",defaultMessage:"Pink",description:"Pink color"}},{color:o.Z.LIGHT_ORANGE,localization:{id:"lightOrange",defaultMessage:"Light Orange",description:"Light Orange color"}},{color:o.Z.LIGHT_YELLOW,localization:{id:"lightYellow",defaultMessage:"Light Yellow",description:"Light Yellow color"}},{color:o.Z.LIGHT_GREEN,localization:{id:"lightGreen",defaultMessage:"Light Green",description:"Light Green color"}},{color:o.Z.LIGHT_BLUE,localization:{id:"lightBlue",defaultMessage:"Light Blue",description:"Light Blue color"}},{color:o.Z.MAUVE,localization:{id:"mauve",defaultMessage:"Mauve",description:"Mauve color"}},{color:o.Z.TRANSPARENT,localization:{id:"transparent",defaultMessage:"Transparent",description:"Transparent"}},{color:o.Z.WHITE,localization:{id:"white",defaultMessage:"White",description:"White color"}},{color:o.Z.LIGHT_GREY,localization:{id:"lightGrey",defaultMessage:"Light Grey",description:"Light Grey color"}},{color:o.Z.GREY,localization:{id:"grey",defaultMessage:"Grey",description:"Grey color"}},{color:o.Z.DARK_GREY,localization:{id:"darkGrey",defaultMessage:"Dark Grey",description:"Dark Grey color"}},{color:o.Z.BLACK,localization:{id:"black",defaultMessage:"Black",description:"Black color"}}]},11721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});class o{constructor(e){this.name=e.name,this.reason=e.reason,this.progress=e.progress}}},68218:(e,t,n)=>{"use strict";n.d(t,{Ar:()=>v,CF:()=>b,Cd:()=>_,DN:()=>u,Dn:()=>B,FP:()=>a,FQ:()=>E,G_:()=>z,I5:()=>T,IA:()=>m,JR:()=>S,Q7:()=>k,QC:()=>K,R1:()=>i,Sg:()=>l,Ts:()=>x,UL:()=>c,W4:()=>p,Y1:()=>w,YG:()=>j,_h:()=>O,a2:()=>y,aN:()=>M,aT:()=>N,jI:()=>R,lK:()=>L,mZ:()=>d,nv:()=>A,t9:()=>I,tW:()=>P,tk:()=>C,vz:()=>g,wR:()=>s,xb:()=>F,yJ:()=>D,yO:()=>h});var o=n(50974),r=n(35369);let i,a,s;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Loading=1]="Loading",e[e.Loaded=2]="Loaded"}(i||(i={})),function(e){e[e.None=0]="None",e[e.Selected=1]="Selected",e[e.Active=2]="Active",e[e.Moving=3]="Moving"}(a||(a={})),function(e){e[e.Edit=0]="Edit",e[e.Create=1]="Create",e[e.Delete=2]="Delete"}(s||(s={}));class l extends((0,r.WV)({x:0,y:0})){}class c extends((0,r.WV)({offset:new l,size:new l})){}class u extends((0,r.WV)({rotation:0,flipY:!1})){}class d extends((0,r.WV)({xScale:1,skew:0})){}class p extends((0,r.WV)({bold:!1,italic:!1})){}const f={regular:new p,bold:new p({bold:!0}),italic:new p({italic:!0}),boldItalic:new p({bold:!0,italic:!0})};class h extends((0,r.WV)({family:"",variant:f.regular})){}class m extends((0,r.WV)({faceRef:new h,size:0})){}class g extends((0,r.WV)({fontRef:new m,color:"#000000",effects:new d})){}class v extends((0,r.WV)({maxWidth:null,alignment:"begin",lineSpacingFactor:1})){}class y extends((0,r.WV)({top:0,bottom:0})){}class b extends((0,r.WV)({offset:new l,lineSpacing:new y})){}class w extends((0,r.WV)({begin:0,end:0,text:""})){}class S extends((0,r.WV)({unavailableFaceName:null})){}class E extends((0,r.WV)({cluster:0,offset:new l,advance:new l,text:"",control:null,lastOfSegment:!1,beginOfWord:!1,endOfWord:!1})){}class P extends((0,r.WV)({offset:new l,lineSpacing:new y,elements:(0,r.aV)()})){}class x extends((0,r.WV)({lines:(0,r.aV)()})){}class D extends((0,r.WV)({family:null,faceMismatch:null,bold:null,italic:null,size:null,xScale:null,skew:null,color:null})){}class C extends((0,r.WV)({selectionStyleInfo:null,modificationsCharacterStyle:null,modificationsCharacterStyleFaceMismatch:null})){}class k extends((0,r.WV)({id:"",initialAnchor:new l,initialGlobalEffects:new u,initialLayout:new v,anchor:new l,globalEffects:new u,layout:new v,justCreated:!1,modificationsCharacterStyle:new g,version:0,contentRect:new c,cursor:new b,selection:null,detectedStyle:new C,layoutView:new x})){}class A extends((0,r.WV)({initialTextBlocks:(0,r.aV)(),textBlocks:(0,r.aV)(),loading:!0})){}class O extends((0,r.WV)({pageIndex:0,textBlockId:"",state:a.None})){}class T extends((0,r.WV)({family:"",variants:(0,r.l4)()})){}class I extends((0,r.WV)({faceList:null,loading:!1})){}class F extends((0,r.WV)({fontFace:null,rect:null,dismissAbortController:null})){}class M extends((0,r.WV)({pageStates:(0,r.D5)(),availableFaces:new I,textBlockInteractionState:new O,sessionId:0,active:!1,dirty:!1,saving:!1,mode:s.Edit,fontMismatchTooltip:null})){}const _=e=>t=>{const n=t.contentEditorSession.pageStates.get(e);return n?n.loading?i.Loading:i.Loaded:i.Uninitialized},R=e=>t=>{const n=t.contentEditorSession.pageStates.get(e);return n?[...n.textBlocks.map((e=>e.id))]:[]},N=(e,t)=>n=>{const r=n.contentEditorSession.pageStates.get(e);(0,o.kG)(r);for(const e of r.textBlocks)if(e.id==t)return e;return null},L=e=>{const{textBlockInteractionState:t}=e.contentEditorSession;return!t||t.state!==a.Active&&t.state!==a.Selected?null:N(t.pageIndex,t.textBlockId)(e)},B=(e,t)=>n=>{const{textBlockInteractionState:o}=n.contentEditorSession;return o&&o.state===a.Active&&o.pageIndex===e&&o.textBlockId===t},j=e=>e.contentEditorSession.availableFaces,z=(e,t)=>n=>{const{textBlockInteractionState:o}=n.contentEditorSession;return o&&o.state===a.Selected&&o.pageIndex===e&&o.textBlockId===t},K=(e,t)=>n=>{const{textBlockInteractionState:o}=n.contentEditorSession;return o&&o.state===a.Moving&&o.pageIndex===e&&o.textBlockId===t}},74985:(e,t,n)=>{"use strict";n.d(t,{G:()=>l,Z:()=>a});var o=n(35369),r=n(88804);const i=(0,n(80857).Z)("CustomOverlayItem");class a extends((0,o.WV)({disableAutoZoom:!1,id:null,node:null,noRotate:!1,pageIndex:0,position:new r.E9,onAppear:null,onDisappear:null})){constructor(e){super(e)}}const s=[Node.ELEMENT_NODE,Node.TEXT_NODE,Node.COMMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE],l=e=>{const{disableAutoZoom:t,id:n,node:o,noRotate:a,pageIndex:l,position:c,onAppear:u,onDisappear:d}=e;i("boolean"==typeof t,"`disableAutoZoom` must be a `boolean`"),i("string"==typeof n,"`id` must be a `string`"),i(o instanceof Node,"`node` must be an instance of `Node`"),i(s.includes(o.nodeType),"`node.nodeType` is invalid. Expected one of "+s.join(", ")),i("boolean"==typeof a,"`noRotate` must be a `boolean`"),i("number"==typeof l,"`pageIndex` must be a `number`"),i(c instanceof r.E9,"`position` must be an instance of `PSPDFKit.Geometry.Point`"),u&&i("function"==typeof u,"`onAppear` must be a `function`"),d&&i("function"==typeof d,"`onDisappear` must be a `function`")}},81619:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});const o=Object.freeze([{id:"solid",dashArray:[]},{id:"narrowDots",dashArray:[1,1]},{id:"wideDots",dashArray:[1,3]},{id:"narrowDashes",dashArray:[3,3]},{id:"wideDashes",dashArray:[6,6]}])},92947:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(35369);const r={elements:null,expanded:(0,o.D5)()};class i extends((0,o.WV)(r)){}},19568:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,Z:()=>l});var o=n(84121),r=n(35369);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;ta(a({},e),{},{[t]:t})),{})},39745:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(35369);(0,n(80857).Z)("Font");class r extends((0,o.WV)({name:null,callback:null})){constructor(e){super(e)}}},19209:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(35369);class r extends((0,o.WV)({label:"",value:""})){}},18509:(e,t,n)=>{"use strict";n.d(t,{B:()=>l,Z:()=>s});var o=n(84121);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t{"use strict";n.d(t,{C:()=>r});var o=n(34997);function r(){return(0,o.SK)()}},80399:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(35369),r=n(88804);const i={pageSize:new r.$u,pageIndex:0,pageLabel:"",rotation:0,inViewport:!1,textLines:null,textLineScales:null,annotationIds:(0,o.hU)(),customOverlayItemIds:(0,o.l4)(),pageKey:"",untransformedRect:new r.UL,transformedRect:new r.UL,matrix:r.sl.IDENTITY,reverseMatrix:r.sl.IDENTITY,rawPdfBoxes:{bleedBox:null,cropBox:null,mediaBox:null,trimBox:null}};class a extends((0,o.WV)(i)){}},19419:(e,t,n)=>{"use strict";n.d(t,{J:()=>l,Z:()=>s});var o=n(84121);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t{"use strict";n.d(t,{T:()=>r});var o=n(54097);const r={[n(19702).f.ANNOTATIONS]:{includeContent:[...o.J]}}},57960:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(35369);class r extends((0,o.WV)({storedSignatures:null,signatureRect:null,signaturePageIndex:null,populateStoredSignatures:()=>Promise.resolve((0,o.aV)()),formFieldsNotSavingSignatures:(0,o.l4)(),formFieldName:null})){}},49027:(e,t,n)=>{"use strict";n.d(t,{Z:()=>L,w:()=>N});var o=n(35369),r=n(88804),i=n(11721),a=n(89849),s=n(57960),l=n(56169),c=n(47852),u=n(89835),d=n(98663),p=n(19568),f=n(65872),h=n(89e3),m=n(64494),g=n(79941),v=n(151),y=n(92947),b=n(76192),w=n(39511),S=n(80440),E=n(31835),P=n(84760),x=n(67699),D=n(52842),C=n(72131),k=n(73324),A=n(68218),O=n(4132),T=n(71603),I=n(36489),F=n(79827),M=n(91859);const _={reuseState:null,backend:null,pages:(0,o.aV)(),totalPages:0,debugMode:!1,isDebugConsoleVisible:!1,rootElement:null,scrollElement:null,frameWindow:null,containerRect:new r.UL,connectionFailureReason:null,connectionState:new i.Z({name:a.F.CONNECTING}),scrollbarOffset:0,currentTextSelection:null,inlineTextMarkupToolbar:!0,annotations:(0,o.D5)(),attachments:(0,o.D5)(),formFields:(0,o.D5)(),formattedFormFieldValues:(0,o.D5)(),editingFormFieldValues:(0,o.D5)(),readOnlyEnabled:C.J.NO,formsEnabled:!0,formDesignMode:!1,showAnnotations:!0,showComments:!0,showAnnotationNotes:!0,printingEnabled:!0,exportEnabled:!0,selectedAnnotationIds:(0,o.l4)(),selectedAnnotationShouldDrag:null,selectedAnnotationMode:null,selectedTextOnEdit:!1,interactionMode:null,interactionsDisabled:!1,showToolbar:!0,enableAnnotationToolbar:!0,sidebarMode:null,sidebarOptions:k.T,sidebarPlacement:f.d.START,showSignatureValidationStatus:m.W.NEVER,hoverAnnotationIds:(0,o.l4)(),hoverAnnotationNote:null,activeAnnotationNote:null,clientsChangeCallback:()=>{},searchState:new l.Z,clientPermissions:new d.Z,backendPermissions:new u.Z,documentPermissions:new p.Z,inkEraserCursorWidth:0,isPrinting:!1,printLoadingIndicatorProgress:null,toolbarItems:(0,o.aV)(),electronicSignatureColorPresets:[],annotationToolbarHeight:0,annotationPresets:(0,o.D5)(),annotationPresetIds:(0,o.D5)(),currentItemPreset:null,stampAnnotationTemplates:[],viewportState:new c.Z,annotationManager:null,bookmarkManager:null,formFieldManager:null,formFieldValueManager:null,commentManager:null,changeManager:null,searchProvider:null,autoSaveMode:b.u.IMMEDIATE,eventEmitter:new E.Z,printMode:w.X.DOM,printQuality:S.g.LOW,features:(0,o.aV)(),signatureFeatureAvailability:null,customOverlayItems:(0,o.D5)(),locale:"en",annotationCreatorName:null,signatureState:new s.Z,annotationCreatorNameReadOnly:!1,hasPassword:!1,resolvePassword:null,isUnlockedViaModal:!1,transformClientToPage:e=>e,documentOutlineState:new y.Z,annotationsIdsToDelete:null,renderPageCallback:null,annotationTooltipCallback:null,isEditableAnnotation:null,isEditableComment:null,editableAnnotationTypes:(0,o.l4)(g.Z),customRenderers:null,customUIStore:null,documentHandle:null,allowedTileScales:"all",isDocumentHandleOutdated:!1,toolbarPlacement:h.p.TOP,comments:(0,o.D5)(),commentThreads:(0,o.D5)(),isSigning:!1,isApplyingRedactions:!1,digitalSignatures:null,previewRedactionMode:!1,canScrollWhileDrawing:!1,isAPStreamRendered:()=>!0,invalidAPStreams:(0,o.D5)(),collapseSelectedNoteContent:!1,restrictAnnotationToPageBounds:!0,hasFetchedInitialRecordsFromInstant:!1,group:void 0,documentEditorFooterItems:(0,o.aV)(),electronicSignatureCreationModes:(0,o.hU)(v.Z),signingFonts:(0,o.hU)(P.Z),documentEditorToolbarItems:(0,o.aV)(),isHistoryEnabled:!1,areClipboardActionsEnabled:!1,historyChangeContext:x.j.DEFAULT,undoActions:(0,o.aV)(),redoActions:(0,o.aV)(),historyIdsMap:(0,o.D5)(),a11yStatusMessage:"",lastToolbarActionUsedKeyboard:!1,onOpenURI:null,onAnnotationResizeStart:void 0,documentComparisonState:null,keepSelectedTool:!1,instance:null,dateTimeString:null,sidebarWidth:0,annotationToolbarItems:null,focusedAnnotationIds:(0,o.l4)(),annotationToolbarColorPresets:null,renderPagePreview:!0,onWidgetAnnotationCreationStart:null,formDesignerUnsavedWidgetAnnotation:null,inkEraserMode:D.b.POINT,firstCurrentPageIndex:0,arePageSizesLoaded:null,inlineTextSelectionToolbarItems:null,measurementSnapping:!0,measurementPrecision:O.L.TWO,measurementScale:new T.Z({unitFrom:I.s.INCHES,unitTo:F.K.INCHES,fromValue:1,toValue:1}),measurementToolState:null,measurementValueConfiguration:null,measurementScales:null,APStreamVariantsRollover:(0,o.l4)(),APStreamVariantsDown:(0,o.l4)(),contentEditorSession:new A.aN,showExitContentEditorDialog:!1,linkAnnotationMode:!1,anonymousComments:!1,annotationsGroups:(0,o.D5)(),selectedGroupId:null,enableRichText:()=>!1,richTextEditorRef:null,multiAnnotationsUsingShortcut:null,disablePullToRefresh:!1,mentionableUsers:[],maxMentionSuggestions:5,isMultiSelectionEnabled:!0,widgetAnnotationToFocus:null,onCommentCreationStart:null,defaultAutoCloseThreshold:M.W3,hintLines:null,scrollDisabled:!1,customFontsReadableNames:(0,o.l4)(),secondaryMeasurementUnit:null,activeMeasurementScale:null,isCalibratingScale:!1},R={pages:(0,o.aV)(),annotations:(0,o.D5)(),attachments:(0,o.D5)(),formFields:(0,o.D5)(),comments:(0,o.D5)(),commentThreads:(0,o.D5)()};class N extends((0,o.WV)(R)){}class L extends((0,o.WV)(_)){}},65338:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(35369),r=n(88804);class i extends((0,o.WV)({id:null,pageIndex:null,boundingBox:new r.UL,contents:"",contentTreeElementMetadata:null})){}},30679:(e,t,n)=>{"use strict";n.d(t,{G:()=>i,a:()=>r});const o=(0,n(80857).Z)("ToolItem"),r=[Node.ELEMENT_NODE,Node.TEXT_NODE,Node.DOCUMENT_FRAGMENT_NODE],i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;const{type:n,id:i,title:a,className:s,icon:l,onPress:c,disabled:u,selected:d,node:p}=e;t("custom"===n,"Mandatory `type` is either missing or not `custom`"),p&&(t("custom"===n,"`node` is only supported for `custom` tool items."),t(r.includes(p.nodeType),"`node.nodeType` is invalid. Expected one of "+r.join(", "))),i&&t("string"==typeof i,"`id` must be a `string`"),a&&t("string"==typeof a,"`title` must be a `string`"),s&&t("string"==typeof s,"`className` must be a `string`"),l&&t("string"==typeof l,"`icon` must be a `string`"),c&&t("function"==typeof c,"`onPress` must be a `function`"),"disabled"in e&&t("boolean"==typeof u,"`disabled` must be a `boolean`"),"selected"in e&&t("boolean"==typeof d,"`selected` must be a `boolean`")}},34426:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var o=n(50974),r=n(35369),i=n(91859),a=n(40725),s=n(77973),l=n(47710),c=n(65872),u=n(28098),d=n(64494),p=n(73324);const f="You tried to call a function on ViewState that requires a PSPDFKit.Instance.\nThis is possible, when you use a ViewState that is obtained via Instance#viewState, Instance.setViewState or by setting the instance value of a ViewState explicitly.";class h extends((0,r.WV)({currentPageIndex:0,zoom:u.c.AUTO,zoomStep:i.V4,pagesRotation:0,layoutMode:s.X.SINGLE,scrollMode:l.G.CONTINUOUS,showToolbar:!0,enableAnnotationToolbar:!0,allowPrinting:!0,allowExport:!0,interactionMode:null,readOnly:!1,showAnnotations:!0,showComments:!0,showAnnotationNotes:!0,sidebarMode:null,sidebarOptions:p.T,sidebarPlacement:c.d.START,spreadSpacing:i.YJ,pageSpacing:i.Sk,keepFirstSpreadAsSinglePage:!1,viewportPadding:new a.Z,instance:null,formDesignMode:!1,showSignatureValidationStatus:d.W.NEVER,previewRedactionMode:!1,canScrollWhileDrawing:!1,keepSelectedTool:!1,resolvedLayoutMode:s.X.SINGLE,sidebarWidth:0})){zoomIn(){if(!this.instance)throw new o.p2(f);this.instance.zoomStep||(this.instance.zoomStep=i.V4);const{maximumZoomLevel:e}=this.instance;let t=this.instance.currentZoomLevel*this.instance.zoomStep;return t>e&&(t=e),this.set("zoom",t)}zoomOut(){if(!this.instance)throw new o.p2(f);this.instance.zoomStep||(this.instance.zoomStep=i.V4);const{minimumZoomLevel:e}=this.instance;let t=this.instance.currentZoomLevel/this.instance.zoomStep;return t(e+270)%360))}rotateRight(){return this.update("pagesRotation",(e=>(e+90)%360))}goToNextPage(){if(!this.instance)throw new o.p2(f);let e=this.currentPageIndex+1;return e>this.instance.totalPageCount-1&&(e=this.instance.totalPageCount-1),this.set("currentPageIndex",e)}goToPreviousPage(){let e=this.currentPageIndex-1;return e<0&&(e=0),this.set("currentPageIndex",e)}}},40725:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(35369),r=n(91859);class i extends((0,o.WV)({horizontal:r.Kk,vertical:r.Kk})){}},47852:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(35369),r=n(91859),i=n(77973),a=n(47710),s=n(28098),l=n(88804);const c={zoomLevel:1,zoomMode:s.c.AUTO,layoutMode:i.X.SINGLE,scrollMode:a.G.CONTINUOUS,scrollPosition:new l.E9,currentPageIndex:0,viewportRect:new l.UL,pageSizes:(0,o.aV)(),commentMode:null,pagesRotation:0,viewportPadding:new l.E9({x:r.Kk,y:r.Kk}),spreadSpacing:r.YJ,pageSpacing:r.Sk,keepFirstSpreadAsSinglePage:!1,minDefaultZoomLevel:r.cY,maxDefaultZoomLevel:r.QS,zoomStep:r.V4,lastScrollUsingKeyboard:!1,documentComparisonMode:null};class u extends(o.WV(c)){}},86920:(e,t,n)=>{"use strict";n.d(t,{D2:()=>u,Q:()=>d,aU:()=>a,co:()=>c,uV:()=>s,zR:()=>l});var o=n(84121),r=n(50974),i=n(60797);class a extends i.D{constructor(e){if(super(e),(0,o.Z)(this,"subActions",null),this.subActions=null==e?void 0:e.subActions,this.constructor===a)throw new r.p2("PSPDFKit.Actions.Action is an abstract base class and can not be instantiated")}}(0,i.V)(a);const s=1,l=1,c=2,u=3,d=4},22571:(e,t,n)=>{"use strict";n.d(t,{b:()=>a});var o=n(84121),r=n(60797),i=n(86920);class a extends i.aU{constructor(e){super(e)}}(0,o.Z)(a,"defaultValues",{script:""}),(0,r.V)(a)},89335:(e,t,n)=>{"use strict";n.d(t,{aU:()=>o.aU,Di:()=>a,Qr:()=>s,_6:()=>l,ZD:()=>u,bp:()=>d.b,b:()=>p,oH:()=>f,BO:()=>h,pl:()=>m,lm:()=>g});var o=n(86920),r=n(84121),i=n(60797);class a extends o.aU{constructor(e){super(e)}}(0,r.Z)(a,"defaultValues",{pageIndex:null}),(0,i.V)(a);class s extends o.aU{constructor(e){super(e)}}(0,r.Z)(s,"defaultValues",{newWindow:!1,relativePath:"",targetType:"parent"}),(0,i.V)(s);class l extends o.aU{constructor(e){super(e)}}(0,r.Z)(l,"defaultValues",{relativePath:"",namedDestination:""}),(0,i.V)(l);var c=n(35369);class u extends o.aU{constructor(e){super(e)}}(0,r.Z)(u,"defaultValues",{hide:!0,annotationReferences:(0,c.aV)()}),(0,i.V)(u);var d=n(22571);class p extends o.aU{constructor(e){super(e)}}(0,r.Z)(p,"defaultValues",{filePath:null}),(0,i.V)(p);class f extends o.aU{constructor(e){super(e)}}(0,r.Z)(f,"defaultValues",{action:null}),(0,i.V)(f);class h extends o.aU{constructor(e){super(e)}}(0,r.Z)(h,"defaultValues",{fields:null,includeExclude:!1}),(0,i.V)(h);class m extends o.aU{constructor(e){super(e)}}(0,r.Z)(m,"defaultValues",{uri:null,fields:null,includeExclude:!1,includeNoValueFields:!0,exportFormat:!0,getMethod:!1,submitCoordinated:!1,xfdf:!1,includeAppendSaves:!1,includeAnnotations:!1,submitPDF:!1,canonicalFormat:!1,excludeNonUserAnnotations:!1,excludeFKey:!1,embedForm:!1}),(0,i.V)(m);class g extends o.aU{constructor(e){super(e)}}(0,r.Z)(g,"defaultValues",{uri:null}),(0,i.V)(g)},32125:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(84121),r=n(50974),i=n(88804),a=n(60797);class s extends a.D{constructor(e){if(super(e),this.constructor===s)throw new r.p2("PSPDFKit.Annotations.Annotation is an abstract base class and can not be instantiated")}}(0,o.Z)(s,"defaultValues",{id:null,name:null,subject:null,pdfObjectId:null,pageIndex:null,boundingBox:new i.UL,opacity:1,action:null,note:null,creatorName:null,createdAt:new Date(0),updatedAt:new Date(0),customData:null,noPrint:!1,noZoom:!1,noRotate:!1,noView:!1,locked:!1,lockedContents:!1,readOnly:!1,hidden:!1,blendMode:"normal",additionalActions:null,isCommentThreadRoot:!1,group:void 0,isEditable:void 0,isDeletable:void 0,canSetGroup:void 0,canReply:void 0,APStreamCache:void 0,rotation:0}),(0,a.V)(s);const l=s},70094:(e,t,n)=>{"use strict";n.d(t,{FN:()=>u,Yu:()=>d,p1:()=>c});var o=n(84121),r=n(34997),i=n(15973),a=n(88804),s=n(88713),l=n(60797);const c=32;class u extends i.Qi{}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;if(e){var o;const i=p(e,t,n);return new u({id:(0,r.SK)(),pageIndex:e.pageIndex,boundingBox:new a.UL({left:i.x,top:i.y,width:t,height:n}),text:{format:"plain",value:null!==(o=e.note)&&void 0!==o?o:""},parentAnnotation:e,position:i})}return new u({id:(0,r.SK)(),notePosition:new a.E9})}function p(e,t,n){let o=null;var r,l;if(e instanceof i.Zc)e.lines.isEmpty()||null!==(r=e.lines.get(0))&&void 0!==r&&r.isEmpty()||(o=null===(l=e.lines.get(0))||void 0===l?void 0:l.get(0));else if(e instanceof s.Z||e instanceof i.om){if(e.points&&e.points.size>=2){const t=e.points.get(0),n=e.points.get(1);o=new a.E9({x:(t.x+n.x)/2,y:(t.y+n.y)/2})}}else if(e instanceof i.o9){const t=e.startPoint,n=e.endPoint;o=new a.E9({x:(t.x+n.x)/2,y:(t.y+n.y)/2})}else if(e instanceof i.On)return new a.E9({x:e.boundingBox.right+4,y:e.boundingBox.getCenter().y-n/2});return o||(o=new a.E9({x:e.boundingBox.getCenter().x,y:e.boundingBox.top})),o.set("x",o.x-t/2).set("y",o.y-n/2)}(0,o.Z)(u,"defaultValues",{parentAnnotation:null,position:new a.E9,notePosition:new a.E9}),(0,l.V)(u)},73039:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(84121),r=n(35369),i=n(32125),a=n(83634),s=n(60797);class l extends i.Z{}(0,o.Z)(l,"defaultValues",{lines:(0,r.aV)(),lineWidth:5,strokeColor:a.Z.BLUE,backgroundColor:null,isDrawnNaturally:!1,isSignature:!1}),(0,o.Z)(l,"readableName","Ink"),(0,s.V)(l);const c=l},74973:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(84121),r=n(32125),i=n(60797);class a extends r.Z{}(0,o.Z)(a,"defaultValues",{description:null,fileName:null,contentType:null,mediaAttachmentId:null}),(0,o.Z)(a,"readableName","Media"),(0,i.V)(a)},65627:(e,t,n)=>{"use strict";n.d(t,{W:()=>c,Z:()=>d});var o,r=n(84121),i=n(32125),a=n(83634),s=n(18025),l=n(60797);const c=[{color:new a.Z({r:255,g:216,b:63}),localization:{id:"yellow",defaultMessage:"Yellow",description:"Yellow color"}},{color:new a.Z({r:255,g:127,b:0}),localization:{id:"orange",defaultMessage:"Orange",description:"Orange, the color"}},{color:new a.Z({r:255,g:51,b:0}),localization:{id:"red",defaultMessage:"Red",description:"Red, the color"}},{color:new a.Z({r:229,g:51,b:255}),localization:{id:"fuchsia",defaultMessage:"Fuchsia",description:"Fuchsia, the color"}},{color:new a.Z({r:0,g:153,b:255}),localization:{id:"blue",defaultMessage:"Blue",description:"Blue, the color"}},{color:new a.Z({r:114,g:255,b:0}),localization:{id:"green",defaultMessage:"Green",description:"Green, the color"}}];class u extends i.Z{}(0,r.Z)(u,"isEditable",!0),(0,r.Z)(u,"readableName","Note"),(0,r.Z)(u,"defaultValues",{text:{format:"plain",value:""},icon:s.Zi.COMMENT,color:null===(o=c.find((e=>"yellow"===e.localization.id)))||void 0===o?void 0:o.color}),(0,l.V)(u);const d=u},18146:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(84121),r=n(49200),i=n(83634),a=n(60797);class s extends r.Z{}(0,o.Z)(s,"readableName","Redaction"),(0,o.Z)(s,"defaultValues",{color:i.Z.RED,fillColor:i.Z.BLACK,outlineColor:i.Z.RED,overlayText:null,repeatOverlayText:null,rotation:0}),(0,a.V)(s)},82405:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(84121),r=n(32125),i=n(83634),a=n(60797);class s extends r.Z{isMeasurement(){return null!==this.measurementScale}}(0,o.Z)(s,"readableName","Shape"),(0,o.Z)(s,"defaultValues",{strokeWidth:5,strokeColor:i.Z.BLUE,fillColor:null,strokeDashArray:null,measurementPrecision:null,measurementScale:null}),(0,a.V)(s);const l=s},33754:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>u,a$:()=>s,k1:()=>l,pY:()=>a});var o=n(84121),r=n(32125),i=n(60797);const a={Approved:{},NotApproved:{},Draft:{},Final:{},Completed:{},Confidential:{},ForPublicRelease:{},NotForPublicRelease:{},ForComment:{},Void:{},PreliminaryResults:{},InformationOnly:{},Rejected:{},Accepted:{},InitialHere:{},SignHere:{},Witness:{},AsIs:{},Departmental:{},Experimental:{},Expired:{},Sold:{},TopSecret:{},Revised:{includeDate:!0,includeTime:!0},RejectedWithText:{includeDate:!0,includeTime:!0},Custom:{}},s={RejectedWithText:"Rejected"},l=e=>s[e]||e;class c extends r.Z{}(0,o.Z)(c,"defaultValues",{stampType:"Custom",title:null,subtitle:null,color:null,xfdfAppearanceStream:null}),(0,o.Z)(c,"readableName","Stamp"),(0,i.V)(c);const u=c},47751:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(84121),r=n(38623),i=n(32125),a=n(83634),s=n(60797);class l extends i.Z{}(0,o.Z)(l,"defaultValues",{text:{format:"plain",value:null},fontColor:a.Z.BLACK,backgroundColor:null,font:r.vt.first()||"sans-serif",fontSize:18,isBold:!1,isItalic:!1,horizontalAlign:"left",verticalAlign:"top",callout:null,borderStyle:null,borderWidth:null,borderColor:null,isFitting:!1,lineHeightFactor:null}),(0,o.Z)(l,"isEditable",!0),(0,o.Z)(l,"readableName","Text"),(0,o.Z)(l,"fontSizePresets",Object.freeze([4,6,8,10,12,14,18,24,36,48,64,72,96,144,192,200])),(0,s.V)(l);const c=l},49200:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(84121),r=n(35369),i=n(32125),a=n(83634),s=n(60797);class l extends i.Z{}(0,o.Z)(l,"defaultValues",{rects:(0,r.aV)(),color:a.Z.BLACK,blendMode:"normal"}),(0,o.Z)(l,"readableName","Text-Markup"),(0,s.V)(l);const c=l},29346:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(84121),r=n(32125),i=n(60797);class a extends r.Z{}(0,o.Z)(a,"defaultValues",{formFieldName:null,borderColor:null,borderStyle:null,borderDashArray:null,borderWidth:null,backgroundColor:null,fontSize:null,font:null,isBold:!1,isItalic:!1,fontColor:null,horizontalAlign:null,verticalAlign:null,additionalActions:null,lineHeightFactor:1}),(0,o.Z)(a,"readableName","Widget"),(0,i.V)(a);const s=a},15973:(e,t,n)=>{"use strict";n.d(t,{q6:()=>o.Z,Jn:()=>O,Xs:()=>m.Z,FV:()=>l,sK:()=>u,Zc:()=>d.Z,o9:()=>f.Z,R1:()=>b,Hu:()=>I.Z,Qi:()=>w.Z,Hi:()=>g.Z,om:()=>v.Z,b3:()=>h.Z,Wk:()=>T.Z,UX:()=>p.Z,hL:()=>S,GI:()=>E.ZP,R9:()=>P,gd:()=>x.Z,On:()=>i.Z,xu:()=>D,Ih:()=>k,x_:()=>A.Z});var o=n(32125),r=n(84121),i=n(49200),a=n(83634),s=n(60797);class l extends i.Z{}(0,r.Z)(l,"className","highlight"),(0,r.Z)(l,"readableName","Highlight"),(0,r.Z)(l,"defaultValues",{blendMode:"multiply",color:a.Z.LIGHT_YELLOW}),(0,s.V)(l);class c extends o.Z{}(0,r.Z)(c,"defaultValues",{description:null,fileName:null,contentType:null,imageAttachmentId:null,isSignature:!1,xfdfAppearanceStream:null}),(0,r.Z)(c,"readableName","Image"),(0,s.V)(c);const u=c;var d=n(73039),p=n(82405),f=n(20683),h=n(87043),m=n(70076),g=n(88713),v=n(50690);class y extends o.Z{}(0,r.Z)(y,"readableName","Link"),(0,r.Z)(y,"defaultValues",{borderWidth:0,borderColor:null,opacity:1}),(0,s.V)(y);const b=y;var w=n(65627);class S extends i.Z{}(0,r.Z)(S,"className","squiggle"),(0,r.Z)(S,"readableName","Squiggle"),(0,r.Z)(S,"defaultValues",{color:a.Z.RED}),(0,s.V)(S);var E=n(33754);class P extends i.Z{}(0,r.Z)(P,"className","strikeout"),(0,r.Z)(P,"readableName","Strike Out"),(0,r.Z)(P,"defaultValues",{color:a.Z.RED}),(0,s.V)(P);var x=n(47751);class D extends i.Z{}(0,r.Z)(D,"className","underline"),(0,r.Z)(D,"readableName","Underline"),(0,r.Z)(D,"defaultValues",{color:a.Z.BLACK}),(0,s.V)(D);class C extends o.Z{}(0,s.V)(C);const k=C;var A=n(29346);class O extends o.Z{}(0,r.Z)(O,"readableName","Comment-Marker"),(0,s.V)(O);var T=n(18146),I=n(74973)},70076:(e,t,n)=>{"use strict";n.d(t,{F:()=>u,Z:()=>d});var o=n(84121),r=n(82405),i=n(88804),a=n(91859),s=n(60797);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}class c extends r.Z{constructor(e){super(u(e))}}function u(e){if(!e)return;const t=function(e){for(var t=1;t0&&!e.cloudyBorderInset){const n=Number(e.cloudyBorderIntensity)*a.St+(e.strokeWidth||r.Z.defaultValues.strokeWidth)/2;return t.cloudyBorderInset=i.eB.fromValue(n),t}return t}(0,o.Z)(c,"defaultValues",{cloudyBorderIntensity:null,cloudyBorderInset:null,measurementBBox:null}),(0,o.Z)(c,"readableName","Ellipse"),(0,s.V)(c);const d=c},20683:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(84121),r=n(82405),i=n(88804),a=n(60797);class s extends r.Z{}(0,o.Z)(s,"defaultValues",{startPoint:new i.E9,endPoint:new i.E9,lineCaps:null}),(0,o.Z)(s,"readableName","Line"),(0,a.V)(s);const l=s},88713:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(84121),r=n(35369),i=n(82405),a=n(60797);class s extends i.Z{}(0,o.Z)(s,"defaultValues",{points:(0,r.aV)(),cloudyBorderIntensity:null}),(0,o.Z)(s,"readableName","Polygon"),(0,a.V)(s);const l=s},50690:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(84121),r=n(35369),i=n(82405),a=n(60797);class s extends i.Z{}(0,o.Z)(s,"defaultValues",{points:(0,r.aV)(),lineCaps:null}),(0,o.Z)(s,"readableName","Polyline"),(0,a.V)(s);const l=s},87043:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(84121),r=n(82405),i=n(70076),a=n(60797);class s extends r.Z{constructor(e){super((0,i.F)(e))}}(0,o.Z)(s,"defaultValues",{cloudyBorderIntensity:null,cloudyBorderInset:null,measurementBBox:null}),(0,o.Z)(s,"readableName","Rectangle"),(0,a.V)(s);const l=s},11863:(e,t,n)=>{"use strict";n.d(t,{Gu:()=>s,ZP:()=>a,vQ:()=>l});var o=n(50974),r=n(35369);const i={id:null,rootId:null,pageIndex:null,pdfObjectId:null,creatorName:null,createdAt:new Date(0),updatedAt:new Date(0),text:{format:"xhtml",value:null},customData:null,group:void 0,isEditable:void 0,isDeletable:void 0,canSetGroup:void 0,isAnonymous:void 0};class a extends(r.WV(i)){getMentionedUserIds(){const e=this.text.value;(0,o.kG)("string"==typeof e,"`text.value` must be of type `string`");const t=(new DOMParser).parseFromString(e,"text/html").body.querySelectorAll("span[data-user-id]"),n=Array.from(t).map((e=>e.getAttribute("data-user-id"))).filter(o.lH);return r.l4(n)}}const s=e=>{(0,o.kG)("string"==typeof e.id,"`id` must be of type `string`"),(0,o.kG)("string"==typeof e.rootId,"`rootId` must be of type `string`"),(0,o.kG)("number"==typeof e.pageIndex,"`pageIndex` must be of type `number`"),(0,o.kG)(null==e.pdfObjectId||"number"==typeof e.pdfObjectId,"`pdfObjectId` must be of type `number`"),(0,o.kG)(null==e.creatorName||"string"==typeof e.creatorName,"`creatorName` must be of type `string`"),(0,o.kG)(e.createdAt instanceof Date,"`createdAt` must be a Date"),(0,o.kG)(e.updatedAt instanceof Date,"`updatedAt` must be a Date"),(0,o.kG)("object"==typeof e.text,"`text` must be of type `object`"),(0,o.kG)("string"==typeof e.text.value,"`text` must be of type `string`"),(0,o.kG)("xhtml"===e.text.format||"plain"===e.text.format,"`text.format` must be either `xhtml` or `plain`"),(0,o.kG)(null==e.customData||(0,o.PO)(e.customData),"`customData` must be a JSON-serializable object"),(0,o.kG)(void 0===e.isAnonymous||"boolean"==typeof e.isAnonymous||null==e.isAnonymous,"`isAnonymous` must be of type `boolean`")};function l(e){return(0,o.kG)("string"==typeof e.id,"`id` must be of type `string`"),(0,o.kG)("string"==typeof e.name,"`name` must be of type `string`"),e.avatarUrl&&(0,o.kG)("string"==typeof e.avatarUrl,"`avatarUrl` must be of type `string`"),e.description&&(0,o.kG)("string"==typeof e.description,"`description` must be of type `string`"),(0,o.kG)("string"==typeof e.displayName,"`displayName` must be of type `string`"),e}},26248:(e,t,n)=>{"use strict";n.d(t,{BG:()=>a,FR:()=>l,QA:()=>o,Xl:()=>s,qA:()=>i,wk:()=>r});const o={ok:"ok",tampered_document:"tampered_document",failed_to_retrieve_signature_contents:"failed_to_retrieve_signature_contents",failed_to_retrieve_byterange:"failed_to_retrieve_byterange",failed_to_compute_digest:"failed_to_compute_digest",failed_retrieve_signing_certificate:"failed_retrieve_signing_certificate",failed_retrieve_public_key:"failed_retrieve_public_key",failed_encryption_padding:"failed_encryption_padding",general_failure:"general_failure"},r={ok:"ok",ok_but_self_signed:"ok_but_self_signed",untrusted:"untrusted",expired:"expired",not_yet_valid:"not_yet_valid",invalid:"invalid",revoked:"revoked",failed_to_retrieve_signature_contents:"failed_to_retrieve_signature_contents",general_validation_problem:"general_validation_problem"},i={valid:"valid",warning:"warning",error:"error"},a={CMS:"CMS",CAdES:"CAdES"},s={cms:"cms",cades:"cades",documentTimestamp:"documentTimestamp"},l={raw:"raw",pkcs7:"pkcs7"}},76367:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});const o={valid:"valid",warning:"warning",error:"error",not_signed:"not_signed"}},3845:(e,t,n)=>{"use strict";let o;n.d(t,{f:()=>o}),function(e){e.DRAW_START="DRAW_START",e.DRAW_END="DRAW_END",e.TEXT_EDIT_START="TEXT_EDIT_START",e.TEXT_EDIT_END="TEXT_EDIT_END",e.SELECT_START="SELECT_START",e.SELECT_END="SELECT_END",e.MOVE_START="MOVE_START",e.MOVE_END="MOVE_END",e.RESIZE_START="RESIZE_START",e.RESIZE_END="RESIZE_END",e.ROTATE_START="ROTATE_START",e.ROTATE_END="ROTATE_END",e.DELETE_START="DELETE_START",e.DELETE_END="DELETE_END",e.PROPERTY_CHANGE="PROPERTY_CHANGE"}(o||(o={}))},3534:(e,t,n)=>{"use strict";n.d(t,{Gu:()=>u,Mr:()=>s,ZP:()=>c});var o=n(84121),r=n(35369),i=n(50974),a=n(60797);const s=["readOnly","required","noExport"];class l extends a.D{constructor(e){if(super(e),this.constructor===l)throw new i.p2("PSPDFKit.FormFields.FormField is an abstract base class and can not be instantiated")}}(0,o.Z)(l,"defaultValues",{id:null,pdfObjectId:null,annotationIds:(0,r.aV)(),name:null,label:"",readOnly:!1,required:!1,noExport:!1,additionalActions:null,group:void 0,isEditable:void 0,isFillable:void 0,isDeletable:void 0,canSetGroup:void 0}),(0,a.V)(l);const c=l;function u(e){return e.has("name")}},11032:(e,t,n)=>{"use strict";n.d(t,{X:()=>s,Z:()=>a});var o=n(84121),r=n(60797);class i extends r.D{constructor(e){super(e),void 0!==(null==e?void 0:e.optionIndexes)&&(this.optionIndexes=e.optionIndexes),void 0!==(null==e?void 0:e.isFitting)&&(this.isFitting=e.isFitting)}}(0,o.Z)(i,"defaultValues",{name:null,value:null}),(0,r.V)(i);const a=i;function s(e){return`form-field-value/${e.name}`}},59780:(e,t,n)=>{"use strict";n.d(t,{R0:()=>s,rF:()=>u,Dz:()=>p,fB:()=>h,Wi:()=>r.ZP,KD:()=>m.Z,Vi:()=>v,XQ:()=>b,Yo:()=>P,$o:()=>S});var o=n(84121),r=n(3534),i=n(60797);class a extends r.ZP{}(0,o.Z)(a,"defaultValues",{buttonLabel:null}),(0,i.V)(a);const s=a;var l=n(35369);class c extends r.ZP{}(0,o.Z)(c,"defaultValues",{values:(0,l.aV)(),defaultValues:(0,l.aV)(),options:(0,l.aV)(),optionIndexes:void 0}),(0,i.V)(c);const u=c;class d extends r.ZP{}(0,o.Z)(d,"defaultValues",{options:(0,l.aV)(),values:(0,l.aV)(),defaultValues:(0,l.aV)(),multiSelect:!1,commitOnChange:!1,additionalActions:null}),(0,i.V)(d);const p=d;class f extends p{}(0,o.Z)(f,"defaultValues",{edit:!1,doNotSpellCheck:!1}),(0,i.V)(f);const h=f;var m=n(11032);class g extends p{}(0,i.V)(g);const v=g;class y extends r.ZP{}(0,o.Z)(y,"defaultValues",{options:(0,l.aV)(),noToggleToOff:!1,radiosInUnison:!0,value:"",defaultValue:"",optionIndexes:void 0}),(0,i.V)(y);const b=y;class w extends r.ZP{}(0,o.Z)(w,"defaultValues",{password:!1,maxLength:null,doNotSpellCheck:!1,doNotScroll:!1,multiLine:!1,comb:!1,value:"",defaultValue:"",additionalActions:null}),(0,i.V)(w);const S=w;class E extends r.ZP{}const P=E},17746:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(84121),r=n(52871),i=n(60797);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>a});var o=n(84121),r=n(60797);class i extends r.D{constructor(e){super(e)}scale(e,t){return this.withMutations((n=>{t||(t=e),n.set("x",this.x*e).set("y",this.y*t)}))}translate(e){let{x:t,y:n}=e;return this.withMutations((e=>{e.set("x",this.x+t).set("y",this.y+n)}))}translateX(e){return this.translate(new i({x:e,y:0}))}translateY(e){return this.translate(new i({x:0,y:e}))}distance(e){return Math.sqrt((e.x-this.x)**2+(e.y-this.y)**2)}rotate(e){e%=360;const{x:t,y:n}=this;switch(e){case 0:return this;case 90:return this.set("x",n).set("y",-t);case 180:return this.set("x",-t).set("y",-n);case 270:return this.set("x",-n).set("y",t);default:{const o=e*Math.PI/180;return this.set("x",Math.cos(o)*t+Math.sin(o)*n).set("y",Math.cos(o)*n-Math.sin(o)*t)}}}apply(e){const[t,n]=e.applyToPoint([this.x,this.y]);return this.withMutations((e=>{e.set("x",t).set("y",n)}))}}(0,o.Z)(i,"defaultValues",{x:0,y:0}),(0,r.V)(i);const a=i},55237:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(84121),r=n(50974),i=n(60797),a=n(52871),s=n(20449);class l extends i.D{constructor(e){super(e)}get right(){return this.left+this.width}get bottom(){return this.top+this.height}static fromClientRect(e){let{top:t,left:n,width:o,height:r}=e;return new l({top:t,left:n,width:o,height:r})}static union(e){const t=e.map((e=>e.top)).min(),n=e.map((e=>e.bottom)).max()-t,o=e.map((e=>e.left)).min(),r=e.map((e=>e.right)).max()-o;return new l({left:o,top:t,width:r,height:n})}static getCenteredRect(e,t){return new l({left:(t.width-e.width)/2,top:(t.height-e.height)/2,width:e.width,height:e.height})}static fromInset(e){return new l({left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top})}static fromPoints(){for(var e=arguments.length,t=new Array(e),n=0;ne.x))),i=Math.min(...t.map((e=>e.y))),a=Math.max(...t.map((e=>e.x))),s=Math.max(...t.map((e=>e.y)));return new l({left:o,top:i,width:a-o,height:s-i})}expandToIncludePoints(){for(var e=arguments.length,t=new Array(e),n=0;ne.x))),r=Math.min(this.top,...t.map((e=>e.y))),i=Math.max(this.left+this.width,...t.map((e=>e.x))),a=Math.max(this.top+this.height,...t.map((e=>e.y)));return new l({left:o,top:r,width:i-o,height:a-r})}static areRectsCloserThan(e,t,n){return Math.abs(e.left-t.left)<=n&&Math.abs(e.top-t.top)<=n&&Math.abs(e.left+e.width-(t.left+t.width))<=n&&Math.abs(e.top+e.height-(t.top+t.height))<=n}translate(e){let{x:t,y:n}=e;return this.withMutations((e=>{e.set("left",this.left+t).set("top",this.top+n)}))}translateX(e){return this.set("left",this.left+e)}translateY(e){return this.set("top",this.top+e)}scale(e,t){return this.withMutations((n=>{t||(t=e),n.set("left",this.left*e).set("top",this.top*t).set("width",this.width*e).set("height",this.height*t)}))}grow(e){return this.withMutations((t=>{t.set("left",this.left-e).set("top",this.top-e).set("width",this.width+2*e).set("height",this.height+2*e)}))}getLocation(){return new a.Z({x:this.left,y:this.top})}getSize(){return new s.Z({width:this.width,height:this.height})}getCenter(){return new a.Z({x:this.left+this.width/2,y:this.top+this.height/2})}setLocation(e){return this.withMutations((t=>{t.set("left",e.x).set("top",e.y)}))}roundOverlap(){return this.withMutations((e=>{e.set("left",Math.floor(this.left)).set("top",Math.floor(this.top)).set("width",Math.ceil(this.width)).set("height",Math.ceil(this.height))}))}round(){return this.withMutations((e=>{e.set("left",Math.round(this.left)).set("top",Math.round(this.top)).set("width",Math.round(this.width)).set("height",Math.round(this.height))}))}isPointInside(e){return e.x>=this.left&&e.x<=this.right&&e.y>=this.top&&e.y<=this.bottom}isRectInside(e){return this.isPointInside(e.getLocation())&&this.isPointInside(e.getLocation().translate(new a.Z({x:e.width,y:e.height})))}isRectOverlapping(e){return e.leftthis.left&&e.topthis.top}normalize(){return this.withMutations((e=>e.set("left",this.width<0?this.left+this.width:this.left).set("top",this.height<0?this.top+this.height:this.top).set("width",Math.abs(this.width)).set("height",Math.abs(this.height))))}apply(e){const[t,n]=e.applyToPoint([this.left,this.top]),[o,r]=e.applyToVector([this.width,this.height]);return this.withMutations((e=>e.set("left",t).set("top",n).set("width",o).set("height",r))).normalize()}}(0,o.Z)(l,"defaultValues",{left:0,top:0,width:0,height:0}),(0,i.V)(l);const c=l},20449:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(35369);class r extends((0,o.WV)({width:0,height:0})){scale(e){return this.withMutations((t=>{t.set("width",this.width*e).set("height",this.height*e)}))}ceil(){return this.withMutations((e=>{e.set("width",Math.ceil(this.width)).set("height",Math.ceil(this.height))}))}floor(){return this.withMutations((e=>{e.set("width",Math.floor(this.width)).set("height",Math.floor(this.height))}))}swapDimensions(){return this.withMutations((e=>{e.set("width",this.height).set("height",this.width)}))}apply(e){const[t,n]=e.applyToVector([this.width,this.height]);return this.withMutations((e=>{e.set("width",Math.abs(t)).set("height",Math.abs(n))}))}}},88804:(e,t,n)=>{"use strict";n.d(t,{Wm:()=>r.Z,eB:()=>f,E9:()=>o.Z,UL:()=>i.Z,$u:()=>a.Z,sl:()=>d});var o=n(52871),r=n(17746),i=n(55237),a=n(20449),s=n(84121),l=n(50974),c=n(60797);class u extends c.D{translate(e){let{x:t,y:n}=e;return this.transform(1,0,0,1,t,n)}translateX(e){return this.translate({x:e,y:0})}translateY(e){return this.translate({x:0,y:e})}scale(e,t){return t||(t=e),this.transform(e,0,0,t,0,0)}transform(e,t,n,o,r,i){const{a,b:s,c:l,d:c,e:u,f:d}=this;return this.withMutations((p=>p.set("a",e*a+n*s).set("b",t*a+o*s).set("c",e*l+n*c).set("d",t*l+o*c).set("e",e*u+n*d+r).set("f",t*u+o*d+i)))}rotate(e){(0,l.kG)(e%90==0,"Only multiples of 90° allowed.");const t=(360-e)*Math.PI/180,n=Math.cos(t),o=Math.sin(t);return this.transform(n,o,-o,n,0,0)}rotateRad(e){const t=Math.cos(e),n=Math.sin(e);return this.transform(t,n,-n,t,0,0)}inverse(){const{a:e,b:t,c:n,d:o,e:r,f:i}=this,a=e*o-t*n;return this.withMutations((s=>s.set("a",o/a).set("b",t/-a).set("c",n/-a).set("d",e/a).set("e",(n*i-o*r)/a).set("f",(e*i-t*r)/-a)))}toCssValue(){const{a:e,b:t,c:n,d:o,e:r,f:i}=this;return`matrix(${e.toFixed(2)}, ${t.toFixed(2)}, ${n.toFixed(2)}, ${o.toFixed(2)}, ${r.toFixed(2)}, ${i.toFixed(2)})`}applyToPoint(e){let[t,n]=e;const{a:o,b:r,c:i,d:a,e:s,f:l}=this;return[o*t+i*n+s,r*t+a*n+l]}applyToVector(e){let[t,n]=e;const{a:o,b:r,c:i,d:a}=this;return[o*t+i*n,r*t+a*n]}}(0,s.Z)(u,"defaultValues",{a:1,b:0,c:0,d:1,e:0,f:0}),(0,s.Z)(u,"IDENTITY",new u),(0,c.V)(u);const d=u;var p=n(35369);class f extends((0,p.WV)({left:0,top:0,right:0,bottom:0})){static applyToRect(e,t){if(!(e instanceof f))throw new l.p2("`inset` must be an instance of `PSPDFKit.Geometry.Inset`");if(!(t instanceof i.Z))throw new l.p2("`rect` must be an instance of `PSPDFKit.Geometry.Rect`");return new i.Z({top:t.top+e.top,left:t.left+e.left,width:t.width-(e.left+e.right),height:t.height-(e.top+e.bottom)})}static fromRect(e){return new f({left:e.left,top:e.top,right:e.left+e.width,bottom:e.top+e.height})}static fromValue(e){if("number"!=typeof e)throw new l.p2("The provided value must be a number");return new f({top:e,left:e,right:e,bottom:e})}apply(e){const t=e.applyToPoint([this.left,this.top]),n=e.applyToPoint([this.left,this.bottom]),o=e.applyToPoint([this.right,this.top]),r=e.applyToPoint([this.right,this.bottom]),i=Math.min(t[0],n[0],o[0],r[0]),a=Math.max(t[0],n[0],o[0],r[0]),s=Math.min(t[1],n[1],o[1],r[1]),l=Math.max(t[1],n[1],o[1],r[1]);return new f({left:i,right:a,top:s,bottom:l})}setScale(e){return new f({left:this.left*e,right:this.right*e,top:this.top*e,bottom:this.bottom*e})}}},82481:(e,t,n)=>{"use strict";n.d(t,{q6:()=>i.q6,Pg:()=>l,rp:()=>c.Z,R0:()=>a.R0,UW:()=>f,rF:()=>a.rF,Dz:()=>a.Dz,uh:()=>y.Z,Il:()=>h.Z,fB:()=>a.fB,sv:()=>T.ZP,Jn:()=>i.Jn,em:()=>m.Z,S:()=>x.Z,Wm:()=>r.Wm,Xs:()=>i.Xs,Wi:()=>a.Wi,KD:()=>a.KD,mv:()=>g.Z,Di:()=>o.Di,FV:()=>i.FV,sK:()=>i.sK,Zc:()=>i.Zc,eB:()=>r.eB,bp:()=>o.bp,o9:()=>i.o9,R1:()=>i.R1,Vi:()=>a.Vi,Qi:()=>i.Qi,sT:()=>C,T3:()=>v.Z,E9:()=>r.E9,Hi:()=>i.Hi,om:()=>i.om,XQ:()=>a.XQ,UL:()=>r.UL,b3:()=>i.b3,UX:()=>i.UX,Yo:()=>a.Yo,dp:()=>D.Z,$u:()=>r.$u,hL:()=>i.hL,GI:()=>i.GI,ZM:()=>b.Z,R9:()=>i.R9,gd:()=>i.gd,$o:()=>a.$o,bi:()=>w.Z,On:()=>i.On,SV:()=>E,Bs:()=>P,lm:()=>o.lm,xu:()=>i.xu,Ih:()=>i.Ih,f7:()=>O.Z,gx:()=>A.Z,Vk:()=>k.Z,x_:()=>i.x_});var o=n(89335),r=n(88804),i=n(15973),a=n(59780),s=n(35369);class l extends((0,s.WV)({data:null})){}var c=n(1053),u=n(84121),d=n(60797);class p extends d.D{}(0,u.Z)(p,"defaultValues",{start:null,knee:null,end:null,cap:null,innerRectInset:null}),(0,d.V)(p);const f=p;var h=n(83634),m=(n(86071),n(11721)),g=(n(74985),n(81619),n(19209)),v=(n(18509),n(80399)),y=(n(19419),n(98663)),b=(n(89835),n(19568),n(49027)),w=n(65338),S=n(50974);class E extends((0,s.WV)({startNode:null,startOffset:null,endNode:null,endOffset:null})){startAndEndIds(){const e=this.startNode.parentNode,t=this.endNode.parentNode,n=parseInt(e.dataset.textlineId),o=parseInt(t.dataset.textlineId),r=parseInt(e.dataset.pageIndex),i=parseInt(t.dataset.pageIndex);return(0,S.kG)("number"==typeof n,"selection startId is not a number"),(0,S.kG)("number"==typeof o,"selection endId is not a number"),(0,S.kG)("number"==typeof r,"selection start pageIndex is not a number"),(0,S.kG)("number"==typeof i,"selection end pageIndex is not a number"),{startTextLineId:n,endTextLineId:o,startPageIndex:r,endPageIndex:i}}}class P extends((0,s.WV)({textRange:null,startTextLineId:null,endTextLineId:null,startPageIndex:null,endPageIndex:null})){}var x=n(92947),D=n(57960);class C extends((0,s.WV)({children:(0,s.aV)(),title:"",color:null,isBold:!1,isItalic:!1,isExpanded:!1,action:null})){}var k=n(47852),A=n(40725),O=n(34426),T=n(11863)},71603:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(35369),r=n(36489),i=n(79827);class a extends((0,o.WV)({unitFrom:r.s.INCHES,unitTo:i.K.INCHES,fromValue:1,toValue:1})){}},46791:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(35369);class r extends((0,o.WV)({pageIndex:null,previewText:"",locationInPreview:null,lengthInPreview:null,rectsOnPage:(0,o.aV)(),isAnnotation:null,annotationRect:null})){}},56169:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(35369);class r extends((0,o.WV)({isFocused:!1,isLoading:!1,term:"",focusedResultIndex:-1,results:(0,o.aV)(),minSearchQueryLength:1})){}},25797:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m,q:()=>h});var o=n(84121),r=n(50974),i=n(67366),a=n(24852),s=n(63738),l=n(69939),c=n(96617),u=n(60132),d=n(83253);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t{y.forEach((t=>{e.dispatch((0,l.$d)(t))}))}));else if("SERVER"===s.type&&!s.isUsingInstantProvider()){var b;const{alreadyLoadedPages:e}=s.provider.state,t=y.filter((t=>e.has(t.pageIndex)));null===(b=o.annotationManager)||void 0===b||b.backendObjectsCreated(y,d.z),m.emit("annotations.create",t)}return y.map((e=>e.id))},t.applyRedactions=function(){const{features:t}=e.getState();if(!t.includes(u.q.REDACTIONS))throw new r.p2(h);return e.dispatch((0,s.fq)()),new Promise(((t,n)=>(e.dispatch((0,a.g)((()=>{e.dispatch((0,s.Di)()),t()}),(t=>{e.dispatch((0,s.Di)()),n(t)}))),t)))}}},95651:(e,t,n)=>{"use strict";n.d(t,{A8:()=>ue,AC:()=>oe,CU:()=>fe,Dc:()=>U,Dl:()=>D,F3:()=>Z,Fp:()=>T,IO:()=>q,Jy:()=>ge,Km:()=>V,SY:()=>C,TL:()=>re,TW:()=>J,U7:()=>te,Vc:()=>W,Wj:()=>k,X5:()=>j,Xu:()=>Q,YV:()=>ye,_E:()=>P,_R:()=>ne,_k:()=>ve,a$:()=>G,aI:()=>$,bz:()=>O,d:()=>F,dk:()=>ce,eD:()=>ee,eJ:()=>me,fc:()=>L,fk:()=>A,hG:()=>K,ip:()=>N,lx:()=>B,oF:()=>de,om:()=>z,pe:()=>se,sH:()=>S,tM:()=>le,tl:()=>pe,ud:()=>E,vj:()=>X,vk:()=>M,x2:()=>I,xU:()=>H,xc:()=>_,xp:()=>R,yU:()=>Y,z1:()=>he});var o=n(84121),r=n(35369),i=n(50974),a=n(34997),s=n(82481),l=n(18146),c=n(41952),u=n(91859),d=n(97528),p=n(88804),f=n(35129),h=n(83634),m=n(39728),g=n(51731),v=n(20792),y=n(75669);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function w(e){for(var t=1;t({color:new h.Z({r:e.color.r,g:e.color.g,b:e.color.b}),localization:e.localization})))}catch(e){return(0,i.ZK)(`Wrong color data stored in localStorage: ${e.message}`),[]}return[]}catch(e){return[]}}function E(e,t){return(0,i.kG)("number"==typeof t.pageIndex,"Annotation has no valid pageIndex"),(0,i.kG)(!e.annotations.has(t.id),`Annotation ID (${t.id}) is already known`),t.pageIndex<0||t.pageIndex>=e.pages.size?((0,i.ZK)(`Tried to add an annotation (ID: ${t.id}) with an out of bounds page index. This annotation was skipped.`),e):(t instanceof s.sK&&(0,i.kG)(Z(t.imageAttachmentId),"imageAttachmentId is not a valid hash or pdfObjectId"),e.withMutations((e=>{var n;t.id||(t=t.set("id",_())),e.setIn(["annotations",t.id],t),null!==(n=e.isAPStreamRendered)&&void 0!==n&&n.call(e,t)&&!ee(t)&&e.updateIn(["invalidAPStreams",t.pageIndex],(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.l4)();return e.add(t.id)})),x(e,t),(0,m._d)(e,t)})))}function P(e,t){(0,i.kG)("string"==typeof t.id,"Annotation has no valid id");const n=e.annotations.get(t.id);return(0,i.kG)(n instanceof s.q6,`Annotation with id ${t.id} not found and thus the update was ignored.`),e.withMutations((o=>{var i,a;null!=t.pageIndex&&x(o,t),!0!==t.noView&&!0!==t.hidden||!o.selectedAnnotationIds.has(t.id)||(o.delete("selectedAnnotationMode"),o.set("interactionMode",null),o.update("selectedAnnotationIds",(e=>e.filterNot((e=>e===t.id)))),o.update("hoverAnnotationIds",(e=>e.delete(t.id)))),o.setIn(["annotations",t.id],t);const s=e.activeAnnotationNote;s&&(null===(i=s.parentAnnotation)||void 0===i?void 0:i.id)===t.id&&(t.note?t.note!==s.text.value&&o.set("activeAnnotationNote",s.set("text",{format:"plain",value:t.note})):o.set("activeAnnotationNote",null));const l=e.hoverAnnotationNote;l&&(null===(a=l.parentAnnotation)||void 0===a?void 0:a.id)===t.id&&(t.note?t.note!==l.text.value&&o.set("hoverAnnotationNote",l.set("text",{format:"plain",value:t.note})):o.set("hoverAnnotationNote",null));const c=se((()=>o),t,(()=>{var e;null!==(e=o.isAPStreamRendered)&&void 0!==e&&e.call(o,t)&&oe(n,t)&&T(n)===T(t)&&o.updateIn(["invalidAPStreams",t.pageIndex],(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.l4)();return e.add(t.id)}))}));(0,m.GW)(o,n,t,c)}))}function x(e,t){return e.updateIn(["pages",t.pageIndex,"annotationIds"],(e=>e.add(t.id)))}function D(e,t){const n=e.annotations.get(t);return(0,i.kG)(n instanceof s.q6,"Annotation is unknown"),e.withMutations((o=>{var r,i,a;o.selectedAnnotationIds.has(t)&&(o.delete("selectedAnnotationMode"),o.interactionMode!==v.A.FORM_CREATOR&&o.set("interactionMode",null)),o.update("annotations",(e=>e.delete(t))),o.update("selectedAnnotationIds",(e=>e.filterNot((e=>e===t)))),o.update("annotationPresetIds",(e=>e.filterNot((e=>e===t)))),o.update("hoverAnnotationIds",(e=>e.delete(t))),null!==o.annotationsIdsToDelete&&o.update("annotationsIdsToDelete",(e=>null==e?void 0:e.filterNot((e=>e===t))));const s=e.activeAnnotationNote;s&&(null===(r=s.parentAnnotation)||void 0===r?void 0:r.id)===t&&o.set("activeAnnotationNote",null);const l=e.hoverAnnotationNote;if(l&&(null===(i=l.parentAnnotation)||void 0===i?void 0:i.id)===t&&o.set("hoverAnnotationNote",null),null==(null==n?void 0:n.pageIndex))return;o.deleteIn(["pages",n.pageIndex,"annotationIds",t]);const c=e.invalidAPStreams.get(n.pageIndex),u=(!c||!c.has(t))&&(null===(a=e.isAPStreamRendered)||void 0===a?void 0:a.call(e,n));(0,m.WF)(o,n,u),"number"==typeof n.pdfObjectId&&(o.deleteIn(["APStreamVariantsRollover",n.pdfObjectId]),o.deleteIn(["APStreamVariantsDown",n.pdfObjectId]))}))}function C(e,t){const{boundingBox:n}=e;if(e instanceof s.Qi){const e=n.getLocation(),o=(new p.sl).translate(e.scale(-1)).rotate(t).translate(e);return n.apply(o)}return n}function k(e,t,n){return(0,c.q)(C(e,t),n)}function A(e,t,n,o,r){var a;let l=e instanceof s.q6&&("points"in e&&(null===(a=e.points)||void 0===a?void 0:a.toJS())||"startPoint"in e&&e.startPoint&&e.endPoint&&[e.startPoint.toJS(),e.endPoint.toJS()]);if(W(e)){(0,i.kG)(e instanceof s.gd,"Callout annotation is not a TextAnnotation");const{callout:t}=e;(0,i.kG)(t,"Callout annotation has no callout");const{knee:n,start:o}=t;l=[o,n].map((e=>null==e?void 0:e.toJS()))}const u=(0,c.K)(o);return Array.isArray(l)?l.map((e=>({x:r+u+(e.x-t.left)*n,y:r+u+(e.y-t.top)*n}))):[]}function O(e){const t=null!=e.pageIndex;return e instanceof s.gd?t&&null!=e.text.value&&""!==e.text.value:e instanceof s.Hi||e instanceof s.om?t&&null!=e.points&&e.points.size>1:t}function T(e){return!1===e.noView&&!0!==e.hidden}function I(e){return!1===e.noPrint&&!0!==e.hidden}function F(e){return!(e instanceof s.Ih)}function M(e){return e?e.replace(/[A-Z]/g,"-$&").toLowerCase():null}const _=a.SK;function R(e,t){return function(e,t){return t.map((function(t){return e.get(t)})).filter(Boolean).toList()}(e,t.annotationIds)}function N(e){return e.boundingBox.setLocation(new s.E9)}const L=(0,r.D5)([["stroke-color","strokeColor"],["background-color","backgroundColor"],["color","color"],["fill-color","fillColor"],["font-color","fontColor"],["outline-color","outlineColor"]]);function B(e){var t;const n=_(),o=function(e){const t=e.currentItemPreset;return t&&e.annotationPresets.get(t)||{}}(e),r=w(w({},o),{},{id:n,name:n,creatorName:e.annotationCreatorName,createdAt:new Date,updatedAt:new Date});return e.group!==(null===(t=e.backend)||void 0===t?void 0:t.getDefaultGroup())&&(r.group=e.group),o.group&&o.group!==e.group&&(r.group=o.group),e.annotationToolbarColorPresets?L.reduce(((t,n,o)=>{const r=e.annotationToolbarColorPresets({propertyName:o,defaultAnnotationToolbarColorPresets:d.Ei.COLOR_PRESETS});if(void 0===r)return t;const i=r.presets,a=S(L.get(o,o));return function(e,t){return e.some((e=>!t&&null===e.color||t&&e.color&&e.color.equals(t)))}([...i,...a],t[n])?t:w(w({},t),{},{[n]:i[0].color})}),r):r}function j(e,t){const n=e.annotations.get(t);return n?n instanceof s.o9?"line":n instanceof s.Xs?"ellipse":n instanceof s.b3?"rectangle":n instanceof s.om?"polyline":n instanceof s.Hi?"polygon":n instanceof s.Zc?"ink":n instanceof s.Qi?"note":n instanceof s.gd?"text":n instanceof s.sK?"image":n instanceof s.GI?"stamp":n instanceof s.x_?"widget":n instanceof s.FV?"highlight":n instanceof s.xu?"underline":n instanceof s.R9?"strikeout":n instanceof s.hL?"squiggle":n instanceof l.Z?"redaction":null:null}function z(e,t,n,o,r){const{width:a,height:l}=t,{currentPageIndex:c,pagesRotation:d}=e.viewportState,p=e.pages.get(c);(0,i.kG)(p,`Cannot find page at index ${c}`);const f=p.pageSize,h=Math.min(f.width*u.Bs/a,f.height*u.Bs/l,1);let m=a*h,g=l*h;return 90!==d&&270!==d||([m,g]=[g,m]),new s.sK(w(w({},B(e)),{},{pageIndex:c,imageAttachmentId:n,contentType:o,rotation:d,fileName:r,boundingBox:new s.UL({left:f.width/2-m/2,top:f.height/2-g/2,width:m,height:g})}))}function K(e,t,n){const{width:o,height:r}=t,{currentPageIndex:a,pagesRotation:l}=e.viewportState,c=e.pages.get(a);(0,i.kG)(c,`Cannot find page at index ${a}`);const d=c.pageSize,p=Math.min(d.width*u.Bs/o,d.height*u.Bs/r,1);let f=o*p,h=r*p;return 90!==l&&270!==l||([f,h]=[h,f]),new s.GI(w(w({},B(e)),{},{pageIndex:a,stampType:n.stampType,title:n.title,subtitle:n.subtitle,color:n.color,opacity:n.opacity,rotation:l,boundingBox:new s.UL({left:d.width/2-f/2,top:d.height/2-h/2,width:f,height:h})}))}function Z(e){return RegExp("^([A-Fa-f0-9]{64}|[0-9]+)$").test(e)}function U(e,t){let n=(0,r.D5)();return(Array.isArray(t)?t:[t]).forEach((t=>{if(t instanceof s.sK&&t.imageAttachmentId){const o=e.attachments.get(t.imageAttachmentId);o&&(n=n.set(t.imageAttachmentId,o))}})),n}function V(e){return e instanceof s.om||e instanceof s.Hi||e instanceof s.o9||W(e)}function G(e){switch(e.constructor){case s.gd:return!W(e);case s.GI:return!0;default:return!1}}function W(e){var t;return e instanceof s.gd&&!(null===(t=e.callout)||void 0===t||!t.innerRectInset)}function q(e){return e instanceof s.om||e instanceof s.Hi||e instanceof s.b3||e instanceof s.sK||e instanceof s.Zc||e instanceof s.Xs||e instanceof s.GI||e instanceof s.gd&&!W(e)||e instanceof s.x_||e instanceof s.R1}function H(e,t){const n=t.onAnnotationResizeStart?t.onAnnotationResizeStart(e):void 0;if(void 0!==n)return(0,i.kG)(!0===n.maintainAspectRatio||!1===n.maintainAspectRatio||null===n.maintainAspectRatio||void 0===n.maintainAspectRatio,"onAnnotationResizeStart should return a valid configuration or undefined"),!!n.maintainAspectRatio&&n.maintainAspectRatio;if(e.isShiftPressed)return!0;const o=e.annotation instanceof s.sK||e.annotation instanceof s.GI,r=[g.V.TOP_LEFT,g.V.TOP_RIGHT,g.V.BOTTOM_LEFT,g.V.BOTTOM_RIGHT];return!!(o&&r.includes(e.resizeAnchor)||"isSignature"in e.annotation&&e.annotation.isSignature)}function $(e,t){const n=t.onAnnotationResizeStart?t.onAnnotationResizeStart(e):void 0;return n&&(n.minHeight&&n.minHeight<0&&((0,i.ZK)("minimum height in the onAnnotationResizeStart API should be greater than 0"),n.minHeight=void 0),n.maxHeight&&n.maxHeight<0&&((0,i.ZK)("maximum height in the onAnnotationResizeStart API should be greater than 0"),n.maxHeight=void 0),n.maxWidth&&n.maxWidth<0&&((0,i.ZK)("maximum width in the onAnnotationResizeStart API should be greater than 0"),n.maxWidth=void 0),n.minWidth&&n.minWidth<0&&((0,i.ZK)("maximum width in the onAnnotationResizeStart API should be greater than 0"),n.minWidth=void 0),n.maxHeight&&n.minHeight&&n.maxHeight{e.nativeEvent.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),n=!0}})),n}function Q(e){e.selectedAnnotationIds.forEach((t=>{e.deleteIn(["annotationPresetIds"],t)}))}function ee(e){return"number"==typeof e.pdfObjectId}function te(e){return e.width>0&&e.height>0}function ne(e,t){return!(e instanceof s.GI||e instanceof s.Ih||e instanceof s.sK||e instanceof s.x_&&t instanceof s.Yo)}function oe(e,t){return!(0,r.is)(N(e),N(t))||e.opacity!==t.opacity||e.rotation!==t.rotation||T(e)!==T(t)||(t instanceof s.sK&&e instanceof s.sK&&e.imageAttachmentId!==t.imageAttachmentId||(!(!(t instanceof s.UX&&e instanceof s.UX)||e.strokeWidth===t.strokeWidth&&ie(e.strokeColor,t.strokeColor)&&ie(e.fillColor,t.fillColor)&&(!t.strokeDashArray||e.strokeDashArray&&!t.strokeDashArray.some(((t,n)=>void 0===e.strokeDashArray[n]||t!==e.strokeDashArray[n]))))||(!(!(t instanceof s.UX&&e instanceof s.UX&&t.isMeasurement())||e.measurementScale===t.measurementScale&&e.measurementPrecision===t.measurementPrecision)||((t instanceof s.b3||t instanceof s.Xs)&&(e instanceof s.b3||e instanceof s.Xs)&&(t.cloudyBorderInset!==e.cloudyBorderInset||t.cloudyBorderIntensity!==e.cloudyBorderIntensity)||(!!((t instanceof s.o9||t instanceof s.om)&&(e instanceof s.o9||e instanceof s.om)&&t.lineCaps&&(!e.lineCaps||t.lineCaps.start!==e.lineCaps.start||t.lineCaps.end!==e.lineCaps.end)||!t.lineCaps&&e.lineCaps)||(!!(t instanceof s.o9&&ae(e,t))||(!!((t instanceof s.om||t instanceof s.Hi)&&(e instanceof s.om||e instanceof s.Hi)&&ae(e,t))||(t instanceof s.Zc&&e instanceof s.Zc&&(e.lineWidth!==t.lineWidth||!ie(e.strokeColor,t.strokeColor)||!ie(e.backgroundColor,t.backgroundColor)||e.blendMode!==t.blendMode)||(t instanceof s.gd&&e instanceof s.gd&&(e.text.value!==t.text.value||e.fontSize!==t.fontSize||e.font!==t.font||!ie(e.fontColor,t.fontColor)||!ie(e.backgroundColor,t.backgroundColor)||e.isBold!==t.isBold||e.isItalic!==t.isItalic||e.horizontalAlign!==t.horizontalAlign||e.verticalAlign!==t.verticalAlign||e.borderWidth!==t.borderWidth||e.borderStyle!==t.borderStyle)||(t instanceof s.Qi&&e instanceof s.Qi&&(!ie(t.color,e.color)||e.icon!==t.icon)||t instanceof s.On&&e instanceof s.On&&(e.blendMode!==t.blendMode||!ie(e.color,t.color)||e.rects!==t.rects)))))))))))}function re(e,t){return(null==e?void 0:e.readOnly)!==(null==t?void 0:t.readOnly)}function ie(e,t){return e instanceof h.Z&&t instanceof h.Z?e.equals(t):!(e instanceof h.Z||t instanceof h.Z)}function ae(e,t){if(e instanceof s.o9&&t instanceof s.o9){if(t.startPoint!==e.startPoint||t.endPoint!==e.endPoint)return!(t.startPoint.x-e.startPoint.x==t.boundingBox.left-e.boundingBox.left&&t.startPoint.y-e.startPoint.y==t.boundingBox.top-e.boundingBox.top)}else if((e instanceof s.om||e instanceof s.Hi)&&(t instanceof s.om||t instanceof s.Hi))return!(e.points.size===t.points.size&&e.points.every(((n,o)=>{const r=t.points.get(o);return(0,i.kG)(r&&n),r.x-n.x==t.boundingBox.left-e.boundingBox.left&&r.y-n.y==t.boundingBox.top-e.boundingBox.top})));return!1}function se(e,t,n){const{invalidAPStreams:o}=e();let r=!1,i=o.get(t.pageIndex);i&&(r=!!i.get(t.id)),n();const{invalidAPStreams:a,annotations:s}=e(),l=s.get(t.id);if(!l)return!r;let c=!1;return i=a.get(l.pageIndex),i&&(c=!!i.get(l.id)),!r&&c}function le(e,t,n){(0,i.kG)(e.backend);const{invalidAPStreams:o,historyIdsMap:r,isHistoryEnabled:a,backend:s}=e,l=t.get(n.pageIndex),c=o.get(n.pageIndex);return!a||"STANDALONE"!==(null==s?void 0:s.type)||l&&l.has(n.id)||!c||!c.has(n.id)?n:n.set("APStreamCache",{cache:r.get(n.id)||n.id})}function ce(e,t){(0,i.kG)(e.backend);const{historyIdsMap:n,isHistoryEnabled:o,backend:r}=e;return o&&"STANDALONE"===(null==r?void 0:r.type)?t.set("APStreamCache",{cache:n.get(t.id)||t.id}):t}const ue="#4636e3 solid 2px";function de(e){const{id:t,pdfObjectId:n}=e;return e=>e===(null==n?void 0:n.toString())||e===t}function pe(e,t){let{backend:n,annotations:o}=e;t.forEach((e=>{const t=o.get(e.id);t&&oe(t,e)&&(null==n||n.clearPageAPStreams(t.pageIndex,(0,r.l4)([t.id])))}))}function fe(e,t,n){let{backend:o,formFields:i}=e;t.forEach((e=>{const t=i.get(e.formFieldName);t&&re(t,n)&&(null==o||o.clearPageAPStreams(e.pageIndex,(0,r.l4)([e.id])))}))}const he=Object.freeze({CLOCKWISE:"CLOCKWISE",COUNTERCLOCKWISE:"COUNTERCLOCKWISE"});function me(e,t,n){const{rotation:o,boundingBox:r}=e,i=r.getCenter();let a=new s.E9({x:Math.max(0,i.x-r.height/2),y:Math.max(0,i.y-r.width/2)});a.x+r.height>t.width&&(a=a.set("x",t.width-r.height)),a.y+r.width>t.height&&(a=a.set("y",t.height-r.width));const l=e.set("boundingBox",r.withMutations((e=>{e.height=r.width,e.width=r.height,e.left=a.x,e.top=a.y})));if(n){const e=n===he.CLOCKWISE;switch(o){case 0:return l.set("rotation",e?270:90);case 90:return l.set("rotation",e?0:180);case 180:return l.set("rotation",e?90:270);case 270:return l.set("rotation",e?180:0)}}return l}function ge(e){return s.UL.union(e.map((e=>(0,y.o0)(e)?(0,y.az)(e).boundingBox:e.boundingBox)))}function ve(e,t){if(e instanceof s.x_)return"widget";if(Object.keys(f.Z).includes(e.constructor.readableName.toLowerCase()+"Annotation")){const n=function(e){if(e instanceof s.Jn)return f.Z.comment.id;const t=e.constructor.readableName.toLowerCase()+"Annotation";return f.Z[t].id}(e);return t(f.Z[n])}return e.constructor.readableName.toLowerCase()}function ye(e){return!(e instanceof s.UX&&e.isMeasurement())}},37015:(e,t,n)=>{"use strict";function o(e){const t=new FileReader;return new Promise(((n,o)=>{t.onerror=e=>{o(new Error(e))},t.onload=e=>{var t;n(new Uint8Array(null===(t=e.target)||void 0===t?void 0:t.result))},t.readAsArrayBuffer(e)}))}n.d(t,{V:()=>o})},47825:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=n(34997).SK},36095:(e,t,n)=>{"use strict";function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return e.indexOf("Trident/")>-1?"trident":e.indexOf("Edge/")>-1?"edge":e.indexOf("Chrome/")>-1?"blink":e.indexOf("AppleWebKit/")>-1?"webkit":e.indexOf("Gecko/")>-1?"gecko":"unknown"}function r(e,t){const n=new RegExp(` ${t}/(\\d+)\\.*`);let o;return(o=e.match(n))?Number(o[1]):0}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator.platform,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:navigator.maxTouchPoints;return t.indexOf("MacIntel")>-1&&n>1?"ios":e.indexOf("Win")>-1?"windows":e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1?"ios":e.indexOf("Mac")>-1?"macos":e.indexOf("Android")>-1?"android":e.indexOf("Linux")>-1?"linux":"unknown"}n.d(t,{By:()=>s,Dt:()=>m,G6:()=>c,Mn:()=>w,Ni:()=>l,SR:()=>a,TL:()=>h,V5:()=>S,b1:()=>b,b5:()=>g,fq:()=>p,i7:()=>d,rO:()=>f,vU:()=>u,yx:()=>v});const a=o(),s=i(),l=(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;switch(o(e)){case"trident":return r(e,"Trident");case"edge":return r(e,"Edge");case"blink":return r(e,"Chrome");case"webkit":return r(e,"Version");case"gecko":return r(e,"Firefox");default:;}}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o();return"ios"===e||"android"===e||v(t)}()),c="webkit"===a,u="gecko"===a,d="blink"===a,p="trident"===a,f="edge"===a,h="ios"===s||v(),m="android"===s,g=d&&m;function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o();return("undefined"==typeof window||!window.PSPDFKIT_PLAYWRIGHT_TEST)&&("webkit"===e&&"undefined"!=typeof TouchEvent)}let y;function b(){return void 0===y&&(y="ontouchstart"in window||navigator.maxTouchPoints>0),y}"undefined"!=typeof window&&(window.addEventListener("mousemove",(function e(){y=!1,window.removeEventListener("mousemove",e)})),window.addEventListener("pointermove",(function e(t){"mouse"!==t.pointerType&&"pen"!==t.pointerType||(y=!1),window.removeEventListener("pointermove",e)})));const w=!1,S=/Mac/i.test(navigator.platform)},10284:(e,t,n)=>{"use strict";n.d(t,{CM:()=>i,Kd:()=>a,Ss:()=>l,ev:()=>u,iR:()=>c,kR:()=>s,mi:()=>r,os:()=>d,uW:()=>p});var o=n(50974);function r(e,t){return(0,o.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.canReply||e.isCommentThreadRoot&&e.canReply}function i(e,t){return(0,o.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.isEditable||e.isEditable}function a(e,t){return(0,o.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.isDeletable||e.isDeletable}function s(e,t){return(0,o.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.isEditable||e.isEditable}function l(e,t){return(0,o.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.isDeletable||e.isDeletable}function c(e,t){return(0,o.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||"boolean"!=typeof e.isEditable||e.isEditable}function u(e,t){return(0,o.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||"boolean"!=typeof e.isDeletable||e.isDeletable}function d(e,t){return(0,o.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||"boolean"!=typeof e.isFillable||e.isFillable}function p(e,t){return(0,o.kG)(t.backend),!(!t.backend.isCollaborationPermissionsEnabled()||"boolean"!=typeof e.canSetGroup)&&e.canSetGroup}},62164:(e,t,n)=>{"use strict";n.d(t,{Y7:()=>p,_P:()=>v,dq:()=>h,kT:()=>m,kx:()=>d,nN:()=>g,oK:()=>f});var o=n(27515),r=n(71693),i=n(88804),a=n(91859),s=n(47710),l=n(87222),c=n(19815),u=n(97413);const d="The feature you're trying to use requires a comments license. Comments is a component of PSPDFKit for Web and sold separately.";function p(e){let{showComments:t,commentThreads:n,features:o,backend:r}=e;return t&&n.size>0&&(0,c.LC)({features:o,backend:r})}function f(e){let{showComments:t,features:n,backend:o}=e;return t&&(0,c.LC)({features:n,backend:o})}function h(e){if(!p(e))return null;const{viewportState:t}=e;return e.containerRect.width>a.xD?t.scrollMode!==s.G.PER_SPREAD&&t.scrollMode!==s.G.DISABLED||function(e,t){let{viewportState:n,pages:o,commentThreads:i}=e;return(0,r.P1)(n,(0,r.dF)(n,t)).some((e=>{const t=o.get(e);return!!t&&t.annotationIds.some((e=>i.has(e)))}))}(e,e.viewportState.currentPageIndex)?l._.SIDEBAR:null:e.selectedAnnotationIds.size>0&&e.selectedAnnotationIds.some((t=>!!e.commentThreads.get(t)))?l._.PANE:null}const m=e=>null==e.pageIndex;function g(e,t){const n=(0,r.dF)(t,e.pageIndex);let a=i.sl.IDENTITY;if(t.scrollMode===s.G.CONTINUOUS){const e=(0,r.e8)(t,n);a=a.translateY(e)}return a=(0,o._4)(a,t),e.boundingBox.apply(a).top}const v=(e,t)=>{let n=!1;const o=e.last();if(null!=o){const e=t.get(o);(0,u.k)(null!=e),n=m(e)}return n}},72643:(e,t,n)=>{"use strict";n.d(t,{AK:()=>u,Aq:()=>c,Gp:()=>l,Im:()=>h,Tl:()=>m,_v:()=>y,sz:()=>d,uB:()=>b,yK:()=>p,z8:()=>f});var o=n(35369),r=n(68218),i=n(88804),a=n(12671);n(60132);function s(e){return{textBlockId:e.id,anchor:(0,a.X$)(e.anchor),globalEffects:(0,a.uE)(e.globalEffects),externalControlState:(0,a.hH)(e)}}function l(e){const t=[];for(const n of e.pageStates.toList()){const e=new Map(n.textBlocks.map((e=>[e.id,e])));for(const o of n.initialTextBlocks)e.has(o.id)||t.push(s(o));for(const e of n.textBlocks){(!(0,o.is)(e.anchor,e.initialAnchor)||!(0,o.is)(e.globalEffects,e.initialGlobalEffects)||!(0,o.is)(e.layout,e.initialLayout)||e.version)&&t.push(s(e))}}return t}const c="The API you're trying to use requires a content editor license. Content editor is a component of PSPDFKit for Web and sold separately.";const u=[4,6,8,10,12,14,16,18,20,24,32,36,48,64,72,96,144,192,200];function d(e,t){return new r.UL({offset:new r.Sg({x:e.offset.x*t,y:e.offset.y*t}),size:new r.Sg({x:e.size.x*t,y:e.size.y*t})})}function p(e,t,n){return new r.UL({offset:new r.Sg({x:e.offset.x+t.x*n,y:e.offset.y+t.y*n}),size:e.size})}function f(e){let t="";for(const n of e)t+=n.text;return t}const h=0,m=1,g=e=>{switch(e){case"begin":case"justified":return h;case"end":return m;case"center":return.5}},v=(e,t,n)=>{const o=(e=>(new i.sl).rotateRad(e.rotation).scale(1,e.flipY?-1:1))(e),a=o.applyToVector([n*t,0]);return new r.Sg({x:a[0],y:a[1]})},y=(e,t,n)=>(t-g(e))*n,b=(e,t,n,o)=>{const r=g(e)-n;return v(t,r,o)}},80857:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(50974);const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(t,n){if(!t)throw new o.p2(""===e?n:`${e}: ${n}`)}}},7921:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r,k:()=>i});var o=n(35369);function r(e,t){let n;return function(){for(var o=arguments.length,r=new Array(o),i=0;i{n=null,e.apply(a,r)}),t)}}function i(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(0,o.aV)();function i(e){const t=r;r=r.clear(),e.then((e=>{t.forEach((t=>{t.resolve(e)}))})).catch((e=>{t.forEach((t=>{t.reject(e)}))}))}return function(){for(var o=arguments.length,a=new Array(o),s=0;s{t=null,i(e.apply(l,a))}),n),new Promise(((e,t)=>{r=r.push({resolve:e,reject:t})}))}}},91039:(e,t,n)=>{"use strict";n.d(t,{sM:()=>h,uF:()=>f,Zt:()=>m,jI:()=>p,tK:()=>w,w2:()=>g});var o=n(50974),r=n(19575),i=n(76367),a=n(64494),s=n(82481),l=n(60132),c=n(26248),u=n(37231);const d=["application/pdf","image/png","image/jpeg"];function p(e,t){if(t===a.W.IF_SIGNED&&e.status!==i._.not_signed)return!0;if(t===a.W.HAS_ERRORS&&e.status===i._.error)return!0;const n=e.status===i._.valid&&e.documentModifiedSinceSignature;return!(t!==a.W.HAS_WARNINGS||e.status!==i._.warning&&e.status!==i._.error&&!n)}function f(e){if("string"==typeof e)return r.Base64.encode(e);if(e instanceof ArrayBuffer)return h(e);throw(0,o.Rz)(e)}function h(e){let t="";const n=new Uint8Array(e),o=n.byteLength;for(let e=0;e{let{signatureFormFQN:n}=e;return n===t.formFieldName}))&&e.formFields.has(t.formFieldName))}function g(e,t){e&&t&&"STANDALONE"===t.type&&((0,o.kG)(void 0===e.placeholderSize||"number"==typeof e.placeholderSize,"`placeholderSize` must be a number."),(0,o.kG)(void 0===e.flatten||"boolean"==typeof e.flatten,"`flatten` must be a boolean."),(0,o.kG)(void 0===e.formFieldName||"string"==typeof e.formFieldName,"`formFieldName` must be a string."),(0,o.kG)(void 0===e.formFieldName||void 0===e.position,"`formFieldName` and `position` cannot be used together."),v(e.position),y(e.appearance),b(e.signatureMetadata),function(e){if(!e)return;(0,o.kG)(!e.signatureType||e.signatureType===c.BG.CMS||Array.isArray(e.certificates)&&e.certificates.length>0&&e.certificates.every((e=>Boolean(e instanceof ArrayBuffer&&e.byteLength>0||"string"==typeof e&&e.length>0))),"For signatures of type `PSPDFKit.SignatureType.CAdES` an `Array` of certificates must be provided in `signaturePreparationData.signingData.certificates`."),(0,o.kG)(void 0===e.privateKey||"string"==typeof e.privateKey&&e.privateKey.length>0,"`signingData.privateKey` must be a non-empty string if provided."),(0,o.kG)(Object.values(c.BG).includes(e.signatureType),`\`signingData.signatureType\` must be a valid \`PSPDFKit.SignatureType\` value. \`${e.signatureType}\` was provided instead.`)}(e.signingData))}function v(e){e&&((0,o.kG)("number"==typeof e.pageIndex,"`pageIndex` must be a number."),(0,o.kG)(e.boundingBox instanceof s.UL,"`boundingBox` must be a PSPDFKit.Geometry.Rect instance."))}function y(e){var t;e&&((0,o.kG)(void 0===e.mode||e.mode in u.H,"`mode` must be a valid PSPDFKit.SignatureAppearanceMode value."),(0,o.kG)(void 0===e.showSigner||"boolean"==typeof e.showSigner,"`showSigner` must be a boolean."),(0,o.kG)(void 0===e.showSignDate||"boolean"==typeof e.showSignDate,"`showSignDate` must be a boolean."),(0,o.kG)(void 0===e.showReason||"boolean"==typeof e.showReason,"`showReason` must be a boolean."),(0,o.kG)(void 0===e.showLocation||"boolean"==typeof e.showLocation,"`showLocation` must be a boolean."),(0,o.kG)(void 0===e.showWatermark||"boolean"==typeof e.showWatermark,"`showWatermark` must be a boolean."),(0,o.kG)(void 0===e.watermarkImage||"Blob"===e.watermarkImage.constructor.name||"File"===e.watermarkImage.constructor.name,"`image` must be a Blob or File."),(0,o.kG)(void 0===e.watermarkImage||d.includes(e.watermarkImage.type),`The image type must be one of the supported formats: ${d.join(", ")}, provided: ${null===(t=e.watermarkImage)||void 0===t?void 0:t.type}.`))}function b(e){e&&((0,o.kG)(void 0===e.signerName||"string"==typeof e.signerName,"`signerName` must be a string."),(0,o.kG)(void 0===e.signatureReason||"string"==typeof e.signatureReason,"`signatureReason` must be a string."),(0,o.kG)(void 0===e.signatureLocation||"string"==typeof e.signatureLocation,"`signatureLocation` must be a string."))}function w(e){var t,n,r,i;e&&((0,o.kG)(!("placeholderSize"in e)||"number"==typeof e.placeholderSize&&e.placeholderSize>0,`Invalid \`placeholderSize\` for signature preparation data. Must be of type \`number\` and greater than \`0\` if present. Provided: ${e.placeholderSize}.`),(0,o.kG)(!("flatten"in e)||"boolean"==typeof e.flatten,`Invalid \`flatten\` for signature preparation data. Must be of type \`boolean\` if present. Provided: ${e.flatten}.`),(0,o.kG)(!("signatureMetadata"in e)||"object"==typeof e.signatureMetadata,`Invalid \`signatureMetadata\` for signature preparation data. Must be of type \`object\` if present. Provided: ${e.signatureMetadata}.`),"signatureMetadata"in e&&b(e.signatureMetadata),(0,o.kG)(!("position"in e)||"object"==typeof e.position,`Invalid \`position\` for signature preparation data. Must be of type \`object\` if present. Provided: ${e.position}.`),"position"in e&&v(e.position),(0,o.kG)(!("appearance"in e)||"object"==typeof e.appearance,`Invalid \`appearance\` for signature preparation data. Must be of type \`object\` if present. Provided: ${e.appearance}.`),"appearance"in e&&y(e.appearance),(0,o.kG)(!("formFieldName"in e)||"string"==typeof e.formFieldName&&e.formFieldName.trim().length>0,`Invalid \`formFieldName\` for signature preparation data. Must be a non-empty \`string\` if present. Provided: ${e.formFieldName}.`),(0,o.kG)(!e.signingData||!("signatureContainer"in e.signingData)||(null===(t=e.signingData)||void 0===t?void 0:t.signatureContainer)&&Object.values(c.FR).includes(e.signingData.signatureContainer),`Invalid \`signingData.signatureContainer\`. Must be either \`raw\` or \`pkcs7\` if present. Provided: ${null===(n=e.signingData)||void 0===n?void 0:n.signatureContainer}.`),(0,o.kG)(!e.signingData||!("signatureType"in e.signingData)||(null===(r=e.signingData)||void 0===r?void 0:r.signatureType)&&Object.values(c.BG).includes(e.signingData.signatureType),`Invalid \`signingData.signatureType\`. Must be either \`CMS\` or \`CAdES\` if present. Provided: ${null===(i=e.signingData)||void 0===i?void 0:i.signatureType}.`))}},30761:(e,t,n)=>{"use strict";n.d(t,{D4:()=>xe,jX:()=>Se});var o=n(84121),r=n(30845),i=n(67366),a=n(35369),s=n(50974),l=n(30570),c=n(14012),u=n(96114),d=n(82481),p=n(83253),f=n(29165),h=n(20234),m=n(76192),g=n(95651),v=n(96846),y=n(15973);class b{constructor(e,t){this.annotationProvider=e,this.localAnnotationCallbacks=t}createBackendObject(e,t){return(0,s.kG)(!(e instanceof y.Hu),"Media annotations cannot be created nor updated, only deleted."),!this.annotationProvider.canCreateBackendOrphanWidgets&&e instanceof d.x_?Promise.resolve():this.annotationProvider.createAnnotation(e,(null==t?void 0:t.attachments)||(0,a.D5)())}updateBackendObject(e,t){return(0,s.kG)(!(e instanceof y.Hu),"Media annotations cannot be created nor updated, only deleted."),this.annotationProvider.updateAnnotation(e,(null==t?void 0:t.attachments)||(0,a.D5)())}deleteBackendObject(e){return this.annotationProvider.deleteAnnotation(e)}createStoreObjects(e,t){this.localAnnotationCallbacks.createAnnotations(e,(null==t?void 0:t.attachments)||(0,a.D5)())}updateStoreObjects(e){this.localAnnotationCallbacks.updateAnnotations(e)}deleteStoreObjects(e){this.localAnnotationCallbacks.deleteAnnotations(e)}validateObject(e){return(0,g.bz)(e)}getObjectById(e){return this.localAnnotationCallbacks.getAnnotationById(e)}getObjectId(e){return e.id}refresh(){this.localAnnotationCallbacks.refreshSignaturesInfo()}syncChanges(){return this.annotationProvider.syncChanges()}}class w extends v.a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.u.IMMEDIATE,o=arguments.length>3?arguments[3]:void 0;super(new b(e,t),n,o),this.annotationProvider=e}loadAnnotationsForPageIndex(e){return this.annotationProvider.loadAnnotationsForPageIndex(e)}}var S=n(1053);class E{constructor(e,t){(0,o.Z)(this,"localBookmarks",(0,a.D5)()),(0,o.Z)(this,"onCreate",(e=>{this.localBookmarks=this.localBookmarks.set(e.id,e)})),(0,o.Z)(this,"onUpdate",(e=>{this.onCreate(e)})),(0,o.Z)(this,"onDelete",(e=>{this.localBookmarks=this.localBookmarks.delete(e.id)})),this.bookmarkProvider=e,this.localBookmarkCallbacks=t}createBackendObject(e){return this.bookmarkProvider.createBookmark(e)}updateBackendObject(e){return this.bookmarkProvider.updateBookmark(e)}deleteBackendObject(e){return this.bookmarkProvider.deleteBookmark(e.id)}createStoreObjects(e){this.localBookmarks=this.localBookmarks.withMutations((t=>{e.forEach((e=>{t.set(e.id,e)}))}))}updateStoreObjects(e){this.createStoreObjects(e)}deleteStoreObjects(e){this.localBookmarks=this.localBookmarks.withMutations((t=>{e.forEach((e=>{t.delete(e)}))}))}validateObject(e){if(!e.id||"string"!=typeof e.id)return!1;try{return(0,S.G)(e),!0}catch(e){return!1}}getObjectById(e){return this.localBookmarks.get(e)}getObjectId(e){return e.id}refresh(){this.localBookmarkCallbacks.refreshSignaturesInfo()}syncChanges(){return this.bookmarkProvider.syncChanges()}}class P extends v.a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.u.IMMEDIATE,r=arguments.length>3?arguments[3]:void 0;super(new E(e,t),n,r),(0,o.Z)(this,"getBookmarks",function(){let e=null;return async function(){return e||(e=this.bookmarkProvider.loadBookmarks()),await e,this.getLocalBookmarks()}}()),this.bookmarkProvider=e}getLocalBookmarks(){return this._callbacks.localBookmarks}}var x=n(8503),D=n(11863);class C{constructor(e,t){(0,o.Z)(this,"localComments",(0,a.D5)()),(0,o.Z)(this,"onCreate",(e=>{(0,s.kG)(e.id),this.localComments=this.localComments.set(e.id,e)})),(0,o.Z)(this,"onUpdate",(e=>{this.onCreate(e)})),(0,o.Z)(this,"onDelete",(e=>{(0,s.kG)(e.id),this.localComments=this.localComments.delete(e.id)})),this.commentProvider=e,this.localCommentCallbacks=t}createBackendObject(e,t){return this.commentProvider.createComment(e,t.comments,t.annotations)}updateBackendObject(e,t){return this.commentProvider.updateComment(e,t.comments,t.annotations)}deleteBackendObject(e,t){return(0,s.kG)(e.id),this.commentProvider.deleteComment(e.id,t.comments,t.annotations)}createStoreObjects(e){this.localComments=this.localComments.withMutations((t=>{e.forEach((e=>{(0,s.kG)(e.id),t.set(e.id,e)}))})),this.localCommentCallbacks.createComments(e)}updateStoreObjects(e){this.localComments=this.localComments.withMutations((t=>{e.forEach((e=>{(0,s.kG)(e.id),t.set(e.id,e)}))})),this.localCommentCallbacks.updateComments(e)}deleteStoreObjects(e){this.localComments=this.localComments.withMutations((t=>{e.forEach((e=>{t.delete(e)}))})),this.localCommentCallbacks.deleteComments(e)}validateObject(e){try{return(0,D.Gu)(e),!0}catch(e){return!1}}getObjectById(e){return this.localComments.get(e)}getObjectId(e){return(0,s.kG)(e.id),e.id}refresh(){this.localCommentCallbacks.refreshSignaturesInfo()}syncChanges(){return this.commentProvider.syncChanges()}}class k extends v.a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.u.IMMEDIATE,o=arguments.length>3?arguments[3]:void 0;super(new C(e,t),n,o),this.commentProvider=e}async loadComments(){let e=null;e||(e=this.commentProvider.loadComments?this.commentProvider.loadComments():Promise.resolve()),await e}}var A=n(11032);class O{constructor(e,t){this.formFieldValueProvider=e,this.localFormFieldValueCallbacks=t}createBackendObject(e){return this.formFieldValueProvider.createFormFieldValue(e)}updateBackendObject(e){return this.formFieldValueProvider.setFormFieldValue(e)}deleteBackendObject(e){return this.formFieldValueProvider.deleteFormFieldValue((0,A.X)(e))}createStoreObjects(e){this.localFormFieldValueCallbacks.createFormFieldValues(e)}updateStoreObjects(e){this.localFormFieldValueCallbacks.setFormFieldValues(e)}deleteStoreObjects(e){this.localFormFieldValueCallbacks.deleteFormFieldValues(e)}getObjectById(){return null}getObjectId(e){return e.name}validateObject(){return!0}refresh(){this.localFormFieldValueCallbacks.refreshSignaturesInfo()}syncChanges(){return this.formFieldValueProvider.syncChanges()}}class T extends v.a{_getSupportedEvents(){return[...super._getSupportedEvents(),"willSubmit","didSubmit"]}constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.u.IMMEDIATE,o=arguments.length>3?arguments[3]:void 0;super(new O(e,t),n===m.u.INTELLIGENT?m.u.IMMEDIATE:n,o)}createObject(e){const t=this.lockSave();try{this._saveModeQueue.createObject(this._createSaveQueueObject(e.name,e)),this._createdObjects=this._createdObjects.set(e.name,e)}finally{t()}}updateObject(e){const t=this.lockSave();try{this._saveModeQueue.updateObject(this._createSaveQueueObject(e.name,e)),this._updatedObjects=this._updatedObjects.set(e.name,e)}finally{t()}}deleteObject(e){const t=this.lockSave();try{this._saveModeQueue.deleteObject(this._createSaveQueueObject(e.name,e)),this._deletedObjects=this._deletedObjects.set(e.name,(0,A.X)(e))}finally{t()}}}var I=n(69939),F=n(41194),M=n(19815),_=n(97528),R=n(51333),N=n(92234),L=n(31835),B=n(97333),j=n(60619),z=n(55909),K=n(80857),Z=n(68250),U=n(10284),V=n(60132);const G=(0,K.Z)("Forms"),W=(0,s.Tr)("Forms");class q extends Z.I{constructor(e,t){super(t().formFieldValueManager),this.dispatch=e,this.getState=t}async create(e){throw W(`Can't create ${e.toString()}. Form field values creation is not supported.`)}async update(e){const{formFields:t,features:n,formsEnabled:o}=this.getState(),r=this.getState();return G(n.includes(V.q.FORMS),z.DR),G(o,z.BZ),G(r.backend),e.map((e=>{const n=t.get(e.name);if(G(n,`Tried to set the form field value for form field \`${e.name}\` which does not exist.`),!(0,U.os)(n,r))throw new s.p2("You don't have permission to update this form field value.");return this.dispatch((0,u.xh)([{name:e.name,value:e.value,optionIndexes:e.optionIndexes}])),e}))}async delete(e){return e.map((e=>{throw W(`Can't delete ${e.toString()}. Form field values deletion is not supported.`)}))}async ensureChangesSaved(e){G("string"==typeof e.name,"The form field value you passed to Instance.ensureChangesSaved() has no name.");const{formFieldValueManager:t}=this.getState();return G(t),await t.ensureObjectSaved(e)}}var H=n(47825),$=n(51269);const Y=(0,K.Z)("Bookmarks");class X extends Z.I{constructor(e,t){super(t().bookmarkManager),this.dispatch=e,this.getState=t}async create(e){const t=this.getState(),{bookmarkManager:n}=t,o=e.map((e=>{const t=e.id;Y(n),"string"==typeof t&&n.getLocalBookmarks()&&Y(!n.getLocalBookmarks().has(t),`Bookmark with id (${t}) is already used.`);const o="string"==typeof e.id&&e.id.length>0?e:e.set("id",(0,H.A)());return(0,S.G)(o),n.createObject(o),n.autoSave(),o}));return(0,$.s)(o)}async update(e){const{bookmarkManager:t}=this.getState();Y(t);const n=e.map((e=>(Y("string"==typeof e.id,"The bookmark you passed to Instance.update() has no id.\nPlease use Instance.create() first to assign an id."),(0,S.G)(e),t.updateObject(e),t.autoSave(),e)));return(0,$.s)(n)}async delete(e){const t=this.getState(),{bookmarkManager:n}=t,o=await(null==n?void 0:n.getBookmarks());Y(n);const r=e.map((e=>{Y("string"==typeof e.id,"The supplied bookmark id is not a valid id.");const t=null==o?void 0:o.get(e.id);return Y(t,`No bookmark with id ${e.id} found.`),n.deleteObject(e),n.autoSave(),t}));return(0,$.s)(r)}async getObjectById(e){const{bookmarkManager:t}=this.getState();if(!t)return null;return(await t.getBookmarks()).get(e)}async ensureChangesSaved(e){Y("string"==typeof e.id,"The bookmark you passed to Instance.ensureChangesSaved() has no valid id.\nPlease use Instance.create() first to assign an id.");const{bookmarkManager:t}=this.getState();return Y(t),await t.ensureObjectSaved(e)}}var J=n(34997),Q=n(62164);const ee=(0,K.Z)("Comments"),te=J.SK;class ne extends Z.I{constructor(e,t){super(t().commentManager),this.dispatch=e,this.getState=t}async create(e,t){const n=this.getState(),o=e.map((e=>{oe(n);const o=e.id;"string"==typeof o&&ee(!n.comments.has(o),`Comment id (${o}) is already used.`),ee(e.rootId,"Comment does not have `rootId`");const r=n.annotations.get(e.rootId)||(t?function(e,t){return e.find((e=>e instanceof y.q6&&e.id===t))}(t,e.rootId):null);if(ee(r,`Comment orphan: The comment can't be created because no comment thread root was found with the id '${e.rootId}'. Please ensure that you create the corresponding annotation together with the comment via instance.create([comment, commentThreadRootAnnotation]).`),ee(r instanceof y.Jn||r instanceof y.On,`The comment can't be created because its root has wrong type. Was '${r.constructor.name}', only 'CommentMarkerAnnotation' and 'TextMarkupAnnotation' are supported as comment thread roots.`),ee(!e.pageIndex||e.pageIndex===r.pageIndex,`The comment can't be created on different page (${e.pageIndex}) than the comment root (${r.pageIndex}).`),!(0,U.mi)(r,n))throw new s.p2("You are not allowed to reply to this thread.");const{annotationCreatorName:i,annotationCreatorNameReadOnly:a}=n;if(e.creatorName&&e.creatorName!==i&&a)throw new s.p2("The comment creator name is different from the one set on the JWT.");const l=e.withMutations((t=>{const o=new Date;t.set("id",te()).set("creatorName",n.annotationCreatorName).set("createdAt",o).set("updatedAt",o).set("pageIndex",r.pageIndex),ee(n.backend),n.backend.isCollaborationPermissionsEnabled()&&!t.group&&n.group!==n.backend.getDefaultGroup()&&t.merge({group:n.group}),["id","creatorName","createdAt","updatedAt"].map((n=>e[n]&&t.set(n,e[n])))}));return(0,D.Gu)(l),l}));return(0,i.dC)((()=>{o.forEach((e=>{e instanceof Error||(this.dispatch((0,R.Jr)(e)),this.autoSave())}))})),(0,$.s)(o)}async update(e){const t=this.getState(),n=e.map((e=>{var n;oe(t),ee("string"==typeof e.id,"The comment you passed to Instance.update() has no id.\nPlease use Instance.create() first to assign an id.");const o=t.comments.get(e.id);ee(o,"An comment that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\n The update of this comment was skipped."),null!==(n=t.backend)&&void 0!==n&&n.isCollaborationPermissionsEnabled()||o.group===e.group&&e.isEditable===o.isEditable&&e.isDeletable===o.isDeletable&&e.canSetGroup===o.canSetGroup||(e=e.set("group",o.group).set("isEditable",o.isEditable).set("isDeletable",o.isDeletable).set("canSetGroup",o.canSetGroup),(0,s.ZK)("`group`, `isEditable`, `isDeletable` and `canSetGroup` are only relevant when Collaboration Permissions are enabled in server backed setup. You do not have it enabled so these values are set to `undefined`."));if(!e.delete("group").equals(o.delete("group"))&&!(0,U.kR)(o,t))throw new s.p2("You don't have permission to update this comment.");if(e.group!==o.group&&!(0,U.uW)(e,t))throw new s.p2("You don't have permission to update the `group` of this comment.");if(e.isEditable!==o.isEditable||e.isDeletable!==o.isDeletable||e.canSetGroup!==o.canSetGroup)throw new s.p2("You can't update `isEditable` or `isDeletable` since they are read only properties which depend on the `group` property.");if(e.creatorName!==o.creatorName&&t.annotationCreatorNameReadOnly)throw new s.p2("You can't change the creatorName of a comment if it was already set on the JWT.");if(e.rootId!==o.rootId)throw new s.p2("You can't change the root id of a comment once it has been created.");const r=e.set("updatedAt",new Date);return(0,D.Gu)(r),r}));return(0,i.dC)((()=>{n.forEach((e=>{e instanceof Error||(this.dispatch((0,R.V4)(e)),this.autoSave())}))})),(0,$.s)(n)}async delete(e){const t=this.getState();oe(t);const n=e.map((e=>{ee(e.id);const n=t.comments.get(e.id);if(ee(n,`No comment with id ${e.id} found.`),!(0,U.Ss)(n,t))throw new s.p2("You don't have permission to delete this comment.");return n}));return(0,i.dC)((()=>{n.forEach((e=>{e instanceof Error||(this.dispatch((0,R.UM)(e)),this.autoSave())}))})),(0,$.s)(n)}async ensureChangesSaved(e){oe(this.getState()),ee("string"==typeof e.id,"The comment you passed to Instance.ensureChangesSaved() has no id.\nPlease use Instance.create() first to assign an id.");const{commentManager:t}=this.getState();return ee(t),await t.ensureObjectSaved(e)}async getObjectById(e){ee("string"==typeof e,"The supplied id is not a valid id.");const{comments:t,features:n}=this.getState();return n.includes(V.q.COMMENTS)?t.get(e):null}}function oe(e){const{features:t,backend:n}=e;ee(t.includes(V.q.COMMENTS),Q.kx),ee((0,M.xr)(n),"The API you're trying to use is only available when using the PSPDFKit Instant or PSPDFKit for Web Standalone.")}var re=n(71652);const ie=(0,s.Tr)("Changes");class ae{constructor(e){this.annotation=e.annotation,this.bookmark=e.bookmark,this.comment=e.comment,this.formField=e.formField,this.formFieldValue=e.formFieldValue}toArray(){return[this.annotation,this.bookmark,this.comment,this.formField,this.formFieldValue].filter(Boolean)}forEach(e){this.toArray().forEach(e)}map(e){return this.toArray().map(e)}}class se{constructor(e,t,n,r){(0,o.Z)(this,"_prevHasUnsavedChanges",!1),(0,o.Z)(this,"eventEmitter",new L.Z(["saveStateChange"])),this._dispatch=e,this._getState=t,n&&(this.handlers=new ae(n)),r&&(this.eventEmitter=r)}connect(){const e=this._getState();if(this._backend=e.backend,!this.handlers){const e={};e.annotation=new j.Nk(this._dispatch,this._getState),e.bookmark=new X(this._dispatch,this._getState),e.formField=new z.fu(this._dispatch,this._getState),e.formFieldValue=new q(this._dispatch,this._getState),e.comment=new ne(this._dispatch,this._getState),this.handlers=new ae(e)}this.handlers.forEach((e=>{const t=e.getEventEmitter();t&&t.supportsEvent("saveStateChange")&&t.on("saveStateChange",(()=>this._onSaveStateChanged()))}))}save(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.hasUnsavedChanges())return Promise.resolve();const t=this.handlers.map((e=>e.manualSave(!1)));return e&&t.push(this._backend.syncChanges().catch(le)),(0,B.jK)(t).then((()=>{})).catch((t=>{const n=e?t.pop():null,o=t.filter(Boolean).map((e=>{if(e instanceof re.V)return e.reason})).filter(Boolean),r=(0,a.aV)(o).flatMap((e=>e)).toArray();throw(0,re.h)(r,Boolean(n),n?n.message:null)}))}hasUnsavedChanges(){return this.handlers.map((e=>e.hasUnsavedChanges())).some(Boolean)}_onSaveStateChanged(){const e=this.hasUnsavedChanges();this._prevHasUnsavedChanges!==e&&(this._prevHasUnsavedChanges=e,this.eventEmitter.emit("saveStateChange",{hasUnsavedChanges:e}))}async create(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._performChanges(e,((n,o)=>n.create(o,t?e:null)))}async update(e){return this._performChanges(e,((t,n)=>t.update(n,e)))}_changesForHandler(e,t){return t.filter((t=>this._handlerForChange(t)===e))}async delete(e){const t=e.map((()=>ie("Unsupported change type"))),n=await(0,B.jK)(e.map((async(e,n)=>{if(e){if("string"==typeof e){for(const t of this.handlers.toArray()){const n=await t.getObjectById(e);if(n)return n}t[n]=ie(`No object with id '${e}' found.`)}}else t[n]=ie("The supplied id is not a valid id");return e})));return this._performChanges(n,((e,t)=>e.delete(t)),t)}ensureChangesSaved(e){const t=e.map((e=>{const t=this._handlerForChange(e);return t?t.ensureChangesSaved(e):Promise.reject(ie("Unsupported change type"))}));return(0,B.jK)(t)}async _performChanges(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.map((()=>ie("Unsupported change type")));const o=[],r=this.handlers.map((e=>e.lockSave()));try{let n=null;(0,i.dC)((()=>{n=this.handlers.map((async(n,r)=>{const i=this._changesForHandler(n,e);if(i.length)try{o[r]=await t(n,i)}catch(e){o[r]=e}}))})),n&&await(0,B.jK)(n)}finally{r.forEach((e=>{e()}))}const a=await this._mapResultsToChanges(e,o,n);return a.some((e=>e instanceof Error))?Promise.reject(a):Promise.resolve(a)}async _mapResultsToChanges(e,t,n){const o=n;for(const[n,r]of this.handlers.map((e=>e)).entries()){const i=await this._changesForHandler(r,e),a=t[n];i.length&&i.forEach(((t,n)=>{const r=e.findIndex((e=>e===t));var i;a instanceof Error?o[r]=a:o[r]=null!==(i=a[n])&&void 0!==i?i:a}))}return o}_handlerForChange(e){switch(!0){case e instanceof y.q6:return this.handlers.annotation;case e instanceof S.Z:return this.handlers.bookmark;case e instanceof d.sv:return this.handlers.comment;case e instanceof d.Wi:return this.handlers.formField;case e instanceof d.KD:return this.handlers.formFieldValue;default:return null}}}function le(e){throw ie(e),e}var ce=n(16126),ue=n(76367),de=n(67699),pe=n(25387),fe=n(38858);const he="rollover",me="down";var ge=n(5038),ve=n(63738),ye=n(44763);function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function we(e){for(var t=1;t{A.call(null,e)})),n.setDocumentHandleOutdated((t=>{e((0,h.KY)(t))})),n.setFormsEnabledInConfig(O),n.setStateGetter(t)}else if("SERVER"===D.type&&U&&m&&v){if(!(0,M.xW)(m,v)){const e=U.fields.filter((e=>"pspdfkit/form-field/signature"===e.type)).map((e=>e.name));U.annotations=U.annotations.filter((t=>!e.includes(t.formFieldName))),U.fields=U.fields.filter((t=>!e.includes(t.name))),L.setIgnoredFormFieldNames((0,a.aV)(e))}}const G={refreshSignaturesInfo:async()=>{const{digitalSignatures:n}=t();m&&m.includes("digital_signatures")&&n&&n&&n.status!==ue._.not_signed&&!1===n.documentModifiedSinceSignature&&(await D.refreshSignaturesInfo(),e((0,F.Y)(await D.getSignaturesInfo())))}},W=we(we({},G),{},{createAnnotations:(t,n)=>{n&&n.forEach(((t,n)=>{e((0,f.O)(n,t))})),e((0,N.pB)(de.j.EXTERNAL,(()=>{e((0,I.lA)(t))})))},updateAnnotations:t=>{e((0,N.pB)(de.j.EXTERNAL,(()=>{e((0,I.Zr)(t))})))},deleteAnnotations:t=>{e((0,N.pB)(de.j.EXTERNAL,(()=>{e((0,I.aF)(t))})))},getAnnotationById:e=>t().annotations.get(e)}),q=z&&(0,M.k_)(D)?we(we({},G),{},{createFormFields:t=>{e((0,u.TD)(t))},updateFormFields:t=>{e((0,u.C2)(t)),e((0,u.xW)(t.map((e=>new d.KD({name:e.name,value:e.value})))))},deleteFormFields:t=>{e((0,u.M$)(t))},getFormFieldByName:e=>t().formFields.get(e)}):null,H=we(we({},G),{},{createFormFieldValues:t=>e((0,u.zq)(t)),setFormFieldValues:t=>e((0,u.xW)(t)),deleteFormFieldValues:t=>e((0,u.HE)(t))}),$=(0,M.xr)(D),Y=$?we(we({},G),{},{createComments:t=>{e((0,R.fg)(t))},updateComments:t=>{e((0,R.gk)(t))},deleteComments:t=>{e((0,R.Vn)(t))}}):null,X=we({},G),J=t(),Q=new w(L,W,C,J.annotationManager&&J.annotationManager.eventEmitter),ee=new P(L,X,C,J.bookmarkManager&&J.bookmarkManager.eventEmitter),te=z&&q&&(0,M.k_)(D)?new x.c(L,q,C,J.formFieldManager&&J.formFieldManager.eventEmitter):null,ne=new T(L,H,C,J.formFieldValueManager&&J.formFieldValueManager.eventEmitter);let oe;$&&((0,s.kG)(null!=Y),oe=new k(L,Y,C,J.commentManager&&J.commentManager.eventEmitter));const re=(0,r.Z)(g.xp),ie=(0,r.Z)(ce.ET),ae={getPageContentState:e=>{const{pages:n,annotations:o,formFields:r}=t(),i=n.get(e);return(0,s.kG)(i),{pageSize:i.pageSize,annotations:re(o,i),formFields:ie(r,i)}},getZoomState:()=>t().viewportState.zoomLevel,getAnnotationWithFormField:e=>{const{annotations:n,formFields:o}=t(),r=n.get(e);return{annotation:r,formField:r instanceof d.x_&&r.formFieldName?o.get(r.formFieldName):null}},getFormFieldWidgets:e=>{const{annotations:n}=t(),{annotationIds:o}=e;return n.filter(((t,n)=>e.annotationIds.includes(n)||e.annotationIds.includes(String(t.pdfObjectId)))).toList().sort(((e,t)=>o.indexOf(e.id)t().formFields.get(e),isFormDesignerEnabled:()=>(0,M.ix)(t()),isAnnotationInState:e=>t().annotations.has(e),isFormFieldInState:e=>t().formFields.has(e),getAvailableVariants:e=>{const{APStreamVariantsRollover:n,APStreamVariantsDown:o}=t();if(null==e.pdfObjectId)return[];const r=[];return n.has(e.pdfObjectId)&&r.push(he),o.has(e.pdfObjectId)&&r.push(me),r}},le={createAnnotations:(e,t,n)=>{Q.backendObjectsCreated(e,n,{attachments:t})},updateAnnotations:Q.backendObjectsUpdated.bind(Q),deleteAnnotations:Q.backendObjectsDeleted.bind(Q),invalidateAPStreams:t=>e((0,I.GI)(t)),createAttachment:(t,n)=>{e((0,f.O)(t,new d.Pg({data:n})))},addAnnotationVariants:(t,n)=>{e((0,I.mw)(t,n))},applyJavaScriptActionChanges:t=>{e((0,u.bt)(t))}},pe={createBookmarks:ee.backendObjectsCreated.bind(ee),updateBookmarks:ee.backendObjectsUpdated.bind(ee),deleteBookmarks:ee.backendObjectsDeleted.bind(ee)},ge=z&&te instanceof x.c&&(0,M.k_)(D)?{createFormFields:te.backendObjectsCreated.bind(te),updateFormFields:te.backendObjectsUpdated.bind(te),deleteFormFields:te.backendObjectsDeleted.bind(te)}:null,be={createFormFieldValues:(e,t)=>{t===p.y?z&&ne.backendObjectsCreated(e,t):t===p.z&&Z&&ne.backendObjectsCreated(e,t)},setFormFieldValues:e=>{K&&ne.backendObjectsUpdated(e)},deleteFormFieldValues:e=>{Z&&ne.backendObjectsDeleted(e)}};let Se;$&&((0,s.kG)(null!=oe),Se={createComments:oe.backendObjectsCreated.bind(oe),updateComments:oe.backendObjectsUpdated.bind(oe),deleteComments:oe.backendObjectsDeleted.bind(oe)});const Ee=new se(e,t,null,J.changeManager&&J.changeManager.eventEmitter),Pe={attemptedUnlockViaModal:o,hasPassword:y,features:m,signatureFeatureAvailability:v,permissions:B,documentInfo:j,formJSON:U,annotationManager:Q,bookmarkManager:ee,formFieldManager:te,formFieldValueManager:ne,commentManager:oe,changeManager:Ee,minSearchQueryLength:b,documentHandle:D.getDocumentHandle(),allowedTileScales:S,pageKeys:E};let xe=null;(0,i.dC)((function(){e((0,c.rJ)(Pe)),L.setReadStateCallbacks(ae),L.setAnnotationCallbacks(le),L.setBookmarkCallbacks(pe),L.setFormFieldValueCallbacks(be),$&&((0,s.kG)(null!=Se),L.setCommentCallbacks(Se)),z&&(0,M.k_)(D)&&((0,s.kG)(ge),L.setFormFieldCallbacks(ge)),Ee.connect(),xe=L.load()}));try{await xe,await new Promise(((t,n)=>{("visible"===document.visibilityState?requestAnimationFrame:setTimeout)((()=>{D.lazyLoadPages().then((o=>{const r=[];o&&e((0,fe.uM)(o)),z&&(0,M.k_)(D)&&te&&r.push(te.loadFormFields()),(0,s.kG)(m,"Features should be defined at this point"),(0,M.xr)(D)&&(0,M.LC)({features:m,backend:D})&&oe&&r.push(oe.loadComments()),(0,M.YN)({features:m,backend:D})&&r.push(async function(e){var t;let{backend:n,dispatch:o}=e;const r=await(null===(t=n.getSecondaryMeasurementUnit)||void 0===t?void 0:t.call(n));r&&o((0,ye.VO)(r));const i=await n.getMeasurementScales();i&&o((0,ve.RN)(i?(0,l.Ex)(i):null))}({backend:D,dispatch:e})),r.length>0?Promise.all(r).then((()=>t())).catch(n):t()})).catch((e=>{n(e)}))}))}))}catch(e){throw e}}function Pe(e){return{type:pe.UX$,state:e}}function xe(e,t,n,o){let r;if("string"==typeof t){if(n===ge.x.SharePoint){const n=new URL(t,e),[o,r]=n.hostname.split(".").reverse();if("sharepoint"!==r||"com"!==o)throw new s.p2(`When using SharePoint, the document URL must be a sharepoint.com URL: it's ${r}.${o} instead.`)}if(n===ge.x.Salesforce){const t=new URL(e),[n,o]=t.hostname.split(".").reverse();if("salesforce"!==o&&"force"!==o&&"visualforce"!==o||"com"!==n)throw new s.p2(`When using Salesforce, the SDK must be loaded from a Salesforce URL: it's ${o}.${n} instead.`)}r=fetch(t,{credentials:"same-origin"}).then((e=>e.arrayBuffer())).finally((()=>{null==o||o()}))}else r=t;return r}},51559:(e,t,n)=>{"use strict";n.d(t,{RG:()=>c,SH:()=>h,bZ:()=>d,h6:()=>m,mr:()=>p,nN:()=>u,rh:()=>f});var o=n(35369),r=n(50974),i=n(60132),a=n(52560),s=n(28098),l=n(55024);function c(e){var t;return"STANDALONE"===(null===(t=e.backend)||void 0===t?void 0:t.type)&&e.features.includes(i.q.DOCUMENT_COMPARISON)}const u="You need the document comparison license component to use this feature.",d="The document comparison feature is only available in Standalone mode.",p=(e,t)=>(0,a.cq)(e.set("currentPageIndex",0).set("pageSizes",(0,o.aV)([t.pageSize])),s.c.FIT_TO_WIDTH);async function f(e){const t=await e;if("string"==typeof t){let e;try{e=fetch(t).then((e=>e.arrayBuffer()))}catch(e){(0,r.vU)(e)}return e}if(t instanceof ArrayBuffer)return t;throw new r.p2("Comparison document source is not a URL nor an ArrayBuffer")}const h=e=>e===l.Q.documentA?l.Q.documentA:e===l.Q.documentB?l.Q.documentB:l.Q.result,m=[[[0,0],[0,0]],[[0,0],[0,0]],[[0,0],[0,0]]]},4054:(e,t,n)=>{"use strict";n.d(t,{Aw:()=>d,Cz:()=>k,N1:()=>v,PF:()=>D,Qu:()=>p,R4:()=>h,R9:()=>f,_c:()=>x,_s:()=>S,ar:()=>m,cR:()=>E,eR:()=>g,f:()=>c,fp:()=>b,gC:()=>y,o5:()=>u,sR:()=>C});var o=n(50974),r=n(92466),i=n(36095),a=n(71231),s=n(38006),l=n.n(s);function c(e){return function(e){e&&i.vU&&e.scrollHeight}(e),function(e){return e.scrollHeight>e.clientHeight}(e)||u(e)}function u(e){return e.scrollWidth>e.clientWidth}function d(e){const t=e?e.document:document,n=t.createElement("iframe"),{documentElement:r}=t;return(0,o.kG)(r),n.title="script",n.style.position="absolute",n.style.top="-10000px",n.style.left="-10000px",n.style.width="10000px",n.style.height="10000px",n.setAttribute("aria-hidden","true"),r.appendChild(n),{window:n.contentWindow,remove(){r.removeChild(n)}}}function p(e){let t;if(!e.nodeName)return!1;const n=e.nodeName,o=e.hasAttribute("tabindex")&&parseInt(e.getAttribute("tabindex")),r=!isNaN(o)&&isFinite(o)&&"boolean"!=typeof o;if(/^(IFRAME|LABEL|DATALIST|INPUT|SELECT|TEXTAREA|BUTTON|OBJECT)$/.test(n)){if(t=!e.disabled,t){const n=e.closest("fieldset");n&&(t=!n.disabled)}}else t="A"===n?e.href||r:e.hasAttribute("contenteditable")&&"true"===e.getAttribute("contenteditable")||r;return!!t}const f=async e=>{let{buffer:t,width:n,height:o,format:r=(0,a.zP)()}=e;if("bitmap"===r)return(async e=>{let{buffer:t,width:n,height:o}=e;const r=document.createElement("canvas");r.width=n,r.height=o;const i=new Uint8ClampedArray(t),a=r.getContext("2d"),s=null==a?void 0:a.createImageData(n,o);return null==s||s.data.set(i),null==a||a.putImageData(s,0,0),h(await x(r))})({buffer:t,width:n,height:o});return h(new Blob([t],{type:`image/${r}`}))};function h(e){return m(URL.createObjectURL(e))}async function m(e){const t=new Image;return t.onerror=e=>{throw new o.p2(`There was an error loading the image: ${e.message}`)},t.src=e,await C(t),new r.Z(t,(()=>URL.revokeObjectURL(e)))}function g(e){return!(!e||1!==e.nodeType)&&("true"===e.contentEditable||"INPUT"===e.nodeName||"TEXTAREA"===e.nodeName)}function v(e){return!(!e||1!==e.nodeType)&&Boolean(e.attributes.role&&"listbox"===e.attributes.role.value||e.attributes.role&&"menu"===e.attributes.role.value)}function y(e){if(!e||1!==e.nodeType)return!1;const t=e.ownerDocument.querySelector(".PSPDFKit-Toolbar"),n=e.ownerDocument.querySelector(".PSPDFKit-Annotation-Toolbar");return Boolean(t&&t.contains(e)||n&&n.contains(e))}function b(e){return!(!e||1!==e.nodeType)&&Boolean(e.closest(".PSPDFKit-Toolbar-Responsive-Group"))}let w=!1;{let e=document.createElement("div");const t=()=>{};try{e.addEventListener("focus",t,!0),e.focus(Object.defineProperty({},"preventScroll",{get:()=>{w=!0}}))}catch(e){w=!1}finally{e.removeEventListener("focus",t),e=null}}function S(e,t){w&&t.focus({preventScroll:!0})}function E(e,t){const n=t.HTMLAnchorElement.prototype.hasOwnProperty("download"),o=new Blob([e],{type:"application/pdf"});if("function"==typeof navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(o,"download.pdf");else if(n){const e=window.URL.createObjectURL(o);P(e),t.URL.revokeObjectURL(e)}else{const e=new FileReader;e.onloadend=function(){const t=e.result;"string"==typeof t&&P(t)},e.readAsDataURL(o)}}function P(e){(0,o.kG)(null!=document.body);const t=document.createElement("a");t.href=e,t.style.display="none",t.download="download.pdf",t.setAttribute("download","download.pdf"),document.body&&document.body.appendChild(t),t.click(),document.body&&document.body.removeChild(t)}function x(e){return new Promise(((t,n)=>{"toBlob"in e?e.toBlob((e=>{t(e)}),"image/png"):"msToBlob"in e?t(null==e?void 0:e.msToBlob()):n(new Error("Exporting HTMLCanvasElement to Blob is not supported in this browser."))}))}function D(e){e.preventDefault()}async function C(e){if(!(e instanceof HTMLImageElement)||"IMG"!==e.nodeName)return;try{await new Promise(((t,n)=>{e.complete?t():(e.onerror=n,e.onload=()=>t())}))}catch(e){throw new o.p2(`The image could not be loaded: ${e.message}`)}const t=e.decode();try{await t}catch(e){if(!i.i7)throw new o.p2(`The image could not be decoded: ${e.message}`);await new Promise((e=>setTimeout(e,200)))}}function k(e){var t,n;null===(t=e.target)||void 0===t||t.classList.remove(l().focusedFocusVisible),null===(n=e.target)||void 0===n||n.removeEventListener("blur",k)}},13997:(e,t,n)=>{"use strict";n.d(t,{SV:()=>l,oM:()=>i,zj:()=>a});var o=n(50974),r=n(71984);function i(){return"protocol=5, client=2023.4.0, client-git=80c992b150"}function a(){return"production"}const s=new Map;function l(e){const t=(0,r.Qk)();if(t)return t;const n=document.createElement("a");n.href=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Error;const n=s.get(e);if("string"==typeof n)return n;if(e.currentScript){const t=e.currentScript.src;return s.set(e,t),t}{let n;try{throw new t("PSPDFKit document.currentScript.src detection")}catch(e){e.stack&&(n=e.stack.match(/(?:file|https?):[^)]+/i))}(0,o.kG)(n,"Failed to automatically determine baseUrl. Please specify the base url as an option.");const r=n[0].split(":").slice(0,-2).join(":");return s.set(e,r),r}}(e);const i=n.pathname.split("/").filter(Boolean).slice(0,-1);return[`${n.protocol}/`,n.host,...i].join("/")+"/"}},20276:(e,t,n)=>{"use strict";function o(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{bubbles:!1,cancelable:!1};return"function"==typeof Event?t=new Event(e,n):(t=document.createEvent("Event"),t.initEvent(e,Boolean(n.bubbles),Boolean(n.cancelable))),t}function r(e){const t=document.createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}n.d(t,{M:()=>o,_:()=>r})},71231:(e,t,n)=>{"use strict";n.d(t,{Gn:()=>i,Rh:()=>l,Zy:()=>a,aV:()=>c,zP:()=>s});var o=n(36095),r=n(91859);const i=(()=>{if("object"!=typeof window)return!1;let e=!1;const t=Object.defineProperty({},"passive",{get:function(){return e=!0,!0}});try{window.addEventListener("test",null,t)}catch(e){}return e})();let a=!o.G6;if(!o.G6){const e=new Image;e.onload=()=>a=e.width>0&&e.height>0,e.onerror=()=>a=!1,e.src="data:image/webp;base64,UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA=="}const s=()=>a?"webp":"png";let l=!1;try{const e=new FormData;e.append("key","value");const t=new Response(e);"formData"in t&&!fetch.polyfill&&t.formData().then((()=>{l=!0})).catch((()=>{l=!1}))}catch(e){l=!1}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s();return"webp"===t&&(e.width>r.pt||e.height>r.pt)?"png":t}},38623:(e,t,n)=>{"use strict";n.d(t,{GE:()=>p,eE:()=>d,vt:()=>u,x6:()=>f});var o=n(35369),r=n(50974),i=n(34710);const a=(0,o.hU)(["Helvetica","Arial","Calibri","Century Gothic","Consolas","Courier","Dejavu Sans","Dejavu Serif","Georgia","Gill Sans","Impact","Lucida Sans","Myriad Pro","Open Sans","Palatino","Tahoma","Times New Roman","Trebuchet","Verdana","Zapfino","Comic Sans"]),s=(0,o.hU)(["sans-serif","serif","monospace"]);let l=new Set;const c=(0,o.aV)(["mmmBESbswy"]);s.forEach((e=>{const t=a.filterNot((e=>l.has(e))),n=new i.f(document,c,{fontFamily:e}),o=t.map((t=>[t,new i.f(document,c,{fontFamily:`${t},${e}`})])),s=n.measure().first();(0,r.kG)(s),o.forEach((e=>{let[t,n]=e;const o=n.measure().first();s.equals(o)||(l=l.add(t))})),n.remove(),o.forEach((e=>{let[,t]=e;t.remove()}))}));const u=a.filter((e=>l.has(e))),d=[{name:"Caveat",file:"Caveat-Bold",weight:700},{name:"Marck Script",file:"MarckScript-Regular",weight:400},{name:"Meddon",file:"Meddon-Regular",weight:400},{name:"Pacifico",file:"Pacifico-Regular",weight:400}];function p(e,t){e.forEach((e=>{t.load(`16px ${e.name}`)}))}function f(e){return Promise.allSettled(e.map((e=>new Promise(((t,n)=>{var o,i;if((0,r.kG)(e.name),i=e.name,!/\.[^.]*$/.test(i))return(0,r.vU)(`The font name for font "${e.name}" must have a file extension.`),void n();null==e||null===(o=e.callback)||void 0===o||o.call(e,e.name).then((o=>{(0,r.kG)(e.name),o instanceof Blob?t({name:e.name,data:o}):((0,r.vU)(`Callback for retrieving font ${e.name} didn't returned a Blob. It returned ${typeof o}`),n())})).catch((t=>{(0,r.vU)(`Error returned by callback for retrieving font ${e.name}. ${t}`),n()}))}))))).then((e=>e.filter((e=>"fulfilled"===e.status)).map((e=>e.value))))}},16126:(e,t,n)=>{"use strict";n.d(t,{$Y:()=>z,AM:()=>_,Ay:()=>R,BT:()=>y,CH:()=>N,CK:()=>j,CL:()=>k,ET:()=>A,G8:()=>P,Qg:()=>v,U_:()=>b,VY:()=>E,as:()=>Z,fF:()=>L,g6:()=>F,gE:()=>T,hT:()=>w,i2:()=>x,l_:()=>S,o6:()=>B,r_:()=>I,sC:()=>O,sh:()=>K});var o=n(84121),r=n(35369),i=n(50974),a=n(59780),s=n(82481),l=n(86920),c=n(78162),u=n(97528),d=n(95651),p=n(20792),f=n(5020),h=n(78233);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;tnew s.KD({name:e.name,value:"string"==typeof e.value?e.value:e.values,optionIndexes:e.optionIndexes}))).toList()}function y(e,t){var n;return e&&t?e instanceof a.Dz||e instanceof a.rF?e.values.size>0?e.values.equals(t.values):0===t.values.size:(e.value===t.value||"function"==typeof(null===(n=e.value)||void 0===n?void 0:n.equals)&&e.value.equals(t.value))&&(!e.optionIndexes||!t.optionIndexes||e.optionIndexes.every(((e,n)=>t.optionIndexes[n]===e))):!e&&!t}function b(e){return(0,r.D5)(e.map((e=>{(0,i.kG)(null==e.pdfObjectId||"number"==typeof e.pdfObjectId,"Invalid type for `pdfObjectId`.");try{(0,i.kG)(Array.isArray(e.annotationIds),"Invalid type for `annotationIds`."),(0,i.kG)("string"==typeof e.name,"Invalid type for `name`."),(0,i.kG)("string"==typeof e.label,"Invalid type for `label`.");const t=Array.isArray(e.flags)?e.flags:[],n={pdfObjectId:e.pdfObjectId,annotationIds:(0,r.aV)(e.annotationIds),name:e.name,label:e.label,readOnly:t.includes("readOnly"),required:t.includes("required"),noExport:t.includes("noExport")};switch(e.type){case"pspdfkit/form-field/button":return function(e){return new a.R0(g({},e))}(n);case"pspdfkit/form-field/radio":return function(e,t){return(0,i.kG)(t.options instanceof Array,"Invalid type for `options`."),(0,i.kG)("string"==typeof t.defaultValue,"Invalid type for `defaultValue`."),(0,i.kG)("boolean"==typeof t.noToggleToOff,"Invalid type for `noToggleToOff`."),(0,i.kG)("boolean"==typeof t.radiosInUnison,"Invalid type for `radiosInUnison`."),new a.XQ(g(g({},e),{},{options:C(t.options),defaultValue:t.defaultValue,noToggleToOff:t.noToggleToOff,radiosInUnison:t.radiosInUnison}))}(n,e);case"pspdfkit/form-field/checkbox":return function(e,t){return(0,i.kG)(t.options instanceof Array,"Invalid type for `options`."),(0,i.kG)(t.defaultValues instanceof Array,"Invalid type for `defaultValue`."),new a.rF(g(g({},e),{},{options:C(t.options),defaultValues:(0,r.aV)(t.defaultValues)}))}(n,e);case"pspdfkit/form-field/combobox":case"pspdfkit/form-field/listbox":return function(e,t){(0,i.kG)(t.options instanceof Array,"Invalid type for `options`."),(0,i.kG)("boolean"==typeof t.multiSelect,"Invalid type for `multiSelect`."),(0,i.kG)("boolean"==typeof t.commitOnChange,"Invalid type for `commitOnChange`."),(0,i.kG)(!t.defaultValues||Array.isArray(t.defaultValues),"Invalid type for `defaultValue`.");const n=g(g({},e),{},{options:C(t.options),multiSelect:t.multiSelect,commitOnChange:t.commitOnChange,defaultValues:t.defaultValues?(0,r.aV)(t.defaultValues):(0,r.aV)()});switch(t.type){case"pspdfkit/form-field/combobox":{const e=t;return(0,i.kG)("boolean"==typeof e.edit,"Invalid type for `edit`."),(0,i.kG)("boolean"==typeof e.doNotSpellcheck||"boolean"==typeof e.doNotSpellCheck,"Invalid type for `doNotSpellCheck`."),new a.fB(g(g({},n),{},{edit:e.edit,doNotSpellCheck:e.doNotSpellCheck||e.doNotSpellcheck}))}case"pspdfkit/form-field/listbox":return new a.Vi(n);default:throw new Error("Unknown choice field type")}}(n,e);case"pspdfkit/form-field/text":return function(e,t){return(0,i.kG)("boolean"==typeof t.doNotSpellcheck||"boolean"==typeof t.doNotSpellCheck,"Invalid type for `doNotSpellCheck`."),(0,i.kG)("boolean"==typeof t.doNotScroll,"Invalid type for `doNotScroll`."),(0,i.kG)("boolean"==typeof t.password,"Invalid type for `password`."),(0,i.kG)("boolean"==typeof t.multiLine,"Invalid type for `multiLine`."),(0,i.kG)("string"==typeof t.defaultValue||!t.defaultValue,"Invalid type for `defaultValue`."),(0,i.kG)(!0!==t.comb||"number"==typeof t.maxLength,"Invalid type for `comb`. When `comb` is set, the text field must have a `maxLength`."),new a.$o(g(g({},e),{},{defaultValue:t.defaultValue,doNotSpellCheck:t.doNotSpellCheck||t.doNotSpellcheck,doNotScroll:t.doNotScroll,password:t.password,maxLength:"number"==typeof t.maxLength?t.maxLength:null,multiLine:t.multiLine,comb:t.comb}))}(n,e);case"pspdfkit/form-field/signature":return function(e){return new a.Yo(g({},e))}(n);default:throw new Error(`Unsupported form field type: ${e.type}`)}}catch(t){return(0,i.um)(`Skipped parsing form field #${e.name} from payload because an error occurred while deserializing.`),void(0,i.um)(t)}})).filter(Boolean).map((e=>[null==e?void 0:e.name,e])))}function w(e){return e.map((e=>c.Z.fromJSON(e.pdfObjectId?e.pdfObjectId.toString():e.id,e)))}function S(e,t){const n=e.annotationIds.findIndex((0,d.oF)(t)),o=e.options.get(n);return(0,i.kG)(o,`There is no FormOption defined for annotationId '${t.id}' in formField '${e.name}'.`),o.value}function E(e,t){let{rotation:n,boundingBox:o}=e;if(!n)return{};const r=90===(0,f.Lv)(n)||270===(0,f.Lv)(n),i={},a=Math.ceil(o.height*t),s=Math.ceil(o.width*t);return r&&(i.width=a,i.height=s),n&&(i.transformOrigin="50% 50%",i.transform=P({width:s,height:a,rotation:n})),i}function P(e){let{width:t,height:n,rotation:o,reverse:r=!1}=e;const i=90===(0,f.Lv)(o)||270===(0,f.Lv)(o);return r?`rotate(${o}deg)`+(i&&t&&n?`translate(${-Math.round(t/2-n/2)}px, ${Math.round(t/2-n/2)}px)`:""):(i&&t&&n?`translate(${Math.round(t/2-n/2)}px, ${-Math.round(t/2-n/2)}px) `:"")+`rotate(${-o}deg)`}function x(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const{fontColor:o,font:r,backgroundColor:i,borderColor:a,horizontalAlign:s,borderWidth:l,borderStyle:c,isBold:u,isItalic:d,boundingBox:{width:p,height:f},opacity:m}=e,v=Math.ceil(p*t),y=Math.ceil(f*t);return g(g({color:null==o?void 0:o.toCSSValue(),backgroundColor:null==i?void 0:i.toCSSValue(),borderColor:(null==a?void 0:a.toCSSValue())||"transparent",opacity:m,textAlign:s||void 0,fontWeight:u?"bold":void 0,fontStyle:d?"italic":void 0},"string"==typeof r?{fontFamily:(0,h.hm)(r)}:null),{},{borderWidth:l||0,borderStyle:null!=c?D[c]:"none",width:v,height:y},n?E(e,t):{})}const D={solid:"solid",dashed:"dashed",beveled:"groove",inset:"inset",underline:"none none solid"};function C(e){return(0,r.aV)(e.map((e=>new s.mv(e))))}function k(e,t){return e.formFields.find((e=>e.id===t))}function A(e,t){return e.filter((e=>e.annotationIds.some((e=>t.annotationIds.has(e))))).toList()}function O(e,t,n){var o,r,i,a;return"STANDALONE"===e.type&&u.Ei.PDF_JAVASCRIPT&&"function"==typeof e.onKeystrokeEvent&&(Boolean(null===(o=t.additionalActions)||void 0===o?void 0:o.onInput)||Boolean(null===(r=n.additionalActions)||void 0===r?void 0:r.onInput)||Boolean(null===(i=t.additionalActions)||void 0===i?void 0:i.onChange)||Boolean(null===(a=n.additionalActions)||void 0===a?void 0:a.onChange))}function T(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=[],o=t.slice(0);return e.forEach((e=>{if((e.change_type===l.uV||e.change_type===l.zR)&&"pspdfkit/form-field-value"===e.object.type){const t=o.findIndex((t=>"pspdfkit/form-field-value"===t.object.type&&t.object.type===e.object.type&&t.object.name===e.object.name));if(t>-1){const n=o[t];e.object.formattedValue=n.object.formattedValue,e.object.editingValue=n.object.editingValue,o.splice(t,1)}}n.push(e)})),n.concat(o)}function I(e,t,n){const o=e&&n.formFields.get(e.name);if(e&&o&&!y(e,o)){e.annotationIds.reduce(((e,n)=>{var o;const i=t.annotations.get(n)||t.annotations.find((e=>e.pdfObjectId===parseInt(n)));if(i&&null!==(o=t.isAPStreamRendered)&&void 0!==o&&o.call(t,i)){return e.get(i.pageIndex)?e.updateIn([i.pageIndex],(e=>e.add(i.id))):e.set(i.pageIndex,(0,r.l4)([i.id]))}return e}),(0,r.D5)()).forEach(((e,n)=>{var o;null===(o=t.backend)||void 0===o||o.clearPageAPStreams(n,e)}))}}function F(e,t,n){const o=e.annotationIds.findIndex((0,d.oF)(t)),i=S(e,t),a=e.options.filter((e=>e.value===i)).size;let s;if(n){if(a<2)return;s=(e.optionIndexes||(0,r.aV)()).push(o)}else{if(!e.optionIndexes)return;s=e.optionIndexes.filter((e=>e!==o))}return s.size>0?s:void 0}function M(e,t,n){const o=t.filter((t=>{const o=e.annotationIds.get(t);if(!o)return!1;const r=n.get(o);if(!r)return!1;const i=S(e,r);return e.options.filter((e=>e.value===i)).size>1}));return o.size>0?o:void 0}function _(e){let{state:t,mutableState:n,formFieldValues:o,areFormFieldValuesNew:s}=e;o.forEach((e=>{let{name:o,value:l,optionIndexes:c}=e;const u=t.formFields.get(o);if(u){if((0,i.kG)(!c||u instanceof a.XQ||u instanceof a.rF,"`optionIndexes` property is only supported in radio and checkbox form field values."),u instanceof a.$o)l=l||"",(0,i.kG)("string"==typeof l,`The type of action value for a TextFormField is ${typeof l}, but has to be a string`),n.setIn(["formFields",o,"value"],l);else if(u instanceof a.XQ){if((0,i.kG)("string"==typeof l||null===l,`The type of action value for a RadioButtonFormField is ${typeof l}, but has to either be a string or null`),n.setIn(["formFields",o,"value"],l),c){const e=M(u,c,t.annotations);e&&n.setIn(["formFields",o,"optionIndexes"],e)}}else if(u instanceof a.Dz||u instanceof a.rF){if(l=l||(0,r.aV)(),(0,i.kG)(l instanceof r.aV,`The type of action value for the ${u instanceof a.Dz?"ChoiceFormField":"CheckBoxFormField"} is ${typeof l}, but has to be a List of strings`),n.setIn(["formFields",o,"values"],l),u instanceof a.rF&&c){const e=M(u,c,t.annotations);e&&n.setIn(["formFields",o,"optionIndexes"],e)}}else u instanceof a.R0||u instanceof a.Yo||(0,i.kG)(!1,`Cannot set form field value for ${u.name}: unknown form field type`);s||I(u,t,n)}else(0,i.ZK)(`No form field found with name ${o}`)}))}function R(e){let{getState:t,originalFormFields:n,formFieldValues:o,callback:a,resolve:s}=e;const{formFields:l,annotations:c,backend:u}=t(),d=[],p=[];n.forEach(((e,t)=>{if(!e)return;(0,i.kG)(u);let n=l.get(t);if((0,i.kG)(n),o.some((e=>e.name===t&&(n=r.aV.isList(e.value)?n.set("values",e.value):n.set("value",e.value),!0))),y(e,n))p.push(t);else{c.filter((e=>e.points===t)).reduce(((e,t)=>{const n=e.get(t.pageIndex);return n?e.set(t.pageIndex,n.add(t.id)):e.set(t.pageIndex,(0,r.l4)([t.id]))}),(0,r.D5)()).forEach(((e,t)=>{d.push({pageIndex:t,pageWidgetIds:e})}))}})),a(p),d.forEach((e=>{let{pageIndex:t,pageWidgetIds:n}=e;null==u||u.clearPageAPStreams(t,n)})),null==s||s()}function N(e){return new s.KD(g({name:e.name,value:e.values||e.value},e.optionIndexes?{optionIndexes:e.optionIndexes}:null))}function L(e){return e===p.A.CHECKBOX_WIDGET||e===p.A.RADIO_BUTTON_WIDGET||e===p.A.SIGNATURE_WIDGET||e===p.A.TEXT_WIDGET||e===p.A.BUTTON_WIDGET||e===p.A.COMBO_BOX_WIDGET||e===p.A.LIST_BOX_WIDGET||e===p.A.FORM_CREATOR||e===p.A.DATE_WIDGET}function B(e){return L(e)&&e!==p.A.FORM_CREATOR}function j(e,t){const n=S(e,t),o=!e.optionIndexes||e.optionIndexes.includes(e.annotationIds.findIndex((0,d.oF)(t)));return e instanceof a.XQ?e.value===n&&o:e instanceof a.rF?e.values.includes(n)&&o:(0,i.Rz)(e)}const z="Invalid date/time: please ensure that the date/time exists. Field [",K="The value entered does not match the format of the field [",Z="format "},51269:(e,t,n)=>{"use strict";function o(e){return e.some((e=>e instanceof Error))?Promise.reject(e):Promise.resolve(e)}n.d(t,{s:()=>o})},39728:(e,t,n)=>{"use strict";n.d(t,{FA:()=>g,GW:()=>y,WF:()=>b,Yr:()=>w,_d:()=>v,ax:()=>S,kM:()=>m,mZ:()=>E});var o=n(84121),r=n(50974),i=n(35369),a=n(32125),s=n(82481),l=n(67699),c=n(95651),u=n(62164),d=n(15973),p=n(60619);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;te.push({type:"delete",payload:{id:t.id}}))),e.update("redoActions",(e=>e.clear())))}function y(e,t,n,o){if(e.isHistoryEnabled){let t=!0;if(e.eventEmitter.emit("history.willChange",{annotation:n,type:"update",preventDefault(){t=!1}}),!t)return}if(!t.set("updatedAt",null).equals(n.set("updatedAt",null)))if(e.historyChangeContext===l.j.DEFAULT&&e.isHistoryEnabled&&function(e,t){if(e instanceof s.gd&&!e.text)return!(!t||!("text"in t))&&!!t.text.value;if(e instanceof s.Jn&&!e.isCommentThreadRoot)return!!t&&t.isCommentThreadRoot;if("number"!=typeof e.pageIndex&&"number"!=typeof t.pageIndex)return!1;return!0}(n,t)){const r="number"!=typeof t.pageIndex&&"number"==typeof n.pageIndex||t instanceof s.gd&&null==t.text||t instanceof s.Jn&&!t.isCommentThreadRoot&&n.isCommentThreadRoot?{type:"delete",payload:{id:t.id}}:{type:"update",payload:E(n,t),restoreAPStream:o,deletedAnnotation:null};e.update("undoActions",(e=>e.push(r))),e.update("redoActions",(e=>e.clear()))}else if(e.historyChangeContext!==l.j.HISTORY&&e.undoActions.size>0){const o=e.undoActions.findLastIndex((e=>("update"===e.type||"delete"===e.type)&&e.payload.id===n.id));-1!==o&&e.updateIn(["undoActions",o],(e=>"update"===e.type?h(h({},e),{},{payload:E(n,t.merge(e.payload)),restoreAPStream:e.restoreAPStream}):"delete"===e.type?h(h({},e),{},{payload:h(h({},E(n,t)),e.payload)}):e))}}function b(e,t,n){if(t instanceof d.Hu)return;if(e.isHistoryEnabled){let n=!0;if(e.eventEmitter.emit("history.willChange",{annotation:t,type:"delete",preventDefault(){n=!1}}),!n)return}const o=(0,c.xc)();if(e.historyChangeContext===l.j.DEFAULT&&e.isHistoryEnabled){const r=w(t,o,e.commentThreads,e.comments),i=S(t,o,e);e.update("undoActions",(e=>e.map((e=>e.payload.id===t.id?h(h({},e),{},{payload:h(h({},e.payload),{},{id:o})}):e)).push({type:"create",payload:t.set("id",o),formField:i,restoreAPStream:n,comments:r}))),e.update("redoActions",(e=>e.clear()));const a=e.historyIdsMap.get(t.id);a&&e.deleteIn(["historyIdsMap",t.id]),e.setIn(["historyIdsMap",o],a||t.id)}else if(e.historyChangeContext!==l.j.HISTORY&&e.undoActions.size>0){const r=e.undoActions.findLastIndex((e=>"update"===e.type&&e.payload.id===t.id));if(-1!==r){e.updateIn(["undoActions",r],(e=>({type:"update",deletedAnnotation:t,payload:e.payload,restoreAPStream:n})));const i=e.historyIdsMap.get(t.id);i&&e.deleteIn(["historyIdsMap",t.id]),e.setIn(["historyIdsMap",o],i||t.id)}}}function w(e,t,n,o){let r=null;if(e.isCommentThreadRoot){const i=n.get(e.id);r=i?i.map((e=>{const n=o.get(e);return n&&n.set("rootId",t)})).filter((e=>e&&!(0,u.kT)(e))).toList():null}return r}function S(e,t,n){let o=null;return e instanceof s.x_&&(o=(0,p.GA)(n,e)),o&&o.set("annotationIds",(0,i.aV)([t]))}function E(e,t){return t.toSeq().reduce(((t,n,o)=>(e.has(o)&&e.get(o)===n||(t[o]=n),t)),{id:e.id})}},58479:(e,t,n)=>{"use strict";n.d(t,{$:()=>v,Ah:()=>A,Bo:()=>E,R9:()=>f,Sv:()=>D,Tp:()=>x,U5:()=>T,_x:()=>b,dX:()=>y,jC:()=>S,jw:()=>g,lB:()=>C,mP:()=>P,nG:()=>m,tm:()=>w,wA:()=>O,wL:()=>k});var o=n(67294),r=n(67366),i=n(63738),a=n(27515),s=n(34573),l=n(82481),c=n(51731),u=n(78233),d=n(69939),p=n(4054);function f(e){const t=o.useRef(e),n=o.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r(t.current=e,()=>t.current=void 0))),n}function h(e){const t=(0,r.I0)();return[(0,r.v9)((t=>{if(t.documentComparisonState&&void 0!==t.documentComparisonState[e])return t.documentComparisonState[e];throw new Error("Document comparison state not properly initialized.")})),f((n=>t((0,i.M5)({[e]:n}))))]}function m(){return h("referencePoints")}function g(){return h("currentTab")}function v(){return h("autoCompare")}function y(){return h("isResultFetched")}function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=o.useRef(),n=o.useRef();return(0,r.v9)((o=>(o.viewportState===t.current&&n.current||(n.current=t=>t.apply((0,a.zi)(o,e))),t.current=o.viewportState,n.current)))}function w(){const e=o.useRef(!0),t=o.useCallback((()=>e.current),[]);return o.useEffect((()=>()=>{e.current=!1}),[]),t}function S(e){const t=o.useRef();return o.useEffect((()=>{t.current=e})),t.current}function E(e,t){const{customUIStore:n,sidebarMode:i}=(0,r.v9)((e=>({customUIStore:e.customUIStore,sidebarMode:e.sidebarMode}))),[a,s]=o.useState((()=>{var e;return i?null==n||null===(e=n.getState().Sidebar)||void 0===e?void 0:e[i]:void 0}));o.useEffect((()=>null==n?void 0:n.subscribe((e=>{var t;if(!i)return;const n=null==e||null===(t=e.Sidebar)||void 0===t?void 0:t[i];s((()=>n))}))),[n,i]);const l=e&&(null==a?void 0:a({containerNode:e,items:t})),c=null==l?void 0:l.node;return o.useEffect((()=>{c&&e&&c!==e&&e.lastChild!==c&&e.append(c)}),[e,c]),null==l?void 0:l.onRenderItem}function P(e,t,n){const r=o.useRef({}),i=f(t),a=f(n),s=o.useMemo((()=>(t,n)=>{e&&t&&n&&(e({itemContainerNode:t,item:n}),r.current[i(n)]=t)}),[e,i]);return o.useEffect((()=>{Object.entries(r.current).forEach((t=>{let[n,o]=t;if(o&&n){const t=a(n),o=r.current[n];e&&o&&t&&e({itemContainerNode:o,item:t})}}))}),[e,a]),e?s:null}function x(){const[e,t]=o.useState(null),[n,r]=o.useState(null),[i,a]=o.useState(null),s=o.useRef(),l=o.useRef(),c=o.useRef(null);o.useEffect((()=>{l.current=n,s.current=i})),o.useEffect((()=>{const t=e&&n&&!l.current,o=!e&&s.current&&i;(t||o)&&c.current&&c.current.focus()}),[n,i,e]);const u=o.useCallback((()=>{r(!0)}),[r]);return{handleGroupExpansion:o.useCallback((e=>{t(e),e?a(e):r(!1)}),[a,t,r]),handleEntered:u,expandedGroup:e,prevActiveGroup:i,btnFocusRef:c}}function D(e,t,n){o.useLayoutEffect((function(){null!==e&&(t((0,s.Sb)()),n(e))}),[n,e,t])}function C(e,t,n,r){return o.useCallback((function(o){if(!(e instanceof l.gd))return;const i=(0,u.Zv)(e,t,n).boundingBox;let a=null;switch(o){case c.V.RIGHT:a=e.setIn(["boundingBox","width"],i.width);break;case c.V.BOTTOM:a=e.setIn(["boundingBox","height"],i.height);break;case c.V.BOTTOM_RIGHT:a=e.set("boundingBox",i)}null!==a&&r((0,d.FG)((0,u.XA)(a,n)))}),[e,r,t,n])}function k(e){const t=o.useRef(null);return o.useEffect((function(){const{current:n}=t;n&&(0,p._s)(e(),n)}),[e]),t}function A(e){const[t,n]=o.useState(e),[r,i]=o.useState(e);return t!==e&&(i(e),n(e)),[r,i]}function O(e,t,n){o.useEffect((function(){if(!e)return;const o=t();return o.addEventListener("scroll",n),function(){o.removeEventListener("scroll",n)}}),[t,e,n])}function T(e){let{threshold:t=0}=e;const[n,r]=o.useState(null),[i,a]=o.useState(null),s=o.useRef(null);return o.useEffect((()=>{s.current&&s.current.disconnect(),s.current=new window.IntersectionObserver((e=>{let[t]=e;return r(t)}),{threshold:t});const{current:e}=s;return i&&e.observe(i),()=>e.disconnect()}),[i]),[a,n||{}]}},53678:(e,t,n)=>{"use strict";n.d(t,{Pn:()=>i,rH:()=>a,sf:()=>s,vu:()=>r});var o=n(97413);function r(e){return 200<=e&&e<300}function i(e){const t=e.indexOf("://")>0;(0,o.k)(t,`The baseUrl must be an absolute URL (e.g. https://example.com/pspdfkit-lib/), but it is set to ${e}.\nProtocol relative URLs (e.g. //example.com/pspdfkit-lib/) are not supported.`);const n="/"===e.substr(-1);(0,o.k)(n,`The baseUrl must have a trailing slash in the URL (e.g. https://example.com/pspdfkit-lib/), but it is set to ${e}.`)}function a(e){return i(e)}function s(e){const t=e.indexOf("://")>0;(0,o.k)(t,`The hostedBaseUrl must be an absolute URL (e.g. https://api.pspdfkit.com/, but it is set to ${e}.`);const n="/"===e.substr(-1);(0,o.k)(n,`The hostedBaseUrl must have a trailing slash in the URL (e.g. https://api.pspdfkit.com/), but it is set to ${e}.`)}},45588:(e,t,n)=>{"use strict";n.d(t,{Jc:()=>y,UW:()=>g,Y:()=>b,an:()=>v,uq:()=>m});var o=n(84121),r=n(30845),i=n(50974),a=n(91859),s=n(97333),l=n(37015),c=n(88804),u=n(92466),d=n(73815);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t{t.onerror=e=>o(new Error(e)),t.onload=e=>{var t;const o=new Image;o.onload=()=>{n(new c.$u({width:o.width,height:o.height}))},o.onerror=()=>n(new c.$u({width:a.zA,height:a._2})),o.src=null===(t=e.target)||void 0===t?void 0:t.result},t.readAsDataURL(e)}))}));const m=async e=>{const{Sha256:t,bytes_to_hex:o}=await n.e(4536).then(n.bind(n,61529)),r=new t,i=await(0,l.V)(e);return{hash:o(r.process(i).finish().result),dimensions:await h(e)}};function g(e){return`${e.imageAttachmentId}_${e.id}`}function v(e){var t;let{backend:n,blob:o,annotation:r,isDetachedAnnotation:a=!1,zoomLevel:l,variant:u}=e,p=null,h=!1;const v=null!==(t=null==r?void 0:r.rotation)&&void 0!==t?t:0;(0,i.kG)(n);const y=r?g(r):void 0;if(r&&"imageAttachmentId"in r&&r.imageAttachmentId&&y&&n.attachmentsCache.has(y)){const{dimensions:e,img:t,provisional:i,prevRotation:a}=n.attachmentsCache.get(y);if(n&&i&&o&&a===v)return b();o&&"image/png"!==o.type&&"image/jpeg"!==o.type&&"image/webp"!==o.type&&(h=!0),p=w(n,e,v,r,o,t).then((r=>(o&&"image/png"!==o.type&&"image/jpeg"!==o.type&&"image/webp"!==o.type&&r&&(n.attachmentsCache=n.attachmentsCache.set(y,{dimensions:e,img:t,provisional:!0,prevRotation:v})),r)))}else{if(!o||"image/png"!==o.type&&"image/jpeg"!==o.type&&"image/webp"!==o.type)return b();p=m(o).then((e=>{let{dimensions:t}=e;return w(n,t,v,r,o)})).catch((()=>{throw new i.p2("Couldn't read data from the provided image.")}))}return f(f({},(0,s.uZ)(p)),{},{isProvisional:h});function b(){(0,i.kG)(n,"Backend is required to render the image"),(0,i.kG)(r,"Annotation is required to render the image");const{boundingBox:e}=r,t=(0,d.L)()*(null!=l?l:1),s=Math.round(e.width*t),p=Math.round(e.height*t),f=new c.$u({width:s,height:p}),h=a?n.renderDetachedAnnotation(r,o,s,p):n.cachedRenderAnnotation(r,o,s,p,u);return h.promise=h.promise.then((async e=>"imageAttachmentId"in r&&r.imageAttachmentId&&y&&null!=e&&e.element?0!==v?w(n,f,360-v,r,o,e.element).then((t=>(null!=t&&t.element&&(n.attachmentsCache=n.attachmentsCache.set(y,{dimensions:90===v||270===v?f.swapDimensions():f,img:t.element,prevRotation:v})),e))):(n.attachmentsCache=n.attachmentsCache.set(y,{dimensions:f,img:e.element,prevRotation:v}),e):e)),h}}function y(e,t){const n=new Uint8Array(e.length);for(let t=0;tnew Promise((e=>{o.toBlob(e)})));const s=o.getContext("2d");s.textBaseline="hanging";s.font=`100px "${i}"`;const{actualBoundingBoxLeft:l,actualBoundingBoxRight:c,width:u}=s.measureText(e);o.height=500;const d=2*(l||c?l+c:u);return o.width=d,s.textBaseline="hanging",s.font=`100px "${i}"`,s.fillStyle=a.toCSSValue(),s.fillText(e,d/4,125),function(e){const t=e.getContext("2d"),n=t.getImageData(0,0,e.width,e.height),o=n.data.length;let r=null,i=null,a=null,s=null,l=0,c=0;for(let t=0;tS(i,t,n).then(e,o)));if(r){const i=URL.createObjectURL(r),a=document.createElement("img");return new Promise(((s,l)=>{a.onload=()=>{r&&o&&(e.attachmentsCache=e.attachmentsCache.set(g(o),{dimensions:t,img:a,prevRotation:n})),S(a,t,n).then(s,l)},a.onerror=()=>{l(new Error("The attachment provided could not be rendered as image/jpeg, image/png or image/webp although the mime type suggests so."))},a.src=i}))}return new Promise((e=>e))}async function S(e,t,n){if(0===n)return e.onload=null,e.onerror=null,new u.Z(e,(()=>{}));{const o=document.createElement("canvas"),{width:r,height:a}=t;90===n||270===n?(o.width=a,o.height=r):(o.width=r,o.height=a);const s=o.getContext("2d");return(0,i.kG)(s,"Could not get canvas context"),90===n||270===n?s.translate(a/2,r/2):s.translate(r/2,a/2),s.rotate(n*-Math.PI/180),s.drawImage(e,-r/2,-a/2),new u.Z(o,(()=>{}))}}},7844:(e,t,n)=>{"use strict";n.d(t,{O:()=>i,b:()=>a});var o=n(35369);function r(e,t){if(e===t||(0,o.is)(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const i=Object.prototype.hasOwnProperty.bind(t);for(let r=0;r{"use strict";n.d(t,{k:()=>r});var o=n(50974);function r(e,t){if(!e)throw new o.p2(`Assertion failed: ${t||"Condition not met"}\n\nFor further assistance, please go to: https://pspdfkit.com/support/request`)}},28028:(e,t,n)=>{"use strict";n.d(t,{eU:()=>s,t0:()=>l,yK:()=>a});var o=n(19575),r=n(50974),i=n(71984);function a(e){const t="The supplied JWT is invalid. Please refer to our guides on how to set up authentication:\n https://pspdfkit.com/guides/web/current/server-backed/client-authentication/";if(-1!==e.indexOf('{"internal":'))return;let n;(0,r.kG)("string"==typeof e&&3===e.split(".").length,t);try{const t=o.Base64.decode(e.split(".")[1]);n=JSON.parse(t)}catch(e){throw new r.p2(t)}(0,r.kG)("string"==typeof n.document_id,"The supplied JWT is invalid. The field 'document_id' has to be a string value.\n Please refer to our guides for further information: https://pspdfkit.com/guides/web/current/server-backed/client-authentication/")}function s(e){if("string"!=typeof e)throw new r.p2("`accessToken` must be of type string.")}function l(e,t){(0,r.kG)("string"==typeof e,"`appName` must be a string."),(0,r.kG)((0,i.d)()||(0,i.AL)(e,t),"`appName` should only be set when using Electron or Maui."),(0,r.kG)(!(0,i.Sk)()||(0,i.AL)(e,t),"`appName` should only be set when using Electron without node integration or Maui.")}},77552:(e,t,n)=>{"use strict";function o(e){return{name:e.name,scale:{unitFrom:e.scale.unitFrom,unitTo:e.scale.unitTo,from:Number(e.scale.fromValue),to:Number(e.scale.toValue)},precision:e.precision}}n.d(t,{f:()=>o})},30570:(e,t,n)=>{"use strict";n.d(t,{B0:()=>Q,Di:()=>x,Ex:()=>G,Hg:()=>q,KI:()=>D,P_:()=>R,Qc:()=>Z,Rc:()=>V,Rw:()=>L,S6:()=>N,W9:()=>z,_P:()=>O,b5:()=>U,bs:()=>X,cd:()=>B,fH:()=>H,m_:()=>j,mq:()=>$,nK:()=>K,t9:()=>_,xA:()=>Y,zl:()=>J});var o=n(84121),r=n(50974),i=n(85628),a=n.n(i),s=n(35369),l=n(71603),c=n(9599),u=n(69939),d=n(74115),p=n(20792),f=n(4132),h=n(36489),m=n(79827),g=n(70076),v=n(20683),y=n(88713),b=n(50690),w=n(87043),S=n(36095);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function P(e){for(var t=1;te.y-t.y)).first();return{coordinate:[o.x,o.y-t]}}{const{boundingBox:t}=e;return{coordinate:[t.left+t.width/2,t.top+t.height/2]}}}(e,o);if(!r)return{display:"none"};const a={position:"absolute",transform:"translate(-50%, -50%) "+(e instanceof b.Z||e instanceof w.Z||e instanceof g.Z?"":e instanceof v.Z&&i?`rotate(${i}deg) translate(0, -${e.strokeWidth/2+10}px)`:i?`rotate(${i}deg) translate(0px, -${e.strokeWidth/2+10}px)`:`translate(0px, -${e.strokeWidth/2+10}px)`),transformOrigin:"center",fontSize:12,color:null===(n=e.strokeColor)||void 0===n?void 0:n.toCSSValue(),width:"max-content",left:r[0],top:e instanceof v.Z&&S.G6&&!i?r[1]-20:r[1]},{boundingBox:s}=e;return(e instanceof w.Z||e instanceof g.Z)&&(t&&s.width<200||s.width<80)?P(P({},a),{},{top:s.top-30}):a}function C(e,t){let n=e,o=t;t.x({label:h.s[e],value:h.s[e],disabled:!1}))),z=function(){const e=[];for(const t in f.L){const n=Object.keys(f.L).find((e=>e===t));if(n&&k.hasOwnProperty(f.L[t]))e.push((1/Math.pow(10,O[f.L[n]])).toString());else if(n&&A.hasOwnProperty(f.L[t])){const t=new(a())(O[f.L[n]]);e.push(t.toFraction(!0).toString())}}return e}(),K=Object.keys(f.L).map(((e,t)=>({label:z[t],value:f.L[e]}))),Z=Object.keys(f.L).filter((e=>!J(f.L[e]))).map(((e,t)=>({label:z[t],value:f.L[e]}))),U=Object.keys(m.K).map((e=>({value:m.K[e],label:m.K[e]}))),V=(e,t)=>({added:t.filter((t=>!e.find((e=>JSON.stringify(e)===JSON.stringify(t))))),deleted:e.filter((e=>!t.find((t=>JSON.stringify(e)===JSON.stringify(t)))))});function G(e){return e.map(((e,t)=>{const n=P(P({},e),{},{scale:P(P({},e.scale),{},{fromValue:e.scale.from,toValue:e.scale.to})});var o;(delete n.scale.from,delete n.scale.to,n.name&&""!==n.name.trim())||(n.name=(null===(o=(0,c.sJ)(n))||void 0===o?void 0:o.label)||`Scale ${t}`);return d.q[n.precision]&&(n.precision=d.q[n.precision]),n}))}async function W(e){let{operation:t,scale:n,getState:o,measurementUpdate:r,dispatch:i}=e;const a=o(),{backend:c,annotations:d,annotationManager:p}=a;const f=async(e,r)=>{const a=await(async e=>(await(null==p?void 0:p.loadAnnotationsForPageIndex(e)),o().annotations))(r);!function(e,t,o){e.forEach((e=>{const r=t.find((t=>t.pdfObjectId===e.pdfObjectId));if(r)switch(o){case"edit":{const e=r.set("measurementScale",new l.Z({fromValue:Number(n.scale.fromValue),toValue:Number(n.scale.toValue),unitFrom:n.scale.unitFrom,unitTo:n.scale.unitTo})).set("measurementPrecision",n.precision);i((0,u.FG)(e));break}case"delete":i((0,u.hQ)(r))}}))}(e,a,t)},h="STANDALONE"===c.type?await c.getAnnotationsByScale(n):function(e,t){return t.filter((t=>{const n=t.measurementScale,o=t.measurementPrecision;return!!n&&n.unitFrom===e.scale.unitFrom&&n.unitTo===e.scale.unitTo&&n.fromValue===e.scale.fromValue&&n.toValue===e.scale.toValue&&o===e.precision}))}(n,d),m=[];if(h.forEach((e=>{const n=d.find((t=>t.pdfObjectId?t.pdfObjectId===e.pdfObjectId:t.id===e.id));if(n&&"edit"===t&&r){const e=n.set("measurementScale",r.scale).set("measurementPrecision",r.precision);i((0,u.FG)(e))}else n&&"delete"===t?i((0,u.hQ)(n)):m.push(e)})),m.length>0){const e=(0,s.l4)(m.map((e=>e.pageIndex)));await Promise.all(e.map((async e=>{await f(m,e)})))}}async function q(e){let{scale:t,oldScale:n,getState:o,dispatch:r}=e;const i={scale:new l.Z({fromValue:Number(t.scale.fromValue),toValue:Number(t.scale.toValue),unitFrom:t.scale.unitFrom,unitTo:t.scale.unitTo}),precision:t.precision};await W({operation:"edit",scale:n,getState:o,measurementUpdate:i,dispatch:r})}async function H(e){let{deletedScale:t,getState:n,dispatch:o}=e;await W({operation:"delete",scale:t,getState:n,dispatch:o})}function $(e){if(e.size<2)return!1;const t=e.toList(),n=t.first(),o={scale:n.measurementScale,precision:n.measurementPrecision};for(let e=1;e{"use strict";n.d(t,{Sy:()=>s,Zt:()=>u,dY:()=>l});var o=n(50974),r=n(82481),i=n(3026),a=n(95651);function s(e,t,n){let s;if(e instanceof r.o9)return s=e.set(["startPoint","endPoint"][n],e[["startPoint","endPoint"][n]].translate(t)),s.set("boundingBox",(0,i.sS)(r.o9)(s));var c;if(e instanceof r.om||e instanceof r.Hi)return s=e.setIn(["points",n],null===(c=e.points.get(n))||void 0===c?void 0:c.translate(t)),s.set("boundingBox",(0,i.sS)(r.om)(s));if((0,a.Vc)(e)){var d,p,f;(0,o.kG)(e instanceof r.gd,"Callout annotation must have a callout");const a=null!==(d=e.callout)&&void 0!==d&&d.knee?["start","knee","end"]:["start","end"];if("end"===a[n])return e;s=e.setIn(["callout",a[n]],null===(p=e.callout)||void 0===p||null===(f=p[a[n]])||void 0===f?void 0:f.translate(t));const{callout:c}=s;(0,o.kG)(c,"Callout annotation must have a callout");const h=c.innerRectInset;(0,o.kG)(h,"Callout annotation must have an innerRectInset"),(0,o.kG)(c.start,"Callout annotation must have a start point");const m={left:e.boundingBox.left+h.left,top:e.boundingBox.top+h.top,right:e.boundingBox.left+e.boundingBox.width-h.right,bottom:e.boundingBox.top+e.boundingBox.height-h.bottom},g=l([[m.left,m.top],[m.right,m.top],[m.right,m.bottom],[m.left,m.bottom]]),v=(0,i.sS)(r.gd)(s),y=new r.eB({left:m.left-v.left,top:m.top-v.top,right:v.left+v.width-m.right,bottom:v.top+v.height-m.bottom});return s.set("boundingBox",v).setIn(["callout","innerRectInset"],y).setIn(["callout","end"],u(c.knee||c.start,g))}return e}function l(e){const t=[];for(let n=0;n{"use strict";n.d(t,{I:()=>r,W:()=>i});var o=n(91859);function r(e){return e.button===o.oW}function i(e){return e.buttons===o.M5}},37676:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i,l:()=>a});var o=n(71984);const r=["http","https","mailto"];function i(e){const t=e.split(":")[0];if(t===e)e=/^[./#]/.test(e)?e:"http://"+e;else if(r.indexOf(t)<=-1)return;a(e,!0)}function a(e,t){if((0,o.Sk)()){(0,o.oH)("electron").shell.openExternal(e)}else if(t){window.open(e,"_blank").opener=null}else window.opener=null,window.location.href=e}},19815:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>g,Ez:()=>w,HI:()=>v,LC:()=>T,RZ:()=>m,VT:()=>h,VY:()=>_,Vz:()=>R,Xr:()=>A,YN:()=>I,aE:()=>F,bp:()=>P,ix:()=>D,j$:()=>S,jb:()=>f,k_:()=>C,lV:()=>b,qs:()=>O,xW:()=>M,xr:()=>k});var o=n(50974),r=n(82481),i=n(18146),a=n(70094),s=n(10284),l=n(67628),c=n(60619),u=n(97528),d=n(60132),p=n(72131);function f(e){return e.documentPermissions.printHighQuality}function h(e){return e.documentPermissions.printing&&e.printingEnabled&&e.backendPermissions.downloadingAllowed}function m(e){return e.exportEnabled&&e.backendPermissions.downloadingAllowed}function g(e){return e.documentPermissions.extract&&e.clientPermissions.extract}function v(e){return g(e)&&!e.clientPermissions.preventTextCopy}function y(e){let{backendPermissions:t,documentPermissions:n,readOnlyEnabled:o}=e;return!(!n.modification&&n.annotationsAndForms&&!t.readOnly&&o===p.J.NO)}function b(e,t){let n=!1;if((0,o.kG)(t.backend),t.backend.isCollaborationPermissionsEnabled()&&e instanceof r.x_){const o=(0,c.GA)(t,e);n=!!o&&(0,s.os)(o,t)}const i=!n&&!(0,s.CM)(e,t)&&!(0,s.Kd)(e,t);if(F(t)&&(!("isSignature"in e)||!e.isSignature))return!0;if(E(t)||i)return!0;if(e instanceof a.FN&&(e=e.parentAnnotation),t.isEditableAnnotation)return!t.isEditableAnnotation(e);if(!P(t)||!y(t)){if(0===t.editableAnnotationTypes.size)return!0;if(t.editableAnnotationTypes.find((t=>e instanceof t)))return!1}return!0}function w(e,t){const n=!(0,s.kR)(e,t)&&!(0,s.Ss)(e,t);return!(T(t)&&!E(t)&&!n)||(t.isEditableComment?!t.isEditableComment(e):!!P(t)&&y(t))}function S(e,t,n){let{features:o,backend:a,backendPermissions:s,documentPermissions:l,readOnlyEnabled:c,editableAnnotationTypes:u}=t;if(e===r.Jn&&!T({features:o,backend:a}))return!0;if(e===i.Z&&!o.includes(d.q.REDACTIONS))return!0;if(e===r.UX&&n&&!o.includes(d.q.MEASUREMENT_TOOLS))return!0;return!!F({features:o})||(!(!P({backendPermissions:s,documentPermissions:l,readOnlyEnabled:c})||!y({backendPermissions:s,documentPermissions:l,readOnlyEnabled:c}))||!u.find((t=>e===t||e.prototype instanceof t||t.prototype instanceof e)))}function E(e){return e.backendPermissions.readOnly}function P(e){let{backendPermissions:t,documentPermissions:n,readOnlyEnabled:o}=e;return t.readOnly||!n.modification||o!==p.J.NO}function x(e){return(e.documentPermissions.annotationsAndForms||e.documentPermissions.fillForms)&&e.formsEnabled}function D(e){return x(e)&&C(e.backend)&&e.features.includes(d.q.FORM_DESIGNER)}function C(e){return(0,o.kG)(e),e.isUsingInstantProvider()||"STANDALONE"===e.type}function k(e){return(0,o.kG)(e),e.isUsingInstantProvider()||"STANDALONE"===e.type}function A(e){let{features:t,backendPermissions:n,documentPermissions:o,readOnlyEnabled:r}=e;return t.includes(d.q.DOCUMENT_EDITING)&&!(n.readOnly||!o.modification||r===p.J.VIA_VIEW_STATE||r===p.J.VIA_BACKEND_PERMISSIONS)}function O(e){let{features:t,backendPermissions:n,documentPermissions:o,readOnlyEnabled:r}=e;return t.includes(d.q.CONTENT_EDITING)&&!(n.readOnly||!o.modification||r===p.J.VIA_VIEW_STATE||r===p.J.VIA_BACKEND_PERMISSIONS)}function T(e){let{features:t,backend:n}=e;return(0,o.kG)(n),t.includes(d.q.COMMENTS)&&("STANDALONE"===n.type||"SERVER"===n.type&&n.isUsingInstantProvider())}function I(e){let{features:t,backend:n}=e;return(0,o.kG)(n),t.includes(d.q.MEASUREMENT_TOOLS)&&("STANDALONE"===n.type||"SERVER"===n.type&&n.isUsingInstantProvider())}function F(e){let{features:t}=e;return!R(t)&&t.includes(d.q.ELECTRONIC_SIGNATURES)}function M(e,t){return!!(t===l.H.LEGACY_SIGNATURES||e.includes(d.q.FORMS)&&(e.includes(d.q.ELECTRONIC_SIGNATURES)||e.includes(d.q.DIGITAL_SIGNATURES)))}function _(e,t,n){let{backendPermissions:o,documentPermissions:i,isEditableAnnotation:a,editableAnnotationTypes:s,readOnlyEnabled:l}=n;return e.readOnly||a&&!a(t)||!s.has(r.x_)||!u.Ei.IGNORE_DOCUMENT_PERMISSIONS&&!i.fillForms&&!i.annotationsAndForms||o.readOnly||l!==p.J.NO}function R(e){return e.includes(d.q.WEB_ANNOTATION_EDITING)||e.includes(d.q.ANNOTATION_EDITING)}},97333:(e,t,n)=>{"use strict";function o(e){return new Promise(((t,n)=>{let o=0;const r=[];let i=!1;const a=()=>{o>=e.length&&(i?n(r):t(r))};a(),e.forEach(((e,t)=>{e.then((e=>{o+=1,r[t]=e,a()})).catch((e=>{o+=1,r[t]=e,i=!0,a()}))}))}))}function r(e,t){let n=!1;return{promise:new Promise(((t,o)=>{e.then((e=>!n&&t(e)),(e=>!n&&o(e)))})),cancel(){n=!0,t&&t()}}}function i(e,t){return new Promise((function(n,o){e.then(n,o),setTimeout((function(){o(Error("promise:timeout"))}),t)}))}n.d(t,{Vs:()=>i,jK:()=>o,uZ:()=>r})},73815:(e,t,n)=>{"use strict";function o(){let e=1;return void 0!==window.devicePixelRatio&&(e=window.devicePixelRatio),e}n.d(t,{L:()=>o})},75669:(e,t,n)=>{"use strict";n.d(t,{Ag:()=>d,Mg:()=>v,az:()=>l,h4:()=>c,kv:()=>u,o0:()=>p,sw:()=>s});var o=n(82481),r=n(95651),i=n(64377),a=n.n(i);function s(e,t,n,r){const i=e.set("rotation",t);if(n&&r){const t=l(i).boundingBox;if(!new o.UL({left:0,top:0,width:n.width,height:n.height}).isRectInside(t))return e}return i}function l(e){const{boundingBox:t,rotation:n}=e,{width:r,height:i}=t;if(!p(e))return e;const a=new o.E9({x:-r/2,y:-i/2}),s=new o.E9({x:r/2,y:-i/2}),l=new o.E9({x:r/2,y:i/2}),c=new o.E9({x:-r/2,y:i/2}),u=a.rotate(n),d=s.rotate(n),f=l.rotate(n),h=c.rotate(n),m=Math.min(u.x,d.x,f.x,h.x),g=Math.min(u.y,d.y,f.y,h.y),v=Math.max(u.x,d.x,f.x,h.x),y=Math.max(u.y,d.y,f.y,h.y),b=t.getCenter();return e.set("boundingBox",new o.UL({left:b.x+m,top:b.y+g,width:v-m,height:y-g}))}function c(e,t){if(p(e)){const n=t||function(e,t){if(void 0===t||0===t)return e.getSize();const n=Math.floor(t/360);-1===Math.sign(t)&&(t+=360+360*n);let r=(t-=360*n)%180;const i=r>=90,a=i?e.height:e.width,s=i?e.width:e.height;if(r%=90,45===r){if(a!==s){const e=Math.min(a,s);return new o.$u({width:Math.sqrt(2)*e,height:Math.sqrt(2)*e})}return new o.$u({width:Math.sqrt(2)*a,height:Math.sqrt(2)*s})}const l=r*(Math.PI/180);return new o.$u({width:(a*Math.cos(l)-s*Math.sin(l))/Math.cos(2*l),height:(s*Math.cos(l)-a*Math.sin(l))/Math.cos(2*l)})}(e.boundingBox,e.rotation);return e.set("boundingBox",new o.UL({left:e.boundingBox.left+(e.boundingBox.width-n.width)/2,top:e.boundingBox.top+(e.boundingBox.height-n.height)/2,width:n.width,height:n.height}))}return e}function u(e){return"number"==typeof e.rotation&&e.rotation%360!=0}function d(e){return"number"==typeof e.rotation&&Math.abs(e.rotation)%90==0&&Math.abs(e.rotation)%360!=0}function p(e){return(0,r.a$)(e)&&u(e)}let f,h,m,g;function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"grab";if(f||(f=new DOMParser,h=f.parseFromString(a(),"image/svg+xml"),m=h.querySelector("svg"),g=new XMLSerializer),m&&(m.style.transform=`rotate(${-e}deg)`),g){return`url("${`data:image/svg+xml;utf8,${encodeURIComponent(g.serializeToString(h))}`}") 15 15, ${t}`}return t}},18803:(e,t,n)=>{"use strict";n.d(t,{Q:()=>b,U2:()=>w,ZJ:()=>m,a7:()=>h,mB:()=>y});var o=n(35369),r=n(50974),i=n(27515),a=n(4757),s=n(19815),l=n(82481),c=n(36095),u=n(34710),d=n(72584),p=n(76413),f=n.n(p);function h(e){var t,n;const{document:o}=e;if(c.TL){var i;const{activeElement:t,body:n}=o,a=t&&1===t.nodeType&&t!==n;if(null!==(i=e.getSelection())&&void 0!==i&&i.isCollapsed&&!a)return;const s=o.createElement("input");return s.style.position="fixed",s.style.left="50vw",s.style.top="50vh",s.readOnly=!0,(0,r.kG)(o.documentElement,"no document object found"),o.documentElement.appendChild(s),s.focus(),s.blur(),void s.remove()}var a;if(null!==(t=e.getSelection())&&void 0!==t&&t.empty)null===(a=e.getSelection())||void 0===a||a.empty();else if(null!==(n=e.getSelection())&&void 0!==n&&n.removeAllRanges){var s;null===(s=e.getSelection())||void 0===s||s.removeAllRanges()}}function m(e,t){const{startTextLineId:n,endTextLineId:i,startPageIndex:a,endPageIndex:s}=t.startAndEndIds();return(0,o.D5)(e.pages.filter((e=>e.textLines&&e.pageIndex>=a&&e.pageIndex<=s)).map((e=>{const t=e.textLines;let o;return e.pageIndex===a&&e.pageIndex===s?o=t.filter((e=>((0,r.kG)((0,d.hj)(e.id)),e.id>=n&&e.id<=i))):e.pageIndex===a?o=t.filter((e=>((0,r.kG)((0,d.hj)(e.id)),e.id>=n))):e.pageIndex===s?o=t.filter((e=>((0,r.kG)((0,d.hj)(e.id)),e.id<=i))):((0,r.kG)(e.textLines),o=e.textLines),[e.pageIndex,o]})))}const g=(e,t,n,o)=>{var i;(0,r.kG)((0,d.hj)(t.pageIndex));const a={transform:n&&n.scaleX>0&&n.scaleY>0?`scale(${n.scaleX*e.viewportState.zoomLevel}, ${n.scaleY*e.viewportState.zoomLevel})`:""};return new u.f(null===(i=e.frameWindow)||void 0===i?void 0:i.document,o,a,f().line)},v=(e,t,n)=>{const o=e.pages.get(t);(0,r.kG)(o&&o.textLines,"Page not found or page has no text lines");const i=o.textLines.find((e=>e.id===n));return(0,r.kG)(i,"TextLine not found"),i};function y(e,t){const{startTextLineId:n,endTextLineId:i,startPageIndex:l,endPageIndex:c}=t.startAndEndIds(),u=e.pages.get(l);(0,r.kG)(u,"Index of start page is out of bounds");const p=e.pages.get(c);if((0,r.kG)(p,"Index of end page is out of bounds"),n===i&&l===c){const i=v(e,l,n);(0,r.kG)((0,d.hj)(i.id));const c=u.textLineScales&&u.textLineScales.get(i.id),p=(0,a.LD)((0,s.HI)(e),i),f=p.substring(0,t.startOffset),h=p.substring(t.startOffset,t.endOffset),m=p.substring(t.endOffset),y=g(e,i,c,(0,o.aV)([f,h,m])),b=y.measure().get(1);(0,r.kG)(b);const w=b.scale(1/e.viewportState.zoomLevel).translate(i.boundingBox.getLocation());return y.remove(),{startRect:w,endRect:w}}{const f=v(e,l,n),h=v(e,c,i);(0,r.kG)((0,d.hj)(f.id)),(0,r.kG)((0,d.hj)(h.id));const m=u.textLineScales&&u.textLineScales.get(f.id),y=p.textLineScales&&p.textLineScales.get(h.id),b=(0,a.LD)((0,s.HI)(e),f),w=b.substring(0,t.startOffset),S=b.substring(t.startOffset),E=(0,a.LD)((0,s.HI)(e),h),P=E.substring(0,t.endOffset),x=E.substring(t.endOffset),D=g(e,f,m,(0,o.aV)([w,S])),C=g(e,h,y,(0,o.aV)([P,x])),k=D.measure().last();(0,r.kG)(k);const A=k.scale(1/e.viewportState.zoomLevel).translate(f.boundingBox.getLocation()),O=C.measure().first();(0,r.kG)(O);const T=O.scale(1/e.viewportState.zoomLevel).translate(h.boundingBox.getLocation());return D.remove(),C.remove(),{startRect:A,endRect:T}}}function b(e,t){const{startTextLineId:n,endTextLineId:o,startPageIndex:i,endPageIndex:a,textRange:s}=t;(0,r.kG)((0,d.hj)(i));const l=e.pages.get(i);(0,r.kG)((0,d.hj)(a)),(0,r.kG)(l,"Index of start page is out of bounds");const c=e.pages.get(a);if((0,r.kG)(c,"Index of end page is out of bounds"),(0,r.kG)(s&&(0,d.hj)(n)&&(0,d.hj)(o)),n===o&&i===a){return v(e,i,n).contents.substring(s.startOffset,s.endOffset)}{const t=v(e,i,n),r=v(e,a,o),l=t.contents.substring(s.startOffset),c=r.contents.substring(0,s.endOffset);return m(e,s).map(((e,t)=>e.map((e=>e.id==n&&t==i?l:e.id==o&&t==a?c:e.contents)))).valueSeq().flatten(!0).join("\n")}}function w(e,t){const{startTextLineId:n,endTextLineId:o,startPageIndex:r,endPageIndex:a}=t.startAndEndIds(),{startRect:s,endRect:c}=y(e,t),u=m(e,t).map(((t,l)=>t.map((t=>{let u;u=t.id==n&&l==r?s:t.id==o&&l==a?c:t.boundingBox;const d=(0,i.cr)(e.viewportState,l).translate(e.viewportState.scrollPosition.scale(e.viewportState.zoomLevel));return u.apply(d)})))).valueSeq().flatten(!0).toList();return l.UL.union(u)}},41952:(e,t,n)=>{"use strict";n.d(t,{K:()=>r,q:()=>i});var o=n(97528);const r=e=>{const{SELECTION_OUTLINE_PADDING:t}=o.Ei;return t(e)},i=(e,t)=>e.grow(r(t))},3026:(e,t,n)=>{"use strict";n.d(t,{CW:()=>v,Hx:()=>y,Hz:()=>P,Pr:()=>h,R4:()=>b,rr:()=>w,sS:()=>f});var o=n(35369),r=n(50974),i=n(82481),a=n(18146),s=n(26467),l=n(20792),c=n(91859),u=n(95651);const d=(e,t)=>e-t,p=(e,t)=>{const n=t.reduce(((t,n,o,r)=>{var i,a;const s={x:t.x.concat([n.x]),y:t.y.concat([n.y])},l=r.get(o+1)||r.get(o-1)||n,c=l.x-n.x,u=l.y-n.y;if(0===c&&0===u)return s;const d=Math.sqrt(c**2+u**2),p=(0===o?"lineCaps"in e&&null!==(i=e.lineCaps)&&void 0!==i&&i.start?2.5*e.strokeWidth:e.strokeWidth/2:o===r.size-1&&"lineCaps"in e&&null!==(a=e.lineCaps)&&void 0!==a&&a.end?2.5*e.strokeWidth:e.strokeWidth/2)/d;return{x:s.x.concat([n.x-p*u,n.x+p*u]),y:s.y.concat([n.y-p*c,n.y+p*c])}}),{x:[],y:[]}),[o,...r]=n.x.sort(d),i=r.slice(-1)[0]||o,[a,...s]=n.y.sort(d);return{minX:o,maxX:i,minY:a,maxY:s.slice(-1)[0]||a}};function f(e){switch(e){case i.o9:return e=>{(0,r.kG)(e instanceof i.o9,"Expected `lineAnnotation` to be an instance of `LineAnnotation`");const{minX:t,maxX:n,minY:a,maxY:s}=p(e,(0,o.aV)([e.startPoint,e.endPoint]));return new i.UL({width:n-t+2*e.strokeWidth,height:s-a+2*e.strokeWidth,top:a-e.strokeWidth,left:t-e.strokeWidth})};case i.b3:case i.Xs:case a.Z:return e=>e.boundingBox;case i.Hi:case i.om:return e=>{if((0,r.kG)(e instanceof i.om||e instanceof i.Hi,"Expected `polyshapeAnnotation` to be an instance of `PolylineAnnotation` or `PolygonAnnotation`"),0===e.points.size)return e.boundingBox;const{minX:t,maxX:n,minY:o,maxY:a}=p(e,e.points),s="cloudyBorderIntensity"in e&&e.cloudyBorderIntensity?e.cloudyBorderIntensity*c.St:0;return new i.UL({width:n-t+2*e.strokeWidth+2*s,height:a-o+2*e.strokeWidth+2*s,top:o-e.strokeWidth-s,left:t-e.strokeWidth-s})};case i.gd:return e=>{if((0,u.Vc)(e)){(0,r.kG)(e instanceof i.gd,"Expected `annotation` to be a `TextAnnotation`");const{callout:t}=e;(0,r.kG)(t,"Expected `callout` to be defined");const{innerRectInset:n,knee:o,start:a,end:s}=t;(0,r.kG)(n&&a&&s,"Expected `innerRectInset`, `start` and `end` to be defined");const l=Math.min(e.boundingBox.left+n.left,a.x,s.x,o?o.x:1/0),c=Math.min(e.boundingBox.top+n.top,a.y,s.y,o?o.y:1/0),u=Math.max(e.boundingBox.left+e.boundingBox.width-n.right,a.x,s.x,o?o.x:-1/0),d=Math.max(e.boundingBox.top+e.boundingBox.height-n.bottom,a.y,s.y,o?o.y:-1/0),p=4*(e.borderWidth||2);let f=h(a,new i.UL({left:l,top:c,width:u-l,height:d-c}),p);return o&&(f=h(o,f,p)),f}return e.boundingBox}}throw new r.p2("Expected `getBoundingBoxCalculator` to be called with a valid shape annotation type class value.")}function h(e,t,n){const o=t.left===e.x,r=t.left+t.width===e.x,a=t.top===e.y,s=t.top+t.height===e.y;return new i.UL({left:o?t.left-n:t.left,top:a?t.top-n:t.top,width:o||r?t.width+n:t.width,height:a||s?t.height+n:t.height})}const m=(e,t)=>new i.E9({x:e.x+t.weightedStrokeWidthLineRatio*t.xOffset,y:e.y+t.weightedStrokeWidthLineRatio*t.yOffset}),g={xOffset:0,yOffset:0,weightedStrokeWidthLineRatio:0};function v(e,t,n){if(null===n)return e;const r=n.start,a=n.end,l=r?s.O[r].width:0,c=a?s.O[a].width:0;if(e.size<2||!l&&!c)return e;const u=e.get(0),d=e.get(e.size-1);if(!(u instanceof i.E9&&d instanceof i.E9))return e;const p=r?(()=>{const n=u,o=e.get(1)||n;if(!(o instanceof i.E9))return g;const r=o.x-n.x,a=o.y-n.y;return{xOffset:r,yOffset:a,weightedStrokeWidthLineRatio:0!==r||0!==a?l*t/Math.sqrt(r**2+a**2):0}})():g,f=a&&e.get(e.size-2)instanceof i.E9?(()=>{const n=d,o=e.get(e.size-2)||n,r=-(n.x-o.x),i=-(n.y-o.y);return{xOffset:r,yOffset:i,weightedStrokeWidthLineRatio:0!==r||0!==i?c*t/Math.sqrt(r**2+i**2):0}})():g;return e.size>2||!r||!a?e.map(((t,n)=>0===n?p.weightedStrokeWidthLineRatio<=1?m(t,p):t:n===e.size-1&&f.weightedStrokeWidthLineRatio<=1?m(t,f):t)):p.weightedStrokeWidthLineRatio+f.weightedStrokeWidthLineRatio<=1?(0,o.aV)([m(u,p),m(d,f)]):e}function y(e){return e instanceof i.b3||e instanceof i.Xs?e.delete("boundingBox"):e instanceof i.Hi||e instanceof i.om?e.delete("boundingBox").delete("points"):e instanceof i.o9?e.delete("boundingBox").delete("startPoint").delete("endPoint"):e}function b(e){switch(e){case i.o9:return l.A.SHAPE_LINE;case i.b3:return l.A.SHAPE_RECTANGLE;case i.Xs:return l.A.SHAPE_ELLIPSE;case i.om:return l.A.SHAPE_POLYLINE;case i.Hi:return l.A.SHAPE_POLYGON;default:return null}}function w(e){let{points:t,intensity:n,arcRadius:o=c.St*n}=e;const r=t.reduce(((e,n,r)=>{const i=r===t.length-1?t[0]:t[r+1];if(C(n,i,.01))return e;const a=D(n,i),s=Math.floor(a/(1.75*o));if(a>=a/(s+1)){const t=s+1,o=(i[0]-n[0])/t,r=(i[1]-n[1])/t;e.push(...Array.from({length:t},((e,t)=>[n[0]+o*t,n[1]+r*t])))}return e}),[]),i=x(t),a=i?"1":"0",s="1"===a?"0":"1",l=i?-.3:.3;return r.reduce(((e,t,n)=>{const c=r[n>0?n-1:r.length-1];if(C(t,c))return e;let u=r[(n+1)%r.length],d=n+1;for(;C(t,u);){if(d%r.length===n)return[];u=r[(1+ ++d)%r.length]}let p=k(t,c,o,i),f=k(t,u,o,!i);if(isNaN(p)&&isNaN(f))return e.push(`${u[0]} ${u[1]}`),e;isNaN(p)&&(p=f+Math.PI),isNaN(f)&&(f=p+Math.PI),f+=l;const h=i?f>p?p+(S-f)>Math.PI?"1":"0":p-f>Math.PI?"1":"0":f>p?p+(S-f)>Math.PI?"0":"1":p-f>Math.PI?"0":"1",m=[t[0]+Math.cos(p)*o,t[1]-Math.sin(p)*o],g=[t[0]+Math.cos(f)*o,t[1]-Math.sin(f)*o];return e.push(0===e.length?`M ${m[0]} ${m[1]} A ${o} ${o} 0 ${h} ${a} ${g[0]} ${g[1]}`:` A ${o} ${o} 0 0 ${s} ${m[0]} ${m[1]} A ${o} ${o} 0 ${h} ${a} ${g[0]} ${g[1]}`),e}),[]).join(" ")}const S=2*Math.PI,E=S/360;function P(e){let{boundingBox:t,cloudyBorderIntensity:n,cloudyBorderInset:o}=e;const r=o instanceof i.eB?i.eB.applyToRect(o,t):t,a=t.width/2,s=t.height/2;if(0===a||0===s)return"";const l=Math.min(a,s,c.St*n),u=r.width/2,d=r.height/2,p=r.left+u,f=r.top+d,h=Array.from({length:360},((e,t)=>{const n=E*t;return[p+u*Math.cos(n),f+d*Math.sin(n)]})),m=h.length;let g=1.75*l;const v=A(h),y=v/g;g+=y>0?v%g/y:0;let b=0;const w=h.reduce(((e,t,n)=>{const o=h[(n+1)%m],r=D(t,o)/g,i=(o[0]-t[0])/r,a=(o[1]-t[1])/r,s=i/g*b,l=a/g*b;let c=t[0]+s,u=t[1]+l;for(;(i<=0&&c>=o[0]||i>=0&&c<=o[0])&&(a<=0&&u>=o[1]||a>=0&&u<=o[1]);)e.push([c,u]),c+=i,u+=a;return b=Math.abs(o[0]-c)*(g/Math.abs(i)),e}),[]),P=w.length;return 0===P?"":w.reduce(((e,t,n)=>{const o=w[n>0?n-1:P-1],r=w[(n+1)%P];let i=k(t,o,l,!0),a=k(t,r,l,!1);if(isNaN(i)&&isNaN(a))return e.push(`${r[0]} ${r[1]}`),e;isNaN(i)&&(i=a+Math.PI),isNaN(a)&&(a=i+Math.PI),a-=.3;const s=a>i?i+(S-a)>Math.PI?"1":"0":i-a>Math.PI?"1":"0",c=[t[0]+Math.cos(i)*l,t[1]-Math.sin(i)*l],u=[t[0]+Math.cos(a)*l,t[1]-Math.sin(a)*l];return e.push(0===e.length?`M ${c[0]} ${c[1]} A ${l} ${l} 0 ${s} 1 ${u[0]} ${u[1]}`:`A ${l} ${l} 0 0 0 ${c[0]} ${c[1]} A ${l} ${l} 0 ${s} 1 ${u[0]} ${u[1]}`),e}),[]).join(" ")}const x=e=>e.reduce(((t,n,o)=>o0,D=(e,t)=>{const n=t[0]-e[0],o=t[1]-e[1];return e[0]===t[0]?Math.abs(o):e[1]===t[1]?Math.abs(n):Math.sqrt(n**2+o**2)},C=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.001;return Math.abs(e[0]-t[0])<=n&&Math.abs(e[1]-t[1])<=n},k=(e,t,n,o)=>{const r=.5*Math.sqrt((e[0]-t[0])**2+(e[1]-t[1])**2),i=Math.acos(r/n),a=[t[0]-e[0],t[1]-e[1]];let s=Math.atan2(-a[1],a[0]);return s<0&&(s+=S),o?s-i:s+i},A=e=>e.reduce(((t,n,o)=>t+D(n,o{"use strict";function o(e,t,n,o){var r;if((null===(r=e.points)||void 0===r?void 0:r.size)<3)return-1;const i=e.get("points"),a=o||(null==i?void 0:i.get(t));return i.findIndex((e=>{if(e.get("x")===a.get("x")&&e.get("y")===a.get("y"))return!1;return e.distance(a)<=n}))}function r(e,t,n){var o;const r=null===(o=e.get("points"))||void 0===o?void 0:o.get(n);return e.update("points",(e=>e.set(t,r)))}n.d(t,{K:()=>o,d:()=>r})},55961:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});var o=n(67366);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.$j)(((t,n)=>null==e?void 0:e(t.reuseState?i(t,t.reuseState):t,n)),null,null,t)}const i=(0,n(30845).Z)(((e,t)=>e.withMutations((n=>{n.merge(t),n.set("pages",e.pages.map((e=>{const n=e.pageKey,o=t.pages.find((e=>e.pageKey===n));return o&&o?e.set("annotationIds",o.annotationIds):e})))}))))},72584:(e,t,n)=>{"use strict";n.d(t,{F6:()=>c,HD:()=>d,LE:()=>a,Oe:()=>i,QE:()=>l,aF:()=>f,hj:()=>p,zW:()=>u});var o=n(37529),r=n.n(o);function i(e){return e.charAt(0)&&e.charAt(0).toUpperCase()+e.slice(1)}function a(e){return e.charAt(0).toLowerCase()+e.substr(1)}const s=e=>e[0]===r().INSERT;function l(e,t,n){var o,i;const a=r()(e,t,n);let l="";const c=a.filter(s);return c.length>0&&(l=c[0][1]),{prev:e,next:t,change:l,diff:a,endCursorPosition:n+((null===(o=a[1])||void 0===o||null===(i=o[1])||void 0===i?void 0:i.length)||0)}}function c(e,t){if(t===e.change)return e.next;const{diff:n}=e,o=n.findIndex(s);return o>=0?n[o][1]=t:n.push([r().INSERT,t]),function(e){let t="";for(let n=0;nt?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e.toLowerCase())).join("")}function d(e){return"string"==typeof e}function p(e){return"number"==typeof e}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:120;const n=e.trim();return n.length{"use strict";n.d(t,{BK:()=>u,KY:()=>c,Vq:()=>d,in:()=>l,kC:()=>s});var o=n(50974),r=n(25256),i=n(82481),a=n(3026);function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function l(e){return e.split(/[^a-zA-Z0-9]/g).reduce(((e,t)=>e+s(t)),"")}function c(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||""}function u(e){return"#00000000"===e?void 0:e}function d(e){let{rect:t,callout:n,zoomLevel:s,annotation:l,text:c=l.text}=e;const{height:u,width:d}=t,p=l.boundingBox.scale(s);if(null==n||!n.innerRectInset||!d||!u)return;const f=n.innerRectInset.setScale(s),h=p.left+f.left,m=p.left+f.left+d,g=p.top+f.top,v=p.top+f.top+u,y=(l.borderWidth||2)/2,b=(0,r.dY)([[h+y,g+y],[m-y,g+y],[m-y,v-y],[h+y,v-y]]),w=n.knee||n.start;(0,o.kG)(w,"CalloutEditComponent: point is undefined");const S=(0,r.Zt)(w.scale(s),b);(0,o.kG)(n.start);let E=i.UL.fromPoints(...[[h,g],[m,g],[m,v],[h,v]].map((e=>new i.E9({x:e[0],y:e[1]})))).expandToIncludePoints(...[n.start,n.knee].filter(Boolean).map((e=>null==e?void 0:e.scale(s))));E=(0,a.Pr)(n.start.scale(s),E,4*(l.borderWidth||2)),n.knee&&(E=(0,a.Pr)(n.knee.scale(s),E,l.borderWidth||2));const P=S.scale(1/s);return l.setIn(["callout","end"],P).setIn(["callout","innerRectInset"],new i.eB({bottom:(E.top+E.height-v)/s,left:(h-E.left)/s,right:(E.left+E.width-m)/s,top:(g-E.top)/s})).set("text",c).set("boundingBox",E.scale(1/s))}},78233:(e,t,n)=>{"use strict";n.d(t,{MF:()=>h,XA:()=>f,Zv:()=>m,gB:()=>b,hm:()=>w,hr:()=>y,z1:()=>g});var o=n(84121),r=n(50974),i=n(4054),a=n(82481),s=n(34710),l=n(91859),c=n(97528),u=n(75669);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:1;if(!1===c.Ei.TEXT_ANNOTATION_AUTOFIT_TEXT_ON_EXPORT)return e.set("isFitting",!1);try{t=(0,i.Aw)(),n=new s.f(document,e.text.value,g(e.set("rotation",0),o,!1));const r=!(0,i.f)(n.wrapper);return e.set("isFitting",r)}finally{n&&n.remove(),t&&t.remove()}}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;for(e=f(e,t);!e.isFitting&&e.fontSize>=2;)e=f(e=e.set("fontSize",e.fontSize-1),t);return e}function m(e,t){let n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;try{const r=t.width-e.boundingBox.left,i=t.height-e.boundingBox.top;n=new s.f(document,e.text.value,p(p({},g(e,o,!1)),{},{width:"auto",height:"auto",maxWidth:`${Math.ceil(r*o)}px`,maxHeight:`${Math.ceil(i*o)}px`,padding:"0px",margin:"0px",overflow:"visible"}));const{width:a,height:l}=n.wrapper.getBoundingClientRect(),c=Math.max(a,n.wrapper.clientWidth,n.wrapper.scrollWidth),u=Math.max(l,n.wrapper.clientHeight,n.wrapper.scrollHeight);return e.set("boundingBox",e.boundingBox.set("width",Math.ceil(c/o)).set("height",Math.ceil(u/o)))}finally{n&&n.remove()}}function g(e,t,n){const o=p(p({width:Math.ceil(e.boundingBox.width*t),height:Math.ceil(e.boundingBox.height*t),color:e.fontColor?e.fontColor.toCSSValue():"transparent",backgroundColor:e.backgroundColor&&!n?e.backgroundColor.toCSSValue():"transparent",fontSize:e.fontSize*t+"px",fontFamily:`${w(e.font)}, sans-serif`,textAlign:e.horizontalAlign},n?null:{opacity:e.opacity}),{},{fontWeight:e.isBold?"bold":"normal",fontStyle:e.isItalic?"italic":"normal",whiteSpace:"pre-wrap",wordBreak:"break-word",overflow:"hidden",lineHeight:"number"==typeof e.lineHeightFactor?e.lineHeightFactor*t*e.fontSize+"px":"normal",flexDirection:"column",justifyContent:v(e.verticalAlign),display:"flex"});return(0,u.kv)(e)&&!n&&(o.transformOrigin="50% 50%",o.transform=`rotate(${String(-e.rotation)}deg)`),o}function v(e){switch(e){case"top":return"flex-start";case"center":return"center";case"bottom":return"flex-end";default:return(0,r.Rz)(e)}}function y(e){return"string"==typeof e?e.split("\r\n").join("\n").split("\r").join("\n"):e}function b(e,t){let n;switch(t){case 0:n=new a.UL({left:e.x,top:e.y,width:l.g3,height:l.rm});break;case 90:n=new a.UL({left:e.x,top:e.y-l.rm,width:l.g3,height:l.rm});break;case 180:n=new a.UL({left:e.x-l.g3,top:e.y-l.rm,width:l.g3,height:l.rm});break;case 270:n=new a.UL({left:e.x-l.g3,top:e.y,width:l.g3,height:l.rm});break;default:throw(0,r.Rz)(t)}return n}function w(e){return/^[-_a-zA-Z0-9\\xA0-\\u{10FFFF}]*$/.test(e)?e:`"${e}"`}},4757:(e,t,n)=>{"use strict";n.d(t,{LD:()=>u,TH:()=>l,uv:()=>c});var o=n(35369),r=n(82481),i=n(33320),a=n(36095),s=n(93572);function l(e,t){return(0,o.aV)(e.textLines.map(((e,n)=>new r.bi({id:n+1,contents:e.contents,pageIndex:t,boundingBox:new r.UL({top:e.top,left:e.left,height:e.height,width:e.width})}))))}function c(e,t,n){let a=n;const l=[],c=[],u={};let d="",p=(0,i.C)();return function e(n,o){n&&n.forEach((n=>{if(n.bbox){a+=1;const e=new r.bi({id:a,contents:n.element.text,pageIndex:t,contentTreeElementMetadata:o,boundingBox:(0,s.k)(n.bbox)});(null==o?void 0:o.pdfua_type)===d&&r.UL.areRectsCloserThan(e.boundingBox,u[p][u[p].length-1].boundingBox,.6*e.boundingBox.height)?u[p]&&u[p].length>0?u[p].push(e):u[p]=[e]:(d=(null==o?void 0:o.pdfua_type)||"",p=(0,i.C)(),u[p]=[e]),l.push(e)}if(n.children){const t={pdfua_type:n.pdfua_type,type:n.type,alt:n.alt};e(n.children,t)}}))}(e,null),a=n,Object.keys(u).forEach((e=>{let n="";const i=[];let s={pdfua_type:"",type:"",alt:""};for(let t=0;t{"use strict";n.d(t,{Bx:()=>d,PK:()=>u,rf:()=>p});var o=n(84121),r=n(82481),i=n(18803),a=n(95651),s=n(97413);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2];return p(e).map((o=>{let{pageIndex:i,rects:s}=o;return new t(c(c({},(0,a.lx)(e)),{},{pageIndex:i,boundingBox:r.UL.union(s),rects:s,isCommentThreadRoot:n}))}))}function d(e,t,n){return p(e).map((o=>{let{pageIndex:i,rects:s}=o;const l=t.get(i);return null==l?new n(c(c({},(0,a.lx)(e)),{},{pageIndex:i,boundingBox:r.UL.union(s),rects:s})):l.withMutations((e=>e.set("boundingBox",r.UL.union(s)).set("rects",s)))}))}function p(e){(0,s.k)(e.currentTextSelection,"Cannot create markup annotation without text selection.");const{textRange:t,startTextLineId:n,endTextLineId:o,startPageIndex:r,endPageIndex:a}=e.currentTextSelection;(0,s.k)(t);const{startRect:l,endRect:c}=(0,i.mB)(e,t);return(0,i.ZJ)(e,t).map(((t,i)=>{const u=e.pages.get(i);(0,s.k)(u);const d=t.map((e=>e.id==n&&i==r?l:e.id==o&&i==a?c:e.boundingBox));return{pageIndex:u.pageIndex,rects:d}})).valueSeq().toList()}},94385:(e,t,n)=>{"use strict";function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=null,r=null;return function(){const i=this;for(var a=arguments.length,s=new Array(a),l=0;l{o=null,r&&n&&(e.apply(i,r),r=null,o=setTimeout(a,t))};o=setTimeout(a,t)}}}n.d(t,{Z:()=>o})},77528:(e,t,n)=>{"use strict";n.d(t,{CN:()=>h,DQ:()=>c,FO:()=>v,I4:()=>g,KT:()=>b,Kt:()=>m,Li:()=>y,Ut:()=>u,hJ:()=>d,q1:()=>s,se:()=>l});var o=n(35369),r=n(19815),i=n(62164),a=n(20792);function s(e,t,n){return e.filter((e=>{const o=e.get("type");if(t[o]&&t[o].forceHide)return!1;let r=e.get("mediaQueries");if(!r){if(f(e))return!0;const n=t[o].mediaQueries;if(!n)return!0;r=n}const i=null==n?void 0:n.matchMedia(r.join(", "));return null==i?void 0:i.matches}))}function l(e,t){return e.map((e=>{const n=e.get("mediaQueries");if(!n){if(f(e))return;const n=(t[e.get("type")]||{}).mediaQueries;return n?(0,o.aV)(n):void 0}return n})).filter(Boolean).flatten().filter((e=>"all"!==e)).toSet().toArray()}function c(e,t){return e=e.map((e=>{const n=e.get("type"),r=t[n]||{},{id:i,className:a,icon:s,title:l,selected:c,disabled:u,responsiveGroup:d,onPress:p,dropdownGroup:f,preset:h,node:m}=e.toJS(),g="custom"===n,v={id:i||n,type:r.type||n,title:l||r.title,icon:s||r.icon,className:[r.className,a].filter(Boolean).join(" "),selected:g?c:r.selected,disabled:!0===u?u:r.disabled,onPress:g?p:r.onPress,onKeyPress:g?void 0:r.onKeyPress,responsiveGroup:d||r.responsiveGroup,dropdownGroup:void 0!==f?f:r.dropdownGroup,preset:h||r.preset};return m&&(v.node=m),(0,o.D5)(v)}))}function u(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;return e.filter((o=>{const r=o.get("responsiveGroup");return r&&void 0!==p(e,r)?!!t&&r===n:!t}))}function d(e){return e.map((t=>{const n=t.get("type"),o=t.get("id");if("responsive-group"==n||"annotate"==n){const n=t.get("selected"),r=!!e.find((e=>e.get("responsiveGroup")==o&&1==e.get("selected")));return t.set("selected",n||r)}return t}))}function p(e,t){return e.find((e=>e.get("id")&&e.get("id")===t))}function f(e){const t=e.get("type");return"custom"===t||"responsive-group"===t}function h(e,t){return t===e}function m(e,t,n){return n===e&&!t}function g(e){let{toolbarItems:t,features:n,backend:o,backendPermissions:a,documentPermissions:s,readOnlyEnabled:l,showComments:c}=e;return t.filter((e=>"document-editor"===e.get("type")||"document-crop"===e.get("type")?(0,r.Xr)({features:n,backendPermissions:a,documentPermissions:s,readOnlyEnabled:l}):"content-editor"===e.get("type")?(0,r.qs)({features:n,backendPermissions:a,documentPermissions:s,readOnlyEnabled:l}):"comment"!==e.get("type")||(0,r.LC)({features:n,backend:o})&&(0,i.oK)({showComments:c,features:n,backend:o})))}const v={[a.A.INK]:["ink","highlighter"],[a.A.SHAPE_LINE]:["line","arrow"],[a.A.INK_ERASER]:"ink-eraser",[a.A.TEXT_HIGHLIGHTER]:"text-highlighter",[a.A.SHAPE_RECTANGLE]:["rectangle","cloudy-rectangle","dashed-rectangle"],[a.A.SHAPE_ELLIPSE]:["ellipse","cloudy-ellipse","dashed-ellipse"],[a.A.SHAPE_POLYGON]:["polygon","cloudy-polygon","dashed-polygon"],[a.A.SHAPE_POLYLINE]:"polyline",[a.A.NOTE]:"note",[a.A.TEXT]:"text",[a.A.CALLOUT]:"callout",[a.A.LINK]:"link",[a.A.MEASUREMENT]:"measurement"};function y(e){const t=Object.entries(v).find((t=>{let[,n]=t;return Array.isArray(n)?n.includes(e):n===e}));return t&&t[0]||null}function b(e){var t;return null===(t=e.find((e=>"delete"===e.type)))||void 0===t?void 0:t.icon}},42911:(e,t,n)=>{"use strict";n.d(t,{Yw:()=>i,bl:()=>l,sX:()=>a});var o=n(36095),r=n(71231);function i(){const e="webkit"===o.SR;let t;e&&(t=window.PointerEvent);const r=window.Hammer;e&&delete window.PointerEvent;const i=n(34988);return e&&(window.PointerEvent=t),window.Hammer=r,i}function a(e){let t;if(e.touches)t=e.touches;else{if(!e.changedTouches)return!1;t=e.changedTouches}return t.length<=1}const s="webkit"===o.SR||"blink"===o.SR;function l(e){if(!s)return()=>{};const t=e=>{a(e)||e.preventDefault()},n=["touchstart","touchmove"],o=r.Gn?{passive:!1}:void 0;return n.forEach((n=>{e.addEventListener(n,t,o),document.addEventListener(n,t,o)})),()=>{n.forEach((n=>{e.removeEventListener(n,t,o),document.removeEventListener(n,t,o)}))}}},27515:(e,t,n)=>{"use strict";n.d(t,{DB:()=>g,EY:()=>x,Ek:()=>m,G4:()=>C,JN:()=>E,YA:()=>w,YS:()=>f,YV:()=>I,_4:()=>y,_P:()=>D,_U:()=>S,a$:()=>b,cr:()=>h,fI:()=>k,oI:()=>O,pA:()=>A,vY:()=>P,vs:()=>v,zi:()=>F,zo:()=>T});var o=n(71693),r=n(52560),i=n(56956),a=n(77973),s=n(88804),l=n(47710),c=n(28098),u=n(91859),d=n(87222),p=n(97413);function f(e,t,n){if((e.scrollMode===l.G.PER_SPREAD||e.scrollMode===l.G.DISABLED)&&t!==e.currentPageIndex)return!1;const o=h(e,t),r=n.apply(o);return e.viewportRect.isRectOverlapping(r)}function h(e,t){var n;if(null!==(n=e._pageToClientTransformation)&&void 0!==n&&n[t])return e._pageToClientTransformation[t];const r=(0,o.dF)(e,t),i=function(e,t){return e.translate(t.viewportRect.getLocation()).translate(t.scrollPosition.scale(-t.zoomLevel))}(y(v(g(s.sl.IDENTITY,e,t,r),e,r),e),e);return e._pageToClientTransformation||(e._pageToClientTransformation={}),e._pageToClientTransformation[t]=i,i}function m(e,t){return h(e,t).inverse()}function g(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const s=t.pageSizes.get(n);switch((0,p.k)(s),0!==t.pagesRotation&&(e=e.rotate(-t.pagesRotation)),t.pagesRotation){case 0:break;case 90:e=e.translateX(s.height*i);break;case 180:e=e.translateX(s.width*i).translateY(s.height*i);break;case 270:e=e.translateY(s.width*i);break;default:throw new Error(`Unsupported pagesRotation: ${t.pagesRotation}. Only supporting: 0, 90, 180, 270.`)}switch((0,o.nw)(t)){case a.X.SINGLE:return(0,p.k)(n===r,"In LayoutMode.SINGLE, pageIndex must equal spreadIndex."),e;case a.X.DOUBLE:{if(t.keepFirstSpreadAsSinglePage&&0==n&&0==r)return e;const a=t.keepFirstSpreadAsSinglePage?1:0,s=(0,o.hK)(t,n),l=(0,o.Xk)(t,r);return e.translateX((n+a)%2?parseInt((l.width-s.width)*i,10):0).translateY(parseInt((l.height-s.height)*i/2,10))}default:throw new Error("Unsupported layoutMode")}}function v(e,t,n){if(t.scrollMode===l.G.CONTINUOUS){const r=(0,o.Xk)(t,n).width,i=(0,o.e8)(t,n);return e.translateX(((0,o.Ad)(t)-r)/2).translateY(i)}return e}function y(e,t){return e.scale(t.zoomLevel).translate(C(t).getLocation())}function b(e,t,n,o){const r=e.set("viewportRect",new s.UL({width:t.width-o,height:t.height,top:t.top,left:t.left}));return T(k(e,r,n))}function w(e,t){const n=e.set("layoutMode",t);return T(k(e,n))}function S(e,t){const n=e.set("scrollMode",t);return T(k(e,n))}function E(e,t){return T(e.set("spreadSpacing",t))}function P(e,t){return T(e.set("pageSpacing",t))}function x(e,t){return T(e.set("keepFirstSpreadAsSinglePage",t))}function D(e,t){return T(e.set("viewportPadding",t))}function C(e){let t;if(e.scrollMode===l.G.CONTINUOUS)t=new s.$u({width:(0,o.Ad)(e),height:(0,o.Of)(e)});else{const n=(0,o.dF)(e,e.currentPageIndex);t=(0,o.Xk)(e,n)}let n=new s.UL({width:t.width,height:t.height}).scale(e.zoomLevel).translate(e.viewportPadding);const r=e.commentMode===d._.SIDEBAR?u.h8:0;e.viewportRect.width-r-2*e.viewportPadding.x>n.width&&(n=n.translateX((e.viewportRect.width-r-2*e.viewportPadding.x-n.width)/2));return e.viewportRect.height-2*e.viewportPadding.y>n.height&&(n=n.translateY((e.viewportRect.height-2*e.viewportPadding.y-n.height)/2)),n}function k(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=(0,o.nw)(e)!==(0,o.nw)(t),a=e.scrollMode!==t.scrollMode;if(!(n||r||a))return t;switch(t.scrollMode){case l.G.PER_SPREAD:case l.G.DISABLED:return t.set("zoomMode",c.c.FIT_TO_VIEWPORT);case l.G.CONTINUOUS:return t=T(t),(0,i.eb)(t,t.currentPageIndex,!0);default:throw new Error("Unsupported scrollMode")}}function A(e,t){return e.zoomLevel!==t.zoomLevel||e.zoomMode!==t.zoomMode||e.layoutMode!==t.layoutMode||e.scrollMode!==t.scrollMode||e.scrollPosition!==t.scrollPosition||e.currentPageIndex!==t.currentPageIndex||e.viewportRect!==t.viewportRect||e.pageSizes!==t.pageSizes||e.pagesRotation!==t.pagesRotation||e.viewportPadding!==t.viewportPadding||e.spreadSpacing!==t.spreadSpacing||e.pageSpacing!==t.pageSpacing||e.keepFirstSpreadAsSinglePage!==t.keepFirstSpreadAsSinglePage}function O(e){return[e.zoomLevel,e.zoomMode,e.layoutMode,e.scrollMode,e.scrollPosition,e.currentPageIndex,e.viewportRect,e.pageSizes,e.pagesRotation,e.viewportPadding,e.spreadSpacing,e.pageSpacing,e.keepFirstSpreadAsSinglePage]}function T(e){return e.zoomMode!==c.c.CUSTOM?e.set("zoomLevel",(0,r.X9)(e,e.zoomMode)):e}function I(e){return function(t,n){return t.apply(F(e(),n))}}function F(e,t){let{viewportState:n,scrollElement:o}=e;if(o){const e=new s.E9({x:o.scrollLeft/n.zoomLevel,y:o.scrollTop/n.zoomLevel});n=n.set("scrollPosition",e)}return m(n,t)}},5020:(e,t,n)=>{"use strict";n.d(t,{Lv:()=>l,U1:()=>a,kI:()=>c,n5:()=>s});var o=n(50974),r=n(27515),i=n(82481);function a(e,t){(0,o.kG)(t%90==0,"Only multiples of 90° allowed for rotation."),t=s(t);const n=e.update("pagesRotation",(e=>(e+t)%360));return(0,r.zo)((0,r.fI)(e,n,!0))}function s(e){return(0,o.kG)(e%90==0,"Only multiples of 90° allowed for rotation."),(360+e%360)%360}function l(e){return(360+Math.round(e)%360)%360}function c(e,t,n){switch(n){case 90:return new i.UL({left:e.top,top:Math.max(0,Math.round(t.height-e.right)),height:e.width,width:e.height});case 180:return e.merge({left:Math.max(0,Math.round(t.width-e.right)),top:Math.max(0,Math.round(t.height-e.bottom))});case 270:return new i.UL({left:Math.max(0,Math.round(t.width-e.bottom)),top:e.left,height:e.width,width:e.height});default:return e}}},56956:(e,t,n)=>{"use strict";n.d(t,{DJ:()=>u,TW:()=>h,eb:()=>d,hu:()=>m,k3:()=>c,kN:()=>p,vP:()=>f});var o=n(71693),r=n(27515),i=n(52560),a=n(88804),s=n(47710),l=n(28098);function c(e,t,n){n||(n=new a.E9({x:.5*e.viewportRect.width,y:.1*e.viewportRect.height})),n=n.translate(e.viewportPadding.scale(-1));const o=t/e.zoomLevel-1;let r=0;const s=(0,i.kh)(e),l=t>s;if(l){r=t/Math.max(e.zoomLevel,s)-1}return new a.E9({x:l?e.scrollPosition.x+n.x*r/t:0,y:e.scrollPosition.y+n.y*o/t})}function u(e,t){const n=h(e);return new a.E9({x:Math.max(0,Math.min(t.x,n.x)),y:Math.max(0,Math.min(t.y,n.y))})}function d(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!n&&e.currentPageIndex==t)return e;if(e.scrollMode==s.G.PER_SPREAD||e.scrollMode===s.G.DISABLED)return(0,i.cq)(e.set("currentPageIndex",t),l.c.FIT_TO_VIEWPORT).set("scrollPosition",new a.E9).set("currentPageIndex",t);{const n=(0,o.dF)(e,t),r=(0,o.e8)(e,n),i=h(e).y,a=Math.min(i,r);return e.set("currentPageIndex",t).setIn(["scrollPosition","y"],a)}}function p(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!o&&(0,r.YS)(e,t,n))return e;const i=(0,r.cr)(e,t),a=n.apply(i),s=e.viewportRect.getCenter(),l=a.getCenter().translate(s.scale(-1)),c=e.scrollPosition.translate(l.scale(1/e.zoomLevel));return e.merge({scrollPosition:u(e,c),currentPageIndex:t})}function f(e,t,n){const{viewportRect:o,viewportPadding:r}=e,a=(o.width-2*r.x)/n.width,s=(o.height-2*r.y)/n.height,l=Math.min(a,s);return p((0,i.cq)(e,l),t,n,!0)}function h(e){const t=(0,r.G4)(e),n=t.left/e.zoomLevel+t.width/e.zoomLevel+e.viewportPadding.x/e.zoomLevel-e.viewportRect.width/e.zoomLevel,o=t.top/e.zoomLevel+t.height/e.zoomLevel+e.viewportPadding.y/e.zoomLevel-e.viewportRect.height/e.zoomLevel;return new a.E9({x:Math.max(0,n),y:Math.max(0,o)})}function m(e,t){return(0,o.Y2)(e.set("scrollPosition",t))}},71693:(e,t,n)=>{"use strict";n.d(t,{Ad:()=>h,Of:()=>m,P1:()=>g,Xk:()=>w,Y2:()=>E,dF:()=>v,e8:()=>f,hK:()=>b,kd:()=>y,nw:()=>d,s:()=>S,wU:()=>x,wX:()=>D});var o=n(35369),r=n(67294),i=n(50974),a=n(77973),s=n(27515),l=n(88804),c=n(47710),u=n(91859);function d(e){if(e.layoutMode===a.X.AUTO){return e.viewportRect.width>e.viewportRect.height&&e.viewportRect.width>u.GI?a.X.DOUBLE:a.X.SINGLE}return e.layoutMode}function p(e){const t=y(e);let n=(0,o.aV)();for(let e=0;ew(e,t))).takeUntil(((e,n)=>n>=t)).reduce(((t,n)=>t+n.height+e.spreadSpacing),0)}function h(e){const t=p(e).map((t=>w(e,t))).maxBy((e=>e.width));return t?t.width:0}function m(e){const t=p(e).map((t=>w(e,t))),n=(t.size-1)*e.spreadSpacing;return t.map((e=>e.height)).reduce(((e,t)=>e+t),0)+n}function g(e,t){switch(d(e)){case a.X.SINGLE:return(0,i.kG)(t=e.pageSizes.size)return 0;switch(d(e)){case a.X.SINGLE:return t;case a.X.DOUBLE:{const n=e.keepFirstSpreadAsSinglePage?1:0;return Math.floor((t+n)/2)}default:throw new Error("Unsupported layoutMode")}}function y(e){switch(d(e)){case a.X.SINGLE:return e.pageSizes.size;case a.X.DOUBLE:{if(e.pageSizes.size<=0)return 0;const t=e.keepFirstSpreadAsSinglePage?1:0;return Math.ceil((e.pageSizes.size+t)/2)}default:throw new Error("Unsupported layoutMode")}}function b(e,t){const n=e.pageSizes.get(t);return(0,i.kG)(n,"No such page size"),90===e.pagesRotation||270===e.pagesRotation?new l.$u({width:n.height,height:n.width}):n}function w(e,t){const n=g(e,t);if(1===n.length)return b(e,n[0]);{let t=0,o=0;for(const r of n){const{width:n,height:i}=b(e,r);t+=n+(0!==r?e.pageSpacing:0),i>o&&(o=i)}return new l.$u({width:t,height:o})}}function S(e){let{width:t}=e;return t<=u.y$?"width-xs":t<=u.Fg?"width-sm":t<=u.GI?"width-md":t<=u.Qq?"width-lg":"width-xl"}function E(e){let t=e.currentPageIndex,n=v(e,e.currentPageIndex);if(e.scrollMode===c.G.CONTINUOUS){const t=[0];let o=0;for(let n=0;nt1){const r=e.scrollPosition.x*e.zoomLevel-e.viewportPadding.x+e.viewportRect.width/2,i=o[1],a=(0,s._4)((0,s.vs)((0,s.DB)(l.sl.IDENTITY,e,i,n),e,n),e);t=(new l.E9).apply(a).x{const t=e.current;return()=>t.clear()})),e.current}(),c=r.useCallback((e=>{a.current.contains(t)&&(e?(l.clear(),l.set((()=>{i(t)}),P)):i(t))}),[t,l,i]);r.useEffect((()=>{l.clear(),a.current=a.current.filter((e=>D(e,t))),c(!1)}),[...(0,s.oI)(e),t,l,c]);return[n,r.useCallback((e=>{a.current=a.current.add(e),c(!0)}),[c])]}function D(e,t){return e>=t-u.J8&&e<=t+u.J8}},52560:(e,t,n)=>{"use strict";n.d(t,{Mq:()=>h,Sm:()=>p,X9:()=>g,Yo:()=>d,cq:()=>v,hT:()=>y,kh:()=>f,vw:()=>m});var o=n(71693),r=n(91859),i=n(56956),a=n(47710),s=n(28098),l=n(97413);let c=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY;function d(e){const t=Math.min(f(e),h(e),e.minDefaultZoomLevel,c);return c>t&&(c=t),t}function p(e){const t=Math.max(f(e),h(e),e.maxDefaultZoomLevel,u);return ui.height?Math.min(t,n):n;return Math.min(a,r.zh)}(e);case s.c.FIT_TO_VIEWPORT:return m(e);case s.c.FIT_TO_WIDTH:return f(e);default:return(0,l.k)("number"==typeof t,"Unknown zoom mode"),t}}function v(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=g(e,t);const a="number"==typeof t?s.c.CUSTOM:t,l=d(e),c=p(e);if(r>=c)if(n.unbounded){const e=b((r-c)/25);r=c*(1+.5*e)}else r=c;else if(r<=l)if(n.unbounded){const e=b(4*(r-l));r=l*(1+.25*e)}else r=l;let u=(0,i.k3)(e,r,n.zoomCenter);return u=(0,i.DJ)(e.set("zoomLevel",r),u),(0,o.Y2)(e.withMutations((e=>e.set("zoomLevel",r).set("scrollPosition",u).set("zoomMode",a))))}function y(e){const{zoomLevel:t}=e,n=d(e);return t>p(e)||t{"use strict";n.d(t,{$Z:()=>g,DI:()=>d,MX:()=>h,n:()=>u,w5:()=>p});var o=n(35369),r=n(50974),i=n(34710),a=n(4054),s=n(23661),l=n.n(s),c=n(16126);const u=2,d=2,p=[1,2,3,4,6,8,9,10,12,14,16,18,20,25,30,35,40,45,50,55,60,70,80,90,100,110,120,130,144],f=p.slice(0,Math.floor(p.length/4));function h(e,t,n,a,s,c,h){if(s&&e&&10===e.charCodeAt(e.length-1)&&(e+="\n"),"auto"!==a)return a||Math.max(4,Math.min(.7*n,12));let g,v;if(h){const e=window.getComputedStyle(h);g=e.getPropertyValue("font-family"),s||(v=e.getPropertyValue("line-height"))}if(s){const a=n-2*u,s=(0,o.aV)([e]),p=m(f,(e=>{const n=function(e){let{valueString:t,fontSize:n,fontFamily:o="inherit",availableWidth:a,element:s}=e;const c=new i.f(document,t,{fontSize:`${n}px`,width:`${a}px`,wordBreak:"break-word",whiteSpace:"pre-wrap",fontFamily:o,lineHeight:`${n}px`,margin:"0",padding:"0",border:"none",textAlign:(null==s?void 0:s.style.textAlign)||"initial"},l().widget,s&&s.parentNode),u=c.measure().first();(0,r.kG)(u);const d=u.height;return c.remove(),d}({valueString:s,fontSize:e,fontFamily:g,availableWidth:t-2*d,element:h});let o=u;const p=a-e;return p-2*u<0&&(o=p>0?p/2:0),n+2*o+2*c>a?0:1}));return p}{const a=(0,o.aV)([e]),s=m(p,(e=>{const o=function(e){let{valueString:t,fontSize:n,fontFamily:o="inherit",lineHeight:a="inherit",element:s}=e;const c=new i.f(document,t,{fontSize:`${n}px`,fontFamily:o,lineHeight:a},l().widget,s&&s.parentNode),u=c.measure().first();(0,r.kG)(u);const d=u.width;return c.remove(),d}({valueString:a,fontSize:e,fontFamily:g,lineHeight:v,element:h});return o>t||e>n?0:1}));return s}}function m(e,t){let n=0,o=e.length-1,r=0,i=e[0];for(;n<=o;)r=Math.floor((n+o)/2),i=e[r],t(i)?n=r+1:o=r-1;return t(i)||(i=e[Math.max(0,r-1)]),i}function g(e,t){let n,o,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;try{return n=(0,a.Aw)(),o=new i.f(document,t,(0,c.i2)(e,r,!1)),!(0,a.f)(o.wrapper)}finally{o&&o.remove(),n&&n.remove()}}},94184:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t{"use strict";n.d(t,{Z:()=>c});var o=n(67294);function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var s=function(e){function t(e){var n,o;return function(e,n){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),(n=!(o=r(t).call(this,e))||"object"!=typeof o&&"function"!=typeof o?a(this):o).onKeyPress=n.onKeyPress.bind(a(n)),n}var n;return function(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}}),t&&i(e,t)}(t,o.Component),(n=[{key:"onKeyPress",value:function(e){var t=this.props,n=t.onClick,o=t.onKeyPress;switch(e.key){case" ":case"Spacebar":e.preventDefault(),n&&o||o?o(e):n&&n(e);break;case"Enter":if(o&&(o(e),e.isDefaultPrevented()))return;n&&n(e)}}},{key:"render",value:function(){var e=this.props,t=e.is,n=void 0===t?"span":t,r=e.innerRef,i=e.onClick,a=e.disabled,s=e.tabIndex,l=void 0===s?0:s,c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["is","innerRef","onClick","disabled","tabIndex","onKeyPress"]);return o.createElement(n,Object.assign({tabIndex:a?void 0:l,role:"button",onKeyPress:a?void 0:this.onKeyPress,onClick:a?void 0:i,"aria-disabled":a?"true":void 0,ref:r},c))}}])&&function(e,t){for(var n=0;n{var o=n(60614),r=n(66330),i=TypeError;e.exports=function(e){if(o(e))return e;throw i(r(e)+" is not a function")}},39483:(e,t,n)=>{var o=n(4411),r=n(66330),i=TypeError;e.exports=function(e){if(o(e))return e;throw i(r(e)+" is not a constructor")}},96077:(e,t,n)=>{var o=n(60614),r=String,i=TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw i("Can't set "+r(e)+" as a prototype")}},51223:(e,t,n)=>{var o=n(5112),r=n(70030),i=n(3070).f,a=o("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},31530:(e,t,n)=>{"use strict";var o=n(28710).charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},25787:(e,t,n)=>{var o=n(47976),r=TypeError;e.exports=function(e,t){if(o(t,e))return e;throw r("Incorrect invocation")}},19670:(e,t,n)=>{var o=n(70111),r=String,i=TypeError;e.exports=function(e){if(o(e))return e;throw i(r(e)+" is not an object")}},23013:e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7556:(e,t,n)=>{var o=n(47293);e.exports=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},90260:(e,t,n)=>{"use strict";var o,r,i,a=n(23013),s=n(19781),l=n(17854),c=n(60614),u=n(70111),d=n(92597),p=n(70648),f=n(66330),h=n(68880),m=n(98052),g=n(3070).f,v=n(47976),y=n(79518),b=n(27674),w=n(5112),S=n(69711),E=n(29909),P=E.enforce,x=E.get,D=l.Int8Array,C=D&&D.prototype,k=l.Uint8ClampedArray,A=k&&k.prototype,O=D&&y(D),T=C&&y(C),I=Object.prototype,F=l.TypeError,M=w("toStringTag"),_=S("TYPED_ARRAY_TAG"),R="TypedArrayConstructor",N=a&&!!b&&"Opera"!==p(l.opera),L=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},j={BigInt64Array:8,BigUint64Array:8},z=function(e){var t=y(e);if(u(t)){var n=x(t);return n&&d(n,R)?n.TypedArrayConstructor:z(t)}},K=function(e){if(!u(e))return!1;var t=p(e);return d(B,t)||d(j,t)};for(o in B)(i=(r=l[o])&&r.prototype)?P(i).TypedArrayConstructor=r:N=!1;for(o in j)(i=(r=l[o])&&r.prototype)&&(P(i).TypedArrayConstructor=r);if((!N||!c(O)||O===Function.prototype)&&(O=function(){throw F("Incorrect invocation")},N))for(o in B)l[o]&&b(l[o],O);if((!N||!T||T===I)&&(T=O.prototype,N))for(o in B)l[o]&&b(l[o].prototype,T);if(N&&y(A)!==T&&b(A,T),s&&!d(T,M))for(o in L=!0,g(T,M,{get:function(){return u(this)?this[_]:void 0}}),B)l[o]&&h(l[o],_,o);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:L&&_,aTypedArray:function(e){if(K(e))return e;throw F("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||v(O,e)))return e;throw F(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,o){if(s){if(n)for(var r in B){var i=l[r];if(i&&d(i.prototype,e))try{delete i.prototype[e]}catch(n){try{i.prototype[e]=t}catch(e){}}}T[e]&&!n||m(T,e,n?t:N&&C[e]||t,o)}},exportTypedArrayStaticMethod:function(e,t,n){var o,r;if(s){if(b){if(n)for(o in B)if((r=l[o])&&d(r,e))try{delete r[e]}catch(e){}if(O[e]&&!n)return;try{return m(O,e,n?t:N&&O[e]||t)}catch(e){}}for(o in B)!(r=l[o])||r[e]&&!n||m(r,e,t)}},getTypedArrayConstructor:z,isView:function(e){if(!u(e))return!1;var t=p(e);return"DataView"===t||d(B,t)||d(j,t)},isTypedArray:K,TypedArray:O,TypedArrayPrototype:T}},21285:(e,t,n)=>{"use strict";var o=n(47908),r=n(51400),i=n(26244);e.exports=function(e){for(var t=o(this),n=i(t),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);c>s;)t[s++]=e;return t}},48457:(e,t,n)=>{"use strict";var o=n(49974),r=n(46916),i=n(47908),a=n(53411),s=n(97659),l=n(4411),c=n(26244),u=n(86135),d=n(18554),p=n(71246),f=Array;e.exports=function(e){var t=i(e),n=l(this),h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m;g&&(m=o(m,h>2?arguments[2]:void 0));var v,y,b,w,S,E,P=p(t),x=0;if(!P||this===f&&s(P))for(v=c(t),y=n?new this(v):f(v);v>x;x++)E=g?m(t[x],x):t[x],u(y,x,E);else for(S=(w=d(t,P)).next,y=n?new this:[];!(b=r(S,w)).done;x++)E=g?a(w,m,[b.value,x],!0):b.value,u(y,x,E);return y.length=x,y}},41318:(e,t,n)=>{var o=n(45656),r=n(51400),i=n(26244),a=function(e){return function(t,n,a){var s,l=o(t),c=i(l),u=r(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},42092:(e,t,n)=>{var o=n(49974),r=n(1702),i=n(68361),a=n(47908),s=n(26244),l=n(65417),c=r([].push),u=function(e){var t=1==e,n=2==e,r=3==e,u=4==e,d=6==e,p=7==e,f=5==e||d;return function(h,m,g,v){for(var y,b,w=a(h),S=i(w),E=o(m,g),P=s(S),x=0,D=v||l,C=t?D(h,P):n||p?D(h,0):void 0;P>x;x++)if((f||x in S)&&(b=E(y=S[x],x,w),e))if(t)C[x]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return x;case 2:c(C,y)}else switch(e){case 4:return!1;case 7:c(C,y)}return d?-1:r||u?u:C}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},9341:(e,t,n)=>{"use strict";var o=n(47293);e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){return 1},1)}))}},41589:(e,t,n)=>{var o=n(51400),r=n(26244),i=n(86135),a=Array,s=Math.max;e.exports=function(e,t,n){for(var l=r(e),c=o(t,l),u=o(void 0===n?l:n,l),d=a(s(u-c,0)),p=0;c{var o=n(1702);e.exports=o([].slice)},94362:(e,t,n)=>{var o=n(41589),r=Math.floor,i=function(e,t){var n=e.length,l=r(n/2);return n<8?a(e,t):s(e,i(o(e,0,l),t),i(o(e,l),t),t)},a=function(e,t){for(var n,o,r=e.length,i=1;i0;)e[o]=e[--o];o!==i++&&(e[o]=n)}return e},s=function(e,t,n,o){for(var r=t.length,i=n.length,a=0,s=0;a{var o=n(43157),r=n(4411),i=n(70111),a=n(5112)("species"),s=Array;e.exports=function(e){var t;return o(e)&&(t=e.constructor,(r(t)&&(t===s||o(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},65417:(e,t,n)=>{var o=n(77475);e.exports=function(e,t){return new(o(e))(0===t?0:t)}},53411:(e,t,n)=>{var o=n(19670),r=n(99212);e.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(t){r(e,"throw",t)}}},17072:(e,t,n)=>{var o=n(5112)("iterator"),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},84326:(e,t,n)=>{var o=n(1702),r=o({}.toString),i=o("".slice);e.exports=function(e){return i(r(e),8,-1)}},70648:(e,t,n)=>{var o=n(51694),r=n(60614),i=n(84326),a=n(5112)("toStringTag"),s=Object,l="Arguments"==i(function(){return arguments}());e.exports=o?i:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:l?i(t):"Object"==(o=i(t))&&r(t.callee)?"Arguments":o}},29320:(e,t,n)=>{"use strict";var o=n(1702),r=n(89190),i=n(62423).getWeakData,a=n(25787),s=n(19670),l=n(68554),c=n(70111),u=n(20408),d=n(42092),p=n(92597),f=n(29909),h=f.set,m=f.getterFor,g=d.find,v=d.findIndex,y=o([].splice),b=0,w=function(e){return e.frozen||(e.frozen=new S)},S=function(){this.entries=[]},E=function(e,t){return g(e.entries,(function(e){return e[0]===t}))};S.prototype={get:function(e){var t=E(this,e);if(t)return t[1]},has:function(e){return!!E(this,e)},set:function(e,t){var n=E(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var d=e((function(e,r){a(e,f),h(e,{type:t,id:b++,frozen:void 0}),l(r)||u(r,e[o],{that:e,AS_ENTRIES:n})})),f=d.prototype,g=m(t),v=function(e,t,n){var o=g(e),r=i(s(t),!0);return!0===r?w(o).set(t,n):r[o.id]=n,e};return r(f,{delete:function(e){var t=g(this);if(!c(e))return!1;var n=i(e);return!0===n?w(t).delete(e):n&&p(n,t.id)&&delete n[t.id]},has:function(e){var t=g(this);if(!c(e))return!1;var n=i(e);return!0===n?w(t).has(e):n&&p(n,t.id)}}),r(f,n?{get:function(e){var t=g(this);if(c(e)){var n=i(e);return!0===n?w(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),d}}},77710:(e,t,n)=>{"use strict";var o=n(82109),r=n(17854),i=n(1702),a=n(54705),s=n(98052),l=n(62423),c=n(20408),u=n(25787),d=n(60614),p=n(68554),f=n(70111),h=n(47293),m=n(17072),g=n(58003),v=n(79587);e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),w=y?"set":"add",S=r[e],E=S&&S.prototype,P=S,x={},D=function(e){var t=i(E[e]);s(E,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!f(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return b&&!f(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!d(S)||!(b||E.forEach&&!h((function(){(new S).entries().next()})))))P=n.getConstructor(t,e,y,w),l.enable();else if(a(e,!0)){var C=new P,k=C[w](b?{}:-0,1)!=C,A=h((function(){C.has(1)})),O=m((function(e){new S(e)})),T=!b&&h((function(){for(var e=new S,t=5;t--;)e[w](t,t);return!e.has(-0)}));O||((P=t((function(e,t){u(e,E);var n=v(new S,e,P);return p(t)||c(t,n[w],{that:n,AS_ENTRIES:y}),n}))).prototype=E,E.constructor=P),(A||T)&&(D("delete"),D("has"),y&&D("get")),(T||k)&&D(w),b&&E.clear&&delete E.clear}return x[e]=P,o({global:!0,constructor:!0,forced:P!=S},x),g(P,e),b||n.setStrong(P,e,y),P}},99920:(e,t,n)=>{var o=n(92597),r=n(53887),i=n(31236),a=n(3070);e.exports=function(e,t,n){for(var s=r(t),l=a.f,c=i.f,u=0;u{var o=n(5112)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(e){}}return!1}},49920:(e,t,n)=>{var o=n(47293);e.exports=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},76178:e=>{e.exports=function(e,t){return{value:e,done:t}}},68880:(e,t,n)=>{var o=n(19781),r=n(3070),i=n(79114);e.exports=o?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},79114:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},86135:(e,t,n)=>{"use strict";var o=n(34948),r=n(3070),i=n(79114);e.exports=function(e,t,n){var a=o(t);a in e?r.f(e,a,i(0,n)):e[a]=n}},47045:(e,t,n)=>{var o=n(56339),r=n(3070);e.exports=function(e,t,n){return n.get&&o(n.get,t,{getter:!0}),n.set&&o(n.set,t,{setter:!0}),r.f(e,t,n)}},98052:(e,t,n)=>{var o=n(60614),r=n(3070),i=n(56339),a=n(13072);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(o(n)&&i(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},89190:(e,t,n)=>{var o=n(98052);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},13072:(e,t,n)=>{var o=n(17854),r=Object.defineProperty;e.exports=function(e,t){try{r(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}},85117:(e,t,n)=>{"use strict";var o=n(66330),r=TypeError;e.exports=function(e,t){if(!delete e[t])throw r("Cannot delete property "+o(t)+" of "+o(e))}},19781:(e,t,n)=>{var o=n(47293);e.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:e=>{var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},80317:(e,t,n)=>{var o=n(17854),r=n(70111),i=o.document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},7207:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},48324:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},98509:(e,t,n)=>{var o=n(80317)("span").classList,r=o&&o.constructor&&o.constructor.prototype;e.exports=r===Object.prototype?void 0:r},68886:(e,t,n)=>{var o=n(88113).match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},7871:(e,t,n)=>{var o=n(83823),r=n(35268);e.exports=!o&&!r&&"object"==typeof window&&"object"==typeof document},89363:e=>{e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},83823:e=>{e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},30256:(e,t,n)=>{var o=n(88113);e.exports=/MSIE|Trident/.test(o)},71528:(e,t,n)=>{var o=n(88113),r=n(17854);e.exports=/ipad|iphone|ipod/i.test(o)&&void 0!==r.Pebble},6833:(e,t,n)=>{var o=n(88113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(o)},35268:(e,t,n)=>{var o=n(84326),r=n(17854);e.exports="process"==o(r.process)},71036:(e,t,n)=>{var o=n(88113);e.exports=/web0s(?!.*chrome)/i.test(o)},88113:(e,t,n)=>{var o=n(35005);e.exports=o("navigator","userAgent")||""},7392:(e,t,n)=>{var o,r,i=n(17854),a=n(88113),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(r=(o=u.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!r&&a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(r=+o[1]),e.exports=r},98008:(e,t,n)=>{var o=n(88113).match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},80748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},82109:(e,t,n)=>{var o=n(17854),r=n(31236).f,i=n(68880),a=n(98052),s=n(13072),l=n(99920),c=n(54705);e.exports=function(e,t){var n,u,d,p,f,h=e.target,m=e.global,g=e.stat;if(n=m?o:g?o[h]||s(h,{}):(o[h]||{}).prototype)for(u in t){if(p=t[u],d=e.dontCallGetSet?(f=r(n,u))&&f.value:n[u],!c(m?u:h+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),a(n,u,p,e)}}},47293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},27007:(e,t,n)=>{"use strict";n(74916);var o=n(21470),r=n(98052),i=n(22261),a=n(47293),s=n(5112),l=n(68880),c=s("species"),u=RegExp.prototype;e.exports=function(e,t,n,d){var p=s(e),f=!a((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),h=f&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!f||!h||n){var m=o(/./[p]),g=t(p,""[e],(function(e,t,n,r,a){var s=o(e),l=t.exec;return l===i||l===u.exec?f&&!a?{done:!0,value:m(t,n,r)}:{done:!0,value:s(n,t,r)}:{done:!1}}));r(String.prototype,e,g[0]),r(u,p,g[1])}d&&l(u[p],"sham",!0)}},6790:(e,t,n)=>{"use strict";var o=n(43157),r=n(26244),i=n(7207),a=n(49974),s=function(e,t,n,l,c,u,d,p){for(var f,h,m=c,g=0,v=!!d&&a(d,p);g0&&o(f)?(h=r(f),m=s(e,t,f,h,m,u-1)-1):(i(m+1),e[m]=f),m++),g++;return m};e.exports=s},76677:(e,t,n)=>{var o=n(47293);e.exports=!o((function(){return Object.isExtensible(Object.preventExtensions({}))}))},22104:(e,t,n)=>{var o=n(34374),r=Function.prototype,i=r.apply,a=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(o?a.bind(i):function(){return a.apply(i,arguments)})},49974:(e,t,n)=>{var o=n(21470),r=n(19662),i=n(34374),a=o(o.bind);e.exports=function(e,t){return r(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},34374:(e,t,n)=>{var o=n(47293);e.exports=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},46916:(e,t,n)=>{var o=n(34374),r=Function.prototype.call;e.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},76530:(e,t,n)=>{var o=n(19781),r=n(92597),i=Function.prototype,a=o&&Object.getOwnPropertyDescriptor,s=r(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!o||o&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},21470:(e,t,n)=>{var o=n(84326),r=n(1702);e.exports=function(e){if("Function"===o(e))return r(e)}},1702:(e,t,n)=>{var o=n(34374),r=Function.prototype,i=r.call,a=o&&r.bind.bind(i,i);e.exports=o?a:function(e){return function(){return i.apply(e,arguments)}}},35005:(e,t,n)=>{var o=n(17854),r=n(60614),i=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(o[e]):o[e]&&o[e][t]}},71246:(e,t,n)=>{var o=n(70648),r=n(58173),i=n(68554),a=n(97497),s=n(5112)("iterator");e.exports=function(e){if(!i(e))return r(e,s)||r(e,"@@iterator")||a[o(e)]}},18554:(e,t,n)=>{var o=n(46916),r=n(19662),i=n(19670),a=n(66330),s=n(71246),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return i(o(n,e));throw l(a(e)+" is not iterable")}},58173:(e,t,n)=>{var o=n(19662),r=n(68554);e.exports=function(e,t){var n=e[t];return r(n)?void 0:o(n)}},10647:(e,t,n)=>{var o=n(1702),r=n(47908),i=Math.floor,a=o("".charAt),s=o("".replace),l=o("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,o,d,p){var f=n+e.length,h=o.length,m=u;return void 0!==d&&(d=r(d),m=c),s(p,m,(function(r,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":c=d[l(s,1,-1)];break;default:var u=+s;if(0===u)return r;if(u>h){var p=i(u/10);return 0===p?r:p<=h?void 0===o[p-1]?a(s,1):o[p-1]+a(s,1):r}c=o[u-1]}return void 0===c?"":c}))}},17854:(e,t,n)=>{var o=function(e){return e&&e.Math==Math&&e};e.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},92597:(e,t,n)=>{var o=n(1702),r=n(47908),i=o({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(r(e),t)}},3501:e=>{e.exports={}},842:(e,t,n)=>{var o=n(17854);e.exports=function(e,t){var n=o.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},60490:(e,t,n)=>{var o=n(35005);e.exports=o("document","documentElement")},64664:(e,t,n)=>{var o=n(19781),r=n(47293),i=n(80317);e.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},68361:(e,t,n)=>{var o=n(1702),r=n(47293),i=n(84326),a=Object,s=o("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},79587:(e,t,n)=>{var o=n(60614),r=n(70111),i=n(27674);e.exports=function(e,t,n){var a,s;return i&&o(a=t.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},42788:(e,t,n)=>{var o=n(1702),r=n(60614),i=n(5465),a=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},62423:(e,t,n)=>{var o=n(82109),r=n(1702),i=n(3501),a=n(70111),s=n(92597),l=n(3070).f,c=n(8006),u=n(1156),d=n(52050),p=n(69711),f=n(76677),h=!1,m=p("meta"),g=0,v=function(e){l(e,m,{value:{objectID:"O"+g++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},h=!0;var e=c.f,t=r([].splice),n={};n[m]=1,e(n).length&&(c.f=function(n){for(var o=e(n),r=0,i=o.length;r{var o,r,i,a=n(94811),s=n(17854),l=n(70111),c=n(68880),u=n(92597),d=n(5465),p=n(6200),f=n(3501),h="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||d.state){var v=d.state||(d.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,o=function(e,t){if(v.has(e))throw m(h);return t.facade=e,v.set(e,t),t},r=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var y=p("state");f[y]=!0,o=function(e,t){if(u(e,y))throw m(h);return t.facade=e,c(e,y,t),t},r=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:o,get:r,has:i,enforce:function(e){return i(e)?r(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},97659:(e,t,n)=>{var o=n(5112),r=n(97497),i=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},43157:(e,t,n)=>{var o=n(84326);e.exports=Array.isArray||function(e){return"Array"==o(e)}},60614:(e,t,n)=>{var o=n(4154),r=o.all;e.exports=o.IS_HTMLDDA?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},4411:(e,t,n)=>{var o=n(1702),r=n(47293),i=n(60614),a=n(70648),s=n(35005),l=n(42788),c=function(){},u=[],d=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,f=o(p.exec),h=!p.exec(c),m=function(e){if(!i(e))return!1;try{return d(c,u,e),!0}catch(e){return!1}},g=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(p,l(e))}catch(e){return!0}};g.sham=!0,e.exports=!d||r((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?g:m},45032:(e,t,n)=>{var o=n(92597);e.exports=function(e){return void 0!==e&&(o(e,"value")||o(e,"writable"))}},54705:(e,t,n)=>{var o=n(47293),r=n(60614),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==u||n!=c&&(r(t)?o(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},68554:e=>{e.exports=function(e){return null==e}},70111:(e,t,n)=>{var o=n(60614),r=n(4154),i=r.all;e.exports=r.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:o(e)||e===i}:function(e){return"object"==typeof e?null!==e:o(e)}},31913:e=>{e.exports=!1},47850:(e,t,n)=>{var o=n(70111),r=n(84326),i=n(5112)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==r(e))}},52190:(e,t,n)=>{var o=n(35005),r=n(60614),i=n(47976),a=n(43307),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return r(t)&&i(t.prototype,s(e))}},20408:(e,t,n)=>{var o=n(49974),r=n(46916),i=n(19670),a=n(66330),s=n(97659),l=n(26244),c=n(47976),u=n(18554),d=n(71246),p=n(99212),f=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,n){var g,v,y,b,w,S,E,P=n&&n.that,x=!(!n||!n.AS_ENTRIES),D=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),A=o(t,P),O=function(e){return g&&p(g,"normal",e),new h(!0,e)},T=function(e){return x?(i(e),k?A(e[0],e[1],O):A(e[0],e[1])):k?A(e,O):A(e)};if(D)g=e.iterator;else if(C)g=e;else{if(!(v=d(e)))throw f(a(e)+" is not iterable");if(s(v)){for(y=0,b=l(e);b>y;y++)if((w=T(e[y]))&&c(m,w))return w;return new h(!1)}g=u(e,v)}for(S=D?e.next:g.next;!(E=r(S,g)).done;){try{w=T(E.value)}catch(e){p(g,"throw",e)}if("object"==typeof w&&w&&c(m,w))return w}return new h(!1)}},99212:(e,t,n)=>{var o=n(46916),r=n(19670),i=n(58173);e.exports=function(e,t,n){var a,s;r(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=o(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return r(a),n}},63061:(e,t,n)=>{"use strict";var o=n(13383).IteratorPrototype,r=n(70030),i=n(79114),a=n(58003),s=n(97497),l=function(){return this};e.exports=function(e,t,n,c){var u=t+" Iterator";return e.prototype=r(o,{next:i(+!c,n)}),a(e,u,!1,!0),s[u]=l,e}},51656:(e,t,n)=>{"use strict";var o=n(82109),r=n(46916),i=n(31913),a=n(76530),s=n(60614),l=n(63061),c=n(79518),u=n(27674),d=n(58003),p=n(68880),f=n(98052),h=n(5112),m=n(97497),g=n(13383),v=a.PROPER,y=a.CONFIGURABLE,b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,S=h("iterator"),E="keys",P="values",x="entries",D=function(){return this};e.exports=function(e,t,n,a,h,g,C){l(n,t,a);var k,A,O,T=function(e){if(e===h&&R)return R;if(!w&&e in M)return M[e];switch(e){case E:case P:case x:return function(){return new n(this,e)}}return function(){return new n(this)}},I=t+" Iterator",F=!1,M=e.prototype,_=M[S]||M["@@iterator"]||h&&M[h],R=!w&&_||T(h),N="Array"==t&&M.entries||_;if(N&&(k=c(N.call(new e)))!==Object.prototype&&k.next&&(i||c(k)===b||(u?u(k,b):s(k[S])||f(k,S,D)),d(k,I,!0,!0),i&&(m[I]=D)),v&&h==P&&_&&_.name!==P&&(!i&&y?p(M,"name",P):(F=!0,R=function(){return r(_,this)})),h)if(A={values:T(P),keys:g?R:T(E),entries:T(x)},C)for(O in A)(w||F||!(O in M))&&f(M,O,A[O]);else o({target:t,proto:!0,forced:w||F},A);return i&&!C||M[S]===R||f(M,S,R,{name:h}),m[t]=R,A}},13383:(e,t,n)=>{"use strict";var o,r,i,a=n(47293),s=n(60614),l=n(70111),c=n(70030),u=n(79518),d=n(98052),p=n(5112),f=n(31913),h=p("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(r=u(u(i)))!==Object.prototype&&(o=r):m=!0),!l(o)||a((function(){var e={};return o[h].call(e)!==e}))?o={}:f&&(o=c(o)),s(o[h])||d(o,h,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:m}},97497:e=>{e.exports={}},26244:(e,t,n)=>{var o=n(17466);e.exports=function(e){return o(e.length)}},56339:(e,t,n)=>{var o=n(47293),r=n(60614),i=n(92597),a=n(19781),s=n(76530).CONFIGURABLE,l=n(42788),c=n(29909),u=c.enforce,d=c.get,p=Object.defineProperty,f=a&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),h=String(String).split("String"),m=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||s&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),f&&n&&i(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=u(e);return i(o,"source")||(o.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=m((function(){return r(this)&&d(this).source||l(this)}),"toString")},74758:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var o=+e;return(o>0?n:t)(o)}},95948:(e,t,n)=>{var o,r,i,a,s,l,c,u,d=n(17854),p=n(49974),f=n(31236).f,h=n(20261).set,m=n(6833),g=n(71528),v=n(71036),y=n(35268),b=d.MutationObserver||d.WebKitMutationObserver,w=d.document,S=d.process,E=d.Promise,P=f(d,"queueMicrotask"),x=P&&P.value;x||(o=function(){var e,t;for(y&&(e=S.domain)&&e.exit();r;){t=r.fn,r=r.next;try{t()}catch(e){throw r?a():i=void 0,e}}i=void 0,e&&e.enter()},m||y||v||!b||!w?!g&&E&&E.resolve?((c=E.resolve(void 0)).constructor=E,u=p(c.then,c),a=function(){u(o)}):y?a=function(){S.nextTick(o)}:(h=p(h,d),a=function(){h(o)}):(s=!0,l=w.createTextNode(""),new b(o).observe(l,{characterData:!0}),a=function(){l.data=s=!s})),e.exports=x||function(e){var t={fn:e,next:void 0};i&&(i.next=t),r||(r=t,a()),i=t}},78523:(e,t,n)=>{"use strict";var o=n(19662),r=TypeError,i=function(e){var t,n;this.promise=new e((function(e,o){if(void 0!==t||void 0!==n)throw r("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)};e.exports.f=function(e){return new i(e)}},3929:(e,t,n)=>{var o=n(47850),r=TypeError;e.exports=function(e){if(o(e))throw r("The method doesn't accept regular expressions");return e}},2814:(e,t,n)=>{var o=n(17854),r=n(47293),i=n(1702),a=n(41340),s=n(53111).trim,l=n(81361),c=i("".charAt),u=o.parseFloat,d=o.Symbol,p=d&&d.iterator,f=1/u(l+"-0")!=-1/0||p&&!r((function(){u(Object(p))}));e.exports=f?function(e){var t=s(a(e)),n=u(t);return 0===n&&"-"==c(t,0)?-0:n}:u},83009:(e,t,n)=>{var o=n(17854),r=n(47293),i=n(1702),a=n(41340),s=n(53111).trim,l=n(81361),c=o.parseInt,u=o.Symbol,d=u&&u.iterator,p=/^[+-]?0x/i,f=i(p.exec),h=8!==c(l+"08")||22!==c(l+"0x16")||d&&!r((function(){c(Object(d))}));e.exports=h?function(e,t){var n=s(a(e));return c(n,t>>>0||(f(p,n)?16:10))}:c},21574:(e,t,n)=>{"use strict";var o=n(19781),r=n(1702),i=n(46916),a=n(47293),s=n(81956),l=n(25181),c=n(55296),u=n(47908),d=n(68361),p=Object.assign,f=Object.defineProperty,h=r([].concat);e.exports=!p||a((function(){if(o&&1!==p({b:1},p(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=p({},e)[n]||s(p({},t)).join("")!=r}))?function(e,t){for(var n=u(e),r=arguments.length,a=1,p=l.f,f=c.f;r>a;)for(var m,g=d(arguments[a++]),v=p?h(s(g),p(g)):s(g),y=v.length,b=0;y>b;)m=v[b++],o&&!i(f,g,m)||(n[m]=g[m]);return n}:p},70030:(e,t,n)=>{var o,r=n(19670),i=n(36048),a=n(80748),s=n(3501),l=n(60490),c=n(80317),u=n(6200),d=u("IE_PROTO"),p=function(){},f=function(e){return" \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/initDotnet.js b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/initDotnet.js new file mode 100644 index 00000000..60efc974 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/initDotnet.js @@ -0,0 +1 @@ +import{dotnet}from"./dotnet.js";export async function initDotnet(t){if(null===t||"string"!=typeof t||0===t.trim().length)throw Error("`baseUrl` must be a string passed to `initDotnet` and be non-empty.");const{getAssemblyExports:e,getConfig:i,Module:o}=await dotnet.withModuleConfig({locateFile:e=>`${t}/${e}`}).create();globalThis.gdPicture={module:o,baseUrl:t};const n=await e(i().mainAssemblyName);return await n.GdPictureWasm.API.Initialize(),{Assemblies:n,Module:o,BaseUrl:t}} \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/BouncyCastle.Cryptography.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/BouncyCastle.Cryptography.dll new file mode 100644 index 00000000..baf513b5 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/BouncyCastle.Cryptography.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/ChromeHtmlToPdfLib.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/ChromeHtmlToPdfLib.dll new file mode 100644 index 00000000..ad2c8816 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/ChromeHtmlToPdfLib.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/DocumentFormat.OpenXml.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/DocumentFormat.OpenXml.dll new file mode 100644 index 00000000..235ebb23 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/DocumentFormat.OpenXml.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.API.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.API.dll new file mode 100644 index 00000000..8fcc276e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.API.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.CAD.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.CAD.dll new file mode 100644 index 00000000..25a32ff9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.CAD.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.Common.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.Common.dll new file mode 100644 index 00000000..14fc0f9c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.Common.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.Document.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.Document.dll new file mode 100644 index 00000000..5ee733b2 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.Document.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.Imaging.Formats.Conversion.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.Imaging.Formats.Conversion.dll new file mode 100644 index 00000000..3ad8c24a Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.Imaging.Formats.Conversion.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.Imaging.Formats.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.Imaging.Formats.dll new file mode 100644 index 00000000..9f1d41c0 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.Imaging.Formats.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.Imaging.Rendering.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.Imaging.Rendering.dll new file mode 100644 index 00000000..eb13e651 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.Imaging.Rendering.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.Imaging.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.Imaging.dll new file mode 100644 index 00000000..c5739aaa Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.Imaging.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.MSOfficeBinary.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.MSOfficeBinary.dll new file mode 100644 index 00000000..bbe95f69 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.MSOfficeBinary.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.OpenDocument.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.OpenDocument.dll new file mode 100644 index 00000000..dc0d578d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.OpenDocument.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.OpenXML.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.OpenXML.dll new file mode 100644 index 00000000..f47d7989 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.OpenXML.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.PDF.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.PDF.dll new file mode 100644 index 00000000..0501a721 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.PDF.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.RTF.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.RTF.dll new file mode 100644 index 00000000..8496a14d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.RTF.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.SVG.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.SVG.dll new file mode 100644 index 00000000..4041092f Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.SVG.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.barcode.1d.writer.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.barcode.1d.writer.dll new file mode 100644 index 00000000..def15c07 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.barcode.1d.writer.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.barcode.2d.writer.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.barcode.2d.writer.dll new file mode 100644 index 00000000..9afc5c31 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.14.barcode.2d.writer.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.OpenXML.Templating.Wasm.NET7.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.OpenXML.Templating.Wasm.NET7.dll new file mode 100644 index 00000000..319311e3 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.OpenXML.Templating.Wasm.NET7.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.PSPDFKit.Wasm.NET7.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.PSPDFKit.Wasm.NET7.dll new file mode 100644 index 00000000..1d05dc05 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.PSPDFKit.Wasm.NET7.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.Wasm.NET7.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.Wasm.NET7.dll new file mode 100644 index 00000000..13ec7478 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/GdPicture.NET.Wasm.NET7.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/Microsoft.CSharp.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/Microsoft.CSharp.dll new file mode 100644 index 00000000..c3ff59ea Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/Microsoft.CSharp.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/Microsoft.Win32.Registry.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/Microsoft.Win32.Registry.dll new file mode 100644 index 00000000..cb52fc9e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/Microsoft.Win32.Registry.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/MsgReader.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/MsgReader.dll new file mode 100644 index 00000000..31fc8bd3 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/MsgReader.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/Newtonsoft.Json.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/Newtonsoft.Json.dll new file mode 100644 index 00000000..76c6d1af Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/Newtonsoft.Json.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/OpenMcdf.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/OpenMcdf.dll new file mode 100644 index 00000000..c52d61c6 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/OpenMcdf.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/RtfPipe.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/RtfPipe.dll new file mode 100644 index 00000000..411819a6 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/RtfPipe.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Collections.Concurrent.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Collections.Concurrent.dll new file mode 100644 index 00000000..ee8e9ccd Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Collections.Concurrent.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Collections.Immutable.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Collections.Immutable.dll new file mode 100644 index 00000000..23f570e8 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Collections.Immutable.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Collections.NonGeneric.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Collections.NonGeneric.dll new file mode 100644 index 00000000..5130b3aa Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Collections.NonGeneric.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Collections.Specialized.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Collections.Specialized.dll new file mode 100644 index 00000000..a6f1bef5 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Collections.Specialized.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Collections.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Collections.dll new file mode 100644 index 00000000..afab3485 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Collections.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.ComponentModel.EventBasedAsync.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.ComponentModel.EventBasedAsync.dll new file mode 100644 index 00000000..cc716f2e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.ComponentModel.EventBasedAsync.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.ComponentModel.Primitives.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.ComponentModel.Primitives.dll new file mode 100644 index 00000000..37d5dd49 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.ComponentModel.Primitives.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.ComponentModel.TypeConverter.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.ComponentModel.TypeConverter.dll new file mode 100644 index 00000000..129b00ff Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.ComponentModel.TypeConverter.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.ComponentModel.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.ComponentModel.dll new file mode 100644 index 00000000..c5a5bfa0 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.ComponentModel.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Console.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Console.dll new file mode 100644 index 00000000..fc06e9a9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Console.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Data.Common.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Data.Common.dll new file mode 100644 index 00000000..55d5f87f Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Data.Common.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Diagnostics.DiagnosticSource.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Diagnostics.DiagnosticSource.dll new file mode 100644 index 00000000..0dead8ab Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Diagnostics.DiagnosticSource.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Diagnostics.Process.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Diagnostics.Process.dll new file mode 100644 index 00000000..b31c509d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Diagnostics.Process.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Diagnostics.TraceSource.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Diagnostics.TraceSource.dll new file mode 100644 index 00000000..7ad55bc5 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Diagnostics.TraceSource.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Drawing.Primitives.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Drawing.Primitives.dll new file mode 100644 index 00000000..28a855d3 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Drawing.Primitives.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Drawing.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Drawing.dll new file mode 100644 index 00000000..87aea18d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Drawing.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Formats.Asn1.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Formats.Asn1.dll new file mode 100644 index 00000000..263da342 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Formats.Asn1.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.IO.Compression.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.IO.Compression.dll new file mode 100644 index 00000000..8c5e8c1c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.IO.Compression.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.IO.Packaging.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.IO.Packaging.dll new file mode 100644 index 00000000..e84cd236 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.IO.Packaging.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Linq.Expressions.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Linq.Expressions.dll new file mode 100644 index 00000000..aa2386a0 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Linq.Expressions.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Linq.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Linq.dll new file mode 100644 index 00000000..78e57038 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Linq.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Memory.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Memory.dll new file mode 100644 index 00000000..b8d5c093 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Memory.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Http.Formatting.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Http.Formatting.dll new file mode 100644 index 00000000..efaa5cf7 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Http.Formatting.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Http.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Http.dll new file mode 100644 index 00000000..c4fcf86d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Http.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Mail.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Mail.dll new file mode 100644 index 00000000..b5f8b734 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Mail.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.NetworkInformation.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.NetworkInformation.dll new file mode 100644 index 00000000..82bf80fc Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.NetworkInformation.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Primitives.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Primitives.dll new file mode 100644 index 00000000..e0f1f503 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Primitives.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Requests.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Requests.dll new file mode 100644 index 00000000..e58a6a0d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Requests.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Security.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Security.dll new file mode 100644 index 00000000..86bc2bd9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Security.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.ServicePoint.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.ServicePoint.dll new file mode 100644 index 00000000..7598ec75 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.ServicePoint.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Sockets.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Sockets.dll new file mode 100644 index 00000000..08bbd5ad Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.Sockets.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.WebHeaderCollection.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.WebHeaderCollection.dll new file mode 100644 index 00000000..e7cc00c2 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.WebHeaderCollection.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.WebSockets.Client.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.WebSockets.Client.dll new file mode 100644 index 00000000..5e8e7c04 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.WebSockets.Client.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.WebSockets.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.WebSockets.dll new file mode 100644 index 00000000..7c2867a7 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Net.WebSockets.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.ObjectModel.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.ObjectModel.dll new file mode 100644 index 00000000..93bc2c37 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.ObjectModel.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Private.CoreLib.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Private.CoreLib.dll new file mode 100644 index 00000000..55f73059 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Private.CoreLib.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Private.Uri.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Private.Uri.dll new file mode 100644 index 00000000..a1b03567 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Private.Uri.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Private.Xml.Linq.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Private.Xml.Linq.dll new file mode 100644 index 00000000..0703407e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Private.Xml.Linq.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Private.Xml.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Private.Xml.dll new file mode 100644 index 00000000..cbcceae3 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Private.Xml.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Runtime.InteropServices.JavaScript.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Runtime.InteropServices.JavaScript.dll new file mode 100644 index 00000000..d5015f04 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Runtime.InteropServices.JavaScript.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Runtime.Numerics.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Runtime.Numerics.dll new file mode 100644 index 00000000..0d8f8316 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Runtime.Numerics.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Runtime.Serialization.Formatters.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Runtime.Serialization.Formatters.dll new file mode 100644 index 00000000..299e30ac Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Runtime.Serialization.Formatters.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Runtime.Serialization.Primitives.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Runtime.Serialization.Primitives.dll new file mode 100644 index 00000000..8aca4f83 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Runtime.Serialization.Primitives.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Runtime.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Runtime.dll new file mode 100644 index 00000000..991d05ac Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Runtime.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Security.Cryptography.Pkcs.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Security.Cryptography.Pkcs.dll new file mode 100644 index 00000000..d4d3a17d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Security.Cryptography.Pkcs.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Security.Cryptography.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Security.Cryptography.dll new file mode 100644 index 00000000..6626e8dc Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Security.Cryptography.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Text.Encoding.CodePages.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Text.Encoding.CodePages.dll new file mode 100644 index 00000000..312e37b6 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Text.Encoding.CodePages.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Text.Encodings.Web.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Text.Encodings.Web.dll new file mode 100644 index 00000000..e70c09a9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Text.Encodings.Web.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Text.Json.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Text.Json.dll new file mode 100644 index 00000000..5df6902f Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Text.Json.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Text.RegularExpressions.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Text.RegularExpressions.dll new file mode 100644 index 00000000..2ca737f0 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Text.RegularExpressions.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Threading.Tasks.Parallel.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Threading.Tasks.Parallel.dll new file mode 100644 index 00000000..eee8512e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Threading.Tasks.Parallel.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Windows.Extensions.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Windows.Extensions.dll new file mode 100644 index 00000000..0d60996c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Windows.Extensions.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Xml.Linq.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Xml.Linq.dll new file mode 100644 index 00000000..7daecef9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.Xml.Linq.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.dll new file mode 100644 index 00000000..1a81d5dc Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/System.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/protobuf-net.Core.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/protobuf-net.Core.dll new file mode 100644 index 00000000..c10c6f24 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/protobuf-net.Core.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/protobuf-net.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/protobuf-net.dll new file mode 100644 index 00000000..2faf78d5 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/managed/protobuf-net.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/mono-config.json b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/mono-config.json new file mode 100644 index 00000000..a11e74bd --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/mono-config.json @@ -0,0 +1,364 @@ +{ + "mainAssemblyName": "GdPicture.NET.PSPDFKit.Wasm.NET7.dll", + "assemblyRootFolder": "managed", + "debugLevel": 0, + "assets": [ + { + "behavior": "assembly", + "name": "BouncyCastle.Cryptography.dll" + }, + { + "behavior": "assembly", + "name": "ChromeHtmlToPdfLib.dll" + }, + { + "behavior": "assembly", + "name": "DocumentFormat.OpenXml.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.API.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.barcode.1d.writer.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.barcode.2d.writer.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.CAD.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.Common.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.Document.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.Imaging.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.Imaging.Formats.Conversion.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.Imaging.Formats.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.Imaging.Rendering.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.MSOfficeBinary.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.OpenDocument.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.OpenXML.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.PDF.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.RTF.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.SVG.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.OpenXML.Templating.Wasm.NET7.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.PSPDFKit.Wasm.NET7.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.Wasm.NET7.dll" + }, + { + "behavior": "assembly", + "name": "Microsoft.CSharp.dll" + }, + { + "behavior": "assembly", + "name": "Microsoft.Win32.Registry.dll" + }, + { + "behavior": "assembly", + "name": "MsgReader.dll" + }, + { + "behavior": "assembly", + "name": "Newtonsoft.Json.dll" + }, + { + "behavior": "assembly", + "name": "OpenMcdf.dll" + }, + { + "behavior": "assembly", + "name": "protobuf-net.Core.dll" + }, + { + "behavior": "assembly", + "name": "protobuf-net.dll" + }, + { + "behavior": "assembly", + "name": "RtfPipe.dll" + }, + { + "behavior": "assembly", + "name": "System.Collections.Concurrent.dll" + }, + { + "behavior": "assembly", + "name": "System.Collections.dll" + }, + { + "behavior": "assembly", + "name": "System.Collections.Immutable.dll" + }, + { + "behavior": "assembly", + "name": "System.Collections.NonGeneric.dll" + }, + { + "behavior": "assembly", + "name": "System.Collections.Specialized.dll" + }, + { + "behavior": "assembly", + "name": "System.ComponentModel.dll" + }, + { + "behavior": "assembly", + "name": "System.ComponentModel.EventBasedAsync.dll" + }, + { + "behavior": "assembly", + "name": "System.ComponentModel.Primitives.dll" + }, + { + "behavior": "assembly", + "name": "System.ComponentModel.TypeConverter.dll" + }, + { + "behavior": "assembly", + "name": "System.Console.dll" + }, + { + "behavior": "assembly", + "name": "System.Data.Common.dll" + }, + { + "behavior": "assembly", + "name": "System.Diagnostics.DiagnosticSource.dll" + }, + { + "behavior": "assembly", + "name": "System.Diagnostics.Process.dll" + }, + { + "behavior": "assembly", + "name": "System.Diagnostics.TraceSource.dll" + }, + { + "behavior": "assembly", + "name": "System.dll" + }, + { + "behavior": "assembly", + "name": "System.Drawing.dll" + }, + { + "behavior": "assembly", + "name": "System.Drawing.Primitives.dll" + }, + { + "behavior": "assembly", + "name": "System.Formats.Asn1.dll" + }, + { + "behavior": "assembly", + "name": "System.IO.Compression.dll" + }, + { + "behavior": "assembly", + "name": "System.IO.Packaging.dll" + }, + { + "behavior": "assembly", + "name": "System.Linq.dll" + }, + { + "behavior": "assembly", + "name": "System.Linq.Expressions.dll" + }, + { + "behavior": "assembly", + "name": "System.Memory.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.Http.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.Http.Formatting.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.Mail.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.NetworkInformation.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.Primitives.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.Requests.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.Security.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.ServicePoint.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.Sockets.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.WebHeaderCollection.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.WebSockets.Client.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.WebSockets.dll" + }, + { + "behavior": "assembly", + "name": "System.ObjectModel.dll" + }, + { + "behavior": "assembly", + "name": "System.Private.CoreLib.dll" + }, + { + "behavior": "assembly", + "name": "System.Private.Uri.dll" + }, + { + "behavior": "assembly", + "name": "System.Private.Xml.dll" + }, + { + "behavior": "assembly", + "name": "System.Private.Xml.Linq.dll" + }, + { + "behavior": "assembly", + "name": "System.Runtime.dll" + }, + { + "behavior": "assembly", + "name": "System.Runtime.InteropServices.JavaScript.dll" + }, + { + "behavior": "assembly", + "name": "System.Runtime.Numerics.dll" + }, + { + "behavior": "assembly", + "name": "System.Runtime.Serialization.Formatters.dll" + }, + { + "behavior": "assembly", + "name": "System.Runtime.Serialization.Primitives.dll" + }, + { + "behavior": "assembly", + "name": "System.Security.Cryptography.dll" + }, + { + "behavior": "assembly", + "name": "System.Security.Cryptography.Pkcs.dll" + }, + { + "behavior": "assembly", + "name": "System.Text.Encoding.CodePages.dll" + }, + { + "behavior": "assembly", + "name": "System.Text.Encodings.Web.dll" + }, + { + "behavior": "assembly", + "name": "System.Text.Json.dll" + }, + { + "behavior": "assembly", + "name": "System.Text.RegularExpressions.dll" + }, + { + "behavior": "assembly", + "name": "System.Threading.Tasks.Parallel.dll" + }, + { + "behavior": "assembly", + "name": "System.Windows.Extensions.dll" + }, + { + "behavior": "assembly", + "name": "System.Xml.Linq.dll" + }, + { + "virtualPath": "runtimeconfig.bin", + "behavior": "vfs", + "name": "supportFiles/0_runtimeconfig.bin" + }, + { + "loadRemote": false, + "behavior": "icu", + "name": "icudt.dat" + }, + { + "virtualPath": "/usr/share/zoneinfo/", + "behavior": "vfs", + "name": "dotnet.timezones.blat" + }, + { + "behavior": "dotnetwasm", + "name": "dotnet.wasm" + } + ], + "remoteSources": [], + "pthreadPoolSize": 0 +} \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/package.json b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/package.json new file mode 100644 index 00000000..3e0a2a7f --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/package.json @@ -0,0 +1 @@ +{ "type":"module" } \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resourceLoader.js b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resourceLoader.js new file mode 100644 index 00000000..9d7103fe --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resourceLoader.js @@ -0,0 +1 @@ +let require,resources;const ENVIRONMENT_IS_NODE="string"==typeof globalThis.process?.versions?.node,ENVIRONMENT_IS_DENO="object"==typeof window&&"Deno"in window||"object"==typeof self&&"Deno"in self;export async function initialize(){if(ENVIRONMENT_IS_NODE){const{createRequire:e}=await import("module");require=e(import.meta.url)}else if(ENVIRONMENT_IS_DENO){const e=(await import("./resources/list.json",{assert:{type:"json"}})).default,r=await Promise.all(e.map((e=>{const r=new URL(`./resources/${e}`,import.meta.url);return globalThis.fetch(r).then((async e=>{if(e.ok)return e.arrayBuffer()})).then((r=>({buffer:r,filename:e}))).catch((()=>({buffer:void 0,filename:e})))})));resources=r.reduce(((e,{filename:r,buffer:t})=>(e[`${globalThis.gdPicture.baseUrl}/resources/${decodeURI(r)}`]=t,e)),{})}}export function fetchResource(e,r){fetch(`${globalThis.gdPicture.baseUrl}/resources/${e}`,r)}export function fetch(e,r){try{if(ENVIRONMENT_IS_NODE){const t=require("node:fs"),o=require("node:path"),i=t.readFileSync(o.normalize(e));globalThis.gdPicture.module.FS.writeFile(r,new Uint8Array(i))}else if(ENVIRONMENT_IS_DENO)globalThis.gdPicture.module.FS.writeFile(r,new Uint8Array(resources[e]));else{const t=new XMLHttpRequest;t.open("GET",e,!1),t.overrideMimeType("text/plain; charset=x-user-defined"),t.send(),200===t.status?globalThis.gdPicture.module.FS.writeFile(r,stringToArrayBuffer(t.response)):console.error(`Could not retrieve resource. Status: ${t.status}`)}}catch(e){console.error(`Could not retrieve resource. Exception: ${e}`)}}function stringToArrayBuffer(e){const r=new ArrayBuffer(e.length),t=new Uint8Array(r);for(let r=0,o=e.length;rˆžé©®®Õv6w7j{Õÿ ¥ü©¬GgL[±çLûqL‡q—Lí8Ž+¦(]}õuC 4Ð-1ÔPwÄH#Ýcµ$&šè˜jªGb¦™žˆ¹æz&Zè…¨»îW"wî7¢á†ß‰¦›þ +þ$Znù‹pé›è¸ã¢ë®‘¡çžS†Ÿº’¥_ êVG \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_78-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_78-V.dat new file mode 100644 index 00000000..a516681c --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_78-V.dat @@ -0,0 +1 @@ +xÚ%̽jÂ`ÆñóJî¢pÂñ}B]t(…ñ\:…²ekoSDpñìwý¶zÀÿðÉpÔ›%¾IïAîuºm®¡o[hx´'[jx¶±­4LíÅÖJ+m£b0¼«DD|¨ħJ† _*9r|«(ð£R¡Â¯J* lUZ´Ø¹BãÞF\ñŽ®0ãÉæ<»Â‚WXñßÖ¼ºÂ†’JË–!•W¾±“†Tº1 \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_78ms-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_78ms-RKSJ-H.dat new file mode 100644 index 00000000..8571d516 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_78ms-RKSJ-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_78ms-RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_78ms-RKSJ-V.dat new file mode 100644 index 00000000..fa7c606c --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_78ms-RKSJ-V.dat @@ -0,0 +1,3 @@ +xÚEÆKK”aàû‚!Ú>ï÷ý×Z+ÓÁDÃJ£ uÁ_´i“‰;;ŸÏ -ºVWQIioq]M}uñù¢ÿ¯ +°¯ÿÄNØrûØ¶ÂžŠ·q[áŒ=kŸ˜ Á^¶OMÐd[í3tÙ›ö¹ ì¾W9›³;1ämÞ¾ŒaÌŽÛ± ` ¶6BÒ%Ýkƒ”K¹7i—vo 2.ãÞd]Ö½7Ør[îƒÁ¶Ûv vÜŽûd°ëvÝgƒ=·ç¾”ù2ÿÕ Ü—ûoq÷ß *}¥ÿaPå«üOƒ„Oø_~ßoƒ?àÿ¨Wƒ~Ð!îùû>I&yL0Ä!–RLñ¤`˜Ã<-H3ÍÁGX!È0ÃÁ(GÙ È2ËAŽ9Ö ò̳_0Æ1Œsœ¥‚ ¬Lp‚u‚IN²V0Å)V +¦9ÍnÁ g˜Ìr–×sœãEÁ<çé \`»`‘‹l,q‰}‚e.ó‚`…+¼!Xå*;k\ã%Á:×yU°Á žlr“×Ú¤ Y›õv„„&ô`ˆmÑ»ZµU…hÓ6½¡];´( :µSDèÒn==Ú£#\Ñ^=}Ú§"ÜR«GÃà/R;áÛ \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_83pv-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_83pv-RKSJ-H.dat new file mode 100644 index 00000000..ab4e2e4b Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_83pv-RKSJ-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90ms-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90ms-RKSJ-H.dat new file mode 100644 index 00000000..a8f8ba36 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90ms-RKSJ-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90ms-RKSJ-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90ms-RKSJ-UCS2.dat new file mode 100644 index 00000000..b5d22be8 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90ms-RKSJ-UCS2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90ms-RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90ms-RKSJ-V.dat new file mode 100644 index 00000000..a47109f2 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90ms-RKSJ-V.dat @@ -0,0 +1,2 @@ +xÚEÆKK”aàû‚!Ú>ï÷ý¡]ÙÊt0ѰÒ(ÈBÏš A­zß÷–‡6.Š¢E1Žã83:žÏGðDmÚdâÎÎçsB‹®ÕUTr¤§¯¸¶º®ªø|ÑÿWØSƒb'l™}l‚r[nOEˆÛ¸­pÆžµOLPo/Û§&h´-ö™ :íMûÜvÏ+ƒœÍÙíò6o_Æ0jÇì‹XP°[!é’îµAʥ܃´K»·—qï ².ëÞlºM÷Á`Ëm¹ÛnÛ}2Øq;î³Á®Ûu_ J}©ÿjPæËü7ƒ¸ûï¾Âÿ0¨ô•þ§AÂ'ü/¿ç·A¿ï÷ Ô«Gˆ?àƒ÷ü} ƒ$“, rG)¦xR0Ä!ž¤™fµ`˜Ã,d˜a³`„#¬d™e· ÇëyæÙ'å( Æ8Æc‚ ¬Œsœµ‚ N°F0ÉIV¦8Å.Á4§™Ìp†×³œåEÁçèóœg›` l,r‘½‚%.ñ‚`™Ë¼!Xá +Û«\å%Á×xU°Îužlpƒ× Ú¨û I›ôv„„&tˆfmÖ»Z´E„hÕV½¡MÛµ( :´CDèÔ.=ÝÚ­#\Ñ=½Ú«"ÜR«‡Ãà/7?áÏ \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90msp-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90msp-RKSJ-H.dat new file mode 100644 index 00000000..d60b4783 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90msp-RKSJ-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90msp-RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90msp-RKSJ-V.dat new file mode 100644 index 00000000..cfe70499 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90msp-RKSJ-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90pv-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90pv-RKSJ-H.dat new file mode 100644 index 00000000..265cf14d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90pv-RKSJ-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90pv-RKSJ-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90pv-RKSJ-UCS2.dat new file mode 100644 index 00000000..264f511c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90pv-RKSJ-UCS2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90pv-RKSJ-UCS2C.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90pv-RKSJ-UCS2C.dat new file mode 100644 index 00000000..2f5def6c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90pv-RKSJ-UCS2C.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90pv-RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90pv-RKSJ-V.dat new file mode 100644 index 00000000..c85cc6aa --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_90pv-RKSJ-V.dat @@ -0,0 +1 @@ +xÚEÆMK”Qàûˆ2¡ÔxÎù‚ÐÊ "Cnü€6!„¸iת…»ó<7 æBr|ÇÑüÌ¥:ó D„6®†ÁZZjš©-¼VWª­õí»–Þ®¾-/SÏ8Ô<ÃuÏc:îŠëŽ=qOÜ«Ø÷Å½Žƒñ»¸7q(ˆ‹5Ç‚œæôDh¢?yÍëOAA z*(jQÏe-ë/AE+ú[PÕªž õP/Gz¤—‚vk·?‚´¥íJÐav-è´Nû+ÈXÆn6`ÿVs+ÈZÖî4дÌežÌ0ÛŠ£#žÊÏdTXáSE•UžÍXá +OgÔXãcÅ*WùDQgç2lð‘b÷ùLS“M¾P´ØbO±ÎuvÜàsE‡Ví~»ßTüÒž¶k \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Add-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Add-V.dat new file mode 100644 index 00000000..b723ddd7 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Add-V.dat @@ -0,0 +1 @@ +xÚ%ÎMK”aÅñsKCDPÔ¸ïëj®‹a-jD C:F«¤Ð-õ™ÇG-EÏʃ6µHÐúu"‚6}‡Þßßïè¿8˧1:œ¿Õø·Ý€Ü%üoäœ6õY ¦¦×®®7ô¢>á²^Ñ1ŒêU}ØŽiO0®ã:)èjW§:¡7×´¯¯bȈ½ŽhZÓÞD¸¹½hYËÞE´­mï#:Ö±…ö1¢´Ò>ETVÙçˆÚjû1´MëJÈWükƼéß2–ûž1oùŒyÛfÌ;þ+c^øïŒyé2æ•#¡öÚCÂÐ7}$…iNóxB=Kè³ÏÁ gØH˜å,ï nóI˜ãO$Ìsž \àÉ„‚O' 8ྠdÉ3 ‹\ä©„ŠwK\âž`™Ë<›°Â>Üå=>‘°ÊU jÖ<¬qOë\ç`È!·[[ho \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-0.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-0.dat new file mode 100644 index 00000000..46a900d3 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-0.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-1.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-1.dat new file mode 100644 index 00000000..cc0448e8 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-1.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-2.dat new file mode 100644 index 00000000..9c02a633 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-3.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-3.dat new file mode 100644 index 00000000..c2ea5f03 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-3.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-4.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-4.dat new file mode 100644 index 00000000..8df3a15e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-4.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-5.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-5.dat new file mode 100644 index 00000000..42421863 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-5.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-6.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-6.dat new file mode 100644 index 00000000..56e68c7c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-6.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-7.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-7.dat new file mode 100644 index 00000000..33db65eb Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-7.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-B5pc.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-B5pc.dat new file mode 100644 index 00000000..d65b9bf0 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-B5pc.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-ETenms-B5.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-ETenms-B5.dat new file mode 100644 index 00000000..8165b275 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-ETenms-B5.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-H-CID.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-H-CID.dat new file mode 100644 index 00000000..ac2e376d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-H-CID.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-H-Host.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-H-Host.dat new file mode 100644 index 00000000..fb2e9201 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-H-Host.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-H-Mac.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-H-Mac.dat new file mode 100644 index 00000000..302bdfb0 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-H-Mac.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-UCS2.dat new file mode 100644 index 00000000..d1e3b07c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-CNS1-UCS2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-0.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-0.dat new file mode 100644 index 00000000..b6d05924 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-0.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-1.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-1.dat new file mode 100644 index 00000000..ee304d0e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-1.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-2.dat new file mode 100644 index 00000000..a4f0bd70 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-3.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-3.dat new file mode 100644 index 00000000..f250662e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-3.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-4.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-4.dat new file mode 100644 index 00000000..acc71545 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-4.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-5.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-5.dat new file mode 100644 index 00000000..9b78c40e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-5.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-UCS2.dat new file mode 100644 index 00000000..725a844b Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-GB1-UCS2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-0.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-0.dat new file mode 100644 index 00000000..04bb9ac4 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-0.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-1.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-1.dat new file mode 100644 index 00000000..addb6246 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-1.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-2.dat new file mode 100644 index 00000000..4cc5ec8e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-3.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-3.dat new file mode 100644 index 00000000..bdb56a82 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-3.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-4.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-4.dat new file mode 100644 index 00000000..a43767cd Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-4.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-5.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-5.dat new file mode 100644 index 00000000..71400f97 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-5.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-6.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-6.dat new file mode 100644 index 00000000..8f3c5a4d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-6.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-90ms-RKSJ.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-90ms-RKSJ.dat new file mode 100644 index 00000000..e049e02b Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-90ms-RKSJ.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-90pv-RKSJ.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-90pv-RKSJ.dat new file mode 100644 index 00000000..4e632385 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-90pv-RKSJ.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-H-CID.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-H-CID.dat new file mode 100644 index 00000000..ac40ffe5 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-H-CID.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-H-Host.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-H-Host.dat new file mode 100644 index 00000000..fcb56d54 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-H-Host.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-H-Mac.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-H-Mac.dat new file mode 100644 index 00000000..dfba535c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-H-Mac.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-UCS2.dat new file mode 100644 index 00000000..9e40df62 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan1-UCS2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan2-0.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan2-0.dat new file mode 100644 index 00000000..aa5004ff Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Japan2-0.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-0.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-0.dat new file mode 100644 index 00000000..32240d5e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-0.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-1.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-1.dat new file mode 100644 index 00000000..c0545801 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-1.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-2.dat new file mode 100644 index 00000000..33f7cf3f Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-H-CID.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-H-CID.dat new file mode 100644 index 00000000..18faba63 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-H-CID.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-H-Host.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-H-Host.dat new file mode 100644 index 00000000..93e1ff92 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-H-Host.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-H-Mac.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-H-Mac.dat new file mode 100644 index 00000000..6a47ad70 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-H-Mac.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-KSCms-UHC.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-KSCms-UHC.dat new file mode 100644 index 00000000..3fba1e58 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-KSCms-UHC.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-KSCpc-EUC.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-KSCpc-EUC.dat new file mode 100644 index 00000000..30597cd3 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-KSCpc-EUC.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-UCS2.dat new file mode 100644 index 00000000..ada286a1 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Adobe-Korea1-UCS2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_B5-H.dat new file mode 100644 index 00000000..1890fd27 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_B5-H.dat @@ -0,0 +1,9 @@ +xÚ%Ë[P”çÇñçGŒ j"5â’h8ÈAw¦m&ÍS/2Q{‘ÄJlb&ñ”ÄhzÑÓØÌßd¦ÍE;ét2$39Lã¢ä Ëaq—å(ì*°,*°Ë²», o«ÿö™éûÞ¼Ÿïïÿ®ØkÊ|Eˆ!DDüÿÑߟ ©˜cÄ6AâU¤:¬Ž üVQfÞV¤ô‰R‹*_ ª¢jYˆ%¥_!–+C@擞 ò9ÿ%@PÁZM£@sAKÁ’ŽéâÁ¨‹|ñëÈB* jraÖ#ETôÕ#PE\äÔ*¦â´PÅ\|jä%ºÔ©u‰/­|²„JN< +UÂ%Z¥TŠ•P¥\*WB–QÙOZe\æÑ*§òƒ*X~þ1p9—_ˆ²‚*Ü:VpÅúÇ!+©òìãP•\Y­e&óºX(s¯ùÕXô™Ùüy,dU™u¬âª€ÖeºüëUP—ùòßVA^¡+3ZWøÊÎÕÕTýåj¨j®îЪ¡šÔ5P5\sl d-Õ¶jÕríµê¨îí' ê¸î‡' ¯ÒÕk]å«?²žê¿}ªžë]Z Ô°g-T7üa-d#5ök5rc\d5ý.ª©³©"7š¸iHÇktmÍ:¨k|íÀ:Èfj.Ñjææi-Ëk–—ãñºåuË`œ8h!Ëáx( [þÙB-Z-ܲý)ÈVj½ðT+·Z´Ú¨msT[iÛ[ (kã¶÷ Û©½QÇvG»‘€®ö®ö“ ÂÙÎí©‰Öw­y‰8j%롬õÖoÑ`m°šE£µÑZ™(š¬l­Ò—¶C¶H"òly¶OÅ6²­Zec[îzÈêø‡Vwôj]§ë™Iö}ö3IØoßo?#ØOÛÏ%áŒìß%AÙ›íeI°Ø-öo“D‹Ýo¿‘„9;Û—ôrÄn€rD¯lÀ’cÉMËvü´²‹º +õÖÅ]SZNrîÝådç!»©Û«ÕÍÝ[6AöPÏg› z¸§I«—z7> Õ˽‡Ÿ†ì£¾:­>î[Ôê§þƒ›¡ú¹ÿëÍ4Ôà¬dÈ›tó«d¨›|Ó©5Hƒi[ yðÔÈ!êÔâ¡•[!]ä:±ÊÕå*Ø +§ËéúMŠèv±«WoîOÝØ†óîóî†ñ'7¹_Øåf÷KÛ oÑ­µnñ­Q­ÛtûÛ¡nóíO·CÓ°[kxlx} +¼ÃÞáž­b|˜‡¥@ŽÐÈÙ¨‘¢‘êðH£Ž£4Ÿ +5Ê£¯¥BzÈcÖòüÇHÅÏϩ⡇=ûž£±Ï@ñØ_µ¼äÖò²wdzã4þ—g¡Æyܦu‡î¤<u‡ï}r‚&Z´&x‚µ&iòȨIžü~äMZS<õ³wéî7;¡îòÝ!­{to÷óP÷øÞ¼O÷û´îóýµiÓ4ýQÔtþty +¦yÚ¬ãÌÇ3«Óqn†fö¦CÍðÌtÈYš-ÑšåÙi-ß›¾—3ð–|Ç2 |Aß—ùB¾Ê4ö±Ï•é'ÿ¤ÞüJ&Æücþ_¥ ¯ŸýïdBÎÑÜ…L¨¹’9K&Jçx +$ï‚ +ÌŽì‚/à $d €E» çi¾Aoó<¿¬<ÌËB^0/Ø™)ÞRðLTÐügº‚]Á£Âä % 2t,ÊÂñЇ¡Älœ½›#΄(”œ âPv6døýðß³ñAøƒð|Ž8¦pÞÂíag6¬aÏë“…³ é9øxŽæ@-ðÂéÈÈɈ=ïE(Ô1R‰ÍEm¤6Èu‘‘ä\<Œpäd.ä"-¾Ÿ µÈ‹EZÑcÑ»qqYûÄÿ²ãRUy?SÇ”9ï*RzL©E•/Qµ¬¿Tz ±¬Xz Ÿt•Ïù¯ÒD¦o´L¦ ÉÔlZZLã¦ìWèÊáPWøÊZTÐ*à‚Œ•…TøùJ¨B.tjQQÊ*¨".:³ +ò*]íкÊW£ž‚,¦âSOAs±I«„JUÂ%2 +²”J¿Õ*åRV•½ú4TÙ“²‹OƒË¸ìR´åTîÖa9—ox²‚*Î?UÁUZf2¯†2÷˜^3›/GCVR¥Y‡•\é׺F×~¼ê_ûËjÈët}Fë:_ßµ²Šª>[UÅUíZÕT¼ªš«O®…¬¡š­®ùN«–jß}ª–kÿù,ä ºño­|ãûÏAÖQÝWÏAÕqK«žê÷®ƒªçúß­ƒl †>­nˆ‰l¤Æ_Ç@5v4–Çàv#7êð&Ý\»ê&ß<´²‰šŠµš¸iZËò¦åõX¼eyË2#[Èr4Ê–?ÆB6Só„V37ïx²…Z.=ÕÂ-­VjÝÕZÒúNJ[¹õ½8È6jkÐa›£ÍˆCg[gÛé8álã¶äxHëqknÄCG’ ‡iø|ÔpápUІy¸A‡#4› 5Â#o&CzÈcÖòüÇãOÆcÏcϧÉ≇=^„¥ÑC/Bò蟵ÆhlZkŒÇv¾9Nãz jœÇmZ÷é~ÒËP÷ùþ‰—!'h¢Yk‚'Xk’&턚äÉ서¢)CkЧ¾· ò=ørÔ~0¨õîyê!?üí+èQ¯Ö#~´.rš¦•5?]–Ó4O›u8óáÌšT\˜¡™ý©P3/)£¾QßRŘ}¿H‡œ£¹KéPsÅs–t”ÌñÜmúÉŸ¸Ê?ë?¶^¿×—)|~ö§ùzÝÍóü²VàH 7¹Ü@Gºx;@sPGàïè tN¤ g€– ÈàÉ`0yÁ_ã3q6x6x“^ôöwŠÆ¿KúÐ÷›ô£¿¬¢xJ1xÒ,:„¡I ñŽ cØcM"yƒ¤úFÒHg¬¢#y@2ȘºDG1Z#Yd_1ŒuØDsÈ]!ãÿH&0³‹Nbò6É#ÿ“Laªà- ð˜Lcú¸S´ˆâ™ÁÌkRBÉæÅì5RFù ™Ã\Â-:ù{d H•ŠGt‹ÏHÕS^Ñ%,]"ËX~OV°ð‰ÖP»IV±ú¬a-ç]ÇúCRG½- º:i ñ’lb³3(º…-ml";؉‡Dw±{‡4ÑüEö°W +‹îcÿ 9ÀÁ‰ˆh ­}rˆÃ·ä(}äŠÊ?š‹šd \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_CNS2-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_CNS2-V.dat new file mode 100644 index 00000000..c32d92fa Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_CNS2-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_CourierStdToNew.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_CourierStdToNew.dat new file mode 100644 index 00000000..bf30555e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_CourierStdToNew.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_DefaultCMYK.icc b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_DefaultCMYK.icc new file mode 100644 index 00000000..881cfb41 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_DefaultCMYK.icc differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_DroidSansFallbackFull.ttf b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_DroidSansFallbackFull.ttf new file mode 100644 index 00000000..8d0d69a7 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_DroidSansFallbackFull.ttf differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_DroidSansMono.ttf b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_DroidSansMono.ttf new file mode 100644 index 00000000..98e21409 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_DroidSansMono.ttf differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_ETHK-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_ETHK-B5-H.dat new file mode 100644 index 00000000..a19245c5 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_ETHK-B5-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_ETHK-B5-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_ETHK-B5-V.dat new file mode 100644 index 00000000..7023d86e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_ETHK-B5-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_ETen-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_ETen-B5-H.dat new file mode 100644 index 00000000..772fe376 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_ETen-B5-H.dat @@ -0,0 +1,4 @@ +xÚ%ÓkpÔÕðóDD(!&pIT0reÚ:ÖSfêøAE"VœÊM¥P?´ˆ•:/:Óú¡;ÇÑδ:= äº\È…l.»Ùd“%Hvsߨd“Íîf³ÉßÂÛž™žóåüžçóéœè_¾yê£ô}¦ôW„ˆB°øÿÒçÏ„TÌQb› ñš RQ'ÞVG•Ù„w)=¢Ô¢Êˆ¨ˆZbIé-IJbeÈ\ÒT.ç¾È<Êû^+¯>ohÈkÌ[Òá%ºt( +ê_ú: +2ŸòZùœŸñd|õT8µ.Óå”P—ùòéWèJ›Ö¾²òQÈB*<ù(T!æiQVBq‘\ YLÅ?hsñ¨V •¼ðTÉÃ’ K¸äb´¥TêÖa)—®²ŒÊÎ=UÆeZf2¯‹†2w›_‹F™ÍŸGC–S¹Y‡å\î׺JW_]u•¯þuä5º6­u¯í\ YA_®†ªàŠV­JªL^UÉ•Ç×@VQU“VWýW«šªß}ªš«ÿõäuºþ£Öu¾þÓ'!k¨æ»'¡j¸Æ¥UKµ{ÖBÕríï×BÖQ]¯V×ÅÄ@ÖSýG1Põmõ¥1h¯çú~Þ kÖAÝà×A6PC¡V7xµ,¯[^ŽÅ–7,}1â…,Gb¡,lùS,d#5Nh5rãö§ ›¨éâSPMÜdÑj¦æÍqPÍEÍïÄ¡¸™›ßƒl¡–:¶t´qèlél9'œ-Ü’i}ÏšcV²þ!ÊZcý6µÖZ«9^ÔYë¬eñ¢ÞÊÖr=i;l Ç#Ç–cû$^¼e#ÛªõP6¶e¯‡l¥Ö¿kµrk·–ìé Pv‹ýG Ñî¶oŒÂ€}Ì^a‚Ç Æíl¯Óo·ÚMPmܶa/d;µŸß Õ~»½J˱ßq6ç¢ÄAÇÇùœuãújGƒ£8‡Åñ]‚htÌ:Ú0ç`ÇRduDo€êˆt¼²KK‘±ÜÁ?l€ì¤Î|Ýurç”–“œû6B9ÙùÅFÈ›tÓ£u“onÙÙE]Ÿm‚êâ®z­nêÞø4T7wy²‡zªµz¸gQ«—zm†êåÞ¯7CÞ¢[­[|+#ò6Ýþ*ê6ßvjõQ_ʨ>î;½²ŸúÛ´ú¹åVH¹Nn…ruºò¶ÂérºÞL7]ìêÖûS7¶á‚û‚»6IüÑMî¶A¹ÙýÒ6Èø^k€F´iðgÛ¡yðÓíC4äÖZŸÏg¨k«â¡ÃIÃ4|. j¸`¸" —‡y¸N‡#4› 5Â#¯'CŽÒ¨Ykô?£þd<}0úE²x8Ê£ûŸ£±ƒÏ@ñØ_´<äñjyسãYÈqÿó³Pã›ÿïñZò®Ñ·Ô¾5 lh3 #Û\ÃĦö£á˶а´¥­T †¨’"ÅZ… 6*2lUr䨩(°W)Qâ R¡ÂQ¥F“JDÄÙ/®0åÕïæ +3Þ]a·+,øt…%_®°â¯+¬)‰DF†DŽ<±‘„?h‰h_ \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Ext-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Ext-H.dat new file mode 100644 index 00000000..f6c96ba6 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Ext-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Ext-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Ext-RKSJ-H.dat new file mode 100644 index 00000000..9d14028a Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Ext-RKSJ-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Ext-RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Ext-RKSJ-V.dat new file mode 100644 index 00000000..31763f8c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Ext-RKSJ-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Ext-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Ext-V.dat new file mode 100644 index 00000000..5e341e08 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Ext-V.dat @@ -0,0 +1 @@ +xÚ%ÎÉJQ…ásƒy×Õ÷¤«hš¤ó"J“I¢Q‘ˆd£4¡Iz¥â[ºÜøÎó|ÅQËïT½svœë·ïJð_­Á˜çâ”Ê¡‡Ñ¸ëÑd“Û-¶8òXá*/Ä­³ÃKq]vyàÑc{}ö¹ï1à€c Nx%nÆ7=æœsÇcÁ'íF»±åvôZk¬7SÓ[A¢‰Þ RMõ^k®‚B }LuªO‚RK}TZé‹ ¼i¯A±ØÞ‚zŠ%öKí3(–ÛWP¬°ï ØÔ~‚b¥!Be•¹'vjµÈ­e£l)r‡ÙQ¶¹_I.@£ \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GB-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GB-EUC-H.dat new file mode 100644 index 00000000..876ab671 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GB-EUC-H.dat @@ -0,0 +1,2 @@ +xÚ%ÍIHÔqðßûkf–¶h{JQ½Ö)ȽDa—ŠA]êjDuÉk„z£ÎŒä¾/3êŒû¾ï:îã:Ž£$õ¥oôÞáó}ßË‹LMIºûàNRš1–1&Ýüæ÷FŒ*`™ËÜÄsż3ÉaÂNŸ)²ùlõFm›¶m#ÛoÛÍFv„ˆæsž“Ü½Ü +b¯´G[ⶇìW-Q‡Û‘nIŸ#àÈàåt9³,ñ8ýÎZKrò¶ò|,ó‘ÿïQ« “¢ð)BQT¸h1Š_”xI)J‰–¡ì)Gù,©@Å­ÑJTf‘*TjT?:,ZƒšrR‹Ú¸HÑ:Ô½!õ¨ï% hH>"ê‚+“¸áö“F4¦E‰6¡ÉNšÑ~TÔÏ3â…×EZÐ’pL´­oIÚÆI;ÚoF‹v ã+éDç.éB×ýÑnt’ôÄíEï+Ò‡¾vÒþë'D0ð‰ bp a(å¤è0†¿“‘_# £}xJt cedã±±¢˜xM&1ÙC¦0•':éÏd3«d³©§Eç0—K|ð…ÇüS²€…²ˆÅø³¢KXÊ ËX#+X¹qNt«_ˆþ YÃÚ½ó¢ëXÿI6°}At›/ɶÚÈ6¶¯] ð‘ì`gž¼}It»ßH¡?d{ãE÷±_/`Rî \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GB-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GB-EUC-V.dat new file mode 100644 index 00000000..fcc9b6fd --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GB-EUC-V.dat @@ -0,0 +1,3 @@ +xÚ-ÊÉ ‚`Eáû¿¸0Ï +(Á!àT€ í=îFX¸Ô +!„BDýVgq¼Sà¢Ð½œFüHb‰m4ÚFZj±ài™MÕå–ÛUð²ÊŽâl¦G‚;܋˘q-(Xp®xóø’%ŠŠCAÍšKEƪhÙò&èØñ"èÙ3 ¸R|VÄAÖ \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GB-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GB-H.dat new file mode 100644 index 00000000..695fe1c8 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GB-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GB-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GB-V.dat new file mode 100644 index 00000000..af567748 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GB-V.dat @@ -0,0 +1,4 @@ +xÚ%Ê= +Â@Eá;,ÁBüyòrI +Ke‰¢.@£B2kwÀ¯8ÕÉMÕf)O‡d†?É-·  Ñ΂ +k{+m®®²Ê>‚ƒ»‹‹m¡H#Á–;ÞÄ•,é5k.Gžxçé¹R^;®={ªbàÀ¯`äÈ—`âÄ· 2r£øµ«º \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GBK-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GBK-EUC-H.dat new file mode 100644 index 00000000..531672ad Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GBK-EUC-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GBK-EUC-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GBK-EUC-UCS2.dat new file mode 100644 index 00000000..5b5f8002 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GBK-EUC-UCS2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GBK-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GBK-EUC-V.dat new file mode 100644 index 00000000..a67b0113 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_GBK-EUC-V.dat @@ -0,0 +1,2 @@ +xÚ5Ê9‚`Eáû¿ŽÞÂ8pä)74ôBR'½ \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_HKm314-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_HKm314-B5-H.dat new file mode 100644 index 00000000..3753d7dc Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_HKm314-B5-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_HKm314-B5-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_HKm314-B5-V.dat new file mode 100644 index 00000000..e76f5d71 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_HKm314-B5-V.dat @@ -0,0 +1,2 @@ +xÚEƱ +AqÆá÷µ·rñÝ€éÔ¿Ø §CQuE1 ƒÁ`P¿+k:7B<Ó“©îvzy?òQöa}µõÓJ$¡’’W¨¢â3á$O™q–ç,¸ÈKV\åš57yÖ»¼cÏC>pä)74 CË¿&‡ \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_HKm471-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_HKm471-B5-H.dat new file mode 100644 index 00000000..23ead8d3 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_HKm471-B5-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_HKm471-B5-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_HKm471-B5-V.dat new file mode 100644 index 00000000..2a44d619 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_HKm471-B5-V.dat @@ -0,0 +1,3 @@ +xÚEƱ +AqÆá÷µ·råËn:õ/6ÃéPEEQŒƒÁ`0Ôï +äšÎPÏôdEª»½NÞ|”ý_X_mý´‰A¨¤äª¨x‡ÆL8ÉSfœå9 .ò’W¹fÍMÞ°å.ïØóyÊ ÃÐÏ?& \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_HKscs-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_HKscs-B5-H.dat new file mode 100644 index 00000000..56a2d1fd Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_HKscs-B5-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_HKscs-B5-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_HKscs-B5-V.dat new file mode 100644 index 00000000..2ec41783 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_HKscs-B5-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Hankaku.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Hankaku.dat new file mode 100644 index 00000000..ec002fc3 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Hankaku.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Hiragana.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Hiragana.dat new file mode 100644 index 00000000..ce2a4471 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Hiragana.dat @@ -0,0 +1,2 @@ +xÚ%È-@PFáó~„›¬@ue3*+Ðü\Q ì3ÎÓŽëö3lá Àñgð|#ýDFFN+”Ä&§‰idâ–fjÓÊEczǸ + \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Hojo-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Hojo-EUC-H.dat new file mode 100644 index 00000000..d50e5a0d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Hojo-EUC-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Hojo-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Hojo-EUC-V.dat new file mode 100644 index 00000000..b71442c8 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Hojo-EUC-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Hojo-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Hojo-H.dat new file mode 100644 index 00000000..34ecce80 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Hojo-H.dat @@ -0,0 +1 @@ +xÚ%Í=LSqð{« ŠŠ@ŒFrŸøê¿/¤|ÓJRÚR(…¥|C)¥¥ A‡:èIŒƒ“ƒ“ƒqprprP&ãàÄ`bâ`œœŒƒÞÄ»ürNrrkc¥ƒŽÑ<ý?—à"¯å·˜xÌ·ˆ÷­C«‘xËÎÛ-Ä»`_!*Ú%û*qÙ.Û׈í»v›ÜI·C|Ë ·XŒe"Äí¦ÝD‰lcývÓ'vL‡I{M§Iš”IéÀãólkÙ‰ÎzféBWQéF÷¥=7\,½è} ô¡ï›ÒþÐ – ì \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_KSCms-UHC-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_KSCms-UHC-UCS2.dat new file mode 100644 index 00000000..4b8634b2 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_KSCms-UHC-UCS2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_KSCms-UHC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_KSCms-UHC-V.dat new file mode 100644 index 00000000..6f156c2d --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_KSCms-UHC-V.dat @@ -0,0 +1,3 @@ +xÚEÊ1 +‚p†ñïßêÒ Þ.à)\„ƨ[4µDAµWTSåöö¢$©CcDÄx„ úMÏðxýA0žøÃ0ðGÞ¿Cg­®ýt.§p1cÎ` ®z–òÆ9\Μ ØO.á6\ÃÚ_ØU©¶p™2í`… +ía½t€+Uê«Té«Uë {ë£î yÇ=N \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_KSCpc-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_KSCpc-EUC-H.dat new file mode 100644 index 00000000..acf61b84 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_KSCpc-EUC-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_KSCpc-EUC-UCS2C.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_KSCpc-EUC-UCS2C.dat new file mode 100644 index 00000000..b10e553e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_KSCpc-EUC-UCS2C.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_KSCpc-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_KSCpc-EUC-V.dat new file mode 100644 index 00000000..e4722c74 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_KSCpc-EUC-V.dat @@ -0,0 +1,2 @@ +xÚEʱ Â`Eá÷Û¦qƒë™"‚¥è.`) +j¯¢V»ë%Á`’ÂR !dA XøU§8^LÆ~wø#ïß=g¶ý´.§p#Î`1c®:–ðÆ9\ÆŒ ØO.ájÖ\Ú_ØU‰¶p©Rí`¹ría½t€+Tè+Uê«T)„½õÑî h_=. \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Katakana.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Katakana.dat new file mode 100644 index 00000000..fd967d4f Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Katakana.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_NWP-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_NWP-H.dat new file mode 100644 index 00000000..7e60acdf Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_NWP-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_NWP-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_NWP-V.dat new file mode 100644 index 00000000..dc461eb9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_NWP-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_OutputIntent.icc b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_OutputIntent.icc new file mode 100644 index 00000000..1b072d80 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_OutputIntent.icc differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_PDFA-XMP.4.2.3 b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_PDFA-XMP.4.2.3 new file mode 100644 index 00000000..0bb93bfd Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_PDFA-XMP.4.2.3 differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_RKSJ-H.dat new file mode 100644 index 00000000..45d15da6 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_RKSJ-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_RKSJ-V.dat new file mode 100644 index 00000000..21772182 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_RKSJ-V.dat @@ -0,0 +1,2 @@ +xÚ%ÅKJBqàówà&‚sWÐì"r©IhAH“¶ÐìwâÌ™NED\‡+ˆš4qfï·•uÉoòU÷w¶7«ÿ ¥ ¬U¶" ¦ÝØ‹K¦£8Ž+¦“8k¦³8¦(Ý}õuG 4Ð=1ÔPÄH#=cõDL4Ñ31ÕT/ÄL3½sÍõF,´Ð;QsÍDîÜŸDÝu/‰†þ" +þ&šnú‡piE´Üò/ÑvÛÈÐqÇ)C×=W²ô÷éU \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Roman.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Roman.dat new file mode 100644 index 00000000..dfee909d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Roman.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Symbol.ttf b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Symbol.ttf new file mode 100644 index 00000000..a961602c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Symbol.ttf differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-90ms-RKSJ.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-90ms-RKSJ.dat new file mode 100644 index 00000000..73c911b5 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-90ms-RKSJ.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-90pv-RKSJ.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-90pv-RKSJ.dat new file mode 100644 index 00000000..d677b3fb Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-90pv-RKSJ.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-B5pc.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-B5pc.dat new file mode 100644 index 00000000..583a9959 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-B5pc.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-ETen-B5.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-ETen-B5.dat new file mode 100644 index 00000000..84dc29b2 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-ETen-B5.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-GBK-EUC.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-GBK-EUC.dat new file mode 100644 index 00000000..9086b27e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-GBK-EUC.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-GBpc-EUC.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-GBpc-EUC.dat new file mode 100644 index 00000000..4147ed82 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-GBpc-EUC.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-KSCms-UHC.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-KSCms-UHC.dat new file mode 100644 index 00000000..b75d746a Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-KSCms-UHC.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-KSCpc-EUC.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-KSCpc-EUC.dat new file mode 100644 index 00000000..f9fbe4c3 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UCS2-KSCpc-EUC.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UCS2-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UCS2-H.dat new file mode 100644 index 00000000..828f6a5b Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UCS2-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UCS2-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UCS2-V.dat new file mode 100644 index 00000000..0a6a270b Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UCS2-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UTF16-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UTF16-H.dat new file mode 100644 index 00000000..488bc329 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UTF16-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UTF16-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UTF16-V.dat new file mode 100644 index 00000000..6d7d156e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UTF16-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UTF32-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UTF32-H.dat new file mode 100644 index 00000000..7cbbe581 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UTF32-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UTF32-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UTF32-V.dat new file mode 100644 index 00000000..a5d16ba9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UTF32-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UTF8-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UTF8-H.dat new file mode 100644 index 00000000..a49aea21 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UTF8-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UTF8-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UTF8-V.dat new file mode 100644 index 00000000..ee565245 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniCNS-UTF8-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniGB-UCS2-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniGB-UCS2-H.dat new file mode 100644 index 00000000..c56a1528 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniGB-UCS2-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniGB-UCS2-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniGB-UCS2-V.dat new file mode 100644 index 00000000..bc1f554a --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniGB-UCS2-V.dat @@ -0,0 +1 @@ +xÚMŒ1kÂ`Eﻓ…`+¦­hó%t <\%FbÑŒÒ[¸wéŸÎ¹ tñl'jŽuÑî?×Å%º“Æ00Ã?Œ³8»«l•}Ë|™¿˜›W¾%Fþè íÉ'þA›úÔç±?ûöâ¯~¢™LõPêAï´H‘Jb¬±s-´£%J4¬S¥Úm””**Uú&®ºêLtêÔ7Ý4 èÕ+ øaZ4Ô \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniGB-UTF16-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniGB-UTF16-H.dat new file mode 100644 index 00000000..2ad4fa7f Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniGB-UTF16-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniGB-UTF16-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniGB-UTF16-V.dat new file mode 100644 index 00000000..7ff0ba73 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniGB-UTF16-V.dat @@ -0,0 +1 @@ +xÚM‹±Á`EÝ;‘PD©”þíÔMòY,R¤Œ"Ф©Ýâ¥=ÈÕÄâl'9§W¾_ÇÝ¢¼ËÕâÖû·Z AëýÄOnDš¤É€Ár‚FÛmëÛ‰ØÐ.ÄÈF:ø6¶‚˜X`çf´kJut ºê*#“˜M"  \yv“@AÜ%P Løó–@H|(14Ž \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniGB-UTF8-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniGB-UTF8-H.dat new file mode 100644 index 00000000..cdf16983 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniGB-UTF8-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniGB-UTF8-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniGB-UTF8-V.dat new file mode 100644 index 00000000..ce4830a2 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniGB-UTF8-V.dat @@ -0,0 +1 @@ +xÚMŒKÁPFo™vNï¥,(¥t–¥ &-Æg\â· ‹3qŒ™I$cfФÑjüæ'ãd¢1 +~2®(®Qi h"¸¯èß7Ñßùv¿Ü{î9u;oºnp`dëm7·ïìéhïßÕ~yõï³?%^ÆïäF17†1ÌÎc7`¡s˜À‡§J +˜æ„·<BC8éÑÃ)¦Ð(ºÖ ¡>q4¼çQ…ð®GGèÛFLLOçp(=”~œÃáôp:™Ã‘ôHúI¥¥Oq<=žÞp"=‘ÞðRúRzwÀÙôlº9ÁT:•'8—žK7%ø4ý4J yÍ—ŽX“_“ÛãBþB¾´êtµ¸œNÓ•â¦ë í7SË´S\¹Vh·¸YZ©kÅUi•ö ªµZ5Z£ý‚Ù:[stŽnÔj­nÌÕ¹ºUP§uº]P¯õÚ#hÐí4j£nÌÓyºQФMºIЬÍ:$hÑÝ,˜¯óuXЪ­ºG *zÀ«×? MôjAésúAª©^'(ùÒk t¡^/NKÜ,(hAo´i›Þ X¤‹ô&Áb]¬· +–è½E°T—êm‚eºLGíZÔÝâLMÇË•z•¸ºBG—èJÝ)n•®Ò‚ÕÚ©WˆëÒµz—¸uºNïtk·Þ.X¯ëõNAöè^ÁÝ û½Ú«lÔºOЧ}úwA¿öëß:¨ĵZ  )Ìð…’’BRh ȵåÚ1Þ6ÞVà,g¯zWnµ6é]ÕÙp@½5؇޵Z«•²«OXb º­ÛÎ{ôX]ðèµ^û£ÏúìK°¯<öØûÚã^»×¾ñ¸Ïî³o=î·ûí;ƒvо÷8jGmkÀ1;f[ÆmÜ~ðxÔµ=&lÂ~òxž°Ÿ=ž´'í¢Ç‹ö¢ýâ1i“ö«Ç;c™Ç”Mœ·óæ|kßY.qí¢½Yª"ÁGJþ˜ãÓÑMã4˜Îé|&bgð€™œÉÿE”±ŒÏF”³œÿ¨`Ÿ˜ÅY|.¢’•|!¢ŠU<QÍjÖ$¨aODWÏzÎHÐÀþ; ‘üWÀ<ÎãËMlâ‘€f6ó•ˆ +_‹ÎÓs¼”SžŒ.Ï<ÿ°€ x,`!òTD©'|7¢Àg'hc+,âb~Ý.ácK¹”µ ÚÙÎ""§£[Îå|< ƒ<ÁVðž‹îR^ÊÊ+¹’ç#Vq¿ˆXÍÕüOÀe¼Œ_Ft²“¬á~ÑÅ.~ñ'®ã7Ñu³›_G¬çz èáF~]û8ÐÏ~þ1ÀNO0ÈAÎM°‰›y1º!±,Á0‡y(` ·ò×è¶q«lçvæŠág±ƒ;8­ˆ¼œeE·‹»øß€½Ü˪"öq+‹ØÏýœUÄ`E÷ðþ# <«ÈÞ÷®*«Ê6Ôd5Ùö€–¬%ë-B2É>÷èÌ:³<º²®ìcµÙÚì Ñl4ûÄc,ËÞñØíÎN{\™]™•Ê>™Mf¯{üX \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniJISPro-UCS2-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniJISPro-UCS2-V.dat new file mode 100644 index 00000000..a657c0b2 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniJISPro-UCS2-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniJISPro-UTF8-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniJISPro-UTF8-V.dat new file mode 100644 index 00000000..cf4182d9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniJISPro-UTF8-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniJISX0213-UTF32-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniJISX0213-UTF32-H.dat new file mode 100644 index 00000000..a3b5ef63 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniJISX0213-UTF32-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniJISX0213-UTF32-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniJISX0213-UTF32-V.dat new file mode 100644 index 00000000..365fbf28 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniJISX0213-UTF32-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniJISX02132004-UTF32-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniJISX02132004-UTF32-H.dat new file mode 100644 index 00000000..538a3f54 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniJISX02132004-UTF32-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniJISX02132004-UTF32-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniJISX02132004-UTF32-V.dat new file mode 100644 index 00000000..de0455de Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniJISX02132004-UTF32-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UCS2-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UCS2-H.dat new file mode 100644 index 00000000..ed856026 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UCS2-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UCS2-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UCS2-V.dat new file mode 100644 index 00000000..f1c50727 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UCS2-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UTF16-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UTF16-H.dat new file mode 100644 index 00000000..b66337f9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UTF16-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UTF16-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UTF16-V.dat new file mode 100644 index 00000000..fecb38f4 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UTF16-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UTF32-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UTF32-H.dat new file mode 100644 index 00000000..d6a7dc7e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UTF32-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UTF32-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UTF32-V.dat new file mode 100644 index 00000000..7aec18e0 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UTF32-V.dat @@ -0,0 +1,2 @@ +xÚM‹? AqFߟ ”«¸—Ár-Æ[b”lRF®Eì³™&ʧóA8ϵܧÎÛ9ÃëÅËÅpÅã~»M¼t œ±²ý—õëflB3WEÄVÑ@ÄZášfX)rH  +GE€T`Ÿü|9pJ~<œD\ED\5$„›¢ƒˆ»¢‹ˆ‡¢‡ˆ§bŠÌक़#b§ø â­øÔÃ2 \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UTF8-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UTF8-H.dat new file mode 100644 index 00000000..afc93e54 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UTF8-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UTF8-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UTF8-V.dat new file mode 100644 index 00000000..d0110aa4 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_UniKS-UTF8-V.dat @@ -0,0 +1 @@ +xÚMËMÁP†áÓ˜vdV`n"1¤ö`b,­QQ•2« é^X@·à{kâ$Oò½7¹®×ë6[U¯]¯U;î_4Ó•íw¥ÿ¶H†3ç ñÐÀ€üM¥OÌ4¶; ,ˆHc/“âÏ+7„Ź,‰WY+ lˆXã&[â©#‘jàDd8—4·Dbâª1qÏrCB|ãa. \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_V.dat new file mode 100644 index 00000000..f7b2445d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_WP-Symbol.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_WP-Symbol.dat new file mode 100644 index 00000000..aa6295e5 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_WP-Symbol.dat @@ -0,0 +1,3 @@ +xÚ%ÈÍJa…ñç?6 7®“Àó¢æG1™åêMZ +¢â®ˆ¦ENÐt^.º“,¦W<¿Õy²ã»h˜DÆKÅÉ#ä”OYž"_²%~D™sF² +ö¢JY:¿âÂ[‰K"&²+üÉ®i‚³nù.X‹Ûm/pt¼¥èÒc*ëÓ'ã0b#»gFèlΜx䕜³˜˜D¼ñŽœýÐÞH \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Wingding.ttf b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Wingding.ttf new file mode 100644 index 00000000..a50b2cfd Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_Wingding.ttf differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_ZapfDingbats.ttf b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_ZapfDingbats.ttf new file mode 100644 index 00000000..649ccd58 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_ZapfDingbats.ttf differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_fontsubst.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_fontsubst.dat new file mode 100644 index 00000000..0c7dfacb Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_fontsubst.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_times.ttf b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_times.ttf new file mode 100644 index 00000000..2e69c6a4 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/_times.ttf differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/list.json b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/list.json new file mode 100644 index 00000000..3cce015e --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/resources/list.json @@ -0,0 +1,231 @@ +[ +"_78-EUC-H.dat", +"_78-EUC-V.dat", +"_78-H.dat", +"_78-RKSJ-H.dat", +"_78-RKSJ-V.dat", +"_78-V.dat", +"_78ms-RKSJ-H.dat", +"_78ms-RKSJ-V.dat", +"_83pv-RKSJ-H.dat", +"_90ms-RKSJ-H.dat", +"_90ms-RKSJ-UCS2.dat", +"_90ms-RKSJ-V.dat", +"_90msp-RKSJ-H.dat", +"_90msp-RKSJ-V.dat", +"_90pv-RKSJ-H.dat", +"_90pv-RKSJ-UCS2.dat", +"_90pv-RKSJ-UCS2C.dat", +"_90pv-RKSJ-V.dat", +"_Add-H.dat", +"_Add-RKSJ-H.dat", +"_Add-RKSJ-V.dat", +"_Add-V.dat", +"_Adobe-CNS1-0.dat", +"_Adobe-CNS1-1.dat", +"_Adobe-CNS1-2.dat", +"_Adobe-CNS1-3.dat", +"_Adobe-CNS1-4.dat", +"_Adobe-CNS1-5.dat", +"_Adobe-CNS1-6.dat", +"_Adobe-CNS1-7.dat", +"_Adobe-CNS1-B5pc.dat", +"_Adobe-CNS1-ETenms-B5.dat", +"_Adobe-CNS1-H-CID.dat", +"_Adobe-CNS1-H-Host.dat", +"_Adobe-CNS1-H-Mac.dat", +"_Adobe-CNS1-UCS2.dat", +"_Adobe-GB1-0.dat", +"_Adobe-GB1-1.dat", +"_Adobe-GB1-2.dat", +"_Adobe-GB1-3.dat", +"_Adobe-GB1-4.dat", +"_Adobe-GB1-5.dat", +"_Adobe-GB1-UCS2.dat", +"_Adobe-Japan1-0.dat", +"_Adobe-Japan1-1.dat", +"_Adobe-Japan1-2.dat", +"_Adobe-Japan1-3.dat", +"_Adobe-Japan1-4.dat", +"_Adobe-Japan1-5.dat", +"_Adobe-Japan1-6.dat", +"_Adobe-Japan1-90ms-RKSJ.dat", +"_Adobe-Japan1-90pv-RKSJ.dat", +"_Adobe-Japan1-H-CID.dat", +"_Adobe-Japan1-H-Host.dat", +"_Adobe-Japan1-H-Mac.dat", +"_Adobe-Japan1-UCS2.dat", +"_Adobe-Japan2-0.dat", +"_Adobe-Korea1-0.dat", +"_Adobe-Korea1-1.dat", +"_Adobe-Korea1-2.dat", +"_Adobe-Korea1-H-CID.dat", +"_Adobe-Korea1-H-Host.dat", +"_Adobe-Korea1-H-Mac.dat", +"_Adobe-Korea1-KSCms-UHC.dat", +"_Adobe-Korea1-KSCpc-EUC.dat", +"_Adobe-Korea1-UCS2.dat", +"_B5-H.dat", +"_B5-V.dat", +"_B5pc-H.dat", +"_B5pc-UCS2.dat", +"_B5pc-UCS2C.dat", +"_B5pc-V.dat", +"_CNS-EUC-H.dat", +"_CNS-EUC-V.dat", +"_CNS1-H.dat", +"_CNS1-V.dat", +"_CNS2-H.dat", +"_CNS2-V.dat", +"_CourierStdToNew.dat", +"_ETen-B5-H.dat", +"_ETen-B5-UCS2.dat", +"_ETen-B5-V.dat", +"_ETenms-B5-H.dat", +"_ETenms-B5-V.dat", +"_ETHK-B5-H.dat", +"_ETHK-B5-V.dat", +"_EUC-H.dat", +"_EUC-V.dat", +"_Ext-H.dat", +"_Ext-RKSJ-H.dat", +"_Ext-RKSJ-V.dat", +"_Ext-V.dat", +"_fontsubst.dat", +"_GB-EUC-H.dat", +"_GB-EUC-V.dat", +"_GB-H.dat", +"_GB-V.dat", +"_GBK-EUC-H.dat", +"_GBK-EUC-UCS2.dat", +"_GBK-EUC-V.dat", +"_GBK2K-H.dat", +"_GBK2K-V.dat", +"_GBKp-EUC-H.dat", +"_GBKp-EUC-V.dat", +"_GBpc-EUC-H.dat", +"_GBpc-EUC-UCS2C.dat", +"_GBpc-EUC-V.dat", +"_GBT-EUC-H.dat", +"_GBT-EUC-V.dat", +"_GBT-H.dat", +"_GBT-V.dat", +"_GBTpc-EUC-H.dat", +"_GBTpc-EUC-V.dat", +"_H.dat", +"_Hankaku.dat", +"_Hiragana.dat", +"_HKdla-B5-H.dat", +"_HKdla-B5-V.dat", +"_HKdlb-B5-H.dat", +"_HKdlb-B5-V.dat", +"_HKgccs-B5-H.dat", +"_HKgccs-B5-V.dat", +"_HKm314-B5-H.dat", +"_HKm314-B5-V.dat", +"_HKm471-B5-H.dat", +"_HKm471-B5-V.dat", +"_HKscs-B5-H.dat", +"_HKscs-B5-V.dat", +"_Hojo-EUC-H.dat", +"_Hojo-EUC-V.dat", +"_Hojo-H.dat", +"_Hojo-V.dat", +"_Identity-H.dat", +"_Identity-V.dat", +"_Katakana.dat", +"_KSC-EUC-H.dat", +"_KSC-EUC-V.dat", +"_KSC-H.dat", +"_KSC-Johab-H.dat", +"_KSC-Johab-V.dat", +"_KSC-V.dat", +"_KSCms-UHC-H.dat", +"_KSCms-UHC-HW-H.dat", +"_KSCms-UHC-HW-V.dat", +"_KSCms-UHC-UCS2.dat", +"_KSCms-UHC-V.dat", +"_KSCpc-EUC-H.dat", +"_KSCpc-EUC-UCS2C.dat", +"_KSCpc-EUC-V.dat", +"_NWP-H.dat", +"_NWP-V.dat", +"_RKSJ-H.dat", +"_RKSJ-V.dat", +"_Roman.dat", +"_UCS2-90ms-RKSJ.dat", +"_UCS2-90pv-RKSJ.dat", +"_UCS2-B5pc.dat", +"_UCS2-ETen-B5.dat", +"_UCS2-GBK-EUC.dat", +"_UCS2-GBpc-EUC.dat", +"_UCS2-KSCms-UHC.dat", +"_UCS2-KSCpc-EUC.dat", +"_UniCNS-UCS2-H.dat", +"_UniCNS-UCS2-V.dat", +"_UniCNS-UTF16-H.dat", +"_UniCNS-UTF16-V.dat", +"_UniCNS-UTF32-H.dat", +"_UniCNS-UTF32-V.dat", +"_UniCNS-UTF8-H.dat", +"_UniCNS-UTF8-V.dat", +"_UniGB-UCS2-H.dat", +"_UniGB-UCS2-V.dat", +"_UniGB-UTF16-H.dat", +"_UniGB-UTF16-V.dat", +"_UniGB-UTF32-H.dat", +"_UniGB-UTF32-V.dat", +"_UniGB-UTF8-H.dat", +"_UniGB-UTF8-V.dat", +"_UniHojo-UCS2-H.dat", +"_UniHojo-UCS2-V.dat", +"_UniHojo-UTF16-H.dat", +"_UniHojo-UTF16-V.dat", +"_UniHojo-UTF32-H.dat", +"_UniHojo-UTF32-V.dat", +"_UniHojo-UTF8-H.dat", +"_UniHojo-UTF8-V.dat", +"_UniJIS-UCS2-H.dat", +"_UniJIS-UCS2-HW-H.dat", +"_UniJIS-UCS2-HW-V.dat", +"_UniJIS-UCS2-V.dat", +"_UniJIS-UTF16-H.dat", +"_UniJIS-UTF16-V.dat", +"_UniJIS-UTF32-H.dat", +"_UniJIS-UTF32-V.dat", +"_UniJIS-UTF8-H.dat", +"_UniJIS-UTF8-V.dat", +"_UniJIS2004-UTF16-H.dat", +"_UniJIS2004-UTF16-V.dat", +"_UniJIS2004-UTF32-H.dat", +"_UniJIS2004-UTF32-V.dat", +"_UniJIS2004-UTF8-H.dat", +"_UniJIS2004-UTF8-V.dat", +"_UniJISPro-UCS2-HW-V.dat", +"_UniJISPro-UCS2-V.dat", +"_UniJISPro-UTF8-V.dat", +"_UniJISX0213-UTF32-H.dat", +"_UniJISX0213-UTF32-V.dat", +"_UniJISX02132004-UTF32-H.dat", +"_UniJISX02132004-UTF32-V.dat", +"_UniKS-UCS2-H.dat", +"_UniKS-UCS2-V.dat", +"_UniKS-UTF16-H.dat", +"_UniKS-UTF16-V.dat", +"_UniKS-UTF32-H.dat", +"_UniKS-UTF32-V.dat", +"_UniKS-UTF8-H.dat", +"_UniKS-UTF8-V.dat", +"_V.dat", +"_WP-Symbol.dat", +"_PDFA-XMP.4.2.3", +"_DroidSansFallbackFull.ttf", +"_DroidSansMono.ttf", +"_Symbol.ttf", +"_times.ttf", +"_Wingding.ttf", +"_ZapfDingbats.ttf", +"_DefaultCMYK.icc", +"_OutputIntent.icc", +"list.json" +] diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/supportFiles/0_runtimeconfig.bin b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/supportFiles/0_runtimeconfig.bin new file mode 100644 index 00000000..c33b89a9 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/aot/supportFiles/0_runtimeconfig.bin @@ -0,0 +1 @@ + MMicrosoft.Extensions.DependencyInjection.VerifyOpenGenericServiceTrimmabilitytruefSystem.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerializationfalse6System.Reflection.Metadata.MetadataUpdater.IsSupportedfalse9System.Resources.ResourceManager.AllowCustomResourceTypesfalse=n)return null;const t=e[o];return o+=1,t}};return Object.defineProperty(s,"eof",{get:function(){return o>=n},configurable:!0,enumerable:!0}),s}(e,t,r);let o="",s=0,i=0,a=0,c=0,u=0,l=0;for(;s=n.read(),i=n.read(),a=n.read(),null!==s;)null===i&&(i=0,u+=1),null===a&&(a=0,u+=1),l=s<<16|i<<8|a<<0,c=(16777215&l)>>18,o+=b[c],c=(262143&l)>>12,o+=b[c],u<2&&(c=(4095&l)>>6,o+=b[c]),2===u?o+="==":1===u?o+="=":(c=(63&l)>>0,o+=b[c]);return o}const b=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];const v=new Map;v.remove=function(e){const t=this.get(e);return this.delete(e),t};let E,A,k,S={},O=0,x=-1;function N(){r.mono_wasm_runtime_is_ready=m.mono_wasm_runtime_is_ready=!0,O=0,S={},x=-1,globalThis.dotnetDebugger||console.debug("mono_wasm_runtime_ready","fe00e07a-5519-4dfe-b35a-f867dbaf2e28")}function j(){}function D(e,r,n,o){const s={res_ok:e,res:{id:r,value:y(new Uint8Array(t.HEAPU8.buffer,n,o))}};v.has(r)&&console.warn(`MONO_WASM: Adding an id (${r}) that already exists in commands_received`),v.set(r,s)}function M(e){e.length>x&&(E&&t._free(E),x=Math.max(e.length,x,256),E=t._malloc(x));const r=atob(e);for(let e=0;ee.value)),e;if(void 0===t.dimensionsDetails||1===t.dimensionsDetails.length)return e=t.items.map((e=>e.value)),e}const r={};return Object.keys(t).forEach((e=>{const n=t[e];void 0!==n.get?Object.defineProperty(r,n.name,{get:()=>T(n.get.id,n.get.commandSet,n.get.command,n.get.buffer),set:function(e){return R(n.set.id,n.set.commandSet,n.set.command,n.set.buffer,n.set.length,n.set.valtype,e),!0}}):void 0!==n.set?Object.defineProperty(r,n.name,{get:()=>n.value,set:function(e){return R(n.set.id,n.set.commandSet,n.set.command,n.set.buffer,n.set.length,n.set.valtype,e),!0}}):r[n.name]=n.value})),r}(t,r);const o=null!=e.arguments?e.arguments.map((e=>JSON.stringify(e.value))):[],s=`const fn = ${e.functionDeclaration}; return fn.apply(proxy, [${o}]);`,i=new Function("proxy",s)(n);if(void 0===i)return{type:"undefined"};if(Object(i)!==i)return"object"==typeof i&&null==i?{type:typeof i,subtype:`${i}`,value:null}:{type:typeof i,description:`${i}`,value:`${i}`};if(e.returnByValue&&null==i.subtype)return{type:"object",value:i};if(Object.getPrototypeOf(i)==Array.prototype){const e=L(i);return{type:"object",subtype:"array",className:"Array",description:`Array(${i.length})`,objectId:e}}if(void 0!==i.value||void 0!==i.subtype)return i;if(i==n)return{type:"object",className:"Object",description:"Object",objectId:t};return{type:"object",className:"Object",description:"Object",objectId:L(i)}}function W(e,t={}){return function(e,t){if(!(e in S))throw new Error(`Could not find any object with id ${e}`);const r=S[e],n=Object.getOwnPropertyDescriptors(r);t.accessorPropertiesOnly&&Object.keys(n).forEach((e=>{void 0===n[e].get&&Reflect.deleteProperty(n,e)}));const o=[];return Object.keys(n).forEach((e=>{let t;const r=n[e];t="object"==typeof r.value?Object.assign({name:e},r):void 0!==r.value?{name:e,value:Object.assign({type:typeof r.value,description:""+r.value},r)}:void 0!==r.get?{name:e,get:{className:"Function",description:`get ${e} () {}`,type:"function"}}:{name:e,value:{type:"symbol",value:"",description:""}},o.push(t)})),{__value_as_json_string__:JSON.stringify(o)}}(`dotnet:cfo_res:${e}`,t)}function L(e){const t="dotnet:cfo_res:"+O++;return S[t]=e,t}function H(e){e in S&&delete S[e]}function V(e,n){const o=t.UTF8ToString(n);r.logging&&"function"==typeof r.logging.debugger&&r.logging.debugger(e,o)}let q=0;function J(e){const t=1===g.mono_wasm_load_icu_data(e);return t&&q++,t}function G(e){return g.mono_wasm_get_icudt_name(e)}function Y(){const e=m.config;let r=!1;if(e.globalizationMode||(e.globalizationMode="auto"),"invariant"===e.globalizationMode&&(r=!0),!r)if(q>0)m.diagnosticTracing&&console.debug("MONO_WASM: ICU data archive(s) loaded, disabling invariant mode");else{if("icu"===e.globalizationMode){const e="invariant globalization mode is inactive and no ICU data archives were loaded";throw t.printErr(`MONO_WASM: ERROR: ${e}`),new Error(e)}m.diagnosticTracing&&console.debug("MONO_WASM: ICU data archive(s) not loaded, using invariant globalization mode"),r=!0}r&&g.mono_wasm_setenv("DOTNET_SYSTEM_GLOBALIZATION_INVARIANT","1"),g.mono_wasm_setenv("DOTNET_SYSTEM_GLOBALIZATION_PREDEFINED_CULTURES_ONLY","1")}function X(e){null==e&&(e={}),"writeAt"in e||(e.writeAt="System.Runtime.InteropServices.JavaScript.JavaScriptExports::StopProfile"),"sendTo"in e||(e.sendTo="Interop/Runtime::DumpAotProfileData");const r="aot:write-at-method="+e.writeAt+",send-to-method="+e.sendTo;t.ccall("mono_wasm_load_profiler_aot",null,["string"],[r])}function Z(e){null==e&&(e={}),"writeAt"in e||(e.writeAt="WebAssembly.Runtime::StopProfile"),"sendTo"in e||(e.sendTo="WebAssembly.Runtime::DumpCoverageProfileData");const r="coverage:write-at-method="+e.writeAt+",send-to-method="+e.sendTo;t.ccall("mono_wasm_load_profiler_coverage",null,["string"],[r])}const K=new Map,Q=new Map;let ee=0;function te(e){if(K.has(e))return K.get(e);const t=g.mono_wasm_assembly_load(e);return K.set(e,t),t}function re(e,t,r){ee||(ee=g.mono_wasm_get_corlib());let n=function(e,t,r){let n=Q.get(e);n||Q.set(e,n=new Map);let o=n.get(t);return o||(o=new Map,n.set(t,o)),o.get(r)}(ee,e,t);if(void 0!==n)return n;if(n=g.mono_wasm_assembly_find_class(ee,e,t),r&&!n)throw new Error(`Failed to find corlib class ${e}.${t}`);return function(e,t,r,n){const o=Q.get(e);if(!o)throw new Error("internal error");const s=o.get(t);if(!s)throw new Error("internal error");s.set(r,n)}(ee,e,t,n),n}const ne=new Map,oe=[];function se(e){try{if(0==ne.size)return e;const t=e;for(let r=0;r{const r=t.find((e=>"object"==typeof e&&void 0!==e.replaceSection));if(void 0===r)return e;const n=r.funcNum,o=r.replaceSection,s=ne.get(Number(n));return void 0===s?e:e.replace(o,`${s} (${o})`)}));if(n!==t)return n}return t}catch(t){return console.debug(`MONO_WASM: failed to symbolicate: ${t}`),e}}function ie(e){let t=e;return t instanceof Error||(t=new Error(t)),se(t.stack)}function ae(e,n,o,s,i){const a=t.UTF8ToString(o),c=!!s,u=t.UTF8ToString(e),l=i,_=t.UTF8ToString(n),f=`[MONO] ${a}`;if(r.logging&&"function"==typeof r.logging.trace)r.logging.trace(u,_,f,c,l);else switch(_){case"critical":case"error":console.error(ie(f));break;case"warning":console.warn(f);break;case"message":default:console.log(f);break;case"info":console.info(f);break;case"debug":console.debug(f)}}let ce;function ue(e){if(!m.mono_wasm_symbols_are_ready){m.mono_wasm_symbols_are_ready=!0;try{t.FS_readFile(e,{flags:"r",encoding:"utf8"}).split(/[\r\n]/).forEach((e=>{const t=e.split(/:/);t.length<2||(t[1]=t.splice(1).join(":"),ne.set(Number(t[0]),t[1]))}))}catch(t){return void(44==t.errno||console.log(`MONO_WASM: Error loading symbol file ${e}: ${JSON.stringify(t)}`))}}}async function le(e,t){try{const r=await _e(e,t);return me(r),r}catch(e){return e instanceof m.ExitStatus?e.status:(me(1,e),1)}}async function _e(e,r){(function(e,r){const n=r.length+1,o=t._malloc(4*n);let s=0;t.setValue(o+4*s,g.mono_wasm_strdup(e),"i32"),s+=1;for(let e=0;e{const t=setInterval((()=>{1==m.waitForDebugger&&(clearInterval(t),e())}),100)})));const n=fe(e);return m.javaScriptExports.call_entry_point(n,r)}function fe(e){if(!m.mono_wasm_bindings_is_ready)throw new Error("Assert failed: The runtime must be initialized.");const t=te(e);if(!t)throw new Error("Could not find assembly: "+e);let r=0;1==m.waitForDebugger&&(r=1);const n=g.mono_wasm_assembly_get_entry_point(t,r);if(!n)throw new Error("Could not find entry point for assembly: "+e);return n}function de(e){Mi(e,!1),me(1,e)}function me(e,t){if(m.config.asyncFlushOnExit&&0===e)throw(async()=>{try{await async function(){try{const e=await import("process"),t=e=>new Promise(((t,r)=>{e.on("error",(e=>r(e))),e.write("",(function(){t()}))})),r=t(e.stderr),n=t(e.stdout);await Promise.all([n,r])}catch(e){console.error(`flushing std* streams failed: ${e}`)}}()}finally{pe(e,t)}})(),m.ExitStatus?new m.ExitStatus(e):t||new Error("Stop with exit code "+e);pe(e,t)}function pe(e,n){if(m.ExitStatus&&(!n||n instanceof m.ExitStatus?n=new m.ExitStatus(e):n instanceof Error?t.printErr(r.mono_wasm_stringify_as_error_with_stack(n)):"string"==typeof n?t.printErr(n):t.printErr(JSON.stringify(n))),function(e,t){if(m.config.logExitCode)if(0!=e&&t&&(t instanceof Error?console.error(ie(t)):"string"==typeof t?console.error(t):console.error(JSON.stringify(t))),ce){const t=()=>{0==ce.bufferedAmount?console.log("WASM EXIT "+e):setTimeout(t,100)};t()}else console.log("WASM EXIT "+e)}(e,n),function(e){if(i&&m.config.appendElementOnExit){const t=document.createElement("label");t.id="tests_done",e&&(t.style.background="red"),t.innerHTML=e.toString(),document.body.appendChild(t)}}(e),0!==e||!i){if(!m.quit)throw n;m.quit(e,n)}}oe.push(/at (?[^:()]+:wasm-function\[(?\d+)\]:0x[a-fA-F\d]+)((?![^)a-fA-F\d])|$)/),oe.push(/(?:WASM \[[\da-zA-Z]+\], (?function #(?[\d]+) \(''\)))/),oe.push(/(?[a-z]+:\/\/[^ )]*:wasm-function\[(?\d+)\]:0x[a-fA-F\d]+)/),oe.push(/(?<[^ >]+>[.:]wasm-function\[(?[0-9]+)\])/);const he="function"==typeof globalThis.WeakRef;function we(e){return he?new WeakRef(e):{deref:()=>e}}const ge="function"==typeof globalThis.FinalizationRegistry;let ye;const be=[],ve=[];let Ee=1;const Ae=new Map;ge&&(ye=new globalThis.FinalizationRegistry((function(e){De(null,e)})));const ke=Symbol.for("wasm js_owned_gc_handle"),Se=Symbol.for("wasm cs_owned_js_handle");function Oe(e){return 0!==e&&-1!==e?be[e]:null}function xe(e){if(e[Se])return e[Se];const t=ve.length?ve.pop():Ee++;return be[t]=e,Object.isExtensible(e)&&(e[Se]=t),t}function Ne(e){const t=be[e];if(null!=t){if(globalThis===t)return;void 0!==t[Se]&&(t[Se]=void 0),be[e]=void 0,ve.push(e)}}function je(e,t){e[ke]=t,ge&&ye.register(e,t,e);const r=we(e);Ae.set(t,r)}function De(e,t){e&&(t=e[ke],e[ke]=0,ge&&ye.unregister(e)),0!==t&&Ae.delete(t)&&m.javaScriptExports.release_js_owned_object_by_gc_handle(t)}function Me(e){const t=e[ke];if(0==t)throw new Error("Assert failed: ObjectDisposedException");return t}function Re(e){if(!e)return null;const t=Ae.get(e);return t?t.deref():null}const Te=Symbol.for("wasm promise_control");function Ie(e,t){let r=null;const n=new Promise((function(n,o){r={isDone:!1,promise:null,resolve:t=>{r.isDone||(r.isDone=!0,n(t),e&&e())},reject:e=>{r.isDone||(r.isDone=!0,o(e),t&&t())}}}));r.promise=n;const o=n;return o[Te]=r,{promise:o,promise_control:r}}function $e(e){return e[Te]}function Fe(e){if(!function(e){return void 0!==e[Te]}(e))throw new Error("Assert failed: Promise is not controllable")}const Pe=("object"==typeof Promise||"function"==typeof Promise)&&"function"==typeof Promise.resolve;function Ce(e){return Promise.resolve(e)===e||("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}function Ue(e){const{promise:t,promise_control:r}=Ie();return e().then((e=>r.resolve(e))).catch((e=>r.reject(e))),t}function Be(e){const t=Re(e);if(!t)return;const r=t.promise;if(!r)throw new Error(`Assert failed: Expected Promise for GCHandle ${e}`);Fe(r);$e(r).reject("OperationCanceledException")}const ze=[];let We,Le,He=null;const Ve="undefined"!=typeof BigInt&&"undefined"!=typeof BigInt64Array;function qe(){We||(We=t._malloc(32768),Le=We),ze.push(Le)}function Je(e,t,r){if(!Number.isSafeInteger(e))throw new Error(`Assert failed: Value is not an integer: ${e} (${typeof e})`);if(!(e>=t&&e<=r))throw new Error(`Assert failed: Overflow: value ${e} is out of ${t} ${r} range`)}function Ge(e,r){t.HEAP8.fill(0,e,r+e)}function Ye(e,r){const n=!!r;"number"==typeof r&&Je(r,0,1),t.HEAP32[e>>>2]=n?1:0}function Xe(e,r){Je(r,0,255),t.HEAPU8[e]=r}function Ze(e,r){Je(r,0,65535),t.HEAPU16[e>>>1]=r}function Ke(e,r){t.HEAPU32[e>>>2]=r}function Qe(e,r){Je(r,0,4294967295),t.HEAPU32[e>>>2]=r}function et(e,r){Je(r,-128,127),t.HEAP8[e]=r}function tt(e,r){Je(r,-32768,32767),t.HEAP16[e>>>1]=r}function rt(e,r){t.HEAP32[e>>>2]=r}function nt(e,r){Je(r,-2147483648,2147483647),t.HEAP32[e>>>2]=r}function ot(e){if(0!==e)switch(e){case 1:throw new Error("value was not an integer");case 2:throw new Error("value out of range");default:throw new Error("unknown internal error")}}function st(e,t){if(!Number.isSafeInteger(t))throw new Error(`Assert failed: Value is not a safe integer: ${t} (${typeof t})`);ot(g.mono_wasm_f64_to_i52(e,t))}function it(e,t){if(!Number.isSafeInteger(t))throw new Error(`Assert failed: Value is not a safe integer: ${t} (${typeof t})`);if(!(t>=0))throw new Error("Assert failed: Can't convert negative Number into UInt64");ot(g.mono_wasm_f64_to_u52(e,t))}function at(e,t){if(!Ve)throw new Error("Assert failed: BigInt is not supported.");if("bigint"!=typeof t)throw new Error(`Assert failed: Value is not an bigint: ${t} (${typeof t})`);if(!(t>=At&&t<=Et))throw new Error(`Assert failed: Overflow: value ${t} is out of ${At} ${Et} range`);He[e>>>3]=t}function ct(e,r){if("number"!=typeof r)throw new Error(`Assert failed: Value is not a Number: ${r} (${typeof r})`);t.HEAPF32[e>>>2]=r}function ut(e,r){if("number"!=typeof r)throw new Error(`Assert failed: Value is not a Number: ${r} (${typeof r})`);t.HEAPF64[e>>>3]=r}function lt(e){return!!t.HEAP32[e>>>2]}function _t(e){return t.HEAPU8[e]}function ft(e){return t.HEAPU16[e>>>1]}function dt(e){return t.HEAPU32[e>>>2]}function mt(e){return t.HEAP8[e]}function pt(e){return t.HEAP16[e>>>1]}function ht(e){return t.HEAP32[e>>>2]}function wt(e){const t=g.mono_wasm_i52_to_f64(e,m._i52_error_scratch_buffer);return ot(ht(m._i52_error_scratch_buffer)),t}function gt(e){const t=g.mono_wasm_u52_to_f64(e,m._i52_error_scratch_buffer);return ot(ht(m._i52_error_scratch_buffer)),t}function yt(e){if(!Ve)throw new Error("Assert failed: BigInt is not supported.");return He[e>>>3]}function bt(e){return t.HEAPF32[e>>>2]}function vt(e){return t.HEAPF64[e>>>3]}let Et,At;function kt(e){const r=t._malloc(e.length);return new Uint8Array(t.HEAPU8.buffer,r,e.length).set(e),r}const St=8192;let Ot=null,xt=null,Nt=0;const jt=[],Dt=[];function Mt(e,r){if(e<=0)throw new Error("capacity >= 1");const n=4*(e|=0),o=t._malloc(n);if(o%4!=0)throw new Error("Malloc returned an unaligned offset");return Ge(o,n),new $t(o,e,!0,r)}function Rt(e){let t;if(!e)throw new Error("address must be a location in the native heap");return Dt.length>0?(t=Dt.pop(),t._set_address(e)):t=new Pt(e),t}function Tt(e){let t;if(jt.length>0)t=jt.pop();else{const e=function(){if(h(Ot)||!xt){Ot=Mt(St,"js roots"),xt=new Int32Array(St),Nt=St;for(let e=0;e>>2,this.__count=t,this.length=t,this.__handle=g.mono_wasm_register_root(e,o,n||"noname"),this.__ownsAllocation=r}_throw_index_out_of_range(){throw new Error("index out of range")}_check_in_range(e){(e>=this.__count||e<0)&&this._throw_index_out_of_range()}get_address(e){return this._check_in_range(e),this.__offset+4*e}get_address_32(e){return this._check_in_range(e),this.__offset32+e}get(e){this._check_in_range(e);const r=this.get_address_32(e);return t.HEAPU32[r]}set(e,t){const r=this.get_address(e);return g.mono_wasm_write_managed_pointer_unsafe(r,t),t}copy_value_from_address(e,t){const r=this.get_address(e);g.mono_wasm_copy_managed_pointer(r,t)}_unsafe_get(e){return t.HEAPU32[this.__offset32+e]}_unsafe_set(e,t){const r=this.__offset+e;g.mono_wasm_write_managed_pointer_unsafe(r,t)}clear(){this.__offset&&Ge(this.__offset,4*this.__count)}release(){this.__offset&&this.__ownsAllocation&&(g.mono_wasm_deregister_root(this.__offset),Ge(this.__offset,4*this.__count),t._free(this.__offset)),this.__handle=this.__offset=this.__count=this.__offset32=0}toString(){return`[root buffer @${this.get_address(0)}, size ${this.__count} ]`}}class Ft{constructor(e,t){this.__buffer=e,this.__index=t}get_address(){return this.__buffer.get_address(this.__index)}get_address_32(){return this.__buffer.get_address_32(this.__index)}get address(){return this.__buffer.get_address(this.__index)}get(){return this.__buffer._unsafe_get(this.__index)}set(e){const t=this.__buffer.get_address(this.__index);return g.mono_wasm_write_managed_pointer_unsafe(t,e),e}copy_from(e){const t=e.address,r=this.address;g.mono_wasm_copy_managed_pointer(r,t)}copy_to(e){const t=this.address,r=e.address;g.mono_wasm_copy_managed_pointer(r,t)}copy_from_address(e){const t=this.address;g.mono_wasm_copy_managed_pointer(t,e)}copy_to_address(e){const t=this.address;g.mono_wasm_copy_managed_pointer(e,t)}get value(){return this.get()}set value(e){this.set(e)}valueOf(){throw new Error("Implicit conversion of roots to pointers is no longer supported. Use .value or .address as appropriate")}clear(){this.set(0)}release(){if(!this.__buffer)throw new Error("No buffer");jt.length>128?(function(e){void 0!==e&&(Ot.set(e,0),xt[Nt]=e,Nt++)}(this.__index),this.__buffer=null,this.__index=0):(this.set(0),jt.push(this))}toString(){return`[root @${this.address}]`}}class Pt{constructor(e){this.__external_address=0,this.__external_address_32=0,this._set_address(e)}_set_address(e){this.__external_address=e,this.__external_address_32=e>>>2}get address(){return this.__external_address}get_address(){return this.__external_address}get_address_32(){return this.__external_address_32}get(){return t.HEAPU32[this.__external_address_32]}set(e){return g.mono_wasm_write_managed_pointer_unsafe(this.__external_address,e),e}copy_from(e){const t=e.address,r=this.__external_address;g.mono_wasm_copy_managed_pointer(r,t)}copy_to(e){const t=this.__external_address,r=e.address;g.mono_wasm_copy_managed_pointer(r,t)}copy_from_address(e){const t=this.__external_address;g.mono_wasm_copy_managed_pointer(t,e)}copy_to_address(e){const t=this.__external_address;g.mono_wasm_copy_managed_pointer(e,t)}get value(){return this.get()}set value(e){this.set(e)}valueOf(){throw new Error("Implicit conversion of roots to pointers is no longer supported. Use .value or .address as appropriate")}clear(){this.set(0)}release(){Dt.length<128&&Dt.push(this)}toString(){return`[external root @${this.address}]`}}const Ct=new Map,Ut=new Map,Bt=Symbol.for("wasm bound_cs_function"),zt=Symbol.for("wasm bound_js_function"),Wt=16;function Lt(e){const r=t.stackAlloc(Wt*e);if(!r||r%8!=0)throw new Error("Assert failed: Arg alignment");er(Ht(r,0),yr.None);return er(Ht(r,1),yr.None),r}function Ht(e,t){if(!e)throw new Error("Assert failed: Null args");return e+t*Wt}function Vt(e,t){if(!e)throw new Error("Assert failed: Null signatures");return e+32*t+8}function qt(e){if(!e)throw new Error("Assert failed: Null sig");return dt(e)}function Jt(e){if(!e)throw new Error("Assert failed: Null sig");return dt(e+16)}function Gt(e){if(!e)throw new Error("Assert failed: Null sig");return dt(e+20)}function Yt(e){if(!e)throw new Error("Assert failed: Null sig");return dt(e+24)}function Xt(e){if(!e)throw new Error("Assert failed: Null sig");return dt(e+28)}function Zt(e){if(!e)throw new Error("Assert failed: Null signatures");return ht(e+4)}function Kt(e){if(!e)throw new Error("Assert failed: Null signatures");return ht(e)}function Qt(e){if(!e)throw new Error("Assert failed: Null arg");return dt(e+12)}function er(e,t){if(!e)throw new Error("Assert failed: Null arg");Qe(e+12,t)}function tr(e){if(!e)throw new Error("Assert failed: Null arg");return dt(e)}function rr(e,t){if(!e)throw new Error("Assert failed: Null arg");if("boolean"!=typeof t)throw new Error(`Assert failed: Value is not a Boolean: ${t} (${typeof t})`);Xe(e,t?1:0)}function nr(e,t){if(!e)throw new Error("Assert failed: Null arg");Qe(e,t)}function or(e,t){if(!e)throw new Error("Assert failed: Null arg");ut(e,t.getTime())}function sr(e,t){if(!e)throw new Error("Assert failed: Null arg");ut(e,t)}function ir(e){if(!e)throw new Error("Assert failed: Null arg");return dt(e+4)}function ar(e,t){if(!e)throw new Error("Assert failed: Null arg");Qe(e+4,t)}function cr(e){if(!e)throw new Error("Assert failed: Null arg");return dt(e+4)}function ur(e,t){if(!e)throw new Error("Assert failed: Null arg");Qe(e+4,t)}function lr(e){if(!e)throw new Error("Assert failed: Null arg");return Rt(e)}function _r(e){if(!e)throw new Error("Assert failed: Null arg");return ht(e+8)}function fr(e,t){if(!e)throw new Error("Assert failed: Null arg");nt(e+8,t)}class dr{dispose(){De(this,0)}get isDisposed(){return 0===this[ke]}toString(){return`CsObject(gc_handle: ${this[ke]})`}}class mr extends Error{constructor(e){super(e),this.superStack=Object.getOwnPropertyDescriptor(this,"stack"),Object.defineProperty(this,"stack",{get:this.getManageStack})}getSuperStack(){return this.superStack?this.superStack.value:super.stack}getManageStack(){const e=this[ke];if(e){const t=m.javaScriptExports.get_managed_stack_trace(e);if(t)return t+"\n"+this.getSuperStack()}return this.getSuperStack()}dispose(){De(this,0)}get isDisposed(){return 0===this[ke]}}function pr(e){return e==yr.Byte?1:e==yr.Int32?4:e==yr.Int52||e==yr.Double?8:e==yr.String||e==yr.Object||e==yr.JSObject?Wt:-1}class hr{constructor(e,t,r){this._pointer=e,this._length=t,this._viewType=r}_unsafe_create_view(){const e=0==this._viewType?new Uint8Array(t.HEAPU8.buffer,this._pointer,this._length):1==this._viewType?new Int32Array(t.HEAP32.buffer,this._pointer,this._length):2==this._viewType?new Float64Array(t.HEAPF64.buffer,this._pointer,this._length):null;if(!e)throw new Error("NotImplementedException");return e}set(e,t){if(this.isDisposed)throw new Error("Assert failed: ObjectDisposedException");const r=this._unsafe_create_view();if(!e||!r||e.constructor!==r.constructor)throw new Error(`Assert failed: Expected ${r.constructor}`);r.set(e,t)}copyTo(e,t){if(this.isDisposed)throw new Error("Assert failed: ObjectDisposedException");const r=this._unsafe_create_view();if(!e||!r||e.constructor!==r.constructor)throw new Error(`Assert failed: Expected ${r.constructor}`);const n=r.subarray(t);e.set(n)}slice(e,t){if(this.isDisposed)throw new Error("Assert failed: ObjectDisposedException");return this._unsafe_create_view().slice(e,t)}get length(){if(this.isDisposed)throw new Error("Assert failed: ObjectDisposedException");return this._length}get byteLength(){if(this.isDisposed)throw new Error("Assert failed: ObjectDisposedException");return 0==this._viewType?this._length:1==this._viewType?this._length<<2:2==this._viewType?this._length<<3:0}}class wr extends hr{constructor(e,t,r){super(e,t,r),this.is_disposed=!1}dispose(){this.is_disposed=!0}get isDisposed(){return this.is_disposed}}class gr extends hr{constructor(e,t,r){super(e,t,r)}dispose(){De(this,0)}get isDisposed(){return 0===this[ke]}}var yr;!function(e){e[e.None=0]="None",e[e.Void=1]="Void",e[e.Discard=2]="Discard",e[e.Boolean=3]="Boolean",e[e.Byte=4]="Byte",e[e.Char=5]="Char",e[e.Int16=6]="Int16",e[e.Int32=7]="Int32",e[e.Int52=8]="Int52",e[e.BigInt64=9]="BigInt64",e[e.Double=10]="Double",e[e.Single=11]="Single",e[e.IntPtr=12]="IntPtr",e[e.JSObject=13]="JSObject",e[e.Object=14]="Object",e[e.String=15]="String",e[e.Exception=16]="Exception",e[e.DateTime=17]="DateTime",e[e.DateTimeOffset=18]="DateTimeOffset",e[e.Nullable=19]="Nullable",e[e.Task=20]="Task",e[e.Array=21]="Array",e[e.ArraySegment=22]="ArraySegment",e[e.Span=23]="Span",e[e.Action=24]="Action",e[e.Function=25]="Function",e[e.JSException=26]="JSException"}(yr||(yr={}));const br=new Map,vr=new Map;let Er=0,Ar=null,kr=0;const Sr=new class{init_fields(){this.mono_wasm_string_decoder_buffer||(this.mono_text_decoder="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):null,this.mono_wasm_string_root=Tt(),this.mono_wasm_string_decoder_buffer=t._malloc(12))}copy(e){if(this.init_fields(),0===e)return null;this.mono_wasm_string_root.value=e;const t=this.copy_root(this.mono_wasm_string_root);return this.mono_wasm_string_root.value=0,t}copy_root(e){if(this.init_fields(),0===e.value)return null;const t=this.mono_wasm_string_decoder_buffer+0,r=this.mono_wasm_string_decoder_buffer+4,n=this.mono_wasm_string_decoder_buffer+8;let o;g.mono_wasm_string_get_data_ref(e.address,t,r,n);const s=ht(r),i=dt(t),a=ht(n);if(a&&(o=br.get(e.value)),void 0===o&&(s&&i?(o=this.decode(i,i+s),a&&br.set(e.value,o)):o=Or),void 0===o)throw new Error(`internal error when decoding string at location ${e.value}`);return o}decode(e,r){let n="";if(this.mono_text_decoder){const o="undefined"!=typeof SharedArrayBuffer&&t.HEAPU8.buffer instanceof SharedArrayBuffer?t.HEAPU8.slice(e,r):t.HEAPU8.subarray(e,r);n=this.mono_text_decoder.decode(o)}else for(let o=0;o=8192&&(Ar=null),Ar||(Ar=Mt(8192,"interned strings"),kr=0);const n=Ar,o=kr++;if(r&&(g.mono_wasm_intern_string_ref(t.address),!t.value))throw new Error("mono_wasm_intern_string_ref produced a null pointer");vr.set(e,t.value),br.set(t.value,e),0!==e.length||Er||(Er=t.value),n.copy_value_from_address(o,t.address)}(r,t,!0))}function Mr(e,t){if(t.clear(),null!==e)if("symbol"==typeof e)Dr(e,t);else{if("string"!=typeof e)throw new Error("Expected string argument, got "+typeof e);if(0===e.length)Dr(e,t);else{if(e.length<=256){const r=vr.get(e);if(r)return void t.set(r)}Rr(e,t)}}}function Rr(e,r){const n=t._malloc(2*(e.length+1)),o=n>>>1|0;for(let r=0;r{const r=Ht(e,0),a=Ht(e,1),c=Ht(e,2),u=Ht(e,3),l=Ht(e,4);try{let e,r,_;o&&(e=o(c)),s&&(r=s(u)),i&&(_=i(l));const f=t(e,r,_);n&&n(a,f)}catch(e){Qr(r,e)}};a[zt]=!0;ar(e,xe(a)),er(e,yr.Function)}class Zr{constructor(e){this.promise=e}dispose(){De(this,0)}get isDisposed(){return 0===this[ke]}}function Kr(e,t,r,n){if(null==t)return void er(e,yr.None);if(!Ce(t))throw new Error("Assert failed: Value is not a Promise");const o=m.javaScriptExports.create_task_callback();ur(e,o),er(e,yr.Task);const s=new Zr(t);je(s,o),t.then((e=>{m.javaScriptExports.complete_task(o,null,e,n||tn),De(s,o)})).catch((e=>{m.javaScriptExports.complete_task(o,e,null,void 0),De(s,o)}))}function Qr(e,t){if(null==t)er(e,yr.None);else if(t instanceof mr){er(e,yr.Exception);ur(e,Me(t))}else{if("object"!=typeof t&&"string"!=typeof t)throw new Error("Assert failed: Value is not an Error "+typeof t);er(e,yr.JSException);Gr(e,t.toString());const r=t[Se];if(r)ar(e,r);else{ar(e,xe(t))}}}function en(e,t){if(null==t)er(e,yr.None);else{if(void 0!==t[ke])throw new Error("Assert failed: JSObject proxy of ManagedObject proxy is not supported");if("function"!=typeof t&&"object"!=typeof t)throw new Error(`Assert failed: JSObject proxy of ${typeof t} is not supported`);er(e,yr.JSObject);ar(e,xe(t))}}function tn(e,t){if(null==t)er(e,yr.None);else{const r=t[ke],n=typeof t;if(void 0===r)if("string"===n||"symbol"===n)er(e,yr.String),Gr(e,t);else if("number"===n)er(e,yr.Double),sr(e,t);else{if("bigint"===n)throw new Error("NotImplementedException: bigint");if("boolean"===n)er(e,yr.Boolean),rr(e,t);else if(t instanceof Date)er(e,yr.DateTime),or(e,t);else if(t instanceof Error)Qr(e,t);else if(t instanceof Uint8Array)nn(e,t,yr.Byte);else if(t instanceof Float64Array)nn(e,t,yr.Double);else if(t instanceof Int32Array)nn(e,t,yr.Int32);else if(Array.isArray(t))nn(e,t,yr.Object);else{if(t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array)throw new Error("NotImplementedException: TypedArray");if(Ce(t))Kr(e,t);else{if(t instanceof wr)throw new Error("NotImplementedException: Span");if("object"!=n)throw new Error(`JSObject proxy is not supported for ${n} ${t}`);{const r=xe(t);er(e,yr.JSObject),ar(e,r)}}}}else{if(Me(t),t instanceof gr)throw new Error("NotImplementedException: ArraySegment");if(t instanceof mr)er(e,yr.Exception),ur(e,r);else{if(!(t instanceof dr))throw new Error("NotImplementedException "+n);er(e,yr.Object),ur(e,r)}}}}function rn(e,t,r){if(!r)throw new Error("Assert failed: Expected valid sig parameter");nn(e,t,Gt(r))}function nn(e,r,n){if(null==r)er(e,yr.None);else{const o=pr(n);if(-1==o)throw new Error(`Assert failed: Element type ${yr[n]} not supported`);const s=r.length,i=o*s,a=t._malloc(i);if(n==yr.String){if(!Array.isArray(r))throw new Error("Assert failed: Value is not an Array");Ge(a,i),g.mono_wasm_register_root(a,i,"marshal_array_to_cs");for(let e=0;e>2,(a>>2)+s).set(r)}else{if(n!=yr.Double)throw new Error("not implemented");if(!(Array.isArray(r)||r instanceof Float64Array))throw new Error("Assert failed: Value is not an Array or Float64Array");t.HEAPF64.subarray(a>>3,(a>>3)+s).set(r)}nr(e,a),er(e,yr.Array),function(e,t){if(!e)throw new Error("Assert failed: Null arg");Qe(e+4,t)}(e,n),fr(e,r.length)}}function on(e,t,r){if(!r)throw new Error("Assert failed: Expected valid sig parameter");if(t.isDisposed)throw new Error("Assert failed: ObjectDisposedException");an(r,t._viewType),er(e,yr.Span),nr(e,t._pointer),fr(e,t.length)}function sn(e,t,r){if(!r)throw new Error("Assert failed: Expected valid sig parameter");const n=Me(t);if(!n)throw new Error("Assert failed: Only roundtrip of ArraySegment instance created by C#");an(r,t._viewType),er(e,yr.ArraySegment),nr(e,t._pointer),fr(e,t.length),ur(e,n)}function an(e,t){const r=Gt(e);if(r==yr.Byte){if(0!=t)throw new Error("Assert failed: Expected MemoryViewType.Byte")}else if(r==yr.Int32){if(1!=t)throw new Error("Assert failed: Expected MemoryViewType.Int32")}else{if(r!=yr.Double)throw new Error(`NotImplementedException ${yr[r]} `);if(2!=t)throw new Error("Assert failed: Expected MemoryViewType.Double")}}function cn(e,t,r,n,o,s){let i="",a="",c="";const u="converter"+t;let l="null",_="null",f="null",d="null",m=qt(e);if(m===yr.None||m===yr.Void)return{converters:i,call_body:c,marshaler_type:m};const p=Jt(e);if(p!==yr.None){const e=Ct.get(p);if(!e||"function"!=typeof e)throw new Error(`Assert failed: Unknow converter for type ${p} at ${t}`);m!=yr.Nullable?(d="converter"+t+"_res",i+=", "+d,a+=" "+yr[p],s[d]=e):m=p}const h=Gt(e);if(h!==yr.None){const e=Ut.get(h);if(!e||"function"!=typeof e)throw new Error(`Assert failed: Unknow converter for type ${h} at ${t}`);l="converter"+t+"_arg1",i+=", "+l,a+=" "+yr[h],s[l]=e}const w=Yt(e);if(w!==yr.None){const e=Ut.get(w);if(!e||"function"!=typeof e)throw new Error(`Assert failed: Unknow converter for type ${w} at ${t}`);_="converter"+t+"_arg2",i+=", "+_,a+=" "+yr[w],s[_]=e}const g=Xt(e);if(g!==yr.None){const e=Ut.get(g);if(!e||"function"!=typeof e)throw new Error(`Assert failed: Unknow converter for type ${g} at ${t}`);f="converter"+t+"_arg3",i+=", "+f,a+=" "+yr[g],s[f]=e}const y=Ct.get(m);if(!y||"function"!=typeof y)throw new Error(`Assert failed: Unknow converter for type ${m} at ${t} `);return i+=", "+u,a+=" "+yr[m],s[u]=y,c=m==yr.Task?` const ${o} = ${u}(args + ${r}, signature + ${n}, ${d}); // ${a} \n`:m==yr.Action||m==yr.Function?` const ${o} = ${u}(args + ${r}, signature + ${n}, ${d}, ${l}, ${_}, ${f}); // ${a} \n`:` const ${o} = ${u}(args + ${r}, signature + ${n}); // ${a} \n`,{converters:i,call_body:c,marshaler_type:m}}function un(e){return Qt(e)==yr.None?null:function(e){if(!e)throw new Error("Assert failed: Null arg");return!!_t(e)}(e)}function ln(e){return Qt(e)==yr.None?null:function(e){if(!e)throw new Error("Assert failed: Null arg");return _t(e)}(e)}function _n(e){return Qt(e)==yr.None?null:function(e){if(!e)throw new Error("Assert failed: Null arg");return ft(e)}(e)}function fn(e){return Qt(e)==yr.None?null:function(e){if(!e)throw new Error("Assert failed: Null arg");return pt(e)}(e)}function dn(e){return Qt(e)==yr.None?null:function(e){if(!e)throw new Error("Assert failed: Null arg");return ht(e)}(e)}function mn(e){return Qt(e)==yr.None?null:function(e){if(!e)throw new Error("Assert failed: Null arg");return vt(e)}(e)}function pn(e){return Qt(e)==yr.None?null:function(e){if(!e)throw new Error("Assert failed: Null arg");return yt(e)}(e)}function hn(e){return Qt(e)==yr.None?null:function(e){if(!e)throw new Error("Assert failed: Null arg");return bt(e)}(e)}function wn(e){return Qt(e)==yr.None?null:function(e){if(!e)throw new Error("Assert failed: Null arg");return vt(e)}(e)}function gn(e){return Qt(e)==yr.None?null:tr(e)}function yn(){return null}function bn(e){return Qt(e)===yr.None?null:function(e){if(!e)throw new Error("Assert failed: Null arg");const t=vt(e);return new Date(t)}(e)}function vn(e,t,r,n,o,s){if(Qt(e)===yr.None)return null;const i=cr(e);let a=Re(i);return null!=a||(a=(e,t,a)=>m.javaScriptExports.call_delegate(i,e,t,a,r,n,o,s),je(a,i)),a}function En(e,t,r){const n=Qt(e);if(n===yr.None)return null;if(n!==yr.Task){if(r||(r=Ct.get(n)),!r)throw new Error(`Assert failed: Unknow sub_converter for type ${yr[n]} `);const t=r(e);return new Promise((e=>e(t)))}const o=ir(e);if(0==o)return new Promise((e=>e(void 0)));const s=Oe(o);if(!s)throw new Error(`Assert failed: ERR28: promise not found for js_handle: ${o} `);Fe(s);const i=$e(s),a=i.resolve;return i.resolve=e=>{const t=Qt(e);if(t===yr.None)return void a(null);if(r||(r=Ct.get(t)),!r)throw new Error(`Assert failed: Unknow sub_converter for type ${yr[t]}`);const n=r(e);a(n)},s}function An(e){const t=Ht(e,0),r=Ht(e,1),n=Ht(e,2),o=Ht(e,3),s=Qt(t),i=Qt(o),a=ir(n);if(0===a){const{promise:e,promise_control:n}=Ie();if(ar(r,xe(e)),s!==yr.None){const e=Sn(t);n.reject(e)}else if(i!==yr.Task){const e=Ct.get(i);if(!e)throw new Error(`Assert failed: Unknow sub_converter for type ${yr[i]} `);const t=e(o);n.resolve(t)}}else{const e=Oe(a);if(!e)throw new Error(`Assert failed: ERR25: promise not found for js_handle: ${a} `);Fe(e);const r=$e(e);if(s!==yr.None){const e=Sn(t);r.reject(e)}else i!==yr.Task&&r.resolve(o)}er(r,yr.Task),er(t,yr.None)}function kn(e){if(Qt(e)==yr.None)return null;const t=lr(e);try{return Nr(t)}finally{t.release()}}function Sn(e){const t=Qt(e);if(t==yr.None)return null;if(t==yr.JSException){return Oe(ir(e))}const r=cr(e);let n=Re(r);if(null==n){const t=kn(e);n=new mr(t),je(n,r)}return n}function On(e){if(Qt(e)==yr.None)return null;return Oe(ir(e))}function xn(e){const t=Qt(e);if(t==yr.None)return null;if(t==yr.JSObject){return Oe(ir(e))}if(t==yr.Array){return jn(e,function(e){if(!e)throw new Error("Assert failed: Null arg");return dt(e+4)}(e))}if(t==yr.Object){const t=cr(e);if(0===t)return null;let r=Re(t);return r||(r=new dr,je(r,t)),r}const r=Ct.get(t);if(!r)throw new Error(`Assert failed: Unknow converter for type ${yr[t]}`);return r(e)}function Nn(e,t){if(!t)throw new Error("Assert failed: Expected valid sig parameter");return jn(e,Gt(t))}function jn(e,r){if(Qt(e)==yr.None)return null;if(-1==pr(r))throw new Error(`Assert failed: Element type ${yr[r]} not supported`);const n=tr(e),o=_r(e);let s=null;if(r==yr.String){s=new Array(o);for(let e=0;e>2,(n>>2)+o).slice()}else{if(r!=yr.Double)throw new Error(`NotImplementedException ${yr[r]} `);s=t.HEAPF64.subarray(n>>3,(n>>3)+o).slice()}return t._free(n),s}function Dn(e,t){if(!t)throw new Error("Assert failed: Expected valid sig parameter");const r=Gt(t),n=tr(e),o=_r(e);let s=null;if(r==yr.Byte)s=new wr(n,o,0);else if(r==yr.Int32)s=new wr(n,o,1);else{if(r!=yr.Double)throw new Error(`NotImplementedException ${yr[r]} `);s=new wr(n,o,2)}return s}function Mn(e,t){if(!t)throw new Error("Assert failed: Expected valid sig parameter");const r=Gt(t),n=tr(e),o=_r(e);let s=null;if(r==yr.Byte)s=new gr(n,o,0);else if(r==yr.Int32)s=new gr(n,o,1);else{if(r!=yr.Double)throw new Error(`NotImplementedException ${yr[r]} `);s=new gr(n,o,2)}return je(s,cr(e)),s}let Rn,Tn;const In={};const $n=Symbol.for("wasm type");const Fn=Ie(),Pn=Ie();let Cn=0,Un=0,Bn=0,zn=0;const Wn=[],Ln=Object.create(null);let Hn,Vn=0;const qn={"js-module-threads":!0},Jn={dotnetwasm:!0},Gn={"js-module-threads":!0,dotnetwasm:!0};async function Yn(){m.diagnosticTracing&&console.debug("MONO_WASM: mono_download_assets"),m.maxParallelDownloads=m.config.maxParallelDownloads||m.maxParallelDownloads;try{const e=[];for(const t of m.config.assets){const r=t;if(Gn[r.behavior]||zn++,!qn[r.behavior]){const t=Jn[r.behavior];if(Bn++,r.pendingDownload){r.pendingDownloadInternal=r.pendingDownload;const n=async()=>{const e=await r.pendingDownloadInternal.response;return t||(r.buffer=await e.arrayBuffer()),++Cn,{asset:r,buffer:r.buffer}};e.push(n())}else{const n=async()=>(r.buffer=await Xn(r,!t),{asset:r,buffer:r.buffer});e.push(n())}}}Pn.promise_control.resolve();const r=[];for(const t of e)r.push((async()=>{const e=await t,r=e.asset;if(e.buffer){if(!Gn[r.behavior]){const t=r.pendingDownloadInternal.url,n=new Uint8Array(r.buffer);r.pendingDownloadInternal=null,r.pendingDownload=null,r.buffer=null,e.buffer=null,await ki.promise,eo(r,t,n)}}else{if(Jn[r.behavior])Jn[r.behavior]&&++Cn;else{if(!r.isOptional)throw new Error("Assert failed: Expected asset to have the downloaded buffer");qn[r.behavior]||Bn--,Gn[r.behavior]||zn--}}})());Promise.all(r).then((()=>{Fn.promise_control.resolve()})).catch((e=>{t.printErr("MONO_WASM: Error in mono_download_assets: "+e),Mi(e,!0)}))}catch(e){throw t.printErr("MONO_WASM: Error in mono_download_assets: "+e),e}}async function Xn(e,t){try{return await Zn(e,t)}catch(r){if(s||o)throw r;if(e.pendingDownload&&e.pendingDownloadInternal==e.pendingDownload)throw r;if(e.resolvedUrl&&-1!=e.resolvedUrl.indexOf("file://"))throw r;if(r&&404==r.status)throw r;e.pendingDownloadInternal=void 0,await Pn.promise;try{return await Zn(e,t)}catch(r){return e.pendingDownloadInternal=void 0,await function(e){return new Promise((t=>setTimeout(t,e)))}(100),await Zn(e,t)}}}async function Zn(e,r){for(;Hn;)await Hn.promise;try{++Vn,Vn==m.maxParallelDownloads&&(m.diagnosticTracing&&console.debug("MONO_WASM: Throttling further parallel downloads"),Hn=Ie());const n=await async function(e){if(e.buffer){const t=e.buffer;return e.buffer=null,e.pendingDownloadInternal={url:"undefined://"+e.name,name:e.name,response:Promise.resolve({arrayBuffer:()=>t,headers:{get:()=>{}}})},e.pendingDownloadInternal.response}if(e.pendingDownloadInternal&&e.pendingDownloadInternal.response){return await e.pendingDownloadInternal.response}const r=e.loadRemote&&m.config.remoteSources?m.config.remoteSources:[""];let n;for(let t of r){t=t.trim(),"./"===t&&(t="");const r=Kn(e,t);e.name===r?m.diagnosticTracing&&console.debug(`MONO_WASM: Attempting to download '${r}'`):m.diagnosticTracing&&console.debug(`MONO_WASM: Attempting to download '${r}' for ${e.name}`);try{const t=Qn({name:e.name,resolvedUrl:r,hash:e.hash,behavior:e.behavior});if(e.pendingDownloadInternal=t,n=await t.response,!n.ok)continue;return n}catch(e){continue}}const o=e.isOptional||e.name.match(/\.pdb$/)&&m.config.ignorePdbLoadErrors;if(!n)throw new Error(`Assert failed: Response undefined ${e.name}`);if(o)return void t.print(`MONO_WASM: optional download '${n.url}' for ${e.name} failed ${n.status} ${n.statusText}`);{const t=new Error(`MONO_WASM: download '${n.url}' for ${e.name} failed ${n.status} ${n.statusText}`);throw t.status=n.status,t}}(e);if(!r||!n)return;const o=await n.arrayBuffer();return++Cn,o}finally{if(--Vn,Hn&&Vn==m.maxParallelDownloads-1){m.diagnosticTracing&&console.debug("MONO_WASM: Resuming more parallel downloads");const e=Hn;Hn=void 0,e.promise_control.resolve()}}}function Kn(e,t){if(null==t)throw new Error(`Assert failed: sourcePrefix must be provided for ${e.name}`);let r;const n=m.config.assemblyRootFolder;if(e.resolvedUrl)r=e.resolvedUrl;else{if(""===t)if("assembly"===e.behavior||"pdb"===e.behavior)r=n?n+"/"+e.name:e.name;else if("resource"===e.behavior){const t=e.culture&&""!==e.culture?`${e.culture}/${e.name}`:e.name;r=n?n+"/"+t:t}else r=e.name;else r=t+e.name;r=m.locateFile(r)}if(!r||"string"!=typeof r)throw new Error("Assert failed: attemptUrl need to be path or url string");return r}function Qn(e){try{if("function"==typeof t.downloadResource){const r=t.downloadResource(e);if(r)return r}const r={};e.hash&&(r.integrity=e.hash);const n=m.fetch_like(e.resolvedUrl,r);return{name:e.name,url:e.resolvedUrl,response:n}}catch(t){const r={ok:!1,url:e.resolvedUrl,status:500,statusText:"ERR29: "+t,arrayBuffer:()=>{throw t},json:()=>{throw t}};return{name:e.name,url:e.resolvedUrl,response:Promise.resolve(r)}}}function eo(e,r,n){m.diagnosticTracing&&console.debug(`MONO_WASM: Loaded:${e.name} as ${e.behavior} size ${n.length} from ${r}`);const o="string"==typeof e.virtualPath?e.virtualPath:e.name;let s=null;switch(e.behavior){case"dotnetwasm":case"js-module-threads":break;case"resource":case"assembly":case"pdb":Wn.push({url:r,file:o});case"heap":case"icu":s=kt(n),Ln[o]=[s,n.length];break;case"vfs":{const e=o.lastIndexOf("/");let r=e>0?o.substr(0,e):null,s=e>0?o.substr(e+1):o;s.startsWith("/")&&(s=s.substr(1)),r?(m.diagnosticTracing&&console.debug(`MONO_WASM: Creating directory '${r}'`),t.FS_createPath("/",r,!0,!0)):r="/",m.diagnosticTracing&&console.debug(`MONO_WASM: Creating file '${s}' in directory '${r}'`),to(n,r)||t.FS_createDataFile(r,s,n,!0,!0,!0);break}default:throw new Error(`Unrecognized asset behavior:${e.behavior}, for asset ${e.name}`)}if("assembly"===e.behavior){if(!g.mono_wasm_add_assembly(o,s,n.length)){const e=Wn.findIndex((e=>e.file==o));Wn.splice(e,1)}}else"icu"===e.behavior?J(s)||t.printErr(`MONO_WASM: Error loading ICU asset ${e.name}`):"resource"===e.behavior&&g.mono_wasm_add_satellite_assembly(o,e.culture||"",s,n.length);++Un}function to(e,r){if(e.length<8)return!1;const n=new DataView(e.buffer);if(1651270004!=n.getUint32(0,!0))return!1;const o=n.getUint32(4,!0);if(0==o||e.length{const t=e[0],r=t.lastIndexOf("/"),n=t.slice(0,r+1);i.add(n)})),i.forEach((e=>{t.FS_createPath(r,e,!0,!0)}));for(const n of s){const o=n[0],s=n[1],i=e.slice(0,s);t.FS_createDataFile(r,o,i,!0,!0),e=e.slice(s)}return!0}async function ro(){if(await Fn.promise,m.config.assets){if(Cn!=Bn)throw new Error(`Assert failed: Expected ${Bn} assets to be downloaded, but only finished ${Cn}`);if(Un!=zn)throw new Error(`Assert failed: Expected ${zn} assets to be in memory, but only instantiated ${Un}`);Wn.forEach((e=>Rn.loaded_files.push(e.url))),m.diagnosticTracing&&console.debug("MONO_WASM: all assets are loaded in wasm memory")}}function no(){return Rn.loaded_files}let oo,so;function io(e){const r=t;void 0===globalThis.performance&&(globalThis.performance=ao),void 0===globalThis.URL&&(globalThis.URL=class{constructor(e){this.url=e}toString(){return this.url}});const n=r.imports=t.imports||{},c=e=>r=>t.imports[r]||e(r);n.require?m.requirePromise=e.requirePromise=Promise.resolve(c(n.require)):e.require?m.requirePromise=e.requirePromise=Promise.resolve(c(e.require)):e.requirePromise?m.requirePromise=e.requirePromise.then((e=>c(e))):m.requirePromise=e.requirePromise=Promise.resolve(c((e=>{throw new Error(`Please provide Module.imports.${e} or Module.imports.require`)}))),m.scriptDirectory=e.scriptDirectory=function(e){return a&&(e.scriptUrl=self.location.href),e.scriptUrl||(e.scriptUrl="./dotnet.js"),e.scriptUrl=function(e){return e.replace(/\\/g,"/").replace(/[?#].*/,"")}(e.scriptUrl),function(e){return e.slice(0,e.lastIndexOf("/"))+"/"}(e.scriptUrl)}(e),r.mainScriptUrlOrBlob=e.scriptUrl,r.__locateFile===r.locateFile?r.locateFile=m.locateFile=e=>function(e){return o||s?e.startsWith("/")||e.startsWith("\\")||-1!==e.indexOf("///")||lo.test(e):uo.test(e)}(e)?e:m.scriptDirectory+e:m.locateFile=r.locateFile,n.fetch?e.fetch=m.fetch_like=n.fetch:e.fetch=m.fetch_like=co,e.noExitRuntime=i;const u=e.updateGlobalBufferAndViews;e.updateGlobalBufferAndViews=e=>{u(e),function(e){Ve&&(Et=BigInt("9223372036854775807"),At=BigInt("-9223372036854775808"),He=new BigInt64Array(e))}(e)}}const ao={now:function(){return Date.now()}};async function co(e,r){try{if(o){if(!oo){const e=await m.requirePromise;so=e("url"),oo=e("fs")}e.startsWith("file://")&&(e=so.fileURLToPath(e));const t=await oo.promises.readFile(e);return{ok:!0,url:e,arrayBuffer:()=>t,json:()=>JSON.parse(t)}}if("function"==typeof globalThis.fetch)return globalThis.fetch(e,r||{credentials:"same-origin"});if("function"==typeof read){const r=new Uint8Array(read(e,"binary"));return{ok:!0,url:e,arrayBuffer:()=>r,json:()=>JSON.parse(t.UTF8ArrayToString(r,0,r.length))}}}catch(r){return{ok:!1,url:e,status:500,statusText:"ERR28: "+r,arrayBuffer:()=>{throw r},json:()=>{throw r}}}throw new Error("No fetch implementation available")}const uo=/^[a-zA-Z][a-zA-Z\d+\-.]*?:\/\//,lo=/[a-zA-Z]:[\\/]/;function _o(e,t,r,n,o,s){const i=Rt(e),a=Rt(t),c=Rt(s);try{const e=Kt(r);if(1!==e)throw new Error(`Assert failed: Signature version ${e} mismatch.`);const t=Nr(i),o=Nr(a);m.diagnosticTracing&&console.debug(`MONO_WASM: Binding [JSImport] ${t} from ${o}`);const s=po(t,o),u=Zt(r),l={fn:s,marshal_exception_to_cs:Qr,signature:r},_="_bound_js_"+t.replace(/\./g,"_");let f=`//# sourceURL=https://dotnet.generated.invalid/${_} \n`,d="",p="",h="";for(let e=0;e{const o=await r;return n&&(Eo.set(e,o),m.diagnosticTracing&&console.debug(`MONO_WASM: imported ES6 module '${e}' from '${t}'`)),o}))}function ko(e,r,n){Mr(function(e,r){let n="unknown exception";if(r){n=r.toString();const e=r.stack;e&&(e.startsWith(n)?n=e:n+="\n"+e),n=se(n)}return e&&t.setValue(e,1,"i32"),n}(e,r),n)}const So=new Map;function Oo(e,r,n,o,s){const i=Rt(e),a=Rt(s),c=t;try{const e=Kt(n);if(1!==e)throw new Error(`Assert failed: Signature version ${e} mismatch.`);const t=Zt(n),o=Nr(i);if(!o)throw new Error("Assert failed: fully_qualified_name must be string");m.diagnosticTracing&&console.debug(`MONO_WASM: Binding [JSExport] ${o}`);const{assembly:s,namespace:u,classname:l,methodname:_}=Do(o),f=te(s);if(!f)throw new Error("Could not find assembly: "+s);const d=g.mono_wasm_assembly_find_class(f,u,l);if(!d)throw new Error("Could not find class: "+u+":"+l+" in assembly "+s);const p=`__Wrapper_${_}_${r}`,h=g.mono_wasm_assembly_find_method(d,p,-1);if(!h)throw new Error(`Could not find method: ${p} in ${d} [${s}]`);const w={method:h,signature:n,stackSave:c.stackSave,stackRestore:c.stackRestore,alloc_stack_frame:Lt,invoke_method_and_handle_exception:xo},y="_bound_cs_"+`${u}_${l}_${_}`.replace(/\./g,"_").replace(/\//g,"_");let b=`//# sourceURL=https://dotnet.generated.invalid/${y} \n`,v="",E="";for(let e=0;ea&&(i=a);const c=n*s;return new Uint8Array(e.buffer,0,i).set(t.HEAPU8.subarray(r+c,r+c+i)),i}throw new Error("Object '"+e+"' is not a typed array")}function Io(e){return"undefined"!=typeof SharedArrayBuffer?e.buffer instanceof ArrayBuffer||e.buffer instanceof SharedArrayBuffer:e.buffer instanceof ArrayBuffer}function $o(e,t,r){switch(!0){case null===t:case void 0===t:return void r.clear();case"symbol"==typeof t:case"string"==typeof t:return void Es._create_uri_ref(t,r.address);default:return void Co(e,t,r)}}function Fo(e){const t=Tt();try{return Po(e,t,!1),t.value}finally{t.release()}}function Po(e,t,r){if(h(t))throw new Error("Expected (value, WasmRoot, boolean)");switch(!0){case null===e:case void 0===e:return void t.clear();case"number"==typeof e:{let r;return(0|e)===e?(rt(In._box_buffer,e),r=In._class_int32):e>>>0===e?(Ke(In._box_buffer,e),r=In._class_uint32):(ut(In._box_buffer,e),r=In._class_double),void g.mono_wasm_box_primitive_ref(r,In._box_buffer,8,t.address)}case"string"==typeof e:return void Mr(e,t);case"symbol"==typeof e:return void Dr(e,t);case"boolean"==typeof e:return Ye(In._box_buffer,e),void g.mono_wasm_box_primitive_ref(In._class_boolean,In._box_buffer,4,t.address);case!0===Ce(e):return void function(e,t){if(!e)return t.clear(),null;const r=xe(e),n=Es._create_tcs(),o={tcs_gc_handle:n};je(o,n),e.then((e=>{Es._set_tcs_result_ref(n,e)}),(e=>{Es._set_tcs_failure(n,e?e.toString():"")})).finally((()=>{Ne(r),De(o,n)})),Es._get_tcs_task_ref(n,t.address)}(e,t);case"Date"===e.constructor.name:return void Es._create_date_time_ref(e.getTime(),t.address);default:return void Co(r,e,t)}}function Co(e,t,r){if(r.clear(),null!=t){if(void 0!==t[ke]){return void Ko(Me(t),r.address)}if(t[Se]&&(function(e,t,r){if(0===e||-1===e)return void rt(r,0);Es._get_cs_owned_object_by_js_handle_ref(e,t?1:0,r)}(t[Se],e,r.address),r.value||delete t[Se]),!r.value){const n=t[$n],o=void 0===n?0:n,s=xe(t);Es._create_cs_owned_proxy_ref(s,o,e?1:0,r.address)}}}function Uo(e,r){if(!Io(e)||!e.BYTES_PER_ELEMENT)throw new Error("Object '"+e+"' is not a typed array");{const n=e[$n],o=function(e){const r=e.length*e.BYTES_PER_ELEMENT,n=t._malloc(r),o=new Uint8Array(t.HEAPU8.buffer,n,r);return o.set(new Uint8Array(e.buffer,e.byteOffset,r)),o}(e);g.mono_wasm_typed_array_new_ref(o.byteOffset,e.length,e.BYTES_PER_ELEMENT,n,r.address),t._free(o.byteOffset)}}function Bo(e){const t=Tt();try{return Uo(e,t),t.value}finally{t.release()}}function zo(e,t,r){if("number"!=typeof e)throw new Error(`Expected numeric value for enum argument, got '${e}'`);return 0|e}function Wo(e,t,r){const n=Rt(r);try{const r=Oe(e);if(h(r))return void ko(t,"ERR06: Invalid JS object handle '"+e+"'",n);Uo(r,n)}catch(e){ko(t,String(e),n)}finally{n.release()}}const Lo=Symbol.for("wasm delegate_invoke");function Ho(e){if(0===e)return;const t=Tt(e);try{return Jo(t)}finally{t.release()}}function Vo(e,t,r,n){switch(t){case 0:return null;case 26:case 27:throw new Error("int64 not available");case 3:case 29:return Nr(e);case 4:throw new Error("no idea on how to unbox value types");case 5:return function(e){if(0===e.value)return null;return function(e){let t=Re(e);if(t)Me(t);else{t=function(...e){Me(t);return(0,t[Lo])(...e)};const r=Tt();Ko(e,r.address);try{if(void 0===t[Lo]){const n=g.mono_wasm_get_delegate_invoke_ref(r.address),o=ws(n,bs(n,r),!0);if(t[Lo]=o.bind({this_arg_gc_handle:e}),!t[Lo])throw new Error("System.Delegate Invoke method can not be resolved.")}}finally{r.release()}je(t,e)}return t}(Es._get_js_owned_object_gc_handle_ref(e.address))}(e);case 6:return function(e){if(0===e.value)return null;if(!Pe)throw new Error("Promises are not supported thus 'System.Threading.Tasks.Task' can not work in this context.");const t=Es._get_js_owned_object_gc_handle_ref(e.address);let r=Re(t);if(!r){const n=()=>De(r,t),{promise:o,promise_control:s}=Ie(n,n);r=o,Es._setup_js_cont_ref(e.address,s),je(r,t)}return r}(e);case 7:return function(e){if(0===e.value)return null;const t=Es._try_get_cs_owned_object_js_handle_ref(e.address,0);if(t){if(t===p)throw new Error("Cannot access a disposed JSObject at "+e.value);return Oe(t)}const r=Es._get_js_owned_object_gc_handle_ref(e.address);let n=Re(r);return h(n)&&(n=new dr,je(n,r)),n}(e);case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:throw new Error("Marshaling of primitive arrays are not supported.");case 20:return new Date(Es._get_date_value_ref(e.address));case 21:case 22:return Es._object_to_string_ref(e.address);case 23:return function(e){return Oe(Es._get_cs_owned_object_js_handle_ref(e.address,0))}(e);case 30:return;default:throw new Error(`no idea on how to unbox object of MarshalType ${t} at offset ${e.value} (root address is ${e.address})`)}}function qo(e,t,r){if(t>=512)throw new Error(`Got marshaling error ${t} when attempting to unbox object at address ${e.value} (root located at ${e.address})`);let n=0;if((4===t||7==t)&&(n=dt(r),n<1024))throw new Error(`Got invalid MonoType ${n} for object at address ${e.value} (root located at ${e.address})`);return Vo(e,t)}function Jo(e){if(0===e.value)return;const t=In._unbox_buffer,r=g.mono_wasm_try_unbox_primitive_and_get_type_ref(e.address,t,In._unbox_buffer_size);switch(r){case 1:return ht(t);case 25:case 32:return dt(t);case 24:return bt(t);case 2:return vt(t);case 8:return 0!==ht(t);case 28:return String.fromCharCode(ht(t));case 0:return null;default:return qo(e,r,t)}}function Go(e){if(0===e)return null;const t=Tt(e);try{return Xo(t)}finally{t.release()}}function Yo(e){return Es._is_simple_array_ref(e.address)}function Xo(e){if(0===e.value)return null;const t=e.address,r=Tt(),n=r.address;try{const o=g.mono_wasm_array_length(e.value),s=new Array(o);for(let e=0;e0&&Array.isArray(e[0])&&(e[0]=function(e,t,r){const n=Tt();t?g.mono_wasm_string_array_new_ref(e.length,n.address):g.mono_wasm_obj_array_new_ref(e.length,n.address);const o=Tt(0),s=n.address,i=o.address;try{for(let n=0;n{e&&"AbortError"!==e.name&&t.printErr("MONO_WASM: Error in http_wasm_abort_response: "+e)}))}function js(e,t,r,n,o,s,i,a){return Ds(e,t,r,n,o,s,new wr(i,a,0).slice())}function Ds(e,t,r,n,o,s,i){if(!e||"string"!=typeof e)throw new Error("Assert failed: expected url string");if(!(t&&r&&Array.isArray(t)&&Array.isArray(r)&&t.length===r.length))throw new Error("Assert failed: expected headerNames and headerValues arrays");if(!(n&&o&&Array.isArray(n)&&Array.isArray(o)&&n.length===o.length))throw new Error("Assert failed: expected headerNames and headerValues arrays");const a=new Headers;for(let e=0;e{const t=await fetch(e,c);return t.__abort_controller=s,t}))}function Ms(e){if(!e.__headerNames){e.__headerNames=[],e.__headerValues=[];const t=e.headers.entries();for(const r of t)e.__headerNames.push(r[0]),e.__headerValues.push(r[1])}}function Rs(e){return Ms(e),e.__headerNames}function Ts(e){return Ms(e),e.__headerValues}function Is(e){return Ue((async()=>{const t=await e.arrayBuffer();return e.__buffer=t,e.__source_offset=0,t.byteLength}))}function $s(e,t){if(!e.__buffer)throw new Error("Assert failed: expected resoved arrayBuffer");if(e.__source_offset==e.__buffer.byteLength)return 0;const r=new Uint8Array(e.__buffer,e.__source_offset);t.set(r,0);const n=Math.min(t.byteLength,r.byteLength);return e.__source_offset+=n,n}function Fs(e,t,r){const n=new wr(t,r,0);return Ue((async()=>{if(e.__reader||(e.__reader=e.body.getReader()),e.__chunk||(e.__chunk=await e.__reader.read(),e.__source_offset=0),e.__chunk.done)return 0;const t=e.__chunk.value.byteLength-e.__source_offset;if(!(t>0))throw new Error("Assert failed: expected remaining_source to be greater than 0");const r=Math.min(t,n.byteLength),o=e.__chunk.value.subarray(e.__source_offset,e.__source_offset+r);return n.set(o,0),e.__source_offset+=r,t==r&&(e.__chunk=void 0),r}))}let Ps,Cs=0,Us=!1,Bs=0;if(globalThis.navigator){const e=globalThis.navigator;e.userAgentData&&e.userAgentData.brands?Us=e.userAgentData.brands.some((e=>"Chromium"==e.brand)):e.userAgent&&(Us=e.userAgent.includes("Chrome"))}function zs(){for(;Bs>0;)--Bs,g.mono_background_exec()}function Ws(){if(!Us)return;const e=(new Date).valueOf(),t=e+36e4;for(let r=Math.max(e+1e3,Cs);r{g.mono_set_timeout_exec(),Bs++,zs()}),r-e)}Cs=t}function Ls(){++Bs,setTimeout(zs,0)}function Hs(e){Ps&&(clearTimeout(Ps),Ps=void 0),Ps=setTimeout((function(){g.mono_set_timeout_exec()}),e)}class Vs{constructor(){this.queue=[],this.offset=0}getLength(){return this.queue.length-this.offset}isEmpty(){return 0==this.queue.length}enqueue(e){this.queue.push(e)}dequeue(){if(0===this.queue.length)return;const e=this.queue[this.offset];return this.queue[this.offset]=null,2*++this.offset>=this.queue.length&&(this.queue=this.queue.slice(this.offset),this.offset=0),e}peek(){return this.queue.length>0?this.queue[this.offset]:void 0}drain(e){for(;this.getLength();){e(this.dequeue())}}}const qs=Symbol.for("wasm ws_pending_send_buffer"),Js=Symbol.for("wasm ws_pending_send_buffer_offset"),Gs=Symbol.for("wasm ws_pending_send_buffer_type"),Ys=Symbol.for("wasm ws_pending_receive_event_queue"),Xs=Symbol.for("wasm ws_pending_receive_promise_queue"),Zs=Symbol.for("wasm ws_pending_open_promise"),Ks=Symbol.for("wasm ws_pending_close_promises"),Qs=Symbol.for("wasm ws_pending_send_promises"),ei=Symbol.for("wasm ws_is_aborted"),ti=Symbol.for("wasm ws_receive_status_ptr");let ri,ni,oi=!1;const si=new Uint8Array;function ii(e,t,r,n){if(!e||"string"!=typeof e)throw new Error("Assert failed: ERR12: Invalid uri "+typeof e);const o=new globalThis.WebSocket(e,t||void 0),{promise_control:s}=Ie();o[Ys]=new Vs,o[Xs]=new Vs,o[Zs]=s,o[Qs]=[],o[Ks]=[],o[ti]=r,o.binaryType="arraybuffer";const i=e=>{o[ei]||(function(e,t){const r=e[Ys],n=e[Xs];if("string"==typeof t.data)void 0===ni&&(ni=new TextEncoder),r.enqueue({type:0,data:ni.encode(t.data),offset:0});else{if("ArrayBuffer"!==t.data.constructor.name)throw new Error("ERR19: WebSocket receive expected ArrayBuffer");r.enqueue({type:1,data:new Uint8Array(t.data),offset:0})}if(n.getLength()&&r.getLength()>1)throw new Error("ERR21: Invalid WS state");for(;n.getLength()&&r.getLength();){const t=n.dequeue();fi(e,r,t.buffer_ptr,t.buffer_length),t.resolve()}Ws()}(o,e),Ws())};return o.addEventListener("message",i),o.addEventListener("open",(()=>{o[ei]||(s.resolve(o),Ws())}),{once:!0}),o.addEventListener("close",(e=>{if(o.removeEventListener("message",i),o[ei])return;n&&n(e.code,e.reason),s.reject(e.reason);for(const e of o[Ks])e.resolve();o[Xs].drain((e=>{nt(r,0),nt(r+4,2),nt(r+8,1),e.resolve()}))}),{once:!0}),o.addEventListener("error",(e=>{s.reject(e.message||"WebSocket error")}),{once:!0}),o}function ai(e){if(!e)throw new Error("Assert failed: ERR17: expected ws instance");return e[Zs].promise}function ci(e,r,n,o,s){if(!e)throw new Error("Assert failed: ERR17: expected ws instance");const i=function(e,t,r,n){let o=e[qs],s=0;const i=t.byteLength;if(o){if(s=e[Js],r=e[Gs],0!==i){if(s+i>o.length){const r=new Uint8Array(1.5*(s+i+50));r.set(o,0),r.subarray(s).set(t),e[qs]=o=r}else o.subarray(s).set(t);s+=i,e[Js]=s}}else n?0!==i&&(o=t,s=i):(0!==i&&(o=t.slice(),s=i,e[Js]=s,e[qs]=o),e[Gs]=r);if(n){if(0==s||null==o)return si;if(0===r){void 0===ri&&(ri=new TextDecoder("utf-8",{fatal:!1}));const e="undefined"!=typeof SharedArrayBuffer&&o instanceof SharedArrayBuffer?o.slice(0,s):o.subarray(0,s);return ri.decode(e)}return o.subarray(0,s)}return null}(e,new Uint8Array(t.HEAPU8.buffer,r,n),o,s);return s&&i?function(e,t){if(e.send(t),e[qs]=null,e.bufferedAmount<65536)return null;const{promise:r,promise_control:n}=Ie(),o=e[Qs];o.push(n);let s=1;const i=()=>{if(0===e.bufferedAmount)n.resolve();else if(e.readyState!=WebSocket.OPEN)n.reject("InvalidState: The WebSocket is not connected.");else if(!n.isDone)return globalThis.setTimeout(i,s),void(s=Math.min(1.5*s,1e3));const t=o.indexOf(n);t>-1&&o.splice(t,1)};return globalThis.setTimeout(i,0),r}(e,i):null}function ui(e,t,r){if(!e)throw new Error("Assert failed: ERR18: expected ws instance");const n=e[Ys],o=e[Xs],s=e.readyState;if(s!=WebSocket.OPEN&&s!=WebSocket.CLOSING)throw new Error("InvalidState: The WebSocket is not connected.");if(n.getLength()){if(0!=o.getLength())throw new Error("Assert failed: ERR20: Invalid WS state");return fi(e,n,t,r),null}const{promise:i,promise_control:a}=Ie(),c=a;return c.buffer_ptr=t,c.buffer_length=r,o.enqueue(c),i}function li(e,t,r,n){if(!e)throw new Error("Assert failed: ERR19: expected ws instance");if(e.readyState==WebSocket.CLOSED)return null;if(n){const{promise:n,promise_control:o}=Ie();return e[Ks].push(o),"string"==typeof r?e.close(t,r):e.close(t),n}return oi||(oi=!0,console.warn("WARNING: Web browsers do not support closing the output side of a WebSocket. CloseOutputAsync has closed the socket and discarded any incoming messages.")),"string"==typeof r?e.close(t,r):e.close(t),null}function _i(e){if(!e)throw new Error("Assert failed: ERR18: expected ws instance");e[ei]=!0;const t=e[Zs];t&&t.reject("OperationCanceledException");for(const t of e[Ks])t.reject("OperationCanceledException");for(const t of e[Qs])t.reject("OperationCanceledException");e[Xs].drain((e=>{e.reject("OperationCanceledException")})),e.close(1e3,"Connection was aborted.")}function fi(e,r,n,o){const s=r.peek(),i=Math.min(o,s.data.length-s.offset);if(i>0){const e=s.data.subarray(s.offset,s.offset+i);new Uint8Array(t.HEAPU8.buffer,n,o).set(e,0),s.offset+=i}const a=s.data.length===s.offset?1:0;a&&r.dequeue();const c=e[ti];nt(c,i),nt(c+4,s.type),nt(c+8,a)}function di(){return{mono_wasm_exit:e=>{t.printErr("MONO_WASM: early exit "+e)},mono_wasm_enable_on_demand_gc:g.mono_wasm_enable_on_demand_gc,mono_profiler_init_aot:g.mono_profiler_init_aot,mono_wasm_exec_regression:g.mono_wasm_exec_regression,mono_method_resolve:ys,mono_intern_string:jr,logging:void 0,mono_wasm_stringify_as_error_with_stack:ie,mono_wasm_get_loaded_files:no,mono_wasm_send_dbg_command_with_parms:R,mono_wasm_send_dbg_command:T,mono_wasm_get_dbg_command_info:I,mono_wasm_get_details:W,mono_wasm_release_object:H,mono_wasm_call_function_on:z,mono_wasm_debugger_resume:$,mono_wasm_detach_debugger:F,mono_wasm_raise_debug_event:C,mono_wasm_change_debugger_log_level:P,mono_wasm_debugger_attached:U,mono_wasm_runtime_is_ready:m.mono_wasm_runtime_is_ready,get_property:wo,set_property:ho,has_property:go,get_typeof_property:yo,get_global_this:bo,get_dotnet_instance:()=>u,dynamic_import:Ao,mono_wasm_cancel_promise:Be,ws_wasm_create:ii,ws_wasm_open:ai,ws_wasm_send:ci,ws_wasm_receive:ui,ws_wasm_close:li,ws_wasm_abort:_i,http_wasm_supports_streaming_response:Ss,http_wasm_create_abort_controler:Os,http_wasm_abort_request:xs,http_wasm_abort_response:Ns,http_wasm_fetch:Ds,http_wasm_fetch_bytes:js,http_wasm_get_response_header_names:Rs,http_wasm_get_response_header_values:Ts,http_wasm_get_response_bytes:$s,http_wasm_get_response_length:Is,http_wasm_get_streamed_response_bytes:Fs}}function mi(){}let pi,hi=!1,wi=!1;const gi=Ie(),yi=Ie(),bi=Ie(),vi=Ie(),Ei=Ie(),Ai=Ie(),ki=Ie(),Si=Ie(),Oi=Ie();function xi(e,t){const r=e.instantiateWasm,n=e.preInit?"function"==typeof e.preInit?[e.preInit]:e.preInit:[],o=e.preRun?"function"==typeof e.preRun?[e.preRun]:e.preRun:[],s=e.postRun?"function"==typeof e.postRun?[e.postRun]:e.postRun:[],i=e.onRuntimeInitialized?e.onRuntimeInitialized:()=>{};wi=!(e.configSrc||e.config&&e.config.assets&&-1!=e.config.assets.findIndex((e=>"assembly"===e.behavior))),e.instantiateWasm=(e,t)=>Ni(e,t,r),e.preInit=[()=>ji(n)],e.preRun=[()=>Di(o)],e.onRuntimeInitialized=()=>async function(e){await Ai.promise,m.diagnosticTracing&&console.debug("MONO_WASM: onRuntimeInitialized"),ki.promise_control.resolve();try{wi||(await ro(),await async function(){m.diagnosticTracing&&console.debug("MONO_WASM: mono_wasm_before_user_runtime_initialized");try{await async function(){try{Ii("TZ",Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC")}catch(e){Ii("TZ","UTC")}for(const e in pi.environmentVariables){const t=pi.environmentVariables[e];if("string"!=typeof t)throw new Error(`Expected environment variable '${e}' to be a string but it was ${typeof t}: '${t}'`);Ii(e,t)}pi.runtimeOptions&&$i(pi.runtimeOptions),pi.aotProfilerOptions&&X(pi.aotProfilerOptions),pi.coverageProfilerOptions&&Z(pi.coverageProfilerOptions)}(),Y(),m.mono_wasm_load_runtime_done||Fi("unused",pi.debugLevel),m.mono_wasm_runtime_is_ready||N(),m.mono_wasm_symbols_are_ready||ue("dotnet.js.symbols"),setTimeout((()=>{Sr.init_fields()}))}catch(e){throw Ti("MONO_WASM: Error in mono_wasm_before_user_runtime_initialized",e),e}}()),pi.runtimeOptions&&$i(pi.runtimeOptions);try{e()}catch(e){throw Ti("MONO_WASM: user callback onRuntimeInitialized() failed",e),e}await Ri()}catch(e){throw Ti("MONO_WASM: onRuntimeInitializedAsync() failed",e),Mi(e,!0),e}Si.promise_control.resolve()}(i),e.postRun=[()=>async function(e){await Si.promise,m.diagnosticTracing&&console.debug("MONO_WASM: postRunAsync");try{e.map((e=>e()))}catch(e){throw Ti("MONO_WASM: user callback posRun() failed",e),Mi(e,!0),e}Oi.promise_control.resolve()}(s)],e.ready.then((async()=>{await Oi.promise,gi.promise_control.resolve(t)})).catch((e=>{gi.promise_control.reject(e)})),e.ready=gi.promise,e.onAbort||(e.onAbort=()=>de)}function Ni(e,r,n){if(t.configSrc||t.config||n||t.print("MONO_WASM: configSrc nor config was specified"),pi=t.config?m.config=t.config:m.config=t.config={},m.diagnosticTracing=!!pi.diagnosticTracing,n){return n(e,((e,t)=>{bi.promise_control.resolve(),r(e,t)}))}return async function(e,r){try{await Pi(t.configSrc),m.diagnosticTracing&&console.debug("MONO_WASM: instantiate_wasm_module");const n=function(e){var t;const r=null===(t=m.config.assets)||void 0===t?void 0:t.find((t=>t.behavior==e));if(!r)throw new Error(`Assert failed: Can't find asset for ${e}`);return r.resolvedUrl||(r.resolvedUrl=Kn(r,"")),r}("dotnetwasm");await Xn(n,!1),await vi.promise,t.addRunDependency("instantiate_wasm_module"),async function(e,t,r){if(!(e&&e.pendingDownloadInternal&&e.pendingDownloadInternal.response))throw new Error("Assert failed: Can't load dotnet.wasm");const n=await e.pendingDownloadInternal.response,o=n.headers&&n.headers.get?n.headers.get("Content-Type"):void 0;let s,a;if("function"==typeof WebAssembly.instantiateStreaming&&"application/wasm"===o){m.diagnosticTracing&&console.debug("MONO_WASM: instantiate_wasm_module streaming");const e=await WebAssembly.instantiateStreaming(n,t);s=e.instance,a=e.module}else{i&&"application/wasm"!==o&&console.warn('MONO_WASM: WebAssembly resource does not have the expected content type "application/wasm", so falling back to slower ArrayBuffer instantiation.');const e=await n.arrayBuffer();m.diagnosticTracing&&console.debug("MONO_WASM: instantiate_wasm_module buffered");const r=await WebAssembly.instantiate(e,t);s=r.instance,a=r.module}r(s,a)}(n,e,r),m.diagnosticTracing&&console.debug("MONO_WASM: instantiate_wasm_module done"),bi.promise_control.resolve()}catch(e){throw Ti("MONO_WASM: instantiate_wasm_module() failed",e),Mi(e,!0),e}t.removeRunDependency("instantiate_wasm_module")}(e,r),[]}function ji(e){t.addRunDependency("mono_pre_init");try{t.addRunDependency("mono_wasm_pre_init_essential"),m.diagnosticTracing&&console.debug("MONO_WASM: mono_wasm_pre_init_essential"),function(){const e=!!c;for(const r of w){const n=g,[o,s,i,a,c]=r;if(o||e)n[s]=function(...e){const r=t.cwrap(s,i,a,c);return n[s]=r,r(...e)};else{const e=t.cwrap(s,i,a,c);n[s]=e}}}(),function(e){Object.assign(e,{mono_wasm_exit:g.mono_wasm_exit,mono_wasm_enable_on_demand_gc:g.mono_wasm_enable_on_demand_gc,mono_profiler_init_aot:g.mono_profiler_init_aot,mono_wasm_exec_regression:g.mono_wasm_exec_regression})}(r),function(e){Object.assign(e,{mono_wasm_add_assembly:g.mono_wasm_add_assembly})}(Rn),function(e){Object.assign(e,{mono_obj_array_new:g.mono_wasm_obj_array_new,mono_obj_array_set:g.mono_wasm_obj_array_set,mono_obj_array_new_ref:g.mono_wasm_obj_array_new_ref,mono_obj_array_set_ref:g.mono_wasm_obj_array_set_ref})}(Tn),t.removeRunDependency("mono_wasm_pre_init_essential"),m.diagnosticTracing&&console.debug("MONO_WASM: preInit"),vi.promise_control.resolve(),e.forEach((e=>e()))}catch(e){throw Ti("MONO_WASM: user preInint() failed",e),Mi(e,!0),e}(async()=>{try{await async function(){m.diagnosticTracing&&console.debug("MONO_WASM: mono_wasm_pre_init_essential_async"),t.addRunDependency("mono_wasm_pre_init_essential_async"),await async function(){if(o){if(r.require=await m.requirePromise,globalThis.performance===ao){const{performance:e}=r.require("perf_hooks");globalThis.performance=e}if(globalThis.crypto||(globalThis.crypto={}),!globalThis.crypto.getRandomValues){let e;try{e=r.require("node:crypto")}catch(e){}e?e.webcrypto?globalThis.crypto=e.webcrypto:e.randomBytes&&(globalThis.crypto.getRandomValues=t=>{t&&t.set(e.randomBytes(t.length))}):globalThis.crypto.getRandomValues=()=>{throw new Error("Using node without crypto support. To enable current operation, either provide polyfill for 'globalThis.crypto.getRandomValues' or enable 'node:crypto' module.")}}}}(),await Pi(t.configSrc),t.removeRunDependency("mono_wasm_pre_init_essential_async")}(),wi||await async function(){m.diagnosticTracing&&console.debug("MONO_WASM: mono_wasm_pre_init_full"),t.addRunDependency("mono_wasm_pre_init_full"),await Yn(),t.removeRunDependency("mono_wasm_pre_init_full")}()}catch(e){throw Mi(e,!0),e}Ei.promise_control.resolve(),t.removeRunDependency("mono_pre_init")})()}async function Di(e){t.addRunDependency("mono_pre_run_async"),await bi.promise,await Ei.promise,m.diagnosticTracing&&console.debug("MONO_WASM: preRunAsync");try{e.map((e=>e()))}catch(e){throw Ti("MONO_WASM: user callback preRun() failed",e),Mi(e,!0),e}Ai.promise_control.resolve(),t.removeRunDependency("mono_pre_run_async")}function Mi(e,t){m.diagnosticTracing&&console.trace("MONO_WASM: abort_startup"),gi.promise_control.reject(e),bi.promise_control.reject(e),vi.promise_control.reject(e),Ei.promise_control.reject(e),Ai.promise_control.reject(e),ki.promise_control.reject(e),Si.promise_control.reject(e),Oi.promise_control.reject(e),t&&me(1,e)}async function Ri(){m.diagnosticTracing&&console.debug("MONO_WASM: mono_wasm_after_user_runtime_initialized");try{if(!t.disableDotnet6Compatibility&&t.exports){const e=globalThis;for(let r=0;r{const n=e.stackSave();try{const s=Lt(4),i=Ht(s,1),a=Ht(s,2),c=Ht(s,3);return Hr(a,t),r&&0==r.length&&(r=void 0),nn(c,r,yr.String),xo(o,s),En(i,0,dn)||Promise.resolve(0)}finally{e.stackRestore(n)}},m.javaScriptExports.release_js_owned_object_by_gc_handle=t=>{if(!t)throw new Error("Assert failed: Must be valid gc_handle");const r=e.stackSave();try{const n=Lt(3),o=Ht(n,2);er(o,yr.Object),ur(o,t),xo(s,n)}finally{e.stackRestore(r)}},m.javaScriptExports.create_task_callback=()=>{const t=e.stackSave();try{const r=Lt(2);return xo(i,r),cr(Ht(r,1))}finally{e.stackRestore(t)}},m.javaScriptExports.complete_task=(t,r,n,o)=>{const s=e.stackSave();try{const i=Lt(5),c=Ht(i,2);er(c,yr.Object),ur(c,t);const u=Ht(i,3);if(r)Qr(u,r);else{er(u,yr.None);const e=Ht(i,4);if(!o)throw new Error("Assert failed: res_converter missing");o(e,n)}xo(a,i)}finally{e.stackRestore(s)}},m.javaScriptExports.call_delegate=(t,r,n,o,s,i,a,c)=>{const l=e.stackSave();try{const _=Lt(6),f=Ht(_,2);if(er(f,yr.Object),ur(f,t),i&&i(Ht(_,3),r),a&&a(Ht(_,4),n),c&&c(Ht(_,5),o),xo(u,_),s)return s(Ht(_,1))}finally{e.stackRestore(l)}},m.javaScriptExports.get_managed_stack_trace=t=>{const r=e.stackSave();try{const n=Lt(3),o=Ht(n,2);return er(o,yr.Exception),ur(o,t),xo(l,n),kn(Ht(n,1))}finally{e.stackRestore(r)}},n&&(m.javaScriptExports.install_synchronization_context=()=>{const t=e.stackSave();try{const r=Lt(2);xo(n,r)}finally{e.stackRestore(t)}},c||m.javaScriptExports.install_synchronization_context())})(),ks(),0==Ct.size&&(Ct.set(yr.Array,Nn),Ct.set(yr.Span,Dn),Ct.set(yr.ArraySegment,Mn),Ct.set(yr.Boolean,un),Ct.set(yr.Byte,ln),Ct.set(yr.Char,_n),Ct.set(yr.Int16,fn),Ct.set(yr.Int32,dn),Ct.set(yr.Int52,mn),Ct.set(yr.BigInt64,pn),Ct.set(yr.Single,hn),Ct.set(yr.IntPtr,gn),Ct.set(yr.Double,wn),Ct.set(yr.String,kn),Ct.set(yr.Exception,Sn),Ct.set(yr.JSException,Sn),Ct.set(yr.JSObject,On),Ct.set(yr.Object,xn),Ct.set(yr.DateTime,bn),Ct.set(yr.DateTimeOffset,bn),Ct.set(yr.Task,En),Ct.set(yr.Action,vn),Ct.set(yr.Function,vn),Ct.set(yr.None,yn),Ct.set(yr.Void,yn),Ct.set(yr.Discard,yn)),0==Ut.size&&(Ut.set(yr.Array,rn),Ut.set(yr.Span,on),Ut.set(yr.ArraySegment,sn),Ut.set(yr.Boolean,$r),Ut.set(yr.Byte,Fr),Ut.set(yr.Char,Pr),Ut.set(yr.Int16,Cr),Ut.set(yr.Int32,Ur),Ut.set(yr.Int52,Br),Ut.set(yr.BigInt64,zr),Ut.set(yr.Double,Wr),Ut.set(yr.Single,Lr),Ut.set(yr.IntPtr,Hr),Ut.set(yr.DateTime,Vr),Ut.set(yr.DateTimeOffset,qr),Ut.set(yr.String,Jr),Ut.set(yr.Exception,Qr),Ut.set(yr.JSException,Qr),Ut.set(yr.JSObject,en),Ut.set(yr.Object,tn),Ut.set(yr.Task,Kr),Ut.set(yr.Action,Xr),Ut.set(yr.Function,Xr),Ut.set(yr.None,Yr),Ut.set(yr.Discard,Yr),Ut.set(yr.Void,Yr)),m._i52_error_scratch_buffer=t._malloc(4)}catch(e){throw Ti("MONO_WASM: Error in bindings_init",e),e}}}()}catch(e){if(Ti("MONO_WASM: mono_wasm_load_runtime () failed",e),Mi(e,!1),s||o){(0,g.mono_wasm_exit)(1)}throw e}}}async function Pi(e){if(hi)await yi.promise;else{if(hi=!0,!e)return r(),void yi.promise_control.resolve();m.diagnosticTracing&&console.debug("MONO_WASM: mono_wasm_load_config");try{const n=m.locateFile(e),o=await m.fetch_like(n),s=await o.json()||{};if(s.environmentVariables&&"object"!=typeof s.environmentVariables)throw new Error("Expected config.environmentVariables to be unset or a dictionary-style object");if(s.assets=[...s.assets||[],...pi.assets||[]],s.environmentVariables={...s.environmentVariables||{},...pi.environmentVariables||{}},pi=m.config=t.config=Object.assign(t.config,s),r(),t.onConfigLoaded)try{await t.onConfigLoaded(m.config),r()}catch(e){throw Ti("MONO_WASM: onConfigLoaded() failed",e),e}yi.promise_control.resolve()}catch(r){const n=`Failed to load config file ${e} ${r}`;throw Mi(n,!0),pi=m.config=t.config={message:n,error:r,isError:!0},r}}function r(){pi.environmentVariables=pi.environmentVariables||{},pi.assets=pi.assets||[],pi.runtimeOptions=pi.runtimeOptions||[],pi.globalizationMode=pi.globalizationMode||"auto",pi.debugLevel,pi.diagnosticTracing,m.diagnosticTracing=!!m.config.diagnosticTracing}}function Ci(e,r,n,o,s){if(!0!==m.mono_wasm_runtime_is_ready)return;const i=0!==e?t.UTF8ToString(e).concat(".dll"):"",a=y(new Uint8Array(t.HEAPU8.buffer,r,n));let c;if(o){c=y(new Uint8Array(t.HEAPU8.buffer,o,s))}C({eventName:"AssemblyLoaded",assembly_name:i,assembly_b64:a,pdb_b64:c})}async function Ui(e){pi=t.config=m.config=Object.assign(m.config||{},e||{}),await Yn(),wi||await ro()}var Bi,zi;(function(e){e[e.Sending=0]="Sending",e[e.Closed=1]="Closed",e[e.Error=2]="Error"})(Bi||(Bi={})),function(e){e[e.Idle=0]="Idle",e[e.PartialCommand=1]="PartialCommand",e[e.Error=2]="Error"}(zi||(zi={}));const Wi=new class{constructor(){this.moduleConfig={disableDotnet6Compatibility:!0,configSrc:"./mono-config.json",config:m.config}}withModuleConfig(e){try{return Object.assign(this.moduleConfig,e),this}catch(e){throw me(1,e),e}}withConsoleForwarding(){try{const e={forwardConsoleLogsToWS:!0};return Object.assign(this.moduleConfig.config,e),this}catch(e){throw me(1,e),e}}withAsyncFlushOnExit(){try{const e={asyncFlushOnExit:!0};return Object.assign(this.moduleConfig.config,e),this}catch(e){throw me(1,e),e}}withExitCodeLogging(){try{const e={logExitCode:!0};return Object.assign(this.moduleConfig.config,e),this}catch(e){throw me(1,e),e}}withElementOnExit(){try{const e={appendElementOnExit:!0};return Object.assign(this.moduleConfig.config,e),this}catch(e){throw me(1,e),e}}withWaitingForDebugger(e){try{const t={waitForDebugger:e};return Object.assign(this.moduleConfig.config,t),this}catch(e){throw me(1,e),e}}withConfig(e){try{const t={...e};return t.assets=[...this.moduleConfig.config.assets||[],...t.assets||[]],t.environmentVariables={...this.moduleConfig.config.environmentVariables||{},...t.environmentVariables||{}},Object.assign(this.moduleConfig.config,t),this}catch(e){throw me(1,e),e}}withConfigSrc(e){try{if(!e||"string"!=typeof e)throw new Error("Assert failed: must be file path or URL");return Object.assign(this.moduleConfig,{configSrc:e}),this}catch(e){throw me(1,e),e}}withVirtualWorkingDirectory(e){try{if(!e||"string"!=typeof e)throw new Error("Assert failed: must be directory path");return this.virtualWorkingDirectory=e,this}catch(e){throw me(1,e),e}}withEnvironmentVariable(e,t){try{return this.moduleConfig.config.environmentVariables[e]=t,this}catch(e){throw me(1,e),e}}withEnvironmentVariables(e){try{if(!e||"object"!=typeof e)throw new Error("Assert failed: must be dictionary object");return Object.assign(this.moduleConfig.config.environmentVariables,e),this}catch(e){throw me(1,e),e}}withDiagnosticTracing(e){try{if("boolean"!=typeof e)throw new Error("Assert failed: must be boolean");return this.moduleConfig.config.diagnosticTracing=e,this}catch(e){throw me(1,e),e}}withDebugging(e){try{if(!e||"number"!=typeof e)throw new Error("Assert failed: must be number");return this.moduleConfig.config.debugLevel=e,this}catch(e){throw me(1,e),e}}withApplicationArguments(...e){try{if(!e||!Array.isArray(e))throw new Error("Assert failed: must be array of strings");return this.applicationArguments=e,this}catch(e){throw me(1,e),e}}withRuntimeOptions(e){try{if(!e||!Array.isArray(e))throw new Error("Assert failed: must be array of strings");return Object.assign(this.moduleConfig,{runtimeOptions:e}),this}catch(e){throw me(1,e),e}}withMainAssembly(e){try{return this.moduleConfig.config.mainAssemblyName=e,this}catch(e){throw me(1,e),e}}withApplicationArgumentsFromQuery(){try{if(void 0!==globalThis.URLSearchParams){const e=new URLSearchParams(window.location.search).getAll("arg");return this.withApplicationArguments(...e)}throw new Error("URLSearchParams is supported")}catch(e){throw me(1,e),e}}async create(){try{if(!this.instance){if(i&&!c&&this.moduleConfig.config.forwardConsoleLogsToWS&&void 0!==globalThis.WebSocket&&function(e,t,r){const n={log:t.log,error:t.error},o=t;function s(t,r,o){return function(...s){try{let n=s[0];if(void 0===n)n="undefined";else if(null===n)n="null";else if("function"==typeof n)n=n.toString();else if("string"!=typeof n)try{n=JSON.stringify(n)}catch(e){n=n.toString()}"string"==typeof n&&"main"!==e&&(n=`[${e}] ${n}`),r(o?JSON.stringify({method:t,payload:n,arguments:s}):[t+n,...s.slice(1)])}catch(e){n.error(`proxyConsole failed: ${e}`)}}}const i=["debug","trace","warn","info","error"];for(const e of i)"function"!=typeof o[e]&&(o[e]=s(`console.${e}: `,t.log,!1));const a=`${r}/console`.replace("https://","wss://").replace("http://","ws://");ce=new WebSocket(a),ce.addEventListener("open",(()=>{n.log(`browser: [${e}] Console websocket connected.`)})),ce.addEventListener("error",(t=>{n.error(`[${e}] websocket error: ${t}`,t)})),ce.addEventListener("close",(t=>{n.error(`[${e}] websocket closed: ${t}`,t)}));const c=e=>{ce.readyState===WebSocket.OPEN?ce.send(e):n.log(e)};for(const e of["log",...i])o[e]=s(`console.${e}`,c,!0)}("main",globalThis.console,globalThis.location.origin),o){const e=await import("process");if(e.versions.node.split(".")[0]<14)throw new Error(`NodeJS at '${e.execPath}' has too low version '${e.versions.node}'`)}if(!this.moduleConfig)throw new Error("Assert failed: Null moduleConfig");if(!this.moduleConfig.config)throw new Error("Assert failed: Null moduleConfig.config");this.instance=await _(this.moduleConfig)}if(this.virtualWorkingDirectory){const e=this.instance.Module.FS,t=e.stat(this.virtualWorkingDirectory);if(!t||!e.isDir(t.mode))throw new Error(`Assert failed: Could not find working directory ${this.virtualWorkingDirectory}`);e.chdir(this.virtualWorkingDirectory)}return this.instance}catch(e){throw me(1,e),e}}async run(){try{if(!this.moduleConfig.config)throw new Error("Assert failed: Null moduleConfig.config");if(this.instance||await this.create(),!this.moduleConfig.config.mainAssemblyName)throw new Error("Assert failed: Null moduleConfig.config.mainAssemblyName");if(!this.applicationArguments)if(o){const e=await import("process");this.applicationArguments=e.argv.slice(2)}else this.applicationArguments=[];return this.instance.runMainAndExit(this.moduleConfig.config.mainAssemblyName,this.applicationArguments)}catch(e){throw me(1,e),e}}};const Li=function(t,r,n,o){const s=r.module,i=globalThis;f(t,r),function(e){Rn=e.mono,Tn=e.binding}(r),io(n),Object.assign(r.mono,{mono_wasm_setenv:Ii,mono_wasm_load_bytes_into_heap:kt,mono_wasm_load_icu_data:J,mono_wasm_runtime_ready:N,mono_wasm_load_data_archive:to,mono_wasm_load_config:Pi,mono_load_runtime_and_bcl_args:Ui,mono_wasm_new_root_buffer:Mt,mono_wasm_new_root:Tt,mono_wasm_new_external_root:Rt,mono_wasm_release_roots:It,mono_run_main:_e,mono_run_main_and_exit:le,mono_wasm_add_assembly:null,mono_wasm_load_runtime:Fi,config:m.config,loaded_files:[],setB32:Ye,setI8:et,setI16:tt,setI32:nt,setI52:st,setU52:it,setI64Big:at,setU8:Xe,setU16:Ze,setU32:Qe,setF32:ct,setF64:ut,getB32:lt,getI8:mt,getI16:pt,getI32:ht,getI52:wt,getU52:gt,getI64Big:yt,getU8:_t,getU16:ft,getU32:dt,getF32:bt,getF64:vt}),Object.assign(r.binding,{bind_static_method:ts,call_assembly_entry_point:ns,mono_obj_array_new:null,mono_obj_array_set:null,js_string_to_mono_string:Tr,js_typed_array_to_array:Bo,mono_array_to_js_array:Go,js_to_mono_obj:Fo,conv_string:xr,unbox_mono_obj:Ho,mono_obj_array_new_ref:null,mono_obj_array_set_ref:null,js_string_to_mono_string_root:Mr,js_typed_array_to_array_root:Uo,js_to_mono_obj_root:Po,conv_string_root:Nr,unbox_mono_obj_root:Jo,mono_array_root_to_js_array:Xo}),Object.assign(r.internal,di()),Object.assign(r.internal,di());const a={runMain:_e,runMainAndExit:le,setEnvironmentVariable:Ii,getAssemblyExports:jo,setModuleImports:mo,getConfig:()=>m.config,setHeapB32:Ye,setHeapU8:Xe,setHeapU16:Ze,setHeapU32:Qe,setHeapI8:et,setHeapI16:tt,setHeapI32:nt,setHeapI52:st,setHeapU52:it,setHeapI64Big:at,setHeapF32:ct,setHeapF64:ut,getHeapB32:lt,getHeapU8:_t,getHeapU16:ft,getHeapU32:dt,getHeapI8:mt,getHeapI16:pt,getHeapI32:ht,getHeapI52:wt,getHeapU52:gt,getHeapI64Big:yt,getHeapF32:bt,getHeapF64:vt};if(e.__linker_exports={mono_set_timeout:Hs,mono_wasm_asm_loaded:Ci,mono_wasm_fire_debugger_agent_message:j,mono_wasm_debugger_log:V,mono_wasm_add_dbg_command_received:D,schedule_background_exec:Ls,mono_wasm_invoke_js_blazor:ls,mono_wasm_trace_logger:ae,mono_wasm_set_entrypoint_breakpoint:B,mono_wasm_event_pipe_early_startup_callback:mi,mono_wasm_invoke_js_with_args_ref:os,mono_wasm_get_object_property_ref:ss,mono_wasm_set_object_property_ref:is,mono_wasm_get_by_index_ref:as,mono_wasm_set_by_index_ref:cs,mono_wasm_get_global_object_ref:us,mono_wasm_create_cs_owned_object_ref:Zo,mono_wasm_release_cs_owned_object:Ne,mono_wasm_typed_array_to_array_ref:Wo,mono_wasm_typed_array_from_ref:Ro,mono_wasm_bind_js_function:_o,mono_wasm_invoke_bound_function:fo,mono_wasm_bind_cs_function:Oo,mono_wasm_marshal_promise:An,mono_wasm_load_icu_data:J,mono_wasm_get_icudt_name:G},Object.assign(u,{MONO:r.mono,BINDING:r.binding,INTERNAL:r.internal,IMPORTS:r.marshaled_imports,Module:s,runtimeBuildInfo:{productVersion:"7.0.11",buildConfiguration:"Release"},...a}),Object.assign(o,a),r.module.__undefinedConfig&&(s.disableDotnet6Compatibility=!0,s.configSrc="./mono-config.json"),s.print||(s.print=console.log.bind(console)),s.printErr||(s.printErr=console.error.bind(console)),void 0===s.disableDotnet6Compatibility&&(s.disableDotnet6Compatibility=!0),t.isGlobal||!s.disableDotnet6Compatibility){Object.assign(s,u),s.mono_bind_static_method=(e,t)=>(console.warn("MONO_WASM: Module.mono_bind_static_method is obsolete, please use [JSExportAttribute] interop instead"),ts(e,t));const e=(e,t)=>{if(void 0!==i[e])return;let r;Object.defineProperty(globalThis,e,{get:()=>{if(h(r)){const n=(new Error).stack,o=n?n.substr(n.indexOf("\n",8)+1):"";console.warn(`MONO_WASM: global ${e} is obsolete, please use Module.${e} instead ${o}`),r=t()}return r}})};i.MONO=r.mono,i.BINDING=r.binding,i.INTERNAL=r.internal,t.isGlobal||(i.Module=s),e("cwrap",(()=>s.cwrap)),e("addRunDependency",(()=>s.addRunDependency)),e("removeRunDependency",(()=>s.removeRunDependency))}let c;return i.getDotnetRuntime?c=i.getDotnetRuntime.__list:(i.getDotnetRuntime=e=>i.getDotnetRuntime.__list.getRuntime(e),i.getDotnetRuntime.__list=c=new Vi),c.registerRuntime(u),xi(s,u),u},Hi=function(e,t){d(t),Object.assign(l,{dotnet:Wi,exit:me}),function(e){_=e}(e)};e.__linker_exports=null;class Vi{constructor(){this.list={}}registerRuntime(e){return e.runtimeId=Object.keys(this.list).length,this.list[e.runtimeId]=we(e),e.runtimeId}getRuntime(e){const t=this.list[e];return t?t.deref():void 0}}return e.__initializeImportsAndExports=Li,e.__setEmscriptenEntrypoint=Hi,e.moduleExports=l,Object.defineProperty(e,"__esModule",{value:!0}),e}({}),createDotnetRuntime=(()=>{var e=import.meta.url;return function(t){var r,n,o=void 0!==(t=t||{})?t:{};o.ready=new Promise((function(e,t){r=e,n=t}));var s=s||void 0,i=i||"",a={MONO,BINDING,INTERNAL,IMPORTS};if("function"==typeof t){a.Module=o={ready:o.ready};const e=t(a);if(e.ready)throw new Error("MONO_WASM: Module.ready couldn't be redefined.");Object.assign(o,e),(t=o).locateFile||(t.locateFile=t.__locateFile=e=>E+e)}else{if("object"!=typeof t)throw new Error("MONO_WASM: Can't use moduleFactory callback of createDotnetRuntime function.");a.Module=o={ready:o.ready,__undefinedConfig:1===Object.keys(t).length},Object.assign(o,t),(t=o).locateFile||(t.locateFile=t.__locateFile=e=>E+e)}var c,u,l,_,f,d,m=Object.assign({},o),p=[],h="./this.program",w=(e,t)=>{throw t},g="object"==typeof window,y="function"==typeof importScripts,b="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,v=!g&&!b&&!y,E="";function A(e){return o.locateFile?o.locateFile(e,E):E+e}function k(e){if(e instanceof vo)return;O("exiting due to exception: "+e)}b?(E=y?s("path").dirname(E)+"/":i+"/",d=()=>{f||(_=s("fs"),f=s("path"))},c=function(e,t){return d(),e=f.normalize(e),_.readFileSync(e,t?void 0:"utf8")},l=e=>{var t=c(e,!0);return t.buffer||(t=new Uint8Array(t)),t},u=(e,t,r)=>{d(),e=f.normalize(e),_.readFile(e,(function(e,n){e?r(e):t(n.buffer)}))},process.argv.length>1&&(h=process.argv[1].replace(/\\/g,"/")),p=process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof vo))throw e})),process.on("unhandledRejection",(function(e){throw e})),w=(e,t)=>{if(ae())throw process.exitCode=e,t;k(t),process.exit(e)},o.inspect=function(){return"[Emscripten Module object]"}):v?("undefined"!=typeof read&&(c=function(e){return read(e)}),l=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),I("object"==typeof t),t)},u=function(e,t,r){setTimeout((()=>t(l(e))),0)},"undefined"!=typeof scriptArgs?p=scriptArgs:void 0!==arguments&&(p=arguments),"function"==typeof quit&&(w=(e,t)=>{k(t),quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(g||y)&&(y?E=self.location.href:"undefined"!=typeof document&&document.currentScript&&(E=document.currentScript.src),e&&(E=e),E=0!==E.indexOf("blob:")?E.substr(0,E.replace(/[?#].*/,"").lastIndexOf("/")+1):"",c=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},y&&(l=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),u=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)});var S=o.print||console.log.bind(console),O=o.printErr||console.warn.bind(console);Object.assign(o,m),m=null,o.arguments&&(p=o.arguments),o.thisProgram&&(h=o.thisProgram),o.quit&&(w=o.quit);var x,N=0,j=e=>{N=e},D=()=>N;o.wasmBinary&&(x=o.wasmBinary);var M,R=o.noExitRuntime||!0;"object"!=typeof WebAssembly&&ye("no native wasm support detected");var T=!1;function I(e,t){e||ye(t)}function $(e){return o["_"+e]}function F(e,t,r,n,o){var s={string:function(e){var t=0;if(null!=e&&0!==e){var r=1+(e.length<<2);Z(e,t=Nn(r),r)}return t},array:function(e){var t=Nn(e.length);return ee(e,t),t}};var i=$(e),a=[],c=0;if(n)for(var u=0;u=n);)++o;if(o-t>16&&e.buffer&&J)return J.decode(e.subarray(t,o));for(var s="";t>10,56320|1023&u)}}else s+=String.fromCharCode((31&i)<<6|a)}else s+=String.fromCharCode(i)}return s}function Y(e,t){return e?G(B,e,t):""}function X(e,t,r,n){if(!(n>0))return 0;for(var o=r,s=r+n-1,i=0;i=55296&&a<=57343)a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i);if(a<=127){if(r>=s)break;t[r++]=a}else if(a<=2047){if(r+1>=s)break;t[r++]=192|a>>6,t[r++]=128|63&a}else if(a<=65535){if(r+2>=s)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|63&a}else{if(r+3>=s)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63,t[r++]=128|a>>6&63,t[r++]=128|63&a}}return t[r]=0,r-o}function Z(e,t,r){return X(e,B,t,r)}function K(e){for(var t=0,r=0;r=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}function Q(e){var t=K(e)+1,r=yn(t);return r&&X(e,U,r,t),r}function ee(e,t){U.set(e,t)}function te(e,t,r){for(var n=0;n>0]=e.charCodeAt(n);r||(U[t>>0]=0)}function re(e){C=e,o.HEAP8=U=new Int8Array(e),o.HEAP16=z=new Int16Array(e),o.HEAP32=L=new Int32Array(e),o.HEAPU8=B=new Uint8Array(e),o.HEAPU16=W=new Uint16Array(e),o.HEAPU32=H=new Uint32Array(e),o.HEAPF32=V=new Float32Array(e),o.HEAPF64=q=new Float64Array(e)}o.INITIAL_MEMORY;var ne,oe=[],se=[],ie=[];function ae(){return R}function ce(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)_e(o.preRun.shift());De(oe)}function ue(){!0,o.noFSInit||ct.init.initialized||ct.init(),ct.ignorePermissions=!1,tt.init(),ft.root=ct.mount(ft,{},null),De(se)}function le(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)de(o.postRun.shift());De(ie)}function _e(e){oe.unshift(e)}function fe(e){se.unshift(e)}function de(e){ie.unshift(e)}var me=0,pe=null,he=null;function we(e){me++,o.monitorRunDependencies&&o.monitorRunDependencies(me)}function ge(e){if(me--,o.monitorRunDependencies&&o.monitorRunDependencies(me),0==me&&(null!==pe&&(clearInterval(pe),pe=null),he)){var t=he;he=null,t()}}function ye(e){o.onAbort&&o.onAbort(e),O(e="Aborted("+e+")"),T=!0,1,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}var be,ve,Ee,Ae="data:application/octet-stream;base64,";function ke(e){return e.startsWith(Ae)}function Se(e){return e.startsWith("file://")}function Oe(e){try{if(e==be&&x)return new Uint8Array(x);if(l)return l(e);throw"both async and sync fetching of the wasm failed"}catch(e){ye(e)}}function xe(){if(!x&&(g||y)){if("function"==typeof pn&&!Se(be))return pn(be,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+be+"'";return e.arrayBuffer()})).catch((function(){return Oe(be)}));if(u)return new Promise((function(e,t){u(be,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return Oe(be)}))}function Ne(){var e={a:gn};function t(e,t){var r=e.exports;o.asm=r,re((M=o.asm.rb).buffer),ne=o.asm.wb,fe(o.asm.sb),ge()}function r(e){t(e.instance)}function s(t){return xe().then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){O("failed to asynchronously prepare wasm: "+e),ye(e)}))}if(we(),o.instantiateWasm)try{return o.instantiateWasm(e,t)}catch(e){return O("Module.instantiateWasm callback failed with error: "+e),!1}return(x||"function"!=typeof WebAssembly.instantiateStreaming||ke(be)||Se(be)||"function"!=typeof pn?s(r):pn(be,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return O("wasm streaming compile failed: "+e),O("falling back to ArrayBuffer instantiation"),s(r)}))}))).catch(n),{}}o.locateFile?ke(be="dotnet.wasm")||(be=A(be)):be=new URL("dotnet.wasm",import.meta.url).toString();var je={2257988:(e,t)=>{setTimeout((function(){console.error(Y(e))}),t)},2258055:e=>{setTimeout((function(){try{"undefined"==typeof window&&"undefined"==typeof document&&"undefined"!=typeof self&&void 0!==self.close?self.close():"undefined"!=typeof process&&void 0!==process.exit?process.exit(1):location.href="https://pspdfkit.com"}catch(e){location.href="https://pspdfkit.com"}}),e)}};function De(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?Te(r)():Te(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(o)}}function Me(e,t="i8"){switch(t.endsWith("*")&&(t="i32"),t){case"i1":case"i8":return U[e>>0];case"i16":return z[e>>1];case"i32":case"i64":return L[e>>2];case"float":return V[e>>2];case"double":return Number(q[e>>3]);default:ye("invalid type for getValue: "+t)}return null}var Re=[];function Te(e){var t=Re[e];return t||(e>=Re.length&&(Re.length=e+1),Re[e]=t=ne.get(e)),t}function Ie(e,t,r="i8"){switch(r.endsWith("*")&&(r="i32"),r){case"i1":case"i8":U[e>>0]=t;break;case"i16":z[e>>1]=t;break;case"i32":L[e>>2]=t;break;case"i64":Ee=[t>>>0,(ve=t,+Math.abs(ve)>=1?ve>0?(0|Math.min(+Math.floor(ve/4294967296),4294967295))>>>0:~~+Math.ceil((ve-+(~~ve>>>0))/4294967296)>>>0:0)],L[e>>2]=Ee[0],L[e+4>>2]=Ee[1];break;case"float":V[e>>2]=t;break;case"double":q[e>>3]=t;break;default:ye("invalid type for setValue: "+r)}}function $e(e,t,r,n){ye("Assertion failed: "+Y(e)+", at: "+[t?Y(t):"unknown filename",r,n?Y(n):"unknown function"])}function Fe(e){return yn(e+24)+24}var Pe=[];function Ce(e){e.add_ref()}var Ue=0;function Be(e){var t=new We(e);return t.get_caught()||(t.set_caught(!0),Ue--),t.set_rethrown(!1),Pe.push(t),Ce(t),t.get_exception_ptr()}var ze=0;function We(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){H[this.ptr+4>>2]=e},this.get_type=function(){return H[this.ptr+4>>2]},this.set_destructor=function(e){H[this.ptr+8>>2]=e},this.get_destructor=function(){return H[this.ptr+8>>2]},this.set_refcount=function(e){L[this.ptr>>2]=e},this.set_caught=function(e){e=e?1:0,U[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=U[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,U[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=U[this.ptr+13>>0]},this.init=function(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var e=L[this.ptr>>2];L[this.ptr>>2]=e+1},this.release_ref=function(){var e=L[this.ptr>>2];return L[this.ptr>>2]=e-1,1===e},this.set_adjusted_ptr=function(e){H[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return H[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Dn(this.get_type()))return H[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}function Le(e){return bn(new We(e).ptr)}function He(e){if(e.release_ref()&&!e.get_rethrown()){var t=e.get_destructor();t&&Te(t)(e.excPtr),Le(e.excPtr)}}function Ve(){Sn(0),He(Pe.pop()),ze=0}function qe(e){throw ze||(ze=e),e}function Je(){var e=ze;if(!e)return j(0),0;var t=new We(e);t.set_adjusted_ptr(e);var r=t.get_type();if(!r)return j(0),e;for(var n=Array.prototype.slice.call(arguments),o=0;o"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,t)=>{for(var r=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:e=>{var t=Ke.isAbs(e),r="/"===e.substr(-1);return(e=Ke.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=Ke.splitPath(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},basename:e=>{if("/"===e)return"/";var t=(e=(e=Ke.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},join:function(){var e=Array.prototype.slice.call(arguments,0);return Ke.normalize(e.join("/"))},join2:(e,t)=>Ke.normalize(e+"/"+t)};function Qe(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var e=new Uint8Array(1);return function(){return crypto.getRandomValues(e),e[0]}}if(b)try{var t=s("crypto");return function(){return t.randomBytes(1)[0]}}catch(e){}return function(){ye("randomDevice")}}var et={resolve:function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:ct.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,t=Ke.isAbs(n)}return(t?"/":"")+(e=Ke.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))||"."},relative:(e,t)=>{function r(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=et.resolve(e).substr(1),t=et.resolve(t).substr(1);for(var n=r(e.split("/")),o=r(t.split("/")),s=Math.min(n.length,o.length),i=s,a=0;a0?r.slice(0,n).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n");if(!t)return null;e.input=hn(t,!0)}return e.input.shift()},put_char:function(e,t){null===t||10===t?(S(G(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&e.output.length>0&&(S(G(e.output,0)),e.output=[])}},default_tty1_ops:{put_char:function(e,t){null===t||10===t?(O(G(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&e.output.length>0&&(O(G(e.output,0)),e.output=[])}}};function rt(e,t){B.fill(0,e,e+t)}function nt(e,t){return Math.ceil(e/t)*t}function ot(e){e=nt(e,65536);var t=An(65536,e);return t?(rt(t,e),t):0}var st={ops_table:null,mount:function(e){return st.createNode(null,"/",16895,0)},createNode:function(e,t,r,n){if(ct.isBlkdev(r)||ct.isFIFO(r))throw new ct.ErrnoError(63);st.ops_table||(st.ops_table={dir:{node:{getattr:st.node_ops.getattr,setattr:st.node_ops.setattr,lookup:st.node_ops.lookup,mknod:st.node_ops.mknod,rename:st.node_ops.rename,unlink:st.node_ops.unlink,rmdir:st.node_ops.rmdir,readdir:st.node_ops.readdir,symlink:st.node_ops.symlink},stream:{llseek:st.stream_ops.llseek}},file:{node:{getattr:st.node_ops.getattr,setattr:st.node_ops.setattr},stream:{llseek:st.stream_ops.llseek,read:st.stream_ops.read,write:st.stream_ops.write,allocate:st.stream_ops.allocate,mmap:st.stream_ops.mmap,msync:st.stream_ops.msync}},link:{node:{getattr:st.node_ops.getattr,setattr:st.node_ops.setattr,readlink:st.node_ops.readlink},stream:{}},chrdev:{node:{getattr:st.node_ops.getattr,setattr:st.node_ops.setattr},stream:ct.chrdev_stream_ops}});var o=ct.createNode(e,t,r,n);return ct.isDir(o.mode)?(o.node_ops=st.ops_table.dir.node,o.stream_ops=st.ops_table.dir.stream,o.contents={}):ct.isFile(o.mode)?(o.node_ops=st.ops_table.file.node,o.stream_ops=st.ops_table.file.stream,o.usedBytes=0,o.contents=null):ct.isLink(o.mode)?(o.node_ops=st.ops_table.link.node,o.stream_ops=st.ops_table.link.stream):ct.isChrdev(o.mode)&&(o.node_ops=st.ops_table.chrdev.node,o.stream_ops=st.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[t]=o,e.timestamp=o.timestamp),o},getFileDataAsTypedArray:function(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0)},expandFileStorage:function(e,t){var r=e.contents?e.contents.length:0;if(!(r>=t)){t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var n=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage:function(e,t){if(e.usedBytes!=t)if(0==t)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr:function(e){var t={};return t.dev=ct.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,ct.isDir(e.mode)?t.size=4096:ct.isFile(e.mode)?t.size=e.usedBytes:ct.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr:function(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&st.resizeFileStorage(e,t.size)},lookup:function(e,t){throw ct.genericErrors[44]},mknod:function(e,t,r,n){return st.createNode(e,t,r,n)},rename:function(e,t,r){if(ct.isDir(e.mode)){var n;try{n=ct.lookupNode(t,r)}catch(e){}if(n)for(var o in n.contents)throw new ct.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp,e.parent=t},unlink:function(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir:function(e,t){var r=ct.lookupNode(e,t);for(var n in r.contents)throw new ct.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir:function(e){var t=[".",".."];for(var r in e.contents)e.contents.hasOwnProperty(r)&&t.push(r);return t},symlink:function(e,t,r){var n=st.createNode(e,t,41471,0);return n.link=r,n},readlink:function(e){if(!ct.isLink(e.mode))throw new ct.ErrnoError(28);return e.link}},stream_ops:{read:function(e,t,r,n,o){var s=e.node.contents;if(o>=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-o,n);if(i>8&&s.subarray)t.set(s.subarray(o,o+i),r);else for(var a=0;a0||r+t=e.node.size)return 0;var s=e.node.contents.slice(o,o+n),i=at.reader.readAsArrayBuffer(s);return t.set(new Uint8Array(i),r),s.size},write:function(e,t,r,n,o){throw new ct.ErrnoError(29)},llseek:function(e,t,r){var n=t;if(1===r?n+=e.position:2===r&&ct.isFile(e.node.mode)&&(n+=e.node.size),n<0)throw new ct.ErrnoError(28);return n}}},ct={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:(e,t={})=>{if(!(e=et.resolve(ct.cwd(),e)))return{path:"",node:null};if((t=Object.assign({follow_mount:!0,recurse_count:0},t)).recurse_count>8)throw new ct.ErrnoError(32);for(var r=Ke.normalizeArray(e.split("/").filter((e=>!!e)),!1),n=ct.root,o="/",s=0;s40)throw new ct.ErrnoError(32)}}return{path:o,node:n}},getPath:e=>{for(var t;;){if(ct.isRoot(e)){var r=e.mount.mountpoint;return t?"/"!==r[r.length-1]?r+"/"+t:r+t:r}t=t?e.name+"/"+t:e.name,e=e.parent}},hashName:(e,t)=>{for(var r=0,n=0;n>>0)%ct.nameTable.length},hashAddNode:e=>{var t=ct.hashName(e.parent.id,e.name);e.name_next=ct.nameTable[t],ct.nameTable[t]=e},hashRemoveNode:e=>{var t=ct.hashName(e.parent.id,e.name);if(ct.nameTable[t]===e)ct.nameTable[t]=e.name_next;else for(var r=ct.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode:(e,t)=>{var r=ct.mayLookup(e);if(r)throw new ct.ErrnoError(r,e);for(var n=ct.hashName(e.id,t),o=ct.nameTable[n];o;o=o.name_next){var s=o.name;if(o.parent.id===e.id&&s===t)return o}return ct.lookup(e,t)},createNode:(e,t,r,n)=>{var o=new ct.FSNode(e,t,r,n);return ct.hashAddNode(o),o},destroyNode:e=>{ct.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>49152==(49152&e),flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:e=>{var t=ct.flagModes[e];if(void 0===t)throw new Error("Unknown file open mode: "+e);return t},flagsToPermissionString:e=>{var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:(e,t)=>ct.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2,mayLookup:e=>{var t=ct.nodePermissions(e,"x");return t||(e.node_ops.lookup?0:2)},mayCreate:(e,t)=>{try{ct.lookupNode(e,t);return 20}catch(e){}return ct.nodePermissions(e,"wx")},mayDelete:(e,t,r)=>{var n;try{n=ct.lookupNode(e,t)}catch(e){return e.errno}var o=ct.nodePermissions(e,"wx");if(o)return o;if(r){if(!ct.isDir(n.mode))return 54;if(ct.isRoot(n)||ct.getPath(n)===ct.cwd())return 10}else if(ct.isDir(n.mode))return 31;return 0},mayOpen:(e,t)=>e?ct.isLink(e.mode)?32:ct.isDir(e.mode)&&("r"!==ct.flagsToPermissionString(t)||512&t)?31:ct.nodePermissions(e,ct.flagsToPermissionString(t)):44,MAX_OPEN_FDS:4096,nextfd:(e=0,t=ct.MAX_OPEN_FDS)=>{for(var r=e;r<=t;r++)if(!ct.streams[r])return r;throw new ct.ErrnoError(33)},getStream:e=>ct.streams[e],createStream:(e,t,r)=>{ct.FSStream||(ct.FSStream=function(){this.shared={}},ct.FSStream.prototype={object:{get:function(){return this.node},set:function(e){this.node=e}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}},flags:{get:function(){return this.shared.flags},set:function(e){this.shared.flags=e}},position:{get function(){return this.shared.position},set:function(e){this.shared.position=e}}}),e=Object.assign(new ct.FSStream,e);var n=ct.nextfd(t,r);return e.fd=n,ct.streams[n]=e,e},closeStream:e=>{ct.streams[e]=null},chrdev_stream_ops:{open:e=>{var t=ct.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:()=>{throw new ct.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,t)=>e<<8|t,registerDevice:(e,t)=>{ct.devices[e]={stream_ops:t}},getDevice:e=>ct.devices[e],getMounts:e=>{for(var t=[],r=[e];r.length;){var n=r.pop();t.push(n),r.push.apply(r,n.mounts)}return t},syncfs:(e,t)=>{"function"==typeof e&&(t=e,e=!1),ct.syncFSRequests++,ct.syncFSRequests>1&&O("warning: "+ct.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var r=ct.getMounts(ct.root.mount),n=0;function o(e){return ct.syncFSRequests--,t(e)}function s(e){if(e)return s.errored?void 0:(s.errored=!0,o(e));++n>=r.length&&o(null)}r.forEach((t=>{if(!t.type.syncfs)return s(null);t.type.syncfs(t,e,s)}))},mount:(e,t,r)=>{var n,o="/"===r,s=!r;if(o&&ct.root)throw new ct.ErrnoError(10);if(!o&&!s){var i=ct.lookupPath(r,{follow_mount:!1});if(r=i.path,n=i.node,ct.isMountpoint(n))throw new ct.ErrnoError(10);if(!ct.isDir(n.mode))throw new ct.ErrnoError(54)}var a={type:e,opts:t,mountpoint:r,mounts:[]},c=e.mount(a);return c.mount=a,a.root=c,o?ct.root=c:n&&(n.mounted=a,n.mount&&n.mount.mounts.push(a)),c},unmount:e=>{var t=ct.lookupPath(e,{follow_mount:!1});if(!ct.isMountpoint(t.node))throw new ct.ErrnoError(28);var r=t.node,n=r.mounted,o=ct.getMounts(n);Object.keys(ct.nameTable).forEach((e=>{for(var t=ct.nameTable[e];t;){var r=t.name_next;o.includes(t.mount)&&ct.destroyNode(t),t=r}})),r.mounted=null;var s=r.mount.mounts.indexOf(n);r.mount.mounts.splice(s,1)},lookup:(e,t)=>e.node_ops.lookup(e,t),mknod:(e,t,r)=>{var n=ct.lookupPath(e,{parent:!0}).node,o=Ke.basename(e);if(!o||"."===o||".."===o)throw new ct.ErrnoError(28);var s=ct.mayCreate(n,o);if(s)throw new ct.ErrnoError(s);if(!n.node_ops.mknod)throw new ct.ErrnoError(63);return n.node_ops.mknod(n,o,t,r)},create:(e,t)=>(t=void 0!==t?t:438,t&=4095,t|=32768,ct.mknod(e,t,0)),mkdir:(e,t)=>(t=void 0!==t?t:511,t&=1023,t|=16384,ct.mknod(e,t,0)),mkdirTree:(e,t)=>{for(var r=e.split("/"),n="",o=0;o(void 0===r&&(r=t,t=438),t|=8192,ct.mknod(e,t,r)),symlink:(e,t)=>{if(!et.resolve(e))throw new ct.ErrnoError(44);var r=ct.lookupPath(t,{parent:!0}).node;if(!r)throw new ct.ErrnoError(44);var n=Ke.basename(t),o=ct.mayCreate(r,n);if(o)throw new ct.ErrnoError(o);if(!r.node_ops.symlink)throw new ct.ErrnoError(63);return r.node_ops.symlink(r,n,e)},rename:(e,t)=>{var r,n,o=Ke.dirname(e),s=Ke.dirname(t),i=Ke.basename(e),a=Ke.basename(t);if(r=ct.lookupPath(e,{parent:!0}).node,n=ct.lookupPath(t,{parent:!0}).node,!r||!n)throw new ct.ErrnoError(44);if(r.mount!==n.mount)throw new ct.ErrnoError(75);var c,u=ct.lookupNode(r,i),l=et.relative(e,s);if("."!==l.charAt(0))throw new ct.ErrnoError(28);if("."!==(l=et.relative(t,o)).charAt(0))throw new ct.ErrnoError(55);try{c=ct.lookupNode(n,a)}catch(e){}if(u!==c){var _=ct.isDir(u.mode),f=ct.mayDelete(r,i,_);if(f)throw new ct.ErrnoError(f);if(f=c?ct.mayDelete(n,a,_):ct.mayCreate(n,a))throw new ct.ErrnoError(f);if(!r.node_ops.rename)throw new ct.ErrnoError(63);if(ct.isMountpoint(u)||c&&ct.isMountpoint(c))throw new ct.ErrnoError(10);if(n!==r&&(f=ct.nodePermissions(r,"w")))throw new ct.ErrnoError(f);ct.hashRemoveNode(u);try{r.node_ops.rename(u,n,a)}catch(e){throw e}finally{ct.hashAddNode(u)}}},rmdir:e=>{var t=ct.lookupPath(e,{parent:!0}).node,r=Ke.basename(e),n=ct.lookupNode(t,r),o=ct.mayDelete(t,r,!0);if(o)throw new ct.ErrnoError(o);if(!t.node_ops.rmdir)throw new ct.ErrnoError(63);if(ct.isMountpoint(n))throw new ct.ErrnoError(10);t.node_ops.rmdir(t,r),ct.destroyNode(n)},readdir:e=>{var t=ct.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new ct.ErrnoError(54);return t.node_ops.readdir(t)},unlink:e=>{var t=ct.lookupPath(e,{parent:!0}).node;if(!t)throw new ct.ErrnoError(44);var r=Ke.basename(e),n=ct.lookupNode(t,r),o=ct.mayDelete(t,r,!1);if(o)throw new ct.ErrnoError(o);if(!t.node_ops.unlink)throw new ct.ErrnoError(63);if(ct.isMountpoint(n))throw new ct.ErrnoError(10);t.node_ops.unlink(t,r),ct.destroyNode(n)},readlink:e=>{var t=ct.lookupPath(e).node;if(!t)throw new ct.ErrnoError(44);if(!t.node_ops.readlink)throw new ct.ErrnoError(28);return et.resolve(ct.getPath(t.parent),t.node_ops.readlink(t))},stat:(e,t)=>{var r=ct.lookupPath(e,{follow:!t}).node;if(!r)throw new ct.ErrnoError(44);if(!r.node_ops.getattr)throw new ct.ErrnoError(63);return r.node_ops.getattr(r)},lstat:e=>ct.stat(e,!0),chmod:(e,t,r)=>{var n;"string"==typeof e?n=ct.lookupPath(e,{follow:!r}).node:n=e;if(!n.node_ops.setattr)throw new ct.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&t|-4096&n.mode,timestamp:Date.now()})},lchmod:(e,t)=>{ct.chmod(e,t,!0)},fchmod:(e,t)=>{var r=ct.getStream(e);if(!r)throw new ct.ErrnoError(8);ct.chmod(r.node,t)},chown:(e,t,r,n)=>{var o;"string"==typeof e?o=ct.lookupPath(e,{follow:!n}).node:o=e;if(!o.node_ops.setattr)throw new ct.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:(e,t,r)=>{ct.chown(e,t,r,!0)},fchown:(e,t,r)=>{var n=ct.getStream(e);if(!n)throw new ct.ErrnoError(8);ct.chown(n.node,t,r)},truncate:(e,t)=>{if(t<0)throw new ct.ErrnoError(28);var r;"string"==typeof e?r=ct.lookupPath(e,{follow:!0}).node:r=e;if(!r.node_ops.setattr)throw new ct.ErrnoError(63);if(ct.isDir(r.mode))throw new ct.ErrnoError(31);if(!ct.isFile(r.mode))throw new ct.ErrnoError(28);var n=ct.nodePermissions(r,"w");if(n)throw new ct.ErrnoError(n);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate:(e,t)=>{var r=ct.getStream(e);if(!r)throw new ct.ErrnoError(8);if(0==(2097155&r.flags))throw new ct.ErrnoError(28);ct.truncate(r.node,t)},utime:(e,t,r)=>{var n=ct.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(t,r)})},open:(e,t,r)=>{if(""===e)throw new ct.ErrnoError(44);var n;if(r=void 0===r?438:r,r=64&(t="string"==typeof t?ct.modeStringToFlags(t):t)?4095&r|32768:0,"object"==typeof e)n=e;else{e=Ke.normalize(e);try{n=ct.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var s=!1;if(64&t)if(n){if(128&t)throw new ct.ErrnoError(20)}else n=ct.mknod(e,r,0),s=!0;if(!n)throw new ct.ErrnoError(44);if(ct.isChrdev(n.mode)&&(t&=-513),65536&t&&!ct.isDir(n.mode))throw new ct.ErrnoError(54);if(!s){var i=ct.mayOpen(n,t);if(i)throw new ct.ErrnoError(i)}512&t&&!s&&ct.truncate(n,0),t&=-131713;var a=ct.createStream({node:n,path:ct.getPath(n),flags:t,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return a.stream_ops.open&&a.stream_ops.open(a),!o.logReadFiles||1&t||(ct.readFiles||(ct.readFiles={}),e in ct.readFiles||(ct.readFiles[e]=1)),a},close:e=>{if(ct.isClosed(e))throw new ct.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{ct.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek:(e,t,r)=>{if(ct.isClosed(e))throw new ct.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new ct.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new ct.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read:(e,t,r,n,o)=>{if(n<0||o<0)throw new ct.ErrnoError(28);if(ct.isClosed(e))throw new ct.ErrnoError(8);if(1==(2097155&e.flags))throw new ct.ErrnoError(8);if(ct.isDir(e.node.mode))throw new ct.ErrnoError(31);if(!e.stream_ops.read)throw new ct.ErrnoError(28);var s=void 0!==o;if(s){if(!e.seekable)throw new ct.ErrnoError(70)}else o=e.position;var i=e.stream_ops.read(e,t,r,n,o);return s||(e.position+=i),i},write:(e,t,r,n,o,s)=>{if(n<0||o<0)throw new ct.ErrnoError(28);if(ct.isClosed(e))throw new ct.ErrnoError(8);if(0==(2097155&e.flags))throw new ct.ErrnoError(8);if(ct.isDir(e.node.mode))throw new ct.ErrnoError(31);if(!e.stream_ops.write)throw new ct.ErrnoError(28);e.seekable&&1024&e.flags&&ct.llseek(e,0,2);var i=void 0!==o;if(i){if(!e.seekable)throw new ct.ErrnoError(70)}else o=e.position;var a=e.stream_ops.write(e,t,r,n,o,s);return i||(e.position+=a),a},allocate:(e,t,r)=>{if(ct.isClosed(e))throw new ct.ErrnoError(8);if(t<0||r<=0)throw new ct.ErrnoError(28);if(0==(2097155&e.flags))throw new ct.ErrnoError(8);if(!ct.isFile(e.node.mode)&&!ct.isDir(e.node.mode))throw new ct.ErrnoError(43);if(!e.stream_ops.allocate)throw new ct.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap:(e,t,r,n,o)=>{if(0!=(2&n)&&0==(2&o)&&2!=(2097155&e.flags))throw new ct.ErrnoError(2);if(1==(2097155&e.flags))throw new ct.ErrnoError(2);if(!e.stream_ops.mmap)throw new ct.ErrnoError(43);return e.stream_ops.mmap(e,t,r,n,o)},msync:(e,t,r,n,o)=>e&&e.stream_ops.msync?e.stream_ops.msync(e,t,r,n,o):0,munmap:e=>0,ioctl:(e,t,r)=>{if(!e.stream_ops.ioctl)throw new ct.ErrnoError(59);return e.stream_ops.ioctl(e,t,r)},readFile:(e,t={})=>{if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error('Invalid encoding type "'+t.encoding+'"');var r,n=ct.open(e,t.flags),o=ct.stat(e).size,s=new Uint8Array(o);return ct.read(n,s,0,o,0),"utf8"===t.encoding?r=G(s,0):"binary"===t.encoding&&(r=s),ct.close(n),r},writeFile:(e,t,r={})=>{r.flags=r.flags||577;var n=ct.open(e,r.flags,r.mode);if("string"==typeof t){var o=new Uint8Array(K(t)+1),s=X(t,o,0,o.length);ct.write(n,o,0,s,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");ct.write(n,t,0,t.byteLength,void 0,r.canOwn)}ct.close(n)},cwd:()=>ct.currentPath,chdir:e=>{var t=ct.lookupPath(e,{follow:!0});if(null===t.node)throw new ct.ErrnoError(44);if(!ct.isDir(t.node.mode))throw new ct.ErrnoError(54);var r=ct.nodePermissions(t.node,"x");if(r)throw new ct.ErrnoError(r);ct.currentPath=t.path},createDefaultDirectories:()=>{ct.mkdir("/tmp"),ct.mkdir("/home"),ct.mkdir("/home/web_user")},createDefaultDevices:()=>{ct.mkdir("/dev"),ct.registerDevice(ct.makedev(1,3),{read:()=>0,write:(e,t,r,n,o)=>n}),ct.mkdev("/dev/null",ct.makedev(1,3)),tt.register(ct.makedev(5,0),tt.default_tty_ops),tt.register(ct.makedev(6,0),tt.default_tty1_ops),ct.mkdev("/dev/tty",ct.makedev(5,0)),ct.mkdev("/dev/tty1",ct.makedev(6,0));var e=Qe();ct.createDevice("/dev","random",e),ct.createDevice("/dev","urandom",e),ct.mkdir("/dev/shm"),ct.mkdir("/dev/shm/tmp")},createSpecialDirectories:()=>{ct.mkdir("/proc");var e=ct.mkdir("/proc/self");ct.mkdir("/proc/self/fd"),ct.mount({mount:()=>{var t=ct.createNode(e,"fd",16895,73);return t.node_ops={lookup:(e,t)=>{var r=+t,n=ct.getStream(r);if(!n)throw new ct.ErrnoError(8);var o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},t}},{},"/proc/self/fd")},createStandardStreams:()=>{o.stdin?ct.createDevice("/dev","stdin",o.stdin):ct.symlink("/dev/tty","/dev/stdin"),o.stdout?ct.createDevice("/dev","stdout",null,o.stdout):ct.symlink("/dev/tty","/dev/stdout"),o.stderr?ct.createDevice("/dev","stderr",null,o.stderr):ct.symlink("/dev/tty1","/dev/stderr");ct.open("/dev/stdin",0),ct.open("/dev/stdout",1),ct.open("/dev/stderr",1)},ensureErrnoError:()=>{ct.ErrnoError||(ct.ErrnoError=function(e,t){this.node=t,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},ct.ErrnoError.prototype=new Error,ct.ErrnoError.prototype.constructor=ct.ErrnoError,[44].forEach((e=>{ct.genericErrors[e]=new ct.ErrnoError(e),ct.genericErrors[e].stack=""})))},staticInit:()=>{ct.ensureErrnoError(),ct.nameTable=new Array(4096),ct.mount(st,{},"/"),ct.createDefaultDirectories(),ct.createDefaultDevices(),ct.createSpecialDirectories(),ct.filesystems={MEMFS:st,WORKERFS:at}},init:(e,t,r)=>{ct.init.initialized=!0,ct.ensureErrnoError(),o.stdin=e||o.stdin,o.stdout=t||o.stdout,o.stderr=r||o.stderr,ct.createStandardStreams()},quit:()=>{ct.init.initialized=!1;for(var e=0;e{var r=0;return e&&(r|=365),t&&(r|=146),r},findObject:(e,t)=>{var r=ct.analyzePath(e,t);return r.exists?r.object:null},analyzePath:(e,t)=>{try{e=(n=ct.lookupPath(e,{follow:!t})).path}catch(e){}var r={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=ct.lookupPath(e,{parent:!0});r.parentExists=!0,r.parentPath=n.path,r.parentObject=n.node,r.name=Ke.basename(e),n=ct.lookupPath(e,{follow:!t}),r.exists=!0,r.path=n.path,r.object=n.node,r.name=n.node.name,r.isRoot="/"===n.path}catch(e){r.error=e.errno}return r},createPath:(e,t,r,n)=>{e="string"==typeof e?e:ct.getPath(e);for(var o=t.split("/").reverse();o.length;){var s=o.pop();if(s){var i=Ke.join2(e,s);try{ct.mkdir(i)}catch(e){}e=i}}return i},createFile:(e,t,r,n,o)=>{var s=Ke.join2("string"==typeof e?e:ct.getPath(e),t),i=ct.getMode(n,o);return ct.create(s,i)},createDataFile:(e,t,r,n,o,s)=>{var i=t;e&&(e="string"==typeof e?e:ct.getPath(e),i=t?Ke.join2(e,t):e);var a=ct.getMode(n,o),c=ct.create(i,a);if(r){if("string"==typeof r){for(var u=new Array(r.length),l=0,_=r.length;l<_;++l)u[l]=r.charCodeAt(l);r=u}ct.chmod(c,146|a);var f=ct.open(c,577);ct.write(f,r,0,r.length,0,s),ct.close(f),ct.chmod(c,a)}return c},createDevice:(e,t,r,n)=>{var o=Ke.join2("string"==typeof e?e:ct.getPath(e),t),s=ct.getMode(!!r,!!n);ct.createDevice.major||(ct.createDevice.major=64);var i=ct.makedev(ct.createDevice.major++,0);return ct.registerDevice(i,{open:e=>{e.seekable=!1},close:e=>{n&&n.buffer&&n.buffer.length&&n(10)},read:(e,t,n,o,s)=>{for(var i=0,a=0;a{for(var i=0;i{if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!c)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=hn(c(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new ct.ErrnoError(29)}},createLazyFile:(e,t,r,n,o)=>{function s(){this.lengthKnown=!1,this.chunks=[]}if(s.prototype.get=function(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize,r=e/this.chunkSize|0;return this.getter(r)[t]}},s.prototype.setDataGetter=function(e){this.getter=e},s.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+r+". Status: "+e.status);var t,n=Number(e.getResponseHeader("Content-length")),o=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,s=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,i=1048576;o||(i=n);var a=this;a.setDataGetter((e=>{var t=e*i,o=(e+1)*i-1;if(o=Math.min(o,n-1),void 0===a.chunks[e]&&(a.chunks[e]=((e,t)=>{if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",r,!1),n!==i&&o.setRequestHeader("Range","bytes="+e+"-"+t),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+r+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):hn(o.responseText||"",!0)})(t,o)),void 0===a.chunks[e])throw new Error("doXHR failed!");return a.chunks[e]})),!s&&n||(i=n=1,n=this.getter(0).length,i=n,S("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!y)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i=new s;Object.defineProperties(i,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var a={isDevice:!1,contents:i}}else a={isDevice:!1,url:r};var c=ct.createFile(e,t,a,n,o);a.contents?c.contents=a.contents:a.url&&(c.contents=null,c.url=a.url),Object.defineProperties(c,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(c.stream_ops).forEach((e=>{var t=c.stream_ops[e];u[e]=function(){return ct.forceLoadFile(c),t.apply(null,arguments)}})),u.read=(e,t,r,n,o)=>{ct.forceLoadFile(c);var s=e.node.contents;if(o>=s.length)return 0;var i=Math.min(s.length-o,n);if(s.slice)for(var a=0;a{var l=t?et.resolve(Ke.join2(e,t)):e;function _(r){function _(r){u&&u(),a||ct.createDataFile(e,t,r,n,o,c),s&&s(),ge()}Browser.handledByPreloadPlugin(r,l,_,(()=>{i&&i(),ge()}))||_(r)}we(),"string"==typeof r?it(r,(e=>_(e)),i):_(r)},indexedDB:()=>window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,DB_NAME:()=>"EM_FS_"+window.location.pathname,DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:(e,t,r)=>{t=t||(()=>{}),r=r||(()=>{});var n=ct.indexedDB();try{var o=n.open(ct.DB_NAME(),ct.DB_VERSION)}catch(e){return r(e)}o.onupgradeneeded=()=>{S("creating db"),o.result.createObjectStore(ct.DB_STORE_NAME)},o.onsuccess=()=>{var n=o.result.transaction([ct.DB_STORE_NAME],"readwrite"),s=n.objectStore(ct.DB_STORE_NAME),i=0,a=0,c=e.length;function u(){0==a?t():r()}e.forEach((e=>{var t=s.put(ct.analyzePath(e).object.contents,e);t.onsuccess=()=>{++i+a==c&&u()},t.onerror=()=>{a++,i+a==c&&u()}})),n.onerror=r},o.onerror=r},loadFilesFromDB:(e,t,r)=>{t=t||(()=>{}),r=r||(()=>{});var n=ct.indexedDB();try{var o=n.open(ct.DB_NAME(),ct.DB_VERSION)}catch(e){return r(e)}o.onupgradeneeded=r,o.onsuccess=()=>{var n=o.result;try{var s=n.transaction([ct.DB_STORE_NAME],"readonly")}catch(e){return void r(e)}var i=s.objectStore(ct.DB_STORE_NAME),a=0,c=0,u=e.length;function l(){0==c?t():r()}e.forEach((e=>{var t=i.get(e);t.onsuccess=()=>{ct.analyzePath(e).exists&&ct.unlink(e),ct.createDataFile(Ke.dirname(e),Ke.basename(e),t.result,!0,!0,!0),++a+c==u&&l()},t.onerror=()=>{c++,a+c==u&&l()}})),s.onerror=r},o.onerror=r}},ut={DEFAULT_POLLMASK:5,calculateAt:function(e,t,r){if(Ke.isAbs(t))return t;var n;if(-100===e)n=ct.cwd();else{var o=ct.getStream(e);if(!o)throw new ct.ErrnoError(8);n=o.path}if(0==t.length){if(!r)throw new ct.ErrnoError(44);return n}return Ke.join2(n,t)},doStat:function(e,t,r){try{var n=e(t)}catch(e){if(e&&e.node&&Ke.normalize(t)!==Ke.normalize(ct.getPath(e.node)))return-54;throw e}return L[r>>2]=n.dev,L[r+4>>2]=0,L[r+8>>2]=n.ino,L[r+12>>2]=n.mode,L[r+16>>2]=n.nlink,L[r+20>>2]=n.uid,L[r+24>>2]=n.gid,L[r+28>>2]=n.rdev,L[r+32>>2]=0,Ee=[n.size>>>0,(ve=n.size,+Math.abs(ve)>=1?ve>0?(0|Math.min(+Math.floor(ve/4294967296),4294967295))>>>0:~~+Math.ceil((ve-+(~~ve>>>0))/4294967296)>>>0:0)],L[r+40>>2]=Ee[0],L[r+44>>2]=Ee[1],L[r+48>>2]=4096,L[r+52>>2]=n.blocks,L[r+56>>2]=n.atime.getTime()/1e3|0,L[r+60>>2]=0,L[r+64>>2]=n.mtime.getTime()/1e3|0,L[r+68>>2]=0,L[r+72>>2]=n.ctime.getTime()/1e3|0,L[r+76>>2]=0,Ee=[n.ino>>>0,(ve=n.ino,+Math.abs(ve)>=1?ve>0?(0|Math.min(+Math.floor(ve/4294967296),4294967295))>>>0:~~+Math.ceil((ve-+(~~ve>>>0))/4294967296)>>>0:0)],L[r+80>>2]=Ee[0],L[r+84>>2]=Ee[1],0},doMsync:function(e,t,r,n,o){var s=B.slice(e,e+r);ct.msync(t,s,o,r,n)},varargs:void 0,get:function(){return ut.varargs+=4,L[ut.varargs-4>>2]},getStr:function(e){return Y(e)},getStreamFromFD:function(e){var t=ct.getStream(e);if(!t)throw new ct.ErrnoError(8);return t}};function lt(e){try{return e=ut.getStr(e),ct.chdir(e),0}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function _t(e,t){try{return e=ut.getStr(e),ct.chmod(e,t),0}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}var ft={mount:function(e){return o.websocket=o.websocket&&"object"==typeof o.websocket?o.websocket:{},o.websocket._callbacks={},o.websocket.on=function(e,t){return"function"==typeof t&&(this._callbacks[e]=t),this},o.websocket.emit=function(e,t){"function"==typeof this._callbacks[e]&&this._callbacks[e].call(this,t)},ct.createNode(null,"/",16895,0)},createSocket:function(e,t,r){if(1==(t&=-526337)&&r&&6!=r)throw new ct.ErrnoError(66);var n={family:e,type:t,protocol:r,server:null,error:null,peers:{},pending:[],recv_queue:[],sock_ops:ft.websocket_sock_ops},o=ft.nextname(),s=ct.createNode(ft.root,o,49152,0);s.sock=n;var i=ct.createStream({path:o,node:s,flags:2,seekable:!1,stream_ops:ft.stream_ops});return n.stream=i,n},getSocket:function(e){var t=ct.getStream(e);return t&&ct.isSocket(t.node.mode)?t.node.sock:null},stream_ops:{poll:function(e){var t=e.node.sock;return t.sock_ops.poll(t)},ioctl:function(e,t,r){var n=e.node.sock;return n.sock_ops.ioctl(n,t,r)},read:function(e,t,r,n,o){var s=e.node.sock,i=s.sock_ops.recvmsg(s,n);return i?(t.set(i.buffer,r),i.buffer.length):0},write:function(e,t,r,n,o){var s=e.node.sock;return s.sock_ops.sendmsg(s,t,r,n)},close:function(e){var t=e.node.sock;t.sock_ops.close(t)}},nextname:function(){return ft.nextname.current||(ft.nextname.current=0),"socket["+ft.nextname.current+++"]"},websocket_sock_ops:{createPeer:function(e,t,r){var n;if("object"==typeof t&&(n=t,t=null,r=null),n)if(n._socket)t=n._socket.remoteAddress,r=n._socket.remotePort;else{var i=/ws[s]?:\/\/([^:]+):(\d+)/.exec(n.url);if(!i)throw new Error("WebSocket URL must be in the format ws(s)://address:port");t=i[1],r=parseInt(i[2],10)}else try{var a=o.websocket&&"object"==typeof o.websocket,c="ws:#".replace("#","//");if(a&&"string"==typeof o.websocket.url&&(c=o.websocket.url),"ws://"===c||"wss://"===c){var u=t.split("/");c=c+u[0]+":"+r+"/"+u.slice(1).join("/")}var l="binary";a&&"string"==typeof o.websocket.subprotocol&&(l=o.websocket.subprotocol);var _=void 0;"null"!==l&&(_=l=l.replace(/^ +| +$/g,"").split(/ *, */)),a&&null===o.websocket.subprotocol&&(l="null",_=void 0),(n=new(b?s("ws"):WebSocket)(c,_)).binaryType="arraybuffer"}catch(e){throw new ct.ErrnoError(23)}var f={addr:t,port:r,socket:n,dgram_send_queue:[]};return ft.websocket_sock_ops.addPeer(e,f),ft.websocket_sock_ops.handlePeerEvents(e,f),2===e.type&&void 0!==e.sport&&f.dgram_send_queue.push(new Uint8Array([255,255,255,255,"p".charCodeAt(0),"o".charCodeAt(0),"r".charCodeAt(0),"t".charCodeAt(0),(65280&e.sport)>>8,255&e.sport])),f},getPeer:function(e,t,r){return e.peers[t+":"+r]},addPeer:function(e,t){e.peers[t.addr+":"+t.port]=t},removePeer:function(e,t){delete e.peers[t.addr+":"+t.port]},handlePeerEvents:function(e,t){var r=!0,n=function(){o.websocket.emit("open",e.stream.fd);try{for(var r=t.dgram_send_queue.shift();r;)t.socket.send(r),r=t.dgram_send_queue.shift()}catch(e){t.socket.close()}};function s(n){if("string"==typeof n){n=(new TextEncoder).encode(n)}else{if(I(void 0!==n.byteLength),0==n.byteLength)return;n=new Uint8Array(n)}var s=r;if(r=!1,s&&10===n.length&&255===n[0]&&255===n[1]&&255===n[2]&&255===n[3]&&n[4]==="p".charCodeAt(0)&&n[5]==="o".charCodeAt(0)&&n[6]==="r".charCodeAt(0)&&n[7]==="t".charCodeAt(0)){var i=n[8]<<8|n[9];return ft.websocket_sock_ops.removePeer(e,t),t.port=i,void ft.websocket_sock_ops.addPeer(e,t)}e.recv_queue.push({addr:t.addr,port:t.port,data:n}),o.websocket.emit("message",e.stream.fd)}b?(t.socket.on("open",n),t.socket.on("message",(function(e,t){t&&s(new Uint8Array(e).buffer)})),t.socket.on("close",(function(){o.websocket.emit("close",e.stream.fd)})),t.socket.on("error",(function(t){e.error=14,o.websocket.emit("error",[e.stream.fd,e.error,"ECONNREFUSED: Connection refused"])}))):(t.socket.onopen=n,t.socket.onclose=function(){o.websocket.emit("close",e.stream.fd)},t.socket.onmessage=function(e){s(e.data)},t.socket.onerror=function(t){e.error=14,o.websocket.emit("error",[e.stream.fd,e.error,"ECONNREFUSED: Connection refused"])})},poll:function(e){if(1===e.type&&e.server)return e.pending.length?65:0;var t=0,r=1===e.type?ft.websocket_sock_ops.getPeer(e,e.daddr,e.dport):null;return(e.recv_queue.length||!r||r&&r.socket.readyState===r.socket.CLOSING||r&&r.socket.readyState===r.socket.CLOSED)&&(t|=65),(!r||r&&r.socket.readyState===r.socket.OPEN)&&(t|=4),(r&&r.socket.readyState===r.socket.CLOSING||r&&r.socket.readyState===r.socket.CLOSED)&&(t|=16),t},ioctl:function(e,t,r){if(21531===t){var n=0;return e.recv_queue.length&&(n=e.recv_queue[0].data.length),L[r>>2]=n,0}return 28},close:function(e){if(e.server){try{e.server.close()}catch(e){}e.server=null}for(var t=Object.keys(e.peers),r=0;r>2]=e,e}function pt(e){return(255&e)+"."+(e>>8&255)+"."+(e>>16&255)+"."+(e>>24&255)}function ht(e){var t="",r=0,n=0,o=0,s=0,i=0,a=0,c=[65535&e[0],e[0]>>16,65535&e[1],e[1]>>16,65535&e[2],e[2]>>16,65535&e[3],e[3]>>16],u=!0,l="";for(a=0;a<5;a++)if(0!==c[a]){u=!1;break}if(u){if(l=pt(c[6]|c[7]<<16),-1===c[5])return t="::ffff:",t+=l;if(0===c[5])return t="::","0.0.0.0"===l&&(l=""),"0.0.0.1"===l&&(l="1"),t+=l}for(r=0;r<8;r++)0===c[r]&&(r-o>1&&(i=0),o=r,i++),i>n&&(s=r-(n=i)+1);for(r=0;r<8;r++)n>1&&0===c[r]&&r>=s&&r>1],o=kn(W[e+2>>1]);switch(n){case 2:if(16!==t)return{errno:28};r=pt(r=L[e+4>>2]);break;case 10:if(28!==t)return{errno:28};r=ht(r=[L[e+8>>2],L[e+12>>2],L[e+16>>2],L[e+20>>2]]);break;default:return{errno:5}}return{family:n,addr:r,port:o}}function gt(e){for(var t=e.split("."),r=0;r<4;r++){var n=Number(t[r]);if(isNaN(n))return null;t[r]=n}return(t[0]|t[1]<<8|t[2]<<16|t[3]<<24)>>>0}function yt(e){return parseInt(e)}function bt(e){var t,r,n,o,s=[];if(!/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i.test(e))return null;if("::"===e)return[0,0,0,0,0,0,0,0];for((e=e.startsWith("::")?e.replace("::","Z:"):e.replace("::",":Z:")).indexOf(".")>0?((t=(e=e.replace(new RegExp("[.]","g"),":")).split(":"))[t.length-4]=yt(t[t.length-4])+256*yt(t[t.length-3]),t[t.length-3]=yt(t[t.length-2])+256*yt(t[t.length-1]),t=t.slice(0,t.length-2)):t=e.split(":"),n=0,o=0,r=0;r>1]=2,0;case 16:case 8:default:return-28;case 9:return mt(28),-1}}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function Nt(e,t){try{var r=ut.getStreamFromFD(e);return ut.doStat(ct.stat,r.path,t)}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function jt(e,t,r){try{return e=ut.getStr(e),L[r+4>>2]=4096,L[r+40>>2]=4096,L[r+8>>2]=1e6,L[r+12>>2]=5e5,L[r+16>>2]=5e5,L[r+20>>2]=ct.nextInode,L[r+24>>2]=1e6,L[r+28>>2]=42,L[r+44>>2]=2,L[r+36>>2]=255,0}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function Dt(e,t,r){try{ut.getStreamFromFD(e);return jt(0,0,r)}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function Mt(e,t){return t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN}function Rt(e,t,r){try{var n=Mt(t,r);return isNaN(n)?-61:(ct.ftruncate(e,n),0)}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function Tt(e,t){try{if(0===t)return-28;var r=ct.cwd(),n=K(r)+1;return t>>0,(ve=c,+Math.abs(ve)>=1?ve>0?(0|Math.min(+Math.floor(ve/4294967296),4294967295))>>>0:~~+Math.ceil((ve-+(~~ve>>>0))/4294967296)>>>0:0)],L[t+s>>2]=Ee[0],L[t+s+4>>2]=Ee[1],Ee=[(a+1)*o>>>0,(ve=(a+1)*o,+Math.abs(ve)>=1?ve>0?(0|Math.min(+Math.floor(ve/4294967296),4294967295))>>>0:~~+Math.ceil((ve-+(~~ve>>>0))/4294967296)>>>0:0)],L[t+s+8>>2]=Ee[0],L[t+s+12>>2]=Ee[1],z[t+s+16>>1]=280,U[t+s+18>>0]=u,Z(l,t+s+19,256),s+=o,a+=1}return ct.llseek(n,a*o,0),s}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function $t(e,t,r){ut.varargs=r;try{var n=ut.getStreamFromFD(e);switch(t){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var o=ut.get();return L[o>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:o=ut.get();return ct.ioctl(n,t,o);default:ye("bad ioctl syscall "+t)}}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function Ft(e,t){try{return e=ut.getStr(e),ut.doStat(ct.lstat,e,t)}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function Pt(e,t,r){try{return t=ut.getStr(t),t=ut.calculateAt(e,t),"/"===(t=Ke.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),ct.mkdir(t,r,0),0}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function Ct(e,t,r,n){try{t=ut.getStr(t);var o=256&n,s=4096&n;return n&=-4353,t=ut.calculateAt(e,t,s),ut.doStat(o?ct.lstat:ct.stat,t,r)}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function Ut(e,t,r,n){ut.varargs=n;try{t=ut.getStr(t),t=ut.calculateAt(e,t);var o=n?ut.get():0;return ct.open(t,r,o).fd}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function Bt(e,t,r,n){try{if(t=ut.getStr(t),t=ut.calculateAt(e,t),n<=0)return-28;var o=ct.readlink(t),s=Math.min(n,K(o)),i=U[r+s];return Z(o,r,n+1),U[r+s]=i,s}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function zt(e,t,r,n){try{return t=ut.getStr(t),n=ut.getStr(n),t=ut.calculateAt(e,t),n=ut.calculateAt(r,n),ct.rename(t,n),0}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function Wt(e){try{return e=ut.getStr(e),ct.rmdir(e),0}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function Lt(e,t,r,n,o,s){try{var i=dt(e),a=Et(o,s,!0);return a?i.sock_ops.sendmsg(i,U,t,r,a.addr,a.port):ct.write(i.stream,U,t,r)}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function Ht(e,t,r){try{return ft.createSocket(e,t,r).stream.fd}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function Vt(e,t){try{return e=ut.getStr(e),ut.doStat(ct.stat,e,t)}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function qt(e,t,r){try{return t=ut.getStr(t),t=ut.calculateAt(e,t),0===r?ct.unlink(t):512===r?ct.rmdir(t):ye("Invalid flags passed to unlinkat"),0}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function Jt(e,t,r,n){try{if(t=ut.getStr(t),t=ut.calculateAt(e,t,!0),r){var o=L[r>>2],s=L[r+4>>2];i=1e3*o+s/1e6,a=1e3*(o=L[(r+=8)>>2])+(s=L[r+4>>2])/1e6}else var i=Date.now(),a=i;return ct.utime(t,i,a),0}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function Gt(){return Date.now()}var Yt=!0;function Xt(){return Yt}function Zt(){throw 1/0}function Kt(e,t){var r=new Date(1e3*L[e>>2]);L[t>>2]=r.getUTCSeconds(),L[t+4>>2]=r.getUTCMinutes(),L[t+8>>2]=r.getUTCHours(),L[t+12>>2]=r.getUTCDate(),L[t+16>>2]=r.getUTCMonth(),L[t+20>>2]=r.getUTCFullYear()-1900,L[t+24>>2]=r.getUTCDay();var n=Date.UTC(r.getUTCFullYear(),0,1,0,0,0,0),o=(r.getTime()-n)/864e5|0;L[t+28>>2]=o}function Qt(e,t){var r=new Date(1e3*L[e>>2]);L[t>>2]=r.getSeconds(),L[t+4>>2]=r.getMinutes(),L[t+8>>2]=r.getHours(),L[t+12>>2]=r.getDate(),L[t+16>>2]=r.getMonth(),L[t+20>>2]=r.getFullYear()-1900,L[t+24>>2]=r.getDay();var n=new Date(r.getFullYear(),0,1),o=(r.getTime()-n.getTime())/864e5|0;L[t+28>>2]=o,L[t+36>>2]=-60*r.getTimezoneOffset();var s=new Date(r.getFullYear(),6,1).getTimezoneOffset(),i=n.getTimezoneOffset(),a=0|(s!=i&&r.getTimezoneOffset()==Math.min(i,s));L[t+32>>2]=a}function er(e){var t=new Date(L[e+20>>2]+1900,L[e+16>>2],L[e+12>>2],L[e+8>>2],L[e+4>>2],L[e>>2],0),r=L[e+32>>2],n=t.getTimezoneOffset(),o=new Date(t.getFullYear(),0,1),s=new Date(t.getFullYear(),6,1).getTimezoneOffset(),i=o.getTimezoneOffset(),a=Math.min(i,s);if(r<0)L[e+32>>2]=Number(s!=i&&a==n);else if(r>0!=(a==n)){var c=Math.max(i,s),u=r>0?a:c;t.setTime(t.getTime()+6e4*(u-n))}L[e+24>>2]=t.getDay();var l=(t.getTime()-o.getTime())/864e5|0;return L[e+28>>2]=l,L[e>>2]=t.getSeconds(),L[e+4>>2]=t.getMinutes(),L[e+8>>2]=t.getHours(),L[e+12>>2]=t.getDate(),L[e+16>>2]=t.getMonth(),t.getTime()/1e3|0}function tr(e,t,r,n,o,s){try{var i=ct.getStream(n);if(!i)return-8;var a=ct.mmap(i,e,o,t,r),c=a.ptr;return L[s>>2]=a.allocated,c}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function rr(e,t,r,n,o,s){try{var i=ct.getStream(o);i&&(2&r&&ut.doMsync(e,i,t,n,s),ct.munmap(i))}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return-e.errno}}function nr(e,t,r){var n=(new Date).getFullYear(),o=new Date(n,0,1),s=new Date(n,6,1),i=o.getTimezoneOffset(),a=s.getTimezoneOffset(),c=Math.max(i,a);function u(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}L[e>>2]=60*c,L[t>>2]=Number(i!=a);var l=u(o),_=u(s),f=Q(l),d=Q(_);a>2]=f,H[r+4>>2]=d):(H[r>>2]=d,H[r+4>>2]=f)}function or(e,t,r){or.called||(or.called=!0,nr(e,t,r))}function sr(){ye("")}var ir={batchedQuotaMax:65536,getBatchedRandomValues:function(e,t){const r="undefined"!=typeof SharedArrayBuffer&&o.HEAPU8.buffer instanceof SharedArrayBuffer,n=r?new ArrayBuffer(t):o.HEAPU8.buffer,s=r?0:e;for(let e=0;e>=2;r=B[e++];)t+=105!=r&t,ur.push(105==r?L[t]:q[t++>>1]),++t;return ur}function _r(e,t,r){var n=lr(t,r);return je[e].apply(null,n)}function fr(){return 2147483648}function dr(){return b?1:1e3}function mr(e,t,r){B.copyWithin(e,t,t+r)}function pr(e){try{return M.grow(e-C.byteLength+65535>>>16),re(M.buffer),1}catch(e){}}function hr(e){var t=B.length,r=2147483648;if((e>>>=0)>r)return!1;for(var n=1;n<=4;n*=2){var o=t*(1+.2/n);if(o=Math.min(o,e+100663296),pr(Math.min(r,(s=Math.max(e,o))+((i=65536)-s%i)%i)))return!0}var s,i;return!1}cr=b?()=>{var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:()=>performance.now();var wr={};function gr(){return h||"./this.program"}function yr(){if(!yr.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:gr()};for(var t in wr)void 0===wr[t]?delete e[t]:e[t]=wr[t];var r=[];for(var t in e)r.push(t+"="+e[t]);yr.strings=r}return yr.strings}function br(e,t){var r=0;return yr().forEach((function(n,o){var s=t+r;H[e+4*o>>2]=s,te(n,s),r+=n.length+1})),0}function vr(e,t){var r=yr();H[e>>2]=r.length;var n=0;return r.forEach((function(e){n+=e.length+1})),H[t>>2]=n,0}function Er(e){Ao(e)}function Ar(e){try{var t=ut.getStreamFromFD(e);return ct.close(t),0}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return e.errno}}function kr(e,t){try{var r=ut.getStreamFromFD(e),n=r.tty?2:ct.isDir(r.mode)?3:ct.isLink(r.mode)?7:4;return U[t>>0]=n,0}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return e.errno}}function Sr(e,t,r,n){for(var o=0,s=0;s>2],a=H[t+4>>2];t+=8;var c=ct.read(e,U,i,a,n);if(c<0)return-1;if(o+=c,c>2]=a,0}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return e.errno}}function xr(e,t,r,n){for(var o=0,s=0;s>2],a=H[t+4>>2];t+=8;var c=ct.write(e,U,i,a,n);if(c<0)return-1;o+=c}return o}function Nr(e,t,r,n,o,s){try{var i=Mt(n,o);if(isNaN(i))return 61;var a=xr(ut.getStreamFromFD(e),t,r,i);return L[s>>2]=a,0}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return e.errno}}function jr(e,t,r,n){try{var o=Sr(ut.getStreamFromFD(e),t,r);return L[n>>2]=o,0}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return e.errno}}function Dr(e,t,r,n,o){try{var s=Mt(t,r);if(isNaN(s))return 61;var i=ut.getStreamFromFD(e);return ct.llseek(i,s,n),Ee=[i.position>>>0,(ve=i.position,+Math.abs(ve)>=1?ve>0?(0|Math.min(+Math.floor(ve/4294967296),4294967295))>>>0:~~+Math.ceil((ve-+(~~ve>>>0))/4294967296)>>>0:0)],L[o>>2]=Ee[0],L[o+4>>2]=Ee[1],i.getdents&&0===s&&0===n&&(i.getdents=null),0}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return e.errno}}function Mr(e){try{var t=ut.getStreamFromFD(e);return t.stream_ops&&t.stream_ops.fsync?-t.stream_ops.fsync(t):0}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return e.errno}}function Rr(e,t,r,n){try{var o=xr(ut.getStreamFromFD(e),t,r);return H[n>>2]=o,0}catch(e){if(void 0===ct||!(e instanceof ct.ErrnoError))throw e;return e.errno}}function Tr(){return D()}function Ir(e){return e}function $r(){return __dotnet_runtime.__linker_exports.mono_set_timeout.apply(__dotnet_runtime,arguments)}function Fr(){return __dotnet_runtime.__linker_exports.mono_wasm_bind_cs_function.apply(__dotnet_runtime,arguments)}function Pr(){return __dotnet_runtime.__linker_exports.mono_wasm_bind_js_function.apply(__dotnet_runtime,arguments)}function Cr(){return __dotnet_runtime.__linker_exports.mono_wasm_create_cs_owned_object_ref.apply(__dotnet_runtime,arguments)}function Ur(){return __dotnet_runtime.__linker_exports.mono_wasm_get_by_index_ref.apply(__dotnet_runtime,arguments)}function Br(){return __dotnet_runtime.__linker_exports.mono_wasm_get_global_object_ref.apply(__dotnet_runtime,arguments)}function zr(){return __dotnet_runtime.__linker_exports.mono_wasm_get_object_property_ref.apply(__dotnet_runtime,arguments)}function Wr(){return __dotnet_runtime.__linker_exports.mono_wasm_invoke_bound_function.apply(__dotnet_runtime,arguments)}function Lr(){return __dotnet_runtime.__linker_exports.mono_wasm_invoke_js_blazor.apply(__dotnet_runtime,arguments)}function Hr(){return __dotnet_runtime.__linker_exports.mono_wasm_invoke_js_with_args_ref.apply(__dotnet_runtime,arguments)}function Vr(){return __dotnet_runtime.__linker_exports.mono_wasm_marshal_promise.apply(__dotnet_runtime,arguments)}function qr(){return __dotnet_runtime.__linker_exports.mono_wasm_release_cs_owned_object.apply(__dotnet_runtime,arguments)}function Jr(){return __dotnet_runtime.__linker_exports.mono_wasm_set_by_index_ref.apply(__dotnet_runtime,arguments)}function Gr(){return __dotnet_runtime.__linker_exports.mono_wasm_set_entrypoint_breakpoint.apply(__dotnet_runtime,arguments)}function Yr(){return __dotnet_runtime.__linker_exports.mono_wasm_set_object_property_ref.apply(__dotnet_runtime,arguments)}function Xr(){return __dotnet_runtime.__linker_exports.mono_wasm_trace_logger.apply(__dotnet_runtime,arguments)}function Zr(){return __dotnet_runtime.__linker_exports.mono_wasm_typed_array_from_ref.apply(__dotnet_runtime,arguments)}function Kr(){return __dotnet_runtime.__linker_exports.mono_wasm_typed_array_to_array_ref.apply(__dotnet_runtime,arguments)}function Qr(){return __dotnet_runtime.__linker_exports.schedule_background_exec.apply(__dotnet_runtime,arguments)}function en(e){j(e)}function tn(e){return e%4==0&&(e%100!=0||e%400==0)}function rn(e,t){for(var r=0,n=0;n<=t;r+=e[n++]);return r}var nn=[31,29,31,30,31,30,31,31,30,31,30,31],on=[31,28,31,30,31,30,31,31,30,31,30,31];function sn(e,t){for(var r=new Date(e.getTime());t>0;){var n=tn(r.getFullYear()),o=r.getMonth(),s=(n?nn:on)[o];if(!(t>s-r.getDate()))return r.setDate(r.getDate()+t),r;t-=s-r.getDate()+1,r.setDate(1),o<11?r.setMonth(o+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r}function an(e,t,r,n){var o=L[n+40>>2],s={tm_sec:L[n>>2],tm_min:L[n+4>>2],tm_hour:L[n+8>>2],tm_mday:L[n+12>>2],tm_mon:L[n+16>>2],tm_year:L[n+20>>2],tm_wday:L[n+24>>2],tm_yday:L[n+28>>2],tm_isdst:L[n+32>>2],tm_gmtoff:L[n+36>>2],tm_zone:o?Y(o):""},i=Y(r),a={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var c in a)i=i.replace(new RegExp(c,"g"),a[c]);var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function _(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.length0?1:0}var n;return 0===(n=r(e.getFullYear()-t.getFullYear()))&&0===(n=r(e.getMonth()-t.getMonth()))&&(n=r(e.getDate()-t.getDate())),n}function m(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function p(e){var t=sn(new Date(e.tm_year+1900,0,1),e.tm_yday),r=new Date(t.getFullYear(),0,4),n=new Date(t.getFullYear()+1,0,4),o=m(r),s=m(n);return d(o,t)<=0?d(s,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var h={"%a":function(e){return u[e.tm_wday].substring(0,3)},"%A":function(e){return u[e.tm_wday]},"%b":function(e){return l[e.tm_mon].substring(0,3)},"%B":function(e){return l[e.tm_mon]},"%C":function(e){return f((e.tm_year+1900)/100|0,2)},"%d":function(e){return f(e.tm_mday,2)},"%e":function(e){return _(e.tm_mday,2," ")},"%g":function(e){return p(e).toString().substring(2)},"%G":function(e){return p(e)},"%H":function(e){return f(e.tm_hour,2)},"%I":function(e){var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),f(t,2)},"%j":function(e){return f(e.tm_mday+rn(tn(e.tm_year+1900)?nn:on,e.tm_mon-1),3)},"%m":function(e){return f(e.tm_mon+1,2)},"%M":function(e){return f(e.tm_min,2)},"%n":function(){return"\n"},"%p":function(e){return e.tm_hour>=0&&e.tm_hour<12?"AM":"PM"},"%S":function(e){return f(e.tm_sec,2)},"%t":function(){return"\t"},"%u":function(e){return e.tm_wday||7},"%U":function(e){var t=e.tm_yday+7-e.tm_wday;return f(Math.floor(t/7),2)},"%V":function(e){var t=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&t++,t){if(53==t){var r=(e.tm_wday+371-e.tm_yday)%7;4==r||3==r&&tn(e.tm_year)||(t=1)}}else{t=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(4==n||5==n&&tn(e.tm_year%400-1))&&t++}return f(t,2)},"%w":function(e){return e.tm_wday},"%W":function(e){var t=e.tm_yday+7-(e.tm_wday+6)%7;return f(Math.floor(t/7),2)},"%y":function(e){return(e.tm_year+1900).toString().substring(2)},"%Y":function(e){return e.tm_year+1900},"%z":function(e){var t=e.tm_gmtoff,r=t>=0;return t=(t=Math.abs(t)/60)/60*100+t%60,(r?"+":"-")+String("0000"+t).slice(-4)},"%Z":function(e){return e.tm_zone},"%%":function(){return"%"}};for(var c in i=i.replace(/%%/g,"\0\0"),h)i.includes(c)&&(i=i.replace(new RegExp(c,"g"),h[c](s)));var w=hn(i=i.replace(/\0\0/g,"%"),!1);return w.length>t?0:(ee(w,e),w.length-1)}function cn(e,t,r,n){return an(e,t,r,n)}var un=function(e,t,r,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=ct.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n},ln=365,_n=146;let fn;Object.defineProperties(un.prototype,{read:{get:function(){return(this.mode&ln)===ln},set:function(e){e?this.mode|=ln:this.mode&=~ln}},write:{get:function(){return(this.mode&_n)===_n},set:function(e){e?this.mode|=_n:this.mode&=~_n}},isFolder:{get:function(){return ct.isDir(this.mode)}},isDevice:{get:function(){return ct.isChrdev(this.mode)}}}),ct.FSNode=un,ct.staticInit(),o.FS_createPath=ct.createPath,o.FS_createDataFile=ct.createDataFile,o.FS_readFile=ct.readFile,o.FS_createPath=ct.createPath,o.FS_createDataFile=ct.createDataFile,o.FS_createPreloadedFile=ct.createPreloadedFile,o.FS_unlink=ct.unlink,o.FS_createLazyFile=ct.createLazyFile,o.FS_createDevice=ct.createDevice;let dn={scriptUrl:import.meta.url,fetch:globalThis.fetch,require:s,updateGlobalBufferAndViews:re,pthreadReplacements:fn};b&&(dn.requirePromise=import("module").then((e=>e.createRequire(import.meta.url))));let mn=__dotnet_runtime.__initializeImportsAndExports({isGlobal:!1,isNode:b,isWorker:y,isShell:v,isWeb:g,isPThread:!1,quit_:w,ExitStatus:vo,requirePromise:dn.requirePromise},{mono:MONO,binding:BINDING,internal:INTERNAL,module:o,marshaled_imports:IMPORTS},dn,a);re=dn.updateGlobalBufferAndViews;var pn=dn.fetch;e=i=E=dn.scriptDirectory,b&&dn.requirePromise.then((e=>{s=e}));R=dn.noExitRuntime;function hn(e,t,r){var n=r>0?r:K(e)+1,o=new Array(n),s=X(e,o,0,o.length);return t&&(o.length=s),o}var wn,gn={A:$e,i:Fe,v:Be,w:Ve,b:Je,j:Ge,l:Le,ba:Ye,n:Xe,qb:Ze,f:qe,pb:lt,aa:_t,ob:At,nb:kt,Ga:St,mb:Ot,D:xt,lb:Nt,kb:Dt,Fa:Rt,jb:Tt,ib:It,hb:$t,gb:Ft,fb:Pt,eb:Ct,$:Ut,db:Bt,cb:zt,_:Wt,bb:Lt,Z:Ht,ab:Vt,Y:qt,$a:Jt,L:Gt,W:Xt,Wa:Zt,Va:Kt,Ua:Qt,Ta:er,Sa:tr,Ra:rr,Qa:or,m:sr,V:ar,U:_r,Pa:fr,K:cr,Oa:dr,Na:mr,Ma:hr,_a:br,Za:vr,B:Er,H:Ar,Ya:kr,Ea:Or,Da:Nr,X:jr,Ca:Dr,Xa:Mr,M:Rr,a:Tr,T:fo,S:_o,x:no,g:Pn,d:Un,c:zn,q:Wn,R:lo,r:Gn,La:eo,z:Yn,Ka:Xn,Q:so,P:co,O:Vn,N:io,C:Jn,Ba:yo,Aa:ho,za:go,ya:po,xa:bo,t:ro,p:Bn,Ja:qn,h:Ln,e:Cn,s:Hn,o:Zn,u:Qn,y:to,Ia:uo,G:Kn,E:oo,Ha:ao,J:mo,wa:wo,F:Ir,va:$r,ua:Fr,ta:Pr,sa:Cr,ra:Ur,qa:Br,pa:zr,oa:Wr,na:Lr,ma:Hr,la:Vr,ka:qr,ja:Jr,ia:Gr,ha:Yr,ga:Xr,fa:Zr,ea:Kr,da:Qr,k:en,I:an,ca:cn},yn=(Ne(),o.___wasm_call_ctors=function(){return(o.___wasm_call_ctors=o.asm.sb).apply(null,arguments)},o._malloc=function(){return(yn=o._malloc=o.asm.tb).apply(null,arguments)}),bn=o._free=function(){return(bn=o._free=o.asm.ub).apply(null,arguments)},vn=(o._memset=function(){return(o._memset=o.asm.vb).apply(null,arguments)},o.___errno_location=function(){return(vn=o.___errno_location=o.asm.xb).apply(null,arguments)}),En=(o._memalign=function(){return(o._memalign=o.asm.yb).apply(null,arguments)},o._htons=function(){return(En=o._htons=o.asm.zb).apply(null,arguments)}),An=(o._mono_wasm_register_root=function(){return(o._mono_wasm_register_root=o.asm.Ab).apply(null,arguments)},o._mono_wasm_deregister_root=function(){return(o._mono_wasm_deregister_root=o.asm.Bb).apply(null,arguments)},o._mono_wasm_add_assembly=function(){return(o._mono_wasm_add_assembly=o.asm.Cb).apply(null,arguments)},o._mono_wasm_add_satellite_assembly=function(){return(o._mono_wasm_add_satellite_assembly=o.asm.Db).apply(null,arguments)},o._mono_wasm_setenv=function(){return(o._mono_wasm_setenv=o.asm.Eb).apply(null,arguments)},o._mono_wasm_getenv=function(){return(o._mono_wasm_getenv=o.asm.Fb).apply(null,arguments)},o._mono_wasm_register_bundled_satellite_assemblies=function(){return(o._mono_wasm_register_bundled_satellite_assemblies=o.asm.Gb).apply(null,arguments)},o._mono_wasm_load_runtime=function(){return(o._mono_wasm_load_runtime=o.asm.Hb).apply(null,arguments)},o._mono_wasm_assembly_load=function(){return(o._mono_wasm_assembly_load=o.asm.Ib).apply(null,arguments)},o._mono_wasm_get_corlib=function(){return(o._mono_wasm_get_corlib=o.asm.Jb).apply(null,arguments)},o._mono_wasm_assembly_find_class=function(){return(o._mono_wasm_assembly_find_class=o.asm.Kb).apply(null,arguments)},o._mono_wasm_runtime_run_module_cctor=function(){return(o._mono_wasm_runtime_run_module_cctor=o.asm.Lb).apply(null,arguments)},o._mono_wasm_assembly_find_method=function(){return(o._mono_wasm_assembly_find_method=o.asm.Mb).apply(null,arguments)},o._mono_wasm_get_delegate_invoke_ref=function(){return(o._mono_wasm_get_delegate_invoke_ref=o.asm.Nb).apply(null,arguments)},o._mono_wasm_box_primitive_ref=function(){return(o._mono_wasm_box_primitive_ref=o.asm.Ob).apply(null,arguments)},o._mono_wasm_invoke_method_ref=function(){return(o._mono_wasm_invoke_method_ref=o.asm.Pb).apply(null,arguments)},o._mono_wasm_invoke_method_bound=function(){return(o._mono_wasm_invoke_method_bound=o.asm.Qb).apply(null,arguments)},o._mono_wasm_assembly_get_entry_point=function(){return(o._mono_wasm_assembly_get_entry_point=o.asm.Rb).apply(null,arguments)},o._mono_wasm_string_get_utf8=function(){return(o._mono_wasm_string_get_utf8=o.asm.Sb).apply(null,arguments)},o._mono_wasm_string_from_js=function(){return(o._mono_wasm_string_from_js=o.asm.Tb).apply(null,arguments)},o._mono_wasm_string_from_utf16_ref=function(){return(o._mono_wasm_string_from_utf16_ref=o.asm.Ub).apply(null,arguments)},o._mono_wasm_get_obj_class=function(){return(o._mono_wasm_get_obj_class=o.asm.Vb).apply(null,arguments)},o._mono_wasm_get_obj_type=function(){return(o._mono_wasm_get_obj_type=o.asm.Wb).apply(null,arguments)},o._mono_wasm_try_unbox_primitive_and_get_type_ref=function(){return(o._mono_wasm_try_unbox_primitive_and_get_type_ref=o.asm.Xb).apply(null,arguments)},o._mono_wasm_array_length=function(){return(o._mono_wasm_array_length=o.asm.Yb).apply(null,arguments)},o._mono_wasm_array_get=function(){return(o._mono_wasm_array_get=o.asm.Zb).apply(null,arguments)},o._mono_wasm_array_get_ref=function(){return(o._mono_wasm_array_get_ref=o.asm._b).apply(null,arguments)},o._mono_wasm_obj_array_new_ref=function(){return(o._mono_wasm_obj_array_new_ref=o.asm.$b).apply(null,arguments)},o._mono_wasm_obj_array_new=function(){return(o._mono_wasm_obj_array_new=o.asm.ac).apply(null,arguments)},o._mono_wasm_obj_array_set=function(){return(o._mono_wasm_obj_array_set=o.asm.bc).apply(null,arguments)},o._mono_wasm_obj_array_set_ref=function(){return(o._mono_wasm_obj_array_set_ref=o.asm.cc).apply(null,arguments)},o._mono_wasm_string_array_new_ref=function(){return(o._mono_wasm_string_array_new_ref=o.asm.dc).apply(null,arguments)},o._mono_wasm_exec_regression=function(){return(o._mono_wasm_exec_regression=o.asm.ec).apply(null,arguments)},o._mono_wasm_exit=function(){return(o._mono_wasm_exit=o.asm.fc).apply(null,arguments)},o._mono_wasm_set_main_args=function(){return(o._mono_wasm_set_main_args=o.asm.gc).apply(null,arguments)},o._mono_wasm_strdup=function(){return(o._mono_wasm_strdup=o.asm.hc).apply(null,arguments)},o._mono_wasm_parse_runtime_options=function(){return(o._mono_wasm_parse_runtime_options=o.asm.ic).apply(null,arguments)},o._mono_wasm_enable_on_demand_gc=function(){return(o._mono_wasm_enable_on_demand_gc=o.asm.jc).apply(null,arguments)},o._mono_wasm_intern_string_ref=function(){return(o._mono_wasm_intern_string_ref=o.asm.kc).apply(null,arguments)},o._mono_wasm_string_get_data_ref=function(){return(o._mono_wasm_string_get_data_ref=o.asm.lc).apply(null,arguments)},o._mono_wasm_string_get_data=function(){return(o._mono_wasm_string_get_data=o.asm.mc).apply(null,arguments)},o._mono_wasm_class_get_type=function(){return(o._mono_wasm_class_get_type=o.asm.nc).apply(null,arguments)},o._mono_wasm_type_get_class=function(){return(o._mono_wasm_type_get_class=o.asm.oc).apply(null,arguments)},o._mono_wasm_get_type_name=function(){return(o._mono_wasm_get_type_name=o.asm.pc).apply(null,arguments)},o._mono_wasm_get_type_aqn=function(){return(o._mono_wasm_get_type_aqn=o.asm.qc).apply(null,arguments)},o._mono_wasm_write_managed_pointer_unsafe=function(){return(o._mono_wasm_write_managed_pointer_unsafe=o.asm.rc).apply(null,arguments)},o._mono_wasm_copy_managed_pointer=function(){return(o._mono_wasm_copy_managed_pointer=o.asm.sc).apply(null,arguments)},o._mono_wasm_i52_to_f64=function(){return(o._mono_wasm_i52_to_f64=o.asm.tc).apply(null,arguments)},o._mono_wasm_u52_to_f64=function(){return(o._mono_wasm_u52_to_f64=o.asm.uc).apply(null,arguments)},o._mono_wasm_f64_to_u52=function(){return(o._mono_wasm_f64_to_u52=o.asm.vc).apply(null,arguments)},o._mono_wasm_f64_to_i52=function(){return(o._mono_wasm_f64_to_i52=o.asm.wc).apply(null,arguments)},o._mono_wasm_typed_array_new_ref=function(){return(o._mono_wasm_typed_array_new_ref=o.asm.xc).apply(null,arguments)},o._mono_wasm_unbox_enum=function(){return(o._mono_wasm_unbox_enum=o.asm.yc).apply(null,arguments)},o._mono_wasm_send_dbg_command_with_parms=function(){return(o._mono_wasm_send_dbg_command_with_parms=o.asm.zc).apply(null,arguments)},o._mono_wasm_send_dbg_command=function(){return(o._mono_wasm_send_dbg_command=o.asm.Ac).apply(null,arguments)},o._mono_wasm_event_pipe_enable=function(){return(o._mono_wasm_event_pipe_enable=o.asm.Bc).apply(null,arguments)},o._mono_wasm_event_pipe_session_start_streaming=function(){return(o._mono_wasm_event_pipe_session_start_streaming=o.asm.Cc).apply(null,arguments)},o._mono_wasm_event_pipe_session_disable=function(){return(o._mono_wasm_event_pipe_session_disable=o.asm.Dc).apply(null,arguments)},o._mono_background_exec=function(){return(o._mono_background_exec=o.asm.Ec).apply(null,arguments)},o._mono_wasm_get_icudt_name=function(){return(o._mono_wasm_get_icudt_name=o.asm.Fc).apply(null,arguments)},o._mono_wasm_load_icu_data=function(){return(o._mono_wasm_load_icu_data=o.asm.Gc).apply(null,arguments)},o._mono_print_method_from_ip=function(){return(o._mono_print_method_from_ip=o.asm.Hc).apply(null,arguments)},o._mono_set_timeout_exec=function(){return(o._mono_set_timeout_exec=o.asm.Ic).apply(null,arguments)},o._emscripten_builtin_memalign=function(){return(An=o._emscripten_builtin_memalign=o.asm.Jc).apply(null,arguments)}),kn=o._ntohs=function(){return(kn=o._ntohs=o.asm.Kc).apply(null,arguments)},Sn=o._setThrew=function(){return(Sn=o._setThrew=o.asm.Lc).apply(null,arguments)},On=o.stackSave=function(){return(On=o.stackSave=o.asm.Mc).apply(null,arguments)},xn=o.stackRestore=function(){return(xn=o.stackRestore=o.asm.Nc).apply(null,arguments)},Nn=o.stackAlloc=function(){return(Nn=o.stackAlloc=o.asm.Oc).apply(null,arguments)},jn=o.___cxa_can_catch=function(){return(jn=o.___cxa_can_catch=o.asm.Pc).apply(null,arguments)},Dn=o.___cxa_is_pointer_type=function(){return(Dn=o.___cxa_is_pointer_type=o.asm.Qc).apply(null,arguments)},Mn=o.dynCall_ji=function(){return(Mn=o.dynCall_ji=o.asm.Rc).apply(null,arguments)},Rn=o.dynCall_jiiii=function(){return(Rn=o.dynCall_jiiii=o.asm.Sc).apply(null,arguments)},Tn=o.dynCall_iij=function(){return(Tn=o.dynCall_iij=o.asm.Tc).apply(null,arguments)},In=o.dynCall_j=function(){return(In=o.dynCall_j=o.asm.Uc).apply(null,arguments)},$n=o.dynCall_viijii=function(){return($n=o.dynCall_viijii=o.asm.Vc).apply(null,arguments)},Fn=o.dynCall_iiiiij=function(){return(Fn=o.dynCall_iiiiij=o.asm.Wc).apply(null,arguments)};function Pn(e,t){var r=On();try{return Te(e)(t)}catch(e){if(xn(r),e!==e+0)throw e;Sn(1,0)}}function Cn(e,t,r,n){var o=On();try{Te(e)(t,r,n)}catch(e){if(xn(o),e!==e+0)throw e;Sn(1,0)}}function Un(e,t,r){var n=On();try{return Te(e)(t,r)}catch(e){if(xn(n),e!==e+0)throw e;Sn(1,0)}}function Bn(e,t){var r=On();try{Te(e)(t)}catch(e){if(xn(r),e!==e+0)throw e;Sn(1,0)}}function zn(e,t,r,n){var o=On();try{return Te(e)(t,r,n)}catch(e){if(xn(o),e!==e+0)throw e;Sn(1,0)}}function Wn(e,t,r,n,o){var s=On();try{return Te(e)(t,r,n,o)}catch(e){if(xn(s),e!==e+0)throw e;Sn(1,0)}}function Ln(e,t,r){var n=On();try{Te(e)(t,r)}catch(e){if(xn(n),e!==e+0)throw e;Sn(1,0)}}function Hn(e,t,r,n,o){var s=On();try{Te(e)(t,r,n,o)}catch(e){if(xn(s),e!==e+0)throw e;Sn(1,0)}}function Vn(e,t,r,n,o,s,i,a,c,u){var l=On();try{return Te(e)(t,r,n,o,s,i,a,c,u)}catch(e){if(xn(l),e!==e+0)throw e;Sn(1,0)}}function qn(e,t,r,n){var o=On();try{Te(e)(t,r,n)}catch(e){if(xn(o),e!==e+0)throw e;Sn(1,0)}}function Jn(e,t,r,n,o,s,i,a,c,u,l,_){var f=On();try{return Te(e)(t,r,n,o,s,i,a,c,u,l,_)}catch(e){if(xn(f),e!==e+0)throw e;Sn(1,0)}}function Gn(e,t,r,n,o,s){var i=On();try{return Te(e)(t,r,n,o,s)}catch(e){if(xn(i),e!==e+0)throw e;Sn(1,0)}}function Yn(e,t,r,n,o,s,i){var a=On();try{return Te(e)(t,r,n,o,s,i)}catch(e){if(xn(a),e!==e+0)throw e;Sn(1,0)}}function Xn(e,t,r,n,o,s,i,a){var c=On();try{return Te(e)(t,r,n,o,s,i,a)}catch(e){if(xn(c),e!==e+0)throw e;Sn(1,0)}}function Zn(e,t,r,n,o,s){var i=On();try{Te(e)(t,r,n,o,s)}catch(e){if(xn(i),e!==e+0)throw e;Sn(1,0)}}function Kn(e,t,r,n,o,s,i,a,c,u){var l=On();try{Te(e)(t,r,n,o,s,i,a,c,u)}catch(e){if(xn(l),e!==e+0)throw e;Sn(1,0)}}function Qn(e,t,r,n,o,s,i){var a=On();try{Te(e)(t,r,n,o,s,i)}catch(e){if(xn(a),e!==e+0)throw e;Sn(1,0)}}function eo(e,t,r,n,o,s,i){var a=On();try{return Te(e)(t,r,n,o,s,i)}catch(e){if(xn(a),e!==e+0)throw e;Sn(1,0)}}function to(e,t,r,n,o,s,i,a){var c=On();try{Te(e)(t,r,n,o,s,i,a)}catch(e){if(xn(c),e!==e+0)throw e;Sn(1,0)}}function ro(e){var t=On();try{Te(e)()}catch(e){if(xn(t),e!==e+0)throw e;Sn(1,0)}}function no(e){var t=On();try{return Te(e)()}catch(e){if(xn(t),e!==e+0)throw e;Sn(1,0)}}function oo(e,t,r,n,o,s,i,a,c,u,l){var _=On();try{Te(e)(t,r,n,o,s,i,a,c,u,l)}catch(e){if(xn(_),e!==e+0)throw e;Sn(1,0)}}function so(e,t,r,n,o,s,i,a){var c=On();try{return Te(e)(t,r,n,o,s,i,a)}catch(e){if(xn(c),e!==e+0)throw e;Sn(1,0)}}function io(e,t,r,n,o,s,i,a,c,u,l){var _=On();try{return Te(e)(t,r,n,o,s,i,a,c,u,l)}catch(e){if(xn(_),e!==e+0)throw e;Sn(1,0)}}function ao(e,t,r,n,o,s,i,a,c,u,l,_){var f=On();try{Te(e)(t,r,n,o,s,i,a,c,u,l,_)}catch(e){if(xn(f),e!==e+0)throw e;Sn(1,0)}}function co(e,t,r,n,o,s,i,a,c){var u=On();try{return Te(e)(t,r,n,o,s,i,a,c)}catch(e){if(xn(u),e!==e+0)throw e;Sn(1,0)}}function uo(e,t,r,n,o,s,i,a,c){var u=On();try{Te(e)(t,r,n,o,s,i,a,c)}catch(e){if(xn(u),e!==e+0)throw e;Sn(1,0)}}function lo(e,t,r,n,o,s){var i=On();try{return Te(e)(t,r,n,o,s)}catch(e){if(xn(i),e!==e+0)throw e;Sn(1,0)}}function _o(e,t,r,n){var o=On();try{return Te(e)(t,r,n)}catch(e){if(xn(o),e!==e+0)throw e;Sn(1,0)}}function fo(e,t,r,n){var o=On();try{return Te(e)(t,r,n)}catch(e){if(xn(o),e!==e+0)throw e;Sn(1,0)}}function mo(e,t,r,n,o,s,i,a,c,u,l,_,f,d,m,p){var h=On();try{Te(e)(t,r,n,o,s,i,a,c,u,l,_,f,d,m,p)}catch(e){if(xn(h),e!==e+0)throw e;Sn(1,0)}}function po(e,t){var r=On();try{return Mn(e,t)}catch(e){if(xn(r),e!==e+0)throw e;Sn(1,0)}}function ho(e,t,r,n){var o=On();try{return Tn(e,t,r,n)}catch(e){if(xn(o),e!==e+0)throw e;Sn(1,0)}}function wo(e,t,r,n,o,s,i){var a=On();try{$n(e,t,r,n,o,s,i)}catch(e){if(xn(a),e!==e+0)throw e;Sn(1,0)}}function go(e){var t=On();try{return In(e)}catch(e){if(xn(t),e!==e+0)throw e;Sn(1,0)}}function yo(e,t,r,n,o,s,i){var a=On();try{return Fn(e,t,r,n,o,s,i)}catch(e){if(xn(a),e!==e+0)throw e;Sn(1,0)}}function bo(e,t,r,n,o){var s=On();try{return Rn(e,t,r,n,o)}catch(e){if(xn(s),e!==e+0)throw e;Sn(1,0)}}function vo(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function Eo(e){function t(){wn||(wn=!0,o.calledRun=!0,T||(ue(),r(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),le()))}e=e||p,me>0||(ce(),me>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),t()}),1)):t()))}function Ao(e,t){e,ko(e)}function ko(e){e,ae()||(o.onExit&&o.onExit(e),T=!0),w(e,new vo(e))}if(o.ccall=F,o.cwrap=P,o.UTF8ArrayToString=G,o.UTF8ToString=Y,o.addRunDependency=we,o.removeRunDependency=ge,o.FS_createPath=ct.createPath,o.FS_createDataFile=ct.createDataFile,o.FS_createPreloadedFile=ct.createPreloadedFile,o.FS_createLazyFile=ct.createLazyFile,o.FS_createDevice=ct.createDevice,o.FS_unlink=ct.unlink,o.print=S,o.setValue=Ie,o.getValue=Me,o.FS=ct,he=function e(){wn||Eo(),wn||(he=e)},o.run=Eo,o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return Eo(),t.ready=t.ready.then((()=>mn)),t.ready}})();export default createDotnetRuntime;const MONO={},BINDING={},INTERNAL={},IMPORTS={};var ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;__dotnet_runtime.__setEmscriptenEntrypoint(createDotnetRuntime,{isNode:ENVIRONMENT_IS_NODE,isShell:ENVIRONMENT_IS_SHELL,isWeb:ENVIRONMENT_IS_WEB,isWorker:ENVIRONMENT_IS_WORKER});const dotnet=__dotnet_runtime.moduleExports.dotnet,exit=__dotnet_runtime.moduleExports.exit;export{dotnet,exit,INTERNAL}; \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/dotnet.timezones.blat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/dotnet.timezones.blat new file mode 100644 index 00000000..397e9018 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/dotnet.timezones.blat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/dotnet.wasm b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/dotnet.wasm new file mode 100644 index 00000000..ffc0e949 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/dotnet.wasm differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/icudt.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/icudt.dat new file mode 100644 index 00000000..54093bdd Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/icudt.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/index.html b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/index.html new file mode 100644 index 00000000..38c28922 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/initDotnet.js b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/initDotnet.js new file mode 100644 index 00000000..60efc974 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/initDotnet.js @@ -0,0 +1 @@ +import{dotnet}from"./dotnet.js";export async function initDotnet(t){if(null===t||"string"!=typeof t||0===t.trim().length)throw Error("`baseUrl` must be a string passed to `initDotnet` and be non-empty.");const{getAssemblyExports:e,getConfig:i,Module:o}=await dotnet.withModuleConfig({locateFile:e=>`${t}/${e}`}).create();globalThis.gdPicture={module:o,baseUrl:t};const n=await e(i().mainAssemblyName);return await n.GdPictureWasm.API.Initialize(),{Assemblies:n,Module:o,BaseUrl:t}} \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/BouncyCastle.Cryptography.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/BouncyCastle.Cryptography.dll new file mode 100644 index 00000000..baf513b5 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/BouncyCastle.Cryptography.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/ChromeHtmlToPdfLib.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/ChromeHtmlToPdfLib.dll new file mode 100644 index 00000000..6eff956a Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/ChromeHtmlToPdfLib.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/DocumentFormat.OpenXml.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/DocumentFormat.OpenXml.dll new file mode 100644 index 00000000..235ebb23 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/DocumentFormat.OpenXml.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.API.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.API.dll new file mode 100644 index 00000000..d007a1f7 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.API.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.CAD.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.CAD.dll new file mode 100644 index 00000000..99f3c43c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.CAD.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.Common.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.Common.dll new file mode 100644 index 00000000..c6a52ca3 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.Common.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.Document.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.Document.dll new file mode 100644 index 00000000..6d00b117 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.Document.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.Imaging.Formats.Conversion.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.Imaging.Formats.Conversion.dll new file mode 100644 index 00000000..02b59d08 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.Imaging.Formats.Conversion.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.Imaging.Formats.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.Imaging.Formats.dll new file mode 100644 index 00000000..318d6bd9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.Imaging.Formats.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.Imaging.Rendering.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.Imaging.Rendering.dll new file mode 100644 index 00000000..50112eaf Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.Imaging.Rendering.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.Imaging.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.Imaging.dll new file mode 100644 index 00000000..25f1644c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.Imaging.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.MSOfficeBinary.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.MSOfficeBinary.dll new file mode 100644 index 00000000..b8fdf5a7 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.MSOfficeBinary.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.OpenDocument.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.OpenDocument.dll new file mode 100644 index 00000000..4ceb1d7c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.OpenDocument.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.OpenXML.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.OpenXML.dll new file mode 100644 index 00000000..9eb482b9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.OpenXML.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.PDF.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.PDF.dll new file mode 100644 index 00000000..a425a2fc Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.PDF.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.RTF.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.RTF.dll new file mode 100644 index 00000000..54975a3d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.RTF.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.SVG.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.SVG.dll new file mode 100644 index 00000000..1cc621c4 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.SVG.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.barcode.1d.writer.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.barcode.1d.writer.dll new file mode 100644 index 00000000..3553db4b Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.barcode.1d.writer.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.barcode.2d.writer.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.barcode.2d.writer.dll new file mode 100644 index 00000000..c096abab Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.14.barcode.2d.writer.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.OpenXML.Templating.Wasm.NET7.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.OpenXML.Templating.Wasm.NET7.dll new file mode 100644 index 00000000..40d38dec Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.OpenXML.Templating.Wasm.NET7.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.PSPDFKit.Wasm.NET7.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.PSPDFKit.Wasm.NET7.dll new file mode 100644 index 00000000..0bfa96df Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.PSPDFKit.Wasm.NET7.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.Wasm.NET7.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.Wasm.NET7.dll new file mode 100644 index 00000000..6b2a6837 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/GdPicture.NET.Wasm.NET7.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/Microsoft.CSharp.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/Microsoft.CSharp.dll new file mode 100644 index 00000000..c3ff59ea Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/Microsoft.CSharp.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/Microsoft.Win32.Registry.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/Microsoft.Win32.Registry.dll new file mode 100644 index 00000000..cb52fc9e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/Microsoft.Win32.Registry.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/MsgReader.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/MsgReader.dll new file mode 100644 index 00000000..86de5742 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/MsgReader.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/Newtonsoft.Json.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/Newtonsoft.Json.dll new file mode 100644 index 00000000..76c6d1af Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/Newtonsoft.Json.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/OpenMcdf.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/OpenMcdf.dll new file mode 100644 index 00000000..c52d61c6 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/OpenMcdf.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/RtfPipe.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/RtfPipe.dll new file mode 100644 index 00000000..411819a6 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/RtfPipe.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Collections.Concurrent.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Collections.Concurrent.dll new file mode 100644 index 00000000..ee8e9ccd Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Collections.Concurrent.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Collections.Immutable.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Collections.Immutable.dll new file mode 100644 index 00000000..23f570e8 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Collections.Immutable.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Collections.NonGeneric.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Collections.NonGeneric.dll new file mode 100644 index 00000000..5130b3aa Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Collections.NonGeneric.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Collections.Specialized.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Collections.Specialized.dll new file mode 100644 index 00000000..a6f1bef5 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Collections.Specialized.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Collections.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Collections.dll new file mode 100644 index 00000000..afab3485 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Collections.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.ComponentModel.EventBasedAsync.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.ComponentModel.EventBasedAsync.dll new file mode 100644 index 00000000..cc716f2e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.ComponentModel.EventBasedAsync.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.ComponentModel.Primitives.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.ComponentModel.Primitives.dll new file mode 100644 index 00000000..37d5dd49 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.ComponentModel.Primitives.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.ComponentModel.TypeConverter.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.ComponentModel.TypeConverter.dll new file mode 100644 index 00000000..129b00ff Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.ComponentModel.TypeConverter.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.ComponentModel.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.ComponentModel.dll new file mode 100644 index 00000000..c5a5bfa0 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.ComponentModel.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Console.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Console.dll new file mode 100644 index 00000000..fc06e9a9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Console.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Data.Common.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Data.Common.dll new file mode 100644 index 00000000..55d5f87f Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Data.Common.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Diagnostics.DiagnosticSource.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Diagnostics.DiagnosticSource.dll new file mode 100644 index 00000000..0dead8ab Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Diagnostics.DiagnosticSource.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Diagnostics.Process.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Diagnostics.Process.dll new file mode 100644 index 00000000..b31c509d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Diagnostics.Process.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Diagnostics.TraceSource.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Diagnostics.TraceSource.dll new file mode 100644 index 00000000..7ad55bc5 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Diagnostics.TraceSource.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Drawing.Primitives.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Drawing.Primitives.dll new file mode 100644 index 00000000..28a855d3 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Drawing.Primitives.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Drawing.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Drawing.dll new file mode 100644 index 00000000..87aea18d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Drawing.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Formats.Asn1.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Formats.Asn1.dll new file mode 100644 index 00000000..263da342 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Formats.Asn1.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.IO.Compression.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.IO.Compression.dll new file mode 100644 index 00000000..8c5e8c1c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.IO.Compression.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.IO.Packaging.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.IO.Packaging.dll new file mode 100644 index 00000000..e84cd236 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.IO.Packaging.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Linq.Expressions.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Linq.Expressions.dll new file mode 100644 index 00000000..aa2386a0 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Linq.Expressions.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Linq.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Linq.dll new file mode 100644 index 00000000..78e57038 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Linq.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Memory.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Memory.dll new file mode 100644 index 00000000..b8d5c093 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Memory.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Http.Formatting.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Http.Formatting.dll new file mode 100644 index 00000000..efaa5cf7 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Http.Formatting.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Http.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Http.dll new file mode 100644 index 00000000..c4fcf86d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Http.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Mail.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Mail.dll new file mode 100644 index 00000000..b5f8b734 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Mail.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.NetworkInformation.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.NetworkInformation.dll new file mode 100644 index 00000000..82bf80fc Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.NetworkInformation.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Primitives.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Primitives.dll new file mode 100644 index 00000000..e0f1f503 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Primitives.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Requests.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Requests.dll new file mode 100644 index 00000000..e58a6a0d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Requests.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Security.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Security.dll new file mode 100644 index 00000000..86bc2bd9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Security.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.ServicePoint.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.ServicePoint.dll new file mode 100644 index 00000000..7598ec75 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.ServicePoint.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Sockets.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Sockets.dll new file mode 100644 index 00000000..08bbd5ad Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.Sockets.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.WebHeaderCollection.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.WebHeaderCollection.dll new file mode 100644 index 00000000..e7cc00c2 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.WebHeaderCollection.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.WebSockets.Client.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.WebSockets.Client.dll new file mode 100644 index 00000000..5e8e7c04 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.WebSockets.Client.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.WebSockets.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.WebSockets.dll new file mode 100644 index 00000000..7c2867a7 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Net.WebSockets.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.ObjectModel.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.ObjectModel.dll new file mode 100644 index 00000000..93bc2c37 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.ObjectModel.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Private.CoreLib.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Private.CoreLib.dll new file mode 100644 index 00000000..55f73059 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Private.CoreLib.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Private.Uri.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Private.Uri.dll new file mode 100644 index 00000000..a1b03567 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Private.Uri.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Private.Xml.Linq.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Private.Xml.Linq.dll new file mode 100644 index 00000000..0703407e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Private.Xml.Linq.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Private.Xml.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Private.Xml.dll new file mode 100644 index 00000000..cbcceae3 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Private.Xml.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Runtime.InteropServices.JavaScript.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Runtime.InteropServices.JavaScript.dll new file mode 100644 index 00000000..d5015f04 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Runtime.InteropServices.JavaScript.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Runtime.Numerics.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Runtime.Numerics.dll new file mode 100644 index 00000000..0d8f8316 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Runtime.Numerics.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Runtime.Serialization.Formatters.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Runtime.Serialization.Formatters.dll new file mode 100644 index 00000000..299e30ac Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Runtime.Serialization.Formatters.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Runtime.Serialization.Primitives.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Runtime.Serialization.Primitives.dll new file mode 100644 index 00000000..8aca4f83 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Runtime.Serialization.Primitives.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Runtime.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Runtime.dll new file mode 100644 index 00000000..991d05ac Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Runtime.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Security.Cryptography.Pkcs.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Security.Cryptography.Pkcs.dll new file mode 100644 index 00000000..d4d3a17d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Security.Cryptography.Pkcs.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Security.Cryptography.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Security.Cryptography.dll new file mode 100644 index 00000000..6626e8dc Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Security.Cryptography.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Text.Encoding.CodePages.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Text.Encoding.CodePages.dll new file mode 100644 index 00000000..312e37b6 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Text.Encoding.CodePages.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Text.Encodings.Web.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Text.Encodings.Web.dll new file mode 100644 index 00000000..e70c09a9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Text.Encodings.Web.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Text.Json.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Text.Json.dll new file mode 100644 index 00000000..5df6902f Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Text.Json.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Text.RegularExpressions.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Text.RegularExpressions.dll new file mode 100644 index 00000000..2ca737f0 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Text.RegularExpressions.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Threading.Tasks.Parallel.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Threading.Tasks.Parallel.dll new file mode 100644 index 00000000..eee8512e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Threading.Tasks.Parallel.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Windows.Extensions.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Windows.Extensions.dll new file mode 100644 index 00000000..0d60996c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Windows.Extensions.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Xml.Linq.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Xml.Linq.dll new file mode 100644 index 00000000..7daecef9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.Xml.Linq.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.dll new file mode 100644 index 00000000..1a81d5dc Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/System.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/protobuf-net.Core.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/protobuf-net.Core.dll new file mode 100644 index 00000000..c10c6f24 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/protobuf-net.Core.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/protobuf-net.dll b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/protobuf-net.dll new file mode 100644 index 00000000..2faf78d5 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/managed/protobuf-net.dll differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/mono-config.json b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/mono-config.json new file mode 100644 index 00000000..a11e74bd --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/mono-config.json @@ -0,0 +1,364 @@ +{ + "mainAssemblyName": "GdPicture.NET.PSPDFKit.Wasm.NET7.dll", + "assemblyRootFolder": "managed", + "debugLevel": 0, + "assets": [ + { + "behavior": "assembly", + "name": "BouncyCastle.Cryptography.dll" + }, + { + "behavior": "assembly", + "name": "ChromeHtmlToPdfLib.dll" + }, + { + "behavior": "assembly", + "name": "DocumentFormat.OpenXml.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.API.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.barcode.1d.writer.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.barcode.2d.writer.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.CAD.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.Common.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.Document.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.Imaging.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.Imaging.Formats.Conversion.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.Imaging.Formats.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.Imaging.Rendering.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.MSOfficeBinary.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.OpenDocument.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.OpenXML.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.PDF.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.RTF.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.14.SVG.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.OpenXML.Templating.Wasm.NET7.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.PSPDFKit.Wasm.NET7.dll" + }, + { + "behavior": "assembly", + "name": "GdPicture.NET.Wasm.NET7.dll" + }, + { + "behavior": "assembly", + "name": "Microsoft.CSharp.dll" + }, + { + "behavior": "assembly", + "name": "Microsoft.Win32.Registry.dll" + }, + { + "behavior": "assembly", + "name": "MsgReader.dll" + }, + { + "behavior": "assembly", + "name": "Newtonsoft.Json.dll" + }, + { + "behavior": "assembly", + "name": "OpenMcdf.dll" + }, + { + "behavior": "assembly", + "name": "protobuf-net.Core.dll" + }, + { + "behavior": "assembly", + "name": "protobuf-net.dll" + }, + { + "behavior": "assembly", + "name": "RtfPipe.dll" + }, + { + "behavior": "assembly", + "name": "System.Collections.Concurrent.dll" + }, + { + "behavior": "assembly", + "name": "System.Collections.dll" + }, + { + "behavior": "assembly", + "name": "System.Collections.Immutable.dll" + }, + { + "behavior": "assembly", + "name": "System.Collections.NonGeneric.dll" + }, + { + "behavior": "assembly", + "name": "System.Collections.Specialized.dll" + }, + { + "behavior": "assembly", + "name": "System.ComponentModel.dll" + }, + { + "behavior": "assembly", + "name": "System.ComponentModel.EventBasedAsync.dll" + }, + { + "behavior": "assembly", + "name": "System.ComponentModel.Primitives.dll" + }, + { + "behavior": "assembly", + "name": "System.ComponentModel.TypeConverter.dll" + }, + { + "behavior": "assembly", + "name": "System.Console.dll" + }, + { + "behavior": "assembly", + "name": "System.Data.Common.dll" + }, + { + "behavior": "assembly", + "name": "System.Diagnostics.DiagnosticSource.dll" + }, + { + "behavior": "assembly", + "name": "System.Diagnostics.Process.dll" + }, + { + "behavior": "assembly", + "name": "System.Diagnostics.TraceSource.dll" + }, + { + "behavior": "assembly", + "name": "System.dll" + }, + { + "behavior": "assembly", + "name": "System.Drawing.dll" + }, + { + "behavior": "assembly", + "name": "System.Drawing.Primitives.dll" + }, + { + "behavior": "assembly", + "name": "System.Formats.Asn1.dll" + }, + { + "behavior": "assembly", + "name": "System.IO.Compression.dll" + }, + { + "behavior": "assembly", + "name": "System.IO.Packaging.dll" + }, + { + "behavior": "assembly", + "name": "System.Linq.dll" + }, + { + "behavior": "assembly", + "name": "System.Linq.Expressions.dll" + }, + { + "behavior": "assembly", + "name": "System.Memory.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.Http.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.Http.Formatting.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.Mail.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.NetworkInformation.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.Primitives.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.Requests.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.Security.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.ServicePoint.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.Sockets.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.WebHeaderCollection.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.WebSockets.Client.dll" + }, + { + "behavior": "assembly", + "name": "System.Net.WebSockets.dll" + }, + { + "behavior": "assembly", + "name": "System.ObjectModel.dll" + }, + { + "behavior": "assembly", + "name": "System.Private.CoreLib.dll" + }, + { + "behavior": "assembly", + "name": "System.Private.Uri.dll" + }, + { + "behavior": "assembly", + "name": "System.Private.Xml.dll" + }, + { + "behavior": "assembly", + "name": "System.Private.Xml.Linq.dll" + }, + { + "behavior": "assembly", + "name": "System.Runtime.dll" + }, + { + "behavior": "assembly", + "name": "System.Runtime.InteropServices.JavaScript.dll" + }, + { + "behavior": "assembly", + "name": "System.Runtime.Numerics.dll" + }, + { + "behavior": "assembly", + "name": "System.Runtime.Serialization.Formatters.dll" + }, + { + "behavior": "assembly", + "name": "System.Runtime.Serialization.Primitives.dll" + }, + { + "behavior": "assembly", + "name": "System.Security.Cryptography.dll" + }, + { + "behavior": "assembly", + "name": "System.Security.Cryptography.Pkcs.dll" + }, + { + "behavior": "assembly", + "name": "System.Text.Encoding.CodePages.dll" + }, + { + "behavior": "assembly", + "name": "System.Text.Encodings.Web.dll" + }, + { + "behavior": "assembly", + "name": "System.Text.Json.dll" + }, + { + "behavior": "assembly", + "name": "System.Text.RegularExpressions.dll" + }, + { + "behavior": "assembly", + "name": "System.Threading.Tasks.Parallel.dll" + }, + { + "behavior": "assembly", + "name": "System.Windows.Extensions.dll" + }, + { + "behavior": "assembly", + "name": "System.Xml.Linq.dll" + }, + { + "virtualPath": "runtimeconfig.bin", + "behavior": "vfs", + "name": "supportFiles/0_runtimeconfig.bin" + }, + { + "loadRemote": false, + "behavior": "icu", + "name": "icudt.dat" + }, + { + "virtualPath": "/usr/share/zoneinfo/", + "behavior": "vfs", + "name": "dotnet.timezones.blat" + }, + { + "behavior": "dotnetwasm", + "name": "dotnet.wasm" + } + ], + "remoteSources": [], + "pthreadPoolSize": 0 +} \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/package.json b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/package.json new file mode 100644 index 00000000..3e0a2a7f --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/package.json @@ -0,0 +1 @@ +{ "type":"module" } \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resourceLoader.js b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resourceLoader.js new file mode 100644 index 00000000..9d7103fe --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resourceLoader.js @@ -0,0 +1 @@ +let require,resources;const ENVIRONMENT_IS_NODE="string"==typeof globalThis.process?.versions?.node,ENVIRONMENT_IS_DENO="object"==typeof window&&"Deno"in window||"object"==typeof self&&"Deno"in self;export async function initialize(){if(ENVIRONMENT_IS_NODE){const{createRequire:e}=await import("module");require=e(import.meta.url)}else if(ENVIRONMENT_IS_DENO){const e=(await import("./resources/list.json",{assert:{type:"json"}})).default,r=await Promise.all(e.map((e=>{const r=new URL(`./resources/${e}`,import.meta.url);return globalThis.fetch(r).then((async e=>{if(e.ok)return e.arrayBuffer()})).then((r=>({buffer:r,filename:e}))).catch((()=>({buffer:void 0,filename:e})))})));resources=r.reduce(((e,{filename:r,buffer:t})=>(e[`${globalThis.gdPicture.baseUrl}/resources/${decodeURI(r)}`]=t,e)),{})}}export function fetchResource(e,r){fetch(`${globalThis.gdPicture.baseUrl}/resources/${e}`,r)}export function fetch(e,r){try{if(ENVIRONMENT_IS_NODE){const t=require("node:fs"),o=require("node:path"),i=t.readFileSync(o.normalize(e));globalThis.gdPicture.module.FS.writeFile(r,new Uint8Array(i))}else if(ENVIRONMENT_IS_DENO)globalThis.gdPicture.module.FS.writeFile(r,new Uint8Array(resources[e]));else{const t=new XMLHttpRequest;t.open("GET",e,!1),t.overrideMimeType("text/plain; charset=x-user-defined"),t.send(),200===t.status?globalThis.gdPicture.module.FS.writeFile(r,stringToArrayBuffer(t.response)):console.error(`Could not retrieve resource. Status: ${t.status}`)}}catch(e){console.error(`Could not retrieve resource. Exception: ${e}`)}}function stringToArrayBuffer(e){const r=new ArrayBuffer(e.length),t=new Uint8Array(r);for(let r=0,o=e.length;rˆžé©®®Õv6w7j{Õÿ ¥ü©¬GgL[±çLûqL‡q—Lí8Ž+¦(]}õuC 4Ð-1ÔPwÄH#Ýcµ$&šè˜jªGb¦™žˆ¹æz&Zè…¨»îW"wî7¢á†ß‰¦›þ +þ$Znù‹pé›è¸ã¢ë®‘¡çžS†Ÿº’¥_ êVG \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_78-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_78-V.dat new file mode 100644 index 00000000..a516681c --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_78-V.dat @@ -0,0 +1 @@ +xÚ%̽jÂ`ÆñóJî¢pÂñ}B]t(…ñ\:…²ekoSDpñìwý¶zÀÿðÉpÔ›%¾IïAîuºm®¡o[hx´'[jx¶±­4LíÅÖJ+m£b0¼«DD|¨ħJ† _*9r|«(ð£R¡Â¯J* lUZ´Ø¹BãÞF\ñŽ®0ãÉæ<»Â‚WXñßÖ¼ºÂ†’JË–!•W¾±“†Tº1 \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_78ms-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_78ms-RKSJ-H.dat new file mode 100644 index 00000000..8571d516 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_78ms-RKSJ-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_78ms-RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_78ms-RKSJ-V.dat new file mode 100644 index 00000000..fa7c606c --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_78ms-RKSJ-V.dat @@ -0,0 +1,3 @@ +xÚEÆKK”aàû‚!Ú>ï÷ý×Z+ÓÁDÃJ£ uÁ_´i“‰;;ŸÏ -ºVWQIioq]M}uñù¢ÿ¯ +°¯ÿÄNØrûØ¶ÂžŠ·q[áŒ=kŸ˜ Á^¶OMÐd[í3tÙ›ö¹ ì¾W9›³;1ämÞ¾ŒaÌŽÛ± ` ¶6BÒ%Ýkƒ”K¹7i—vo 2.ãÞd]Ö½7Ør[îƒÁ¶Ûv vÜŽûd°ëvÝgƒ=·ç¾”ù2ÿÕ Ü—ûoq÷ß *}¥ÿaPå«üOƒ„Oø_~ßoƒ?àÿ¨Wƒ~Ð!îùû>I&yL0Ä!–RLñ¤`˜Ã<-H3ÍÁGX!È0ÃÁ(GÙ È2ËAŽ9Ö ò̳_0Æ1Œsœ¥‚ ¬Lp‚u‚IN²V0Å)V +¦9ÍnÁ g˜Ìr–×sœãEÁ<çé \`»`‘‹l,q‰}‚e.ó‚`…+¼!Xå*;k\ã%Á:×yU°Á žlr“×Ú¤ Y›õv„„&ô`ˆmÑ»ZµU…hÓ6½¡];´( :µSDèÒn==Ú£#\Ñ^=}Ú§"ÜR«GÃà/R;áÛ \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_83pv-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_83pv-RKSJ-H.dat new file mode 100644 index 00000000..ab4e2e4b Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_83pv-RKSJ-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90ms-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90ms-RKSJ-H.dat new file mode 100644 index 00000000..a8f8ba36 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90ms-RKSJ-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90ms-RKSJ-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90ms-RKSJ-UCS2.dat new file mode 100644 index 00000000..b5d22be8 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90ms-RKSJ-UCS2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90ms-RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90ms-RKSJ-V.dat new file mode 100644 index 00000000..a47109f2 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90ms-RKSJ-V.dat @@ -0,0 +1,2 @@ +xÚEÆKK”aàû‚!Ú>ï÷ý¡]ÙÊt0ѰÒ(ÈBÏš A­zß÷–‡6.Š¢E1Žã83:žÏGðDmÚdâÎÎçsB‹®ÕUTr¤§¯¸¶º®ªø|ÑÿWØSƒb'l™}l‚r[nOEˆÛ¸­pÆžµOLPo/Û§&h´-ö™ :íMûÜvÏ+ƒœÍÙíò6o_Æ0jÇì‹XP°[!é’îµAʥ܃´K»·—qï ².ëÞlºM÷Á`Ëm¹ÛnÛ}2Øq;î³Á®Ûu_ J}©ÿjPæËü7ƒ¸ûï¾Âÿ0¨ô•þ§AÂ'ü/¿ç·A¿ï÷ Ô«Gˆ?àƒ÷ü} ƒ$“, rG)¦xR0Ä!ž¤™fµ`˜Ã,d˜a³`„#¬d™e· ÇëyæÙ'å( Æ8Æc‚ ¬Œsœµ‚ N°F0ÉIV¦8Å.Á4§™Ìp†×³œåEÁçèóœg›` l,r‘½‚%.ñ‚`™Ë¼!Xá +Û«\å%Á×xU°Îužlpƒ× Ú¨û I›ôv„„&tˆfmÖ»Z´E„hÕV½¡MÛµ( :´CDèÔ.=ÝÚ­#\Ñ=½Ú«"ÜR«‡Ãà/7?áÏ \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90msp-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90msp-RKSJ-H.dat new file mode 100644 index 00000000..d60b4783 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90msp-RKSJ-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90msp-RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90msp-RKSJ-V.dat new file mode 100644 index 00000000..cfe70499 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90msp-RKSJ-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90pv-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90pv-RKSJ-H.dat new file mode 100644 index 00000000..265cf14d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90pv-RKSJ-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90pv-RKSJ-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90pv-RKSJ-UCS2.dat new file mode 100644 index 00000000..264f511c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90pv-RKSJ-UCS2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90pv-RKSJ-UCS2C.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90pv-RKSJ-UCS2C.dat new file mode 100644 index 00000000..2f5def6c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90pv-RKSJ-UCS2C.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90pv-RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90pv-RKSJ-V.dat new file mode 100644 index 00000000..c85cc6aa --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_90pv-RKSJ-V.dat @@ -0,0 +1 @@ +xÚEÆMK”Qàûˆ2¡ÔxÎù‚ÐÊ "Cnü€6!„¸iת…»ó<7 æBr|ÇÑüÌ¥:ó D„6®†ÁZZjš©-¼VWª­õí»–Þ®¾-/SÏ8Ô<ÃuÏc:îŠëŽ=qOÜ«Ø÷Å½Žƒñ»¸7q(ˆ‹5Ç‚œæôDh¢?yÍëOAA z*(jQÏe-ë/AE+ú[PÕªž õP/Gz¤—‚vk·?‚´¥íJÐav-è´Nû+ÈXÆn6`ÿVs+ÈZÖî4дÌežÌ0ÛŠ£#žÊÏdTXáSE•UžÍXá +OgÔXãcÅ*WùDQgç2lð‘b÷ùLS“M¾P´ØbO±ÎuvÜàsE‡Ví~»ßTüÒž¶k \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Add-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Add-V.dat new file mode 100644 index 00000000..b723ddd7 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Add-V.dat @@ -0,0 +1 @@ +xÚ%ÎMK”aÅñsKCDPÔ¸ïëj®‹a-jD C:F«¤Ð-õ™ÇG-EÏʃ6µHÐúu"‚6}‡Þßßïè¿8˧1:œ¿Õø·Ý€Ü%üoäœ6õY ¦¦×®®7ô¢>á²^Ñ1ŒêU}ØŽiO0®ã:)èjW§:¡7×´¯¯bȈ½ŽhZÓÞD¸¹½hYËÞE´­mï#:Ö±…ö1¢´Ò>ETVÙçˆÚjû1´MëJÈWükƼéß2–ûž1oùŒyÛfÌ;þ+c^øïŒyé2æ•#¡öÚCÂÐ7}$…iNóxB=Kè³ÏÁ gØH˜å,ï nóI˜ãO$Ìsž \àÉ„‚O' 8ྠdÉ3 ‹\ä©„ŠwK\âž`™Ë<›°Â>Üå=>‘°ÊU jÖ<¬qOë\ç`È!·[[ho \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-0.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-0.dat new file mode 100644 index 00000000..46a900d3 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-0.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-1.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-1.dat new file mode 100644 index 00000000..cc0448e8 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-1.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-2.dat new file mode 100644 index 00000000..9c02a633 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-3.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-3.dat new file mode 100644 index 00000000..c2ea5f03 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-3.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-4.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-4.dat new file mode 100644 index 00000000..8df3a15e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-4.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-5.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-5.dat new file mode 100644 index 00000000..42421863 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-5.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-6.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-6.dat new file mode 100644 index 00000000..56e68c7c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-6.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-7.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-7.dat new file mode 100644 index 00000000..33db65eb Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-7.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-B5pc.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-B5pc.dat new file mode 100644 index 00000000..d65b9bf0 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-B5pc.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-ETenms-B5.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-ETenms-B5.dat new file mode 100644 index 00000000..8165b275 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-ETenms-B5.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-H-CID.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-H-CID.dat new file mode 100644 index 00000000..ac2e376d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-H-CID.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-H-Host.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-H-Host.dat new file mode 100644 index 00000000..fb2e9201 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-H-Host.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-H-Mac.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-H-Mac.dat new file mode 100644 index 00000000..302bdfb0 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-H-Mac.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-UCS2.dat new file mode 100644 index 00000000..d1e3b07c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-CNS1-UCS2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-0.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-0.dat new file mode 100644 index 00000000..b6d05924 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-0.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-1.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-1.dat new file mode 100644 index 00000000..ee304d0e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-1.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-2.dat new file mode 100644 index 00000000..a4f0bd70 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-3.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-3.dat new file mode 100644 index 00000000..f250662e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-3.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-4.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-4.dat new file mode 100644 index 00000000..acc71545 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-4.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-5.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-5.dat new file mode 100644 index 00000000..9b78c40e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-5.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-UCS2.dat new file mode 100644 index 00000000..725a844b Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-GB1-UCS2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-0.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-0.dat new file mode 100644 index 00000000..04bb9ac4 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-0.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-1.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-1.dat new file mode 100644 index 00000000..addb6246 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-1.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-2.dat new file mode 100644 index 00000000..4cc5ec8e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-3.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-3.dat new file mode 100644 index 00000000..bdb56a82 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-3.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-4.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-4.dat new file mode 100644 index 00000000..a43767cd Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-4.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-5.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-5.dat new file mode 100644 index 00000000..71400f97 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-5.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-6.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-6.dat new file mode 100644 index 00000000..8f3c5a4d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-6.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-90ms-RKSJ.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-90ms-RKSJ.dat new file mode 100644 index 00000000..e049e02b Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-90ms-RKSJ.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-90pv-RKSJ.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-90pv-RKSJ.dat new file mode 100644 index 00000000..4e632385 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-90pv-RKSJ.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-H-CID.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-H-CID.dat new file mode 100644 index 00000000..ac40ffe5 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-H-CID.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-H-Host.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-H-Host.dat new file mode 100644 index 00000000..fcb56d54 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-H-Host.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-H-Mac.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-H-Mac.dat new file mode 100644 index 00000000..dfba535c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-H-Mac.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-UCS2.dat new file mode 100644 index 00000000..9e40df62 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan1-UCS2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan2-0.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan2-0.dat new file mode 100644 index 00000000..aa5004ff Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Japan2-0.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-0.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-0.dat new file mode 100644 index 00000000..32240d5e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-0.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-1.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-1.dat new file mode 100644 index 00000000..c0545801 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-1.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-2.dat new file mode 100644 index 00000000..33f7cf3f Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-H-CID.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-H-CID.dat new file mode 100644 index 00000000..18faba63 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-H-CID.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-H-Host.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-H-Host.dat new file mode 100644 index 00000000..93e1ff92 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-H-Host.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-H-Mac.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-H-Mac.dat new file mode 100644 index 00000000..6a47ad70 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-H-Mac.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-KSCms-UHC.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-KSCms-UHC.dat new file mode 100644 index 00000000..3fba1e58 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-KSCms-UHC.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-KSCpc-EUC.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-KSCpc-EUC.dat new file mode 100644 index 00000000..30597cd3 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-KSCpc-EUC.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-UCS2.dat new file mode 100644 index 00000000..ada286a1 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Adobe-Korea1-UCS2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_B5-H.dat new file mode 100644 index 00000000..1890fd27 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_B5-H.dat @@ -0,0 +1,9 @@ +xÚ%Ë[P”çÇñçGŒ j"5â’h8ÈAw¦m&ÍS/2Q{‘ÄJlb&ñ”ÄhzÑÓØÌßd¦ÍE;ét2$39Lã¢ä Ëaq—å(ì*°,*°Ë²», o«ÿö™éûÞ¼Ÿïïÿ®ØkÊ|Eˆ!DDüÿÑߟ ©˜cÄ6AâU¤:¬Ž üVQfÞV¤ô‰R‹*_ ª¢jYˆ%¥_!–+C@擞 ò9ÿ%@PÁZM£@sAKÁ’ŽéâÁ¨‹|ñëÈB* jraÖ#ETôÕ#PE\äÔ*¦â´PÅ\|jä%ºÔ©u‰/­|²„JN< +UÂ%Z¥TŠ•P¥\*WB–QÙOZe\æÑ*§òƒ*X~þ1p9—_ˆ²‚*Ü:VpÅúÇ!+©òìãP•\Y­e&óºX(s¯ùÕXô™Ùüy,dU™u¬âª€ÖeºüëUP—ùòßVA^¡+3ZWøÊÎÕÕTýåj¨j®îЪ¡šÔ5P5\sl d-Õ¶jÕríµê¨îí' ê¸î‡' ¯ÒÕk]å«?²žê¿}ªžë]Z Ô°g-T7üa-d#5ök5rc\d5ý.ª©³©"7š¸iHÇktmÍ:¨k|íÀ:Èfj.Ñjææi-Ëk–—ãñºåuË`œ8h!Ëáx( [þÙB-Z-ܲý)ÈVj½ðT+·Z´Ú¨msT[iÛ[ (kã¶÷ Û©½QÇvG»‘€®ö®ö“ ÂÙÎí©‰Öw­y‰8j%롬õÖoÑ`m°šE£µÑZ™(š¬l­Ò—¶C¶H"òly¶OÅ6²­Zec[îzÈêø‡Vwôj]§ë™Iö}ö3IØoßo?#ØOÛÏ%áŒìß%AÙ›íeI°Ø-öo“D‹Ýo¿‘„9;Û—ôrÄn€rD¯lÀ’cÉMËvü´²‹º +õÖÅ]SZNrîÝådç!»©Û«ÕÍÝ[6AöPÏg› z¸§I«—z7> Õ˽‡Ÿ†ì£¾:­>î[Ôê§þƒ›¡ú¹ÿëÍ4Ôà¬dÈ›tó«d¨›|Ó©5Hƒi[ yðÔÈ!êÔâ¡•[!]ä:±ÊÕå*Ø +§ËéúMŠèv±«WoîOÝØ†óîóî†ñ'7¹_Øåf÷KÛ oÑ­µnñ­Q­ÛtûÛ¡nóíO·CÓ°[kxlx} +¼ÃÞáž­b|˜‡¥@ŽÐÈÙ¨‘¢‘êðH£Ž£4Ÿ +5Ê£¯¥BzÈcÖòüÇHÅÏϩ⡇=ûž£±Ï@ñØ_µ¼äÖò²wdzã4þ—g¡Æyܦu‡î¤<u‡ï}r‚&Z´&x‚µ&iòȨIžü~äMZS<õ³wéî7;¡îòÝ!­{to÷óP÷øÞ¼O÷û´îóýµiÓ4ýQÔtþty +¦yÚ¬ãÌÇ3«Óqn†fö¦CÍðÌtÈYš-ÑšåÙi-ß›¾—3ð–|Ç2 |Aß—ùB¾Ê4ö±Ï•é'ÿ¤ÞüJ&Æücþ_¥ ¯ŸýïdBÎÑÜ…L¨¹’9K&Jçx +$ï‚ +ÌŽì‚/à $d €E» çi¾Aoó<¿¬<ÌËB^0/Ø™)ÞRðLTÐügº‚]Á£Âä % 2t,ÊÂñЇ¡Älœ½›#΄(”œ âPv6døýðß³ñAøƒð|Ž8¦pÞÂíag6¬aÏë“…³ é9øxŽæ@-ðÂéÈÈɈ=ïE(Ô1R‰ÍEm¤6Èu‘‘ä\<Œpäd.ä"-¾Ÿ µÈ‹EZÑcÑ»qqYûÄÿ²ãRUy?SÇ”9ï*RzL©E•/Qµ¬¿Tz ±¬Xz Ÿt•Ïù¯ÒD¦o´L¦ ÉÔlZZLã¦ìWèÊáPWøÊZTÐ*à‚Œ•…TøùJ¨B.tjQQÊ*¨".:³ +ò*]íкÊW£ž‚,¦âSOAs±I«„JUÂ%2 +²”J¿Õ*åRV•½ú4TÙ“²‹OƒË¸ìR´åTîÖa9—ox²‚*Î?UÁUZf2¯†2÷˜^3›/GCVR¥Y‡•\é׺F×~¼ê_ûËjÈët}Fë:_ßµ²Šª>[UÅUíZÕT¼ªš«O®…¬¡š­®ùN«–jß}ª–kÿù,ä ºño­|ãûÏAÖQÝWÏAÕqK«žê÷®ƒªçúß­ƒl †>­nˆ‰l¤Æ_Ç@5v4–Çàv#7êð&Ý\»ê&ß<´²‰šŠµš¸iZËò¦åõX¼eyË2#[Èr4Ê–?ÆB6Só„V37ïx²…Z.=ÕÂ-­VjÝÕZÒúNJ[¹õ½8È6jkÐa›£ÍˆCg[gÛé8álã¶äxHëqknÄCG’ ‡iø|ÔpápUІy¸A‡#4› 5Â#o&CzÈcÖòüÇãOÆcÏcϧÉ≇=^„¥ÑC/Bò蟵ÆhlZkŒÇv¾9Nãz jœÇmZ÷é~ÒËP÷ùþ‰—!'h¢Yk‚'Xk’&턚äÉ서¢)CkЧ¾· ò=ørÔ~0¨õîyê!?üí+èQ¯Ö#~´.rš¦•5?]–Ó4O›u8óáÌšT\˜¡™ý©P3/)£¾QßRŘ}¿H‡œ£¹KéPsÅs–t”ÌñÜmúÉŸ¸Ê?ë?¶^¿×—)|~ö§ùzÝÍóü²VàH 7¹Ü@Gºx;@sPGàïè tN¤ g€– ÈàÉ`0yÁ_ã3q6x6x“^ôöwŠÆ¿KúÐ÷›ô£¿¬¢xJ1xÒ,:„¡I ñŽ cØcM"yƒ¤úFÒHg¬¢#y@2ȘºDG1Z#Yd_1ŒuØDsÈ]!ãÿH&0³‹Nbò6É#ÿ“Laªà- ð˜Lcú¸S´ˆâ™ÁÌkRBÉæÅì5RFù ™Ã\Â-:ù{d H•ŠGt‹ÏHÕS^Ñ%,]"ËX~OV°ð‰ÖP»IV±ú¬a-ç]ÇúCRG½- º:i ñ’lb³3(º…-ml";؉‡Dw±{‡4ÑüEö°W +‹îcÿ 9ÀÁ‰ˆh ­}rˆÃ·ä(}äŠÊ?š‹šd \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_CNS2-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_CNS2-V.dat new file mode 100644 index 00000000..c32d92fa Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_CNS2-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_CourierStdToNew.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_CourierStdToNew.dat new file mode 100644 index 00000000..bf30555e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_CourierStdToNew.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_DefaultCMYK.icc b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_DefaultCMYK.icc new file mode 100644 index 00000000..881cfb41 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_DefaultCMYK.icc differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_DroidSansFallbackFull.ttf b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_DroidSansFallbackFull.ttf new file mode 100644 index 00000000..8d0d69a7 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_DroidSansFallbackFull.ttf differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_DroidSansMono.ttf b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_DroidSansMono.ttf new file mode 100644 index 00000000..98e21409 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_DroidSansMono.ttf differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_ETHK-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_ETHK-B5-H.dat new file mode 100644 index 00000000..a19245c5 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_ETHK-B5-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_ETHK-B5-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_ETHK-B5-V.dat new file mode 100644 index 00000000..7023d86e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_ETHK-B5-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_ETen-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_ETen-B5-H.dat new file mode 100644 index 00000000..772fe376 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_ETen-B5-H.dat @@ -0,0 +1,4 @@ +xÚ%ÓkpÔÕðóDD(!&pIT0reÚ:ÖSfêøAE"VœÊM¥P?´ˆ•:/:Óú¡;ÇÑδ:= äº\È…l.»Ùd“%Hvsߨd“Íîf³ÉßÂÛž™žóåüžçóéœè_¾yê£ô}¦ôW„ˆB°øÿÒçÏ„TÌQb› ñš RQ'ÞVG•Ù„w)=¢Ô¢Êˆ¨ˆZbIé-IJbeÈ\ÒT.ç¾È<Êû^+¯>ohÈkÌ[Òá%ºt( +ê_ú: +2ŸòZùœŸñd|õT8µ.Óå”P—ùòéWèJ›Ö¾²òQÈB*<ù(T!æiQVBq‘\ YLÅ?hsñ¨V •¼ðTÉÃ’ K¸äb´¥TêÖa)—®²ŒÊÎ=UÆeZf2¯‹†2w›_‹F™ÍŸGC–S¹Y‡å\î׺JW_]u•¯þuä5º6­u¯í\ YA_®†ªàŠV­JªL^UÉ•Ç×@VQU“VWýW«šªß}ªš«ÿõäuºþ£Öu¾þÓ'!k¨æ»'¡j¸Æ¥UKµ{ÖBÕríï×BÖQ]¯V×ÅÄ@ÖSýG1Põmõ¥1h¯çú~Þ kÖAÝà×A6PC¡V7xµ,¯[^ŽÅ–7,}1â…,Gb¡,lùS,d#5Nh5rãö§ ›¨éâSPMÜdÑj¦æÍqPÍEÍïÄ¡¸™›ßƒl¡–:¶t´qèlél9'œ-Ü’i}ÏšcV²þ!ÊZcý6µÖZ«9^ÔYë¬eñ¢ÞÊÖr=i;l Ç#Ç–cû$^¼e#ÛªõP6¶e¯‡l¥Ö¿kµrk·–ìé Pv‹ýG Ñî¶oŒÂ€}Ì^a‚Ç Æíl¯Óo·ÚMPmܶa/d;µŸß Õ~»½J˱ßq6ç¢ÄAÇÇùœuãújGƒ£8‡Åñ]‚htÌ:Ú0ç`ÇRduDo€êˆt¼²KK‘±ÜÁ?l€ì¤Î|Ýurç”–“œû6B9ÙùÅFÈ›tÓ£u“onÙÙE]Ÿm‚êâ®z­nêÞø4T7wy²‡zªµz¸gQ«—zm†êåÞ¯7CÞ¢[­[|+#ò6Ýþ*ê6ßvjõQ_ʨ>î;½²ŸúÛ´ú¹åVH¹Nn…ruºò¶ÂérºÞL7]ìêÖûS7¶á‚û‚»6IüÑMî¶A¹ÙýÒ6Èø^k€F´iðgÛ¡yðÓíC4äÖZŸÏg¨k«â¡ÃIÃ4|. j¸`¸" —‡y¸N‡#4› 5Â#¯'CŽÒ¨Ykô?£þd<}0úE²x8Ê£ûŸ£±ƒÏ@ñØ_´<äñjyسãYÈqÿó³Pã›ÿïñZò®Ñ·Ô¾5 lh3 #Û\ÃĦö£á˶а´¥­T †¨’"ÅZ… 6*2lUr䨩(°W)Qâ R¡ÂQ¥F“JDÄÙ/®0åÕïæ +3Þ]a·+,øt…%_®°â¯+¬)‰DF†DŽ<±‘„?h‰h_ \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Ext-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Ext-H.dat new file mode 100644 index 00000000..f6c96ba6 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Ext-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Ext-RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Ext-RKSJ-H.dat new file mode 100644 index 00000000..9d14028a Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Ext-RKSJ-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Ext-RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Ext-RKSJ-V.dat new file mode 100644 index 00000000..31763f8c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Ext-RKSJ-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Ext-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Ext-V.dat new file mode 100644 index 00000000..5e341e08 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Ext-V.dat @@ -0,0 +1 @@ +xÚ%ÎÉJQ…ásƒy×Õ÷¤«hš¤ó"J“I¢Q‘ˆd£4¡Iz¥â[ºÜøÎó|ÅQËïT½svœë·ïJð_­Á˜çâ”Ê¡‡Ñ¸ëÑd“Û-¶8òXá*/Ä­³ÃKq]vyàÑc{}ö¹ï1à€c Nx%nÆ7=æœsÇcÁ'íF»±åvôZk¬7SÓ[A¢‰Þ RMõ^k®‚B }LuªO‚RK}TZé‹ ¼i¯A±ØÞ‚zŠ%öKí3(–ÛWP¬°ï ØÔ~‚b¥!Be•¹'vjµÈ­e£l)r‡ÙQ¶¹_I.@£ \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GB-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GB-EUC-H.dat new file mode 100644 index 00000000..876ab671 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GB-EUC-H.dat @@ -0,0 +1,2 @@ +xÚ%ÍIHÔqðßûkf–¶h{JQ½Ö)ȽDa—ŠA]êjDuÉk„z£ÎŒä¾/3êŒû¾ï:îã:Ž£$õ¥oôÞáó}ßË‹LMIºûàNRš1–1&Ýüæ÷FŒ*`™ËÜÄsż3ÉaÂNŸ)²ùlõFm›¶m#ÛoÛÍFv„ˆæsž“Ü½Ü +b¯´G[ⶇìW-Q‡Û‘nIŸ#àÈàåt9³,ñ8ýÎZKrò¶ò|,ó‘ÿïQ« “¢ð)BQT¸h1Š_”xI)J‰–¡ì)Gù,©@Å­ÑJTf‘*TjT?:,ZƒšrR‹Ú¸HÑ:Ô½!õ¨ï% hH>"ê‚+“¸áö“F4¦E‰6¡ÉNšÑ~TÔÏ3â…×EZÐ’pL´­oIÚÆI;ÚoF‹v ã+éDç.éB×ýÑnt’ôÄíEï+Ò‡¾vÒþë'D0ð‰ bp a(å¤è0†¿“‘_# £}xJt cedã±±¢˜xM&1ÙC¦0•':éÏd3«d³©§Eç0—K|ð…ÇüS²€…²ˆÅø³¢KXÊ ËX#+X¹qNt«_ˆþ YÃÚ½ó¢ëXÿI6°}At›/ɶÚÈ6¶¯] ð‘ì`gž¼}It»ßH¡?d{ãE÷±_/`Rî \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GB-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GB-EUC-V.dat new file mode 100644 index 00000000..fcc9b6fd --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GB-EUC-V.dat @@ -0,0 +1,3 @@ +xÚ-ÊÉ ‚`Eáû¿¸0Ï +(Á!àT€ í=îFX¸Ô +!„BDýVgq¼Sà¢Ð½œFüHb‰m4ÚFZj±ài™MÕå–ÛUð²ÊŽâl¦G‚;܋˘q-(Xp®xóø’%ŠŠCAÍšKEƪhÙò&èØñ"èÙ3 ¸R|VÄAÖ \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GB-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GB-H.dat new file mode 100644 index 00000000..695fe1c8 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GB-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GB-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GB-V.dat new file mode 100644 index 00000000..af567748 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GB-V.dat @@ -0,0 +1,4 @@ +xÚ%Ê= +Â@Eá;,ÁBüyòrI +Ke‰¢.@£B2kwÀ¯8ÕÉMÕf)O‡d†?É-·  Ñ΂ +k{+m®®²Ê>‚ƒ»‹‹m¡H#Á–;ÞÄ•,é5k.Gžxçé¹R^;®={ªbàÀ¯`äÈ—`âÄ· 2r£øµ«º \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GBK-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GBK-EUC-H.dat new file mode 100644 index 00000000..531672ad Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GBK-EUC-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GBK-EUC-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GBK-EUC-UCS2.dat new file mode 100644 index 00000000..5b5f8002 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GBK-EUC-UCS2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GBK-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GBK-EUC-V.dat new file mode 100644 index 00000000..a67b0113 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_GBK-EUC-V.dat @@ -0,0 +1,2 @@ +xÚ5Ê9‚`Eáû¿ŽÞÂ8pä)74ôBR'½ \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_HKm314-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_HKm314-B5-H.dat new file mode 100644 index 00000000..3753d7dc Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_HKm314-B5-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_HKm314-B5-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_HKm314-B5-V.dat new file mode 100644 index 00000000..e76f5d71 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_HKm314-B5-V.dat @@ -0,0 +1,2 @@ +xÚEƱ +AqÆá÷µ·rñÝ€éÔ¿Ø §CQuE1 ƒÁ`P¿+k:7B<Ó“©îvzy?òQöa}µõÓJ$¡’’W¨¢â3á$O™q–ç,¸ÈKV\åš57yÖ»¼cÏC>pä)74 CË¿&‡ \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_HKm471-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_HKm471-B5-H.dat new file mode 100644 index 00000000..23ead8d3 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_HKm471-B5-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_HKm471-B5-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_HKm471-B5-V.dat new file mode 100644 index 00000000..2a44d619 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_HKm471-B5-V.dat @@ -0,0 +1,3 @@ +xÚEƱ +AqÆá÷µ·råËn:õ/6ÃéPEEQŒƒÁ`0Ôï +äšÎPÏôdEª»½NÞ|”ý_X_mý´‰A¨¤äª¨x‡ÆL8ÉSfœå9 .ò’W¹fÍMÞ°å.ïØóyÊ ÃÐÏ?& \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_HKscs-B5-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_HKscs-B5-H.dat new file mode 100644 index 00000000..56a2d1fd Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_HKscs-B5-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_HKscs-B5-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_HKscs-B5-V.dat new file mode 100644 index 00000000..2ec41783 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_HKscs-B5-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Hankaku.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Hankaku.dat new file mode 100644 index 00000000..ec002fc3 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Hankaku.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Hiragana.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Hiragana.dat new file mode 100644 index 00000000..ce2a4471 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Hiragana.dat @@ -0,0 +1,2 @@ +xÚ%È-@PFáó~„›¬@ue3*+Ðü\Q ì3ÎÓŽëö3lá Àñgð|#ýDFFN+”Ä&§‰idâ–fjÓÊEczǸ + \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Hojo-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Hojo-EUC-H.dat new file mode 100644 index 00000000..d50e5a0d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Hojo-EUC-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Hojo-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Hojo-EUC-V.dat new file mode 100644 index 00000000..b71442c8 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Hojo-EUC-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Hojo-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Hojo-H.dat new file mode 100644 index 00000000..34ecce80 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Hojo-H.dat @@ -0,0 +1 @@ +xÚ%Í=LSqð{« ŠŠ@ŒFrŸøê¿/¤|ÓJRÚR(…¥|C)¥¥ A‡:èIŒƒ“ƒ“ƒqprprP&ãàÄ`bâ`œœŒƒÞÄ»ürNrrkc¥ƒŽÑ<ý?—à"¯å·˜xÌ·ˆ÷­C«‘xËÎÛ-Ä»`_!*Ú%û*qÙ.Û׈í»v›ÜI·C|Ë ·XŒe"Äí¦ÝD‰lcývÓ'vL‡I{M§Iš”IéÀãólkÙ‰ÎzféBWQéF÷¥=7\,½è} ô¡ï›ÒþÐ – ì \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_KSCms-UHC-UCS2.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_KSCms-UHC-UCS2.dat new file mode 100644 index 00000000..4b8634b2 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_KSCms-UHC-UCS2.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_KSCms-UHC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_KSCms-UHC-V.dat new file mode 100644 index 00000000..6f156c2d --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_KSCms-UHC-V.dat @@ -0,0 +1,3 @@ +xÚEÊ1 +‚p†ñïßêÒ Þ.à)\„ƨ[4µDAµWTSåöö¢$©CcDÄx„ úMÏðxýA0žøÃ0ðGÞ¿Cg­®ýt.§p1cÎ` ®z–òÆ9\Μ ØO.á6\ÃÚ_ØU©¶p™2í`… +ía½t€+Uê«Té«Uë {ë£î yÇ=N \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_KSCpc-EUC-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_KSCpc-EUC-H.dat new file mode 100644 index 00000000..acf61b84 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_KSCpc-EUC-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_KSCpc-EUC-UCS2C.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_KSCpc-EUC-UCS2C.dat new file mode 100644 index 00000000..b10e553e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_KSCpc-EUC-UCS2C.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_KSCpc-EUC-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_KSCpc-EUC-V.dat new file mode 100644 index 00000000..e4722c74 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_KSCpc-EUC-V.dat @@ -0,0 +1,2 @@ +xÚEʱ Â`Eá÷Û¦qƒë™"‚¥è.`) +j¯¢V»ë%Á`’ÂR !dA XøU§8^LÆ~wø#ïß=g¶ý´.§p#Î`1c®:–ðÆ9\ÆŒ ØO.ájÖ\Ú_ØU‰¶p©Rí`¹ría½t€+Tè+Uê«T)„½õÑî h_=. \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Katakana.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Katakana.dat new file mode 100644 index 00000000..fd967d4f Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Katakana.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_NWP-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_NWP-H.dat new file mode 100644 index 00000000..7e60acdf Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_NWP-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_NWP-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_NWP-V.dat new file mode 100644 index 00000000..dc461eb9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_NWP-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_OutputIntent.icc b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_OutputIntent.icc new file mode 100644 index 00000000..1b072d80 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_OutputIntent.icc differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_PDFA-XMP.4.2.3 b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_PDFA-XMP.4.2.3 new file mode 100644 index 00000000..0bb93bfd Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_PDFA-XMP.4.2.3 differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_RKSJ-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_RKSJ-H.dat new file mode 100644 index 00000000..45d15da6 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_RKSJ-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_RKSJ-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_RKSJ-V.dat new file mode 100644 index 00000000..21772182 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_RKSJ-V.dat @@ -0,0 +1,2 @@ +xÚ%ÅKJBqàówà&‚sWÐì"r©IhAH“¶ÐìwâÌ™NED\‡+ˆš4qfï·•uÉoòU÷w¶7«ÿ ¥ ¬U¶" ¦ÝØ‹K¦£8Ž+¦“8k¦³8¦(Ý}õuG 4Ð=1ÔPÄH#=cõDL4Ñ31ÕT/ÄL3½sÍõF,´Ð;QsÍDîÜŸDÝu/‰†þ" +þ&šnú‡piE´Üò/ÑvÛÈÐqÇ)C×=W²ô÷éU \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Roman.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Roman.dat new file mode 100644 index 00000000..dfee909d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Roman.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Symbol.ttf b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Symbol.ttf new file mode 100644 index 00000000..a961602c Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Symbol.ttf differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-90ms-RKSJ.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-90ms-RKSJ.dat new file mode 100644 index 00000000..73c911b5 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-90ms-RKSJ.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-90pv-RKSJ.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-90pv-RKSJ.dat new file mode 100644 index 00000000..d677b3fb Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-90pv-RKSJ.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-B5pc.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-B5pc.dat new file mode 100644 index 00000000..583a9959 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-B5pc.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-ETen-B5.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-ETen-B5.dat new file mode 100644 index 00000000..84dc29b2 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-ETen-B5.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-GBK-EUC.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-GBK-EUC.dat new file mode 100644 index 00000000..9086b27e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-GBK-EUC.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-GBpc-EUC.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-GBpc-EUC.dat new file mode 100644 index 00000000..4147ed82 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-GBpc-EUC.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-KSCms-UHC.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-KSCms-UHC.dat new file mode 100644 index 00000000..b75d746a Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-KSCms-UHC.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-KSCpc-EUC.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-KSCpc-EUC.dat new file mode 100644 index 00000000..f9fbe4c3 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UCS2-KSCpc-EUC.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UCS2-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UCS2-H.dat new file mode 100644 index 00000000..828f6a5b Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UCS2-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UCS2-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UCS2-V.dat new file mode 100644 index 00000000..0a6a270b Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UCS2-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UTF16-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UTF16-H.dat new file mode 100644 index 00000000..488bc329 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UTF16-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UTF16-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UTF16-V.dat new file mode 100644 index 00000000..6d7d156e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UTF16-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UTF32-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UTF32-H.dat new file mode 100644 index 00000000..7cbbe581 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UTF32-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UTF32-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UTF32-V.dat new file mode 100644 index 00000000..a5d16ba9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UTF32-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UTF8-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UTF8-H.dat new file mode 100644 index 00000000..a49aea21 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UTF8-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UTF8-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UTF8-V.dat new file mode 100644 index 00000000..ee565245 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniCNS-UTF8-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniGB-UCS2-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniGB-UCS2-H.dat new file mode 100644 index 00000000..c56a1528 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniGB-UCS2-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniGB-UCS2-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniGB-UCS2-V.dat new file mode 100644 index 00000000..bc1f554a --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniGB-UCS2-V.dat @@ -0,0 +1 @@ +xÚMŒ1kÂ`Eﻓ…`+¦­hó%t <\%FbÑŒÒ[¸wéŸÎ¹ tñl'jŽuÑî?×Å%º“Æ00Ã?Œ³8»«l•}Ë|™¿˜›W¾%Fþè íÉ'þA›úÔç±?ûöâ¯~¢™LõPêAï´H‘Jb¬±s-´£%J4¬S¥Úm””**Uú&®ºêLtêÔ7Ý4 èÕ+ øaZ4Ô \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniGB-UTF16-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniGB-UTF16-H.dat new file mode 100644 index 00000000..2ad4fa7f Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniGB-UTF16-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniGB-UTF16-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniGB-UTF16-V.dat new file mode 100644 index 00000000..7ff0ba73 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniGB-UTF16-V.dat @@ -0,0 +1 @@ +xÚM‹±Á`EÝ;‘PD©”þíÔMòY,R¤Œ"Ф©Ýâ¥=ÈÕÄâl'9§W¾_ÇÝ¢¼ËÕâÖû·Z AëýÄOnDš¤É€Ár‚FÛmëÛ‰ØÐ.ÄÈF:ø6¶‚˜X`çf´kJut ºê*#“˜M"  \yv“@AÜ%P Løó–@H|(14Ž \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniGB-UTF8-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniGB-UTF8-H.dat new file mode 100644 index 00000000..cdf16983 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniGB-UTF8-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniGB-UTF8-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniGB-UTF8-V.dat new file mode 100644 index 00000000..ce4830a2 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniGB-UTF8-V.dat @@ -0,0 +1 @@ +xÚMŒKÁPFo™vNï¥,(¥t–¥ &-Æg\â· ‹3qŒ™I$cfФÑjüæ'ãd¢1 +~2®(®Qi h"¸¯èß7Ñßùv¿Ü{î9u;oºnp`dëm7·ïìéhïßÕ~yõï³?%^ÆïäF17†1ÌÎc7`¡s˜À‡§J +˜æ„·<BC8éÑÃ)¦Ð(ºÖ ¡>q4¼çQ…ð®GGèÛFLLOçp(=”~œÃáôp:™Ã‘ôHúI¥¥Oq<=žÞp"=‘ÞðRúRzwÀÙôlº9ÁT:•'8—žK7%ø4ý4J yÍ—ŽX“_“ÛãBþB¾´êtµ¸œNÓ•â¦ë í7SË´S\¹Vh·¸YZ©kÅUi•ö ªµZ5Z£ý‚Ù:[stŽnÔj­nÌÕ¹ºUP§uº]P¯õÚ#hÐí4j£nÌÓyºQФMºIЬÍ:$hÑÝ,˜¯óuXЪ­ºG *zÀ«×? MôjAésúAª©^'(ùÒk t¡^/NKÜ,(hAo´i›Þ X¤‹ô&Áb]¬· +–è½E°T—êm‚eºLGíZÔÝâLMÇË•z•¸ºBG—èJÝ)n•®Ò‚ÕÚ©WˆëÒµz—¸uºNïtk·Þ.X¯ëõNAöè^ÁÝ û½Ú«lÔºOЧ}úwA¿öëß:¨ĵZ  )Ìð…’’BRh ȵåÚ1Þ6ÞVà,g¯zWnµ6é]ÕÙp@½5؇޵Z«•²«OXb º­ÛÎ{ôX]ðèµ^û£ÏúìK°¯<öØûÚã^»×¾ñ¸Ïî³o=î·ûí;ƒvо÷8jGmkÀ1;f[ÆmÜ~ðxÔµ=&lÂ~òxž°Ÿ=ž´'í¢Ç‹ö¢ýâ1i“ö«Ç;c™Ç”Mœ·óæ|kßY.qí¢½Yª"ÁGJþ˜ãÓÑMã4˜Îé|&bgð€™œÉÿE”±ŒÏF”³œÿ¨`Ÿ˜ÅY|.¢’•|!¢ŠU<QÍjÖ$¨aODWÏzÎHÐÀþ; ‘üWÀ<ÎãËMlâ‘€f6ó•ˆ +_‹ÎÓs¼”SžŒ.Ï<ÿ°€ x,`!òTD©'|7¢Àg'hc+,âb~Ý.ácK¹”µ ÚÙÎ""§£[Îå|< ƒ<ÁVðž‹îR^ÊÊ+¹’ç#Vq¿ˆXÍÕüOÀe¼Œ_Ft²“¬á~ÑÅ.~ñ'®ã7Ñu³›_G¬çz èáF~]û8ÐÏ~þ1ÀNO0ÈAÎM°‰›y1º!±,Á0‡y(` ·ò×è¶q«lçvæŠág±ƒ;8­ˆ¼œeE·‹»øß€½Ü˪"öq+‹ØÏýœUÄ`E÷ðþ# <«ÈÞ÷®*«Ê6Ôd5Ùö€–¬%ë-B2É>÷èÌ:³<º²®ìcµÙÚì Ñl4ûÄc,ËÞñØíÎN{\™]™•Ê>™Mf¯{üX \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniJISPro-UCS2-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniJISPro-UCS2-V.dat new file mode 100644 index 00000000..a657c0b2 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniJISPro-UCS2-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniJISPro-UTF8-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniJISPro-UTF8-V.dat new file mode 100644 index 00000000..cf4182d9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniJISPro-UTF8-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniJISX0213-UTF32-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniJISX0213-UTF32-H.dat new file mode 100644 index 00000000..a3b5ef63 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniJISX0213-UTF32-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniJISX0213-UTF32-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniJISX0213-UTF32-V.dat new file mode 100644 index 00000000..365fbf28 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniJISX0213-UTF32-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniJISX02132004-UTF32-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniJISX02132004-UTF32-H.dat new file mode 100644 index 00000000..538a3f54 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniJISX02132004-UTF32-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniJISX02132004-UTF32-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniJISX02132004-UTF32-V.dat new file mode 100644 index 00000000..de0455de Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniJISX02132004-UTF32-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UCS2-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UCS2-H.dat new file mode 100644 index 00000000..ed856026 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UCS2-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UCS2-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UCS2-V.dat new file mode 100644 index 00000000..f1c50727 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UCS2-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UTF16-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UTF16-H.dat new file mode 100644 index 00000000..b66337f9 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UTF16-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UTF16-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UTF16-V.dat new file mode 100644 index 00000000..fecb38f4 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UTF16-V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UTF32-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UTF32-H.dat new file mode 100644 index 00000000..d6a7dc7e Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UTF32-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UTF32-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UTF32-V.dat new file mode 100644 index 00000000..7aec18e0 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UTF32-V.dat @@ -0,0 +1,2 @@ +xÚM‹? AqFߟ ”«¸—Ár-Æ[b”lRF®Eì³™&ʧóA8ϵܧÎÛ9ÃëÅËÅpÅã~»M¼t œ±²ý—õëflB3WEÄVÑ@ÄZášfX)rH  +GE€T`Ÿü|9pJ~<œD\ED\5$„›¢ƒˆ»¢‹ˆ‡¢‡ˆ§bŠÌक़#b§ø â­øÔÃ2 \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UTF8-H.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UTF8-H.dat new file mode 100644 index 00000000..afc93e54 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UTF8-H.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UTF8-V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UTF8-V.dat new file mode 100644 index 00000000..d0110aa4 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_UniKS-UTF8-V.dat @@ -0,0 +1 @@ +xÚMËMÁP†áÓ˜vdV`n"1¤ö`b,­QQ•2« é^X@·à{kâ$Oò½7¹®×ë6[U¯]¯U;î_4Ó•íw¥ÿ¶H†3ç ñÐÀ€üM¥OÌ4¶; ,ˆHc/“âÏ+7„Ź,‰WY+ lˆXã&[â©#‘jàDd8—4·Dbâª1qÏrCB|ãa. \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_V.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_V.dat new file mode 100644 index 00000000..f7b2445d Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_V.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_WP-Symbol.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_WP-Symbol.dat new file mode 100644 index 00000000..aa6295e5 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_WP-Symbol.dat @@ -0,0 +1,3 @@ +xÚ%ÈÍJa…ñç?6 7®“Àó¢æG1™åêMZ +¢â®ˆ¦ENÐt^.º“,¦W<¿Õy²ã»h˜DÆKÅÉ#ä”OYž"_²%~D™sF² +ö¢JY:¿âÂ[‰K"&²+üÉ®i‚³nù.X‹Ûm/pt¼¥èÒc*ëÓ'ã0b#»gFèlΜx䕜³˜˜D¼ñŽœýÐÞH \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Wingding.ttf b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Wingding.ttf new file mode 100644 index 00000000..a50b2cfd Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_Wingding.ttf differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_ZapfDingbats.ttf b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_ZapfDingbats.ttf new file mode 100644 index 00000000..649ccd58 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_ZapfDingbats.ttf differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_fontsubst.dat b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_fontsubst.dat new file mode 100644 index 00000000..0c7dfacb Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_fontsubst.dat differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_times.ttf b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_times.ttf new file mode 100644 index 00000000..2e69c6a4 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/_times.ttf differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/list.json b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/list.json new file mode 100644 index 00000000..e88c7117 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/resources/list.json @@ -0,0 +1,231 @@ +[ +"_78-EUC-H.dat", +"_78-EUC-V.dat", +"_78-H.dat", +"_78-RKSJ-H.dat", +"_78-RKSJ-V.dat", +"_78-V.dat", +"_78ms-RKSJ-H.dat", +"_78ms-RKSJ-V.dat", +"_83pv-RKSJ-H.dat", +"_90ms-RKSJ-H.dat", +"_90ms-RKSJ-UCS2.dat", +"_90ms-RKSJ-V.dat", +"_90msp-RKSJ-H.dat", +"_90msp-RKSJ-V.dat", +"_90pv-RKSJ-H.dat", +"_90pv-RKSJ-UCS2.dat", +"_90pv-RKSJ-UCS2C.dat", +"_90pv-RKSJ-V.dat", +"_Add-H.dat", +"_Add-RKSJ-H.dat", +"_Add-RKSJ-V.dat", +"_Add-V.dat", +"_Adobe-CNS1-0.dat", +"_Adobe-CNS1-1.dat", +"_Adobe-CNS1-2.dat", +"_Adobe-CNS1-3.dat", +"_Adobe-CNS1-4.dat", +"_Adobe-CNS1-5.dat", +"_Adobe-CNS1-6.dat", +"_Adobe-CNS1-7.dat", +"_Adobe-CNS1-B5pc.dat", +"_Adobe-CNS1-ETenms-B5.dat", +"_Adobe-CNS1-H-CID.dat", +"_Adobe-CNS1-H-Host.dat", +"_Adobe-CNS1-H-Mac.dat", +"_Adobe-CNS1-UCS2.dat", +"_Adobe-GB1-0.dat", +"_Adobe-GB1-1.dat", +"_Adobe-GB1-2.dat", +"_Adobe-GB1-3.dat", +"_Adobe-GB1-4.dat", +"_Adobe-GB1-5.dat", +"_Adobe-GB1-UCS2.dat", +"_Adobe-Japan1-0.dat", +"_Adobe-Japan1-4.dat", +"_Adobe-Japan1-5.dat", +"_Adobe-Japan1-6.dat", +"_Adobe-Japan1-90ms-RKSJ.dat", +"_Adobe-Japan1-90pv-RKSJ.dat", +"_Adobe-Japan1-H-CID.dat", +"_Adobe-Japan1-H-Host.dat", +"_Adobe-Japan1-H-Mac.dat", +"_Adobe-Japan1-UCS2.dat", +"_Adobe-Japan2-0.dat", +"_Adobe-Korea1-0.dat", +"_Adobe-Korea1-1.dat", +"_Adobe-Korea1-2.dat", +"_Adobe-Korea1-H-CID.dat", +"_Adobe-Korea1-H-Host.dat", +"_Adobe-Korea1-H-Mac.dat", +"_Adobe-Korea1-KSCms-UHC.dat", +"_Adobe-Korea1-KSCpc-EUC.dat", +"_Adobe-Korea1-UCS2.dat", +"_B5-H.dat", +"_B5-V.dat", +"_B5pc-H.dat", +"_B5pc-UCS2.dat", +"_B5pc-UCS2C.dat", +"_B5pc-V.dat", +"_CNS-EUC-H.dat", +"_CNS-EUC-V.dat", +"_CNS1-H.dat", +"_CNS1-V.dat", +"_CNS2-H.dat", +"_CNS2-V.dat", +"_CourierStdToNew.dat", +"_ETen-B5-H.dat", +"_ETen-B5-UCS2.dat", +"_ETen-B5-V.dat", +"_ETenms-B5-H.dat", +"_ETenms-B5-V.dat", +"_ETHK-B5-H.dat", +"_ETHK-B5-V.dat", +"_EUC-H.dat", +"_EUC-V.dat", +"_Ext-H.dat", +"_Ext-RKSJ-H.dat", +"_Ext-RKSJ-V.dat", +"_Ext-V.dat", +"_fontsubst.dat", +"_GB-EUC-H.dat", +"_GB-EUC-V.dat", +"_GB-H.dat", +"_GB-V.dat", +"_GBK-EUC-H.dat", +"_GBK-EUC-UCS2.dat", +"_GBK-EUC-V.dat", +"_GBK2K-H.dat", +"_GBK2K-V.dat", +"_GBKp-EUC-H.dat", +"_GBKp-EUC-V.dat", +"_GBpc-EUC-H.dat", +"_GBpc-EUC-UCS2C.dat", +"_GBpc-EUC-V.dat", +"_GBT-EUC-H.dat", +"_GBT-EUC-V.dat", +"_GBT-H.dat", +"_GBT-V.dat", +"_GBTpc-EUC-H.dat", +"_GBTpc-EUC-V.dat", +"_H.dat", +"_Hankaku.dat", +"_Hiragana.dat", +"_HKdla-B5-H.dat", +"_HKdla-B5-V.dat", +"_HKdlb-B5-H.dat", +"_HKdlb-B5-V.dat", +"_HKgccs-B5-H.dat", +"_HKgccs-B5-V.dat", +"_HKm314-B5-H.dat", +"_HKm314-B5-V.dat", +"_HKm471-B5-H.dat", +"_HKm471-B5-V.dat", +"_HKscs-B5-H.dat", +"_HKscs-B5-V.dat", +"_Hojo-EUC-H.dat", +"_Hojo-EUC-V.dat", +"_Hojo-H.dat", +"_Hojo-V.dat", +"_Identity-H.dat", +"_Identity-V.dat", +"_Katakana.dat", +"_KSC-EUC-H.dat", +"_KSC-EUC-V.dat", +"_KSC-H.dat", +"_KSC-Johab-H.dat", +"_KSC-Johab-V.dat", +"_KSC-V.dat", +"_KSCms-UHC-H.dat", +"_KSCms-UHC-HW-H.dat", +"_KSCms-UHC-HW-V.dat", +"_KSCms-UHC-UCS2.dat", +"_KSCms-UHC-V.dat", +"_KSCpc-EUC-H.dat", +"_KSCpc-EUC-UCS2C.dat", +"_KSCpc-EUC-V.dat", +"_NWP-H.dat", +"_NWP-V.dat", +"_RKSJ-H.dat", +"_RKSJ-V.dat", +"_Roman.dat", +"_UCS2-90ms-RKSJ.dat", +"_UCS2-90pv-RKSJ.dat", +"_UCS2-B5pc.dat", +"_UCS2-ETen-B5.dat", +"_UCS2-GBK-EUC.dat", +"_UCS2-GBpc-EUC.dat", +"_UCS2-KSCms-UHC.dat", +"_UCS2-KSCpc-EUC.dat", +"_UniCNS-UCS2-H.dat", +"_UniCNS-UCS2-V.dat", +"_UniCNS-UTF16-H.dat", +"_UniCNS-UTF16-V.dat", +"_UniCNS-UTF32-H.dat", +"_UniCNS-UTF32-V.dat", +"_UniCNS-UTF8-H.dat", +"_UniCNS-UTF8-V.dat", +"_UniGB-UCS2-H.dat", +"_UniGB-UCS2-V.dat", +"_UniGB-UTF16-H.dat", +"_UniGB-UTF16-V.dat", +"_UniGB-UTF32-H.dat", +"_UniGB-UTF32-V.dat", +"_UniGB-UTF8-H.dat", +"_UniGB-UTF8-V.dat", +"_UniHojo-UCS2-H.dat", +"_UniHojo-UCS2-V.dat", +"_UniHojo-UTF16-H.dat", +"_UniHojo-UTF16-V.dat", +"_UniHojo-UTF32-H.dat", +"_UniHojo-UTF32-V.dat", +"_UniHojo-UTF8-H.dat", +"_UniHojo-UTF8-V.dat", +"_UniJIS-UCS2-H.dat", +"_UniJIS-UCS2-HW-H.dat", +"_UniJIS-UCS2-HW-V.dat", +"_UniJIS-UCS2-V.dat", +"_UniJIS-UTF16-H.dat", +"_UniJIS-UTF16-V.dat", +"_UniJIS-UTF32-H.dat", +"_UniJIS-UTF32-V.dat", +"_UniJIS-UTF8-H.dat", +"_UniJIS-UTF8-V.dat", +"_UniJIS2004-UTF16-H.dat", +"_UniJIS2004-UTF16-V.dat", +"_UniJIS2004-UTF32-H.dat", +"_UniJIS2004-UTF32-V.dat", +"_UniJIS2004-UTF8-H.dat", +"_UniJIS2004-UTF8-V.dat", +"_UniJISPro-UCS2-HW-V.dat", +"_UniJISPro-UCS2-V.dat", +"_UniJISPro-UTF8-V.dat", +"_UniJISX0213-UTF32-H.dat", +"_UniJISX0213-UTF32-V.dat", +"_UniJISX02132004-UTF32-H.dat", +"_UniJISX02132004-UTF32-V.dat", +"_UniKS-UCS2-H.dat", +"_UniKS-UCS2-V.dat", +"_UniKS-UTF16-H.dat", +"_UniKS-UTF16-V.dat", +"_UniKS-UTF32-H.dat", +"_UniKS-UTF32-V.dat", +"_UniKS-UTF8-H.dat", +"_UniKS-UTF8-V.dat", +"_V.dat", +"_WP-Symbol.dat", +"_PDFA-XMP.4.2.3", +"_DroidSansFallbackFull.ttf", +"_DroidSansMono.ttf", +"_Symbol.ttf", +"_times.ttf", +"_Wingding.ttf", +"_ZapfDingbats.ttf", +"_DefaultCMYK.icc", +"_OutputIntent.icc", +"_Adobe-Japan1-1.dat", +"_Adobe-Japan1-2.dat", +"_Adobe-Japan1-3.dat", +"list.json" +] diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/supportFiles/0_runtimeconfig.bin b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/supportFiles/0_runtimeconfig.bin new file mode 100644 index 00000000..c33b89a9 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/gdpicture-2255489f40d33d76b4ed1c4fa1925c8a5a50ab31/jit/supportFiles/0_runtimeconfig.bin @@ -0,0 +1 @@ + MMicrosoft.Extensions.DependencyInjection.VerifyOpenGenericServiceTrimmabilitytruefSystem.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerializationfalse6System.Reflection.Metadata.MetadataUpdater.IsSupportedfalse9System.Resources.ResourceManager.AllowCustomResourceTypesfalsebutton{fill:#4d525d;fill:var(--PSPDFKit-FormDesignerExpandoComponent-button-text-color);background-color:#f6f8fa;background-color:var(--PSPDFKit-FormDesignerExpandoComponent-button-color);color:#4d525d;color:var(--PSPDFKit-FormDesignerExpandoComponent-button-text-color);font-size:0.75rem;font-size:var(--PSPDFKit-fontSize-2);letter-spacing:.03rem;margin:0;padding-left:6px;text-transform:uppercase}.PSPDFKit-9kt28ket9qkhevfbz7cbbw1hb>button:hover{fill:#2b2e36;fill:var(--PSPDFKit-FormDesignerExpandoComponent-button-text-hover-color);color:#2b2e36;color:var(--PSPDFKit-FormDesignerExpandoComponent-button-text-hover-color);cursor:pointer}.PSPDFKit-4qbtrs7uku7m1vc5hra33bpuyg{display:flex;padding:0.46875em;padding:var(--PSPDFKit-spacing-7)}.PSPDFKit-3wag8ffkyv8h2tybvhe7amk9nm{height:22px;margin-right:0.46875em;margin-right:var(--PSPDFKit-spacing-7);width:12px}.PSPDFKit-5sx5qx4udha76yjmqjkh932ffg{fill:#000;fill:var(--PSPDFKit-FormDesignerExpandoComponent-content-color);color:#000;color:var(--PSPDFKit-FormDesignerExpandoComponent-content-color)} +.PSPDFKit-8ehcbhz241z1tfyhjztbe12ube{align-items:center;background-color:transparent;border:1px solid transparent;color:inherit;cursor:pointer;display:flex;font:inherit;justify-content:center;line-height:normal;padding:0;touch-action:pan-x;width:auto}.PSPDFKit-86bf3wbtmfc5xa3yfd4fazea9y,.PSPDFKit-8ehcbhz241z1tfyhjztbe12ube:disabled{cursor:default;pointer-events:none}.PSPDFKit-5734rhbbfgd613g81qs13md49y{margin-right:11px}.PSPDFKit-2n6h3jcy1kke81pjgewmpnqa34{cursor:not-allowed} +.PSPDFKit-996xvngvf7q6px5aesbyjcvt5{background:transparent;border:none;color:#fff;color:var(--PSPDFKit-ColorDropdown-customColor-deleteButton-color);display:none;height:16px;padding:0;position:absolute;right:-6px;top:-7px;width:16px}@media(max-width:992px)and (hover:none){.PSPDFKit-996xvngvf7q6px5aesbyjcvt5{align-items:center;border-radius:5px;display:flex;height:34px;justify-content:center;right:-30px;top:-1px;width:30px;z-index:1}.PSPDFKit-996xvngvf7q6px5aesbyjcvt5 svg{height:24px;width:24px}}.PSPDFKit-43z4uam4dc2twts8dzzjr863sc:hover .PSPDFKit-996xvngvf7q6px5aesbyjcvt5{display:block}.PSPDFKit-43z4uam4dc2twts8dzzjr863sc{position:relative}@media(max-width:992px){.PSPDFKit-43z4uam4dc2twts8dzzjr863sc:hover{background-color:#f0f3f9;background-color:var(--PSPDFKit-ColorDropdown-colorItemContainer-isFocused-background)}} +.PSPDFKit-61pwj551swb751vsvtncfs97hr{background:#fcfdfe;background:var(--PSPDFKit-DropdownMenu-background);border:1px solid #d8dfeb;border:1px solid var(--PSPDFKit-DropdownMenu-border);border-radius:4px;box-shadow:0 3px 12px rgb(61 66 78 / 0.5);box-shadow:0 3px 12px var(--PSPDFKit-shadow-color);color:#2b2e36;color:var(--PSPDFKit-DropdownMenu-color);list-style:none;margin:0;padding:0.609em;padding:var(--PSPDFKit-spacing-6);-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-61pwj551swb751vsvtncfs97hr.PSPDFKit-3txgs1brv6djswfx9c7deps2u2{border:0;height:0;padding:0}.PSPDFKit-61pwj551swb751vsvtncfs97hr.PSPDFKit-8f8f78v7f3wp5n55qwjfz6qd98{visibility:hidden}.PSPDFKit-33kurg23vuastg415g558n9d74{align-items:center;background:#fff;background:var(--PSPDFKit-DropdownMenu-item-background);border-bottom:1px solid #d8dfeb;border-bottom:1px solid var(--PSPDFKit-DropdownMenu-item-border);color:inherit;cursor:pointer;display:flex;font:inherit;height:34px;justify-content:flex-start;line-height:normal;padding:0 11px;text-align:initial;touch-action:pan-x;width:100%}.PSPDFKit-width-md .PSPDFKit-33kurg23vuastg415g558n9d74,.PSPDFKit-width-sm .PSPDFKit-33kurg23vuastg415g558n9d74,.PSPDFKit-width-xs .PSPDFKit-33kurg23vuastg415g558n9d74{display:none}.PSPDFKit-4dvm3x8wyss7tgunnpgjqt7f8r{align-items:center;background:#fff;background:var(--PSPDFKit-DropdownMenu-button-background);border:1px solid #d8dfeb;border:1px solid var(--PSPDFKit-DropdownMenu-button-border);border-radius:3px;color:#3d424e;color:var(--PSPDFKit-DropdownMenu-button-color);cursor:pointer;display:flex;font-family:inherit;font-size:inherit;justify-content:space-between;padding:0.46875em;padding:var(--PSPDFKit-spacing-7)}.PSPDFKit-4dvm3x8wyss7tgunnpgjqt7f8r .PSPDFKit-2npkau1bttsh6zan1r4gdrzpzd{fill:#848c9a;fill:var(--PSPDFKit-DropdownMenu-button-fill)}.PSPDFKit-4dvm3x8wyss7tgunnpgjqt7f8r:hover:not(.PSPDFKit-2dk2qm9asz7my783w1r6n44gcq),.PSPDFKit-4dvm3x8wyss7tgunnpgjqt7f8r[data-focus-within]{background:#fff;background:var(--PSPDFKit-DropdownMenu-button-background);color:#3d424e;color:var(--PSPDFKit-DropdownMenu-button-color)}.PSPDFKit-4dvm3x8wyss7tgunnpgjqt7f8r:hover:not(.PSPDFKit-2dk2qm9asz7my783w1r6n44gcq) .PSPDFKit-2npkau1bttsh6zan1r4gdrzpzd,.PSPDFKit-4dvm3x8wyss7tgunnpgjqt7f8r[data-focus-within] .PSPDFKit-2npkau1bttsh6zan1r4gdrzpzd{fill:#090c12;fill:var(--PSPDFKit-DropdownMenu-button-isHovered-color)}.PSPDFKit-4dvm3x8wyss7tgunnpgjqt7f8r:focus-within{background:#fff;background:var(--PSPDFKit-DropdownMenu-button-background);color:#3d424e;color:var(--PSPDFKit-DropdownMenu-button-color)}.PSPDFKit-4dvm3x8wyss7tgunnpgjqt7f8r:focus-within .PSPDFKit-2npkau1bttsh6zan1r4gdrzpzd{fill:#090c12;fill:var(--PSPDFKit-DropdownMenu-button-isHovered-color)}.PSPDFKit-5nr9hus8pqrwezzkgpd829srq5{background:#f0f3f9;background:var(--PSPDFKit-DropdownMenu-isSelected-background);color:#3d424e;color:var(--PSPDFKit-DropdownMenu-isSelected-color)}.PSPDFKit-2npkau1bttsh6zan1r4gdrzpzd.PSPDFKit-5qky4ks8vy64a1wucbs25k86sv{fill:#090c12;fill:var(--PSPDFKit-DropdownMenu-button-isHovered-color)}.PSPDFKit-7e9vp9ptc17dn5jtjsppjv8j8d{max-width:200px}.PSPDFKit-7e9vp9ptc17dn5jtjsppjv8j8d span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap} +.PSPDFKit-2h6u1uvepb29aceyswrhabn442,.PSPDFKit-5hqvpgcgpf1769cn35dvtg4ktz,.PSPDFKit-59hpcfye46ptznzj6qnfjzxmw5{background-color:transparent;border:0;height:44px;margin:0;transition:background-color .15s,color .15s}.PSPDFKit-2h6u1uvepb29aceyswrhabn442 .PSPDFKit-3dcfza4a2zm1e2eg4echhrm6g5,.PSPDFKit-5hqvpgcgpf1769cn35dvtg4ktz .PSPDFKit-3dcfza4a2zm1e2eg4echhrm6g5,.PSPDFKit-59hpcfye46ptznzj6qnfjzxmw5 .PSPDFKit-3dcfza4a2zm1e2eg4echhrm6g5{fill:currentColor;display:flex;flex-direction:column;height:24px;justify-content:center;width:24px}.PSPDFKit-2h6u1uvepb29aceyswrhabn442:active,.PSPDFKit-2h6u1uvepb29aceyswrhabn442:focus,.PSPDFKit-2h6u1uvepb29aceyswrhabn442:hover,.PSPDFKit-2h6u1uvepb29aceyswrhabn442[data-focus-within],.PSPDFKit-5hqvpgcgpf1769cn35dvtg4ktz:active,.PSPDFKit-5hqvpgcgpf1769cn35dvtg4ktz:focus,.PSPDFKit-5hqvpgcgpf1769cn35dvtg4ktz:hover,.PSPDFKit-5hqvpgcgpf1769cn35dvtg4ktz[data-focus-within],.PSPDFKit-59hpcfye46ptznzj6qnfjzxmw5:active,.PSPDFKit-59hpcfye46ptznzj6qnfjzxmw5:focus,.PSPDFKit-59hpcfye46ptznzj6qnfjzxmw5:hover,.PSPDFKit-59hpcfye46ptznzj6qnfjzxmw5[data-focus-within]{background-color:#f0f3f9;background-color:var(--PSPDFKit-ToolbarButton-dropdown-isFocused-background);color:#3d424e;color:var(--PSPDFKit-ToolbarButton-dropdown-isFocused-color)}.PSPDFKit-2h6u1uvepb29aceyswrhabn442:focus-within,.PSPDFKit-5hqvpgcgpf1769cn35dvtg4ktz:focus-within,.PSPDFKit-59hpcfye46ptznzj6qnfjzxmw5:focus-within{background-color:#f0f3f9;background-color:var(--PSPDFKit-ToolbarButton-dropdown-isFocused-background);color:#3d424e;color:var(--PSPDFKit-ToolbarButton-dropdown-isFocused-color)}.PSPDFKit-2h6u1uvepb29aceyswrhabn442.PSPDFKit-43cceb3p2mywgnc9ah1q5apjh4:active,.PSPDFKit-2h6u1uvepb29aceyswrhabn442.PSPDFKit-43cceb3p2mywgnc9ah1q5apjh4:focus,.PSPDFKit-2h6u1uvepb29aceyswrhabn442.PSPDFKit-43cceb3p2mywgnc9ah1q5apjh4:hover,.PSPDFKit-2h6u1uvepb29aceyswrhabn442.PSPDFKit-43cceb3p2mywgnc9ah1q5apjh4[data-focus-within],.PSPDFKit-59hpcfye46ptznzj6qnfjzxmw5.PSPDFKit-5wps7sscy34hpgrmzwbrb2k8h8:active,.PSPDFKit-59hpcfye46ptznzj6qnfjzxmw5.PSPDFKit-5wps7sscy34hpgrmzwbrb2k8h8:focus,.PSPDFKit-59hpcfye46ptznzj6qnfjzxmw5.PSPDFKit-5wps7sscy34hpgrmzwbrb2k8h8:hover,.PSPDFKit-59hpcfye46ptznzj6qnfjzxmw5.PSPDFKit-5wps7sscy34hpgrmzwbrb2k8h8[data-focus-within],.PSPDFKit-8nyvpcm5qq23nzqvwdfzqayryh.PSPDFKit-8mq4c412r44dvy4qtvyfp64p1k:active,.PSPDFKit-8nyvpcm5qq23nzqvwdfzqayryh.PSPDFKit-8mq4c412r44dvy4qtvyfp64p1k:focus,.PSPDFKit-8nyvpcm5qq23nzqvwdfzqayryh.PSPDFKit-8mq4c412r44dvy4qtvyfp64p1k:hover,.PSPDFKit-8nyvpcm5qq23nzqvwdfzqayryh.PSPDFKit-8mq4c412r44dvy4qtvyfp64p1k[data-focus-within]{background-color:transparent}.PSPDFKit-2h6u1uvepb29aceyswrhabn442.PSPDFKit-43cceb3p2mywgnc9ah1q5apjh4:focus-within,.PSPDFKit-59hpcfye46ptznzj6qnfjzxmw5.PSPDFKit-5wps7sscy34hpgrmzwbrb2k8h8:focus-within,.PSPDFKit-8nyvpcm5qq23nzqvwdfzqayryh.PSPDFKit-8mq4c412r44dvy4qtvyfp64p1k:focus-within{background-color:transparent}.PSPDFKit-2h6u1uvepb29aceyswrhabn442,.PSPDFKit-5hqvpgcgpf1769cn35dvtg4ktz{min-width:44px;padding:0 11px}.PSPDFKit-8nyvpcm5qq23nzqvwdfzqayryh{display:flex}.PSPDFKit-2h6u1uvepb29aceyswrhabn442{color:inherit;padding:0 5px}.PSPDFKit-32j2tkxs7yf83d9vrqs2np1xja{align-items:center;cursor:pointer;display:flex;justify-content:center;padding:0;width:44px}.PSPDFKit-6511p928m8fcbcd7nb8arydjxe{opacity:.8}:active>.PSPDFKit-6511p928m8fcbcd7nb8arydjxe,:focus>.PSPDFKit-6511p928m8fcbcd7nb8arydjxe,:hover>.PSPDFKit-6511p928m8fcbcd7nb8arydjxe{opacity:1}.PSPDFKit-59hpcfye46ptznzj6qnfjzxmw5{border:0;padding:0}.PSPDFKit-59hpcfye46ptznzj6qnfjzxmw5 .PSPDFKit-5hqvpgcgpf1769cn35dvtg4ktz{padding-right:0}.PSPDFKit-59hpcfye46ptznzj6qnfjzxmw5 .PSPDFKit-2h6u1uvepb29aceyswrhabn442,.PSPDFKit-59hpcfye46ptznzj6qnfjzxmw5 .PSPDFKit-5hqvpgcgpf1769cn35dvtg4ktz{transition:none}.PSPDFKit-7t6uf3numwbvg2qg3x9sx7rkjx .PSPDFKit-5hqvpgcgpf1769cn35dvtg4ktz{padding-left:0}.PSPDFKit-6s8pjz7ybfkbm9j34ce4qsz32w .PSPDFKit-2h6u1uvepb29aceyswrhabn442,.PSPDFKit-6s8pjz7ybfkbm9j34ce4qsz32w .PSPDFKit-5hqvpgcgpf1769cn35dvtg4ktz{background:transparent}.PSPDFKit-67e5xx7a8j97ze41fv1th56sbu{margin-right:11px}.PSPDFKit-43cceb3p2mywgnc9ah1q5apjh4,.PSPDFKit-5hqvpgcgpf1769cn35dvtg4ktz:disabled{cursor:not-allowed;opacity:0.3;opacity:var(--PSPDFKit-ToolbarButton-isDisabled-opacity);pointer-events:none}.PSPDFKit-43cceb3p2mywgnc9ah1q5apjh4 i,.PSPDFKit-5hqvpgcgpf1769cn35dvtg4ktz:disabled i{fill:#848c9a;fill:var(--PSPDFKit-ToolbarButton-isDisabled-child-fill)}.PSPDFKit-yyu2s7s1tuqk1ww7hvgfnef81,.PSPDFKit-yyu2s7s1tuqk1ww7hvgfnef81:active,.PSPDFKit-yyu2s7s1tuqk1ww7hvgfnef81:focus,.PSPDFKit-yyu2s7s1tuqk1ww7hvgfnef81:hover{background:#4636e3!important;background:var(--PSPDFKit-ToolbarButton-isActive-background)!important;color:#fff!important;color:var(--PSPDFKit-ToolbarButton-isActive-color)!important}.PSPDFKit-6511p928m8fcbcd7nb8arydjxe.PSPDFKit-7mpjdpbxyc5gttymwetaz47j3q{cursor:not-allowed;opacity:0.3;opacity:var(--PSPDFKit-ToolbarButton-isDisabled-opacity)} +.PSPDFKit-224gyk59mnmuy1j6u58s8bcf2p [tabindex]:not(:focus-visible){outline:5px auto Highlight;outline:5px auto -webkit-focus-ring-color}.PSPDFKit-3mxmx3p3whct5a2qk5bsb3v7rg[tabindex]:focus:not(:focus-visible){outline:5px auto Highlight;outline:5px auto -webkit-focus-ring-color} +.PSPDFKit-6eekmx2r3rzpn49557vdt2e5tj{fill:currentColor;display:flex;flex:24px 0 0;flex-direction:column;height:24px;justify-content:center;width:24px} +.PSPDFKit-3rtr4tx6y919hj63k8j6veyfvu{align-items:center;display:flex;flex-direction:row;height:30px;justify-content:center;min-width:30px}.PSPDFKit-2f2ahvz6xw42cz6ppqg7qrnv5w{background-color:transparent;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE2LjQ5NyAxMkg3LjUwM00xMiA3LjUwM3Y4Ljk5NC04Ljk5NFoiIHN0cm9rZT0iIzg0OEM5QSIgc3Ryb2tlLXdpZHRoPSIxLjI1IiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPjxwYXRoIGQ9Ik0xMiAyMS41YTkuNSA5LjUgMCAxIDAgMC0xOSA5LjUgOS41IDAgMCAwIDAgMTlaIiBzdHJva2U9IiM4NDhDOUEiLz48L3N2Zz4=");background-position:50%;background-repeat:no-repeat;background-size:contain;border-radius:50%;cursor:pointer}input[type=color]::-webkit-color-swatch{visibility:hidden}input[type=color]::-moz-color-swatch{visibility:hidden} +.PSPDFKit-4knn6qcs6mfzubc11j3jn3kdh9{align-items:center;color:inherit;display:flex;font-size:inherit;line-height:32px;margin:5px}.PSPDFKit-5sa85wwcx2g58bvnwu3e9vxux8{padding-right:6px}.PSPDFKit-27139754tezpaj4xtjvqyqphqa{align-items:center;display:flex;position:relative;width:140px}.PSPDFKit-27139754tezpaj4xtjvqyqphqa input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;min-width:70px;padding:0;width:100%}.PSPDFKit-27139754tezpaj4xtjvqyqphqa input[type=range]::-webkit-slider-runnable-track{background:#4636e3;border:0 solid #000;border-radius:4px;cursor:pointer;height:8px;min-width:70px;width:100%}.PSPDFKit-27139754tezpaj4xtjvqyqphqa input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:#4636e3;background:var(--PSPDFKit-SliderComponent-thumb-color);border:2px solid #fff;border:2px solid var(--PSPDFKit-SliderComponent-thumb-border);border-radius:100%;box-shadow:0 1px 2px 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;height:16px;margin-top:-4px;-webkit-transition:background-color .2s;transition:background-color .2s;width:16px}.PSPDFKit-27139754tezpaj4xtjvqyqphqa input[type=range]::-webkit-slider-thumb:active,.PSPDFKit-27139754tezpaj4xtjvqyqphqa input[type=range]::-webkit-slider-thumb:focus,.PSPDFKit-27139754tezpaj4xtjvqyqphqa input[type=range]::-webkit-slider-thumb:hover{background:#190d94;background:var(--PSPDFKit-SliderComponent-thumb-isHovered-color)}.PSPDFKit-27139754tezpaj4xtjvqyqphqa input[type=range]:focus::-webkit-slider-runnable-track{background:#4636e3}.PSPDFKit-27139754tezpaj4xtjvqyqphqa input[type=range]::-moz-range-track{background:#4636e3;border:0 solid #000;border-radius:4px;cursor:pointer;height:8px;min-width:70px;width:100%}.PSPDFKit-27139754tezpaj4xtjvqyqphqa input[type=range]::-moz-range-progress{background:#4636e3;border:0 solid #4636e3;border:0 solid var(--PSPDFKit-SliderComponent-track-progress-color);border-radius:4px;cursor:pointer;height:8px;min-width:70px;width:100%}.PSPDFKit-27139754tezpaj4xtjvqyqphqa input[type=range]::-moz-range-thumb{background:#4636e3;background:var(--PSPDFKit-SliderComponent-thumb-color);border:2px solid #fff;border:2px solid var(--PSPDFKit-SliderComponent-thumb-border);border-radius:100%;box-shadow:0 1px 2px 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;height:16px;-moz-transition:background-color .2s;transition:background-color .2s;width:16px}.PSPDFKit-27139754tezpaj4xtjvqyqphqa input[type=range]::-moz-range-thumb:active,.PSPDFKit-27139754tezpaj4xtjvqyqphqa input[type=range]::-moz-range-thumb:focus,.PSPDFKit-27139754tezpaj4xtjvqyqphqa input[type=range]::-moz-range-thumb:hover{background:#190d94;background:var(--PSPDFKit-SliderComponent-thumb-isHovered-color)}.PSPDFKit-27139754tezpaj4xtjvqyqphqa input[type=range]::-moz-focus-outer{border:0}.PSPDFKit-6b7xgm3nqzh79vcp4knygzskc2{margin-left:8px;text-align:right;white-space:nowrap} +.PSPDFKit-877ty5wd8zf2uk8mwxy3vm7ra1{align-items:center;color:inherit;cursor:pointer;display:flex;font-size:inherit;line-height:32px;margin:5px;position:relative}.PSPDFKit-877ty5wd8zf2uk8mwxy3vm7ra1:focus{outline:none}.PSPDFKit-8mewb5unfae7pfb8a3vhx2pfe4{cursor:pointer;margin-right:10px;position:relative}.PSPDFKit-7s1evqenghjbnmpkjx46g7aj7a{padding-right:6px}.PSPDFKit-4tsachwba3d2gug8ut8n2k7kw2{cursor:pointer;line-height:1;text-align:right;white-space:nowrap}.PSPDFKit-339qy9bx9b7sqbvd31hpseqnhm{background:#fff;background:var(--PSPDFKit-SliderDropdownComponent-items-background);border:1px solid #d8dfeb;border:1px solid var(--PSPDFKit-SliderDropdownComponent-items-border);display:none;list-style:none;margin:0;min-width:100%;overflow:visible;position:absolute;text-align:left;top:100%;z-index:100}.PSPDFKit-339qy9bx9b7sqbvd31hpseqnhm:focus{outline:none}.PSPDFKit-width-md .PSPDFKit-339qy9bx9b7sqbvd31hpseqnhm,.PSPDFKit-width-sm .PSPDFKit-339qy9bx9b7sqbvd31hpseqnhm,.PSPDFKit-width-xs .PSPDFKit-339qy9bx9b7sqbvd31hpseqnhm{left:auto!important;right:0}.PSPDFKit-86g1a3rfhteap5bxhyrt2js27u{bottom:100%;top:auto}.PSPDFKit-7dtmrym3urvgecwht2mvnd78yn{background:#fff;background:var(--PSPDFKit-SliderDropdownComponent-button-background);border:1px solid #d8dfeb;border:1px solid var(--PSPDFKit-SliderDropdownComponent-button-border);border-radius:3px;color:#3d424e;color:var(--PSPDFKit-SliderDropdownComponent-button-color);cursor:pointer;font:inherit;line-height:1;min-width:5em;padding-right:20px;text-align:center;width:100%}.PSPDFKit-7dtmrym3urvgecwht2mvnd78yn:hover .PSPDFKit-4ukn6hggdcjm9mj167e7f6hqx1{fill:#090c12;fill:var(--PSPDFKit-SliderDropdownComponent-button-isHovered-color)}.PSPDFKit-7bepqp75z28r5jat89hqdhcjva{display:flex}.PSPDFKit-4ukn6hggdcjm9mj167e7f6hqx1{fill:#848c9a;fill:var(--PSPDFKit-SliderDropdownComponent-button-toggle-color);line-height:1;position:absolute;right:5px;top:50%;transform:translateY(-50%)}.PSPDFKit-9f949cfpq924euep2ae47njjm .PSPDFKit-4ukn6hggdcjm9mj167e7f6hqx1{fill:#090c12;fill:var(--PSPDFKit-SliderDropdownComponent-button-show-color)}.PSPDFKit-4ukn6hggdcjm9mj167e7f6hqx1 svg{height:12px;width:12px}.PSPDFKit-5zut7thxsf86fddq8rgtbtrenu{border-bottom:1px solid #d8dfeb;border-bottom:1px solid var(--PSPDFKit-SliderDropdownComponent-item-border);clear:both;color:#3d424e;color:var(--PSPDFKit-SliderDropdownComponent-item-color);display:block;overflow:hidden;padding:10px;text-decoration:none;white-space:nowrap}.PSPDFKit-5zut7thxsf86fddq8rgtbtrenu:last-child{border-bottom:0}.PSPDFKit-5bqkg9v7er35bgbtaqq2vnq3z8{background:--PSPDFKit-SliderDropdownComponent-item-isFocused-background;color:#fff;color:var(--PSPDFKit-SliderDropdownComponent--item-isFocused-color)}.PSPDFKit-y9nzknrtb2kq52c2xfb4715p7{background:--PSPDFKit-SliderDropdownComponent-item-isSelected-background}.PSPDFKit-6baefa9vw8uyyrsvfez7h3ewrq{color:#3d424e;color:var(--PSPDFKit-SliderDropdownComponent-item-isDisabled-color);opacity:0.3;opacity:var(--PSPDFKit-SliderDropdownComponent-item-isDisabled-opacity)}.PSPDFKit-5bqkg9v7er35bgbtaqq2vnq3z8.PSPDFKit-y9nzknrtb2kq52c2xfb4715p7{background:#4636e3;background:var(--PSPDFKit-SliderDropdownComponent-item-isFocused-isSelected-background);font-weight:700}.PSPDFKit-9f949cfpq924euep2ae47njjm>.PSPDFKit-339qy9bx9b7sqbvd31hpseqnhm{display:block;left:50%}.PSPDFKit-width-lg .PSPDFKit-9f949cfpq924euep2ae47njjm>.PSPDFKit-339qy9bx9b7sqbvd31hpseqnhm,.PSPDFKit-width-xl .PSPDFKit-9f949cfpq924euep2ae47njjm>.PSPDFKit-339qy9bx9b7sqbvd31hpseqnhm{transform:translateX(-50%)}.PSPDFKit-9f949cfpq924euep2ae47njjm>a{outline:0}.PSPDFKit-4xjmg49gjvk5zp5p42ms81uw4h{background:#fff;background:var(--PSPDFKit-SliderDropdownComponent-dropdown-background);border:1px solid #d8dfeb;border:1px solid var(--PSPDFKit-SliderDropdownComponent-dropdown-border);border-radius:3px;box-shadow:0 3px 12px rgb(61 66 78 / 0.5);box-shadow:0 3px 12px var(--PSPDFKit-shadow-color);color:#848c9a;color:var(--PSPDFKit-SliderDropdownComponent-dropdown-color);height:auto;margin-top:5px;opacity:1;position:absolute;width:auto;z-index:2}.PSPDFKit-2cuzr66tz354vn9dgkzb1pwq4b{position:static} +.PSPDFKit-5w3r6933jce2abq346fpwgue51{flex-direction:row-reverse;justify-content:space-between;padding:2px;width:100%}.PSPDFKit-5w3r6933jce2abq346fpwgue51:after{box-shadow:none;color:#090c12;color:var(--color-coolGrey1000);font-size:0.75rem;font-size:var(--PSPDFKit-fontSize-2);font-weight:800;left:13px;right:.3125rem;top:0}.PSPDFKit-5w3r6933jce2abq346fpwgue51:before{border-radius:50%;margin-left:.5rem;margin-right:0}.PSPDFKit-45ug7rn2wuu9n7de4t3y1vuqwa:checked+.PSPDFKit-5w3r6933jce2abq346fpwgue51:before{background-color:#bec9d9;background-color:var(--color-coolGrey200);border-color:#bec9d9;border-color:var(--color-coolGrey200);box-shadow:none} +.PSPDFKit-6zammky19ps21racepzhy8rr4j{align-items:center;border-bottom:1px solid #f0f3f9;border-bottom:1px solid var(--PSPDFKit-FormDesignerPopoverComponent-item-border-color);display:flex;height:46px;padding:.5rem 1em;padding:.5rem var(--PSPDFKit-spacing-4)}.PSPDFKit-6zammky19ps21racepzhy8rr4j:last-child{border-bottom:none}.PSPDFKit-2973scygnut2d1y23dq3gdzwkg{display:flex;height:24px;width:24px}.PSPDFKit-257gq35az6dtxxmtvu6h8s17rt{flex:1 0;margin:0 1rem}.PSPDFKit-4jkuv1k2kb5b4d6b929psybced,.PSPDFKit-257gq35az6dtxxmtvu6h8s17rt{color:#3d424e;color:var(--PSPDFKit-FormDesignerPopoverComponent-item-color);font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.PSPDFKit-5n1c5d9upb23g6mdj3vrzdqj7c{height:30px}.PSPDFKit-5n1c5d9upb23g6mdj3vrzdqj7c .PSPDFKit-Input-Color-Dropdown{margin-right:0}.PSPDFKit-78jtbtb2j2q11tpjx4jn1wvwvk{background-color:#fff;background-color:var(--PSPDFKit-FormDesignerPopoverComponent-color-dropdown-menu-color)}.PSPDFKit-6s5q3xcggvrp6jet4dfsc14pgv{height:30px;margin:0}.PSPDFKit-6s5q3xcggvrp6jet4dfsc14pgv .PSPDFKit-Input-Dropdown-Items{transform:translateX(-78%)!important}.PSPDFKit-6gk4p1adjfr1kg7hjpk3dgvtwc{height:20px;width:20px}.PSPDFKit-4eqdajsqgt941vw7crd9u82kmt{align-items:center;border:none;border-radius:5px;display:flex;height:30px;justify-content:center;min-width:30px;padding:0}.PSPDFKit-837ytb7vykc59sv5yrbgvzw1yp{display:none}.PSPDFKit-width-md .PSPDFKit-837ytb7vykc59sv5yrbgvzw1yp,.PSPDFKit-width-sm .PSPDFKit-837ytb7vykc59sv5yrbgvzw1yp,.PSPDFKit-width-xs .PSPDFKit-837ytb7vykc59sv5yrbgvzw1yp{align-items:center;display:block}.PSPDFKit-6u23tbh3mu8cm8awxqyzn1zyru{align-items:center;display:flex;height:30px}.PSPDFKit-width-md .PSPDFKit-6u23tbh3mu8cm8awxqyzn1zyru,.PSPDFKit-width-sm .PSPDFKit-6u23tbh3mu8cm8awxqyzn1zyru,.PSPDFKit-width-xs .PSPDFKit-6u23tbh3mu8cm8awxqyzn1zyru{display:none}.PSPDFKit-5rw15mhzf9ycre4r1g7q2ptv9h{padding:0}.PSPDFKit-3691qqtsdq1317y5z7k3ak5jgk{height:32px}.PSPDFKit-68nrp97epj74ah3dwvjg79nfmr{align-items:center;border-top:1px solid #f0f3f9;border-top:1px solid var(--PSPDFKit-FormDesignerPopoverComponent-item-border-color);display:flex;height:46px;justify-content:space-between;padding:.5rem 1em;padding:.5rem var(--PSPDFKit-spacing-4)}.PSPDFKit-5fqyghhu3ajdj6t464j4ufdk6q{color:#848c9a;color:var(--color-coolGrey400);flex:1 0;font-size:0.75rem;font-size:var(--PSPDFKit-fontSize-2);text-align:right}.PSPDFKit-7qt3uxz4r5wpssw2bbe778ga4g{align-items:center;display:flex;padding:0 1em 1em;padding:0 var(--PSPDFKit-spacing-4) var(--PSPDFKit-spacing-4)}.PSPDFKit-edsr1ac3tdhjwcufzhwq9jz98{height:16px;margin-right:8px;width:16px}.PSPDFKit-8fdb8fsm3rux9gpz8ggdyhhsyb{color:#3d424e;color:var(--PSPDFKit-FormDesignerPopoverComponent-warning-label-color);font-size:0.75rem;font-size:var(--PSPDFKit-fontSize-2);line-height:0.815rem;line-height:var(--PSPDFKit-lineHeight-2)}.PSPDFKit-71h65asx9k85mdns4n8j2kt3ag{position:relative}.PSPDFKit-71h65asx9k85mdns4n8j2kt3ag>div:first-child{cursor:not-allowed}.PSPDFKit-8drrc5pnvxucen4e82mywhscj3{pointer-events:none}.PSPDFKit-8drrc5pnvxucen4e82mywhscj3 input{background-color:transparent!important}.PSPDFKit-6eg6h7jnq9b1wjwv6kf3eqsd7b{padding-bottom:1.625em!important;padding-bottom:var(--PSPDFKit-spacing-3)!important}.PSPDFKit-width-md .PSPDFKit-7kqbgjh4u33aw27zwkrtu57p2e,.PSPDFKit-width-sm .PSPDFKit-7kqbgjh4u33aw27zwkrtu57p2e,.PSPDFKit-width-xs .PSPDFKit-7kqbgjh4u33aw27zwkrtu57p2e{border-radius:3px;padding:0.46875em 0;padding:var(--PSPDFKit-spacing-7) 0;width:100px}.PSPDFKit-width-md .PSPDFKit-68w1xn1tjp178f46bwdhvjg7f1,.PSPDFKit-width-sm .PSPDFKit-68w1xn1tjp178f46bwdhvjg7f1,.PSPDFKit-width-xs .PSPDFKit-68w1xn1tjp178f46bwdhvjg7f1{border:1px solid #bec9d9;border:1px solid var(--PSPDFKit-FormDesignerPopoverComponent-deleteButton-border);color:#3d424e;color:var(--PSPDFKit-FormDesignerPopoverComponent-deleteButton-mobile-text-color);margin-right:8px}.PSPDFKit-width-md .PSPDFKit-68w1xn1tjp178f46bwdhvjg7f1:hover,.PSPDFKit-width-sm .PSPDFKit-68w1xn1tjp178f46bwdhvjg7f1:hover,.PSPDFKit-width-xs .PSPDFKit-68w1xn1tjp178f46bwdhvjg7f1:hover{background-color:initial}.PSPDFKit-8jb23wpy76fvg2x2vsvwy4rwvx{background-color:#4636e3;background-color:var(--PSPDFKit-FormDesignerPopoverComponent-doneButton-background);border:1px solid #2b1cc1;border:1px solid var(--PSPDFKit-FormDesignerPopoverComponent-doneButton-border);color:#fff;color:var(--PSPDFKit-FormDesignerPopoverComponent-doneButton-color);display:none}.PSPDFKit-width-md .PSPDFKit-8jb23wpy76fvg2x2vsvwy4rwvx,.PSPDFKit-width-sm .PSPDFKit-8jb23wpy76fvg2x2vsvwy4rwvx,.PSPDFKit-width-xs .PSPDFKit-8jb23wpy76fvg2x2vsvwy4rwvx{background-color:#4636e3;background-color:var(--PSPDFKit-FormDesignerPopoverComponent-doneButton-background);color:#fff;color:var(--PSPDFKit-FormDesignerPopoverComponent-doneButton-color);display:block}.PSPDFKit-width-md .PSPDFKit-8jb23wpy76fvg2x2vsvwy4rwvx:hover,.PSPDFKit-width-sm .PSPDFKit-8jb23wpy76fvg2x2vsvwy4rwvx:hover,.PSPDFKit-width-xs .PSPDFKit-8jb23wpy76fvg2x2vsvwy4rwvx:hover{background-color:#4636e3;background-color:var(--PSPDFKit-FormDesignerPopoverComponent-doneButton-background)}[class*=PSPDFKit-Form-Creator-Editor-Horizontal-Alignment-]:not(.PSPDFKit-Form-Creator-Editor-Horizontal-Alignment-active),[class*=PSPDFKit-Form-Creator-Editor-Vertical-Alignment-]:not(.PSPDFKit-Form-Creator-Editor-Vertical-Alignment-active){background-color:#f0f3f9;background-color:var(--PSPDFKit-FormDesignerPopoverComponent-radioGroup-background-color)} +.PSPDFKit-6r17fy6uh5kqy3cfjb73vq9v1v{background:#f0f3f9;background:var(--PSPDFKit-AnnotationToolbar-background);font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3)}.PSPDFKit-2uhz161knhrkpzrb5mn5na3aqr{width:100%}.PSPDFKit-6jgwts4kv8dr7cftse42cxk2z3{align-items:center;border-bottom:1px solid #bec9d9;border-bottom:1px solid var(--PSPDFKit-AnnotationToolbar-border);box-shadow:0 1px 2px rgba(0,0,0,.1);display:flex;flex:2;flex-direction:row;height:44px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-6jgwts4kv8dr7cftse42cxk2z3 .PSPDFKit-4hphv7cb89h1ffw9ptvmg9xjt8,.PSPDFKit-6jgwts4kv8dr7cftse42cxk2z3 .PSPDFKit-86nhzcde1runqybnpjzcykq7ex{align-items:center;display:flex;flex-grow:1}.PSPDFKit-6jgwts4kv8dr7cftse42cxk2z3 .PSPDFKit-86nhzcde1runqybnpjzcykq7ex{flex-direction:row-reverse;justify-content:flex-start}.PSPDFKit-width-md .PSPDFKit-6jgwts4kv8dr7cftse42cxk2z3,.PSPDFKit-width-sm .PSPDFKit-6jgwts4kv8dr7cftse42cxk2z3,.PSPDFKit-width-xs .PSPDFKit-6jgwts4kv8dr7cftse42cxk2z3{flex:1;flex-direction:row-reverse}.PSPDFKit-width-md .PSPDFKit-6jgwts4kv8dr7cftse42cxk2z3 .PSPDFKit-4hphv7cb89h1ffw9ptvmg9xjt8,.PSPDFKit-width-sm .PSPDFKit-6jgwts4kv8dr7cftse42cxk2z3 .PSPDFKit-4hphv7cb89h1ffw9ptvmg9xjt8,.PSPDFKit-width-xs .PSPDFKit-6jgwts4kv8dr7cftse42cxk2z3 .PSPDFKit-4hphv7cb89h1ffw9ptvmg9xjt8{flex:initial;justify-content:flex-end}.PSPDFKit-width-md .PSPDFKit-6jgwts4kv8dr7cftse42cxk2z3 .PSPDFKit-86nhzcde1runqybnpjzcykq7ex,.PSPDFKit-width-sm .PSPDFKit-6jgwts4kv8dr7cftse42cxk2z3 .PSPDFKit-86nhzcde1runqybnpjzcykq7ex,.PSPDFKit-width-xs .PSPDFKit-6jgwts4kv8dr7cftse42cxk2z3 .PSPDFKit-86nhzcde1runqybnpjzcykq7ex{flex-direction:row;justify-content:flex-start}.PSPDFKit-6jgwts4kv8dr7cftse42cxk2z3.PSPDFKit-2qbav5sard6dxefsy6p5gufajq{flex-direction:row}.PSPDFKit-318vz1kpftbtjp8eccy824g4m6 .PSPDFKit-6jgwts4kv8dr7cftse42cxk2z3{border-bottom:none;border-top:1px solid #bec9d9;border-top:1px solid var(--PSPDFKit-AnnotationToolbar-border);box-shadow:0 -1px 2px rgba(0,0,0,.1)}.PSPDFKit-78mpt2swt4apfep3ag7quqq6me{align-items:center;height:44px}.PSPDFKit-2uws3ww83fja6b3syxj88szuvh{align-items:center;display:flex;flex-wrap:wrap;min-height:44px}.PSPDFKit-width-md .PSPDFKit-2uws3ww83fja6b3syxj88szuvh,.PSPDFKit-width-sm .PSPDFKit-2uws3ww83fja6b3syxj88szuvh,.PSPDFKit-width-xs .PSPDFKit-2uws3ww83fja6b3syxj88szuvh{margin-right:6px}.PSPDFKit-532n3mbvmujvwmv3zweh7u59u7{height:32px}.PSPDFKit-8b7caq86m7x4bkzf3ecjwqesrz button{height:32px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.PSPDFKit-xmyz8vgna6pqfkw4wx1twayf1{align-items:center;width:100%}.PSPDFKit-xmyz8vgna6pqfkw4wx1twayf1,.PSPDFKit-559g7qqwsyx86ydrj6d8x6kwqz{display:flex;flex-direction:column}.PSPDFKit-4cjwhud83czuezgnpqtt8t1g4y{margin:0 8px}.PSPDFKit-4cjwhud83czuezgnpqtt8t1g4y:last-child{display:none}.PSPDFKit-width-md .PSPDFKit-4cjwhud83czuezgnpqtt8t1g4y,.PSPDFKit-width-sm .PSPDFKit-4cjwhud83czuezgnpqtt8t1g4y,.PSPDFKit-width-xs .PSPDFKit-4cjwhud83czuezgnpqtt8t1g4y{display:none}.PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s{display:flex;flex:1}.PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s .PSPDFKit-6f2cfyrxss9tgjemae8n6d2v6x{align-content:center;align-items:center;display:flex;justify-content:center}.PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s .PSPDFKit-6f2cfyrxss9tgjemae8n6d2v6x .PSPDFKit-5qha63wcjhyk977pmb11w183gf:not(.PSPDFKit-3zswrctphfm56abme3mhe89x7j),.PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s .PSPDFKit-6f2cfyrxss9tgjemae8n6d2v6x .PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng:not(.PSPDFKit-3zswrctphfm56abme3mhe89x7j){cursor:default}.PSPDFKit-width-md .PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s .PSPDFKit-6f2cfyrxss9tgjemae8n6d2v6x .PSPDFKit-2uws3ww83fja6b3syxj88szuvh,.PSPDFKit-width-sm .PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s .PSPDFKit-6f2cfyrxss9tgjemae8n6d2v6x .PSPDFKit-2uws3ww83fja6b3syxj88szuvh,.PSPDFKit-width-xs .PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s .PSPDFKit-6f2cfyrxss9tgjemae8n6d2v6x .PSPDFKit-2uws3ww83fja6b3syxj88szuvh{display:none}.PSPDFKit-width-md .PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s .PSPDFKit-6f2cfyrxss9tgjemae8n6d2v6x .PSPDFKit-5qha63wcjhyk977pmb11w183gf,.PSPDFKit-width-md .PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s .PSPDFKit-6f2cfyrxss9tgjemae8n6d2v6x .PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng,.PSPDFKit-width-sm .PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s .PSPDFKit-6f2cfyrxss9tgjemae8n6d2v6x .PSPDFKit-5qha63wcjhyk977pmb11w183gf,.PSPDFKit-width-sm .PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s .PSPDFKit-6f2cfyrxss9tgjemae8n6d2v6x .PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng,.PSPDFKit-width-xs .PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s .PSPDFKit-6f2cfyrxss9tgjemae8n6d2v6x .PSPDFKit-5qha63wcjhyk977pmb11w183gf,.PSPDFKit-width-xs .PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s .PSPDFKit-6f2cfyrxss9tgjemae8n6d2v6x .PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng{cursor:pointer}.PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s .PSPDFKit-56zcn74uwt3jmwt9eqt4nkmm3w{display:none}.PSPDFKit-width-md .PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s .PSPDFKit-56zcn74uwt3jmwt9eqt4nkmm3w,.PSPDFKit-width-sm .PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s .PSPDFKit-56zcn74uwt3jmwt9eqt4nkmm3w,.PSPDFKit-width-xs .PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s .PSPDFKit-56zcn74uwt3jmwt9eqt4nkmm3w{display:block}.PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s .PSPDFKit-2uws3ww83fja6b3syxj88szuvh{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;line-height:0}.PSPDFKit-7tafq9cxvp7fp9488nkv4gt1q2{align-items:center;display:flex;height:100%;min-width:100px}.PSPDFKit-width-md .PSPDFKit-7tafq9cxvp7fp9488nkv4gt1q2,.PSPDFKit-width-sm .PSPDFKit-7tafq9cxvp7fp9488nkv4gt1q2,.PSPDFKit-width-xs .PSPDFKit-7tafq9cxvp7fp9488nkv4gt1q2{display:none}.PSPDFKit-7tafq9cxvp7fp9488nkv4gt1q2 button{height:32px}.PSPDFKit-6panjxae2rqax33e2x13v8zhd7,.PSPDFKit-4aap34xg2exyha2wvgep2kbrsr{align-items:center;display:flex;height:32px;margin-right:0.609em;margin-right:var(--PSPDFKit-spacing-6)}.PSPDFKit-width-md .PSPDFKit-6panjxae2rqax33e2x13v8zhd7,.PSPDFKit-width-sm .PSPDFKit-6panjxae2rqax33e2x13v8zhd7,.PSPDFKit-width-xs .PSPDFKit-6panjxae2rqax33e2x13v8zhd7{display:none}.PSPDFKit-63mkqz864gr762bjh37u3z33ks,.PSPDFKit-7ahby6faw9zgpdmzru1qdud52z,.PSPDFKit-7bb9twn4c2xfchvdyv1arjd4y1,.PSPDFKit-64yekz19k5s2s3kk34sutarr9w{align-items:center;display:flex}.PSPDFKit-7ahby6faw9zgpdmzru1qdud52z,.PSPDFKit-7bb9twn4c2xfchvdyv1arjd4y1,.PSPDFKit-64yekz19k5s2s3kk34sutarr9w{height:32px}.PSPDFKit-7ahby6faw9zgpdmzru1qdud52z circle,.PSPDFKit-7ahby6faw9zgpdmzru1qdud52z line,.PSPDFKit-7ahby6faw9zgpdmzru1qdud52z path,.PSPDFKit-7ahby6faw9zgpdmzru1qdud52z polygon,.PSPDFKit-7ahby6faw9zgpdmzru1qdud52z polyline,.PSPDFKit-7ahby6faw9zgpdmzru1qdud52z rect,.PSPDFKit-7bb9twn4c2xfchvdyv1arjd4y1 circle,.PSPDFKit-7bb9twn4c2xfchvdyv1arjd4y1 line,.PSPDFKit-7bb9twn4c2xfchvdyv1arjd4y1 path,.PSPDFKit-7bb9twn4c2xfchvdyv1arjd4y1 polygon,.PSPDFKit-7bb9twn4c2xfchvdyv1arjd4y1 polyline,.PSPDFKit-7bb9twn4c2xfchvdyv1arjd4y1 rect,.PSPDFKit-64yekz19k5s2s3kk34sutarr9w circle,.PSPDFKit-64yekz19k5s2s3kk34sutarr9w line,.PSPDFKit-64yekz19k5s2s3kk34sutarr9w path,.PSPDFKit-64yekz19k5s2s3kk34sutarr9w polygon,.PSPDFKit-64yekz19k5s2s3kk34sutarr9w polyline,.PSPDFKit-64yekz19k5s2s3kk34sutarr9w rect{stroke:#4d525d;stroke:var(--PSPDFKit-AnnotationToolbar-startLineCapSelect-circle-stroke)}.PSPDFKit-7ahby6faw9zgpdmzru1qdud52z button,.PSPDFKit-7bb9twn4c2xfchvdyv1arjd4y1 button,.PSPDFKit-64yekz19k5s2s3kk34sutarr9w button{height:32px}.PSPDFKit-7ahby6faw9zgpdmzru1qdud52z,.PSPDFKit-7bb9twn4c2xfchvdyv1arjd4y1{width:64px}.PSPDFKit-width-md .PSPDFKit-7bb9twn4c2xfchvdyv1arjd4y1,.PSPDFKit-width-sm .PSPDFKit-7bb9twn4c2xfchvdyv1arjd4y1,.PSPDFKit-width-xs .PSPDFKit-7bb9twn4c2xfchvdyv1arjd4y1{left:0;right:auto!important}.PSPDFKit-64yekz19k5s2s3kk34sutarr9w{width:96px}.PSPDFKit-63mkqz864gr762bjh37u3z33ks{height:32px}.PSPDFKit-63mkqz864gr762bjh37u3z33ks:hover,.PSPDFKit-63mkqz864gr762bjh37u3z33ks[data-focus-within]{background:transparent}.PSPDFKit-63mkqz864gr762bjh37u3z33ks:focus-within{background:transparent}.PSPDFKit-6e37e5hxgedzhdzpj3bgcfw8wg{align-items:center;background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background);border:1px solid #d8dfeb;border:1px solid var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-border);border-radius:3px;color:#848c9a;color:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-color);cursor:pointer;display:flex;height:32px;justify-content:space-between;margin-right:0.609em;margin-right:var(--PSPDFKit-spacing-6);padding:0.46875em;padding:var(--PSPDFKit-spacing-7);width:55px}.PSPDFKit-6e37e5hxgedzhdzpj3bgcfw8wg span{fill:#848c9a;fill:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-color)}.PSPDFKit-6e37e5hxgedzhdzpj3bgcfw8wg:hover:not(.PSPDFKit-4b2dydfrvtffvsbyz6hjmmskx3),.PSPDFKit-6e37e5hxgedzhdzpj3bgcfw8wg[data-focus-within]{background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background)}.PSPDFKit-6e37e5hxgedzhdzpj3bgcfw8wg:hover:not(.PSPDFKit-4b2dydfrvtffvsbyz6hjmmskx3) span,.PSPDFKit-6e37e5hxgedzhdzpj3bgcfw8wg[data-focus-within] span{fill:#090c12;fill:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-isHovered-color)}.PSPDFKit-6e37e5hxgedzhdzpj3bgcfw8wg:focus-within{background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background)}.PSPDFKit-6e37e5hxgedzhdzpj3bgcfw8wg:focus-within span{fill:#090c12;fill:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-isHovered-color)}@media(max-width:1080px)and (min-width:992px){.PSPDFKit-xjmpbe2ndu31ngzn7k6thcce2{width:100px}}.PSPDFKit-5qha63wcjhyk977pmb11w183gf,.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)!important;color:#3d424e;color:var(--PSPDFKit-AnnotationToolbar-button-color);flex-shrink:0}.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng,.PSPDFKit-5qha63wcjhyk977pmb11w183gf.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b,.PSPDFKit-5qha63wcjhyk977pmb11w183gf.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k,.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng{border-left:0!important;border-right:1px solid #bec9d9!important;border-right:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border)!important}.PSPDFKit-width-md .PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng,.PSPDFKit-width-md .PSPDFKit-5qha63wcjhyk977pmb11w183gf.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b,.PSPDFKit-width-md .PSPDFKit-5qha63wcjhyk977pmb11w183gf.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k,.PSPDFKit-width-md .PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng,.PSPDFKit-width-sm .PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng,.PSPDFKit-width-sm .PSPDFKit-5qha63wcjhyk977pmb11w183gf.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b,.PSPDFKit-width-sm .PSPDFKit-5qha63wcjhyk977pmb11w183gf.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k,.PSPDFKit-width-sm .PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng,.PSPDFKit-width-xs .PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng,.PSPDFKit-width-xs .PSPDFKit-5qha63wcjhyk977pmb11w183gf.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b,.PSPDFKit-width-xs .PSPDFKit-5qha63wcjhyk977pmb11w183gf.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k,.PSPDFKit-width-xs .PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border)!important;border-right:0!important}.PSPDFKit-5qha63wcjhyk977pmb11w183gf.PSPDFKit-7hhujt42dfa3wavves9fezeqju,.PSPDFKit-7hhujt42dfa3wavves9fezeqju.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng{border-left:0!important;border-right:0!important}.PSPDFKit-width-md .PSPDFKit-5qha63wcjhyk977pmb11w183gf.PSPDFKit-7hhujt42dfa3wavves9fezeqju,.PSPDFKit-width-md .PSPDFKit-7hhujt42dfa3wavves9fezeqju.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng,.PSPDFKit-width-sm .PSPDFKit-5qha63wcjhyk977pmb11w183gf.PSPDFKit-7hhujt42dfa3wavves9fezeqju,.PSPDFKit-width-sm .PSPDFKit-7hhujt42dfa3wavves9fezeqju.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng,.PSPDFKit-width-xs .PSPDFKit-5qha63wcjhyk977pmb11w183gf.PSPDFKit-7hhujt42dfa3wavves9fezeqju,.PSPDFKit-width-xs .PSPDFKit-7hhujt42dfa3wavves9fezeqju.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)!important}.PSPDFKit-width-lg .PSPDFKit-5qha63wcjhyk977pmb11w183gf:not(.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b) :not(.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k) :not(.PSPDFKit-6kwwztxzkww77985knzv4yj25t) :not(.PSPDFKit-3zswrctphfm56abme3mhe89x7j) :not(.PSPDFKit-dh9zgevasabjjq92gftvq7d1s) :not(.PSPDFKit-6hwd5kb669g2rktq8z7tch8zey).PSPDFKit-7hajh57r86sbfab9agdabjpdus,.PSPDFKit-width-lg .PSPDFKit-5qha63wcjhyk977pmb11w183gf:not(.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b) :not(.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k) :not(.PSPDFKit-6kwwztxzkww77985knzv4yj25t) :not(.PSPDFKit-3zswrctphfm56abme3mhe89x7j) :not(.PSPDFKit-dh9zgevasabjjq92gftvq7d1s) :not(.PSPDFKit-6hwd5kb669g2rktq8z7tch8zey):active,.PSPDFKit-width-lg .PSPDFKit-5qha63wcjhyk977pmb11w183gf:not(.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b) :not(.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k) :not(.PSPDFKit-6kwwztxzkww77985knzv4yj25t) :not(.PSPDFKit-3zswrctphfm56abme3mhe89x7j) :not(.PSPDFKit-dh9zgevasabjjq92gftvq7d1s) :not(.PSPDFKit-6hwd5kb669g2rktq8z7tch8zey):focus,.PSPDFKit-width-lg .PSPDFKit-5qha63wcjhyk977pmb11w183gf:not(.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b) :not(.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k) :not(.PSPDFKit-6kwwztxzkww77985knzv4yj25t) :not(.PSPDFKit-3zswrctphfm56abme3mhe89x7j) :not(.PSPDFKit-dh9zgevasabjjq92gftvq7d1s) :not(.PSPDFKit-6hwd5kb669g2rktq8z7tch8zey):hover,.PSPDFKit-width-lg .PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng:not(.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b) :not(.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k) :not(.PSPDFKit-6kwwztxzkww77985knzv4yj25t) :not(.PSPDFKit-3zswrctphfm56abme3mhe89x7j) :not(.PSPDFKit-dh9zgevasabjjq92gftvq7d1s) :not(.PSPDFKit-6hwd5kb669g2rktq8z7tch8zey).PSPDFKit-7hajh57r86sbfab9agdabjpdus,.PSPDFKit-width-lg .PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng:not(.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b) :not(.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k) :not(.PSPDFKit-6kwwztxzkww77985knzv4yj25t) :not(.PSPDFKit-3zswrctphfm56abme3mhe89x7j) :not(.PSPDFKit-dh9zgevasabjjq92gftvq7d1s) :not(.PSPDFKit-6hwd5kb669g2rktq8z7tch8zey):active,.PSPDFKit-width-lg .PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng:not(.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b) :not(.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k) :not(.PSPDFKit-6kwwztxzkww77985knzv4yj25t) :not(.PSPDFKit-3zswrctphfm56abme3mhe89x7j) :not(.PSPDFKit-dh9zgevasabjjq92gftvq7d1s) :not(.PSPDFKit-6hwd5kb669g2rktq8z7tch8zey):focus,.PSPDFKit-width-lg .PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng:not(.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b) :not(.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k) :not(.PSPDFKit-6kwwztxzkww77985knzv4yj25t) :not(.PSPDFKit-3zswrctphfm56abme3mhe89x7j) :not(.PSPDFKit-dh9zgevasabjjq92gftvq7d1s) :not(.PSPDFKit-6hwd5kb669g2rktq8z7tch8zey):hover,.PSPDFKit-width-xl .PSPDFKit-5qha63wcjhyk977pmb11w183gf:not(.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b) :not(.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k) :not(.PSPDFKit-6kwwztxzkww77985knzv4yj25t) :not(.PSPDFKit-3zswrctphfm56abme3mhe89x7j) :not(.PSPDFKit-dh9zgevasabjjq92gftvq7d1s) :not(.PSPDFKit-6hwd5kb669g2rktq8z7tch8zey).PSPDFKit-7hajh57r86sbfab9agdabjpdus,.PSPDFKit-width-xl .PSPDFKit-5qha63wcjhyk977pmb11w183gf:not(.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b) :not(.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k) :not(.PSPDFKit-6kwwztxzkww77985knzv4yj25t) :not(.PSPDFKit-3zswrctphfm56abme3mhe89x7j) :not(.PSPDFKit-dh9zgevasabjjq92gftvq7d1s) :not(.PSPDFKit-6hwd5kb669g2rktq8z7tch8zey):active,.PSPDFKit-width-xl .PSPDFKit-5qha63wcjhyk977pmb11w183gf:not(.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b) :not(.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k) :not(.PSPDFKit-6kwwztxzkww77985knzv4yj25t) :not(.PSPDFKit-3zswrctphfm56abme3mhe89x7j) :not(.PSPDFKit-dh9zgevasabjjq92gftvq7d1s) :not(.PSPDFKit-6hwd5kb669g2rktq8z7tch8zey):focus,.PSPDFKit-width-xl .PSPDFKit-5qha63wcjhyk977pmb11w183gf:not(.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b) :not(.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k) :not(.PSPDFKit-6kwwztxzkww77985knzv4yj25t) :not(.PSPDFKit-3zswrctphfm56abme3mhe89x7j) :not(.PSPDFKit-dh9zgevasabjjq92gftvq7d1s) :not(.PSPDFKit-6hwd5kb669g2rktq8z7tch8zey):hover,.PSPDFKit-width-xl .PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng:not(.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b) :not(.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k) :not(.PSPDFKit-6kwwztxzkww77985knzv4yj25t) :not(.PSPDFKit-3zswrctphfm56abme3mhe89x7j) :not(.PSPDFKit-dh9zgevasabjjq92gftvq7d1s) :not(.PSPDFKit-6hwd5kb669g2rktq8z7tch8zey).PSPDFKit-7hajh57r86sbfab9agdabjpdus,.PSPDFKit-width-xl .PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng:not(.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b) :not(.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k) :not(.PSPDFKit-6kwwztxzkww77985knzv4yj25t) :not(.PSPDFKit-3zswrctphfm56abme3mhe89x7j) :not(.PSPDFKit-dh9zgevasabjjq92gftvq7d1s) :not(.PSPDFKit-6hwd5kb669g2rktq8z7tch8zey):active,.PSPDFKit-width-xl .PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng:not(.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b) :not(.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k) :not(.PSPDFKit-6kwwztxzkww77985knzv4yj25t) :not(.PSPDFKit-3zswrctphfm56abme3mhe89x7j) :not(.PSPDFKit-dh9zgevasabjjq92gftvq7d1s) :not(.PSPDFKit-6hwd5kb669g2rktq8z7tch8zey):focus,.PSPDFKit-width-xl .PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng:not(.PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b) :not(.PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k) :not(.PSPDFKit-6kwwztxzkww77985knzv4yj25t) :not(.PSPDFKit-3zswrctphfm56abme3mhe89x7j) :not(.PSPDFKit-dh9zgevasabjjq92gftvq7d1s) :not(.PSPDFKit-6hwd5kb669g2rktq8z7tch8zey):hover{background:transparent!important}.PSPDFKit-5qha63wcjhyk977pmb11w183gf.PSPDFKit-7hajh57r86sbfab9agdabjpdus,.PSPDFKit-5qha63wcjhyk977pmb11w183gf:active,.PSPDFKit-5qha63wcjhyk977pmb11w183gf:focus,.PSPDFKit-5qha63wcjhyk977pmb11w183gf:hover,.PSPDFKit-7hajh57r86sbfab9agdabjpdus.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng,.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng:active,.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng:focus,.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng:hover{background:#d8dfeb;background:var(--PSPDFKit-AnnotationToolbar-button-isHovered-background)}.PSPDFKit-qq4v7j3ztmbsu7sszn7n6eedz,.PSPDFKit-53qj5y7xwpxf385e5qupnueez4{cursor:not-allowed;opacity:.2;pointer-events:none}.PSPDFKit-67g1s4jvmu1dwuq693983pavtq{border:0!important;color:#3d424e!important;color:var(--PSPDFKit-AnnotationToolbar-icon-color)!important;display:flex!important;pointer-events:auto!important}.PSPDFKit-6kwwztxzkww77985knzv4yj25t{cursor:pointer!important;height:44px;min-width:44px;padding:0 11px}.PSPDFKit-6kwwztxzkww77985knzv4yj25t.PSPDFKit-7hajh57r86sbfab9agdabjpdus,.PSPDFKit-6kwwztxzkww77985knzv4yj25t:active,.PSPDFKit-6kwwztxzkww77985knzv4yj25t:hover{background:#d8dfeb;background:var(--PSPDFKit-AnnotationToolbar-button-isHovered-background)}.PSPDFKit-p3fhayknwfc2wy838mm6uf6ts{outline:2px solid #4636e3;outline:2px solid var(--PSPDFKit-AnnotationToolbar-button-outline)}.PSPDFKit-6f2cfyrxss9tgjemae8n6d2v6x:first-child .PSPDFKit-5qha63wcjhyk977pmb11w183gf:first-child,.PSPDFKit-6f2cfyrxss9tgjemae8n6d2v6x:first-child .PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng:first-child{border-left:none!important}.PSPDFKit-7pxe4xgby27sg3gch3hgymc65k{line-height:normal;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.PSPDFKit-3fr3j3qzhb8zms4ha22gf8ap4w{background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background);box-shadow:none;padding:0}.PSPDFKit-7vux3363c2h5bhhue8x2tgc2d8{align-items:center;background:#ffc78f;background:var(--PSPDFKit-AnnotationToolbar-warning-icon-background);border-radius:3px;box-shadow:0 .75px 1.5px 0 rgba(0,0,0,.15);cursor:pointer;display:flex;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);gap:10px;margin:0 0.46875em;margin:0 var(--PSPDFKit-spacing-7);padding:4px 0.8125em;padding:4px var(--PSPDFKit-spacing-5)}.PSPDFKit-55tsnvt1cbusd6n1b314embzfj{height:16px;width:16px}.PSPDFKit-ve8hjm9h24pnag6snsj5hqyba{width:max-content}.PSPDFKit-364rxkqcrexqk43jvg479qt5us{box-sizing:initial;display:flex;flex-flow:row wrap;padding:10px}.PSPDFKit-7fb12eurd4ysp5ys7tc9wgnuqm{align-items:center;border:none;border-radius:5px;height:30px;justify-content:center;min-width:30px;padding:0}.PSPDFKit-7fb12eurd4ysp5ys7tc9wgnuqm,.PSPDFKit-5rx1gxu9ku1pmjedwxt4bb8tcs{display:flex}.PSPDFKit-2v57cb7nenh6qvs2r55dm7ftbf{height:20px;width:20px}.PSPDFKit-42uwtdws1bb24aernmbsz8ndnc,.PSPDFKit-8497hrdu98kjamf5s4gjf2bqmd{stroke:#4d525d;stroke:var(--PSPDFKit-AnnotationToolbar-startLineCapSelect-circle-stroke);stroke-width:1px;align-items:center;display:flex;padding:10px}.PSPDFKit-3c6frtkm4xmn7hkv9bmpghx53j{display:none}.PSPDFKit-width-md .PSPDFKit-3c6frtkm4xmn7hkv9bmpghx53j,.PSPDFKit-width-sm .PSPDFKit-3c6frtkm4xmn7hkv9bmpghx53j,.PSPDFKit-width-xs .PSPDFKit-3c6frtkm4xmn7hkv9bmpghx53j{align-items:center;display:block;margin-right:0.609em;margin-right:var(--PSPDFKit-spacing-6)}.PSPDFKit-3smmwjpf56cyb4zkshtg21jz2s,.PSPDFKit-7bwhutmv5jg6hggz6hp8kfcaxy{align-items:center;display:flex}.PSPDFKit-width-md .PSPDFKit-2zvhj3he31vtfrqjkjpsjb1694,.PSPDFKit-width-sm .PSPDFKit-2zvhj3he31vtfrqjkjpsjb1694,.PSPDFKit-width-xs .PSPDFKit-2zvhj3he31vtfrqjkjpsjb1694{align-items:center}.PSPDFKit-823r5gtrunhm37br45pwje8e5c,.PSPDFKit-65ynqjj3xqcettebe26255q3ky{margin-right:10px}.PSPDFKit-width-md .PSPDFKit-65ynqjj3xqcettebe26255q3ky,.PSPDFKit-width-sm .PSPDFKit-65ynqjj3xqcettebe26255q3ky,.PSPDFKit-width-xs .PSPDFKit-65ynqjj3xqcettebe26255q3ky{margin-right:0}.PSPDFKit-j3u5td7da5d2g12j3qb8kpqeq{align-items:center;display:inline-flex}.PSPDFKit-74acavk6n23dwq957gtnmbyyrf{align-self:center;color:#3d424e;color:var(--PSPDFKit-AnnotationToolbar-label-color);padding:0 11px}.PSPDFKit-width-xs .PSPDFKit-6dqybwsyjvqprdkfh1d5t3w2yj{max-width:110px}.PSPDFKit-87t3tq755fdm56p5111u2h5a4g{align-items:center;display:flex;flex-wrap:wrap;line-height:0}.PSPDFKit-4ssbr6rxv19yz6yh7bjp4pfgeq{align-items:center;border-right:1px solid #bec9d9;border-right:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border);display:flex;min-height:44px;padding-left:5px;padding-right:5px}@media(max-width:992px){.PSPDFKit-4ssbr6rxv19yz6yh7bjp4pfgeq{border-left:1px solid #bec9d9;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border);border-right:none;max-width:70px}}.PSPDFKit-dh9zgevasabjjq92gftvq7d1s{background-color:#fff;background-color:var(--PSPDFKit-AnnotationToolbar-redactions-button-background);border-radius:3px;box-shadow:0 .75px 1.5px rgba(0,0,0,.15);color:#000;color:var(--PSPDFKit-AnnotationToolbar-redactions-button-color);display:flex;height:28px;white-space:nowrap}.PSPDFKit-dh9zgevasabjjq92gftvq7d1s.PSPDFKit-7hajh57r86sbfab9agdabjpdus,.PSPDFKit-dh9zgevasabjjq92gftvq7d1s:active,.PSPDFKit-dh9zgevasabjjq92gftvq7d1s:focus,.PSPDFKit-dh9zgevasabjjq92gftvq7d1s:hover{background-color:#4636e3;background-color:var(--PSPDFKit-AnnotationToolbar-redactions-button-isHovered-background);color:#fff;color:var(--PSPDFKit-AnnotationToolbar-redactions-button-isHovered-color);filter:drop-shadow(0 1px 1px rgba(0,0,0,.15))}@media(max-width:992px){.PSPDFKit-dh9zgevasabjjq92gftvq7d1s{border-left:none!important;justify-content:flex-start;max-width:60px}.PSPDFKit-dh9zgevasabjjq92gftvq7d1s span{max-width:60px;overflow-x:hidden}.PSPDFKit-5qha63wcjhyk977pmb11w183gf.PSPDFKit-7hhujt42dfa3wavves9fezeqju.PSPDFKit-dh9zgevasabjjq92gftvq7d1s,.PSPDFKit-7hhujt42dfa3wavves9fezeqju.PSPDFKit-dh9zgevasabjjq92gftvq7d1s.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng{border-left:none!important}}.PSPDFKit-p9ftrww9ym9pd2eqpps4xf6fp{display:inline-flex}.PSPDFKit-68jg3chhe27v2qnds97q2btw4c{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)!important;padding:0 0.8125em;padding:0 var(--PSPDFKit-spacing-5)}.PSPDFKit-3hf9zjqgg3t2aehba45fzmw9nc{margin-left:4px}.PSPDFKit-4g9caken58dfxv7snyka36rppq{flex-direction:row-reverse}.PSPDFKit-width-md .PSPDFKit-4pfvumqbpr5cct3yusfvsb8cza,.PSPDFKit-width-sm .PSPDFKit-4pfvumqbpr5cct3yusfvsb8cza,.PSPDFKit-width-xs .PSPDFKit-4pfvumqbpr5cct3yusfvsb8cza{flex-direction:row;overflow-x:auto}.PSPDFKit-width-md .PSPDFKit-4pfvumqbpr5cct3yusfvsb8cza .PSPDFKit-86nhzcde1runqybnpjzcykq7ex,.PSPDFKit-width-sm .PSPDFKit-4pfvumqbpr5cct3yusfvsb8cza .PSPDFKit-86nhzcde1runqybnpjzcykq7ex,.PSPDFKit-width-xs .PSPDFKit-4pfvumqbpr5cct3yusfvsb8cza .PSPDFKit-86nhzcde1runqybnpjzcykq7ex{flex-basis:0;flex-direction:row-reverse}.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng{cursor:pointer;display:inline-flex;height:100%;margin:0;padding:10px}.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng.PSPDFKit-7hajh57r86sbfab9agdabjpdus,.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng:active,.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng:focus,.PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng:hover{background-color:#f0f3f9;background-color:var(--PSPDFKit-AnnotationToolbar-background);border-bottom:1px solid #bec9d9;border-bottom:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)}.PSPDFKit-5mpcapg77fbdwa2sj3mz1x79hy span{align-items:center;display:flex;justify-content:center} +.PSPDFKit-7v6us4bgaesz3ux74pvm4adq66{bottom:0;cursor:inherit;left:0;mix-blend-mode:multiply;position:absolute;right:0;top:0;-webkit-user-select:text;-ms-user-select:text;user-select:text}.PSPDFKit-browser-engine-webkit .PSPDFKit-7v6us4bgaesz3ux74pvm4adq66::selection{background:transparent}.PSPDFKit-browser-engine-gecko .PSPDFKit-7v6us4bgaesz3ux74pvm4adq66,.PSPDFKit-browser-system-android .PSPDFKit-7v6us4bgaesz3ux74pvm4adq66,.PSPDFKit-browser-system-windows .PSPDFKit-7v6us4bgaesz3ux74pvm4adq66{opacity:.2}.PSPDFKit-browser-engine-gecko .PSPDFKit-7v6us4bgaesz3ux74pvm4adq66 .PSPDFKit-3p1jq2xuq7kt61btvzbmcvfsdg{bottom:0;cursor:default;left:0;position:absolute;right:0;top:100%;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%;z-index:-1}.PSPDFKit-4sqvdfhz56pzjs657n5gmfjv4t{cursor:inherit;display:block;height:100vh;position:absolute;width:100vw;z-index:-1}.PSPDFKit-4sqvdfhz56pzjs657n5gmfjv4t ::selection{background-color:transparent!important}.PSPDFKit-8ayy4hjz5h5sb5mqfjxzpc42zw,.PSPDFKit-7mqrwx6ruetyxx1crt7g8tj53b{-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-8ayy4hjz5h5sb5mqfjxzpc42zw{color:transparent;display:block;font-family:Arial,sans-serif;font-size:16px!important;font-weight:400;line-height:1;margin:0;position:absolute;text-align:left;transform-origin:0 0 0;white-space:pre}.PSPDFKit-browser-engine-gecko .PSPDFKit-8ayy4hjz5h5sb5mqfjxzpc42zw ::selection{background-color:#2378ff}.PSPDFKit-browser-engine-blink.PSPDFKit-browser-system-android .PSPDFKit-8ayy4hjz5h5sb5mqfjxzpc42zw span::selection,.PSPDFKit-browser-engine-blink.PSPDFKit-browser-system-windows .PSPDFKit-8ayy4hjz5h5sb5mqfjxzpc42zw span::selection{background-color:highlight;color:transparent}.PSPDFKit-browser-system-android .PSPDFKit-8ayy4hjz5h5sb5mqfjxzpc42zw span::selection,.PSPDFKit-browser-system-windows .PSPDFKit-8ayy4hjz5h5sb5mqfjxzpc42zw span::selection{background-color:#2378ff;color:#2378ff}.PSPDFKit-browser-system-linux .PSPDFKit-8ayy4hjz5h5sb5mqfjxzpc42zw span::selection{background-color:#2378ff}.interactions-disabled .PSPDFKit-8ayy4hjz5h5sb5mqfjxzpc42zw{-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-8ayy4hjz5h5sb5mqfjxzpc42zw:before{content:"";height:150%;position:absolute;top:-10%;width:100%}.PSPDFKit-browser-engine-blink .PSPDFKit-8ayy4hjz5h5sb5mqfjxzpc42zw:before,.PSPDFKit-browser-engine-gecko .PSPDFKit-8ayy4hjz5h5sb5mqfjxzpc42zw:before{display:none}.PSPDFKit-55tte6u6fczpks4kxqrywvkhcv{height:50%;position:absolute;width:100%}.PSPDFKit-3npj2ht4kppfp95hepqhfjb49x{cursor:text}.PSPDFKit-3npj2ht4kppfp95hepqhfjb49x.PSPDFKit-68wd7m2jrz9c462vgy6yvba62f{cursor:vertical-text}.PSPDFKit-CursorPointer .PSPDFKit-3npj2ht4kppfp95hepqhfjb49x{cursor:inherit!important}.PSPDFKit-2tg9p1utsyyke5vpebq5gc3413{-webkit-user-select:text;-ms-user-select:text;user-select:text}.PSPDFKit-3a9hp6ezp9vyzwpeksepg43552{color:red;outline:1px solid red}.PSPDFKit-6fq5ysqkmc2gc1fek9b659qfh8{display:block} +.PSPDFKit-7fx816mm5dnp6e45vtkbeu7u6h{background-color:rgba(236,240,255,.9);border:1px solid #7f96ed;box-sizing:border-box;display:block;font-family:Helvetica,sans-serif;margin:0}.PSPDFKit-7fx816mm5dnp6e45vtkbeu7u6h:hover{outline:1px solid #7f96ed}.PSPDFKit-53uhn3hvzxffzgk8gjs3fbkn19,.PSPDFKit-53uhn3hvzxffzgk8gjs3fbkn19:hover{background-color:hsla(0,0%,94%,.9);border-color:#cacaca;color:gray;cursor:default}.PSPDFKit-browser-engine-gecko.PSPDFKit-browser-system-windows .PSPDFKit-2j44z8y92gejua2pwvgm8sjhm4:focus-visible,.PSPDFKit-browser-engine-gecko.PSPDFKit-browser-system-windows .PSPDFKit-2kwn8pyc4wfu8r2pfah6fq7qfx:focus-visible:focus{outline:5px auto Highlight}.PSPDFKit-2j44z8y92gejua2pwvgm8sjhm4,.PSPDFKit-2j44z8y92gejua2pwvgm8sjhm4:hover,.PSPDFKit-2kwn8pyc4wfu8r2pfah6fq7qfx:focus{background-color:#fffb8b;border-color:#beb700;color:#333}.PSPDFKit-x9z86ubc4peun53ye7m7udhyp:focus{padding-left:0!important}.PSPDFKit-cr6q4n8xfg6vtzd5q658psukz{display:flex;flex-direction:column} +.PSPDFKit-8djq2v9hms33ptxdax4spyth66{background-clip:padding-box;background-color:#3d464d;border:0 solid transparent;border-radius:6px;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);-webkit-user-select:none;-ms-user-select:none;user-select:none;z-index:1000}.PSPDFKit-3msp5htb4zsdjjpxv5m6zezhpm,.PSPDFKit-8djq2v9hms33ptxdax4spyth66{display:block;position:absolute}.PSPDFKit-3msp5htb4zsdjjpxv5m6zezhpm{border:5px solid transparent;color:#3d464d;height:0;width:0}.PSPDFKit-6b9stttuxax9qewr2yxczpv3yz{border-bottom-width:0;border-top-color:initial}.PSPDFKit-6zjksunaugtab91x5bucrc5pa6{border-bottom-color:initial;border-top-width:0}.PSPDFKit-6bfp163dnjfdkd9f9m84znw1uj{border-left-color:initial;border-right-width:0}.PSPDFKit-7es6pryn4pwz64rxf4payggfh1{border-left-width:0;border-right-color:initial} +.PSPDFKit-538wj3bujswdrqewakmmxa9fyf .PSPDFKit-Popover-Arrow{color:#f0f3f9;color:var(--PSPDFKit-ExpandingPopoverComponent-background-color);z-index:1001}.PSPDFKit-538wj3bujswdrqewakmmxa9fyf .PSPDFKit-Popover-Arrow.PSPDFKit-Popover-Arrow-Right{filter:drop-shadow(-1px 1px 1px rgba(43,50,59,.4))}.PSPDFKit-538wj3bujswdrqewakmmxa9fyf .PSPDFKit-Popover-Arrow.PSPDFKit-Popover-Arrow-Left{filter:drop-shadow(1px 1px 1px rgba(43,50,59,.4))}.PSPDFKit-538wj3bujswdrqewakmmxa9fyf .PSPDFKit-Popover-Arrow.PSPDFKit-Popover-Arrow-Top{filter:drop-shadow(0 3px 2px rgba(43,50,59,.4))}.PSPDFKit-538wj3bujswdrqewakmmxa9fyf .PSPDFKit-Popover-Arrow.PSPDFKit-Popover-Arrow-Bottom{filter:drop-shadow(0 -1px 2px rgba(43,50,59,.1))}.PSPDFKit-538wj3bujswdrqewakmmxa9fyf .PSPDFKit-Popover{background-color:#f0f3f9;background-color:var(--PSPDFKit-ExpandingPopoverComponent-background);box-shadow:0 1px 2px rgba(43,50,59,.4),0 3px 4px rgba(43,50,59,.1);z-index:1000}.PSPDFKit-8ahxg2rbtxn2ubnutukzs28dqn{display:none}.PSPDFKit-4jrgdk842q6nrzgfag4cvz7hsa{border-radius:6px;overflow:hidden;text-align:left;width:360px}.PSPDFKit-7bx43nrztecej9c1j8qw9tshdy{display:flex;flex-direction:column;max-height:400px;overflow-y:auto;overscroll-behavior:contain}.PSPDFKit-7w1dhbtytq2jfdb48gs1ywe8jm{border-bottom:1px solid #d8dfeb;border-bottom:1px solid var(--PSPDFKit-ExpandingPopoverComponent-separator-border);color:#2b2e36;color:var(--PSPDFKit-ExpandingPopoverComponent-title-color);font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);font-weight:600;margin:0;padding:0.8125em 1em;padding:var(--PSPDFKit-spacing-5) var(--PSPDFKit-spacing-4);word-break:break-all}.PSPDFKit-7dajp2vmg4zxw9ambet64n9umu{background-color:#fff;background-color:var(--PSPDFKit-ExpandingPopoverComponent-content-background);color:#000;color:var(--PSPDFKit-ExpandingPopoverComponent-content-color);display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.PSPDFKit-2wtzexryxvzwm2ffu1e1vh391u{border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top:1px solid #d8dfeb;border-top:1px solid var(--PSPDFKit-ExpandingPopoverComponent-separator-border)}.PSPDFKit-width-md .PSPDFKit-2wtzexryxvzwm2ffu1e1vh391u,.PSPDFKit-width-sm .PSPDFKit-2wtzexryxvzwm2ffu1e1vh391u,.PSPDFKit-width-xs .PSPDFKit-2wtzexryxvzwm2ffu1e1vh391u{align-items:center;display:flex;justify-content:flex-end;padding:0.8125em 1em;padding:var(--PSPDFKit-spacing-5) var(--PSPDFKit-spacing-4)}.PSPDFKit-239sjtxdzvwfjbe3ass6aqfp77{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;color:#4636e3;color:var(--PSPDFKit-ExpandingPopoverComponent-footerButton-color);font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);margin:0;padding:1.125rem 1em;padding:1.125rem var(--PSPDFKit-spacing-4);width:100%}.PSPDFKit-239sjtxdzvwfjbe3ass6aqfp77:hover{background-color:#d8dfeb;background-color:var(--PSPDFKit-ExpandingPopoverComponent-footerButton-hover-background);cursor:pointer}.PSPDFKit-41mt66hwvjgy4qa89c1mtspd1a{animation:PSPDFKit-7y3ggnb1s18b42w9z9msgq8hr6 .2s;animation-iteration-count:1}@keyframes PSPDFKit-7y3ggnb1s18b42w9z9msgq8hr6{0%{transform:translate(2px)}25%{transform:translate(0)}50%{transform:translate(-2px)}75%{transform:translate(0)}80%{transform:translate(2px)}to{transform:translate(1px)}}.PSPDFKit-79jfh5ner7hhtyf4y5s4u8az38{text-align:center} +.PSPDFKit-4q6rf47rhqhrpm9gdfefxt7qxa{padding:0.46875em 1em;padding:var(--PSPDFKit-spacing-7) var(--PSPDFKit-spacing-4)}.PSPDFKit-nt12adttbyb52awsgj2pvucxy{color:#3d424e;color:var(--PSPDFKit-FormDesignerTextInputComponent-label-color);font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3)}.PSPDFKit-3wx3w3pvjj3upy6569x74y56pt,.PSPDFKit-gcyutzqwxqe8x4u9j7mbfz1ub,.PSPDFKit-3yju2u277834cy3gahr2r5pxwa{border-color:#bec9d9;border-color:var(--PSPDFKit-FormDesignerTextInputComponent-border-color);color:#000;color:var(--PSPDFKit-FormDesignerTextInputComponent-input-text-color);font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);font-weight:500;padding:0.8125em;padding:var(--PSPDFKit-spacing-5)}.PSPDFKit-3wx3w3pvjj3upy6569x74y56pt,.PSPDFKit-3wx3w3pvjj3upy6569x74y56pt:focus,.PSPDFKit-gcyutzqwxqe8x4u9j7mbfz1ub,.PSPDFKit-gcyutzqwxqe8x4u9j7mbfz1ub:focus,.PSPDFKit-3yju2u277834cy3gahr2r5pxwa,.PSPDFKit-3yju2u277834cy3gahr2r5pxwa:focus{background-color:#f0f3f9;background-color:var(--PSPDFKit-FormDesignerTextInputComponent-background-color)}.PSPDFKit-3wx3w3pvjj3upy6569x74y56pt:active,.PSPDFKit-3wx3w3pvjj3upy6569x74y56pt:focus,.PSPDFKit-3wx3w3pvjj3upy6569x74y56pt:hover,.PSPDFKit-gcyutzqwxqe8x4u9j7mbfz1ub:active,.PSPDFKit-gcyutzqwxqe8x4u9j7mbfz1ub:focus,.PSPDFKit-gcyutzqwxqe8x4u9j7mbfz1ub:hover,.PSPDFKit-3yju2u277834cy3gahr2r5pxwa:active,.PSPDFKit-3yju2u277834cy3gahr2r5pxwa:focus,.PSPDFKit-3yju2u277834cy3gahr2r5pxwa:hover{border-color:#4636e3;border-color:var(--PSPDFKit-FormDesignerTextInputComponent-hover-border-color)}.PSPDFKit-42bq6cs954sqg5h9qybewg7j71,.PSPDFKit-42bq6cs954sqg5h9qybewg7j71:focus{border-color:#d63960;border-color:var(--PSPDFKit-FormDesignerTextInputComponent-error-color)}.PSPDFKit-m39r8ehbhmf2d2t2fhn5emy6h{color:#d63960;color:var(--PSPDFKit-FormDesignerTextInputComponent-error-color);font-size:0.75rem;font-size:var(--PSPDFKit-fontSize-2)}.PSPDFKit-ef4eqctrqnwdwaphd17x3zhbd{border:1px solid #bec9d9;border:1px solid var(--PSPDFKit-FormDesignerTextInputComponent-border-color);border-radius:2px;color:#000;color:var(--PSPDFKit-FormDesignerTextInputComponent-input-text-color);cursor:pointer;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);font-weight:500;padding:0}.PSPDFKit-ef4eqctrqnwdwaphd17x3zhbd,.PSPDFKit-ef4eqctrqnwdwaphd17x3zhbd:focus{background-color:#f0f3f9;background-color:var(--PSPDFKit-FormDesignerTextInputComponent-background-color)}.PSPDFKit-ef4eqctrqnwdwaphd17x3zhbd:active,.PSPDFKit-ef4eqctrqnwdwaphd17x3zhbd:focus,.PSPDFKit-ef4eqctrqnwdwaphd17x3zhbd:hover{border-color:#4636e3;border-color:var(--PSPDFKit-FormDesignerTextInputComponent-hover-border-color)}.PSPDFKit-3wx3w3pvjj3upy6569x74y56pt,.PSPDFKit-gcyutzqwxqe8x4u9j7mbfz1ub{border:1px solid transparent;border-right-width:10px;height:40px;width:100%}.PSPDFKit-3wx3w3pvjj3upy6569x74y56pt:active,.PSPDFKit-3wx3w3pvjj3upy6569x74y56pt:focus,.PSPDFKit-3wx3w3pvjj3upy6569x74y56pt:hover,.PSPDFKit-gcyutzqwxqe8x4u9j7mbfz1ub:active,.PSPDFKit-gcyutzqwxqe8x4u9j7mbfz1ub:focus,.PSPDFKit-gcyutzqwxqe8x4u9j7mbfz1ub:hover{border-color:transparent}.PSPDFKit-3wx3w3pvjj3upy6569x74y56pt{-webkit-appearance:none;background:url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6IzQ0NH08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Im0xLjQxIDQuNjcgMS4wNy0xLjQ5IDEuMDYgMS40OUgxLjQxek0zLjU0IDUuMzMgMi40OCA2LjgyIDEuNDEgNS4zM2gyLjEzeiIvPjwvc3ZnPg==) no-repeat 100% 50%;padding-bottom:8px;padding-top:8px}.PSPDFKit-u8tjzsmapgm69zq2qzyaxhxkn{cursor:not-allowed;opacity:0.3;opacity:var(--PSPDFKit-Button-isDisabled-opacity)}.PSPDFKit-u8tjzsmapgm69zq2qzyaxhxkn:active,.PSPDFKit-u8tjzsmapgm69zq2qzyaxhxkn:focus,.PSPDFKit-u8tjzsmapgm69zq2qzyaxhxkn:hover{border-color:#d8dfeb;border-color:var(--PSPDFKit-Button--default-isDisabled-borderColor)} +.PSPDFKit-2s9j7gu6ht55v3fyhb7xkheuuq,.PSPDFKit-fn2f5n9d9n8sgj4djs9y86gau,.PSPDFKit-3jgnu7ag1ffzarpqmuquune258{align-items:center;border-bottom:1px solid #f0f3f9;border-bottom:1px solid var(--PSPDFKit-FormDesignerPopoverComponent-item-border-color);display:flex;height:46px;padding:.5rem 1em;padding:.5rem var(--PSPDFKit-spacing-4)}.PSPDFKit-2s9j7gu6ht55v3fyhb7xkheuuq:last-child,.PSPDFKit-fn2f5n9d9n8sgj4djs9y86gau:last-child,.PSPDFKit-3jgnu7ag1ffzarpqmuquune258:last-child{border-bottom:none}.PSPDFKit-nmsane1s7x9rp49pa42tzpgya{display:flex;height:24px;width:24px}.PSPDFKit-2r48s2je9bp19zqfbs8mgk7184{flex:1 0;margin:0 1rem}.PSPDFKit-24yucwgnrz6dxz6nmkt9jremkb,.PSPDFKit-4cuxks564t1dxgzbv7nvjy4yuc,.PSPDFKit-2r48s2je9bp19zqfbs8mgk7184{color:#3d424e;color:var(--PSPDFKit-FormDesignerPopoverComponent-item-color);font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.PSPDFKit-9rhw3adf6wbfa7qrq615fjqaf{height:30px}.PSPDFKit-9rhw3adf6wbfa7qrq615fjqaf .PSPDFKit-Input-Color-Dropdown{margin-right:0}.PSPDFKit-6e6bk97ea2ucn9vbtxktfajm2p{background-color:#fff;background-color:var(--PSPDFKit-FormDesignerPopoverComponent-color-dropdown-menu-color)}.PSPDFKit-82a458mhumnurhq39us7zu6hyz{height:30px;margin:0}.PSPDFKit-82a458mhumnurhq39us7zu6hyz .PSPDFKit-Input-Dropdown-Items{transform:translateX(-78%)!important}.PSPDFKit-5nmcjw7r4p1h2nd2mexfegg2rt{height:20px;width:20px}.PSPDFKit-3cbxsq6nmh9r4f5756r6c95c7m{align-items:center;border:none;border-radius:5px;display:flex;height:30px;justify-content:center;min-width:30px;padding:0}.PSPDFKit-86jxsd27b1jv4t4ubqhrx633pn{display:none}.PSPDFKit-width-md .PSPDFKit-86jxsd27b1jv4t4ubqhrx633pn,.PSPDFKit-width-sm .PSPDFKit-86jxsd27b1jv4t4ubqhrx633pn,.PSPDFKit-width-xs .PSPDFKit-86jxsd27b1jv4t4ubqhrx633pn{align-items:center;display:block}.PSPDFKit-6ts2t8acharjbuq54t5wy2eb74{align-items:center;display:flex;height:30px}.PSPDFKit-width-md .PSPDFKit-6ts2t8acharjbuq54t5wy2eb74,.PSPDFKit-width-sm .PSPDFKit-6ts2t8acharjbuq54t5wy2eb74,.PSPDFKit-width-xs .PSPDFKit-6ts2t8acharjbuq54t5wy2eb74{display:none}.PSPDFKit-u1vpgqn2y5rje53z63f7mq5er{padding:0}.PSPDFKit-51c4fjecxrh9h4tcuygx1te5q8{height:32px}.PSPDFKit-ncuqwmdusv2msxq73z6fzb24z{align-items:center;border-top:1px solid #f0f3f9;border-top:1px solid var(--PSPDFKit-FormDesignerPopoverComponent-item-border-color);display:flex;height:46px;justify-content:space-between;padding:.5rem 1em;padding:.5rem var(--PSPDFKit-spacing-4)}.PSPDFKit-4ua7xnacac2pm8hhds1kq2me5u{color:#848c9a;color:var(--color-coolGrey400);flex:1 0;font-size:0.75rem;font-size:var(--PSPDFKit-fontSize-2);text-align:right}.PSPDFKit-2abxjf7c5m54s1fbpjybj51p2m{align-items:center;display:flex;padding:0 1em 1em;padding:0 var(--PSPDFKit-spacing-4) var(--PSPDFKit-spacing-4)}.PSPDFKit-4enmf2wc85hnr4743bkg1tyeer{height:16px;margin-right:8px;width:16px}.PSPDFKit-6z22nmct2crec69qf41ena61ub{color:#3d424e;color:var(--PSPDFKit-FormDesignerPopoverComponent-warning-label-color);font-size:0.75rem;font-size:var(--PSPDFKit-fontSize-2);line-height:0.815rem;line-height:var(--PSPDFKit-lineHeight-2)}.PSPDFKit-4nrcak3ru32krpendekckcwwv8{position:relative}.PSPDFKit-4nrcak3ru32krpendekckcwwv8>div:first-child{cursor:not-allowed}.PSPDFKit-5x7gnppfkuuynrhwnep13pak49{pointer-events:none}.PSPDFKit-5x7gnppfkuuynrhwnep13pak49 input{background-color:transparent!important}.PSPDFKit-8zzdqsxn1q94q3wn44vjes6g2r{padding-bottom:1.625em!important;padding-bottom:var(--PSPDFKit-spacing-3)!important}.PSPDFKit-width-md .PSPDFKit-71vy88q3wndydgre2e58gj53rd,.PSPDFKit-width-sm .PSPDFKit-71vy88q3wndydgre2e58gj53rd,.PSPDFKit-width-xs .PSPDFKit-71vy88q3wndydgre2e58gj53rd{border-radius:3px;padding:0.46875em 0;padding:var(--PSPDFKit-spacing-7) 0;width:100px}.PSPDFKit-width-md .PSPDFKit-5np2yc2xrsd6y7kt22abt9hb6d,.PSPDFKit-width-sm .PSPDFKit-5np2yc2xrsd6y7kt22abt9hb6d,.PSPDFKit-width-xs .PSPDFKit-5np2yc2xrsd6y7kt22abt9hb6d{border:1px solid #bec9d9;border:1px solid var(--PSPDFKit-FormDesignerPopoverComponent-deleteButton-border);color:#3d424e;color:var(--PSPDFKit-FormDesignerPopoverComponent-deleteButton-mobile-text-color);margin-right:8px}.PSPDFKit-width-md .PSPDFKit-5np2yc2xrsd6y7kt22abt9hb6d:hover,.PSPDFKit-width-sm .PSPDFKit-5np2yc2xrsd6y7kt22abt9hb6d:hover,.PSPDFKit-width-xs .PSPDFKit-5np2yc2xrsd6y7kt22abt9hb6d:hover{background-color:initial}.PSPDFKit-4n879bzvk8q7g195cmz6yr433b{background-color:#4636e3;background-color:var(--PSPDFKit-FormDesignerPopoverComponent-doneButton-background);border:1px solid #2b1cc1;border:1px solid var(--PSPDFKit-FormDesignerPopoverComponent-doneButton-border);color:#fff;color:var(--PSPDFKit-FormDesignerPopoverComponent-doneButton-color);display:none}.PSPDFKit-width-md .PSPDFKit-4n879bzvk8q7g195cmz6yr433b,.PSPDFKit-width-sm .PSPDFKit-4n879bzvk8q7g195cmz6yr433b,.PSPDFKit-width-xs .PSPDFKit-4n879bzvk8q7g195cmz6yr433b{background-color:#4636e3;background-color:var(--PSPDFKit-FormDesignerPopoverComponent-doneButton-background);color:#fff;color:var(--PSPDFKit-FormDesignerPopoverComponent-doneButton-color);display:block}.PSPDFKit-width-md .PSPDFKit-4n879bzvk8q7g195cmz6yr433b:hover,.PSPDFKit-width-sm .PSPDFKit-4n879bzvk8q7g195cmz6yr433b:hover,.PSPDFKit-width-xs .PSPDFKit-4n879bzvk8q7g195cmz6yr433b:hover{background-color:#4636e3;background-color:var(--PSPDFKit-FormDesignerPopoverComponent-doneButton-background)}[class*=PSPDFKit-Form-Creator-Editor-Horizontal-Alignment-]:not(.PSPDFKit-Form-Creator-Editor-Horizontal-Alignment-active),[class*=PSPDFKit-Form-Creator-Editor-Vertical-Alignment-]:not(.PSPDFKit-Form-Creator-Editor-Vertical-Alignment-active){background-color:#f0f3f9;background-color:var(--PSPDFKit-FormDesignerPopoverComponent-radioGroup-background-color)}.PSPDFKit-2s9j7gu6ht55v3fyhb7xkheuuq,.PSPDFKit-3jgnu7ag1ffzarpqmuquune258{align-items:flex-start;border-bottom:none;flex-direction:column;height:auto;justify-content:center;width:100%}.PSPDFKit-2s9j7gu6ht55v3fyhb7xkheuuq{height:50px}.PSPDFKit-4cuxks564t1dxgzbv7nvjy4yuc{color:var(--PSPDFKit-MeasurementPopoverComponent-info-color)}.PSPDFKit-6ckerwnts2h4dqbxrjurcef6dc{align-items:center;padding-bottom:0!important;width:100%}.PSPDFKit-6ckerwnts2h4dqbxrjurcef6dc,.PSPDFKit-4fbe83fym7dgut61w2nf74r473{display:flex;flex-direction:row;padding-bottom:.5rem}.PSPDFKit-7j9yftqvyfsbxszyryvg4tugmg,.PSPDFKit-5naa93y6vbhdeeygcvssv2w99g{align-items:center;border-top:1px solid var(--PSPDFKit-MeasurementPopoverComponent-separator-color);display:flex;flex-direction:row;justify-content:space-between;padding-top:.5rem;width:100%}.PSPDFKit-7j9yftqvyfsbxszyryvg4tugmg>div,.PSPDFKit-5naa93y6vbhdeeygcvssv2w99g>div{display:flex;flex-direction:row;gap:6px}.PSPDFKit-7j9yftqvyfsbxszyryvg4tugmg{align-items:flex-start;color:var(--PSPDFKit-MeasurementPopoverComponent-info-color)}.PSPDFKit-7j9yftqvyfsbxszyryvg4tugmg svg{padding-top:4px}.PSPDFKit-83b7zxjm332wqcc4s5gvrxfucj{display:flex;flex-direction:row;gap:6px}.PSPDFKit-5xp4qfj9u68z92e75mcf5nqkcg select{height:100%}.PSPDFKit-3bdhuh7gr82rtyrxt33vmpj2hk{margin:0 8px 0 0}.PSPDFKit-76y3uq9zy9ugrnh25fwthbtxdy{padding-top:10px}.PSPDFKit-76y3uq9zy9ugrnh25fwthbtxdy,.PSPDFKit-4kxzb9uytx6jnhjtkwnzccwcb1{border-top:1px solid #f0f3f9;border-top:1px solid var(--PSPDFKit-FormDesignerPopoverComponent-item-border-color)}.PSPDFKit-4kxzb9uytx6jnhjtkwnzccwcb1{margin-left:14px;margin-right:14px}.PSPDFKit-2r48s2je9bp19zqfbs8mgk7184{margin:0}.PSPDFKit-29u9ktdbpp3nysqgxn6naha4m8{display:flex;flex-shrink:0;height:.625rem;margin-right:.5rem;width:.625rem} +.PSPDFKit-52vp1wxnkrwaqvutwh9kdyma98{max-height:660px;min-width:360px;padding:0;width:auto}.PSPDFKit-52vp1wxnkrwaqvutwh9kdyma98 p{margin:0}.PSPDFKit-5rsrw7ak9xvqnc7bwahsasngx9{border-bottom:1px solid #f0f3f9;border-bottom:1px solid var(--PSPDFKit-FormDesignerPopoverComponent-item-border-color);color:#3d424e;color:var(--PSPDFKit-MeasurementSettingsModal-section-text-color);column-gap:16px;display:flex;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);font-weight:400;line-height:1.4rem;line-height:var(--PSPDFKit-lineHeight-1);min-height:46px;padding:0.609em 1em;padding:var(--PSPDFKit-spacing-6) var(--PSPDFKit-spacing-4);width:100%}.PSPDFKit-5rsrw7ak9xvqnc7bwahsasngx9:last-child{border:none}.PSPDFKit-6zjmyma75e4rfma6ujstg3d11u{align-items:center}.PSPDFKit-2ybdx86p6v4nqn1zrarhep8fhd,.PSPDFKit-6zjmyma75e4rfma6ujstg3d11u{justify-content:space-between}.PSPDFKit-2ybdx86p6v4nqn1zrarhep8fhd{align-items:baseline;border-bottom:1px solid #f0f3f9;border-bottom:1px solid var(--PSPDFKit-FormDesignerPopoverComponent-item-border-color);color:#3d424e;color:var(--PSPDFKit-MeasurementSettingsModal-section-text-color);column-gap:10px;display:flex;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);font-weight:400;line-height:1.4rem;line-height:var(--PSPDFKit-lineHeight-1);padding:0.609em 0;padding:var(--PSPDFKit-spacing-6) 0}.PSPDFKit-2ybdx86p6v4nqn1zrarhep8fhd:first-child{padding-top:0}.PSPDFKit-6xaquyhkgnnz83eh3tcntmwpqp{column-gap:8px;display:flex;flex-direction:row}.PSPDFKit-7zz1pa7xv6wgt2y9szvhke9935{align-items:center;column-gap:8px;cursor:pointer;display:flex;font-size:14px;padding-top:8px}.PSPDFKit-4smtt8g7weze8w3e3n9ht93ak4{border-bottom:1px solid #f0f3f9;border-bottom:1px solid var(--PSPDFKit-FormDesignerPopoverComponent-item-border-color);padding:8px 0}.PSPDFKit-4smtt8g7weze8w3e3n9ht93ak4:first-child{padding:0 0 8px}.PSPDFKit-4smtt8g7weze8w3e3n9ht93ak4:last-child{border:none;padding:8px 0 0}.PSPDFKit-37dv4qsruvxu93evjeh9gtqdna{width:80%}.PSPDFKit-3766zw48tmq7b2dbzcgstgzxpt{color:#3d424e;color:var(--PSPDFKit-MeasurementSettingsModal-section-text-color);display:flex;flex-direction:column;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);font-weight:400;line-height:1.4rem;line-height:var(--PSPDFKit-lineHeight-1);width:85%}.PSPDFKit-3766zw48tmq7b2dbzcgstgzxpt:last-child{border:none}.PSPDFKit-43ubpyc1q299xrwh4k5xrxtk4m,.PSPDFKit-32yn21p1rhkx6139tfee43rskf{background-color:#f0f3f9;background-color:var(--PSPDFKit-MeasurementSettingsModal-background-color);border-bottom:1px solid #d8dfeb;border-bottom:1px solid var(--PSPDFKit-ExpandingPopoverComponent-separator-border);min-height:46px;overflow:hidden;text-align:left;width:100%}.PSPDFKit-43ubpyc1q299xrwh4k5xrxtk4m button,.PSPDFKit-32yn21p1rhkx6139tfee43rskf button{align-items:center;display:flex;height:32px;justify-content:center;width:103px}.PSPDFKit-43ubpyc1q299xrwh4k5xrxtk4m{border:none;border-top:1px solid #d8dfeb;border-top:1px solid var(--PSPDFKit-ExpandingPopoverComponent-separator-border);column-gap:8px;justify-content:flex-end}.PSPDFKit-88em62dff33bjz4dpcz217kgw1{background-color:#f6f8fa;background-color:var(--PSPDFKit-MeasurementSettingsModal-section-background-color);color:#3d424e;color:var(--PSPDFKit-MeasurementSettingsModal-section-text-color);font-size:0.75rem;font-size:var(--PSPDFKit-fontSize-2);font-weight:400;line-height:1.4rem;line-height:var(--PSPDFKit-lineHeight-1);margin:0;min-height:35px;text-transform:uppercase}.PSPDFKit-5dpchy3cupj5bxucqn5nt8anr5{align-items:center;color:#2b2e36;color:var(--PSPDFKit-Text-color);display:flex;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);font-weight:600;margin:0}.PSPDFKit-8cfu1mwm1ccfxda8tyh14s93v5{height:auto;max-height:90%;padding:1em 0.609em 1em 0.46875em;padding:var(--PSPDFKit-spacing-4) var(--PSPDFKit-spacing-6) var(--PSPDFKit-spacing-4) var(--PSPDFKit-spacing-7)}.PSPDFKit-7ypv327ggsprw7wtqh3ggzwtt5{flex-basis:22px;height:22px;width:22px}.PSPDFKit-6t3gx31kbfuvg7pvvv3m4y2ud6{background-color:transparent;border:none;display:flex;justify-content:center;padding:0;position:relative;top:1px}.PSPDFKit-6t3gx31kbfuvg7pvvv3m4y2ud6.PSPDFKit-7u52vd8vcqhwm46mqm3f6x3u4n,.PSPDFKit-6t3gx31kbfuvg7pvvv3m4y2ud6:active,.PSPDFKit-6t3gx31kbfuvg7pvvv3m4y2ud6:disabled,.PSPDFKit-6t3gx31kbfuvg7pvvv3m4y2ud6:focus,.PSPDFKit-6t3gx31kbfuvg7pvvv3m4y2ud6:hover{background-color:unset}.PSPDFKit-4mb9ffzr14xj4f7cmnqkgcrcmq :before{border-color:#d63960!important;border-color:var(--color-red400)!important}.PSPDFKit-65q27ak2bn51hh1r3q8bw6pvrm{align-items:center;background:#fff;background:var(--PSPDFKit-DropdownMenu-item-background);border-bottom:1px solid #d8dfeb;border-bottom:1px solid var(--PSPDFKit-DropdownMenu-item-border);color:#5e5ceb;color:var(--PSPDFKit-MeasurementSettingsModal-highlight-color);cursor:pointer;display:flex;font:inherit;font-size:14px;font-style:normal;font-weight:500;height:34px;justify-content:flex-start;line-height:140%;padding:4px 8px 4px 28px;text-align:initial;touch-action:pan-x;width:100%}.PSPDFKit-65q27ak2bn51hh1r3q8bw6pvrm:focus-within,.PSPDFKit-65q27ak2bn51hh1r3q8bw6pvrm:hover{background-color:#f0f3f9;background-color:var(--PSPDFKit-AnnotationToolbar-background)}.PSPDFKit-65q27ak2bn51hh1r3q8bw6pvrm:last-child{border-bottom:none}.PSPDFKit-27a27t78xjc4pkkn8fs1enm4up{align-items:flex-start;display:flex;flex-direction:column;padding:24px;width:390px}.PSPDFKit-27a27t78xjc4pkkn8fs1enm4up p{margin:0}.PSPDFKit-6g6xvejv8dd1pf35kx6ba8gp5e{align-items:center;display:flex;flex-direction:column;gap:24px;width:100%}.PSPDFKit-41haxjcx7ed6crwc23x62ewb7t{display:flex;justify-content:space-between;width:100%}.PSPDFKit-68duutqz7ut9qftzm7ns95kbsg{color:#3d424e;color:var(--PSPDFKit-MeasurementSettingsModal-section-text-color);font-size:1.25rem;font-size:var(--PSPDFKit-fontSize-5);font-style:normal;font-weight:600;line-height:1.4rem;line-height:var(--PSPDFKit-lineHeight-1)}.PSPDFKit-6zd1ytwjwxzumcawqamehzyaqs{display:none}@media(max-width:1070px){.PSPDFKit-6zd1ytwjwxzumcawqamehzyaqs{align-items:center;display:block}}.PSPDFKit-49whdesn68fq294wzdzda443yx{align-items:center;display:flex;height:30px}@media(max-width:1070px){.PSPDFKit-49whdesn68fq294wzdzda443yx{display:none}}.PSPDFKit-3xxzytnemnzg22awfk9rymr2m7{padding:0}.PSPDFKit-75ga4kp46pkcv4peqbsu45nk79{border-bottom:1px solid #f0f3f9;border-bottom:1px solid var(--PSPDFKit-FormDesignerPopoverComponent-item-border-color);color:#d63960;color:var(--PSPDFKit-MeasurementSettingsModal-error-text-color);font-size:0.75rem;font-size:var(--PSPDFKit-fontSize-2);font-weight:400;line-height:1rem;line-height:var(--PSPDFKit-fontSize-1);margin-bottom:0.609em;margin-bottom:var(--PSPDFKit-spacing-6);max-width:340px;padding:0.609em;padding:var(--PSPDFKit-spacing-6)}.PSPDFKit-5d5cb99rrfftnfraj6ve1wxtcw{margin-right:.5rem;width:.625rem}.PSPDFKit-5ypdmxk3tukb91thbuegtp28ry{align-items:center;-webkit-appearance:none;-moz-appearance:none;border:1px solid #5e5ceb;border:1px solid var(--PSPDFKit-MeasurementSettingsModal-highlight-color);border-radius:50%;display:flex;flex-direction:row;flex-shrink:0;height:18px;justify-content:space-evenly;margin:0 5px;width:18px}@media(max-width:660px){.PSPDFKit-5ypdmxk3tukb91thbuegtp28ry{margin-right:3%}}.PSPDFKit-5ypdmxk3tukb91thbuegtp28ry:before{background:unset;border-radius:50%;content:"";display:block;height:10px;width:10px}.PSPDFKit-5ypdmxk3tukb91thbuegtp28ry:checked:before{background:#5e5ceb;background:var(--PSPDFKit-MeasurementSettingsModal-highlight-color)} +.PSPDFKit-6sv7sqb53n124u6fj1tms89hna{display:flex;justify-content:flex-end;margin-top:1em}.PSPDFKit-654mqarkz9bpasgehzef4652nz p{margin:0}.PSPDFKit-3db8msn3nmbe95zjws8yr4m8q6:active,.PSPDFKit-3db8msn3nmbe95zjws8yr4m8q6:focus,.PSPDFKit-3db8msn3nmbe95zjws8yr4m8q6[data-focus-within]{border-color:#0a0167!important;border-color:var(--PSPDFKit-ConfirmModalComponent-button-isFocused-border)!important}.PSPDFKit-3db8msn3nmbe95zjws8yr4m8q6:active,.PSPDFKit-3db8msn3nmbe95zjws8yr4m8q6[data-focus-within]{outline:none}.PSPDFKit-3db8msn3nmbe95zjws8yr4m8q6:focus-within{border-color:#0a0167!important;border-color:var(--PSPDFKit-ConfirmModalComponent-button-isFocused-border)!important;outline:none} +.PSPDFKit-6mcjw1j7tzm5hepajxw83pzakp{background:transparent;border:0;line-height:1;padding:0;pointer-events:auto;position:absolute}.PSPDFKit-6mcjw1j7tzm5hepajxw83pzakp:focus,.PSPDFKit-6mcjw1j7tzm5hepajxw83pzakp:hover{cursor:pointer}.PSPDFKit-6mcjw1j7tzm5hepajxw83pzakp[disabled]{cursor:auto}.PSPDFKit-5cbbkpsrtp7h1aheyyz5jh553f svg{height:100%;overflow:visible;width:100%}.PSPDFKit-gfh2n7ye6agxztvft95yj26j6 .PSPDFKit-Icon-CommentIndicator-Stroke-Shape{stroke:#4636e3;stroke:var(--PSPDFKit-CommentMarkerAnnotation-accent-stroke);stroke-width:5px} +.PSPDFKit-6wak7k5y4nxmyh4g8xnd4zxf8d canvas,.PSPDFKit-6wak7k5y4nxmyh4g8xnd4zxf8d img{display:block;height:100%;width:100%} +.PSPDFKit-xe2ftya3wdjvwwhx6d5stmz59{display:flex}.PSPDFKit-6wzqbae66q9h6nya7ye8mvy8kt{background-color:#a6adad;border-radius:50%;height:6px;transform:scale(0);width:6px}.PSPDFKit-6wzqbae66q9h6nya7ye8mvy8kt:not(:last-child){margin-right:4px}.PSPDFKit-64xwysuhvuuphryhjd9kj5nvy3 .PSPDFKit-6wzqbae66q9h6nya7ye8mvy8kt{animation:PSPDFKit-3u75qfne74tt2wqf8tq6zfy48n 1.5s ease-in-out infinite}.PSPDFKit-6wzqbae66q9h6nya7ye8mvy8kt:nth-child(2){animation-delay:.16s}.PSPDFKit-6wzqbae66q9h6nya7ye8mvy8kt:nth-child(3){animation-delay:.32s}@keyframes PSPDFKit-3u75qfne74tt2wqf8tq6zfy48n{20%{transform:scale(0)}50%{transform:scale(1)}80%{transform:scale(0)}} +.PSPDFKit-611629rcz14kzt4fxq9cun8r55{left:50%;position:absolute;transform:translateX(-50%)}.PSPDFKit-291h7cpg24qsc3uyjkzbr88w1y,.PSPDFKit-3k8pvf98ypg7cfxdw2h4s9hks8{position:relative}.PSPDFKit-6kn9fwrhmcn5ws8thfmrbawkps,.PSPDFKit-4668kvbgmy9yr757xzersy788h{background-color:#eee}.PSPDFKit-3gs4z9rtc1a83dstvmn7mamwfd{align-items:center;display:flex;justify-content:center}.PSPDFKit-4vsf7ppa6vgpu72s69w4p6cheb svg{background-color:#fff;border-radius:12px;color:#db2a37;height:24px;width:24px}.PSPDFKit-6gjytkd24fh19g96hp4rxaukmu>:first-child{opacity:.0001!important}.PSPDFKit-6gjytkd24fh19g96hp4rxaukmu>:last-child{opacity:1!important} +.PSPDFKit-3w2n2qdrr23cmdk4q8whx3tsxf,.PSPDFKit-2gh7qt7mp38bkn5x9qf3y99zu3{bottom:0;cursor:default;left:0;position:absolute;right:0;top:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-2gh7qt7mp38bkn5x9qf3y99zu3{pointer-events:none}.interactions-disabled .PSPDFKit-3w2n2qdrr23cmdk4q8whx3tsxf{touch-action:none}.PSPDFKit-39tt5mrp55ku7xxg9u7mh41a33{fill:none;stroke-linejoin:round;stroke-linecap:round;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-39tt5mrp55ku7xxg9u7mh41a33.PSPDFKit-6wrq4aekz4kq4fgt2pvnb9w6a3{cursor:pointer;pointer-events:stroke}.PSPDFKit-supportsTouch.PSPDFKit-width-sm .PSPDFKit-39tt5mrp55ku7xxg9u7mh41a33.PSPDFKit-6wrq4aekz4kq4fgt2pvnb9w6a3,.PSPDFKit-supportsTouch.PSPDFKit-width-xs .PSPDFKit-39tt5mrp55ku7xxg9u7mh41a33.PSPDFKit-6wrq4aekz4kq4fgt2pvnb9w6a3{pointer-events:none}.PSPDFKit-57qn9qb3ug1rpk9v33hd5cxd1d.PSPDFKit-6wrq4aekz4kq4fgt2pvnb9w6a3{cursor:pointer;pointer-events:fill}.PSPDFKit-5q9h4djx3kcxba1qj815pdz3fs{pointer-events:none;position:absolute;-webkit-user-select:none;-ms-user-select:none;user-select:none} +.PSPDFKit-3ncb69xb2ve1sqjjdtyc6cd8g4{bottom:0;cursor:default;left:0;position:absolute;right:0;top:0}.PSPDFKit-5mur5qgg6vwc2wpggzustr83j9{border:0;line-height:0;font:inherit;padding:0;position:absolute} +.PSPDFKit-2wu94uj3duvdnqa6qcf42ezs6d{bottom:0;left:0;pointer-events:none;position:absolute;right:0;top:0}.PSPDFKit-54pg5n9qt6pj2u219my1yv9v14{background:transparent;border:0;line-height:1;padding:0;pointer-events:auto;position:absolute}.PSPDFKit-54pg5n9qt6pj2u219my1yv9v14:focus,.PSPDFKit-54pg5n9qt6pj2u219my1yv9v14:hover{cursor:pointer}.PSPDFKit-54pg5n9qt6pj2u219my1yv9v14[disabled]{cursor:auto}.PSPDFKit-2rbb4rpjnbmgu1bj6enchp1549{fill:currentColor;display:block;max-width:100%}.PSPDFKit-4ywhmukc4gwqac7ntzy2uz9x6h{word-wrap:break-word;cursor:text;display:flex;flex-direction:column;font-family:sans-serif;height:200px;line-height:1.2em;overflow-y:auto;padding:10px;position:relative;white-space:pre-wrap;width:300px;word-break:break-word}.PSPDFKit-4ywhmukc4gwqac7ntzy2uz9x6h .PSPDFKit-8tznpz6dg1zmer4mxt1kj4d367{margin-top:10px}.PSPDFKit-77mpcyuxmy88vcuvt1qbfqn1bg{background:#fff;bottom:0;left:0;margin:0;padding:15px 7px 15px 15px;position:absolute;right:0;text-align:initial}.PSPDFKit-77mpcyuxmy88vcuvt1qbfqn1bg .PSPDFKit-8tznpz6dg1zmer4mxt1kj4d367{margin-top:15px}.PSPDFKit-4sup5zkzxcndck1xbaquyw5tat{align-items:center;align-self:flex-end;background:transparent;border:transparent;cursor:pointer;display:flex;height:24px;justify-content:center;margin:0;opacity:.7;padding:0;width:24px}.PSPDFKit-4sup5zkzxcndck1xbaquyw5tat:active,.PSPDFKit-4sup5zkzxcndck1xbaquyw5tat:focus,.PSPDFKit-4sup5zkzxcndck1xbaquyw5tat:hover{opacity:1}.PSPDFKit-4sup5zkzxcndck1xbaquyw5tat span{height:20px;width:20px}.PSPDFKit-4sup5zkzxcndck1xbaquyw5tat.PSPDFKit-3zbd56btxsp72du8mq44gc68pf{pointer-events:none;visibility:hidden}.PSPDFKit-7t4t5t39c8gj689nypcn8sy1n4{align-items:center;display:flex;flex-direction:row;justify-content:space-between}.PSPDFKit-7t4t5t39c8gj689nypcn8sy1n4 .PSPDFKit-8jdq4qfwqhh5yzunhf1nvu3sxs{font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);margin:0;opacity:.8;text-shadow:0 1px 1px #fff}.PSPDFKit-8tznpz6dg1zmer4mxt1kj4d367{background:transparent;flex:1;overflow-y:auto;position:relative;text-align:left}.PSPDFKit-5ns5z6cwaq7uvb37ejfqcck6cj{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;display:flex;justify-content:center;max-width:100%;overflow-y:auto}.PSPDFKit-28m2z472nqzne4jhz5hvqkzp78{opacity:.7}.PSPDFKit-28m2z472nqzne4jhz5hvqkzp78:active,.PSPDFKit-28m2z472nqzne4jhz5hvqkzp78:focus,.PSPDFKit-28m2z472nqzne4jhz5hvqkzp78:hover,.PSPDFKit-28m2z472nqzne4jhz5hvqkzp78[data-focus-within]{opacity:1}.PSPDFKit-28m2z472nqzne4jhz5hvqkzp78:focus-within{opacity:1} +.PSPDFKit-86u6qqcu5qd2p78j3sasqcq3r4,.PSPDFKit-6euxnwumsrs547zhsd467cw4p9{bottom:0;cursor:crosshair;left:0;position:absolute;right:0;top:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-6euxnwumsrs547zhsd467cw4p9{pointer-events:none}.interactions-disabled .PSPDFKit-86u6qqcu5qd2p78j3sasqcq3r4{touch-action:none}.PSPDFKit-2gqt93vqwz7akw64wyn6tk2eqn{shape-rendering:geometricPrecision;stroke-linecap:butt;stroke-linejoin:miter;pointer-events:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-2gqt93vqwz7akw64wyn6tk2eqn.PSPDFKit-67t1bptsfdkkkbpn6jgsm9ktd9{stroke-linecap:round;stroke-linejoin:round}.PSPDFKit-xydzth3k7ns3nahap4gpxayej,.PSPDFKit-2gqt93vqwz7akw64wyn6tk2eqn.PSPDFKit-67t1bptsfdkkkbpn6jgsm9ktd9.PSPDFKit-3zmy52u71trzxmdvbycck28tg7{stroke-linecap:butt;stroke-linejoin:miter}.PSPDFKit-xydzth3k7ns3nahap4gpxayej{cursor:pointer;pointer-events:painted}.PSPDFKit-xydzth3k7ns3nahap4gpxayej.PSPDFKit-67t1bptsfdkkkbpn6jgsm9ktd9{stroke-linecap:round;stroke-linejoin:round}.PSPDFKit-68femat6jd47qrav117uen51r{pointer-events:none;position:absolute;-webkit-user-select:none;-ms-user-select:none;user-select:none} +.PSPDFKit-26jegsvp6ufypbu8pxdv7fr1zz{bottom:0;left:0;position:absolute;right:0;top:0}.PSPDFKit-2wjxpeaermrgg7maxgnqmz9nc3{align-items:center;display:flex;justify-content:center}.PSPDFKit-3g43gj4at3dwbty7y7kctavd8b{-webkit-user-select:text;-ms-user-select:text;user-select:text}.PSPDFKit-85dfpszurcp74kqrua8y455s3x,.PSPDFKit-85dfpszurcp74kqrua8y455s3x>:first-child{height:100%}.PSPDFKit-85dfpszurcp74kqrua8y455s3x>:last-child *{box-sizing:border-box} +.PSPDFKit-4dwy35ce5zzs8fcuzm4z5qyj9j{bottom:0;left:0;position:absolute;right:0;top:0}.PSPDFKit-4rhmvvkqbbeztw9z4seq55hdh4{overflow:hidden;position:absolute}.PSPDFKit-4rhmvvkqbbeztw9z4seq55hdh4 p{margin:0}.PSPDFKit-4rhmvvkqbbeztw9z4seq55hdh4 p:empty:after,.PSPDFKit-4rhmvvkqbbeztw9z4seq55hdh4 p>span:empty:after{content:" "}.PSPDFKit-5sgjnpxkms74d5uhcrs1xnpjkh{margin:0;padding:0}.PSPDFKit-5sgjnpxkms74d5uhcrs1xnpjkh:focus{outline:none}.PSPDFKit-c8up8r9n155axqjtb8dat8e5t{background:inherit;cursor:text;height:auto;overflow:hidden;position:absolute;-webkit-user-select:text!important;-ms-user-select:text!important;user-select:text!important;width:auto}.PSPDFKit-c8up8r9n155axqjtb8dat8e5t *{margin:0;padding:0}.PSPDFKit-c8up8r9n155axqjtb8dat8e5t:focus{outline:none}.PSPDFKit-3g965ce6b38z92kn57ymc33d93{position:absolute!important} +.PSPDFKit-87g1wera6smataxregkeucdz7u{pointer-events:none}.PSPDFKit-7nzf5ygyxf3ft1vwqded1vys1c{z-index:1}.PSPDFKit-7ckwm8p8x63jumkemns7vefj6u{bottom:0;cursor:crosshair;left:0;position:absolute;right:0;top:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-8629afaazd1efzub8c3z1qfnae{position:absolute;text-align:left}.PSPDFKit-4vzt6kbkqqcu93437rphdgn7xj{border:2px solid rgba(60,151,254,.5);bottom:-6px;left:-6px;position:absolute;right:-6px;top:-6px}.PSPDFKit-8qst6ht79xb7qug95szm7j35vv{cursor:pointer}.PSPDFKit-86f9zgw71s8n95n7rxd3uqn3c{word-wrap:break-word;font-family:Helvetica,sans-serif;line-height:0;overflow:hidden;overflow-wrap:break-word}.PSPDFKit-82f4yxbm2u7ssyqxr8sztm7qzb{display:inline-block;overflow:hidden;width:100%}.PSPDFKit-7vkn9dyk6rhen2hjabdgskypgp{pointer-events:none;position:absolute;-webkit-user-select:none;-ms-user-select:none;user-select:none} +.PSPDFKit-8py43zrk8tdwczbp1rgu5zkpcc{position:absolute}.PSPDFKit-4111jnwhknt7c61pjq82hshdjm,.PSPDFKit-68rke3v2mwfersk9s87pby4xqz:focus{outline:2px solid #2378ff!important;outline-offset:2px}.PSPDFKit-2wyzkwftushgxqvheqv9gc1qz7{background:hsla(0,0%,100%,.5);border-radius:3px;bottom:3px;left:3px;position:absolute;right:3px;top:3px}.PSPDFKit-68rke3v2mwfersk9s87pby4xqz .PSPDFKit-6jx1pd841ynqrzk4be2rtgtwnc{cursor:pointer}.PSPDFKit-4hm8gjadpcvqnu18qte7mqnfey .PSPDFKit-6jx1pd841ynqrzk4be2rtgtwnc{background-color:#900;bottom:0;content:"";cursor:pointer;left:0;position:absolute;right:0;top:50%}.PSPDFKit-4hm8gjadpcvqnu18qte7mqnfey .PSPDFKit-2wyzkwftushgxqvheqv9gc1qz7{opacity:.1}.PSPDFKit-8hws43jkrgjxj8tajvc3qfhyfr .PSPDFKit-6jx1pd841ynqrzk4be2rtgtwnc{background-color:#900;bottom:0;content:"";cursor:pointer;left:0;position:absolute;right:0}.PSPDFKit-8hws43jkrgjxj8tajvc3qfhyfr .PSPDFKit-2wyzkwftushgxqvheqv9gc1qz7{opacity:.1}.PSPDFKit-78vd6wa19gxf1ecyped1w9etsw .PSPDFKit-6jx1pd841ynqrzk4be2rtgtwnc{background:none!important;bottom:0;cursor:pointer;left:0;position:absolute;right:0}.PSPDFKit-78vd6wa19gxf1ecyped1w9etsw .PSPDFKit-2wyzkwftushgxqvheqv9gc1qz7{opacity:.1} +.PSPDFKit-73459dse4nv5d9mqecpwp57s3d{height:100%;width:100%}.PSPDFKit-8wsgnacdwb75d488xzar24jqkq{position:absolute} +.PSPDFKit-7ynwexufv1hs2a9qe2gqaegb69{border-radius:3px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;touch-action:none;white-space:nowrap}.PSPDFKit-7ynwexufv1hs2a9qe2gqaegb69:not([disabled]){background-color:#7792f4;border-color:#1946ec;color:#fff}.PSPDFKit-7ynwexufv1hs2a9qe2gqaegb69:not([disabled]):hover{background-color:#8fa5f6;color:#fff;outline:0}.PSPDFKit-7ynwexufv1hs2a9qe2gqaegb69:not([disabled]):active{background-color:#607ff2}.PSPDFKit-4cfxcba5wt87u69f2dw7v6xter{overflow:hidden;text-overflow:ellipsis;white-space:nowrap} +.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1{display:block;position:relative}.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1 [type=checkbox],.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1 [type=radio]{bottom:0;height:100%;left:0;margin:0;opacity:0;padding:0;position:absolute;right:0;top:0;width:100%}.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1 [type=checkbox]:focus+.PSPDFKit-8zz118e9x2cbq64jj7xe4juhtg,.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1 [type=radio]:focus+.PSPDFKit-8zz118e9x2cbq64jj7xe4juhtg{background-color:#fffb8b;border-color:#beb700;box-shadow:none!important}.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1 [type=checkbox]:active:not([disabled])+.PSPDFKit-8zz118e9x2cbq64jj7xe4juhtg,.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1 [type=checkbox]:hover:not([disabled])+.PSPDFKit-8zz118e9x2cbq64jj7xe4juhtg,.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1 [type=radio]:active:not([disabled])+.PSPDFKit-8zz118e9x2cbq64jj7xe4juhtg,.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1 [type=radio]:hover:not([disabled])+.PSPDFKit-8zz118e9x2cbq64jj7xe4juhtg{background-color:#fff;box-shadow:inset 0 0 0 1px #b9c8ff}.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1 [type=checkbox].PSPDFKit-5d2c15vj7t3amwwn2yqea1bcas+.PSPDFKit-yun3fvwa7cmcs36wxdpy8barj:after,.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1 [type=checkbox]:checked+.PSPDFKit-yun3fvwa7cmcs36wxdpy8barj:after,.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1 [type=radio].PSPDFKit-5d2c15vj7t3amwwn2yqea1bcas+.PSPDFKit-yun3fvwa7cmcs36wxdpy8barj:after,.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1 [type=radio]:checked+.PSPDFKit-yun3fvwa7cmcs36wxdpy8barj:after{background-color:#1332a7}.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1 [type=checkbox].PSPDFKit-5d2c15vj7t3amwwn2yqea1bcas[disabled]+.PSPDFKit-yun3fvwa7cmcs36wxdpy8barj:after,.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1 [type=checkbox]:checked[disabled]+.PSPDFKit-yun3fvwa7cmcs36wxdpy8barj:after,.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1 [type=radio].PSPDFKit-5d2c15vj7t3amwwn2yqea1bcas[disabled]+.PSPDFKit-yun3fvwa7cmcs36wxdpy8barj:after,.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1 [type=radio]:checked[disabled]+.PSPDFKit-yun3fvwa7cmcs36wxdpy8barj:after{background-color:rgba(87,87,87,.7)}.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1 [type=checkbox][disabled]~.PSPDFKit-5kxx5vfzwztr2mwa4mzj18jqrq,.PSPDFKit-24sm6mv9bd2n715byv1c75x3p1 [type=radio][disabled]~.PSPDFKit-5kxx5vfzwztr2mwa4mzj18jqrq{color:#666}.PSPDFKit-5kxx5vfzwztr2mwa4mzj18jqrq,.PSPDFKit-8zz118e9x2cbq64jj7xe4juhtg{bottom:0;left:0;line-height:0;pointer-events:none;position:absolute;right:0;top:0}.PSPDFKit-8zz118e9x2cbq64jj7xe4juhtg{border-radius:.1em}.PSPDFKit-yun3fvwa7cmcs36wxdpy8barj,.PSPDFKit-yun3fvwa7cmcs36wxdpy8barj:after{border-radius:100%;pointer-events:none}.PSPDFKit-yun3fvwa7cmcs36wxdpy8barj:after{background-color:transparent;content:"";height:50%;left:25%;position:absolute;top:25%;width:50%}.PSPDFKit-5kxx5vfzwztr2mwa4mzj18jqrq{color:#1332a7}.PSPDFKit-5kxx5vfzwztr2mwa4mzj18jqrq svg{height:100%;width:100%} +.PSPDFKit-5pebxrpmqgkrf7vcxe4371geyh{bottom:0;cursor:default;left:0;position:absolute;right:0;top:0}.PSPDFKit-7fyvzesvuhuugesmttmj91m4nm{align-items:flex-start;display:flex;flex:0 1 auto;flex-direction:column;margin:0;padding:0;position:relative}.PSPDFKit-7fyvzesvuhuugesmttmj91m4nm.PSPDFKit-2a2g4zggqmewex1vm5v4zpgb56{z-index:100}.PSPDFKit-6s31a1f931synspdjrnvzxnfgc{display:block;position:relative;width:100%}.PSPDFKit-4bd1e6vbjnuczspgvgas5tb4us{background-color:transparent;border:0;box-sizing:border-box;font:inherit;height:100%;margin-right:0;overflow:hidden;padding:0 .3em;text-align:left;white-space:nowrap;width:100%}.PSPDFKit-4bd1e6vbjnuczspgvgas5tb4us[disabled],.PSPDFKit-4bd1e6vbjnuczspgvgas5tb4us[disabled]+.PSPDFKit-3hahgu1xkd2v4363x5d3e6rryn{color:#666}.PSPDFKit-3hahgu1xkd2v4363x5d3e6rryn{border:none;color:#5f5f5f;margin-top:-.35em;position:absolute;right:.25em;top:50%;width:.7em}.PSPDFKit-3hahgu1xkd2v4363x5d3e6rryn svg{fill:currentColor;border:0!important;display:block;height:.7em}.PSPDFKit-3vaw2awbbx1p5zjtdh9v5dhtts{align-items:stretch;background-color:#fff;display:flex;flex-direction:column;min-width:3em;outline:2px solid #000;width:100%}.PSPDFKit-89gzhtz3mw6xunsgtyr2eum9s6,.PSPDFKit-3vaw2awbbx1p5zjtdh9v5dhtts{box-sizing:border-box}.PSPDFKit-89gzhtz3mw6xunsgtyr2eum9s6{flex:0 1 auto;margin:.2em;min-height:0;min-width:0;padding:.2em}.PSPDFKit-88t5fcsjadwffxkef3gfkzaksk{align-items:stretch;border-style:none;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;margin-top:.1em;overflow:none}.PSPDFKit-844vbxfxwv5rq9arab8e8gd5de{color:#3d464d;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.PSPDFKit-rrhtfqn9ehag1af8v4xkdd8au{background-color:#ecf0ff}.PSPDFKit-49532ws826dtcr1m8n5e4dcjzu{background-color:#b9c8ff;color:#fff}.PSPDFKit-57p3ubjwqmm7d4cs2pftzys4tx{color:#aeaeae}.PSPDFKit-rrhtfqn9ehag1af8v4xkdd8au .PSPDFKit-57p3ubjwqmm7d4cs2pftzys4tx{color:#3d464d}.PSPDFKit-49532ws826dtcr1m8n5e4dcjzu .PSPDFKit-57p3ubjwqmm7d4cs2pftzys4tx{color:#fff} +.PSPDFKit-4epuuwuap9pk3ntjcv5zf9djsb{outline:1px solid transparent}.PSPDFKit-7xq92qy48k696v9kfs77d7f216:not([disabled]) option:checked{background:#b9c8ff linear-gradient(0deg,#b9c8ff,#b9c8ff);color:#fff} +.PSPDFKit-6b7je6w7pq8q3htgsu22kkv6jy{align-items:center;background-color:#4636e3;background-color:var(--PSPDFKit-Signatures-background);border:1px solid #5e5ceb;border:1px solid var(--PSPDFKit-Signatures-border);border-radius:0 0 .2em;color:#fff;color:var(--PSPDFKit-Signatures-color);display:inline-flex;font-size:0.75rem;font-size:var(--PSPDFKit-fontSize-2);left:0;line-height:1;padding:.2em .4em;position:absolute;text-transform:lowercase;top:0}.PSPDFKit-7181s3qkmmn7fdexydqff3quq3{background-color:inherit;border-color:inherit;color:inherit}.PSPDFKit-4kv9rhr6nzpkdjsr5xsjyfaqju{max-height:100vh;max-width:640px;width:100%}@media(max-height:455px){.PSPDFKit-4kv9rhr6nzpkdjsr5xsjyfaqju{height:90%}}@media(max-height:300px){.PSPDFKit-4kv9rhr6nzpkdjsr5xsjyfaqju{height:100%}}@media(orientation:landscape)and (max-width:992px){.PSPDFKit-4kv9rhr6nzpkdjsr5xsjyfaqju{border-radius:0;height:100%;max-width:100%}}.PSPDFKit-4kv9rhr6nzpkdjsr5xsjyfaqju .PSPDFKit-3nvj481sp2nd9z1gjhvh4xnak2,.PSPDFKit-4kv9rhr6nzpkdjsr5xsjyfaqju .PSPDFKit-3v4b4f9nkt7wjjd26afq8763k5{margin-left:calc(0.8125em*-1);margin-left:calc(var(--PSPDFKit-spacing-5)*-1);margin-right:calc(0.8125em*-1);margin-right:calc(var(--PSPDFKit-spacing-5)*-1)}.PSPDFKit-2g5n99kjfbnxh1che778jg7tjb{color:#4d525d;color:var(--PSPDFKit-Signatures-container-color);display:flex;flex-direction:column;height:100%;justify-content:space-between}.PSPDFKit-6qtbckagb6bfbdepc3443v6ywj{height:auto;max-height:60vh}@media(orientation:landscape)and (max-width:992px){.PSPDFKit-6qtbckagb6bfbdepc3443v6ywj{height:100%;max-height:100%}}.PSPDFKit-4su78ec7s1c5mkz65pjuq22xsv{margin-bottom:1.625em;margin-bottom:var(--PSPDFKit-spacing-3)}.PSPDFKit-5ru14aj6muejw948tvdz1gb3ks,.PSPDFKit-4su78ec7s1c5mkz65pjuq22xsv{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between}.PSPDFKit-5ru14aj6muejw948tvdz1gb3ks{margin-top:1.625em;margin-top:var(--PSPDFKit-spacing-3)}.PSPDFKit-3bexu72w84xp6s2e361sj7711b,.PSPDFKit-5r5vdeqd1th8znbb9ygk279qt7{margin-bottom:0.609em;margin-bottom:var(--PSPDFKit-spacing-6)}@media(min-width:350px){.PSPDFKit-3bexu72w84xp6s2e361sj7711b,.PSPDFKit-5r5vdeqd1th8znbb9ygk279qt7{margin-bottom:0}}@media(max-width:350px){.PSPDFKit-8c4vuvw13bebs9s1s79remb5de{width:100%}.PSPDFKit-8c4vuvw13bebs9s1s79remb5de~.PSPDFKit-8c4vuvw13bebs9s1s79remb5de,.PSPDFKit-4kzbv64jk7wgnrp27w38k26bj3{margin-top:0.8125em;margin-top:var(--PSPDFKit-spacing-5)}.PSPDFKit-4kzbv64jk7wgnrp27w38k26bj3{width:100%}}.PSPDFKit-5ngq82qgx5cxz4uz5mzjkchjr4{background-color:#fcfdfe;background-color:var(--PSPDFKit-Signatures-editorCanvas-background);border:1px solid #d8dfeb;border:1px solid var(--PSPDFKit-Signatures-editorCanvas-border);border-radius:3px;overflow:hidden;padding-bottom:43.3333%;position:relative;width:100%}.PSPDFKit-2ju133936zwp42hg96a2f41uec{color:#4d525d;color:var(--PSPDFKit-Signatures-signHere-color);margin-top:-.5em;position:absolute;text-align:center;top:50%;transition:opacity .2s linear,visibility .2s;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%}.PSPDFKit-2ttca3yjnqndu3nqu48x21jqwz{opacity:0;visibility:hidden}.PSPDFKit-6uvk92p73etnn6mk5qcbqwj9yx{align-items:center;display:flex}.PSPDFKit-642395esq5512gt252k1kx6gg2{margin-left:.5em}.PSPDFKit-3bexu72w84xp6s2e361sj7711b{font-size:1.5rem!important;font-size:var(--PSPDFKit-fontSize-6)!important}.PSPDFKit-3v4b4f9nkt7wjjd26afq8763k5{flex:1 1 auto;max-height:50vh;overflow:auto}@media(orientation:landscape)and (max-width:992px){.PSPDFKit-3v4b4f9nkt7wjjd26afq8763k5{max-height:100%}}.PSPDFKit-6p71pj5wv5hqqjxncy9s2zhp6z{display:block;margin:0;padding:0 0 1rem;width:100%}.PSPDFKit-4yhszj3k6pkfr9qjx6zw41fd3g{list-style:none;margin-top:0.46875em;margin-top:var(--PSPDFKit-spacing-7);position:relative}.PSPDFKit-4yhszj3k6pkfr9qjx6zw41fd3g:first-child{margin-top:0}.PSPDFKit-4nbyd35stvtu3bz3kk4yr18ed3{display:block;opacity:.75;padding-bottom:20%;touch-action:auto;width:100%}.PSPDFKit-4nbyd35stvtu3bz3kk4yr18ed3:active,.PSPDFKit-4nbyd35stvtu3bz3kk4yr18ed3:focus,.PSPDFKit-4nbyd35stvtu3bz3kk4yr18ed3:hover{opacity:1}.PSPDFKit-4nbyd35stvtu3bz3kk4yr18ed3.PSPDFKit-353zxjn4cwq7f5trcamndrkw3j{padding:calc(0.8125em/2) 0.8125em;padding:calc(var(--PSPDFKit-spacing-5)/2) var(--PSPDFKit-spacing-5)}.PSPDFKit-7urkar9j36rp4ztzeaqz3jjm6x{background:transparent;border:0;color:#4d525d;color:var(--PSPDFKit-Signatures-DeleteSignatureButton-color);cursor:pointer;height:24px;opacity:.3;padding:0;position:absolute;right:0.609em;right:var(--PSPDFKit-spacing-6);top:0.609em;top:var(--PSPDFKit-spacing-6);width:24px}.PSPDFKit-7urkar9j36rp4ztzeaqz3jjm6x:active,.PSPDFKit-7urkar9j36rp4ztzeaqz3jjm6x:focus,.PSPDFKit-7urkar9j36rp4ztzeaqz3jjm6x:hover{opacity:1}.PSPDFKit-7urkar9j36rp4ztzeaqz3jjm6x svg{height:100%;width:100%}.PSPDFKit-5r5vdeqd1th8znbb9ygk279qt7{color:#4d525d;color:var(--PSPDFKit-Signatures-Title-color);font-size:1.25rem;font-size:var(--PSPDFKit-fontSize-5)} +.PSPDFKit-6nx1rtuadk913zxen95pax5hz5{background:transparent;border:0;line-height:1;padding:0;pointer-events:auto;position:absolute}.PSPDFKit-6nx1rtuadk913zxen95pax5hz5:focus,.PSPDFKit-6nx1rtuadk913zxen95pax5hz5:hover{cursor:pointer}.PSPDFKit-6nx1rtuadk913zxen95pax5hz5[disabled]{cursor:auto}.PSPDFKit-8qpben4cgdt355xztxuqcrcxvg svg{height:100%;overflow:visible;width:100%}.PSPDFKit-5ty8mmke3as9vprwxv67knqxcc .PSPDFKit-Icon-CommentIndicator-Stroke-Shape{stroke:#4636e3;stroke:var(--PSPDFKit-CommentMarkerAnnotation-accent-stroke);stroke-width:5px}.PSPDFKit-4cgbq7rdg2pm33fadjsppnpuux{cursor:pointer;opacity:1;pointer-events:all;position:absolute}.PSPDFKit-2aywxsct3x3wxc4d46re3nssxu{opacity:1} +.PSPDFKit-334y8gbu8r2jjjn87nzvuevc59{bottom:0;left:0;position:absolute;right:0;top:0} +.PSPDFKit-2z5hjphww7fvh1z69wxptsw1b9{bottom:0;left:0;position:absolute;right:0;top:0}.PSPDFKit-2z5hjphww7fvh1z69wxptsw1b9.PSPDFKit-3hfxfy9zqj8jprbtu9vf3epp17{cursor:pointer}.PSPDFKit-2z5hjphww7fvh1z69wxptsw1b9.PSPDFKit-3p9u592y96exhe2r2ntk5vbyxu{cursor:text} +.PSPDFKit-41x845wgwdrzef1yhewvdke7jq{fill:transparent;shape-rendering:geometricPrecision;cursor:pointer;pointer-events:fill}.PSPDFKit-41x845wgwdrzef1yhewvdke7jq.PSPDFKit-4xr8ttj6ez7ht327cw29e7egf4{cursor:grabbing}.PSPDFKit-3zx2hhrb4ywt7dnp33xe4gkwb3{fill:transparent;stroke:rgba(60,151,254,.5);shape-rendering:geometricPrecision;cursor:pointer;pointer-events:fill}.PSPDFKit-3zx2hhrb4ywt7dnp33xe4gkwb3.PSPDFKit-4xr8ttj6ez7ht327cw29e7egf4{cursor:grabbing}.PSPDFKit-dhbnhykfyudwqtjr6bkvb411g,.PSPDFKit-m9u6yjwr7kv5hrxj2edskfkgq{fill:#3c97fe;stroke:#fff;pointer-events:fill}.PSPDFKit-dhbnhykfyudwqtjr6bkvb411g{cursor:move}.PSPDFKit-dhbnhykfyudwqtjr6bkvb411g.PSPDFKit-39325679hnnu7x4wvxu6tbzens{cursor:nwse-resize}.PSPDFKit-dhbnhykfyudwqtjr6bkvb411g.PSPDFKit-4d596dtje8pvaa57j35a6jumtj{cursor:nesw-resize}.PSPDFKit-dhbnhykfyudwqtjr6bkvb411g.PSPDFKit-24ebukh9y4t3vv23sz65xrazp3{cursor:ew-resize}.PSPDFKit-dhbnhykfyudwqtjr6bkvb411g.PSPDFKit-3vgs6mrf1dabs2kb4pj7s49g45{cursor:ns-resize}.PSPDFKit-h4n5vrr4a9j6mcbt75ygqk7hf{stroke:#3c97fe}.PSPDFKit-8edbp12fj3btvvzys6786f1fgj{pointer-events:none;position:absolute;touch-action:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-cb345hgmyvpuvgnewsbd7dmq6{overflow:visible} +.PSPDFKit-3g9zhcucr422ntc7f1j5r7d642{cursor:crosshair;height:100%;position:relative;width:100%}.PSPDFKit-5jju3cq115q7jyhsr5tbbc9k5v{background-color:#4636e3;border:2px solid #fff;border-radius:50%;box-shadow:0 1px 1px rgba(0,0,0,.15);height:12px!important;width:12px!important}.PSPDFKit-7crnzth1tunbc1y11dsmm25d3d,.PSPDFKit-6jhwapspg9juffwvb74ngnheyk,.PSPDFKit-72wh5syb1qx2wkvnqjh2ts7ghz{left:50%!important;margin-left:-6px}.PSPDFKit-6jhwapspg9juffwvb74ngnheyk{top:-6px!important}.PSPDFKit-7crnzth1tunbc1y11dsmm25d3d{bottom:-6px!important}.PSPDFKit-3532cjnqew5bhzac79j6tsgba9,.PSPDFKit-2mzfwjn4a49rq62m884wpsqvwe,.PSPDFKit-4xstjgjt6yzwy52577u1uxmq58{margin-top:-6px;top:50%!important}.PSPDFKit-3532cjnqew5bhzac79j6tsgba9{left:-6px!important}.PSPDFKit-2mzfwjn4a49rq62m884wpsqvwe{right:-6px!important}.PSPDFKit-75mze7fkqv4saep8aun4y1qf7n{left:-6px!important;top:-6px!important}.PSPDFKit-q2hk1mcaqqvf11djfan91yrhz{right:-6px!important;top:-6px!important}.PSPDFKit-7w3jyr3yvfr7hpbmmha8uc2wr7{bottom:-6px!important;left:-6px!important}.PSPDFKit-3n3x1jyrwpd789w22qhc6nrscf{bottom:-6px!important;right:-6px!important}.PSPDFKit-7mmux7swq1uq9t5m59se9qu3u4{border:1px solid #fff;cursor:grab;outline:1px solid #717885;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-7mmux7swq1uq9t5m59se9qu3u4:active{cursor:grabbing;-webkit-user-select:none;-ms-user-select:none;user-select:none} +.PSPDFKit-6zm9nnbwvmtst5hnt9v1yhtmta{cursor:auto;height:100%;position:relative;width:100%;z-index:3}.PSPDFKit-4rqhxj4gybrps8vxa7fy7a3ssd{background-color:rgba(68,132,227,.2);border:1px solid #4484e3}.PSPDFKit-4rqhxj4gybrps8vxa7fy7a3ssd,.PSPDFKit-4rqhxj4gybrps8vxa7fy7a3ssd:active{-webkit-user-select:none;-ms-user-select:none;user-select:none} +.PSPDFKit-2nvh838hnrmj6tjpctafyh5x7m{margin-bottom:0;margin-top:0;max-width:100vw;position:relative;top:5px}.PSPDFKit-5xzg6bg1qbsb5nyd5qtnxyygh4{bottom:5px;top:auto}.PSPDFKit-7m14b5a6nxx7rywstpkcac66jh,.PSPDFKit-3m2a5gvruf8k4he7qc4zjkr6ph{border-bottom:5px solid transparent;border-bottom-color:#bec9d9;border-bottom-color:var(--PSPDFKit-LayoutConfig-arrow-border);border-left:5px solid transparent;border-right:5px solid transparent;border-top:0 solid transparent;display:block;height:0;margin-top:1px;position:relative;width:0}.PSPDFKit-8eerxut5n95np3tqrj71w5e222,.PSPDFKit-5b9jgmbtab9q2nsf1et2wzayps{border-bottom-width:0;border-top-color:#bec9d9;border-top-color:var(--PSPDFKit-LayoutConfig-arrow-border);border-top-width:5px}.PSPDFKit-3m2a5gvruf8k4he7qc4zjkr6ph{border-width:0 4px 4px;border-bottom:4px #fff;border-bottom:4px var(--PSPDFKit-LayoutConfig-arrowFill-border);top:1px}.PSPDFKit-3m2a5gvruf8k4he7qc4zjkr6ph,.PSPDFKit-8eerxut5n95np3tqrj71w5e222{border-style:solid;left:-4px;position:absolute}.PSPDFKit-8eerxut5n95np3tqrj71w5e222{border-width:4px 0;border-top:4px #fff;border-top:4px var(--PSPDFKit-LayoutConfig-arrowFill-border);bottom:2px;color:transparent}.PSPDFKit-6nefwc9ww2a6bdsknb6pf9xqyf{border-collapse:collapse;margin:0 10px}.PSPDFKit-6nefwc9ww2a6bdsknb6pf9xqyf tr+tr td{border-top:1px solid #bec9d9;border-top:1px solid var(--PSPDFKit-LayoutConfig-table-border)}.PSPDFKit-441mq6m2ewd76vee95v9fr7my2{cursor:pointer;touch-action:none}.PSPDFKit-441mq6m2ewd76vee95v9fr7my2,.PSPDFKit-6f7sarp7tsa7umn4f92wvj1bfv{display:inline-block}.PSPDFKit-6f7sarp7tsa7umn4f92wvj1bfv{border-radius:3px;margin:5px 0;padding:3px}.PSPDFKit-36mkhhuvsv1c4uvf7vtkhpvmrp{background-color:#4636e3;background-color:var(--PSPDFKit-LayoutConfig-icon-isActive-background);color:#fff;color:var(--PSPDFKit-LayoutConfig-icon-isActive-color)}.PSPDFKit-h975nt1b2sjwtx24fkebaskvu:not(.PSPDFKit-36mkhhuvsv1c4uvf7vtkhpvmrp){background-color:#f0f3f9;background-color:var(--PSPDFKit-LayoutConfig-icon-isHighlighted-background)} +.PSPDFKit-7y27utzt66zv3mqf62v5b93bkj{-ms-overflow-style:none;background-color:#fcfdfe;background-color:var(--PSPDFKit-Toolbar-background);box-shadow:0 1px 2px rgb(61 66 78 / 0.5);box-shadow:0 1px 2px var(--PSPDFKit-Toolbar-boxShadow);color:#3d424e;color:var(--PSPDFKit-Toolbar-color);flex:2;flex-direction:row;font-weight:400;height:44px;min-height:44px;opacity:1;overflow-x:auto;overflow-y:hidden;position:relative;transition:opacity .4s ease 0s;-webkit-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;z-index:3}.PSPDFKit-7y27utzt66zv3mqf62v5b93bkj,.PSPDFKit-7y27utzt66zv3mqf62v5b93bkj .PSPDFKit-39uutbqvjcmpw86wegd169emzw,.PSPDFKit-7y27utzt66zv3mqf62v5b93bkj .PSPDFKit-7kw269a3q1nnm4e8q7ph8skd1y{align-items:center;display:flex}.PSPDFKit-7y27utzt66zv3mqf62v5b93bkj .PSPDFKit-39uutbqvjcmpw86wegd169emzw,.PSPDFKit-7y27utzt66zv3mqf62v5b93bkj .PSPDFKit-7kw269a3q1nnm4e8q7ph8skd1y{flex-grow:1}.PSPDFKit-7y27utzt66zv3mqf62v5b93bkj .PSPDFKit-7kw269a3q1nnm4e8q7ph8skd1y{justify-content:flex-end}.PSPDFKit-7y27utzt66zv3mqf62v5b93bkj>:first-child,.PSPDFKit-7y27utzt66zv3mqf62v5b93bkj>:first-child .PSPDFKit-yzpfzw9bfd9ejp1k7kgdacu7d{border:0}.PSPDFKit-4z9qs61q4s33nvuwafvrr69p27{margin:0 12px}.PSPDFKit-4z9qs61q4s33nvuwafvrr69p27:last-child{display:none}.PSPDFKit-width-md .PSPDFKit-4z9qs61q4s33nvuwafvrr69p27,.PSPDFKit-width-sm .PSPDFKit-4z9qs61q4s33nvuwafvrr69p27,.PSPDFKit-width-xs .PSPDFKit-4z9qs61q4s33nvuwafvrr69p27{display:none}.PSPDFKit-2znbjv3uzcg3sd8kby58ara78y{align-items:center;display:flex;justify-content:center}.PSPDFKit-yzpfzw9bfd9ejp1k7kgdacu7d{border-left:1px solid #f0f3f9;border-left:1px solid var(--PSPDFKit-Toolbar-button-border);flex-shrink:0}.PSPDFKit-6uq6r7dsfrgrfk6e7j9247tmjh{align-items:center;border:0;border-radius:4px;display:flex;flex-shrink:0;font:inherit;justify-content:flex-start;padding-right:24px;white-space:nowrap;width:100%}.PSPDFKit-6uq6r7dsfrgrfk6e7j9247tmjh.PSPDFKit-6uq6r7dsfrgrfk6e7j9247tmjh{color:inherit}.PSPDFKit-4w5v8zc35y6mjqvgzm7h29yxjz{background-color:#4636e3;background-color:var(--PSPDFKit-Toolbar-dropdownButton-isSelected-background);color:#fff!important;color:var(--PSPDFKit-Toolbar-dropdownButton-isSelected-color)!important}.PSPDFKit-3esgz77hvs295449651j22wfqe{background-color:#f0f3f9;background-color:var(--PSPDFKit-Toolbar-dropdownButton-isDisabled-background)}.PSPDFKit-6uq6r7dsfrgrfk6e7j9247tmjh:focus,.PSPDFKit-6uq6r7dsfrgrfk6e7j9247tmjh:hover,.PSPDFKit-7afsq6jcreh7h5cqqjrdd1xq87{background-color:#4636e3;background-color:var(--PSPDFKit-Toolbar-dropdownButton-isFocused-background);color:#fff;color:var(--PSPDFKit-Toolbar-dropdownButton-isFocused-color)}.PSPDFKit-6uq6r7dsfrgrfk6e7j9247tmjh:focus.PSPDFKit-6uq6r7dsfrgrfk6e7j9247tmjh,.PSPDFKit-6uq6r7dsfrgrfk6e7j9247tmjh:hover.PSPDFKit-6uq6r7dsfrgrfk6e7j9247tmjh,.PSPDFKit-7afsq6jcreh7h5cqqjrdd1xq87.PSPDFKit-6uq6r7dsfrgrfk6e7j9247tmjh{color:#fff;color:var(--PSPDFKit-Toolbar-dropdownButton-isFocused-color)} +.PSPDFKit-7q656qfg6merpmvr8kzt9szzpm{opacity:0;transform:translate3d(0,-50%,0)}.PSPDFKit-2uctbmt9nj99yrpxdk24951hsm{transition:all .1s ease-out}.PSPDFKit-2uctbmt9nj99yrpxdk24951hsm,.PSPDFKit-5v5jfhfemf1mxc5ret8j9wh9sh{opacity:1;transform:translateZ(0)}.PSPDFKit-3a46uu7aytzncpnz4ppsu1ucnd{opacity:0;transform:translate3d(0,-50%,0);transition:all .12s ease-in}.PSPDFKit-7yg9b82v4xahqj93wys6tpbu1f{opacity:0;transform:translate3d(0,50%,0)}.PSPDFKit-44rpp3fvbs9mj6uu6g6my1392{transition:all .1s ease-out}.PSPDFKit-44rpp3fvbs9mj6uu6g6my1392,.PSPDFKit-4pjqt364whvu7b81yv22fwa1ve{opacity:1;transform:translateZ(0)}.PSPDFKit-4sea6h8efz1kfffbq87vcmq3qu{opacity:0;transform:translate3d(0,50%,0);transition:all .12s ease-in}.PSPDFKit-6hdgn11y1ecgvxga69t6p78b9a{transform:translate3d(0,-44px,0)}.PSPDFKit-2b6tmwyq1x3rcswb7k71f8vurh{transform:translateZ(0);transition:all .1s ease-out}.PSPDFKit-7hwkgbqv2uvce8qyhqnq7n9vdp{transform:translateZ(0)}.PSPDFKit-4b3k2aksgt8h7qfz8vz5nbnvfz{transform:translate3d(0,-44px,0);transition:all .12s ease-in}.PSPDFKit-6rtd66rsbcpdy21mbkethcajk1{transform:translate3d(0,44px,0)}.PSPDFKit-6jy41y1rpnd5deemk7hqpbq4m1{transform:translateZ(0);transition:all .1s ease-out}.PSPDFKit-21nc3yzh856bkm3mw7smrrzb5w{transform:translateZ(0)}.PSPDFKit-4zmvpm3c2adfnu8qnuw79cjh3s{transform:translate3d(0,44px,0);transition:all .12s ease-in}.PSPDFKit-79rm2zddjaxgzdkx4w8mqnqa8c{opacity:0}.PSPDFKit-7trwsc5j1bg69wa1vf9qt5e2ve{opacity:1;transition:opacity .1s ease-in}.PSPDFKit-8t2qrt9phw91wb7a8wwmgdce7p{opacity:1}.PSPDFKit-7e9n9mfhw378wrt55c2j4gpdxm{opacity:0;transition:opacity .15s ease-out}.PSPDFKit-67d6x1qnthds5d58mamrx9qpu3{opacity:0}.PSPDFKit-3dfszxf6jpx5tm2y1gn1ehxgtw{transform:scale(.7) translateY(-12px);transform-origin:top center}.PSPDFKit-8kb8kruw3xcx17v1486van1ttq{transform:scale(.7) translateY(12px);transform-origin:bottom center}.PSPDFKit-3c4mxzjgy4m6n8r275v2uyp4we{transition-duration:.24s;transition-property:opacity,transform;transition-timing-function:cubic-bezier(.165,.84,.44,1)}.PSPDFKit-3c4mxzjgy4m6n8r275v2uyp4we,.PSPDFKit-3uce8apgqwt65tqd63cq5zuvpm{opacity:1;transform:none}.PSPDFKit-3hsvwu5hjq1a44vcrtkv5fhpnr{transform-origin:top center}.PSPDFKit-5r2r1t3f6q5zqjq84zbr69ejuk{transform-origin:bottom center}.PSPDFKit-35xj9c4azp7m511gxuzzvr1k5d{opacity:0;transition-duration:80ms;transition-property:opacity,transform;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.PSPDFKit-t8mvndx8cr8ydw9bm2vyh2wgw{transform:scale(.7) translateY(-12px)}.PSPDFKit-378kvahbp4zr42u1gb4cqyxsad{transform:scale(.7) translateY(12px)} +.PSPDFKit-ueuej8dv753zvbk6mp828mzsr{color:#3d424e;color:var(--PSPDFKit-Pager-color);cursor:default;display:flex;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);font-variant-numeric:tabular-nums;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:-moz-fit-content;width:fit-content}.PSPDFKit-5k4sr6w4zxhd2hs9mbp6s6pzny,.PSPDFKit-4mcfrdfta1gqurpt3wsxjc97a{align-items:center;display:flex}.PSPDFKit-5k4sr6w4zxhd2hs9mbp6s6pzny{min-width:0}.PSPDFKit-width-sm .PSPDFKit-5k4sr6w4zxhd2hs9mbp6s6pzny,.PSPDFKit-width-xs .PSPDFKit-5k4sr6w4zxhd2hs9mbp6s6pzny{display:none}.PSPDFKit-4mcfrdfta1gqurpt3wsxjc97a{display:none}.PSPDFKit-width-sm .PSPDFKit-4mcfrdfta1gqurpt3wsxjc97a,.PSPDFKit-width-xs .PSPDFKit-4mcfrdfta1gqurpt3wsxjc97a{display:flex}.PSPDFKit-bc9txuev7gse3pp84ajq62vmt strong{color:#3d424e;color:var(--PSPDFKit-Pager-color);font-weight:400}.PSPDFKit-7tngmuaurbw9evq3vhsmqhb79y{display:flex;height:26px;margin:0 0.609em;margin:0 var(--PSPDFKit-spacing-6)}.PSPDFKit-6akg5tb3pdjbrjepp4y44p6w6w{-moz-appearance:textfield;background:rgb(61 66 78 / 0.2);background:var(--PSPDFKit-Pager-input-background);border:none;color:#3d424e;color:var(--PSPDFKit-Pager-input-color);font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);font-weight:400;margin:0 1px;padding:4px;text-align:center;transition:all .15s;width:48px}.PSPDFKit-6akg5tb3pdjbrjepp4y44p6w6w:active,.PSPDFKit-6akg5tb3pdjbrjepp4y44p6w6w:focus{color:#3d424e;color:var(--PSPDFKit-Pager-input-isActive-color)}.PSPDFKit-6akg5tb3pdjbrjepp4y44p6w6w::-webkit-inner-spin-button,.PSPDFKit-6akg5tb3pdjbrjepp4y44p6w6w::-webkit-outer-spin-button{-webkit-appearance:none}.PSPDFKit-8eqdrxrxh6w15npezgfrhr5xaw,.PSPDFKit-218fbh46vhgjukxda9q16dva61{background:rgb(61 66 78 / 0.2);background:var(--PSPDFKit-Pager-input-background);border:0;color:#3d424e;color:var(--PSPDFKit-Pager-input-isActive-color);cursor:pointer;display:flex;height:100%;justify-content:center;padding:5px 3px;touch-action:none;transition:all .15s;width:26px}.PSPDFKit-8eqdrxrxh6w15npezgfrhr5xaw .PSPDFKit-4k74zzdsrvasvyyh48kjpdwb69,.PSPDFKit-218fbh46vhgjukxda9q16dva61 .PSPDFKit-4k74zzdsrvasvyyh48kjpdwb69{fill:#3d424e;fill:var(--PSPDFKit-Pager-input-isActive-color);display:block;height:14px;width:14px}.PSPDFKit-8eqdrxrxh6w15npezgfrhr5xaw:focus,.PSPDFKit-8eqdrxrxh6w15npezgfrhr5xaw:hover,.PSPDFKit-218fbh46vhgjukxda9q16dva61:focus,.PSPDFKit-218fbh46vhgjukxda9q16dva61:hover{background:#bec9d9;background:var(--PSPDFKit-Pager-input-isHovered-background)}.PSPDFKit-8eqdrxrxh6w15npezgfrhr5xaw:focus .PSPDFKit-4k74zzdsrvasvyyh48kjpdwb69,.PSPDFKit-8eqdrxrxh6w15npezgfrhr5xaw:hover .PSPDFKit-4k74zzdsrvasvyyh48kjpdwb69,.PSPDFKit-218fbh46vhgjukxda9q16dva61:focus .PSPDFKit-4k74zzdsrvasvyyh48kjpdwb69,.PSPDFKit-218fbh46vhgjukxda9q16dva61:hover .PSPDFKit-4k74zzdsrvasvyyh48kjpdwb69{fill:#3d424e;fill:var(--PSPDFKit-Pager-input-isHovered-color)}.PSPDFKit-8eqdrxrxh6w15npezgfrhr5xaw:disabled,.PSPDFKit-218fbh46vhgjukxda9q16dva61:disabled{pointer-events:none}.PSPDFKit-8eqdrxrxh6w15npezgfrhr5xaw:disabled .PSPDFKit-4k74zzdsrvasvyyh48kjpdwb69,.PSPDFKit-218fbh46vhgjukxda9q16dva61:disabled .PSPDFKit-4k74zzdsrvasvyyh48kjpdwb69{fill:#3d424e;fill:var(--PSPDFKit-Pager-input-isDisabled-color);opacity:0.3;opacity:var(--PSPDFKit-Pager-input-isDisabled-opacity)}.PSPDFKit-218fbh46vhgjukxda9q16dva61{border-radius:4px 0 0 4px}.PSPDFKit-8eqdrxrxh6w15npezgfrhr5xaw{border-radius:0 4px 4px 0}.PSPDFKit-6fnzgpjer6z7ca9jecfhk8hdsy{left:-1000000px;position:absolute;top:-1000000px} +.PSPDFKit-7kgnbhpp26m2rect3yjw1u1693{background-color:inherit;border:1px solid transparent}.PSPDFKit-314s1es5hfe28mgs9tnhkzb1de{pointer-events:none}.PSPDFKit-812ak3qykd2u5n22qxdy661rhr{border:unset} +.PSPDFKit-7s54nnph7yayfgqvb7rcy9q2r9{align-items:stretch;display:flex;flex:2;flex-direction:row;left:0;position:absolute;right:0;top:0;z-index:4}.PSPDFKit-7s54nnph7yayfgqvb7rcy9q2r9.PSPDFKit-6zy881tctu9r8st5vfwvpcfxja{-ms-overflow-style:none;background-color:#fcfdfe;background-color:var(--PSPDFKit-ToolbarResponsiveGroup--primary-background);overflow-x:auto;position:fixed}.PSPDFKit-7s54nnph7yayfgqvb7rcy9q2r9.PSPDFKit-6zy881tctu9r8st5vfwvpcfxja.PSPDFKit-2sm51vztwj4mjbhd5pehvnauwk{bottom:0;top:auto}.PSPDFKit-7s54nnph7yayfgqvb7rcy9q2r9.PSPDFKit-272tn91arpsx8j7fngtk874eyz{background:#d8dfeb;background:var(--PSPDFKit-ToolbarResponsiveGroup--secondary-background);border-bottom:1px solid #bec9d9;border-bottom:1px solid var(--PSPDFKit-ToolbarResponsiveGroup--secondary-border);box-shadow:-1px 2px 5px rgb(61 66 78 / 0.5);box-shadow:-1px 2px 5px var(--PSPDFKit-shadow-color)}.PSPDFKit-browser-engine-webkit .PSPDFKit-7s54nnph7yayfgqvb7rcy9q2r9.PSPDFKit-272tn91arpsx8j7fngtk874eyz{right:unset}.PSPDFKit-8tf4984hks13xr145qxkvqh5x2{height:auto}.PSPDFKit-6zy881tctu9r8st5vfwvpcfxja .PSPDFKit-8tf4984hks13xr145qxkvqh5x2{border-right:1px solid #f0f3f9;border-right:1px solid var(--PSPDFKit-ToolbarResponsiveGroup-button--primary-border)}.PSPDFKit-6zy881tctu9r8st5vfwvpcfxja .PSPDFKit-8tf4984hks13xr145qxkvqh5x2 .PSPDFKit-3skkbnpn3gm9d5fp6b75tc96pe:after,.PSPDFKit-6zy881tctu9r8st5vfwvpcfxja .PSPDFKit-8tf4984hks13xr145qxkvqh5x2 .PSPDFKit-3skkbnpn3gm9d5fp6b75tc96pe:before{border-color:#3d424e;border-color:var(--PSPDFKit-ToolbarResponsiveGroup-button--primary-arrow-border)}.PSPDFKit-272tn91arpsx8j7fngtk874eyz .PSPDFKit-8tf4984hks13xr145qxkvqh5x2{border-right:1px solid #bec9d9!important;border-right:1px solid var(--PSPDFKit-ToolbarResponsiveGroup-button--secondary-border)!important}.PSPDFKit-272tn91arpsx8j7fngtk874eyz .PSPDFKit-8tf4984hks13xr145qxkvqh5x2 .PSPDFKit-3skkbnpn3gm9d5fp6b75tc96pe:after,.PSPDFKit-272tn91arpsx8j7fngtk874eyz .PSPDFKit-8tf4984hks13xr145qxkvqh5x2 .PSPDFKit-3skkbnpn3gm9d5fp6b75tc96pe:before{border-color:#3d424e;border-color:var(--PSPDFKit-ToolbarResponsiveGroup-button--secondary-arrow-border)}.PSPDFKit-272tn91arpsx8j7fngtk874eyz .PSPDFKit-8tf4984hks13xr145qxkvqh5x2.PSPDFKit-3jvcxjeemxp6228839um72qy4t,.PSPDFKit-272tn91arpsx8j7fngtk874eyz .PSPDFKit-8tf4984hks13xr145qxkvqh5x2:active,.PSPDFKit-272tn91arpsx8j7fngtk874eyz .PSPDFKit-8tf4984hks13xr145qxkvqh5x2:focus,.PSPDFKit-272tn91arpsx8j7fngtk874eyz .PSPDFKit-8tf4984hks13xr145qxkvqh5x2:hover{background:#f0f3f9!important;background:var(--PSPDFKit-ToolbarResponsiveGroup-button--secondary-arrow-isFocused-background)!important}.PSPDFKit-272tn91arpsx8j7fngtk874eyz .PSPDFKit-8tf4984hks13xr145qxkvqh5x2 svg{fill:#3d424e;fill:var(--PSPDFKit-ToolbarResponsiveGroup-button-svg-fill);height:24px;width:24px}.PSPDFKit-2n3akw6g2m6zcpdwrxfqcdm28q{align-items:center;display:flex;flex-direction:row;height:auto;width:auto}.PSPDFKit-3skkbnpn3gm9d5fp6b75tc96pe{background:transparent;border:0;height:20px;left:3px;position:relative;width:24px}.PSPDFKit-3skkbnpn3gm9d5fp6b75tc96pe:after,.PSPDFKit-3skkbnpn3gm9d5fp6b75tc96pe:before{border-width:2px;content:"";height:50%;left:0;position:absolute;width:calc(50% - 1px)}.PSPDFKit-3skkbnpn3gm9d5fp6b75tc96pe:before{animation:PSPDFKit-6t665x89dpp83cptuahpm823v9 .25s linear;border-right-style:solid;top:0;transform:rotate(-45deg);transform-origin:100% 100%}.PSPDFKit-3skkbnpn3gm9d5fp6b75tc96pe:after{animation:PSPDFKit-3ta9x8afg61d6nxtq9yhdeq5k2 .25s linear;border-right-style:solid;top:50%;transform:rotate(45deg);transform-origin:100% 0}.PSPDFKit-5g7enmsbf45swnff2zwyxdwmd8{opacity:0;transform:translate3d(50%,0,0)}.PSPDFKit-h2x5j64f4qrks9ntdqzgenamu{transition:all .15s ease-out}.PSPDFKit-h2x5j64f4qrks9ntdqzgenamu,.PSPDFKit-4hcst5bakcb11gphagzdemmaj2{opacity:1;transform:translateZ(0)}.PSPDFKit-2f4rg8arx4myttw4gnp6m4cj6f{opacity:0;transform:translate3d(50%,0,0);transition:all .12s ease-in}.PSPDFKit-browser-engine-webkit .PSPDFKit-7s54nnph7yayfgqvb7rcy9q2r9.PSPDFKit-h2x5j64f4qrks9ntdqzgenamu,.PSPDFKit-browser-engine-webkit .PSPDFKit-7s54nnph7yayfgqvb7rcy9q2r9.PSPDFKit-3zhxpze9bhbrk5wqq7cnx6rrcz,.PSPDFKit-browser-engine-webkit .PSPDFKit-7s54nnph7yayfgqvb7rcy9q2r9.PSPDFKit-4hcst5bakcb11gphagzdemmaj2{right:0}.PSPDFKit-7s54nnph7yayfgqvb7rcy9q2r9.PSPDFKit-3zhxpze9bhbrk5wqq7cnx6rrcz{position:absolute}@keyframes PSPDFKit-6t665x89dpp83cptuahpm823v9{0%{transform:rotate(0)}20%{transform:rotate(0)}to{transform:rotate(-45deg)}}@keyframes PSPDFKit-3ta9x8afg61d6nxtq9yhdeq5k2{0%{transform:rotate(0)}20%{transform:rotate(0)}to{transform:rotate(45deg)}} +.PSPDFKit-6xbbtf8p2qcsg9fyy1cuyj7gw5{align-items:stretch;display:flex;flex-direction:column;position:relative}.PSPDFKit-5vy62kz7ms89nk2k2k3swztwdt,.PSPDFKit-2bqfqmutsr41ycmfq7rs53uqxa{align-self:stretch;flex-grow:1}.PSPDFKit-3r5sb26jgasuxhwabq3dunx45u{height:55px;position:absolute;transform:translate(-27px,-28.5px);width:52px}.PSPDFKit-83td1duhyv22mhv3yff4qtza4s{height:82px;left:50%;position:fixed;top:50%;transform:translate(-41px,-19px);width:82px;z-index:1}.PSPDFKit-83td1duhyv22mhv3yff4qtza4s svg{height:82px;pointer-events:none;width:82px}.PSPDFKit-83td1duhyv22mhv3yff4qtza4s path{filter:drop-shadow(0 3px 4px rgba(43,50,59,.2))}.PSPDFKit-83td1duhyv22mhv3yff4qtza4s path:nth-child(2){stroke:#4537de;stroke:var(--PSPDFKit-DocumentComparison-crosshair-stroke)}.PSPDFKit-4fgfk59wcke21gwwxhuq8mm7n7{align-items:center;background-color:#000;border-radius:8px;color:#fff;display:flex;height:45px;justify-content:center;left:50%;opacity:1;pointer-events:all;position:absolute;top:-55px;transform:translateX(-50%);transition:.25s;width:117px}.PSPDFKit-4fgfk59wcke21gwwxhuq8mm7n7.PSPDFKit-3dkk2vqpcthpdtrchghtj4ssn4{opacity:0;pointer-events:none}.PSPDFKit-4fgfk59wcke21gwwxhuq8mm7n7:after{background-color:#000;bottom:-5px;content:"";height:10px;left:50%;position:absolute;transform:translateX(-50%) rotate(45deg);width:10px}.PSPDFKit-7kr3xjykvj7fr643ccby96g62n path{filter:drop-shadow(0 3px 4px rgba(43,50,59,.2))}.PSPDFKit-76gy17tgphy3rkqc839s5j1pzc{background:#fff;display:block;overflow:hidden;position:relative}.PSPDFKit-76gy17tgphy3rkqc839s5j1pzc.PSPDFKit-5pzb826nhfhqp1g5p1ks17fq77{box-shadow:3px 3px 8px rgba(0,0,0,.1)}.PSPDFKit-76gy17tgphy3rkqc839s5j1pzc.PSPDFKit-427zszzm3g9rt685w6err79657{box-shadow:3px -3px 8px rgba(0,0,0,.1)}.PSPDFKit-76gy17tgphy3rkqc839s5j1pzc.PSPDFKit-2ymsd6xds9g7m3tn384wexbs7d{box-shadow:-3px -3px 8px rgba(0,0,0,.1)}.PSPDFKit-76gy17tgphy3rkqc839s5j1pzc.PSPDFKit-36rheuktx5sb8ecxck9vutfh9y{box-shadow:-3px 3px 8px rgba(0,0,0,.1)}.PSPDFKit-4y67gffktarr3dzsdm3be4tkxg{background-color:var(--PSPDFKit-DocumentComparison-background);border:1px solid var(--PSPDFKit-DocumentComparison-magnifierContainer-borderColor);border-radius:50%;box-shadow:0 0 0 1px var(--PSPDFKit-DocumentComparison-magnifierContainer-boxShadow);height:174px;overflow:hidden;position:fixed;right:30px;top:118px;width:174px}.PSPDFKit-5dnneume1xfsb52nce5gmkwws3{position:absolute}.PSPDFKit-5vm17u78a9y73z4fns92w8pcmh{height:100%;left:0;position:absolute;top:0;width:100%}.PSPDFKit-5r343876m2a2k85cus2jjxh8fw{stroke:var(--PSPDFKit-DocumentComparison-magnifierGrid-stroke);fill:none}.PSPDFKit-54zz8rzg9jq31dvzq91d2qkgg5{stroke:var(--PSPDFKit-DocumentComparison-magnifierCenterOutlineStroke-stroke);fill:none}.PSPDFKit-5ct94rndvza9jt8fdk5kj434wf{stroke:var(--PSPDFKit-DocumentComparison-magnifierCenterStroke-stroke);fill:none}.PSPDFKit-jyeb8qr8rp75utm5jpsrrw1xb,.PSPDFKit-41ur68urabv2z38jg19c3pcx39{border-radius:10px;font-size:12px;height:20px;left:50%;line-height:20px;min-width:100px;position:absolute;top:75%;transform:translate(-50%,-50%)}.PSPDFKit-jyeb8qr8rp75utm5jpsrrw1xb{background-color:var(--PSPDFKit-DocumentComparison-magnifierZoomValue-backgroundColor);mix-blend-mode:multiply}.PSPDFKit-41ur68urabv2z38jg19c3pcx39{color:var(--PSPDFKit-DocumentComparison-magnifierZoomValue-color);text-align:center}.PSPDFKit-4kmrm9dhgkuczunfzmxs26b83p{left:50%;position:absolute;top:50%}.PSPDFKit-4t23dm96wzfwsfr5116ky9f96y{bottom:0;left:0;pointer-events:auto;position:absolute;right:0;top:0} +.PSPDFKit-5b8n6ax7uyfq7q2zt9n9en17ab{background:#eff4fb;background:var(--PSPDFKit-UserHintComponent-background);border:1px solid #8f9bf4;border:1px solid var(--PSPDFKit-UserHintComponent-border);border-radius:4px;bottom:20px;box-sizing:border-box;color:#190d94;color:var(--PSPDFKit-UserHintComponent-color);position:fixed;right:40px;width:240px}.PSPDFKit-2jffvae4wwchr5476dpvz5z5ch{align-items:flex-start;display:flex;flex-direction:column;padding:20px}.PSPDFKit-2ehyk369yxm1zk369m6mttkt22{align-items:center;font-size:14px;font-weight:700;padding-bottom:5px}.PSPDFKit-2ehyk369yxm1zk369m6mttkt22,.PSPDFKit-7agv7htc7d2j2xf6ugmwrw1ppu,.PSPDFKit-6qzybrgcrc8sfgmwkc749exk9n{font-style:normal;max-width:100%}.PSPDFKit-7agv7htc7d2j2xf6ugmwrw1ppu,.PSPDFKit-6qzybrgcrc8sfgmwkc749exk9n{font-size:12px;font-weight:400;line-height:140%;text-align:left}.PSPDFKit-7agv7htc7d2j2xf6ugmwrw1ppu{padding-top:5px}.PSPDFKit-7agv7htc7d2j2xf6ugmwrw1ppu button{border:none;padding:0;text-align:left}.PSPDFKit-7agv7htc7d2j2xf6ugmwrw1ppu button,.PSPDFKit-7agv7htc7d2j2xf6ugmwrw1ppu button:hover{background-color:#eff4fb;background-color:var(--PSPDFKit-UserHintComponent-background);color:#190d94;color:var(--PSPDFKit-UserHintComponent-color)}.PSPDFKit-7agv7htc7d2j2xf6ugmwrw1ppu button:hover{text-decoration:underline}.PSPDFKit-32x2pcstxyeubux789j773s9rc{padding-bottom:5px} +.PSPDFKit-8cswfxve74abt7a5ua2r512q67{-webkit-overflow-scrolling:touch;background:#fff;background:var(--PSPDFKit-AnnotationsSidebar-container-background);box-sizing:border-box;height:100%;overflow:auto;padding-bottom:0.609em;padding-bottom:var(--PSPDFKit-spacing-6)}.PSPDFKit-7ukwuhzxh3rd8yp7euuxw4jn9b{background-color:#f6f8fa;background-color:var(--PSPDFKit-AnnotationsSidebar--empty-background);color:#000;color:var(--PSPDFKit-AnnotationsSidebar--empty-color);display:flex;justify-content:center;padding:2.4375em 0.609em;padding:var(--PSPDFKit-spacing-2) var(--PSPDFKit-spacing-6)}.PSPDFKit-4qgb7hxxn2r4g3fdet5bn1pzv8{background-color:#fff;background-color:var(--PSPDFKit-AnnotationsSidebar-annotationCounter-background);color:#4d525d;color:var(--PSPDFKit-AnnotationsSidebar-annotationCounter-color);display:flex;font-weight:700;padding:1em;padding:var(--PSPDFKit-spacing-4)}.PSPDFKit-7pcrw4sjytqdrvwzpes48axkkj{background:#f0f3f9;background:var(--PSPDFKit-AnnotationsSidebar-pageNumber-background);color:#4d525d;color:var(--PSPDFKit-AnnotationsSidebar-pageNumber-color);font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);font-weight:700;margin:0;padding:0.8125em 1.625em;padding:var(--PSPDFKit-spacing-5) var(--PSPDFKit-spacing-3);text-align:right}.PSPDFKit-4uh3zdrahzskzstfsa5v48m76w{background-color:#fff;background-color:var(--PSPDFKit-AnnotationsSidebar-annotations-background);border-bottom:1px solid #d8dfeb;border-bottom:1px solid var(--PSPDFKit-AnnotationsSidebar-annotations-border)}.PSPDFKit-65qjuaube253zzcqdz1q4ku4y9{fill:#4636e3;fill:var(--PSPDFKit-AnnotationsSidebar-icon-color);color:#4636e3;color:var(--PSPDFKit-AnnotationsSidebar-icon-color);display:block;height:24px;margin-left:0.8125em;margin-left:var(--PSPDFKit-spacing-5);margin-right:0.8125em;margin-right:var(--PSPDFKit-spacing-5);width:24px}.PSPDFKit-6dxjd7dzqt7trrg39dqjupckv3{align-items:center;cursor:pointer;display:flex;margin-right:1em;margin-right:var(--PSPDFKit-spacing-4);padding:0.8125em 0;padding:var(--PSPDFKit-spacing-5) 0;position:relative}.PSPDFKit-6ek4wb89x2x5x1vhr1s1xdux9n{cursor:default}.PSPDFKit-6dxjd7dzqt7trrg39dqjupckv3+.PSPDFKit-6dxjd7dzqt7trrg39dqjupckv3:before{background-color:#f0f3f9;background-color:var(--PSPDFKit-AnnotationsSidebar-layout-background);content:"";height:1px;left:0;position:absolute;right:0;top:0}.PSPDFKit-7uyteqpmrzbvazvysj6dcy32h8{flex:1;margin-right:0.8125em;margin-right:var(--PSPDFKit-spacing-5)}.PSPDFKit-7uyteqpmrzbvazvysj6dcy32h8,.PSPDFKit-7uyteqpmrzbvazvysj6dcy32h8 button{color:#21242c;color:var(--PSPDFKit-AnnotationsSidebar-layoutContent-button-color);cursor:inherit}.PSPDFKit-7uyteqpmrzbvazvysj6dcy32h8 button{background:transparent;border:0;font-family:inherit;font-size:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;line-height:inherit;padding:0;text-align:inherit;word-break:break-all}.PSPDFKit-5c6ug4g42fqed2454e7qctd4sn{color:#848c9a;color:var(--PSPDFKit-AnnotationsSidebar-footer-color);font-size:0.75rem;font-size:var(--PSPDFKit-fontSize-2)}.PSPDFKit-5c6ug4g42fqed2454e7qctd4sn p{margin:0;padding:0}.PSPDFKit-3jftjfjas9mc5fnfn3nvfw9rbs{background:transparent;border:0;color:#3d424e;color:var(--PSPDFKit-AnnotationsSidebar-deleteIcon-color);cursor:pointer;height:24px;margin-right:0.609em;margin-right:var(--PSPDFKit-spacing-6);opacity:0;padding:0;width:24px}.PSPDFKit-3jftjfjas9mc5fnfn3nvfw9rbs:active,.PSPDFKit-3jftjfjas9mc5fnfn3nvfw9rbs:focus,.PSPDFKit-3jftjfjas9mc5fnfn3nvfw9rbs:hover,:active>.PSPDFKit-3jftjfjas9mc5fnfn3nvfw9rbs,:focus>.PSPDFKit-3jftjfjas9mc5fnfn3nvfw9rbs,:hover>.PSPDFKit-3jftjfjas9mc5fnfn3nvfw9rbs{opacity:1} +.PSPDFKit-6pk75qzdg2ukj6fscjncywz97r{align-items:center;display:flex}.PSPDFKit-5nhvbbak97n275vs6wmzzmeuwc{background:#fff;background:var(--PSPDFKit-TextInputComponent-input-background);border:1px solid #d8dfeb;border:1px solid var(--PSPDFKit-TextInputComponent-input-border);color:#3d424e;color:var(--PSPDFKit-TextInputComponent-input-color);font-size:1rem;font-size:var(--PSPDFKit-fontSize-1);font-weight:400;max-height:32px;padding:6px 10px}.PSPDFKit-5nhvbbak97n275vs6wmzzmeuwc:focus{border:1px solid #4636e3;border:1px solid var(--PSPDFKit-TextInputComponent-input-active-border)} +.PSPDFKit-8ytejk69dm72arac6kecrv7jgs{align-items:center;flex-wrap:wrap;font-size:1.125rem;font-size:var(--PSPDFKit-fontSize-4)}.PSPDFKit-4mck9x4g933qtvsqa6g63nq21j,.PSPDFKit-8ytejk69dm72arac6kecrv7jgs{display:flex;line-height:0}.PSPDFKit-4mck9x4g933qtvsqa6g63nq21j{border-radius:100%;cursor:pointer;margin:4px 3px;padding:4px;touch-action:none;transition:all .15s}.PSPDFKit-4mck9x4g933qtvsqa6g63nq21j:active,.PSPDFKit-4mck9x4g933qtvsqa6g63nq21j:hover{background:#848c9a;background:var(--PSPDFKit-ColorPicker-isHovered-background)}.PSPDFKit-5z85yf9u7uzqx732cjqehyhd3s{outline:2px solid #4636e3;outline:2px solid var(--PSPDFKit-ColorPicker-input-outline)}.PSPDFKit-7899cbm2djcuh9uzvh8y9mhq12{border:2px solid #fff;border:2px solid var(--PSPDFKit-ColorPicker-swatch-border);border-radius:100%;display:inline-block;height:1em;position:relative;width:1em;z-index:2}.PSPDFKit-7m6c5mvk9zc3ccp4w9ckt76p5q{background:#4636e3!important;background:var(--PSPDFKit-ColorPicker-input-isActive-background)!important}.PSPDFKit-6ge99vaebv8tjqjjwz2pg1qzd6,.PSPDFKit-3eaf5m5zxe8hsj1wptbbs2ru3r{border:2px solid #bec9d9;border:2px solid var(--PSPDFKit-ColorPicker-swatch--transparent-border)}.PSPDFKit-6ge99vaebv8tjqjjwz2pg1qzd6{background:#fff!important;background:var(--PSPDFKit-ColorPicker-swatch--transparent-background)!important}.PSPDFKit-6ge99vaebv8tjqjjwz2pg1qzd6:after{border-bottom:1px solid #d63960;border-bottom:1px solid var(--PSPDFKit-ColorPicker-swatch--transparent-after-border);content:"";display:inline-block;transform:rotate(-60deg) translate(-2px,3px);width:12px} +.PSPDFKit-8yyas95udks18p394fepzz4n9c{background:#f0f3f9;background:var(--PSPDFKit-AnnotationToolbar-background);font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3)}.PSPDFKit-4a4w8vxdz3qm2pcgsdreydv72t{width:100%}.PSPDFKit-4xrf431ss37nqh76k5db3ja96w{align-items:center;border-bottom:1px solid #bec9d9;border-bottom:1px solid var(--PSPDFKit-AnnotationToolbar-border);box-shadow:0 1px 2px rgba(0,0,0,.1);display:flex;flex:2;flex-direction:row;height:44px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-4xrf431ss37nqh76k5db3ja96w .PSPDFKit-7s5tce8pp2hsk5huzfuxez1gr9,.PSPDFKit-4xrf431ss37nqh76k5db3ja96w .PSPDFKit-53fgdvrhz6gw1hw6bdctgq1t9y{align-items:center;display:flex;flex-grow:1}.PSPDFKit-4xrf431ss37nqh76k5db3ja96w .PSPDFKit-53fgdvrhz6gw1hw6bdctgq1t9y{flex-direction:row-reverse;justify-content:flex-start}.PSPDFKit-width-md .PSPDFKit-4xrf431ss37nqh76k5db3ja96w,.PSPDFKit-width-sm .PSPDFKit-4xrf431ss37nqh76k5db3ja96w,.PSPDFKit-width-xs .PSPDFKit-4xrf431ss37nqh76k5db3ja96w{flex:1;flex-direction:row-reverse}.PSPDFKit-width-md .PSPDFKit-4xrf431ss37nqh76k5db3ja96w .PSPDFKit-7s5tce8pp2hsk5huzfuxez1gr9,.PSPDFKit-width-sm .PSPDFKit-4xrf431ss37nqh76k5db3ja96w .PSPDFKit-7s5tce8pp2hsk5huzfuxez1gr9,.PSPDFKit-width-xs .PSPDFKit-4xrf431ss37nqh76k5db3ja96w .PSPDFKit-7s5tce8pp2hsk5huzfuxez1gr9{flex:initial;justify-content:flex-end}.PSPDFKit-width-md .PSPDFKit-4xrf431ss37nqh76k5db3ja96w .PSPDFKit-53fgdvrhz6gw1hw6bdctgq1t9y,.PSPDFKit-width-sm .PSPDFKit-4xrf431ss37nqh76k5db3ja96w .PSPDFKit-53fgdvrhz6gw1hw6bdctgq1t9y,.PSPDFKit-width-xs .PSPDFKit-4xrf431ss37nqh76k5db3ja96w .PSPDFKit-53fgdvrhz6gw1hw6bdctgq1t9y{flex-direction:row;justify-content:flex-start}.PSPDFKit-4xrf431ss37nqh76k5db3ja96w.PSPDFKit-5cjsnmyjcke6b1v12yfgbz41gg{flex-direction:row}.PSPDFKit-6kfdt35ea6cx8yeepx58n36vmj .PSPDFKit-4xrf431ss37nqh76k5db3ja96w{border-bottom:none;border-top:1px solid #bec9d9;border-top:1px solid var(--PSPDFKit-AnnotationToolbar-border);box-shadow:0 -1px 2px rgba(0,0,0,.1)}.PSPDFKit-5f5bztx4e8cyvfqegfp7b8wthw{align-items:center;height:44px}.PSPDFKit-443h9wb93vz3ncxwx1m5fdwczf{align-items:center;display:flex;flex-wrap:wrap;min-height:44px}.PSPDFKit-width-md .PSPDFKit-443h9wb93vz3ncxwx1m5fdwczf,.PSPDFKit-width-sm .PSPDFKit-443h9wb93vz3ncxwx1m5fdwczf,.PSPDFKit-width-xs .PSPDFKit-443h9wb93vz3ncxwx1m5fdwczf{margin-right:6px}.PSPDFKit-7m8dfjh7avxk6eweakkjyh6xyd{height:32px}.PSPDFKit-713qj5u5gbp169rww4vvs3uac button{height:32px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.PSPDFKit-4h4nb13c68hupg148pgyvzqd9f{align-items:center;width:100%}.PSPDFKit-4h4nb13c68hupg148pgyvzqd9f,.PSPDFKit-6xaanvujukmusu5r1tv594b12u{display:flex;flex-direction:column}.PSPDFKit-3vb4yamdnmg7g9xnhd6yk22phr{margin:0 8px}.PSPDFKit-3vb4yamdnmg7g9xnhd6yk22phr:last-child{display:none}.PSPDFKit-width-md .PSPDFKit-3vb4yamdnmg7g9xnhd6yk22phr,.PSPDFKit-width-sm .PSPDFKit-3vb4yamdnmg7g9xnhd6yk22phr,.PSPDFKit-width-xs .PSPDFKit-3vb4yamdnmg7g9xnhd6yk22phr{display:none}.PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y{display:flex;flex:1}.PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y .PSPDFKit-5wuw8bj8khzgeg84fnwh7kh6sn{align-content:center;align-items:center;display:flex;justify-content:center}.PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y .PSPDFKit-5wuw8bj8khzgeg84fnwh7kh6sn .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e:not(.PSPDFKit-sja59fxys18kkmu18xy6hph1s),.PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y .PSPDFKit-5wuw8bj8khzgeg84fnwh7kh6sn .PSPDFKit-c3779mg2s6295w7bzec9269ub:not(.PSPDFKit-sja59fxys18kkmu18xy6hph1s){cursor:default}.PSPDFKit-width-md .PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y .PSPDFKit-5wuw8bj8khzgeg84fnwh7kh6sn .PSPDFKit-443h9wb93vz3ncxwx1m5fdwczf,.PSPDFKit-width-sm .PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y .PSPDFKit-5wuw8bj8khzgeg84fnwh7kh6sn .PSPDFKit-443h9wb93vz3ncxwx1m5fdwczf,.PSPDFKit-width-xs .PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y .PSPDFKit-5wuw8bj8khzgeg84fnwh7kh6sn .PSPDFKit-443h9wb93vz3ncxwx1m5fdwczf{display:none}.PSPDFKit-width-md .PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y .PSPDFKit-5wuw8bj8khzgeg84fnwh7kh6sn .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e,.PSPDFKit-width-md .PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y .PSPDFKit-5wuw8bj8khzgeg84fnwh7kh6sn .PSPDFKit-c3779mg2s6295w7bzec9269ub,.PSPDFKit-width-sm .PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y .PSPDFKit-5wuw8bj8khzgeg84fnwh7kh6sn .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e,.PSPDFKit-width-sm .PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y .PSPDFKit-5wuw8bj8khzgeg84fnwh7kh6sn .PSPDFKit-c3779mg2s6295w7bzec9269ub,.PSPDFKit-width-xs .PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y .PSPDFKit-5wuw8bj8khzgeg84fnwh7kh6sn .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e,.PSPDFKit-width-xs .PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y .PSPDFKit-5wuw8bj8khzgeg84fnwh7kh6sn .PSPDFKit-c3779mg2s6295w7bzec9269ub{cursor:pointer}.PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y .PSPDFKit-3xypkvwg7p8nvzw3r5s1buz9ej{display:none}.PSPDFKit-width-md .PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y .PSPDFKit-3xypkvwg7p8nvzw3r5s1buz9ej,.PSPDFKit-width-sm .PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y .PSPDFKit-3xypkvwg7p8nvzw3r5s1buz9ej,.PSPDFKit-width-xs .PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y .PSPDFKit-3xypkvwg7p8nvzw3r5s1buz9ej{display:block}.PSPDFKit-4cdb93w5e9ug2gjhtp66ummy9y .PSPDFKit-443h9wb93vz3ncxwx1m5fdwczf{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;line-height:0}.PSPDFKit-7gmgduz1enf1gxbhyfgf6e75hf{align-items:center;display:flex;height:100%;min-width:100px}.PSPDFKit-width-md .PSPDFKit-7gmgduz1enf1gxbhyfgf6e75hf,.PSPDFKit-width-sm .PSPDFKit-7gmgduz1enf1gxbhyfgf6e75hf,.PSPDFKit-width-xs .PSPDFKit-7gmgduz1enf1gxbhyfgf6e75hf{display:none}.PSPDFKit-7gmgduz1enf1gxbhyfgf6e75hf button{height:32px}.PSPDFKit-5r3wt2zcuevj4sv3duqd61jwmv,.PSPDFKit-6wmznmmpnx14v21nf84mdrgcjn{align-items:center;display:flex;height:32px;margin-right:0.609em;margin-right:var(--PSPDFKit-spacing-6)}.PSPDFKit-width-md .PSPDFKit-5r3wt2zcuevj4sv3duqd61jwmv,.PSPDFKit-width-sm .PSPDFKit-5r3wt2zcuevj4sv3duqd61jwmv,.PSPDFKit-width-xs .PSPDFKit-5r3wt2zcuevj4sv3duqd61jwmv{display:none}.PSPDFKit-s6seujr5t4rukk7rxf3xkz55e,.PSPDFKit-3g7scgbk9uy7r46ajp7k1jjfbv,.PSPDFKit-4h8xfhv4hcmbz7pprrj5g8dddv,.PSPDFKit-c55swym84na3uj8cbws3nfkvk{align-items:center;display:flex}.PSPDFKit-3g7scgbk9uy7r46ajp7k1jjfbv,.PSPDFKit-4h8xfhv4hcmbz7pprrj5g8dddv,.PSPDFKit-c55swym84na3uj8cbws3nfkvk{height:32px}.PSPDFKit-3g7scgbk9uy7r46ajp7k1jjfbv circle,.PSPDFKit-3g7scgbk9uy7r46ajp7k1jjfbv line,.PSPDFKit-3g7scgbk9uy7r46ajp7k1jjfbv path,.PSPDFKit-3g7scgbk9uy7r46ajp7k1jjfbv polygon,.PSPDFKit-3g7scgbk9uy7r46ajp7k1jjfbv polyline,.PSPDFKit-3g7scgbk9uy7r46ajp7k1jjfbv rect,.PSPDFKit-4h8xfhv4hcmbz7pprrj5g8dddv circle,.PSPDFKit-4h8xfhv4hcmbz7pprrj5g8dddv line,.PSPDFKit-4h8xfhv4hcmbz7pprrj5g8dddv path,.PSPDFKit-4h8xfhv4hcmbz7pprrj5g8dddv polygon,.PSPDFKit-4h8xfhv4hcmbz7pprrj5g8dddv polyline,.PSPDFKit-4h8xfhv4hcmbz7pprrj5g8dddv rect,.PSPDFKit-c55swym84na3uj8cbws3nfkvk circle,.PSPDFKit-c55swym84na3uj8cbws3nfkvk line,.PSPDFKit-c55swym84na3uj8cbws3nfkvk path,.PSPDFKit-c55swym84na3uj8cbws3nfkvk polygon,.PSPDFKit-c55swym84na3uj8cbws3nfkvk polyline,.PSPDFKit-c55swym84na3uj8cbws3nfkvk rect{stroke:#4d525d;stroke:var(--PSPDFKit-AnnotationToolbar-startLineCapSelect-circle-stroke)}.PSPDFKit-3g7scgbk9uy7r46ajp7k1jjfbv button,.PSPDFKit-4h8xfhv4hcmbz7pprrj5g8dddv button,.PSPDFKit-c55swym84na3uj8cbws3nfkvk button{height:32px}.PSPDFKit-3g7scgbk9uy7r46ajp7k1jjfbv,.PSPDFKit-4h8xfhv4hcmbz7pprrj5g8dddv{width:64px}.PSPDFKit-width-md .PSPDFKit-4h8xfhv4hcmbz7pprrj5g8dddv,.PSPDFKit-width-sm .PSPDFKit-4h8xfhv4hcmbz7pprrj5g8dddv,.PSPDFKit-width-xs .PSPDFKit-4h8xfhv4hcmbz7pprrj5g8dddv{left:0;right:auto!important}.PSPDFKit-c55swym84na3uj8cbws3nfkvk{width:96px}.PSPDFKit-s6seujr5t4rukk7rxf3xkz55e{height:32px}.PSPDFKit-s6seujr5t4rukk7rxf3xkz55e:hover,.PSPDFKit-s6seujr5t4rukk7rxf3xkz55e[data-focus-within]{background:transparent}.PSPDFKit-s6seujr5t4rukk7rxf3xkz55e:focus-within{background:transparent}.PSPDFKit-7eqxqzsm46bunvt6wn6a96cph7{align-items:center;background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background);border:1px solid #d8dfeb;border:1px solid var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-border);border-radius:3px;color:#848c9a;color:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-color);cursor:pointer;display:flex;height:32px;justify-content:space-between;margin-right:0.609em;margin-right:var(--PSPDFKit-spacing-6);padding:0.46875em;padding:var(--PSPDFKit-spacing-7);width:55px}.PSPDFKit-7eqxqzsm46bunvt6wn6a96cph7 span{fill:#848c9a;fill:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-color)}.PSPDFKit-7eqxqzsm46bunvt6wn6a96cph7:hover:not(.PSPDFKit-54dwj7qcngkpxsybb6fqkr7y51),.PSPDFKit-7eqxqzsm46bunvt6wn6a96cph7[data-focus-within]{background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background)}.PSPDFKit-7eqxqzsm46bunvt6wn6a96cph7:hover:not(.PSPDFKit-54dwj7qcngkpxsybb6fqkr7y51) span,.PSPDFKit-7eqxqzsm46bunvt6wn6a96cph7[data-focus-within] span{fill:#090c12;fill:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-isHovered-color)}.PSPDFKit-7eqxqzsm46bunvt6wn6a96cph7:focus-within{background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background)}.PSPDFKit-7eqxqzsm46bunvt6wn6a96cph7:focus-within span{fill:#090c12;fill:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-isHovered-color)}@media(max-width:1080px)and (min-width:992px){.PSPDFKit-2mcx41qn64buedadzqmun4x439{width:100px}}.PSPDFKit-nwjc4czbh63dp4kvymek1fa3e,.PSPDFKit-c3779mg2s6295w7bzec9269ub{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)!important;color:#3d424e;color:var(--PSPDFKit-AnnotationToolbar-button-color);flex-shrink:0}.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59.PSPDFKit-c3779mg2s6295w7bzec9269ub,.PSPDFKit-nwjc4czbh63dp4kvymek1fa3e.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59,.PSPDFKit-nwjc4czbh63dp4kvymek1fa3e.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse,.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse.PSPDFKit-c3779mg2s6295w7bzec9269ub{border-left:0!important;border-right:1px solid #bec9d9!important;border-right:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border)!important}.PSPDFKit-width-md .PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59.PSPDFKit-c3779mg2s6295w7bzec9269ub,.PSPDFKit-width-md .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59,.PSPDFKit-width-md .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse,.PSPDFKit-width-md .PSPDFKit-64vjbtpmt1hrduq893ygvk8vse.PSPDFKit-c3779mg2s6295w7bzec9269ub,.PSPDFKit-width-sm .PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59.PSPDFKit-c3779mg2s6295w7bzec9269ub,.PSPDFKit-width-sm .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59,.PSPDFKit-width-sm .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse,.PSPDFKit-width-sm .PSPDFKit-64vjbtpmt1hrduq893ygvk8vse.PSPDFKit-c3779mg2s6295w7bzec9269ub,.PSPDFKit-width-xs .PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59.PSPDFKit-c3779mg2s6295w7bzec9269ub,.PSPDFKit-width-xs .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59,.PSPDFKit-width-xs .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse,.PSPDFKit-width-xs .PSPDFKit-64vjbtpmt1hrduq893ygvk8vse.PSPDFKit-c3779mg2s6295w7bzec9269ub{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border)!important;border-right:0!important}.PSPDFKit-nwjc4czbh63dp4kvymek1fa3e.PSPDFKit-v8tqx1qvfp1vbwuttpp622dr3,.PSPDFKit-v8tqx1qvfp1vbwuttpp622dr3.PSPDFKit-c3779mg2s6295w7bzec9269ub{border-left:0!important;border-right:0!important}.PSPDFKit-width-md .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e.PSPDFKit-v8tqx1qvfp1vbwuttpp622dr3,.PSPDFKit-width-md .PSPDFKit-v8tqx1qvfp1vbwuttpp622dr3.PSPDFKit-c3779mg2s6295w7bzec9269ub,.PSPDFKit-width-sm .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e.PSPDFKit-v8tqx1qvfp1vbwuttpp622dr3,.PSPDFKit-width-sm .PSPDFKit-v8tqx1qvfp1vbwuttpp622dr3.PSPDFKit-c3779mg2s6295w7bzec9269ub,.PSPDFKit-width-xs .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e.PSPDFKit-v8tqx1qvfp1vbwuttpp622dr3,.PSPDFKit-width-xs .PSPDFKit-v8tqx1qvfp1vbwuttpp622dr3.PSPDFKit-c3779mg2s6295w7bzec9269ub{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)!important}.PSPDFKit-width-lg .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e:not(.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59) :not(.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse) :not(.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs) :not(.PSPDFKit-sja59fxys18kkmu18xy6hph1s) :not(.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty) :not(.PSPDFKit-2annhwtak67ncv4t85ctg2y3mz).PSPDFKit-2vn1euub4mwbphwqwgfs1891h9,.PSPDFKit-width-lg .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e:not(.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59) :not(.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse) :not(.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs) :not(.PSPDFKit-sja59fxys18kkmu18xy6hph1s) :not(.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty) :not(.PSPDFKit-2annhwtak67ncv4t85ctg2y3mz):active,.PSPDFKit-width-lg .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e:not(.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59) :not(.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse) :not(.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs) :not(.PSPDFKit-sja59fxys18kkmu18xy6hph1s) :not(.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty) :not(.PSPDFKit-2annhwtak67ncv4t85ctg2y3mz):focus,.PSPDFKit-width-lg .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e:not(.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59) :not(.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse) :not(.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs) :not(.PSPDFKit-sja59fxys18kkmu18xy6hph1s) :not(.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty) :not(.PSPDFKit-2annhwtak67ncv4t85ctg2y3mz):hover,.PSPDFKit-width-lg .PSPDFKit-c3779mg2s6295w7bzec9269ub:not(.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59) :not(.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse) :not(.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs) :not(.PSPDFKit-sja59fxys18kkmu18xy6hph1s) :not(.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty) :not(.PSPDFKit-2annhwtak67ncv4t85ctg2y3mz).PSPDFKit-2vn1euub4mwbphwqwgfs1891h9,.PSPDFKit-width-lg .PSPDFKit-c3779mg2s6295w7bzec9269ub:not(.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59) :not(.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse) :not(.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs) :not(.PSPDFKit-sja59fxys18kkmu18xy6hph1s) :not(.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty) :not(.PSPDFKit-2annhwtak67ncv4t85ctg2y3mz):active,.PSPDFKit-width-lg .PSPDFKit-c3779mg2s6295w7bzec9269ub:not(.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59) :not(.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse) :not(.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs) :not(.PSPDFKit-sja59fxys18kkmu18xy6hph1s) :not(.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty) :not(.PSPDFKit-2annhwtak67ncv4t85ctg2y3mz):focus,.PSPDFKit-width-lg .PSPDFKit-c3779mg2s6295w7bzec9269ub:not(.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59) :not(.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse) :not(.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs) :not(.PSPDFKit-sja59fxys18kkmu18xy6hph1s) :not(.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty) :not(.PSPDFKit-2annhwtak67ncv4t85ctg2y3mz):hover,.PSPDFKit-width-xl .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e:not(.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59) :not(.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse) :not(.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs) :not(.PSPDFKit-sja59fxys18kkmu18xy6hph1s) :not(.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty) :not(.PSPDFKit-2annhwtak67ncv4t85ctg2y3mz).PSPDFKit-2vn1euub4mwbphwqwgfs1891h9,.PSPDFKit-width-xl .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e:not(.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59) :not(.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse) :not(.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs) :not(.PSPDFKit-sja59fxys18kkmu18xy6hph1s) :not(.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty) :not(.PSPDFKit-2annhwtak67ncv4t85ctg2y3mz):active,.PSPDFKit-width-xl .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e:not(.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59) :not(.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse) :not(.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs) :not(.PSPDFKit-sja59fxys18kkmu18xy6hph1s) :not(.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty) :not(.PSPDFKit-2annhwtak67ncv4t85ctg2y3mz):focus,.PSPDFKit-width-xl .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e:not(.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59) :not(.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse) :not(.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs) :not(.PSPDFKit-sja59fxys18kkmu18xy6hph1s) :not(.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty) :not(.PSPDFKit-2annhwtak67ncv4t85ctg2y3mz):hover,.PSPDFKit-width-xl .PSPDFKit-c3779mg2s6295w7bzec9269ub:not(.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59) :not(.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse) :not(.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs) :not(.PSPDFKit-sja59fxys18kkmu18xy6hph1s) :not(.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty) :not(.PSPDFKit-2annhwtak67ncv4t85ctg2y3mz).PSPDFKit-2vn1euub4mwbphwqwgfs1891h9,.PSPDFKit-width-xl .PSPDFKit-c3779mg2s6295w7bzec9269ub:not(.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59) :not(.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse) :not(.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs) :not(.PSPDFKit-sja59fxys18kkmu18xy6hph1s) :not(.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty) :not(.PSPDFKit-2annhwtak67ncv4t85ctg2y3mz):active,.PSPDFKit-width-xl .PSPDFKit-c3779mg2s6295w7bzec9269ub:not(.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59) :not(.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse) :not(.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs) :not(.PSPDFKit-sja59fxys18kkmu18xy6hph1s) :not(.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty) :not(.PSPDFKit-2annhwtak67ncv4t85ctg2y3mz):focus,.PSPDFKit-width-xl .PSPDFKit-c3779mg2s6295w7bzec9269ub:not(.PSPDFKit-8ax4j3a47u9hsgjmxfqh4s4b59) :not(.PSPDFKit-64vjbtpmt1hrduq893ygvk8vse) :not(.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs) :not(.PSPDFKit-sja59fxys18kkmu18xy6hph1s) :not(.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty) :not(.PSPDFKit-2annhwtak67ncv4t85ctg2y3mz):hover{background:transparent!important}.PSPDFKit-nwjc4czbh63dp4kvymek1fa3e.PSPDFKit-2vn1euub4mwbphwqwgfs1891h9,.PSPDFKit-nwjc4czbh63dp4kvymek1fa3e:active,.PSPDFKit-nwjc4czbh63dp4kvymek1fa3e:focus,.PSPDFKit-nwjc4czbh63dp4kvymek1fa3e:hover,.PSPDFKit-2vn1euub4mwbphwqwgfs1891h9.PSPDFKit-c3779mg2s6295w7bzec9269ub,.PSPDFKit-c3779mg2s6295w7bzec9269ub:active,.PSPDFKit-c3779mg2s6295w7bzec9269ub:focus,.PSPDFKit-c3779mg2s6295w7bzec9269ub:hover{background:#d8dfeb;background:var(--PSPDFKit-AnnotationToolbar-button-isHovered-background)}.PSPDFKit-p1au3zb7x12z2rhdhxt23urrf,.PSPDFKit-3jfra6hbvv4uav6ycenbqaya53{cursor:not-allowed;opacity:.2;pointer-events:none}.PSPDFKit-4qyrxjw4v89xuqdkqa4k8ztzzu{border:0!important;color:#3d424e!important;color:var(--PSPDFKit-AnnotationToolbar-icon-color)!important;display:flex!important;pointer-events:auto!important}.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs{cursor:pointer!important;height:44px;min-width:44px;padding:0 11px}.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs.PSPDFKit-2vn1euub4mwbphwqwgfs1891h9,.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs:active,.PSPDFKit-4cag238pz8y3y7dh5jbngjmrzs:hover{background:#d8dfeb;background:var(--PSPDFKit-AnnotationToolbar-button-isHovered-background)}.PSPDFKit-21r1nktvgb352rd4c4yy57pz9g{outline:2px solid #4636e3;outline:2px solid var(--PSPDFKit-AnnotationToolbar-button-outline)}.PSPDFKit-5wuw8bj8khzgeg84fnwh7kh6sn:first-child .PSPDFKit-nwjc4czbh63dp4kvymek1fa3e:first-child,.PSPDFKit-5wuw8bj8khzgeg84fnwh7kh6sn:first-child .PSPDFKit-c3779mg2s6295w7bzec9269ub:first-child{border-left:none!important}.PSPDFKit-7gzw1kmadbfq1tnmw7d1w7zxd1{line-height:normal;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.PSPDFKit-3ytv364gpnrm7x19bnbmeyg8f8{background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background);box-shadow:none;padding:0}.PSPDFKit-46sarmfrc8jg6s66bqgfefbjjh{align-items:center;background:#ffc78f;background:var(--PSPDFKit-AnnotationToolbar-warning-icon-background);border-radius:3px;box-shadow:0 .75px 1.5px 0 rgba(0,0,0,.15);cursor:pointer;display:flex;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);gap:10px;margin:0 0.46875em;margin:0 var(--PSPDFKit-spacing-7);padding:4px 0.8125em;padding:4px var(--PSPDFKit-spacing-5)}.PSPDFKit-4zhmsmuwkhtpwtruurtrcn2q8j{height:16px;width:16px}.PSPDFKit-54kg6hjakpubj7vt368nk674tz{width:max-content}.PSPDFKit-2nazf4z9xd7xjtyhnbhe7rqgep{box-sizing:initial;display:flex;flex-flow:row wrap;padding:10px}.PSPDFKit-2kf3vca84fgs4vq9s7zs1gpcmp{align-items:center;border:none;border-radius:5px;height:30px;justify-content:center;min-width:30px;padding:0}.PSPDFKit-2kf3vca84fgs4vq9s7zs1gpcmp,.PSPDFKit-8gqc3tnvh9jka9muq4a9t5ahej{display:flex}.PSPDFKit-5c7qnuw3hacprzg2xwyca31kpu{height:20px;width:20px}.PSPDFKit-46k4525rumt3dyxruh7yn6ftbe,.PSPDFKit-2ujy7afe1awfhuh9ymbm6bme7t{stroke:#4d525d;stroke:var(--PSPDFKit-AnnotationToolbar-startLineCapSelect-circle-stroke);stroke-width:1px;align-items:center;display:flex;padding:10px}.PSPDFKit-4prbc6dhxp9ma6y7x5bw6vwpyu{display:none}.PSPDFKit-width-md .PSPDFKit-4prbc6dhxp9ma6y7x5bw6vwpyu,.PSPDFKit-width-sm .PSPDFKit-4prbc6dhxp9ma6y7x5bw6vwpyu,.PSPDFKit-width-xs .PSPDFKit-4prbc6dhxp9ma6y7x5bw6vwpyu{align-items:center;display:block;margin-right:0.609em;margin-right:var(--PSPDFKit-spacing-6)}.PSPDFKit-2kq3mk8tfsg87ukm5zvcxchay3,.PSPDFKit-77brcq5bxx44kv6p84cffgnrfh{align-items:center;display:flex}.PSPDFKit-width-md .PSPDFKit-5frf4ykayzzn33hp3c5h7em7an,.PSPDFKit-width-sm .PSPDFKit-5frf4ykayzzn33hp3c5h7em7an,.PSPDFKit-width-xs .PSPDFKit-5frf4ykayzzn33hp3c5h7em7an{align-items:center}.PSPDFKit-2skb7mhe9t63pg2ukxcsw49xsr,.PSPDFKit-3rsn1zkbd3dgwrjegb8g9hvhhg{margin-right:10px}.PSPDFKit-width-md .PSPDFKit-3rsn1zkbd3dgwrjegb8g9hvhhg,.PSPDFKit-width-sm .PSPDFKit-3rsn1zkbd3dgwrjegb8g9hvhhg,.PSPDFKit-width-xs .PSPDFKit-3rsn1zkbd3dgwrjegb8g9hvhhg{margin-right:0}.PSPDFKit-2jq33zcqjvm19mjme567rvfrrm{align-items:center;display:inline-flex}.PSPDFKit-3xk6qkbjafwv7228ck9bx347w6{align-self:center;color:#3d424e;color:var(--PSPDFKit-AnnotationToolbar-label-color);padding:0 11px}.PSPDFKit-width-xs .PSPDFKit-7jwg5rgcerucffvtbsmxvfb7zk{max-width:110px}.PSPDFKit-4e75mg661j3ax96qwbdmpzpsb4{align-items:center;display:flex;flex-wrap:wrap;line-height:0}.PSPDFKit-2u9q2pe1ftds2f7qj2g4w622vw{align-items:center;border-right:1px solid #bec9d9;border-right:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border);display:flex;min-height:44px;padding-left:5px;padding-right:5px}@media(max-width:992px){.PSPDFKit-2u9q2pe1ftds2f7qj2g4w622vw{border-left:1px solid #bec9d9;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border);border-right:none;max-width:70px}}.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty{background-color:#fff;background-color:var(--PSPDFKit-AnnotationToolbar-redactions-button-background);border-radius:3px;box-shadow:0 .75px 1.5px rgba(0,0,0,.15);color:#000;color:var(--PSPDFKit-AnnotationToolbar-redactions-button-color);display:flex;height:28px;white-space:nowrap}.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty.PSPDFKit-2vn1euub4mwbphwqwgfs1891h9,.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty:active,.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty:focus,.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty:hover{background-color:#4636e3;background-color:var(--PSPDFKit-AnnotationToolbar-redactions-button-isHovered-background);color:#fff;color:var(--PSPDFKit-AnnotationToolbar-redactions-button-isHovered-color);filter:drop-shadow(0 1px 1px rgba(0,0,0,.15))}@media(max-width:992px){.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty{border-left:none!important;justify-content:flex-start;max-width:60px}.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty span{max-width:60px;overflow-x:hidden}.PSPDFKit-nwjc4czbh63dp4kvymek1fa3e.PSPDFKit-v8tqx1qvfp1vbwuttpp622dr3.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty,.PSPDFKit-v8tqx1qvfp1vbwuttpp622dr3.PSPDFKit-2hdx47smz78g3s16p3r4j4dgty.PSPDFKit-c3779mg2s6295w7bzec9269ub{border-left:none!important}}.PSPDFKit-6jesjcs8hzf3yy3bqdg9kv3hk7{display:inline-flex}.PSPDFKit-7bm2dwvsr17e373y82u42rsemg{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)!important;padding:0 0.8125em;padding:0 var(--PSPDFKit-spacing-5)}.PSPDFKit-2x6urux4z76dkhv9azjrwtw1r6{margin-left:4px}.PSPDFKit-41f3k1r3a4wcjyvwb632qbpsar{flex-direction:row-reverse}.PSPDFKit-width-md .PSPDFKit-8an6xzj8dczndqf5kkqj5bmdbb,.PSPDFKit-width-sm .PSPDFKit-8an6xzj8dczndqf5kkqj5bmdbb,.PSPDFKit-width-xs .PSPDFKit-8an6xzj8dczndqf5kkqj5bmdbb{flex-direction:row;overflow-x:auto}.PSPDFKit-width-md .PSPDFKit-8an6xzj8dczndqf5kkqj5bmdbb .PSPDFKit-53fgdvrhz6gw1hw6bdctgq1t9y,.PSPDFKit-width-sm .PSPDFKit-8an6xzj8dczndqf5kkqj5bmdbb .PSPDFKit-53fgdvrhz6gw1hw6bdctgq1t9y,.PSPDFKit-width-xs .PSPDFKit-8an6xzj8dczndqf5kkqj5bmdbb .PSPDFKit-53fgdvrhz6gw1hw6bdctgq1t9y{flex-basis:0;flex-direction:row-reverse}.PSPDFKit-c3779mg2s6295w7bzec9269ub{cursor:pointer;display:inline-flex;height:100%;margin:0;padding:10px}.PSPDFKit-c3779mg2s6295w7bzec9269ub.PSPDFKit-2vn1euub4mwbphwqwgfs1891h9,.PSPDFKit-c3779mg2s6295w7bzec9269ub:active,.PSPDFKit-c3779mg2s6295w7bzec9269ub:focus,.PSPDFKit-c3779mg2s6295w7bzec9269ub:hover{background-color:#f0f3f9;background-color:var(--PSPDFKit-AnnotationToolbar-background);border-bottom:1px solid #bec9d9;border-bottom:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)}.PSPDFKit-5zh4b5sq7ky7hj92aqd24n3cec span{align-items:center;display:flex;justify-content:center}.PSPDFKit-28p9qe5v9wa12h9abqanj7759r{width:3rem}.PSPDFKit-2dbzger7c772nf61kqx2yj1snn{border-bottom-left-radius:3px;border-bottom-right-radius:0;border-top-left-radius:3px;border-top-right-radius:0;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);height:2rem}.PSPDFKit-2dbzger7c772nf61kqx2yj1snn:not(.PSPDFKit-37jqdeb6j87paw3ang9yrcet45):focus{background-color:#fff;background-color:var(--PSPDFKit-TextInputComponent-input-background)}.PSPDFKit-6pxk5ky2kj8jh4j1mw616vg41d{align-items:center;display:flex;flex-direction:row}.PSPDFKit-6pxk5ky2kj8jh4j1mw616vg41d:focus-within,.PSPDFKit-6pxk5ky2kj8jh4j1mw616vg41d:hover{background-color:#f0f3f9;background-color:var(--PSPDFKit-AnnotationToolbar-background)}.PSPDFKit-pynbrvdg7hats6u5gzc58czkp{border-left:0;margin-left:0;padding-left:2px;padding-right:2px}.PSPDFKit-37jqdeb6j87paw3ang9yrcet45:disabled,.PSPDFKit-37jqdeb6j87paw3ang9yrcet45:disabled:active,.PSPDFKit-37jqdeb6j87paw3ang9yrcet45:disabled:hover{cursor:not-allowed;opacity:.3}.PSPDFKit-4qyrxjw4v89xuqdkqa4k8ztzzu{flex-shrink:0;height:.625rem;margin-right:.5rem;width:.625rem}.PSPDFKit-8uffc57cupxw72ujvccyd5u75q{border-bottom-left-radius:0;border-top-left-radius:0;margin:0}.PSPDFKit-4v7qu3gbmmmxc2v2hdycthse1t{width:4.5rem} +.PSPDFKit-369qag2kn88x7fd7hzmy37u7jj{background:#f0f3f9;background:var(--PSPDFKit-AnnotationToolbar-background)}.PSPDFKit-s88hmm2u6mr4p6a34q6p5x97j{width:100%}.PSPDFKit-2xkt2dmssjrt1zt3392unparpj{align-items:center;border-bottom:1px solid #bec9d9;border-bottom:1px solid var(--PSPDFKit-AnnotationToolbar-border);box-shadow:0 1px 2px rgba(0,0,0,.1);display:flex;flex:2;flex-direction:row;height:44px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-2xkt2dmssjrt1zt3392unparpj .PSPDFKit-22vuhdxbyg68mzx1mpbw51te8s,.PSPDFKit-2xkt2dmssjrt1zt3392unparpj .PSPDFKit-8yz513hepw5dtea8yuyyc36z3g{align-items:center;display:flex;flex-grow:1}.PSPDFKit-2xkt2dmssjrt1zt3392unparpj .PSPDFKit-8yz513hepw5dtea8yuyyc36z3g{flex-direction:row-reverse;justify-content:flex-start}.PSPDFKit-width-md .PSPDFKit-2xkt2dmssjrt1zt3392unparpj,.PSPDFKit-width-sm .PSPDFKit-2xkt2dmssjrt1zt3392unparpj,.PSPDFKit-width-xs .PSPDFKit-2xkt2dmssjrt1zt3392unparpj{flex:1;flex-direction:row-reverse}.PSPDFKit-width-md .PSPDFKit-2xkt2dmssjrt1zt3392unparpj .PSPDFKit-22vuhdxbyg68mzx1mpbw51te8s,.PSPDFKit-width-sm .PSPDFKit-2xkt2dmssjrt1zt3392unparpj .PSPDFKit-22vuhdxbyg68mzx1mpbw51te8s,.PSPDFKit-width-xs .PSPDFKit-2xkt2dmssjrt1zt3392unparpj .PSPDFKit-22vuhdxbyg68mzx1mpbw51te8s{flex:initial;justify-content:flex-end}.PSPDFKit-width-md .PSPDFKit-2xkt2dmssjrt1zt3392unparpj .PSPDFKit-8yz513hepw5dtea8yuyyc36z3g,.PSPDFKit-width-sm .PSPDFKit-2xkt2dmssjrt1zt3392unparpj .PSPDFKit-8yz513hepw5dtea8yuyyc36z3g,.PSPDFKit-width-xs .PSPDFKit-2xkt2dmssjrt1zt3392unparpj .PSPDFKit-8yz513hepw5dtea8yuyyc36z3g{flex-direction:row;justify-content:flex-start}.PSPDFKit-2xkt2dmssjrt1zt3392unparpj.PSPDFKit-7p5sgv4my75nm8c7s61pavhw9k{flex-direction:row}.PSPDFKit-4s922kjq16ky2tuz2stu8cmevf .PSPDFKit-2xkt2dmssjrt1zt3392unparpj{border-bottom:none;border-top:1px solid #bec9d9;border-top:1px solid var(--PSPDFKit-AnnotationToolbar-border);box-shadow:0 -1px 2px rgba(0,0,0,.1)}.PSPDFKit-3yctv5gp7m63pzzfqmcn2vwzsu{align-items:center;height:44px}.PSPDFKit-5c3edpftcxt25778bnf8dge8wm{align-items:center;display:flex;flex-wrap:wrap;min-height:44px}.PSPDFKit-width-md .PSPDFKit-5c3edpftcxt25778bnf8dge8wm,.PSPDFKit-width-sm .PSPDFKit-5c3edpftcxt25778bnf8dge8wm,.PSPDFKit-width-xs .PSPDFKit-5c3edpftcxt25778bnf8dge8wm{margin-right:6px}.PSPDFKit-2td3u6fzb1juvzark5t2sx4q2k{height:32px}.PSPDFKit-5aqdkx2cvj2jkgvavhn63b9ng2 button{height:32px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.PSPDFKit-56wa92tpx7h9ndndf4p4ntj594{align-items:center;width:100%}.PSPDFKit-56wa92tpx7h9ndndf4p4ntj594,.PSPDFKit-7yq1g1auatabjgr9redkv9mw4z{display:flex;flex-direction:column}.PSPDFKit-4dbdwzw5vf7q7u9tzye7tg1nrb{margin:0 8px}.PSPDFKit-4dbdwzw5vf7q7u9tzye7tg1nrb:last-child{display:none}.PSPDFKit-width-md .PSPDFKit-4dbdwzw5vf7q7u9tzye7tg1nrb,.PSPDFKit-width-sm .PSPDFKit-4dbdwzw5vf7q7u9tzye7tg1nrb,.PSPDFKit-width-xs .PSPDFKit-4dbdwzw5vf7q7u9tzye7tg1nrb{display:none}.PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv{display:flex;flex:1}.PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv .PSPDFKit-6daq73jrkrpvw8as2bjg158s14{align-content:center;align-items:center;display:flex;justify-content:center}.PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv .PSPDFKit-6daq73jrkrpvw8as2bjg158s14 .PSPDFKit-fcgb4uy1g1393vcttkd834zya:not(.PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd),.PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv .PSPDFKit-6daq73jrkrpvw8as2bjg158s14 .PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h:not(.PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd){cursor:default}.PSPDFKit-width-md .PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv .PSPDFKit-6daq73jrkrpvw8as2bjg158s14 .PSPDFKit-5c3edpftcxt25778bnf8dge8wm,.PSPDFKit-width-sm .PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv .PSPDFKit-6daq73jrkrpvw8as2bjg158s14 .PSPDFKit-5c3edpftcxt25778bnf8dge8wm,.PSPDFKit-width-xs .PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv .PSPDFKit-6daq73jrkrpvw8as2bjg158s14 .PSPDFKit-5c3edpftcxt25778bnf8dge8wm{display:none}.PSPDFKit-width-md .PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv .PSPDFKit-6daq73jrkrpvw8as2bjg158s14 .PSPDFKit-fcgb4uy1g1393vcttkd834zya,.PSPDFKit-width-md .PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv .PSPDFKit-6daq73jrkrpvw8as2bjg158s14 .PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h,.PSPDFKit-width-sm .PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv .PSPDFKit-6daq73jrkrpvw8as2bjg158s14 .PSPDFKit-fcgb4uy1g1393vcttkd834zya,.PSPDFKit-width-sm .PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv .PSPDFKit-6daq73jrkrpvw8as2bjg158s14 .PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h,.PSPDFKit-width-xs .PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv .PSPDFKit-6daq73jrkrpvw8as2bjg158s14 .PSPDFKit-fcgb4uy1g1393vcttkd834zya,.PSPDFKit-width-xs .PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv .PSPDFKit-6daq73jrkrpvw8as2bjg158s14 .PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h{cursor:pointer}.PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv .PSPDFKit-57jstkypwesnde2vkmqgh9jdhc{display:none}.PSPDFKit-width-md .PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv .PSPDFKit-57jstkypwesnde2vkmqgh9jdhc,.PSPDFKit-width-sm .PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv .PSPDFKit-57jstkypwesnde2vkmqgh9jdhc,.PSPDFKit-width-xs .PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv .PSPDFKit-57jstkypwesnde2vkmqgh9jdhc{display:block}.PSPDFKit-6k49n5ndgcc66dsatpj5sjmvzv .PSPDFKit-5c3edpftcxt25778bnf8dge8wm{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;line-height:0}.PSPDFKit-8925upm91judwppvv9p55bukww{align-items:center;display:flex;height:100%;min-width:100px}.PSPDFKit-width-md .PSPDFKit-8925upm91judwppvv9p55bukww,.PSPDFKit-width-sm .PSPDFKit-8925upm91judwppvv9p55bukww,.PSPDFKit-width-xs .PSPDFKit-8925upm91judwppvv9p55bukww{display:none}.PSPDFKit-8925upm91judwppvv9p55bukww button{height:32px}.PSPDFKit-6j8484gf6zuru867h7zbjhwpsr,.PSPDFKit-47dkg274amuhtuvgmphaa3qbp8{align-items:center;display:flex;height:32px;margin-right:0.609em;margin-right:var(--PSPDFKit-spacing-6)}.PSPDFKit-width-md .PSPDFKit-6j8484gf6zuru867h7zbjhwpsr,.PSPDFKit-width-sm .PSPDFKit-6j8484gf6zuru867h7zbjhwpsr,.PSPDFKit-width-xs .PSPDFKit-6j8484gf6zuru867h7zbjhwpsr{display:none}.PSPDFKit-6kf14wyby256uusycuansuqden,.PSPDFKit-496rvwdezqxaryf6ba6wew6ysj,.PSPDFKit-628jqdm82emd3wd8ywct68fvp2,.PSPDFKit-6fdkgc1bgv67zv1wegm6hsq355{align-items:center;display:flex}.PSPDFKit-496rvwdezqxaryf6ba6wew6ysj,.PSPDFKit-628jqdm82emd3wd8ywct68fvp2,.PSPDFKit-6fdkgc1bgv67zv1wegm6hsq355{height:32px}.PSPDFKit-496rvwdezqxaryf6ba6wew6ysj circle,.PSPDFKit-496rvwdezqxaryf6ba6wew6ysj line,.PSPDFKit-496rvwdezqxaryf6ba6wew6ysj path,.PSPDFKit-496rvwdezqxaryf6ba6wew6ysj polygon,.PSPDFKit-496rvwdezqxaryf6ba6wew6ysj polyline,.PSPDFKit-496rvwdezqxaryf6ba6wew6ysj rect,.PSPDFKit-628jqdm82emd3wd8ywct68fvp2 circle,.PSPDFKit-628jqdm82emd3wd8ywct68fvp2 line,.PSPDFKit-628jqdm82emd3wd8ywct68fvp2 path,.PSPDFKit-628jqdm82emd3wd8ywct68fvp2 polygon,.PSPDFKit-628jqdm82emd3wd8ywct68fvp2 polyline,.PSPDFKit-628jqdm82emd3wd8ywct68fvp2 rect,.PSPDFKit-6fdkgc1bgv67zv1wegm6hsq355 circle,.PSPDFKit-6fdkgc1bgv67zv1wegm6hsq355 line,.PSPDFKit-6fdkgc1bgv67zv1wegm6hsq355 path,.PSPDFKit-6fdkgc1bgv67zv1wegm6hsq355 polygon,.PSPDFKit-6fdkgc1bgv67zv1wegm6hsq355 polyline,.PSPDFKit-6fdkgc1bgv67zv1wegm6hsq355 rect{stroke:#4d525d;stroke:var(--PSPDFKit-AnnotationToolbar-startLineCapSelect-circle-stroke)}.PSPDFKit-496rvwdezqxaryf6ba6wew6ysj button,.PSPDFKit-628jqdm82emd3wd8ywct68fvp2 button,.PSPDFKit-6fdkgc1bgv67zv1wegm6hsq355 button{height:32px}.PSPDFKit-496rvwdezqxaryf6ba6wew6ysj,.PSPDFKit-628jqdm82emd3wd8ywct68fvp2{width:64px}.PSPDFKit-width-md .PSPDFKit-628jqdm82emd3wd8ywct68fvp2,.PSPDFKit-width-sm .PSPDFKit-628jqdm82emd3wd8ywct68fvp2,.PSPDFKit-width-xs .PSPDFKit-628jqdm82emd3wd8ywct68fvp2{left:0;right:auto!important}.PSPDFKit-6fdkgc1bgv67zv1wegm6hsq355{width:96px}.PSPDFKit-6kf14wyby256uusycuansuqden{height:32px}.PSPDFKit-6kf14wyby256uusycuansuqden:hover,.PSPDFKit-6kf14wyby256uusycuansuqden[data-focus-within]{background:transparent}.PSPDFKit-6kf14wyby256uusycuansuqden:focus-within{background:transparent}.PSPDFKit-58854re4pgbwg56mdaznmjjscz{align-items:center;background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background);border:1px solid #d8dfeb;border:1px solid var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-border);border-radius:3px;color:#848c9a;color:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-color);cursor:pointer;display:flex;height:32px;justify-content:space-between;margin-right:0.609em;margin-right:var(--PSPDFKit-spacing-6);padding:0.46875em;padding:var(--PSPDFKit-spacing-7);width:55px}.PSPDFKit-58854re4pgbwg56mdaznmjjscz span{fill:#848c9a;fill:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-color)}.PSPDFKit-58854re4pgbwg56mdaznmjjscz:hover:not(.PSPDFKit-5z4at4466ca8t6dkug1bqpq81),.PSPDFKit-58854re4pgbwg56mdaznmjjscz[data-focus-within]{background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background)}.PSPDFKit-58854re4pgbwg56mdaznmjjscz:hover:not(.PSPDFKit-5z4at4466ca8t6dkug1bqpq81) span,.PSPDFKit-58854re4pgbwg56mdaznmjjscz[data-focus-within] span{fill:#090c12;fill:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-isHovered-color)}.PSPDFKit-58854re4pgbwg56mdaznmjjscz:focus-within{background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background)}.PSPDFKit-58854re4pgbwg56mdaznmjjscz:focus-within span{fill:#090c12;fill:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-isHovered-color)}@media(max-width:1080px)and (min-width:992px){.PSPDFKit-8uywmag1h1x3ypdz5b98crr775{width:100px}}.PSPDFKit-fcgb4uy1g1393vcttkd834zya,.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)!important;color:#3d424e;color:var(--PSPDFKit-AnnotationToolbar-button-color);flex-shrink:0}.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h,.PSPDFKit-fcgb4uy1g1393vcttkd834zya.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r,.PSPDFKit-fcgb4uy1g1393vcttkd834zya.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q,.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h{border-left:0!important;border-right:1px solid #bec9d9!important;border-right:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border)!important}.PSPDFKit-width-md .PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h,.PSPDFKit-width-md .PSPDFKit-fcgb4uy1g1393vcttkd834zya.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r,.PSPDFKit-width-md .PSPDFKit-fcgb4uy1g1393vcttkd834zya.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q,.PSPDFKit-width-md .PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h,.PSPDFKit-width-sm .PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h,.PSPDFKit-width-sm .PSPDFKit-fcgb4uy1g1393vcttkd834zya.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r,.PSPDFKit-width-sm .PSPDFKit-fcgb4uy1g1393vcttkd834zya.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q,.PSPDFKit-width-sm .PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h,.PSPDFKit-width-xs .PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h,.PSPDFKit-width-xs .PSPDFKit-fcgb4uy1g1393vcttkd834zya.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r,.PSPDFKit-width-xs .PSPDFKit-fcgb4uy1g1393vcttkd834zya.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q,.PSPDFKit-width-xs .PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border)!important;border-right:0!important}.PSPDFKit-fcgb4uy1g1393vcttkd834zya.PSPDFKit-5gsachaj1r6ar3h4ru679tq718,.PSPDFKit-5gsachaj1r6ar3h4ru679tq718.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h{border-left:0!important;border-right:0!important}.PSPDFKit-width-md .PSPDFKit-fcgb4uy1g1393vcttkd834zya.PSPDFKit-5gsachaj1r6ar3h4ru679tq718,.PSPDFKit-width-md .PSPDFKit-5gsachaj1r6ar3h4ru679tq718.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h,.PSPDFKit-width-sm .PSPDFKit-fcgb4uy1g1393vcttkd834zya.PSPDFKit-5gsachaj1r6ar3h4ru679tq718,.PSPDFKit-width-sm .PSPDFKit-5gsachaj1r6ar3h4ru679tq718.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h,.PSPDFKit-width-xs .PSPDFKit-fcgb4uy1g1393vcttkd834zya.PSPDFKit-5gsachaj1r6ar3h4ru679tq718,.PSPDFKit-width-xs .PSPDFKit-5gsachaj1r6ar3h4ru679tq718.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)!important}.PSPDFKit-width-lg .PSPDFKit-fcgb4uy1g1393vcttkd834zya:not(.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r) :not(.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q) :not(.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4) :not(.PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd) :not(.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9) :not(.PSPDFKit-3pymza1pztyu17t83dfx3cmmsm).PSPDFKit-382u1rdjb1tf6tnk2q2g7kgvgp,.PSPDFKit-width-lg .PSPDFKit-fcgb4uy1g1393vcttkd834zya:not(.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r) :not(.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q) :not(.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4) :not(.PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd) :not(.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9) :not(.PSPDFKit-3pymza1pztyu17t83dfx3cmmsm):active,.PSPDFKit-width-lg .PSPDFKit-fcgb4uy1g1393vcttkd834zya:not(.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r) :not(.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q) :not(.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4) :not(.PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd) :not(.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9) :not(.PSPDFKit-3pymza1pztyu17t83dfx3cmmsm):focus,.PSPDFKit-width-lg .PSPDFKit-fcgb4uy1g1393vcttkd834zya:not(.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r) :not(.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q) :not(.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4) :not(.PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd) :not(.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9) :not(.PSPDFKit-3pymza1pztyu17t83dfx3cmmsm):hover,.PSPDFKit-width-lg .PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h:not(.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r) :not(.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q) :not(.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4) :not(.PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd) :not(.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9) :not(.PSPDFKit-3pymza1pztyu17t83dfx3cmmsm).PSPDFKit-382u1rdjb1tf6tnk2q2g7kgvgp,.PSPDFKit-width-lg .PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h:not(.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r) :not(.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q) :not(.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4) :not(.PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd) :not(.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9) :not(.PSPDFKit-3pymza1pztyu17t83dfx3cmmsm):active,.PSPDFKit-width-lg .PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h:not(.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r) :not(.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q) :not(.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4) :not(.PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd) :not(.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9) :not(.PSPDFKit-3pymza1pztyu17t83dfx3cmmsm):focus,.PSPDFKit-width-lg .PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h:not(.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r) :not(.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q) :not(.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4) :not(.PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd) :not(.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9) :not(.PSPDFKit-3pymza1pztyu17t83dfx3cmmsm):hover,.PSPDFKit-width-xl .PSPDFKit-fcgb4uy1g1393vcttkd834zya:not(.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r) :not(.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q) :not(.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4) :not(.PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd) :not(.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9) :not(.PSPDFKit-3pymza1pztyu17t83dfx3cmmsm).PSPDFKit-382u1rdjb1tf6tnk2q2g7kgvgp,.PSPDFKit-width-xl .PSPDFKit-fcgb4uy1g1393vcttkd834zya:not(.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r) :not(.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q) :not(.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4) :not(.PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd) :not(.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9) :not(.PSPDFKit-3pymza1pztyu17t83dfx3cmmsm):active,.PSPDFKit-width-xl .PSPDFKit-fcgb4uy1g1393vcttkd834zya:not(.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r) :not(.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q) :not(.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4) :not(.PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd) :not(.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9) :not(.PSPDFKit-3pymza1pztyu17t83dfx3cmmsm):focus,.PSPDFKit-width-xl .PSPDFKit-fcgb4uy1g1393vcttkd834zya:not(.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r) :not(.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q) :not(.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4) :not(.PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd) :not(.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9) :not(.PSPDFKit-3pymza1pztyu17t83dfx3cmmsm):hover,.PSPDFKit-width-xl .PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h:not(.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r) :not(.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q) :not(.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4) :not(.PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd) :not(.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9) :not(.PSPDFKit-3pymza1pztyu17t83dfx3cmmsm).PSPDFKit-382u1rdjb1tf6tnk2q2g7kgvgp,.PSPDFKit-width-xl .PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h:not(.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r) :not(.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q) :not(.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4) :not(.PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd) :not(.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9) :not(.PSPDFKit-3pymza1pztyu17t83dfx3cmmsm):active,.PSPDFKit-width-xl .PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h:not(.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r) :not(.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q) :not(.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4) :not(.PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd) :not(.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9) :not(.PSPDFKit-3pymza1pztyu17t83dfx3cmmsm):focus,.PSPDFKit-width-xl .PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h:not(.PSPDFKit-8tn5aruncqkpg83c6e9e6yv53r) :not(.PSPDFKit-59bjkj2c9dfb828xaun8u4uq5q) :not(.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4) :not(.PSPDFKit-6yuyamdwf1rrwnzc2w8fqr4pjd) :not(.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9) :not(.PSPDFKit-3pymza1pztyu17t83dfx3cmmsm):hover{background:transparent!important}.PSPDFKit-fcgb4uy1g1393vcttkd834zya.PSPDFKit-382u1rdjb1tf6tnk2q2g7kgvgp,.PSPDFKit-fcgb4uy1g1393vcttkd834zya:active,.PSPDFKit-fcgb4uy1g1393vcttkd834zya:focus,.PSPDFKit-fcgb4uy1g1393vcttkd834zya:hover,.PSPDFKit-382u1rdjb1tf6tnk2q2g7kgvgp.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h,.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h:active,.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h:focus,.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h:hover{background:#d8dfeb;background:var(--PSPDFKit-AnnotationToolbar-button-isHovered-background)}.PSPDFKit-48d85wg1rgb1utxa2a4fvw2vth,.PSPDFKit-cmgrqrz9uxy4sb9vg43t341c1{cursor:not-allowed;opacity:.2;pointer-events:none}.PSPDFKit-8xb3dqw6xuht2n573uhuknfp2k{border:0!important;color:#3d424e!important;color:var(--PSPDFKit-AnnotationToolbar-icon-color)!important;display:flex!important;pointer-events:auto!important}.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4{cursor:pointer!important;height:44px;min-width:44px;padding:0 11px}.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4.PSPDFKit-382u1rdjb1tf6tnk2q2g7kgvgp,.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4:active,.PSPDFKit-4bkwv3nn67k2hqt55w19s4dvs4:hover{background:#d8dfeb;background:var(--PSPDFKit-AnnotationToolbar-button-isHovered-background)}.PSPDFKit-52c5dtm21r4933mu2fkpjpe6uk{outline:2px solid #4636e3;outline:2px solid var(--PSPDFKit-AnnotationToolbar-button-outline)}.PSPDFKit-6daq73jrkrpvw8as2bjg158s14:first-child .PSPDFKit-fcgb4uy1g1393vcttkd834zya:first-child,.PSPDFKit-6daq73jrkrpvw8as2bjg158s14:first-child .PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h:first-child{border-left:none!important}.PSPDFKit-5kgz7sh1trs8k2a4xw51qvusej{line-height:normal;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.PSPDFKit-psd9e4tcte8ac4k6jmkt1wfeu{background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background);box-shadow:none;padding:0}.PSPDFKit-8zkbczvhbtdyv5utgdt42896wt{align-items:center;background:#ffc78f;background:var(--PSPDFKit-AnnotationToolbar-warning-icon-background);border-radius:3px;box-shadow:0 .75px 1.5px 0 rgba(0,0,0,.15);cursor:pointer;display:flex;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);gap:10px;margin:0 0.46875em;margin:0 var(--PSPDFKit-spacing-7);padding:4px 0.8125em;padding:4px var(--PSPDFKit-spacing-5)}.PSPDFKit-2bmrfq7hm8z4thd49fdtpzxewe{height:16px;width:16px}.PSPDFKit-6q2rpnx5br9xmymy4hxdvc9atg{width:max-content}.PSPDFKit-mjt1a3qgrvvxan7b2eet56kkt{box-sizing:initial;display:flex;flex-flow:row wrap;padding:10px}.PSPDFKit-3radjttaddx7fe6dnnreugbam2{align-items:center;border:none;border-radius:5px;height:30px;justify-content:center;min-width:30px;padding:0}.PSPDFKit-3radjttaddx7fe6dnnreugbam2,.PSPDFKit-7uud28jq3crfqs4f4edufdekkf{display:flex}.PSPDFKit-5jpt4x4a9kj7rf7d24shsfp48k{height:20px;width:20px}.PSPDFKit-3fweswjpkq7dt55fw6t438rgun,.PSPDFKit-3hmu51e1ur6hrmfyzz2cru1c48{stroke:#4d525d;stroke:var(--PSPDFKit-AnnotationToolbar-startLineCapSelect-circle-stroke);stroke-width:1px;align-items:center;display:flex;padding:10px}.PSPDFKit-5fwcr59aaugp5fp73hthrqwxw9{display:none}.PSPDFKit-width-md .PSPDFKit-5fwcr59aaugp5fp73hthrqwxw9,.PSPDFKit-width-sm .PSPDFKit-5fwcr59aaugp5fp73hthrqwxw9,.PSPDFKit-width-xs .PSPDFKit-5fwcr59aaugp5fp73hthrqwxw9{align-items:center;display:block;margin-right:0.609em;margin-right:var(--PSPDFKit-spacing-6)}.PSPDFKit-5p5hpd3y1t7kjkjpn6cyqaqptj,.PSPDFKit-3v6m9ae9v1gsx87x46mg6kjmzf{align-items:center;display:flex}.PSPDFKit-width-md .PSPDFKit-67wu3hjpwubg5cqg8c94vydj5a,.PSPDFKit-width-sm .PSPDFKit-67wu3hjpwubg5cqg8c94vydj5a,.PSPDFKit-width-xs .PSPDFKit-67wu3hjpwubg5cqg8c94vydj5a{align-items:center}.PSPDFKit-41gfyk1yj6dkqvg8px6c7j3sec,.PSPDFKit-43q9sy7pzu933w9kdbph2ahftx{margin-right:10px}.PSPDFKit-width-md .PSPDFKit-43q9sy7pzu933w9kdbph2ahftx,.PSPDFKit-width-sm .PSPDFKit-43q9sy7pzu933w9kdbph2ahftx,.PSPDFKit-width-xs .PSPDFKit-43q9sy7pzu933w9kdbph2ahftx{margin-right:0}.PSPDFKit-77hntfhrv9fmz6c5684u5bkz7s{align-items:center;display:inline-flex}.PSPDFKit-7kmmurpd341ujzyvezu9ecj88h{align-self:center;color:#3d424e;color:var(--PSPDFKit-AnnotationToolbar-label-color);padding:0 11px}.PSPDFKit-width-xs .PSPDFKit-3fu4z9m4y47mmezmqbsmsg6u6f{max-width:110px}.PSPDFKit-8pbq1nn2qbdp1czxjuu7bjw2ks{align-items:center;display:flex;flex-wrap:wrap;line-height:0}.PSPDFKit-6w6h956ezp7gtq4cmy2r5mkyhu{align-items:center;border-right:1px solid #bec9d9;border-right:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border);display:flex;min-height:44px;padding-left:5px;padding-right:5px}@media(max-width:992px){.PSPDFKit-6w6h956ezp7gtq4cmy2r5mkyhu{border-left:1px solid #bec9d9;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border);border-right:none;max-width:70px}}.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9{background-color:#fff;background-color:var(--PSPDFKit-AnnotationToolbar-redactions-button-background);border-radius:3px;box-shadow:0 .75px 1.5px rgba(0,0,0,.15);color:#000;color:var(--PSPDFKit-AnnotationToolbar-redactions-button-color);display:flex;height:28px;white-space:nowrap}.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9.PSPDFKit-382u1rdjb1tf6tnk2q2g7kgvgp,.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9:active,.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9:focus,.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9:hover{background-color:#4636e3;background-color:var(--PSPDFKit-AnnotationToolbar-redactions-button-isHovered-background);color:#fff;color:var(--PSPDFKit-AnnotationToolbar-redactions-button-isHovered-color);filter:drop-shadow(0 1px 1px rgba(0,0,0,.15))}@media(max-width:992px){.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9{border-left:none!important;justify-content:flex-start;max-width:60px}.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9 span{max-width:60px;overflow-x:hidden}.PSPDFKit-fcgb4uy1g1393vcttkd834zya.PSPDFKit-5gsachaj1r6ar3h4ru679tq718.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9,.PSPDFKit-5gsachaj1r6ar3h4ru679tq718.PSPDFKit-4bdfdwv6dxjwygm9tw1zmjrta9.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h{border-left:none!important}}.PSPDFKit-6ep9xddvqffd53nu5e72pbdbgj{display:inline-flex}.PSPDFKit-717y4rg4qa1pc652h8cg793m4d{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)!important;padding:0 0.8125em;padding:0 var(--PSPDFKit-spacing-5)}.PSPDFKit-4xdm97phakaezcxf6wpdxn2tjm{margin-left:4px}.PSPDFKit-62hyggwkdx954k8f821btn7zeh{flex-direction:row-reverse}.PSPDFKit-width-md .PSPDFKit-2wv2dfhgdk3dpbha4mv9u16vs,.PSPDFKit-width-sm .PSPDFKit-2wv2dfhgdk3dpbha4mv9u16vs,.PSPDFKit-width-xs .PSPDFKit-2wv2dfhgdk3dpbha4mv9u16vs{flex-direction:row;overflow-x:auto}.PSPDFKit-width-md .PSPDFKit-2wv2dfhgdk3dpbha4mv9u16vs .PSPDFKit-8yz513hepw5dtea8yuyyc36z3g,.PSPDFKit-width-sm .PSPDFKit-2wv2dfhgdk3dpbha4mv9u16vs .PSPDFKit-8yz513hepw5dtea8yuyyc36z3g,.PSPDFKit-width-xs .PSPDFKit-2wv2dfhgdk3dpbha4mv9u16vs .PSPDFKit-8yz513hepw5dtea8yuyyc36z3g{flex-basis:0;flex-direction:row-reverse}.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h{cursor:pointer;display:inline-flex;height:100%;margin:0;padding:10px}.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h.PSPDFKit-382u1rdjb1tf6tnk2q2g7kgvgp,.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h:active,.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h:focus,.PSPDFKit-29bp4qx2ar9g3bkzyq9mtha47h:hover{background-color:#f0f3f9;background-color:var(--PSPDFKit-AnnotationToolbar-background);border-bottom:1px solid #bec9d9;border-bottom:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)}.PSPDFKit-6dpm8fme3awumu6c44rktfucs2 span{align-items:center;display:flex;justify-content:center}.PSPDFKit-369qag2kn88x7fd7hzmy37u7jj{background:#f0f3f9;background:var(--PSPDFKit-ContentEditorToolbar-background);font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3)}.PSPDFKit-zmwf99thxv6fcrc5fedznzzbf{border-bottom:1px solid #bec9d9;border-bottom:1px solid var(--PSPDFKit-ContentEditorToolbar-border);box-shadow:0 1px 2px rgba(0,0,0,.1);flex-direction:row;height:44px;justify-content:space-between;padding:0 12px}.PSPDFKit-5xkwu35z1pdufxyge2fpn149wt,.PSPDFKit-zmwf99thxv6fcrc5fedznzzbf{align-items:center;display:flex}.PSPDFKit-5xkwu35z1pdufxyge2fpn149wt{padding-right:.75rem}.PSPDFKit-8p5cvevhmuv7u5wjndvwnbnu5w{background-color:unset;border:1px solid #bec9d9;border:1px solid var(--PSPDFKit-ContentEditorToolbar-button-border);border-radius:3px;color:#3d424e;color:var(--PSPDFKit-ContentEditorToolbar-button-color);cursor:pointer;font-size:.875rem;margin:0 0.46875em;margin:0 var(--PSPDFKit-spacing-7);padding:0 20px;transition:border-color .15s}.PSPDFKit-8p5cvevhmuv7u5wjndvwnbnu5w:hover{border-color:rgb(132 140 154 / 0.5);border-color:var(--PSPDFKit-ContentEditorToolbar-button-isHovered-border)}.PSPDFKit-8p5cvevhmuv7u5wjndvwnbnu5w span{align-items:center;display:flex;height:32px}.PSPDFKit-8p5cvevhmuv7u5wjndvwnbnu5w:last-child{margin:0}.PSPDFKit-2aekynqmf5d2unsgpe2a63pqe7{background-color:#4636e3;background-color:var(--PSPDFKit-ContentEditorToolbar-button-save-backgroundColor);border-color:#2b1cc1;border-color:var(--PSPDFKit-ContentEditorToolbar-button-save-border);color:#fff;color:var(--PSPDFKit-ContentEditorToolbar-button-save-color)}.PSPDFKit-2aekynqmf5d2unsgpe2a63pqe7:hover{background-color:#4636e3;background-color:var(--PSPDFKit-ContentEditorToolbar-button-hover-save-backgroundColor);border-color:#0a0167;border-color:var(--PSPDFKit-ContentEditorToolbar-button-hover-save-border);color:#fff;color:var(--PSPDFKit-ContentEditorToolbar-button-hover-save-color)}.PSPDFKit-cmgrqrz9uxy4sb9vg43t341c1{cursor:not-allowed;opacity:.5}.PSPDFKit-5c3edpftcxt25778bnf8dge8wm{flex-wrap:nowrap}.PSPDFKit-5z4at4466ca8t6dkug1bqpq81{cursor:not-allowed}.PSPDFKit-tb2p4fkm5haam7ptsvqb6c982{align-items:center;background-color:#fff;background-color:var(--PSPDFKit-ContentEditorToolbar-button-fontstyle-backgroundColor);display:flex;height:32px;justify-content:center;padding:0;width:32px}.PSPDFKit-tb2p4fkm5haam7ptsvqb6c982 span,.PSPDFKit-tb2p4fkm5haam7ptsvqb6c982 svg{height:1.5rem;width:1.5rem}.PSPDFKit-tb2p4fkm5haam7ptsvqb6c982:hover:not(:disabled){background-color:#fff;background-color:var(--PSPDFKit-ContentEditorToolbar-button-fontstyle-backgroundColor)}.PSPDFKit-tb2p4fkm5haam7ptsvqb6c982:disabled{cursor:not-allowed}.PSPDFKit-5hv5vgzkpzspks749ufhhvfz1k{border:none}.PSPDFKit-3y1g2avp88swge652xu9nj312z{background-color:#4636e3!important;background-color:var(--PSPDFKit-ContentEditorToolbar-button-fontstyle-isActive-backgroundColor)!important}.PSPDFKit-3y1g2avp88swge652xu9nj312z svg{color:#fff!important;color:var(--PSPDFKit-ContentEditorToolbar-button-fontstyle-isActive-svg-color)!important}.PSPDFKit-3y1g2avp88swge652xu9nj312z:hover:not(:disabled){background-color:#4636e3;background-color:var(--PSPDFKit-ContentEditorToolbar-button-fontstyle-isActive-backgroundColor)}.PSPDFKit-792vfa9s6t83dgghq4y7ghk2fj{border:none;color:#3d424e;color:var(--PSPDFKit-ContentEditorToolbar-button-color)}.PSPDFKit-792vfa9s6t83dgghq4y7ghk2fj:hover{background-color:#d8dfeb;background-color:var(--PSPDFKit-ContentEditorToolbar-button-isHovered-backgroundColor);cursor:pointer} +.PSPDFKit-8mw7cgx9nrd1yg35kkhqyhksqy{background:#f0f3f9;background:var(--PSPDFKit-AnnotationToolbar-background);font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3)}.PSPDFKit-3e1ymauppttrz41jzw3mzc2t65{width:100%}.PSPDFKit-2eu14kmrb8nn2j13et7k8kxgy2{align-items:center;border-bottom:1px solid #bec9d9;border-bottom:1px solid var(--PSPDFKit-AnnotationToolbar-border);box-shadow:0 1px 2px rgba(0,0,0,.1);display:flex;flex:2;flex-direction:row;height:44px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-2eu14kmrb8nn2j13et7k8kxgy2 .PSPDFKit-768zuvadpfp2s99ztcwnaee5jp,.PSPDFKit-2eu14kmrb8nn2j13et7k8kxgy2 .PSPDFKit-263brxaxc464ym7sfe4phds8ah{align-items:center;display:flex;flex-grow:1}.PSPDFKit-2eu14kmrb8nn2j13et7k8kxgy2 .PSPDFKit-263brxaxc464ym7sfe4phds8ah{flex-direction:row-reverse;justify-content:flex-start}.PSPDFKit-width-md .PSPDFKit-2eu14kmrb8nn2j13et7k8kxgy2,.PSPDFKit-width-sm .PSPDFKit-2eu14kmrb8nn2j13et7k8kxgy2,.PSPDFKit-width-xs .PSPDFKit-2eu14kmrb8nn2j13et7k8kxgy2{flex:1;flex-direction:row-reverse}.PSPDFKit-width-md .PSPDFKit-2eu14kmrb8nn2j13et7k8kxgy2 .PSPDFKit-768zuvadpfp2s99ztcwnaee5jp,.PSPDFKit-width-sm .PSPDFKit-2eu14kmrb8nn2j13et7k8kxgy2 .PSPDFKit-768zuvadpfp2s99ztcwnaee5jp,.PSPDFKit-width-xs .PSPDFKit-2eu14kmrb8nn2j13et7k8kxgy2 .PSPDFKit-768zuvadpfp2s99ztcwnaee5jp{flex:initial;justify-content:flex-end}.PSPDFKit-width-md .PSPDFKit-2eu14kmrb8nn2j13et7k8kxgy2 .PSPDFKit-263brxaxc464ym7sfe4phds8ah,.PSPDFKit-width-sm .PSPDFKit-2eu14kmrb8nn2j13et7k8kxgy2 .PSPDFKit-263brxaxc464ym7sfe4phds8ah,.PSPDFKit-width-xs .PSPDFKit-2eu14kmrb8nn2j13et7k8kxgy2 .PSPDFKit-263brxaxc464ym7sfe4phds8ah{flex-direction:row;justify-content:flex-start}.PSPDFKit-2eu14kmrb8nn2j13et7k8kxgy2.PSPDFKit-39d47rs5fq7kcjer959hp5rx8d{flex-direction:row}.PSPDFKit-8y6ce6n5884k7zrpr3uqnz7htb .PSPDFKit-2eu14kmrb8nn2j13et7k8kxgy2{border-bottom:none;border-top:1px solid #bec9d9;border-top:1px solid var(--PSPDFKit-AnnotationToolbar-border);box-shadow:0 -1px 2px rgba(0,0,0,.1)}.PSPDFKit-pqz79rmnz1jk37ra4q9jr8t33{align-items:center;height:44px}.PSPDFKit-628h193kd9qu5d9hhsg3cdnuza{align-items:center;display:flex;flex-wrap:wrap;min-height:44px}.PSPDFKit-width-md .PSPDFKit-628h193kd9qu5d9hhsg3cdnuza,.PSPDFKit-width-sm .PSPDFKit-628h193kd9qu5d9hhsg3cdnuza,.PSPDFKit-width-xs .PSPDFKit-628h193kd9qu5d9hhsg3cdnuza{margin-right:6px}.PSPDFKit-6nbc7qagvqu9yd6yet13hb6rhj{height:32px}.PSPDFKit-48x8nkebmfpqss6a3u7rs8g9q5 button{height:32px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.PSPDFKit-5m1cnawh6718mpdfvfzbb11abd{align-items:center;width:100%}.PSPDFKit-5m1cnawh6718mpdfvfzbb11abd,.PSPDFKit-7ntyew6gjjyyu8e3azuddfrhnp{display:flex;flex-direction:column}.PSPDFKit-6c1mz88rtks35wu1xhbrekd71a{margin:0 8px}.PSPDFKit-6c1mz88rtks35wu1xhbrekd71a:last-child{display:none}.PSPDFKit-width-md .PSPDFKit-6c1mz88rtks35wu1xhbrekd71a,.PSPDFKit-width-sm .PSPDFKit-6c1mz88rtks35wu1xhbrekd71a,.PSPDFKit-width-xs .PSPDFKit-6c1mz88rtks35wu1xhbrekd71a{display:none}.PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8{display:flex;flex:1}.PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn{align-content:center;align-items:center;display:flex;justify-content:center}.PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-39fu85k99jh2maw1gkthhh4pas:not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg),.PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3:not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg),.PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj:not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg),.PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-8tz941rhqxq9a7km8terwandnm:not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg){cursor:default}.PSPDFKit-width-md .PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-628h193kd9qu5d9hhsg3cdnuza,.PSPDFKit-width-sm .PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-628h193kd9qu5d9hhsg3cdnuza,.PSPDFKit-width-xs .PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-628h193kd9qu5d9hhsg3cdnuza{display:none}.PSPDFKit-width-md .PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-39fu85k99jh2maw1gkthhh4pas,.PSPDFKit-width-md .PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3,.PSPDFKit-width-md .PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj,.PSPDFKit-width-md .PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-8tz941rhqxq9a7km8terwandnm,.PSPDFKit-width-sm .PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-39fu85k99jh2maw1gkthhh4pas,.PSPDFKit-width-sm .PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3,.PSPDFKit-width-sm .PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj,.PSPDFKit-width-sm .PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-8tz941rhqxq9a7km8terwandnm,.PSPDFKit-width-xs .PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-39fu85k99jh2maw1gkthhh4pas,.PSPDFKit-width-xs .PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3,.PSPDFKit-width-xs .PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj,.PSPDFKit-width-xs .PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn .PSPDFKit-8tz941rhqxq9a7km8terwandnm{cursor:pointer}.PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-21jwyumejben4aqq13bksg3xh8{display:none}.PSPDFKit-width-md .PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-21jwyumejben4aqq13bksg3xh8,.PSPDFKit-width-sm .PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-21jwyumejben4aqq13bksg3xh8,.PSPDFKit-width-xs .PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-21jwyumejben4aqq13bksg3xh8{display:block}.PSPDFKit-t6r39wvb2q9vjm8wcyu4ean8 .PSPDFKit-628h193kd9qu5d9hhsg3cdnuza{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;line-height:0}.PSPDFKit-75ttad8xww9mpzzprak2aac974{align-items:center;display:flex;height:100%;min-width:100px}.PSPDFKit-width-md .PSPDFKit-75ttad8xww9mpzzprak2aac974,.PSPDFKit-width-sm .PSPDFKit-75ttad8xww9mpzzprak2aac974,.PSPDFKit-width-xs .PSPDFKit-75ttad8xww9mpzzprak2aac974{display:none}.PSPDFKit-75ttad8xww9mpzzprak2aac974 button{height:32px}.PSPDFKit-6ft5xhbubs9uamqn8s4zfnq4b4,.PSPDFKit-w47nwqgy1154yrmztu2mnwzpm{align-items:center;display:flex;height:32px;margin-right:0.609em;margin-right:var(--PSPDFKit-spacing-6)}.PSPDFKit-width-md .PSPDFKit-6ft5xhbubs9uamqn8s4zfnq4b4,.PSPDFKit-width-sm .PSPDFKit-6ft5xhbubs9uamqn8s4zfnq4b4,.PSPDFKit-width-xs .PSPDFKit-6ft5xhbubs9uamqn8s4zfnq4b4{display:none}.PSPDFKit-2bnqvejyfcr2xpnvmzxrzqhapp,.PSPDFKit-zxa6uqty5r8s91cyrkfmxkc93,.PSPDFKit-275wshr5dpqatccw8ux11qqk9s,.PSPDFKit-3hxmaadpfcejwvjvjd3srb4nq4{align-items:center;display:flex}.PSPDFKit-zxa6uqty5r8s91cyrkfmxkc93,.PSPDFKit-275wshr5dpqatccw8ux11qqk9s,.PSPDFKit-3hxmaadpfcejwvjvjd3srb4nq4{height:32px}.PSPDFKit-zxa6uqty5r8s91cyrkfmxkc93 circle,.PSPDFKit-zxa6uqty5r8s91cyrkfmxkc93 line,.PSPDFKit-zxa6uqty5r8s91cyrkfmxkc93 path,.PSPDFKit-zxa6uqty5r8s91cyrkfmxkc93 polygon,.PSPDFKit-zxa6uqty5r8s91cyrkfmxkc93 polyline,.PSPDFKit-zxa6uqty5r8s91cyrkfmxkc93 rect,.PSPDFKit-275wshr5dpqatccw8ux11qqk9s circle,.PSPDFKit-275wshr5dpqatccw8ux11qqk9s line,.PSPDFKit-275wshr5dpqatccw8ux11qqk9s path,.PSPDFKit-275wshr5dpqatccw8ux11qqk9s polygon,.PSPDFKit-275wshr5dpqatccw8ux11qqk9s polyline,.PSPDFKit-275wshr5dpqatccw8ux11qqk9s rect,.PSPDFKit-3hxmaadpfcejwvjvjd3srb4nq4 circle,.PSPDFKit-3hxmaadpfcejwvjvjd3srb4nq4 line,.PSPDFKit-3hxmaadpfcejwvjvjd3srb4nq4 path,.PSPDFKit-3hxmaadpfcejwvjvjd3srb4nq4 polygon,.PSPDFKit-3hxmaadpfcejwvjvjd3srb4nq4 polyline,.PSPDFKit-3hxmaadpfcejwvjvjd3srb4nq4 rect{stroke:#4d525d;stroke:var(--PSPDFKit-AnnotationToolbar-startLineCapSelect-circle-stroke)}.PSPDFKit-zxa6uqty5r8s91cyrkfmxkc93 button,.PSPDFKit-275wshr5dpqatccw8ux11qqk9s button,.PSPDFKit-3hxmaadpfcejwvjvjd3srb4nq4 button{height:32px}.PSPDFKit-zxa6uqty5r8s91cyrkfmxkc93,.PSPDFKit-275wshr5dpqatccw8ux11qqk9s{width:64px}.PSPDFKit-width-md .PSPDFKit-275wshr5dpqatccw8ux11qqk9s,.PSPDFKit-width-sm .PSPDFKit-275wshr5dpqatccw8ux11qqk9s,.PSPDFKit-width-xs .PSPDFKit-275wshr5dpqatccw8ux11qqk9s{left:0;right:auto!important}.PSPDFKit-3hxmaadpfcejwvjvjd3srb4nq4{width:96px}.PSPDFKit-2bnqvejyfcr2xpnvmzxrzqhapp{height:32px}.PSPDFKit-2bnqvejyfcr2xpnvmzxrzqhapp:hover,.PSPDFKit-2bnqvejyfcr2xpnvmzxrzqhapp[data-focus-within]{background:transparent}.PSPDFKit-2bnqvejyfcr2xpnvmzxrzqhapp:focus-within{background:transparent}.PSPDFKit-7ub6g8tsdw1g86bt2kvn83wa7p{align-items:center;background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background);border:1px solid #d8dfeb;border:1px solid var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-border);border-radius:3px;color:#848c9a;color:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-color);cursor:pointer;display:flex;height:32px;justify-content:space-between;margin-right:0.609em;margin-right:var(--PSPDFKit-spacing-6);padding:0.46875em;padding:var(--PSPDFKit-spacing-7);width:55px}.PSPDFKit-7ub6g8tsdw1g86bt2kvn83wa7p span{fill:#848c9a;fill:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-color)}.PSPDFKit-7ub6g8tsdw1g86bt2kvn83wa7p:hover:not(.PSPDFKit-48byv3uppm1nzjqfybkzwnzjf),.PSPDFKit-7ub6g8tsdw1g86bt2kvn83wa7p[data-focus-within]{background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background)}.PSPDFKit-7ub6g8tsdw1g86bt2kvn83wa7p:hover:not(.PSPDFKit-48byv3uppm1nzjqfybkzwnzjf) span,.PSPDFKit-7ub6g8tsdw1g86bt2kvn83wa7p[data-focus-within] span{fill:#090c12;fill:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-isHovered-color)}.PSPDFKit-7ub6g8tsdw1g86bt2kvn83wa7p:focus-within{background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background)}.PSPDFKit-7ub6g8tsdw1g86bt2kvn83wa7p:focus-within span{fill:#090c12;fill:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-isHovered-color)}@media(max-width:1080px)and (min-width:992px){.PSPDFKit-8j3bg3d3dbcpkjba4qpgt6mtwx{width:100px}}.PSPDFKit-39fu85k99jh2maw1gkthhh4pas,.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3,.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj,.PSPDFKit-8tz941rhqxq9a7km8terwandnm{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)!important;color:#3d424e;color:var(--PSPDFKit-AnnotationToolbar-button-color);flex-shrink:0}.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3,.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj,.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz.PSPDFKit-8tz941rhqxq9a7km8terwandnm,.PSPDFKit-39fu85k99jh2maw1gkthhh4pas.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz,.PSPDFKit-39fu85k99jh2maw1gkthhh4pas.PSPDFKit-4fg19pph8cyagbqvnfr8fms11,.PSPDFKit-4fg19pph8cyagbqvnfr8fms11.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3,.PSPDFKit-4fg19pph8cyagbqvnfr8fms11.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj,.PSPDFKit-4fg19pph8cyagbqvnfr8fms11.PSPDFKit-8tz941rhqxq9a7km8terwandnm{border-left:0!important;border-right:1px solid #bec9d9!important;border-right:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border)!important}.PSPDFKit-width-md .PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3,.PSPDFKit-width-md .PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj,.PSPDFKit-width-md .PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz.PSPDFKit-8tz941rhqxq9a7km8terwandnm,.PSPDFKit-width-md .PSPDFKit-39fu85k99jh2maw1gkthhh4pas.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz,.PSPDFKit-width-md .PSPDFKit-39fu85k99jh2maw1gkthhh4pas.PSPDFKit-4fg19pph8cyagbqvnfr8fms11,.PSPDFKit-width-md .PSPDFKit-4fg19pph8cyagbqvnfr8fms11.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3,.PSPDFKit-width-md .PSPDFKit-4fg19pph8cyagbqvnfr8fms11.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj,.PSPDFKit-width-md .PSPDFKit-4fg19pph8cyagbqvnfr8fms11.PSPDFKit-8tz941rhqxq9a7km8terwandnm,.PSPDFKit-width-sm .PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3,.PSPDFKit-width-sm .PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj,.PSPDFKit-width-sm .PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz.PSPDFKit-8tz941rhqxq9a7km8terwandnm,.PSPDFKit-width-sm .PSPDFKit-39fu85k99jh2maw1gkthhh4pas.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz,.PSPDFKit-width-sm .PSPDFKit-39fu85k99jh2maw1gkthhh4pas.PSPDFKit-4fg19pph8cyagbqvnfr8fms11,.PSPDFKit-width-sm .PSPDFKit-4fg19pph8cyagbqvnfr8fms11.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3,.PSPDFKit-width-sm .PSPDFKit-4fg19pph8cyagbqvnfr8fms11.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj,.PSPDFKit-width-sm .PSPDFKit-4fg19pph8cyagbqvnfr8fms11.PSPDFKit-8tz941rhqxq9a7km8terwandnm,.PSPDFKit-width-xs .PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3,.PSPDFKit-width-xs .PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj,.PSPDFKit-width-xs .PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz.PSPDFKit-8tz941rhqxq9a7km8terwandnm,.PSPDFKit-width-xs .PSPDFKit-39fu85k99jh2maw1gkthhh4pas.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz,.PSPDFKit-width-xs .PSPDFKit-39fu85k99jh2maw1gkthhh4pas.PSPDFKit-4fg19pph8cyagbqvnfr8fms11,.PSPDFKit-width-xs .PSPDFKit-4fg19pph8cyagbqvnfr8fms11.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3,.PSPDFKit-width-xs .PSPDFKit-4fg19pph8cyagbqvnfr8fms11.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj,.PSPDFKit-width-xs .PSPDFKit-4fg19pph8cyagbqvnfr8fms11.PSPDFKit-8tz941rhqxq9a7km8terwandnm{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border)!important;border-right:0!important}.PSPDFKit-39fu85k99jh2maw1gkthhh4pas.PSPDFKit-769hazgdc7wc335k78212j8emp,.PSPDFKit-769hazgdc7wc335k78212j8emp.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3,.PSPDFKit-769hazgdc7wc335k78212j8emp.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj,.PSPDFKit-769hazgdc7wc335k78212j8emp.PSPDFKit-8tz941rhqxq9a7km8terwandnm{border-left:0!important;border-right:0!important}.PSPDFKit-width-md .PSPDFKit-39fu85k99jh2maw1gkthhh4pas.PSPDFKit-769hazgdc7wc335k78212j8emp,.PSPDFKit-width-md .PSPDFKit-769hazgdc7wc335k78212j8emp.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3,.PSPDFKit-width-md .PSPDFKit-769hazgdc7wc335k78212j8emp.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj,.PSPDFKit-width-md .PSPDFKit-769hazgdc7wc335k78212j8emp.PSPDFKit-8tz941rhqxq9a7km8terwandnm,.PSPDFKit-width-sm .PSPDFKit-39fu85k99jh2maw1gkthhh4pas.PSPDFKit-769hazgdc7wc335k78212j8emp,.PSPDFKit-width-sm .PSPDFKit-769hazgdc7wc335k78212j8emp.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3,.PSPDFKit-width-sm .PSPDFKit-769hazgdc7wc335k78212j8emp.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj,.PSPDFKit-width-sm .PSPDFKit-769hazgdc7wc335k78212j8emp.PSPDFKit-8tz941rhqxq9a7km8terwandnm,.PSPDFKit-width-xs .PSPDFKit-39fu85k99jh2maw1gkthhh4pas.PSPDFKit-769hazgdc7wc335k78212j8emp,.PSPDFKit-width-xs .PSPDFKit-769hazgdc7wc335k78212j8emp.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3,.PSPDFKit-width-xs .PSPDFKit-769hazgdc7wc335k78212j8emp.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj,.PSPDFKit-width-xs .PSPDFKit-769hazgdc7wc335k78212j8emp.PSPDFKit-8tz941rhqxq9a7km8terwandnm{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)!important}.PSPDFKit-width-lg .PSPDFKit-39fu85k99jh2maw1gkthhh4pas:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj).PSPDFKit-3z1atvkwb5ng185njjj5rz7xbz,.PSPDFKit-width-lg .PSPDFKit-39fu85k99jh2maw1gkthhh4pas:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):active,.PSPDFKit-width-lg .PSPDFKit-39fu85k99jh2maw1gkthhh4pas:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):focus,.PSPDFKit-width-lg .PSPDFKit-39fu85k99jh2maw1gkthhh4pas:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):hover,.PSPDFKit-width-lg .PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj).PSPDFKit-3z1atvkwb5ng185njjj5rz7xbz,.PSPDFKit-width-lg .PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):active,.PSPDFKit-width-lg .PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):focus,.PSPDFKit-width-lg .PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):hover,.PSPDFKit-width-lg .PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj).PSPDFKit-3z1atvkwb5ng185njjj5rz7xbz,.PSPDFKit-width-lg .PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):active,.PSPDFKit-width-lg .PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):focus,.PSPDFKit-width-lg .PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):hover,.PSPDFKit-width-lg .PSPDFKit-8tz941rhqxq9a7km8terwandnm:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj).PSPDFKit-3z1atvkwb5ng185njjj5rz7xbz,.PSPDFKit-width-lg .PSPDFKit-8tz941rhqxq9a7km8terwandnm:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):active,.PSPDFKit-width-lg .PSPDFKit-8tz941rhqxq9a7km8terwandnm:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):focus,.PSPDFKit-width-lg .PSPDFKit-8tz941rhqxq9a7km8terwandnm:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):hover,.PSPDFKit-width-xl .PSPDFKit-39fu85k99jh2maw1gkthhh4pas:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj).PSPDFKit-3z1atvkwb5ng185njjj5rz7xbz,.PSPDFKit-width-xl .PSPDFKit-39fu85k99jh2maw1gkthhh4pas:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):active,.PSPDFKit-width-xl .PSPDFKit-39fu85k99jh2maw1gkthhh4pas:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):focus,.PSPDFKit-width-xl .PSPDFKit-39fu85k99jh2maw1gkthhh4pas:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):hover,.PSPDFKit-width-xl .PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj).PSPDFKit-3z1atvkwb5ng185njjj5rz7xbz,.PSPDFKit-width-xl .PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):active,.PSPDFKit-width-xl .PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):focus,.PSPDFKit-width-xl .PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):hover,.PSPDFKit-width-xl .PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj).PSPDFKit-3z1atvkwb5ng185njjj5rz7xbz,.PSPDFKit-width-xl .PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):active,.PSPDFKit-width-xl .PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):focus,.PSPDFKit-width-xl .PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):hover,.PSPDFKit-width-xl .PSPDFKit-8tz941rhqxq9a7km8terwandnm:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj).PSPDFKit-3z1atvkwb5ng185njjj5rz7xbz,.PSPDFKit-width-xl .PSPDFKit-8tz941rhqxq9a7km8terwandnm:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):active,.PSPDFKit-width-xl .PSPDFKit-8tz941rhqxq9a7km8terwandnm:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):focus,.PSPDFKit-width-xl .PSPDFKit-8tz941rhqxq9a7km8terwandnm:not(.PSPDFKit-7ryrry1x131tjsax7f4kwd8zfz) :not(.PSPDFKit-4fg19pph8cyagbqvnfr8fms11) :not(.PSPDFKit-73qv358utjtrzr85ky96uevmtg) :not(.PSPDFKit-6usxmcuq89wy8smur4v8ryhswg) :not(.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g) :not(.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj):hover{background:transparent!important}.PSPDFKit-39fu85k99jh2maw1gkthhh4pas.PSPDFKit-3z1atvkwb5ng185njjj5rz7xbz,.PSPDFKit-39fu85k99jh2maw1gkthhh4pas:active,.PSPDFKit-39fu85k99jh2maw1gkthhh4pas:focus,.PSPDFKit-39fu85k99jh2maw1gkthhh4pas:hover,.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3:active,.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3:focus,.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3:hover,.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj:active,.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj:focus,.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj:hover,.PSPDFKit-3z1atvkwb5ng185njjj5rz7xbz.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3,.PSPDFKit-3z1atvkwb5ng185njjj5rz7xbz.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj,.PSPDFKit-3z1atvkwb5ng185njjj5rz7xbz.PSPDFKit-8tz941rhqxq9a7km8terwandnm,.PSPDFKit-8tz941rhqxq9a7km8terwandnm:active,.PSPDFKit-8tz941rhqxq9a7km8terwandnm:focus,.PSPDFKit-8tz941rhqxq9a7km8terwandnm:hover{background:#d8dfeb;background:var(--PSPDFKit-AnnotationToolbar-button-isHovered-background)}.PSPDFKit-fts7hzse3qdkgfmxd89z1sxgg,.PSPDFKit-4q6ah6p4esufmffveqzpjh47b{cursor:not-allowed;opacity:.2;pointer-events:none}.PSPDFKit-2s797jk128ay8vfscex2bv7kfe{border:0!important;color:#3d424e!important;color:var(--PSPDFKit-AnnotationToolbar-icon-color)!important;display:flex!important;pointer-events:auto!important}.PSPDFKit-73qv358utjtrzr85ky96uevmtg{cursor:pointer!important;height:44px;min-width:44px;padding:0 11px}.PSPDFKit-73qv358utjtrzr85ky96uevmtg.PSPDFKit-3z1atvkwb5ng185njjj5rz7xbz,.PSPDFKit-73qv358utjtrzr85ky96uevmtg:active,.PSPDFKit-73qv358utjtrzr85ky96uevmtg:hover{background:#d8dfeb;background:var(--PSPDFKit-AnnotationToolbar-button-isHovered-background)}.PSPDFKit-4nuygfwr1ru425pyg3yjydvr61{outline:2px solid #4636e3;outline:2px solid var(--PSPDFKit-AnnotationToolbar-button-outline)}.PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn:first-child .PSPDFKit-39fu85k99jh2maw1gkthhh4pas:first-child,.PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn:first-child .PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3:first-child,.PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn:first-child .PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj:first-child,.PSPDFKit-5nvf2c6yp9b7ynxetxyjq8ejcn:first-child .PSPDFKit-8tz941rhqxq9a7km8terwandnm:first-child{border-left:none!important}.PSPDFKit-3fzefd39fwgk1qdbxv6jdjs8f7{line-height:normal;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.PSPDFKit-5cn9vbp8wrnrmnk914jdmynjve{background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background);box-shadow:none;padding:0}.PSPDFKit-88kdpafyrs8h3rj4zjbrrted2p{align-items:center;background:#ffc78f;background:var(--PSPDFKit-AnnotationToolbar-warning-icon-background);border-radius:3px;box-shadow:0 .75px 1.5px 0 rgba(0,0,0,.15);cursor:pointer;display:flex;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);gap:10px;margin:0 0.46875em;margin:0 var(--PSPDFKit-spacing-7);padding:4px 0.8125em;padding:4px var(--PSPDFKit-spacing-5)}.PSPDFKit-6yj82gkzhm3npm9qtbttnwhvqs{height:16px;width:16px}.PSPDFKit-5kx5x5nrf9ffzpw127n7tdvrqw{width:max-content}.PSPDFKit-6m8awubd892h2q7bxq6ucu9yx5{box-sizing:initial;display:flex;flex-flow:row wrap;padding:10px}.PSPDFKit-5z24bvabee7axqkv39se95kj79{align-items:center;border:none;border-radius:5px;height:30px;justify-content:center;min-width:30px;padding:0}.PSPDFKit-5z24bvabee7axqkv39se95kj79,.PSPDFKit-5uu5r98quqvpyqqvmhf7eqx6n8{display:flex}.PSPDFKit-7sx7anuampjzrt9mnvv7zccdny{height:20px;width:20px}.PSPDFKit-84hychtak5eqe99svt8mp3g7gq,.PSPDFKit-3wpt6233mxj93ajtgz97kkfp95{stroke:#4d525d;stroke:var(--PSPDFKit-AnnotationToolbar-startLineCapSelect-circle-stroke);stroke-width:1px;align-items:center;display:flex;padding:10px}.PSPDFKit-75syshz3pwrn5szey2w1zrbwhq{display:none}.PSPDFKit-width-md .PSPDFKit-75syshz3pwrn5szey2w1zrbwhq,.PSPDFKit-width-sm .PSPDFKit-75syshz3pwrn5szey2w1zrbwhq,.PSPDFKit-width-xs .PSPDFKit-75syshz3pwrn5szey2w1zrbwhq{align-items:center;display:block;margin-right:0.609em;margin-right:var(--PSPDFKit-spacing-6)}.PSPDFKit-5wjc8qvxn2shc717ghes4hwe4r,.PSPDFKit-4axb3jsn3p35zcvz2qkf1627s1{align-items:center;display:flex}.PSPDFKit-width-md .PSPDFKit-3gbc7z42ncvpe6ecjsfvekn6bf,.PSPDFKit-width-sm .PSPDFKit-3gbc7z42ncvpe6ecjsfvekn6bf,.PSPDFKit-width-xs .PSPDFKit-3gbc7z42ncvpe6ecjsfvekn6bf{align-items:center}.PSPDFKit-25fpzkeppwbvrayjgduw8retb5,.PSPDFKit-8q8cpk21u1e4cgjxkuetq25ac5{margin-right:10px}.PSPDFKit-width-md .PSPDFKit-8q8cpk21u1e4cgjxkuetq25ac5,.PSPDFKit-width-sm .PSPDFKit-8q8cpk21u1e4cgjxkuetq25ac5,.PSPDFKit-width-xs .PSPDFKit-8q8cpk21u1e4cgjxkuetq25ac5{margin-right:0}.PSPDFKit-2syhxbxpfgp19jpz3z5x49q224{align-items:center;display:inline-flex}.PSPDFKit-7eua9n76z6wh9hyqtrgxabwhyp{align-self:center;color:#3d424e;color:var(--PSPDFKit-AnnotationToolbar-label-color);padding:0 11px}.PSPDFKit-width-xs .PSPDFKit-8san6jac5e16c3cmp3udzsyzq9{max-width:110px}.PSPDFKit-2bhr7dx4y8a6z7s598sms29ggb{align-items:center;display:flex;flex-wrap:wrap;line-height:0}.PSPDFKit-uqsh2mfe72fsz9emybm4vb6u9{align-items:center;border-right:1px solid #bec9d9;border-right:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border);display:flex;min-height:44px;padding-left:5px;padding-right:5px}@media(max-width:992px){.PSPDFKit-uqsh2mfe72fsz9emybm4vb6u9{border-left:1px solid #bec9d9;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border);border-right:none;max-width:70px}}.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g{background-color:#fff;background-color:var(--PSPDFKit-AnnotationToolbar-redactions-button-background);border-radius:3px;box-shadow:0 .75px 1.5px rgba(0,0,0,.15);color:#000;color:var(--PSPDFKit-AnnotationToolbar-redactions-button-color);display:flex;height:28px;white-space:nowrap}.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g.PSPDFKit-3z1atvkwb5ng185njjj5rz7xbz,.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g:active,.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g:focus,.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g:hover{background-color:#4636e3;background-color:var(--PSPDFKit-AnnotationToolbar-redactions-button-isHovered-background);color:#fff;color:var(--PSPDFKit-AnnotationToolbar-redactions-button-isHovered-color);filter:drop-shadow(0 1px 1px rgba(0,0,0,.15))}@media(max-width:992px){.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g{border-left:none!important;justify-content:flex-start;max-width:60px}.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g span{max-width:60px;overflow-x:hidden}.PSPDFKit-39fu85k99jh2maw1gkthhh4pas.PSPDFKit-769hazgdc7wc335k78212j8emp.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g,.PSPDFKit-769hazgdc7wc335k78212j8emp.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3,.PSPDFKit-769hazgdc7wc335k78212j8emp.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj,.PSPDFKit-769hazgdc7wc335k78212j8emp.PSPDFKit-5uud5zxk4ybq2mv2nt3caxrq3g.PSPDFKit-8tz941rhqxq9a7km8terwandnm{border-left:none!important}}.PSPDFKit-6s24914j26xzdhgmaqjbdae7a8{display:inline-flex}.PSPDFKit-7kdp2eku1rven1vm3eug4x6su9{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)!important;padding:0 0.8125em;padding:0 var(--PSPDFKit-spacing-5)}.PSPDFKit-5mud2pd31puwn1df9zjr639yy4{margin-left:4px}.PSPDFKit-84kcnetmpfg2e64pd3wmwkkbud{flex-direction:row-reverse}.PSPDFKit-width-md .PSPDFKit-2f6g3rm6gpedqtnwpk94cu5b6q,.PSPDFKit-width-sm .PSPDFKit-2f6g3rm6gpedqtnwpk94cu5b6q,.PSPDFKit-width-xs .PSPDFKit-2f6g3rm6gpedqtnwpk94cu5b6q{flex-direction:row;overflow-x:auto}.PSPDFKit-width-md .PSPDFKit-2f6g3rm6gpedqtnwpk94cu5b6q .PSPDFKit-263brxaxc464ym7sfe4phds8ah,.PSPDFKit-width-sm .PSPDFKit-2f6g3rm6gpedqtnwpk94cu5b6q .PSPDFKit-263brxaxc464ym7sfe4phds8ah,.PSPDFKit-width-xs .PSPDFKit-2f6g3rm6gpedqtnwpk94cu5b6q .PSPDFKit-263brxaxc464ym7sfe4phds8ah{flex-basis:0;flex-direction:row-reverse}.PSPDFKit-8tz941rhqxq9a7km8terwandnm{cursor:pointer;display:inline-flex;height:100%;margin:0;padding:10px}.PSPDFKit-8tz941rhqxq9a7km8terwandnm.PSPDFKit-3z1atvkwb5ng185njjj5rz7xbz,.PSPDFKit-8tz941rhqxq9a7km8terwandnm:active,.PSPDFKit-8tz941rhqxq9a7km8terwandnm:focus,.PSPDFKit-8tz941rhqxq9a7km8terwandnm:hover{background-color:#f0f3f9;background-color:var(--PSPDFKit-AnnotationToolbar-background);border-bottom:1px solid #bec9d9;border-bottom:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)}.PSPDFKit-2q1r39e1v2u5ekry3v7vbc9yr7 span{align-items:center;display:flex;justify-content:center}.PSPDFKit-48mktwcp2g29yu9eg22p2pbvmh,.PSPDFKit-8dznuywttgafn2v7zy61c6ctg4{align-items:center;border-bottom:1px solid #bec9d9;border-bottom:1px solid var(--PSPDFKit-CropToolbarComponent-border);box-shadow:0 1px 2px rgba(0,0,0,.1);display:flex;flex-direction:row;height:44px;justify-content:space-between;padding:0 12px}.PSPDFKit-5t9fk8ex9uwch2qhza7wa1pacw,.PSPDFKit-2x4tn85f3krgk9xb8r993atjue{display:flex}.PSPDFKit-2x4tn85f3krgk9xb8r993atjue{align-items:center;color:#4d525d;color:var(--PSPDFKit-CropToolbarComponent-text-color);cursor:pointer;height:44px;justify-content:center;padding-left:10px;padding-right:10px;transition:background-color .15s}.PSPDFKit-2x4tn85f3krgk9xb8r993atjue:not(:last-child){border-right:1px solid #bec9d9;border-right:1px solid var(--PSPDFKit-CropToolbarComponent-button-isDeselected-border)}.PSPDFKit-2x4tn85f3krgk9xb8r993atjue:hover:not([aria-disabled=true]){background-color:#d8dfeb!important;background-color:var(--PSPDFKit-CropToolbarComponent-button-isHovered-backgroundColor)!important}.PSPDFKit-2x4tn85f3krgk9xb8r993atjue:first-of-type{border-left:none!important;padding-left:0}.PSPDFKit-2x4tn85f3krgk9xb8r993atjue span,.PSPDFKit-2x4tn85f3krgk9xb8r993atjue svg{align-items:center;display:flex;height:32px}.PSPDFKit-6uhymu5y17pjr47gp9zdvgf3bd{cursor:not-allowed;opacity:.5}.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3{border:1px solid!important;border-color:#bec9d9!important;border-color:var(--PSPDFKit-CropToolbarComponent-button-borderColor)!important;border-radius:3px;cursor:pointer;padding:0 20px;transition:border-color .15s}.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3:hover{border:1px solid!important;border-color:#3d424e!important;border-color:var(--PSPDFKit-CropToolbarComponent-button-isHovered-borderColor)!important}.PSPDFKit-3dr4ygvb5bf362jg5fmzym38e3 span{align-items:center;display:flex;height:32px}.PSPDFKit-4wcvaawwq3jw743mwnp8vtf9df{display:block}.PSPDFKit-7tretxh1ue798paef14ryrb6q6{align-items:center;border-left:1px solid #bec9d9;border-left:1px solid var(--PSPDFKit-CropToolbarComponent-button-isDeselected-border);display:none;justify-content:center;padding-left:0;padding-right:0}.PSPDFKit-649k7389pwcsgmvwdt2yuhu7n3{display:block}.PSPDFKit-3uxhzwe7ph1xrpb89482k7hrd{display:none!important}@media(max-width:768px){.PSPDFKit-4wcvaawwq3jw743mwnp8vtf9df{display:none}.PSPDFKit-7tretxh1ue798paef14ryrb6q6{display:flex;width:47px}.PSPDFKit-7tretxh1ue798paef14ryrb6q6 svg{stroke-width:2px;height:17px;width:17px}.PSPDFKit-48mktwcp2g29yu9eg22p2pbvmh,.PSPDFKit-8dznuywttgafn2v7zy61c6ctg4{padding:0}.PSPDFKit-649k7389pwcsgmvwdt2yuhu7n3{display:none!important}.PSPDFKit-3uxhzwe7ph1xrpb89482k7hrd{display:flex!important}}:root{--color-white:#fff;--color-black:#000;--color-blue900:#0a0167;--color-blue800:#190d94;--color-blue700:#2b1cc1;--color-blue600:#4636e3;--color-blue400:#5e5ceb;--color-blue300:#777cf0;--color-blue200:#8f9bf4;--color-blue100:#a8bff8;--color-blue70:#4537de;--color-blue50:#d3dcff;--color-blue25:#eff4fb;--color-violet800:#462e75;--color-violet600:#5d24cf;--color-violet400:#8858e8;--color-violet100:#d1baff;--color-red900:#4a0013;--color-red800:#74002a;--color-red600:#ab1d41;--color-red300:#ed7d99;--color-red400:#d63960;--color-red100:#f7ced8;--color-red50:#fceaf1;--color-orange800:#7e3b00;--color-orange600:#d46703;--color-orange400:#ff900d;--color-orange100:#ffc78f;--color-yellow800:#805700;--color-yellow600:#e8b500;--color-yellow400:#fad40c;--color-yellow100:#ffee95;--color-yellow25:#fffae1;--color-green800:#385300;--color-green600:#628d06;--color-green400:#89bd1c;--color-green100:#d9efa9;--color-green25:#f5fee3;--color-coolGrey1000:#090c12;--color-coolGrey900:#21242c;--color-coolGrey900_alpha05:rgba(33,36,44,.5);--color-coolGrey900_alpha02:rgba(33,36,44,.2);--color-coolGrey850:#2b2e36;--color-coolGrey850_alpha01:rgba(43,46,54,.1);--color-coolGrey800:#3d424e;--color-coolGrey800_alpha02:rgba(61,66,78,.2);--color-coolGrey800_alpha05:rgba(61,66,78,.5);--color-coolGrey700:#4d525d;--color-coolGrey600:#606671;--color-coolGrey500:#717885;--color-coolGrey400:#848c9a;--color-coolGrey400_alpha05:rgba(132,140,154,.5);--color-coolGrey200:#bec9d9;--color-coolGrey100:#d8dfeb;--color-coolGrey100_alpha05:rgba(216,223,235,.5);--color-coolGrey100_alpha25:rgba(216,223,235,.25);--color-coolGrey50:#f0f3f9;--color-coolGrey37:#f6f8fa;--color-coolGrey25:#fcfdfe}.PSPDFKit-8dznuywttgafn2v7zy61c6ctg4{flex-direction:row;padding:0}.PSPDFKit-width-md .PSPDFKit-8dznuywttgafn2v7zy61c6ctg4,.PSPDFKit-width-sm .PSPDFKit-8dznuywttgafn2v7zy61c6ctg4,.PSPDFKit-width-xs .PSPDFKit-8dznuywttgafn2v7zy61c6ctg4{flex-direction:row-reverse}.PSPDFKit-6y1y58bqs19k64pa2axe4rgkgj{cursor:pointer;display:inline-flex;height:100%;margin:0;padding:10px}.PSPDFKit-7dgtuxjugwv9wr6k94pfvchgzt{background:#4636e3!important;color:#fff}.PSPDFKit-3nf3mgqa1mk6xs968ztk8n1ped{display:flex;flex:1}.PSPDFKit-7kz6k3947em3q3sp47s5cd3u3m{flex-shrink:unset;width:max-content} +.PSPDFKit-5y28nfkmugyqqwevkxsjrpvq3c{align-items:center;color:#848c9a;color:var(--PSPDFKit-Error-color);height:100%;justify-content:center}.PSPDFKit-3gr2ksq6zccy3zdrbnfy8nh55j,.PSPDFKit-5y28nfkmugyqqwevkxsjrpvq3c{display:flex}.PSPDFKit-3gr2ksq6zccy3zdrbnfy8nh55j{align-items:stretch;background:#fff;background:var(--PSPDFKit-Error-background);border-radius:6px;box-shadow:0 3px 3px rgb(61 66 78 / 0.5);box-shadow:0 3px 3px var(--PSPDFKit-shadow-color);max-width:670px}.PSPDFKit-3gr2ksq6zccy3zdrbnfy8nh55j a{color:#4d525d;color:var(--PSPDFKit-Error-hyperlink-color);text-decoration:underline}.PSPDFKit-3gr2ksq6zccy3zdrbnfy8nh55j span{line-height:30px}.PSPDFKit-6eb3kcqgd5y9q8r7d8xtqz4649{align-items:center;background-color:#d63960;background-color:var(--PSPDFKit-Error-error-background);border-bottom-left-radius:6px;border-top-left-radius:6px}.PSPDFKit-6eb3kcqgd5y9q8r7d8xtqz4649,.PSPDFKit-scv92vgvrnxnyc284zcn6hjk3{display:flex;padding:15px 20px}.PSPDFKit-scv92vgvrnxnyc284zcn6hjk3{flex-direction:column}.PSPDFKit-4wf98g1ha47f4tw6p5xpr51nn7{fill:#d63960;fill:var(--PSPDFKit-Error-icon-color);background-color:#fff;background-color:var(--PSPDFKit-Error-icon-background);border-radius:12px;height:24px;width:24px} +.PSPDFKit-87k1yb2m56xugj11pvrn2epwmr{max-width:422px}.PSPDFKit-3s4vm3fcksqsg2getabuj9bha4{position:absolute}.PSPDFKit-3s4vm3fcksqsg2getabuj9bha4>svg{height:48px;width:48px}.PSPDFKit-3s4vm3fcksqsg2getabuj9bha4>svg g{fill:currentColor;stroke:currentColor}.PSPDFKit-g3g187c7zezz65j88wexd218w{color:#5e5ceb;color:var(--PSPDFKit-PasswordModal-icon--regular-color)}.PSPDFKit-568kqv9a573y6cm3j1y6xs5v62{color:#d63960;color:var(--PSPDFKit-PasswordModal-icon--error-color)}.PSPDFKit-287v657mcme5ewwt57t23w5qyh{color:#89bd1c;color:var(--PSPDFKit-PasswordModal-icon--success-color)}.PSPDFKit-3m2rqse7rv63dfkwgvcjy19997{height:48px;position:relative;width:48px}.PSPDFKit-3eq8gr4w2wkxz8kcemn3feckgz{background:#d63960;background:var(--PSPDFKit-PasswordModal-message--alert-background);border-bottom:2px solid #ab1d41;border-bottom:2px solid var(--PSPDFKit-PasswordModal-message--alert-border);border-top:2px solid #ab1d41;border-top:2px solid var(--PSPDFKit-PasswordModal-message--alert-border);color:#fff;color:var(--PSPDFKit-PasswordModal-message--alert-color)}.PSPDFKit-7qjt9yezkrce9kdkn11wwk7ntz{display:flex;justify-content:flex-end}.PSPDFKit-5r5qzyzhnat22bqdytrnu5ageu{opacity:0;transform:scale(.5)}.PSPDFKit-678vkyyxar4zfmqvz19pk1gg7c{transition:all .3s cubic-bezier(.895,.03,.685,.22)}.PSPDFKit-678vkyyxar4zfmqvz19pk1gg7c,.PSPDFKit-g25477hjsg4skgtpfrw93sj7u{opacity:1;transform:scale(1)}.PSPDFKit-3vp9fnny3e7hxta8yxd6jaxea4{opacity:0;transform:scale(.5);transition:all .3s cubic-bezier(.165,.84,.44,1)} +.PSPDFKit-7386u3hksvwqrk1txdsf6yjwh7{align-items:center;display:flex;height:100%;justify-content:center;width:100%} +.PSPDFKit-2ef7r6efsekvzma2acw68z2wsd{position:absolute;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-2ef7r6efsekvzma2acw68z2wsd.PSPDFKit-74yvexyjr8t4ns42jhvu6euzjz canvas,.PSPDFKit-2ef7r6efsekvzma2acw68z2wsd.PSPDFKit-74yvexyjr8t4ns42jhvu6euzjz img{image-rendering:-webkit-optimize-contrast}.PSPDFKit-2ef7r6efsekvzma2acw68z2wsd.PSPDFKit-74yvexyjr8t4ns42jhvu6euzjz.PSPDFKit-8qymj2kknqsa216hrbd9qhuh5b canvas,.PSPDFKit-2ef7r6efsekvzma2acw68z2wsd.PSPDFKit-74yvexyjr8t4ns42jhvu6euzjz.PSPDFKit-8qymj2kknqsa216hrbd9qhuh5b img,.PSPDFKit-2ef7r6efsekvzma2acw68z2wsd.PSPDFKit-8yevkzm64ywt19z5trdgvvvu8n.PSPDFKit-8qymj2kknqsa216hrbd9qhuh5b canvas,.PSPDFKit-2ef7r6efsekvzma2acw68z2wsd.PSPDFKit-8yevkzm64ywt19z5trdgvvvu8n.PSPDFKit-8qymj2kknqsa216hrbd9qhuh5b img{image-rendering:pixelated}.PSPDFKit-2ef7r6efsekvzma2acw68z2wsd.PSPDFKit-43q2x5xuukayeyf9pnsf3s8vxv.PSPDFKit-8qymj2kknqsa216hrbd9qhuh5b canvas,.PSPDFKit-2ef7r6efsekvzma2acw68z2wsd.PSPDFKit-43q2x5xuukayeyf9pnsf3s8vxv.PSPDFKit-8qymj2kknqsa216hrbd9qhuh5b img{image-rendering:crisp-edges}.PSPDFKit-4uahg5akq9ua7h3n6r45t9pnv1{background:#fff} +.PSPDFKit-4hndx219v53cj6xkbemwdxxfbp{bottom:0;left:0;position:relative;right:0;top:0}.PSPDFKit-6q1j1fe91dp7b7uxu21ghbjvam{background-color:#fad40c;background-color:var(--PSPDFKit-SearchHighlight-background);mix-blend-mode:multiply;position:absolute}.PSPDFKit-6q1j1fe91dp7b7uxu21ghbjvam.PSPDFKit-2m3zj91uw1smew17zjaj1g3xfx{background-color:#e8b500;background-color:var(--PSPDFKit-SearchHighlight-isFocused-background)} +.PSPDFKit-3tr6q51qastpckz1pg3zrtz3rw{bottom:0;cursor:zoom-in;left:0;right:0;top:0;touch-action:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-3tr6q51qastpckz1pg3zrtz3rw,.PSPDFKit-2t63tjx7ps8wa34htwyhg1avhr{position:absolute}.PSPDFKit-2t63tjx7ps8wa34htwyhg1avhr{shape-rendering:crispEdges}.PSPDFKit-zxyvguvek2ym1z7dekdnq5v1z{fill:#a8bff8;fill:var(--PSPDFKit-MarqueeZoom-rect-fill);stroke-width:1px;stroke-dasharray:5;stroke:#000;opacity:.5}.PSPDFKit-brx4byv7qnas5ky1tfgt6ba6x{fill:transparent;stroke-width:1px;stroke-dasharray:5;stroke-dashoffset:5;stroke:#fff;opacity:.5} +:root{--color-white:#fff;--color-black:#000;--color-blue900:#0a0167;--color-blue800:#190d94;--color-blue700:#2b1cc1;--color-blue600:#4636e3;--color-blue400:#5e5ceb;--color-blue300:#777cf0;--color-blue200:#8f9bf4;--color-blue100:#a8bff8;--color-blue70:#4537de;--color-blue50:#d3dcff;--color-blue25:#eff4fb;--color-violet800:#462e75;--color-violet600:#5d24cf;--color-violet400:#8858e8;--color-violet100:#d1baff;--color-red900:#4a0013;--color-red800:#74002a;--color-red600:#ab1d41;--color-red300:#ed7d99;--color-red400:#d63960;--color-red100:#f7ced8;--color-red50:#fceaf1;--color-orange800:#7e3b00;--color-orange600:#d46703;--color-orange400:#ff900d;--color-orange100:#ffc78f;--color-yellow800:#805700;--color-yellow600:#e8b500;--color-yellow400:#fad40c;--color-yellow100:#ffee95;--color-yellow25:#fffae1;--color-green800:#385300;--color-green600:#628d06;--color-green400:#89bd1c;--color-green100:#d9efa9;--color-green25:#f5fee3;--color-coolGrey1000:#090c12;--color-coolGrey900:#21242c;--color-coolGrey900_alpha05:rgba(33,36,44,.5);--color-coolGrey900_alpha02:rgba(33,36,44,.2);--color-coolGrey850:#2b2e36;--color-coolGrey850_alpha01:rgba(43,46,54,.1);--color-coolGrey800:#3d424e;--color-coolGrey800_alpha02:rgba(61,66,78,.2);--color-coolGrey800_alpha05:rgba(61,66,78,.5);--color-coolGrey700:#4d525d;--color-coolGrey600:#606671;--color-coolGrey500:#717885;--color-coolGrey400:#848c9a;--color-coolGrey400_alpha05:rgba(132,140,154,.5);--color-coolGrey200:#bec9d9;--color-coolGrey100:#d8dfeb;--color-coolGrey100_alpha05:rgba(216,223,235,.5);--color-coolGrey100_alpha25:rgba(216,223,235,.25);--color-coolGrey50:#f0f3f9;--color-coolGrey37:#f6f8fa;--color-coolGrey25:#fcfdfe}.PSPDFKit-21tdya9vwjkb9467d89dpj3dz5{bottom:0;left:0;position:absolute;right:0;top:0}.PSPDFKit-6hysu1r6uydnrqrhfk1pps1pr8,.PSPDFKit-7dhdpumpuhp8jg295a51ffsd9j,.PSPDFKit-8csd1vhppnqgu7uyk8b5mf7czf{border:1px dashed #4636e3;border:1px dashed var(--color-blue600);position:absolute}.PSPDFKit-7dhdpumpuhp8jg295a51ffsd9j{height:2px;width:100%}.PSPDFKit-8csd1vhppnqgu7uyk8b5mf7czf{height:100%;width:2px}.PSPDFKit-68un8hbc6qvj9x9s9g5q6t21ve,.PSPDFKit-5ah6dzjmznmmkdumesdneq7wz7,.PSPDFKit-6fnpakckpk47tsnm8uz3m17u6y,.PSPDFKit-4yuxudxn8gpqg5ask3mtg2zakk,.PSPDFKit-51yew4ehdjn7cbsyfq5njb69ma,.PSPDFKit-41fvab9cypgzqfakdc8v95dcb3,.PSPDFKit-7w2dawdet2j2kdxg5sat88d5bq,.PSPDFKit-ecnxn5u4wzb7hzydwhayukxj,.PSPDFKit-737nkwy7w9s6vc4dtbb23bs54a{background:rgba(69,55,222,.2);border:2px solid #4537de;border:2px solid var(--color-blue70);height:40px;position:absolute}.PSPDFKit-68un8hbc6qvj9x9s9g5q6t21ve>div,.PSPDFKit-68un8hbc6qvj9x9s9g5q6t21ve>span,.PSPDFKit-5ah6dzjmznmmkdumesdneq7wz7>div,.PSPDFKit-5ah6dzjmznmmkdumesdneq7wz7>span,.PSPDFKit-6fnpakckpk47tsnm8uz3m17u6y>div,.PSPDFKit-6fnpakckpk47tsnm8uz3m17u6y>span,.PSPDFKit-4yuxudxn8gpqg5ask3mtg2zakk>div,.PSPDFKit-4yuxudxn8gpqg5ask3mtg2zakk>span,.PSPDFKit-51yew4ehdjn7cbsyfq5njb69ma>div,.PSPDFKit-51yew4ehdjn7cbsyfq5njb69ma>span,.PSPDFKit-41fvab9cypgzqfakdc8v95dcb3>div,.PSPDFKit-41fvab9cypgzqfakdc8v95dcb3>span,.PSPDFKit-7w2dawdet2j2kdxg5sat88d5bq>div,.PSPDFKit-7w2dawdet2j2kdxg5sat88d5bq>span,.PSPDFKit-ecnxn5u4wzb7hzydwhayukxj>div,.PSPDFKit-ecnxn5u4wzb7hzydwhayukxj>span,.PSPDFKit-737nkwy7w9s6vc4dtbb23bs54a>div,.PSPDFKit-737nkwy7w9s6vc4dtbb23bs54a>span{display:none}.PSPDFKit-68un8hbc6qvj9x9s9g5q6t21ve{width:120px}.PSPDFKit-4yuxudxn8gpqg5ask3mtg2zakk,.PSPDFKit-7w2dawdet2j2kdxg5sat88d5bq,.PSPDFKit-ecnxn5u4wzb7hzydwhayukxj{width:220px}.PSPDFKit-51yew4ehdjn7cbsyfq5njb69ma{height:150px;width:220px}.PSPDFKit-41fvab9cypgzqfakdc8v95dcb3{border-radius:50%}.PSPDFKit-5ah6dzjmznmmkdumesdneq7wz7,.PSPDFKit-41fvab9cypgzqfakdc8v95dcb3{height:32px;width:32px}.PSPDFKit-7w2dawdet2j2kdxg5sat88d5bq{display:flex;height:150px}.PSPDFKit-7w2dawdet2j2kdxg5sat88d5bq>div{align-self:flex-start;background-color:#4636e3;background-color:var(--color-blue600);color:#fff;color:var(--color-white);display:inline-block;font-size:14px;padding:2px 8px}.PSPDFKit-6fnpakckpk47tsnm8uz3m17u6y{align-items:center;display:flex;justify-content:flex-end;padding-right:8px;width:220px}.PSPDFKit-6fnpakckpk47tsnm8uz3m17u6y>span{color:#4636e3;color:var(--color-blue600);display:inline-flex;height:16px;width:16px}.PSPDFKit-4yuxudxn8gpqg5ask3mtg2zakk{align-items:center;display:flex;justify-content:flex-end;padding-right:8px;width:220px}.PSPDFKit-4yuxudxn8gpqg5ask3mtg2zakk>span{color:#4636e3;color:var(--color-blue600);display:inline-flex;height:16px;transform:translateX(35px);width:16px}.PSPDFKit-4yuxudxn8gpqg5ask3mtg2zakk>span svg{fill:#4636e3;fill:var(--color-blue600)} +.PSPDFKit-nxtuykwdsyjh6y7z8brn21b7.PSPDFKit-7qanggak6kh1whzh64vrkx4krz,.PSPDFKit-nxtuykwdsyjh6y7z8brn21b7.PSPDFKit-6jc5m1b3ck8fqehqqd9b7th6gt,.PSPDFKit-nxtuykwdsyjh6y7z8brn21b7.PSPDFKit-7mzzrbnpvegtq3qm6jswkervc3,.PSPDFKit-nxtuykwdsyjh6y7z8brn21b7.PSPDFKit-f7jcky6yaxh4m5617uaekk3cj,.PSPDFKit-nxtuykwdsyjh6y7z8brn21b7:hover{border-color:#4636e3;border-color:var(--color-blue600);border-style:solid}.PSPDFKit-nxtuykwdsyjh6y7z8brn21b7.PSPDFKit-7mzzrbnpvegtq3qm6jswkervc3{background-color:rgba(69,55,222,.1)}.PSPDFKit-nxtuykwdsyjh6y7z8brn21b7:not(.PSPDFKit-7qanggak6kh1whzh64vrkx4krz) textarea:hover{cursor:pointer}.PSPDFKit-nxtuykwdsyjh6y7z8brn21b7.PSPDFKit-7mzzrbnpvegtq3qm6jswkervc3 textarea:hover,.PSPDFKit-nxtuykwdsyjh6y7z8brn21b7.PSPDFKit-f7jcky6yaxh4m5617uaekk3cj textarea:hover{cursor:move}.PSPDFKit-nxtuykwdsyjh6y7z8brn21b7{border:thin dashed #777cf0;border:thin dashed var(--color-blue300);box-sizing:initial!important;margin-left:-1px;margin-top:-1px}.PSPDFKit-3mngkstqybyrr7k8f5kgqf5ksn{background:none;border:none;cursor:pointer;margin:0;padding:0}.PSPDFKit-7eywttjpush5dwpejjm2b1edg3{color:#ff900d;color:var(--color-orange400);display:block}.PSPDFKit-7eywttjpush5dwpejjm2b1edg3,.PSPDFKit-7eywttjpush5dwpejjm2b1edg3>svg{height:100%;width:100%}@keyframes PSPDFKit-7kwgpn262dubfp6s5nxvyrt295{0%{color:#000}to{color:transparent}}.PSPDFKit-4tgb9n39czt6qk8ajacqjv5xdj{animation:PSPDFKit-7kwgpn262dubfp6s5nxvyrt295 1.2s steps(2,jump-none) 0s infinite normal both running}.PSPDFKit-6jc5m1b3ck8fqehqqd9b7th6gt{outline:3px solid #8f9bf4;outline:3px solid var(--color-blue200);outline-offset:1px}.PSPDFKit-7mpkqw7nbbw6tju4s46mm141sc{padding:.25rem;position:absolute;top:calc(50% - .6875rem)}.PSPDFKit-7mpkqw7nbbw6tju4s46mm141sc:hover{cursor:ew-resize}.PSPDFKit-3wksyn2d8kqsw1kg6b3vqztpfr{background-color:#4636e3;background-color:var(--color-blue600);border:1px solid #fff;border:1px solid var(--color-white);border-radius:50%;box-shadow:0 4px 8px rgba(0,0,0,.15),0 1px 3px rgba(0,0,0,.3);height:.875rem;width:.875rem}.PSPDFKit-2dv6u2bf1w5g4e17qeenc78qhu{right:-.6875rem}.PSPDFKit-4fvhxnqd5sg3bad4pr5gsqshv2{left:-.6875rem} +.PSPDFKit-5e6tnwkxw9ka415svsdkkptcvx{background:#fff;display:block;overflow:hidden;position:relative}.PSPDFKit-5e6tnwkxw9ka415svsdkkptcvx.PSPDFKit-5scxecvmyvz7wahnvpvhqf1u6n{box-shadow:3px 3px 8px rgba(0,0,0,.1)}.PSPDFKit-5e6tnwkxw9ka415svsdkkptcvx.PSPDFKit-4f127napxmw48wj78u1h4t24d5{box-shadow:3px -3px 8px rgba(0,0,0,.1)}.PSPDFKit-5e6tnwkxw9ka415svsdkkptcvx.PSPDFKit-6ncgj8zzkc4v2az5nh5414n95b{box-shadow:-3px -3px 8px rgba(0,0,0,.1)}.PSPDFKit-5e6tnwkxw9ka415svsdkkptcvx.PSPDFKit-2a2y9pvb8su899gfj1wsz2ta6n{box-shadow:-3px 3px 8px rgba(0,0,0,.1)}.PSPDFKit-863nmkfmtuh7z8chsq5cfw6y9h{left:0;pointer-events:none;position:absolute;top:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-q7ejbjhybhuyqgmj1yb6a4f56 ::selection{background:transparent!important;color:transparent!important}.PSPDFKit-browser-system-android .PSPDFKit-q7ejbjhybhuyqgmj1yb6a4f56 span::selection{background:transparent;color:transparent}.PSPDFKit-browser-system-windows .PSPDFKit-q7ejbjhybhuyqgmj1yb6a4f56 ::selection{background:rgba(18,61,112,.05)!important}.PSPDFKit-browser-system-windows .PSPDFKit-q7ejbjhybhuyqgmj1yb6a4f56 span::selection{background:transparent;color:transparent}.PSPDFKit-8hbgq8hdkhtfm5abztpkrkdp87{bottom:0;left:0;pointer-events:none;position:absolute;right:0;top:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-87pd6mukheqbugejr1g1n3es7w{cursor:none} +.PSPDFKit-34rw6dd52chrrk7xv2jr6zquew{height:100%;left:0;position:absolute;top:0;width:100%}.PSPDFKit-3eg3ptc58eu1dbczvddeqqmn75{stroke:#4537de;stroke:var(--color-blue70);stroke-width:1px} +.PSPDFKit-4fy2py5absazy7wc1atsvf39uh{-webkit-overflow-scrolling:touch;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);left:0;position:absolute;text-align:left;text-align:initial;top:0;transition:transform .3s cubic-bezier(.215,.61,.355,1)}.PSPDFKit-8skwhax4ksk9yd3zuznq1wyjxx{background-color:#f6f8fa;background-color:var(--PSPDFKit-Viewport-background);bottom:0;left:0;overflow-y:auto;position:fixed;right:0;top:auto}.PSPDFKit-846k3gp7b8ystvpdat7kchu6cf{border-radius:6px;box-shadow:0 .75px 1.5px rgba(0,0,0,.15);position:absolute;transition:all .3s cubic-bezier(.215,.61,.355,1);transition-property:transform,box-shadow}.PSPDFKit-846k3gp7b8ystvpdat7kchu6cf:not(.PSPDFKit-57ma556dgg7p25vkpwgypaprqm){cursor:pointer}.PSPDFKit-846k3gp7b8ystvpdat7kchu6cf:hover{box-shadow:0 4px 6px rgba(43,50,59,.2),0 6px 16px rgba(43,50,59,.1)}.PSPDFKit-57ma556dgg7p25vkpwgypaprqm,.PSPDFKit-57ma556dgg7p25vkpwgypaprqm:hover{box-shadow:0 16px 32px rgba(43,50,59,.25),0 16px 32px rgba(43,50,59,.1);z-index:1}.PSPDFKit-62tyf1xqx4kgnu144gt5uy9j9p{background-color:#fff;background-color:var(--PSPDFKit-Comment-thread-backgroundColor);border-radius:6px;color:#3d424e;color:var(--PSPDFKit-Comment-thread-color);height:100%;width:100%}.PSPDFKit-8skwhax4ksk9yd3zuznq1wyjxx .PSPDFKit-62tyf1xqx4kgnu144gt5uy9j9p{border:1px solid #d8dfeb;border:1px solid var(--PSPDFKit-Comment-separatorBold-color)}.PSPDFKit-6n4vf5zb3fds69s2uvw3xyfaxk{padding:0.8125em;padding:var(--PSPDFKit-spacing-5)}.PSPDFKit-6abtkbxbe387rzj3weks85eubv{border-top:1px solid #f6f8fa;border-top:1px solid var(--PSPDFKit-Comment-separator-color);margin-left:0.8125em;margin-left:var(--PSPDFKit-spacing-5)}.PSPDFKit-8gpdea9u4mgzacra4wx6vq3mxh{border-top:1px solid #d8dfeb;border-top:1px solid var(--PSPDFKit-Comment-separatorBold-color)}.PSPDFKit-83aay96yymctba7rmvy6wzwfzs{align-items:center;display:flex;line-height:1}.PSPDFKit-th67kk1b8w7umaeh289rjkc6s{font-weight:600;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.PSPDFKit-6kppppmn52ajrv8ahh7vyaqspg{color:#4636e3;color:var(--PSPDFKit-Comment-accent-color);display:block;font-size:0.75rem;font-size:var(--PSPDFKit-fontSize-2);font-weight:500;margin-top:0.609em;margin-top:var(--PSPDFKit-spacing-6)}.PSPDFKit-e5y5twy8xx7ngqc3p762cs3ca{align-items:center;border:1px solid #4636e3;border:1px solid var(--PSPDFKit-Comment-accent-color);border-radius:100%;display:flex;height:32px;justify-content:center;margin-right:8px;overflow:hidden;width:32px}.PSPDFKit-e5y5twy8xx7ngqc3p762cs3ca,.PSPDFKit-8xau5mfzb7xbtsd67bf4f7amph{flex-shrink:0}.PSPDFKit-e5y5twy8xx7ngqc3p762cs3ca img{background-color:#d8dfeb;background-color:var(--PSPDFKit-Comment-footer-color);border-radius:100%;display:block;height:32px;width:32px}.PSPDFKit-2uymwug35415u37jmmjeckcf66{margin-bottom:0;margin-top:0.609em;margin-top:var(--PSPDFKit-spacing-6);white-space:pre-wrap;word-break:break-word}.PSPDFKit-2uymwug35415u37jmmjeckcf66 a{color:#777cf0;color:var(--color-blue300);text-decoration:underline}.PSPDFKit-2uymwug35415u37jmmjeckcf66 p:empty:after,.PSPDFKit-2uymwug35415u37jmmjeckcf66 p>span:empty:after{content:" "}.PSPDFKit-2uymwug35415u37jmmjeckcf66 [data-user-id]{color:#4636e3;color:var(--PSPDFKit-Comment-Mention-color)}.PSPDFKit-2uymwug35415u37jmmjeckcf66 [data-user-id]:before{content:"@"}.PSPDFKit-browser-engine-webkit .PSPDFKit-3setj6xgj3k3aecpjfhn26sbqn{max-height:calc(1.4rem*3);max-height:calc(var(--PSPDFKit-lineHeight-1)*3)}.PSPDFKit-3setj6xgj3k3aecpjfhn26sbqn{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.PSPDFKit-2uymwug35415u37jmmjeckcf66 p{margin:0}.PSPDFKit-2uymwug35415u37jmmjeckcf66 p p:empty:after,.PSPDFKit-2uymwug35415u37jmmjeckcf66 p p>span:empty:after{content:" "}.PSPDFKit-3jv55mynpjvcvxarj2awcxbc4q{align-items:center;display:flex;flex-direction:row;justify-content:space-between;margin-top:0.46875em;margin-top:var(--PSPDFKit-spacing-7)}.PSPDFKit-3wf8kzxdewz91bkynxz9nf13vn{display:inline-block}.PSPDFKit-526mgvw6wxrzqu5nzg18xsexvq{background-color:#fff;background-color:var(--PSPDFKit-Comment-footer-backgroundColor);border-radius:0 0 5px 5px;border-top:1px solid #d8dfeb;border-top:1px solid var(--PSPDFKit-Comment-separatorBold-color);display:flex;flex-direction:column;font-size:0.75rem;font-size:var(--PSPDFKit-fontSize-2);font-weight:500;padding:0.609em 0.8125em;padding:var(--PSPDFKit-spacing-6) var(--PSPDFKit-spacing-5)}.PSPDFKit-526mgvw6wxrzqu5nzg18xsexvq:first-child{border-radius:6px;border-top:0}.PSPDFKit-37dn8ce9d95692mrtn658uddbn{align-items:center;display:flex;flex-direction:row;justify-content:space-between}.PSPDFKit-728a47tmgr74fsteq92f378fyg{color:#4636e3;color:var(--PSPDFKit-Comment-accent-color);cursor:pointer}.PSPDFKit-8bcg3139te3u6y5mk63jjafky4{background-color:var(--PSPDFKit-Comment-editor-backgroundColor);border-bottom:1px solid #bec9d9;border-bottom:1px solid var(--PSPDFKit-Comment-editor-borderColor);border-radius:3px 3px 0 0;color:inherit;display:block;font-size:inherit;min-height:115px;outline-color:#4636e3;outline-color:var(--PSPDFKit-Comment-accent-color);padding:0.609em;padding:var(--PSPDFKit-spacing-6);resize:none;white-space:pre-wrap;width:100%}.PSPDFKit-8bcg3139te3u6y5mk63jjafky4 [contenteditable]{min-height:inherit}.PSPDFKit-8bcg3139te3u6y5mk63jjafky4 [data-user-id]{background-color:transparent;color:#4636e3;color:var(--PSPDFKit-Comment-Mention-color)}.PSPDFKit-gwvf3p8zpgqc2xerb19dqrnes{font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);padding:0.8125em;padding:var(--PSPDFKit-spacing-5);width:100%}.PSPDFKit-3a6az8snvjp28tbbeuzbhb8g3j{align-items:center;display:flex;flex-direction:row;justify-content:space-between}.PSPDFKit-78r8tk3h18d8s38nbbx1uqszas{align-items:center;background:none;border:none;color:#3d424e;color:var(--PSPDFKit-Comment-thread-color);display:flex;height:26px;justify-content:center;margin-left:8px;padding:0}.PSPDFKit-78r8tk3h18d8s38nbbx1uqszas span{border-radius:3px;height:26px;padding:1px;width:26px}.PSPDFKit-78r8tk3h18d8s38nbbx1uqszas:hover{cursor:pointer}.PSPDFKit-78r8tk3h18d8s38nbbx1uqszas:hover:not(.PSPDFKit-564hkgdsdrr48xx9gtkeb7dqfn) span{background-color:#f0f3f9;background-color:var(--PSPDFKit-Comment-icon-backgroundColor-hover)}.PSPDFKit-564hkgdsdrr48xx9gtkeb7dqfn span{background-color:#4636e3;background-color:var(--PSPDFKit-Comment-icon-backgroundColorActive);color:#fff;color:var(--PSPDFKit-Comment-icon-strokeColorActive)}.PSPDFKit-89d8rmjrbxpgn7uejbavm1wqax:focus,.PSPDFKit-89d8rmjrbxpgn7uejbavm1wqax:hover{color:#d63960;color:var(--PSPDFKit-Comment-deleteIcon-color)}.PSPDFKit-5y5p3r6ykjn2ayvbvjkrfqphey{height:24px}.PSPDFKit-37gwnzwf4ca3vasdqrh9p66p1v{align-items:center;border-radius:3px;display:flex;padding:6px 8px}.PSPDFKit-8nc3tp5w5tk5jedzmbawt81rb3{margin-top:15px}.PSPDFKit-6jv6xmp6n2fxwyfe3phh1xct3z{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;border-radius:50%;height:24px;margin-left:8px;padding:0;width:24px}.PSPDFKit-6jv6xmp6n2fxwyfe3phh1xct3z:hover{cursor:pointer}.PSPDFKit-6jv6xmp6n2fxwyfe3phh1xct3z[disabled]{background-color:#bec9d9;background-color:var(--PSPDFKit-Comment-editingTextButtonIconDisabled-background);pointer-events:none}.PSPDFKit-4dtxkws1vg1m6nx9tv4e33tefm svg{color:#4636e3;color:var(--PSPDFKit-Comment-editingTextSaveButton-color)}.PSPDFKit-4dtxkws1vg1m6nx9tv4e33tefm:hover svg{color:#2b1cc1;color:var(--PSPDFKit-Comment-editingTextSaveButtonHover-color)}.PSPDFKit-7n31ebvwcswtxak829vc39yhjg{background-color:#4636e3;background-color:var(--PSPDFKit-Comment-editingTextSaveButton-color)}.PSPDFKit-7n31ebvwcswtxak829vc39yhjg svg{color:#fff;color:var(--PSPDFKit-Comment-editingTextButtonIcon-color)}.PSPDFKit-7n31ebvwcswtxak829vc39yhjg:hover{background-color:#2b1cc1;background-color:var(--PSPDFKit-Comment-editingTextSaveButtonHover-color)}.PSPDFKit-2bmschmeqc7h7vpt1u1ks4ekab{padding-top:1px}.PSPDFKit-2bmschmeqc7h7vpt1u1ks4ekab svg{color:#848c9a;color:var(--PSPDFKit-Comment-editingTextCancelButton-color)}.PSPDFKit-2bmschmeqc7h7vpt1u1ks4ekab:hover svg{color:#717885;color:var(--PSPDFKit-Comment-editingTextCancelButtonHover-color)}.PSPDFKit-58hy6741cqa5n2g3pqaermn97s{background-color:#fcfdfe;background-color:var(--PSPDFKit-Comment-Toolbar-background);border:1px solid #f0f3f9;border:1px solid var(--PSPDFKit-Comment-Toolbar-borderColor);border-radius:3px;box-shadow:0 1px 2px 0 #2b323b33, 0 3px 4px 0 #2b323b0d;box-shadow:var(--PSPDFKit-Comment-Toolbar-backdrop);display:flex;flex-direction:row}.PSPDFKit-7azr74fz3pqmr7w95zv8xmz3ht{align-items:center;background-color:transparent;border:none;cursor:pointer;display:flex;height:38px;justify-content:center}.PSPDFKit-7azr74fz3pqmr7w95zv8xmz3ht>span{display:flex}.PSPDFKit-7azr74fz3pqmr7w95zv8xmz3ht svg{color:#3d424e;color:var(--PSPDFKit-Comment-thread-color);height:24px;width:24px}.PSPDFKit-7azr74fz3pqmr7w95zv8xmz3ht.PSPDFKit-5ege4ny766r38mq51n6h553ksm svg,.PSPDFKit-7azr74fz3pqmr7w95zv8xmz3ht[data-state=on] svg{color:#4636e3;color:var(--PSPDFKit-Comment-Toolbar-Selected-Color)}.PSPDFKit-7azr74fz3pqmr7w95zv8xmz3ht[data-state=open]{opacity:.5}.PSPDFKit-2vt7cft41fzxgd9tpfhgpj5wba{margin-left:8px}.PSPDFKit-2vt7cft41fzxgd9tpfhgpj5wba svg{color:#848c9a;color:var(--PSPDFKit-Comment-editingTextCancelButton-color);width:10px}.PSPDFKit-89u863ebnbu84fn5v8hhghh83x{align-items:center;display:flex;flex-direction:row}.PSPDFKit-3e81entadshw7dt4gtbeuem2xu{background-color:#f0f3f9;background-color:var(--PSPDFKit-Comment-Toolbar-borderColor);width:1px}.PSPDFKit-2nb7drgzfpu5sppaazuvdaas8q{background-color:#fcfdfe;background-color:var(--PSPDFKit-Comment-Toolbar-background);border:1px solid #f0f3f9;border:1px solid var(--PSPDFKit-Comment-Toolbar-borderColor);border-radius:3px;display:grid;gap:12px;grid-template-columns:repeat(6,1fr);padding:16px;width:200px}.PSPDFKit-27enn5x7u3gsa4w34fz12kuudf{border:1px solid #f0f3f9;border:1px solid var(--PSPDFKit-Comment-ColorPicker-borderColor);border-radius:100%;cursor:pointer;height:16px;width:16px}.PSPDFKit-27enn5x7u3gsa4w34fz12kuudf[data-state=checked]{outline:2px solid #4636e3;outline:2px solid var(--PSPDFKit-Comment-linkEditor-buttonText-color)}.PSPDFKit-7cw46tuwy1qkcm76hq7uwx4ts8{align-items:center;background-color:#606671;background-color:var(--color-coolGrey600);background-image:linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%,#000),linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%,#000);background-image:linear-gradient(45deg,var(--color-black) 25%,transparent 25%,transparent 75%,var(--color-black) 75%,var(--color-black)),linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%,#000);background-position:0 0,4px 4px;background-size:8px 8px;display:flex;justify-content:center}.PSPDFKit-7cw46tuwy1qkcm76hq7uwx4ts8>div{background-color:#ec2d67;border-radius:2px;height:13px;transform:rotate(45deg);width:3px}.PSPDFKit-3c59qxsr59e1naufh4mu6t8e1m{background-color:#f0f3f9;background-color:var(--PSPDFKit-Comment-linkEditor-backgroundColor);border-radius:4px;box-shadow:0 3px 4px rgba(43,50,59,.05),0 1px 2px rgba(43,50,59,.2);min-width:360px;overflow:hidden}.PSPDFKit-3c59qxsr59e1naufh4mu6t8e1m,.PSPDFKit-3c59qxsr59e1naufh4mu6t8e1m>div{display:flex;flex-direction:column}.PSPDFKit-3c59qxsr59e1naufh4mu6t8e1m>div{background-color:#fff;background-color:var(--PSPDFKit-Comment-footer-backgroundColor);border-bottom:1px solid #d8dfeb;border-bottom:1px solid var(--PSPDFKit-Comment-linkEditor-borderColor);border-top:1px solid #d8dfeb;border-top:1px solid var(--PSPDFKit-Comment-linkEditor-borderColor);color:#3d424e;color:var(--PSPDFKit-Comment-linkEditor-inputLabel-color);padding:8px 16px 24px}.PSPDFKit-3c59qxsr59e1naufh4mu6t8e1m label{font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3)}.PSPDFKit-3c59qxsr59e1naufh4mu6t8e1m input{all:unset;background-color:#f0f3f9;background-color:var(--PSPDFKit-Comment-linkEditor-input-backgroundColor);border:1px solid #bec9d9;border:1px solid var(--PSPDFKit-Comment-linkEditor-input-borderColor);font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);margin-top:4px;padding:8px}.PSPDFKit-3c59qxsr59e1naufh4mu6t8e1m ::-ms-input-placeholder{color:#606671;color:var(--PSPDFKit-Comment-linkEditor-input-placeholder-color)}.PSPDFKit-3c59qxsr59e1naufh4mu6t8e1m ::placeholder{color:#606671;color:var(--PSPDFKit-Comment-linkEditor-input-placeholder-color)}.PSPDFKit-7kqa88wjcucusw944q4td6njjs{all:unset;color:#3d424e;color:var(--PSPDFKit-Comment-thread-color);font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);font-weight:600;padding:16px}.PSPDFKit-45m9kechgpmukdwrz93q4qmrh1{display:flex;flex-direction:row;padding:10px 16px!important}.PSPDFKit-78emxwqr69budhctjscsd4btu4{background-color:#f0f3f9!important;background-color:var(--PSPDFKit-Comment-linkEditor-backgroundColor)!important;border-top:unset!important}.PSPDFKit-739qzd1hv6b6qjjx638p4258gh{align-items:center;column-gap:1em;column-gap:var(--PSPDFKit-spacing-4);display:flex;flex:1;flex-direction:row;overflow:auto}.PSPDFKit-2t2huzxxwcaje7r4h9u6cs8gf8{justify-content:center}.PSPDFKit-4pxvqpszy7wy3zb3hxw4p8qk2r{justify-content:flex-end}.PSPDFKit-3u7etkbahb7gyv7dvxrfvtugfd{text-align:center}.PSPDFKit-23zx2zfm8wum8a6s3vr81nawu9{flex:1}.PSPDFKit-pjs3fa92fehykyz7vs566ebn3{min-width:100px}.PSPDFKit-7h3b7pnecezaz8fgbk4hcbh93n{all:unset;color:#4636e3;color:var(--PSPDFKit-Comment-linkEditor-buttonText-color);cursor:pointer;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);font-weight:600;padding:16px;text-align:center}.PSPDFKit-7h3b7pnecezaz8fgbk4hcbh93n:not(:disabled):hover{background-color:#d8dfeb;background-color:var(--PSPDFKit-Comment-linkEditor-input-backgroundColor-hover)}.PSPDFKit-7h3b7pnecezaz8fgbk4hcbh93n:disabled{cursor:not-allowed;opacity:.5}.PSPDFKit-2cz2cdu6k2usyms4krcjqkgzbu{fill:#f0f3f9;fill:var(--PSPDFKit-Comment-linkEditor-backgroundColor)}.PSPDFKit-52j8fcsvjaarry461zrkhc7yda{border:1px solid #bec9d9;border:1px solid var(--PSPDFKit-Comment-editor-borderColor);border-radius:3px}.PSPDFKit-52j8fcsvjaarry461zrkhc7yda:focus-within{border-color:#4636e3;border-color:var(--PSPDFKit-Comment-accent-color)}.PSPDFKit-4jcbdncntz6ym55txnw16jhkaq .PSPDFKit-62tyf1xqx4kgnu144gt5uy9j9p{border-radius:0}.PSPDFKit-4jcbdncntz6ym55txnw16jhkaq .PSPDFKit-gwvf3p8zpgqc2xerb19dqrnes{border-radius:0;color:#000;color:var(--PSPDFKit-Comment-popover-color)}.PSPDFKit-4jcbdncntz6ym55txnw16jhkaq .PSPDFKit-738g668qas89ty7hkqaw6r3wj8{max-height:calc(100vh - 60px)}.PSPDFKit-4jcbdncntz6ym55txnw16jhkaq .PSPDFKit-4amdryyq1gwctc8eh3eqqdusyx{background-color:#fff;background-color:var(--PSPDFKit-Comment-footer-backgroundColor);padding:0!important}.PSPDFKit-4jcbdncntz6ym55txnw16jhkaq .PSPDFKit-4amdryyq1gwctc8eh3eqqdusyx.PSPDFKit-2k9waz28euj6he95bg1pth1q71{border-top:none}.PSPDFKit-fe2j351tsy55sdctatshf3857{background:linear-gradient( + 180deg, + rgba(255, 255, 255, 0) 0%, + #fff 100% + );background:var(--PSPDFKit-Comment-popover-moreComments-gradient);bottom:0;display:flex;justify-content:center;padding:60px 0 12px;position:sticky}.PSPDFKit-2trdpjz58pc2r42ej2mpjdjggh{align-items:center;background-color:#3d424e;background-color:var(--PSPDFKit-Comment-popover-moreComments-background);border-radius:20px;box-shadow:0 3px 4px rgba(43,50,59,.05),0 1px 2px rgba(43,50,59,.2);color:#fff;color:var(--PSPDFKit-Comment-popover-moreComments-color);display:flex;padding:4px 12px 4px 8px}.PSPDFKit-2trdpjz58pc2r42ej2mpjdjggh:hover{cursor:pointer}.PSPDFKit-2d8udu9h2jqun2hh3rp6ezbyge{background-color:#fff;background-color:var(--PSPDFKit-Comment-popover-moreComments-color);border-radius:50%;display:flex;height:16px;margin-right:8px;width:16px}.PSPDFKit-2d8udu9h2jqun2hh3rp6ezbyge>svg{color:#3d424e;color:var(--PSPDFKit-Comment-popover-moreComments-background);height:16px;rotate:180deg;width:16px}.PSPDFKit-2qrt7yauvpmt7wqd1bfz4r74ju{background-color:#fcfdfe;background-color:var(--PSPDFKit-Comment-Mention-Suggestion-backgroundColor);border:1px solid #f0f3f9;border:1px solid var(--PSPDFKit-Comment-Mention-Suggestion-borderColor);border-radius:3px;max-height:300px;overflow:scroll;width:297px}.PSPDFKit-2qrt7yauvpmt7wqd1bfz4r74ju[data-side=bottom]{transform:translateY(36px)}.PSPDFKit-2qrt7yauvpmt7wqd1bfz4r74ju>div:not(:first-child){border-top:1px solid #f0f3f9;border-top:1px solid var(--PSPDFKit-Comment-Mention-Suggestion-separator)}@media(max-width:480px){.PSPDFKit-2qrt7yauvpmt7wqd1bfz4r74ju{max-height:200px;width:calc(100vw - 26px)}}.PSPDFKit-29ub44u4t1nq9au4r5r8gq16zz{display:flex;flex-direction:row}.PSPDFKit-7wmscxcygts9c5vqhurfsbvmz5[data-highlighted=true]{background-color:#4636e3;background-color:var(--PSPDFKit-Comment-Mention-Suggestion-Active-backgroundColor)}.PSPDFKit-7wmscxcygts9c5vqhurfsbvmz5[data-highlighted=true] .PSPDFKit-2gj9mhp9gmfbukw358y5b5qcg1{color:#d3dcff;color:var(--PSPDFKit-Comment-Mention-Suggestion-Description-Active-color)}.PSPDFKit-7wmscxcygts9c5vqhurfsbvmz5[data-highlighted=true] .PSPDFKit-5an9sajqpsfwmvtaqzwmrwpa1f{background-color:#d3dcff;background-color:var(--PSPDFKit-Comment-Avatar-Active-backgroundColor);color:#4636e3;color:var(--PSPDFKit-Comment-Mention-Suggestion-Active-backgroundColor)}.PSPDFKit-7wmscxcygts9c5vqhurfsbvmz5[data-highlighted=true] .PSPDFKit-82e5n33n5hsu3sehrtwr8cegm6{color:#f0f3f9;color:var(--PSPDFKit-Comment-Mention-Suggestion-Title-Active-color)}.PSPDFKit-283uxv24vcfj241z4bctddtydk{grid-column-gap:12px;grid-row-gap:0;cursor:pointer;display:grid;grid-template-columns:24px 1fr;grid-template-rows:20px 17px;padding:8px 16px}.PSPDFKit-6f9qc1enqd8ejv1rusfkvmsbum{grid-template-rows:1fr}.PSPDFKit-5an9sajqpsfwmvtaqzwmrwpa1f{align-self:center;background-color:#848c9a;background-color:var(--PSPDFKit-Comment-Avatar-backgroundColor);border-radius:100%;color:#fcfdfe;color:var(--PSPDFKit-Comment-Mention-Suggestion-backgroundColor);grid-area:1/1/3/2;height:24px;width:24px}.PSPDFKit-82e5n33n5hsu3sehrtwr8cegm6{align-self:center;color:#3d424e;color:var(--PSPDFKit-Comment-Mention-Suggestion-Title-color);font-size:14px;font-weight:600;grid-area:1/2/2/3}.PSPDFKit-2gj9mhp9gmfbukw358y5b5qcg1{align-self:center;color:#848c9a;color:var(--PSPDFKit-Comment-Mention-Suggestion-Description-color);font-size:12px;font-weight:500;grid-area:2/2/3/3} +.PSPDFKit-37y8jyguj8pacvfe5xhztdrrvh{max-width:362px}.PSPDFKit-37y8jyguj8pacvfe5xhztdrrvh,.PSPDFKit-5wkfpeyned7c4yt1mthjm2byaz{border-radius:6px;overflow:hidden}.PSPDFKit-5wkfpeyned7c4yt1mthjm2byaz{height:46px;text-align:center;width:362px}.PSPDFKit-273bhz15uvme1jcsnfahrnpqhm{align-content:center;justify-content:center;text-align:center}.PSPDFKit-6c7xfncwch6xyvu2c9ht4628jr,.PSPDFKit-273bhz15uvme1jcsnfahrnpqhm{display:flex;flex:1;flex-direction:column;max-height:400px;overflow-y:auto;overscroll-behavior:contain}.PSPDFKit-7pv18yphuz8xnmy775ru1vhcxe{color:var(--PSPDFKit-FormDesignerPopoverComponent-title-color);margin:0;padding:0.609em 1em;padding:var(--PSPDFKit-spacing-6) var(--PSPDFKit-spacing-4)}.PSPDFKit-35atxysv8qfd3f8r6vuxhqfqdg,.PSPDFKit-7pv18yphuz8xnmy775ru1vhcxe{font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3)}.PSPDFKit-35atxysv8qfd3f8r6vuxhqfqdg{color:#3d424e;color:var(--PSPDFKit-FormDesignerTextInputComponent-label-color)}.PSPDFKit-3771qspwv8ehjtp2dy2fzju48j{flex:1;flex-direction:column;padding:0.46875em 1em 1em 1em;padding:var(--PSPDFKit-spacing-7) var(--PSPDFKit-spacing-4) var(--PSPDFKit-spacing-4) var(--PSPDFKit-spacing-4)}.PSPDFKit-3771qspwv8ehjtp2dy2fzju48j,.PSPDFKit-2yrnzfc2gx8w1fwmkqaw1avw1e{background-color:var(--PSPDFKit-FormDesignerPopoverComponent-content-background-color);color:var(--PSPDFKit-FormDesignerPopoverComponent-content-color);display:flex;overflow:auto}.PSPDFKit-2yrnzfc2gx8w1fwmkqaw1avw1e{align-content:center;column-gap:1em;column-gap:var(--PSPDFKit-spacing-4);flex:1;flex-direction:row;justify-content:space-around;padding:1em;padding:var(--PSPDFKit-spacing-4)}.PSPDFKit-2yrnzfc2gx8w1fwmkqaw1avw1e button{width:100%}.PSPDFKit-88mdrcgzvp2729thzbev99hpvr{margin:4px 0 16px!important}.PSPDFKit-88mdrcgzvp2729thzbev99hpvr svg{height:11px!important;width:12px!important} +.PSPDFKit-rmf34nztrfgm2bcf7ccec8zhz{max-width:700px}.PSPDFKit-3xkskd39bk5c2rsxpw7jwbmnn6{margin-bottom:20px;text-align:left}.PSPDFKit-3xkskd39bk5c2rsxpw7jwbmnn6 a{color:#3c97fe}.PSPDFKit-8m2ghddxnzm27ad3jnnphw522j{background:#000;color:#fff;font-family:monospace;height:100px;margin:auto;resize:none;width:100%} +.PSPDFKit-5wp751jqbxpbbwkus9rbbddxgu{background-color:#fff;background-color:var(--PSPDFKit-DocumentOutline-background);height:100%;overflow:auto;padding:0.46875em calc(0.46875em/2);padding:var(--PSPDFKit-spacing-7) calc(var(--PSPDFKit-spacing-7)/2);padding-right:0}.PSPDFKit-38m3bpj83kumpugydqecgvfb87{display:flex;justify-content:center;padding:2.4375em 0.609em;padding:var(--PSPDFKit-spacing-2) var(--PSPDFKit-spacing-6)}.PSPDFKit-6thyvskwj8bhtjt43bjv7r2tv3{padding-left:0.609em;padding-left:var(--PSPDFKit-spacing-6)}.PSPDFKit-2wc1eg8pv5bz8rp1599q8cfpf{align-items:center;cursor:pointer;display:flex}.PSPDFKit-8q6pak6zvt1x45sh6b8f91pb5g{cursor:default}.PSPDFKit-8ea69n5pavewcwdnwuxcsvwz4{padding-left:24px}.PSPDFKit-83geqxjybeyf3vmtnwsfwrkpk1{border-bottom:1px solid #f0f3f9;border-bottom:1px solid var(--PSPDFKit-DocumentOutline-control-border);color:#21242c;color:var(--PSPDFKit-DocumentOutline-control-color);display:block;padding:0.8125em 1em 0.8125em 0;padding:var(--PSPDFKit-spacing-5) var(--PSPDFKit-spacing-4) var(--PSPDFKit-spacing-5) 0;width:100%}.PSPDFKit-8hs25mq46u5e54udrwp52hzqxc{fill:#bec9d9;fill:var(--PSPDFKit-DocumentOutline-icon-color);color:#bec9d9;color:var(--PSPDFKit-DocumentOutline-icon-color);cursor:pointer;display:block;margin-right:calc(0.46875em/2);margin-right:calc(var(--PSPDFKit-spacing-7)/2)}.PSPDFKit-8hs25mq46u5e54udrwp52hzqxc svg{height:100%;width:100%}.PSPDFKit-6dv6mkjhdzxrbje2fu49pke6cy{transform:rotate(90deg);transition:transform .2s ease}.PSPDFKit-2wc1eg8pv5bz8rp1599q8cfpf:hover .PSPDFKit-8hs25mq46u5e54udrwp52hzqxc,.PSPDFKit-6dv6mkjhdzxrbje2fu49pke6cy{fill:#4636e3;fill:var(--PSPDFKit-DocumentOutline-icon-isHovered-color);color:#4636e3;color:var(--PSPDFKit-DocumentOutline-icon-isHovered-color)}div[id^=outline-control] .PSPDFKit-8ea69n5pavewcwdnwuxcsvwz4>.PSPDFKit-83geqxjybeyf3vmtnwsfwrkpk1{padding-left:10px} +.PSPDFKit-3794mza67b1yg72kafrt5hb5ne{-webkit-overflow-scrolling:touch;background-color:#fff;background-color:var(--PSPDFKit-BookmarksSidebar-background);border-bottom:1px solid #d8dfeb;border-bottom:1px solid var(--PSPDFKit-BookmarksSidebar-border);box-sizing:border-box;height:100%;overflow:auto;padding-bottom:0.8125em;padding-bottom:var(--PSPDFKit-spacing-5)}.PSPDFKit-82vfq7tmnvc7msfc9e69vvteqg{display:flex;width:100%}.PSPDFKit-74mdazdfzvch29s6gw4fvdanw9{min-width:100%}.PSPDFKit-3fv5zkg97n3mu687rszsbq2vap,.PSPDFKit-6n1ufy9m7k6kddjekzx8ra9equ{width:90%}.PSPDFKit-8ar7rzebgg8hmscpa7e7zunr9c{background-color:#f6f8fa;background-color:var(--PSPDFKit-BookmarksSidebar--loading-background);display:flex;justify-content:center;padding:2.4375em 0.8125em;padding:var(--PSPDFKit-spacing-2) var(--PSPDFKit-spacing-5)}.PSPDFKit-425nu4nkcgh6mxxdgbc94tfnnh,.PSPDFKit-7q4jhntpw5ww3s7967h4fxawb9{color:#4d525d;color:var(--PSPDFKit-BookmarksSidebar-heading-color);font-size:inherit;font-weight:400;text-transform:uppercase}.PSPDFKit-25cnnvzt1zat453758mcudxsca{cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.PSPDFKit-425nu4nkcgh6mxxdgbc94tfnnh{align-items:center;display:flex;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);font-weight:400;margin:0.609em 0;margin:var(--PSPDFKit-spacing-6) 0;text-transform:uppercase}.PSPDFKit-39x22bdb75a1huszgc6wehk4n2{display:flex;justify-content:space-between;margin-top:1em;margin-top:var(--PSPDFKit-spacing-4)}.PSPDFKit-7q4jhntpw5ww3s7967h4fxawb9{color:#3d424e;color:var(--PSPDFKit-BookmarksSidebar-layout-pageNumber-color);font-size:0.75rem;font-size:var(--PSPDFKit-fontSize-2);max-width:100%;overflow:hidden;padding:.1em 0 0 .7em;position:absolute;right:0;text-overflow:ellipsis;white-space:nowrap}.PSPDFKit-8qwj35jvzfa59ztz98a439e6uy{color:#2b2e36;color:var(--PSPDFKit-BookmarksSidebar-name-color)}.PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1{align-items:center;cursor:pointer;display:flex;justify-content:space-between;margin:0 1em 0 0.46875em;margin:0 var(--PSPDFKit-spacing-4) 0 var(--PSPDFKit-spacing-7);padding:0.8125em 0 0.8125em 0.8125em;padding:var(--PSPDFKit-spacing-5) 0 var(--PSPDFKit-spacing-5) var(--PSPDFKit-spacing-5);position:relative}.PSPDFKit-3794mza67b1yg72kafrt5hb5ne div [tabindex="-1"]>div,.PSPDFKit-3794mza67b1yg72kafrt5hb5ne div [tabindex="0"]>div{border-bottom:1px solid #f0f3f9;border-bottom:1px solid var(--PSPDFKit-BookmarksSidebar-layout-border)}.PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1.PSPDFKit-3xvextg3pac89n7ybnha6syffx,.PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1[data-focus-within],[tabindex="0"]:focus .PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1{z-index:1}.PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1.PSPDFKit-3xvextg3pac89n7ybnha6syffx,.PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1.PSPDFKit-3xvextg3pac89n7ybnha6syffx .PSPDFKit-7q4jhntpw5ww3s7967h4fxawb9,.PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1[data-focus-within],.PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1[data-focus-within] .PSPDFKit-7q4jhntpw5ww3s7967h4fxawb9,[tabindex="0"]:focus .PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1,[tabindex="0"]:focus .PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1 .PSPDFKit-7q4jhntpw5ww3s7967h4fxawb9{fill:#3d424e;fill:var(--PSPDFKit-BookmarksSidebar-layout-pageNumber-color);color:#3d424e;color:var(--PSPDFKit-BookmarksSidebar-layout-pageNumber-color)}.PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1.PSPDFKit-3xvextg3pac89n7ybnha6syffx .PSPDFKit-8qwj35jvzfa59ztz98a439e6uy,.PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1[data-focus-within] .PSPDFKit-8qwj35jvzfa59ztz98a439e6uy,[tabindex="0"]:focus .PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1 .PSPDFKit-8qwj35jvzfa59ztz98a439e6uy{color:#2b2e36;color:var(--PSPDFKit-BookmarksSidebar-name-color)}.PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1:hover{color:#4636e3;color:var(--PSPDFKit-BookmarksSidebar-layout-isHovered-pageNumber-color)}.PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1[data-focus-within]{z-index:1}.PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1[data-focus-within],.PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1[data-focus-within] .PSPDFKit-7q4jhntpw5ww3s7967h4fxawb9{fill:#4636e3;fill:var(--PSPDFKit-BookmarksSidebar-layout-isHovered-pageNumber-color);color:#4636e3;color:var(--PSPDFKit-BookmarksSidebar-layout-isHovered-pageNumber-color)}.PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1:focus-within{z-index:1}.PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1:focus-within,.PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1:focus-within .PSPDFKit-7q4jhntpw5ww3s7967h4fxawb9{fill:#4636e3;fill:var(--PSPDFKit-BookmarksSidebar-layout-isHovered-pageNumber-color);color:#4636e3;color:var(--PSPDFKit-BookmarksSidebar-layout-isHovered-pageNumber-color)}.PSPDFKit-2msvy6g19deemzxgx9xvgw7c57,.PSPDFKit-8xc3qwhsubkavwu93mg3mhacd1 button{background:transparent;border:0;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;line-height:inherit;padding:0;text-align:inherit;word-break:break-all}.PSPDFKit-2msvy6g19deemzxgx9xvgw7c57 svg{background:#fff;background:var(--PSPDFKit-BookmarksSidebar-edit-background);height:24px;position:relative;width:24px}.PSPDFKit-2msvy6g19deemzxgx9xvgw7c57{color:#3d424e;color:var(--PSPDFKit-BookmarksSidebar-edit-color);flex:0 0 16px;height:16px;margin-left:0.8125em;margin-left:var(--PSPDFKit-spacing-5);opacity:0;width:16px}.PSPDFKit-2msvy6g19deemzxgx9xvgw7c57:active,.PSPDFKit-2msvy6g19deemzxgx9xvgw7c57:focus,.PSPDFKit-2msvy6g19deemzxgx9xvgw7c57:hover,.PSPDFKit-3gpkhfqvs5pqtr4r9ry6e3jwjq,:active>.PSPDFKit-2msvy6g19deemzxgx9xvgw7c57,:focus>.PSPDFKit-2msvy6g19deemzxgx9xvgw7c57,:hover>.PSPDFKit-2msvy6g19deemzxgx9xvgw7c57{opacity:1}.PSPDFKit-5j54uxjtt11g68z45aykeapv6x{background-color:#f0f3f9;background-color:var(--PSPDFKit-BookmarksSidebar-editor-background);padding:0.8125em;padding:var(--PSPDFKit-spacing-5);position:relative;width:100%;z-index:2}.PSPDFKit-5j54uxjtt11g68z45aykeapv6x .PSPDFKit-425nu4nkcgh6mxxdgbc94tfnnh{margin-bottom:0.8125em;margin-bottom:var(--PSPDFKit-spacing-5)}.PSPDFKit-5zwbu9g714rrbrfqc66ep7t3cs{flex-wrap:nowrap;margin-top:0.8125em;margin-top:var(--PSPDFKit-spacing-5);overflow-y:auto}.PSPDFKit-2b313c5ajnt3v97v7xqyj8k9ag{flex:1} +.PSPDFKit-wqnk7x3sp9sp2zkcvbfawsb6r{background-color:#f6f8fa;background-color:var(--PSPDFKit-Sidebar-background);font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);height:100%;overflow-wrap:break-word;position:relative;word-break:break-word;z-index:1}.PSPDFKit-6zdf5v5224wp5vu92pkacn6sx3{background:#f0f3f9;background:var(--PSPDFKit-Sidebar-header-background);display:flex;flex-direction:column;flex-wrap:wrap;padding:0.609em 1em;padding:var(--PSPDFKit-spacing-6) var(--PSPDFKit-spacing-4);text-align:right}.PSPDFKit-4bvu69j78qa67c4wqqxaxrqbs5{background-color:#bec9d9;background-color:var(--PSPDFKit-Sidebar-dragger-background);border-left:1px solid rgb(33 36 44 / 0.2);border-left:1px solid var(--PSPDFKit-Sidebar-dragger-border);bottom:0;cursor:col-resize;overflow:hidden;position:absolute;top:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-6dtj44vm5qz5vw1njqxgaem7na{background:#fff;background:var(--PSPDFKit-Sidebar-draggerHandle-background);border:1px solid rgb(33 36 44 / 0.2);border:1px solid var(--PSPDFKit-Sidebar-draggerHandle-border);border-left:none;border-radius:3px;display:block;height:32px;position:fixed;top:50%;width:9px}.PSPDFKit-6dtj44vm5qz5vw1njqxgaem7na:after,.PSPDFKit-6dtj44vm5qz5vw1njqxgaem7na:before{background-color:#bec9d9;background-color:var(--PSPDFKit-Sidebar-dragger-pseudo-background);content:"";height:20px;left:50%;margin-top:-15px;position:absolute;top:64%;width:1px}.PSPDFKit-6dtj44vm5qz5vw1njqxgaem7na:before{margin-left:-2px}.PSPDFKit-6dtj44vm5qz5vw1njqxgaem7na:after{margin-left:1px}@media(max-width:768px){.PSPDFKit-6dtj44vm5qz5vw1njqxgaem7na{display:none}}.PSPDFKit-2x4gzue77m9rd4f4ax5y9e5wj1{height:100%;overflow:auto} +.PSPDFKit-twmttjfcv6j7rzbc8ybn7jhdf{color:#fff;display:block;-webkit-user-select:none;-ms-user-select:none;user-select:none}.interactions-disabled .PSPDFKit-twmttjfcv6j7rzbc8ybn7jhdf{display:none}.PSPDFKit-twmttjfcv6j7rzbc8ybn7jhdf div{align-items:center;display:flex;flex:1 0 auto;flex-direction:row;flex-wrap:nowrap;-webkit-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.PSPDFKit-6stgnz1576bk1x1pc2nvf8mswa{border-radius:6px;display:block;overflow:hidden}.PSPDFKit-47apua2t9uqk8xayrhg2x6bxwp{background:#5e6266;height:20px;margin:0 6px;width:1px}.PSPDFKit-dcqzrnymm6bk9dm2mrhum7xwe{border-right:1px solid #4a4d51;height:34px!important;width:38px!important}.PSPDFKit-dcqzrnymm6bk9dm2mrhum7xwe:last-child{border-right:0}.PSPDFKit-dcqzrnymm6bk9dm2mrhum7xwe i{height:20px!important;width:20px!important} +.PSPDFKit-8ffg9gawq78kbmz1r4tzjvvqc9{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;-webkit-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.PSPDFKit-8xy9jsj7mkgjmn242vthsdvebm{min-height:32px;padding:0 10px} +.PSPDFKit-4vgck46zhyuscqkznsp8pabh68{cursor:all-scroll;cursor:grab;height:auto;min-height:100%;min-width:100%;width:auto}.PSPDFKit-4cbfb2m7vt4aq7g21z3gxtzzde{cursor:grabbing} +.PSPDFKit-m8vcznd3skqsshg6rhqg119mc{bottom:0;left:0;position:absolute;right:0;top:0} +.PSPDFKit-6m9gupd1vyy1fr4bpfheg6wwdk{width:90%}@media(min-width:320px){.PSPDFKit-6m9gupd1vyy1fr4bpfheg6wwdk{width:300px}}.PSPDFKit-8nwc6qm7s426c5g16sqaykh38n,.PSPDFKit-6m9gupd1vyy1fr4bpfheg6wwdk>button,.PSPDFKit-6m9gupd1vyy1fr4bpfheg6wwdk>div{margin:.5em 0}.PSPDFKit-8nwc6qm7s426c5g16sqaykh38n{background-color:#f0f3f9;background-color:var(--PSPDFKit-PrintLoadingIndicator-progress-background);border-radius:3px;color:#000;color:var(--PSPDFKit-PrintLoadingIndicator-progress-color);display:block;overflow:hidden;padding:.25em .5em;position:relative;width:100%;z-index:1}.PSPDFKit-3mu82vxhmw13y36qrsu6ya81cc{background-color:#4636e3;background-color:var(--PSPDFKit-PrintLoadingIndicator-progressBar-background);bottom:0;left:0;position:absolute;top:0;z-index:-1}.PSPDFKit-489xz3n1mhssjcqb9fqcbey276{color:#4d525d;color:var(--PSPDFKit-PrintLoadingIndicator-progressText-color)} +.PSPDFKit-59dey26v49qmxgx7zfh1ehxqag{align-items:center;display:flex;width:90%}@media(min-width:320px){.PSPDFKit-59dey26v49qmxgx7zfh1ehxqag{width:300px}}.PSPDFKit-4dct27k6q3q9d4c4atrzr75u79{display:flex;flex-direction:column;height:48px;justify-content:space-around;padding-left:1.625em;padding-left:var(--PSPDFKit-spacing-3)}.PSPDFKit-6pphz7vq2cfumupsmn27tmjjzb{display:block;height:48px;width:48px} +.PSPDFKit-5w2de1uyy445puycu46qkgmvar{align-items:center;display:flex;overflow:hidden;width:90%}@media(min-width:320px){.PSPDFKit-5w2de1uyy445puycu46qkgmvar{width:300px}}.PSPDFKit-6w84556468p7ssdr8cqmyn8mjr{display:flex;flex-direction:column;height:48px;justify-content:space-around;padding-left:1.625em;padding-left:var(--PSPDFKit-spacing-3)}.PSPDFKit-75vqhz2zk4qrae8pgcsegd1jf9{display:block;height:48px;width:48px} +.PSPDFKit-6mny4jk3t426w24d83deht33rn{bottom:0;left:0;position:absolute;right:0;top:0} +.PSPDFKit-5e2eu5vu2edrbusdw9chj1k5ya{align-items:center;display:flex;height:100%;justify-content:center;margin-right:16px}.PSPDFKit-qrb6rv4vd7m34wj2w85zjxjfu{font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);-webkit-user-select:none;-ms-user-select:none;user-select:none} +.PSPDFKit-5m6rrz61wj3npfybbf6bf7n132{align-items:center;background-color:#fff;background-color:var(--PSPDFKit-SearchForm-background);border-radius:0 0 4px 4px;border-top:1px solid #f6f8fa;border-top:1px solid var(--PSPDFKit-SearchForm-border);display:flex;flex-direction:row;height:44px;opacity:1;padding:5px 10px;position:absolute;right:0;top:44px;transition:opacity .4s ease 0s;width:400px;z-index:10}.PSPDFKit-width-xs .PSPDFKit-5m6rrz61wj3npfybbf6bf7n132{border-radius:0;width:100%}.PSPDFKit-kygm1cgnwkp9bv59ggpqfyv9j{top:0}.PSPDFKit-3zeygmv635dt4bunbqaw9pc4vc{align-items:stretch;display:flex;flex-direction:row;margin-right:10px}.PSPDFKit-882tgx1vetesc36x9va6ha65fk,.PSPDFKit-3zeygmv635dt4bunbqaw9pc4vc{flex-grow:1;height:30px}.PSPDFKit-882tgx1vetesc36x9va6ha65fk{background:#f0f3f9;background:var(--PSPDFKit-SearchForm-input-background);border:none;border-radius:4px 0 0 4px;color:#3d424e;color:var(--PSPDFKit-SearchForm-input-color);font-size:0.875rem!important;font-size:var(--PSPDFKit-fontSize-3)!important;padding:5px 0 5px 10px;width:0}.PSPDFKit-882tgx1vetesc36x9va6ha65fk::-ms-input-placeholder{color:#3d424e;color:var(--PSPDFKit-SearchForm-input-placeholder-color)}.PSPDFKit-882tgx1vetesc36x9va6ha65fk::placeholder{color:#3d424e;color:var(--PSPDFKit-SearchForm-input-placeholder-color)}.PSPDFKit-882tgx1vetesc36x9va6ha65fk:focus{outline:none}.PSPDFKit-882tgx1vetesc36x9va6ha65fk::-ms-clear{height:0;width:0}.PSPDFKit-8eacsmz4utrfkj8dhzhdh842ct{display:none}.PSPDFKit-8eacsmz4utrfkj8dhzhdh842ct:not(.PSPDFKit-4ysp4ac7wzfr8k1j96hrpb6232){background:#f0f3f9;background:var(--PSPDFKit-SearchForm-results-isDisabled-background);color:rgb(132 140 154 / 0.5);color:var(--PSPDFKit-SearchForm-results-isDisabled-color);display:flex;min-width:40px;text-align:right}.PSPDFKit-3mm3z68vbg9jrrv8ctujsff2j,.PSPDFKit-8eacsmz4utrfkj8dhzhdh842ct:not(.PSPDFKit-4ysp4ac7wzfr8k1j96hrpb6232){height:30px;line-height:20px;padding:5px 10px}.PSPDFKit-3mm3z68vbg9jrrv8ctujsff2j{background:#bec9d9;background:var(--PSPDFKit-SearchForm-button-background);border:0;border-radius:4px;color:#3d424e;color:var(--PSPDFKit-SearchForm-button-color);cursor:pointer;font-size:inherit;text-align:center;touch-action:none;transition:all .15s}.PSPDFKit-3mm3z68vbg9jrrv8ctujsff2j:hover{background:#f0f3f9;background:var(--PSPDFKit-SearchForm-button-isHovered-background);border:rgb(132 140 154 / 0.5);border:var(--PSPDFKit-SearchForm-button-isHovered-border);color:#21242c;color:var(--PSPDFKit-SearchForm-button-isHovered-color)}.PSPDFKit-6jsphwggasn3qhq6cpukr87kyp{border-radius:0 4px 4px 0;display:flex;flex-direction:row;height:30px;margin-left:1px;overflow:hidden}.PSPDFKit-the91ha3x5196stsyerdyzwb2,.PSPDFKit-8sbnka5652yjkubedgurz66zwq{align-items:center;background:#bec9d9;background:var(--PSPDFKit-SearchForm-button-controls-background);border:1px solid transparent;color:#3d424e;color:var(--PSPDFKit-SearchForm-button-controls-color);cursor:pointer;display:flex;justify-content:center;padding:0;touch-action:none;transition:all .15s;width:30px}.PSPDFKit-the91ha3x5196stsyerdyzwb2:focus-visible,.PSPDFKit-8sbnka5652yjkubedgurz66zwq:focus-visible{border:2px solid #5e5ceb;border-radius:4px;transition:none}.PSPDFKit-the91ha3x5196stsyerdyzwb2 .PSPDFKit-6p53nwyvjc1gsacy8fr4fac4q4,.PSPDFKit-8sbnka5652yjkubedgurz66zwq .PSPDFKit-6p53nwyvjc1gsacy8fr4fac4q4{fill:#3d424e;fill:var(--PSPDFKit-SearchForm-button-controls-color);height:12px;width:12px}.PSPDFKit-the91ha3x5196stsyerdyzwb2 .PSPDFKit-6p53nwyvjc1gsacy8fr4fac4q4 svg,.PSPDFKit-8sbnka5652yjkubedgurz66zwq .PSPDFKit-6p53nwyvjc1gsacy8fr4fac4q4 svg{height:100%;width:100%}.PSPDFKit-the91ha3x5196stsyerdyzwb2 .PSPDFKit-5q7decz5hdban3tfadcauvj14t,.PSPDFKit-the91ha3x5196stsyerdyzwb2 .PSPDFKit-7uhhgqhkvcnxbwk9kfhjy9v9yt,.PSPDFKit-8sbnka5652yjkubedgurz66zwq .PSPDFKit-5q7decz5hdban3tfadcauvj14t,.PSPDFKit-8sbnka5652yjkubedgurz66zwq .PSPDFKit-7uhhgqhkvcnxbwk9kfhjy9v9yt{display:flex;justify-content:center}.PSPDFKit-the91ha3x5196stsyerdyzwb2:hover,.PSPDFKit-8sbnka5652yjkubedgurz66zwq:hover{background:#f0f3f9;background:var(--PSPDFKit-SearchForm-button-controls-isHovered-background)}.PSPDFKit-the91ha3x5196stsyerdyzwb2:disabled,.PSPDFKit-8sbnka5652yjkubedgurz66zwq:disabled{pointer-events:none}.PSPDFKit-the91ha3x5196stsyerdyzwb2:disabled .PSPDFKit-6p53nwyvjc1gsacy8fr4fac4q4,.PSPDFKit-8sbnka5652yjkubedgurz66zwq:disabled .PSPDFKit-6p53nwyvjc1gsacy8fr4fac4q4{fill:rgb(132 140 154 / 0.5);fill:var(--PSPDFKit-SearchForm-button-controls-isDisabled-color)}.PSPDFKit-the91ha3x5196stsyerdyzwb2:focus,.PSPDFKit-8sbnka5652yjkubedgurz66zwq:focus{outline:none}.PSPDFKit-the91ha3x5196stsyerdyzwb2:last-child,.PSPDFKit-8sbnka5652yjkubedgurz66zwq:last-child{border-left:1px solid #f0f3f9;border-left:1px solid var(--PSPDFKit-SearchForm-button-lasChild-border)}.PSPDFKit-the91ha3x5196stsyerdyzwb2:last-child:focus-visible,.PSPDFKit-8sbnka5652yjkubedgurz66zwq:last-child:focus-visible{border-left:2px solid #5e5ceb;border-radius:4px} +.PSPDFKit-5jn8feeuubm369vnx3evcba1rp,.PSPDFKit-5b8wstcs14vckqa7tw77vr685r{align-items:center;display:flex;height:100%;justify-content:center;position:relative;width:100%}.PSPDFKit-5jn8feeuubm369vnx3evcba1rp canvas,.PSPDFKit-5jn8feeuubm369vnx3evcba1rp img,.PSPDFKit-5b8wstcs14vckqa7tw77vr685r canvas,.PSPDFKit-5b8wstcs14vckqa7tw77vr685r img{height:auto;left:0;max-height:100%;max-width:100%;top:0;width:auto}.PSPDFKit-6anvx47kar5w253fz6rqg9hxcr,.PSPDFKit-rfgw2ucjvptvmzh7zu271n4x2{background-color:#f0f3f9;background-color:var(--PSPDFKit-ImagePreview-imageAnnotation--error-background);position:relative}.PSPDFKit-4jv7s61cvh1pcgqnvbxqubx8xv{align-items:center;display:flex;justify-content:center}.PSPDFKit-3z5svj219typgks4atm97b4y6h svg{background-color:#fff;background-color:var(--PSPDFKit-ImagePreview-imageAnnotation--error-icon-background);border-radius:12px;color:#d63960;color:var(--PSPDFKit-ImagePreview-imageAnnotation--error-icon-color);height:24px;width:24px}.PSPDFKit-7kevtqukx2j121vwemdz3hztp6 canvas,.PSPDFKit-7kevtqukx2j121vwemdz3hztp6 img{height:auto;width:auto}.PSPDFKit-56vfsb9q6rq86j9dwdwt9edsp5.PSPDFKit-7yuetahtedwdfmawkggfhnmc8 canvas,.PSPDFKit-56vfsb9q6rq86j9dwdwt9edsp5.PSPDFKit-7yuetahtedwdfmawkggfhnmc8 img{height:auto;width:100%}.PSPDFKit-56vfsb9q6rq86j9dwdwt9edsp5.PSPDFKit-4bu7pjnhzjnq6m5wh7z589mw3t canvas,.PSPDFKit-56vfsb9q6rq86j9dwdwt9edsp5.PSPDFKit-4bu7pjnhzjnq6m5wh7z589mw3t img{height:100%;width:auto}.PSPDFKit-4dw6z4dcs45pn73rp3uakt52q2{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)} +.PSPDFKit-4cerm34vb8pczts7hmcng7djt6{max-width:640px}.PSPDFKit-5vxa6baehq7axm7hfhdhastujx{max-width:480px}.PSPDFKit-5vxa6baehq7axm7hfhdhastujx,.PSPDFKit-4cerm34vb8pczts7hmcng7djt6{max-height:100vh;padding:0;width:100%}@media(max-height:455px){.PSPDFKit-5vxa6baehq7axm7hfhdhastujx,.PSPDFKit-4cerm34vb8pczts7hmcng7djt6{height:90%}}@media(max-height:300px){.PSPDFKit-5vxa6baehq7axm7hfhdhastujx,.PSPDFKit-4cerm34vb8pczts7hmcng7djt6{height:100%}}@media(orientation:landscape)and (max-width:992px){.PSPDFKit-5vxa6baehq7axm7hfhdhastujx,.PSPDFKit-4cerm34vb8pczts7hmcng7djt6{border-radius:0;height:100%;max-width:100%}}.PSPDFKit-2z88h3qxg8pahcdtccg1v16rzw{margin-left:calc(0.8125em*2);margin-left:calc(var(--PSPDFKit-spacing-5)*2);margin-right:calc(0.8125em*2);margin-right:calc(var(--PSPDFKit-spacing-5)*2)}@media(max-width:992px){.PSPDFKit-2z88h3qxg8pahcdtccg1v16rzw{margin-left:0.8125em;margin-left:var(--PSPDFKit-spacing-5);margin-right:0.8125em;margin-right:var(--PSPDFKit-spacing-5)}}.PSPDFKit-37n3gwhc7empyyme4xj5mr6fmd{margin:0!important;padding:1.625em;padding:var(--PSPDFKit-spacing-3);position:relative}.PSPDFKit-37n3gwhc7empyyme4xj5mr6fmd:last-child{margin-bottom:0}@media(max-width:992px){.PSPDFKit-37n3gwhc7empyyme4xj5mr6fmd{padding:0.8125em;padding:var(--PSPDFKit-spacing-5)}}.PSPDFKit-5d23s5wtcb4xyd2r69ffat43tr{color:#3d424e;color:var(--PSPDFKit-StampViewComponent-header-color);display:flex;flex-direction:column;height:100%;justify-content:space-between}@media(max-height:480px),(orientation:landscape)and (max-width:992px){.PSPDFKit-5d23s5wtcb4xyd2r69ffat43tr{height:auto}}.PSPDFKit-htg8xmsw1medv8z65rsxzra3j{height:auto;max-height:90vh}@media(max-height:480px),(orientation:landscape)and (max-width:992px){.PSPDFKit-htg8xmsw1medv8z65rsxzra3j{max-height:none}}.PSPDFKit-83y7r7bjft89d7vj54ak85a64d{align-items:center;border:0 solid #bec9d9;border:0 solid var(--PSPDFKit-StampViewComponent-header-border);display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;padding:1.625em;padding:var(--PSPDFKit-spacing-3);z-index:1}@media(max-width:992px){.PSPDFKit-83y7r7bjft89d7vj54ak85a64d{padding:0.8125em;padding:var(--PSPDFKit-spacing-5)}}.PSPDFKit-4c13ns3r3x61v4zpchdh6wzdc6{align-items:center;display:flex;flex-wrap:wrap;margin-top:1.625em;margin-top:var(--PSPDFKit-spacing-3)}.PSPDFKit-8aay2s7evt3up79u41nwecrs5b,.PSPDFKit-4c13ns3r3x61v4zpchdh6wzdc6{justify-content:space-between}.PSPDFKit-8aay2s7evt3up79u41nwecrs5b{font-size:1.5rem;font-size:var(--PSPDFKit-fontSize-6);padding-bottom:0.8125em;padding-bottom:var(--PSPDFKit-spacing-5)}.PSPDFKit-8aay2s7evt3up79u41nwecrs5b label{margin:0}@media(min-width:350px){.PSPDFKit-8aay2s7evt3up79u41nwecrs5b{margin-bottom:0;padding-bottom:0.609em;padding-bottom:var(--PSPDFKit-spacing-6);padding-top:0.609em;padding-top:var(--PSPDFKit-spacing-6)}}@media(max-width:350px){.PSPDFKit-7e7t5guyqmbj19anjq7fu2apb2{width:100%}.PSPDFKit-7e7t5guyqmbj19anjq7fu2apb2~.PSPDFKit-7e7t5guyqmbj19anjq7fu2apb2,.PSPDFKit-nzezcbc9ek89hybgj1pckw2zs{margin-top:0.8125em;margin-top:var(--PSPDFKit-spacing-5)}.PSPDFKit-nzezcbc9ek89hybgj1pckw2zs{width:100%}}@media(max-width:350px)and (max-width:992px){.PSPDFKit-nzezcbc9ek89hybgj1pckw2zs{margin-top:0}}.PSPDFKit-72pcrgpengy3y8cuv97n9jaw3f{background-color:rgb(216 223 235 / 0.25);background-color:var(--PSPDFKit-StampViewComponent-previewContainer-background);border:1px solid #a8bff8;border:1px solid var(--PSPDFKit-StampViewComponent-previewContainer-border);border-radius:3px;display:flex;flex-direction:row;justify-content:center;margin-left:calc(0.8125em*-1);margin-left:calc(var(--PSPDFKit-spacing-5)*-1);margin-right:calc(0.8125em*-1);margin-right:calc(var(--PSPDFKit-spacing-5)*-1);overflow:hidden;padding:2.4375em 0.8125em;padding:var(--PSPDFKit-spacing-2) var(--PSPDFKit-spacing-5);position:relative}@media(max-width:992px){.PSPDFKit-72pcrgpengy3y8cuv97n9jaw3f{margin-left:0;margin-right:0;padding:0.8125em;padding:var(--PSPDFKit-spacing-5)}}.PSPDFKit-572d5dceqqhvah17hy2c45a4ej{background-color:transparent;color:transparent;text-align:center;text-transform:uppercase}.PSPDFKit-572d5dceqqhvah17hy2c45a4ej canvas{max-width:100%}.PSPDFKit-68gt1wmwq59s62gmycmujxmmb4{background-color:#fcfdfe;background-color:var(--PSPDFKit-StampViewComponent-templateImageContainer-background);border:1px solid #a8bff8;border:1px solid var(--PSPDFKit-StampViewComponent-templateImageContainer-border);border-radius:2px;box-sizing:initial!important;display:flex;flex-direction:row;justify-content:center;padding:7.422924052%}@media(max-width:992px){.PSPDFKit-68gt1wmwq59s62gmycmujxmmb4{padding:4.4932079415%}}.PSPDFKit-2ntpjcyeqryy3sx2z21svrqz1w{color:#bec9d9;color:var(--PSPDFKit-StampViewComponent-writeHere-color);margin-top:-.5em;position:absolute;text-align:center;top:50%;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%}.PSPDFKit-66ekjcxsaeqgn89qtwpugg9xvn{align-items:center;cursor:pointer;display:flex;flex:1}.PSPDFKit-6zmyzykxc4t66pwbdd5sen73re{display:flex;flex-direction:row;justify-content:space-around;padding:0.46875em 0;padding:var(--PSPDFKit-spacing-7) 0}.PSPDFKit-6j7fbdr9rnqrtkj8begfh32k5z{-webkit-overflow-scrolling:touch;flex:1 1 auto;max-height:50vh;overflow:auto;transform:translateZ(0)}@media(orientation:landscape)and (max-width:992px){.PSPDFKit-6j7fbdr9rnqrtkj8begfh32k5z{max-height:100%}}.PSPDFKit-7nv5w9b4mfxuda9qpmyu4tfmkq{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;margin-top:0;padding:0 1.6666666667%;scroll-behavior:smooth;width:100%}@media(max-width:992px){.PSPDFKit-7nv5w9b4mfxuda9qpmyu4tfmkq{padding:0 1.875%}}.PSPDFKit-3cppdtq9fhab43g49xz5t5vzy5{list-style:none;margin-top:3.3333333333%;width:31.03%}@media(max-width:992px){.PSPDFKit-3cppdtq9fhab43g49xz5t5vzy5{margin-top:3.75%;width:47.85%}}.PSPDFKit-8hmu8h2yx3k1xretx3c2t5e35j{align-items:stretch;background-color:transparent;border:1px solid transparent;display:flex;flex-direction:column;padding:0;touch-action:auto;width:100%}.PSPDFKit-8hmu8h2yx3k1xretx3c2t5e35j.PSPDFKit-6rfyzsd4thzrxy3u2uacc8zvq4,.PSPDFKit-8hmu8h2yx3k1xretx3c2t5e35j:focus,.PSPDFKit-8hmu8h2yx3k1xretx3c2t5e35j:hover{background-color:#fff;background-color:var(--PSPDFKit-StampViewComponent-selectStampButton-isHovered-background);border-color:#4636e3;border-color:var(--PSPDFKit-StampViewComponent-selectStampButton-isHovered-border);color:#fff;color:var(--PSPDFKit-StampViewComponent-selectStampButton-isHovered-color)}.PSPDFKit-8hmu8h2yx3k1xretx3c2t5e35j.PSPDFKit-6rfyzsd4thzrxy3u2uacc8zvq4 .PSPDFKit-68gt1wmwq59s62gmycmujxmmb4,.PSPDFKit-8hmu8h2yx3k1xretx3c2t5e35j:focus .PSPDFKit-68gt1wmwq59s62gmycmujxmmb4,.PSPDFKit-8hmu8h2yx3k1xretx3c2t5e35j:hover .PSPDFKit-68gt1wmwq59s62gmycmujxmmb4{background-color:#fcfdfe;background-color:var(--PSPDFKit-StampViewComponent-templateImageContainer-background)}.PSPDFKit-8agdbfphrnw37rw3cw5sfvvfjm{color:#4d525d;color:var(--PSPDFKit-StampViewComponent-title-color);font-size:1.25rem;font-size:var(--PSPDFKit-fontSize-5);margin-bottom:0;max-width:100%;white-space:nowrap}@media(max-width:768px){.PSPDFKit-8agdbfphrnw37rw3cw5sfvvfjm{padding-bottom:0.609em;padding-bottom:var(--PSPDFKit-spacing-6);padding-top:0.609em;padding-top:var(--PSPDFKit-spacing-6)}}.PSPDFKit-2dzap69xuhzmtc67qz5wnyya7a{padding:0.46875em 0;padding:var(--PSPDFKit-spacing-7) 0}.PSPDFKit-8kvufduapwfav2a4wpe2xsukhy{position:absolute}.PSPDFKit-7s8151tm4sjch2syfq2v6t7wzw{margin:0}.PSPDFKit-zdns58vemvwxvgxmts83x9exn{justify-content:space-between} +.PSPDFKit-69gywaa9k96ge1hvked74ez5n1{background:#f0f3f9;background:var(--PSPDFKit-ThumbnailsSidebar-gridView-row-background);display:flex;justify-content:space-around;justify-content:space-evenly;position:relative}.PSPDFKit-83vux4k1ev4t7s9g2qxwew634a{border-radius:10px;text-align:center}.PSPDFKit-42kn3f7jwfc8upuf4bdwgdyxcg{align-items:center;display:flex;justify-content:center}.PSPDFKit-7x2bqjhgdt551w3v3y37gv3yub{background:#5e5ceb;height:calc(100% - 8px);left:50%;pointer-events:none;position:relative;width:3px}.PSPDFKit-78m832wbg6e9vmp1jz7knc9yk2{background:#000;background:var(--PSPDFKit-ThumbnailsSidebar-gridView-moveCursorDisabled-background);opacity:.1}.PSPDFKit-6bd8y61brzkav8gpvce127azsv{left:16px;position:absolute;top:50%;transform:translateY(-50%)}.PSPDFKit-7b8eq949hpzkc8q3qh9tv8nxbp{transform:translateX(calc(-100% - 48px)) translateY(-50%)}.PSPDFKit-7x2bqjhgdt551w3v3y37gv3yub:after,.PSPDFKit-7x2bqjhgdt551w3v3y37gv3yub:before{background:#000;background:var(--PSPDFKit-ThumbnailsSidebar-gridView-moveCursorDisabled-background);content:"";height:3px;left:50%;position:absolute;transform:translateX(-50%);width:12px}@media(min-width:768px){.PSPDFKit-7x2bqjhgdt551w3v3y37gv3yub:after,.PSPDFKit-7x2bqjhgdt551w3v3y37gv3yub:before{width:24px}}.PSPDFKit-7x2bqjhgdt551w3v3y37gv3yub:not(.PSPDFKit-78m832wbg6e9vmp1jz7knc9yk2):after,.PSPDFKit-7x2bqjhgdt551w3v3y37gv3yub:not(.PSPDFKit-78m832wbg6e9vmp1jz7knc9yk2):before{background:#5e5ceb}.PSPDFKit-7x2bqjhgdt551w3v3y37gv3yub:before{top:0}.PSPDFKit-7x2bqjhgdt551w3v3y37gv3yub:after{bottom:0}.PSPDFKit-8vr6stqqbzz9z9n2w721sczcmz{background-color:#fff;background-color:var(--PSPDFKit-ThumbnailsSidebar-gridView-thumbnail-background);box-shadow:0 1.5px 2px rgba(43, 46, 54, 0.15),0 3px 6px rgba(43, 46, 54, 0.15);box-shadow:0 1.5px 2px var(--PSPDFKit-ThumbnailsSidebar-gridView-thumbnail-boxShadow),0 3px 6px var(--PSPDFKit-ThumbnailsSidebar-gridView-thumbnail-boxShadow);overflow:hidden;transition:opacity .16s}.PSPDFKit-8vr6stqqbzz9z9n2w721sczcmz:not(.PSPDFKit-213q4dhe5s5dzr5zeyuf11xun6){cursor:pointer}.PSPDFKit-4vvz95aegtycng8362mk8x2u2f{border-radius:1px;box-shadow:0 0 0 4px #5e5ceb;box-shadow:0 0 0 4px var(--PSPDFKit-ThumbnailsSidebar-gridView-thumbnail-isSelected-boxShadow)}.PSPDFKit-7w3scq2qsd5h5g3fxuj2wccn4t{opacity:.3}.PSPDFKit-2y5u2mcg8a7zhnfwfbbcfhnxcx{background-color:rgb(61 66 78 / 0.5);background-color:var(--PSPDFKit-ThumbnailsSidebar-gridView-label-background);border-radius:3px;color:#fff;color:var(--PSPDFKit-ThumbnailsSidebar-gridView-label-color);display:inline-block;min-width:48px;overflow:hidden;padding:0 4px;text-align:center;text-overflow:ellipsis;text-shadow:0 1.5px 3px rgba(0,0,0,.3);white-space:nowrap;width:auto}.PSPDFKit-3q3ydy7h9pcgtbpzqngpf8cet1{background-color:#5e5ceb;background-color:var(--PSPDFKit-ThumbnailsSidebar-gridView-label-isSelected-background);color:#fff;color:var(--PSPDFKit-ThumbnailsSidebar-gridView-label-isSelected-color)}.PSPDFKit-38dx8eye5za2p9zfprek3a6fmu canvas,.PSPDFKit-38dx8eye5za2p9zfprek3a6fmu img{transform:translateZ(0)} +.PSPDFKit-6rzkyc987bqyetscyfvr4nf3f2{-webkit-backface-visibility:hidden;left:0;position:absolute;right:0;width:100%;z-index:2}.PSPDFKit-2fwepfwm4jpbvv9evy3bh2cmsu{bottom:44px} +.PSPDFKit-7dzbfgjr5hhbb3rc1z1j74nw53{align-items:flex-start;display:flex;flex-direction:row;opacity:.97;padding:1em 0.46875em;padding:var(--PSPDFKit-spacing-4) var(--PSPDFKit-spacing-7)}.PSPDFKit-67qcupwvpz7h59x97s5hu3w8y9{display:flex;margin-left:auto;margin-right:auto}.PSPDFKit-5hnd1py888z6q6dqpr2kp2cq2e{margin-right:0.8125em;margin-right:var(--PSPDFKit-spacing-5)}.PSPDFKit-6ee193drjzesd61tu19hcvekb6{display:block;height:24px;width:24px}.PSPDFKit-67meud5692v5j5a61jw2681xzk{background-color:transparent;border:none;display:flex;justify-content:center;padding:0 0 0 0.8125em;padding:0 0 0 var(--PSPDFKit-spacing-5)}.PSPDFKit-67meud5692v5j5a61jw2681xzk:hover{background-color:transparent}.PSPDFKit-6u1j5sk8ayvj3gvkxqkswrcet2{flex-basis:24px;height:24px;width:24px}.PSPDFKit-44csr6tj4teuj9fhfz8ee71tfx{background-color:#f5fee3;background-color:var(--PSPDFKit-SignaturesValidationStatusBar-Valid-backgroundColor);color:#3d424e;color:var(--PSPDFKit-SignaturesValidationStatusBar-Valid-color)}.PSPDFKit-2e9udw15t4gp8scnfddhxz9hsd{color:#628d06;color:var(--PSPDFKit-SignaturesValidationStatusBar-Icon-Valid-color)}.PSPDFKit-4ppb4buhu7rwnjufcn6ajpkskn{background-color:#fffae1;background-color:var(--PSPDFKit-SignaturesValidationStatusBar-Warning-backgroundColor);color:#3d424e;color:var(--PSPDFKit-SignaturesValidationStatusBar-Warning-color)}.PSPDFKit-86f3yc46j85tr3gsnftm482dk{color:#e8b500;color:var(--PSPDFKit-SignaturesValidationStatusBar-Icon-Warning-color)}.PSPDFKit-2c4pxuv49a7x173nj5nzfauxbt{background-color:#fceaf1;background-color:var(--PSPDFKit-SignaturesValidationStatusBar-Error-backgroundColor);color:#3d424e;color:var(--PSPDFKit-SignaturesValidationStatusBar-Error-color)}.PSPDFKit-8zs1teqnye2ksnaxmemgknn6pv{color:#d63960;color:var(--PSPDFKit-SignaturesValidationStatusBar-Icon-Error-color)} +.PSPDFKit-32xak74au7weyz9ycbwytr2c3f{color:#fff;padding:0 6px}.PSPDFKit-5j1459s9zq1zket63h26xjmr1j{border-right:1px solid #4a4d51}.PSPDFKit-5j1459s9zq1zket63h26xjmr1j:last-child{border-right:0}.PSPDFKit-5j1459s9zq1zket63h26xjmr1j:active,.PSPDFKit-5j1459s9zq1zket63h26xjmr1j:focus,.PSPDFKit-5j1459s9zq1zket63h26xjmr1j:hover,.PSPDFKit-5j1459s9zq1zket63h26xjmr1j[data-focus-within]{background-color:#5f6d78}.PSPDFKit-5j1459s9zq1zket63h26xjmr1j:focus-within{background-color:#5f6d78} +.PSPDFKit-8jp8nm1hj7szh4vv5aurdvd5j9{background:#f6f8fa;background:var(--PSPDFKit-Viewport-background);overflow:hidden;position:absolute;text-align:center} +.PSPDFKit-upyueavav3kv33ygfhr93t7hn{background-color:#f6f8fa;background-color:var(--PSPDFKit-ElectronicSignatures-modal-background);max-height:100vh;max-width:1126px;padding:0;width:90%}@media(max-height:455px){.PSPDFKit-upyueavav3kv33ygfhr93t7hn{height:90%}}@media(max-height:300px){.PSPDFKit-upyueavav3kv33ygfhr93t7hn{height:100%}}@media(orientation:landscape)and (max-width:480px){.PSPDFKit-upyueavav3kv33ygfhr93t7hn{border-radius:0;max-width:100%}}@media(max-width:740px){.PSPDFKit-upyueavav3kv33ygfhr93t7hn{width:95%}}@media(max-width:695px){.PSPDFKit-upyueavav3kv33ygfhr93t7hn{width:100%}} +.PSPDFKit-8gq7mgq8djv9ezfm3aggdqah73{background-color:#f0f3f9;background-color:var(--PSPDFKit-ElectronicSignatures-tabsContainer-background)}.PSPDFKit-4naqn2bzdrgu5nb7mcca6813b9{border-bottom:1px solid #bec9d9;border-bottom:1px solid var(--PSPDFKit-ElectronicSignatures-tabList-border-color);border-top:1px solid #bec9d9;border-top:1px solid var(--PSPDFKit-ElectronicSignatures-tabList-border-color);display:flex;list-style:none;margin:0;padding:12px 32px;position:relative}.PSPDFKit-2wypy7bhpedng6w2enk86n2ffe{display:none}.PSPDFKit-2c6rssd6rpe9grxycaej4zf8rn{align-items:center;color:#4d525d;color:var(--PSPDFKit-ElectronicSignatures-tabLabel-color);cursor:pointer;display:flex;flex-direction:column;font-weight:400;height:35px;justify-content:center;margin-right:0.8125em;margin-right:var(--PSPDFKit-spacing-5);min-width:80px}.PSPDFKit-2c6rssd6rpe9grxycaej4zf8rn[aria-selected=true]{color:#4636e3;color:var(--PSPDFKit-ElectronicSignatures-tabLabel-active-color)}.PSPDFKit-79am7vyks3epfsjgn3wk7mww8m{background-color:#4636e3;background-color:var(--PSPDFKit-ElectronicSignatures-tabLabel-active-color);height:2px;position:absolute;top:59px;transition:all .2s ease}.PSPDFKit-83cpfrtzfckj4rmhdjbf74dvzb{align-items:center;display:flex}.PSPDFKit-7wtc4u9qzvmjad6d77716688jh{color:#4d525d;color:var(--PSPDFKit-ElectronicSignatures-storeCheckLabel-color);margin-left:0.609em;margin-left:var(--PSPDFKit-spacing-6)}.PSPDFKit-u7shgag5rj3hh92n3awajszy4{background-color:#fff;background-color:var(--PSPDFKit-ElectronicSignatures-contentArea-background)}.PSPDFKit-2qk916qe3f3jfunhkv92wmtjwx{align-items:center;background-color:#f6f8fa;background-color:var(--PSPDFKit-ElectronicSignatures-modal-background);border-top:1px solid #bec9d9;border-top:1px solid var(--PSPDFKit-ElectronicSignatures-tabList-border-color);display:flex;flex-wrap:wrap;justify-content:space-between;padding:1.625em 1.625em;padding:var(--PSPDFKit-spacing-3) var(--PSPDFKit-spacing-3)} +.PSPDFKit-5e3vu2w8sdv2pf1emxt3yraaqv{height:465px;margin:0 auto;padding-top:35px;width:640px}@media(max-width:660px){.PSPDFKit-5e3vu2w8sdv2pf1emxt3yraaqv{width:500px}}@media(max-width:480px){.PSPDFKit-5e3vu2w8sdv2pf1emxt3yraaqv{height:368px;width:100%}}.PSPDFKit-4a1d7hjmzrnsgm1gb318csfrvy{display:flex;justify-content:flex-end;margin-bottom:1.625em;margin-bottom:var(--PSPDFKit-spacing-3);margin-left:auto;margin-right:auto;width:640px}@media(max-width:660px){.PSPDFKit-4a1d7hjmzrnsgm1gb318csfrvy{width:500px}}@media(max-width:480px){.PSPDFKit-4a1d7hjmzrnsgm1gb318csfrvy{padding-top:15px;width:100%}}.PSPDFKit-8wzepjf229upy2k96xt66nwvg1{border:1px dashed #bec9d9;border:1px dashed var(--PSPDFKit-DrawingTab-canvas-borderColor);border-radius:5px;padding-bottom:40.8%}@media(max-width:480px){.PSPDFKit-8wzepjf229upy2k96xt66nwvg1{padding-bottom:38.8%;width:95%}}.PSPDFKit-4g59caqc4n814yqz4cmsatkbb4{align-items:center;display:flex;flex-direction:column;justify-content:center}@media(max-width:480px){.PSPDFKit-4g59caqc4n814yqz4cmsatkbb4{height:163px}}.PSPDFKit-25wyftd6zqm5vz9yxv6w2ptfka{color:#606671;color:var(--PSPDFKit-DrawingTab-signHere-color);left:0;right:auto}.PSPDFKit-465fzcz7141apddhad1qk38m5n{border:none;color:#2b1cc1!important;color:var(--PSPDFKit-DrawingTab-deleteSignature-color)!important;padding:0}.PSPDFKit-465fzcz7141apddhad1qk38m5n,.PSPDFKit-25wyftd6zqm5vz9yxv6w2ptfka{margin-top:2em;position:inherit;text-align:center;top:auto;transition:opacity .2s linear,visibility .2s;width:100%}.PSPDFKit-8ca9yy99yv6dw22x1rju3mhdb{align-items:center;display:flex;flex-direction:row;justify-content:center}.PSPDFKit-8ca9yy99yv6dw22x1rju3mhdb>.PSPDFKit-465fzcz7141apddhad1qk38m5n{width:auto} +.PSPDFKit-47zcsv3fwu5f5j1agedgk7s38h{cursor:pointer;display:block;height:40px;width:40px}.PSPDFKit-84pakzkccrn1sw838hggzcebe3{background:none;border:none;color:inherit}.PSPDFKit-73gasbj8rxtmc5mfcsd6kz1pnz{border:1px dashed #bec9d9;border:1px dashed var(--PSPDFKit-ElectronicSignatures-imagePicker-borderColor);border-radius:5px;cursor:pointer;display:flex;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);height:263px;width:640px}@media(max-width:660px){.PSPDFKit-73gasbj8rxtmc5mfcsd6kz1pnz{width:500px}}@media(max-width:480px){.PSPDFKit-73gasbj8rxtmc5mfcsd6kz1pnz{height:163px;width:95%}}.PSPDFKit-46re49atn1q2cssy9hm43jv1d9,.PSPDFKit-7aga8jh8uu7qs1c39crzpzcny9{align-items:center;flex-direction:column;justify-content:center}.PSPDFKit-7aga8jh8uu7qs1c39crzpzcny9{margin-bottom:5rem}.PSPDFKit-64akqfkfe3yfh3psehrkhk11cn,.PSPDFKit-8p7hj7mrmswvdvz9dgac99kcbp{align-items:center;display:flex;flex-direction:column;justify-content:center}.PSPDFKit-8p7hj7mrmswvdvz9dgac99kcbp{color:#4636e3;color:var(--PSPDFKit-ElectronicSignatures-imagePicker-color);height:465px;padding-top:5rem}@media(max-width:480px){.PSPDFKit-8p7hj7mrmswvdvz9dgac99kcbp{height:368px}}.PSPDFKit-7p7qnahhw8p91ewfd4espwghse{max-height:100%;max-width:100%}.PSPDFKit-2y5be3xzgvqseyuzhcmm6vsx4z,.PSPDFKit-7d7x8413mymuchrw2nz2993mp7{background-color:#d3dcff;background-color:var(--PSPDFKit-ElectronicSignatures-imagePicker-draggingBackground);border:1px dashed #4636e3;border:1px dashed var(--PSPDFKit-ElectronicSignatures-imagePicker-draggingBorder)}.PSPDFKit-83fg6reutzs25txppbedtku6vc{margin-top:14px}.PSPDFKit-82vsn8dkv4nb7e9kgk5qp8xbgp{height:.1px;opacity:0;overflow:hidden;position:absolute;width:.1px}.PSPDFKit-6u72ac2hzryqdgq3x5wsufupt4{background:none;border:none;color:inherit;cursor:pointer;font-size:inherit;margin-bottom:28px}.PSPDFKit-5dt9dw8u46k56qmj8cuh4sh97h{margin-top:2rem} +.PSPDFKit-719ep6pyz562atwmhkacj3k3m6{-webkit-overflow-scrolling:touch;height:465px}@media(max-width:480px){.PSPDFKit-719ep6pyz562atwmhkacj3k3m6{height:368px;overflow:scroll;width:100%}}.PSPDFKit-3n31k66pdk1ftnkfsz9qyf4hw2{background-color:#fff;background-color:var(--PSPDFKit-TypingTab-container-background-color);height:45%}@media(max-width:480px){.PSPDFKit-3n31k66pdk1ftnkfsz9qyf4hw2{height:53%}}.PSPDFKit-8wj5zntp4dv3watzk8r2x89phc{display:flex;justify-content:flex-end;margin-left:auto;margin-right:auto;padding-top:1.625em;padding-top:var(--PSPDFKit-spacing-3);width:640px}@media(max-width:660px){.PSPDFKit-8wj5zntp4dv3watzk8r2x89phc{width:500px}}@media(max-width:480px){.PSPDFKit-8wj5zntp4dv3watzk8r2x89phc{padding-top:15px;width:100%}}.PSPDFKit-61amcd4h9urqydnusjka2n26zq span{fill:#000;fill:var(--PSPDFKit-TypingTab-Dropdown-ColorPicker-color)}.PSPDFKit-61amcd4h9urqydnusjka2n26zq:active,.PSPDFKit-61amcd4h9urqydnusjka2n26zq:focus,.PSPDFKit-61amcd4h9urqydnusjka2n26zq:hover,.PSPDFKit-61amcd4h9urqydnusjka2n26zq[data-focus-within]{background-color:#fff;background-color:var(--PSPDFKit-TypingTab-Dropdown-ColorPicker-background)}.PSPDFKit-61amcd4h9urqydnusjka2n26zq:focus-within{background-color:#fff;background-color:var(--PSPDFKit-TypingTab-Dropdown-ColorPicker-background)}.PSPDFKit-61amcd4h9urqydnusjka2n26zq div[role=button]{background-color:#fff;background-color:var(--PSPDFKit-TypingTab-Dropdown-ColorPicker-background)}.PSPDFKit-2drm1cp6n3kvyeazukdtmu95sc{height:20px;width:20px}.PSPDFKit-4ptevweskgj257y41s798h5jjb{display:block;margin-left:auto;margin-right:auto;width:640px}@media(max-width:660px){.PSPDFKit-4ptevweskgj257y41s798h5jjb{width:500px}}@media(max-width:480px){.PSPDFKit-4ptevweskgj257y41s798h5jjb{width:100%}}.PSPDFKit-7nwwdf84apx2b7hzp5dwzennx6{opacity:.5}.PSPDFKit-g4c1ts5y4vg7jfgqfpbfzejm3{background-color:inherit;border:none;caret-color:rgba(0,0,0,.5);font-size:41px;font-weight:700;height:86px;letter-spacing:.02em;margin-bottom:20px;margin-left:auto;margin-right:auto;max-height:86px;text-align:center}.PSPDFKit-g4c1ts5y4vg7jfgqfpbfzejm3,.PSPDFKit-g4c1ts5y4vg7jfgqfpbfzejm3:focus{border-bottom:.33px solid #848c9a;border-bottom:.33px solid var(--PSPDFKit-TypingTab-input-border)}.PSPDFKit-g4c1ts5y4vg7jfgqfpbfzejm3:focus{background:#fff;background:var(--PSPDFKit-TypingTab-input-isFocused-background)}@media speech{.PSPDFKit-g4c1ts5y4vg7jfgqfpbfzejm3:focus-visible{outline-color:initial;outline-offset:0;outline-style:auto}}@media(max-width:480px){.PSPDFKit-g4c1ts5y4vg7jfgqfpbfzejm3{width:95%}}.PSPDFKit-73vux44ggg8dap4rwv4kyjkhn3{align-items:flex-end;display:flex;flex-direction:row;height:30px;justify-content:center;padding-bottom:.5em}@media(max-width:480px){.PSPDFKit-73vux44ggg8dap4rwv4kyjkhn3{padding-bottom:.8em}}.PSPDFKit-3p7nz96bvsjsdgjw4c8kyj4398{color:#606671;color:var(--PSPDFKit-DrawingTab-signHere-color);left:0;right:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-3ks1wb4nkwub2urv5f3f4u4yvj{border:none;color:#2b1cc1!important;color:var(--PSPDFKit-DrawingTab-deleteSignature-color)!important;padding:0;width:auto}.PSPDFKit-73vux44ggg8dap4rwv4kyjkhn3>.PSPDFKit-3ks1wb4nkwub2urv5f3f4u4yvj{width:auto}.PSPDFKit-3ks1wb4nkwub2urv5f3f4u4yvj,.PSPDFKit-3p7nz96bvsjsdgjw4c8kyj4398{position:inherit;text-align:center;top:auto;transition:opacity .2s linear,visibility .2s;width:100%}.PSPDFKit-qs3v152s7j26gqhj68c2q6bss{background-color:#f0f3f9;background-color:var(--PSPDFKit-TypingTab-fontFamilyPicker-background);border-top:1px solid #d8dfeb;border-top:1px solid var(--PSPDFKit-TypingTab-fontFamilyPicker-border);display:flex;flex-wrap:wrap;height:55%}@media(max-width:480px){.PSPDFKit-qs3v152s7j26gqhj68c2q6bss{border:none;display:block;height:47%;padding-bottom:80vh}}.PSPDFKit-8y4kczzw2wzt6m4hbr729kb92t{align-items:center;background-color:#f0f3f9;background-color:var(--PSPDFKit-TypingTab-fontFamilyPicker-background);border-bottom:1px solid #d8dfeb;border-bottom:1px solid var(--PSPDFKit-TypingTab-fontFamilyPicker-border);display:flex;flex:0 0 50%;flex-direction:row;font-size:30px;justify-content:flex-start;letter-spacing:.02em;line-height:20px;padding-left:3%}.PSPDFKit-8y4kczzw2wzt6m4hbr729kb92t:hover{background-color:#fff;background-color:var(--PSPDFKit-TypingTab-fontFamily-isHovered-background)}@media(max-width:480px){.PSPDFKit-8y4kczzw2wzt6m4hbr729kb92t{height:100px}.PSPDFKit-8y4kczzw2wzt6m4hbr729kb92t label{height:2em;line-height:2em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:88%}.PSPDFKit-8y4kczzw2wzt6m4hbr729kb92t:hover{background-color:#f0f3f9;background-color:var(--PSPDFKit-TypingTab-fontFamilyPicker-background)}}.PSPDFKit-8y4kczzw2wzt6m4hbr729kb92t:nth-child(odd){border-right:1px solid #d8dfeb;border-right:1px solid var(--PSPDFKit-TypingTab-fontFamilyPicker-border)}@media(min-width:768px){.PSPDFKit-8y4kczzw2wzt6m4hbr729kb92t:nth-child(odd).PSPDFKit-8y4kczzw2wzt6m4hbr729kb92t:nth-last-child(2){border-bottom:none}}@media(max-width:480px){.PSPDFKit-8y4kczzw2wzt6m4hbr729kb92t:nth-child(odd){border-right:none}.PSPDFKit-8y4kczzw2wzt6m4hbr729kb92t:nth-child(3){border-bottom:1px solid #d8dfeb;border-bottom:1px solid var(--PSPDFKit-TypingTab-fontFamilyPicker-border)}}.PSPDFKit-8y4kczzw2wzt6m4hbr729kb92t:last-child{border-bottom:none}@media(max-width:480px){.PSPDFKit-8y4kczzw2wzt6m4hbr729kb92t:last-child{border-right:none}}.PSPDFKit-77g32ukjbbpdu75xgmdsyxjjhg{align-items:center;-webkit-appearance:none;-moz-appearance:none;border:2px solid #d8dfeb;border:2px solid var(--PSPDFKit-TypingTab-fontFamilyPicker-border);border-radius:50%;display:flex;flex-direction:row;flex-shrink:0;height:28px;justify-content:space-evenly;margin-right:32px;width:28px}@media(max-width:660px){.PSPDFKit-77g32ukjbbpdu75xgmdsyxjjhg{margin-right:3%}}.PSPDFKit-77g32ukjbbpdu75xgmdsyxjjhg:checked:before{background:#4636e3;background:var(--color-blue600);border-radius:50%;content:"";display:block;height:16px;margin:4px auto;width:16px}.PSPDFKit-5ua85syhm5ve22x5eyb9j4wkut{align-items:center;display:flex;height:100%} +.PSPDFKit-8pxcgwyzugpmx2y9hzc8mar5sx{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:1.625em;margin-bottom:var(--PSPDFKit-spacing-3)}.PSPDFKit-46bu8hmtxqnu6z2bfjmgu8yc12{color:#21242c;color:var(--PSPDFKit-ElectronicSignatures-modal-legend-color);font-size:1.125rem;font-size:var(--PSPDFKit-fontSize-4);font-weight:600;margin-left:1.625em;margin-left:var(--PSPDFKit-spacing-3);margin-top:1.625em;margin-top:var(--PSPDFKit-spacing-3)}.PSPDFKit-2xtks3w6gdnf916enx9j4pwpfu{margin-bottom:1.625em;margin-bottom:var(--PSPDFKit-spacing-3)}.PSPDFKit-4vs74kx4e13zumkps7tgue7ez,.PSPDFKit-2xtks3w6gdnf916enx9j4pwpfu{margin-right:1.625em;margin-right:var(--PSPDFKit-spacing-3);margin-top:1.625em;margin-top:var(--PSPDFKit-spacing-3)}.PSPDFKit-5aztmmhhz1251z37zr16w279dd{flex:1 1 auto;margin-left:1em;margin-left:var(--PSPDFKit-spacing-4);margin-right:1em;margin-right:var(--PSPDFKit-spacing-4);max-height:50vh;overflow:auto}@media(orientation:landscape)and (max-width:992px){.PSPDFKit-5aztmmhhz1251z37zr16w279dd{max-height:100%}} +.PSPDFKit-5jknctefe1bdrcw8ckp4c84xxz{display:flex;flex-direction:column;height:100vh;position:relative;width:100vw}@media(min-width:768px){.PSPDFKit-5jknctefe1bdrcw8ckp4c84xxz{border-radius:6px;height:calc(100vh - 64px);isolation:isolate;overflow:hidden;width:calc(100vw - 64px)}}.PSPDFKit-4pkhpangb13n8mmvw8ukdfhw4n{position:relative}.PSPDFKit-8am6zresjtqzubaax3ncbdkk65,.PSPDFKit-4m35g8jgpcwck6gzgr9fx9sj37>*{pointer-events:none}.PSPDFKit-8am6zresjtqzubaax3ncbdkk65{background:#fff;background:var(--PSPDFKit-DocumentEditor-moveDialog-background);border-radius:0 0 4px 4px;box-shadow:0 8px 16px rgba(0,0,0,.333);display:flex;flex-direction:column;opacity:0;overflow:hidden;position:absolute;right:0;top:100%;transform:translateY(-8px);transition-duration:.12s;transition-property:opacity,transform;width:375px;z-index:1}.PSPDFKit-7wm68x153yxrzfku2ccv6bng6w{border-radius:4px;left:50%;right:auto;top:12px;transform:translateX(-50%) translateY(-8px)}@media(min-width:1200px){.PSPDFKit-8am6zresjtqzubaax3ncbdkk65:not(.PSPDFKit-7wm68x153yxrzfku2ccv6bng6w){left:0;right:auto}}.PSPDFKit-78jn9e1vjnny6e5w7kbswqahdm{opacity:.98;pointer-events:all;transform:none}.PSPDFKit-78jn9e1vjnny6e5w7kbswqahdm.PSPDFKit-7wm68x153yxrzfku2ccv6bng6w{transform:translateX(-50%)}.PSPDFKit-8h6fy8n1ae1b2jzvx2bx945q5p{align-items:center;display:flex;font-size:15px;height:3.5rem;padding:12px}.PSPDFKit-2q7tsdrjbypfd7mwu6hbfdnmqn{flex:1}.PSPDFKit-7ja4pzq1aasqwczs6cw41n68nw{-moz-appearance:textfield;background:#fff;background:var(--PSPDFKit-DocumentEditor-moveDialogFormInput-background);border:1px solid #bec9d9;border:1px solid var(--PSPDFKit-DocumentEditor-moveDialogFormInput-borderColor);border-radius:3px;box-shadow:inset 0 1px 2px rgba(0,0,0,.2);color:inherit;font:inherit;height:100%;padding:0 8px;width:64px}.PSPDFKit-7ja4pzq1aasqwczs6cw41n68nw::-webkit-inner-spin-button,.PSPDFKit-7ja4pzq1aasqwczs6cw41n68nw::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.PSPDFKit-86an2z1e8c3rstpug6xhqbrz92{font-weight:500;height:100%;margin-left:12px;padding:0 20px}.PSPDFKit-86an2z1e8c3rstpug6xhqbrz92:disabled{opacity:.5}.PSPDFKit-7nbf67rhjsg7k4gsdmg33muhjb{background:#f0f3f9;background:var(--PSPDFKit-DocumentEditor-moveDialogHint-background);padding:6px 12px;white-space:normal}.PSPDFKit-2mh89kckyg3qpesbhuwrcrw9rd{color:#848c9a;color:var(--PSPDFKit-DocumentEditor-moveDialogHintText-color);font-size:13px;margin:0}.PSPDFKit-4qc12j3k5rawv8wqf56u3q8k4b{background:#f0f3f9;background:var(--PSPDFKit-DocumentEditor-pagesView-background);flex:1;overflow:auto;position:relative}.PSPDFKit-87xjjuqyeg5kxzvrh4nak5jkrs{align-items:center;display:flex;font-size:1.125rem;font-size:var(--PSPDFKit-fontSize-4);font-weight:700}.PSPDFKit-832dwy6tmpr3u59345n392d5kp{position:relative}.PSPDFKit-ufnr5vdahbxdpe2583xyak7wk{background:#fff}.PSPDFKit-36mc2jhmhw8s6j455stsmh6k7t{align-items:center;background:#fff;display:flex;flex-direction:column;justify-content:center;padding:24px;position:relative}.PSPDFKit-7mtmexx6nf2jzpxs9vv5ukyjhk{background:#4636e3;border-radius:50%;color:#fff;height:64px;padding:12px;width:64px}.PSPDFKit-bx6vky4fzf7e375qv4fgmyffe .PSPDFKit-7mtmexx6nf2jzpxs9vv5ukyjhk{height:32px;padding:6px;width:32px}.PSPDFKit-3hs8zjffpgsz41nr4dp7ybdkt5{color:rgba(0,0,0,.8);display:none;margin-top:24px}.PSPDFKit-36mc2jhmhw8s6j455stsmh6k7t:not(.PSPDFKit-bx6vky4fzf7e375qv4fgmyffe):after,.PSPDFKit-36mc2jhmhw8s6j455stsmh6k7t:not(.PSPDFKit-bx6vky4fzf7e375qv4fgmyffe):before{background:transparent;box-shadow:0 1px 2px rgba(0,0,0,.25);content:"";left:0;position:absolute;top:0;width:100%}.PSPDFKit-36mc2jhmhw8s6j455stsmh6k7t:not(.PSPDFKit-bx6vky4fzf7e375qv4fgmyffe):before{height:calc(100% - 6px)}.PSPDFKit-36mc2jhmhw8s6j455stsmh6k7t:not(.PSPDFKit-bx6vky4fzf7e375qv4fgmyffe):after{height:calc(100% - 3px)}.PSPDFKit-5yvxb7rnpjz9pacz8czkc32f8y .PSPDFKit-36mc2jhmhw8s6j455stsmh6k7t:not(.PSPDFKit-bx6vky4fzf7e375qv4fgmyffe) .PSPDFKit-491vbmcbxhae4fwryx7hsht2wh{height:80px;padding:16px;width:80px}.PSPDFKit-5yvxb7rnpjz9pacz8czkc32f8y .PSPDFKit-36mc2jhmhw8s6j455stsmh6k7t:not(.PSPDFKit-bx6vky4fzf7e375qv4fgmyffe) .PSPDFKit-2q199y39wutn5mwnfxjd4juxqq{display:initial}.PSPDFKit-8cajckh5v3zfxfj9hpdytffrv9 .PSPDFKit-5nnn6safhgnqp45k1gnacbs5b9{box-shadow:0 0 0 4px #5e5ceb}.PSPDFKit-7hskkg7c42g4u1gxydpvnhrare{background:rgba(0,0,0,.3);border-radius:6px;color:#fff;font-weight:700;margin-top:16px;padding:4px 24px;text-shadow:0 2px 3px rgba(0,0,0,.5);transition:background 40ms linear}.PSPDFKit-8cajckh5v3zfxfj9hpdytffrv9 .PSPDFKit-7hskkg7c42g4u1gxydpvnhrare{background:#5e5ceb}.PSPDFKit-267ekkrqhchqasjegw4gdy4gr3{align-items:center;background-color:#5e5ceb;background-color:var(--PSPDFKit-DocumentEditor-pagesSelectedIndicator-background);border-radius:3px;color:#fff;cursor:default;display:none;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);height:37px;opacity:0;padding:0 12px 0 8px;text-shadow:0 1.5px 3px rgba(0,0,0,.3);-webkit-user-select:none;-ms-user-select:none;user-select:none}@media(min-width:768px){.PSPDFKit-267ekkrqhchqasjegw4gdy4gr3{display:flex}}.PSPDFKit-7dep96m3dt6f6m6ggtsdvejn1b{opacity:1}.PSPDFKit-czbss4f5tejzb3s7rydnxdc6g{height:24px;margin-right:4px;width:24px}.PSPDFKit-8rq6e51mxrxdrszuexbb2cnxhy{align-items:center;background:#fcfdfe;background:var(--PSPDFKit-DocumentEditor-bottomBar-background);display:flex;flex-shrink:0;height:66px;padding:0 24px;position:relative}.PSPDFKit-8rq6e51mxrxdrszuexbb2cnxhy>:not(:last-child){margin-right:16px}.PSPDFKit-397h62jvayz1wt2xp2cz2ekmmw{flex:1}.PSPDFKit-7egcdrn8t9zxr4h4f3tqd6a6q9{overflow:visible!important}.PSPDFKit-5mgaebuj6tj1kbvvkf42rphvab{display:flex;justify-content:flex-start;overflow:visible;width:100%}.PSPDFKit-7mbngz46jn2pabmnth6t7hsds1{opacity:.8;position:relative}.PSPDFKit-7bbxybqv7gn2ruj7drnnj7fqgj>*{box-shadow:0 2px 4px rgba(0,0,0,.2);position:absolute}.PSPDFKit-7bbxybqv7gn2ruj7drnnj7fqgj :first-child{position:static}.PSPDFKit-7bbxybqv7gn2ruj7drnnj7fqgj :nth-child(2){left:8px;top:8px}.PSPDFKit-7bbxybqv7gn2ruj7drnnj7fqgj :nth-child(3){left:16px;top:16px}.PSPDFKit-7bbxybqv7gn2ruj7drnnj7fqgj :nth-child(4){left:24px;top:24px}.PSPDFKit-7bbxybqv7gn2ruj7drnnj7fqgj :nth-child(5){left:32px;top:32px}.PSPDFKit-339r3xtmjz8gs5vpsy5ncb75nb{background:#5f5af4;border-radius:100px;box-shadow:0 2px 4px rgba(0,0,0,.2);color:#fff;left:4px;padding:.1em 1em;position:absolute;top:4px} +.PSPDFKit-3jpjxq56vk2un8ub8pje71u85a{background:transparent;padding:0}.PSPDFKit-68rzfs8a4kxm2sv4wxbhvjjsk4{display:flex;flex-direction:column;height:calc(100vh - 64px);max-height:320px;max-width:640px;width:calc(100vw - 120px)}.PSPDFKit-8a6esc3kchamvphrc23c4bjcxn{align-items:center;background:#f0f3f9;display:flex;flex:1;justify-content:center} +.PSPDFKit-6wj1ne12vnarkud1xme1m8q59e{background:#f0f3f9;background:var(--PSPDFKit-AnnotationToolbar-background);font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3)}.PSPDFKit-8dvj6jpqdurcexw9s38nyrdusm{width:100%}.PSPDFKit-ng2p7yzx55dk3e8yd33ucyq3w{align-items:center;border-bottom:1px solid #bec9d9;border-bottom:1px solid var(--PSPDFKit-AnnotationToolbar-border);box-shadow:0 1px 2px rgba(0,0,0,.1);display:flex;flex:2;flex-direction:row;height:44px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-ng2p7yzx55dk3e8yd33ucyq3w .PSPDFKit-2nxj8qm7t143fbftj5wc5fkpmh,.PSPDFKit-ng2p7yzx55dk3e8yd33ucyq3w .PSPDFKit-8hmxpj5ufr2dmugsrzsfj5w24w{align-items:center;display:flex;flex-grow:1}.PSPDFKit-ng2p7yzx55dk3e8yd33ucyq3w .PSPDFKit-8hmxpj5ufr2dmugsrzsfj5w24w{flex-direction:row-reverse;justify-content:flex-start}.PSPDFKit-width-md .PSPDFKit-ng2p7yzx55dk3e8yd33ucyq3w,.PSPDFKit-width-sm .PSPDFKit-ng2p7yzx55dk3e8yd33ucyq3w,.PSPDFKit-width-xs .PSPDFKit-ng2p7yzx55dk3e8yd33ucyq3w{flex:1;flex-direction:row-reverse}.PSPDFKit-width-md .PSPDFKit-ng2p7yzx55dk3e8yd33ucyq3w .PSPDFKit-2nxj8qm7t143fbftj5wc5fkpmh,.PSPDFKit-width-sm .PSPDFKit-ng2p7yzx55dk3e8yd33ucyq3w .PSPDFKit-2nxj8qm7t143fbftj5wc5fkpmh,.PSPDFKit-width-xs .PSPDFKit-ng2p7yzx55dk3e8yd33ucyq3w .PSPDFKit-2nxj8qm7t143fbftj5wc5fkpmh{flex:initial;justify-content:flex-end}.PSPDFKit-width-md .PSPDFKit-ng2p7yzx55dk3e8yd33ucyq3w .PSPDFKit-8hmxpj5ufr2dmugsrzsfj5w24w,.PSPDFKit-width-sm .PSPDFKit-ng2p7yzx55dk3e8yd33ucyq3w .PSPDFKit-8hmxpj5ufr2dmugsrzsfj5w24w,.PSPDFKit-width-xs .PSPDFKit-ng2p7yzx55dk3e8yd33ucyq3w .PSPDFKit-8hmxpj5ufr2dmugsrzsfj5w24w{flex-direction:row;justify-content:flex-start}.PSPDFKit-ng2p7yzx55dk3e8yd33ucyq3w.PSPDFKit-5whgpdfnjnj445bw24d7d2eepu{flex-direction:row}.PSPDFKit-qg3hbxzy2wa7d7kn2kyb5hfg6 .PSPDFKit-ng2p7yzx55dk3e8yd33ucyq3w{border-bottom:none;border-top:1px solid #bec9d9;border-top:1px solid var(--PSPDFKit-AnnotationToolbar-border);box-shadow:0 -1px 2px rgba(0,0,0,.1)}.PSPDFKit-fw1d4hymsqsunxnj7htn2vejg{align-items:center;height:44px}.PSPDFKit-cvx8h4gvhqzqc8bb9wcmvaxnc{align-items:center;display:flex;flex-wrap:wrap;min-height:44px}.PSPDFKit-width-md .PSPDFKit-cvx8h4gvhqzqc8bb9wcmvaxnc,.PSPDFKit-width-sm .PSPDFKit-cvx8h4gvhqzqc8bb9wcmvaxnc,.PSPDFKit-width-xs .PSPDFKit-cvx8h4gvhqzqc8bb9wcmvaxnc{margin-right:6px}.PSPDFKit-8p1jwd1vdxc1uu5kv9x8p6kgp5{height:32px}.PSPDFKit-4tf1hj3ua2348x3vfjq2ckjdzj button{height:32px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.PSPDFKit-698j5mv28ddfb1zzrmuuvu4bgt{align-items:center;width:100%}.PSPDFKit-698j5mv28ddfb1zzrmuuvu4bgt,.PSPDFKit-8rw1bsyhe4kbrshjzkbxn2pxt9{display:flex;flex-direction:column}.PSPDFKit-2p1w8qyfeab7u2r61e5xm9basn{margin:0 8px}.PSPDFKit-2p1w8qyfeab7u2r61e5xm9basn:last-child{display:none}.PSPDFKit-width-md .PSPDFKit-2p1w8qyfeab7u2r61e5xm9basn,.PSPDFKit-width-sm .PSPDFKit-2p1w8qyfeab7u2r61e5xm9basn,.PSPDFKit-width-xs .PSPDFKit-2p1w8qyfeab7u2r61e5xm9basn{display:none}.PSPDFKit-7x5nveetga7f3u3eyhc2y9z693{display:flex;flex:1}.PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan{align-content:center;align-items:center;display:flex;justify-content:center}.PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan .PSPDFKit-8sgpeb7apq77q6pg14srm485gf:not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh),.PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan .PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376:not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh),.PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan .PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn:not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh){cursor:default}.PSPDFKit-width-md .PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan .PSPDFKit-cvx8h4gvhqzqc8bb9wcmvaxnc,.PSPDFKit-width-sm .PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan .PSPDFKit-cvx8h4gvhqzqc8bb9wcmvaxnc,.PSPDFKit-width-xs .PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan .PSPDFKit-cvx8h4gvhqzqc8bb9wcmvaxnc{display:none}.PSPDFKit-width-md .PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan .PSPDFKit-8sgpeb7apq77q6pg14srm485gf,.PSPDFKit-width-md .PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan .PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376,.PSPDFKit-width-md .PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan .PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn,.PSPDFKit-width-sm .PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan .PSPDFKit-8sgpeb7apq77q6pg14srm485gf,.PSPDFKit-width-sm .PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan .PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376,.PSPDFKit-width-sm .PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan .PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn,.PSPDFKit-width-xs .PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan .PSPDFKit-8sgpeb7apq77q6pg14srm485gf,.PSPDFKit-width-xs .PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan .PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376,.PSPDFKit-width-xs .PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan .PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn{cursor:pointer}.PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-2rtyr394stgbvv5j9jd2mrzx4w{display:none}.PSPDFKit-width-md .PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-2rtyr394stgbvv5j9jd2mrzx4w,.PSPDFKit-width-sm .PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-2rtyr394stgbvv5j9jd2mrzx4w,.PSPDFKit-width-xs .PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-2rtyr394stgbvv5j9jd2mrzx4w{display:block}.PSPDFKit-7x5nveetga7f3u3eyhc2y9z693 .PSPDFKit-cvx8h4gvhqzqc8bb9wcmvaxnc{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;line-height:0}.PSPDFKit-56zf8cu97f7wx6varc1jbjbc1t{align-items:center;display:flex;height:100%;min-width:100px}.PSPDFKit-width-md .PSPDFKit-56zf8cu97f7wx6varc1jbjbc1t,.PSPDFKit-width-sm .PSPDFKit-56zf8cu97f7wx6varc1jbjbc1t,.PSPDFKit-width-xs .PSPDFKit-56zf8cu97f7wx6varc1jbjbc1t{display:none}.PSPDFKit-56zf8cu97f7wx6varc1jbjbc1t button{height:32px}.PSPDFKit-322qz987bpbdyu82atqpttzvvy,.PSPDFKit-3spwsrcuq4a58mafezc2hew2hm{align-items:center;display:flex;height:32px;margin-right:0.609em;margin-right:var(--PSPDFKit-spacing-6)}.PSPDFKit-width-md .PSPDFKit-322qz987bpbdyu82atqpttzvvy,.PSPDFKit-width-sm .PSPDFKit-322qz987bpbdyu82atqpttzvvy,.PSPDFKit-width-xs .PSPDFKit-322qz987bpbdyu82atqpttzvvy{display:none}.PSPDFKit-4evwmwkh2v68zx97dy8htnw1he,.PSPDFKit-5g195rx1hwggkduwfaghaguwp8,.PSPDFKit-4h81esfk99wjjw1j1e4evv86k6,.PSPDFKit-8vcucy3gdsu18nrccy3sfz6e8e{align-items:center;display:flex}.PSPDFKit-5g195rx1hwggkduwfaghaguwp8,.PSPDFKit-4h81esfk99wjjw1j1e4evv86k6,.PSPDFKit-8vcucy3gdsu18nrccy3sfz6e8e{height:32px}.PSPDFKit-5g195rx1hwggkduwfaghaguwp8 circle,.PSPDFKit-5g195rx1hwggkduwfaghaguwp8 line,.PSPDFKit-5g195rx1hwggkduwfaghaguwp8 path,.PSPDFKit-5g195rx1hwggkduwfaghaguwp8 polygon,.PSPDFKit-5g195rx1hwggkduwfaghaguwp8 polyline,.PSPDFKit-5g195rx1hwggkduwfaghaguwp8 rect,.PSPDFKit-4h81esfk99wjjw1j1e4evv86k6 circle,.PSPDFKit-4h81esfk99wjjw1j1e4evv86k6 line,.PSPDFKit-4h81esfk99wjjw1j1e4evv86k6 path,.PSPDFKit-4h81esfk99wjjw1j1e4evv86k6 polygon,.PSPDFKit-4h81esfk99wjjw1j1e4evv86k6 polyline,.PSPDFKit-4h81esfk99wjjw1j1e4evv86k6 rect,.PSPDFKit-8vcucy3gdsu18nrccy3sfz6e8e circle,.PSPDFKit-8vcucy3gdsu18nrccy3sfz6e8e line,.PSPDFKit-8vcucy3gdsu18nrccy3sfz6e8e path,.PSPDFKit-8vcucy3gdsu18nrccy3sfz6e8e polygon,.PSPDFKit-8vcucy3gdsu18nrccy3sfz6e8e polyline,.PSPDFKit-8vcucy3gdsu18nrccy3sfz6e8e rect{stroke:#4d525d;stroke:var(--PSPDFKit-AnnotationToolbar-startLineCapSelect-circle-stroke)}.PSPDFKit-5g195rx1hwggkduwfaghaguwp8 button,.PSPDFKit-4h81esfk99wjjw1j1e4evv86k6 button,.PSPDFKit-8vcucy3gdsu18nrccy3sfz6e8e button{height:32px}.PSPDFKit-5g195rx1hwggkduwfaghaguwp8,.PSPDFKit-4h81esfk99wjjw1j1e4evv86k6{width:64px}.PSPDFKit-width-md .PSPDFKit-4h81esfk99wjjw1j1e4evv86k6,.PSPDFKit-width-sm .PSPDFKit-4h81esfk99wjjw1j1e4evv86k6,.PSPDFKit-width-xs .PSPDFKit-4h81esfk99wjjw1j1e4evv86k6{left:0;right:auto!important}.PSPDFKit-8vcucy3gdsu18nrccy3sfz6e8e{width:96px}.PSPDFKit-4evwmwkh2v68zx97dy8htnw1he{height:32px}.PSPDFKit-4evwmwkh2v68zx97dy8htnw1he:hover,.PSPDFKit-4evwmwkh2v68zx97dy8htnw1he[data-focus-within]{background:transparent}.PSPDFKit-4evwmwkh2v68zx97dy8htnw1he:focus-within{background:transparent}.PSPDFKit-47tvrbutrws584y86zkht7ugrh{align-items:center;background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background);border:1px solid #d8dfeb;border:1px solid var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-border);border-radius:3px;color:#848c9a;color:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-color);cursor:pointer;display:flex;height:32px;justify-content:space-between;margin-right:0.609em;margin-right:var(--PSPDFKit-spacing-6);padding:0.46875em;padding:var(--PSPDFKit-spacing-7);width:55px}.PSPDFKit-47tvrbutrws584y86zkht7ugrh span{fill:#848c9a;fill:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-color)}.PSPDFKit-47tvrbutrws584y86zkht7ugrh:hover:not(.PSPDFKit-3z6z4mnx2mybf2dduwbnu4ghbx),.PSPDFKit-47tvrbutrws584y86zkht7ugrh[data-focus-within]{background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background)}.PSPDFKit-47tvrbutrws584y86zkht7ugrh:hover:not(.PSPDFKit-3z6z4mnx2mybf2dduwbnu4ghbx) span,.PSPDFKit-47tvrbutrws584y86zkht7ugrh[data-focus-within] span{fill:#090c12;fill:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-isHovered-color)}.PSPDFKit-47tvrbutrws584y86zkht7ugrh:focus-within{background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background)}.PSPDFKit-47tvrbutrws584y86zkht7ugrh:focus-within span{fill:#090c12;fill:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-isHovered-color)}@media(max-width:1080px)and (min-width:992px){.PSPDFKit-7dcpygp7ucqsxtt8jqu8wqaek8{width:100px}}.PSPDFKit-8sgpeb7apq77q6pg14srm485gf,.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376,.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)!important;color:#3d424e;color:var(--PSPDFKit-AnnotationToolbar-button-color);flex-shrink:0}.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376,.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn,.PSPDFKit-8sgpeb7apq77q6pg14srm485gf.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6,.PSPDFKit-8sgpeb7apq77q6pg14srm485gf.PSPDFKit-74uqksjtt33kw457gbgm6cjhar,.PSPDFKit-74uqksjtt33kw457gbgm6cjhar.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376,.PSPDFKit-74uqksjtt33kw457gbgm6cjhar.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn{border-left:0!important;border-right:1px solid #bec9d9!important;border-right:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border)!important}.PSPDFKit-width-md .PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376,.PSPDFKit-width-md .PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn,.PSPDFKit-width-md .PSPDFKit-8sgpeb7apq77q6pg14srm485gf.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6,.PSPDFKit-width-md .PSPDFKit-8sgpeb7apq77q6pg14srm485gf.PSPDFKit-74uqksjtt33kw457gbgm6cjhar,.PSPDFKit-width-md .PSPDFKit-74uqksjtt33kw457gbgm6cjhar.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376,.PSPDFKit-width-md .PSPDFKit-74uqksjtt33kw457gbgm6cjhar.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn,.PSPDFKit-width-sm .PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376,.PSPDFKit-width-sm .PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn,.PSPDFKit-width-sm .PSPDFKit-8sgpeb7apq77q6pg14srm485gf.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6,.PSPDFKit-width-sm .PSPDFKit-8sgpeb7apq77q6pg14srm485gf.PSPDFKit-74uqksjtt33kw457gbgm6cjhar,.PSPDFKit-width-sm .PSPDFKit-74uqksjtt33kw457gbgm6cjhar.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376,.PSPDFKit-width-sm .PSPDFKit-74uqksjtt33kw457gbgm6cjhar.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn,.PSPDFKit-width-xs .PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376,.PSPDFKit-width-xs .PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn,.PSPDFKit-width-xs .PSPDFKit-8sgpeb7apq77q6pg14srm485gf.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6,.PSPDFKit-width-xs .PSPDFKit-8sgpeb7apq77q6pg14srm485gf.PSPDFKit-74uqksjtt33kw457gbgm6cjhar,.PSPDFKit-width-xs .PSPDFKit-74uqksjtt33kw457gbgm6cjhar.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376,.PSPDFKit-width-xs .PSPDFKit-74uqksjtt33kw457gbgm6cjhar.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border)!important;border-right:0!important}.PSPDFKit-8sgpeb7apq77q6pg14srm485gf.PSPDFKit-wnrcu53f16qwbavnhtrcsrvtt,.PSPDFKit-wnrcu53f16qwbavnhtrcsrvtt.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376,.PSPDFKit-wnrcu53f16qwbavnhtrcsrvtt.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn{border-left:0!important;border-right:0!important}.PSPDFKit-width-md .PSPDFKit-8sgpeb7apq77q6pg14srm485gf.PSPDFKit-wnrcu53f16qwbavnhtrcsrvtt,.PSPDFKit-width-md .PSPDFKit-wnrcu53f16qwbavnhtrcsrvtt.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376,.PSPDFKit-width-md .PSPDFKit-wnrcu53f16qwbavnhtrcsrvtt.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn,.PSPDFKit-width-sm .PSPDFKit-8sgpeb7apq77q6pg14srm485gf.PSPDFKit-wnrcu53f16qwbavnhtrcsrvtt,.PSPDFKit-width-sm .PSPDFKit-wnrcu53f16qwbavnhtrcsrvtt.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376,.PSPDFKit-width-sm .PSPDFKit-wnrcu53f16qwbavnhtrcsrvtt.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn,.PSPDFKit-width-xs .PSPDFKit-8sgpeb7apq77q6pg14srm485gf.PSPDFKit-wnrcu53f16qwbavnhtrcsrvtt,.PSPDFKit-width-xs .PSPDFKit-wnrcu53f16qwbavnhtrcsrvtt.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376,.PSPDFKit-width-xs .PSPDFKit-wnrcu53f16qwbavnhtrcsrvtt.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)!important}.PSPDFKit-width-lg .PSPDFKit-8sgpeb7apq77q6pg14srm485gf:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc).PSPDFKit-36xa88kvhztmqf3w9bw4r5ux2b,.PSPDFKit-width-lg .PSPDFKit-8sgpeb7apq77q6pg14srm485gf:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc):active,.PSPDFKit-width-lg .PSPDFKit-8sgpeb7apq77q6pg14srm485gf:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc):focus,.PSPDFKit-width-lg .PSPDFKit-8sgpeb7apq77q6pg14srm485gf:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc):hover,.PSPDFKit-width-lg .PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc).PSPDFKit-36xa88kvhztmqf3w9bw4r5ux2b,.PSPDFKit-width-lg .PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc):active,.PSPDFKit-width-lg .PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc):focus,.PSPDFKit-width-lg .PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc):hover,.PSPDFKit-width-lg .PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc).PSPDFKit-36xa88kvhztmqf3w9bw4r5ux2b,.PSPDFKit-width-lg .PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc):active,.PSPDFKit-width-lg .PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc):focus,.PSPDFKit-width-lg .PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc):hover,.PSPDFKit-width-xl .PSPDFKit-8sgpeb7apq77q6pg14srm485gf:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc).PSPDFKit-36xa88kvhztmqf3w9bw4r5ux2b,.PSPDFKit-width-xl .PSPDFKit-8sgpeb7apq77q6pg14srm485gf:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc):active,.PSPDFKit-width-xl .PSPDFKit-8sgpeb7apq77q6pg14srm485gf:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc):focus,.PSPDFKit-width-xl .PSPDFKit-8sgpeb7apq77q6pg14srm485gf:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc):hover,.PSPDFKit-width-xl .PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc).PSPDFKit-36xa88kvhztmqf3w9bw4r5ux2b,.PSPDFKit-width-xl .PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc):active,.PSPDFKit-width-xl .PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc):focus,.PSPDFKit-width-xl .PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc):hover,.PSPDFKit-width-xl .PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc).PSPDFKit-36xa88kvhztmqf3w9bw4r5ux2b,.PSPDFKit-width-xl .PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc):active,.PSPDFKit-width-xl .PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc):focus,.PSPDFKit-width-xl .PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn:not(.PSPDFKit-2ztmuxhn7vkbcnujg5fjs2nxk6) :not(.PSPDFKit-74uqksjtt33kw457gbgm6cjhar) :not(.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp) :not(.PSPDFKit-67pvyt6s62cm85bnpjx6pbnnxh) :not(.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b) :not(.PSPDFKit-26sazeqcf3gq4uzpnpv7rxy5tc):hover{background:transparent!important}.PSPDFKit-8sgpeb7apq77q6pg14srm485gf.PSPDFKit-36xa88kvhztmqf3w9bw4r5ux2b,.PSPDFKit-8sgpeb7apq77q6pg14srm485gf:active,.PSPDFKit-8sgpeb7apq77q6pg14srm485gf:focus,.PSPDFKit-8sgpeb7apq77q6pg14srm485gf:hover,.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376:active,.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376:focus,.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376:hover,.PSPDFKit-36xa88kvhztmqf3w9bw4r5ux2b.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376,.PSPDFKit-36xa88kvhztmqf3w9bw4r5ux2b.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn,.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn:active,.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn:focus,.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn:hover{background:#d8dfeb;background:var(--PSPDFKit-AnnotationToolbar-button-isHovered-background)}.PSPDFKit-7ksmq2q9vqb2a84h6pknr59vq,.PSPDFKit-4frspfy8ydaf2dspz1w2fe24sm{cursor:not-allowed;opacity:.2;pointer-events:none}.PSPDFKit-6a17y1zq5nmhnd7rsvvnnp3u82{border:0!important;color:#3d424e!important;color:var(--PSPDFKit-AnnotationToolbar-icon-color)!important;display:flex!important;pointer-events:auto!important}.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp{cursor:pointer!important;height:44px;min-width:44px;padding:0 11px}.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp.PSPDFKit-36xa88kvhztmqf3w9bw4r5ux2b,.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp:active,.PSPDFKit-3j7ttk21fapf4hjzymwfaax2pp:hover{background:#d8dfeb;background:var(--PSPDFKit-AnnotationToolbar-button-isHovered-background)}.PSPDFKit-2kd6b54vbgtjvjpw1vfjnz3gxa{outline:2px solid #4636e3;outline:2px solid var(--PSPDFKit-AnnotationToolbar-button-outline)}.PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan:first-child .PSPDFKit-8sgpeb7apq77q6pg14srm485gf:first-child,.PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan:first-child .PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376:first-child,.PSPDFKit-4m86pvrmtk7xh9sv3z47hqfan:first-child .PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn:first-child{border-left:none!important}.PSPDFKit-5ju67k328yc7tj3jx5vxn2tn9q{line-height:normal;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.PSPDFKit-4rm6x2vr78j36rwf82x8zcfxaf{background:#fff;background:var(--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background);box-shadow:none;padding:0}.PSPDFKit-2jdyb25hw79fahb16kjd7nuauu{align-items:center;background:#ffc78f;background:var(--PSPDFKit-AnnotationToolbar-warning-icon-background);border-radius:3px;box-shadow:0 .75px 1.5px 0 rgba(0,0,0,.15);cursor:pointer;display:flex;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);gap:10px;margin:0 0.46875em;margin:0 var(--PSPDFKit-spacing-7);padding:4px 0.8125em;padding:4px var(--PSPDFKit-spacing-5)}.PSPDFKit-6gnk29arwa3bmx79suwfyneh29{height:16px;width:16px}.PSPDFKit-76w7jmjqqnsz53a6hk7gjuqjfv{width:max-content}.PSPDFKit-7xact8a8nm7egrfqd6jm8dexja{box-sizing:initial;display:flex;flex-flow:row wrap;padding:10px}.PSPDFKit-5swkhzjuhg7a1yzus1srcazf4{align-items:center;border:none;border-radius:5px;height:30px;justify-content:center;min-width:30px;padding:0}.PSPDFKit-5swkhzjuhg7a1yzus1srcazf4,.PSPDFKit-6j136ndjfdbtgth4w1223r3b8v{display:flex}.PSPDFKit-53pmrz6mhqkv25rduwt3r74tdf{height:20px;width:20px}.PSPDFKit-6kht9xjauanscqhyehtvh2m7kf,.PSPDFKit-64qwd21qw14a1hs2qywq9dktfv{stroke:#4d525d;stroke:var(--PSPDFKit-AnnotationToolbar-startLineCapSelect-circle-stroke);stroke-width:1px;align-items:center;display:flex;padding:10px}.PSPDFKit-51ppvqecyde7wtftnkhpvreywa{display:none}.PSPDFKit-width-md .PSPDFKit-51ppvqecyde7wtftnkhpvreywa,.PSPDFKit-width-sm .PSPDFKit-51ppvqecyde7wtftnkhpvreywa,.PSPDFKit-width-xs .PSPDFKit-51ppvqecyde7wtftnkhpvreywa{align-items:center;display:block;margin-right:0.609em;margin-right:var(--PSPDFKit-spacing-6)}.PSPDFKit-47ujkffabzpr19w6jed6s7rn8s,.PSPDFKit-79wa34vt8h1dey55mwshznckvh{align-items:center;display:flex}.PSPDFKit-width-md .PSPDFKit-59kfug1yak6p54pbhwzyzp8nqv,.PSPDFKit-width-sm .PSPDFKit-59kfug1yak6p54pbhwzyzp8nqv,.PSPDFKit-width-xs .PSPDFKit-59kfug1yak6p54pbhwzyzp8nqv{align-items:center}.PSPDFKit-2bv4uu555xwcfzm4cbz9xw1575,.PSPDFKit-7y73pgnyhcbyab2r86s5wpf3tq{margin-right:10px}.PSPDFKit-width-md .PSPDFKit-7y73pgnyhcbyab2r86s5wpf3tq,.PSPDFKit-width-sm .PSPDFKit-7y73pgnyhcbyab2r86s5wpf3tq,.PSPDFKit-width-xs .PSPDFKit-7y73pgnyhcbyab2r86s5wpf3tq{margin-right:0}.PSPDFKit-3n3jywv8np58aypaxcq1dxaka4{align-items:center;display:inline-flex}.PSPDFKit-7h2nqj8dz99huxsdvz85vzqtkv{align-self:center;color:#3d424e;color:var(--PSPDFKit-AnnotationToolbar-label-color);padding:0 11px}.PSPDFKit-width-xs .PSPDFKit-3sskmdn9q2pttd7gnbgtfx1svm{max-width:110px}.PSPDFKit-5161whx8v77nvzdxwn92nren7h{align-items:center;display:flex;flex-wrap:wrap;line-height:0}.PSPDFKit-35zv6qfn2dk55st59jvbvkebe4{align-items:center;border-right:1px solid #bec9d9;border-right:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border);display:flex;min-height:44px;padding-left:5px;padding-right:5px}@media(max-width:992px){.PSPDFKit-35zv6qfn2dk55st59jvbvkebe4{border-left:1px solid #bec9d9;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-isDeselected-border);border-right:none;max-width:70px}}.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b{background-color:#fff;background-color:var(--PSPDFKit-AnnotationToolbar-redactions-button-background);border-radius:3px;box-shadow:0 .75px 1.5px rgba(0,0,0,.15);color:#000;color:var(--PSPDFKit-AnnotationToolbar-redactions-button-color);display:flex;height:28px;white-space:nowrap}.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b.PSPDFKit-36xa88kvhztmqf3w9bw4r5ux2b,.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b:active,.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b:focus,.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b:hover{background-color:#4636e3;background-color:var(--PSPDFKit-AnnotationToolbar-redactions-button-isHovered-background);color:#fff;color:var(--PSPDFKit-AnnotationToolbar-redactions-button-isHovered-color);filter:drop-shadow(0 1px 1px rgba(0,0,0,.15))}@media(max-width:992px){.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b{border-left:none!important;justify-content:flex-start;max-width:60px}.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b span{max-width:60px;overflow-x:hidden}.PSPDFKit-8sgpeb7apq77q6pg14srm485gf.PSPDFKit-wnrcu53f16qwbavnhtrcsrvtt.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b,.PSPDFKit-wnrcu53f16qwbavnhtrcsrvtt.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376,.PSPDFKit-wnrcu53f16qwbavnhtrcsrvtt.PSPDFKit-4jweuxb68jk1sdm8kfuh5e2v3b.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn{border-left:none!important}}.PSPDFKit-6zcvxqm7p1fu6peaqcvy1ggxur{display:inline-flex}.PSPDFKit-87rtaenbkbsa4vh76fdk49yn3{border-left:1px solid #bec9d9!important;border-left:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)!important;padding:0 0.8125em;padding:0 var(--PSPDFKit-spacing-5)}.PSPDFKit-7n79z1dfc6drdkd4q859desfw4{margin-left:4px}.PSPDFKit-7h73prxvatb9v6feg135wrgpnu{flex-direction:row-reverse}.PSPDFKit-width-md .PSPDFKit-7ftvxz7pwnjfrf9p9bvx4kdaem,.PSPDFKit-width-sm .PSPDFKit-7ftvxz7pwnjfrf9p9bvx4kdaem,.PSPDFKit-width-xs .PSPDFKit-7ftvxz7pwnjfrf9p9bvx4kdaem{flex-direction:row;overflow-x:auto}.PSPDFKit-width-md .PSPDFKit-7ftvxz7pwnjfrf9p9bvx4kdaem .PSPDFKit-8hmxpj5ufr2dmugsrzsfj5w24w,.PSPDFKit-width-sm .PSPDFKit-7ftvxz7pwnjfrf9p9bvx4kdaem .PSPDFKit-8hmxpj5ufr2dmugsrzsfj5w24w,.PSPDFKit-width-xs .PSPDFKit-7ftvxz7pwnjfrf9p9bvx4kdaem .PSPDFKit-8hmxpj5ufr2dmugsrzsfj5w24w{flex-basis:0;flex-direction:row-reverse}.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn{cursor:pointer;display:inline-flex;height:100%;margin:0;padding:10px}.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn.PSPDFKit-36xa88kvhztmqf3w9bw4r5ux2b,.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn:active,.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn:focus,.PSPDFKit-5pby2mjv6be8mvvy41rpp7dkwn:hover{background-color:#f0f3f9;background-color:var(--PSPDFKit-AnnotationToolbar-background);border-bottom:1px solid #bec9d9;border-bottom:1px solid var(--PSPDFKit-AnnotationToolbar-button-border)}.PSPDFKit-5zxmaq2rs3z7z1ycb76vnfp8s7 span{align-items:center;display:flex;justify-content:center}.PSPDFKit-2zcrcumxc9rs6exf4ygg6wxhud{align-items:center;border-bottom:1px solid #bec9d9;border-bottom:1px solid var(--PSPDFKit-CropToolbarComponent-border);box-shadow:0 1px 2px rgba(0,0,0,.1);flex-direction:row;height:44px;justify-content:space-between;padding:0 12px}.PSPDFKit-4su7z3fj53danm9m8sfmsun6mh,.PSPDFKit-2zcrcumxc9rs6exf4ygg6wxhud,.PSPDFKit-3fqbszrmhfm53fj9m672rspbb9{display:flex}.PSPDFKit-3fqbszrmhfm53fj9m672rspbb9{align-items:center;color:#4d525d;color:var(--PSPDFKit-CropToolbarComponent-text-color);cursor:pointer;height:44px;justify-content:center;padding-left:10px;padding-right:10px;transition:background-color .15s}.PSPDFKit-3fqbszrmhfm53fj9m672rspbb9:not(:last-child){border-right:1px solid #bec9d9;border-right:1px solid var(--PSPDFKit-CropToolbarComponent-button-isDeselected-border)}.PSPDFKit-3fqbszrmhfm53fj9m672rspbb9:hover:not([aria-disabled=true]){background-color:#d8dfeb!important;background-color:var(--PSPDFKit-CropToolbarComponent-button-isHovered-backgroundColor)!important}.PSPDFKit-3fqbszrmhfm53fj9m672rspbb9:first-of-type{border-left:none!important;padding-left:0}.PSPDFKit-3fqbszrmhfm53fj9m672rspbb9 span,.PSPDFKit-3fqbszrmhfm53fj9m672rspbb9 svg{align-items:center;display:flex;height:32px}.PSPDFKit-3yfe86869dr14nnq3hdqmpstt3{cursor:not-allowed;opacity:.5}.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376{border:1px solid!important;border-color:#bec9d9!important;border-color:var(--PSPDFKit-CropToolbarComponent-button-borderColor)!important;border-radius:3px;cursor:pointer;padding:0 20px;transition:border-color .15s}.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376:hover{border:1px solid!important;border-color:#3d424e!important;border-color:var(--PSPDFKit-CropToolbarComponent-button-isHovered-borderColor)!important}.PSPDFKit-8cc6ksf43ant6wkp5gxwmyn376 span{align-items:center;display:flex;height:32px}.PSPDFKit-5q4w3drt2wva22st2m2zv3jdy9{display:block}.PSPDFKit-46c99tbpsdnq21yere2qsvz9cs{align-items:center;border-left:1px solid #bec9d9;border-left:1px solid var(--PSPDFKit-CropToolbarComponent-button-isDeselected-border);display:none;justify-content:center;padding-left:0;padding-right:0}.PSPDFKit-5uhy32eduhqeagjxsx8v1dsupn{display:block}.PSPDFKit-89hzg3dmpqdp1bb33by963n2me{display:none!important}@media(max-width:768px){.PSPDFKit-5q4w3drt2wva22st2m2zv3jdy9{display:none}.PSPDFKit-46c99tbpsdnq21yere2qsvz9cs{display:flex;width:47px}.PSPDFKit-46c99tbpsdnq21yere2qsvz9cs svg{stroke-width:2px;height:17px;width:17px}.PSPDFKit-2zcrcumxc9rs6exf4ygg6wxhud{padding:0}.PSPDFKit-5uhy32eduhqeagjxsx8v1dsupn{display:none!important}.PSPDFKit-89hzg3dmpqdp1bb33by963n2me{display:flex!important}} +.PSPDFKit-5u5zg1p821mpfkbnn2k5uwyj5f{background-color:#f6f8fa;background-color:var(--PSPDFKit-MagnifierComponent-background);border:1px solid #000;border:1px solid var(--PSPDFKit-MagnifierComponent-magnifierContainer-borderColor);border-radius:50%;box-shadow:0 0 0 1px #fff;box-shadow:0 0 0 1px var(--PSPDFKit-MagnifierComponent-magnifierContainer-boxShadow);height:174px;overflow:hidden;position:fixed;right:30px;top:118px;width:174px}.PSPDFKit-8wd7v7mnz2rcxvt87ua26mzc6b{height:136px;right:15px;top:103px;width:136px}.PSPDFKit-5nkfqsjv5yud4v1dqua4t23fay{position:absolute}.PSPDFKit-5nkfqsjv5yud4v1dqua4t23fay img{image-rendering:pixelated}.PSPDFKit-browser-engine-gecko .PSPDFKit-5nkfqsjv5yud4v1dqua4t23fay img{image-rendering:crisp-edges}.PSPDFKit-4ucp3vtq371cyq6rjfnyr48ke9{height:100%;left:0;position:absolute;top:0;width:100%}.PSPDFKit-2mrwgj2fjj6868616ds613yrym{stroke:#d8dfeb;stroke:var(--PSPDFKit-MagnifierComponent-magnifierGrid-stroke);fill:none}.PSPDFKit-7sk5hhk6ycrf96cdxc48xy41us{stroke:#fff;stroke:var(--PSPDFKit-MagnifierComponent-magnifierCenterOutlineStroke-stroke);fill:none}.PSPDFKit-4cc9nv4wau5sr77yxnn4p9c6vn{stroke:#000;stroke:var(--PSPDFKit-MagnifierComponent-magnifierCenterStroke-stroke);fill:none}.PSPDFKit-61a71yusrshwesstskqk1ts821,.PSPDFKit-zd3q5csyfkc4sst1n5gwd6ynd{border-radius:10px;font-size:12px;height:20px;left:50%;line-height:20px;min-width:100px;position:absolute;top:75%;transform:translate(-50%,-50%)}.PSPDFKit-61a71yusrshwesstskqk1ts821{background-color:#848c9a;background-color:var(--PSPDFKit-MagnifierComponent-magnifierZoomValue-backgroundColor);mix-blend-mode:multiply}.PSPDFKit-zd3q5csyfkc4sst1n5gwd6ynd{color:#fff;color:var(--PSPDFKit-MagnifierComponent-magnifierZoomValue-color);text-align:center} +.PSPDFKit-3j4jdq7qz2dwxa1279k9vazwef{display:flex;flex-direction:row;opacity:.5;padding-right:24px}.PSPDFKit-69m56fu4j9n82gdbujywja2gvt .PSPDFKit-3j4jdq7qz2dwxa1279k9vazwef,.PSPDFKit-3j4jdq7qz2dwxa1279k9vazwef.PSPDFKit-8eej8fpcv5wjeexf54uv82ajge{opacity:1}.PSPDFKit-5ryk8gx2yq84us8ukyczpsxy3m{align-items:center;display:flex;flex-wrap:nowrap;justify-content:center}.PSPDFKit-8rqw29ppj2w4yuvy43x1xrr11j{opacity:.5;padding:0 24px}.PSPDFKit-8rqw29ppj2w4yuvy43x1xrr11j.PSPDFKit-2we2fxduv62wzemn8q1msf1mgz{padding:0 8px}.PSPDFKit-4dxpfmdzs1ahjnhcn4j2824q7j{opacity:1}.PSPDFKit-xy1ab3hf7etfk3xyw2jg4queq{background-color:#bec9d9;background-color:var(--PSPDFKit-DocumentComparisonToolbar-separator-background);height:1px;margin:0 4px;width:24px}.PSPDFKit-3wymx3u415ps1255jfa43bguba{align-items:center;display:flex;height:20px;justify-content:center;width:20px}.PSPDFKit-4a9v7b75g9brahh3mp79eahacf{align-items:center;border-right:1px solid #d8dfeb;border-right:1px solid var(--PSPDFKit-DocumentComparisonToolbar-tab-border);color:#3d424e;color:var(--PSPDFKit-DocumentComparisonToolbar-label-color);cursor:pointer;display:flex;flex-direction:row;height:100%;justify-content:space-between}.PSPDFKit-4a9v7b75g9brahh3mp79eahacf .PSPDFKit-4negp1qnzp2hght5fzzkb948bq{max-width:21px;overflow:hidden}.PSPDFKit-4a9v7b75g9brahh3mp79eahacf .PSPDFKit-4negp1qnzp2hght5fzzkb948bq.PSPDFKit-4aha149mn5fr2qf7nm9vv3s1e8{max-width:0}.PSPDFKit-8vq8197jb1dah7zkt2cj4puza6{height:15px;width:15px}.PSPDFKit-8vq8197jb1dah7zkt2cj4puza6 svg{stroke-width:3px}.PSPDFKit-5vyjan5cx19u6zqmpkyk5y6n4m circle{fill:#4636e3;fill:var(--PSPDFKit-DocumentComparisonToolbar-checkMark-fill)}.PSPDFKit-5vyjan5cx19u6zqmpkyk5y6n4m path{stroke:#fff;stroke:var(--PSPDFKit-DocumentComparisonToolbar-checkMark-stroke)}.PSPDFKit-8y45regm71axdj29fvpdnyyqw9 circle{fill:#89bd1c;fill:var(--PSPDFKit-DocumentComparisonToolbar-documentCheckMark-fill)}.PSPDFKit-8y45regm71axdj29fvpdnyyqw9 path{stroke:#fff;stroke:var(--PSPDFKit-DocumentComparisonToolbar-documentCheckMark-stroke)}.PSPDFKit-8kjh85hafnnbaywytk891yszzy circle{fill:#bec9d9;fill:var(--PSPDFKit-DocumentComparisonToolbar-referencePoint-fill)}.PSPDFKit-8kjh85hafnnbaywytk891yszzy text{stroke:#2b2e36;stroke:var(--PSPDFKit-DocumentComparisonToolbar-referencePointText-stroke);fill:#2b2e36;fill:var(--PSPDFKit-DocumentComparisonToolbar-referencePointText-fill)}.PSPDFKit-5u4fqe6u9h9335r2untkufbfcj circle{fill:#4636e3;fill:var(--PSPDFKit-DocumentComparisonToolbar-referencePointSet-fill)}.PSPDFKit-5u4fqe6u9h9335r2untkufbfcj text{stroke:#fff;stroke:var(--PSPDFKit-DocumentComparisonToolbar-referencePointSetText-stroke);fill:#fff;fill:var(--PSPDFKit-DocumentComparisonToolbar-referencePointSetText-fill)}.PSPDFKit-3a6ss6w8kz4a9bg1ppdxs9wfjn{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-3a6ss6w8kz4a9bg1ppdxs9wfjn.PSPDFKit-4ws5865r8ddf7waw5w994xbgka{padding-right:2px}.PSPDFKit-63wgvxgkew5y5nngyepzsvu4me{padding-right:3px}.PSPDFKit-69m56fu4j9n82gdbujywja2gvt{background-color:#f6f8fa;background-color:var(--PSPDFKit-DocumentComparisonToolbar-tab-active-background)}.PSPDFKit-69m56fu4j9n82gdbujywja2gvt .PSPDFKit-4negp1qnzp2hght5fzzkb948bq,.PSPDFKit-69m56fu4j9n82gdbujywja2gvt .PSPDFKit-4negp1qnzp2hght5fzzkb948bq.PSPDFKit-4aha149mn5fr2qf7nm9vv3s1e8{max-width:none}.PSPDFKit-5g2uumfazey6jk28fuu62t1ku1{background:#f0f3f9;background:var(--PSPDFKit-DocumentComparisonToolbar-background);font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);position:absolute;width:100%;z-index:1}.PSPDFKit-49apg3ban7f6z5tha93nkbxpj4{border-bottom:1px solid #bec9d9;border-bottom:1px solid var(--PSPDFKit-DocumentComparisonToolbar-border);box-shadow:0 1px 2px rgba(0,0,0,.1);flex:2;flex-direction:row;-webkit-user-select:none;-ms-user-select:none;user-select:none}.PSPDFKit-49apg3ban7f6z5tha93nkbxpj4,.PSPDFKit-49apg3ban7f6z5tha93nkbxpj4 .PSPDFKit-46dnp15jxsmbmfb4w9u1ffee2p,.PSPDFKit-49apg3ban7f6z5tha93nkbxpj4 .PSPDFKit-3bsbcmmu6v14v6bf89hvv51u6r{align-items:center;display:flex;height:44px;width:100%}.PSPDFKit-49apg3ban7f6z5tha93nkbxpj4 .PSPDFKit-46dnp15jxsmbmfb4w9u1ffee2p,.PSPDFKit-49apg3ban7f6z5tha93nkbxpj4 .PSPDFKit-3bsbcmmu6v14v6bf89hvv51u6r{flex-grow:1;justify-content:space-between}.PSPDFKit-49apg3ban7f6z5tha93nkbxpj4 .PSPDFKit-3bsbcmmu6v14v6bf89hvv51u6r{flex-direction:row-reverse;justify-content:flex-start}.PSPDFKit-width-md .PSPDFKit-49apg3ban7f6z5tha93nkbxpj4,.PSPDFKit-width-sm .PSPDFKit-49apg3ban7f6z5tha93nkbxpj4,.PSPDFKit-width-xs .PSPDFKit-49apg3ban7f6z5tha93nkbxpj4{flex:1;flex-direction:row-reverse}.PSPDFKit-width-md .PSPDFKit-49apg3ban7f6z5tha93nkbxpj4 .PSPDFKit-46dnp15jxsmbmfb4w9u1ffee2p,.PSPDFKit-width-sm .PSPDFKit-49apg3ban7f6z5tha93nkbxpj4 .PSPDFKit-46dnp15jxsmbmfb4w9u1ffee2p,.PSPDFKit-width-xs .PSPDFKit-49apg3ban7f6z5tha93nkbxpj4 .PSPDFKit-46dnp15jxsmbmfb4w9u1ffee2p{align-items:center;height:44px}.PSPDFKit-width-md .PSPDFKit-49apg3ban7f6z5tha93nkbxpj4 .PSPDFKit-3bsbcmmu6v14v6bf89hvv51u6r,.PSPDFKit-width-sm .PSPDFKit-49apg3ban7f6z5tha93nkbxpj4 .PSPDFKit-3bsbcmmu6v14v6bf89hvv51u6r,.PSPDFKit-width-xs .PSPDFKit-49apg3ban7f6z5tha93nkbxpj4 .PSPDFKit-3bsbcmmu6v14v6bf89hvv51u6r{flex-direction:row;justify-content:flex-start}.PSPDFKit-49apg3ban7f6z5tha93nkbxpj4.PSPDFKit-54wvq7waj941tcr6uq8dg63zsm{flex-direction:row}.PSPDFKit-84kxsxx785v52177eqww89wnfu{bottom:44px}.PSPDFKit-84kxsxx785v52177eqww89wnfu .PSPDFKit-49apg3ban7f6z5tha93nkbxpj4{border-bottom:none;border-top:1px solid #bec9d9;border-top:1px solid var(--PSPDFKit-DocumentComparisonToolbar-border);box-shadow:0 -1px 2px rgba(0,0,0,.1)}.PSPDFKit-7vccbh9nhre14pssj1cjg5ykph{align-items:center}.PSPDFKit-7vccbh9nhre14pssj1cjg5ykph,.PSPDFKit-6q2z53f1kt5u3frhayfupey174{display:flex;justify-content:space-between}.PSPDFKit-6q2z53f1kt5u3frhayfupey174{flex-wrap:nowrap;height:100%}.PSPDFKit-6qd7xqnwwt5spedkqzrq2xxd1y,.PSPDFKit-v7w7h5tnf2m47yzqtd84h1drm,.PSPDFKit-kfexhdzwencygrragmhzwd8v3{border:1px solid #bec9d9;border:1px solid var(--PSPDFKit-DocumentComparisonToolbar-button-border);border-radius:3px;color:#3d424e;color:var(--PSPDFKit-DocumentComparisonToolbar-label-color);cursor:pointer;margin:0 5px;opacity:.25;padding:5px 16px;pointer-events:none}.PSPDFKit-6qd7xqnwwt5spedkqzrq2xxd1y.PSPDFKit-67ced71xr6v9qcqegyjdb8f9h2,.PSPDFKit-v7w7h5tnf2m47yzqtd84h1drm.PSPDFKit-67ced71xr6v9qcqegyjdb8f9h2,.PSPDFKit-kfexhdzwencygrragmhzwd8v3.PSPDFKit-67ced71xr6v9qcqegyjdb8f9h2{padding:6px 10px}.PSPDFKit-6qd7xqnwwt5spedkqzrq2xxd1y,.PSPDFKit-2wue8e3wfu7w9cxehmz4e88ktt,.PSPDFKit-5p1uejfqckjn5s61nuatmaqbme,.PSPDFKit-5jfgm1cjfd1sp4z1fkd6a1hcc7{opacity:1;pointer-events:all}.PSPDFKit-6qd7xqnwwt5spedkqzrq2xxd1y{background-color:#4636e3;background-color:var(--PSPDFKit-DocumentComparisonToolbar-highlight-button-background);color:#d8dfeb;color:var(--PSPDFKit-DocumentComparisonToolbar-highlight-button-color)}.PSPDFKit-6s9dcaafj7ab6mc6ktq5xn5tw6{align-items:center;display:flex;height:100%;justify-content:space-between;width:100%} +.PSPDFKit-3g5zqud1wjmcd71kwst6gjbcds{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;touch-action:pan-x pan-y;width:100%}.PSPDFKit-3g5zqud1wjmcd71kwst6gjbcds,.PSPDFKit-3g5zqud1wjmcd71kwst6gjbcds *{box-sizing:border-box}.PSPDFKit-3g5zqud1wjmcd71kwst6gjbcds.PSPDFKit-browser-engine-webkit{transform:translateZ(0)}@media print{*{display:none!important}}body{background:#f6f8fa;background:var(--PSPDFKit-App-background);font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, + Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;font-family:var(--PSPDFKit-fontFamily-1);font-size:1rem;font-size:var(--PSPDFKit-fontSize-1);line-height:1.4rem;line-height:var(--PSPDFKit-lineHeight-1)}.PSPDFKit-6qc6bjvev7sffhewvpkas9njsf{display:flex;flex-wrap:nowrap;height:100%;overflow:hidden;position:relative}.PSPDFKit-2f9xn5bkkrt3h6fsmstdexegkk{flex:1}:focus:not(:focus-visible){outline:none}.PSPDFKit-61bk1385h5ss7vmr9n4d26y7wj{opacity:.3;-webkit-user-select:none;-ms-user-select:none;user-select:none}:root:not([data-focusvisible-supported]) :focus:not([data-focusvisible-polyfill]){outline:none}.PSPDFKit-ejvfc31fwjv43pf6dxbymn8xw{display:flex}.PSPDFKit-gec7bey8wdz7abca1kbpqjncb{overscroll-behavior:contain} +.PSPDFKit-5ndr2a8v593wmzbkugj7mhpkx6{padding:1em 1em 1.625em;padding:var(--PSPDFKit-spacing-4) var(--PSPDFKit-spacing-4) var(--PSPDFKit-spacing-3)}.PSPDFKit-8a1r68duucnwazuve1yp3nbng9{color:#3d424e;color:var(--PSPDFKit-FormDesignerOptionsControlComponent-title-color);font-size:0.75rem;font-size:var(--PSPDFKit-fontSize-2);padding-bottom:1em;padding-bottom:var(--PSPDFKit-spacing-4);text-transform:uppercase}.PSPDFKit-4wma8z492shc4ep1hmy6t4vqut{align-items:center;border-top:1px solid #d8dfeb;border-top:1px solid var(--PSPDFKit-FormDesignerOptionsControlComponent-border-color);display:flex;min-height:46px;padding:0.8125em 0;padding:var(--PSPDFKit-spacing-5) 0}.PSPDFKit-4tmeja8e4gtumrdf83gvhyrcc4{color:#bec9d9;color:var(--PSPDFKit-FormDesignerOptionsControlComponent-icon-color);width:16px}.PSPDFKit-2ajb1c5391tmr11mqhaytx273m{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;height:23px}.PSPDFKit-2ajb1c5391tmr11mqhaytx273m:hover{cursor:pointer}.PSPDFKit-42c2zme6zggmdzdxcpyafgegx3{color:#000;color:var(--PSPDFKit-FormDesignerOptionsControlComponent-text-color);flex:1 0;font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);margin:0 1rem 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.PSPDFKit-4muygv9es2v72qv85d9qdw6e96{display:flex}.PSPDFKit-4muygv9es2v72qv85d9qdw6e96:hover .PSPDFKit-7qr7fr949c5zy3chtgst1aqgnh{color:#4636e3;color:var(--PSPDFKit-FormDesignerOptionsControlComponent-hover-color)}.PSPDFKit-2ds9qudjp9zf1adda74rdu1zrf{color:#4636e3;color:var(--PSPDFKit-FormDesignerOptionsControlComponent-addOption-button-color);font-size:0.875rem;font-size:var(--PSPDFKit-fontSize-3);padding-left:0;padding-top:6px;text-decoration:underline}.PSPDFKit-4h68nb316qa6qx4sztcx3gjhnt{align-items:flex-start;border-bottom:1px solid #d8dfeb;border-bottom:1px solid var(--PSPDFKit-FormDesignerOptionsControlComponent-border-color);display:flex;flex-direction:column;height:unset}.PSPDFKit-7squ9wp4ashk5qmgwbchusb3aq{background:none;border:none;display:inline-block;flex:1 1 auto;height:30px;margin-right:0;width:100%}.PSPDFKit-7squ9wp4ashk5qmgwbchusb3aq:focus{outline:none}.PSPDFKit-7squ9wp4ashk5qmgwbchusb3aq::-ms-input-placeholder{color:#848c9a;color:var(--color-coolGrey400)}.PSPDFKit-7squ9wp4ashk5qmgwbchusb3aq::placeholder{color:#848c9a;color:var(--color-coolGrey400)}.PSPDFKit-62ry3uufpzt87bj49pdg2g3nbm{background-color:transparent;border:none;color:#bec9d9;color:var(--PSPDFKit-FormDesignerOptionsControlComponent-icon-color);cursor:move;margin-right:0.8125em;margin-right:var(--PSPDFKit-spacing-5);padding:0}.PSPDFKit-62ry3uufpzt87bj49pdg2g3nbm,.PSPDFKit-62ry3uufpzt87bj49pdg2g3nbm span{display:inline-flex}.PSPDFKit-62ry3uufpzt87bj49pdg2g3nbm:hover{color:#4636e3;color:var(--PSPDFKit-FormDesignerOptionsControlComponent-addOption-button-color)}.PSPDFKit-35d4wvwwd43nxvufv3g9vaexbe{background-color:#f0f3f9;background-color:var(--PSPDFKit-FormDesignerOptionsControlComponent-background-color);border-top:none;opacity:.5;width:332px}.PSPDFKit-2qjmywkp4vpcrjshnshk8bang7{color:#d63960;color:var(--PSPDFKit-FormDesignerTextInputComponent-error-color);font-size:0.75rem;font-size:var(--PSPDFKit-fontSize-2);width:100%}.PSPDFKit-2jz3pq39c872g9k317nqj88ts4{border-bottom-color:#d63960;border-bottom-color:var(--PSPDFKit-FormDesignerTextInputComponent-error-color)} +.PSPDFKit-7d2gpuvu6pf58ndvvr6gvsje7q{display:flex;flex-direction:column;padding-left:1.125rem;padding-right:1.125rem}.PSPDFKit-89fc7eud4xcjy12ca7j2haddwk{align-self:center;color:#e8b500;color:var(--PSPDFKit-ExitContentEditorConfirm-warning-color);height:3rem;width:3rem}.PSPDFKit-47ced6qn4nruzv5vuz287qtd7z{padding:.375rem 0 0;width:23.75rem}.PSPDFKit-2cqd842dczj7tmreu8ur1v9s39{color:#2b2e36;color:var(--PSPDFKit-ExitContentEditorConfirm-heading-color);font-size:1.125rem;font-weight:500;margin-bottom:0;margin-top:2rem}.PSPDFKit-yuc41qrmjjetqv8krhsnx78k4{color:#606671;color:var(--PSPDFKit-ExitContentEditorConfirm-description-color);font-size:.875rem;margin-bottom:0;margin-top:0.8125em;margin-top:var(--PSPDFKit-spacing-5);padding-bottom:2rem}.PSPDFKit-6xed4xk58tjqt3b2cq9x86gehh{border:none;display:flex;justify-content:center;margin:0 0 0 auto;padding:.5rem 1.125rem 0 0}.PSPDFKit-6xed4xk58tjqt3b2cq9x86gehh,.PSPDFKit-6xed4xk58tjqt3b2cq9x86gehh:focus,.PSPDFKit-6xed4xk58tjqt3b2cq9x86gehh:hover{background-color:transparent}.PSPDFKit-5zfc76hv99gw27ybkmbk7ebzep{flex-basis:36px;height:32px;width:32px}.PSPDFKit-5wvh17kef4x55jrrzkh3hkaga3{background-color:#fcfdfe;background-color:var(--PSPDFKit-ExitContentEditorConfirm-buttonsGroup-background);border-top:1px solid #f0f3f9;border-top:1px solid var(--PSPDFKit-ExitContentEditorConfirm-buttonsGroup-border);margin-left:0;margin-right:0;padding-bottom:1rem;padding-right:1.125rem;padding-top:1rem}.PSPDFKit-4qu4e2qh9g4wt4vaj7wc7rek98{margin-left:0;margin-right:0;padding-right:0}.PSPDFKit-8etcg5412u6jyxe6wcw49n4eev{width:110px}.PSPDFKit-3hxqujdr5scngtpmjesahhytzq.PSPDFKit-3nd9gpwyygjwssm1a6vvyp2m5n{margin:0;padding:0;width:100%}@media(max-width:480px){.PSPDFKit-3nd9gpwyygjwssm1a6vvyp2m5n{margin-left:0;margin-right:0;padding-left:0;padding-right:0}.PSPDFKit-4qu4e2qh9g4wt4vaj7wc7rek98{padding-right:1.125rem}}@media(max-width:992px){.PSPDFKit-5wvh17kef4x55jrrzkh3hkaga3.PSPDFKit-3hxqujdr5scngtpmjesahhytzq{margin-bottom:0;padding-left:1.5rem;padding-right:1.5rem}.PSPDFKit-4qu4e2qh9g4wt4vaj7wc7rek98{padding-right:0}.PSPDFKit-6xed4xk58tjqt3b2cq9x86gehh{padding-right:1.5rem;padding-top:1.5rem}.PSPDFKit-7d2gpuvu6pf58ndvvr6gvsje7q{padding-left:1.5rem;padding-right:1.5rem}}.PSPDFKit-8p7rfubnucmdpxjpsw31xbf5mm[open]{border:0;border-radius:8px 8px 0 0;height:320px;margin-bottom:0;margin-left:0;margin-right:0;max-width:100%;overflow:hidden;padding:0;width:100%}.PSPDFKit-v7ryn5whw1cfrp237m7h2y2mz{display:flex;flex-direction:column;height:100%;justify-content:space-between} +.PSPDFKit-5eynqxckhbqrz8a4f77yujbh2k{background-color:#ffc78f;background-color:var(--color-orange100);box-shadow:0 0 4px rgba(113,126,144,.5);line-height:1.4;padding:.75rem;text-align:left;-webkit-user-select:all;user-select:all;width:17.75rem}.PSPDFKit-42pbth2eu2zrmgpae4jhg6h8en{font-size:.75rem;line-height:1.4}.PSPDFKit-6nx2uf6vhf6v33bnb1j4ganvvd{display:none} +:root{--color-white:#fff;--color-black:#000;--color-blue900:#0a0167;--color-blue800:#190d94;--color-blue700:#2b1cc1;--color-blue600:#4636e3;--color-blue400:#5e5ceb;--color-blue300:#777cf0;--color-blue200:#8f9bf4;--color-blue100:#a8bff8;--color-blue70:#4537de;--color-blue50:#d3dcff;--color-blue25:#eff4fb;--color-violet800:#462e75;--color-violet600:#5d24cf;--color-violet400:#8858e8;--color-violet100:#d1baff;--color-red900:#4a0013;--color-red800:#74002a;--color-red600:#ab1d41;--color-red300:#ed7d99;--color-red400:#d63960;--color-red100:#f7ced8;--color-red50:#fceaf1;--color-orange800:#7e3b00;--color-orange600:#d46703;--color-orange400:#ff900d;--color-orange100:#ffc78f;--color-yellow800:#805700;--color-yellow600:#e8b500;--color-yellow400:#fad40c;--color-yellow100:#ffee95;--color-yellow25:#fffae1;--color-green800:#385300;--color-green600:#628d06;--color-green400:#89bd1c;--color-green100:#d9efa9;--color-green25:#f5fee3;--color-coolGrey1000:#090c12;--color-coolGrey900:#21242c;--color-coolGrey900_alpha05:rgba(33,36,44,.5);--color-coolGrey900_alpha02:rgba(33,36,44,.2);--color-coolGrey850:#2b2e36;--color-coolGrey850_alpha01:rgba(43,46,54,.1);--color-coolGrey800:#3d424e;--color-coolGrey800_alpha02:rgba(61,66,78,.2);--color-coolGrey800_alpha05:rgba(61,66,78,.5);--color-coolGrey700:#4d525d;--color-coolGrey600:#606671;--color-coolGrey500:#717885;--color-coolGrey400:#848c9a;--color-coolGrey400_alpha05:rgba(132,140,154,.5);--color-coolGrey200:#bec9d9;--color-coolGrey100:#d8dfeb;--color-coolGrey100_alpha05:rgba(216,223,235,.5);--color-coolGrey100_alpha25:rgba(216,223,235,.25);--color-coolGrey50:#f0f3f9;--color-coolGrey37:#f6f8fa;--color-coolGrey25:#fcfdfe;--PSPDFKit-spacing-1:3.25em;--PSPDFKit-spacing-2:2.4375em;--PSPDFKit-spacing-3:1.625em;--PSPDFKit-spacing-4:1em;--PSPDFKit-spacing-5:0.8125em;--PSPDFKit-spacing-6:0.609em;--PSPDFKit-spacing-7:0.46875em;--PSPDFKit-fontFamily-1:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;--PSPDFKit-lineHeight-1:1.4rem;--PSPDFKit-lineHeight-2:0.815rem;--PSPDFKit-fontSize-1:1rem;--PSPDFKit-fontSize-2:0.75rem;--PSPDFKit-fontSize-3:0.875rem;--PSPDFKit-fontSize-4:1.125rem;--PSPDFKit-fontSize-5:1.25rem;--PSPDFKit-fontSize-6:1.5rem} +:root{--PSPDFKit-shadow-color:var(--color-coolGrey800_alpha05);--PSPDFKit-App-background:var(--color-coolGrey37);--PSPDFKit-Viewport-background:var(--PSPDFKit-App-background);--PSPDFKit-Button-isDisabled-opacity:0.3;--PSPDFKit-Button--default-backgroundColor:var(--color-coolGrey50);--PSPDFKit-Button--default-borderColor:var(--color-coolGrey100);--PSPDFKit-Button--default-color:var(--color-coolGrey800);--PSPDFKit-Button--default-isHovered-backgroundColor:var(--color-coolGrey50);--PSPDFKit-Button--default-isHovered-borderColor:var(--color-coolGrey400_alpha05);--PSPDFKit-Button--default-isHovered-color:var(--color-coolGrey900);--PSPDFKit-Button--default-isActive-backgroundColor:var(--color-coolGrey100);--PSPDFKit-Button--default-isActive-borderColor:var(--color-coolGrey200);--PSPDFKit-Button--default-isActive-color:var(--color-coolGrey700);--PSPDFKit-Button--default-isDisabled-backgroundColor:var(--color-coolGrey50);--PSPDFKit-Button--default-isDisabled-borderColor:var(--color-coolGrey100);--PSPDFKit-Button--default-isDisabled-color:var(--color-coolGrey800);--PSPDFKit-Button--primary-backgroundColor:var(--color-blue600);--PSPDFKit-Button--primary-border:var(--color-blue700);--PSPDFKit-Button--primary-color:var(--color-white);--PSPDFKit-Button--primary-isHovered-backgroundColor:var(--color-blue600);--PSPDFKit-Button--primary-isHovered-borderColor:var(--color-blue900);--PSPDFKit-Button--primary-isHovered-color:var(--color-white);--PSPDFKit-Button--primary-isActive-backgroundColor:var(--color-blue700);--PSPDFKit-Button--primary-isActive-borderColor:var(--color-blue800);--PSPDFKit-Button--primary-isActive-color:var(--color-white);--PSPDFKit-Button--primary-isDisabled-backgroundColor:var(--color-blue600);--PSPDFKit-Button--primary-isDisabled-borderColor:var(--color-blue700);--PSPDFKit-Button--primary-isDisabled-color:var(--color-white);--PSPDFKit-Button--primary-inverted-color:var(--PSPDFKit-Button--primary-backgroundColor);--PSPDFKit-Button--danger-backgroundColor:var(--color-red50);--PSPDFKit-Button--danger-borderColor:var(--color-red400);--PSPDFKit-Button--danger-color:var(--color-red600);--PSPDFKit-Button--danger-isHovered-backgroundColor:var(--color-red600);--PSPDFKit-Button--danger-isHovered-borderColor:var(--color-red800);--PSPDFKit-Button--danger-isHovered-color:var(--color-white);--PSPDFKit-Button--danger-isDisabled-backgroundColor:var(--color-red100);--PSPDFKit-Button--danger-isDisabled-borderColor:var(--color-red400);--PSPDFKit-Button--danger-isDisabled-color:var(--color-red800);--PSPDFKit-Modal-dialog-backgroundColor:var(--color-white);--PSPDFKit-Modal-dialog-boxShadowColor:var(--PSPDFKit-shadow-color);--PSPDFKit-Modal-dialog-color:var(--color-black);--PSPDFKit-Modal-backdrop-backgroundColor:var(--color-coolGrey900_alpha05);--PSPDFKit-Modal-divider-color:var(--color-coolGrey100);--PSPDFKit-Modal-divider-border:var(--PSPDFKit-Modal-divider-color);--PSPDFKit-Mobile-popover-backgroundColor:var(--color-white);--PSPDFKit-ConfirmModalComponent-button-isFocused-border:var(--color-blue900);--PSPDFKit-Text-color:var(--color-coolGrey850);--PSPDFKit-TextInput--default-backgroundColor:var(--color-coolGrey25);--PSPDFKit-TextInput--default-borderColor:var(--color-coolGrey400_alpha05);--PSPDFKit-TextInput--default-color:var(--color-coolGrey700);--PSPDFKit-TextInput--default-placeholder-color:var(--color-coolGrey900_alpha05);--PSPDFKit-TextInput--default-isFocused-backgroundColor:var(--color-white);--PSPDFKit-TextInput--default-isFocused-borderColor:var(--color-coolGrey200);--PSPDFKit-TextInput--default-isFocused-color:var(--color-coolGrey900);--PSPDFKit-TextInput--error-backgroundColor:var(--color-red100);--PSPDFKit-TextInput--error-borderColor:var(--color-red400);--PSPDFKit-TextInput--error-color:var(--color-red800);--PSPDFKit-TextInput--error-placeholder-color:var(--color-red600);--PSPDFKit-TextInput--error-isFocused-backgroundColor:var(--color-red100);--PSPDFKit-TextInput--error-isFocused-borderColor:var(--color-red600);--PSPDFKit-TextInput--error-isFocused-color:var(--color-red800);--PSPDFKit-TextInput--success-backgroundColor:var(--color-green100);--PSPDFKit-TextInput--success-borderColor:var(--color-green400);--PSPDFKit-TextInput--success-color:var(--color-green800);--PSPDFKit-TextInput--success-placeholder-color:var(--color-green600);--PSPDFKit-TextInput--success-isFocused-backgroundColor:var(--color-green100);--PSPDFKit-TextInput--success-isFocused-borderColor:var(--color-green600);--PSPDFKit-TextInput--success-isFocused-color:var(--color-green800);--PSPDFKit-Toolbar-background:var(--color-coolGrey25);--PSPDFKit-Toolbar-color:var(--color-coolGrey800);--PSPDFKit-Toolbar-boxShadow:var(--PSPDFKit-shadow-color);--PSPDFKit-Toolbar-hover:var(--color-blue600);--PSPDFKit-Toolbar-button-border:var(--color-coolGrey50);--PSPDFKit-Toolbar-dropdownButton-isSelected-background:var(--color-blue600);--PSPDFKit-Toolbar-dropdownButton-isSelected-color:var(--color-white);--PSPDFKit-Toolbar-dropdownButton-isFocused-background:var(--color-blue600);--PSPDFKit-Toolbar-dropdownButton-isFocused-color:var(--color-white);--PSPDFKit-Toolbar-dropdownButton-isDisabled-background:var(--color-coolGrey50);--PSPDFKit-ToolbarButton-dropdown-isFocused-background:var(--color-coolGrey50);--PSPDFKit-ToolbarButton-dropdown-isFocused-color:var(--color-coolGrey800);--PSPDFKit-ToolbarButton-isDisabled-opacity:0.3;--PSPDFKit-ToolbarButton-isDisabled-child-fill:var(--color-coolGrey400);--PSPDFKit-ToolbarButton-isActive-background:var(--color-blue600);--PSPDFKit-ToolbarButton-isActive-color:var(--color-white);--PSPDFKit-ToolbarDropdownGroup-background:var(--color-coolGrey25);--PSPDFKit-ToolbarDropdownGroup-activeChild-color:var(--color-black);--PSPDFKit-ToolbarDropdownGroup-toggle-color:var(--color-white);--PSPDFKit-ToolbarResponsiveGroup--primary-background:var(--color-coolGrey25);--PSPDFKit-ToolbarResponsiveGroup--secondary-background:var(--color-coolGrey100);--PSPDFKit-ToolbarResponsiveGroup--secondary-border:var(--color-coolGrey200);--PSPDFKit-ToolbarResponsiveGroup-button--primary-border:var(--PSPDFKit-Toolbar-button-border);--PSPDFKit-ToolbarResponsiveGroup-button--primary-arrow-border:var(--color-coolGrey800);--PSPDFKit-ToolbarResponsiveGroup-button--secondary-border:var(--color-coolGrey200);--PSPDFKit-ToolbarResponsiveGroup-button--secondary-arrow-border:var(--color-coolGrey800);--PSPDFKit-ToolbarResponsiveGroup-button--secondary-arrow-isFocused-background:var( --color-coolGrey50 );--PSPDFKit-ToolbarResponsiveGroup-button-svg-fill:var(--color-coolGrey800);--PSPDFKit-CropToolbarComponent-button-borderColor:var(--color-coolGrey200);--PSPDFKit-CropToolbarComponent-button-isHovered-borderColor:var(--color-coolGrey800);--PSPDFKit-CropToolbarComponent-text-color:var(--color-coolGrey700);--PSPDFKit-CropToolbarComponent-button-isHovered-backgroundColor:var(--color-coolGrey100);--PSPDFKit-CropToolbarComponent-button-isDeselected-border:var(--color-coolGrey200);--PSPDFKit-CropToolbarComponent-border:var(--color-coolGrey200);--PSPDFKit-ContentEditorToolbar-background:var(--color-coolGrey50);--PSPDFKit-ContentEditorToolbar-button-border:var(--color-coolGrey200);--PSPDFKit-ContentEditorToolbar-button-isHovered-border:var( --PSPDFKit-Button--default-isHovered-borderColor );--PSPDFKit-ContentEditorToolbar-text-color:var(--color-coolGrey700);--PSPDFKit-ContentEditorToolbar-button-color:var(--color-coolGrey800);--PSPDFKit-ContentEditorToolbar-button-isHovered-backgroundColor:var(--color-coolGrey100);--PSPDFKit-ContentEditorToolbar-button-isDeselected-border:var(--color-coolGrey200);--PSPDFKit-ContentEditorToolbar-border:var(--color-coolGrey200);--PSPDFKit-ContentEditorToolbar-button-save-backgroundColor:var( --PSPDFKit-Button--primary-backgroundColor );--PSPDFKit-ContentEditorToolbar-button-save-color:var(--PSPDFKit-Button--primary-color);--PSPDFKit-ContentEditorToolbar-button-save-border:var(--PSPDFKit-Button--primary-border);--PSPDFKit-ContentEditorToolbar-button-hover-save-backgroundColor:var( --PSPDFKit-Button--primary-isHovered-backgroundColor );--PSPDFKit-ContentEditorToolbar-button-hover-save-color:var( --PSPDFKit-Button--primary-isHovered-color );--PSPDFKit-ContentEditorToolbar-button-hover-save-border:var( --PSPDFKit-Button--primary-isHovered-borderColor );--PSPDFKit-ContentEditorToolbar-button-fontstyle-backgroundColor:var( --PSPDFKit-AnnotationToolbar-icon-label-background );--PSPDFKit-ContentEditorToolbar-button-fontstyle-isActive-backgroundColor:var( --PSPDFKit-AnnotationToolbar-iconLabel-isActive-background );--PSPDFKit-ContentEditorToolbar-button-fontstyle-isActive-svg-color:var( --PSPDFKit-AnnotationToolbar-iconLabel-isActive-svg-color );--PSPDFKit-MagnifierComponent-background:var(--PSPDFKit-App-background);--PSPDFKit-MagnifierComponent-magnifierGrid-stroke:var(--color-coolGrey100);--PSPDFKit-MagnifierComponent-magnifierCenterOutlineStroke-stroke:var(--color-white);--PSPDFKit-MagnifierComponent-magnifierCenterStroke-stroke:var(--color-black);--PSPDFKit-MagnifierComponent-magnifierZoomValue-backgroundColor:var(--color-coolGrey400);--PSPDFKit-MagnifierComponent-magnifierZoomValue-color:var(--color-white);--PSPDFKit-MagnifierComponent-magnifierContainer-borderColor:var(--color-black);--PSPDFKit-MagnifierComponent-magnifierContainer-boxShadow:var(--color-white);--PSPDFKit-DocumentComparison-crosshair-stroke:var(--color-blue70);--PSPDFKit-DocumentComparisonToolbar-background:var(--color-coolGrey50);--PSPDFKit-DocumentComparisonToolbar-border:var(--color-coolGrey200);--PSPDFKit-DocumentComparisonToolbar-color:var(--color-coolGrey100);--PSPDFKit-DocumentComparisonToolbar-form-color:var(--color-coolGrey100_alpha25);--PSPDFKit-DocumentComparisonToolbar-startLineCapSelect-circle-stroke:var(--color-coolGrey700);--PSPDFKit-DocumentComparisonToolbar-button-color:var(--color-coolGrey800);--PSPDFKit-DocumentComparisonToolbar-button-border:var(--color-coolGrey200);--PSPDFKit-DocumentComparisonToolbar-highlight-button-color:var(--color-coolGrey100);--PSPDFKit-DocumentComparisonToolbar-highlight-button-background:var(--color-blue600);--PSPDFKit-DocumentComparisonToolbar-button-isHovered-background:var(--color-coolGrey100);--PSPDFKit-DocumentComparisonToolbar-button-svg-color:var(--color-coolGrey800);--PSPDFKit-DocumentComparisonToolbar-tab-border:var(--color-coolGrey100);--PSPDFKit-DocumentComparisonToolbar-tab-active-background:var(--PSPDFKit-App-background);--PSPDFKit-DocumentComparisonToolbar-referencePoint-background:var(--color-coolGrey200);--PSPDFKit-DocumentComparisonToolbar-referencePointSet-background:var(--color-blue600);--PSPDFKit-DocumentComparisonToolbar-referencePoint-text-color:var(--color-coolGrey850);--PSPDFKit-DocumentComparisonToolbar-referencePointSet-text-color:var(--color-white);--PSPDFKit-DocumentComparisonToolbar-button-svg-fill:var( --PSPDFKit-AnnotationToolbar-button-svg-color );--PSPDFKit-DocumentComparisonToolbar-button-outline:var(--color-blue600);--PSPDFKit-DocumentComparisonToolbar-button-isDeselected-border:var(--color-coolGrey200);--PSPDFKit-DocumentComparisonToolbar-icon-label-background:var(--color-white);--PSPDFKit-DocumentComparisonToolbar-icon-color:var(--color-coolGrey800);--PSPDFKit-DocumentComparisonToolbar-label-color:var(--color-coolGrey800);--PSPDFKit-DocumentComparisonToolbar-iconLabel-isActive-background:var(--color-blue600);--PSPDFKit-DocumentComparisonToolbar-iconLabel-isActive-border:var(--color-blue600);--PSPDFKit-DocumentComparisonToolbar-iconLabel-isActive-svg-color:var(--color-white);--PSPDFKit-DocumentComparisonToolbar-iconLabel-isActive-svg-fill:var( --PSPDFKit-DocumentComparisonToolbar-iconLabel-isActive-svg-color );--PSPDFKit-DocumentComparisonToolbar-dropdownMenu-button-background:var( --PSPDFKit-DropdownMenu-button-background );--PSPDFKit-DocumentComparisonToolbar-dropdownMenu-button-border:var( --PSPDFKit-DropdownMenu-button-border );--PSPDFKit-DocumentComparisonToolbar-dropdownMenu-button-isHovered-color:var( --PSPDFKit-SliderDropdownComponent-button-isHovered-color );--PSPDFKit-DocumentComparisonToolbar-dropdownMenu-button-color:var( --PSPDFKit-DropdownMenu-button-fill );--PSPDFKit-DocumentComparisonToolbar-checkMark-stroke:var(--color-white);--PSPDFKit-DocumentComparisonToolbar-checkMark-fill:var(--color-blue600);--PSPDFKit-DocumentComparisonToolbar-documentCheckMark-stroke:var(--color-white);--PSPDFKit-DocumentComparisonToolbar-documentCheckMark-fill:var(--color-green400);--PSPDFKit-DocumentComparisonToolbar-referencePointText-stroke:var(--color-coolGrey850);--PSPDFKit-DocumentComparisonToolbar-referencePointText-fill:var(--color-coolGrey850);--PSPDFKit-DocumentComparisonToolbar-referencePoint-fill:var(--color-coolGrey200);--PSPDFKit-DocumentComparisonToolbar-referencePointSetText-stroke:var(--color-white);--PSPDFKit-DocumentComparisonToolbar-referencePointSetText-fill:var(--color-white);--PSPDFKit-DocumentComparisonToolbar-referencePointSet-fill:var(--color-blue600);--PSPDFKit-DocumentComparisonToolbar-separator-background:var(--color-coolGrey200);--PSPDFKit-AnnotationToolbar-background:var(--color-coolGrey50);--PSPDFKit-AnnotationToolbar-border:var(--color-coolGrey200);--PSPDFKit-AnnotationToolbar-color:var(--color-coolGrey100);--PSPDFKit-AnnotationToolbar-form-color:var(--color-coolGrey100_alpha25);--PSPDFKit-AnnotationToolbar-startLineCapSelect-circle-stroke:var(--color-coolGrey700);--PSPDFKit-AnnotationToolbar-button-color:var(--color-coolGrey800);--PSPDFKit-AnnotationToolbar-button-border:var(--color-coolGrey200);--PSPDFKit-AnnotationToolbar-button-isHovered-background:var(--color-coolGrey100);--PSPDFKit-AnnotationToolbar-button-svg-color:var(--color-coolGrey800);--PSPDFKit-AnnotationToolbar-button-svg-fill:var(--PSPDFKit-AnnotationToolbar-button-svg-color);--PSPDFKit-AnnotationToolbar-button-outline:var(--color-blue600);--PSPDFKit-AnnotationToolbar-button-isDeselected-border:var(--color-coolGrey200);--PSPDFKit-AnnotationToolbar-icon-label-background:var(--color-white);--PSPDFKit-AnnotationToolbar-warning-icon-background:var(--color-orange100);--PSPDFKit-AnnotationToolbar-icon-color:var(--color-coolGrey800);--PSPDFKit-AnnotationToolbar-label-color:var(--color-coolGrey800);--PSPDFKit-AnnotationToolbar-iconLabel-isActive-background:var(--color-blue600);--PSPDFKit-AnnotationToolbar-iconLabel-isActive-border:var(--color-blue600);--PSPDFKit-AnnotationToolbar-iconLabel-isActive-svg-color:var(--color-white);--PSPDFKit-AnnotationToolbar-iconLabel-isActive-svg-fill:var( --PSPDFKit-AnnotationToolbar-iconLabel-isActive-svg-color );--PSPDFKit-AnnotationToolbar-dropdownMenu-button-background:var( --PSPDFKit-DropdownMenu-button-background );--PSPDFKit-AnnotationToolbar-dropdownMenu-button-border:var( --PSPDFKit-DropdownMenu-button-border );--PSPDFKit-AnnotationToolbar-dropdownMenu-button-isHovered-color:var( --PSPDFKit-SliderDropdownComponent-button-isHovered-color );--PSPDFKit-AnnotationToolbar-dropdownMenu-button-color:var(--PSPDFKit-DropdownMenu-button-fill);--PSPDFKit-AnnotationToolbar-redactions-button-background:var(--color-white);--PSPDFKit-AnnotationToolbar-redactions-button-color:var(--color-black);--PSPDFKit-AnnotationToolbar-redactions-button-isHovered-background:var(--color-blue600);--PSPDFKit-AnnotationToolbar-redactions-button-isHovered-color:var(--color-white);--PSPDFKit-ColorDropdown-colorItemContainer-isFocused-background:var( --PSPDFKit-ToolbarButton-dropdown-isFocused-background );--PSPDFKit-ColorDropdown-customColor-deleteButton-color:var(--color-white);--PSPDFKit-CheckboxComponent-label-color:var(--color-coolGrey800);--PSPDFKit-CheckboxComponent-unchecked-border:var(--color-coolGrey200);--PSPDFKit-CheckboxComponent-checked-border:var(--color-blue400);--PSPDFKit-CheckboxComponent-checked-background:var(--color-blue600);--PSPDFKit-LayoutConfig-arrow-border:var(--color-coolGrey200);--PSPDFKit-LayoutConfig-arrowFill-border:var(--color-white);--PSPDFKit-LayoutConfig-table-border:var(--color-coolGrey200);--PSPDFKit-LayoutConfig-icon-isActive-color:var(--color-white);--PSPDFKit-LayoutConfig-icon-isActive-background:var(--color-blue600);--PSPDFKit-LayoutConfig-icon-isHighlighted-background:var(--color-coolGrey50);--PSPDFKit-Pager-color:var(--color-coolGrey800);--PSPDFKit-Pager-input-background:var(--color-coolGrey800_alpha02);--PSPDFKit-Pager-input-color:var(--color-coolGrey800);--PSPDFKit-Pager-input-isActive-color:var(--color-coolGrey800);--PSPDFKit-Pager-input-isHovered-color:var(--color-coolGrey800);--PSPDFKit-Pager-input-isHovered-background:var(--color-coolGrey200);--PSPDFKit-Pager-input-isDisabled-color:var(--PSPDFKit-Pager-input-isActive-color);--PSPDFKit-Pager-input-isDisabled-opacity:0.3;--PSPDFKit-Progress-dot-size:6px;--PSPDFKit-Progress-dot-height:var(--PSPDFKit-Progress-dot-size);--PSPDFKit-Progress-dot-width:var(--PSPDFKit-Progress-dot-size);--PSPDFKit-Progress-borderRadius:5px;--PSPDFKit-Progress-progress-background:var(--color-coolGrey50);--PSPDFKit-Progress-progress-color:var(--color-black);--PSPDFKit-Progress-progressBar-background:var(--color-blue600);--PSPDFKit-Progress-progressText-color:var(--color-coolGrey700);--PSPDFKit-ColorPicker-isHovered-background:var(--color-coolGrey400);--PSPDFKit-ColorPicker-swatch-border:var(--color-white);--PSPDFKit-ColorPicker-input-isActive-background:var(--color-blue600);--PSPDFKit-ColorPicker-input-outline:var(--color-blue600);--PSPDFKit-ColorPicker-swatch--transparent-border:var(--color-coolGrey200);--PSPDFKit-ColorPicker-swatch--transparent-background:var(--color-white);--PSPDFKit-ColorPicker-swatch--transparent-after-border:var(--color-red400);--PSPDFKit-SliderComponent-thumb-color:var(--color-blue600);--PSPDFKit-SliderComponent-thumb-isHovered-color:var(--color-blue800);--PSPDFKit-SliderComponent-thumb-border:var(--color-white);--PSPDFKit-SliderComponent-track-color:var(--color-coolGrey50);--PSPDFKit-SliderComponent-track-progress-color:var(--color-blue600);--PSPDFKit-SliderDropdownComponent-items-background:var(--color-white);--PSPDFKit-SliderDropdownComponent-items-border:var(--color-coolGrey100);--PSPDFKit-SliderDropdownComponent-button-background:var(--color-white);--PSPDFKit-SliderDropdownComponent-button-border:var(--color-coolGrey100);--PSPDFKit-SliderDropdownComponent-button-color:var(--color-coolGrey800);--PSPDFKit-SliderDropdownComponent-button-isHovered-color:var(--color-coolGrey1000);--PSPDFKit-SliderDropdownComponent-button-toggle-color:var(--color-coolGrey400);--PSPDFKit-SliderDropdownComponent-button-show-color:var( --PSPDFKit-SliderDropdownComponent-button-isHovered-color );--PSPDFKit-SliderDropdownComponent-item-color:var( --PSPDFKit-SliderDropdownComponent-button-color );--PSPDFKit-SliderDropdownComponent-item-border:var( --PSPDFKit-SliderDropdownComponent-button-border );--PSPDFKit-SliderDropdownComponent-item-isFocused-background:var(--color-blue600);--PSPDFKit-SliderDropdownComponent--item-isFocused-color:var(--color-white);--PSPDFKit-SliderDropdownComponent-item-isSelected-background:var(--color-coolGrey50);--PSPDFKit-SliderDropdownComponent-item-isDisabled-color:var( --PSPDFKit-SliderDropdownComponent-button-color );--PSPDFKit-SliderDropdownComponent-item-isDisabled-opacity:0.3;--PSPDFKit-SliderDropdownComponent-item-isFocused-isSelected-background:var(--color-blue600);--PSPDFKit-SliderDropdownComponent-dropdown-background:var(--color-white);--PSPDFKit-SliderDropdownComponent-dropdown-color:var(--color-coolGrey400);--PSPDFKit-SliderDropdownComponent-dropdown-border:var(--color-coolGrey100);--PSPDFKit-TextInputComponent-input-background:var(--color-white);--PSPDFKit-TextInputComponent-input-border:var(--color-coolGrey100);--PSPDFKit-TextInputComponent-input-color:var(--color-coolGrey800);--PSPDFKit-TextInputComponent-input-isHovered-color:var(--color-coolGrey1000);--PSPDFKit-TextInputComponent-input-active-border:var(--color-blue600);--PSPDFKit-PasswordModal-icon--regular-color:var(--color-blue400);--PSPDFKit-PasswordModal-icon--error-color:var(--color-red400);--PSPDFKit-PasswordModal-icon--success-color:var(--color-green400);--PSPDFKit-PasswordModal-message--alert-background:var(--color-red400);--PSPDFKit-PasswordModal-message--alert-color:var(--color-white);--PSPDFKit-PasswordModal-message--alert-border:var(--color-red600);--PSPDFKit-SearchForm-background:var(--color-white);--PSPDFKit-SearchForm-border:var(--PSPDFKit-Viewport-background);--PSPDFKit-SearchForm-input-background:var(--color-coolGrey50);--PSPDFKit-SearchForm-input-color:var(--color-coolGrey800);--PSPDFKit-SearchForm-input-placeholder-color:var(--color-coolGrey800);--PSPDFKit-SearchForm-results-isDisabled-background:var(--PSPDFKit-SearchForm-input-background);--PSPDFKit-SearchForm-results-isDisabled-color:var(--color-coolGrey400_alpha05);--PSPDFKit-SearchForm-button-color:var(--color-coolGrey800);--PSPDFKit-SearchForm-button-background:var(--color-coolGrey200);--PSPDFKit-SearchForm-button-isHovered-background:var(--color-coolGrey50);--PSPDFKit-SearchForm-button-isHovered-color:var(--color-coolGrey900);--PSPDFKit-SearchForm-button-isHovered-border:var(--color-coolGrey400_alpha05);--PSPDFKit-SearchForm-button-controls-background:var(--color-coolGrey200);--PSPDFKit-SearchForm-button-controls-color:var(--color-coolGrey800);--PSPDFKit-SearchForm-button-controls-isHovered-background:var(--color-coolGrey50);--PSPDFKit-SearchForm-button-controls-isDisabled-color:var(--color-coolGrey400_alpha05);--PSPDFKit-SearchForm-button-lasChild-border:var(--color-coolGrey50);--PSPDFKit-SearchHighlight-background:var(--color-yellow400);--PSPDFKit-SearchHighlight-isFocused-background:var(--color-yellow600);--PSPDFKit-Sidebar-background:var(--color-coolGrey37);--PSPDFKit-Sidebar-dragger-background:var(--color-coolGrey200);--PSPDFKit-Sidebar-dragger-border:var(--color-coolGrey900_alpha02);--PSPDFKit-Sidebar-dragger-pseudo-background:var(--color-coolGrey200);--PSPDFKit-Sidebar-draggerHandle-background:var(--color-white);--PSPDFKit-Sidebar-draggerHandle-border:var(--PSPDFKit-Sidebar-dragger-border);--PSPDFKit-Sidebar-header-background:var(--color-coolGrey50);--PSPDFKit-AnnotationsSidebar--empty-background:var(--PSPDFKit-Sidebar-background);--PSPDFKit-AnnotationsSidebar--empty-color:var(--color-black);--PSPDFKit-AnnotationsSidebar-annotationCounter-background:var(--color-white);--PSPDFKit-AnnotationsSidebar-container-background:var(--color-white);--PSPDFKit-AnnotationsSidebar-annotations-background:var(--color-white);--PSPDFKit-AnnotationsSidebar-annotations-border:var(--color-coolGrey100);--PSPDFKit-AnnotationsSidebar-icon-color:var(--color-blue600);--PSPDFKit-AnnotationsSidebar-layout-background:var(--color-coolGrey50);--PSPDFKit-AnnotationsSidebar-layoutContent-color:var(--color-coolGrey900);--PSPDFKit-AnnotationsSidebar-layoutContent-button-color:var( --PSPDFKit-AnnotationsSidebar-layoutContent-color );--PSPDFKit-AnnotationsSidebar-layoutContent-button-color--selected:var(--color-coolGrey1000);--PSPDFKit-AnnotationsSidebar-footer-color:var(--color-coolGrey400);--PSPDFKit-AnnotationsSidebar-deleteIcon-color:var(--color-coolGrey800);--PSPDFKit-AnnotationsSidebar-pageNumber-background:var(--color-coolGrey50);--PSPDFKit-AnnotationsSidebar-pageNumber-color:var(--PSPDFKit-TextInput--default-color);--PSPDFKit-AnnotationsSidebar-annotationCounter-color:var(--color-coolGrey700);--PSPDFKit-DocumentEditor-moveDialog-background:var(--color-white);--PSPDFKit-DocumentEditor-moveDialogFormInput-background:var(--color-white);--PSPDFKit-DocumentEditor-moveDialogFormInput-borderColor:var(--color-coolGrey200);--PSPDFKit-DocumentEditor-moveDialogHint-background:var(--color-coolGrey50);--PSPDFKit-DocumentEditor-moveDialogHintText-color:var(--color-coolGrey400);--PSPDFKit-DocumentEditor-pagesView-background:var(--color-coolGrey50);--PSPDFKit-DocumentEditor-bottomBar-background:var(--color-coolGrey25);--PSPDFKit-DocumentEditor-pagesSelectedIndicator-background:var(--color-blue400);--PSPDFKit-DocumentOutline-background:var(--color-white);--PSPDFKit-DocumentOutline-control-color:var(--color-coolGrey900);--PSPDFKit-DocumentOutline-control-border:var(--color-coolGrey50);--PSPDFKit-DocumentOutline-icon-color:var(--color-coolGrey200);--PSPDFKit-DocumentOutline-icon-isHovered-color:var(--color-blue600);--PSPDFKit-BookmarksSidebar-background:var(--color-white);--PSPDFKit-BookmarksSidebar-border:var(--color-coolGrey100);--PSPDFKit-BookmarksSidebar--loading-background:var(--PSPDFKit-Sidebar-background);--PSPDFKit-BookmarksSidebar-heading-color:var(--color-coolGrey700);--PSPDFKit-BookmarksSidebar-layout-pageNumber-color:var(--color-coolGrey800);--PSPDFKit-BookmarksSidebar-layout-isHovered-pageNumber-color:var(--color-blue600);--PSPDFKit-BookmarksSidebar-name-color:var(--color-coolGrey850);--PSPDFKit-BookmarksSidebar-layout-border:var(--color-coolGrey50);--PSPDFKit-BookmarksSidebar-edit-color:var(--color-coolGrey800);--PSPDFKit-BookmarksSidebar-edit-background:var(--color-white);--PSPDFKit-BookmarksSidebar-editor-background:var(--color-coolGrey50);--PSPDFKit-Error-color:var(--color-coolGrey400);--PSPDFKit-Error-background:var(--color-white);--PSPDFKit-Error-hyperlink-color:var(--color-coolGrey700);--PSPDFKit-Error-error-background:var(--color-red400);--PSPDFKit-Error-icon-color:var(--color-red400);--PSPDFKit-Error-icon-background:var(--color-white);--PSPDFKit-ThumbnailsSidebar-gridView-row-background:var(--color-coolGrey50);--PSPDFKit-ThumbnailsSidebar-gridView-column-isHovered-background:var( --color-coolGrey850_alpha01 );--PSPDFKit-ThumbnailsSidebar-gridView-thumbnail-background:var(--color-white);--PSPDFKit-ThumbnailsSidebar-gridView-thumbnail-boxShadow:rgba(43,46,54,.15);--PSPDFKit-ThumbnailsSidebar-gridView-thumbnail-isSelected-boxShadow:var(--color-blue400);--PSPDFKit-ThumbnailsSidebar-gridView-label-background:var(--color-coolGrey800_alpha05);--PSPDFKit-ThumbnailsSidebar-gridView-label-color:var(--color-white);--PSPDFKit-ThumbnailsSidebar-gridView-label-isSelected-background:var(--color-blue400);--PSPDFKit-ThumbnailsSidebar-gridView-label-isSelected-color:var(--color-white);--PSPDFKit-ThumbnailsSidebar-gridView-moveCursorDisabled-background:var(--color-black);--PSPDFKit-PrintLoadingIndicator-progress-background:var(--color-coolGrey50);--PSPDFKit-PrintLoadingIndicator-progress-color:var(--color-black);--PSPDFKit-PrintLoadingIndicator-progressBar-background:var(--color-blue600);--PSPDFKit-PrintLoadingIndicator-progressText-color:var(--color-coolGrey700);--PSPDFKit-StampViewComponent-header-color:var(--color-coolGrey800);--PSPDFKit-StampViewComponent-header-border:var(--color-coolGrey200);--PSPDFKit-StampViewComponent-previewContainer-border:var(--color-blue100);--PSPDFKit-StampViewComponent-previewContainer-background:var(--color-coolGrey100_alpha25);--PSPDFKit-StampViewComponent-templateImageContainer-border:var( --PSPDFKit-StampViewComponent-previewContainer-border );--PSPDFKit-StampViewComponent-templateImageContainer-background:var(--color-coolGrey25);--PSPDFKit-StampViewComponent-writeHere-color:var(--color-coolGrey200);--PSPDFKit-StampViewComponent-selectStampButton-isHovered-background:var(--color-white);--PSPDFKit-StampViewComponent-selectStampButton-isHovered-color:var(--color-white);--PSPDFKit-StampViewComponent-selectStampButton-isHovered-border:var(--color-blue600);--PSPDFKit-StampViewComponent-title-color:var(--color-coolGrey700);--PSPDFKit-ImagePreview-imageAnnotation--error-background:var(--color-coolGrey50);--PSPDFKit-ImagePreview-imageAnnotation--error-icon-color:var(--color-red400);--PSPDFKit-ImagePreview-imageAnnotation--error-icon-background:var(--color-white);--PSPDFKit-DropdownMenu-background:var(--color-coolGrey25);--PSPDFKit-DropdownMenu-color:var(--color-coolGrey850);--PSPDFKit-DropdownMenu-border:var(--color-coolGrey100);--PSPDFKit-DropdownMenu-item-background:var(--color-white);--PSPDFKit-DropdownMenu-item-border:var(--color-coolGrey100);--PSPDFKit-DropdownMenu-isSelected-background:var(--color-coolGrey50);--PSPDFKit-DropdownMenu-isSelected-color:var(--color-coolGrey800);--PSPDFKit-DropdownMenu-button-background:var(--color-white);--PSPDFKit-DropdownMenu-button-border:var(--color-coolGrey100);--PSPDFKit-DropdownMenu-button-color:var(--color-coolGrey800);--PSPDFKit-DropdownMenu-button-isHovered-color:var(--color-coolGrey1000);--PSPDFKit-DropdownMenu-button-fill:var(--color-coolGrey400);--PSPDFKit-Signatures-background:var(--color-blue600);--PSPDFKit-Signatures-color:var(--color-white);--PSPDFKit-Signatures-border:var(--color-blue400);--PSPDFKit-Signatures-container-color:var(--color-coolGrey700);--PSPDFKit-Signatures-editorCanvas-border:var(--color-coolGrey100);--PSPDFKit-Signatures-editorCanvas-background:var(--color-coolGrey25);--PSPDFKit-Signatures-signHere-color:var(--color-coolGrey700);--PSPDFKit-Signatures-DeleteSignatureButton-color:var(--color-coolGrey700);--PSPDFKit-Signatures-Title-color:var(--color-coolGrey700);--PSPDFKit-MarqueeZoom-rect-fill:var(--color-blue100);--PSPDFKit-Comment-thread-backgroundColor:var(--color-white);--PSPDFKit-Comment-thread-color:var(--color-coolGrey800);--PSPDFKit-Comment-accent-color:var(--color-blue600);--PSPDFKit-Comment-separatorBold-color:var(--color-coolGrey100);--PSPDFKit-Comment-separator-color:var(--color-coolGrey37);--PSPDFKit-Comment-footer-color:var(--color-coolGrey100);--PSPDFKit-Comment-footer-backgroundColor:var(--color-white);--PSPDFKit-Comment-editor-borderColor:var(--color-coolGrey200);--PSPDFKit-Comment-deleteIcon-color:var(--color-red400);--PSPDFKit-Comment-editingText-border:var(--color-blue600);--PSPDFKit-Comment-editingTextButtonContainer-border-top:var(--color-coolGrey50);--PSPDFKit-Comment-editingTextButtonIcon-color:var(--color-white);--PSPDFKit-Comment-editingTextSaveButton-color:var(--color-blue600);--PSPDFKit-Comment-editingTextSaveButtonHover-color:var(--color-blue700);--PSPDFKit-Comment-editingTextCancelButton-color:var(--color-coolGrey400);--PSPDFKit-Comment-editingTextCancelButtonHover-color:var(--color-coolGrey500);--PSPDFKit-Comment-editingTextButtonIconDisabled-background:var(--color-coolGrey200);--PSPDFKit-Comment-Toolbar-backdrop:0 1px 2px 0 #2b323b33,0 3px 4px 0 #2b323b0d;--PSPDFKit-Comment-Toolbar-background:var(--color-coolGrey25);--PSPDFKit-Comment-Toolbar-borderColor:var(--color-coolGrey50);--PSPDFKit-Comment-Toolbar-Selected-Color:var(--color-blue600);--PSPDFKit-Comment-icon-backgroundColor-hover:var(--color-coolGrey50);--PSPDFKit-Comment-icon-strokeColorActive:var(--color-white);--PSPDFKit-Comment-icon-backgroundColorActive:var(--color-blue600);--PSPDFKit-Comment-ColorPicker-borderColor:var(--color-coolGrey50);--PSPDFKit-Comment-ColorPicker-activeColor:#9e73fa;--PSPDFKit-Comment-linkEditor-backgroundColor:var(--color-coolGrey50);--PSPDFKit-Comment-linkEditor-borderColor:var(--color-coolGrey100);--PSPDFKit-Comment-linkEditor-buttonText-color:var(--color-blue600);--PSPDFKit-Comment-linkEditor-inputLabel-color:var(--color-coolGrey800);--PSPDFKit-Comment-linkEditor-input-backgroundColor:var(--color-coolGrey50);--PSPDFKit-Comment-linkEditor-input-borderColor:var(--color-coolGrey200);--PSPDFKit-Comment-linkEditor-input-backgroundColor-hover:var(--color-coolGrey100);--PSPDFKit-Comment-linkEditor-input-placeholder-color:var(--color-coolGrey600);--PSPDFKit-Comment-Mention-color:var(--color-blue600);--PSPDFKit-Comment-Mention-Suggestion-backgroundColor:var(--color-coolGrey25);--PSPDFKit-Comment-Mention-Suggestion-borderColor:var(--color-coolGrey50);--PSPDFKit-Comment-Mention-Suggestion-separator:var(--color-coolGrey50);--PSPDFKit-Comment-Mention-Suggestion-Title-color:var(--color-coolGrey800);--PSPDFKit-Comment-Mention-Suggestion-Description-color:var(--color-coolGrey400);--PSPDFKit-Comment-Avatar-backgroundColor:var(--color-coolGrey400);--PSPDFKit-Comment-Avatar-Active-backgroundColor:var(--color-blue50);--PSPDFKit-Comment-Mention-Suggestion-Active-backgroundColor:var(--color-blue600);--PSPDFKit-Comment-Mention-Suggestion-Description-Active-color:var(--color-blue50);--PSPDFKit-Comment-Mention-Suggestion-Title-Active-color:var(--color-coolGrey50);--PSPDFKit-Comment-popover-color:var(--color-black);--PSPDFKit-Comment-popover-moreComments-gradient:linear-gradient(180deg,hsla(0,0%,100%,0),#fff);--PSPDFKit-Comment-popover-moreComments-background:var(--color-coolGrey800);--PSPDFKit-Comment-popover-moreComments-border:var(--color-coolGrey200);--PSPDFKit-Comment-popover-moreComments-color:var(--color-white);--PSPDFKit-CommentMarkerAnnotation-accent-stroke:var(--color-blue600);--PSPDFKit-SignaturesValidationStatusBar-Valid-backgroundColor:var(--color-green25);--PSPDFKit-SignaturesValidationStatusBar-Warning-backgroundColor:var(--color-yellow25);--PSPDFKit-SignaturesValidationStatusBar-Error-backgroundColor:var(--color-red50);--PSPDFKit-SignaturesValidationStatusBar-Valid-color:var(--color-coolGrey800);--PSPDFKit-SignaturesValidationStatusBar-Warning-color:var(--color-coolGrey800);--PSPDFKit-SignaturesValidationStatusBar-Error-color:var(--color-coolGrey800);--PSPDFKit-SignaturesValidationStatusBar-Icon-Valid-color:var(--color-green600);--PSPDFKit-SignaturesValidationStatusBar-Icon-Warning-color:var(--color-yellow600);--PSPDFKit-SignaturesValidationStatusBar-Icon-Error-color:var(--color-red400);--PSPDFKit-ColorDropdownPickerComponent-item-circle-border-stroke:var(--color-coolGrey700);--PSPDFKit-ElectronicSignatures-tabLabel-color:var(--color-coolGrey700);--PSPDFKit-ElectronicSignatures-tabLabel-active-color:var(--color-blue600);--PSPDFKit-ElectronicSignatures-tabList-border-color:var(--color-coolGrey200);--PSPDFKit-ElectronicSignatures-tabsContainer-background:var(--color-coolGrey50);--PSPDFKit-ElectronicSignatures-modal-background:var(--color-coolGrey37);--PSPDFKit-ElectronicSignatures-modal-legend-color:var(--color-coolGrey900);--PSPDFKit-ElectronicSignatures-storeCheckLabel-color:var(--color-coolGrey700);--PSPDFKit-ElectronicSignatures-contentArea-background:var(--color-white);--PSPDFKit-ElectronicSignatures-imagePicker-color:var(--color-blue600);--PSPDFKit-ElectronicSignatures-imagePicker-borderColor:var(--color-coolGrey200);--PSPDFKit-ElectronicSignatures-imagePicker-draggingBackground:var(--color-blue50);--PSPDFKit-ElectronicSignatures-imagePicker-draggingBorder:var(--color-blue600);--PSPDFKit-DrawingTab-deleteSignature-color:var(--color-blue700);--PSPDFKit-DrawingTab-signHere-color:var(--color-coolGrey600);--PSPDFKit-DrawingTab-canvas-borderColor:var(--color-coolGrey200);--PSPDFKit-TypingTab-container-background-color:var(--color-white);--PSPDFKit-TypingTab-input-border:var(--color-coolGrey400);--PSPDFKit-TypingTab-fontFamilyPicker-border:var(--color-coolGrey100);--PSPDFKit-TypingTab-fontFamilyPicker-background:var(--color-coolGrey50);--PSPDFKit-TypingTab-input-isFocused-background:var(--color-white);--PSPDFKit-TypingTab-Dropdown-ColorPicker-background:var(--color-white);--PSPDFKit-TypingTab-Dropdown-ColorPicker-color:var(--color-black);--PSPDFKit-TypingTab-fontFamily-border:var(--color-coolGrey100);--PSPDFKit-TypingTab-fontFamily-isHovered-background:var(--color-white);--PSPDFKit-UserHintComponent-background:var(--color-blue25);--PSPDFKit-UserHintComponent-border:var(--color-blue200);--PSPDFKit-UserHintComponent-color:var(--color-blue800);--PSPDFKit-FormDesignerExpandoComponent-button-color:var(--color-coolGrey37);--PSPDFKit-FormDesignerExpandoComponent-button-text-color:var(--color-coolGrey700);--PSPDFKit-FormDesignerExpandoComponent-button-text-hover-color:var(--color-coolGrey850);--PSPDFKit-FormDesignerExpandoComponent-content-color:var(--color-black);--PSPDFKit-FormDesignerExpandoComponent-border-color:var(--color-coolGrey50);--PSPDFKit-RadioGroup-selectedLabel-color:var(--color-coolGrey25);--PSPDFKit-RadioGroup-label-background:var(--color-coolGrey50);--PSPDFKit-RadioGroup-icon-label-background:var( --PSPDFKit-AnnotationToolbar-icon-label-background );--PSPDFKit-RadioGroup-icon-color:var(--PSPDFKit-AnnotationToolbar-icon-color);--PSPDFKit-RadioGroup-iconLabel-isActive-background:var( --PSPDFKit-AnnotationToolbar-iconLabel-isActive-background );--PSPDFKit-RadioGroup-iconLabel-isActive-border:var( --PSPDFKit-AnnotationToolbar-iconLabel-isActive-border );--PSPDFKit-RadioGroup-iconLabel-isActive-svg-color:var( --PSPDFKit-AnnotationToolbar-iconLabel-isActive-svg-color );--PSPDFKit-RadioGroup-iconLabel-isActive-svg-fill:var( --PSPDFKit-AnnotationToolbar-iconLabel-isActive-svg-fill );--PSPDFKit-FormDesignerToolbar-button-border:var(--PSPDFKit-AnnotationToolbar-button-border);--PSPDFKit-FormDesignerToolbar-button-color:var(--PSPDFKit-AnnotationToolbar-button-color);--PSPDFKit-FormDesignerOptionsControlComponent-title-color:var(--color-coolGrey800);--PSPDFKit-FormDesignerOptionsControlComponent-border-color:var(--color-coolGrey100);--PSPDFKit-FormDesignerOptionsControlComponent-icon-color:var(--color-coolGrey200);--PSPDFKit-FormDesignerOptionsControlComponent-hover-color:var(--color-blue600);--PSPDFKit-FormDesignerOptionsControlComponent-addOption-button-color:var(--color-blue600);--PSPDFKit-FormDesignerOptionsControlComponent-text-color:var(--color-black);--PSPDFKit-FormDesignerOptionsControlComponent-background-color:var(--color-coolGrey50);--PSPDFKit-FormDesignerTextInputComponent-background-color:var(--color-coolGrey50);--PSPDFKit-FormDesignerTextInputComponent-label-color:var(--color-coolGrey800);--PSPDFKit-FormDesignerTextInputComponent-input-text-color:var(--color-black);--PSPDFKit-FormDesignerTextInputComponent-border-color:var(--color-coolGrey200);--PSPDFKit-FormDesignerTextInputComponent-hover-border-color:var(--color-blue600);--PSPDFKit-FormDesignerTextInputComponent-error-color:var(--color-red400);--PSPDFKit-FormDesignerPopoverComponent-color-dropdown-menu-color:var(--color-white);--PSPDFKit-FormDesignerPopoverComponent-item-border-color:var(--color-coolGrey50);--PSPDFKit-FormDesignerPopoverComponent-item-color:var(--color-coolGrey800);--PSPDFKit-FormDesignerPopoverComponent-warning-label-color:var(--color-coolGrey800);--PSPDFKit-FormDesignerPopoverComponent-readonly-icon-color:var(--color-coolGrey850);--PSPDFKit-FormDesignerPopoverComponent-radioGroup-background-color:var(--color-coolGrey50);--PSPDFKit-FormDesignerPopoverComponent-deleteButton-mobile-text-color:var(--color-coolGrey800);--PSPDFKit-FormDesignerPopoverComponent-deleteButton-border:var(--color-coolGrey200);--PSPDFKit-FormDesignerPopoverComponent-doneButton-color:var(--color-white);--PSPDFKit-FormDesignerPopoverComponent-doneButton-background:var(--color-blue600);--PSPDFKit-FormDesignerPopoverComponent-doneButton-border:var(--color-blue700);--PSPDFKit-ExpandingPopoverComponent-title-color:var(--color-coolGrey850);--PSPDFKit-ExpandingPopoverComponent-background:var(--color-coolGrey50);--PSPDFKit-ExpandingPopoverComponent-background-color:var( --PSPDFKit-ExpandingPopoverComponent-background );--PSPDFKit-ExpandingPopoverComponent-content-background:var(--color-white);--PSPDFKit-ExpandingPopoverComponent-separator-border:var(--color-coolGrey100);--PSPDFKit-ExpandingPopoverComponent-footerButton-color:var(--color-blue600);--PSPDFKit-ExpandingPopoverComponent-footerButton-hover-background:var(--color-coolGrey100);--PSPDFKit-ExpandingPopoverComponent-content-color:var(--color-black);--PSPDFKit-ExitContentEditorConfirm-warning-color:var(--color-yellow600);--PSPDFKit-ExitContentEditorConfirm-buttonsGroup-background:var(--color-coolGrey25);--PSPDFKit-ExitContentEditorConfirm-buttonsGroup-border:var(--color-coolGrey50);--PSPDFKit-ExitContentEditorConfirm-description-color:var(--color-coolGrey600);--PSPDFKit-ExitContentEditorConfirm-heading-color:var(--color-coolGrey850);--PSPDFKit-MeasurementSettingsModal-separator-color:var(--color-coolGrey50);--PSPDFKit-MeasurementSettingsModal-info-color:var(--color-coolGrey400);--PSPDFKit-MeasurementSettingsModal-background-color:var(--color-coolGrey50);--PSPDFKit-MeasurementSettingsModal-section-background-color:var(--color-coolGrey37);--PSPDFKit-MeasurementSettingsModal-section-color:var(--color-coolGrey700);--PSPDFKit-MeasurementSettingsModal-section-text-color:var(--color-coolGrey800);--PSPDFKit-MeasurementSettingsModal-highlight-color:var(--color-blue400);--PSPDFKit-MeasurementSettingsModal-calibration-success-text-color:var(--color-coolGrey600);--PSPDFKit-MeasurementSettingsModal-error-text-color:var(--color-red400);--PSPDFKit-DropdownMenuComponent-trigger-backgroundColor:var(--color-coolGrey50);--PSPDFKit-DropdownMenuComponent-content-backgroundColor:var(--color-coolGrey25);--PSPDFKit-DropdownMenuComponent-border:1px solid var(--color-coolGrey100);--PSPDFKit-DropdownMenuComponent-item-highlighted-backgroundColor:var(--color-blue600);--PSPDFKit-DropdownMenuComponent-trigger-icon-fill:var(--color-coolGrey700);--PSPDFKit-DropdownMenuComponent-item-color:var(--color-black);--PSPDFKit-DropdownMenuComponent-separator-backgroundColor:var(--color-coolGrey50)} diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/pspdfkit-67934b3c8e9560cd.wasm b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/pspdfkit-67934b3c8e9560cd.wasm new file mode 100644 index 00000000..f8c600b2 Binary files /dev/null and b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/pspdfkit-67934b3c8e9560cd.wasm differ diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/pspdfkit-fa90031a4348e916.wasm.js b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/pspdfkit-fa90031a4348e916.wasm.js new file mode 100644 index 00000000..55c96617 --- /dev/null +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/pspdfkit-fa90031a4348e916.wasm.js @@ -0,0 +1,13 @@ +/*! + * PSPDFKit for Web 2023.5.0-3f96296 (https://pspdfkit.com/web) + * + * Copyright (c) 2016-2023 PSPDFKit GmbH. All rights reserved. + * + * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW + * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT. + * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES. + * This notice may not be removed from this file. + * + * PSPDFKit uses several open source third-party components: https://pspdfkit.com/acknowledgements/web/ + */ +var PSPDFModuleInit=function(){var _scriptDir="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(_scriptDir=_scriptDir||__filename),function(PSPDFModuleInit){PSPDFModuleInit=PSPDFModuleInit||{};var Module=void 0!==PSPDFModuleInit?PSPDFModuleInit:{},readyPromiseResolve,readyPromiseReject;Module.ready=new Promise((function(g,A){readyPromiseResolve=g,readyPromiseReject=A})),Module.expectedDataFileDownloads||(Module.expectedDataFileDownloads=0),Module.expectedDataFileDownloads++,function(g){function A(){Module.FS_createPath("/","assets",!0,!0),Module.FS_createPath("/assets","JavaScript",!0,!0),Module.FS_createPath("/assets","NoteIcons",!0,!0),Module.FS_createPath("/assets","Signatures",!0,!0),Module.FS_createDataFile("/assets/JavaScript","Init.js",decodeBase64("IWZ1bmN0aW9uKGUpe3ZhciB0PXt9O2Z1bmN0aW9uIHIobil7aWYodFtuXSlyZXR1cm4gdFtuXS5leHBvcnRzO3ZhciBpPXRbbl09e2k6bixsOiExLGV4cG9ydHM6e319O3JldHVybiBlW25dLmNhbGwoaS5leHBvcnRzLGksaS5leHBvcnRzLHIpLGkubD0hMCxpLmV4cG9ydHN9ci5tPWUsci5jPXQsci5kPWZ1bmN0aW9uKGUsdCxuKXtyLm8oZSx0KXx8T2JqZWN0LmRlZmluZVByb3BlcnR5KGUsdCx7ZW51bWVyYWJsZTohMCxnZXQ6bn0pfSxyLnI9ZnVuY3Rpb24oZSl7InVuZGVmaW5lZCIhPXR5cGVvZiBTeW1ib2wmJlN5bWJvbC50b1N0cmluZ1RhZyYmT2JqZWN0LmRlZmluZVByb3BlcnR5KGUsU3ltYm9sLnRvU3RyaW5nVGFnLHt2YWx1ZToiTW9kdWxlIn0pLE9iamVjdC5kZWZpbmVQcm9wZXJ0eShlLCJfX2VzTW9kdWxlIix7dmFsdWU6ITB9KX0sci50PWZ1bmN0aW9uKGUsdCl7aWYoMSZ0JiYoZT1yKGUpKSw4JnQpcmV0dXJuIGU7aWYoNCZ0JiYib2JqZWN0Ij09dHlwZW9mIGUmJmUmJmUuX19lc01vZHVsZSlyZXR1cm4gZTt2YXIgbj1PYmplY3QuY3JlYXRlKG51bGwpO2lmKHIucihuKSxPYmplY3QuZGVmaW5lUHJvcGVydHkobiwiZGVmYXVsdCIse2VudW1lcmFibGU6ITAsdmFsdWU6ZX0pLDImdCYmInN0cmluZyIhPXR5cGVvZiBlKWZvcih2YXIgaSBpbiBlKXIuZChuLGksZnVuY3Rpb24odCl7cmV0dXJuIGVbdF19LmJpbmQobnVsbCxpKSk7cmV0dXJuIG59LHIubj1mdW5jdGlvbihlKXt2YXIgdD1lJiZlLl9fZXNNb2R1bGU/ZnVuY3Rpb24oKXtyZXR1cm4gZS5kZWZhdWx0fTpmdW5jdGlvbigpe3JldHVybiBlfTtyZXR1cm4gci5kKHQsImEiLHQpLHR9LHIubz1mdW5jdGlvbihlLHQpe3JldHVybiBPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSx0KX0sci5wPSIiLHIoci5zPTUpfShbZnVuY3Rpb24oZSx0LHIpe3ZhciBuPXIoMik7ZnVuY3Rpb24gaShlLHQpe3ZhciByLGksYT1uLkFGRXh0cmFjdE51bXMoZSk7cmV0dXJuIHQ9dHx8bmV3IERhdGUsZT8hbi5BRlRpbWVHYXJiYWdlUmVnRXhwLnRlc3QoZSl8fCFhfHxhLmxlbmd0aDwyfHwzPGEubGVuZ3RoP251bGw6KGk9ISFuLkFGUE1SZWdFeHAudGVzdChlKSxlPSEhbi5BRkFNUmVnRXhwLnRlc3QoZSkscj1uZXcgTnVtYmVyKGFbMF0pLGk/cjwxMiYmKHIrPTEyKTplJiYxMjw9ciYmKHItPTEyKSxpPWFbMV0sZT0zPT1hLmxlbmd0aD9hWzJdOjAsdC5zZXRIb3VycyhyKSx0LnNldE1pbnV0ZXMoaSksdC5zZXRTZWNvbmRzKGUpLHQuZ2V0SG91cnMoKSE9cnx8dC5nZXRNaW51dGVzKCkhPWl8fHQuZ2V0U2Vjb25kcygpIT1lP251bGw6dCk6dH1mdW5jdGlvbiBhKGUsdCl7dmFyIHI9bmV3IERhdGU7aWYoci5zZXRIb3VycygxMiwwLDApLCFlKXJldHVybiByO3ZhciBhPWZ1bmN0aW9uKGUpe2Zvcih2YXIgdD0wLHI9MDtyPGUubGVuZ3RoO3IrKylzd2l0Y2goZS5jaGFyQXQocikpe2Nhc2UiXFwiOnIrKzticmVhaztjYXNlInkiOnQrPTF9cmV0dXJuIHR9KHQpLHU9ZnVuY3Rpb24oZSl7Zm9yKHZhciB0PSIiLHI9MDtyPGUubGVuZ3RoO3IrKylzd2l0Y2goZS5jaGFyQXQocikpe2Nhc2UiXFwiOnIrKzticmVhaztjYXNlIm0iOi0xPT10LmluZGV4T2YoIm0iKSYmKHQrPSJtIik7YnJlYWs7Y2FzZSJkIjotMT09dC5pbmRleE9mKCJkIikmJih0Kz0iZCIpO2JyZWFrO2Nhc2UiaiI6Y2FzZSJ5IjotMT09dC5pbmRleE9mKCJ5IikmJih0Kz0ieSIpfXJldHVybi0xPT10LmluZGV4T2YoIm0iKSYmKHQrPSJtIiksLTE9PXQuaW5kZXhPZigiZCIpJiYodCs9ImQiKSwtMT09dC5pbmRleE9mKCJ5IikmJih0Kz0ieSIpLHR9KHQpLGw9ZnVuY3Rpb24oZSl7dmFyIHQscj0iIjtyZXR1cm4odD1uLkFGRXh0cmFjdFJlZ0V4cChuLkFGUE1SZWdFeHAsZSkpJiYocj10WzFdLGU9dFswXSksKHQ9bi5BRkV4dHJhY3RSZWdFeHAobi5BRkFNUmVnRXhwLGUpKSYmKGU9dFswXSksKHQ9bi5BRkV4dHJhY3RSZWdFeHAobi5BRlRpbWVMb25nUmVnRXhwLGUpKXx8KHQ9bi5BRkV4dHJhY3RSZWdFeHAobi5BRlRpbWVTaG9ydFJlZ0V4cCxlKSk/KHRbMV0rPXIsdCk6bnVsbH0oZSksYz0obCYmKGU9bFswXSksbi5BRkV4dHJhY3ROdW1zKGUpKTtpZighYylyZXR1cm4gbnVsbDtpZigzPT1jLmxlbmd0aClyZXR1cm4gdj0rY1t1LmluZGV4T2YoInkiKV0sMjxhJiZ2PDEwMHx8OTk5OTx2P251bGw6KHI9bSh2PW8odiksY1t1LmluZGV4T2YoIm0iKV0tMSxjW3UuaW5kZXhPZigiZCIpXSksbD9yPWkobFsxXSxyKTpyJiZyLnNldEhvdXJzKDAsMCwwKSxyKTtpZihzPWZ1bmN0aW9uKGUpe2Zvcih2YXIgdD0wO3Q8bi5BRk1vbnRoc1JlZ0V4cC5sZW5ndGg7dCsrKXt2YXIgcj1lLm1hdGNoKG4uQUZNb250aHNSZWdFeHBbdF0pO2lmKHIpcmV0dXJuIGZ1bmN0aW9uKGUpe3ZhciB0PSh0PW5ldyBSZWdFeHAoZSsiIChbMC05XSspIiwiaSIpKS5leGVjKCJKYW51YXJ5IDEgRmVicnVhcnkgMiBNYXJjaCAzIEFwcmlsIDQgTWF5IDUgSnVuZSA2IEp1bHkgNyBBdWd1c3QgOCBTZXB0ZW1iZXIgOSBPY3RvYmVyIDEwIE5vdmVtYmVyIDExIERlY2VtYmVyIDEyIFNlcHQgOSBKYW4gMSBGZWIgMiBNYXIgMyBBcHIgNCBKdW4gNiBKdWwgNyBBdWcgOCBTZXAgOSBPY3QgMTAgTm92IDExIERlYyAxMiAiKTtyZXR1cm4gZSYmdD8rdFsxXTowfShyW3IubGVuZ3RoLTFdKX1yZXR1cm4gMH0oZSksMj09Yy5sZW5ndGgpe2lmKHMpcmV0dXJuIHA9dS5pbmRleE9mKCJ5Iik8dS5pbmRleE9mKCJkIik/KHY9K2NbMF0sY1sxXSk6KHY9K2NbMV0sY1swXSksMjxhJiZ2PDEwMHx8OTk5OTx2P251bGw6KHI9bSh2PW8odikscy0xLHApLGw/cj1pKGxbMV0scik6ciYmci5zZXRIb3VycygwLDAsMCkscik7aWYodS5pbmRleE9mKCJ5Iik8dS5pbmRleE9mKCJkIikpe2lmKHM9dS5pbmRleE9mKCJ5Iik8dS5pbmRleE9mKCJtIik/KHY9K2NbMF0sY1sxXSk6KHY9K2NbMV0sY1swXSksMjxhJiZ2PDEwMHx8OTk5OTx2KXJldHVybiBudWxsO3I9bSh2PW8odikscy0xLDEpfWVsc2Ugdj1yLmdldEZ1bGxZZWFyKCkscj11LmluZGV4T2YoImQiKTx1LmluZGV4T2YoIm0iKT9tKHYsY1sxXS0xLGNbMF0pOm0odixjWzBdLTEsY1sxXSk7cmV0dXJuIGw/cj1pKGxbMV0scik6ciYmci5zZXRIb3VycygwLDAsMCkscn1pZigxIT1jLmxlbmd0aClyZXR1cm4gbnVsbDtpZihzKXtpZih1LmluZGV4T2YoInkiKTx1LmluZGV4T2YoImQiKSl7aWYodj0rY1swXSwyPGEmJnY8MTAwfHw5OTk5PHYpcmV0dXJuIG51bGw7cj1tKHY9byh2KSxzLTEsMSl9ZWxzZSByPW0odj1yLmdldEZ1bGxZZWFyKCkscy0xLGNbMF0pO3JldHVybiBsP3I9aShsWzFdLGRhdGUpOnImJnIuc2V0SG91cnMoMCwwLDApLHJ9aWYodC5sZW5ndGghPWUubGVuZ3RoKXJldHVybiBudWxsO2Zvcih2YXIgdj0iIixzPSIiLHA9IiIsZz0wO2c8dC5sZW5ndGg7ZysrKXN3aXRjaCh0LmNoYXJBdChnKSl7Y2FzZSJcXCI6ZysrO2JyZWFrO2Nhc2UieSI6dis9ZS5jaGFyQXQoZyk7YnJlYWs7Y2FzZSJtIjpzKz1lLmNoYXJBdChnKTticmVhaztjYXNlImQiOnArPWUuY2hhckF0KGcpfXJldHVybiB2Kj0xLChzKj0xKSYmLS1zLChwKj0xKXx8KHArPTEpLDI8YSYmdjwxMDB8fDk5OTk8dj9udWxsOihyPW0odj1vKHYpLHMscCksbD9yPWkobFsxXSxkYXRlKTpyJiZyLnNldEhvdXJzKDAsMCwwKSxyKX1mdW5jdGlvbiB1KGUpe2lmKGV2ZW50LnZhbHVlKXtpZigtMSE9ZXZlbnQudmFsdWUuaW5kZXhPZigiR01UKyIpKXt2YXIgdD1BRlBhcnNlR01URGF0ZVN0cmluZyhldmVudC52YWx1ZSk7aWYodClyZXR1cm4gdm9pZChldmVudC52YWx1ZT11dGlsLnByaW50ZChlLHQpKX10PWEoZXZlbnQudmFsdWUsZSksZXZlbnQudmFsdWU9dD91dGlsLnByaW50ZChlLHQpOiIifX1mdW5jdGlvbiBsKGUpe2V2ZW50LndpbGxDb21taXQmJiFhKG4uQUZNZXJnZUNoYW5nZShldmVudCksZSkmJihldmVudC53aWxsQ29tbWl0JiYhZXZlbnQuc2lsZW5jZUVycm9ycz8oZT11dGlsLnByaW50ZihTY3JpcHRTdHJpbmcuaW52YWxpZF9kYXRlX2Vycm9yX21lc3NhZ2UsbnVsbCE9ZXZlbnQudGFyZ2V0P2V2ZW50LnRhcmdldC5uYW1lOiIiLGUpLGFwcC5hbGVydChlKSk6YXBwLmJlZXAoMCksZXZlbnQucmM9ITEpfWZ1bmN0aW9uIG8oZSl7cmV0dXJuIGU8MTAwJiY1MDw9ZT9lKz0xOTAwOjA8PWUmJmU8NTAmJihlKz0yZTMpLGV9ZnVuY3Rpb24gbShlLHQscil7dmFyIG49bmV3IERhdGU7cmV0dXJuIG4uc2V0RnVsbFllYXIoZSx0LHIpLG4uZ2V0RnVsbFllYXIoKSE9ZXx8bi5nZXRNb250aCgpIT10fHxuLmdldERhdGUoKSE9cj9udWxsOm59ZS5leHBvcnRzPXtBRkRhdGVfRm9ybWF0OmZ1bmN0aW9uKGUpe3UoWyJtL2QiLCJtL2QveXkiLCJtbS9kZC95eSIsIm1tL3l5IiwiZC1tbW0iLCJkLW1tbS15eSIsImRkLW1tbS15eSIsInl5LW1tLWRkIiwibW1tLXl5IiwibW1tbS15eSIsIm1tbSBkLCB5eXl5IiwibW1tbSBkLCB5eXl5IiwibS9kL3l5IGg6TU0gdHQiLCJtL2QveXkgSEg6TU0iXVtlXSl9LEFGRGF0ZV9Gb3JtYXRFeDp1LEFGRGF0ZV9LZXlzdHJva2U6ZnVuY3Rpb24oZSl7bChbIm0vZCIsIm0vZC95eSIsIm1tL2RkL3l5IiwibW0veXkiLCJkLW1tbSIsImQtbW1tLXl5IiwiZGQtbW1tLXl5IiwieXktbW0tZGQiLCJtbW0teXkiLCJtbW1tLXl5IiwibW1tIGQsIHl5eXkiLCJtbW1tIGQsIHl5eXkiLCJtL2QveXkgaDpNTSB0dCIsIm0vZC95eSBISDpNTSJdW2VdKX0sQUZEYXRlX0tleXN0cm9rZUV4OmwsQUZUaW1lX0Zvcm1hdDpmdW5jdGlvbihlKXt2YXIgdDtldmVudC52YWx1ZSYmKCh0PWkoZXZlbnQudmFsdWUsbnVsbCkpP2V2ZW50LnZhbHVlPXV0aWwucHJpbnRkKFsiSEg6TU0iLCJoOk1NIHR0IiwiSEg6TU06c3MiLCJoOk1NOnNzIHR0Il1bZV0sdCk6ZXZlbnQudmFsdWU9IiIpfSxBRlRpbWVfRm9ybWF0RXg6ZnVuY3Rpb24oZSl7dmFyIHQ7ZXZlbnQudmFsdWUmJih0PWkoZXZlbnQudmFsdWUsbnVsbCksZXZlbnQudmFsdWU9dD91dGlsLnByaW50ZChlLHQpOiIiKX0sQUZUaW1lX0tleXN0cm9rZTpmdW5jdGlvbihlKXt2YXIgdDtldmVudC53aWxsQ29tbWl0JiYhaShldmVudC52YWx1ZSxudWxsKSYmKGV2ZW50LndpbGxDb21taXQmJiFldmVudC5zaWxlbmNlRXJyb3JzPyh0PXV0aWwucHJpbnRmKFNjcmlwdFN0cmluZy5pbnZhbGlkX3ZhbHVlX2Zvcm1hdF9lcnJvcl9tZXNzYWdlLG51bGwhPWV2ZW50LnRhcmdldD9ldmVudC50YXJnZXQubmFtZToiIiksYXBwLmFsZXJ0KHQpKTphcHAuYmVlcCgwKSxldmVudC5yYz0hMSl9fX0sZnVuY3Rpb24oZSx0LHIpe3ZhciBuPXIoMik7ZnVuY3Rpb24gaShlKXt2YXIgdDtyZXR1cm4ibnVtYmVyIj09KHQ9dHlwZW9mIGUpP2U6InN0cmluZyIhPXQ/bnVsbDoodD1uLkFGRXh0cmFjdE51bXMoZSkpPyh0PXQuam9pbigiLiIpLCh0PTA8PWUuaW5kZXhPZigiLS4iKT8iMC4iK3Q6dCkqKDA8PWUuaW5kZXhPZigiLSIpPy0xOjEpKTpudWxsfWZ1bmN0aW9uIGEoZSx0LHIsaSxhLHUpe3ZhciBsLG8sbT1uLkFGTWVyZ2VDaGFuZ2UoZXZlbnQpO20mJihvPTE8dD8obD1uLkFGTnVtYmVyQ29tbWFTZXBDb21taXRSZWdFeHAsbi5BRk51bWJlckNvbW1hU2VwRW50cnlSZWdFeHApOihsPW4uQUZOdW1iZXJEb3RTZXBDb21taXRSZWdFeHAsbi5BRk51bWJlckRvdFNlcEVudHJ5UmVnRXhwKSxuLkFGRXhhY3RNYXRjaChldmVudC53aWxsQ29tbWl0P2w6byxtKXx8KGV2ZW50LndpbGxDb21taXQmJiFldmVudC5zaWxlbmNlRXJyb3JzPyhsPXV0aWwucHJpbnRmKFNjcmlwdFN0cmluZy5pbnZhbGlkX3ZhbHVlX2Vycm9yX21lc3NhZ2UsbnVsbCE9ZXZlbnQudGFyZ2V0P2V2ZW50LnRhcmdldC5uYW1lOiIiKSxhcHAuYWxlcnQobCkpOmFwcC5iZWVwKDApLGV2ZW50LnJjPSExKSxldmVudC53aWxsQ29tbWl0JiYxPHQmJihvPWV2ZW50LnZhbHVlLG09bmV3IFJlZ0V4cCgiLCIpLG89by5yZXBsYWNlKG0sIi4iKSxldmVudC52YWx1ZT0rbykpfW5ldyBSZWdFeHAoIlswLTldKyIpLGUuZXhwb3J0cz17QUZOdW1iZXJfRm9ybWF0OmZ1bmN0aW9uKGUsdCxyLG4sYSx1KXt2YXIgbD1pKGV2ZW50LnZhbHVlKSxvPWw8MD8tMToxLG09ZXZlbnQudGFyZ2V0LGM9IiI7aWYobnVsbD09bHx8aXNOYU4obCkpcmV0dXJuIGNvbnNvbGUucmVwb3J0RXJyb3IoIkNvdWxkIG5vdCBjb252ZXJ0IHZhbHVlIHRvIG51bWJlcjogIitldmVudC52YWx1ZSksdm9pZChldmVudC52YWx1ZT0iIik7MSE9ciYmMyE9cnx8KG0udGV4dENvbG9yPTA8bz9jb2xvci5ibGFjazpjb2xvci5yZWQpLGw9dXRpbC5wcmludGYoIiUsIit0KyIuIitlKyJmIixsKSxvPDAmJnUmJjA9PXImJihjPSItIiksKDI9PXJ8fDM9PXIpJiZvPDAmJihjKz0iKCIpLHUmJihjKz1hKSxjKz1sPTA9PXImJiF1fHwiLSIhPWwuc3Vic3RyaW5nKDAsMSk/bDpsLnN1YnN0cmluZygxKSx1fHwoYys9YSksKDI9PXJ8fDM9PXIpJiZvPDAmJihjKz0iKSIpLGV2ZW50LnZhbHVlPWN9LEFGTnVtYmVyX0tleXN0cm9rZTphLEFGTWFrZU51bWJlcjppLEFGUGVyY2VudF9Gb3JtYXQ6ZnVuY3Rpb24oZSx0LHIpe3ZhciBuPTEwMCppKGV2ZW50LnZhbHVlKTt0PSIlLCIrdCsiLiIrZSsiZiI7bnVsbD09bj9ldmVudC52YWx1ZT0iIjoobj11dGlsLnByaW50Zih0LG4pLGV2ZW50LnZhbHVlPXI/IiUiK246bisiJSIpfSxBRlBlcmNlbnRfS2V5c3Ryb2tlOmZ1bmN0aW9uKGUsdCl7cmV0dXJuIGEoMCx0KX19fSxmdW5jdGlvbihlLHQpe2UuZXhwb3J0cz17QUZFeHRyYWN0UmVnRXhwOmZ1bmN0aW9uKGUsdCl7dmFyIHI9W107cmV0dXJuKG1hdGNoPWUuZXhlYyh0KSk/KHIubGVuZ3RoPTIsclswXT10LnN1YnN0cmluZygwLG1hdGNoLmluZGV4KSt0LnN1YnN0cmluZyhtYXRjaC5pbmRleCttYXRjaFswXS5sZW5ndGgpLHJbMV09bWF0Y2gscik6bnVsbH0sQUZNZXJnZUNoYW5nZTpmdW5jdGlvbihlKXt2YXIgdCxyPWUudmFsdWU7cmV0dXJuIGUud2lsbENvbW1pdD9lLnZhbHVlOih0PTA8PWUuc2VsU3RhcnQ/ci5zdWJzdHJpbmcoMCxlLnNlbFN0YXJ0KToiIixyPTA8PWUuc2VsRW5kJiZlLnNlbEVuZDw9ci5sZW5ndGg/ci5zdWJzdHJpbmcoZS5zZWxFbmQsci5sZW5ndGgpOiIiLHQrZS5jaGFuZ2Urcil9LEFGRXh0cmFjdE51bXM6ZnVuY3Rpb24oZSl7cmV0dXJuKGU9KGU9Ii4iIT1lLmNoYXJBdCgwKSYmIiwiIT1lLmNoYXJBdCgwKT9lOiIwIitlKS5tYXRjaCgvWzAtOV0rL2cpKSYmMTw9ZS5sZW5ndGg/ZTpudWxsfSxBRkV4YWN0TWF0Y2g6ZnVuY3Rpb24oZSx0KXtpZihBcnJheS5pc0FycmF5KGUpKXtmb3IodmFyIHI9MDtyPGUubGVuZ3RoO3IrKylpZigobj10Lm1hdGNoKGVbcl0pKSYmMDxuLmxlbmd0aCYmblswXT09dClyZXR1cm4hMH1lbHNle2lmKCEoZSBpbnN0YW5jZW9mIFJlZ0V4cCkpcmV0dXJuITE7dmFyIG47aWYoKG49dC5tYXRjaChlKSkmJjA8bi5sZW5ndGgmJm5bMF09PXQpcmV0dXJuITB9cmV0dXJuITF9LEFGVGltZUdhcmJhZ2VSZWdFeHA6L1swLTldezEsMn06WzAtOV17MSwyfSg6WzAtOV17MSwyfSk/KFxccykqKGFtfHBtKT8vaSxBRlBNUmVnRXhwOi9wbS9pLEFGQU1SZWdFeHA6L2FtL2ksQUZUaW1lTG9uZ1JlZ0V4cDovWzAtOV17MSwyfTpbMC05XXsxLDJ9OlswLTldezEsMn0vLEFGVGltZVNob3J0UmVnRXhwOi9bMC05XXsxLDJ9OlswLTldezEsMn0vLEFGTW9udGhzUmVnRXhwOlsvSmFudWFyeS9pLC9GZWJydWFyeS9pLC9NYXJjaC9pLC9BcHJpbC9pLC9NYXkvaSwvSnVuZS9pLC9KdWx5L2ksL0F1Z3VzdC9pLC9TZXB0ZW1iZXIvaSwvT2N0b2Jlci9pLC9Ob3ZlbWJlci9pLC9EZWNlbWJlci9pLC9TZXB0L2ksL0phbi9pLC9GZWIvaSwvTWFyL2ksL0Fwci9pLC9KdW4vaSwvSnVsL2ksL0F1Zy9pLC9TZXAvaSwvT2N0L2ksL05vdi9pLC9EZWMvaSwvKD86KS9pXSxBRk51bWJlckRvdFNlcENvbW1pdFJlZ0V4cDpbL1srLV0/WzAtOV0rKFwuWzAtOV0rKT8vaSwvWystXT9cLlswLTldKy9pLC9bKy1dP1swLTldK1wuL2ldLEFGTnVtYmVyQ29tbWFTZXBDb21taXRSZWdFeHA6Wy9bKy1dP1swLTldKyhbLixdWzAtOV0rKT8vaSwvWystXT9bLixdWzAtOV0rL2ksL1srLV0/WzAtOV0rWy4sXS9pXSxBRk51bWJlckNvbW1hU2VwRW50cnlSZWdFeHA6L1srLV0/WzAtOV0qLD9bMC05XSovaSxBRk51bWJlckRvdFNlcEVudHJ5UmVnRXhwOi9bKy1dP1swLTldKlwuP1swLTldKi9pLEFGWmlwQ29tbWl0UmVnRXhwOi9bMC05XXs1fS9pLEFGWmlwRW50cnlSZWdFeHA6L1swLTldezAsNX0vaSxBRlppcDRDb21taXRSZWdFeHA6L1swLTldezV9KFwufFstIF0pP1swLTldezR9L2ksQUZaaXA0RW50cnlSZWdFeHA6L1swLTldezAsNX0oXC58Wy0gXSk/WzAtOV17MCw0fS9pLEFGUGhvbmVDb21taXRSZWdFeHA6Wy9bMC05XXszfShcLnxbLSBdKT9bMC05XXs0fS9pLC9bMC05XXszfShcLnxbLSBdKT9bMC05XXszfShcLnxbLSBdKT9bMC05XXs0fS9pLC9cKFswLTldezN9XCkoXC58Wy0gXSk/WzAtOV17M30oXC58Wy0gXSk/WzAtOV17NH0vaSwvMDExKFwufFstIFswLTldKSovaV0sQUZQaG9uZUVudHJ5UmVnRXhwOlsvWzAtOV17MCwzfShcLnxbLSBdKT9bMC05XXswLDN9KFwufFstIF0pP1swLTldezAsNH0vaSwvXChbMC05XXswLDN9L2ksL1woWzAtOV17MCwzfVwpKFwufFstIF0pP1swLTldezAsM30oXC58Wy0gXSk/WzAtOV17MCw0fS9pLC9cKFswLTldezAsM30oXC58Wy0gXSk/WzAtOV17MCwzfShcLnxbLSBdKT9bMC05XXswLDR9L2ksL1swLTldezAsM31cKShcLnxbLSBdKT9bMC05XXswLDN9KFwufFstIF0pP1swLTldezAsNH0vaSwvMDExKFwufFstIFswLTldKSovaV0sQUZTU05Db21taXRSZWdFeHA6L1swLTldezN9KFwufFstIF0pP1swLTldezJ9KFwufFstIF0pP1swLTldezR9L2ksQUZTU05FbnRyeVJlZ0V4cDovWzAtOV17MCwzfShcLnxbLSBdKT9bMC05XXswLDJ9KFwufFstIF0pP1swLTldezAsNH0vaX19LGZ1bmN0aW9uKGUsdCxyKXt2YXIgbj1yKDIpO2Z1bmN0aW9uIGkoZSl7cmV0dXJuIjkiPT1lfHwiWCI9PWV8fCJBIj09ZXx8Ik8iPT1lfWZ1bmN0aW9uIGEoZSx0KXtmb3IodmFyIHI9dDtyPGUubGVuZ3RoO3IrKylpZihpKGUuY2hhckF0KHIpKSlyZXR1cm4gcjtyZXR1cm4tMX1mdW5jdGlvbiB1KGUpe3JldHVybiIwIjw9ZSYmZTw9IjkifWZ1bmN0aW9uIGwoZSl7cmV0dXJuImEiPD1lJiZlPD0ieiJ8fCJBIjw9ZSYmZTw9IloifWZ1bmN0aW9uIG8oZSx0KXtzd2l0Y2godCl7Y2FzZSI5IjpyZXR1cm4gdShlKTtjYXNlIkEiOnJldHVybiBsKGUpO2Nhc2UiTyI6cmV0dXJuIHUocj1lKXx8bChyKTtjYXNlIlgiOnJldHVybiAxO2RlZmF1bHQ6cmV0dXJuIGU9PXR9dmFyIHJ9ZS5leHBvcnRzPXtBRlNwZWNpYWxfRm9ybWF0OmZ1bmN0aW9uKGUpe3ZhciB0PWV2ZW50LnZhbHVlO2lmKHQpe3N3aXRjaChlKXtjYXNlIDA6dmFyIHI9Ijk5OTk5IjticmVhaztjYXNlIDE6cj0iOTk5OTktOTk5OSI7YnJlYWs7Y2FzZSAyOnI9MTA8PXV0aWwucHJpbnR4KCI5OTk5OTk5OTk5Iix0KS5sZW5ndGg/Iig5OTkpIDk5OS05OTk5IjoiOTk5LTk5OTkiO2JyZWFrO2Nhc2UgMzpyPSI5OTktOTktOTk5OSJ9ZXZlbnQudmFsdWU9dXRpbC5wcmludHgocix0KX19LEFGU3BlY2lhbF9LZXlzdHJva2U6ZnVuY3Rpb24oZSl7dmFyIHQscixpPW4uQUZNZXJnZUNoYW5nZShldmVudCk7aWYoaSl7c3dpdGNoKGUpe2Nhc2UgMDp0PW4uQUZaaXBDb21taXRSZWdFeHAscj1uLkFGWmlwRW50cnlSZWdFeHA7YnJlYWs7Y2FzZSAxOnQ9bi5BRlppcDRDb21taXRSZWdFeHAscj1uLkFGWmlwNEVudHJ5UmVnRXhwO2JyZWFrO2Nhc2UgMjp0PW4uQUZQaG9uZUNvbW1pdFJlZ0V4cCxyPW4uQUZQaG9uZUVudHJ5UmVnRXhwO2JyZWFrO2Nhc2UgMzp0PW4uQUZTU05Db21taXRSZWdFeHAscj1uLkFGU1NORW50cnlSZWdFeHB9bi5BRkV4YWN0TWF0Y2goZXZlbnQud2lsbENvbW1pdD90OnIsaSl8fChldmVudC53aWxsQ29tbWl0JiYhZXZlbnQuc2lsZW5jZUVycm9ycz8oZT11dGlsLnByaW50ZihTY3JpcHRTdHJpbmcuaW52YWxpZF92YWx1ZV9mb3JtYXRfZXJyb3JfbWVzc2FnZSxudWxsIT1ldmVudC50YXJnZXQ/ZXZlbnQudGFyZ2V0Lm5hbWU6IiIpLGFwcC5hbGVydChlKSk6YXBwLmJlZXAoMCksZXZlbnQucmM9ITEpfX0sQUZTcGVjaWFsX0tleXN0cm9rZUV4OmZ1bmN0aW9uKGUpe3ZhciB0PW4uQUZNZXJnZUNoYW5nZShldmVudCk7aWYodCYmZS5sZW5ndGgpe3ZhciByPXV0aWwucHJpbnRmKFNjcmlwdFN0cmluZy5pbnZhbGlkX3ZhbHVlX2Zvcm1hdF9lcnJvcl9tZXNzYWdlLGUpO2lmKGV2ZW50LndpbGxDb21taXQpcmV0dXJuLTEhPWEoZSx0Lmxlbmd0aCk/KGV2ZW50LnNpbGVuY2VFcnJvcnN8fGFwcC5hbGVydChyKSx2b2lkKGV2ZW50LnJjPSExKSk6dm9pZChldmVudC52YWx1ZT1ldmVudC52YWx1ZStlLnN1YnN0cmluZyh0Lmxlbmd0aCxlLmxlbmd0aCkpO2Zvcih2YXIgdT0wLGw9ZXZlbnQuc2VsU3RhcnQsbT0wLGM9MDtjPHQubGVuZ3RoOyl7dmFyIHY9ZS5jaGFyQXQobSkscz10LmNoYXJBdChjKTtpZighbyhzLHYpKXt2YXIgcD1hKGUsbSksZz1ldmVudC5zZWxTdGFydCtldmVudC5jaGFuZ2UubGVuZ3RoK3U7aWYoIShtPGUubGVuZ3RoJiYhaSh2KSYmLTEhPXAmJm8ocyxlLmNoYXJBdChwKSkmJmw8PWMrdSYmYyt1PD1nKSlyZXR1cm4gZXZlbnQuc2lsZW5jZUVycm9yc3x8YXBwLmFsZXJ0KHIpLHZvaWQoZXZlbnQucmM9ITEpO3Y9ZS5zdWJzdHJpbmcobSxwKSxldmVudC5jaGFuZ2U9ZXZlbnQuY2hhbmdlLnN1YnN0cmluZygwLGMrdS1sKSt2K2V2ZW50LmNoYW5nZS5zdWJzdHJpbmcoYyt1LWwpLHUrPXYubGVuZ3RoLG09cH1jKyssbSsrfX19fX0sZnVuY3Rpb24oZSx0LHIpe3IoMik7dmFyIG49cigxKTtmdW5jdGlvbiBpKGUsdCxyKXt2YXIgbj0rdDtyZXR1cm4gdD0rdCxyPStyLCJBVkciPT1lfHwiU1VNIj09ZT9uPXQrcjoiUFJEIj09ZT9uPXQqcjoiTUlOIj09ZT9uPU1hdGgubWluKHQscik6Ik1BWCI9PWUmJihuPU1hdGgubWF4KHQscikpLG59ZS5leHBvcnRzPXtBRlNpbXBsZTppLEFGU2ltcGxlX0NhbGN1bGF0ZTpmdW5jdGlvbihlLHQpe2Zvcih2YXIgcixhPTAsdT0iUFJEIj09ZT8xOjAsbD0ic3RyaW5nIj09dHlwZW9mKHQ9dCk/KChyPW5ldyBSZWdFeHApLmNvbXBpbGUoIixbIF0/IiksdC5zcGxpdChyKSk6dCxvPTA7bzxsLmxlbmd0aDtvKyspZm9yKHZhciBtPWRvYy5nZXRGaWVsZChsW29dKS5nZXRBcnJheSgpLGM9MDtjPG0ubGVuZ3RoO2MrKyl7dmFyIHY9bi5BRk1ha2VOdW1iZXIobVtjXS52YWx1ZSk7dT1pKGUsdT0wIT1vfHwwIT1jfHwiTUlOIiE9ZSYmIk1BWCIhPWU/dTp2LHYpO2ErK30iQVZHIj09ZSYmMDxhJiYodS89YSksIkFWRyIhPWUmJiJTVU0iIT1lJiYiUFJEIiE9ZXx8KHU9K3UudG9GaXhlZCg2KSksZXZlbnQudmFsdWU9dX19fSxmdW5jdGlvbihlLHQscil7QUZOdW1iZXJfRm9ybWF0PWZ1bmN0aW9uKGUsdCxuLGksYSx1KXtyZXR1cm4gcigxKS5BRk51bWJlcl9Gb3JtYXQoZSx0LG4saSxhLHUpfSxBRk51bWJlcl9LZXlzdHJva2U9ZnVuY3Rpb24oZSx0LG4saSxhLHUpe3JldHVybiByKDEpLkFGTnVtYmVyX0tleXN0cm9rZShlLHQsbixpLGEsdSl9LEFGTWFrZU51bWJlcj1mdW5jdGlvbihlKXtyZXR1cm4gcigxKS5BRk1ha2VOdW1iZXIoZSl9LEFGUGVyY2VudF9Gb3JtYXQ9ZnVuY3Rpb24oZSx0LG4pe3JldHVybiByKDEpLkFGUGVyY2VudF9Gb3JtYXQoZSx0LG4pfSxBRlBlcmNlbnRfS2V5c3Ryb2tlPWZ1bmN0aW9uKGUsdCxuKXtyZXR1cm4gcigxKS5BRlBlcmNlbnRfS2V5c3Ryb2tlKGUsdCxuKX0sQUZEYXRlX0Zvcm1hdD1mdW5jdGlvbihlKXtyZXR1cm4gcigwKS5BRkRhdGVfRm9ybWF0KGUpfSxBRkRhdGVfRm9ybWF0RXg9ZnVuY3Rpb24oZSl7cmV0dXJuIHIoMCkuQUZEYXRlX0Zvcm1hdEV4KGUpfSxBRkRhdGVfS2V5c3Ryb2tlPWZ1bmN0aW9uKGUpe3JldHVybiByKDApLkFGRGF0ZV9LZXlzdHJva2UoZSl9LEFGRGF0ZV9LZXlzdHJva2VFeD1mdW5jdGlvbihlKXtyZXR1cm4gcigwKS5BRkRhdGVfS2V5c3Ryb2tlRXgoZSl9LEFGVGltZV9Gb3JtYXQ9ZnVuY3Rpb24oZSl7cmV0dXJuIHIoMCkuQUZUaW1lX0Zvcm1hdChlKX0sQUZUaW1lX0Zvcm1hdEV4PWZ1bmN0aW9uKGUpe3JldHVybiByKDApLkFGVGltZV9Gb3JtYXRFeChlKX0sQUZUaW1lX0tleXN0cm9rZT1mdW5jdGlvbihlKXtyZXR1cm4gcigwKS5BRlRpbWVfS2V5c3Ryb2tlKGUpfSxBRlNwZWNpYWxfRm9ybWF0PWZ1bmN0aW9uKGUpe3JldHVybiByKDMpLkFGU3BlY2lhbF9Gb3JtYXQoZSl9LEFGU3BlY2lhbF9LZXlzdHJva2U9ZnVuY3Rpb24oZSl7cmV0dXJuIHIoMykuQUZTcGVjaWFsX0tleXN0cm9rZShlKX0sQUZTcGVjaWFsX0tleXN0cm9rZUV4PWZ1bmN0aW9uKGUpe3JldHVybiByKDMpLkFGU3BlY2lhbF9LZXlzdHJva2VFeChlKX0sQUZTaW1wbGU9ZnVuY3Rpb24oZSx0LG4pe3JldHVybiByKDQpLkFGU2ltcGxlKGUsdCxuKX0sQUZTaW1wbGVfQ2FsY3VsYXRlPWZ1bmN0aW9uKGUsdCl7cmV0dXJuIHIoNCkuQUZTaW1wbGVfQ2FsY3VsYXRlKGUsdCl9LEFGUmFuZ2VfVmFsaWRhdGU9ZnVuY3Rpb24oZSx0LG4saSl7cmV0dXJuIHIoNikuQUZSYW5nZV9WYWxpZGF0ZShlLHQsbixpKX19LGZ1bmN0aW9uKGUsdCl7ZS5leHBvcnRzPXtBRlJhbmdlX1ZhbGlkYXRlOmZ1bmN0aW9uKGUsdCxyLG4pe3ZhciBpOyIiIT1ldmVudC52YWx1ZSYmKGk9IiIsZSYmcj8oZXZlbnQudmFsdWU8dHx8ZXZlbnQudmFsdWU+bikmJihpPXV0aWwucHJpbnRmKFNjcmlwdFN0cmluZy5pbnZhbGlkX3ZhbHVlX2dyZWF0ZXJfdGhhbl9hbmRfbGVzc190aGFuX2Vycm9yX21lc3NhZ2UsdCxuKSk6ZT9ldmVudC52YWx1ZTx0JiYoaT11dGlsLnByaW50ZihTY3JpcHRTdHJpbmcuaW52YWxpZF92YWx1ZV9ncmVhdGVyX3RoYW5fb3JfZXF1YWxfdG9fZXJyb3JfbWVzc2FnZSx0KSk6ciYmZXZlbnQudmFsdWU+biYmKGk9dXRpbC5wcmludGYoU2NyaXB0U3RyaW5nLmludmFsaWRfdmFsdWVfbGVzc190aGFuX29yX2VxdWFsX3RvX2Vycm9yX21lc3NhZ2UsbikpLCIiIT1pJiYoZXZlbnQuc2lsZW5jZUVycm9yc3x8YXBwLmFsZXJ0KGksMCksZXZlbnQucmM9ITEpKX19fV0pOw=="),!0,!0,!1),Module.FS_createDataFile("/assets/NoteIcons","note_check_thin.pdf",decodeBase64("JVBERi0xLjYNJeLjz9MNCjcgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wgOTY5MS9PIDkvRSA0MjQ4L04gMS9UIDk0MDYvSCBbIDQ0NiAxMzZdPj4NZW5kb2JqDSAgICAgICAgICAgICAgICAgICAgICAgIA0xMyAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgNC9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPDNFQTZBMDQyOEM5MzQzMkJBRUI4QjNBRDhGMURGMDZEPjxEMzBBQkUxOTc4QTM0QkFEQTBCM0I4MEIzQkY0MUExRD5dL0luZGV4WzcgMTFdL0luZm8gNiAwIFIvTGVuZ3RoIDUxL1ByZXYgOTQwNy9Sb290IDggMCBSL1NpemUgMTgvVHlwZS9YUmVmL1dbMSAyIDFdPj5zdHJlYW0NCmjeYmJkEGBgYmAyAxIMNkCC0RREKIDEMoHELxMGJkaGaSBZBkYI8Z9xyz+AAAMAXQsF1w1lbmRzdHJlYW0NZW5kb2JqDXN0YXJ0eHJlZg0wDSUlRU9GDSAgICAgICAgIA0xNyAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvSSA2OS9MZW5ndGggNTgvUyAzOD4+c3RyZWFtDQpo3mJgYGBhYGD8xQAEfGIMqICRASTL0YAsxgLFDIwKDDyMAQwsMy1APGYGBuU9EC2MzAABBgCXpgPzDWVuZHN0cmVhbQ1lbmRvYmoNOCAwIG9iag08PC9NZXRhZGF0YSAxIDAgUi9QYWdlcyA1IDAgUi9UeXBlL0NhdGFsb2c+Pg1lbmRvYmoNOSAwIG9iag08PC9BcnRCb3hbMi4xNjgwOCA0LjAzNDQ1IDIxLjYxOTkgMjEuNTU0MV0vQmxlZWRCb3hbMC4wIDAuMCAyNC4wIDI0LjBdL0NvbnRlbnRzIDExIDAgUi9Dcm9wQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9NZWRpYUJveFswLjAgMC4wIDI0LjAgMjQuMF0vUGFyZW50IDUgMCBSL1Jlc291cmNlczw8L0NvbG9yU3BhY2U8PC9DUzAgMTQgMCBSPj4vRXh0R1N0YXRlPDwvR1MwIDE1IDAgUj4+L1Byb3BlcnRpZXM8PC9NQzAgMTYgMCBSPj4+Pi9Sb3RhdGUgMC9UcmltQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9UeXBlL1BhZ2U+Pg1lbmRvYmoNMTAgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0ZpcnN0IDE4L0xlbmd0aCAxOTQvTiAzL1R5cGUvT2JqU3RtPj5zdHJlYW0NCmjeNI5LC8IwEIT/yh714nZjWz1IoVaRgtVixYt4iLpCMH2Qxte/N7R6HGa+mSEfPKAAaAoUApEPR0yTZC5bvgIJZ+5OsxnGaQE3qVvGeYab2pRSYxIDjTzc5j9nm2dAWMRgzYOxyGR7d9GKcf9pGJdvuyqstIwX2XF103NR5PqTWtfmKDwhfBiLSTiFMAjGwQkXqizdk35heVVWnjX3C7nhp+LXX6jKumAn9spqHqzlhw3QEA+qVX8qir4CDADkxkqEDWVuZHN0cmVhbQ1lbmRvYmoNMTEgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCAyOTI+PnN0cmVhbQ0KSIkkkbtOAzEQRXt/xfzATuZhj+2WgGhIEVFQo1WgIZGSrfh77izah+bcefjaPrx9/l4edDgdhZ6ej1TuRchqvgu+x6V80K0cju9C60ayP7StkF4hfW/lTrqLSpPdxKmyywharyXla1mCp0/Io1f6KUtnjaDG4k4AM8Rea8YSCa3Tml1enYLb3LuCdTTgMFoaRmUqBwKiBqBrQ5uwBcxzC0eXMBY2rqgTSJoJNcRhA3Fkh/K0mRZ8NzUqqbLWTooWJYUrrIk6dM2RbKNnjZgnuViSWU9S3WsNEyAH3Bh8gHMzYOmNkhqyjTtcZm30pDS4FpwWlpk8Mdc5NP91Ntg11dxG1931QGbJ7TrEjjMDNP+/i7V8lXN5OeE6z+VPgAEACbFdtA1lbmRzdHJlYW0NZW5kb2JqDTEyIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGggMjU3NC9OIDM+PnN0cmVhbQ0KSImclnlUU3cWx39vyZ6QlbDDYw1bgLAGkDVsYZEdBFEISQgBEkJI2AVBRAUURUSEqpUy1m10Rk9FnS6uY60O1n3q0gP1MOroOLQW146dFzhHnU5nptPvH+/3Ofd37+/d3733nfMAoCelqrXVMAsAjdagz0qMxRYVFGKkCQADCiACEQAyea0uLTshB+CSxkuwWtwJ/IueXgeQab0iTMrAMPD/iS3X6Q0AQBk4ByiUtXKcO3GuqjfoTPYZnHmllSaGURPr8QRxtjSxap6953zmOdrECo1WgbMpZ51CozDxaZxX1xmVOCOpOHfVqZX1OF/F2aXKqFHj/NwUq1HKagFA6Sa7QSkvx9kPZ7o+J0uC8wIAyHTVO1z6DhuUDQbTpSTVuka9WlVuwNzlHpgoNFSMJSnrq5QGgzBDJq+U6RWYpFqjk2kbAZi/85w4ptpieJGDRaHBwUJ/H9E7hfqvm79Qpt7O05PMuZ5B/AtvbT/nVz0KgHgWr836t7bSLQCMrwTA8uZbm8v7ADDxvh2++M59+KZ5KTcYdGG+vvX19T5qpdzHVNA3+p8Ov0DvvM/HdNyb8mBxyjKZscqAmeomr66qNuqxWp1MrsSEPx3iXx3483l4ZynLlHqlFo/Iw6dMrVXh7dYq1AZ1tRZTa/9TE39l2E80P9e4uGOvAa/YB7Au8gDytwsA5dIAUrQN34He9C2Vkgcy8DXf4d783M8J+vdT4T7To1atmouTZOVgcqO+bn7P9FkCAqACJuABK2APnIE7EAJ/EALCQTSIB8kgHeSAArAUyEE50AA9qActoB10gR6wHmwCw2A7GAO7wX5wEIyDj8EJ8EdwHnwJroFbYBJMg4dgBjwFryAIIkEMiAtZQQ6QK+QF+UNiKBKKh1KhLKgAKoFUkBYyQi3QCqgH6oeGoR3Qbuj30FHoBHQOugR9BU1BD6DvoJcwAtNhHmwHu8G+sBiOgVPgHHgJrIJr4Ca4E14HD8Gj8D74MHwCPg9fgyfhh/AsAhAawkccESEiRiRIOlKIlCF6pBXpRgaRUWQ/cgw5i1xBJpFHyAuUiHJRDBWi4WgSmovK0Rq0Fe1Fh9Fd6GH0NHoFnUJn0NcEBsGW4EUII0gJiwgqQj2hizBI2En4iHCGcI0wTXhKJBL5RAExhJhELCBWEJuJvcStxAPE48RLxLvEWRKJZEXyIkWQ0kkykoHURdpC2kf6jHSZNE16TqaRHcj+5ARyIVlL7iAPkveQPyVfJt8jv6KwKK6UMEo6RUFppPRRxijHKBcp05RXVDZVQI2g5lArqO3UIep+6hnqbeoTGo3mRAulZdLUtOW0IdrvaJ/Tpmgv6By6J11CL6Ib6evoH9KP07+iP2EwGG6MaEYhw8BYx9jNOMX4mvHcjGvmYyY1U5i1mY2YHTa7bPaYSWG6MmOYS5lNzEHmIeZF5iMWheXGkrBkrFbWCOso6wZrls1li9jpbA27l72HfY59n0PiuHHiOQpOJ+cDzinOXS7CdeZKuHLuCu4Y9wx3mkfkCXhSXgWvh/db3gRvxpxjHmieZ95gPmL+ifkkH+G78aX8Kn4f/yD/Ov+lhZ1FjIXSYo3FfovLFs8sbSyjLZWW3ZYHLK9ZvrTCrOKtKq02WI1b3bFGrT2tM63rrbdZn7F+ZMOzCbeR23TbHLS5aQvbetpm2TbbfmB7wXbWzt4u0U5nt8XulN0je759tH2F/YD9p/YPHLgOkQ5qhwGHzxz+ipljMVgVNoSdxmYcbR2THI2OOxwnHF85CZxynTqcDjjdcaY6i53LnAecTzrPuDi4pLm0uOx1uelKcRW7lrtudj3r+sxN4Jbvtspt3O2+wFIgFTQJ9gpuuzPco9xr3Efdr3oQPcQelR5bPb70hD2DPMs9RzwvesFewV5qr61el7wJ3qHeWu9R7xtCujBGWCfcK5zy4fuk+nT4jPs89nXxLfTd4HvW97VfkF+V35jfLRFHlCzqEB0Tfefv6S/3H/G/GsAISAhoCzgS8G2gV6AycFvgn4O4QWlBq4JOBv0jOCRYH7w/+EGIS0hJyHshN8Q8cYa4V/x5KCE0NrQt9OPQF2HBYYawg2F/DxeGV4bvCb+/QLBAuWBswd0IpwhZxI6IyUgssiTy/cjJKMcoWdRo1DfRztGK6J3R92I8Yipi9sU8jvWL1cd+FPtMEiZZJjkeh8QlxnXHTcRz4nPjh+O/TnBKUCXsTZhJDEpsTjyeREhKSdqQdENqJ5VLd0tnkkOSlyWfTqGnZKcMp3yT6pmqTz2WBqclp21Mu73QdaF24Xg6SJemb0y/kyHIqMn4QyYxMyNzJPMvWaKslqyz2dzs4uw92U9zYnP6cm7luucac0/mMfOK8nbnPcuPy+/Pn1zku2jZovMF1gXqgiOFpMK8wp2Fs4vjF29aPF0UVNRVdH2JYEnDknNLrZdWLf2kmFksKz5UQijJL9lT8oMsXTYqmy2Vlr5XOiOXyDfLHyqiFQOKB8oIZb/yXllEWX/ZfVWEaqPqQXlU+WD5I7VEPaz+tiKpYnvFs8r0yg8rf6zKrzqgIWtKNEe1HG2l9nS1fXVD9SWdl65LN1kTVrOpZkafot9ZC9UuqT1i4OE/UxeM7saVxqm6yLqRuuf1efWHGtgN2oYLjZ6NaxrvNSU0/aYZbZY3n2xxbGlvmVoWs2xHK9Ra2nqyzbmts216eeLyXe3U9sr2P3X4dfR3fL8if8WxTrvO5Z13Vyau3Ntl1qXvurEqfNX21ehq9eqJNQFrtqx53a3o/qLHr2ew54deee8Xa0Vrh9b+uK5s3URfcN+29cT12vXXN0Rt2NXP7m/qv7sxbePhAWyge+D7TcWbzg0GDm7fTN1s3Dw5lPpPAKQBW/6YuJkkmZCZ/JpomtWbQpuvnByciZz3nWSd0p5Anq6fHZ+Ln/qgaaDYoUehtqImopajBqN2o+akVqTHpTilqaYapoum/adup+CoUqjEqTepqaocqo+rAqt1q+msXKzQrUStuK4trqGvFq+LsACwdbDqsWCx1rJLssKzOLOutCW0nLUTtYq2AbZ5tvC3aLfguFm40blKucK6O7q1uy67p7whvJu9Fb2Pvgq+hL7/v3q/9cBwwOzBZ8Hjwl/C28NYw9TEUcTOxUvFyMZGxsPHQce/yD3IvMk6ybnKOMq3yzbLtsw1zLXNNc21zjbOts83z7jQOdC60TzRvtI/0sHTRNPG1EnUy9VO1dHWVdbY11zX4Nhk2OjZbNnx2nba+9uA3AXcit0Q3ZbeHN6i3ynfr+A24L3hROHM4lPi2+Nj4+vkc+T85YTmDeaW5x/nqegy6LzpRunQ6lvq5etw6/vshu0R7ZzuKO6070DvzPBY8OXxcvH/8ozzGfOn9DT0wvVQ9d72bfb794r4Gfio+Tj5x/pX+uf7d/wH/Jj9Kf26/kv+3P9t//8CDAD3hPP7DWVuZHN0cmVhbQ1lbmRvYmoNMSAwIG9iag08PC9MZW5ndGggNDY4NS9TdWJ0eXBlL1hNTC9UeXBlL01ldGFkYXRhPj5zdHJlYW0NCjw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE1IDg0LjE1OTgxMCwgMjAxNi8wOS8xMC0wMjo0MTozMCAgICAgICAgIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIKICAgICAgICAgICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgICAgICAgICAgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6cGRmPSJodHRwOi8vbnMuYWRvYmUuY29tL3BkZi8xLjMvIj4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMTctMDktMThUMTY6MDM6MjArMDI6MDA8L3htcDpDcmVhdGVEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE4LTAxLTIyVDA5OjIxOjQ2WjwveG1wOk1ldGFkYXRhRGF0ZT4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTgtMDEtMjJUMDk6MjE6NDZaPC94bXA6TW9kaWZ5RGF0ZT4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBJbGx1c3RyYXRvciBDQyAyMDE3IChNYWNpbnRvc2gpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx4bXBNTTpJbnN0YW5jZUlEPnV1aWQ6MTMzNDZhMDYtMGM5Ny02NDQ2LWE0MWEtOGIxZDZlNGFjYjI4PC94bXBNTTpJbnN0YW5jZUlEPgogICAgICAgICA8eG1wTU06T3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6OTBmNzQzMjYtNDgxNS00ZDM2LWIzYTktN2U5NDMyZjM3ZTU3PC94bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpEb2N1bWVudElEPnhtcC5pZDo5ZmJkZTI2Ni1jZDRiLTQ2YmUtOGNmYS03ZmMxMjA4OGE0MDM8L3htcE1NOkRvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpSZW5kaXRpb25DbGFzcz5wcm9vZjpwZGY8L3htcE1NOlJlbmRpdGlvbkNsYXNzPgogICAgICAgICA8eG1wTU06SGlzdG9yeT4KICAgICAgICAgICAgPHJkZjpTZXE+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6YWN0aW9uPmNvbnZlcnRlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6cGFyYW1ldGVycz5mcm9tIGFwcGxpY2F0aW9uL3gtaW5kZXNpZ24gdG8gYXBwbGljYXRpb24vcGRmPC9zdEV2dDpwYXJhbWV0ZXJzPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBJbkRlc2lnbiBDQyAyMDE1IChNYWNpbnRvc2gpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICAgICA8c3RFdnQ6Y2hhbmdlZD4vPC9zdEV2dDpjaGFuZ2VkPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDE2LTAzLTA5VDA5OjQzOjE4KzAxOjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6U2VxPgogICAgICAgICA8L3htcE1NOkhpc3Rvcnk+CiAgICAgICAgIDx4bXBNTTpEZXJpdmVkRnJvbSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgIDxzdFJlZjppbnN0YW5jZUlEPnhtcC5paWQ6YWRhNzhhYjQtMTdlMC00YzMzLWI1ZDgtM2U4OGNjOTUxYjBhPC9zdFJlZjppbnN0YW5jZUlEPgogICAgICAgICAgICA8c3RSZWY6ZG9jdW1lbnRJRD54bXAuZGlkOjkwZjc0MzI2LTQ4MTUtNGQzNi1iM2E5LTdlOTQzMmYzN2U1Nzwvc3RSZWY6ZG9jdW1lbnRJRD4KICAgICAgICAgICAgPHN0UmVmOm9yaWdpbmFsRG9jdW1lbnRJRD54bXAuZGlkOjkwZjc0MzI2LTQ4MTUtNGQzNi1iM2E5LTdlOTQzMmYzN2U1Nzwvc3RSZWY6b3JpZ2luYWxEb2N1bWVudElEPgogICAgICAgICAgICA8c3RSZWY6cmVuZGl0aW9uQ2xhc3M+ZGVmYXVsdDwvc3RSZWY6cmVuZGl0aW9uQ2xhc3M+CiAgICAgICAgIDwveG1wTU06RGVyaXZlZEZyb20+CiAgICAgICAgIDxkYzpmb3JtYXQ+YXBwbGljYXRpb24vcGRmPC9kYzpmb3JtYXQ+CiAgICAgICAgIDxkYzp0aXRsZT4KICAgICAgICAgICAgPHJkZjpBbHQ+CiAgICAgICAgICAgICAgIDxyZGY6bGkgeG1sOmxhbmc9IngtZGVmYXVsdCI+bm90ZV9jaGVja190aGluPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOkFsdD4KICAgICAgICAgPC9kYzp0aXRsZT4KICAgICAgICAgPHBkZjpQcm9kdWNlcj5BZG9iZSBQREYgbGlicmFyeSAxNS4wMDwvcGRmOlByb2R1Y2VyPgogICAgICAgICA8cGRmOlRyYXBwZWQ+RmFsc2U8L3BkZjpUcmFwcGVkPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+DWVuZHN0cmVhbQ1lbmRvYmoNMiAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvRmlyc3QgNC9MZW5ndGggNDgvTiAxL1R5cGUvT2JqU3RtPj5zdHJlYW0NCmjeMlUwULCx0XfOL80rUTDU985MKY62BIoFxeqHVBak6gckpqcW29kBBBgA1ncLgA1lbmRzdHJlYW0NZW5kb2JqDTMgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0ZpcnN0IDQvTGVuZ3RoIDE2Ny9OIDEvVHlwZS9PYmpTdG0+PnN0cmVhbQ0KaN5EjEELgjAYQP/Kbm4E7dsq0xAhFKGD4KFTCDL1A0djkzkP/fuSiK6P915MgGQZLzyqoJ0tVUBaXiSIM6QiETEcJOxARgAR+1rO0+voeiQ3Y9Yl+I2QoiBbQ1paq0Hb4JapZYzXbvwfExBSQirFMX4w3ng3rgP+Zk1ZEaN7r/yLiNMegPG7DgapdQG7YcLh2YVJ2w/2ap5x5JUyC+b5W4ABADxJOtwNZW5kc3RyZWFtDWVuZG9iag00IDAgb2JqDTw8L0RlY29kZVBhcm1zPDwvQ29sdW1ucyAzL1ByZWRpY3RvciAxMj4+L0ZpbHRlci9GbGF0ZURlY29kZS9JRFs8M0VBNkEwNDI4QzkzNDMyQkFFQjhCM0FEOEYxREYwNkQ+PEQzMEFCRTE5NzhBMzRCQURBMEIzQjgwQjNCRjQxQTFEPl0vSW5mbyA2IDAgUi9MZW5ndGggMzcvUm9vdCA4IDAgUi9TaXplIDcvVHlwZS9YUmVmL1dbMSAyIDBdPj5zdHJlYW0NCmjeYmJgYGBiFJjBxCA8k4mBoZuJgZGZifGOM5DNCBBgACgdAxQNZW5kc3RyZWFtDWVuZG9iag1zdGFydHhyZWYNMTE2DSUlRU9GDQ=="),!0,!0,!1),Module.FS_createDataFile("/assets/NoteIcons","note_circle_thin.pdf",decodeBase64("JVBERi0xLjYNJeLjz9MNCjcgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wgOTU2NS9PIDkvRSA0MTIxL04gMS9UIDkyODAvSCBbIDQ0NiAxMzZdPj4NZW5kb2JqDSAgICAgICAgICAgICAgICAgICAgICAgIA0xMyAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgNC9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPEY5OTdFMThEMEY4RDRCMENCNkU5QjNGMjREMDczRDA3PjxBOEVBNzhDQjgxODY0MDVDQUREQzU2QzU1RkU4MzI1QT5dL0luZGV4WzcgMTFdL0luZm8gNiAwIFIvTGVuZ3RoIDUxL1ByZXYgOTI4MS9Sb290IDggMCBSL1NpemUgMTgvVHlwZS9YUmVmL1dbMSAyIDFdPj5zdHJlYW0NCmjeYmJkEGBgYmAyAxIMNkCCUR1EKICIH0Di92YGJkaGaSBZBkYI8Z9xyz+AAAMAdP8G1w1lbmRzdHJlYW0NZW5kb2JqDXN0YXJ0eHJlZg0wDSUlRU9GDSAgICAgICAgIA0xNyAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvSSA2OS9MZW5ndGggNTgvUyAzOD4+c3RyZWFtDQpo3mJgYGBhYGD8xQAEvNMZUAEjA0iWowFZjAWKGRh+MPAwfdBg4EwAcZgZGJTtIFoYmQECDADV+wUpDWVuZHN0cmVhbQ1lbmRvYmoNOCAwIG9iag08PC9NZXRhZGF0YSAxIDAgUi9QYWdlcyA1IDAgUi9UeXBlL0NhdGFsb2c+Pg1lbmRvYmoNOSAwIG9iag08PC9BcnRCb3hbMS4wIDEuMCAyMy4wIDIzLjBdL0JsZWVkQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9Db250ZW50cyAxMSAwIFIvQ3JvcEJveFswLjAgMC4wIDI0LjAgMjQuMF0vTWVkaWFCb3hbMC4wIDAuMCAyNC4wIDI0LjBdL1BhcmVudCA1IDAgUi9SZXNvdXJjZXM8PC9Db2xvclNwYWNlPDwvQ1MwIDE0IDAgUj4+L0V4dEdTdGF0ZTw8L0dTMCAxNSAwIFI+Pi9Qcm9wZXJ0aWVzPDwvTUMwIDE2IDAgUj4+Pj4vUm90YXRlIDAvVHJpbUJveFswLjAgMC4wIDI0LjAgMjQuMF0vVHlwZS9QYWdlPj4NZW5kb2JqDTEwIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCAxOC9MZW5ndGggMTk0L04gMy9UeXBlL09ialN0bT4+c3RyZWFtDQpo3jSOSwvCMBCE/8oe9eJ2Y1s9SKFWkYLVYsWLeIi6QjB9kMbXvze0ehxmvpkhHzygAGgKFAKRD0dMk2QuW74CCWfuTrMZxmkBN6lbxnmGm9qUUmMSA4083OY/Z5tnQFjEYM2Dschke3fRinH/aRiXb7sqrLSMF9lxddNzUeT6k1rX5ig8IXwYi0k4hTAIxsEJF6os3ZN+YXlVVp419wu54afi11+oyrpgJ/bKah6s5YcN0BAPqlV/Koq+AgwA5MZKhA1lbmRzdHJlYW0NZW5kb2JqDTExIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGggMTc5Pj5zdHJlYW0NCkiJTFC7DsIwDNz9FfcDbpP0pa4UxEKHioEZRYUJpLYTf4/t0gY5di7nO1tKfrl/xhl53zkcjh1oIodQ6mHJeaQb3pR3V4e4wFlgiUKdhXouNMEb6eEDQoH4In2+iOvM1ZVA9h5cZm1RrVAy0ooak/yUHIKqpUZKzJ9uN6eB2w6NSOqWzdJqvMLWRodWgRn1rqy7aZytVDMnipOONyvvw3ahWaX1oIFOvfzdQF8BBgD/AEBbDWVuZHN0cmVhbQ1lbmRvYmoNMTIgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCAyNTc0L04gMz4+c3RyZWFtDQpIiZyWeVRTdxbHf2/JnpCVsMNjDVuAsAaQNWxhkR0EUQhJCAESQkjYBUFEBRRFRISqlTLWbXRGT0WdLq5jrQ7WferSA/Uw6ug4tBbXjp0XOEedTmem0+8f7/c593fv793fvfed8wCgJ6WqtdUwCwCN1qDPSozFFhUUYqQJAAMKIAIRADJ5rS4tOyEH4JLGS7Ba3An8i55eB5BpvSJMysAw8P+JLdfpDQBAGTgHKJS1cpw7ca6qN+hM9hmceaWVJoZRE+vxBHG2NLFqnr3nfOY52sQKjVaBsylnnUKjMPFpnFfXGZU4I6k4d9WplfU4X8XZpcqoUeP83BSrUcpqAUDpJrtBKS/H2Q9nuj4nS4LzAgDIdNU7XPoOG5QNBtOlJNW6Rr1aVW7A3OUemCg0VIwlKeurlAaDMEMmr5TpFZikWqOTaRsBmL/znDim2mJ4kYNFocHBQn8f0TuF+q+bv1Cm3s7Tk8y5nkH8C29tP+dXPQqAeBavzfq3ttItAIyvBMDy5luby/sAMPG+Hb74zn34pnkpNxh0Yb6+9fX1Pmql3MdU0Df6nw6/QO+8z8d03JvyYHHKMpmxyoCZ6iavrqo26rFanUyuxIQ/HeJfHfjzeXhnKcuUeqUWj8jDp0ytVeHt1irUBnW1FlNr/1MTf2XYTzQ/17i4Y68Br9gHsC7yAPK3CwDl0gBStA3fgd70LZWSBzLwNd/h3vzczwn691PhPtOjVq2ai5Nk5WByo75ufs/0WQICoAIm4AErYA+cgTsQAn8QAsJBNIgHySAd5IACsBTIQTnQAD2oBy2gHXSBHrAebALDYDsYA7vBfnAQjIOPwQnwR3AefAmugVtgEkyDh2AGPAWvIAgiQQyIC1lBDpAr5AX5Q2IoEoqHUqEsqAAqgVSQFjJCLdAKqAfqh4ahHdBu6PfQUegEdA66BH0FTUEPoO+glzAC02EebAe7wb6wGI6BU+AceAmsgmvgJrgTXgcPwaPwPvgwfAI+D1+DJ+GH8CwCEBrCRxwRISJGJEg6UoiUIXqkFelGBpFRZD9yDDmLXEEmkUfIC5SIclEMFaLhaBKai8rRGrQV7UWH0V3oYfQ0egWdQmfQ1wQGwZbgRQgjSAmLCCpCPaGLMEjYSfiIcIZwjTBNeEokEvlEATGEmEQsIFYQm4m9xK3EA8TjxEvEu8RZEolkRfIiRZDSSTKSgdRF2kLaR/qMdJk0TXpOppEdyP7kBHIhWUvuIA+S95A/JV8m3yO/orAorpQwSjpFQWmk9FHGKMcoFynTlFdUNlVAjaDmUCuo7dQh6n7qGept6hMajeZEC6Vl0tS05bQh2u9on9OmaC/oHLonXUIvohvp6+gf0o/Tv6I/YTAYboxoRiHDwFjH2M04xfia8dyMa+ZjJjVTmLWZjZgdNrts9phJYboyY5hLmU3MQeYh5kXmIxaF5caSsGSsVtYI6yjrBmuWzWWL2OlsDbuXvYd9jn2fQ+K4ceI5Ck4n5wPOKc5dLsJ15kq4cu4K7hj3DHeaR+QJeFJeBa+H91veBG/GnGMeaJ5n3mA+Yv6J+SQf4bvxpfwqfh//IP86/6WFnUWMhdJijcV+i8sWzyxtLKMtlZbdlgcsr1m+tMKs4q0qrTZYjVvdsUatPa0zreutt1mfsX5kw7MJt5HbdNsctLlpC9t62mbZNtt+YHvBdtbO3i7RTme3xe6U3SN7vn20fYX9gP2n9g8cuA6RDmqHAYfPHP6KmWMxWBU2hJ3GZhxtHZMcjY47HCccXzkJnHKdOpwOON1xpjqLncucB5xPOs+4OLikubS47HW56UpxFbuWu252Pev6zE3glu+2ym3c7b7AUiAVNAn2Cm67M9yj3GvcR92vehA9xB6VHls9vvSEPYM8yz1HPC96wV7BXmqvrV6XvAneod5a71HvG0K6MEZYJ9wrnPLh+6T6dPiM+zz2dfEt9N3ge9b3tV+QX5XfmN8tEUeULOoQHRN95+/pL/cf8b8awAhICGgLOBLwbaBXoDJwW+Cfg7hBaUGrgk4G/SM4JFgfvD/4QYhLSEnIeyE3xDxxhrhX/HkoITQ2tC3049AXYcFhhrCDYX8PF4ZXhu8Jv79AsEC5YGzB3QinCFnEjojJSCyyJPL9yMkoxyhZ1GjUN9HO0YrondH3YjxiKmL2xTyO9YvVx34U+0wSJlkmOR6HxCXGdcdNxHPic+OH479OcEpQJexNmEkMSmxOPJ5ESEpJ2pB0Q2onlUt3S2eSQ5KXJZ9OoadkpwynfJPqmapPPZYGpyWnbUy7vdB1oXbheDpIl6ZvTL+TIcioyfhDJjEzI3Mk8y9ZoqyWrLPZ3Ozi7D3ZT3Nic/pybuW65xpzT+Yx84ryduc9y4/L78+fXOS7aNmi8wXWBeqCI4WkwrzCnYWzi+MXb1o8XRRU1FV0fYlgScOSc0utl1Yt/aSYWSwrPlRCKMkv2VPygyxdNiqbLZWWvlc6I5fIN8sfKqIVA4oHyghlv/JeWURZf9l9VYRqo+pBeVT5YPkjtUQ9rP62Iqlie8WzyvTKDyt/rMqvOqAha0o0R7UcbaX2dLV9dUP1JZ2Xrks3WRNWs6lmRp+i31kL1S6pPWLg4T9TF4zuxpXGqbrIupG65/V59Yca2A3ahguNno1rGu81JTT9phltljefbHFsaW+ZWhazbEcr1FraerLNua2zbXp54vJd7dT2yvY/dfh19Hd8vyJ/xbFOu87lnXdXJq7c22XWpe+6sSp81fbV6Gr16ok1AWu2rHndrej+osevZ7Dnh1557xdrRWuH1v64rmzdRF9w37b1xPXa9dc3RG3Y1c/ub+q/uzFt4+EBbKB74PtNxZvODQYObt9M3WzcPDmU+k8ApAFb/pi4mSSZkJn8mmia1ZtCm6+cHJyJnPedZJ3SnkCerp8dn4uf+qBpoNihR6G2oiailqMGo3aj5qRWpMelOKWpphqmi6b9p26n4KhSqMSpN6mpqhyqj6sCq3Wr6axcrNCtRK24ri2uoa8Wr4uwALB1sOqxYLHWskuywrM4s660JbSctRO1irYBtnm28Ldot+C4WbjRuUq5wro7urW7LrunvCG8m70VvY++Cr6Evv+/er/1wHDA7MFnwePCX8Lbw1jD1MRRxM7FS8XIxkbGw8dBx7/IPci8yTrJuco4yrfLNsu2zDXMtc01zbXONs62zzfPuNA50LrRPNG+0j/SwdNE08bUSdTL1U7V0dZV1tjXXNfg2GTY6Nls2fHadtr724DcBdyK3RDdlt4c3qLfKd+v4DbgveFE4cziU+Lb42Pj6+Rz5PzlhOYN5pbnH+ep6DLovOlG6dDqW+rl63Dr++yG7RHtnO4o7rTvQO/M8Fjw5fFy8f/yjPMZ86f0NPTC9VD13vZt9vv3ivgZ+Kj5OPnH+lf65/t3/Af8mP0p/br+S/7c/23//wIMAPeE8/sNZW5kc3RyZWFtDWVuZG9iag0xIDAgb2JqDTw8L0xlbmd0aCA0Njg2L1N1YnR5cGUvWE1ML1R5cGUvTWV0YWRhdGE+PnN0cmVhbQ0KPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMwMTUgODQuMTU5ODEwLCAyMDE2LzA5LzEwLTAyOjQxOjMwICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgICAgICAgICB4bWxuczpwZGY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGRmLzEuMy8iPgogICAgICAgICA8eG1wOkNyZWF0ZURhdGU+MjAxNy0wOS0xOFQxNjowMzoyMCswMjowMDwveG1wOkNyZWF0ZURhdGU+CiAgICAgICAgIDx4bXA6TWV0YWRhdGFEYXRlPjIwMTgtMDEtMjJUMDk6MjQ6NDRaPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxOC0wMS0yMlQwOToyNDo0NFo8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOkNyZWF0b3JUb29sPkFkb2JlIElsbHVzdHJhdG9yIENDIDIwMTcgKE1hY2ludG9zaCk8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhtcE1NOkluc3RhbmNlSUQ+dXVpZDo3Y2MzMWYxYy0wNjMxLTIzNGUtOTA4Ny00NDUzMWM5NTBmMDM8L3htcE1NOkluc3RhbmNlSUQ+CiAgICAgICAgIDx4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+eG1wLmRpZDo5MGY3NDMyNi00ODE1LTRkMzYtYjNhOS03ZTk0MzJmMzdlNTc8L3htcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+eG1wLmlkOjlmYmRlMjY2LWNkNGItNDZiZS04Y2ZhLTdmYzEyMDg4YTQwMzwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOlJlbmRpdGlvbkNsYXNzPnByb29mOnBkZjwveG1wTU06UmVuZGl0aW9uQ2xhc3M+CiAgICAgICAgIDx4bXBNTTpIaXN0b3J5PgogICAgICAgICAgICA8cmRmOlNlcT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+Y29udmVydGVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpwYXJhbWV0ZXJzPmZyb20gYXBwbGljYXRpb24veC1pbmRlc2lnbiB0byBhcHBsaWNhdGlvbi9wZGY8L3N0RXZ0OnBhcmFtZXRlcnM+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIEluRGVzaWduIENDIDIwMTUgKE1hY2ludG9zaCk8L3N0RXZ0OnNvZnR3YXJlQWdlbnQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpjaGFuZ2VkPi88L3N0RXZ0OmNoYW5nZWQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTYtMDMtMDlUMDk6NDM6MTgrMDE6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpTZXE+CiAgICAgICAgIDwveG1wTU06SGlzdG9yeT4KICAgICAgICAgPHhtcE1NOkRlcml2ZWRGcm9tIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgPHN0UmVmOmluc3RhbmNlSUQ+eG1wLmlpZDphZGE3OGFiNC0xN2UwLTRjMzMtYjVkOC0zZTg4Y2M5NTFiMGE8L3N0UmVmOmluc3RhbmNlSUQ+CiAgICAgICAgICAgIDxzdFJlZjpkb2N1bWVudElEPnhtcC5kaWQ6OTBmNzQzMjYtNDgxNS00ZDM2LWIzYTktN2U5NDMyZjM3ZTU3PC9zdFJlZjpkb2N1bWVudElEPgogICAgICAgICAgICA8c3RSZWY6b3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6OTBmNzQzMjYtNDgxNS00ZDM2LWIzYTktN2U5NDMyZjM3ZTU3PC9zdFJlZjpvcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgICAgIDxzdFJlZjpyZW5kaXRpb25DbGFzcz5kZWZhdWx0PC9zdFJlZjpyZW5kaXRpb25DbGFzcz4KICAgICAgICAgPC94bXBNTTpEZXJpdmVkRnJvbT4KICAgICAgICAgPGRjOmZvcm1hdD5hcHBsaWNhdGlvbi9wZGY8L2RjOmZvcm1hdD4KICAgICAgICAgPGRjOnRpdGxlPgogICAgICAgICAgICA8cmRmOkFsdD4KICAgICAgICAgICAgICAgPHJkZjpsaSB4bWw6bGFuZz0ieC1kZWZhdWx0Ij5ub3RlX2NpcmNsZV90aGluPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOkFsdD4KICAgICAgICAgPC9kYzp0aXRsZT4KICAgICAgICAgPHBkZjpQcm9kdWNlcj5BZG9iZSBQREYgbGlicmFyeSAxNS4wMDwvcGRmOlByb2R1Y2VyPgogICAgICAgICA8cGRmOlRyYXBwZWQ+RmFsc2U8L3BkZjpUcmFwcGVkPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+DWVuZHN0cmVhbQ1lbmRvYmoNMiAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvRmlyc3QgNC9MZW5ndGggNDgvTiAxL1R5cGUvT2JqU3RtPj5zdHJlYW0NCmjeMlUwULCx0XfOL80rUTDU985MKY62BIoFxeqHVBak6gckpqcW29kBBBgA1ncLgA1lbmRzdHJlYW0NZW5kb2JqDTMgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0ZpcnN0IDQvTGVuZ3RoIDE2Ny9OIDEvVHlwZS9PYmpTdG0+PnN0cmVhbQ0KaN5EjEELgjAYQP/Kbm4E7dsy0xAhFKGD4KFTCDL1AwdjkzkP/fuSiK6P915CgOQ5Lz2qoJ2tVEBaXSWIC2QiFQmcJBxARgAR+1rO09vkBiR3Y7Y1+J2QsiR7QzraqFHb4Na5Y4w3bvofUxBSQibjOH4y3no3bSP+Zm1VE6MHr/yLiPMRgPGHDgapdQH7UfvRYB9mbT/cq2XBidfKrFgUbwEGAHpAO1ENZW5kc3RyZWFtDWVuZG9iag00IDAgb2JqDTw8L0RlY29kZVBhcm1zPDwvQ29sdW1ucyAzL1ByZWRpY3RvciAxMj4+L0ZpbHRlci9GbGF0ZURlY29kZS9JRFs8Rjk5N0UxOEQwRjhENEIwQ0I2RTlCM0YyNEQwNzNEMDc+PEE4RUE3OENCODE4NjQwNUNBRERDNTZDNTVGRTgzMjVBPl0vSW5mbyA2IDAgUi9MZW5ndGggMzcvUm9vdCA4IDAgUi9TaXplIDcvVHlwZS9YUmVmL1dbMSAyIDBdPj5zdHJlYW0NCmjeYmJgYGBiFJBkYhCaxcTA2A3EzEyMdw4yMTAwAgQYACA1AxQNZW5kc3RyZWFtDWVuZG9iag1zdGFydHhyZWYNMTE2DSUlRU9GDQ=="),!0,!0,!1),Module.FS_createDataFile("/assets/NoteIcons","note_comment_thin.pdf",decodeBase64("JVBERi0xLjYNJeLjz9MNCjcgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wgOTY4MC9PIDkvRSA0MjMzL04gMS9UIDkzOTUvSCBbIDQ0NiAxMzZdPj4NZW5kb2JqDSAgICAgICAgICAgICAgICAgICAgICAgIA0xMyAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgNC9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPEVBRkFCOUYwNTlBNjRGQjI5RTEyM0QxQ0Y2MDgwMTBDPjxGQ0JBOThEMDM4RDQ0RTFFQTQ4QUMxQTdDOUM0MDgyOT5dL0luZGV4WzcgMTFdL0luZm8gNiAwIFIvTGVuZ3RoIDUxL1ByZXYgOTM5Ni9Sb290IDggMCBSL1NpemUgMTgvVHlwZS9YUmVmL1dbMSAyIDFdPj5zdHJlYW0NCmjeYmJkEGBgYmAyAxIMNkCCUQdEKIDEkoHEL2cGJkaGaSBZBkYI8Z9xyz+AAAMAXGYF1w1lbmRzdHJlYW0NZW5kb2JqDXN0YXJ0eHJlZg0wDSUlRU9GDSAgICAgICAgIA0xNyAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvSSA2OS9MZW5ndGggNTgvUyAzOD4+c3RyZWFtDQpo3mJgYGBhYGD8xQAEfOwMqICRASTL0YAsxgLFDIwKDDwMBxhYLC1APGYGBuX1EC2MrAABBgCVZAPoDWVuZHN0cmVhbQ1lbmRvYmoNOCAwIG9iag08PC9NZXRhZGF0YSAxIDAgUi9QYWdlcyA1IDAgUi9UeXBlL0NhdGFsb2c+Pg1lbmRvYmoNOSAwIG9iag08PC9BcnRCb3hbMC4wIDAuOTk5ODc4IDI0LjAgMjQuMF0vQmxlZWRCb3hbMC4wIDAuMCAyNC4wIDI0LjBdL0NvbnRlbnRzIDExIDAgUi9Dcm9wQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9NZWRpYUJveFswLjAgMC4wIDI0LjAgMjQuMF0vUGFyZW50IDUgMCBSL1Jlc291cmNlczw8L0NvbG9yU3BhY2U8PC9DUzAgMTQgMCBSPj4vRXh0R1N0YXRlPDwvR1MwIDE1IDAgUj4+L1Byb3BlcnRpZXM8PC9NQzAgMTYgMCBSPj4+Pi9Sb3RhdGUgMC9UcmltQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9UeXBlL1BhZ2U+Pg1lbmRvYmoNMTAgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0ZpcnN0IDE4L0xlbmd0aCAxOTQvTiAzL1R5cGUvT2JqU3RtPj5zdHJlYW0NCmjeNI5LC8IwEIT/yh714nZjWz1IoVaRgtVixYt4iLpCMH2Qxte/N7R6HGa+mSEfPKAAaAoUApEPR0yTZC5bvgIJZ+5OsxnGaQE3qVvGeYab2pRSYxIDjTzc5j9nm2dAWMRgzYOxyGR7d9GKcf9pGJdvuyqstIwX2XF103NR5PqTWtfmKDwhfBiLSTiFMAjGwQkXqizdk35heVVWnjX3C7nhp+LXX6jKumAn9spqHqzlhw3QEA+qVX8qir4CDADkxkqEDWVuZHN0cmVhbQ1lbmRvYmoNMTEgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCAyODY+PnN0cmVhbQ0KSIlUUrtuwzAM3PkV/AEzIiXZ0lq36NIMQYfOhZF2cQIkmfr3JSnlBdsyj7yjT5Q3H99/+zNutnPAl9cZ4QQBJdk96HPewxceYTN/BlwuGPzCy6Kpd039XuCE7ElGYUrFhMsBLHOAgQvVUcMVBgkUs4ZDow1MHG9AKAsucKuNrug1fgJUMlqzmkwuNIbRMSdxXMpknbhSleyZOipT8RSM0WLvFZ1YVJJ6oVAMTTRFwxNVLo61l5ETZa5GVE+hv5liS/ku1DyphR5n+9ICDfm6duD7d2kb6mL9RIcWSFSvYegiUSvh3kCJD73XO5rGCbuYbei2muf8MNPr1vkBPFeaxzuU2CYmyU31Ix3kaniFH9jB21Z/nR38CzAAcAdw0A1lbmRzdHJlYW0NZW5kb2JqDTEyIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGggMjU3NC9OIDM+PnN0cmVhbQ0KSImclnlUU3cWx39vyZ6QlbDDYw1bgLAGkDVsYZEdBFEISQgBEkJI2AVBRAUURUSEqpUy1m10Rk9FnS6uY60O1n3q0gP1MOroOLQW146dFzhHnU5nptPvH+/3Ofd37+/d3733nfMAoCelqrXVMAsAjdagz0qMxRYVFGKkCQADCiACEQAyea0uLTshB+CSxkuwWtwJ/IueXgeQab0iTMrAMPD/iS3X6Q0AQBk4ByiUtXKcO3GuqjfoTPYZnHmllSaGURPr8QRxtjSxap6953zmOdrECo1WgbMpZ51CozDxaZxX1xmVOCOpOHfVqZX1OF/F2aXKqFHj/NwUq1HKagFA6Sa7QSkvx9kPZ7o+J0uC8wIAyHTVO1z6DhuUDQbTpSTVuka9WlVuwNzlHpgoNFSMJSnrq5QGgzBDJq+U6RWYpFqjk2kbAZi/85w4ptpieJGDRaHBwUJ/H9E7hfqvm79Qpt7O05PMuZ5B/AtvbT/nVz0KgHgWr836t7bSLQCMrwTA8uZbm8v7ADDxvh2++M59+KZ5KTcYdGG+vvX19T5qpdzHVNA3+p8Ov0DvvM/HdNyb8mBxyjKZscqAmeomr66qNuqxWp1MrsSEPx3iXx3483l4ZynLlHqlFo/Iw6dMrVXh7dYq1AZ1tRZTa/9TE39l2E80P9e4uGOvAa/YB7Au8gDytwsA5dIAUrQN34He9C2Vkgcy8DXf4d783M8J+vdT4T7To1atmouTZOVgcqO+bn7P9FkCAqACJuABK2APnIE7EAJ/EALCQTSIB8kgHeSAArAUyEE50AA9qActoB10gR6wHmwCw2A7GAO7wX5wEIyDj8EJ8EdwHnwJroFbYBJMg4dgBjwFryAIIkEMiAtZQQ6QK+QF+UNiKBKKh1KhLKgAKoFUkBYyQi3QCqgH6oeGoR3Qbuj30FHoBHQOugR9BU1BD6DvoJcwAtNhHmwHu8G+sBiOgVPgHHgJrIJr4Ca4E14HD8Gj8D74MHwCPg9fgyfhh/AsAhAawkccESEiRiRIOlKIlCF6pBXpRgaRUWQ/cgw5i1xBJpFHyAuUiHJRDBWi4WgSmovK0Rq0Fe1Fh9Fd6GH0NHoFnUJn0NcEBsGW4EUII0gJiwgqQj2hizBI2En4iHCGcI0wTXhKJBL5RAExhJhELCBWEJuJvcStxAPE48RLxLvEWRKJZEXyIkWQ0kkykoHURdpC2kf6jHSZNE16TqaRHcj+5ARyIVlL7iAPkveQPyVfJt8jv6KwKK6UMEo6RUFppPRRxijHKBcp05RXVDZVQI2g5lArqO3UIep+6hnqbeoTGo3mRAulZdLUtOW0IdrvaJ/Tpmgv6By6J11CL6Ib6evoH9KP07+iP2EwGG6MaEYhw8BYx9jNOMX4mvHcjGvmYyY1U5i1mY2YHTa7bPaYSWG6MmOYS5lNzEHmIeZF5iMWheXGkrBkrFbWCOso6wZrls1li9jpbA27l72HfY59n0PiuHHiOQpOJ+cDzinOXS7CdeZKuHLuCu4Y9wx3mkfkCXhSXgWvh/db3gRvxpxjHmieZ95gPmL+ifkkH+G78aX8Kn4f/yD/Ov+lhZ1FjIXSYo3FfovLFs8sbSyjLZWW3ZYHLK9ZvrTCrOKtKq02WI1b3bFGrT2tM63rrbdZn7F+ZMOzCbeR23TbHLS5aQvbetpm2TbbfmB7wXbWzt4u0U5nt8XulN0je759tH2F/YD9p/YPHLgOkQ5qhwGHzxz+ipljMVgVNoSdxmYcbR2THI2OOxwnHF85CZxynTqcDjjdcaY6i53LnAecTzrPuDi4pLm0uOx1uelKcRW7lrtudj3r+sxN4Jbvtspt3O2+wFIgFTQJ9gpuuzPco9xr3Efdr3oQPcQelR5bPb70hD2DPMs9RzwvesFewV5qr61el7wJ3qHeWu9R7xtCujBGWCfcK5zy4fuk+nT4jPs89nXxLfTd4HvW97VfkF+V35jfLRFHlCzqEB0Tfefv6S/3H/G/GsAISAhoCzgS8G2gV6AycFvgn4O4QWlBq4JOBv0jOCRYH7w/+EGIS0hJyHshN8Q8cYa4V/x5KCE0NrQt9OPQF2HBYYawg2F/DxeGV4bvCb+/QLBAuWBswd0IpwhZxI6IyUgssiTy/cjJKMcoWdRo1DfRztGK6J3R92I8Yipi9sU8jvWL1cd+FPtMEiZZJjkeh8QlxnXHTcRz4nPjh+O/TnBKUCXsTZhJDEpsTjyeREhKSdqQdENqJ5VLd0tnkkOSlyWfTqGnZKcMp3yT6pmqTz2WBqclp21Mu73QdaF24Xg6SJemb0y/kyHIqMn4QyYxMyNzJPMvWaKslqyz2dzs4uw92U9zYnP6cm7luucac0/mMfOK8nbnPcuPy+/Pn1zku2jZovMF1gXqgiOFpMK8wp2Fs4vjF29aPF0UVNRVdH2JYEnDknNLrZdWLf2kmFksKz5UQijJL9lT8oMsXTYqmy2Vlr5XOiOXyDfLHyqiFQOKB8oIZb/yXllEWX/ZfVWEaqPqQXlU+WD5I7VEPaz+tiKpYnvFs8r0yg8rf6zKrzqgIWtKNEe1HG2l9nS1fXVD9SWdl65LN1kTVrOpZkafot9ZC9UuqT1i4OE/UxeM7saVxqm6yLqRuuf1efWHGtgN2oYLjZ6NaxrvNSU0/aYZbZY3n2xxbGlvmVoWs2xHK9Ra2nqyzbmts216eeLyXe3U9sr2P3X4dfR3fL8if8WxTrvO5Z13Vyau3Ntl1qXvurEqfNX21ehq9eqJNQFrtqx53a3o/qLHr2ew54deee8Xa0Vrh9b+uK5s3URfcN+29cT12vXXN0Rt2NXP7m/qv7sxbePhAWyge+D7TcWbzg0GDm7fTN1s3Dw5lPpPAKQBW/6YuJkkmZCZ/JpomtWbQpuvnByciZz3nWSd0p5Anq6fHZ+Ln/qgaaDYoUehtqImopajBqN2o+akVqTHpTilqaYapoum/adup+CoUqjEqTepqaocqo+rAqt1q+msXKzQrUStuK4trqGvFq+LsACwdbDqsWCx1rJLssKzOLOutCW0nLUTtYq2AbZ5tvC3aLfguFm40blKucK6O7q1uy67p7whvJu9Fb2Pvgq+hL7/v3q/9cBwwOzBZ8Hjwl/C28NYw9TEUcTOxUvFyMZGxsPHQce/yD3IvMk6ybnKOMq3yzbLtsw1zLXNNc21zjbOts83z7jQOdC60TzRvtI/0sHTRNPG1EnUy9VO1dHWVdbY11zX4Nhk2OjZbNnx2nba+9uA3AXcit0Q3ZbeHN6i3ynfr+A24L3hROHM4lPi2+Nj4+vkc+T85YTmDeaW5x/nqegy6LzpRunQ6lvq5etw6/vshu0R7ZzuKO6070DvzPBY8OXxcvH/8ozzGfOn9DT0wvVQ9d72bfb794r4Gfio+Tj5x/pX+uf7d/wH/Jj9Kf26/kv+3P9t//8CDAD3hPP7DWVuZHN0cmVhbQ1lbmRvYmoNMSAwIG9iag08PC9MZW5ndGggNDY4Ny9TdWJ0eXBlL1hNTC9UeXBlL01ldGFkYXRhPj5zdHJlYW0NCjw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE1IDg0LjE1OTgxMCwgMjAxNi8wOS8xMC0wMjo0MTozMCAgICAgICAgIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIKICAgICAgICAgICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgICAgICAgICAgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6cGRmPSJodHRwOi8vbnMuYWRvYmUuY29tL3BkZi8xLjMvIj4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMTctMDktMThUMTY6MDM6MTkrMDI6MDA8L3htcDpDcmVhdGVEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE4LTAxLTIyVDA5OjI1OjM3WjwveG1wOk1ldGFkYXRhRGF0ZT4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTgtMDEtMjJUMDk6MjU6MzdaPC94bXA6TW9kaWZ5RGF0ZT4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBJbGx1c3RyYXRvciBDQyAyMDE3IChNYWNpbnRvc2gpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx4bXBNTTpJbnN0YW5jZUlEPnV1aWQ6YWI5OGNmYTItZDhlMS1iYzRlLTg0MGMtMmY5ZjA3YWMxNDk0PC94bXBNTTpJbnN0YW5jZUlEPgogICAgICAgICA8eG1wTU06T3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6OTBmNzQzMjYtNDgxNS00ZDM2LWIzYTktN2U5NDMyZjM3ZTU3PC94bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpEb2N1bWVudElEPnhtcC5pZDo5ZmJkZTI2Ni1jZDRiLTQ2YmUtOGNmYS03ZmMxMjA4OGE0MDM8L3htcE1NOkRvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpSZW5kaXRpb25DbGFzcz5wcm9vZjpwZGY8L3htcE1NOlJlbmRpdGlvbkNsYXNzPgogICAgICAgICA8eG1wTU06SGlzdG9yeT4KICAgICAgICAgICAgPHJkZjpTZXE+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6YWN0aW9uPmNvbnZlcnRlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6cGFyYW1ldGVycz5mcm9tIGFwcGxpY2F0aW9uL3gtaW5kZXNpZ24gdG8gYXBwbGljYXRpb24vcGRmPC9zdEV2dDpwYXJhbWV0ZXJzPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBJbkRlc2lnbiBDQyAyMDE1IChNYWNpbnRvc2gpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICAgICA8c3RFdnQ6Y2hhbmdlZD4vPC9zdEV2dDpjaGFuZ2VkPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDE2LTAzLTA5VDA5OjQzOjE4KzAxOjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6U2VxPgogICAgICAgICA8L3htcE1NOkhpc3Rvcnk+CiAgICAgICAgIDx4bXBNTTpEZXJpdmVkRnJvbSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgIDxzdFJlZjppbnN0YW5jZUlEPnhtcC5paWQ6YWRhNzhhYjQtMTdlMC00YzMzLWI1ZDgtM2U4OGNjOTUxYjBhPC9zdFJlZjppbnN0YW5jZUlEPgogICAgICAgICAgICA8c3RSZWY6ZG9jdW1lbnRJRD54bXAuZGlkOjkwZjc0MzI2LTQ4MTUtNGQzNi1iM2E5LTdlOTQzMmYzN2U1Nzwvc3RSZWY6ZG9jdW1lbnRJRD4KICAgICAgICAgICAgPHN0UmVmOm9yaWdpbmFsRG9jdW1lbnRJRD54bXAuZGlkOjkwZjc0MzI2LTQ4MTUtNGQzNi1iM2E5LTdlOTQzMmYzN2U1Nzwvc3RSZWY6b3JpZ2luYWxEb2N1bWVudElEPgogICAgICAgICAgICA8c3RSZWY6cmVuZGl0aW9uQ2xhc3M+ZGVmYXVsdDwvc3RSZWY6cmVuZGl0aW9uQ2xhc3M+CiAgICAgICAgIDwveG1wTU06RGVyaXZlZEZyb20+CiAgICAgICAgIDxkYzpmb3JtYXQ+YXBwbGljYXRpb24vcGRmPC9kYzpmb3JtYXQ+CiAgICAgICAgIDxkYzp0aXRsZT4KICAgICAgICAgICAgPHJkZjpBbHQ+CiAgICAgICAgICAgICAgIDxyZGY6bGkgeG1sOmxhbmc9IngtZGVmYXVsdCI+bm90ZV9jb21tZW50X3RoaW48L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6QWx0PgogICAgICAgICA8L2RjOnRpdGxlPgogICAgICAgICA8cGRmOlByb2R1Y2VyPkFkb2JlIFBERiBsaWJyYXJ5IDE1LjAwPC9wZGY6UHJvZHVjZXI+CiAgICAgICAgIDxwZGY6VHJhcHBlZD5GYWxzZTwvcGRmOlRyYXBwZWQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4NZW5kc3RyZWFtDWVuZG9iag0yIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCA0L0xlbmd0aCA0OC9OIDEvVHlwZS9PYmpTdG0+PnN0cmVhbQ0KaN4yVTBQsLHRd84vzStRMNT3zkwpjrYEigXF6odUFqTqBySmpxbb2QEEGADWdwuADWVuZHN0cmVhbQ1lbmRvYmoNMyAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvRmlyc3QgNC9MZW5ndGggMTY5L04gMS9UeXBlL09ialN0bT4+c3RyZWFtDQpo3kSMsQqDMBRFfyWbhkLzElFrEaEoQgfBoVMRJOoDAzGRGIf+fSuldD333JMQIHnOSofSK2sq6TGsrgJ4Chm/8AQinp1ABAAB/VrWhbfJDkjuWu+bdwchZUmOD+nCRo7KeLvNHaWssdO/eAEuBGQijtInZa2z0z7iL9ZWNdFqcNK9CI/PAJQ9lNcYGuuxH+2yoPG9n5X5DE6uK06slnrDongLMAC/ZTvdDWVuZHN0cmVhbQ1lbmRvYmoNNCAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgMy9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPEVBRkFCOUYwNTlBNjRGQjI5RTEyM0QxQ0Y2MDgwMTBDPjxGQ0JBOThEMDM4RDQ0RTFFQTQ4QUMxQTdDOUM0MDgyOT5dL0luZm8gNiAwIFIvTGVuZ3RoIDM3L1Jvb3QgOCAwIFIvU2l6ZSA3L1R5cGUvWFJlZi9XWzEgMiAwXT4+c3RyZWFtDQpo3mJiYGBgYhToZGIQns3EwNDNxMDIysR4xw/IZgQIMAAnTQMUDWVuZHN0cmVhbQ1lbmRvYmoNc3RhcnR4cmVmDTExNg0lJUVPRg0="),!0,!0,!1),Module.FS_createDataFile("/assets/NoteIcons","note_cross_thin.pdf",decodeBase64("JVBERi0xLjYNJeLjz9MNCjcgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wgOTY2MS9PIDkvRSA0MjE5L04gMS9UIDkzNzYvSCBbIDQ0NSAxMzRdPj4NZW5kb2JqDSAgICAgICAgICAgICAgICAgICAgICAgIA0xMyAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgNC9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPDgxRTcwNDgyMjk2QzREMDI5RUUzNjQ2MUQ1NTRBMDA4PjxERTlBOTNBQkY3QTU0QUE5QUM2OEVDQkYwREU5MDVFQT5dL0luZGV4WzcgMTFdL0luZm8gNiAwIFIvTGVuZ3RoIDUxL1ByZXYgOTM3Ny9Sb290IDggMCBSL1NpemUgMTgvVHlwZS9YUmVmL1dbMSAyIDFdPj5zdHJlYW0NCmjeYmJkEGBgYmAyBhIMNkCC0QhEKIDEgoDEr0AGJkaGaSBZBkYI8Z9x8z+AAAMAXB4F1g1lbmRzdHJlYW0NZW5kb2JqDXN0YXJ0eHJlZg0wDSUlRU9GDSAgICAgICAgDTE3IDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9JIDY5L0xlbmd0aCA1Ni9TIDM4Pj5zdHJlYW0NCmjeYmBgYGFgYPzJAAS8fxhQASMDSJajAVmMBYoZGBUYeICYWdMCxGNmYFCeD9HCyAQQYADKNQQYDWVuZHN0cmVhbQ1lbmRvYmoNOCAwIG9iag08PC9NZXRhZGF0YSAxIDAgUi9QYWdlcyA1IDAgUi9UeXBlL0NhdGFsb2c+Pg1lbmRvYmoNOSAwIG9iag08PC9BcnRCb3hbMy41MDAwNiAzLjUwMDExIDIwLjQ5OTkgMjAuNV0vQmxlZWRCb3hbMC4wIDAuMCAyNC4wIDI0LjBdL0NvbnRlbnRzIDExIDAgUi9Dcm9wQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9NZWRpYUJveFswLjAgMC4wIDI0LjAgMjQuMF0vUGFyZW50IDUgMCBSL1Jlc291cmNlczw8L0NvbG9yU3BhY2U8PC9DUzAgMTQgMCBSPj4vRXh0R1N0YXRlPDwvR1MwIDE1IDAgUj4+L1Byb3BlcnRpZXM8PC9NQzAgMTYgMCBSPj4+Pi9Sb3RhdGUgMC9UcmltQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9UeXBlL1BhZ2U+Pg1lbmRvYmoNMTAgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0ZpcnN0IDE4L0xlbmd0aCAxOTQvTiAzL1R5cGUvT2JqU3RtPj5zdHJlYW0NCmjeNI5LC8IwEIT/yh714nZjWz1IoVaRgtVixYt4iLpCMH2Qxte/N7R6HGa+mSEfPKAAaAoUApEPR0yTZC5bvgIJZ+5OsxnGaQE3qVvGeYab2pRSYxIDjTzc5j9nm2dAWMRgzYOxyGR7d9GKcf9pGJdvuyqstIwX2XF103NR5PqTWtfmKDwhfBiLSTiFMAjGwQkXqizdk35heVVWnjX3C7nhp+LXX6jKumAn9spqHqzlhw3QEA+qVX8qir4CDADkxkqEDWVuZHN0cmVhbQ1lbmRvYmoNMTEgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCAyNjk+PnN0cmVhbQ0KSIlcUrtOxEAM7P0V/gFv9p1sewHRcMWJghpFBxQ5pLtU/D3e2LtwKImdcTzOeLTD89v3+YbDcbZ4eJgRrmDRx3oTP7czvOIXDPOLxWVDu1+4LVx64tLHBld0e9GhCya6yNnjcoFau0A2JRSUuMJoXEh4H2Ny+n00OWZcmOODx8mEFJmTjQ0joxQLJjN619+TT9q1ALn6b5S4Akm9zSChSGQw5dRAMTa73zHFjHlSJWuFJQcV2UHVrY0inHneTH7ijdc2gtrOSqPOU6Qj9962uaqhP7qrVOrC71Nton8OULNA/OmjxDrliqcdVLv7HNFNzQKVLXo7qEkbmwWf8A4neDzyETrBjwADAMeydQENZW5kc3RyZWFtDWVuZG9iag0xMiAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDI1NzQvTiAzPj5zdHJlYW0NCkiJnJZ5VFN3Fsd/b8mekJWww2MNW4CwBpA1bGGRHQRRCEkIARJCSNgFQUQFFEVEhKqVMtZtdEZPRZ0urmOtDtZ96tID9TDq6Di0FteOnRc4R51OZ6bT7x/v9zn3d+/v3d+9953zAKAnpaq11TALAI3WoM9KjMUWFRRipAkAAwogAhEAMnmtLi07IQfgksZLsFrcCfyLnl4HkGm9IkzKwDDw/4kt1+kNAEAZOAcolLVynDtxrqo36Ez2GZx5pZUmhlET6/EEcbY0sWqeved85jnaxAqNVoGzKWedQqMw8WmcV9cZlTgjqTh31amV9ThfxdmlyqhR4/zcFKtRymoBQOkmu0EpL8fZD2e6PidLgvMCAMh01Ttc+g4blA0G06Uk1bpGvVpVbsDc5R6YKDRUjCUp66uUBoMwQyavlOkVmKRao5NpGwGYv/OcOKbaYniRg0WhwcFCfx/RO4X6r5u/UKbeztOTzLmeQfwLb20/51c9CoB4Fq/N+re20i0AjK8EwPLmW5vL+wAw8b4dvvjOffimeSk3GHRhvr719fU+aqXcx1TQN/qfDr9A77zPx3Tcm/JgccoymbHKgJnqJq+uqjbqsVqdTK7EhD8d4l8d+PN5eGcpy5R6pRaPyMOnTK1V4e3WKtQGdbUWU2v/UxN/ZdhPND/XuLhjrwGv2AewLvIA8rcLAOXSAFK0Dd+B3vQtlZIHMvA13+He/NzPCfr3U+E+06NWrZqLk2TlYHKjvm5+z/RZAgKgAibgAStgD5yBOxACfxACwkE0iAfJIB3kgAKwFMhBOdAAPagHLaAddIEesB5sAsNgOxgDu8F+cBCMg4/BCfBHcB58Ca6BW2ASTIOHYAY8Ba8gCCJBDIgLWUEOkCvkBflDYigSiodSoSyoACqBVJAWMkIt0AqoB+qHhqEd0G7o99BR6AR0DroEfQVNQQ+g76CXMALTYR5sB7vBvrAYjoFT4Bx4CayCa+AmuBNeBw/Bo/A++DB8Aj4PX4Mn4YfwLAIQGsJHHBEhIkYkSDpSiJQheqQV6UYGkVFkP3IMOYtcQSaRR8gLlIhyUQwVouFoEpqLytEatBXtRYfRXehh9DR6BZ1CZ9DXBAbBluBFCCNICYsIKkI9oYswSNhJ+IhwhnCNME14SiQS+UQBMYSYRCwgVhCbib3ErcQDxOPES8S7xFkSiWRF8iJFkNJJMpKB1EXaQtpH+ox0mTRNek6mkR3I/uQEciFZS+4gD5L3kD8lXybfI7+isCiulDBKOkVBaaT0UcYoxygXKdOUV1Q2VUCNoOZQK6jt1CHqfuoZ6m3qExqN5kQLpWXS1LTltCHa72if06ZoL+gcuiddQi+iG+nr6B/Sj9O/oj9hMBhujGhGIcPAWMfYzTjF+Jrx3Ixr5mMmNVOYtZmNmB02u2z2mElhujJjmEuZTcxB5iHmReYjFoXlxpKwZKxW1gjrKOsGa5bNZYvY6WwNu5e9h32OfZ9D4rhx4jkKTifnA84pzl0uwnXmSrhy7gruGPcMd5pH5Al4Ul4Fr4f3W94Eb8acYx5onmfeYD5i/on5JB/hu/Gl/Cp+H/8g/zr/pYWdRYyF0mKNxX6LyxbPLG0soy2Vlt2WByyvWb60wqzirSqtNliNW92xRq09rTOt6623WZ+xfmTDswm3kdt02xy0uWkL23raZtk2235ge8F21s7eLtFOZ7fF7pTdI3u+fbR9hf2A/af2Dxy4DpEOaocBh88c/oqZYzFYFTaEncZmHG0dkxyNjjscJxxfOQmccp06nA443XGmOoudy5wHnE86z7g4uKS5tLjsdbnpSnEVu5a7bnY96/rMTeCW77bKbdztvsBSIBU0CfYKbrsz3KPca9xH3a96ED3EHpUeWz2+9IQ9gzzLPUc8L3rBXsFeaq+tXpe8Cd6h3lrvUe8bQrowRlgn3Cuc8uH7pPp0+Iz7PPZ18S303eB71ve1X5Bfld+Y3y0RR5Qs6hAdE33n7+kv9x/xvxrACEgIaAs4EvBtoFegMnBb4J+DuEFpQauCTgb9IzgkWB+8P/hBiEtISch7ITfEPHGGuFf8eSghNDa0LfTj0BdhwWGGsINhfw8XhleG7wm/v0CwQLlgbMHdCKcIWcSOiMlILLIk8v3IySjHKFnUaNQ30c7Riuid0fdiPGIqYvbFPI71i9XHfhT7TBImWSY5HofEJcZ1x03Ec+Jz44fjv05wSlAl7E2YSQxKbE48nkRISknakHRDaieVS3dLZ5JDkpcln06hp2SnDKd8k+qZqk89lganJadtTLu90HWhduF4OkiXpm9Mv5MhyKjJ+EMmMTMjcyTzL1mirJass9nc7OLsPdlPc2Jz+nJu5brnGnNP5jHzivJ25z3Lj8vvz59c5Lto2aLzBdYF6oIjhaTCvMKdhbOL4xdvWjxdFFTUVXR9iWBJw5JzS62XVi39pJhZLCs+VEIoyS/ZU/KDLF02KpstlZa+Vzojl8g3yx8qohUDigfKCGW/8l5ZRFl/2X1VhGqj6kF5VPlg+SO1RD2s/rYiqWJ7xbPK9MoPK3+syq86oCFrSjRHtRxtpfZ0tX11Q/UlnZeuSzdZE1azqWZGn6LfWQvVLqk9YuDhP1MXjO7Glcapusi6kbrn9Xn1hxrYDdqGC42ejWsa7zUlNP2mGW2WN59scWxpb5laFrNsRyvUWtp6ss25rbNtenni8l3t1PbK9j91+HX0d3y/In/FsU67zuWdd1cmrtzbZdal77qxKnzV9tXoavXqiTUBa7ased2t6P6ix69nsOeHXnnvF2tFa4fW/riubN1EX3DftvXE9dr11zdEbdjVz+5v6r+7MW3j4QFsoHvg+03Fm84NBg5u30zdbNw8OZT6TwCkAVv+mLiZJJmQmfyaaJrVm0Kbr5wcnImc951kndKeQJ6unx2fi5/6oGmg2KFHobaiJqKWowajdqPmpFakx6U4pammGqaLpv2nbqfgqFKoxKk3qamqHKqPqwKrdavprFys0K1ErbiuLa6hrxavi7AAsHWw6rFgsdayS7LCszizrrQltJy1E7WKtgG2ebbwt2i34LhZuNG5SrnCuju6tbsuu6e8IbybvRW9j74KvoS+/796v/XAcMDswWfB48JfwtvDWMPUxFHEzsVLxcjGRsbDx0HHv8g9yLzJOsm5yjjKt8s2y7bMNcy1zTXNtc42zrbPN8+40DnQutE80b7SP9LB00TTxtRJ1MvVTtXR1lXW2Ndc1+DYZNjo2WzZ8dp22vvbgNwF3IrdEN2W3hzeot8p36/gNuC94UThzOJT4tvjY+Pr5HPk/OWE5g3mlucf56noMui86Ubp0Opb6uXrcOv77IbtEe2c7ijutO9A78zwWPDl8XLx//KM8xnzp/Q09ML1UPXe9m32+/eK+Bn4qPk4+cf6V/rn+3f8B/yY/Sn9uv5L/tz/bf//AgwA94Tz+w1lbmRzdHJlYW0NZW5kb2JqDTEgMCBvYmoNPDwvTGVuZ3RoIDQ2ODUvU3VidHlwZS9YTUwvVHlwZS9NZXRhZGF0YT4+c3RyZWFtDQo8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzAxNSA4NC4xNTk4MTAsIDIwMTYvMDkvMTAtMDI6NDE6MzAgICAgICAgICI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgICAgICAgICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICAgICAgICAgIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiCiAgICAgICAgICAgIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnBkZj0iaHR0cDovL25zLmFkb2JlLmNvbS9wZGYvMS4zLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRlRGF0ZT4yMDE3LTA5LTE4VDE2OjAzOjIwKzAyOjAwPC94bXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhtcDpNZXRhZGF0YURhdGU+MjAxOC0wMS0yMlQwOToyOTowOFo8L3htcDpNZXRhZGF0YURhdGU+CiAgICAgICAgIDx4bXA6TW9kaWZ5RGF0ZT4yMDE4LTAxLTIyVDA5OjI5OjA4WjwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+QWRvYmUgSWxsdXN0cmF0b3IgQ0MgMjAxNyAoTWFjaW50b3NoKTwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8eG1wTU06SW5zdGFuY2VJRD51dWlkOjJiMjUzYzUxLTMxOTEtZTM0My1hMGEyLWY5YTczNzBjNDFiYTwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD54bXAuZGlkOjkwZjc0MzI2LTQ4MTUtNGQzNi1iM2E5LTdlOTQzMmYzN2U1NzwveG1wTU06T3JpZ2luYWxEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06RG9jdW1lbnRJRD54bXAuaWQ6OWZiZGUyNjYtY2Q0Yi00NmJlLThjZmEtN2ZjMTIwODhhNDAzPC94bXBNTTpEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06UmVuZGl0aW9uQ2xhc3M+cHJvb2Y6cGRmPC94bXBNTTpSZW5kaXRpb25DbGFzcz4KICAgICAgICAgPHhtcE1NOkhpc3Rvcnk+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5jb252ZXJ0ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnBhcmFtZXRlcnM+ZnJvbSBhcHBsaWNhdGlvbi94LWluZGVzaWduIHRvIGFwcGxpY2F0aW9uL3BkZjwvc3RFdnQ6cGFyYW1ldGVycz4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgSW5EZXNpZ24gQ0MgMjAxNSAoTWFjaW50b3NoKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxNi0wMy0wOVQwOTo0MzoxOCswMTowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8eG1wTU06RGVyaXZlZEZyb20gcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICA8c3RSZWY6aW5zdGFuY2VJRD54bXAuaWlkOmFkYTc4YWI0LTE3ZTAtNGMzMy1iNWQ4LTNlODhjYzk1MWIwYTwvc3RSZWY6aW5zdGFuY2VJRD4KICAgICAgICAgICAgPHN0UmVmOmRvY3VtZW50SUQ+eG1wLmRpZDo5MGY3NDMyNi00ODE1LTRkMzYtYjNhOS03ZTk0MzJmMzdlNTc8L3N0UmVmOmRvY3VtZW50SUQ+CiAgICAgICAgICAgIDxzdFJlZjpvcmlnaW5hbERvY3VtZW50SUQ+eG1wLmRpZDo5MGY3NDMyNi00ODE1LTRkMzYtYjNhOS03ZTk0MzJmMzdlNTc8L3N0UmVmOm9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgICAgPHN0UmVmOnJlbmRpdGlvbkNsYXNzPmRlZmF1bHQ8L3N0UmVmOnJlbmRpdGlvbkNsYXNzPgogICAgICAgICA8L3htcE1NOkRlcml2ZWRGcm9tPgogICAgICAgICA8ZGM6Zm9ybWF0PmFwcGxpY2F0aW9uL3BkZjwvZGM6Zm9ybWF0PgogICAgICAgICA8ZGM6dGl0bGU+CiAgICAgICAgICAgIDxyZGY6QWx0PgogICAgICAgICAgICAgICA8cmRmOmxpIHhtbDpsYW5nPSJ4LWRlZmF1bHQiPm5vdGVfY3Jvc3NfdGhpbjwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpBbHQ+CiAgICAgICAgIDwvZGM6dGl0bGU+CiAgICAgICAgIDxwZGY6UHJvZHVjZXI+QWRvYmUgUERGIGxpYnJhcnkgMTUuMDA8L3BkZjpQcm9kdWNlcj4KICAgICAgICAgPHBkZjpUcmFwcGVkPkZhbHNlPC9wZGY6VHJhcHBlZD4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/Pg1lbmRzdHJlYW0NZW5kb2JqDTIgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0ZpcnN0IDQvTGVuZ3RoIDQ4L04gMS9UeXBlL09ialN0bT4+c3RyZWFtDQpo3jJVMFCwsdF3zi/NK1Ew1PfOTCmOtgSKBcXqh1QWpOoHJKanFtvZAQQYANZ3C4ANZW5kc3RyZWFtDWVuZG9iag0zIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCA0L0xlbmd0aCAxNjYvTiAxL1R5cGUvT2JqU3RtPj5zdHJlYW0NCmjeRIxBC4IwGED/ynfTEbRvi0xDhFCEDoKHTiHIdAMHY5NtHvr3JRFdH++9DBDKktZeiaidbURUaXPlyC5YsJxleOJ4QJ4gJuRrOZ/epJsU3I3ZQvQ7gbqGvYEh7cSsbXRhGQihnZP/Y46Mcyx4gfmT0N47uc3qN+ubFoyevPAvYOcjIqEPHY1KrYtqnL0LYYyLth/sxboqSVthgqqqtwADAEJTOw4NZW5kc3RyZWFtDWVuZG9iag00IDAgb2JqDTw8L0RlY29kZVBhcm1zPDwvQ29sdW1ucyAzL1ByZWRpY3RvciAxMj4+L0ZpbHRlci9GbGF0ZURlY29kZS9JRFs8ODFFNzA0ODIyOTZDNEQwMjlFRTM2NDYxRDU1NEEwMDg+PERFOUE5M0FCRjdBNTRBQTlBQzY4RUNCRjBERTkwNUVBPl0vSW5mbyA2IDAgUi9MZW5ndGggMzcvUm9vdCA4IDAgUi9TaXplIDcvVHlwZS9YUmVmL1dbMSAyIDBdPj5zdHJlYW0NCmjeYmJgYGBiFKhmYhCeycTA0M3EwMjExHgnEchmBAgwACZJAxQNZW5kc3RyZWFtDWVuZG9iag1zdGFydHhyZWYNMTE2DSUlRU9GDQ=="),!0,!0,!1),Module.FS_createDataFile("/assets/NoteIcons","note_help_thin.pdf",decodeBase64("JVBERi0xLjYNJeLjz9MNCjcgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wgOTc3Mi9PIDkvRSA0MzMyL04gMS9UIDk0ODcvSCBbIDQ0NiAxMzZdPj4NZW5kb2JqDSAgICAgICAgICAgICAgICAgICAgICAgIA0xMyAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgNC9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPEU5QTY3N0E2OEQ3MjRGOERBNjcyMEU1RjAwNDA3NjRCPjw5QjM1OEIxRUE3MjA0REVDQkEwMDg0RURGMTgwODA1Nj5dL0luZGV4WzcgMTFdL0luZm8gNiAwIFIvTGVuZ3RoIDUxL1ByZXYgOTQ4OC9Sb290IDggMCBSL1NpemUgMTgvVHlwZS9YUmVmL1dbMSAyIDFdPj5zdHJlYW0NCmjeYmJkEGBgYmAyAxIMNkCCUR1EKIDETgOJXw8YmBgZpoFkGRghxH/GLf8AAgwAdCMG1w1lbmRzdHJlYW0NZW5kb2JqDXN0YXJ0eHJlZg0wDSUlRU9GDSAgICAgICAgIA0xNyAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvSSA2OS9MZW5ndGggNTgvUyAzOD4+c3RyZWFtDQpo3mJgYGBhYGD8xQAEfFkMqICRASTL0YAsxgLFDIwKDDwMBQxcOy1APGYGBhV+iBZGRoAAAwCuugPeDWVuZHN0cmVhbQ1lbmRvYmoNOCAwIG9iag08PC9NZXRhZGF0YSAxIDAgUi9QYWdlcyA1IDAgUi9UeXBlL0NhdGFsb2c+Pg1lbmRvYmoNOSAwIG9iag08PC9BcnRCb3hbMC4wIDAuMCAyNC4wIDI0LjBdL0JsZWVkQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9Db250ZW50cyAxMSAwIFIvQ3JvcEJveFswLjAgMC4wIDI0LjAgMjQuMF0vTWVkaWFCb3hbMC4wIDAuMCAyNC4wIDI0LjBdL1BhcmVudCA1IDAgUi9SZXNvdXJjZXM8PC9Db2xvclNwYWNlPDwvQ1MwIDE0IDAgUj4+L0V4dEdTdGF0ZTw8L0dTMCAxNSAwIFI+Pi9Qcm9wZXJ0aWVzPDwvTUMwIDE2IDAgUj4+Pj4vUm90YXRlIDAvVHJpbUJveFswLjAgMC4wIDI0LjAgMjQuMF0vVHlwZS9QYWdlPj4NZW5kb2JqDTEwIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCAxOC9MZW5ndGggMTk0L04gMy9UeXBlL09ialN0bT4+c3RyZWFtDQpo3jSOSwvCMBCE/8oe9eJ2Y1s9SKFWkYLVYsWLeIi6QjB9kMbXvze0ehxmvpkhHzygAGgKFAKRD0dMk2QuW74CCWfuTrMZxmkBN6lbxnmGm9qUUmMSA4083OY/Z5tnQFjEYM2Dschke3fRinH/aRiXb7sqrLSMF9lxddNzUeT6k1rX5ig8IXwYi0k4hTAIxsEJF6os3ZN+YXlVVp419wu54afi11+oyrpgJ/bKah6s5YcN0BAPqlV/Koq+AgwA5MZKhA1lbmRzdHJlYW0NZW5kb2JqDTExIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGggMzkwPj5zdHJlYW0NCkiJXJO7bt0wDIZ3PQVfwDwidfXak6JLMgQZOhdG2qUJkJypb5+fujkpbEP6JF5+UvLl/te/53e6PFw9fbu7kntznjTau+F7f3Y/6dVdrk+ejhv59tDtwNIPLP25uTeStigkSkrHizN6cVvipIrpJp4ix1LbDO/h2qTvDzM1J7W9xafNdFuBZmh7DtOrljBzlmLzDUqkU5v2lEqBQw007LamDYLd4mUync44K3ZLdrjf7vFL5Rx8ziSVq/rwqQnCMVqewD4itecQoS+y5mpUxaQFBiBEpL8OIxbht1u/OGuDIs237AMgjRMSdlIuIVuE5HVC4KIFdgMTe0VdnKEOULqYnMsk6xBL0rV72mqLLZY8ca672Sr7hN2dRUy01fUF1XYLKwQ1FitnsqK4hZFr7HmQYEDgVE3SQDTR40byXmQd+n8HAO1SlQojyNl9NFhru4I41mIVp1QXYZDYC288aupOoCzthtiIS/Zp1ezztB8wgw3smWb+U/L3B/xij+5DgAEARMGnGQ1lbmRzdHJlYW0NZW5kb2JqDTEyIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGggMjU3NC9OIDM+PnN0cmVhbQ0KSImclnlUU3cWx39vyZ6QlbDDYw1bgLAGkDVsYZEdBFEISQgBEkJI2AVBRAUURUSEqpUy1m10Rk9FnS6uY60O1n3q0gP1MOroOLQW146dFzhHnU5nptPvH+/3Ofd37+/d3733nfMAoCelqrXVMAsAjdagz0qMxRYVFGKkCQADCiACEQAyea0uLTshB+CSxkuwWtwJ/IueXgeQab0iTMrAMPD/iS3X6Q0AQBk4ByiUtXKcO3GuqjfoTPYZnHmllSaGURPr8QRxtjSxap6953zmOdrECo1WgbMpZ51CozDxaZxX1xmVOCOpOHfVqZX1OF/F2aXKqFHj/NwUq1HKagFA6Sa7QSkvx9kPZ7o+J0uC8wIAyHTVO1z6DhuUDQbTpSTVuka9WlVuwNzlHpgoNFSMJSnrq5QGgzBDJq+U6RWYpFqjk2kbAZi/85w4ptpieJGDRaHBwUJ/H9E7hfqvm79Qpt7O05PMuZ5B/AtvbT/nVz0KgHgWr836t7bSLQCMrwTA8uZbm8v7ADDxvh2++M59+KZ5KTcYdGG+vvX19T5qpdzHVNA3+p8Ov0DvvM/HdNyb8mBxyjKZscqAmeomr66qNuqxWp1MrsSEPx3iXx3483l4ZynLlHqlFo/Iw6dMrVXh7dYq1AZ1tRZTa/9TE39l2E80P9e4uGOvAa/YB7Au8gDytwsA5dIAUrQN34He9C2Vkgcy8DXf4d783M8J+vdT4T7To1atmouTZOVgcqO+bn7P9FkCAqACJuABK2APnIE7EAJ/EALCQTSIB8kgHeSAArAUyEE50AA9qActoB10gR6wHmwCw2A7GAO7wX5wEIyDj8EJ8EdwHnwJroFbYBJMg4dgBjwFryAIIkEMiAtZQQ6QK+QF+UNiKBKKh1KhLKgAKoFUkBYyQi3QCqgH6oeGoR3Qbuj30FHoBHQOugR9BU1BD6DvoJcwAtNhHmwHu8G+sBiOgVPgHHgJrIJr4Ca4E14HD8Gj8D74MHwCPg9fgyfhh/AsAhAawkccESEiRiRIOlKIlCF6pBXpRgaRUWQ/cgw5i1xBJpFHyAuUiHJRDBWi4WgSmovK0Rq0Fe1Fh9Fd6GH0NHoFnUJn0NcEBsGW4EUII0gJiwgqQj2hizBI2En4iHCGcI0wTXhKJBL5RAExhJhELCBWEJuJvcStxAPE48RLxLvEWRKJZEXyIkWQ0kkykoHURdpC2kf6jHSZNE16TqaRHcj+5ARyIVlL7iAPkveQPyVfJt8jv6KwKK6UMEo6RUFppPRRxijHKBcp05RXVDZVQI2g5lArqO3UIep+6hnqbeoTGo3mRAulZdLUtOW0IdrvaJ/Tpmgv6By6J11CL6Ib6evoH9KP07+iP2EwGG6MaEYhw8BYx9jNOMX4mvHcjGvmYyY1U5i1mY2YHTa7bPaYSWG6MmOYS5lNzEHmIeZF5iMWheXGkrBkrFbWCOso6wZrls1li9jpbA27l72HfY59n0PiuHHiOQpOJ+cDzinOXS7CdeZKuHLuCu4Y9wx3mkfkCXhSXgWvh/db3gRvxpxjHmieZ95gPmL+ifkkH+G78aX8Kn4f/yD/Ov+lhZ1FjIXSYo3FfovLFs8sbSyjLZWW3ZYHLK9ZvrTCrOKtKq02WI1b3bFGrT2tM63rrbdZn7F+ZMOzCbeR23TbHLS5aQvbetpm2TbbfmB7wXbWzt4u0U5nt8XulN0je759tH2F/YD9p/YPHLgOkQ5qhwGHzxz+ipljMVgVNoSdxmYcbR2THI2OOxwnHF85CZxynTqcDjjdcaY6i53LnAecTzrPuDi4pLm0uOx1uelKcRW7lrtudj3r+sxN4Jbvtspt3O2+wFIgFTQJ9gpuuzPco9xr3Efdr3oQPcQelR5bPb70hD2DPMs9RzwvesFewV5qr61el7wJ3qHeWu9R7xtCujBGWCfcK5zy4fuk+nT4jPs89nXxLfTd4HvW97VfkF+V35jfLRFHlCzqEB0Tfefv6S/3H/G/GsAISAhoCzgS8G2gV6AycFvgn4O4QWlBq4JOBv0jOCRYH7w/+EGIS0hJyHshN8Q8cYa4V/x5KCE0NrQt9OPQF2HBYYawg2F/DxeGV4bvCb+/QLBAuWBswd0IpwhZxI6IyUgssiTy/cjJKMcoWdRo1DfRztGK6J3R92I8Yipi9sU8jvWL1cd+FPtMEiZZJjkeh8QlxnXHTcRz4nPjh+O/TnBKUCXsTZhJDEpsTjyeREhKSdqQdENqJ5VLd0tnkkOSlyWfTqGnZKcMp3yT6pmqTz2WBqclp21Mu73QdaF24Xg6SJemb0y/kyHIqMn4QyYxMyNzJPMvWaKslqyz2dzs4uw92U9zYnP6cm7luucac0/mMfOK8nbnPcuPy+/Pn1zku2jZovMF1gXqgiOFpMK8wp2Fs4vjF29aPF0UVNRVdH2JYEnDknNLrZdWLf2kmFksKz5UQijJL9lT8oMsXTYqmy2Vlr5XOiOXyDfLHyqiFQOKB8oIZb/yXllEWX/ZfVWEaqPqQXlU+WD5I7VEPaz+tiKpYnvFs8r0yg8rf6zKrzqgIWtKNEe1HG2l9nS1fXVD9SWdl65LN1kTVrOpZkafot9ZC9UuqT1i4OE/UxeM7saVxqm6yLqRuuf1efWHGtgN2oYLjZ6NaxrvNSU0/aYZbZY3n2xxbGlvmVoWs2xHK9Ra2nqyzbmts216eeLyXe3U9sr2P3X4dfR3fL8if8WxTrvO5Z13Vyau3Ntl1qXvurEqfNX21ehq9eqJNQFrtqx53a3o/qLHr2ew54deee8Xa0Vrh9b+uK5s3URfcN+29cT12vXXN0Rt2NXP7m/qv7sxbePhAWyge+D7TcWbzg0GDm7fTN1s3Dw5lPpPAKQBW/6YuJkkmZCZ/JpomtWbQpuvnByciZz3nWSd0p5Anq6fHZ+Ln/qgaaDYoUehtqImopajBqN2o+akVqTHpTilqaYapoum/adup+CoUqjEqTepqaocqo+rAqt1q+msXKzQrUStuK4trqGvFq+LsACwdbDqsWCx1rJLssKzOLOutCW0nLUTtYq2AbZ5tvC3aLfguFm40blKucK6O7q1uy67p7whvJu9Fb2Pvgq+hL7/v3q/9cBwwOzBZ8Hjwl/C28NYw9TEUcTOxUvFyMZGxsPHQce/yD3IvMk6ybnKOMq3yzbLtsw1zLXNNc21zjbOts83z7jQOdC60TzRvtI/0sHTRNPG1EnUy9VO1dHWVdbY11zX4Nhk2OjZbNnx2nba+9uA3AXcit0Q3ZbeHN6i3ynfr+A24L3hROHM4lPi2+Nj4+vkc+T85YTmDeaW5x/nqegy6LzpRunQ6lvq5etw6/vshu0R7ZzuKO6070DvzPBY8OXxcvH/8ozzGfOn9DT0wvVQ9d72bfb794r4Gfio+Tj5x/pX+uf7d/wH/Jj9Kf26/kv+3P9t//8CDAD3hPP7DWVuZHN0cmVhbQ1lbmRvYmoNMSAwIG9iag08PC9MZW5ndGggNDY4NC9TdWJ0eXBlL1hNTC9UeXBlL01ldGFkYXRhPj5zdHJlYW0NCjw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE1IDg0LjE1OTgxMCwgMjAxNi8wOS8xMC0wMjo0MTozMCAgICAgICAgIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIKICAgICAgICAgICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgICAgICAgICAgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6cGRmPSJodHRwOi8vbnMuYWRvYmUuY29tL3BkZi8xLjMvIj4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMTctMDktMThUMTY6MDM6MjErMDI6MDA8L3htcDpDcmVhdGVEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE4LTAxLTIyVDA5OjI5OjI4WjwveG1wOk1ldGFkYXRhRGF0ZT4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTgtMDEtMjJUMDk6Mjk6MjhaPC94bXA6TW9kaWZ5RGF0ZT4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBJbGx1c3RyYXRvciBDQyAyMDE3IChNYWNpbnRvc2gpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx4bXBNTTpJbnN0YW5jZUlEPnV1aWQ6ODkyNWNkYzktODFjZC1iNzQ1LWJlMmUtYmQyNTRkODhhZWU0PC94bXBNTTpJbnN0YW5jZUlEPgogICAgICAgICA8eG1wTU06T3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6OTBmNzQzMjYtNDgxNS00ZDM2LWIzYTktN2U5NDMyZjM3ZTU3PC94bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpEb2N1bWVudElEPnhtcC5pZDo5ZmJkZTI2Ni1jZDRiLTQ2YmUtOGNmYS03ZmMxMjA4OGE0MDM8L3htcE1NOkRvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpSZW5kaXRpb25DbGFzcz5wcm9vZjpwZGY8L3htcE1NOlJlbmRpdGlvbkNsYXNzPgogICAgICAgICA8eG1wTU06SGlzdG9yeT4KICAgICAgICAgICAgPHJkZjpTZXE+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6YWN0aW9uPmNvbnZlcnRlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6cGFyYW1ldGVycz5mcm9tIGFwcGxpY2F0aW9uL3gtaW5kZXNpZ24gdG8gYXBwbGljYXRpb24vcGRmPC9zdEV2dDpwYXJhbWV0ZXJzPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBJbkRlc2lnbiBDQyAyMDE1IChNYWNpbnRvc2gpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICAgICA8c3RFdnQ6Y2hhbmdlZD4vPC9zdEV2dDpjaGFuZ2VkPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDE2LTAzLTA5VDA5OjQzOjE4KzAxOjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6U2VxPgogICAgICAgICA8L3htcE1NOkhpc3Rvcnk+CiAgICAgICAgIDx4bXBNTTpEZXJpdmVkRnJvbSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgIDxzdFJlZjppbnN0YW5jZUlEPnhtcC5paWQ6YWRhNzhhYjQtMTdlMC00YzMzLWI1ZDgtM2U4OGNjOTUxYjBhPC9zdFJlZjppbnN0YW5jZUlEPgogICAgICAgICAgICA8c3RSZWY6ZG9jdW1lbnRJRD54bXAuZGlkOjkwZjc0MzI2LTQ4MTUtNGQzNi1iM2E5LTdlOTQzMmYzN2U1Nzwvc3RSZWY6ZG9jdW1lbnRJRD4KICAgICAgICAgICAgPHN0UmVmOm9yaWdpbmFsRG9jdW1lbnRJRD54bXAuZGlkOjkwZjc0MzI2LTQ4MTUtNGQzNi1iM2E5LTdlOTQzMmYzN2U1Nzwvc3RSZWY6b3JpZ2luYWxEb2N1bWVudElEPgogICAgICAgICAgICA8c3RSZWY6cmVuZGl0aW9uQ2xhc3M+ZGVmYXVsdDwvc3RSZWY6cmVuZGl0aW9uQ2xhc3M+CiAgICAgICAgIDwveG1wTU06RGVyaXZlZEZyb20+CiAgICAgICAgIDxkYzpmb3JtYXQ+YXBwbGljYXRpb24vcGRmPC9kYzpmb3JtYXQ+CiAgICAgICAgIDxkYzp0aXRsZT4KICAgICAgICAgICAgPHJkZjpBbHQ+CiAgICAgICAgICAgICAgIDxyZGY6bGkgeG1sOmxhbmc9IngtZGVmYXVsdCI+bm90ZV9oZWxwX3RoaW48L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6QWx0PgogICAgICAgICA8L2RjOnRpdGxlPgogICAgICAgICA8cGRmOlByb2R1Y2VyPkFkb2JlIFBERiBsaWJyYXJ5IDE1LjAwPC9wZGY6UHJvZHVjZXI+CiAgICAgICAgIDxwZGY6VHJhcHBlZD5GYWxzZTwvcGRmOlRyYXBwZWQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4NZW5kc3RyZWFtDWVuZG9iag0yIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCA0L0xlbmd0aCA0OC9OIDEvVHlwZS9PYmpTdG0+PnN0cmVhbQ0KaN4yVTBQsLHRd84vzStRMNT3zkwpjrYEigXF6odUFqTqBySmpxbb2QEEGADWdwuADWVuZHN0cmVhbQ1lbmRvYmoNMyAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvRmlyc3QgNC9MZW5ndGggMTY1L04gMS9UeXBlL09ialN0bT4+c3RyZWFtDQpo3kSMQQuCMBhA/8pubgTt2yLTECEUoYPgoVMIMt0HDsYmcx769yURXR/vvZQAKQpeBVTReFeriLS+ShAXyEUmUjhJcQCZACTsa/lAb9qPSO7WbmsMOyFVRfaG9LRVk3HRr3PPGG+9/h8zEFJCLnOZPRnvgtfbhL9ZVzfEmjGo8CLifARg/GGiRep8xGFGuwxxNu5Dg1oW1LxRdsWyfAswAAUYOpANZW5kc3RyZWFtDWVuZG9iag00IDAgb2JqDTw8L0RlY29kZVBhcm1zPDwvQ29sdW1ucyAzL1ByZWRpY3RvciAxMj4+L0ZpbHRlci9GbGF0ZURlY29kZS9JRFs8RTlBNjc3QTY4RDcyNEY4REE2NzIwRTVGMDA0MDc2NEI+PDlCMzU4QjFFQTcyMDRERUNCQTAwODRFREYxODA4MDU2Pl0vSW5mbyA2IDAgUi9MZW5ndGggMzcvUm9vdCA4IDAgUi9TaXplIDcvVHlwZS9YUmVmL1dbMSAyIDBdPj5zdHJlYW0NCmjeYmJgYGBiFHjDxCA8g4mBsRuIGZkYb39iYmBgBAgwADJRBBQNZW5kc3RyZWFtDWVuZG9iag1zdGFydHhyZWYNMTE2DSUlRU9GDQ=="),!0,!0,!1),Module.FS_createDataFile("/assets/NoteIcons","note_insert_thin.pdf",decodeBase64("JVBERi0xLjYNJeLjz9MNCjcgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wgOTcyOC9PIDkvRSA0Mjg1L04gMS9UIDk0NDMvSCBbIDQ0NiAxMzZdPj4NZW5kb2JqDSAgICAgICAgICAgICAgICAgICAgICAgIA0xMyAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgNC9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPEY2MzE2RUFFNDY1NjRGMzFCQ0ZCNUJERkUxRjAxOEFDPjw1MTFBNDFBNjcyQjk0RENCOUUzRDg2NTA1MEU1RkVBND5dL0luZGV4WzcgMTFdL0luZm8gNiAwIFIvTGVuZ3RoIDUxL1ByZXYgOTQ0NC9Sb290IDggMCBSL1NpemUgMTgvVHlwZS9YUmVmL1dbMSAyIDFdPj5zdHJlYW0NCmjeYmJkEGBgYmAyAxIMNkCCUQtEKIDEZgKJX/wMTIwM00CyDIwQ4j/jln8AAQYAXVYF1w1lbmRzdHJlYW0NZW5kb2JqDXN0YXJ0eHJlZg0wDSUlRU9GDSAgICAgICAgIA0xNyAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvSSA2OS9MZW5ndGggNTgvUyAzOD4+c3RyZWFtDQpo3mJgYGBhYGD8xQAEfNYMqICRASTL0YAsxgLFDIwKDDwMCxjYZ1qAeMwMDMqPIFoYmQACDACqaASPDWVuZHN0cmVhbQ1lbmRvYmoNOCAwIG9iag08PC9NZXRhZGF0YSAxIDAgUi9QYWdlcyA1IDAgUi9UeXBlL0NhdGFsb2c+Pg1lbmRvYmoNOSAwIG9iag08PC9BcnRCb3hbMS4wIDYuMCAyMy4wIDIyLjI0OTldL0JsZWVkQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9Db250ZW50cyAxMSAwIFIvQ3JvcEJveFswLjAgMC4wIDI0LjAgMjQuMF0vTWVkaWFCb3hbMC4wIDAuMCAyNC4wIDI0LjBdL1BhcmVudCA1IDAgUi9SZXNvdXJjZXM8PC9Db2xvclNwYWNlPDwvQ1MwIDE0IDAgUj4+L0V4dEdTdGF0ZTw8L0dTMCAxNSAwIFI+Pi9Qcm9wZXJ0aWVzPDwvTUMwIDE2IDAgUj4+Pj4vUm90YXRlIDAvVHJpbUJveFswLjAgMC4wIDI0LjAgMjQuMF0vVHlwZS9QYWdlPj4NZW5kb2JqDTEwIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCAxOC9MZW5ndGggMTk0L04gMy9UeXBlL09ialN0bT4+c3RyZWFtDQpo3jSOSwvCMBCE/8oe9eJ2Y1s9SKFWkYLVYsWLeIi6QjB9kMbXvze0ehxmvpkhHzygAGgKFAKRD0dMk2QuW74CCWfuTrMZxmkBN6lbxnmGm9qUUmMSA4083OY/Z5tnQFjEYM2Dschke3fRinH/aRiXb7sqrLSMF9lxddNzUeT6k1rX5ig8IXwYi0k4hTAIxsEJF6os3ZN+YXlVVp419wu54afi11+oyrpgJ/bKah6s5YcN0BAPqlV/Koq+AgwA5MZKhA1lbmRzdHJlYW0NZW5kb2JqDTExIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGggMzQwPj5zdHJlYW0NCkiJXFO7bsMwDNz5FfwB0XrLWesWXZoh6NC5MNJ2UAokmfr3JSXHlgw/yKN5PJGSh7fPv/MNh+Ok8el5QriCRuvlVvzczvCBvzBM7xrnO+py4X3m0CuHvu9wRVOCBo1Fq0l7h/MFJMTvAlU1GdQO/4DRFFAZWwIXiKufwZF1hxUbVAcadRAnVRFg13Cip4MkVpMhkHFcs5pAPpgNRB8fiTNEcsELtM4yL1LwpYx2CRfgKFmDS6KjYIPIko7cLaU4Mk2TTwFtTelAmzeD6qpkwY2E6tRVtzTmdivPgpu2dqYbB3OXKal1cNWv01T9lNW2AcJsNycXnNKWoYwpvo1p9cPCFOQKyisajQg9avilRtXwD83tExMdeRnKmktWjiXLxOT5fAk5urol7ZeeFpvynVqG3WKadTYNMGvrLUPT9G4e3bhm+IITvBz5jzrBvwADACmzpS4NZW5kc3RyZWFtDWVuZG9iag0xMiAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDI1NzQvTiAzPj5zdHJlYW0NCkiJnJZ5VFN3Fsd/b8mekJWww2MNW4CwBpA1bGGRHQRRCEkIARJCSNgFQUQFFEVEhKqVMtZtdEZPRZ0urmOtDtZ96tID9TDq6Di0FteOnRc4R51OZ6bT7x/v9zn3d+/v3d+9953zAKAnpaq11TALAI3WoM9KjMUWFRRipAkAAwogAhEAMnmtLi07IQfgksZLsFrcCfyLnl4HkGm9IkzKwDDw/4kt1+kNAEAZOAcolLVynDtxrqo36Ez2GZx5pZUmhlET6/EEcbY0sWqeved85jnaxAqNVoGzKWedQqMw8WmcV9cZlTgjqTh31amV9ThfxdmlyqhR4/zcFKtRymoBQOkmu0EpL8fZD2e6PidLgvMCAMh01Ttc+g4blA0G06Uk1bpGvVpVbsDc5R6YKDRUjCUp66uUBoMwQyavlOkVmKRao5NpGwGYv/OcOKbaYniRg0WhwcFCfx/RO4X6r5u/UKbeztOTzLmeQfwLb20/51c9CoB4Fq/N+re20i0AjK8EwPLmW5vL+wAw8b4dvvjOffimeSk3GHRhvr719fU+aqXcx1TQN/qfDr9A77zPx3Tcm/JgccoymbHKgJnqJq+uqjbqsVqdTK7EhD8d4l8d+PN5eGcpy5R6pRaPyMOnTK1V4e3WKtQGdbUWU2v/UxN/ZdhPND/XuLhjrwGv2AewLvIA8rcLAOXSAFK0Dd+B3vQtlZIHMvA13+He/NzPCfr3U+E+06NWrZqLk2TlYHKjvm5+z/RZAgKgAibgAStgD5yBOxACfxACwkE0iAfJIB3kgAKwFMhBOdAAPagHLaAddIEesB5sAsNgOxgDu8F+cBCMg4/BCfBHcB58Ca6BW2ASTIOHYAY8Ba8gCCJBDIgLWUEOkCvkBflDYigSiodSoSyoACqBVJAWMkIt0AqoB+qHhqEd0G7o99BR6AR0DroEfQVNQQ+g76CXMALTYR5sB7vBvrAYjoFT4Bx4CayCa+AmuBNeBw/Bo/A++DB8Aj4PX4Mn4YfwLAIQGsJHHBEhIkYkSDpSiJQheqQV6UYGkVFkP3IMOYtcQSaRR8gLlIhyUQwVouFoEpqLytEatBXtRYfRXehh9DR6BZ1CZ9DXBAbBluBFCCNICYsIKkI9oYswSNhJ+IhwhnCNME14SiQS+UQBMYSYRCwgVhCbib3ErcQDxOPES8S7xFkSiWRF8iJFkNJJMpKB1EXaQtpH+ox0mTRNek6mkR3I/uQEciFZS+4gD5L3kD8lXybfI7+isCiulDBKOkVBaaT0UcYoxygXKdOUV1Q2VUCNoOZQK6jt1CHqfuoZ6m3qExqN5kQLpWXS1LTltCHa72if06ZoL+gcuiddQi+iG+nr6B/Sj9O/oj9hMBhujGhGIcPAWMfYzTjF+Jrx3Ixr5mMmNVOYtZmNmB02u2z2mElhujJjmEuZTcxB5iHmReYjFoXlxpKwZKxW1gjrKOsGa5bNZYvY6WwNu5e9h32OfZ9D4rhx4jkKTifnA84pzl0uwnXmSrhy7gruGPcMd5pH5Al4Ul4Fr4f3W94Eb8acYx5onmfeYD5i/on5JB/hu/Gl/Cp+H/8g/zr/pYWdRYyF0mKNxX6LyxbPLG0soy2Vlt2WByyvWb60wqzirSqtNliNW92xRq09rTOt6623WZ+xfmTDswm3kdt02xy0uWkL23raZtk2235ge8F21s7eLtFOZ7fF7pTdI3u+fbR9hf2A/af2Dxy4DpEOaocBh88c/oqZYzFYFTaEncZmHG0dkxyNjjscJxxfOQmccp06nA443XGmOoudy5wHnE86z7g4uKS5tLjsdbnpSnEVu5a7bnY96/rMTeCW77bKbdztvsBSIBU0CfYKbrsz3KPca9xH3a96ED3EHpUeWz2+9IQ9gzzLPUc8L3rBXsFeaq+tXpe8Cd6h3lrvUe8bQrowRlgn3Cuc8uH7pPp0+Iz7PPZ18S303eB71ve1X5Bfld+Y3y0RR5Qs6hAdE33n7+kv9x/xvxrACEgIaAs4EvBtoFegMnBb4J+DuEFpQauCTgb9IzgkWB+8P/hBiEtISch7ITfEPHGGuFf8eSghNDa0LfTj0BdhwWGGsINhfw8XhleG7wm/v0CwQLlgbMHdCKcIWcSOiMlILLIk8v3IySjHKFnUaNQ30c7Riuid0fdiPGIqYvbFPI71i9XHfhT7TBImWSY5HofEJcZ1x03Ec+Jz44fjv05wSlAl7E2YSQxKbE48nkRISknakHRDaieVS3dLZ5JDkpcln06hp2SnDKd8k+qZqk89lganJadtTLu90HWhduF4OkiXpm9Mv5MhyKjJ+EMmMTMjcyTzL1mirJass9nc7OLsPdlPc2Jz+nJu5brnGnNP5jHzivJ25z3Lj8vvz59c5Lto2aLzBdYF6oIjhaTCvMKdhbOL4xdvWjxdFFTUVXR9iWBJw5JzS62XVi39pJhZLCs+VEIoyS/ZU/KDLF02KpstlZa+Vzojl8g3yx8qohUDigfKCGW/8l5ZRFl/2X1VhGqj6kF5VPlg+SO1RD2s/rYiqWJ7xbPK9MoPK3+syq86oCFrSjRHtRxtpfZ0tX11Q/UlnZeuSzdZE1azqWZGn6LfWQvVLqk9YuDhP1MXjO7Glcapusi6kbrn9Xn1hxrYDdqGC42ejWsa7zUlNP2mGW2WN59scWxpb5laFrNsRyvUWtp6ss25rbNtenni8l3t1PbK9j91+HX0d3y/In/FsU67zuWdd1cmrtzbZdal77qxKnzV9tXoavXqiTUBa7ased2t6P6ix69nsOeHXnnvF2tFa4fW/riubN1EX3DftvXE9dr11zdEbdjVz+5v6r+7MW3j4QFsoHvg+03Fm84NBg5u30zdbNw8OZT6TwCkAVv+mLiZJJmQmfyaaJrVm0Kbr5wcnImc951kndKeQJ6unx2fi5/6oGmg2KFHobaiJqKWowajdqPmpFakx6U4pammGqaLpv2nbqfgqFKoxKk3qamqHKqPqwKrdavprFys0K1ErbiuLa6hrxavi7AAsHWw6rFgsdayS7LCszizrrQltJy1E7WKtgG2ebbwt2i34LhZuNG5SrnCuju6tbsuu6e8IbybvRW9j74KvoS+/796v/XAcMDswWfB48JfwtvDWMPUxFHEzsVLxcjGRsbDx0HHv8g9yLzJOsm5yjjKt8s2y7bMNcy1zTXNtc42zrbPN8+40DnQutE80b7SP9LB00TTxtRJ1MvVTtXR1lXW2Ndc1+DYZNjo2WzZ8dp22vvbgNwF3IrdEN2W3hzeot8p36/gNuC94UThzOJT4tvjY+Pr5HPk/OWE5g3mlucf56noMui86Ubp0Opb6uXrcOv77IbtEe2c7ijutO9A78zwWPDl8XLx//KM8xnzp/Q09ML1UPXe9m32+/eK+Bn4qPk4+cf6V/rn+3f8B/yY/Sn9uv5L/tz/bf//AgwA94Tz+w1lbmRzdHJlYW0NZW5kb2JqDTEgMCBvYmoNPDwvTGVuZ3RoIDQ2ODYvU3VidHlwZS9YTUwvVHlwZS9NZXRhZGF0YT4+c3RyZWFtDQo8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzAxNSA4NC4xNTk4MTAsIDIwMTYvMDkvMTAtMDI6NDE6MzAgICAgICAgICI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgICAgICAgICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICAgICAgICAgIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiCiAgICAgICAgICAgIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnBkZj0iaHR0cDovL25zLmFkb2JlLmNvbS9wZGYvMS4zLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRlRGF0ZT4yMDE3LTA5LTE4VDE2OjAzOjIwKzAyOjAwPC94bXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhtcDpNZXRhZGF0YURhdGU+MjAxOC0wMS0yMlQwOToyOToyN1o8L3htcDpNZXRhZGF0YURhdGU+CiAgICAgICAgIDx4bXA6TW9kaWZ5RGF0ZT4yMDE4LTAxLTIyVDA5OjI5OjI3WjwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+QWRvYmUgSWxsdXN0cmF0b3IgQ0MgMjAxNyAoTWFjaW50b3NoKTwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8eG1wTU06SW5zdGFuY2VJRD51dWlkOjliNDkwZTc1LTQ4OTMtY2Y0Ny05ZWI2LTJjMTY3ZTExZjhkZDwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD54bXAuZGlkOjkwZjc0MzI2LTQ4MTUtNGQzNi1iM2E5LTdlOTQzMmYzN2U1NzwveG1wTU06T3JpZ2luYWxEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06RG9jdW1lbnRJRD54bXAuaWQ6OWZiZGUyNjYtY2Q0Yi00NmJlLThjZmEtN2ZjMTIwODhhNDAzPC94bXBNTTpEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06UmVuZGl0aW9uQ2xhc3M+cHJvb2Y6cGRmPC94bXBNTTpSZW5kaXRpb25DbGFzcz4KICAgICAgICAgPHhtcE1NOkhpc3Rvcnk+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5jb252ZXJ0ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnBhcmFtZXRlcnM+ZnJvbSBhcHBsaWNhdGlvbi94LWluZGVzaWduIHRvIGFwcGxpY2F0aW9uL3BkZjwvc3RFdnQ6cGFyYW1ldGVycz4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgSW5EZXNpZ24gQ0MgMjAxNSAoTWFjaW50b3NoKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxNi0wMy0wOVQwOTo0MzoxOCswMTowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8eG1wTU06RGVyaXZlZEZyb20gcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICA8c3RSZWY6aW5zdGFuY2VJRD54bXAuaWlkOmFkYTc4YWI0LTE3ZTAtNGMzMy1iNWQ4LTNlODhjYzk1MWIwYTwvc3RSZWY6aW5zdGFuY2VJRD4KICAgICAgICAgICAgPHN0UmVmOmRvY3VtZW50SUQ+eG1wLmRpZDo5MGY3NDMyNi00ODE1LTRkMzYtYjNhOS03ZTk0MzJmMzdlNTc8L3N0UmVmOmRvY3VtZW50SUQ+CiAgICAgICAgICAgIDxzdFJlZjpvcmlnaW5hbERvY3VtZW50SUQ+eG1wLmRpZDo5MGY3NDMyNi00ODE1LTRkMzYtYjNhOS03ZTk0MzJmMzdlNTc8L3N0UmVmOm9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgICAgPHN0UmVmOnJlbmRpdGlvbkNsYXNzPmRlZmF1bHQ8L3N0UmVmOnJlbmRpdGlvbkNsYXNzPgogICAgICAgICA8L3htcE1NOkRlcml2ZWRGcm9tPgogICAgICAgICA8ZGM6Zm9ybWF0PmFwcGxpY2F0aW9uL3BkZjwvZGM6Zm9ybWF0PgogICAgICAgICA8ZGM6dGl0bGU+CiAgICAgICAgICAgIDxyZGY6QWx0PgogICAgICAgICAgICAgICA8cmRmOmxpIHhtbDpsYW5nPSJ4LWRlZmF1bHQiPm5vdGVfaW5zZXJ0X3RoaW48L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6QWx0PgogICAgICAgICA8L2RjOnRpdGxlPgogICAgICAgICA8cGRmOlByb2R1Y2VyPkFkb2JlIFBERiBsaWJyYXJ5IDE1LjAwPC9wZGY6UHJvZHVjZXI+CiAgICAgICAgIDxwZGY6VHJhcHBlZD5GYWxzZTwvcGRmOlRyYXBwZWQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4NZW5kc3RyZWFtDWVuZG9iag0yIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCA0L0xlbmd0aCA0OC9OIDEvVHlwZS9PYmpTdG0+PnN0cmVhbQ0KaN4yVTBQsLHRd84vzStRMNT3zkwpjrYEigXF6odUFqTqBySmpxbb2QEEGADWdwuADWVuZHN0cmVhbQ1lbmRvYmoNMyAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvRmlyc3QgNC9MZW5ndGggMTY2L04gMS9UeXBlL09ialN0bT4+c3RyZWFtDQpo3kSMQQuCMBhA/8puOoL2bZFmiBCK0EHw0CkEme4DB2OTbR769yURXR/vvYwAKUtWe5RRO9vIiGlzFcBzKPiFZ3AScACRACT0azmf3pSbkNyN2UL0OyF1TfaGDGknZ22jC8tAKeuc+h8vwIWAQhQif1LWe6e2GX+zvmmJ0ZOX/kX4+QhA2UNHg6l1EUdtA/o4xkXbD/dyXVGxVpqAVfUWYAB/ejt6DWVuZHN0cmVhbQ1lbmRvYmoNNCAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgMy9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPEY2MzE2RUFFNDY1NjRGMzFCQ0ZCNUJERkUxRjAxOEFDPjw1MTFBNDFBNjcyQjk0RENCOUUzRDg2NTA1MEU1RkVBND5dL0luZm8gNiAwIFIvTGVuZ3RoIDM3L1Jvb3QgOCAwIFIvU2l6ZSA3L1R5cGUvWFJlZi9XWzEgMiAwXT4+c3RyZWFtDQpo3mJiYGBgYhTYy8QgPIuJgaGbiYGRiYnxjhyQzQgQYAAqdQMUDWVuZHN0cmVhbQ1lbmRvYmoNc3RhcnR4cmVmDTExNg0lJUVPRg0="),!0,!0,!1),Module.FS_createDataFile("/assets/NoteIcons","note_key_thin.pdf",decodeBase64("JVBERi0xLjYNJeLjz9MNCjcgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wgMTAxNDMvTyA5L0UgNDcwNC9OIDEvVCA5ODU4L0ggWyA0NDYgMTM2XT4+DWVuZG9iag0gICAgICAgICAgICAgICAgICAgICAgIA0xMyAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgNC9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPEQ3NkZCQzY0MTkxNzRBNTFCOTcwNDNFMEUxRDJERUNFPjw3OUQwRjJFQjhEODM0QzQxQkYyRUZFRkY1OEE4MzFBOT5dL0luZGV4WzcgMTFdL0luZm8gNiAwIFIvTGVuZ3RoIDUxL1ByZXYgOTg1OS9Sb290IDggMCBSL1NpemUgMTgvVHlwZS9YUmVmL1dbMSAyIDFdPj5zdHJlYW0NCmjeYmJkEGBgYmAyAxIMNkCC0RxEKAAJFn0g8SOHgYmRYRpIloERQvxn3PIPIMAAXBEF1w1lbmRzdHJlYW0NZW5kb2JqDXN0YXJ0eHJlZg0wDSUlRU9GDSAgICAgICAgIA0xNyAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvSSA2OS9MZW5ndGggNTgvUyAzOD4+c3RyZWFtDQpo3mJgYGBhYGD8xQAE/PcYUAEjA0iWowFZjAWKGRgVGHgYCxgUflqAeMwMDKpNEC2MjAABBgDaRwUeDWVuZHN0cmVhbQ1lbmRvYmoNOCAwIG9iag08PC9NZXRhZGF0YSAxIDAgUi9QYWdlcyA1IDAgUi9UeXBlL0NhdGFsb2c+Pg1lbmRvYmoNOSAwIG9iag08PC9BcnRCb3hbMC4xODkzOTIgMC4zMDg1MzMgMjMuNjA5MSAyMi42MTQ1XS9CbGVlZEJveFswLjAgMC4wIDI0LjAgMjQuMF0vQ29udGVudHMgMTEgMCBSL0Nyb3BCb3hbMC4wIDAuMCAyNC4wIDI0LjBdL01lZGlhQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9QYXJlbnQgNSAwIFIvUmVzb3VyY2VzPDwvQ29sb3JTcGFjZTw8L0NTMCAxNCAwIFI+Pi9FeHRHU3RhdGU8PC9HUzAgMTUgMCBSPj4vUHJvcGVydGllczw8L01DMCAxNiAwIFI+Pj4+L1JvdGF0ZSAwL1RyaW1Cb3hbMC4wIDAuMCAyNC4wIDI0LjBdL1R5cGUvUGFnZT4+DWVuZG9iag0xMCAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvRmlyc3QgMTgvTGVuZ3RoIDE5NC9OIDMvVHlwZS9PYmpTdG0+PnN0cmVhbQ0KaN40jksLwjAQhP/KHvXidmNbPUihVpGC1WLFi3iIukIwfZDG1783tHocZr6ZIR88oABoChQCkQ9HTJNkLlu+Agln7k6zGcZpATepW8Z5hpvalFJjEgONPNzmP2ebZ0BYxGDNg7HIZHt30Ypx/2kYl2+7Kqy0jBfZcXXTc1Hk+pNa1+YoPCF8GItJOIUwCMbBCReqLN2TfmF5VVaeNfcLueGn4tdfqMq6YCf2ymoerOWHDdAQD6pVfyqKvgIMAOTGSoQNZW5kc3RyZWFtDWVuZG9iag0xMSAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDc0Nj4+c3RyZWFtDQpIiUxVsXJUMQzs31f4B86xLMuWWgJDQ4oMBTVzAzSEmSQVf89K8jtukty9lf3k1WrlPHz5/vfHW3l4emzlw8fHcrwerfThvxf8vf04vpU/x8Pj11au76XFT3m/IvQZoV/vx2uhCFKhVQcxvrU2Yy3Xl8MXXo5Lq2MsPOJBp/kXLSkXqqTT0TAq1wNYR0THLBv02pvddna8zr5z52GEy84OwCJ+SD5cD4/rLV517Rc82fqfzA+i86QNksPeePLLFMk9c6cc1+Pn8XynQ2+1sfRCVEfvdqcD1UZRYSP2ExkEgGSRU9PzGQUOsKHb2qizxXvSlyOzQIPN90odGnsZh/12rBzrU7vjBToW9ao6VqfneCEpsFWZIS5b39jUj6HFjqnVznEsmusY/GV4YGlugHYqHuhz7UAzMAWzE7NTmFVo7oCiKQismYFRm5c4IVnmhB5ugwUytHfQ7AXsGfp7QFJGhRyZA+nb8sDmDT9CAc95FtrBikCbUgcbMHol3qteVa+zU8KB7gyIHCmtS5mVmzilSVLyE/LPkEvr5O4Vd7C2SpYtbboBNnq/7VxzD5xvtVsy182KQCYp+Qx622ToN8wDlugyHIXvgs64XD4r6Cj6cnfsRuGPdYNO3rfuFzNbfl6j0xPaLEiMot2/GGPIrByI0Dy4Zg+rVoXu4cZQ27JhApucAe7RQVrpArROyA+V7AcaZJ65IWC7gyozImu3mL3nwDZlu0B632zGaZSwO7gTbXOZRnFmZ0B6HDxlnH6ERAhQPwPUpvd5dtkeN79/NGYjA2Nq2I/WnoqZbrAN0+E2z2V2EgiwbD+N0J+yeBzl8s3aifdU+m2AkZGZUztj8i3LBGwxlEp7ebRY1ywJ3nR6aNYYeQl4JVjnFkONjX6lc5VEQxONnPTBgW4XEZ8XEazV7cRuuh43CSpPP17yy62rLa7HBql9+/DLlHk/pymvRyKJGcxX3JGz3Ls7L9RPT/hv9Hz8E2AAW+RDrQ1lbmRzdHJlYW0NZW5kb2JqDTEyIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGggMjU3NC9OIDM+PnN0cmVhbQ0KSImclnlUU3cWx39vyZ6QlbDDYw1bgLAGkDVsYZEdBFEISQgBEkJI2AVBRAUURUSEqpUy1m10Rk9FnS6uY60O1n3q0gP1MOroOLQW146dFzhHnU5nptPvH+/3Ofd37+/d3733nfMAoCelqrXVMAsAjdagz0qMxRYVFGKkCQADCiACEQAyea0uLTshB+CSxkuwWtwJ/IueXgeQab0iTMrAMPD/iS3X6Q0AQBk4ByiUtXKcO3GuqjfoTPYZnHmllSaGURPr8QRxtjSxap6953zmOdrECo1WgbMpZ51CozDxaZxX1xmVOCOpOHfVqZX1OF/F2aXKqFHj/NwUq1HKagFA6Sa7QSkvx9kPZ7o+J0uC8wIAyHTVO1z6DhuUDQbTpSTVuka9WlVuwNzlHpgoNFSMJSnrq5QGgzBDJq+U6RWYpFqjk2kbAZi/85w4ptpieJGDRaHBwUJ/H9E7hfqvm79Qpt7O05PMuZ5B/AtvbT/nVz0KgHgWr836t7bSLQCMrwTA8uZbm8v7ADDxvh2++M59+KZ5KTcYdGG+vvX19T5qpdzHVNA3+p8Ov0DvvM/HdNyb8mBxyjKZscqAmeomr66qNuqxWp1MrsSEPx3iXx3483l4ZynLlHqlFo/Iw6dMrVXh7dYq1AZ1tRZTa/9TE39l2E80P9e4uGOvAa/YB7Au8gDytwsA5dIAUrQN34He9C2Vkgcy8DXf4d783M8J+vdT4T7To1atmouTZOVgcqO+bn7P9FkCAqACJuABK2APnIE7EAJ/EALCQTSIB8kgHeSAArAUyEE50AA9qActoB10gR6wHmwCw2A7GAO7wX5wEIyDj8EJ8EdwHnwJroFbYBJMg4dgBjwFryAIIkEMiAtZQQ6QK+QF+UNiKBKKh1KhLKgAKoFUkBYyQi3QCqgH6oeGoR3Qbuj30FHoBHQOugR9BU1BD6DvoJcwAtNhHmwHu8G+sBiOgVPgHHgJrIJr4Ca4E14HD8Gj8D74MHwCPg9fgyfhh/AsAhAawkccESEiRiRIOlKIlCF6pBXpRgaRUWQ/cgw5i1xBJpFHyAuUiHJRDBWi4WgSmovK0Rq0Fe1Fh9Fd6GH0NHoFnUJn0NcEBsGW4EUII0gJiwgqQj2hizBI2En4iHCGcI0wTXhKJBL5RAExhJhELCBWEJuJvcStxAPE48RLxLvEWRKJZEXyIkWQ0kkykoHURdpC2kf6jHSZNE16TqaRHcj+5ARyIVlL7iAPkveQPyVfJt8jv6KwKK6UMEo6RUFppPRRxijHKBcp05RXVDZVQI2g5lArqO3UIep+6hnqbeoTGo3mRAulZdLUtOW0IdrvaJ/Tpmgv6By6J11CL6Ib6evoH9KP07+iP2EwGG6MaEYhw8BYx9jNOMX4mvHcjGvmYyY1U5i1mY2YHTa7bPaYSWG6MmOYS5lNzEHmIeZF5iMWheXGkrBkrFbWCOso6wZrls1li9jpbA27l72HfY59n0PiuHHiOQpOJ+cDzinOXS7CdeZKuHLuCu4Y9wx3mkfkCXhSXgWvh/db3gRvxpxjHmieZ95gPmL+ifkkH+G78aX8Kn4f/yD/Ov+lhZ1FjIXSYo3FfovLFs8sbSyjLZWW3ZYHLK9ZvrTCrOKtKq02WI1b3bFGrT2tM63rrbdZn7F+ZMOzCbeR23TbHLS5aQvbetpm2TbbfmB7wXbWzt4u0U5nt8XulN0je759tH2F/YD9p/YPHLgOkQ5qhwGHzxz+ipljMVgVNoSdxmYcbR2THI2OOxwnHF85CZxynTqcDjjdcaY6i53LnAecTzrPuDi4pLm0uOx1uelKcRW7lrtudj3r+sxN4Jbvtspt3O2+wFIgFTQJ9gpuuzPco9xr3Efdr3oQPcQelR5bPb70hD2DPMs9RzwvesFewV5qr61el7wJ3qHeWu9R7xtCujBGWCfcK5zy4fuk+nT4jPs89nXxLfTd4HvW97VfkF+V35jfLRFHlCzqEB0Tfefv6S/3H/G/GsAISAhoCzgS8G2gV6AycFvgn4O4QWlBq4JOBv0jOCRYH7w/+EGIS0hJyHshN8Q8cYa4V/x5KCE0NrQt9OPQF2HBYYawg2F/DxeGV4bvCb+/QLBAuWBswd0IpwhZxI6IyUgssiTy/cjJKMcoWdRo1DfRztGK6J3R92I8Yipi9sU8jvWL1cd+FPtMEiZZJjkeh8QlxnXHTcRz4nPjh+O/TnBKUCXsTZhJDEpsTjyeREhKSdqQdENqJ5VLd0tnkkOSlyWfTqGnZKcMp3yT6pmqTz2WBqclp21Mu73QdaF24Xg6SJemb0y/kyHIqMn4QyYxMyNzJPMvWaKslqyz2dzs4uw92U9zYnP6cm7luucac0/mMfOK8nbnPcuPy+/Pn1zku2jZovMF1gXqgiOFpMK8wp2Fs4vjF29aPF0UVNRVdH2JYEnDknNLrZdWLf2kmFksKz5UQijJL9lT8oMsXTYqmy2Vlr5XOiOXyDfLHyqiFQOKB8oIZb/yXllEWX/ZfVWEaqPqQXlU+WD5I7VEPaz+tiKpYnvFs8r0yg8rf6zKrzqgIWtKNEe1HG2l9nS1fXVD9SWdl65LN1kTVrOpZkafot9ZC9UuqT1i4OE/UxeM7saVxqm6yLqRuuf1efWHGtgN2oYLjZ6NaxrvNSU0/aYZbZY3n2xxbGlvmVoWs2xHK9Ra2nqyzbmts216eeLyXe3U9sr2P3X4dfR3fL8if8WxTrvO5Z13Vyau3Ntl1qXvurEqfNX21ehq9eqJNQFrtqx53a3o/qLHr2ew54deee8Xa0Vrh9b+uK5s3URfcN+29cT12vXXN0Rt2NXP7m/qv7sxbePhAWyge+D7TcWbzg0GDm7fTN1s3Dw5lPpPAKQBW/6YuJkkmZCZ/JpomtWbQpuvnByciZz3nWSd0p5Anq6fHZ+Ln/qgaaDYoUehtqImopajBqN2o+akVqTHpTilqaYapoum/adup+CoUqjEqTepqaocqo+rAqt1q+msXKzQrUStuK4trqGvFq+LsACwdbDqsWCx1rJLssKzOLOutCW0nLUTtYq2AbZ5tvC3aLfguFm40blKucK6O7q1uy67p7whvJu9Fb2Pvgq+hL7/v3q/9cBwwOzBZ8Hjwl/C28NYw9TEUcTOxUvFyMZGxsPHQce/yD3IvMk6ybnKOMq3yzbLtsw1zLXNNc21zjbOts83z7jQOdC60TzRvtI/0sHTRNPG1EnUy9VO1dHWVdbY11zX4Nhk2OjZbNnx2nba+9uA3AXcit0Q3ZbeHN6i3ynfr+A24L3hROHM4lPi2+Nj4+vkc+T85YTmDeaW5x/nqegy6LzpRunQ6lvq5etw6/vshu0R7ZzuKO6070DvzPBY8OXxcvH/8ozzGfOn9DT0wvVQ9d72bfb794r4Gfio+Tj5x/pX+uf7d/wH/Jj9Kf26/kv+3P9t//8CDAD3hPP7DWVuZHN0cmVhbQ1lbmRvYmoNMSAwIG9iag08PC9MZW5ndGggNDY4My9TdWJ0eXBlL1hNTC9UeXBlL01ldGFkYXRhPj5zdHJlYW0NCjw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE1IDg0LjE1OTgxMCwgMjAxNi8wOS8xMC0wMjo0MTozMCAgICAgICAgIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIKICAgICAgICAgICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgICAgICAgICAgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6cGRmPSJodHRwOi8vbnMuYWRvYmUuY29tL3BkZi8xLjMvIj4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMTctMDktMThUMTY6MDM6MjArMDI6MDA8L3htcDpDcmVhdGVEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE4LTAxLTIyVDA5OjI5OjI3WjwveG1wOk1ldGFkYXRhRGF0ZT4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTgtMDEtMjJUMDk6Mjk6MjdaPC94bXA6TW9kaWZ5RGF0ZT4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBJbGx1c3RyYXRvciBDQyAyMDE3IChNYWNpbnRvc2gpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx4bXBNTTpJbnN0YW5jZUlEPnV1aWQ6MjY4NmI2YmYtMzg5Mi1iOTQ3LWI0ZmQtYjliODNiZWRjYzcwPC94bXBNTTpJbnN0YW5jZUlEPgogICAgICAgICA8eG1wTU06T3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6OTBmNzQzMjYtNDgxNS00ZDM2LWIzYTktN2U5NDMyZjM3ZTU3PC94bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpEb2N1bWVudElEPnhtcC5pZDo5ZmJkZTI2Ni1jZDRiLTQ2YmUtOGNmYS03ZmMxMjA4OGE0MDM8L3htcE1NOkRvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpSZW5kaXRpb25DbGFzcz5wcm9vZjpwZGY8L3htcE1NOlJlbmRpdGlvbkNsYXNzPgogICAgICAgICA8eG1wTU06SGlzdG9yeT4KICAgICAgICAgICAgPHJkZjpTZXE+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6YWN0aW9uPmNvbnZlcnRlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6cGFyYW1ldGVycz5mcm9tIGFwcGxpY2F0aW9uL3gtaW5kZXNpZ24gdG8gYXBwbGljYXRpb24vcGRmPC9zdEV2dDpwYXJhbWV0ZXJzPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBJbkRlc2lnbiBDQyAyMDE1IChNYWNpbnRvc2gpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICAgICA8c3RFdnQ6Y2hhbmdlZD4vPC9zdEV2dDpjaGFuZ2VkPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDE2LTAzLTA5VDA5OjQzOjE4KzAxOjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6U2VxPgogICAgICAgICA8L3htcE1NOkhpc3Rvcnk+CiAgICAgICAgIDx4bXBNTTpEZXJpdmVkRnJvbSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgIDxzdFJlZjppbnN0YW5jZUlEPnhtcC5paWQ6YWRhNzhhYjQtMTdlMC00YzMzLWI1ZDgtM2U4OGNjOTUxYjBhPC9zdFJlZjppbnN0YW5jZUlEPgogICAgICAgICAgICA8c3RSZWY6ZG9jdW1lbnRJRD54bXAuZGlkOjkwZjc0MzI2LTQ4MTUtNGQzNi1iM2E5LTdlOTQzMmYzN2U1Nzwvc3RSZWY6ZG9jdW1lbnRJRD4KICAgICAgICAgICAgPHN0UmVmOm9yaWdpbmFsRG9jdW1lbnRJRD54bXAuZGlkOjkwZjc0MzI2LTQ4MTUtNGQzNi1iM2E5LTdlOTQzMmYzN2U1Nzwvc3RSZWY6b3JpZ2luYWxEb2N1bWVudElEPgogICAgICAgICAgICA8c3RSZWY6cmVuZGl0aW9uQ2xhc3M+ZGVmYXVsdDwvc3RSZWY6cmVuZGl0aW9uQ2xhc3M+CiAgICAgICAgIDwveG1wTU06RGVyaXZlZEZyb20+CiAgICAgICAgIDxkYzpmb3JtYXQ+YXBwbGljYXRpb24vcGRmPC9kYzpmb3JtYXQ+CiAgICAgICAgIDxkYzp0aXRsZT4KICAgICAgICAgICAgPHJkZjpBbHQ+CiAgICAgICAgICAgICAgIDxyZGY6bGkgeG1sOmxhbmc9IngtZGVmYXVsdCI+bm90ZV9rZXlfdGhpbjwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpBbHQ+CiAgICAgICAgIDwvZGM6dGl0bGU+CiAgICAgICAgIDxwZGY6UHJvZHVjZXI+QWRvYmUgUERGIGxpYnJhcnkgMTUuMDA8L3BkZjpQcm9kdWNlcj4KICAgICAgICAgPHBkZjpUcmFwcGVkPkZhbHNlPC9wZGY6VHJhcHBlZD4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/Pg1lbmRzdHJlYW0NZW5kb2JqDTIgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0ZpcnN0IDQvTGVuZ3RoIDQ4L04gMS9UeXBlL09ialN0bT4+c3RyZWFtDQpo3jJVMFCwsdF3zi/NK1Ew1PfOTCmOtgSKBcXqh1QWpOoHJKanFtvZAQQYANZ3C4ANZW5kc3RyZWFtDWVuZG9iag0zIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCA0L0xlbmd0aCAxNjUvTiAxL1R5cGUvT2JqU3RtPj5zdHJlYW0NCmjeRIxBC4IwGED/ym46gvZtkWaIEIrQQfDQKQSZ7gNHY5M5D/77koiuj/deQoDkOSs9yqCdrWTAuLoK4Clk/MITOAk4gIgAIvq1nI9vyg1I7sasS/A7IWVJ9oZ0cSNHbYNbpo5S1jj1P16ACwGZyET6pKz1Tq0j/mZtVROjBy/9Rvj5CEDZQweDsXUB+xdufZi0/UAv5xkVq6VZsCjeAgwAyTk6Lg1lbmRzdHJlYW0NZW5kb2JqDTQgMCBvYmoNPDwvRGVjb2RlUGFybXM8PC9Db2x1bW5zIDMvUHJlZGljdG9yIDEyPj4vRmlsdGVyL0ZsYXRlRGVjb2RlL0lEWzxENzZGQkM2NDE5MTc0QTUxQjk3MDQzRTBFMUQyREVDRT48NzlEMEYyRUI4RDgzNEM0MUJGMkVGRUZGNThBODMxQTk+XS9JbmZvIDYgMCBSL0xlbmd0aCAzNy9Sb290IDggMCBSL1NpemUgNy9UeXBlL1hSZWYvV1sxIDIgMF0+PnN0cmVhbQ0KaN5iYmBgYGIUSmBiEJrOxMDYDcSMTIy36pkYGBgBAgwAJJkDFA1lbmRzdHJlYW0NZW5kb2JqDXN0YXJ0eHJlZg0xMTYNJSVFT0YN"),!0,!0,!1),Module.FS_createDataFile("/assets/NoteIcons","note_newparagraph_thin.pdf",decodeBase64("JVBERi0xLjYNJeLjz9MNCjcgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wgOTg2NC9PIDkvRSA0NDA4L04gMS9UIDk1NzkvSCBbIDQ0NSAxMzZdPj4NZW5kb2JqDSAgICAgICAgICAgICAgICAgICAgICAgIA0xMyAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgNC9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPEY5RjJCQTBDQ0JDMDQyQzBCMkFBNTc3MDNFMTQ2QzdDPjwxRTlBNjdCNjYwNEU0N0Y2OEE3N0NGQzg5QTFGOUM0ND5dL0luZGV4WzcgMTFdL0luZm8gNiAwIFIvTGVuZ3RoIDUwL1ByZXYgOTU4MC9Sb290IDggMCBSL1NpemUgMTgvVHlwZS9YUmVmL1dbMSAyIDFdPj5zdHJlYW0NCmjeYmJkEGBgYmAyBRIMNkCCUR9EKIDEQBK/pjAwMTJMA8kyMEKI/4yb/wEEGABa2QXWDWVuZHN0cmVhbQ1lbmRvYmoNc3RhcnR4cmVmDTANJSVFT0YNICAgICAgICAgDTE3IDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9JIDY5L0xlbmd0aCA1OC9TIDM4Pj5zdHJlYW0NCmjeYmBgYGFgYPzJAAR82xlQASMDSJajAVmMBYoZGBUYeBg+MPBzWoB4zAwMKskQLYycAAEGAMVkBFsNZW5kc3RyZWFtDWVuZG9iag04IDAgb2JqDTw8L01ldGFkYXRhIDEgMCBSL1BhZ2VzIDUgMCBSL1R5cGUvQ2F0YWxvZz4+DWVuZG9iag05IDAgb2JqDTw8L0FydEJveFswLjk5OTk4NSAyLjAgMjIuNzczNiAyMy4wXS9CbGVlZEJveFswLjAgMC4wIDI0LjAgMjQuMF0vQ29udGVudHMgMTEgMCBSL0Nyb3BCb3hbMC4wIDAuMCAyNC4wIDI0LjBdL01lZGlhQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9QYXJlbnQgNSAwIFIvUmVzb3VyY2VzPDwvQ29sb3JTcGFjZTw8L0NTMCAxNCAwIFI+Pi9FeHRHU3RhdGU8PC9HUzAgMTUgMCBSPj4vUHJvcGVydGllczw8L01DMCAxNiAwIFI+Pj4+L1JvdGF0ZSAwL1RyaW1Cb3hbMC4wIDAuMCAyNC4wIDI0LjBdL1R5cGUvUGFnZT4+DWVuZG9iag0xMCAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvRmlyc3QgMTgvTGVuZ3RoIDE5NC9OIDMvVHlwZS9PYmpTdG0+PnN0cmVhbQ0KaN40jksLwjAQhP/KHvXidmNbPUihVpGC1WLFi3iIukIwfZDG1783tHocZr6ZIR88oABoChQCkQ9HTJNkLlu+Agln7k6zGcZpATepW8Z5hpvalFJjEgONPNzmP2ebZ0BYxGDNg7HIZHt30Ypx/2kYl2+7Kqy0jBfZcXXTc1Hk+pNa1+YoPCF8GItJOIUwCMbBCReqLN2TfmF5VVaeNfcLueGn4tdfqMq6YCf2ymoerOWHDdAQD6pVfyqKvgIMAOTGSoQNZW5kc3RyZWFtDWVuZG9iag0xMSAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDQ1OT4+c3RyZWFtDQpIiWRUy24bMQy86yv0A0uLFPW6xi16aQ5BDz0XQtoenACJT/37DiXt2khge5fD5WM05Pr0/de/53d/ejwH//Dl7N3p/CP4fvVhfPy1v7rTN7j+XN2b5+Fkz0qsKflEUiT5/uLM/+I2oSzFRypS/cVtFpY/wi1almEhqfIJB9KkgIGipttTpgr3B7iXDof11/12T+4NHlH7bvi9P7uf/vWefyMVaeDP3PiOP3pHhXnZTSFVGQ0Oi2ppCzFJsxhmXTauIN3dRDgCSFnG0rM7K5vAtlaegqnEBS87xCHB60biE2bc2uBixQ4I/UBtwUgxsbeMnBbYyU0k1DC7mTMJ3HPrU8dDMiVlRQm5qdUo1TzE4oiZicXl4QNf0FygmBzT5EDJwg9USrawmKElmxXMb9057TbilcCIx97dJ+qtaHcLlRlvppLECsbYo+LFT7piM/A2yEgt2gq0oR12E2fP47rbCpVmVKaMzTXlJIov0E9HhRALUFJbiCJ82AnKzqjubHpi4pdg5AAT2+pEHu+CgUC5zjGLTUFaRN6ssqXVbDYAtA6z8wGM1Ars61x42YzyfjBAO80BeAx6BM5bX2/O10f8CTy5/wIMAHNkyUANZW5kc3RyZWFtDWVuZG9iag0xMiAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDI1NzQvTiAzPj5zdHJlYW0NCkiJnJZ5VFN3Fsd/b8mekJWww2MNW4CwBpA1bGGRHQRRCEkIARJCSNgFQUQFFEVEhKqVMtZtdEZPRZ0urmOtDtZ96tID9TDq6Di0FteOnRc4R51OZ6bT7x/v9zn3d+/v3d+9953zAKAnpaq11TALAI3WoM9KjMUWFRRipAkAAwogAhEAMnmtLi07IQfgksZLsFrcCfyLnl4HkGm9IkzKwDDw/4kt1+kNAEAZOAcolLVynDtxrqo36Ez2GZx5pZUmhlET6/EEcbY0sWqeved85jnaxAqNVoGzKWedQqMw8WmcV9cZlTgjqTh31amV9ThfxdmlyqhR4/zcFKtRymoBQOkmu0EpL8fZD2e6PidLgvMCAMh01Ttc+g4blA0G06Uk1bpGvVpVbsDc5R6YKDRUjCUp66uUBoMwQyavlOkVmKRao5NpGwGYv/OcOKbaYniRg0WhwcFCfx/RO4X6r5u/UKbeztOTzLmeQfwLb20/51c9CoB4Fq/N+re20i0AjK8EwPLmW5vL+wAw8b4dvvjOffimeSk3GHRhvr719fU+aqXcx1TQN/qfDr9A77zPx3Tcm/JgccoymbHKgJnqJq+uqjbqsVqdTK7EhD8d4l8d+PN5eGcpy5R6pRaPyMOnTK1V4e3WKtQGdbUWU2v/UxN/ZdhPND/XuLhjrwGv2AewLvIA8rcLAOXSAFK0Dd+B3vQtlZIHMvA13+He/NzPCfr3U+E+06NWrZqLk2TlYHKjvm5+z/RZAgKgAibgAStgD5yBOxACfxACwkE0iAfJIB3kgAKwFMhBOdAAPagHLaAddIEesB5sAsNgOxgDu8F+cBCMg4/BCfBHcB58Ca6BW2ASTIOHYAY8Ba8gCCJBDIgLWUEOkCvkBflDYigSiodSoSyoACqBVJAWMkIt0AqoB+qHhqEd0G7o99BR6AR0DroEfQVNQQ+g76CXMALTYR5sB7vBvrAYjoFT4Bx4CayCa+AmuBNeBw/Bo/A++DB8Aj4PX4Mn4YfwLAIQGsJHHBEhIkYkSDpSiJQheqQV6UYGkVFkP3IMOYtcQSaRR8gLlIhyUQwVouFoEpqLytEatBXtRYfRXehh9DR6BZ1CZ9DXBAbBluBFCCNICYsIKkI9oYswSNhJ+IhwhnCNME14SiQS+UQBMYSYRCwgVhCbib3ErcQDxOPES8S7xFkSiWRF8iJFkNJJMpKB1EXaQtpH+ox0mTRNek6mkR3I/uQEciFZS+4gD5L3kD8lXybfI7+isCiulDBKOkVBaaT0UcYoxygXKdOUV1Q2VUCNoOZQK6jt1CHqfuoZ6m3qExqN5kQLpWXS1LTltCHa72if06ZoL+gcuiddQi+iG+nr6B/Sj9O/oj9hMBhujGhGIcPAWMfYzTjF+Jrx3Ixr5mMmNVOYtZmNmB02u2z2mElhujJjmEuZTcxB5iHmReYjFoXlxpKwZKxW1gjrKOsGa5bNZYvY6WwNu5e9h32OfZ9D4rhx4jkKTifnA84pzl0uwnXmSrhy7gruGPcMd5pH5Al4Ul4Fr4f3W94Eb8acYx5onmfeYD5i/on5JB/hu/Gl/Cp+H/8g/zr/pYWdRYyF0mKNxX6LyxbPLG0soy2Vlt2WByyvWb60wqzirSqtNliNW92xRq09rTOt6623WZ+xfmTDswm3kdt02xy0uWkL23raZtk2235ge8F21s7eLtFOZ7fF7pTdI3u+fbR9hf2A/af2Dxy4DpEOaocBh88c/oqZYzFYFTaEncZmHG0dkxyNjjscJxxfOQmccp06nA443XGmOoudy5wHnE86z7g4uKS5tLjsdbnpSnEVu5a7bnY96/rMTeCW77bKbdztvsBSIBU0CfYKbrsz3KPca9xH3a96ED3EHpUeWz2+9IQ9gzzLPUc8L3rBXsFeaq+tXpe8Cd6h3lrvUe8bQrowRlgn3Cuc8uH7pPp0+Iz7PPZ18S303eB71ve1X5Bfld+Y3y0RR5Qs6hAdE33n7+kv9x/xvxrACEgIaAs4EvBtoFegMnBb4J+DuEFpQauCTgb9IzgkWB+8P/hBiEtISch7ITfEPHGGuFf8eSghNDa0LfTj0BdhwWGGsINhfw8XhleG7wm/v0CwQLlgbMHdCKcIWcSOiMlILLIk8v3IySjHKFnUaNQ30c7Riuid0fdiPGIqYvbFPI71i9XHfhT7TBImWSY5HofEJcZ1x03Ec+Jz44fjv05wSlAl7E2YSQxKbE48nkRISknakHRDaieVS3dLZ5JDkpcln06hp2SnDKd8k+qZqk89lganJadtTLu90HWhduF4OkiXpm9Mv5MhyKjJ+EMmMTMjcyTzL1mirJass9nc7OLsPdlPc2Jz+nJu5brnGnNP5jHzivJ25z3Lj8vvz59c5Lto2aLzBdYF6oIjhaTCvMKdhbOL4xdvWjxdFFTUVXR9iWBJw5JzS62XVi39pJhZLCs+VEIoyS/ZU/KDLF02KpstlZa+Vzojl8g3yx8qohUDigfKCGW/8l5ZRFl/2X1VhGqj6kF5VPlg+SO1RD2s/rYiqWJ7xbPK9MoPK3+syq86oCFrSjRHtRxtpfZ0tX11Q/UlnZeuSzdZE1azqWZGn6LfWQvVLqk9YuDhP1MXjO7Glcapusi6kbrn9Xn1hxrYDdqGC42ejWsa7zUlNP2mGW2WN59scWxpb5laFrNsRyvUWtp6ss25rbNtenni8l3t1PbK9j91+HX0d3y/In/FsU67zuWdd1cmrtzbZdal77qxKnzV9tXoavXqiTUBa7ased2t6P6ix69nsOeHXnnvF2tFa4fW/riubN1EX3DftvXE9dr11zdEbdjVz+5v6r+7MW3j4QFsoHvg+03Fm84NBg5u30zdbNw8OZT6TwCkAVv+mLiZJJmQmfyaaJrVm0Kbr5wcnImc951kndKeQJ6unx2fi5/6oGmg2KFHobaiJqKWowajdqPmpFakx6U4pammGqaLpv2nbqfgqFKoxKk3qamqHKqPqwKrdavprFys0K1ErbiuLa6hrxavi7AAsHWw6rFgsdayS7LCszizrrQltJy1E7WKtgG2ebbwt2i34LhZuNG5SrnCuju6tbsuu6e8IbybvRW9j74KvoS+/796v/XAcMDswWfB48JfwtvDWMPUxFHEzsVLxcjGRsbDx0HHv8g9yLzJOsm5yjjKt8s2y7bMNcy1zTXNtc42zrbPN8+40DnQutE80b7SP9LB00TTxtRJ1MvVTtXR1lXW2Ndc1+DYZNjo2WzZ8dp22vvbgNwF3IrdEN2W3hzeot8p36/gNuC94UThzOJT4tvjY+Pr5HPk/OWE5g3mlucf56noMui86Ubp0Opb6uXrcOv77IbtEe2c7ijutO9A78zwWPDl8XLx//KM8xnzp/Q09ML1UPXe9m32+/eK+Bn4qPk4+cf6V/rn+3f8B/yY/Sn9uv5L/tz/bf//AgwA94Tz+w1lbmRzdHJlYW0NZW5kb2JqDTEgMCBvYmoNPDwvTGVuZ3RoIDQ2OTIvU3VidHlwZS9YTUwvVHlwZS9NZXRhZGF0YT4+c3RyZWFtDQo8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzAxNSA4NC4xNTk4MTAsIDIwMTYvMDkvMTAtMDI6NDE6MzAgICAgICAgICI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgICAgICAgICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICAgICAgICAgIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiCiAgICAgICAgICAgIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnBkZj0iaHR0cDovL25zLmFkb2JlLmNvbS9wZGYvMS4zLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRlRGF0ZT4yMDE3LTA5LTE4VDE2OjAzOjIwKzAyOjAwPC94bXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhtcDpNZXRhZGF0YURhdGU+MjAxOC0wMS0yMlQwOToyOToyNlo8L3htcDpNZXRhZGF0YURhdGU+CiAgICAgICAgIDx4bXA6TW9kaWZ5RGF0ZT4yMDE4LTAxLTIyVDA5OjI5OjI2WjwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+QWRvYmUgSWxsdXN0cmF0b3IgQ0MgMjAxNyAoTWFjaW50b3NoKTwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8eG1wTU06SW5zdGFuY2VJRD51dWlkOjQ0MTJlNDM3LTE2YzYtNzA0Mi05YThkLWYwYzRiYjM1Yjg1NzwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD54bXAuZGlkOjkwZjc0MzI2LTQ4MTUtNGQzNi1iM2E5LTdlOTQzMmYzN2U1NzwveG1wTU06T3JpZ2luYWxEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06RG9jdW1lbnRJRD54bXAuaWQ6OWZiZGUyNjYtY2Q0Yi00NmJlLThjZmEtN2ZjMTIwODhhNDAzPC94bXBNTTpEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06UmVuZGl0aW9uQ2xhc3M+cHJvb2Y6cGRmPC94bXBNTTpSZW5kaXRpb25DbGFzcz4KICAgICAgICAgPHhtcE1NOkhpc3Rvcnk+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5jb252ZXJ0ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnBhcmFtZXRlcnM+ZnJvbSBhcHBsaWNhdGlvbi94LWluZGVzaWduIHRvIGFwcGxpY2F0aW9uL3BkZjwvc3RFdnQ6cGFyYW1ldGVycz4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgSW5EZXNpZ24gQ0MgMjAxNSAoTWFjaW50b3NoKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxNi0wMy0wOVQwOTo0MzoxOCswMTowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8eG1wTU06RGVyaXZlZEZyb20gcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICA8c3RSZWY6aW5zdGFuY2VJRD54bXAuaWlkOmFkYTc4YWI0LTE3ZTAtNGMzMy1iNWQ4LTNlODhjYzk1MWIwYTwvc3RSZWY6aW5zdGFuY2VJRD4KICAgICAgICAgICAgPHN0UmVmOmRvY3VtZW50SUQ+eG1wLmRpZDo5MGY3NDMyNi00ODE1LTRkMzYtYjNhOS03ZTk0MzJmMzdlNTc8L3N0UmVmOmRvY3VtZW50SUQ+CiAgICAgICAgICAgIDxzdFJlZjpvcmlnaW5hbERvY3VtZW50SUQ+eG1wLmRpZDo5MGY3NDMyNi00ODE1LTRkMzYtYjNhOS03ZTk0MzJmMzdlNTc8L3N0UmVmOm9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgICAgPHN0UmVmOnJlbmRpdGlvbkNsYXNzPmRlZmF1bHQ8L3N0UmVmOnJlbmRpdGlvbkNsYXNzPgogICAgICAgICA8L3htcE1NOkRlcml2ZWRGcm9tPgogICAgICAgICA8ZGM6Zm9ybWF0PmFwcGxpY2F0aW9uL3BkZjwvZGM6Zm9ybWF0PgogICAgICAgICA8ZGM6dGl0bGU+CiAgICAgICAgICAgIDxyZGY6QWx0PgogICAgICAgICAgICAgICA8cmRmOmxpIHhtbDpsYW5nPSJ4LWRlZmF1bHQiPm5vdGVfbmV3cGFyYWdyYXBoX3RoaW48L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6QWx0PgogICAgICAgICA8L2RjOnRpdGxlPgogICAgICAgICA8cGRmOlByb2R1Y2VyPkFkb2JlIFBERiBsaWJyYXJ5IDE1LjAwPC9wZGY6UHJvZHVjZXI+CiAgICAgICAgIDxwZGY6VHJhcHBlZD5GYWxzZTwvcGRmOlRyYXBwZWQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4NZW5kc3RyZWFtDWVuZG9iag0yIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCA0L0xlbmd0aCA0OC9OIDEvVHlwZS9PYmpTdG0+PnN0cmVhbQ0KaN4yVTBQsLHRd84vzStRMNT3zkwpjrYEigXF6odUFqTqBySmpxbb2QEEGADWdwuADWVuZHN0cmVhbQ1lbmRvYmoNMyAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvRmlyc3QgNC9MZW5ndGggMTczL04gMS9UeXBlL09ialN0bT4+c3RyZWFtDQpo3kSM0QqCMBiFX2V3OoL2b5FliBCK0IXgRVchyHQ/ORibzEn09ikR3R3O+c6XECBZxgqPMmhnSxkwLi8C+AlSfuYJHATsQEQAEf1SzsdX5XokN2OWOfitIUVBtg9p41oO2gY3jy2lrHbqbzwDFwJSkYrkQVnjnVoG/MmasiJG9176N+HHPQBldx0MxtYF7Cy+Junl08tp7MKo7bqueULFKmlmzPOPAAMA8q495A1lbmRzdHJlYW0NZW5kb2JqDTQgMCBvYmoNPDwvRGVjb2RlUGFybXM8PC9Db2x1bW5zIDMvUHJlZGljdG9yIDEyPj4vRmlsdGVyL0ZsYXRlRGVjb2RlL0lEWzxGOUYyQkEwQ0NCQzA0MkMwQjJBQTU3NzAzRTE0NkM3Qz48MUU5QTY3QjY2MDRFNDdGNjhBNzdDRkM4OUExRjlDNDQ+XS9JbmZvIDYgMCBSL0xlbmd0aCAzNy9Sb290IDggMCBSL1NpemUgNy9UeXBlL1hSZWYvV1sxIDIgMF0+PnN0cmVhbQ0KaN5iYmBgYGIUtGBiEFrAxMDYDcScTIy3pzExMDACBBgAIpUDFA1lbmRzdHJlYW0NZW5kb2JqDXN0YXJ0eHJlZg0xMTYNJSVFT0YN"),!0,!0,!1),Module.FS_createDataFile("/assets/NoteIcons","note_note_thin.pdf",decodeBase64("JVBERi0xLjYNJeLjz9MNCjcgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wgOTY0NC9PIDkvRSA0MjAzL04gMS9UIDkzNTkvSCBbIDQ0NSAxMzZdPj4NZW5kb2JqDSAgICAgICAgICAgICAgICAgICAgICAgIA0xMyAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgNC9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPDY4QjM4MUZBODQwNTQ5M0Y5ODI2RDU1Rjc4MTdCNDlEPjw2N0ExQTEzMzUxQkQ0RUUzODRFNDZCN0I1M0I4NDhEOD5dL0luZGV4WzcgMTFdL0luZm8gNiAwIFIvTGVuZ3RoIDUxL1ByZXYgOTM2MC9Sb290IDggMCBSL1NpemUgMTgvVHlwZS9YUmVmL1dbMSAyIDFdPj5zdHJlYW0NCmjeYmJkEGBgYmAyBRIMNkCCUR1EKIDEvIHEr0QGJkaGaSBZBkYI8Z9x8z+AAAMAW4gF1g1lbmRzdHJlYW0NZW5kb2JqDXN0YXJ0eHJlZg0wDSUlRU9GDSAgICAgICAgDTE3IDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9JIDY5L0xlbmd0aCA1OC9TIDM4Pj5zdHJlYW0NCmjeYmBgYGFgYPzJAAS8rxhQASMDSJajAVmMBYoZGBUYeBgKGJh2WoB4zAwMyn0QLYxMAAEGANXxBNMNZW5kc3RyZWFtDWVuZG9iag04IDAgb2JqDTw8L01ldGFkYXRhIDEgMCBSL1BhZ2VzIDUgMCBSL1R5cGUvQ2F0YWxvZz4+DWVuZG9iag05IDAgb2JqDTw8L0FydEJveFswLjAgMC4wIDI0LjAgMjQuMF0vQmxlZWRCb3hbMC4wIDAuMCAyNC4wIDI0LjBdL0NvbnRlbnRzIDExIDAgUi9Dcm9wQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9NZWRpYUJveFswLjAgMC4wIDI0LjAgMjQuMF0vUGFyZW50IDUgMCBSL1Jlc291cmNlczw8L0NvbG9yU3BhY2U8PC9DUzAgMTQgMCBSPj4vRXh0R1N0YXRlPDwvR1MwIDE1IDAgUj4+L1Byb3BlcnRpZXM8PC9NQzAgMTYgMCBSPj4+Pi9Sb3RhdGUgMC9UcmltQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9UeXBlL1BhZ2U+Pg1lbmRvYmoNMTAgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0ZpcnN0IDE4L0xlbmd0aCAxOTQvTiAzL1R5cGUvT2JqU3RtPj5zdHJlYW0NCmjeNI5LC8IwEIT/yh714nZjWz1IoVaRgtVixYt4iLpCMH2Qxte/N7R6HGa+mSEfPKAAaAoUApEPR0yTZC5bvgIJZ+5OsxnGaQE3qVvGeYab2pRSYxIDjTzc5j9nm2dAWMRgzYOxyGR7d9GKcf9pGJdvuyqstIwX2XF103NR5PqTWtfmKDwhfBiLSTiFMAjGwQkXqizdk35heVVWnjX3C7nhp+LXX6jKumAn9spqHqzlhw3QEA+qVX8qir4CDADkxkqEDWVuZHN0cmVhbQ1lbmRvYmoNMTEgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCAyNjI+PnN0cmVhbQ0KSIlEkT1uwzAMhXeegheQLNK2fta4RZdmCDp0LoS0HZwCiafcPqSouLANfU9+Tybp4f3rfr7hcFwCHl4WhCsE5ElvJ8/tDJ/4B8PyEbBuGNqFW5WtN9n62eCK1DYJmZHEdQGVF3DRzwIruORHLoIuows+Jm5E8rqCUlYTFdE7phSbiSWVTBm2jCBpfH1iM/QYMdphAuINRqsSS0fCe6QfU+G3+yat28KTne5zyiqcdseiimGvXrAVtRrmbrCYk3H0vnQwrVfqE5mSvY6+REInpeeias5R1SSfrEBtdbasIpuJfBgLss5yHlHbqcDPgexV/lfeO6vwDSd4Pco/PsFDgAEAb15gUQ1lbmRzdHJlYW0NZW5kb2JqDTEyIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGggMjU3NC9OIDM+PnN0cmVhbQ0KSImclnlUU3cWx39vyZ6QlbDDYw1bgLAGkDVsYZEdBFEISQgBEkJI2AVBRAUURUSEqpUy1m10Rk9FnS6uY60O1n3q0gP1MOroOLQW146dFzhHnU5nptPvH+/3Ofd37+/d3733nfMAoCelqrXVMAsAjdagz0qMxRYVFGKkCQADCiACEQAyea0uLTshB+CSxkuwWtwJ/IueXgeQab0iTMrAMPD/iS3X6Q0AQBk4ByiUtXKcO3GuqjfoTPYZnHmllSaGURPr8QRxtjSxap6953zmOdrECo1WgbMpZ51CozDxaZxX1xmVOCOpOHfVqZX1OF/F2aXKqFHj/NwUq1HKagFA6Sa7QSkvx9kPZ7o+J0uC8wIAyHTVO1z6DhuUDQbTpSTVuka9WlVuwNzlHpgoNFSMJSnrq5QGgzBDJq+U6RWYpFqjk2kbAZi/85w4ptpieJGDRaHBwUJ/H9E7hfqvm79Qpt7O05PMuZ5B/AtvbT/nVz0KgHgWr836t7bSLQCMrwTA8uZbm8v7ADDxvh2++M59+KZ5KTcYdGG+vvX19T5qpdzHVNA3+p8Ov0DvvM/HdNyb8mBxyjKZscqAmeomr66qNuqxWp1MrsSEPx3iXx3483l4ZynLlHqlFo/Iw6dMrVXh7dYq1AZ1tRZTa/9TE39l2E80P9e4uGOvAa/YB7Au8gDytwsA5dIAUrQN34He9C2Vkgcy8DXf4d783M8J+vdT4T7To1atmouTZOVgcqO+bn7P9FkCAqACJuABK2APnIE7EAJ/EALCQTSIB8kgHeSAArAUyEE50AA9qActoB10gR6wHmwCw2A7GAO7wX5wEIyDj8EJ8EdwHnwJroFbYBJMg4dgBjwFryAIIkEMiAtZQQ6QK+QF+UNiKBKKh1KhLKgAKoFUkBYyQi3QCqgH6oeGoR3Qbuj30FHoBHQOugR9BU1BD6DvoJcwAtNhHmwHu8G+sBiOgVPgHHgJrIJr4Ca4E14HD8Gj8D74MHwCPg9fgyfhh/AsAhAawkccESEiRiRIOlKIlCF6pBXpRgaRUWQ/cgw5i1xBJpFHyAuUiHJRDBWi4WgSmovK0Rq0Fe1Fh9Fd6GH0NHoFnUJn0NcEBsGW4EUII0gJiwgqQj2hizBI2En4iHCGcI0wTXhKJBL5RAExhJhELCBWEJuJvcStxAPE48RLxLvEWRKJZEXyIkWQ0kkykoHURdpC2kf6jHSZNE16TqaRHcj+5ARyIVlL7iAPkveQPyVfJt8jv6KwKK6UMEo6RUFppPRRxijHKBcp05RXVDZVQI2g5lArqO3UIep+6hnqbeoTGo3mRAulZdLUtOW0IdrvaJ/Tpmgv6By6J11CL6Ib6evoH9KP07+iP2EwGG6MaEYhw8BYx9jNOMX4mvHcjGvmYyY1U5i1mY2YHTa7bPaYSWG6MmOYS5lNzEHmIeZF5iMWheXGkrBkrFbWCOso6wZrls1li9jpbA27l72HfY59n0PiuHHiOQpOJ+cDzinOXS7CdeZKuHLuCu4Y9wx3mkfkCXhSXgWvh/db3gRvxpxjHmieZ95gPmL+ifkkH+G78aX8Kn4f/yD/Ov+lhZ1FjIXSYo3FfovLFs8sbSyjLZWW3ZYHLK9ZvrTCrOKtKq02WI1b3bFGrT2tM63rrbdZn7F+ZMOzCbeR23TbHLS5aQvbetpm2TbbfmB7wXbWzt4u0U5nt8XulN0je759tH2F/YD9p/YPHLgOkQ5qhwGHzxz+ipljMVgVNoSdxmYcbR2THI2OOxwnHF85CZxynTqcDjjdcaY6i53LnAecTzrPuDi4pLm0uOx1uelKcRW7lrtudj3r+sxN4Jbvtspt3O2+wFIgFTQJ9gpuuzPco9xr3Efdr3oQPcQelR5bPb70hD2DPMs9RzwvesFewV5qr61el7wJ3qHeWu9R7xtCujBGWCfcK5zy4fuk+nT4jPs89nXxLfTd4HvW97VfkF+V35jfLRFHlCzqEB0Tfefv6S/3H/G/GsAISAhoCzgS8G2gV6AycFvgn4O4QWlBq4JOBv0jOCRYH7w/+EGIS0hJyHshN8Q8cYa4V/x5KCE0NrQt9OPQF2HBYYawg2F/DxeGV4bvCb+/QLBAuWBswd0IpwhZxI6IyUgssiTy/cjJKMcoWdRo1DfRztGK6J3R92I8Yipi9sU8jvWL1cd+FPtMEiZZJjkeh8QlxnXHTcRz4nPjh+O/TnBKUCXsTZhJDEpsTjyeREhKSdqQdENqJ5VLd0tnkkOSlyWfTqGnZKcMp3yT6pmqTz2WBqclp21Mu73QdaF24Xg6SJemb0y/kyHIqMn4QyYxMyNzJPMvWaKslqyz2dzs4uw92U9zYnP6cm7luucac0/mMfOK8nbnPcuPy+/Pn1zku2jZovMF1gXqgiOFpMK8wp2Fs4vjF29aPF0UVNRVdH2JYEnDknNLrZdWLf2kmFksKz5UQijJL9lT8oMsXTYqmy2Vlr5XOiOXyDfLHyqiFQOKB8oIZb/yXllEWX/ZfVWEaqPqQXlU+WD5I7VEPaz+tiKpYnvFs8r0yg8rf6zKrzqgIWtKNEe1HG2l9nS1fXVD9SWdl65LN1kTVrOpZkafot9ZC9UuqT1i4OE/UxeM7saVxqm6yLqRuuf1efWHGtgN2oYLjZ6NaxrvNSU0/aYZbZY3n2xxbGlvmVoWs2xHK9Ra2nqyzbmts216eeLyXe3U9sr2P3X4dfR3fL8if8WxTrvO5Z13Vyau3Ntl1qXvurEqfNX21ehq9eqJNQFrtqx53a3o/qLHr2ew54deee8Xa0Vrh9b+uK5s3URfcN+29cT12vXXN0Rt2NXP7m/qv7sxbePhAWyge+D7TcWbzg0GDm7fTN1s3Dw5lPpPAKQBW/6YuJkkmZCZ/JpomtWbQpuvnByciZz3nWSd0p5Anq6fHZ+Ln/qgaaDYoUehtqImopajBqN2o+akVqTHpTilqaYapoum/adup+CoUqjEqTepqaocqo+rAqt1q+msXKzQrUStuK4trqGvFq+LsACwdbDqsWCx1rJLssKzOLOutCW0nLUTtYq2AbZ5tvC3aLfguFm40blKucK6O7q1uy67p7whvJu9Fb2Pvgq+hL7/v3q/9cBwwOzBZ8Hjwl/C28NYw9TEUcTOxUvFyMZGxsPHQce/yD3IvMk6ybnKOMq3yzbLtsw1zLXNNc21zjbOts83z7jQOdC60TzRvtI/0sHTRNPG1EnUy9VO1dHWVdbY11zX4Nhk2OjZbNnx2nba+9uA3AXcit0Q3ZbeHN6i3ynfr+A24L3hROHM4lPi2+Nj4+vkc+T85YTmDeaW5x/nqegy6LzpRunQ6lvq5etw6/vshu0R7ZzuKO6070DvzPBY8OXxcvH/8ozzGfOn9DT0wvVQ9d72bfb794r4Gfio+Tj5x/pX+uf7d/wH/Jj9Kf26/kv+3P9t//8CDAD3hPP7DWVuZHN0cmVhbQ1lbmRvYmoNMSAwIG9iag08PC9MZW5ndGggNDY4NC9TdWJ0eXBlL1hNTC9UeXBlL01ldGFkYXRhPj5zdHJlYW0NCjw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE1IDg0LjE1OTgxMCwgMjAxNi8wOS8xMC0wMjo0MTozMCAgICAgICAgIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIKICAgICAgICAgICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgICAgICAgICAgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6cGRmPSJodHRwOi8vbnMuYWRvYmUuY29tL3BkZi8xLjMvIj4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMTctMDktMThUMTY6MDM6MjErMDI6MDA8L3htcDpDcmVhdGVEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE4LTAxLTIyVDA5OjI5OjI1WjwveG1wOk1ldGFkYXRhRGF0ZT4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTgtMDEtMjJUMDk6Mjk6MjVaPC94bXA6TW9kaWZ5RGF0ZT4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBJbGx1c3RyYXRvciBDQyAyMDE3IChNYWNpbnRvc2gpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx4bXBNTTpJbnN0YW5jZUlEPnV1aWQ6ODRlZDFmMDgtZTU5Ni1hODQ5LTllZDUtNmRjOTc5ZmM0NTYzPC94bXBNTTpJbnN0YW5jZUlEPgogICAgICAgICA8eG1wTU06T3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6OTBmNzQzMjYtNDgxNS00ZDM2LWIzYTktN2U5NDMyZjM3ZTU3PC94bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpEb2N1bWVudElEPnhtcC5pZDo5ZmJkZTI2Ni1jZDRiLTQ2YmUtOGNmYS03ZmMxMjA4OGE0MDM8L3htcE1NOkRvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpSZW5kaXRpb25DbGFzcz5wcm9vZjpwZGY8L3htcE1NOlJlbmRpdGlvbkNsYXNzPgogICAgICAgICA8eG1wTU06SGlzdG9yeT4KICAgICAgICAgICAgPHJkZjpTZXE+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6YWN0aW9uPmNvbnZlcnRlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6cGFyYW1ldGVycz5mcm9tIGFwcGxpY2F0aW9uL3gtaW5kZXNpZ24gdG8gYXBwbGljYXRpb24vcGRmPC9zdEV2dDpwYXJhbWV0ZXJzPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBJbkRlc2lnbiBDQyAyMDE1IChNYWNpbnRvc2gpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICAgICA8c3RFdnQ6Y2hhbmdlZD4vPC9zdEV2dDpjaGFuZ2VkPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDE2LTAzLTA5VDA5OjQzOjE4KzAxOjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6U2VxPgogICAgICAgICA8L3htcE1NOkhpc3Rvcnk+CiAgICAgICAgIDx4bXBNTTpEZXJpdmVkRnJvbSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgIDxzdFJlZjppbnN0YW5jZUlEPnhtcC5paWQ6YWRhNzhhYjQtMTdlMC00YzMzLWI1ZDgtM2U4OGNjOTUxYjBhPC9zdFJlZjppbnN0YW5jZUlEPgogICAgICAgICAgICA8c3RSZWY6ZG9jdW1lbnRJRD54bXAuZGlkOjkwZjc0MzI2LTQ4MTUtNGQzNi1iM2E5LTdlOTQzMmYzN2U1Nzwvc3RSZWY6ZG9jdW1lbnRJRD4KICAgICAgICAgICAgPHN0UmVmOm9yaWdpbmFsRG9jdW1lbnRJRD54bXAuZGlkOjkwZjc0MzI2LTQ4MTUtNGQzNi1iM2E5LTdlOTQzMmYzN2U1Nzwvc3RSZWY6b3JpZ2luYWxEb2N1bWVudElEPgogICAgICAgICAgICA8c3RSZWY6cmVuZGl0aW9uQ2xhc3M+ZGVmYXVsdDwvc3RSZWY6cmVuZGl0aW9uQ2xhc3M+CiAgICAgICAgIDwveG1wTU06RGVyaXZlZEZyb20+CiAgICAgICAgIDxkYzpmb3JtYXQ+YXBwbGljYXRpb24vcGRmPC9kYzpmb3JtYXQ+CiAgICAgICAgIDxkYzp0aXRsZT4KICAgICAgICAgICAgPHJkZjpBbHQ+CiAgICAgICAgICAgICAgIDxyZGY6bGkgeG1sOmxhbmc9IngtZGVmYXVsdCI+bm90ZV9ub3RlX3RoaW48L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6QWx0PgogICAgICAgICA8L2RjOnRpdGxlPgogICAgICAgICA8cGRmOlByb2R1Y2VyPkFkb2JlIFBERiBsaWJyYXJ5IDE1LjAwPC9wZGY6UHJvZHVjZXI+CiAgICAgICAgIDxwZGY6VHJhcHBlZD5GYWxzZTwvcGRmOlRyYXBwZWQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4NZW5kc3RyZWFtDWVuZG9iag0yIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCA0L0xlbmd0aCA0OC9OIDEvVHlwZS9PYmpTdG0+PnN0cmVhbQ0KaN4yVTBQsLHRd84vzStRMNT3zkwpjrYEigXF6odUFqTqBySmpxbb2QEEGADWdwuADWVuZHN0cmVhbQ1lbmRvYmoNMyAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvRmlyc3QgNC9MZW5ndGggMTY2L04gMS9UeXBlL09ialN0bT4+c3RyZWFtDQpo3kSMQQuCMBiG/8pubgTt20LTECEUoYPQoVMIMd0HDsYmcx7692URXd7Dw/s8GQFSlrwOqKLxrlERaXOSII5QiFxkcJBiBzIBSNj35QM9az8guVi7LjFshNQ12RzS006NxkW/TD1jvPP6X8xBSAmFLGR6Z/wavF5H/MWuTUusGYIKTyLSPQDjNxMtUucjPj4TJ+PeNKh5Rs1bZResqpcAAwAFkDqaDWVuZHN0cmVhbQ1lbmRvYmoNNCAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgMy9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPDY4QjM4MUZBODQwNTQ5M0Y5ODI2RDU1Rjc4MTdCNDlEPjw2N0ExQTEzMzUxQkQ0RUUzODRFNDZCN0I1M0I4NDhEOD5dL0luZm8gNiAwIFIvTGVuZ3RoIDM3L1Jvb3QgOCAwIFIvU2l6ZSA3L1R5cGUvWFJlZi9XWzEgMiAwXT4+c3RyZWFtDQpo3mJiYGBgYhTIZmIQnsHEwNDNxMDIxMR4pwjIZgQIMAAlPQMUDWVuZHN0cmVhbQ1lbmRvYmoNc3RhcnR4cmVmDTExNg0lJUVPRg0="),!0,!0,!1),Module.FS_createDataFile("/assets/NoteIcons","note_paragraph_thin.pdf",decodeBase64("JVBERi0xLjYNJeLjz9MNCjcgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wgOTY0MS9PIDkvRSA0MTkwL04gMS9UIDkzNTYvSCBbIDQ0NSAxMzZdPj4NZW5kb2JqDSAgICAgICAgICAgICAgICAgICAgICAgIA0xMyAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgNC9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPEY2QTBFQTdEMkE3NjQyQjJCMUQ0NzQ4MDMxNkFCQjA3PjwyRDNGN0VDOEI5RUI0RkUzQTM2RDM2QTVBMzY0RjFFMj5dL0luZGV4WzcgMTFdL0luZm8gNiAwIFIvTGVuZ3RoIDUxL1ByZXYgOTM1Ny9Sb290IDggMCBSL1NpemUgMTgvVHlwZS9YUmVmL1dbMSAyIDFdPj5zdHJlYW0NCmjeYmJkEGBgYmAyBRIMNkCCUR1EKIDE7IDErzwGJkaGaSBZBkYI8Z9x8z+AAAMAW0cF1g1lbmRzdHJlYW0NZW5kb2JqDXN0YXJ0eHJlZg0wDSUlRU9GDSAgICAgICAgDTE3IDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9JIDY5L0xlbmd0aCA1OC9TIDM4Pj5zdHJlYW0NCmjeYmBgYGFgYPzJAAS8dxlQASMDSJajAVmMBYoZGBUYeBgKGBhfWoB4zAwMym0QLYzsAAEGANWCBPINZW5kc3RyZWFtDWVuZG9iag04IDAgb2JqDTw8L01ldGFkYXRhIDEgMCBSL1BhZ2VzIDUgMCBSL1R5cGUvQ2F0YWxvZz4+DWVuZG9iag05IDAgb2JqDTw8L0FydEJveFszLjAgMi4wIDIwLjAgMjIuMF0vQmxlZWRCb3hbMC4wIDAuMCAyNC4wIDI0LjBdL0NvbnRlbnRzIDExIDAgUi9Dcm9wQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9NZWRpYUJveFswLjAgMC4wIDI0LjAgMjQuMF0vUGFyZW50IDUgMCBSL1Jlc291cmNlczw8L0NvbG9yU3BhY2U8PC9DUzAgMTQgMCBSPj4vRXh0R1N0YXRlPDwvR1MwIDE1IDAgUj4+L1Byb3BlcnRpZXM8PC9NQzAgMTYgMCBSPj4+Pi9Sb3RhdGUgMC9UcmltQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9UeXBlL1BhZ2U+Pg1lbmRvYmoNMTAgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0ZpcnN0IDE4L0xlbmd0aCAxOTQvTiAzL1R5cGUvT2JqU3RtPj5zdHJlYW0NCmjeNI5LC8IwEIT/yh714nZjWz1IoVaRgtVixYt4iLpCMH2Qxte/N7R6HGa+mSEfPKAAaAoUApEPR0yTZC5bvgIJZ+5OsxnGaQE3qVvGeYab2pRSYxIDjTzc5j9nm2dAWMRgzYOxyGR7d9GKcf9pGJdvuyqstIwX2XF103NR5PqTWtfmKDwhfBiLSTiFMAjGwQkXqizdk35heVVWnjX3C7nhp+LXX6jKumAn9spqHqzlhw3QEA+qVX8qir4CDADkxkqEDWVuZHN0cmVhbQ1lbmRvYmoNMTEgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCAyNDk+PnN0cmVhbQ0KSIlUUTFuwzAM3PmK+4BlkpIsa61bdGmGoEPnQki7JAEST/19KcWuXUgW70gez4L6t8+f0x39YWI8PU+gGzE01N3Zdz/RB67UT++MMoOdSNhOHoC5WPnVyt8z3SBgWwLJLkIV5UI1caFO2GlWw2fD3nkbgE4Gx4OYk5MxNRpCRhediqBQTWQZ0Y1uHCwvwdqNiqLOiw1ZW17geYX13JGUBhjRGtRscwsmHBuwzuRSu7EV016U/sYVepDmEv+j1S/upXHzi6tfWP385uf3Ir/386sLL2GZiMfVm2KBtb9Bbn+yQNX6TFXEbRX6oiO9HOyZj/QrwADeR2DEDWVuZHN0cmVhbQ1lbmRvYmoNMTIgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCAyNTc0L04gMz4+c3RyZWFtDQpIiZyWeVRTdxbHf2/JnpCVsMNjDVuAsAaQNWxhkR0EUQhJCAESQkjYBUFEBRRFRISqlTLWbXRGT0WdLq5jrQ7WferSA/Uw6ug4tBbXjp0XOEedTmem0+8f7/c593fv793fvfed8wCgJ6WqtdUwCwCN1qDPSozFFhUUYqQJAAMKIAIRADJ5rS4tOyEH4JLGS7Ba3An8i55eB5BpvSJMysAw8P+JLdfpDQBAGTgHKJS1cpw7ca6qN+hM9hmceaWVJoZRE+vxBHG2NLFqnr3nfOY52sQKjVaBsylnnUKjMPFpnFfXGZU4I6k4d9WplfU4X8XZpcqoUeP83BSrUcpqAUDpJrtBKS/H2Q9nuj4nS4LzAgDIdNU7XPoOG5QNBtOlJNW6Rr1aVW7A3OUemCg0VIwlKeurlAaDMEMmr5TpFZikWqOTaRsBmL/znDim2mJ4kYNFocHBQn8f0TuF+q+bv1Cm3s7Tk8y5nkH8C29tP+dXPQqAeBavzfq3ttItAIyvBMDy5luby/sAMPG+Hb74zn34pnkpNxh0Yb6+9fX1Pmql3MdU0Df6nw6/QO+8z8d03JvyYHHKMpmxyoCZ6iavrqo26rFanUyuxIQ/HeJfHfjzeXhnKcuUeqUWj8jDp0ytVeHt1irUBnW1FlNr/1MTf2XYTzQ/17i4Y68Br9gHsC7yAPK3CwDl0gBStA3fgd70LZWSBzLwNd/h3vzczwn691PhPtOjVq2ai5Nk5WByo75ufs/0WQICoAIm4AErYA+cgTsQAn8QAsJBNIgHySAd5IACsBTIQTnQAD2oBy2gHXSBHrAebALDYDsYA7vBfnAQjIOPwQnwR3AefAmugVtgEkyDh2AGPAWvIAgiQQyIC1lBDpAr5AX5Q2IoEoqHUqEsqAAqgVSQFjJCLdAKqAfqh4ahHdBu6PfQUegEdA66BH0FTUEPoO+glzAC02EebAe7wb6wGI6BU+AceAmsgmvgJrgTXgcPwaPwPvgwfAI+D1+DJ+GH8CwCEBrCRxwRISJGJEg6UoiUIXqkFelGBpFRZD9yDDmLXEEmkUfIC5SIclEMFaLhaBKai8rRGrQV7UWH0V3oYfQ0egWdQmfQ1wQGwZbgRQgjSAmLCCpCPaGLMEjYSfiIcIZwjTBNeEokEvlEATGEmEQsIFYQm4m9xK3EA8TjxEvEu8RZEolkRfIiRZDSSTKSgdRF2kLaR/qMdJk0TXpOppEdyP7kBHIhWUvuIA+S95A/JV8m3yO/orAorpQwSjpFQWmk9FHGKMcoFynTlFdUNlVAjaDmUCuo7dQh6n7qGept6hMajeZEC6Vl0tS05bQh2u9on9OmaC/oHLonXUIvohvp6+gf0o/Tv6I/YTAYboxoRiHDwFjH2M04xfia8dyMa+ZjJjVTmLWZjZgdNrts9phJYboyY5hLmU3MQeYh5kXmIxaF5caSsGSsVtYI6yjrBmuWzWWL2OlsDbuXvYd9jn2fQ+K4ceI5Ck4n5wPOKc5dLsJ15kq4cu4K7hj3DHeaR+QJeFJeBa+H91veBG/GnGMeaJ5n3mA+Yv6J+SQf4bvxpfwqfh//IP86/6WFnUWMhdJijcV+i8sWzyxtLKMtlZbdlgcsr1m+tMKs4q0qrTZYjVvdsUatPa0zreutt1mfsX5kw7MJt5HbdNsctLlpC9t62mbZNtt+YHvBdtbO3i7RTme3xe6U3SN7vn20fYX9gP2n9g8cuA6RDmqHAYfPHP6KmWMxWBU2hJ3GZhxtHZMcjY47HCccXzkJnHKdOpwOON1xpjqLncucB5xPOs+4OLikubS47HW56UpxFbuWu252Pev6zE3glu+2ym3c7b7AUiAVNAn2Cm67M9yj3GvcR92vehA9xB6VHls9vvSEPYM8yz1HPC96wV7BXmqvrV6XvAneod5a71HvG0K6MEZYJ9wrnPLh+6T6dPiM+zz2dfEt9N3ge9b3tV+QX5XfmN8tEUeULOoQHRN95+/pL/cf8b8awAhICGgLOBLwbaBXoDJwW+Cfg7hBaUGrgk4G/SM4JFgfvD/4QYhLSEnIeyE3xDxxhrhX/HkoITQ2tC3049AXYcFhhrCDYX8PF4ZXhu8Jv79AsEC5YGzB3QinCFnEjojJSCyyJPL9yMkoxyhZ1GjUN9HO0YrondH3YjxiKmL2xTyO9YvVx34U+0wSJlkmOR6HxCXGdcdNxHPic+OH479OcEpQJexNmEkMSmxOPJ5ESEpJ2pB0Q2onlUt3S2eSQ5KXJZ9OoadkpwynfJPqmapPPZYGpyWnbUy7vdB1oXbheDpIl6ZvTL+TIcioyfhDJjEzI3Mk8y9ZoqyWrLPZ3Ozi7D3ZT3Nic/pybuW65xpzT+Yx84ryduc9y4/L78+fXOS7aNmi8wXWBeqCI4WkwrzCnYWzi+MXb1o8XRRU1FV0fYlgScOSc0utl1Yt/aSYWSwrPlRCKMkv2VPygyxdNiqbLZWWvlc6I5fIN8sfKqIVA4oHyghlv/JeWURZf9l9VYRqo+pBeVT5YPkjtUQ9rP62Iqlie8WzyvTKDyt/rMqvOqAha0o0R7UcbaX2dLV9dUP1JZ2Xrks3WRNWs6lmRp+i31kL1S6pPWLg4T9TF4zuxpXGqbrIupG65/V59Yca2A3ahguNno1rGu81JTT9phltljefbHFsaW+ZWhazbEcr1FraerLNua2zbXp54vJd7dT2yvY/dfh19Hd8vyJ/xbFOu87lnXdXJq7c22XWpe+6sSp81fbV6Gr16ok1AWu2rHndrej+osevZ7Dnh1557xdrRWuH1v64rmzdRF9w37b1xPXa9dc3RG3Y1c/ub+q/uzFt4+EBbKB74PtNxZvODQYObt9M3WzcPDmU+k8ApAFb/pi4mSSZkJn8mmia1ZtCm6+cHJyJnPedZJ3SnkCerp8dn4uf+qBpoNihR6G2oiailqMGo3aj5qRWpMelOKWpphqmi6b9p26n4KhSqMSpN6mpqhyqj6sCq3Wr6axcrNCtRK24ri2uoa8Wr4uwALB1sOqxYLHWskuywrM4s660JbSctRO1irYBtnm28Ldot+C4WbjRuUq5wro7urW7LrunvCG8m70VvY++Cr6Evv+/er/1wHDA7MFnwePCX8Lbw1jD1MRRxM7FS8XIxkbGw8dBx7/IPci8yTrJuco4yrfLNsu2zDXMtc01zbXONs62zzfPuNA50LrRPNG+0j/SwdNE08bUSdTL1U7V0dZV1tjXXNfg2GTY6Nls2fHadtr724DcBdyK3RDdlt4c3qLfKd+v4DbgveFE4cziU+Lb42Pj6+Rz5PzlhOYN5pbnH+ep6DLovOlG6dDqW+rl63Dr++yG7RHtnO4o7rTvQO/M8Fjw5fFy8f/yjPMZ86f0NPTC9VD13vZt9vv3ivgZ+Kj5OPnH+lf65/t3/Af8mP0p/br+S/7c/23//wIMAPeE8/sNZW5kc3RyZWFtDWVuZG9iag0xIDAgb2JqDTw8L0xlbmd0aCA0Njg5L1N1YnR5cGUvWE1ML1R5cGUvTWV0YWRhdGE+PnN0cmVhbQ0KPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMwMTUgODQuMTU5ODEwLCAyMDE2LzA5LzEwLTAyOjQxOjMwICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgICAgICAgICB4bWxuczpwZGY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGRmLzEuMy8iPgogICAgICAgICA8eG1wOkNyZWF0ZURhdGU+MjAxNy0wOS0xOFQxNjowMzoyMSswMjowMDwveG1wOkNyZWF0ZURhdGU+CiAgICAgICAgIDx4bXA6TWV0YWRhdGFEYXRlPjIwMTgtMDEtMjJUMDk6Mjk6MjRaPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxOC0wMS0yMlQwOToyOToyNFo8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOkNyZWF0b3JUb29sPkFkb2JlIElsbHVzdHJhdG9yIENDIDIwMTcgKE1hY2ludG9zaCk8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhtcE1NOkluc3RhbmNlSUQ+dXVpZDo3NzIwMzUzYS01ZDRhLTRlNGEtYWQ3OS1iZGRmZjE4YWY4MzQ8L3htcE1NOkluc3RhbmNlSUQ+CiAgICAgICAgIDx4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+eG1wLmRpZDo5MGY3NDMyNi00ODE1LTRkMzYtYjNhOS03ZTk0MzJmMzdlNTc8L3htcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+eG1wLmlkOjlmYmRlMjY2LWNkNGItNDZiZS04Y2ZhLTdmYzEyMDg4YTQwMzwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOlJlbmRpdGlvbkNsYXNzPnByb29mOnBkZjwveG1wTU06UmVuZGl0aW9uQ2xhc3M+CiAgICAgICAgIDx4bXBNTTpIaXN0b3J5PgogICAgICAgICAgICA8cmRmOlNlcT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+Y29udmVydGVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpwYXJhbWV0ZXJzPmZyb20gYXBwbGljYXRpb24veC1pbmRlc2lnbiB0byBhcHBsaWNhdGlvbi9wZGY8L3N0RXZ0OnBhcmFtZXRlcnM+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIEluRGVzaWduIENDIDIwMTUgKE1hY2ludG9zaCk8L3N0RXZ0OnNvZnR3YXJlQWdlbnQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpjaGFuZ2VkPi88L3N0RXZ0OmNoYW5nZWQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTYtMDMtMDlUMDk6NDM6MTgrMDE6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpTZXE+CiAgICAgICAgIDwveG1wTU06SGlzdG9yeT4KICAgICAgICAgPHhtcE1NOkRlcml2ZWRGcm9tIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgPHN0UmVmOmluc3RhbmNlSUQ+eG1wLmlpZDphZGE3OGFiNC0xN2UwLTRjMzMtYjVkOC0zZTg4Y2M5NTFiMGE8L3N0UmVmOmluc3RhbmNlSUQ+CiAgICAgICAgICAgIDxzdFJlZjpkb2N1bWVudElEPnhtcC5kaWQ6OTBmNzQzMjYtNDgxNS00ZDM2LWIzYTktN2U5NDMyZjM3ZTU3PC9zdFJlZjpkb2N1bWVudElEPgogICAgICAgICAgICA8c3RSZWY6b3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6OTBmNzQzMjYtNDgxNS00ZDM2LWIzYTktN2U5NDMyZjM3ZTU3PC9zdFJlZjpvcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgICAgIDxzdFJlZjpyZW5kaXRpb25DbGFzcz5kZWZhdWx0PC9zdFJlZjpyZW5kaXRpb25DbGFzcz4KICAgICAgICAgPC94bXBNTTpEZXJpdmVkRnJvbT4KICAgICAgICAgPGRjOmZvcm1hdD5hcHBsaWNhdGlvbi9wZGY8L2RjOmZvcm1hdD4KICAgICAgICAgPGRjOnRpdGxlPgogICAgICAgICAgICA8cmRmOkFsdD4KICAgICAgICAgICAgICAgPHJkZjpsaSB4bWw6bGFuZz0ieC1kZWZhdWx0Ij5ub3RlX3BhcmFncmFwaF90aGluPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOkFsdD4KICAgICAgICAgPC9kYzp0aXRsZT4KICAgICAgICAgPHBkZjpQcm9kdWNlcj5BZG9iZSBQREYgbGlicmFyeSAxNS4wMDwvcGRmOlByb2R1Y2VyPgogICAgICAgICA8cGRmOlRyYXBwZWQ+RmFsc2U8L3BkZjpUcmFwcGVkPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+DWVuZHN0cmVhbQ1lbmRvYmoNMiAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvRmlyc3QgNC9MZW5ndGggNDgvTiAxL1R5cGUvT2JqU3RtPj5zdHJlYW0NCmjeMlUwULCx0XfOL80rUTDU985MKY62BIoFxeqHVBak6gckpqcW29kBBBgA1ncLgA1lbmRzdHJlYW0NZW5kb2JqDTMgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0ZpcnN0IDQvTGVuZ3RoIDE3MS9OIDEvVHlwZS9PYmpTdG0+PnN0cmVhbQ0KaN5EjNEKgjAYhV9ldzqC9m+VaYgQitCF0EVXIch0PzkYm8x50dunRHR3OOc7X0KA5DkrPcqgna1kwLi6COBnyHjKEzgIvgMRAUT0SzkfX5XrkdyMWebgt4aUJdk+pI0bOWgb3Dy2lLLGqb8xBS4EZCITxydld+/UMuBPdq9qYnTvpX8TftoDUPbQwWBsXcBukl6+vJzGLozartOaJ1SslmbGovgIMAA08zyZDWVuZHN0cmVhbQ1lbmRvYmoNNCAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgMy9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPEY2QTBFQTdEMkE3NjQyQjJCMUQ0NzQ4MDMxNkFCQjA3PjwyRDNGN0VDOEI5RUI0RkUzQTM2RDM2QTVBMzY0RjFFMj5dL0luZm8gNiAwIFIvTGVuZ3RoIDM3L1Jvb3QgOCAwIFIvU2l6ZSA3L1R5cGUvWFJlZi9XWzEgMiAwXT4+c3RyZWFtDQpo3mJiYGBgYhSIY2IQmsvEwNgNxOxMjHdKmRgYGAECDAAkuQMUDWVuZHN0cmVhbQ1lbmRvYmoNc3RhcnR4cmVmDTExNg0lJUVPRg0="),!0,!0,!1),Module.FS_createDataFile("/assets/NoteIcons","note_rightarrow_thin.pdf",decodeBase64("JVBERi0xLjYNJeLjz9MNCjcgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wgOTY2OS9PIDkvRSA0MjE3L04gMS9UIDkzODQvSCBbIDQ0NSAxMzZdPj4NZW5kb2JqDSAgICAgICAgICAgICAgICAgICAgICAgIA0xMyAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgNC9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPDU2Nzc1QUJBNkRFMDQwMkQ4OTREREI5ODUxOTE2RDExPjwzQUI4ODQ0MkRBRTU0QzBCQUNDRTQyNzlEQzczRUNEOD5dL0luZGV4WzcgMTFdL0luZm8gNiAwIFIvTGVuZ3RoIDUxL1ByZXYgOTM4NS9Sb290IDggMCBSL1NpemUgMTgvVHlwZS9YUmVmL1dbMSAyIDFdPj5zdHJlYW0NCmjeYmJkEGBgYmAyBRIMNkCCUQ9EKIDEgoDEr2AGJkaGaSBZBkYI8Z9x8z+AAAMAXBQF1g1lbmRzdHJlYW0NZW5kb2JqDXN0YXJ0eHJlZg0wDSUlRU9GDSAgICAgICAgDTE3IDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9JIDY5L0xlbmd0aCA1OC9TIDM4Pj5zdHJlYW0NCmjeYmBgYGFgYPzJAAS8PxhQASMDSJajAVmMBYoZGBUYeBgeMDBrWoB4zAwMyosgWhjZAQIMANmeBNsNZW5kc3RyZWFtDWVuZG9iag04IDAgb2JqDTw8L01ldGFkYXRhIDEgMCBSL1BhZ2VzIDUgMCBSL1R5cGUvQ2F0YWxvZz4+DWVuZG9iag05IDAgb2JqDTw8L0FydEJveFsyLjAgMy41MDAxMSAyMi43OTI4IDIwLjVdL0JsZWVkQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9Db250ZW50cyAxMSAwIFIvQ3JvcEJveFswLjAgMC4wIDI0LjAgMjQuMF0vTWVkaWFCb3hbMC4wIDAuMCAyNC4wIDI0LjBdL1BhcmVudCA1IDAgUi9SZXNvdXJjZXM8PC9Db2xvclNwYWNlPDwvQ1MwIDE0IDAgUj4+L0V4dEdTdGF0ZTw8L0dTMCAxNSAwIFI+Pi9Qcm9wZXJ0aWVzPDwvTUMwIDE2IDAgUj4+Pj4vUm90YXRlIDAvVHJpbUJveFswLjAgMC4wIDI0LjAgMjQuMF0vVHlwZS9QYWdlPj4NZW5kb2JqDTEwIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCAxOC9MZW5ndGggMTk0L04gMy9UeXBlL09ialN0bT4+c3RyZWFtDQpo3jSOSwvCMBCE/8oe9eJ2Y1s9SKFWkYLVYsWLeIi6QjB9kMbXvze0ehxmvpkhHzygAGgKFAKRD0dMk2QuW74CCWfuTrMZxmkBN6lbxnmGm9qUUmMSA4083OY/Z5tnQFjEYM2Dschke3fRinH/aRiXb7sqrLSMF9lxddNzUeT6k1rX5ig8IXwYi0k4hTAIxsEJF6os3ZN+YXlVVp419wu54afi11+oyrpgJ/bKah6s5YcN0BAPqlV/Koq+AgwA5MZKhA1lbmRzdHJlYW0NZW5kb2JqDTExIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGggMjY5Pj5zdHJlYW0NCkiJTJK/bsQgDMZ3P4VfIMQYCLA2rbr0hlOHzhW6drk76S5T3742kD9KgvX7MNh8ZPz4/rs8cTzNhC+vM8IDCNnrO8j3vMAX3mGcPwnLglQfXIpI7yL9LvBAW0WLzMYFF9A6QxMFLDfQiRsM0XB22Marok8J2yiQJLdD6kkFhmQiRZxMSJOuSSYTC7pscQOKHntiMClmXccmTrITSQ9WF9psUvAHgclYt7KSa9Oc/BGDzBbYBFuF61FILuK6G7fd1mIN9254Ld6alXNuR5Jgc8CdgmXc8mpQN3DIxlvf7FPHhCfK2M3cSe3ruUX8l9KWtTRVJ/UcckUdNIR6ewV+4AxvJ/kBzvAvwABqwmc8DWVuZHN0cmVhbQ1lbmRvYmoNMTIgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCAyNTc0L04gMz4+c3RyZWFtDQpIiZyWeVRTdxbHf2/JnpCVsMNjDVuAsAaQNWxhkR0EUQhJCAESQkjYBUFEBRRFRISqlTLWbXRGT0WdLq5jrQ7WferSA/Uw6ug4tBbXjp0XOEedTmem0+8f7/c593fv793fvfed8wCgJ6WqtdUwCwCN1qDPSozFFhUUYqQJAAMKIAIRADJ5rS4tOyEH4JLGS7Ba3An8i55eB5BpvSJMysAw8P+JLdfpDQBAGTgHKJS1cpw7ca6qN+hM9hmceaWVJoZRE+vxBHG2NLFqnr3nfOY52sQKjVaBsylnnUKjMPFpnFfXGZU4I6k4d9WplfU4X8XZpcqoUeP83BSrUcpqAUDpJrtBKS/H2Q9nuj4nS4LzAgDIdNU7XPoOG5QNBtOlJNW6Rr1aVW7A3OUemCg0VIwlKeurlAaDMEMmr5TpFZikWqOTaRsBmL/znDim2mJ4kYNFocHBQn8f0TuF+q+bv1Cm3s7Tk8y5nkH8C29tP+dXPQqAeBavzfq3ttItAIyvBMDy5luby/sAMPG+Hb74zn34pnkpNxh0Yb6+9fX1Pmql3MdU0Df6nw6/QO+8z8d03JvyYHHKMpmxyoCZ6iavrqo26rFanUyuxIQ/HeJfHfjzeXhnKcuUeqUWj8jDp0ytVeHt1irUBnW1FlNr/1MTf2XYTzQ/17i4Y68Br9gHsC7yAPK3CwDl0gBStA3fgd70LZWSBzLwNd/h3vzczwn691PhPtOjVq2ai5Nk5WByo75ufs/0WQICoAIm4AErYA+cgTsQAn8QAsJBNIgHySAd5IACsBTIQTnQAD2oBy2gHXSBHrAebALDYDsYA7vBfnAQjIOPwQnwR3AefAmugVtgEkyDh2AGPAWvIAgiQQyIC1lBDpAr5AX5Q2IoEoqHUqEsqAAqgVSQFjJCLdAKqAfqh4ahHdBu6PfQUegEdA66BH0FTUEPoO+glzAC02EebAe7wb6wGI6BU+AceAmsgmvgJrgTXgcPwaPwPvgwfAI+D1+DJ+GH8CwCEBrCRxwRISJGJEg6UoiUIXqkFelGBpFRZD9yDDmLXEEmkUfIC5SIclEMFaLhaBKai8rRGrQV7UWH0V3oYfQ0egWdQmfQ1wQGwZbgRQgjSAmLCCpCPaGLMEjYSfiIcIZwjTBNeEokEvlEATGEmEQsIFYQm4m9xK3EA8TjxEvEu8RZEolkRfIiRZDSSTKSgdRF2kLaR/qMdJk0TXpOppEdyP7kBHIhWUvuIA+S95A/JV8m3yO/orAorpQwSjpFQWmk9FHGKMcoFynTlFdUNlVAjaDmUCuo7dQh6n7qGept6hMajeZEC6Vl0tS05bQh2u9on9OmaC/oHLonXUIvohvp6+gf0o/Tv6I/YTAYboxoRiHDwFjH2M04xfia8dyMa+ZjJjVTmLWZjZgdNrts9phJYboyY5hLmU3MQeYh5kXmIxaF5caSsGSsVtYI6yjrBmuWzWWL2OlsDbuXvYd9jn2fQ+K4ceI5Ck4n5wPOKc5dLsJ15kq4cu4K7hj3DHeaR+QJeFJeBa+H91veBG/GnGMeaJ5n3mA+Yv6J+SQf4bvxpfwqfh//IP86/6WFnUWMhdJijcV+i8sWzyxtLKMtlZbdlgcsr1m+tMKs4q0qrTZYjVvdsUatPa0zreutt1mfsX5kw7MJt5HbdNsctLlpC9t62mbZNtt+YHvBdtbO3i7RTme3xe6U3SN7vn20fYX9gP2n9g8cuA6RDmqHAYfPHP6KmWMxWBU2hJ3GZhxtHZMcjY47HCccXzkJnHKdOpwOON1xpjqLncucB5xPOs+4OLikubS47HW56UpxFbuWu252Pev6zE3glu+2ym3c7b7AUiAVNAn2Cm67M9yj3GvcR92vehA9xB6VHls9vvSEPYM8yz1HPC96wV7BXmqvrV6XvAneod5a71HvG0K6MEZYJ9wrnPLh+6T6dPiM+zz2dfEt9N3ge9b3tV+QX5XfmN8tEUeULOoQHRN95+/pL/cf8b8awAhICGgLOBLwbaBXoDJwW+Cfg7hBaUGrgk4G/SM4JFgfvD/4QYhLSEnIeyE3xDxxhrhX/HkoITQ2tC3049AXYcFhhrCDYX8PF4ZXhu8Jv79AsEC5YGzB3QinCFnEjojJSCyyJPL9yMkoxyhZ1GjUN9HO0YrondH3YjxiKmL2xTyO9YvVx34U+0wSJlkmOR6HxCXGdcdNxHPic+OH479OcEpQJexNmEkMSmxOPJ5ESEpJ2pB0Q2onlUt3S2eSQ5KXJZ9OoadkpwynfJPqmapPPZYGpyWnbUy7vdB1oXbheDpIl6ZvTL+TIcioyfhDJjEzI3Mk8y9ZoqyWrLPZ3Ozi7D3ZT3Nic/pybuW65xpzT+Yx84ryduc9y4/L78+fXOS7aNmi8wXWBeqCI4WkwrzCnYWzi+MXb1o8XRRU1FV0fYlgScOSc0utl1Yt/aSYWSwrPlRCKMkv2VPygyxdNiqbLZWWvlc6I5fIN8sfKqIVA4oHyghlv/JeWURZf9l9VYRqo+pBeVT5YPkjtUQ9rP62Iqlie8WzyvTKDyt/rMqvOqAha0o0R7UcbaX2dLV9dUP1JZ2Xrks3WRNWs6lmRp+i31kL1S6pPWLg4T9TF4zuxpXGqbrIupG65/V59Yca2A3ahguNno1rGu81JTT9phltljefbHFsaW+ZWhazbEcr1FraerLNua2zbXp54vJd7dT2yvY/dfh19Hd8vyJ/xbFOu87lnXdXJq7c22XWpe+6sSp81fbV6Gr16ok1AWu2rHndrej+osevZ7Dnh1557xdrRWuH1v64rmzdRF9w37b1xPXa9dc3RG3Y1c/ub+q/uzFt4+EBbKB74PtNxZvODQYObt9M3WzcPDmU+k8ApAFb/pi4mSSZkJn8mmia1ZtCm6+cHJyJnPedZJ3SnkCerp8dn4uf+qBpoNihR6G2oiailqMGo3aj5qRWpMelOKWpphqmi6b9p26n4KhSqMSpN6mpqhyqj6sCq3Wr6axcrNCtRK24ri2uoa8Wr4uwALB1sOqxYLHWskuywrM4s660JbSctRO1irYBtnm28Ldot+C4WbjRuUq5wro7urW7LrunvCG8m70VvY++Cr6Evv+/er/1wHDA7MFnwePCX8Lbw1jD1MRRxM7FS8XIxkbGw8dBx7/IPci8yTrJuco4yrfLNsu2zDXMtc01zbXONs62zzfPuNA50LrRPNG+0j/SwdNE08bUSdTL1U7V0dZV1tjXXNfg2GTY6Nls2fHadtr724DcBdyK3RDdlt4c3qLfKd+v4DbgveFE4cziU+Lb42Pj6+Rz5PzlhOYN5pbnH+ep6DLovOlG6dDqW+rl63Dr++yG7RHtnO4o7rTvQO/M8Fjw5fFy8f/yjPMZ86f0NPTC9VD13vZt9vv3ivgZ+Kj5OPnH+lf65/t3/Af8mP0p/br+S/7c/23//wIMAPeE8/sNZW5kc3RyZWFtDWVuZG9iag0xIDAgb2JqDTw8L0xlbmd0aCA0NjkwL1N1YnR5cGUvWE1ML1R5cGUvTWV0YWRhdGE+PnN0cmVhbQ0KPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMwMTUgODQuMTU5ODEwLCAyMDE2LzA5LzEwLTAyOjQxOjMwICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgICAgICAgICB4bWxuczpwZGY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGRmLzEuMy8iPgogICAgICAgICA8eG1wOkNyZWF0ZURhdGU+MjAxNy0wOS0xOFQxNjowMzoxOSswMjowMDwveG1wOkNyZWF0ZURhdGU+CiAgICAgICAgIDx4bXA6TWV0YWRhdGFEYXRlPjIwMTgtMDEtMjJUMDk6Mjk6MjNaPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxOC0wMS0yMlQwOToyOToyM1o8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOkNyZWF0b3JUb29sPkFkb2JlIElsbHVzdHJhdG9yIENDIDIwMTcgKE1hY2ludG9zaCk8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhtcE1NOkluc3RhbmNlSUQ+dXVpZDo0YzM4MzFlNi1mMzNiLWVlNDQtYWM1Yy0wYTllNGViM2JjNWE8L3htcE1NOkluc3RhbmNlSUQ+CiAgICAgICAgIDx4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+eG1wLmRpZDo5MGY3NDMyNi00ODE1LTRkMzYtYjNhOS03ZTk0MzJmMzdlNTc8L3htcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+eG1wLmlkOjlmYmRlMjY2LWNkNGItNDZiZS04Y2ZhLTdmYzEyMDg4YTQwMzwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOlJlbmRpdGlvbkNsYXNzPnByb29mOnBkZjwveG1wTU06UmVuZGl0aW9uQ2xhc3M+CiAgICAgICAgIDx4bXBNTTpIaXN0b3J5PgogICAgICAgICAgICA8cmRmOlNlcT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+Y29udmVydGVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpwYXJhbWV0ZXJzPmZyb20gYXBwbGljYXRpb24veC1pbmRlc2lnbiB0byBhcHBsaWNhdGlvbi9wZGY8L3N0RXZ0OnBhcmFtZXRlcnM+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIEluRGVzaWduIENDIDIwMTUgKE1hY2ludG9zaCk8L3N0RXZ0OnNvZnR3YXJlQWdlbnQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpjaGFuZ2VkPi88L3N0RXZ0OmNoYW5nZWQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTYtMDMtMDlUMDk6NDM6MTgrMDE6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpTZXE+CiAgICAgICAgIDwveG1wTU06SGlzdG9yeT4KICAgICAgICAgPHhtcE1NOkRlcml2ZWRGcm9tIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgPHN0UmVmOmluc3RhbmNlSUQ+eG1wLmlpZDphZGE3OGFiNC0xN2UwLTRjMzMtYjVkOC0zZTg4Y2M5NTFiMGE8L3N0UmVmOmluc3RhbmNlSUQ+CiAgICAgICAgICAgIDxzdFJlZjpkb2N1bWVudElEPnhtcC5kaWQ6OTBmNzQzMjYtNDgxNS00ZDM2LWIzYTktN2U5NDMyZjM3ZTU3PC9zdFJlZjpkb2N1bWVudElEPgogICAgICAgICAgICA8c3RSZWY6b3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6OTBmNzQzMjYtNDgxNS00ZDM2LWIzYTktN2U5NDMyZjM3ZTU3PC9zdFJlZjpvcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgICAgIDxzdFJlZjpyZW5kaXRpb25DbGFzcz5kZWZhdWx0PC9zdFJlZjpyZW5kaXRpb25DbGFzcz4KICAgICAgICAgPC94bXBNTTpEZXJpdmVkRnJvbT4KICAgICAgICAgPGRjOmZvcm1hdD5hcHBsaWNhdGlvbi9wZGY8L2RjOmZvcm1hdD4KICAgICAgICAgPGRjOnRpdGxlPgogICAgICAgICAgICA8cmRmOkFsdD4KICAgICAgICAgICAgICAgPHJkZjpsaSB4bWw6bGFuZz0ieC1kZWZhdWx0Ij5ub3RlX3JpZ2h0YXJyb3dfdGhpbjwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpBbHQ+CiAgICAgICAgIDwvZGM6dGl0bGU+CiAgICAgICAgIDxwZGY6UHJvZHVjZXI+QWRvYmUgUERGIGxpYnJhcnkgMTUuMDA8L3BkZjpQcm9kdWNlcj4KICAgICAgICAgPHBkZjpUcmFwcGVkPkZhbHNlPC9wZGY6VHJhcHBlZD4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/Pg1lbmRzdHJlYW0NZW5kb2JqDTIgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0ZpcnN0IDQvTGVuZ3RoIDQ4L04gMS9UeXBlL09ialN0bT4+c3RyZWFtDQpo3jJVMFCwsdF3zi/NK1Ew1PfOTCmOtgSKBcXqh1QWpOoHJKanFtvZAQQYANZ3C4ANZW5kc3RyZWFtDWVuZG9iag0zIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCA0L0xlbmd0aCAxNzEvTiAxL1R5cGUvT2JqU3RtPj5zdHJlYW0NCmjeRIzRCoIwGEZfZXduBO3fJMsQIRShC8GLrkKQqSMHY5PfSfT2JRHdnu98JyFAsowXqFUw3pUqaFqeJYgjpOIkEohFugMZAUTsa3mkl9H3mlytXZeAGyFFQbYPaWmtBuOCX6aWMV778V88gZASUpnK+M54g35cB/2LNWVFrOlR4YuIwx6A8ZsJVlPng+7QPKagEP2zC5Nxnw3VPOuRV8ouOs/fAgwAe349Mg1lbmRzdHJlYW0NZW5kb2JqDTQgMCBvYmoNPDwvRGVjb2RlUGFybXM8PC9Db2x1bW5zIDMvUHJlZGljdG9yIDEyPj4vRmlsdGVyL0ZsYXRlRGVjb2RlL0lEWzw1Njc3NUFCQTZERTA0MDJEODk0RERCOTg1MTkxNkQxMT48M0FCODg0NDJEQUU1NEMwQkFDQ0U0Mjc5REM3M0VDRDg+XS9JbmZvIDYgMCBSL0xlbmd0aCAzNy9Sb290IDggMCBSL1NpemUgNy9UeXBlL1hSZWYvV1sxIDIgMF0+PnN0cmVhbQ0KaN5iYmBgYGIUqGRiEJ7HxMDQzcTAyM7EeCcSyGYECDAAJnkDFA1lbmRzdHJlYW0NZW5kb2JqDXN0YXJ0eHJlZg0xMTYNJSVFT0YN"),!0,!0,!1),Module.FS_createDataFile("/assets/NoteIcons","note_rightpointer_thin.pdf",decodeBase64("JVBERi0xLjYNJeLjz9MNCjcgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wgOTY5Mi9PIDkvRSA0MjM3L04gMS9UIDk0MDcvSCBbIDQ0NiAxMzZdPj4NZW5kb2JqDSAgICAgICAgICAgICAgICAgICAgICAgIA0xMyAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgNC9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPDJDODJDQzA5RjlFRTREMDk5MEQwNkQ4MzM1MkZBNTc0PjxBN0VDNzQ5NjQzQzQ0QTdGOUUxNTQ1QzdCQjJGNkRFMD5dL0luZGV4WzcgMTFdL0luZm8gNiAwIFIvTGVuZ3RoIDUxL1ByZXYgOTQwOC9Sb290IDggMCBSL1NpemUgMTgvVHlwZS9YUmVmL1dbMSAyIDFdPj5zdHJlYW0NCmjeYmJkEGBgYmAyAxIMNkCC0QREKIDE4oHEL3sGJkaGaSBZBkYI8Z9xyz+AAAMAXMoF1w1lbmRzdHJlYW0NZW5kb2JqDXN0YXJ0eHJlZg0wDSUlRU9GDSAgICAgICAgIA0xNyAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvSSA2OS9MZW5ndGggNTgvUyAzOD4+c3RyZWFtDQpo3mJgYGBhYGD8xQAEfNwMqICRASTL0YAsxgLFDIwKDDyMDgzMPy1APGYGBuUdEC2MHAABBgCaGwQ4DWVuZHN0cmVhbQ1lbmRvYmoNOCAwIG9iag08PC9NZXRhZGF0YSAxIDAgUi9QYWdlcyA1IDAgUi9UeXBlL0NhdGFsb2c+Pg1lbmRvYmoNOSAwIG9iag08PC9BcnRCb3hbMC45OTk5NTQgMC45OTk5MjQgMjMuMCAyMy4wMDAxXS9CbGVlZEJveFswLjAgMC4wIDI0LjAgMjQuMF0vQ29udGVudHMgMTEgMCBSL0Nyb3BCb3hbMC4wIDAuMCAyNC4wIDI0LjBdL01lZGlhQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9QYXJlbnQgNSAwIFIvUmVzb3VyY2VzPDwvQ29sb3JTcGFjZTw8L0NTMCAxNCAwIFI+Pi9FeHRHU3RhdGU8PC9HUzAgMTUgMCBSPj4vUHJvcGVydGllczw8L01DMCAxNiAwIFI+Pj4+L1JvdGF0ZSAwL1RyaW1Cb3hbMC4wIDAuMCAyNC4wIDI0LjBdL1R5cGUvUGFnZT4+DWVuZG9iag0xMCAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvRmlyc3QgMTgvTGVuZ3RoIDE5NC9OIDMvVHlwZS9PYmpTdG0+PnN0cmVhbQ0KaN40jksLwjAQhP/KHvXidmNbPUihVpGC1WLFi3iIukIwfZDG1783tHocZr6ZIR88oABoChQCkQ9HTJNkLlu+Agln7k6zGcZpATepW8Z5hpvalFJjEgONPNzmP2ebZ0BYxGDNg7HIZHt30Ypx/2kYl2+7Kqy0jBfZcXXTc1Hk+pNa1+YoPCF8GItJOIUwCMbBCReqLN2TfmF5VVaeNfcLueGn4tdfqMq6YCf2ymoerOWHDdAQD6pVfyqKvgIMAOTGSoQNZW5kc3RyZWFtDWVuZG9iag0xMSAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDI4Mj4+c3RyZWFtDQpIiUxRMW7DMAzc+Qp+wAxJWZG11i26NEPQoXMRpF2SAEmm/r5Hxi4K2xB5PumOp83b58/xxpvdrPz0PDNdSdnHeAd8tyN98IU287vy4c6aD98PgF4Bfd/pypagcRFVreyFD2cK6EyDSi0d5WCijdG6TdGMdYpuCy4NLooCqDcsLtZCXLwktRXjIc52cF06MOMTrX9skt6nAJaN1qVtnddTXaV5+9N0k9JC9GEIbZucF5+De3j1UFIpOj4Q2WpPaoegytTHZWMHD/oJmCdwIujXZgmMSCNmB7e2pYwhokAUY+GVjKXyelRHSpYWstVsT7T4UMyFSNPe4z4wTbhG3hluphOAoqjY7P9BrF+0p5cd7npPvwIMALLwYfkNZW5kc3RyZWFtDWVuZG9iag0xMiAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDI1NzQvTiAzPj5zdHJlYW0NCkiJnJZ5VFN3Fsd/b8mekJWww2MNW4CwBpA1bGGRHQRRCEkIARJCSNgFQUQFFEVEhKqVMtZtdEZPRZ0urmOtDtZ96tID9TDq6Di0FteOnRc4R51OZ6bT7x/v9zn3d+/v3d+9953zAKAnpaq11TALAI3WoM9KjMUWFRRipAkAAwogAhEAMnmtLi07IQfgksZLsFrcCfyLnl4HkGm9IkzKwDDw/4kt1+kNAEAZOAcolLVynDtxrqo36Ez2GZx5pZUmhlET6/EEcbY0sWqeved85jnaxAqNVoGzKWedQqMw8WmcV9cZlTgjqTh31amV9ThfxdmlyqhR4/zcFKtRymoBQOkmu0EpL8fZD2e6PidLgvMCAMh01Ttc+g4blA0G06Uk1bpGvVpVbsDc5R6YKDRUjCUp66uUBoMwQyavlOkVmKRao5NpGwGYv/OcOKbaYniRg0WhwcFCfx/RO4X6r5u/UKbeztOTzLmeQfwLb20/51c9CoB4Fq/N+re20i0AjK8EwPLmW5vL+wAw8b4dvvjOffimeSk3GHRhvr719fU+aqXcx1TQN/qfDr9A77zPx3Tcm/JgccoymbHKgJnqJq+uqjbqsVqdTK7EhD8d4l8d+PN5eGcpy5R6pRaPyMOnTK1V4e3WKtQGdbUWU2v/UxN/ZdhPND/XuLhjrwGv2AewLvIA8rcLAOXSAFK0Dd+B3vQtlZIHMvA13+He/NzPCfr3U+E+06NWrZqLk2TlYHKjvm5+z/RZAgKgAibgAStgD5yBOxACfxACwkE0iAfJIB3kgAKwFMhBOdAAPagHLaAddIEesB5sAsNgOxgDu8F+cBCMg4/BCfBHcB58Ca6BW2ASTIOHYAY8Ba8gCCJBDIgLWUEOkCvkBflDYigSiodSoSyoACqBVJAWMkIt0AqoB+qHhqEd0G7o99BR6AR0DroEfQVNQQ+g76CXMALTYR5sB7vBvrAYjoFT4Bx4CayCa+AmuBNeBw/Bo/A++DB8Aj4PX4Mn4YfwLAIQGsJHHBEhIkYkSDpSiJQheqQV6UYGkVFkP3IMOYtcQSaRR8gLlIhyUQwVouFoEpqLytEatBXtRYfRXehh9DR6BZ1CZ9DXBAbBluBFCCNICYsIKkI9oYswSNhJ+IhwhnCNME14SiQS+UQBMYSYRCwgVhCbib3ErcQDxOPES8S7xFkSiWRF8iJFkNJJMpKB1EXaQtpH+ox0mTRNek6mkR3I/uQEciFZS+4gD5L3kD8lXybfI7+isCiulDBKOkVBaaT0UcYoxygXKdOUV1Q2VUCNoOZQK6jt1CHqfuoZ6m3qExqN5kQLpWXS1LTltCHa72if06ZoL+gcuiddQi+iG+nr6B/Sj9O/oj9hMBhujGhGIcPAWMfYzTjF+Jrx3Ixr5mMmNVOYtZmNmB02u2z2mElhujJjmEuZTcxB5iHmReYjFoXlxpKwZKxW1gjrKOsGa5bNZYvY6WwNu5e9h32OfZ9D4rhx4jkKTifnA84pzl0uwnXmSrhy7gruGPcMd5pH5Al4Ul4Fr4f3W94Eb8acYx5onmfeYD5i/on5JB/hu/Gl/Cp+H/8g/zr/pYWdRYyF0mKNxX6LyxbPLG0soy2Vlt2WByyvWb60wqzirSqtNliNW92xRq09rTOt6623WZ+xfmTDswm3kdt02xy0uWkL23raZtk2235ge8F21s7eLtFOZ7fF7pTdI3u+fbR9hf2A/af2Dxy4DpEOaocBh88c/oqZYzFYFTaEncZmHG0dkxyNjjscJxxfOQmccp06nA443XGmOoudy5wHnE86z7g4uKS5tLjsdbnpSnEVu5a7bnY96/rMTeCW77bKbdztvsBSIBU0CfYKbrsz3KPca9xH3a96ED3EHpUeWz2+9IQ9gzzLPUc8L3rBXsFeaq+tXpe8Cd6h3lrvUe8bQrowRlgn3Cuc8uH7pPp0+Iz7PPZ18S303eB71ve1X5Bfld+Y3y0RR5Qs6hAdE33n7+kv9x/xvxrACEgIaAs4EvBtoFegMnBb4J+DuEFpQauCTgb9IzgkWB+8P/hBiEtISch7ITfEPHGGuFf8eSghNDa0LfTj0BdhwWGGsINhfw8XhleG7wm/v0CwQLlgbMHdCKcIWcSOiMlILLIk8v3IySjHKFnUaNQ30c7Riuid0fdiPGIqYvbFPI71i9XHfhT7TBImWSY5HofEJcZ1x03Ec+Jz44fjv05wSlAl7E2YSQxKbE48nkRISknakHRDaieVS3dLZ5JDkpcln06hp2SnDKd8k+qZqk89lganJadtTLu90HWhduF4OkiXpm9Mv5MhyKjJ+EMmMTMjcyTzL1mirJass9nc7OLsPdlPc2Jz+nJu5brnGnNP5jHzivJ25z3Lj8vvz59c5Lto2aLzBdYF6oIjhaTCvMKdhbOL4xdvWjxdFFTUVXR9iWBJw5JzS62XVi39pJhZLCs+VEIoyS/ZU/KDLF02KpstlZa+Vzojl8g3yx8qohUDigfKCGW/8l5ZRFl/2X1VhGqj6kF5VPlg+SO1RD2s/rYiqWJ7xbPK9MoPK3+syq86oCFrSjRHtRxtpfZ0tX11Q/UlnZeuSzdZE1azqWZGn6LfWQvVLqk9YuDhP1MXjO7Glcapusi6kbrn9Xn1hxrYDdqGC42ejWsa7zUlNP2mGW2WN59scWxpb5laFrNsRyvUWtp6ss25rbNtenni8l3t1PbK9j91+HX0d3y/In/FsU67zuWdd1cmrtzbZdal77qxKnzV9tXoavXqiTUBa7ased2t6P6ix69nsOeHXnnvF2tFa4fW/riubN1EX3DftvXE9dr11zdEbdjVz+5v6r+7MW3j4QFsoHvg+03Fm84NBg5u30zdbNw8OZT6TwCkAVv+mLiZJJmQmfyaaJrVm0Kbr5wcnImc951kndKeQJ6unx2fi5/6oGmg2KFHobaiJqKWowajdqPmpFakx6U4pammGqaLpv2nbqfgqFKoxKk3qamqHKqPqwKrdavprFys0K1ErbiuLa6hrxavi7AAsHWw6rFgsdayS7LCszizrrQltJy1E7WKtgG2ebbwt2i34LhZuNG5SrnCuju6tbsuu6e8IbybvRW9j74KvoS+/796v/XAcMDswWfB48JfwtvDWMPUxFHEzsVLxcjGRsbDx0HHv8g9yLzJOsm5yjjKt8s2y7bMNcy1zTXNtc42zrbPN8+40DnQutE80b7SP9LB00TTxtRJ1MvVTtXR1lXW2Ndc1+DYZNjo2WzZ8dp22vvbgNwF3IrdEN2W3hzeot8p36/gNuC94UThzOJT4tvjY+Pr5HPk/OWE5g3mlucf56noMui86Ubp0Opb6uXrcOv77IbtEe2c7ijutO9A78zwWPDl8XLx//KM8xnzp/Q09ML1UPXe9m32+/eK+Bn4qPk4+cf6V/rn+3f8B/yY/Sn9uv5L/tz/bf//AgwA94Tz+w1lbmRzdHJlYW0NZW5kb2JqDTEgMCBvYmoNPDwvTGVuZ3RoIDQ2OTIvU3VidHlwZS9YTUwvVHlwZS9NZXRhZGF0YT4+c3RyZWFtDQo8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzAxNSA4NC4xNTk4MTAsIDIwMTYvMDkvMTAtMDI6NDE6MzAgICAgICAgICI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgICAgICAgICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICAgICAgICAgIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiCiAgICAgICAgICAgIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnBkZj0iaHR0cDovL25zLmFkb2JlLmNvbS9wZGYvMS4zLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRlRGF0ZT4yMDE3LTA5LTE4VDE2OjAzOjE5KzAyOjAwPC94bXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhtcDpNZXRhZGF0YURhdGU+MjAxOC0wMS0yMlQwOToyOToyM1o8L3htcDpNZXRhZGF0YURhdGU+CiAgICAgICAgIDx4bXA6TW9kaWZ5RGF0ZT4yMDE4LTAxLTIyVDA5OjI5OjIzWjwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+QWRvYmUgSWxsdXN0cmF0b3IgQ0MgMjAxNyAoTWFjaW50b3NoKTwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8eG1wTU06SW5zdGFuY2VJRD51dWlkOmJiOWQxOGU5LWRhZTEtNGU0Yi05ZGQ3LThmNmJlNmI5M2EyMTwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD54bXAuZGlkOjkwZjc0MzI2LTQ4MTUtNGQzNi1iM2E5LTdlOTQzMmYzN2U1NzwveG1wTU06T3JpZ2luYWxEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06RG9jdW1lbnRJRD54bXAuaWQ6OWZiZGUyNjYtY2Q0Yi00NmJlLThjZmEtN2ZjMTIwODhhNDAzPC94bXBNTTpEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06UmVuZGl0aW9uQ2xhc3M+cHJvb2Y6cGRmPC94bXBNTTpSZW5kaXRpb25DbGFzcz4KICAgICAgICAgPHhtcE1NOkhpc3Rvcnk+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5jb252ZXJ0ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnBhcmFtZXRlcnM+ZnJvbSBhcHBsaWNhdGlvbi94LWluZGVzaWduIHRvIGFwcGxpY2F0aW9uL3BkZjwvc3RFdnQ6cGFyYW1ldGVycz4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgSW5EZXNpZ24gQ0MgMjAxNSAoTWFjaW50b3NoKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxNi0wMy0wOVQwOTo0MzoxOCswMTowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8eG1wTU06RGVyaXZlZEZyb20gcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICA8c3RSZWY6aW5zdGFuY2VJRD54bXAuaWlkOmFkYTc4YWI0LTE3ZTAtNGMzMy1iNWQ4LTNlODhjYzk1MWIwYTwvc3RSZWY6aW5zdGFuY2VJRD4KICAgICAgICAgICAgPHN0UmVmOmRvY3VtZW50SUQ+eG1wLmRpZDo5MGY3NDMyNi00ODE1LTRkMzYtYjNhOS03ZTk0MzJmMzdlNTc8L3N0UmVmOmRvY3VtZW50SUQ+CiAgICAgICAgICAgIDxzdFJlZjpvcmlnaW5hbERvY3VtZW50SUQ+eG1wLmRpZDo5MGY3NDMyNi00ODE1LTRkMzYtYjNhOS03ZTk0MzJmMzdlNTc8L3N0UmVmOm9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgICAgPHN0UmVmOnJlbmRpdGlvbkNsYXNzPmRlZmF1bHQ8L3N0UmVmOnJlbmRpdGlvbkNsYXNzPgogICAgICAgICA8L3htcE1NOkRlcml2ZWRGcm9tPgogICAgICAgICA8ZGM6Zm9ybWF0PmFwcGxpY2F0aW9uL3BkZjwvZGM6Zm9ybWF0PgogICAgICAgICA8ZGM6dGl0bGU+CiAgICAgICAgICAgIDxyZGY6QWx0PgogICAgICAgICAgICAgICA8cmRmOmxpIHhtbDpsYW5nPSJ4LWRlZmF1bHQiPm5vdGVfcmlnaHRwb2ludGVyX3RoaW48L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6QWx0PgogICAgICAgICA8L2RjOnRpdGxlPgogICAgICAgICA8cGRmOlByb2R1Y2VyPkFkb2JlIFBERiBsaWJyYXJ5IDE1LjAwPC9wZGY6UHJvZHVjZXI+CiAgICAgICAgIDxwZGY6VHJhcHBlZD5GYWxzZTwvcGRmOlRyYXBwZWQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4NZW5kc3RyZWFtDWVuZG9iag0yIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCA0L0xlbmd0aCA0OC9OIDEvVHlwZS9PYmpTdG0+PnN0cmVhbQ0KaN4yVTBQsLHRd84vzStRMNT3zkwpjrYEigXF6odUFqTqBySmpxbb2QEEGADWdwuADWVuZHN0cmVhbQ1lbmRvYmoNMyAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvRmlyc3QgNC9MZW5ndGggMTcyL04gMS9UeXBlL09ialN0bT4+c3RyZWFtDQpo3kTMTQuCMBgH8K+ym46gPZtkGSKEInQQPHQKQaY+5GA4eZyHvn1KRNf/yy9mwNJU5ITaGzcV2mNYXBXIMyTyImOIZHIAFQAE/LtyFN4G1yG7W7sunvaE5TnbP6wJK92bybtlbDgXlRv+4gWkUpCoREVPLmpyw9rjD6uLklnTkaY3k6cjABcP4y2Gk/PYknmNfnYbjNT60UxbS3qecRCltgtm2UeAAQD5/z4IDWVuZHN0cmVhbQ1lbmRvYmoNNCAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgMy9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPDJDODJDQzA5RjlFRTREMDk5MEQwNkQ4MzM1MkZBNTc0PjxBN0VDNzQ5NjQzQzQ0QTdGOUUxNTQ1QzdCQjJGNkRFMD5dL0luZm8gNiAwIFIvTGVuZ3RoIDM3L1Jvb3QgOCAwIFIvU2l6ZSA3L1R5cGUvWFJlZi9XWzEgMiAwXT4+c3RyZWFtDQpo3mJiYGBgYhToZWIQXsDEwNDNxMDIwcR4xwnIZgQIMAAn1QMUDWVuZHN0cmVhbQ1lbmRvYmoNc3RhcnR4cmVmDTExNg0lJUVPRg0="),!0,!0,!1),Module.FS_createDataFile("/assets/NoteIcons","note_star_thin.pdf",decodeBase64("JVBERi0xLjYNJeLjz9MNCjcgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wgOTg3Ni9PIDkvRSA0NDM2L04gMS9UIDk1OTEvSCBbIDQ0NiAxMzZdPj4NZW5kb2JqDSAgICAgICAgICAgICAgICAgICAgICAgIA0xMyAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgNC9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPEJBQ0Y3MDI5MjNCNTQ4RUFCMDMzNjlBMzM5Q0NGN0I2PjxFMzdFRjVBMkE2RTI0M0FFOEU3MjY1RDk2NDEyQzEwRT5dL0luZGV4WzcgMTFdL0luZm8gNiAwIFIvTGVuZ3RoIDUxL1ByZXYgOTU5Mi9Sb290IDggMCBSL1NpemUgMTgvVHlwZS9YUmVmL1dbMSAyIDFdPj5zdHJlYW0NCmjeYmJkEGBgYmAyAxIMNkCC0QJEKIDElIDErwoGJkaGaSBZBkYI8Z9xyz+AAAMAW9UF1w1lbmRzdHJlYW0NZW5kb2JqDXN0YXJ0eHJlZg0wDSUlRU9GDSAgICAgICAgIA0xNyAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvSSA2OS9MZW5ndGggNTgvUyAzOD4+c3RyZWFtDQpo3mJgYGBhYGD8xQAEfJcYUAEjA0iWowFZjAWKGRgVGHgYGxgENC1APGYGBpVyiBZGRoAAAwDG4QQ1DWVuZHN0cmVhbQ1lbmRvYmoNOCAwIG9iag08PC9NZXRhZGF0YSAxIDAgUi9QYWdlcyA1IDAgUi9UeXBlL0NhdGFsb2c+Pg1lbmRvYmoNOSAwIG9iag08PC9BcnRCb3hbMC4wNjk1MDM4IDAuMTE5ODEyIDIzLjkzMDUgMjMuMDMyNl0vQmxlZWRCb3hbMC4wIDAuMCAyNC4wIDI0LjBdL0NvbnRlbnRzIDExIDAgUi9Dcm9wQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9NZWRpYUJveFswLjAgMC4wIDI0LjAgMjQuMF0vUGFyZW50IDUgMCBSL1Jlc291cmNlczw8L0NvbG9yU3BhY2U8PC9DUzAgMTQgMCBSPj4vRXh0R1N0YXRlPDwvR1MwIDE1IDAgUj4+L1Byb3BlcnRpZXM8PC9NQzAgMTYgMCBSPj4+Pi9Sb3RhdGUgMC9UcmltQm94WzAuMCAwLjAgMjQuMCAyNC4wXS9UeXBlL1BhZ2U+Pg1lbmRvYmoNMTAgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0ZpcnN0IDE4L0xlbmd0aCAxOTQvTiAzL1R5cGUvT2JqU3RtPj5zdHJlYW0NCmjeNI5LC8IwEIT/yh714nZjWz1IoVaRgtVixYt4iLpCMH2Qxte/N7R6HGa+mSEfPKAAaAoUApEPR0yTZC5bvgIJZ+5OsxnGaQE3qVvGeYab2pRSYxIDjTzc5j9nm2dAWMRgzYOxyGR7d9GKcf9pGJdvuyqstIwX2XF103NR5PqTWtfmKDwhfBiLSTiFMAjGwQkXqizdk35heVVWnjX3C7nhp+LXX6jKumAn9spqHqzlhw3QEA+qVX8qir4CDADkxkqEDWVuZHN0cmVhbQ1lbmRvYmoNMTEgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCA0Nzc+PnN0cmVhbQ0KSIlcVD1vHEEI7edX8Afg5nuYNpcoTVxYKVJHKyfN2ZJ9Vf59gPHZw2l3T/tggMeDvdOP3/+e3uD0cI7w5esZwmuIkKveKM/bU/gFL+F0/hnhuEK0C66HmL6L6e81vEIyY4KUIReKJWc4noPangNGmoPlFRNxYRDcLTWlqrbWGhwBC80MODQYLgEndd5gkqA2bgZMEpbMb1aBnCYgU+OhyZIkFw6SpaXlH7OAZml54RhXmhSLBnQqVQ9UqsxakFeCNGn2vgylKmshUq1Uzl1gohqNN8dmcHLWhIMKJzFkal3COvU5DU7RCJscSx9QjjdqFv/hj5UNDo2u1LuhKlFHiMYrTuXlXJfgA33W+6Kekyd8349v12vhpdK8Xss7tc2wj8MP636WftR+D/YlOYLfoH29pOS+ereF1MvUzLKmUchp/+LNupyxsb6WYZs6tICI3IfyXBVW9U80VxMKhWZcqFSlySreFD3q4jmlUio0snLrpEdFzCZug2MYHh06JeUtYJ9gfJ+g4FI2L/NKxHMoKm2hXt6Xplv7F1233bkMWyz6xHhfFz0tdJTR9bO+bNcvOj3Wx72phU5J3FWWZHczQDeihW/Tw8+R6s8R/oTH8O1B/uAew38BBgDra/EqDWVuZHN0cmVhbQ1lbmRvYmoNMTIgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCAyNTc0L04gMz4+c3RyZWFtDQpIiZyWeVRTdxbHf2/JnpCVsMNjDVuAsAaQNWxhkR0EUQhJCAESQkjYBUFEBRRFRISqlTLWbXRGT0WdLq5jrQ7WferSA/Uw6ug4tBbXjp0XOEedTmem0+8f7/c593fv793fvfed8wCgJ6WqtdUwCwCN1qDPSozFFhUUYqQJAAMKIAIRADJ5rS4tOyEH4JLGS7Ba3An8i55eB5BpvSJMysAw8P+JLdfpDQBAGTgHKJS1cpw7ca6qN+hM9hmceaWVJoZRE+vxBHG2NLFqnr3nfOY52sQKjVaBsylnnUKjMPFpnFfXGZU4I6k4d9WplfU4X8XZpcqoUeP83BSrUcpqAUDpJrtBKS/H2Q9nuj4nS4LzAgDIdNU7XPoOG5QNBtOlJNW6Rr1aVW7A3OUemCg0VIwlKeurlAaDMEMmr5TpFZikWqOTaRsBmL/znDim2mJ4kYNFocHBQn8f0TuF+q+bv1Cm3s7Tk8y5nkH8C29tP+dXPQqAeBavzfq3ttItAIyvBMDy5luby/sAMPG+Hb74zn34pnkpNxh0Yb6+9fX1Pmql3MdU0Df6nw6/QO+8z8d03JvyYHHKMpmxyoCZ6iavrqo26rFanUyuxIQ/HeJfHfjzeXhnKcuUeqUWj8jDp0ytVeHt1irUBnW1FlNr/1MTf2XYTzQ/17i4Y68Br9gHsC7yAPK3CwDl0gBStA3fgd70LZWSBzLwNd/h3vzczwn691PhPtOjVq2ai5Nk5WByo75ufs/0WQICoAIm4AErYA+cgTsQAn8QAsJBNIgHySAd5IACsBTIQTnQAD2oBy2gHXSBHrAebALDYDsYA7vBfnAQjIOPwQnwR3AefAmugVtgEkyDh2AGPAWvIAgiQQyIC1lBDpAr5AX5Q2IoEoqHUqEsqAAqgVSQFjJCLdAKqAfqh4ahHdBu6PfQUegEdA66BH0FTUEPoO+glzAC02EebAe7wb6wGI6BU+AceAmsgmvgJrgTXgcPwaPwPvgwfAI+D1+DJ+GH8CwCEBrCRxwRISJGJEg6UoiUIXqkFelGBpFRZD9yDDmLXEEmkUfIC5SIclEMFaLhaBKai8rRGrQV7UWH0V3oYfQ0egWdQmfQ1wQGwZbgRQgjSAmLCCpCPaGLMEjYSfiIcIZwjTBNeEokEvlEATGEmEQsIFYQm4m9xK3EA8TjxEvEu8RZEolkRfIiRZDSSTKSgdRF2kLaR/qMdJk0TXpOppEdyP7kBHIhWUvuIA+S95A/JV8m3yO/orAorpQwSjpFQWmk9FHGKMcoFynTlFdUNlVAjaDmUCuo7dQh6n7qGept6hMajeZEC6Vl0tS05bQh2u9on9OmaC/oHLonXUIvohvp6+gf0o/Tv6I/YTAYboxoRiHDwFjH2M04xfia8dyMa+ZjJjVTmLWZjZgdNrts9phJYboyY5hLmU3MQeYh5kXmIxaF5caSsGSsVtYI6yjrBmuWzWWL2OlsDbuXvYd9jn2fQ+K4ceI5Ck4n5wPOKc5dLsJ15kq4cu4K7hj3DHeaR+QJeFJeBa+H91veBG/GnGMeaJ5n3mA+Yv6J+SQf4bvxpfwqfh//IP86/6WFnUWMhdJijcV+i8sWzyxtLKMtlZbdlgcsr1m+tMKs4q0qrTZYjVvdsUatPa0zreutt1mfsX5kw7MJt5HbdNsctLlpC9t62mbZNtt+YHvBdtbO3i7RTme3xe6U3SN7vn20fYX9gP2n9g8cuA6RDmqHAYfPHP6KmWMxWBU2hJ3GZhxtHZMcjY47HCccXzkJnHKdOpwOON1xpjqLncucB5xPOs+4OLikubS47HW56UpxFbuWu252Pev6zE3glu+2ym3c7b7AUiAVNAn2Cm67M9yj3GvcR92vehA9xB6VHls9vvSEPYM8yz1HPC96wV7BXmqvrV6XvAneod5a71HvG0K6MEZYJ9wrnPLh+6T6dPiM+zz2dfEt9N3ge9b3tV+QX5XfmN8tEUeULOoQHRN95+/pL/cf8b8awAhICGgLOBLwbaBXoDJwW+Cfg7hBaUGrgk4G/SM4JFgfvD/4QYhLSEnIeyE3xDxxhrhX/HkoITQ2tC3049AXYcFhhrCDYX8PF4ZXhu8Jv79AsEC5YGzB3QinCFnEjojJSCyyJPL9yMkoxyhZ1GjUN9HO0YrondH3YjxiKmL2xTyO9YvVx34U+0wSJlkmOR6HxCXGdcdNxHPic+OH479OcEpQJexNmEkMSmxOPJ5ESEpJ2pB0Q2onlUt3S2eSQ5KXJZ9OoadkpwynfJPqmapPPZYGpyWnbUy7vdB1oXbheDpIl6ZvTL+TIcioyfhDJjEzI3Mk8y9ZoqyWrLPZ3Ozi7D3ZT3Nic/pybuW65xpzT+Yx84ryduc9y4/L78+fXOS7aNmi8wXWBeqCI4WkwrzCnYWzi+MXb1o8XRRU1FV0fYlgScOSc0utl1Yt/aSYWSwrPlRCKMkv2VPygyxdNiqbLZWWvlc6I5fIN8sfKqIVA4oHyghlv/JeWURZf9l9VYRqo+pBeVT5YPkjtUQ9rP62Iqlie8WzyvTKDyt/rMqvOqAha0o0R7UcbaX2dLV9dUP1JZ2Xrks3WRNWs6lmRp+i31kL1S6pPWLg4T9TF4zuxpXGqbrIupG65/V59Yca2A3ahguNno1rGu81JTT9phltljefbHFsaW+ZWhazbEcr1FraerLNua2zbXp54vJd7dT2yvY/dfh19Hd8vyJ/xbFOu87lnXdXJq7c22XWpe+6sSp81fbV6Gr16ok1AWu2rHndrej+osevZ7Dnh1557xdrRWuH1v64rmzdRF9w37b1xPXa9dc3RG3Y1c/ub+q/uzFt4+EBbKB74PtNxZvODQYObt9M3WzcPDmU+k8ApAFb/pi4mSSZkJn8mmia1ZtCm6+cHJyJnPedZJ3SnkCerp8dn4uf+qBpoNihR6G2oiailqMGo3aj5qRWpMelOKWpphqmi6b9p26n4KhSqMSpN6mpqhyqj6sCq3Wr6axcrNCtRK24ri2uoa8Wr4uwALB1sOqxYLHWskuywrM4s660JbSctRO1irYBtnm28Ldot+C4WbjRuUq5wro7urW7LrunvCG8m70VvY++Cr6Evv+/er/1wHDA7MFnwePCX8Lbw1jD1MRRxM7FS8XIxkbGw8dBx7/IPci8yTrJuco4yrfLNsu2zDXMtc01zbXONs62zzfPuNA50LrRPNG+0j/SwdNE08bUSdTL1U7V0dZV1tjXXNfg2GTY6Nls2fHadtr724DcBdyK3RDdlt4c3qLfKd+v4DbgveFE4cziU+Lb42Pj6+Rz5PzlhOYN5pbnH+ep6DLovOlG6dDqW+rl63Dr++yG7RHtnO4o7rTvQO/M8Fjw5fFy8f/yjPMZ86f0NPTC9VD13vZt9vv3ivgZ+Kj5OPnH+lf65/t3/Af8mP0p/br+S/7c/23//wIMAPeE8/sNZW5kc3RyZWFtDWVuZG9iag0xIDAgb2JqDTw8L0xlbmd0aCA0Njg0L1N1YnR5cGUvWE1ML1R5cGUvTWV0YWRhdGE+PnN0cmVhbQ0KPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMwMTUgODQuMTU5ODEwLCAyMDE2LzA5LzEwLTAyOjQxOjMwICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgICAgICAgICB4bWxuczpwZGY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGRmLzEuMy8iPgogICAgICAgICA8eG1wOkNyZWF0ZURhdGU+MjAxNy0wOS0xOFQxNjowMzoyMSswMjowMDwveG1wOkNyZWF0ZURhdGU+CiAgICAgICAgIDx4bXA6TWV0YWRhdGFEYXRlPjIwMTgtMDEtMjJUMDk6Mjk6MjJaPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxOC0wMS0yMlQwOToyOToyMlo8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOkNyZWF0b3JUb29sPkFkb2JlIElsbHVzdHJhdG9yIENDIDIwMTcgKE1hY2ludG9zaCk8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhtcE1NOkluc3RhbmNlSUQ+dXVpZDo4NmJlMTBmMy1kY2ZmLTg1NDctOTg4ZS0yZjljYTg2NzUxNTY8L3htcE1NOkluc3RhbmNlSUQ+CiAgICAgICAgIDx4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+eG1wLmRpZDo5MGY3NDMyNi00ODE1LTRkMzYtYjNhOS03ZTk0MzJmMzdlNTc8L3htcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+eG1wLmlkOjlmYmRlMjY2LWNkNGItNDZiZS04Y2ZhLTdmYzEyMDg4YTQwMzwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOlJlbmRpdGlvbkNsYXNzPnByb29mOnBkZjwveG1wTU06UmVuZGl0aW9uQ2xhc3M+CiAgICAgICAgIDx4bXBNTTpIaXN0b3J5PgogICAgICAgICAgICA8cmRmOlNlcT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+Y29udmVydGVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpwYXJhbWV0ZXJzPmZyb20gYXBwbGljYXRpb24veC1pbmRlc2lnbiB0byBhcHBsaWNhdGlvbi9wZGY8L3N0RXZ0OnBhcmFtZXRlcnM+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIEluRGVzaWduIENDIDIwMTUgKE1hY2ludG9zaCk8L3N0RXZ0OnNvZnR3YXJlQWdlbnQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpjaGFuZ2VkPi88L3N0RXZ0OmNoYW5nZWQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTYtMDMtMDlUMDk6NDM6MTgrMDE6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpTZXE+CiAgICAgICAgIDwveG1wTU06SGlzdG9yeT4KICAgICAgICAgPHhtcE1NOkRlcml2ZWRGcm9tIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgPHN0UmVmOmluc3RhbmNlSUQ+eG1wLmlpZDphZGE3OGFiNC0xN2UwLTRjMzMtYjVkOC0zZTg4Y2M5NTFiMGE8L3N0UmVmOmluc3RhbmNlSUQ+CiAgICAgICAgICAgIDxzdFJlZjpkb2N1bWVudElEPnhtcC5kaWQ6OTBmNzQzMjYtNDgxNS00ZDM2LWIzYTktN2U5NDMyZjM3ZTU3PC9zdFJlZjpkb2N1bWVudElEPgogICAgICAgICAgICA8c3RSZWY6b3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6OTBmNzQzMjYtNDgxNS00ZDM2LWIzYTktN2U5NDMyZjM3ZTU3PC9zdFJlZjpvcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgICAgIDxzdFJlZjpyZW5kaXRpb25DbGFzcz5kZWZhdWx0PC9zdFJlZjpyZW5kaXRpb25DbGFzcz4KICAgICAgICAgPC94bXBNTTpEZXJpdmVkRnJvbT4KICAgICAgICAgPGRjOmZvcm1hdD5hcHBsaWNhdGlvbi9wZGY8L2RjOmZvcm1hdD4KICAgICAgICAgPGRjOnRpdGxlPgogICAgICAgICAgICA8cmRmOkFsdD4KICAgICAgICAgICAgICAgPHJkZjpsaSB4bWw6bGFuZz0ieC1kZWZhdWx0Ij5ub3RlX3N0YXJfdGhpbjwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpBbHQ+CiAgICAgICAgIDwvZGM6dGl0bGU+CiAgICAgICAgIDxwZGY6UHJvZHVjZXI+QWRvYmUgUERGIGxpYnJhcnkgMTUuMDA8L3BkZjpQcm9kdWNlcj4KICAgICAgICAgPHBkZjpUcmFwcGVkPkZhbHNlPC9wZGY6VHJhcHBlZD4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/Pg1lbmRzdHJlYW0NZW5kb2JqDTIgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0ZpcnN0IDQvTGVuZ3RoIDQ4L04gMS9UeXBlL09ialN0bT4+c3RyZWFtDQpo3jJVMFCwsdF3zi/NK1Ew1PfOTCmOtgSKBcXqh1QWpOoHJKanFtvZAQQYANZ3C4ANZW5kc3RyZWFtDWVuZG9iag0zIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCA0L0xlbmd0aCAxNjUvTiAxL1R5cGUvT2JqU3RtPj5zdHJlYW0NCmjeRIxBC4IwGED/ym46gvZtkWmIEIrQQfDQKQSZbuBgbPJtHvr3JRFdH++9jAApS1ajltF418io0+YqgF+g4DnP4CT4AUQCkNCv5TG9KT9pcrd2CxF3Quqa7A0Z0k7OxkUfloFS1nn1P+bAhYBCFEI8KevRq23Wv1nftMSaCSW+CD8fASh7mGh16nzUY4gSx7gY96Eo11Ur1kobdFW9BRgABRE6mw1lbmRzdHJlYW0NZW5kb2JqDTQgMCBvYmoNPDwvRGVjb2RlUGFybXM8PC9Db2x1bW5zIDMvUHJlZGljdG9yIDEyPj4vRmlsdGVyL0ZsYXRlRGVjb2RlL0lEWzxCQUNGNzAyOTIzQjU0OEVBQjAzMzY5QTMzOUNDRjdCNj48RTM3RUY1QTJBNkUyNDNBRThFNzI2NUQ5NjQxMkMxMEU+XS9JbmZvIDYgMCBSL0xlbmd0aCAzNy9Sb290IDggMCBSL1NpemUgNy9UeXBlL1hSZWYvV1sxIDIgMF0+PnN0cmVhbQ0KaN5iYmBgYGIUDGFiEJrBxMDYDcSMTIy3u5gYGBgBAgwAI9UDFA1lbmRzdHJlYW0NZW5kb2JqDXN0YXJ0eHJlZg0xMTYNJSVFT0YN"),!0,!0,!1),Module.FS_createDataFile("/assets/Signatures","digital-signatures-watermark.pdf",decodeBase64("JVBERi0xLjcNJeLjz9MNCjggMCBvYmoNPDwvTGluZWFyaXplZCAxL0wgODU2Ny9PIDEwL0UgNDcyNC9OIDEvVCA4MjkzL0ggWyA0NzYgMTgwXT4+DWVuZG9iag0gICAgICAgICAgICAgICAgICAgICAgIA14cmVmDTggOQ0wMDAwMDAwMDE2IDAwMDAwIG4NCjAwMDAwMDA2NTYgMDAwMDAgbg0KMDAwMDAwMDgyNCAwMDAwMCBuDQowMDAwMDAxMTQwIDAwMDAwIG4NCjAwMDAwMDEyNDIgMDAwMDAgbg0KMDAwMDAwMTM1NSAwMDAwMCBuDQowMDAwMDA0MDAzIDAwMDAwIG4NCjAwMDAwMDQwMzggMDAwMDAgbg0KMDAwMDAwMDQ3NiAwMDAwMCBuDQp0cmFpbGVyDTw8L1NpemUgMTcvUm9vdCA5IDAgUi9JbmZvIDcgMCBSL0lEWzxERDRFMkE0OTBCMUU0RDQ4QkYxODlFRUQzMEI2RjlFND48RTc1OEY1RkM3REVCNERGNDk5RkM5OTY5OTEwMjc3QTA+XS9QcmV2IDgyODU+Pg1zdGFydHhyZWYNMA0lJUVPRg0gICAgICAgICAgICAgICAgICAgICAgICAgIA0xNiAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvSSAxMzEvTGVuZ3RoIDkwL08gMTE1L1MgMzYvVCA3Mz4+c3RyZWFtDQpo3mJgYGBjYGBqYQACfhsGTMDCwAEkGRkYBA8wgNWC+QwMygw8ghOcWV6ZMjB1M2y8C1HKICIBUQwEC8EkIwM2wMzAIPwOKqsFxOwMDHIfofwdAAEGAIopCeYNZW5kc3RyZWFtDWVuZG9iag05IDAgb2JqDTw8L0V4dGVuc2lvbnM8PC9BREJFPDwvQmFzZVZlcnNpb24vMS43L0V4dGVuc2lvbkxldmVsIDM+Pj4+L01ldGFkYXRhIDYgMCBSL091dGxpbmVzIDMgMCBSL1BhZ2VzIDUgMCBSL1R5cGUvQ2F0YWxvZy9WaWV3ZXJQcmVmZXJlbmNlczw8L0RpcmVjdGlvbi9SMkw+Pj4+DWVuZG9iag0xMCAwIG9iag08PC9BcnRCb3hbMC4wIDAuMCAzMS4xODExIDMxLjE4MTFdL0JsZWVkQm94WzAuMCAwLjAgMzEuMTgxMSAzMS4xODExXS9Db250ZW50cyAxMSAwIFIvQ3JvcEJveFswLjAgMC4wIDMxLjE4MTEgMzEuMTgxMV0vTWVkaWFCb3hbMC4wIDAuMCAzMS4xODExIDMxLjE4MTFdL1BhcmVudCA1IDAgUi9SZXNvdXJjZXM8PC9FeHRHU3RhdGU8PC9HUzAgMTIgMCBSPj4vWE9iamVjdDw8L0ZtMCAxNSAwIFI+Pj4+L1JvdGF0ZSAwL1RhYnMvVy9UaHVtYiA0IDAgUi9UcmltQm94WzAuMCAwLjAgMzEuMTgxMSAzMS4xODExXS9UeXBlL1BhZ2U+Pg1lbmRvYmoNMTEgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCAzND4+c3RyZWFtDQpIiSrk0ncPNlBIL+YyUAjx0XfLNVBwyecK5AIIMABJbgWzDWVuZHN0cmVhbQ1lbmRvYmoNMTIgMCBvYmoNPDwvQUlTIGZhbHNlL0JNL05vcm1hbC9DQSAxLjAvT1AgZmFsc2UvT1BNIDEvU0EgdHJ1ZS9TTWFzay9Ob25lL1R5cGUvRXh0R1N0YXRlL2NhIDEuMC9vcCBmYWxzZT4+DWVuZG9iag0xMyAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDI1NzQvTiAzPj5zdHJlYW0NCkiJnJZ5VFN3Fsd/b8mekJWww2MNW4CwBpA1bGGRHQRRCEkIARJCSNgFQUQFFEVEhKqVMtZtdEZPRZ0urmOtDtZ96tID9TDq6Di0FteOnRc4R51OZ6bT7x/v9zn3d+/v3d+9953zAKAnpaq11TALAI3WoM9KjMUWFRRipAkAAwogAhEAMnmtLi07IQfgksZLsFrcCfyLnl4HkGm9IkzKwDDw/4kt1+kNAEAZOAcolLVynDtxrqo36Ez2GZx5pZUmhlET6/EEcbY0sWqeved85jnaxAqNVoGzKWedQqMw8WmcV9cZlTgjqTh31amV9ThfxdmlyqhR4/zcFKtRymoBQOkmu0EpL8fZD2e6PidLgvMCAMh01Ttc+g4blA0G06Uk1bpGvVpVbsDc5R6YKDRUjCUp66uUBoMwQyavlOkVmKRao5NpGwGYv/OcOKbaYniRg0WhwcFCfx/RO4X6r5u/UKbeztOTzLmeQfwLb20/51c9CoB4Fq/N+re20i0AjK8EwPLmW5vL+wAw8b4dvvjOffimeSk3GHRhvr719fU+aqXcx1TQN/qfDr9A77zPx3Tcm/JgccoymbHKgJnqJq+uqjbqsVqdTK7EhD8d4l8d+PN5eGcpy5R6pRaPyMOnTK1V4e3WKtQGdbUWU2v/UxN/ZdhPND/XuLhjrwGv2AewLvIA8rcLAOXSAFK0Dd+B3vQtlZIHMvA13+He/NzPCfr3U+E+06NWrZqLk2TlYHKjvm5+z/RZAgKgAibgAStgD5yBOxACfxACwkE0iAfJIB3kgAKwFMhBOdAAPagHLaAddIEesB5sAsNgOxgDu8F+cBCMg4/BCfBHcB58Ca6BW2ASTIOHYAY8Ba8gCCJBDIgLWUEOkCvkBflDYigSiodSoSyoACqBVJAWMkIt0AqoB+qHhqEd0G7o99BR6AR0DroEfQVNQQ+g76CXMALTYR5sB7vBvrAYjoFT4Bx4CayCa+AmuBNeBw/Bo/A++DB8Aj4PX4Mn4YfwLAIQGsJHHBEhIkYkSDpSiJQheqQV6UYGkVFkP3IMOYtcQSaRR8gLlIhyUQwVouFoEpqLytEatBXtRYfRXehh9DR6BZ1CZ9DXBAbBluBFCCNICYsIKkI9oYswSNhJ+IhwhnCNME14SiQS+UQBMYSYRCwgVhCbib3ErcQDxOPES8S7xFkSiWRF8iJFkNJJMpKB1EXaQtpH+ox0mTRNek6mkR3I/uQEciFZS+4gD5L3kD8lXybfI7+isCiulDBKOkVBaaT0UcYoxygXKdOUV1Q2VUCNoOZQK6jt1CHqfuoZ6m3qExqN5kQLpWXS1LTltCHa72if06ZoL+gcuiddQi+iG+nr6B/Sj9O/oj9hMBhujGhGIcPAWMfYzTjF+Jrx3Ixr5mMmNVOYtZmNmB02u2z2mElhujJjmEuZTcxB5iHmReYjFoXlxpKwZKxW1gjrKOsGa5bNZYvY6WwNu5e9h32OfZ9D4rhx4jkKTifnA84pzl0uwnXmSrhy7gruGPcMd5pH5Al4Ul4Fr4f3W94Eb8acYx5onmfeYD5i/on5JB/hu/Gl/Cp+H/8g/zr/pYWdRYyF0mKNxX6LyxbPLG0soy2Vlt2WByyvWb60wqzirSqtNliNW92xRq09rTOt6623WZ+xfmTDswm3kdt02xy0uWkL23raZtk2235ge8F21s7eLtFOZ7fF7pTdI3u+fbR9hf2A/af2Dxy4DpEOaocBh88c/oqZYzFYFTaEncZmHG0dkxyNjjscJxxfOQmccp06nA443XGmOoudy5wHnE86z7g4uKS5tLjsdbnpSnEVu5a7bnY96/rMTeCW77bKbdztvsBSIBU0CfYKbrsz3KPca9xH3a96ED3EHpUeWz2+9IQ9gzzLPUc8L3rBXsFeaq+tXpe8Cd6h3lrvUe8bQrowRlgn3Cuc8uH7pPp0+Iz7PPZ18S303eB71ve1X5Bfld+Y3y0RR5Qs6hAdE33n7+kv9x/xvxrACEgIaAs4EvBtoFegMnBb4J+DuEFpQauCTgb9IzgkWB+8P/hBiEtISch7ITfEPHGGuFf8eSghNDa0LfTj0BdhwWGGsINhfw8XhleG7wm/v0CwQLlgbMHdCKcIWcSOiMlILLIk8v3IySjHKFnUaNQ30c7Riuid0fdiPGIqYvbFPI71i9XHfhT7TBImWSY5HofEJcZ1x03Ec+Jz44fjv05wSlAl7E2YSQxKbE48nkRISknakHRDaieVS3dLZ5JDkpcln06hp2SnDKd8k+qZqk89lganJadtTLu90HWhduF4OkiXpm9Mv5MhyKjJ+EMmMTMjcyTzL1mirJass9nc7OLsPdlPc2Jz+nJu5brnGnNP5jHzivJ25z3Lj8vvz59c5Lto2aLzBdYF6oIjhaTCvMKdhbOL4xdvWjxdFFTUVXR9iWBJw5JzS62XVi39pJhZLCs+VEIoyS/ZU/KDLF02KpstlZa+Vzojl8g3yx8qohUDigfKCGW/8l5ZRFl/2X1VhGqj6kF5VPlg+SO1RD2s/rYiqWJ7xbPK9MoPK3+syq86oCFrSjRHtRxtpfZ0tX11Q/UlnZeuSzdZE1azqWZGn6LfWQvVLqk9YuDhP1MXjO7Glcapusi6kbrn9Xn1hxrYDdqGC42ejWsa7zUlNP2mGW2WN59scWxpb5laFrNsRyvUWtp6ss25rbNtenni8l3t1PbK9j91+HX0d3y/In/FsU67zuWdd1cmrtzbZdal77qxKnzV9tXoavXqiTUBa7ased2t6P6ix69nsOeHXnnvF2tFa4fW/riubN1EX3DftvXE9dr11zdEbdjVz+5v6r+7MW3j4QFsoHvg+03Fm84NBg5u30zdbNw8OZT6TwCkAVv+mLiZJJmQmfyaaJrVm0Kbr5wcnImc951kndKeQJ6unx2fi5/6oGmg2KFHobaiJqKWowajdqPmpFakx6U4pammGqaLpv2nbqfgqFKoxKk3qamqHKqPqwKrdavprFys0K1ErbiuLa6hrxavi7AAsHWw6rFgsdayS7LCszizrrQltJy1E7WKtgG2ebbwt2i34LhZuNG5SrnCuju6tbsuu6e8IbybvRW9j74KvoS+/796v/XAcMDswWfB48JfwtvDWMPUxFHEzsVLxcjGRsbDx0HHv8g9yLzJOsm5yjjKt8s2y7bMNcy1zTXNtc42zrbPN8+40DnQutE80b7SP9LB00TTxtRJ1MvVTtXR1lXW2Ndc1+DYZNjo2WzZ8dp22vvbgNwF3IrdEN2W3hzeot8p36/gNuC94UThzOJT4tvjY+Pr5HPk/OWE5g3mlucf56noMui86Ubp0Opb6uXrcOv77IbtEe2c7ijutO9A78zwWPDl8XLx//KM8xnzp/Q09ML1UPXe9m32+/eK+Bn4qPk4+cf6V/rn+3f8B/yY/Sn9uv5L/tz/bf//AgwA94Tz+w1lbmRzdHJlYW0NZW5kb2JqDTE0IDAgb2JqDVsvSUNDQmFzZWQgMTMgMCBSXQ1lbmRvYmoNMTUgMCBvYmoNPDwvQkJveFswLjAgMzEuMTgxMSAzMS4xODExIDAuMF0vRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCA0NzcvTWF0cml4WzEuMCAwLjAgMC4wIDEuMCAwLjAgMC4wXS9SZXNvdXJjZXM8PC9Db2xvclNwYWNlPDwvQ1MwIDE0IDAgUj4+L0V4dEdTdGF0ZTw8L0dTMCAxMiAwIFI+Pj4+L1N1YnR5cGUvRm9ybT4+c3RyZWFtDQpIiTRTS6ocMQzc+xS6QOtZsmRJ67fIOuQIDcnqBcJAYG6fkpsw0NOy9akqVX98/ph0v2hy6nnsfi4let2/x8c33P56jT8kNPETEuc1vUiEfUfS/TX64mssnhYkbLJI0cHw7kl/x2RfQotXbrqUpxZtnqV0TVYJKpYqujuvNkn/LdTudBLl5fhjVTwNtX4Sd1kDKe8egVYSOPNuvwUYk10AbVwoCfTEiBS6NqtZR9pQAtHuysAdchPHmIIklb61kjMztCu9Dpw4CC4HzWys5QfDDAdDX5veAyBQuVnAut8tyaFHQIoLKuAU8hjKDCN2V2/UYfzUdaIHenHE6b1n0gW5061DD2TJYhHcCld0MnA6dEd/h6IXtFFDiLkGELhNzeZUU/6nK2gVW3NFtxXPkKcr1Mesplf+YMnTFs7Y1VBPmFw7D3Bf3dwhJ5I329yHXVojEhgLewS5dy9E1sFt8BAuszpYLq0OOMrhaHAPhq925IJGUPHRJr2dgiZNFihnkUGwdYSGD2BOWKOnTEUidtl4cQo1AqOtVynolcdf7YjjPTBW7OnsuZeeTQxlru2zsyZlny2GtHnxNYAXHLBYoxprRH8SgnyeIHEPhyzUgub5ct7j5/g+/gkwAD7apr4NZW5kc3RyZWFtDWVuZG9iag0xIDAgb2JqDVsvSW5kZXhlZC9EZXZpY2VSR0IgMjU1IDIgMCBSXQ1lbmRvYmoNMiAwIG9iag08PC9GaWx0ZXJbL0FTQ0lJODVEZWNvZGUvRmxhdGVEZWNvZGVdL0xlbmd0aCA0Mjg+PnN0cmVhbQ0KODtYXU8+RXFOQCUnJ09fQCVlQD9KOyUrOCg5ZT5YPU1SNlM/aV5ZZ0EzPV0uSERYRi5SJGxJTEAicEorRVAoJTAKYl02YWptTlpuKiE9J09RWmVRXlkqLD1dP0MuQitcVWxnOWRoRCoiaUNbOyo9M2BvUDFbIVNeKT8xKUlaNGR1cGAKRTFyIS8sKjBbKjkuYUZJUjImYi1DI3M8WGw1RkhAWzw9ISM2Vil1REJYbklyLkY+b1JaN0RsJU1MWVwuP2Q+TW4KNiVRMm9ZZk5SRiQkK09OPCtdUlVKbUMwSTxqbEwub1hpc1o7U1lVWy83IzwmMzdyY2xRS3FlSmUjLFVGN1JnYjEKVk5XRktmPm5EWjRPVHMwUyFzYUc+R0dLVWxRKlE/NDU6Q0kmNEonXzJqPGV0SklDajdlN25QTWI9TzZTN1VPSDwKUE83clxJLkh1JmUwZCZFPC4nKWZFUnIvbCsqVywpcV5EKmFpNTx1dUxYLjdnLz4kWEtyY1lwMG4rWGxfblUqTygKbFskNk5uK1pfTnEwXXM3aHNdYFhYMW5aOCY5NGFcfj4NZW5kc3RyZWFtDWVuZG9iag0zIDAgb2JqDTw8L0NvdW50IDAvVHlwZS9PdXRsaW5lcz4+DWVuZG9iag00IDAgb2JqDTw8L0JpdHNQZXJDb21wb25lbnQgOC9Db2xvclNwYWNlIDEgMCBSL0ZpbHRlclsvQVNDSUk4NURlY29kZS9GbGF0ZURlY29kZV0vSGVpZ2h0IDMvTGVuZ3RoIDI1L1dpZHRoIDM+PnN0cmVhbQ0KODtYcGxCJ283SzVkMitLXl01TTAjJj1+Pg1lbmRzdHJlYW0NZW5kb2JqDTUgMCBvYmoNPDwvQ291bnQgMS9LaWRzWzEwIDAgUl0vVHlwZS9QYWdlcz4+DWVuZG9iag02IDAgb2JqDTw8L0xlbmd0aCAyNDg4L1N1YnR5cGUvWE1ML1R5cGUvTWV0YWRhdGE+PnN0cmVhbQ0KPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMTEgNzkuMTU4MzY2LCAyMDE1LzA5LzI1LTAxOjEyOjAwICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgICAgICAgICB4bWxuczpwZGY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGRmLzEuMy8iPgogICAgICAgICA8eG1wOkNyZWF0ZURhdGU+MjAxNi0wMy0wOVQwOTo0MzoxOCswMTowMDwveG1wOkNyZWF0ZURhdGU+CiAgICAgICAgIDx4bXA6TWV0YWRhdGFEYXRlPjIwMTYtMDMtMDlUMDk6NDM6MTgrMDE6MDA8L3htcDpNZXRhZGF0YURhdGU+CiAgICAgICAgIDx4bXA6TW9kaWZ5RGF0ZT4yMDE2LTAzLTA5VDA5OjQzOjE4KzAxOjAwPC94bXA6TW9kaWZ5RGF0ZT4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBJbkRlc2lnbiBDQyAyMDE1IChNYWNpbnRvc2gpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx4bXBNTTpJbnN0YW5jZUlEPnV1aWQ6N2IxYjAwNDgtMDQ2Yy0zMTQxLTk2ZTgtMTc2OTAzNmJlYzQ3PC94bXBNTTpJbnN0YW5jZUlEPgogICAgICAgICA8eG1wTU06T3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6OTBmNzQzMjYtNDgxNS00ZDM2LWIzYTktN2U5NDMyZjM3ZTU3PC94bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpEb2N1bWVudElEPnhtcC5pZDo5ZmJkZTI2Ni1jZDRiLTQ2YmUtOGNmYS03ZmMxMjA4OGE0MDM8L3htcE1NOkRvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpSZW5kaXRpb25DbGFzcz5wcm9vZjpwZGY8L3htcE1NOlJlbmRpdGlvbkNsYXNzPgogICAgICAgICA8eG1wTU06SGlzdG9yeT4KICAgICAgICAgICAgPHJkZjpTZXE+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6YWN0aW9uPmNvbnZlcnRlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6cGFyYW1ldGVycz5mcm9tIGFwcGxpY2F0aW9uL3gtaW5kZXNpZ24gdG8gYXBwbGljYXRpb24vcGRmPC9zdEV2dDpwYXJhbWV0ZXJzPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBJbkRlc2lnbiBDQyAyMDE1IChNYWNpbnRvc2gpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICAgICA8c3RFdnQ6Y2hhbmdlZD4vPC9zdEV2dDpjaGFuZ2VkPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDE2LTAzLTA5VDA5OjQzOjE4KzAxOjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6U2VxPgogICAgICAgICA8L3htcE1NOkhpc3Rvcnk+CiAgICAgICAgIDx4bXBNTTpEZXJpdmVkRnJvbSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgIDxzdFJlZjppbnN0YW5jZUlEPnhtcC5paWQ6YWRhNzhhYjQtMTdlMC00YzMzLWI1ZDgtM2U4OGNjOTUxYjBhPC9zdFJlZjppbnN0YW5jZUlEPgogICAgICAgICAgICA8c3RSZWY6ZG9jdW1lbnRJRD54bXAuZGlkOjkwZjc0MzI2LTQ4MTUtNGQzNi1iM2E5LTdlOTQzMmYzN2U1Nzwvc3RSZWY6ZG9jdW1lbnRJRD4KICAgICAgICAgICAgPHN0UmVmOm9yaWdpbmFsRG9jdW1lbnRJRD54bXAuZGlkOjkwZjc0MzI2LTQ4MTUtNGQzNi1iM2E5LTdlOTQzMmYzN2U1Nzwvc3RSZWY6b3JpZ2luYWxEb2N1bWVudElEPgogICAgICAgICAgICA8c3RSZWY6cmVuZGl0aW9uQ2xhc3M+ZGVmYXVsdDwvc3RSZWY6cmVuZGl0aW9uQ2xhc3M+CiAgICAgICAgIDwveG1wTU06RGVyaXZlZEZyb20+CiAgICAgICAgIDxkYzpmb3JtYXQ+YXBwbGljYXRpb24vcGRmPC9kYzpmb3JtYXQ+CiAgICAgICAgIDxwZGY6UHJvZHVjZXI+QWRvYmUgUERGIExpYnJhcnkgMTUuMDwvcGRmOlByb2R1Y2VyPgogICAgICAgICA8cGRmOlRyYXBwZWQ+RmFsc2U8L3BkZjpUcmFwcGVkPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KPD94cGFja2V0IGVuZD0iciI/Pg1lbmRzdHJlYW0NZW5kb2JqDTcgMCBvYmoNPDwvQ3JlYXRpb25EYXRlKEQ6MjAxNjAzMDkwOTQzMTgrMDEnMDAnKS9DcmVhdG9yKEFkb2JlIEluRGVzaWduIENDIDIwMTUgXChNYWNpbnRvc2hcKSkvTW9kRGF0ZShEOjIwMTYwMzA5MDk0MzE4KzAxJzAwJykvUHJvZHVjZXIoQWRvYmUgUERGIExpYnJhcnkgMTUuMCkvVHJhcHBlZC9GYWxzZT4+DWVuZG9iag14cmVmDTAgOA0wMDAwMDAwMDAwIDY1NTM1IGYNCjAwMDAwMDQ3MjQgMDAwMDAgbg0KMDAwMDAwNDc3MCAwMDAwMCBuDQowMDAwMDA1MjgyIDAwMDAwIG4NCjAwMDAwMDUzMjQgMDAwMDAgbg0KMDAwMDAwNTQ4NSAwMDAwMCBuDQowMDAwMDA1NTM3IDAwMDAwIG4NCjAwMDAwMDgxMDEgMDAwMDAgbg0KdHJhaWxlcg08PC9TaXplIDgvSURbPERENEUyQTQ5MEIxRTRENDhCRjE4OUVFRDMwQjZGOUU0PjxFNzU4RjVGQzdERUI0REY0OTlGQzk5Njk5MTAyNzdBMD5dPj4Nc3RhcnR4cmVmDTExNg0lJUVPRg0="),!0,!0,!1)}Module.calledRun?A():(Module.preRun||(Module.preRun=[]),Module.preRun.push(A))}();var moduleOverrides={},key;for(key in Module)Module.hasOwnProperty(key)&&(moduleOverrides[key]=Module[key]);var arguments_=[],thisProgram="./this.program",quit_=function(g,A){throw A},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,scriptDirectory="",read_,readAsync,readBinary,setWindowTitle,nodeFS,nodePath;function locateFile(g){return Module.locateFile?Module.locateFile(g,scriptDirectory):scriptDirectory+g}ENVIRONMENT_IS_NODE?(scriptDirectory=ENVIRONMENT_IS_WORKER?require("path").dirname(scriptDirectory)+"/":__dirname+"/",read_=function(g,A){return nodeFS||(nodeFS=require("fs")),nodePath||(nodePath=require("path")),g=nodePath.normalize(g),nodeFS.readFileSync(g,A?null:"utf8")},readBinary=function(g){var A=read_(g,!0);return A.buffer||(A=new Uint8Array(A)),assert(A.buffer),A},readAsync=function(g,A,I){nodeFS||(nodeFS=require("fs")),nodePath||(nodePath=require("path")),g=nodePath.normalize(g),nodeFS.readFile(g,(function(g,C){g?I(g):A(C.buffer)}))},process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),process.on("uncaughtException",(function(g){if(!(g instanceof ExitStatus))throw g})),process.on("unhandledRejection",abort),quit_=function(g,A){if(keepRuntimeAlive())throw process.exitCode=g,A;process.exit(g)},Module.inspect=function(){return"[Emscripten Module object]"}):(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:"undefined"!=typeof document&&document.currentScript&&(scriptDirectory=document.currentScript.src),_scriptDir&&(scriptDirectory=_scriptDir),scriptDirectory=0!==scriptDirectory.indexOf("blob:")?scriptDirectory.substr(0,scriptDirectory.lastIndexOf("/")+1):"",read_=function(g){var A=new XMLHttpRequest;return A.open("GET",g,!1),A.send(null),A.responseText},ENVIRONMENT_IS_WORKER&&(readBinary=function(g){var A=new XMLHttpRequest;return A.open("GET",g,!1),A.responseType="arraybuffer",A.send(null),new Uint8Array(A.response)}),readAsync=function(g,A,I){var C=new XMLHttpRequest;C.open("GET",g,!0),C.responseType="arraybuffer",C.onload=function(){200==C.status||0==C.status&&C.response?A(C.response):I()},C.onerror=I,C.send(null)},setWindowTitle=function(g){document.title=g});var out=Module.print||console.log.bind(console),err=Module.printErr||console.warn.bind(console);for(key in moduleOverrides)moduleOverrides.hasOwnProperty(key)&&(Module[key]=moduleOverrides[key]);moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var tempRet0=0,setTempRet0=function(g){tempRet0=g},getTempRet0=function(){return tempRet0},wasmBinary;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var noExitRuntime=Module.noExitRuntime||!0,wasmMemory;"object"!=typeof WebAssembly&&abort("no native wasm support detected");var ABORT=!1,EXITSTATUS;function assert(g,A){g||abort("Assertion failed: "+A)}var UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function UTF8ArrayToString(g,A,I){for(var C=A+I,e=A;g[e]&&!(e>=C);)++e;if(e-A>16&&g.subarray&&UTF8Decoder)return UTF8Decoder.decode(g.subarray(A,e));for(var t="";A>10,56320|1023&o)}}else t+=String.fromCharCode((31&n)<<6|i)}else t+=String.fromCharCode(n)}return t}function UTF8ToString(g,A){return g?UTF8ArrayToString(HEAPU8,g,A):""}function stringToUTF8Array(g,A,I,C){if(!(C>0))return 0;for(var e=I,t=I+C-1,n=0;n=55296&&i<=57343)i=65536+((1023&i)<<10)|1023&g.charCodeAt(++n);if(i<=127){if(I>=t)break;A[I++]=i}else if(i<=2047){if(I+1>=t)break;A[I++]=192|i>>6,A[I++]=128|63&i}else if(i<=65535){if(I+2>=t)break;A[I++]=224|i>>12,A[I++]=128|i>>6&63,A[I++]=128|63&i}else{if(I+3>=t)break;A[I++]=240|i>>18,A[I++]=128|i>>12&63,A[I++]=128|i>>6&63,A[I++]=128|63&i}}return A[I]=0,I-e}function stringToUTF8(g,A,I){return stringToUTF8Array(g,HEAPU8,A,I)}function lengthBytesUTF8(g){for(var A=0,I=0;I=55296&&C<=57343&&(C=65536+((1023&C)<<10)|1023&g.charCodeAt(++I)),C<=127?++A:A+=C<=2047?2:C<=65535?3:4}return A}var UTF16Decoder="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function UTF16ToString(g,A){for(var I=g,C=I>>1,e=C+A/2;!(C>=e)&&HEAPU16[C];)++C;if((I=C<<1)-g>32&&UTF16Decoder)return UTF16Decoder.decode(HEAPU8.subarray(g,I));for(var t="",n=0;!(n>=A/2);++n){var i=HEAP16[g+2*n>>1];if(0==i)break;t+=String.fromCharCode(i)}return t}function stringToUTF16(g,A,I){if(void 0===I&&(I=2147483647),I<2)return 0;for(var C=A,e=(I-=2)<2*g.length?I/2:g.length,t=0;t>1]=n,A+=2}return HEAP16[A>>1]=0,A-C}function lengthBytesUTF16(g){return 2*g.length}function UTF32ToString(g,A){for(var I=0,C="";!(I>=A/4);){var e=HEAP32[g+4*I>>2];if(0==e)break;if(++I,e>=65536){var t=e-65536;C+=String.fromCharCode(55296|t>>10,56320|1023&t)}else C+=String.fromCharCode(e)}return C}function stringToUTF32(g,A,I){if(void 0===I&&(I=2147483647),I<4)return 0;for(var C=A,e=C+I-4,t=0;t=55296&&n<=57343)n=65536+((1023&n)<<10)|1023&g.charCodeAt(++t);if(HEAP32[A>>2]=n,(A+=4)+4>e)break}return HEAP32[A>>2]=0,A-C}function lengthBytesUTF32(g){for(var A=0,I=0;I=55296&&C<=57343&&++I,A+=4}return A}function allocateUTF8(g){var A=lengthBytesUTF8(g)+1,I=_malloc(A);return I&&stringToUTF8Array(g,HEAP8,I,A),I}function writeArrayToMemory(g,A){HEAP8.set(g,A)}function writeAsciiToMemory(g,A,I){for(var C=0;C>0]=g.charCodeAt(C);I||(HEAP8[A>>0]=0)}function alignUp(g,A){return g%A>0&&(g+=A-g%A),g}function updateGlobalBufferAndViews(g){buffer=g,Module.HEAP8=HEAP8=new Int8Array(g),Module.HEAP16=HEAP16=new Int16Array(g),Module.HEAP32=HEAP32=new Int32Array(g),Module.HEAPU8=HEAPU8=new Uint8Array(g),Module.HEAPU16=HEAPU16=new Uint16Array(g),Module.HEAPU32=HEAPU32=new Uint32Array(g),Module.HEAPF32=HEAPF32=new Float32Array(g),Module.HEAPF64=HEAPF64=new Float64Array(g)}var INITIAL_MEMORY=Module.INITIAL_MEMORY||16777216,wasmTable,__ATPRERUN__=[],__ATINIT__=[],__ATPOSTRUN__=[],runtimeInitialized=!1,runtimeExited=!1,runtimeKeepaliveCounter=0;function keepRuntimeAlive(){return noExitRuntime||runtimeKeepaliveCounter>0}function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,Module.noFSInit||FS.init.initialized||FS.init(),FS.ignorePermissions=!1,TTY.init(),callRuntimeCallbacks(__ATINIT__)}function exitRuntime(){runtimeExited=!0}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(g){__ATPRERUN__.unshift(g)}function addOnInit(g){__ATINIT__.unshift(g)}function addOnPostRun(g){__ATPOSTRUN__.unshift(g)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(g){return g}function addRunDependency(g){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}function removeRunDependency(g){if(runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var A=dependenciesFulfilled;dependenciesFulfilled=null,A()}}function abort(g){Module.onAbort&&Module.onAbort(g),err(g+=""),ABORT=!0,EXITSTATUS=1,g="abort("+g+"). Build with -s ASSERTIONS=1 for more info.";var A=new WebAssembly.RuntimeError(g);throw readyPromiseReject(A),A}Module.preloadedImages={},Module.preloadedAudios={};var dataURIPrefix="data:application/octet-stream;base64,",wasmBinaryFile,tempDouble,tempI64;function isDataURI(g){return g.startsWith(dataURIPrefix)}function isFileURI(g){return g.startsWith("file://")}function getBinary(g){try{if(g==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(g);throw"both async and sync fetching of the wasm failed"}catch(g){abort(g)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if("function"==typeof fetch&&!isFileURI(wasmBinaryFile))return fetch(wasmBinaryFile,{credentials:"same-origin"}).then((function(g){if(!g.ok)throw"failed to load wasm binary file at '"+wasmBinaryFile+"'";return g.arrayBuffer()})).catch((function(){return getBinary(wasmBinaryFile)}));if(readAsync)return new Promise((function(g,A){readAsync(wasmBinaryFile,(function(A){g(new Uint8Array(A))}),A)}))}return Promise.resolve().then((function(){return getBinary(wasmBinaryFile)}))}function createWasm(){var g={a:asmLibraryArg};function A(g,A){var I=g.exports;Module.asm=I,updateGlobalBufferAndViews((wasmMemory=Module.asm.Xc).buffer),wasmTable=Module.asm.ld,addOnInit(Module.asm.Yc),removeRunDependency("wasm-instantiate")}function I(g){A(g.instance)}function C(A){return getBinaryPromise().then((function(A){return WebAssembly.instantiate(A,g)})).then(A,(function(g){err("failed to asynchronously prepare wasm: "+g),abort(g)}))}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(g,A)}catch(g){return err("Module.instantiateWasm callback failed with error: "+g),!1}return(wasmBinary||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(wasmBinaryFile)||isFileURI(wasmBinaryFile)||"function"!=typeof fetch?C(I):fetch(wasmBinaryFile,{credentials:"same-origin"}).then((function(A){return WebAssembly.instantiateStreaming(A,g).then(I,(function(g){return err("wasm streaming compile failed: "+g),err("falling back to ArrayBuffer instantiation"),C(I)}))}))).catch(readyPromiseReject),{}}wasmBinaryFile="pspdfkit.wasm",isDataURI(wasmBinaryFile)||(wasmBinaryFile=locateFile(wasmBinaryFile));var ASM_CONSTS={2867828:function(){return!!("undefined"!=typeof window&&window&&window.process&&window.process.type)||"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron/")>=0},2868088:function(){return-60*(new Date).getTimezoneOffset()*1e3},2868184:function(g,A){setTimeout((function(){console.error(UTF8ToString(g))}),A)},2868251:function(g){setTimeout((function(){try{"undefined"==typeof window&&"undefined"==typeof document&&"undefined"!=typeof self&&void 0!==self.close?self.close():"undefined"!=typeof process&&void 0!==process.exit?process.exit(1):location.href="https://pspdfkit.com"}catch(g){location.href="https://pspdfkit.com"}}),g)},2868647:function(){if("undefined"!=typeof self&&void 0!==self.crypto&&void 0!==self.crypto.getRandomValues){var g=new Uint32Array(1);return self.crypto.getRandomValues(g),g[0]}return Math.round(255*Math.random())}};function callRuntimeCallbacks(g){for(;g.length>0;){var A=g.shift();if("function"!=typeof A){var I=A.func;"number"==typeof I?void 0===A.arg?wasmTable.get(I)():wasmTable.get(I)(A.arg):I(void 0===A.arg?null:A.arg)}else A(Module)}}function _tzset(){if(!_tzset.called){_tzset.called=!0;var g=(new Date).getFullYear(),A=new Date(g,0,1),I=new Date(g,6,1),C=A.getTimezoneOffset(),e=I.getTimezoneOffset(),t=Math.max(C,e);HEAP32[__get_timezone()>>2]=60*t,HEAP32[__get_daylight()>>2]=Number(C!=e);var n=a(A),i=a(I),r=allocateUTF8(n),o=allocateUTF8(i);e>2]=r,HEAP32[__get_tzname()+4>>2]=o):(HEAP32[__get_tzname()>>2]=o,HEAP32[__get_tzname()+4>>2]=r)}function a(g){var A=g.toTimeString().match(/\(([A-Za-z ]+)\)$/);return A?A[1]:"GMT"}}function _mktime(g){_tzset();var A=new Date(HEAP32[g+20>>2]+1900,HEAP32[g+16>>2],HEAP32[g+12>>2],HEAP32[g+8>>2],HEAP32[g+4>>2],HEAP32[g>>2],0),I=HEAP32[g+32>>2],C=A.getTimezoneOffset(),e=new Date(A.getFullYear(),0,1),t=new Date(A.getFullYear(),6,1).getTimezoneOffset(),n=e.getTimezoneOffset(),i=Math.min(n,t);if(I<0)HEAP32[g+32>>2]=Number(t!=n&&i==C);else if(I>0!=(i==C)){var r=Math.max(n,t),o=I>0?i:r;A.setTime(A.getTime()+6e4*(o-C))}HEAP32[g+24>>2]=A.getDay();var a=(A.getTime()-e.getTime())/864e5|0;return HEAP32[g+28>>2]=a,HEAP32[g>>2]=A.getSeconds(),HEAP32[g+4>>2]=A.getMinutes(),HEAP32[g+8>>2]=A.getHours(),HEAP32[g+12>>2]=A.getDate(),HEAP32[g+16>>2]=A.getMonth(),A.getTime()/1e3|0}function ___asctime(g,A){var I=HEAP32[g>>2],C=HEAP32[g+4>>2],e=HEAP32[g+8>>2],t=HEAP32[g+12>>2],n=HEAP32[g+16>>2],i=HEAP32[g+20>>2];return stringToUTF8(["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][HEAP32[g+24>>2]]+" "+["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][n]+(t<10?" ":" ")+t+(e<10?" 0":" ")+e+(C<10?":0":":")+C+(I<10?":0":":")+I+" "+(1900+i)+"\n",A,26),A}function ___cxa_allocate_exception(g){return _malloc(g+16)+16}function _atexit(g,A){}function ExceptionInfo(g){this.excPtr=g,this.ptr=g-16,this.set_type=function(g){HEAP32[this.ptr+4>>2]=g},this.get_type=function(){return HEAP32[this.ptr+4>>2]},this.set_destructor=function(g){HEAP32[this.ptr+8>>2]=g},this.get_destructor=function(){return HEAP32[this.ptr+8>>2]},this.set_refcount=function(g){HEAP32[this.ptr>>2]=g},this.set_caught=function(g){g=g?1:0,HEAP8[this.ptr+12>>0]=g},this.get_caught=function(){return 0!=HEAP8[this.ptr+12>>0]},this.set_rethrown=function(g){g=g?1:0,HEAP8[this.ptr+13>>0]=g},this.get_rethrown=function(){return 0!=HEAP8[this.ptr+13>>0]},this.init=function(g,A){this.set_type(g),this.set_destructor(A),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var g=HEAP32[this.ptr>>2];HEAP32[this.ptr>>2]=g+1},this.release_ref=function(){var g=HEAP32[this.ptr>>2];return HEAP32[this.ptr>>2]=g-1,1===g}}function CatchInfo(g){this.free=function(){_free(this.ptr),this.ptr=0},this.set_base_ptr=function(g){HEAP32[this.ptr>>2]=g},this.get_base_ptr=function(){return HEAP32[this.ptr>>2]},this.set_adjusted_ptr=function(g){HEAP32[this.ptr+4>>2]=g},this.get_adjusted_ptr_addr=function(){return this.ptr+4},this.get_adjusted_ptr=function(){return HEAP32[this.ptr+4>>2]},this.get_exception_ptr=function(){if(___cxa_is_pointer_type(this.get_exception_info().get_type()))return HEAP32[this.get_base_ptr()>>2];var g=this.get_adjusted_ptr();return 0!==g?g:this.get_base_ptr()},this.get_exception_info=function(){return new ExceptionInfo(this.get_base_ptr())},void 0===g?(this.ptr=_malloc(8),this.set_adjusted_ptr(0)):this.ptr=g}var exceptionCaught=[];function exception_addRef(g){g.add_ref()}var uncaughtExceptionCount=0;function ___cxa_begin_catch(g){var A=new CatchInfo(g),I=A.get_exception_info();return I.get_caught()||(I.set_caught(!0),uncaughtExceptionCount--),I.set_rethrown(!1),exceptionCaught.push(A),exception_addRef(I),A.get_exception_ptr()}function ___cxa_call_unexpected(g){throw err("Unexpected exception thrown, this is not properly supported - aborting"),ABORT=!0,g}var exceptionLast=0;function ___cxa_free_exception(g){return _free(new ExceptionInfo(g).ptr)}function exception_decRef(g){if(g.release_ref()&&!g.get_rethrown()){var A=g.get_destructor();A&&wasmTable.get(A)(g.excPtr),___cxa_free_exception(g.excPtr)}}function ___cxa_end_catch(){_setThrew(0);var g=exceptionCaught.pop();exception_decRef(g.get_exception_info()),g.free(),exceptionLast=0}function ___resumeException(g){var A=new CatchInfo(g),I=A.get_base_ptr();throw exceptionLast||(exceptionLast=I),A.free(),I}function ___cxa_find_matching_catch_2(){var g=exceptionLast;if(!g)return setTempRet0(0),0;var A=new ExceptionInfo(g),I=A.get_type(),C=new CatchInfo;if(C.set_base_ptr(g),C.set_adjusted_ptr(g),!I)return setTempRet0(0),0|C.ptr;for(var e=Array.prototype.slice.call(arguments),t=0;t>2]);HEAP32[A>>2]=I.getUTCSeconds(),HEAP32[A+4>>2]=I.getUTCMinutes(),HEAP32[A+8>>2]=I.getUTCHours(),HEAP32[A+12>>2]=I.getUTCDate(),HEAP32[A+16>>2]=I.getUTCMonth(),HEAP32[A+20>>2]=I.getUTCFullYear()-1900,HEAP32[A+24>>2]=I.getUTCDay(),HEAP32[A+36>>2]=0,HEAP32[A+32>>2]=0;var C=Date.UTC(I.getUTCFullYear(),0,1,0,0,0,0),e=(I.getTime()-C)/864e5|0;return HEAP32[A+28>>2]=e,_gmtime_r.GMTString||(_gmtime_r.GMTString=allocateUTF8("GMT")),HEAP32[A+40>>2]=_gmtime_r.GMTString,A}function ___gmtime_r(g,A){return _gmtime_r(g,A)}function _localtime_r(g,A){_tzset();var I=new Date(1e3*HEAP32[g>>2]);HEAP32[A>>2]=I.getSeconds(),HEAP32[A+4>>2]=I.getMinutes(),HEAP32[A+8>>2]=I.getHours(),HEAP32[A+12>>2]=I.getDate(),HEAP32[A+16>>2]=I.getMonth(),HEAP32[A+20>>2]=I.getFullYear()-1900,HEAP32[A+24>>2]=I.getDay();var C=new Date(I.getFullYear(),0,1),e=(I.getTime()-C.getTime())/864e5|0;HEAP32[A+28>>2]=e,HEAP32[A+36>>2]=-60*I.getTimezoneOffset();var t=new Date(I.getFullYear(),6,1).getTimezoneOffset(),n=C.getTimezoneOffset(),i=0|(t!=n&&I.getTimezoneOffset()==Math.min(n,t));HEAP32[A+32>>2]=i;var r=HEAP32[__get_tzname()+(i?4:0)>>2];return HEAP32[A+40>>2]=r,A}function ___localtime_r(g,A){return _localtime_r(g,A)}function setErrNo(g){return HEAP32[___errno_location()>>2]=g,g}function ___map_file(g,A){return setErrNo(63),-1}var PATH={splitPath:function(g){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(g).slice(1)},normalizeArray:function(g,A){for(var I=0,C=g.length-1;C>=0;C--){var e=g[C];"."===e?g.splice(C,1):".."===e?(g.splice(C,1),I++):I&&(g.splice(C,1),I--)}if(A)for(;I;I--)g.unshift("..");return g},normalize:function(g){var A="/"===g.charAt(0),I="/"===g.substr(-1);return(g=PATH.normalizeArray(g.split("/").filter((function(g){return!!g})),!A).join("/"))||A||(g="."),g&&I&&(g+="/"),(A?"/":"")+g},dirname:function(g){var A=PATH.splitPath(g),I=A[0],C=A[1];return I||C?(C&&(C=C.substr(0,C.length-1)),I+C):"."},basename:function(g){if("/"===g)return"/";var A=(g=(g=PATH.normalize(g)).replace(/\/$/,"")).lastIndexOf("/");return-1===A?g:g.substr(A+1)},extname:function(g){return PATH.splitPath(g)[3]},join:function(){var g=Array.prototype.slice.call(arguments,0);return PATH.normalize(g.join("/"))},join2:function(g,A){return PATH.normalize(g+"/"+A)}};function getRandomDevice(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var g=new Uint8Array(1);return function(){return crypto.getRandomValues(g),g[0]}}if(ENVIRONMENT_IS_NODE)try{var A=require("crypto");return function(){return A.randomBytes(1)[0]}}catch(g){}return function(){abort("randomDevice")}}var PATH_FS={resolve:function(){for(var g="",A=!1,I=arguments.length-1;I>=-1&&!A;I--){var C=I>=0?arguments[I]:FS.cwd();if("string"!=typeof C)throw new TypeError("Arguments to path.resolve must be strings");if(!C)return"";g=C+"/"+g,A="/"===C.charAt(0)}return(A?"/":"")+(g=PATH.normalizeArray(g.split("/").filter((function(g){return!!g})),!A).join("/"))||"."},relative:function(g,A){function I(g){for(var A=0;A=0&&""===g[I];I--);return A>I?[]:g.slice(A,I-A+1)}g=PATH_FS.resolve(g).substr(1),A=PATH_FS.resolve(A).substr(1);for(var C=I(g.split("/")),e=I(A.split("/")),t=Math.min(C.length,e.length),n=t,i=0;i0?I.slice(0,C).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(A=window.prompt("Input: "))&&(A+="\n"):"function"==typeof readline&&null!==(A=readline())&&(A+="\n");if(!A)return null;g.input=intArrayFromString(A,!0)}return g.input.shift()},put_char:function(g,A){null===A||10===A?(out(UTF8ArrayToString(g.output,0)),g.output=[]):0!=A&&g.output.push(A)},flush:function(g){g.output&&g.output.length>0&&(out(UTF8ArrayToString(g.output,0)),g.output=[])}},default_tty1_ops:{put_char:function(g,A){null===A||10===A?(err(UTF8ArrayToString(g.output,0)),g.output=[]):0!=A&&g.output.push(A)},flush:function(g){g.output&&g.output.length>0&&(err(UTF8ArrayToString(g.output,0)),g.output=[])}}};function zeroMemory(g,A){HEAPU8.fill(0,g,g+A)}function alignMemory(g,A){return Math.ceil(g/A)*A}function mmapAlloc(g){g=alignMemory(g,65536);var A=_memalign(65536,g);return A?(zeroMemory(A,g),A):0}var MEMFS={ops_table:null,mount:function(g){return MEMFS.createNode(null,"/",16895,0)},createNode:function(g,A,I,C){if(FS.isBlkdev(I)||FS.isFIFO(I))throw new FS.ErrnoError(63);MEMFS.ops_table||(MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}});var e=FS.createNode(g,A,I,C);return FS.isDir(e.mode)?(e.node_ops=MEMFS.ops_table.dir.node,e.stream_ops=MEMFS.ops_table.dir.stream,e.contents={}):FS.isFile(e.mode)?(e.node_ops=MEMFS.ops_table.file.node,e.stream_ops=MEMFS.ops_table.file.stream,e.usedBytes=0,e.contents=null):FS.isLink(e.mode)?(e.node_ops=MEMFS.ops_table.link.node,e.stream_ops=MEMFS.ops_table.link.stream):FS.isChrdev(e.mode)&&(e.node_ops=MEMFS.ops_table.chrdev.node,e.stream_ops=MEMFS.ops_table.chrdev.stream),e.timestamp=Date.now(),g&&(g.contents[A]=e,g.timestamp=e.timestamp),e},getFileDataAsTypedArray:function(g){return g.contents?g.contents.subarray?g.contents.subarray(0,g.usedBytes):new Uint8Array(g.contents):new Uint8Array(0)},expandFileStorage:function(g,A){var I=g.contents?g.contents.length:0;if(!(I>=A)){A=Math.max(A,I*(I<1048576?2:1.125)>>>0),0!=I&&(A=Math.max(A,256));var C=g.contents;g.contents=new Uint8Array(A),g.usedBytes>0&&g.contents.set(C.subarray(0,g.usedBytes),0)}},resizeFileStorage:function(g,A){if(g.usedBytes!=A)if(0==A)g.contents=null,g.usedBytes=0;else{var I=g.contents;g.contents=new Uint8Array(A),I&&g.contents.set(I.subarray(0,Math.min(A,g.usedBytes))),g.usedBytes=A}},node_ops:{getattr:function(g){var A={};return A.dev=FS.isChrdev(g.mode)?g.id:1,A.ino=g.id,A.mode=g.mode,A.nlink=1,A.uid=0,A.gid=0,A.rdev=g.rdev,FS.isDir(g.mode)?A.size=4096:FS.isFile(g.mode)?A.size=g.usedBytes:FS.isLink(g.mode)?A.size=g.link.length:A.size=0,A.atime=new Date(g.timestamp),A.mtime=new Date(g.timestamp),A.ctime=new Date(g.timestamp),A.blksize=4096,A.blocks=Math.ceil(A.size/A.blksize),A},setattr:function(g,A){void 0!==A.mode&&(g.mode=A.mode),void 0!==A.timestamp&&(g.timestamp=A.timestamp),void 0!==A.size&&MEMFS.resizeFileStorage(g,A.size)},lookup:function(g,A){throw FS.genericErrors[44]},mknod:function(g,A,I,C){return MEMFS.createNode(g,A,I,C)},rename:function(g,A,I){if(FS.isDir(g.mode)){var C;try{C=FS.lookupNode(A,I)}catch(g){}if(C)for(var e in C.contents)throw new FS.ErrnoError(55)}delete g.parent.contents[g.name],g.parent.timestamp=Date.now(),g.name=I,A.contents[I]=g,A.timestamp=g.parent.timestamp,g.parent=A},unlink:function(g,A){delete g.contents[A],g.timestamp=Date.now()},rmdir:function(g,A){var I=FS.lookupNode(g,A);for(var C in I.contents)throw new FS.ErrnoError(55);delete g.contents[A],g.timestamp=Date.now()},readdir:function(g){var A=[".",".."];for(var I in g.contents)g.contents.hasOwnProperty(I)&&A.push(I);return A},symlink:function(g,A,I){var C=MEMFS.createNode(g,A,41471,0);return C.link=I,C},readlink:function(g){if(!FS.isLink(g.mode))throw new FS.ErrnoError(28);return g.link}},stream_ops:{read:function(g,A,I,C,e){var t=g.node.contents;if(e>=g.node.usedBytes)return 0;var n=Math.min(g.node.usedBytes-e,C);if(n>8&&t.subarray)A.set(t.subarray(e,e+n),I);else for(var i=0;i0||C+I=g.node.size)return 0;var t=g.node.contents.slice(e,e+C),n=WORKERFS.reader.readAsArrayBuffer(t);return A.set(new Uint8Array(n),I),t.size},write:function(g,A,I,C,e){throw new FS.ErrnoError(29)},llseek:function(g,A,I){var C=A;if(1===I?C+=g.position:2===I&&FS.isFile(g.node.mode)&&(C+=g.node.size),C<0)throw new FS.ErrnoError(28);return C}}},FS={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:function(g,A){if(A=A||{},!(g=PATH_FS.resolve(FS.cwd(),g)))return{path:"",node:null};var I={follow_mount:!0,recurse_count:0};for(var C in I)void 0===A[C]&&(A[C]=I[C]);if(A.recurse_count>8)throw new FS.ErrnoError(32);for(var e=PATH.normalizeArray(g.split("/").filter((function(g){return!!g})),!1),t=FS.root,n="/",i=0;i40)throw new FS.ErrnoError(32)}}return{path:n,node:t}},getPath:function(g){for(var A;;){if(FS.isRoot(g)){var I=g.mount.mountpoint;return A?"/"!==I[I.length-1]?I+"/"+A:I+A:I}A=A?g.name+"/"+A:g.name,g=g.parent}},hashName:function(g,A){for(var I=0,C=0;C>>0)%FS.nameTable.length},hashAddNode:function(g){var A=FS.hashName(g.parent.id,g.name);g.name_next=FS.nameTable[A],FS.nameTable[A]=g},hashRemoveNode:function(g){var A=FS.hashName(g.parent.id,g.name);if(FS.nameTable[A]===g)FS.nameTable[A]=g.name_next;else for(var I=FS.nameTable[A];I;){if(I.name_next===g){I.name_next=g.name_next;break}I=I.name_next}},lookupNode:function(g,A){var I=FS.mayLookup(g);if(I)throw new FS.ErrnoError(I,g);for(var C=FS.hashName(g.id,A),e=FS.nameTable[C];e;e=e.name_next){var t=e.name;if(e.parent.id===g.id&&t===A)return e}return FS.lookup(g,A)},createNode:function(g,A,I,C){var e=new FS.FSNode(g,A,I,C);return FS.hashAddNode(e),e},destroyNode:function(g){FS.hashRemoveNode(g)},isRoot:function(g){return g===g.parent},isMountpoint:function(g){return!!g.mounted},isFile:function(g){return 32768==(61440&g)},isDir:function(g){return 16384==(61440&g)},isLink:function(g){return 40960==(61440&g)},isChrdev:function(g){return 8192==(61440&g)},isBlkdev:function(g){return 24576==(61440&g)},isFIFO:function(g){return 4096==(61440&g)},isSocket:function(g){return 49152==(49152&g)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(g){var A=FS.flagModes[g];if(void 0===A)throw new Error("Unknown file open mode: "+g);return A},flagsToPermissionString:function(g){var A=["r","w","rw"][3&g];return 512&g&&(A+="w"),A},nodePermissions:function(g,A){return FS.ignorePermissions||(!A.includes("r")||292&g.mode)&&(!A.includes("w")||146&g.mode)&&(!A.includes("x")||73&g.mode)?0:2},mayLookup:function(g){var A=FS.nodePermissions(g,"x");return A||(g.node_ops.lookup?0:2)},mayCreate:function(g,A){try{FS.lookupNode(g,A);return 20}catch(g){}return FS.nodePermissions(g,"wx")},mayDelete:function(g,A,I){var C;try{C=FS.lookupNode(g,A)}catch(g){return g.errno}var e=FS.nodePermissions(g,"wx");if(e)return e;if(I){if(!FS.isDir(C.mode))return 54;if(FS.isRoot(C)||FS.getPath(C)===FS.cwd())return 10}else if(FS.isDir(C.mode))return 31;return 0},mayOpen:function(g,A){return g?FS.isLink(g.mode)?32:FS.isDir(g.mode)&&("r"!==FS.flagsToPermissionString(A)||512&A)?31:FS.nodePermissions(g,FS.flagsToPermissionString(A)):44},MAX_OPEN_FDS:4096,nextfd:function(g,A){g=g||0,A=A||FS.MAX_OPEN_FDS;for(var I=g;I<=A;I++)if(!FS.streams[I])return I;throw new FS.ErrnoError(33)},getStream:function(g){return FS.streams[g]},createStream:function(g,A,I){FS.FSStream||(FS.FSStream=function(){},FS.FSStream.prototype={object:{get:function(){return this.node},set:function(g){this.node=g}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var C=new FS.FSStream;for(var e in g)C[e]=g[e];g=C;var t=FS.nextfd(A,I);return g.fd=t,FS.streams[t]=g,g},closeStream:function(g){FS.streams[g]=null},chrdev_stream_ops:{open:function(g){var A=FS.getDevice(g.node.rdev);g.stream_ops=A.stream_ops,g.stream_ops.open&&g.stream_ops.open(g)},llseek:function(){throw new FS.ErrnoError(70)}},major:function(g){return g>>8},minor:function(g){return 255&g},makedev:function(g,A){return g<<8|A},registerDevice:function(g,A){FS.devices[g]={stream_ops:A}},getDevice:function(g){return FS.devices[g]},getMounts:function(g){for(var A=[],I=[g];I.length;){var C=I.pop();A.push(C),I.push.apply(I,C.mounts)}return A},syncfs:function(g,A){"function"==typeof g&&(A=g,g=!1),FS.syncFSRequests++,FS.syncFSRequests>1&&err("warning: "+FS.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var I=FS.getMounts(FS.root.mount),C=0;function e(g){return FS.syncFSRequests--,A(g)}function t(g){if(g)return t.errored?void 0:(t.errored=!0,e(g));++C>=I.length&&e(null)}I.forEach((function(A){if(!A.type.syncfs)return t(null);A.type.syncfs(A,g,t)}))},mount:function(g,A,I){var C,e="/"===I,t=!I;if(e&&FS.root)throw new FS.ErrnoError(10);if(!e&&!t){var n=FS.lookupPath(I,{follow_mount:!1});if(I=n.path,C=n.node,FS.isMountpoint(C))throw new FS.ErrnoError(10);if(!FS.isDir(C.mode))throw new FS.ErrnoError(54)}var i={type:g,opts:A,mountpoint:I,mounts:[]},r=g.mount(i);return r.mount=i,i.root=r,e?FS.root=r:C&&(C.mounted=i,C.mount&&C.mount.mounts.push(i)),r},unmount:function(g){var A=FS.lookupPath(g,{follow_mount:!1});if(!FS.isMountpoint(A.node))throw new FS.ErrnoError(28);var I=A.node,C=I.mounted,e=FS.getMounts(C);Object.keys(FS.nameTable).forEach((function(g){for(var A=FS.nameTable[g];A;){var I=A.name_next;e.includes(A.mount)&&FS.destroyNode(A),A=I}})),I.mounted=null;var t=I.mount.mounts.indexOf(C);I.mount.mounts.splice(t,1)},lookup:function(g,A){return g.node_ops.lookup(g,A)},mknod:function(g,A,I){var C=FS.lookupPath(g,{parent:!0}).node,e=PATH.basename(g);if(!e||"."===e||".."===e)throw new FS.ErrnoError(28);var t=FS.mayCreate(C,e);if(t)throw new FS.ErrnoError(t);if(!C.node_ops.mknod)throw new FS.ErrnoError(63);return C.node_ops.mknod(C,e,A,I)},create:function(g,A){return A=void 0!==A?A:438,A&=4095,A|=32768,FS.mknod(g,A,0)},mkdir:function(g,A){return A=void 0!==A?A:511,A&=1023,A|=16384,FS.mknod(g,A,0)},mkdirTree:function(g,A){for(var I=g.split("/"),C="",e=0;ethis.length-1||g<0)){var A=g%this.chunkSize,I=g/this.chunkSize|0;return this.getter(I)[A]}},t.prototype.setDataGetter=function(g){this.getter=g},t.prototype.cacheLength=function(){var g=new XMLHttpRequest;if(g.open("HEAD",I,!1),g.send(null),!(g.status>=200&&g.status<300||304===g.status))throw new Error("Couldn't load "+I+". Status: "+g.status);var A,C=Number(g.getResponseHeader("Content-length")),e=(A=g.getResponseHeader("Accept-Ranges"))&&"bytes"===A,t=(A=g.getResponseHeader("Content-Encoding"))&&"gzip"===A,n=1048576;e||(n=C);var i=this;i.setDataGetter((function(g){var A=g*n,e=(g+1)*n-1;if(e=Math.min(e,C-1),void 0===i.chunks[g]&&(i.chunks[g]=function(g,A){if(g>A)throw new Error("invalid range ("+g+", "+A+") or no bytes requested!");if(A>C-1)throw new Error("only "+C+" bytes available! programmer error!");var e=new XMLHttpRequest;if(e.open("GET",I,!1),C!==n&&e.setRequestHeader("Range","bytes="+g+"-"+A),"undefined"!=typeof Uint8Array&&(e.responseType="arraybuffer"),e.overrideMimeType&&e.overrideMimeType("text/plain; charset=x-user-defined"),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+I+". Status: "+e.status);return void 0!==e.response?new Uint8Array(e.response||[]):intArrayFromString(e.responseText||"",!0)}(A,e)),void 0===i.chunks[g])throw new Error("doXHR failed!");return i.chunks[g]})),!t&&C||(n=C=1,C=this.getter(0).length,n=C,out("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=C,this._chunkSize=n,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var n=new t;Object.defineProperties(n,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var i={isDevice:!1,contents:n}}else i={isDevice:!1,url:I};var r=FS.createFile(g,A,i,C,e);i.contents?r.contents=i.contents:i.url&&(r.contents=null,r.url=i.url),Object.defineProperties(r,{usedBytes:{get:function(){return this.contents.length}}});var o={};return Object.keys(r.stream_ops).forEach((function(g){var A=r.stream_ops[g];o[g]=function(){return FS.forceLoadFile(r),A.apply(null,arguments)}})),o.read=function(g,A,I,C,e){FS.forceLoadFile(r);var t=g.node.contents;if(e>=t.length)return 0;var n=Math.min(t.length-e,C);if(t.slice)for(var i=0;i>2]=C.dev,HEAP32[I+4>>2]=0,HEAP32[I+8>>2]=C.ino,HEAP32[I+12>>2]=C.mode,HEAP32[I+16>>2]=C.nlink,HEAP32[I+20>>2]=C.uid,HEAP32[I+24>>2]=C.gid,HEAP32[I+28>>2]=C.rdev,HEAP32[I+32>>2]=0,tempI64=[C.size>>>0,(tempDouble=C.size,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[I+40>>2]=tempI64[0],HEAP32[I+44>>2]=tempI64[1],HEAP32[I+48>>2]=4096,HEAP32[I+52>>2]=C.blocks,HEAP32[I+56>>2]=C.atime.getTime()/1e3|0,HEAP32[I+60>>2]=0,HEAP32[I+64>>2]=C.mtime.getTime()/1e3|0,HEAP32[I+68>>2]=0,HEAP32[I+72>>2]=C.ctime.getTime()/1e3|0,HEAP32[I+76>>2]=0,tempI64=[C.ino>>>0,(tempDouble=C.ino,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[I+80>>2]=tempI64[0],HEAP32[I+84>>2]=tempI64[1],0},doMsync:function(g,A,I,C,e){var t=HEAPU8.slice(g,g+I);FS.msync(A,t,e,I,C)},doMkdir:function(g,A){return"/"===(g=PATH.normalize(g))[g.length-1]&&(g=g.substr(0,g.length-1)),FS.mkdir(g,A,0),0},doMknod:function(g,A,I){switch(61440&A){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return FS.mknod(g,A,I),0},doReadlink:function(g,A,I){if(I<=0)return-28;var C=FS.readlink(g),e=Math.min(I,lengthBytesUTF8(C)),t=HEAP8[A+e];return stringToUTF8(C,A,I+1),HEAP8[A+e]=t,e},doAccess:function(g,A){if(-8&A)return-28;var I;if(!(I=FS.lookupPath(g,{follow:!0}).node))return-44;var C="";return 4&A&&(C+="r"),2&A&&(C+="w"),1&A&&(C+="x"),C&&FS.nodePermissions(I,C)?-2:0},doDup:function(g,A,I){var C=FS.getStream(I);return C&&FS.close(C),FS.open(g,A,0,I,I).fd},doReadv:function(g,A,I,C){for(var e=0,t=0;t>2],i=HEAP32[A+(8*t+4)>>2],r=FS.read(g,HEAP8,n,i,C);if(r<0)return-1;if(e+=r,r>2],i=HEAP32[A+(8*t+4)>>2],r=FS.write(g,HEAP8,n,i,C);if(r<0)return-1;e+=r}return e},varargs:void 0,get:function(){return SYSCALLS.varargs+=4,HEAP32[SYSCALLS.varargs-4>>2]},getStr:function(g){return UTF8ToString(g)},getStreamFromFD:function(g){var A=FS.getStream(g);if(!A)throw new FS.ErrnoError(8);return A},get64:function(g,A){return g}};function ___sys_access(g,A){try{return g=SYSCALLS.getStr(g),SYSCALLS.doAccess(g,A)}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),-g.errno}}function ___sys_chmod(g,A){try{return g=SYSCALLS.getStr(g),FS.chmod(g,A),0}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),-g.errno}}function ___sys_fchmod(g,A){try{return FS.fchmod(g,A),0}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),-g.errno}}function ___sys_fcntl64(g,A,I){SYSCALLS.varargs=I;try{var C=SYSCALLS.getStreamFromFD(g);switch(A){case 0:return(e=SYSCALLS.get())<0?-28:FS.open(C.path,C.flags,0,e).fd;case 1:case 2:case 13:case 14:return 0;case 3:return C.flags;case 4:var e=SYSCALLS.get();return C.flags|=e,0;case 12:e=SYSCALLS.get();return HEAP16[e+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return setErrNo(28),-1}}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),-g.errno}}function ___sys_fstat64(g,A){try{var I=SYSCALLS.getStreamFromFD(g);return SYSCALLS.doStat(FS.stat,I.path,A)}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),-g.errno}}function ___sys_ftruncate64(g,A,I,C){try{var e=SYSCALLS.get64(I,C);return FS.ftruncate(g,e),0}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),-g.errno}}function ___sys_getdents64(g,A,I){try{var C=SYSCALLS.getStreamFromFD(g);C.getdents||(C.getdents=FS.readdir(C.path));for(var e=280,t=0,n=FS.llseek(C,0,1),i=Math.floor(n/e);i>>0,(tempDouble=r,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[A+t>>2]=tempI64[0],HEAP32[A+t+4>>2]=tempI64[1],tempI64=[(i+1)*e>>>0,(tempDouble=(i+1)*e,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[A+t+8>>2]=tempI64[0],HEAP32[A+t+12>>2]=tempI64[1],HEAP16[A+t+16>>1]=280,HEAP8[A+t+18>>0]=o,stringToUTF8(a,A+t+19,256),t+=e,i+=1}return FS.llseek(C,i*e,0),t}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),-g.errno}}function ___sys_getpid(){return 42}function ___sys_ioctl(g,A,I){SYSCALLS.varargs=I;try{var C=SYSCALLS.getStreamFromFD(g);switch(A){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:return C.tty?0:-59;case 21519:if(!C.tty)return-59;var e=SYSCALLS.get();return HEAP32[e>>2]=0,0;case 21520:return C.tty?-28:-59;case 21531:e=SYSCALLS.get();return FS.ioctl(C,A,e);default:abort("bad ioctl syscall "+A)}}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),-g.errno}}function ___sys_mkdir(g,A){try{return g=SYSCALLS.getStr(g),SYSCALLS.doMkdir(g,A)}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),-g.errno}}function syscallMmap2(g,A,I,C,e,t){var n;t<<=12;var i=!1;if(0!=(16&C)&&g%65536!=0)return-28;if(0!=(32&C)){if(!(n=mmapAlloc(A)))return-48;i=!0}else{var r=FS.getStream(e);if(!r)return-8;var o=FS.mmap(r,g,A,t,I,C);n=o.ptr,i=o.allocated}return SYSCALLS.mappings[n]={malloc:n,len:A,allocated:i,fd:e,prot:I,flags:C,offset:t},n}function ___sys_mmap2(g,A,I,C,e,t){try{return syscallMmap2(g,A,I,C,e,t)}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),-g.errno}}var ___sys_mprotect=function(g,A,I){err("warning: unsupported syscall: __sys_mprotect");try{return 0}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),-g.errno}};function syscallMunmap(g,A){var I=SYSCALLS.mappings[g];if(0===A||!I)return-28;if(A===I.len){var C=FS.getStream(I.fd);C&&(2&I.prot&&SYSCALLS.doMsync(g,C,A,I.flags,I.offset),FS.munmap(C)),SYSCALLS.mappings[g]=null,I.allocated&&_free(I.malloc)}return 0}function ___sys_munmap(g,A){try{return syscallMunmap(g,A)}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),-g.errno}}function ___sys_open(g,A,I){SYSCALLS.varargs=I;try{var C=SYSCALLS.getStr(g),e=I?SYSCALLS.get():0;return FS.open(C,A,e).fd}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),-g.errno}}function ___sys_rename(g,A){try{return g=SYSCALLS.getStr(g),A=SYSCALLS.getStr(A),FS.rename(g,A),0}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),-g.errno}}function ___sys_rmdir(g){try{return g=SYSCALLS.getStr(g),FS.rmdir(g),0}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),-g.errno}}function ___sys_stat64(g,A){try{return g=SYSCALLS.getStr(g),SYSCALLS.doStat(FS.stat,g,A)}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),-g.errno}}function ___sys_unlink(g){try{return g=SYSCALLS.getStr(g),FS.unlink(g),0}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),-g.errno}}var char_0=48,char_9=57;function makeLegalFunctionName(g){if(void 0===g)return"_unknown";var A=(g=g.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return A>=char_0&&A<=char_9?"_"+g:g}function createNamedFunction(g,A){return g=makeLegalFunctionName(g),new Function("body","return function "+g+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(A)}var emval_free_list=[],emval_handle_array=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function count_emval_handles(){for(var g=0,A=5;A>2])}var awaitingDependencies={},typeDependencies={},InternalError=void 0;function throwInternalError(g){throw new InternalError(g)}function whenDependentTypesAreResolved(g,A,I){function C(A){var C=I(A);C.length!==g.length&&throwInternalError("Mismatched type converter count");for(var e=0;e>t])},destructorFunction:null})}function ClassHandle_isAliasOf(g){if(!(this instanceof ClassHandle))return!1;if(!(g instanceof ClassHandle))return!1;for(var A=this.$$.ptrType.registeredClass,I=this.$$.ptr,C=g.$$.ptrType.registeredClass,e=g.$$.ptr;A.baseClass;)I=A.upcast(I),A=A.baseClass;for(;C.baseClass;)e=C.upcast(e),C=C.baseClass;return A===C&&I===e}function shallowCopyInternalPointer(g){return{count:g.count,deleteScheduled:g.deleteScheduled,preservePointerOnDelete:g.preservePointerOnDelete,ptr:g.ptr,ptrType:g.ptrType,smartPtr:g.smartPtr,smartPtrType:g.smartPtrType}}function throwInstanceAlreadyDeleted(g){throwBindingError(g.$$.ptrType.registeredClass.name+" instance already deleted")}function ClassHandle_clone(){if(this.$$.ptr||throwInstanceAlreadyDeleted(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var g=attachFinalizer(Object.create(Object.getPrototypeOf(this),{$$:{value:shallowCopyInternalPointer(this.$$)}}));return g.$$.count.value+=1,g.$$.deleteScheduled=!1,g}function ClassHandle_delete(){this.$$.ptr||throwInstanceAlreadyDeleted(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&throwBindingError("Object already scheduled for deletion"),detachFinalizer(this),releaseClassHandle(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function ClassHandle_isDeleted(){return!this.$$.ptr}function ClassHandle_deleteLater(){return this.$$.ptr||throwInstanceAlreadyDeleted(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&throwBindingError("Object already scheduled for deletion"),deletionQueue.push(this),1===deletionQueue.length&&delayFunction&&delayFunction(flushPendingDeletes),this.$$.deleteScheduled=!0,this}function init_ClassHandle(){ClassHandle.prototype.isAliasOf=ClassHandle_isAliasOf,ClassHandle.prototype.clone=ClassHandle_clone,ClassHandle.prototype.delete=ClassHandle_delete,ClassHandle.prototype.isDeleted=ClassHandle_isDeleted,ClassHandle.prototype.deleteLater=ClassHandle_deleteLater}function ClassHandle(){}var registeredPointers={};function ensureOverloadTable(g,A,I){if(void 0===g[A].overloadTable){var C=g[A];g[A]=function(){return g[A].overloadTable.hasOwnProperty(arguments.length)||throwBindingError("Function '"+I+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+g[A].overloadTable+")!"),g[A].overloadTable[arguments.length].apply(this,arguments)},g[A].overloadTable=[],g[A].overloadTable[C.argCount]=C}}function exposePublicSymbol(g,A,I){Module.hasOwnProperty(g)?((void 0===I||void 0!==Module[g].overloadTable&&void 0!==Module[g].overloadTable[I])&&throwBindingError("Cannot register public name '"+g+"' twice"),ensureOverloadTable(Module,g,g),Module.hasOwnProperty(I)&&throwBindingError("Cannot register multiple overloads of a function with the same number of arguments ("+I+")!"),Module[g].overloadTable[I]=A):(Module[g]=A,void 0!==I&&(Module[g].numArguments=I))}function RegisteredClass(g,A,I,C,e,t,n,i){this.name=g,this.constructor=A,this.instancePrototype=I,this.rawDestructor=C,this.baseClass=e,this.getActualType=t,this.upcast=n,this.downcast=i,this.pureVirtualFunctions=[]}function upcastPointer(g,A,I){for(;A!==I;)A.upcast||throwBindingError("Expected null or instance of "+I.name+", got an instance of "+A.name),g=A.upcast(g),A=A.baseClass;return g}function constNoSmartPtrRawPointerToWireType(g,A){if(null===A)return this.isReference&&throwBindingError("null is not a valid "+this.name),0;A.$$||throwBindingError('Cannot pass "'+_embind_repr(A)+'" as a '+this.name),A.$$.ptr||throwBindingError("Cannot pass deleted object as a pointer of type "+this.name);var I=A.$$.ptrType.registeredClass;return upcastPointer(A.$$.ptr,I,this.registeredClass)}function genericPointerToWireType(g,A){var I;if(null===A)return this.isReference&&throwBindingError("null is not a valid "+this.name),this.isSmartPointer?(I=this.rawConstructor(),null!==g&&g.push(this.rawDestructor,I),I):0;A.$$||throwBindingError('Cannot pass "'+_embind_repr(A)+'" as a '+this.name),A.$$.ptr||throwBindingError("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&A.$$.ptrType.isConst&&throwBindingError("Cannot convert argument of type "+(A.$$.smartPtrType?A.$$.smartPtrType.name:A.$$.ptrType.name)+" to parameter type "+this.name);var C=A.$$.ptrType.registeredClass;if(I=upcastPointer(A.$$.ptr,C,this.registeredClass),this.isSmartPointer)switch(void 0===A.$$.smartPtr&&throwBindingError("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:A.$$.smartPtrType===this?I=A.$$.smartPtr:throwBindingError("Cannot convert argument of type "+(A.$$.smartPtrType?A.$$.smartPtrType.name:A.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:I=A.$$.smartPtr;break;case 2:if(A.$$.smartPtrType===this)I=A.$$.smartPtr;else{var e=A.clone();I=this.rawShare(I,__emval_register((function(){e.delete()}))),null!==g&&g.push(this.rawDestructor,I)}break;default:throwBindingError("Unsupporting sharing policy")}return I}function nonConstNoSmartPtrRawPointerToWireType(g,A){if(null===A)return this.isReference&&throwBindingError("null is not a valid "+this.name),0;A.$$||throwBindingError('Cannot pass "'+_embind_repr(A)+'" as a '+this.name),A.$$.ptr||throwBindingError("Cannot pass deleted object as a pointer of type "+this.name),A.$$.ptrType.isConst&&throwBindingError("Cannot convert argument of type "+A.$$.ptrType.name+" to parameter type "+this.name);var I=A.$$.ptrType.registeredClass;return upcastPointer(A.$$.ptr,I,this.registeredClass)}function RegisteredPointer_getPointee(g){return this.rawGetPointee&&(g=this.rawGetPointee(g)),g}function RegisteredPointer_destructor(g){this.rawDestructor&&this.rawDestructor(g)}function RegisteredPointer_deleteObject(g){null!==g&&g.delete()}function downcastPointer(g,A,I){if(A===I)return g;if(void 0===I.baseClass)return null;var C=downcastPointer(g,A,I.baseClass);return null===C?null:I.downcast(C)}function getInheritedInstance(g,A){return A=getBasestPointer(g,A),registeredInstances[A]}function makeClassHandle(g,A){return A.ptrType&&A.ptr||throwInternalError("makeClassHandle requires ptr and ptrType"),!!A.smartPtrType!==!!A.smartPtr&&throwInternalError("Both smartPtrType and smartPtr must be specified"),A.count={value:1},attachFinalizer(Object.create(g,{$$:{value:A}}))}function RegisteredPointer_fromWireType(g){var A=this.getPointee(g);if(!A)return this.destructor(g),null;var I=getInheritedInstance(this.registeredClass,A);if(void 0!==I){if(0===I.$$.count.value)return I.$$.ptr=A,I.$$.smartPtr=g,I.clone();var C=I.clone();return this.destructor(g),C}function e(){return this.isSmartPointer?makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:A,smartPtrType:this,smartPtr:g}):makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this,ptr:g})}var t,n=this.registeredClass.getActualType(A),i=registeredPointers[n];if(!i)return e.call(this);t=this.isConst?i.constPointerType:i.pointerType;var r=downcastPointer(A,this.registeredClass,t.registeredClass);return null===r?e.call(this):this.isSmartPointer?makeClassHandle(t.registeredClass.instancePrototype,{ptrType:t,ptr:r,smartPtrType:this,smartPtr:g}):makeClassHandle(t.registeredClass.instancePrototype,{ptrType:t,ptr:r})}function init_RegisteredPointer(){RegisteredPointer.prototype.getPointee=RegisteredPointer_getPointee,RegisteredPointer.prototype.destructor=RegisteredPointer_destructor,RegisteredPointer.prototype.argPackAdvance=8,RegisteredPointer.prototype.readValueFromPointer=simpleReadValueFromPointer,RegisteredPointer.prototype.deleteObject=RegisteredPointer_deleteObject,RegisteredPointer.prototype.fromWireType=RegisteredPointer_fromWireType}function RegisteredPointer(g,A,I,C,e,t,n,i,r,o,a){this.name=g,this.registeredClass=A,this.isReference=I,this.isConst=C,this.isSmartPointer=e,this.pointeeType=t,this.sharingPolicy=n,this.rawGetPointee=i,this.rawConstructor=r,this.rawShare=o,this.rawDestructor=a,e||void 0!==A.baseClass?this.toWireType=genericPointerToWireType:C?(this.toWireType=constNoSmartPtrRawPointerToWireType,this.destructorFunction=null):(this.toWireType=nonConstNoSmartPtrRawPointerToWireType,this.destructorFunction=null)}function replacePublicSymbol(g,A,I){Module.hasOwnProperty(g)||throwInternalError("Replacing nonexistant public symbol"),void 0!==Module[g].overloadTable&&void 0!==I?Module[g].overloadTable[I]=A:(Module[g]=A,Module[g].argCount=I)}function dynCallLegacy(g,A,I){var C=Module["dynCall_"+g];return I&&I.length?C.apply(null,[A].concat(I)):C.call(null,A)}function dynCall(g,A,I){return g.includes("j")?dynCallLegacy(g,A,I):wasmTable.get(A).apply(null,I)}function getDynCaller(g,A){var I=[];return function(){I.length=arguments.length;for(var C=0;C0?", ":"")+l),c+=(o?"var rv = ":"")+"invoker(fn"+(l.length>0?", ":"")+l+");\n",i)c+="runDestructors(destructors);\n";else for(r=n?1:2;r>2)+C]);return I}function __embind_register_class_class_function(g,A,I,C,e,t,n){var i=heap32VectorToArray(I,C);A=readLatin1String(A),t=embind__requireFunction(e,t),whenDependentTypesAreResolved([],[g],(function(g){var C=(g=g[0]).name+"."+A;function e(){throwUnboundTypeError("Cannot call "+C+" due to unbound types",i)}A.startsWith("@@")&&(A=Symbol[A.substring(2)]);var r=g.registeredClass.constructor;return void 0===r[A]?(e.argCount=I-1,r[A]=e):(ensureOverloadTable(r,A,C),r[A].overloadTable[I-1]=e),whenDependentTypesAreResolved([],i,(function(g){var e=[g[0],null].concat(g.slice(1)),i=craftInvokerFunction(C,e,null,t,n);return void 0===r[A].overloadTable?(i.argCount=I-1,r[A]=i):r[A].overloadTable[I-1]=i,[]})),[]}))}function __embind_register_class_constructor(g,A,I,C,e,t){assert(A>0);var n=heap32VectorToArray(A,I);e=embind__requireFunction(C,e),whenDependentTypesAreResolved([],[g],(function(g){var I="constructor "+(g=g[0]).name;if(void 0===g.registeredClass.constructor_body&&(g.registeredClass.constructor_body=[]),void 0!==g.registeredClass.constructor_body[A-1])throw new BindingError("Cannot register multiple constructors with identical number of parameters ("+(A-1)+") for class '"+g.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return g.registeredClass.constructor_body[A-1]=function(){throwUnboundTypeError("Cannot construct "+g.name+" due to unbound types",n)},whenDependentTypesAreResolved([],n,(function(C){return C.splice(1,0,null),g.registeredClass.constructor_body[A-1]=craftInvokerFunction(I,C,null,e,t),[]})),[]}))}function __embind_register_class_function(g,A,I,C,e,t,n,i){var r=heap32VectorToArray(I,C);A=readLatin1String(A),t=embind__requireFunction(e,t),whenDependentTypesAreResolved([],[g],(function(g){var C=(g=g[0]).name+"."+A;function e(){throwUnboundTypeError("Cannot call "+C+" due to unbound types",r)}A.startsWith("@@")&&(A=Symbol[A.substring(2)]),i&&g.registeredClass.pureVirtualFunctions.push(A);var o=g.registeredClass.instancePrototype,a=o[A];return void 0===a||void 0===a.overloadTable&&a.className!==g.name&&a.argCount===I-2?(e.argCount=I-2,e.className=g.name,o[A]=e):(ensureOverloadTable(o,A,C),o[A].overloadTable[I-2]=e),whenDependentTypesAreResolved([],r,(function(e){var i=craftInvokerFunction(C,e,g,t,n);return void 0===o[A].overloadTable?(i.argCount=I-2,o[A]=i):o[A].overloadTable[I-2]=i,[]})),[]}))}function validateThis(g,A,I){return g instanceof Object||throwBindingError(I+' with invalid "this": '+g),g instanceof A.registeredClass.constructor||throwBindingError(I+' incompatible with "this" of type '+g.constructor.name),g.$$.ptr||throwBindingError("cannot call emscripten binding method "+I+" on deleted object"),upcastPointer(g.$$.ptr,g.$$.ptrType.registeredClass,A.registeredClass)}function __embind_register_class_property(g,A,I,C,e,t,n,i,r,o){A=readLatin1String(A),e=embind__requireFunction(C,e),whenDependentTypesAreResolved([],[g],(function(g){var C=(g=g[0]).name+"."+A,a={get:function(){throwUnboundTypeError("Cannot access "+C+" due to unbound types",[I,n])},enumerable:!0,configurable:!0};return a.set=r?function(){throwUnboundTypeError("Cannot access "+C+" due to unbound types",[I,n])}:function(g){throwBindingError(C+" is a read-only property")},Object.defineProperty(g.registeredClass.instancePrototype,A,a),whenDependentTypesAreResolved([],r?[I,n]:[I],(function(I){var n=I[0],a={get:function(){var A=validateThis(this,g,C+" getter");return n.fromWireType(e(t,A))},enumerable:!0};if(r){r=embind__requireFunction(i,r);var l=I[1];a.set=function(A){var I=validateThis(this,g,C+" setter"),e=[];r(o,I,l.toWireType(e,A)),runDestructors(e)}}return Object.defineProperty(g.registeredClass.instancePrototype,A,a),[]})),[]}))}function __emval_decref(g){g>4&&0==--emval_handle_array[g].refcount&&(emval_handle_array[g]=void 0,emval_free_list.push(g))}function __embind_register_emval(g,A){registerType(g,{name:A=readLatin1String(A),fromWireType:function(g){var A=emval_handle_array[g].value;return __emval_decref(g),A},toWireType:function(g,A){return __emval_register(A)},argPackAdvance:8,readValueFromPointer:simpleReadValueFromPointer,destructorFunction:null})}function _embind_repr(g){if(null===g)return"null";var A=typeof g;return"object"===A||"array"===A||"function"===A?g.toString():""+g}function floatReadValueFromPointer(g,A){switch(A){case 2:return function(g){return this.fromWireType(HEAPF32[g>>2])};case 3:return function(g){return this.fromWireType(HEAPF64[g>>3])};default:throw new TypeError("Unknown float type: "+g)}}function __embind_register_float(g,A,I){var C=getShiftFromSize(I);registerType(g,{name:A=readLatin1String(A),fromWireType:function(g){return g},toWireType:function(g,A){if("number"!=typeof A&&"boolean"!=typeof A)throw new TypeError('Cannot convert "'+_embind_repr(A)+'" to '+this.name);return A},argPackAdvance:8,readValueFromPointer:floatReadValueFromPointer(A,C),destructorFunction:null})}function __embind_register_function(g,A,I,C,e,t){var n=heap32VectorToArray(A,I);g=readLatin1String(g),e=embind__requireFunction(C,e),exposePublicSymbol(g,(function(){throwUnboundTypeError("Cannot call "+g+" due to unbound types",n)}),A-1),whenDependentTypesAreResolved([],n,(function(I){var C=[I[0],null].concat(I.slice(1));return replacePublicSymbol(g,craftInvokerFunction(g,C,null,e,t),A-1),[]}))}function integerReadValueFromPointer(g,A,I){switch(A){case 0:return I?function(g){return HEAP8[g]}:function(g){return HEAPU8[g]};case 1:return I?function(g){return HEAP16[g>>1]}:function(g){return HEAPU16[g>>1]};case 2:return I?function(g){return HEAP32[g>>2]}:function(g){return HEAPU32[g>>2]};default:throw new TypeError("Unknown integer type: "+g)}}function __embind_register_integer(g,A,I,C,e){A=readLatin1String(A),-1===e&&(e=4294967295);var t=getShiftFromSize(I),n=function(g){return g};if(0===C){var i=32-8*I;n=function(g){return g<>>i}}var r=A.includes("unsigned");registerType(g,{name:A,fromWireType:n,toWireType:function(g,I){if("number"!=typeof I&&"boolean"!=typeof I)throw new TypeError('Cannot convert "'+_embind_repr(I)+'" to '+this.name);if(Ie)throw new TypeError('Passing a number "'+_embind_repr(I)+'" from JS side to C/C++ side to an argument of type "'+A+'", which is outside the valid range ['+C+", "+e+"]!");return r?I>>>0:0|I},argPackAdvance:8,readValueFromPointer:integerReadValueFromPointer(A,t,0!==C),destructorFunction:null})}function __embind_register_memory_view(g,A,I){var C=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][A];function e(g){var A=HEAPU32,I=A[g>>=2],e=A[g+1];return new C(buffer,e,I)}registerType(g,{name:I=readLatin1String(I),fromWireType:e,argPackAdvance:8,readValueFromPointer:e},{ignoreDuplicateRegistrations:!0})}function __embind_register_smart_ptr(g,A,I,C,e,t,n,i,r,o,a,l){I=readLatin1String(I),t=embind__requireFunction(e,t),i=embind__requireFunction(n,i),o=embind__requireFunction(r,o),l=embind__requireFunction(a,l),whenDependentTypesAreResolved([g],[A],(function(g){return g=g[0],[new RegisteredPointer(I,g.registeredClass,!1,!1,!0,g,C,t,i,o,l)]}))}function __embind_register_std_string(g,A){var I="std::string"===(A=readLatin1String(A));registerType(g,{name:A,fromWireType:function(g){var A,C=HEAPU32[g>>2];if(I)for(var e=g+4,t=0;t<=C;++t){var n=g+4+t;if(t==C||0==HEAPU8[n]){var i=UTF8ToString(e,n-e);void 0===A?A=i:(A+=String.fromCharCode(0),A+=i),e=n+1}}else{var r=new Array(C);for(t=0;t>2]=e,I&&C)stringToUTF8(A,t+4,e+1);else if(C)for(var n=0;n255&&(_free(t),throwBindingError("String has UTF-16 code units that do not fit in 8 bits")),HEAPU8[t+4+n]=i}else for(n=0;n>2],n=t(),r=g+4,o=0;o<=e;++o){var a=g+4+o*A;if(o==e||0==n[a>>i]){var l=C(r,a-r);void 0===I?I=l:(I+=String.fromCharCode(0),I+=l),r=a+A}}return _free(g),I},toWireType:function(g,C){"string"!=typeof C&&throwBindingError("Cannot pass non-string to C++ string type "+I);var t=n(C),r=_malloc(4+t+A);return HEAPU32[r>>2]=t>>i,e(C,r+4,t+A),null!==g&&g.push(_free,r),r},argPackAdvance:8,readValueFromPointer:simpleReadValueFromPointer,destructorFunction:function(g){_free(g)}})}function __embind_register_value_object(g,A,I,C,e,t){structRegistrations[g]={name:readLatin1String(A),rawConstructor:embind__requireFunction(I,C),rawDestructor:embind__requireFunction(e,t),fields:[]}}function __embind_register_value_object_field(g,A,I,C,e,t,n,i,r,o){structRegistrations[g].fields.push({fieldName:readLatin1String(A),getterReturnType:I,getter:embind__requireFunction(C,e),getterContext:t,setterArgumentType:n,setter:embind__requireFunction(i,r),setterContext:o})}function __embind_register_void(g,A){registerType(g,{isVoid:!0,name:A=readLatin1String(A),argPackAdvance:0,fromWireType:function(){},toWireType:function(g,A){}})}function __emscripten_throw_longjmp(){throw"longjmp"}function __emval_as(g,A,I){g=requireHandle(g),A=requireRegisteredType(A,"emval::as");var C=[],e=__emval_register(C);return HEAP32[I>>2]=e,A.toWireType(C,g)}function __emval_lookupTypes(g,A){for(var I=new Array(g),C=0;C>2)+C],"parameter "+C);return I}function __emval_call(g,A,I,C){g=requireHandle(g);for(var e=__emval_lookupTypes(A,I),t=new Array(A),n=0;n>2]=__emval_register(A),A}var emval_symbols={};function getStringOrSymbol(g){var A=emval_symbols[g];return void 0===A?readLatin1String(g):A}var emval_methodCallers=[],_emscripten_get_now;function __emval_call_method(g,A,I,C,e){return(g=emval_methodCallers[g])(A=requireHandle(A),I=getStringOrSymbol(I),__emval_allocateDestructors(C),e)}function __emval_call_void_method(g,A,I,C){(g=emval_methodCallers[g])(A=requireHandle(A),I=getStringOrSymbol(I),null,C)}function emval_get_global(){return"object"==typeof globalThis?globalThis:Function("return this")()}function __emval_get_global(g){return 0===g?__emval_register(emval_get_global()):(g=getStringOrSymbol(g),__emval_register(emval_get_global()[g]))}function __emval_addMethodCaller(g){var A=emval_methodCallers.length;return emval_methodCallers.push(g),A}function __emval_get_method_caller(g,A){for(var I=__emval_lookupTypes(g,A),C=I[0],e=C.name+"_$"+I.slice(1).map((function(g){return g.name})).join("_")+"$",t=["retType"],n=[C],i="",r=0;r4&&(emval_handle_array[g].refcount+=1)}function __emval_new_cstring(g){return __emval_register(getStringOrSymbol(g))}function __emval_run_destructors(g){runDestructors(emval_handle_array[g].value),__emval_decref(g)}function __emval_take_value(g,A){return __emval_register((g=requireRegisteredType(g,"_emval_take_value")).readValueFromPointer(A))}function __emval_typeof(g){return __emval_register(typeof(g=requireHandle(g)))}function _abort(){abort()}function _clock(){return void 0===_clock.start&&(_clock.start=Date.now()),1e3*(Date.now()-_clock.start)|0}_emscripten_get_now=ENVIRONMENT_IS_NODE?function(){var g=process.hrtime();return 1e3*g[0]+g[1]/1e6}:function(){return performance.now()};var _emscripten_get_now_is_monotonic=!0;function _clock_gettime(g,A){var I;if(0===g)I=Date.now();else{if(1!==g&&4!==g||!_emscripten_get_now_is_monotonic)return setErrNo(28),-1;I=_emscripten_get_now()}return HEAP32[A>>2]=I/1e3|0,HEAP32[A+4>>2]=I%1e3*1e3*1e3|0,0}function _difftime(g,A){return g-A}function _dlclose(g){abort("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function _dlerror(){abort("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function _dlopen(g,A){abort("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function _dlsym(g,A){abort("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}var readAsmConstArgsArray=[];function readAsmConstArgs(g,A){var I;for(readAsmConstArgsArray.length=0,A>>=2;I=HEAPU8[g++];){var C=I<105;C&&1&A&&A++,readAsmConstArgsArray.push(C?HEAPF64[A++>>1]:HEAP32[A]),++A}return readAsmConstArgsArray}function _emscripten_asm_const_int(g,A,I){var C=readAsmConstArgs(A,I);return ASM_CONSTS[g].apply(null,C)}function _emscripten_asm_const_double(g,A,I){return _emscripten_asm_const_int(g,A,I)}function _emscripten_memcpy_big(g,A,I){HEAPU8.copyWithin(g,A,A+I)}function emscripten_realloc_buffer(g){try{return wasmMemory.grow(g-buffer.byteLength+65535>>>16),updateGlobalBufferAndViews(wasmMemory.buffer),1}catch(g){}}function _emscripten_resize_heap(g){var A=HEAPU8.length,I=2147483648;if((g>>>=0)>I)return!1;for(var C=1;C<=4;C*=2){var e=A*(1+.2/C);if(e=Math.min(e,g+100663296),emscripten_realloc_buffer(Math.min(I,alignUp(Math.max(g,e),65536))))return!0}return!1}function _emscripten_run_script(ptr){eval(UTF8ToString(ptr))}var ENV={};function getExecutableName(){return thisProgram||"./this.program"}function getEnvStrings(){if(!getEnvStrings.strings){var g={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:getExecutableName()};for(var A in ENV)void 0===ENV[A]?delete g[A]:g[A]=ENV[A];var I=[];for(var A in g)I.push(A+"="+g[A]);getEnvStrings.strings=I}return getEnvStrings.strings}function _environ_get(g,A){var I=0;return getEnvStrings().forEach((function(C,e){var t=A+I;HEAP32[g+4*e>>2]=t,writeAsciiToMemory(C,t),I+=C.length+1})),0}function _environ_sizes_get(g,A){var I=getEnvStrings();HEAP32[g>>2]=I.length;var C=0;return I.forEach((function(g){C+=g.length+1})),HEAP32[A>>2]=C,0}function _exit(g){exit(g)}function _fd_close(g){try{var A=SYSCALLS.getStreamFromFD(g);return FS.close(A),0}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),g.errno}}function _fd_fdstat_get(g,A){try{var I=SYSCALLS.getStreamFromFD(g),C=I.tty?2:FS.isDir(I.mode)?3:FS.isLink(I.mode)?7:4;return HEAP8[A>>0]=C,0}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),g.errno}}function _fd_read(g,A,I,C){try{var e=SYSCALLS.getStreamFromFD(g),t=SYSCALLS.doReadv(e,A,I);return HEAP32[C>>2]=t,0}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),g.errno}}function _fd_seek(g,A,I,C,e){try{var t=SYSCALLS.getStreamFromFD(g),n=4294967296*I+(A>>>0),i=9007199254740992;return n<=-i||n>=i?-61:(FS.llseek(t,n,C),tempI64=[t.position>>>0,(tempDouble=t.position,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[e>>2]=tempI64[0],HEAP32[e+4>>2]=tempI64[1],t.getdents&&0===n&&0===C&&(t.getdents=null),0)}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),g.errno}}function _fd_sync(g){try{var A=SYSCALLS.getStreamFromFD(g);return A.stream_ops&&A.stream_ops.fsync?-A.stream_ops.fsync(A):0}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),g.errno}}function _fd_write(g,A,I,C){try{var e=SYSCALLS.getStreamFromFD(g),t=SYSCALLS.doWritev(e,A,I);return HEAP32[C>>2]=t,0}catch(g){return void 0!==FS&&g instanceof FS.ErrnoError||abort(g),g.errno}}function _getTempRet0(){return getTempRet0()}function _getentropy(g,A){_getentropy.randomDevice||(_getentropy.randomDevice=getRandomDevice());for(var I=0;I>0]=_getentropy.randomDevice();return 0}function _gettimeofday(g){var A=Date.now();return HEAP32[g>>2]=A/1e3|0,HEAP32[g+4>>2]=A%1e3*1e3|0,0}function _llvm_eh_typeid_for(g){return g}function _setTempRet0(g){setTempRet0(g)}function __isLeapYear(g){return g%4==0&&(g%100!=0||g%400==0)}function __arraySum(g,A){for(var I=0,C=0;C<=A;I+=g[C++]);return I}var __MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31],__MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31];function __addDays(g,A){for(var I=new Date(g.getTime());A>0;){var C=__isLeapYear(I.getFullYear()),e=I.getMonth(),t=(C?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR)[e];if(!(A>t-I.getDate()))return I.setDate(I.getDate()+A),I;A-=t-I.getDate()+1,I.setDate(1),e<11?I.setMonth(e+1):(I.setMonth(0),I.setFullYear(I.getFullYear()+1))}return I}function _strftime(g,A,I,C){var e=HEAP32[C+40>>2],t={tm_sec:HEAP32[C>>2],tm_min:HEAP32[C+4>>2],tm_hour:HEAP32[C+8>>2],tm_mday:HEAP32[C+12>>2],tm_mon:HEAP32[C+16>>2],tm_year:HEAP32[C+20>>2],tm_wday:HEAP32[C+24>>2],tm_yday:HEAP32[C+28>>2],tm_isdst:HEAP32[C+32>>2],tm_gmtoff:HEAP32[C+36>>2],tm_zone:e?UTF8ToString(e):""},n=UTF8ToString(I),i={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var r in i)n=n.replace(new RegExp(r,"g"),i[r]);var o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],a=["January","February","March","April","May","June","July","August","September","October","November","December"];function l(g,A,I){for(var C="number"==typeof g?g.toString():g||"";C.length0?1:0}var C;return 0===(C=I(g.getFullYear()-A.getFullYear()))&&0===(C=I(g.getMonth()-A.getMonth()))&&(C=I(g.getDate()-A.getDate())),C}function s(g){switch(g.getDay()){case 0:return new Date(g.getFullYear()-1,11,29);case 1:return g;case 2:return new Date(g.getFullYear(),0,3);case 3:return new Date(g.getFullYear(),0,2);case 4:return new Date(g.getFullYear(),0,1);case 5:return new Date(g.getFullYear()-1,11,31);case 6:return new Date(g.getFullYear()-1,11,30)}}function u(g){var A=__addDays(new Date(g.tm_year+1900,0,1),g.tm_yday),I=new Date(A.getFullYear(),0,4),C=new Date(A.getFullYear()+1,0,4),e=s(I),t=s(C);return d(e,A)<=0?d(t,A)<=0?A.getFullYear()+1:A.getFullYear():A.getFullYear()-1}var m={"%a":function(g){return o[g.tm_wday].substring(0,3)},"%A":function(g){return o[g.tm_wday]},"%b":function(g){return a[g.tm_mon].substring(0,3)},"%B":function(g){return a[g.tm_mon]},"%C":function(g){return c((g.tm_year+1900)/100|0,2)},"%d":function(g){return c(g.tm_mday,2)},"%e":function(g){return l(g.tm_mday,2," ")},"%g":function(g){return u(g).toString().substring(2)},"%G":function(g){return u(g)},"%H":function(g){return c(g.tm_hour,2)},"%I":function(g){var A=g.tm_hour;return 0==A?A=12:A>12&&(A-=12),c(A,2)},"%j":function(g){return c(g.tm_mday+__arraySum(__isLeapYear(g.tm_year+1900)?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,g.tm_mon-1),3)},"%m":function(g){return c(g.tm_mon+1,2)},"%M":function(g){return c(g.tm_min,2)},"%n":function(){return"\n"},"%p":function(g){return g.tm_hour>=0&&g.tm_hour<12?"AM":"PM"},"%S":function(g){return c(g.tm_sec,2)},"%t":function(){return"\t"},"%u":function(g){return g.tm_wday||7},"%U":function(g){var A=new Date(g.tm_year+1900,0,1),I=0===A.getDay()?A:__addDays(A,7-A.getDay()),C=new Date(g.tm_year+1900,g.tm_mon,g.tm_mday);if(d(I,C)<0){var e=__arraySum(__isLeapYear(C.getFullYear())?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,C.getMonth()-1)-31,t=31-I.getDate()+e+C.getDate();return c(Math.ceil(t/7),2)}return 0===d(I,A)?"01":"00"},"%V":function(g){var A,I=new Date(g.tm_year+1900,0,4),C=new Date(g.tm_year+1901,0,4),e=s(I),t=s(C),n=__addDays(new Date(g.tm_year+1900,0,1),g.tm_yday);return d(n,e)<0?"53":d(t,n)<=0?"01":(A=e.getFullYear()=0;return A=(A=Math.abs(A)/60)/60*100+A%60,(I?"+":"-")+String("0000"+A).slice(-4)},"%Z":function(g){return g.tm_zone},"%%":function(){return"%"}};for(var r in m)n.includes(r)&&(n=n.replace(new RegExp(r,"g"),m[r](t)));var v=intArrayFromString(n,!1);return v.length>A?0:(writeArrayToMemory(v,g),v.length-1)}function jstoi_q(g){return parseInt(g)}function _strptime(g,A,I){for(var C=UTF8ToString(A),e="\\!@#$^&*()+=-[]/{}|:<>?,.",t=0,n=e.length;t=0;t=C.indexOf("%"))l.push(C[t+1]),C=C.replace(new RegExp("\\%"+C[t+1],"g"),"");var c=new RegExp("^"+C,"i").exec(UTF8ToString(g));if(c){var d,s=function(){function g(g,A,I){return"number"!=typeof g||isNaN(g)?A:g>=A?g<=I?g:I:A}return{year:g(HEAP32[I+20>>2]+1900,1970,9999),month:g(HEAP32[I+16>>2],0,11),day:g(HEAP32[I+12>>2],1,31),hour:g(HEAP32[I+8>>2],0,23),min:g(HEAP32[I+4>>2],0,59),sec:g(HEAP32[I>>2],0,59)}}(),u=function(g){var A=l.indexOf(g);if(A>=0)return c[A+1]};if((d=u("S"))&&(s.sec=jstoi_q(d)),(d=u("M"))&&(s.min=jstoi_q(d)),d=u("H"))s.hour=jstoi_q(d);else if(d=u("I")){var m=jstoi_q(d);(d=u("p"))&&(m+="P"===d.toUpperCase()[0]?12:0),s.hour=m}if(d=u("Y"))s.year=jstoi_q(d);else if(d=u("y")){var v=jstoi_q(d);(d=u("C"))?v+=100*jstoi_q(d):v+=v<69?2e3:1900,s.year=v}if((d=u("m"))?s.month=jstoi_q(d)-1:(d=u("b"))&&(s.month={JAN:0,FEB:1,MAR:2,APR:3,MAY:4,JUN:5,JUL:6,AUG:7,SEP:8,OCT:9,NOV:10,DEC:11}[d.substring(0,3).toUpperCase()]||0),d=u("d"))s.day=jstoi_q(d);else if(d=u("j"))for(var b=jstoi_q(d),Z=__isLeapYear(s.year),p=0;p<12;++p){var h=__arraySum(Z?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,p-1);b<=h+(Z?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR)[p]&&(s.day=b-h)}else if(d=u("a")){var R=d.substring(0,3).toUpperCase();if(d=u("U")){var y={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6}[R],w=jstoi_q(d);D=0===(M=new Date(s.year,0,1)).getDay()?__addDays(M,y+7*(w-1)):__addDays(M,7-M.getDay()+y+7*(w-1)),s.day=D.getDate(),s.month=D.getMonth()}else if(d=u("W")){var M,D;y={MON:0,TUE:1,WED:2,THU:3,FRI:4,SAT:5,SUN:6}[R],w=jstoi_q(d);D=1===(M=new Date(s.year,0,1)).getDay()?__addDays(M,y+7*(w-1)):__addDays(M,7-M.getDay()+1+y+7*(w-1)),s.day=D.getDate(),s.month=D.getMonth()}}var S=new Date(s.year,s.month,s.day,s.hour,s.min,s.sec,0);return HEAP32[I>>2]=S.getSeconds(),HEAP32[I+4>>2]=S.getMinutes(),HEAP32[I+8>>2]=S.getHours(),HEAP32[I+12>>2]=S.getDate(),HEAP32[I+16>>2]=S.getMonth(),HEAP32[I+20>>2]=S.getFullYear()-1900,HEAP32[I+24>>2]=S.getDay(),HEAP32[I+28>>2]=__arraySum(__isLeapYear(S.getFullYear())?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,S.getMonth()-1)+S.getDate()-1,HEAP32[I+32>>2]=0,g+intArrayFromString(c[0]).length-1}return 0}function _time(g){var A=Date.now()/1e3|0;return g&&(HEAP32[g>>2]=A),A}function _timegm(g){_tzset();var A=Date.UTC(HEAP32[g+20>>2]+1900,HEAP32[g+16>>2],HEAP32[g+12>>2],HEAP32[g+8>>2],HEAP32[g+4>>2],HEAP32[g>>2],0),I=new Date(A);HEAP32[g+24>>2]=I.getUTCDay();var C=Date.UTC(I.getUTCFullYear(),0,1,0,0,0,0),e=(I.getTime()-C)/864e5|0;return HEAP32[g+28>>2]=e,I.getTime()/1e3|0}var FSNode=function(g,A,I,C){g||(g=this),this.parent=g,this.mount=g.mount,this.mounted=null,this.id=FS.nextInode++,this.name=A,this.mode=I,this.node_ops={},this.stream_ops={},this.rdev=C},readMode=365,writeMode=146;function intArrayFromString(g,A,I){var C=I>0?I:lengthBytesUTF8(g)+1,e=new Array(C),t=stringToUTF8Array(g,e,0,e.length);return A&&(e.length=t),e}Object.defineProperties(FSNode.prototype,{read:{get:function(){return(this.mode&readMode)===readMode},set:function(g){g?this.mode|=readMode:this.mode&=~readMode}},write:{get:function(){return(this.mode&writeMode)===writeMode},set:function(g){g?this.mode|=writeMode:this.mode&=~writeMode}},isFolder:{get:function(){return FS.isDir(this.mode)}},isDevice:{get:function(){return FS.isChrdev(this.mode)}}}),FS.FSNode=FSNode,FS.staticInit(),Module.FS_createPath=FS.createPath,Module.FS_createDataFile=FS.createDataFile,Module.FS_createPreloadedFile=FS.createPreloadedFile,Module.FS_createLazyFile=FS.createLazyFile,Module.FS_createDevice=FS.createDevice,Module.FS_unlink=FS.unlink,init_emval(),PureVirtualError=Module.PureVirtualError=extendError(Error,"PureVirtualError"),embind_init_charCodes(),init_embind(),BindingError=Module.BindingError=extendError(Error,"BindingError"),InternalError=Module.InternalError=extendError(Error,"InternalError"),init_ClassHandle(),init_RegisteredPointer(),UnboundTypeError=Module.UnboundTypeError=extendError(Error,"UnboundTypeError");var decodeBase64="function"==typeof atob?atob:function(g){var A,I,C,e,t,n,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="",o=0;g=g.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{A=i.indexOf(g.charAt(o++))<<2|(e=i.indexOf(g.charAt(o++)))>>4,I=(15&e)<<4|(t=i.indexOf(g.charAt(o++)))>>2,C=(3&t)<<6|(n=i.indexOf(g.charAt(o++))),r+=String.fromCharCode(A),64!==t&&(r+=String.fromCharCode(I)),64!==n&&(r+=String.fromCharCode(C))}while(o0||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),A()}),1)):A()))}function exit(g,A){EXITSTATUS=g,keepRuntimeAlive()||exitRuntime(),procExit(g)}function procExit(g){EXITSTATUS=g,keepRuntimeAlive()||(Module.onExit&&Module.onExit(g),ABORT=!0),quit_(g,new ExitStatus(g))}if(Module.addRunDependency=addRunDependency,Module.removeRunDependency=removeRunDependency,Module.FS_createPath=FS.createPath,Module.FS_createDataFile=FS.createDataFile,Module.FS_createPreloadedFile=FS.createPreloadedFile,Module.FS_createLazyFile=FS.createLazyFile,Module.FS_createDevice=FS.createDevice,Module.FS_unlink=FS.unlink,Module.FS=FS,dependenciesFulfilled=function g(){calledRun||run(),calledRun||(dependenciesFulfilled=g)},Module.run=run,Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();return run(),PSPDFModuleInit.ready}}();"object"==typeof exports&&"object"==typeof module?module.exports=PSPDFModuleInit:"function"==typeof define&&define.amd?define([],(function(){return PSPDFModuleInit})):"object"==typeof exports&&(exports.PSPDFModuleInit=PSPDFModuleInit); \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/windows-ba2e2d3f7c5061a9.css b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/windows-ba2e2d3f7c5061a9.css index c701ea71..3f2439b9 100644 --- a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/windows-ba2e2d3f7c5061a9.css +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit-lib/windows-ba2e2d3f7c5061a9.css @@ -1,5 +1,5 @@ /*! - * PSPDFKit for Web 2023.4.0 (https://pspdfkit.com/web) + * PSPDFKit for Web 2023.5.0-3f96296 (https://pspdfkit.com/web) * * Copyright (c) 2016-2023 PSPDFKit GmbH. All rights reserved. * diff --git a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit.js b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit.js index 2fc34453..f3fb0654 100644 --- a/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit.js +++ b/EnvelopeGenerator.Web/wwwroot/lib/pspdfkit.js @@ -1,5 +1,5 @@ /*! - * PSPDFKit for Web 2023.4.0 (https://pspdfkit.com/web) + * PSPDFKit for Web 2023.5.0-3f96296 (https://pspdfkit.com/web) * * Copyright (c) 2016-2023 PSPDFKit GmbH. All rights reserved. * @@ -10,4 +10,4 @@ * * PSPDFKit uses several open source third-party components: https://pspdfkit.com/acknowledgements/web/ */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.PSPDFKit=t():e.PSPDFKit=t()}(self,(()=>(()=>{var e,t,n,o,r={84121:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}function r(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}function i(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>i})},22122:(e,t,n)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;to})},17375:(e,t,n)=>{"use strict";function o(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,{Z:()=>o})},53912:(e,t,n)=>{"use strict";function o(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(null==e||e(o),!1===n||!o.defaultPrevented)return null==t?void 0:t(o)}}n.d(t,{M:()=>o})},21286:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var o=n(67294),r=n(47257),i=n(72261),a=n(8145);function s(e){const t=e+"CollectionProvider",[n,s]=(0,r.b)(t),[l,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=e=>{const{scope:t,children:n}=e,r=o.useRef(null),i=o.useRef(new Map).current;return o.createElement(l,{scope:t,itemMap:i,collectionRef:r},n)},d=e+"CollectionSlot",p=o.forwardRef(((e,t)=>{const{scope:n,children:r}=e,s=c(d,n),l=(0,i.e)(t,s.collectionRef);return o.createElement(a.g7,{ref:l},r)})),f=e+"CollectionItemSlot",h="data-radix-collection-item",m=o.forwardRef(((e,t)=>{const{scope:n,children:r,...s}=e,l=o.useRef(null),u=(0,i.e)(t,l),d=c(f,n);return o.useEffect((()=>(d.itemMap.set(l,{ref:l,...s}),()=>{d.itemMap.delete(l)}))),o.createElement(a.g7,{[h]:"",ref:u},r)}));return[{Provider:u,Slot:p,ItemSlot:m},function(t){const n=c(e+"CollectionConsumer",t);return o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},s]}},72261:(e,t,n)=>{"use strict";n.d(t,{F:()=>r,e:()=>i});var o=n(67294);function r(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function i(...e){return(0,o.useCallback)(r(...e),e)}},47257:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var o=n(67294);function r(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,o.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,o.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const i=(0,o.createContext)(r),a=n.length;function s(t){const{scope:n,children:r,...s}=t,l=(null==n?void 0:n[e][a])||i,c=(0,o.useMemo)((()=>s),Object.values(s));return(0,o.createElement)(l.Provider,{value:c},r)}return n=[...n,r],s.displayName=t+"Provider",[s,function(n,s){const l=(null==s?void 0:s[e][a])||i,c=(0,o.useContext)(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},i(r,...t)]}function i(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:o})=>({...t,...n(e)[`__scope${o}`]})),{});return(0,o.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}},69409:(e,t,n)=>{"use strict";n.d(t,{gm:()=>i});var o=n(67294);const r=(0,o.createContext)(void 0);function i(e){const t=(0,o.useContext)(r);return e||t||"ltr"}},48923:(e,t,n)=>{"use strict";function o(){return o=Object.assign||function(e){for(var t=1;th});var r=n(67294),i=n(53912),a=n(84178),s=n(72261),l=n(88751);const c="dismissableLayer.update",u="dismissableLayer.pointerDownOutside",d="dismissableLayer.focusOutside";let p;const f=(0,r.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=(0,r.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:v,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:w,onDismiss:S,...E}=e,P=(0,r.useContext)(f),[x,D]=(0,r.useState)(null),C=null!==(n=null==x?void 0:x.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,k]=(0,r.useState)({}),A=(0,s.e)(t,(e=>D(e))),O=Array.from(P.layers),[T]=[...P.layersWithOutsidePointerEventsDisabled].slice(-1),I=O.indexOf(T),F=x?O.indexOf(x):-1,M=P.layersWithOutsidePointerEventsDisabled.size>0,_=F>=I,R=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=(0,l.W)(e),o=(0,r.useRef)(!1),i=(0,r.useRef)((()=>{}));return(0,r.useEffect)((()=>{const e=e=>{if(e.target&&!o.current){const r={originalEvent:e};function a(){g(u,n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}o.current=!1},r=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,n]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...P.branches].some((e=>e.contains(t)));_&&!n&&(null==y||y(e),null==w||w(e),e.defaultPrevented||null==S||S())}),C),N=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=(0,l.W)(e),o=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{const e=e=>{if(e.target&&!o.current){g(d,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...P.branches].some((e=>e.contains(t)))||(null==b||b(e),null==w||w(e),e.defaultPrevented||null==S||S())}),C);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=(0,l.W)(e);(0,r.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{F===P.layers.size-1&&(null==v||v(e),!e.defaultPrevented&&S&&(e.preventDefault(),S()))}),C),(0,r.useEffect)((()=>{if(x)return h&&(0===P.layersWithOutsidePointerEventsDisabled.size&&(p=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),P.layersWithOutsidePointerEventsDisabled.add(x)),P.layers.add(x),m(),()=>{h&&1===P.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=p)}}),[x,C,h,P]),(0,r.useEffect)((()=>()=>{x&&(P.layers.delete(x),P.layersWithOutsidePointerEventsDisabled.delete(x),m())}),[x,P]),(0,r.useEffect)((()=>{const e=()=>k({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)}),[]),(0,r.createElement)(a.WV.div,o({},E,{ref:A,style:{pointerEvents:M?_?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,R.onPointerDownCapture)}))}));function m(){const e=new CustomEvent(c);document.dispatchEvent(e)}function g(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?(0,a.jH)(r,i):r.dispatchEvent(i)}},12921:(e,t,n)=>{"use strict";function o(){return o=Object.assign||function(e){for(var t=1;tnt,oC:()=>Qe,VY:()=>Xe,ck:()=>Je,Uv:()=>Ye,Ee:()=>et,Rk:()=>tt,fC:()=>He,xz:()=>$e});var r=n(67294),i=n(53912),a=n(72261),s=n(47257),l=n(16180),c=n(84178);function u(){return u=Object.assign||function(e){for(var t=1;t{var t;const{__scopeMenu:n,open:o=!1,children:i,dir:a,onOpenChange:s,modal:l=!0}=e,c=_(n),[u,d]=(0,r.useState)(null),f=(0,r.useRef)(!1),h=(0,E.W)(s),m=(0,p.gm)(a),g=null!==(t=null==u?void 0:u.ownerDocument)&&void 0!==t?t:document;return(0,r.useEffect)((()=>{const e=()=>{f.current=!0,g.addEventListener("pointerdown",t,{capture:!0,once:!0}),g.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return g.addEventListener("keydown",e,{capture:!0}),()=>{g.removeEventListener("keydown",e,{capture:!0}),g.removeEventListener("pointerdown",t,{capture:!0}),g.removeEventListener("pointermove",t,{capture:!0})}}),[g]),(0,r.createElement)(v.fC,c,(0,r.createElement)(N,{scope:n,open:o,onOpenChange:h,content:u,onContentChange:d},(0,r.createElement)(B,{scope:n,onClose:(0,r.useCallback)((()=>h(!1)),[h]),isUsingKeyboardRef:f,dir:m,modal:l},i)))},K=(0,r.forwardRef)(((e,t)=>{const{__scopeMenu:n,...o}=e,i=_(n);return(0,r.createElement)(v.ee,u({},i,o,{ref:t}))})),Z="MenuPortal",[U,V]=F(Z,{forceMount:void 0}),G=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:i}=e,a=L(Z,t);return(0,r.createElement)(U,{scope:t,forceMount:n},(0,r.createElement)(b.z,{present:n||a.open},(0,r.createElement)(y.h,{asChild:!0,container:i},o)))},W="MenuContent",[q,H]=F(W),$=(0,r.forwardRef)(((e,t)=>{const n=V(W,e.__scopeMenu),{forceMount:o=n.forceMount,...i}=e,a=L(W,e.__scopeMenu),s=j(W,e.__scopeMenu);return(0,r.createElement)(O.Provider,{scope:e.__scopeMenu},(0,r.createElement)(b.z,{present:o||a.open},(0,r.createElement)(O.Slot,{scope:e.__scopeMenu},s.modal?(0,r.createElement)(Y,u({},i,{ref:t})):(0,r.createElement)(X,u({},i,{ref:t})))))})),Y=(0,r.forwardRef)(((e,t)=>{const n=L(W,e.__scopeMenu),o=(0,r.useRef)(null),s=(0,a.e)(t,o);return(0,r.useEffect)((()=>{const e=o.current;if(e)return(0,P.Ry)(e)}),[]),(0,r.createElement)(J,u({},e,{ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.M)(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),X=(0,r.forwardRef)(((e,t)=>{const n=L(W,e.__scopeMenu);return(0,r.createElement)(J,u({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),J=(0,r.forwardRef)(((e,t)=>{var n,o;const{__scopeMenu:s,loop:l=!1,trapFocus:c,onOpenAutoFocus:d,onCloseAutoFocus:p,disableOutsidePointerEvents:g,onEscapeKeyDown:y,onPointerDownOutside:b,onFocusOutside:E,onInteractOutside:P,onDismiss:D,disableOutsideScroll:A,...O}=e,I=L(W,s),F=j(W,s),M=_(s),N=R(s),B=T(s),[z,K]=(0,r.useState)(null),Z=(0,r.useRef)(null),U=(0,a.e)(t,Z,I.onContentChange),V=(0,r.useRef)(0),G=(0,r.useRef)(""),H=(0,r.useRef)(0),$=(0,r.useRef)(null),Y=(0,r.useRef)("right"),X=(0,r.useRef)(0),J=null!==(n=null===(o=Z.current)||void 0===o?void 0:o.ownerDocument)&&void 0!==n?n:document,Q=A?x.f:r.Fragment,ee=A?{as:S.g7,allowPinchZoom:!0}:void 0,te=e=>{var t,n;const o=G.current+e,r=B().filter((e=>!e.disabled)),i=J.activeElement,a=null===(t=r.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,s=function(e,t,n){const o=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,r=n?e.indexOf(n):-1;let i=(a=e,s=Math.max(r,0),a.map(((e,t)=>a[(s+t)%a.length])));var a,s;1===o.length&&(i=i.filter((e=>e!==n)));const l=i.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return l!==n?l:void 0}(r.map((e=>e.textValue)),o,a),l=null===(n=r.find((e=>e.textValue===s)))||void 0===n?void 0:n.ref.current;!function e(t){var n;G.current=t;const o=null!==(n=J.defaultView)&&void 0!==n?n:window;o.clearTimeout(V.current),""!==t&&(V.current=o.setTimeout((()=>e("")),1e3))}(o),l&&setTimeout((()=>l.focus()))};(0,r.useEffect)((()=>()=>{var e;return null===(e=J.defaultView)||void 0===e?void 0:e.clearTimeout(V.current)}),[J]),(0,h.EW)(J);const ne=(0,r.useCallback)((e=>{var t,n;return Y.current===(null===(t=$.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;return function(e,t){const{x:n,y:o}=e;let r=!1;for(let e=0,i=t.length-1;eo!=c>o&&n<(l-a)*(o-s)/(c-s)+a&&(r=!r)}return r}({x:e.clientX,y:e.clientY},t)}(e,null===(n=$.current)||void 0===n?void 0:n.area)}),[]);return(0,r.createElement)(q,{scope:s,searchRef:G,onItemEnter:(0,r.useCallback)((e=>{ne(e)&&e.preventDefault()}),[ne]),onItemLeave:(0,r.useCallback)((e=>{var t;ne(e)||(null===(t=Z.current)||void 0===t||t.focus(),K(null))}),[ne]),onTriggerLeave:(0,r.useCallback)((e=>{ne(e)&&e.preventDefault()}),[ne]),pointerGraceTimerRef:H,onPointerGraceIntentChange:(0,r.useCallback)((e=>{$.current=e}),[])},(0,r.createElement)(Q,ee,(0,r.createElement)(m.M,{asChild:!0,trapped:c,onMountAutoFocus:(0,i.M)(d,(e=>{var t;e.preventDefault(),null===(t=Z.current)||void 0===t||t.focus()})),onUnmountAutoFocus:p},(0,r.createElement)(f.XB,{asChild:!0,disableOutsidePointerEvents:g,onEscapeKeyDown:y,onPointerDownOutside:b,onFocusOutside:E,onInteractOutside:P,onDismiss:D},(0,r.createElement)(w.fC,u({asChild:!0},N,{dir:F.dir,orientation:"vertical",loop:l,currentTabStopId:z,onCurrentTabStopIdChange:K,onEntryFocus:e=>{F.isUsingKeyboardRef.current||e.preventDefault()}}),(0,r.createElement)(v.VY,u({role:"menu","aria-orientation":"vertical","data-state":ye(I.open),"data-radix-menu-content":"",dir:F.dir},M,O,{ref:U,style:{outline:"none",...O.style},onKeyDown:(0,i.M)(O.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,o=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&o&&te(e.key));const r=Z.current;if(e.target!==r)return;if(!k.includes(e.key))return;e.preventDefault();const i=B().filter((e=>!e.disabled)).map((e=>e.ref.current));C.includes(e.key)&&i.reverse(),function(e,t=document){const n=t.activeElement;for(const o of e){if(o===n)return;if(o.focus(),t.activeElement!==n)return}}(i,J)})),onBlur:(0,i.M)(e.onBlur,(e=>{var t;e.currentTarget.contains(e.target)||((null!==(t=J.defaultView)&&void 0!==t?t:window).clearTimeout(V.current),G.current="")})),onPointerMove:(0,i.M)(e.onPointerMove,Se((e=>{const t=e.target,n=X.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>X.current?"right":"left";Y.current=t,X.current=e.clientX}})))})))))))})),Q=(0,r.forwardRef)(((e,t)=>{const{__scopeMenu:n,...o}=e;return(0,r.createElement)(c.WV.div,u({role:"group"},o,{ref:t}))})),ee="MenuItem",te="menu.itemSelect",ne=(0,r.forwardRef)(((e,t)=>{const{disabled:n=!1,onSelect:o,...s}=e,l=(0,r.useRef)(null),d=j(ee,e.__scopeMenu),p=H(ee,e.__scopeMenu),f=(0,a.e)(t,l),h=(0,r.useRef)(!1);return(0,r.createElement)(oe,u({},s,{ref:f,disabled:n,onClick:(0,i.M)(e.onClick,(()=>{const e=l.current;if(!n&&e){const t=new CustomEvent(te,{bubbles:!0,cancelable:!0});e.addEventListener(te,(e=>null==o?void 0:o(e)),{once:!0}),(0,c.jH)(e,t),t.defaultPrevented?h.current=!1:d.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),h.current=!0},onPointerUp:(0,i.M)(e.onPointerUp,(e=>{var t;h.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:(0,i.M)(e.onKeyDown,(e=>{const t=""!==p.searchRef.current;n||t&&" "===e.key||D.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),oe=(0,r.forwardRef)(((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:s,...l}=e,d=H(ee,n),p=R(n),f=(0,r.useRef)(null),h=(0,a.e)(t,f),[m,g]=(0,r.useState)(!1),[v,y]=(0,r.useState)("");return(0,r.useEffect)((()=>{const e=f.current;var t;e&&y((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[l.children]),(0,r.createElement)(O.ItemSlot,{scope:n,disabled:o,textValue:null!=s?s:v},(0,r.createElement)(w.ck,u({asChild:!0},p,{focusable:!o}),(0,r.createElement)(c.WV.div,u({role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0},l,{ref:h,onPointerMove:(0,i.M)(e.onPointerMove,Se((e=>{if(o)d.onItemLeave(e);else if(d.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus()}}))),onPointerLeave:(0,i.M)(e.onPointerLeave,Se((e=>d.onItemLeave(e)))),onFocus:(0,i.M)(e.onFocus,(()=>g(!0))),onBlur:(0,i.M)(e.onBlur,(()=>g(!1)))}))))})),re=(0,r.forwardRef)(((e,t)=>{const{checked:n=!1,onCheckedChange:o,...a}=e;return(0,r.createElement)(pe,{scope:e.__scopeMenu,checked:n},(0,r.createElement)(ne,u({role:"menuitemcheckbox","aria-checked":be(n)?"mixed":n},a,{ref:t,"data-state":we(n),onSelect:(0,i.M)(a.onSelect,(()=>null==o?void 0:o(!!be(n)||!n)),{checkForDefaultPrevented:!1})})))})),ie="MenuRadioGroup",[ae,se]=F(ie,{value:void 0,onValueChange:()=>{}}),le=(0,r.forwardRef)(((e,t)=>{const{value:n,onValueChange:o,...i}=e,a=(0,E.W)(o);return(0,r.createElement)(ae,{scope:e.__scopeMenu,value:n,onValueChange:a},(0,r.createElement)(Q,u({},i,{ref:t})))})),ce="MenuRadioItem",ue=(0,r.forwardRef)(((e,t)=>{const{value:n,...o}=e,a=se(ce,e.__scopeMenu),s=n===a.value;return(0,r.createElement)(pe,{scope:e.__scopeMenu,checked:s},(0,r.createElement)(ne,u({role:"menuitemradio","aria-checked":s},o,{ref:t,"data-state":we(s),onSelect:(0,i.M)(o.onSelect,(()=>{var e;return null===(e=a.onValueChange)||void 0===e?void 0:e.call(a,n)}),{checkForDefaultPrevented:!1})})))})),de="MenuItemIndicator",[pe,fe]=F(de,{checked:!1}),he=(0,r.forwardRef)(((e,t)=>{const{__scopeMenu:n,...o}=e,i=_(n);return(0,r.createElement)(v.Eh,u({},i,o,{ref:t}))})),me="MenuSub",[ge,ve]=F(me);function ye(e){return e?"open":"closed"}function be(e){return"indeterminate"===e}function we(e){return be(e)?"indeterminate":e?"checked":"unchecked"}function Se(e){return t=>"mouse"===t.pointerType?e(t):void 0}const Ee=z,Pe=K,xe=G,De=$,Ce=ne,ke=re,Ae=le,Oe=ue,Te=he,Ie="DropdownMenu",[Fe,Me]=(0,s.b)(Ie,[M]),_e=M(),[Re,Ne]=Fe(Ie),Le=e=>{const{__scopeDropdownMenu:t,children:n,dir:i,open:a,defaultOpen:s,onOpenChange:c,modal:u=!0}=e,d=_e(t),p=(0,r.useRef)(null),[f=!1,h]=(0,l.T)({prop:a,defaultProp:s,onChange:c});return(0,r.createElement)(Re,{scope:t,triggerId:(0,g.M)(),triggerRef:p,contentId:(0,g.M)(),open:f,onOpenChange:h,onOpenToggle:(0,r.useCallback)((()=>h((e=>!e))),[h]),modal:u},(0,r.createElement)(Ee,o({},d,{open:f,onOpenChange:h,dir:i,modal:u}),n))},Be="DropdownMenuTrigger",je=(0,r.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,disabled:s=!1,...l}=e,u=Ne(Be,n),d=_e(n);return(0,r.createElement)(Pe,o({asChild:!0},d),(0,r.createElement)(c.WV.button,o({type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":s?"":void 0,disabled:s},l,{ref:(0,a.F)(t,u.triggerRef),onPointerDown:(0,i.M)(e.onPointerDown,(e=>{s||0!==e.button||!1!==e.ctrlKey||(u.onOpenToggle(),u.open||e.preventDefault())})),onKeyDown:(0,i.M)(e.onKeyDown,(e=>{s||(["Enter"," "].includes(e.key)&&u.onOpenToggle(),"ArrowDown"===e.key&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),ze=e=>{const{__scopeDropdownMenu:t,...n}=e,i=_e(t);return(0,r.createElement)(xe,o({},i,n))},Ke="DropdownMenuContent",Ze=(0,r.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,s=Ne(Ke,n),l=_e(n),c=(0,r.useRef)(!1);return(0,r.createElement)(De,o({id:s.contentId,"aria-labelledby":s.triggerId},l,a,{ref:t,onCloseAutoFocus:(0,i.M)(e.onCloseAutoFocus,(e=>{var t;c.current||null===(t=s.triggerRef.current)||void 0===t||t.focus(),c.current=!1,e.preventDefault()})),onInteractOutside:(0,i.M)(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,o=2===t.button||n;s.modal&&!o||(c.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))})),Ue=(0,r.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,a=_e(n);return(0,r.createElement)(Ce,o({},a,i,{ref:t}))})),Ve=(0,r.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,a=_e(n);return(0,r.createElement)(ke,o({},a,i,{ref:t}))})),Ge=(0,r.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,a=_e(n);return(0,r.createElement)(Ae,o({},a,i,{ref:t}))})),We=(0,r.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,a=_e(n);return(0,r.createElement)(Oe,o({},a,i,{ref:t}))})),qe=(0,r.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,a=_e(n);return(0,r.createElement)(Te,o({},a,i,{ref:t}))})),He=Le,$e=je,Ye=ze,Xe=Ze,Je=Ue,Qe=Ve,et=Ge,tt=We,nt=qe},57279:(e,t,n)=>{"use strict";n.d(t,{EW:()=>i});var o=n(67294);let r=0;function i(e=document){(0,o.useEffect)((()=>{var t,n;const o=e.querySelectorAll("[data-radix-focus-guard]");return e.body.insertAdjacentElement("afterbegin",null!==(t=o[0])&&void 0!==t?t:a()),e.body.insertAdjacentElement("beforeend",null!==(n=o[1])&&void 0!==n?n:a()),r++,()=>{1===r&&e.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),r--}}),[e])}function a(e=document){const t=e.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}},1788:(e,t,n)=>{"use strict";function o(){return o=Object.assign||function(e){for(var t=1;td});var r=n(67294),i=n(72261),a=n(84178),s=n(88751);const l="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",u={bubbles:!1,cancelable:!0},d=(0,r.forwardRef)(((e,t)=>{var n;const{loop:d=!1,trapped:h=!1,onMountAutoFocus:v,onUnmountAutoFocus:y,...b}=e,[w,S]=(0,r.useState)(null),E=(0,s.W)(v),P=(0,s.W)(y),x=(0,r.useRef)(null),D=null!==(n=null==w?void 0:w.ownerDocument)&&void 0!==n?n:document,C=(0,i.e)(t,(e=>S(e))),k=(0,r.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,r.useEffect)((()=>{if(h){function e(e){if(k.paused||!w)return;const t=e.target;w.contains(t)?x.current=t:m(x.current,{select:!0,ownerDocument:D})}function t(e){!k.paused&&w&&(w.contains(e.relatedTarget)||m(x.current,{select:!0,ownerDocument:D}))}return D.addEventListener("focusin",e),D.addEventListener("focusout",t),()=>{D.removeEventListener("focusin",e),D.removeEventListener("focusout",t)}}}),[h,w,k.paused,D]),(0,r.useEffect)((()=>{if(w){g.add(k);const t=D.activeElement;if(!w.contains(t)){const n=new CustomEvent(l,u);w.addEventListener(l,E),w.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1,ownerDocument:n=document}={}){const o=n.activeElement;for(const r of e)if(m(r,{select:t,ownerDocument:n}),n.activeElement!==o)return}((e=p(w),e.filter((e=>"A"!==e.tagName))),{select:!0,ownerDocument:D}),D.activeElement===t&&m(w,{ownerDocument:D}))}return()=>{w.removeEventListener(l,E),setTimeout((()=>{const e=new CustomEvent(c,u);w.addEventListener(c,P),w.dispatchEvent(e),e.defaultPrevented||m(null!=t?t:D.body,{select:!0,ownerDocument:D}),w.removeEventListener(c,P),g.remove(k)}),0)}}var e}),[w,D,E,P,k]);const A=(0,r.useCallback)((e=>{if(!d&&!h)return;if(k.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=D.activeElement;if(t&&n){const t=e.currentTarget,[o,r]=function(e){const t=p(e),n=f(t,e),o=f(t.reverse(),e);return[n,o]}(t);o&&r?e.shiftKey||n!==r?e.shiftKey&&n===o&&(e.preventDefault(),d&&m(r,{select:!0,ownerDocument:D})):(e.preventDefault(),d&&m(o,{select:!0,ownerDocument:D})):n===t&&e.preventDefault()}}),[d,h,k.paused,D]);return(0,r.createElement)(a.WV.div,o({tabIndex:-1},b,{ref:C,onKeyDown:A}))}));function p(e){const t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function f(e,t){for(const n of e)if(!h(n,{upTo:t}))return n}function h(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function m(e,{select:t=!1,ownerDocument:n=document}={}){if(e&&e.focus){const o=n.activeElement;e.focus({preventScroll:!0}),e!==o&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const g=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=v(e,t),e.unshift(t)},remove(t){var n;e=v(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function v(e,t){const n=[...e],o=n.indexOf(t);return-1!==o&&n.splice(o,1),n}},69448:(e,t,n)=>{"use strict";var o;n.d(t,{M:()=>l});var r=n(67294),i=n(14805);const a=(o||(o=n.t(r,2)))["useId".toString()]||(()=>{});let s=0;function l(e){const[t,n]=r.useState(a());return(0,i.b)((()=>{e||n((e=>null!=e?e:String(s++)))}),[e]),e||(t?`radix-${t}`:"")}},54941:(e,t,n)=>{"use strict";function o(){return o=Object.assign||function(e){for(var t=1;tZ,VY:()=>G,h_:()=>V,fC:()=>K,xz:()=>U});var r=n(67294),i=n(53912),a=n(72261),s=n(47257),l=n(48923),c=n(57279),u=n(1788),d=n(69448),p=n(74943),f=n(37103),h=n(83583),m=n(84178),g=n(8145),v=n(16180),y=n(23541),b=n(81066);const w="Popover",[S,E]=(0,s.b)(w,[p.D7]),P=(0,p.D7)(),[x,D]=S(w),C=e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!1}=e,l=P(t),c=(0,r.useRef)(null),[u,f]=(0,r.useState)(!1),[h=!1,m]=(0,v.T)({prop:o,defaultProp:i,onChange:a});return(0,r.createElement)(p.fC,l,(0,r.createElement)(x,{scope:t,contentId:(0,d.M)(),triggerRef:c,open:h,onOpenChange:m,onOpenToggle:(0,r.useCallback)((()=>m((e=>!e))),[m]),hasCustomAnchor:u,onCustomAnchorAdd:(0,r.useCallback)((()=>f(!0)),[]),onCustomAnchorRemove:(0,r.useCallback)((()=>f(!1)),[]),modal:s},n))},k="PopoverAnchor",A=(0,r.forwardRef)(((e,t)=>{const{__scopePopover:n,...i}=e,a=D(k,n),s=P(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=a;return(0,r.useEffect)((()=>(l(),()=>c())),[l,c]),(0,r.createElement)(p.ee,o({},s,i,{ref:t}))})),O="PopoverTrigger",T=(0,r.forwardRef)(((e,t)=>{const{__scopePopover:n,...s}=e,l=D(O,n),c=P(n),u=(0,a.e)(t,l.triggerRef),d=(0,r.createElement)(m.WV.button,o({type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":z(l.open)},s,{ref:u,onClick:(0,i.M)(e.onClick,l.onOpenToggle)}));return l.hasCustomAnchor?d:(0,r.createElement)(p.ee,o({asChild:!0},c),d)})),I="PopoverPortal",[F,M]=S(I,{forceMount:void 0}),_=e=>{const{__scopePopover:t,forceMount:n,children:o,container:i}=e,a=D(I,t);return(0,r.createElement)(F,{scope:t,forceMount:n},(0,r.createElement)(h.z,{present:n||a.open},(0,r.createElement)(f.h,{asChild:!0,container:i},o)))},R="PopoverContent",N=(0,r.forwardRef)(((e,t)=>{const n=M(R,e.__scopePopover),{forceMount:i=n.forceMount,...a}=e,s=D(R,e.__scopePopover);return(0,r.createElement)(h.z,{present:i||s.open},s.modal?(0,r.createElement)(L,o({},a,{ref:t})):(0,r.createElement)(B,o({},a,{ref:t})))})),L=(0,r.forwardRef)(((e,t)=>{const n=D(R,e.__scopePopover),s=(0,r.useRef)(null),l=(0,a.e)(t,s),c=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{const e=s.current;if(e)return(0,y.Ry)(e)}),[]),(0,r.createElement)(b.f,{as:g.g7,allowPinchZoom:!0},(0,r.createElement)(j,o({},e,{ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.M)(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),c.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:(0,i.M)(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,o=2===t.button||n;c.current=o}),{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.M)(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})))})),B=(0,r.forwardRef)(((e,t)=>{const n=D(R,e.__scopePopover),i=(0,r.useRef)(!1);return(0,r.createElement)(j,o({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,r;(null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented)||(i.current||null===(r=n.triggerRef.current)||void 0===r||r.focus(),t.preventDefault());i.current=!1},onInteractOutside:t=>{var o,r;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(i.current=!0);const a=t.target;(null===(r=n.triggerRef.current)||void 0===r?void 0:r.contains(a))&&t.preventDefault()}}))})),j=(0,r.forwardRef)(((e,t)=>{const{__scopePopover:n,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:d,disableOutsidePointerEvents:f,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,...y}=e,b=D(R,n),w=P(n),[S,E]=(0,r.useState)(document),x=(0,a.e)(t,(e=>{var t;return E(null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document)}));return(0,c.EW)(S),(0,r.createElement)(u.M,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:d},(0,r.createElement)(l.XB,{asChild:!0,disableOutsidePointerEvents:f,onInteractOutside:v,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:g,onDismiss:()=>b.onOpenChange(!1)},(0,r.createElement)(p.VY,o({"data-state":z(b.open),role:"dialog",id:b.contentId},w,y,{ref:x,style:{...y.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function z(e){return e?"open":"closed"}const K=C,Z=A,U=T,V=_,G=N},74943:(e,t,n)=>{"use strict";function o(){return o=Object.assign||function(e){for(var t=1;tZe,Eh:()=>Ve,VY:()=>Ue,fC:()=>Ke,D7:()=>Ee});var r=n(67294);function i(e){return e.split("-")[0]}function a(e){return e.split("-")[1]}function s(e){return["top","bottom"].includes(i(e))?"x":"y"}function l(e){return"y"===e?"height":"width"}function c(e,t,n){let{reference:o,floating:r}=e;const c=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,d=s(t),p=l(d),f=o[p]/2-r[p]/2,h="x"===d;let m;switch(i(t)){case"top":m={x:c,y:o.y-r.height};break;case"bottom":m={x:c,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:u};break;case"left":m={x:o.x-r.width,y:u};break;default:m={x:o.x,y:o.y}}switch(a(t)){case"start":m[d]-=f*(n&&h?-1:1);break;case"end":m[d]+=f*(n&&h?-1:1)}return m}function u(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function d(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function p(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=t,g=u(m),v=s[h?"floating"===f?"reference":"floating":f],y=d(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:p,strategy:l})),b=d(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...a.floating,x:o,y:r}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),strategy:l}):a[f]);return{top:y.top-b.top+g.top,bottom:b.bottom-y.bottom+g.bottom,left:y.left-b.left+g.left,right:b.right-y.right+g.right}}const f=Math.min,h=Math.max;function m(e,t,n){return h(e,f(t,n))}const g=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:c,rects:d,platform:p}=t;if(null==n)return{};const f=u(o),h={x:r,y:i},g=s(c),v=a(c),y=l(g),b=await p.getDimensions(n),w="y"===g?"top":"left",S="y"===g?"bottom":"right",E=d.reference[y]+d.reference[g]-h[g]-d.floating[y],P=h[g]-d.reference[g],x=await(null==p.getOffsetParent?void 0:p.getOffsetParent(n));let D=x?"y"===g?x.clientHeight||0:x.clientWidth||0:0;0===D&&(D=d.floating[y]);const C=E/2-P/2,k=f[w],A=D-b[y]-f[S],O=D/2-b[y]/2+C,T=m(k,O,A),I=("start"===v?f[w]:f[S])>0&&O!==T&&d.reference[y]<=d.floating[y];return{[g]:h[g]-(I?Ov[e]))}function b(e,t,n){void 0===n&&(n=!1);const o=a(e),r=s(e),i=l(r);let c="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=y(c)),{main:c,cross:y(c)}}const w={start:"end",end:"start"};function S(e){return e.replace(/start|end/g,(e=>w[e]))}const E=["top","right","bottom","left"],P=(E.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",flipAlignment:m=!0,...g}=e,v=i(o),w=f||(v!==s&&m?function(e){const t=y(e);return[S(e),t,S(t)]}(s):[y(s)]),E=[s,...w],P=await p(t,g),x=[];let D=(null==(n=r.flip)?void 0:n.overflows)||[];if(u&&x.push(P[v]),d){const{main:e,cross:t}=b(o,a,await(null==l.isRTL?void 0:l.isRTL(c.floating)));x.push(P[e],P[t])}if(D=[...D,{placement:o,overflows:x}],!x.every((e=>e<=0))){var C,k;const e=(null!=(C=null==(k=r.flip)?void 0:k.index)?C:0)+1,t=E[e];if(t)return{data:{index:e,overflows:D},reset:{placement:t}};let n="bottom";switch(h){case"bestFit":{var A;const e=null==(A=D.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:A[0].placement;e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}});function x(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function D(e){return E.some((t=>e[t]>=0))}const C=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=x(await p(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:D(t)}}}case"escaped":{const t=x(await p(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:D(t)}}}default:return{}}}}},k=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,l=await(null==o.isRTL?void 0:o.isRTL(r.floating)),c=i(n),u=a(n),d="x"===s(n),p=["left","top"].includes(c)?-1:1,f=l&&d?-1:1,h="function"==typeof t?t(e):t;let{mainAxis:m,crossAxis:g,alignmentAxis:v}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return u&&"number"==typeof v&&(g="end"===u?-1*v:v),d?{x:g*f,y:m*p}:{x:m*p,y:g*f}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};function A(e){return"x"===e?"y":"x"}const O=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=e,d={x:n,y:o},f=await p(t,u),h=s(i(r)),g=A(h);let v=d[h],y=d[g];if(a){const e="y"===h?"bottom":"right";v=m(v+f["y"===h?"top":"left"],v,v-f[e])}if(l){const e="y"===g?"bottom":"right";y=m(y+f["y"===g?"top":"left"],y,y-f[e])}const b=c.fn({...t,[h]:v,[g]:y});return{...b,data:{x:b.x-n,y:b.y-o}}}}},T=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:a,middlewareData:l}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=e,p={x:n,y:o},f=s(r),h=A(f);let m=p[f],g=p[h];const v="function"==typeof c?c({...a,placement:r}):c,y="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+y.mainAxis,n=a.reference[f]+a.reference[e]-y.mainAxis;mn&&(m=n)}if(d){var b,w,S,E;const e="y"===f?"width":"height",t=["top","left"].includes(i(r)),n=a.reference[h]-a.floating[e]+(t&&null!=(b=null==(w=l.offset)?void 0:w[h])?b:0)+(t?0:y.crossAxis),o=a.reference[h]+a.reference[e]+(t?0:null!=(S=null==(E=l.offset)?void 0:E[h])?S:0)-(t?y.crossAxis:0);go&&(g=o)}return{[f]:m,[h]:g}}}};function I(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function F(e){if(null==e)return window;if(!I(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function M(e){return F(e).getComputedStyle(e)}function _(e){return I(e)?"":e?(e.nodeName||"").toLowerCase():""}function R(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function N(e){return e instanceof F(e).HTMLElement}function L(e){return e instanceof F(e).Element}function B(e){return"undefined"!=typeof ShadowRoot&&(e instanceof F(e).ShadowRoot||e instanceof ShadowRoot)}function j(e){const{overflow:t,overflowX:n,overflowY:o}=M(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function z(e){return["table","td","th"].includes(_(e))}function K(e){const t=/firefox/i.test(R()),n=M(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function Z(){return!/^((?!chrome|android).)*safari/i.test(R())}const U=Math.min,V=Math.max,G=Math.round;function W(e,t,n){var o,r,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&N(e)&&(l=e.offsetWidth>0&&G(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&G(s.height)/e.offsetHeight||1);const u=L(e)?F(e):window,d=!Z()&&n,p=(s.left+(d&&null!=(o=null==(r=u.visualViewport)?void 0:r.offsetLeft)?o:0))/l,f=(s.top+(d&&null!=(i=null==(a=u.visualViewport)?void 0:a.offsetTop)?i:0))/c,h=s.width/l,m=s.height/c;return{width:h,height:m,top:f,right:p+h,bottom:f+m,left:p,x:p,y:f}}function q(e){return(t=e,(t instanceof F(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function H(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $(e){return W(q(e)).left+H(e).scrollLeft}function Y(e,t,n){const o=N(t),r=q(t),i=W(e,o&&function(e){const t=W(e);return G(t.width)!==e.offsetWidth||G(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==_(t)||j(r))&&(a=H(t)),N(t)){const e=W(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else r&&(s.x=$(r));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function X(e){return"html"===_(e)?e:e.assignedSlot||e.parentNode||(B(e)?e.host:null)||q(e)}function J(e){return N(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function Q(e){const t=F(e);let n=J(e);for(;n&&z(n)&&"static"===getComputedStyle(n).position;)n=J(n);return n&&("html"===_(n)||"body"===_(n)&&"static"===getComputedStyle(n).position&&!K(n))?t:n||function(e){let t=X(e);for(B(t)&&(t=t.host);N(t)&&!["html","body"].includes(_(t));){if(K(t))return t;t=t.parentNode}return null}(e)||t}function ee(e){if(N(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=W(e);return{width:t.width,height:t.height}}function te(e){const t=X(e);return["html","body","#document"].includes(_(t))?e.ownerDocument.body:N(t)&&j(t)?t:te(t)}function ne(e,t){var n;void 0===t&&(t=[]);const o=te(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=F(o),a=r?[i].concat(i.visualViewport||[],j(o)?o:[]):o,s=t.concat(a);return r?s:s.concat(ne(a))}function oe(e,t,n){return"viewport"===t?d(function(e,t){const n=F(e),o=q(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){i=r.width,a=r.height;const e=Z();(e||!e&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):L(t)?function(e,t){const n=W(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):d(function(e){var t;const n=q(e),o=H(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=V(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=V(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let s=-o.scrollLeft+$(e);const l=-o.scrollTop;return"rtl"===M(r||n).direction&&(s+=V(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(q(e)))}function re(e){const t=ne(e),n=["absolute","fixed"].includes(M(e).position)&&N(e)?Q(e):e;return L(n)?t.filter((e=>L(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&B(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==_(e))):[]}const ie={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?re(t):[].concat(n),o],a=i[0],s=i.reduce(((e,n)=>{const o=oe(t,n,r);return e.top=V(o.top,e.top),e.right=U(o.right,e.right),e.bottom=U(o.bottom,e.bottom),e.left=V(o.left,e.left),e}),oe(t,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=N(n),i=q(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==_(n)||j(i))&&(a=H(n)),N(n))){const e=W(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:L,getDimensions:ee,getOffsetParent:Q,getDocumentElement:q,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:Y(t,Q(n),o),floating:{...ee(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===M(e).direction};function ae(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=o,l=r&&!s,c=i&&!s,u=l||c?[...L(e)?ne(e):[],...ne(t)]:[];u.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let d,p=null;if(a){let o=!0;p=new ResizeObserver((()=>{o||n(),o=!1})),L(e)&&!s&&p.observe(e),p.observe(t)}let f=s?W(e):null;return s&&function t(){const o=W(e);!f||o.x===f.x&&o.y===f.y&&o.width===f.width&&o.height===f.height||n(),f=o,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(d)}}const se=(e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=c(l,o,s),p=o,f={},h=0;for(let n=0;n{t.current=e})),t}(i),c=r.useRef(null),[u,d]=r.useState({x:null,y:null,strategy:o,placement:n,middlewareData:{}}),[p,f]=r.useState(t);ue(null==p?void 0:p.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||f(t);const h=r.useCallback((()=>{a.current&&s.current&&se(a.current,s.current,{middleware:p,placement:n,strategy:o}).then((e=>{m.current&&le.flushSync((()=>{d(e)}))}))}),[p,n,o]);ce((()=>{m.current&&h()}),[h]);const m=r.useRef(!1);ce((()=>(m.current=!0,()=>{m.current=!1})),[]);const g=r.useCallback((()=>{if("function"==typeof c.current&&(c.current(),c.current=null),a.current&&s.current)if(l.current){const e=l.current(a.current,s.current,h);c.current=e}else h()}),[h,l]),v=r.useCallback((e=>{a.current=e,g()}),[g]),y=r.useCallback((e=>{s.current=e,g()}),[g]),b=r.useMemo((()=>({reference:a,floating:s})),[]);return r.useMemo((()=>({...u,update:h,refs:b,reference:v,floating:y})),[u,h,b,v,y])}const pe=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return o=t,Object.prototype.hasOwnProperty.call(o,"current")?null!=t.current?g({element:t.current,padding:n}).fn(e):{}:t?g({element:t,padding:n}).fn(e):{};var o}}};function fe(){return fe=Object.assign||function(e){for(var t=1;t{const{children:n,width:o=10,height:i=5,...a}=e;return(0,r.createElement)(he.WV.svg,fe({},a,{ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,r.createElement)("polygon",{points:"0,0 30,0 15,10"}))})),ge=me;var ve=n(72261),ye=n(47257),be=n(14805);const we="Popper",[Se,Ee]=(0,ye.b)(we),[Pe,xe]=Se(we),De=e=>{const{__scopePopper:t,children:n}=e,[o,i]=(0,r.useState)(null);return(0,r.createElement)(Pe,{scope:t,anchor:o,onAnchorChange:i},n)},Ce="PopperAnchor",ke=(0,r.forwardRef)(((e,t)=>{const{__scopePopper:n,virtualRef:i,...a}=e,s=xe(Ce,n),l=(0,r.useRef)(null),c=(0,ve.e)(t,l);return(0,r.useEffect)((()=>{s.onAnchorChange((null==i?void 0:i.current)||l.current)})),i?null:(0,r.createElement)(he.WV.div,o({},a,{ref:c}))})),Ae="PopperContent",[Oe,Te]=Se(Ae),[Ie,Fe]=Se(Ae,{hasParent:!1,positionUpdateFns:new Set}),Me=(0,r.forwardRef)(((e,t)=>{var n,o,i,a,s,l,c,u;const{__scopePopper:d,side:p="bottom",sideOffset:f=0,align:h="center",alignOffset:m=0,arrowPadding:g=0,collisionBoundary:v=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,avoidCollisions:S=!0,...E}=e,x=xe(Ae,d),[D,A]=(0,r.useState)(null),I=(0,ve.e)(t,(e=>A(e))),[F,M]=(0,r.useState)(null),_=function(e){const[t,n]=(0,r.useState)(void 0);return(0,be.b)((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const o=t[0];let r,i;if("borderBoxSize"in o){const e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(F),R=null!==(n=null==_?void 0:_.width)&&void 0!==n?n:0,N=null!==(o=null==_?void 0:_.height)&&void 0!==o?o:0,L=p+("center"!==h?"-"+h:""),B="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},j=Array.isArray(v)?v:[v],z=j.length>0,K={padding:B,boundary:j.filter(Be),altBoundary:z},{reference:Z,floating:U,strategy:V,x:G,y:W,placement:q,middlewareData:H,update:$}=de({strategy:"fixed",placement:L,whileElementsMounted:ae,middleware:[k({mainAxis:f+N,alignmentAxis:m}),S?O({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?T():void 0,...K}):void 0,F?pe({element:F,padding:g}):void 0,S?P({...K}):void 0,je({arrowWidth:R,arrowHeight:N}),w?C({strategy:"referenceHidden"}):void 0].filter(Le)});(0,be.b)((()=>{Z(x.anchor)}),[Z,x.anchor]);const Y=null!==G&&null!==W,[X,J]=ze(q),Q=null===(i=H.arrow)||void 0===i?void 0:i.x,ee=null===(a=H.arrow)||void 0===a?void 0:a.y,te=0!==(null===(s=H.arrow)||void 0===s?void 0:s.centerOffset),[ne,oe]=(0,r.useState)();(0,be.b)((()=>{if(D){var e;const t=null!==(e=D.ownerDocument.defaultView)&&void 0!==e?e:window;oe(t.getComputedStyle(D).zIndex)}}),[D]);const{hasParent:re,positionUpdateFns:ie}=Fe(Ae,d),se=!re;(0,r.useLayoutEffect)((()=>{if(!se)return ie.add($),()=>{ie.delete($)}}),[se,ie,$]),(0,r.useLayoutEffect)((()=>{se&&Y&&Array.from(ie).reverse().forEach((e=>requestAnimationFrame(e)))}),[se,Y,ie]);const le={"data-side":X,"data-align":J,...E,ref:I,style:{...E.style,animation:Y?void 0:"none",opacity:null!==(l=H.hide)&&void 0!==l&&l.referenceHidden?0:void 0}};return(0,r.createElement)("div",{ref:U,"data-radix-popper-content-wrapper":"",style:{position:V,left:0,top:0,transform:Y?`translate3d(${Math.round(G)}px, ${Math.round(W)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[null===(c=H.transformOrigin)||void 0===c?void 0:c.x,null===(u=H.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,r.createElement)(Oe,{scope:d,placedSide:X,onArrowChange:M,arrowX:Q,arrowY:ee,shouldHideArrow:te},se?(0,r.createElement)(Ie,{scope:d,hasParent:!0,positionUpdateFns:ie},(0,r.createElement)(he.WV.div,le)):(0,r.createElement)(he.WV.div,le)))})),_e="PopperArrow",Re={top:"bottom",right:"left",bottom:"top",left:"right"},Ne=(0,r.forwardRef)((function(e,t){const{__scopePopper:n,...i}=e,a=Te(_e,n),s=Re[a.placedSide];return(0,r.createElement)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},(0,r.createElement)(ge,o({},i,{ref:t,style:{...i.style,display:"block"}})))}));function Le(e){return void 0!==e}function Be(e){return null!==e}const je=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,i,a;const{placement:s,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[f,h]=ze(s),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(o=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==o?o:0)+d/2,v=(null!==(i=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+p/2;let y="",b="";return"bottom"===f?(y=u?m:`${g}px`,b=-p+"px"):"top"===f?(y=u?m:`${g}px`,b=`${l.floating.height+p}px`):"right"===f?(y=-p+"px",b=u?m:`${v}px`):"left"===f&&(y=`${l.floating.width+p}px`,b=u?m:`${v}px`),{data:{x:y,y:b}}}});function ze(e){const[t,n="center"]=e.split("-");return[t,n]}const Ke=De,Ze=ke,Ue=Me,Ve=Ne},37103:(e,t,n)=>{"use strict";function o(){return o=Object.assign||function(e){for(var t=1;ts});var r=n(67294),i=n(73935),a=n(84178);const s=(0,r.forwardRef)(((e,t)=>{var n;const{container:s=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...l}=e;return s?i.createPortal((0,r.createElement)(a.WV.div,o({},l,{ref:t})),s):null}))},83583:(e,t,n)=>{"use strict";n.d(t,{z:()=>s});var o=n(67294),r=n(73935),i=n(72261),a=n(14805);const s=e=>{const{present:t,children:n}=e,s=function(e){const[t,n]=(0,o.useState)(),i=(0,o.useRef)({}),s=(0,o.useRef)(e),c=(0,o.useRef)("none"),u=e?"mounted":"unmounted",[d,p]=function(e,t){return(0,o.useReducer)(((e,n)=>{const o=t[e][n];return null!=o?o:e}),e)}(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,o.useEffect)((()=>{const e=l(i.current);c.current="mounted"===d?e:"none"}),[d]),(0,a.b)((()=>{const t=i.current,n=s.current;if(n!==e){const o=c.current,r=l(t);if(e)p("MOUNT");else if("none"===r||"none"===(null==t?void 0:t.display))p("UNMOUNT");else{const e=o!==r;p(n&&e?"ANIMATION_OUT":"UNMOUNT")}s.current=e}}),[e,p]),(0,a.b)((()=>{if(t){const e=e=>{const n=l(i.current).includes(e.animationName);e.target===t&&n&&(0,r.flushSync)((()=>p("ANIMATION_END")))},n=e=>{e.target===t&&(c.current=l(i.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}p("ANIMATION_END")}),[t,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:(0,o.useCallback)((e=>{e&&(i.current=getComputedStyle(e)),n(e)}),[])}}(t),c="function"==typeof n?n({present:s.isPresent}):o.Children.only(n),u=(0,i.e)(s.ref,c.ref);return"function"==typeof n||s.isPresent?(0,o.cloneElement)(c,{ref:u}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},84178:(e,t,n)=>{"use strict";function o(){return o=Object.assign||function(e){for(var t=1;ts,jH:()=>l});var r=n(67294),i=n(73935),a=n(8145);const s=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,r.forwardRef)(((e,n)=>{const{asChild:i,...s}=e,l=i?a.g7:t;return(0,r.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,r.createElement)(l,o({},s,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function l(e,t){e&&(0,i.flushSync)((()=>e.dispatchEvent(t)))}},20026:(e,t,n)=>{"use strict";function o(){return o=Object.assign||function(e){for(var t=1;tI,fC:()=>T,Pc:()=>S});var r=n(67294),i=n(53912),a=n(21286),s=n(72261),l=n(47257),c=n(69448),u=n(84178),d=n(88751),p=n(16180),f=n(69409);const h="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[v,y,b]=(0,a.B)(g),[w,S]=(0,l.b)(g,[b]),[E,P]=w(g),x=(0,r.forwardRef)(((e,t)=>(0,r.createElement)(v.Provider,{scope:e.__scopeRovingFocusGroup},(0,r.createElement)(v.Slot,{scope:e.__scopeRovingFocusGroup},(0,r.createElement)(D,o({},e,{ref:t})))))),D=(0,r.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:l=!1,dir:c,currentTabStopId:g,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:b,onEntryFocus:w,...S}=e,P=(0,r.useRef)(null),x=(0,s.e)(t,P),D=(0,f.gm)(c),[C=null,k]=(0,p.T)({prop:g,defaultProp:v,onChange:b}),[A,T]=(0,r.useState)(!1),I=(0,d.W)(w),F=y(n),M=(0,r.useRef)(!1),[_,R]=(0,r.useState)(0),[N,L]=(0,r.useState)(document);return(0,r.useEffect)((()=>{const e=P.current;if(e)return L(e.ownerDocument),e.addEventListener(h,I),()=>e.removeEventListener(h,I)}),[I]),(0,r.createElement)(E,{scope:n,orientation:a,dir:D,loop:l,currentTabStopId:C,onItemFocus:(0,r.useCallback)((e=>k(e)),[k]),onItemShiftTab:(0,r.useCallback)((()=>T(!0)),[]),onFocusableItemAdd:(0,r.useCallback)((()=>R((e=>e+1))),[]),onFocusableItemRemove:(0,r.useCallback)((()=>R((e=>e-1))),[])},(0,r.createElement)(u.WV.div,o({tabIndex:A||0===_?-1:0,"data-orientation":a},S,{ref:x,style:{outline:"none",...e.style},onMouseDown:(0,i.M)(e.onMouseDown,(()=>{M.current=!0})),onFocus:(0,i.M)(e.onFocus,(e=>{const t=!M.current;if(e.target===e.currentTarget&&t&&!A){const t=new CustomEvent(h,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=F().filter((e=>e.focusable));O([e.find((e=>e.active)),e.find((e=>e.id===C)),...e].filter(Boolean).map((e=>e.ref.current)),N)}}M.current=!1})),onBlur:(0,i.M)(e.onBlur,(()=>T(!1)))})))})),C="RovingFocusGroupItem",k=(0,r.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:l=!1,...d}=e,p=(0,c.M)(),f=P(C,n),h=f.currentTabStopId===p,m=y(n),[g,b]=(0,r.useState)(document),w=(0,s.e)(t,(e=>{var t;return b(null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document)})),{onFocusableItemAdd:S,onFocusableItemRemove:E}=f;return(0,r.useEffect)((()=>{if(a)return S(),()=>E()}),[a,S,E]),(0,r.createElement)(v.ItemSlot,{scope:n,id:p,focusable:a,active:l},(0,r.createElement)(u.WV.span,o({tabIndex:h?0:-1,"data-orientation":f.orientation},d,{ref:w,onMouseDown:(0,i.M)(e.onMouseDown,(e=>{a?f.onItemFocus(p):e.preventDefault()})),onFocus:(0,i.M)(e.onFocus,(()=>f.onItemFocus(p))),onKeyDown:(0,i.M)(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const o=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(o)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)?void 0:A[o]}(e,f.orientation,f.dir);if(void 0!==t){e.preventDefault();let r=m().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();const i=r.indexOf(e.currentTarget);r=f.loop?(o=i+1,(n=r).map(((e,t)=>n[(o+t)%n.length]))):r.slice(i+1)}setTimeout((()=>O(r,g)))}var n,o}))})))})),A={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function O(e,t=document){const n=t.activeElement;for(const o of e){if(o===n)return;if(o.focus(),t.activeElement!==n)return}}const T=x,I=k},8145:(e,t,n)=>{"use strict";function o(){return o=Object.assign||function(e){for(var t=1;ta});var r=n(67294),i=n(72261);const a=(0,r.forwardRef)(((e,t)=>{const{children:n,...i}=e,a=r.Children.toArray(n),l=a.find(c);if(l){const e=l.props.children,n=a.map((t=>t===l?r.Children.count(e)>1?r.Children.only(null):(0,r.isValidElement)(e)?e.props.children:null:t));return(0,r.createElement)(s,o({},i,{ref:t}),(0,r.isValidElement)(e)?(0,r.cloneElement)(e,void 0,n):null)}return(0,r.createElement)(s,o({},i,{ref:t}),n)}));a.displayName="Slot";const s=(0,r.forwardRef)(((e,t)=>{const{children:n,...o}=e;return(0,r.isValidElement)(n)?(0,r.cloneElement)(n,{...u(o,n.props),ref:(0,i.F)(t,n.ref)}):r.Children.count(n)>1?r.Children.only(null):null}));s.displayName="SlotClone";const l=({children:e})=>(0,r.createElement)(r.Fragment,null,e);function c(e){return(0,r.isValidElement)(e)&&e.type===l}function u(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...e)=>{i(...e),r(...e)}:r&&(n[o]=r):"style"===o?n[o]={...r,...i}:"className"===o&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}},88751:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var o=n(67294);function r(e){const t=(0,o.useRef)(e);return(0,o.useEffect)((()=>{t.current=e})),(0,o.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}},16180:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var o=n(67294),r=n(88751);function i({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[i,a]=function({defaultProp:e,onChange:t}){const n=(0,o.useState)(e),[i]=n,a=(0,o.useRef)(i),s=(0,r.W)(t);return(0,o.useEffect)((()=>{a.current!==i&&(s(i),a.current=i)}),[i,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:i,c=(0,r.W)(n);return[l,(0,o.useCallback)((t=>{if(s){const n=t,o="function"==typeof t?n(e):t;o!==e&&c(o)}else a(t)}),[s,e,a,c])]}},14805:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var o=n(67294);const r=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?o.useLayoutEffect:()=>{}},23541:(e,t,n)=>{"use strict";n.d(t,{Ry:()=>u});var o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},r=new WeakMap,i=new WeakMap,a={},s=0,l=function(e){return e&&(e.host||l(e.parentNode))},c=function(e,t,n,o){var c=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=l(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);a[n]||(a[n]=new WeakMap);var u=a[n],d=[],p=new Set,f=new Set(c),h=function(e){e&&!p.has(e)&&(p.add(e),h(e.parentNode))};c.forEach(h);var m=function(e){e&&!f.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(p.has(e))m(e);else{var t=e.getAttribute(o),a=null!==t&&"false"!==t,s=(r.get(e)||0)+1,l=(u.get(e)||0)+1;r.set(e,s),u.set(e,l),d.push(e),1===s&&a&&i.set(e,!0),1===l&&e.setAttribute(n,"true"),a||e.setAttribute(o,"true")}}))};return m(t),p.clear(),s++,function(){d.forEach((function(e){var t=r.get(e)-1,a=u.get(e)-1;r.set(e,t),u.set(e,a),t||(i.has(e)||e.removeAttribute(o),i.delete(e)),a||e.removeAttribute(n)})),--s||(r=new WeakMap,r=new WeakMap,i=new WeakMap,a={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||o(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),c(r,i,n,"aria-hidden")):function(){return null}}},10531:(e,t)=>{"use strict";function n(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TouchBackendImpl=void 0;var o,r=n(685),i=n(7584),a=n(52355),s=n(60814),l=n(39751),c=n(47473),u=n(10531);function d(e,t){for(var n=0;n0){var o=r.moveStartSourceIds;r.actions.beginDrag(o,{clientOffset:r._mouseClientOffset,getSourceClientOffset:r.getSourceClientOffset,publishSource:!1})}}r.waitingForDelay=!1}},this.handleTopMoveStartDelay=function(e){if((0,a.eventShouldStartDrag)(e)){var t=e.type===f.touch.start?r.options.delayTouchStart:r.options.delayMouseStart;r.timeout=setTimeout(r.handleTopMoveStart.bind(r,e),t),r.waitingForDelay=!0}},this.handleTopMoveCapture=function(){r.dragOverTargetIds=[]},this.handleMove=function(e,t){r.dragOverTargetIds&&r.dragOverTargetIds.unshift(t)},this.handleTopMove=function(e){if(r.document&&!r.waitingForDelay){r.timeout&&clearTimeout(r.timeout);var t=r.moveStartSourceIds,n=r.dragOverTargetIds,o=r.options.enableHoverOutsideTarget,i=(0,s.getEventClientOffset)(e,r.lastTargetTouchFallback);if(i)if(r._isScrolling||!r.monitor.isDragging()&&(0,l.inAngleRanges)(r._mouseClientOffset.x||0,r._mouseClientOffset.y||0,i.x,i.y,r.options.scrollAngleRanges))r._isScrolling=!0;else if(!r.monitor.isDragging()&&r._mouseClientOffset.hasOwnProperty("x")&&t&&(0,l.distance)(r._mouseClientOffset.x||0,r._mouseClientOffset.y||0,i.x,i.y)>(r.options.touchSlop?r.options.touchSlop:0)&&(r.moveStartSourceIds=void 0,r.actions.beginDrag(t,{clientOffset:r._mouseClientOffset,getSourceClientOffset:r.getSourceClientOffset,publishSource:!1})),r.monitor.isDragging()){var a=r.sourceNodes.get(r.monitor.getSourceId());r.installSourceNodeRemovalObserver(a),r.actions.publishDragSource(),e.cancelable&&e.preventDefault();var c=(n||[]).map((function(e){return r.targetNodes.get(e)})).filter((function(e){return!!e})),u=r.options.getDropTargetElementsAtPoint?r.options.getDropTargetElementsAtPoint(i.x,i.y,c):r.document.elementsFromPoint(i.x,i.y),d=[];for(var p in u)if(u.hasOwnProperty(p)){var f=u[p];for(d.push(f);f;)(f=f.parentElement)&&-1===d.indexOf(f)&&d.push(f)}var h=d.filter((function(e){return c.indexOf(e)>-1})).map((function(e){return r._getDropTargetId(e)})).filter((function(e){return!!e})).filter((function(e,t,n){return n.indexOf(e)===t}));if(o)for(var m in r.targetNodes){var g=r.targetNodes.get(m);if(a&&g&&g.contains(a)&&-1===h.indexOf(m)){h.unshift(m);break}}if(r.lastDragOverTargetIds=h.reverse(),r.lastClientOffset=i,!r.updateTimer){var v=function e(){r.monitor.isDragging()&&(r.actions.hover(r.lastDragOverTargetIds,{clientOffset:r.lastClientOffset}),r.updateTimer=requestAnimationFrame(e))};r.updateTimer=requestAnimationFrame((function(){v()}))}}}},this._getDropTargetId=function(e){for(var t=r.targetNodes.keys(),n=t.next();!1===n.done;){var o=n.value;if(e===r.targetNodes.get(o))return o;n=t.next()}},this.handleTopMoveEndCapture=function(e){r._isScrolling=!1,r.lastTargetTouchFallback=void 0,(0,a.eventShouldEndDrag)(e)&&(r.monitor.isDragging()&&!r.monitor.didDrop()?(e.cancelable&&e.preventDefault(),r._mouseClientOffset={},r.uninstallSourceNodeRemovalObserver(),r.actions.drop(),r.actions.endDrag(),r.updateTimer&&cancelAnimationFrame(r.updateTimer),r.updateTimer=null):r.moveStartSourceIds=void 0)},this.handleCancelOnEscape=function(e){"Escape"===e.key&&r.monitor.isDragging()&&(r._mouseClientOffset={},r.uninstallSourceNodeRemovalObserver(),r.actions.endDrag())},this.options=new u.OptionsReader(o,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(i.ListenerType.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(i.ListenerType.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(i.ListenerType.keyboard)}var t,n,o;return t=e,(n=[{key:"profile",value:function(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}},{key:"setup",value:function(){this.document&&((0,r.invariant)(!e.isSetUp,"Cannot have two Touch backends at the same time."),e.isSetUp=!0,this.addEventListener(this.document,"start",this.getTopMoveStartHandler()),this.addEventListener(this.document,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(this.document,"move",this.handleTopMove),this.addEventListener(this.document,"move",this.handleTopMoveCapture,!0),this.addEventListener(this.document,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(this.document,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(this.document,"keydown",this.handleCancelOnEscape,!0))}},{key:"teardown",value:function(){this.document&&(e.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(this.document,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(this.document,"start",this.handleTopMoveStart),this.removeEventListener(this.document,"move",this.handleTopMoveCapture,!0),this.removeEventListener(this.document,"move",this.handleTopMove),this.removeEventListener(this.document,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(this.document,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(this.document,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}},{key:"throttle",value:function(e,t){var n=!1;return function(o){n||(e(o),n=!0,setTimeout((function(){n=!1}),t))}}},{key:"addEventListener",value:function(e,t,n,o){var r=c.supportsPassive?{capture:o,passive:!1}:o,i=this.throttle(n,50);this.listenerTypes.forEach((function(n){var o=f[n][t];o&&e.addEventListener(o,i,r)}))}},{key:"removeEventListener",value:function(e,t,n,o){var r=c.supportsPassive?{capture:o,passive:!1}:o;this.listenerTypes.forEach((function(o){var i=f[o][t];i&&e.removeEventListener(i,n,r)}))}},{key:"connectDragSource",value:function(e,t){var n=this,o=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,t),this.addEventListener(t,"start",o),function(){n.sourceNodes.delete(e),n.removeEventListener(t,"start",o)}}},{key:"connectDragPreview",value:function(e,t,n){var o=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){o.sourcePreviewNodes.delete(e),o.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDropTarget",value:function(e,t){var n=this;if(!this.document)return function(){};var o=function(o){if(n.document&&n.monitor.isDragging()){var r;switch(o.type){case f.mouse.move:r={x:o.clientX,y:o.clientY};break;case f.touch.move:r={x:o.touches[0].clientX,y:o.touches[0].clientY}}var i=null!=r?n.document.elementFromPoint(r.x,r.y):void 0,a=i&&t.contains(i);return i===t||a?n.handleMove(o,e):void 0}};return this.addEventListener(this.document.body,"move",o),this.targetNodes.set(e,t),function(){n.document&&(n.targetNodes.delete(e),n.removeEventListener(n.document.body,"move",o))}}},{key:"getTopMoveStartHandler",value:function(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}},{key:"installSourceNodeRemovalObserver",value:function(e){var t=this;this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver((function(){e&&!e.parentElement&&(t.resurrectSourceNode(),t.uninstallSourceNodeRemovalObserver())})),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}},{key:"resurrectSourceNode",value:function(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}},{key:"uninstallSourceNodeRemovalObserver",value:function(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}},{key:"document",get:function(){return this.options.document}}])&&d(t.prototype,n),o&&d(t,o),e}();t.TouchBackendImpl=h},71634:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={TouchBackend:!0};t.TouchBackend=void 0;var r=n(6901);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));t.TouchBackend=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new r.TouchBackendImpl(e,t,n)}},7584:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ListenerType=void 0,t.ListenerType=n,function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(n||(t.ListenerType=n={}))},39751:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distance=function(e,t,n,o){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(o-t),2))},t.inAngleRanges=function(e,t,n,o,r){if(!r)return!1;for(var i=180*Math.atan2(o-t,n-e)/Math.PI+180,a=0;a=r[a].start)&&(null==r[a].end||i<=r[a].end))return!0;return!1}},60814:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeClientOffset=function(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return;var n=t.getBoundingClientRect(),o=n.top;return{x:n.left,y:o}},t.getEventClientTouchOffset=r,t.getEventClientOffset=i;var o=n(52355);function r(e,t){return 1===e.targetTouches.length?i(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?i(e.touches[0]):void 0}function i(e,t){return(0,o.isTouchEvent)(e)?r(e,t):{x:e.clientX,y:e.clientY}}},52355:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eventShouldStartDrag=function(e){return void 0===e.button||e.button===o},t.eventShouldEndDrag=function(e){return void 0===e.buttons||0==(e.buttons&n)},t.isTouchEvent=function(e){return!!e.targetTouches};var n=1,o=0},47473:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportsPassive=void 0;var n=function(){var e=!1;try{addEventListener("test",(function(){}),Object.defineProperty({},"passive",{get:function(){return e=!0,!0}}))}catch(e){}return e}();t.supportsPassive=n},685:(e,t,n)=>{"use strict";function o(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;ro})},79153:(e,t,n)=>{"use strict";n.d(t,{WG:()=>Ie,c0:()=>ot,f$:()=>rt,LW:()=>lt});var o=n(67294);const r=(0,o.createContext)({dragDropManager:void 0});var i=n(85893),a=n(40230);function s(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;re&&e[t]?e[t]:n||null),e)}function u(e,t){return e.filter((e=>e!==t))}function d(e){return"object"==typeof e}function p(e,t){const n=new Map,o=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(o),t.forEach(o);const r=[];return n.forEach(((e,t)=>{1===e&&r.push(t)})),r}const f="dnd-core/INIT_COORDS",h="dnd-core/BEGIN_DRAG",m="dnd-core/PUBLISH_DRAG_SOURCE",g="dnd-core/HOVER",v="dnd-core/DROP",y="dnd-core/END_DRAG";function b(e,t){return{type:f,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const w={type:f,payload:{clientOffset:null,sourceClientOffset:null}};function S(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0};const{publishSource:o=!0,clientOffset:r,getSourceClientOffset:i}=n,a=e.getMonitor(),s=e.getRegistry();e.dispatch(b(r)),E(t,a,s);const l=D(t,a);if(null==l)return void e.dispatch(w);let c=null;if(r){if(!i)throw new Error("getSourceClientOffset must be defined");P(i),c=i(l)}e.dispatch(b(r,c));const u=s.getSource(l),d=u.beginDrag(a,l);if(null==d)return;x(d),s.pinSource(l);const p=s.getSourceType(l);return{type:h,payload:{itemType:p,item:d,sourceId:l,clientOffset:r||null,sourceClientOffset:c||null,isSourcePublic:!!o}}}}function E(e,t,n){s(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){s(n.getSource(e),"Expected sourceIds to be registered.")}))}function P(e){s("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}function x(e){s(d(e),"Item must be an object.")}function D(e,t){let n=null;for(let o=e.length-1;o>=0;o--)if(t.canDragSource(e[o])){n=e[o];break}return n}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};const n=e.getMonitor(),o=e.getRegistry();O(n);const r=I(n);r.forEach(((r,i)=>{const a=T(r,i,o,n),s={type:v,payload:{dropResult:k({},t,a)}};e.dispatch(s)}))}}function O(e){s(e.isDragging(),"Cannot call drop while not dragging."),s(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function T(e,t,n,o){const r=n.getTarget(e);let i=r?r.drop(o,e):void 0;return function(e){s(void 0===e||d(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:o.getDropResult()),i}function I(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function F(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){s(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const o=t.getSourceId();if(null!=o){n.getSource(o,!0).endDrag(t,o),n.unpinSource()}return{type:y}}}function M(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function _(e){return function(t){let{clientOffset:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};R(t);const o=t.slice(0),r=e.getMonitor(),i=e.getRegistry(),a=r.getItemType();return L(o,i,a),N(o,r,i),B(o,r,i),{type:g,payload:{targetIds:o,clientOffset:n||null}}}}function R(e){s(Array.isArray(e),"Expected targetIds to be an array.")}function N(e,t,n){s(t.isDragging(),"Cannot call hover while not dragging."),s(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t=0;o--){const r=e[o];M(t.getTargetType(r),n)||e.splice(o,1)}}function B(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}function j(e){return function(){if(e.getMonitor().isDragging())return{type:m}}}class z{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const n=function(e){return{beginDrag:S(e),publishDragSource:j(e),hover:_(e),drop:A(e),endDrag:F(e)}}(this);return Object.keys(n).reduce(((o,r)=>{const i=n[r];var a;return o[r]=(a=i,function(){for(var n=arguments.length,o=new Array(n),r=0;r{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function K(e,t){return{x:e.x-t.x,y:e.y-t.y}}const Z=[],U=[];Z.__IS_NONE__=!0,U.__IS_ALL__=!0;class V{subscribeToStateChange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{handlerIds:n}=t;s("function"==typeof e,"listener must be a function."),s(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let o=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),r=t.stateId;try{const i=r===o||r===o+1&&!function(e,t){return e!==Z&&(e===U||void 0===t||(n=e,t.filter((e=>n.indexOf(e)>-1))).length>0);var n}(t.dirtyHandlerIds,n);i||e()}finally{o=r}}))}subscribeToOffsetChange(e){s("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return s(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if(s(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return M(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if(s(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const o=this.registry.getTargetType(e),r=this.getItemType();if(r&&!M(o,r))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return n?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:o}=e;return t&&n&&o?K((i=o,{x:(r=t).x+i.x,y:r.y+i.y}),n):null;var r,i}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?K(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const G=void 0!==n.g?n.g:self,W=G.MutationObserver||G.WebKitMutationObserver;function q(e){return function(){const t=setTimeout(o,0),n=setInterval(o,50);function o(){clearTimeout(t),clearInterval(n),e()}}}const H="function"==typeof W?function(e){let t=1;const n=new W(e),o=document.createTextNode("");return n.observe(o,{characterData:!0}),function(){t=-t,o.data=t}}:q;class ${call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const Y=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.indexthis.capacity){for(let t=0,n=e.length-this.index;t{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=H(this.flush),this.requestErrorThrow=q((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},X=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new $(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(Y.registerPendingError);const J="dnd-core/ADD_SOURCE",Q="dnd-core/ADD_TARGET",ee="dnd-core/REMOVE_SOURCE",te="dnd-core/REMOVE_TARGET";function ne(e,t){t&&Array.isArray(e)?e.forEach((e=>ne(e,!1))):s("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var oe;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(oe||(oe={}));let re=0;function ie(e){const t=(re++).toString();switch(e){case oe.SOURCE:return`S${t}`;case oe.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function ae(e){switch(e[0]){case"S":return oe.SOURCE;case"T":return oe.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function se(e,t){const n=e.entries();let o=!1;do{const{done:e,value:[,r]}=n.next();if(r===t)return!0;o=!!e}while(!o);return!1}class le{addSource(e,t){ne(e),function(e){s("function"==typeof e.canDrag,"Expected canDrag to be a function."),s("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),s("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(oe.SOURCE,e,t);return this.store.dispatch(function(e){return{type:J,payload:{sourceId:e}}}(n)),n}addTarget(e,t){ne(e,!0),function(e){s("function"==typeof e.canDrop,"Expected canDrop to be a function."),s("function"==typeof e.hover,"Expected hover to be a function."),s("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(oe.TARGET,e,t);return this.store.dispatch(function(e){return{type:Q,payload:{targetId:e}}}(n)),n}containsHandler(e){return se(this.dragSources,e)||se(this.dropTargets,e)}getSource(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return ae(e)===oe.SOURCE}isTargetId(e){return ae(e)===oe.TARGET}removeSource(e){var t;s(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:ee,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},Y.enqueueTask(X.create(t))}removeTarget(e){s(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:te,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);s(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){s(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const o=ie(e);return this.types.set(o,t),e===oe.SOURCE?this.dragSources.set(o,n):e===oe.TARGET&&this.dropTargets.set(o,n),o}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const ce=(e,t)=>e===t;function ue(e,t){return!e&&!t||!(!e||!t)&&(e.x===t.x&&e.y===t.y)}function de(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ce;if(e.length!==t.length)return!1;for(let o=0;o1?arguments[1]:void 0;switch(e.type){case g:break;case J:case Q:case te:case ee:return Z;default:return U}const{targetIds:t=[],prevTargetIds:n=[]}=e.payload,o=p(t,n),r=o.length>0||!de(t,n);if(!r)return Z;const i=n[n.length-1],a=t[t.length-1];return i!==a&&(i&&o.push(i),a&&o.push(a)),o}function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function he(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:me,t=arguments.length>1?arguments[1]:void 0;const{payload:n}=t;switch(t.type){case f:case h:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case g:return ue(e.clientOffset,n.clientOffset)?e:he({},e,{clientOffset:n.clientOffset});case y:case v:return me;default:return e}}function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:be,t=arguments.length>1?arguments[1]:void 0;const{payload:n}=t;switch(t.type){case h:return ye({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case m:return ye({},e,{isSourcePublic:!0});case g:return ye({},e,{targetIds:n.targetIds});case te:return-1===e.targetIds.indexOf(n.targetId)?e:ye({},e,{targetIds:u(e.targetIds,n.targetId)});case v:return ye({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case y:return ye({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Se(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case J:case Q:return e+1;case ee:case te:return e-1;default:return e}}function Ee(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}function Pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:pe(e.dirtyHandlerIds,{type:t.type,payload:xe({},t.payload,{prevTargetIds:c(e,"dragOperation.targetIds",[])})}),dragOffset:ge(e.dragOffset,t),refCount:Se(e.refCount,t),dragOperation:we(e.dragOperation,t),stateId:Ee(e.stateId)}}function Ce(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=ke(o),i=new V(r,new le(r)),a=new z(r,i),s=e(a,t,n);return a.receiveBackend(s),a}function ke(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return(0,a.MT)(De,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function Ae(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}let Oe=0;const Te=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Ie=(0,o.memo)((function(e){var{children:t}=e,n=Ae(e,["children"]);const[a,s]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fe(),n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;const r=t;r[Te]||(r[Te]={dragDropManager:Ce(e,t,n,o)});return r[Te]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(n);return(0,o.useEffect)((()=>{if(s){const e=Fe();return++Oe,()=>{0==--Oe&&(e[Te]=null)}}}),[]),(0,i.jsx)(r.Provider,{value:a,children:t})}));function Fe(){return void 0!==n.g?n.g:window}var Me=n(64063),_e=n.n(Me);const Re="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function Ne(e,t,n){const[r,i]=(0,o.useState)((()=>t(e))),a=(0,o.useCallback)((()=>{const o=t(e);_e()(r,o)||(i(o),n&&n())}),[r,e,n]);return Re(a),[r,a]}function Le(e,t,n){return function(e,t,n){const[o,r]=Ne(e,t,n);return Re((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(r,{handlerIds:[t]})}),[e,r]),o}(t,e||(()=>({})),(()=>n.reconnect()))}function Be(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),(0,o.useMemo)((()=>"function"==typeof e?e():e),n)}function je(e){return(0,o.useMemo)((()=>e.hooks.dragSource()),[e])}function ze(e){return(0,o.useMemo)((()=>e.hooks.dragPreview()),[e])}let Ke=!1,Ze=!1;class Ue{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){s(!Ke,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Ke=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Ke=!1}}isDragging(){if(!this.sourceId)return!1;s(!Ze,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Ze=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Ze=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let Ve=!1;class Ge{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;s(!Ve,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Ve=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Ve=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function We(e,t,n,o){let r=n?n.call(o,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let a=0;a, or turn it into a drag source or a drop target itself.`)}function $e(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=function(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,o.isValidElement)(t)){const o=t;return e(o,n),o}const r=t;He(r);return Xe(r,n?t=>e(t,n):e)}}(r);t[n]=()=>e}})),t}function Ye(e,t){"function"==typeof e?e(t):e.current=t}function Xe(e,t){const n=e.ref;return s("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,o.cloneElement)(e,{ref:e=>{Ye(n,e),Ye(t,e)}}):(0,o.cloneElement)(e,{ref:t})}class Je{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!We(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!We(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=$e({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,qe(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,qe(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class Qe{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!We(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=$e({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,qe(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function et(){const{dragDropManager:e}=(0,o.useContext)(r);return s(null!=e,"Expected drag drop context"),e}class tt{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,o=this.monitor,{isDragging:r}=n;return r?r(o):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:o}=e;o&&o(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function nt(e,t,n){const r=et(),i=function(e,t,n){const r=(0,o.useMemo)((()=>new tt(e,t,n)),[t,n]);return(0,o.useEffect)((()=>{r.spec=e}),[e]),r}(e,t,n),a=function(e){return(0,o.useMemo)((()=>{const t=e.type;return s(null!=t,"spec.type must be defined"),t}),[e])}(e);Re((function(){if(null!=a){const[e,o]=function(e,t,n){const o=n.getRegistry(),r=o.addSource(e,t);return[r,()=>o.removeSource(r)]}(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}}),[r,t,n,i,a])}function ot(e,t){const n=Be(e,t);s(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=function(){const e=et();return(0,o.useMemo)((()=>new Ue(e)),[e])}(),i=function(e,t){const n=et(),r=(0,o.useMemo)((()=>new Je(n.getBackend())),[n]);return Re((()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource())),[r,e]),Re((()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview())),[r,t]),r}(n.options,n.previewOptions);return nt(n,r,i),[Le(n.collect,r,i),je(i),ze(i)]}function rt(e){const t=et().getMonitor(),[n,r]=Ne(t,e);return(0,o.useEffect)((()=>t.subscribeToOffsetChange(r))),(0,o.useEffect)((()=>t.subscribeToStateChange(r))),n}function it(e){return(0,o.useMemo)((()=>e.hooks.dropTarget()),[e])}class at{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function st(e,t,n){const r=et(),i=function(e,t){const n=(0,o.useMemo)((()=>new at(e,t)),[t]);return(0,o.useEffect)((()=>{n.spec=e}),[e]),n}(e,t),a=function(e){const{accept:t}=e;return(0,o.useMemo)((()=>(s(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);Re((function(){const[e,o]=function(e,t,n){const o=n.getRegistry(),r=o.addTarget(e,t);return[r,()=>o.removeTarget(r)]}(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}),[r,t,i,n,a.map((e=>e.toString())).join("|")])}function lt(e,t){const n=Be(e,t),r=function(){const e=et();return(0,o.useMemo)((()=>new Ge(e)),[e])}(),i=function(e){const t=et(),n=(0,o.useMemo)((()=>new Qe(t.getBackend())),[t]);return Re((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return st(n,r,i),[Le(n.collect,r,i),it(i)]}},76154:(e,t,n)=>{"use strict";n.d(t,{_H:()=>Wt,Pj:()=>_t,dp:()=>Ft,Sn:()=>je,vU:()=>Ht,XN:()=>xt,YB:()=>Dt});var o=n(70655),r=n(67294),i=n(8679),a=n.n(i);["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"].map((function(e){return e.slice(e.indexOf("-")+1)}));function s(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}var l=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;new RegExp("^"+l.source),new RegExp(l.source+"$");var c,u,d,p;!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="MISSING_LOCALE_DATA",t}(0,o.ZT)(t,e)}(Error);function f(e){return e.type===d.literal}function h(e){return e.type===d.argument}function m(e){return e.type===d.number}function g(e){return e.type===d.date}function v(e){return e.type===d.time}function y(e){return e.type===d.select}function b(e){return e.type===d.plural}function w(e){return e.type===d.pound}function S(e){return e.type===d.tag}function E(e){return!(!e||"object"!=typeof e||e.type!==p.number)}function P(e){return!(!e||"object"!=typeof e||e.type!==p.dateTime)}!function(e){e.startRange="startRange",e.shared="shared",e.endRange="endRange"}(c||(c={})),function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(u||(u={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(d||(d={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(p||(p={}));var x=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,D=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function C(e){var t={};return e.replace(D,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var k=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var A,O=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,T=/^(@+)?(\+|#+)?$/g,I=/(\*)(0+)|(#+)(0+)|(0+)/g,F=/^(0+)$/;function M(e){var t={};return e.replace(T,(function(e,n,o){return"string"!=typeof o?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===o?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof o?o.length:0)),""})),t}function _(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function R(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!F.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function N(e){var t=_(e);return t||{}}function L(e){for(var t={},n=0,r=e;n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(I,(function(e,n,o,r,i,a){if(n)t.minimumIntegerDigits=o.length;else{if(r&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(F.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(O.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(O,(function(e,n,o,r,i,a){return"*"===o?t.minimumFractionDigits=n.length:r&&"#"===r[0]?t.maximumFractionDigits=r.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""})),i.options.length&&(t=(0,o.pi)((0,o.pi)({},t),M(i.options[0])))}else if(T.test(i.stem))t=(0,o.pi)((0,o.pi)({},t),M(i.stem));else{var a=_(i.stem);a&&(t=(0,o.pi)((0,o.pi)({},t),a));var s=R(i.stem);s&&(t=(0,o.pi)((0,o.pi)({},t),s))}}return t}var B=new RegExp("^"+x.source+"*"),j=new RegExp(x.source+"*$");function z(e,t){return{start:e,end:t}}var K=!!String.prototype.startsWith,Z=!!String.fromCodePoint,U=!!Object.fromEntries,V=!!String.prototype.codePointAt,G=!!String.prototype.trimStart,W=!!String.prototype.trimEnd,q=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},H=!0;try{H="a"===(null===(A=ne("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===A?void 0:A[0])}catch(e){H=!1}var $,Y=K?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},X=Z?String.fromCodePoint:function(){for(var e=[],t=0;ti;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");o+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return o},J=U?Object.fromEntries:function(e){for(var t={},n=0,o=e;n=n)){var o,r=e.charCodeAt(t);return r<55296||r>56319||t+1===n||(o=e.charCodeAt(t+1))<56320||o>57343?r:o-56320+(r-55296<<10)+65536}},ee=G?function(e){return e.trimStart()}:function(e){return e.replace(B,"")},te=W?function(e){return e.trimEnd()}:function(e){return e.replace(j,"")};function ne(e,t){return new RegExp(e,t)}if(H){var oe=ne("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$=function(e,t){var n;return oe.lastIndex=t,null!==(n=oe.exec(e)[1])&&void 0!==n?n:""}}else $=function(e,t){for(var n=[];;){var o=Q(e,t);if(void 0===o||ae(o)||se(o))break;n.push(o),t+=o>=65536?2:1}return X.apply(void 0,n)};var re=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var o=[];!this.isEOF();){var r=this.char();if(123===r){if((i=this.parseArgument(e,n)).err)return i;o.push(i.val)}else{if(125===r&&e>0)break;if(35!==r||"plural"!==t&&"selectordinal"!==t){if(60===r&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(u.UNMATCHED_CLOSING_TAG,z(this.clonePosition(),this.clonePosition()))}if(60===r&&!this.ignoreTag&&ie(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;o.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;o.push(i.val)}}else{var a=this.clonePosition();this.bump(),o.push({type:d.pound,location:z(a,this.clonePosition())})}}}return{val:o,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:d.literal,value:"<"+o+"/>",location:z(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var r=this.parseMessage(e+1,t,!0);if(r.err)return r;var i=r.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:d.tag,value:o,children:i,location:z(n,this.clonePosition())},err:null}:this.error(u.INVALID_TAG,z(a,this.clonePosition())))}return this.error(u.UNCLOSED_TAG,z(n,this.clonePosition()))}return this.error(u.INVALID_TAG,z(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),o="";;){var r=this.tryParseQuote(t);if(r)o+=r;else{var i=this.tryParseUnquoted(e,t);if(i)o+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;o+=a}}}var s=z(n,this.clonePosition());return{val:{type:d.literal,value:o,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ie(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return X.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),X(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,z(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(u.EMPTY_ARGUMENT,z(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(u.MALFORMED_ARGUMENT,z(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,z(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:d.argument,value:o,location:z(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,z(n,this.clonePosition())):this.parseArgumentOptions(e,t,o,n);default:return this.error(u.MALFORMED_ARGUMENT,z(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=$(this.message,t),o=t+n.length;return this.bumpTo(o),{value:n,location:z(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(u.EXPECT_ARGUMENT_TYPE,z(a,l));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition();if((w=this.parseSimpleArgStyleIfPossible()).err)return w;if(0===(g=te(w.val)).length)return this.error(u.EXPECT_ARGUMENT_STYLE,z(this.clonePosition(),this.clonePosition()));c={style:g,styleLocation:z(f,this.clonePosition())}}if((S=this.tryParseArgumentClose(r)).err)return S;var h=z(r,this.clonePosition());if(c&&Y(null==c?void 0:c.style,"::",0)){var m=ee(c.style.slice(2));if("number"===s)return(w=this.parseNumberSkeletonFromString(m,c.styleLocation)).err?w:{val:{type:d.number,value:n,location:h,style:w.val},err:null};if(0===m.length)return this.error(u.EXPECT_DATE_TIME_SKELETON,h);var g={type:p.dateTime,pattern:m,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?C(m):{}};return{val:{type:"date"===s?d.date:d.time,value:n,location:h,style:g},err:null}}return{val:{type:"number"===s?d.number:"date"===s?d.date:d.time,value:n,location:h,style:null!==(i=null==c?void 0:c.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var v=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(u.EXPECT_SELECT_ARGUMENT_OPTIONS,z(v,(0,o.pi)({},v)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),b=0;if("select"!==s&&"offset"===y.value){if(!this.bumpIf(":"))return this.error(u.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,z(this.clonePosition(),this.clonePosition()));var w;if(this.bumpSpace(),(w=this.tryParseDecimalInteger(u.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,u.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return w;this.bumpSpace(),y=this.parseIdentifierIfPossible(),b=w.val}var S,E=this.tryParsePluralOrSelectOptions(e,s,t,y);if(E.err)return E;if((S=this.tryParseArgumentClose(r)).err)return S;var P=z(r,this.clonePosition());return"select"===s?{val:{type:d.select,value:n,options:J(E.val),location:P},err:null}:{val:{type:d.plural,value:n,options:J(E.val),offset:b,pluralType:"plural"===s?"cardinal":"ordinal",location:P},err:null};default:return this.error(u.INVALID_ARGUMENT_TYPE,z(a,l))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,z(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(u.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,z(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,o=e.split(k).filter((function(e){return e.length>0}));n=48&&a<=57))break;r=!0,i=10*i+(a-48),this.bump()}var s=z(o,this.clonePosition());return r?q(i*=n)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Q(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Y(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ae(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function ie(e){return e>=97&&e<=122||e>=65&&e<=90}function ae(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function se(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function le(e){e.forEach((function(e){if(delete e.location,y(e)||b(e))for(var t in e.options)delete e.options[t].location,le(e.options[t].value);else m(e)&&E(e.style)||(g(e)||v(e))&&P(e.style)?delete e.style.location:S(e)&&le(e.children)}))}function ce(e,t){void 0===t&&(t={}),t=(0,o.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new re(e,t).parse();if(n.err){var r=SyntaxError(u[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||le(n.val),n.val}function ue(e,t){var n=t&&t.cache?t.cache:ye,o=t&&t.serializer?t.serializer:me;return(t&&t.strategy?t.strategy:he)(e,{cache:n,serializer:o})}function de(e,t,n,o){var r,i=null==(r=o)||"number"==typeof r||"boolean"==typeof r?o:n(o),a=t.get(i);return void 0===a&&(a=e.call(this,o),t.set(i,a)),a}function pe(e,t,n){var o=Array.prototype.slice.call(arguments,3),r=n(o),i=t.get(r);return void 0===i&&(i=e.apply(this,o),t.set(r,i)),i}function fe(e,t,n,o,r){return n.bind(t,e,o,r)}function he(e,t){return fe(e,this,1===e.length?de:pe,t.cache.create(),t.serializer)}var me=function(){return JSON.stringify(arguments)};function ge(){this.cache=Object.create(null)}ge.prototype.has=function(e){return e in this.cache},ge.prototype.get=function(e){return this.cache[e]},ge.prototype.set=function(e,t){this.cache[e]=t};var ve,ye={create:function(){return new ge}},be={variadic:function(e,t){return fe(e,this,pe,t.cache.create(),t.serializer)},monadic:function(e,t){return fe(e,this,de,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(ve||(ve={}));var we,Se=function(e){function t(t,n,o){var r=e.call(this,t)||this;return r.code=n,r.originalMessage=o,r}return(0,o.ZT)(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),Ee=function(e){function t(t,n,o,r){return e.call(this,'Invalid values for "'+t+'": "'+n+'". Options are "'+Object.keys(o).join('", "')+'"',ve.INVALID_VALUE,r)||this}return(0,o.ZT)(t,e),t}(Se),Pe=function(e){function t(t,n,o){return e.call(this,'Value for "'+t+'" must be of type '+n,ve.INVALID_VALUE,o)||this}return(0,o.ZT)(t,e),t}(Se),xe=function(e){function t(t,n){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+n+'"',ve.MISSING_VALUE,n)||this}return(0,o.ZT)(t,e),t}(Se);function De(e){return"function"==typeof e}function Ce(e,t,n,o,r,i,a){if(1===e.length&&f(e[0]))return[{type:we.literal,value:e[0].value}];for(var s=[],l=0,c=e;l needs to exist in the component ancestry.")}var gt=(0,o.pi)((0,o.pi)({},Be),{textComponent:r.Fragment});function vt(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),o=Object.keys(t),r=n.length;if(o.length!==r)return!1;for(var i=0;i=g?a-r:a,c=Math.abs(s-g);return g!==s&&(l=setTimeout((function(){return v(s)}),1e3*c)),e}),[g,i,n]);var y=t||0,b=n;if(jt(n)&&"number"==typeof g&&i){var w=Lt(b=Nt(g));y=Math.round(g/w)}return r.createElement(zt,(0,o.pi)({value:y,unit:b},a))};Kt.displayName="FormattedRelativeTime",Kt.defaultProps={value:0,unit:"second"};var Zt=function(e){var t=Dt(),n=t.formatPlural,o=t.textComponent,i=e.value,a=e.other,s=e.children,l=e[n(i,e)]||a;return"function"==typeof s?s(l):o?r.createElement(o,null,l):l};Zt.defaultProps={type:"cardinal"},Zt.displayName="FormattedPlural";function Ut(e,t){var n=e.values,r=(0,o._T)(e,["values"]),i=t.values,a=(0,o._T)(t,["values"]);return vt(i,n)&&vt(r,a)}function Vt(e){var t=Dt(),n=t.formatMessage,o=t.textComponent,i=void 0===o?r.Fragment:o,a=e.id,s=e.description,l=e.defaultMessage,c=e.values,u=e.children,d=e.tagName,p=void 0===d?i:d,f=n({id:a,description:s,defaultMessage:l},c,{ignoreTag:e.ignoreTag});return Array.isArray(f)||(f=[f]),"function"==typeof u?u(f):p?r.createElement(p,null,r.Children.toArray(f)):r.createElement(r.Fragment,null,f)}Vt.displayName="FormattedMessage";var Gt=r.memo(Vt,Ut);Gt.displayName="MemoizedFormattedMessage";const Wt=Gt;var qt=function(e){var t=Dt(),n=e.from,i=e.to,a=e.children,s=(0,o._T)(e,["from","to","children"]),l=t.formatDateTimeRange(n,i,s);if("function"==typeof a)return a(l);var c=t.textComponent||r.Fragment;return r.createElement(c,null,l)};qt.displayName="FormattedDateTimeRange";function Ht(e){return e}At("formatDate"),At("formatTime"),At("formatNumber"),At("formatList"),At("formatDisplayName"),kt("formatDate"),kt("formatTime")},71984:(e,t,n)=>{"use strict";n.d(t,{AO:()=>b,L7:()=>S,$u:()=>D,Qk:()=>C,d:()=>E,Sk:()=>P,AL:()=>O,oH:()=>k});var o=n(84121),r=n(50974),i=(n(77552),n(91117)),a=n.n(i),s=n(35349),l=n.n(s),c=n(26656),u=n.n(c);let d;d="object"==typeof process&&"object"==typeof process.versions&&void 0!==process.versions.node||"undefined"!=typeof window&&"Deno"in window||"undefined"!=typeof self&&"Deno"in self?u():function(e){return"object"==typeof window?new Promise(((t,n)=>{const o=document.createElement("script");o.type="text/javascript",o.async=!0,o.onload=()=>t(window.PSPDFModuleInit),o.onerror=n,o.src=e;const{documentElement:i}=document;(0,r.kG)(i),i.appendChild(o)})):(self.importScripts(e),Promise.resolve(self.PSPDFModuleInit))};const p="pspdfkit-lib/";l(),a();n(37015);var f=n(96617),h=(n(55024),n(91859),n(5038));n(26248);h.x.Maui_iOS,h.x.Maui_Android,h.x.Maui_MacCatalyst,h.x.Maui_Windows;var m=n(35369),g=n(78827),v=n.n(g);const y=()=>{};class b{constructor(){(0,o.Z)(this,"_worker",new(v())),(0,o.Z)(this,"_requests",(0,m.D5)()),(0,o.Z)(this,"_nextRequestId",1),(0,o.Z)(this,"_isLoading",!0),(0,o.Z)(this,"_loadPromise",null),(0,o.Z)(this,"_initPromise",null),(0,o.Z)(this,"_hasOpenedDocument",!1),(0,o.Z)(this,"_hasLoadedCertificates",!1),(0,o.Z)(this,"_handleMessage",(e=>{const t=e.data,n=this._requests.get(t.id);(0,r.kG)(n,`No request was made for id ${t.id}.`);const{resolve:o,reject:i}=n;if(this._requests=this._requests.delete(t.id),t.error){const e=new r.p2(t.error);e.callArgs=t.callArgs,i(e)}else o(t.result)})),this._worker.onmessage=this._handleMessage}loadNativeModule(e,t){let{mainThreadOrigin:n,disableWebAssemblyStreaming:o,enableAutomaticLinkExtraction:i,overrideMemoryLimit:a}=t;return(0,r.kG)(!this._hasOpenedDocument,"cannot invoke `loadNativeModule` while an instance is still in use. Please call `recycle` first."),this._loadPromise?this._loadPromise.then((()=>{})):(this._initPromise||(this._baseCoreUrl=e,this._mainThreadOrigin=n,this._initPromise=this._sendRequest("loadNativeModule",[e,{mainThreadOrigin:n,disableWebAssemblyStreaming:o,enableAutomaticLinkExtraction:i,overrideMemoryLimit:a}]).then((e=>e)).catch((e=>{throw this._isLoading=!1,this._worker.terminate(),e}))),this._initPromise)}load(e,t,n){let{mainThreadOrigin:o,customFonts:i,productId:a}=n;return(0,r.kG)(!this._hasOpenedDocument,"cannot invoke `load` while an instance is still in use. Please call `recycle` first."),this._loadPromise||(this._loadPromise=this._sendRequest("load",[e,t,{mainThreadOrigin:o,customFonts:i,productId:a}]).then((e=>(this._isLoading=!1,e))).catch((e=>{throw this._isLoading=!1,this._worker.terminate(),e}))),this._loadPromise}version(){return this._assertLoaded(),this._sendRequest("version")}openDocument(e,t,n){return this._assertLoaded(),this._hasOpenedDocument=!0,this._sendRequest("openDocument",[e,t,n]).catch((e=>{throw this._hasOpenedDocument=!1,e}))}async getMeasurementScales(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getMeasurementScales")}async removeMeasurementScale(e){return this._sendRequest("removeMeasurementScale",[e])}async addMeasurementScale(e){return await this._sendRequest("addMeasurementScale",[e])}async getAnnotationsByScale(e){return await this._sendRequest("getAnnotationsByScale",[e])}async openDocumentAt(){throw new Error("Should never be called")}async getAllPageInfos(e){return this._assertLoaded(),this._sendRequest("getAllPageInfos",[e])}async enablePDFJavaScriptSupport(){return this._assertLoaded(),this._sendRequest("enablePDFJavaScriptSupport")}async runPDFFormattingScripts(e,t){return this._assertLoaded(),this._sendRequest("runPDFFormattingScripts",[e,t])}async getAvailableFontFaces(e){return this._assertLoaded(),this._sendRequest("getAvailableFontFaces",[e])}getBookmarks(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getBookmarks")}getFormJSON(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getFormJSON")}evalFormValuesActions(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("evalFormValuesActions",[e])}evalScript(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("evalScript",[e,t])}setFormJSONUpdateBatchMode(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setFormJSONUpdateBatchMode",[e])}getFormValues(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getFormValues")}closeDocument(){return this._assertLoaded(),this._hasOpenedDocument=!1,this._sendRequest("closeDocument")}renderTile(e,t,n,o,r,i,a,s){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("renderTile",[e,t,n,o,r,i,a,s])}renderAnnotation(e,t,n,o,r,i){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("renderAnnotation",[e,t,n,o,r,i])}renderPageAnnotations(e,t,n,o,r){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("renderPageAnnotations",[e,t,n,o,r])}renderDetachedAnnotation(e,t,n,o,r){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("renderDetachedAnnotation",[e,t,n,o,r])}onKeystrokeEvent(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("onKeystrokeEvent",[e])}getAttachment(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getAttachment",[e])}textForPageIndex(e){this._assertLoaded(),this._assertDocumentOpen();return this._sendRequest("textForPageIndex",[e])}textContentTreeForPageIndex(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("textContentTreeForPageIndex",[e])}annotationsForPageIndex(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("annotationsForPageIndex",[e])}createAnnotation(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("createAnnotation",[e,t])}updateAnnotation(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("updateAnnotation",[e])}deleteAnnotation(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("deleteAnnotation",[e])}createFormField(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("createFormField",[e,t])}updateFormField(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("updateFormField",[e,t])}deleteFormField(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("deleteFormField",[e])}setFormFieldValue(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setFormFieldValue",[e])}deleteFormFieldValue(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("deleteFormFieldValue",[e])}createBookmark(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("createBookmark",[e])}updateBookmark(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("updateBookmark",[e])}deleteBookmark(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("deleteBookmark",[e])}getTextFromRects(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getTextFromRects",[e,t])}search(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:f.S.TEXT;return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("search",[e,t,n,o,r])}getSecondaryMeasurementUnit(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getSecondaryMeasurementUnit",[])}setSecondaryMeasurementUnit(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setSecondaryMeasurementUnit",[e])}getMeasurementSnappingPoints(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getMeasurementSnappingPoints",[e])}parseXFDF(e){return this._sendRequest("parseXFDF",[e])}getEmbeddedFilesList(){return this._sendRequest("getEmbeddedFilesList")}exportFile(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"pdf",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0;return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("exportFile",[e,t,n,o,r,i,a])}importXFDF(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("importXFDF",[e,t])}exportXFDF(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("exportXFDF",[])}importInstantJSON(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("importInstantJSON",[e])}exportInstantJSON(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("exportInstantJSON",[e])}getDocumentOutline(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getDocumentOutline")}getPageGlyphs(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getPageGlyphs",[e])}applyOperations(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("applyOperations",[e,t])}reloadDocument(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("reloadDocument")}exportPDFWithOperations(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("exportPDFWithOperations",[e,t])}loadCertificates(e){return this._assertLoaded(),this._assertDocumentOpen(),this._hasLoadedCertificates=Boolean(e.length),this._sendRequest("loadCertificates",[e]).catch((e=>{throw this._hasLoadedCertificates=!1,e}))}getSignaturesInfo(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getSignaturesInfo",[])}getComments(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getComments",[])}applyComments(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("applyComments",[e])}prepareSign(e,t,n,o,r,i,a){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("prepareSign",[e,t,n,o,r,i,a])}sign(e,t,n,o,r,i){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("sign",[e,t,n,o,r,i])}restoreToOriginalState(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("restoreToOriginalState")}applyRedactions(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("applyRedactions",[])}readFormJSONObjects(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("readFormJSONObjects")}clearAPStreamCache(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("clearAPStreamCache")}setComparisonDocument(e,t){return this._assertLoaded(),t||this._assertDocumentOpen(),this._sendRequest("setComparisonDocument",[e,t])}openComparisonDocument(e){return this._assertLoaded(),this._hasOpenedDocument=!0,this._sendRequest("openComparisonDocument",[e]).catch((e=>{throw this._hasOpenedDocument=!1,e}))}documentCompareAndOpen(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("documentCompareAndOpen",[e])}persistOpenDocument(e){return this._assertLoaded(),e||this._assertDocumentOpen(),this._sendRequest("persistOpenDocument",[e])}cleanupDocumentComparison(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("cleanupDocumentComparison")}contentEditorEnter(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorEnter",[])}contentEditorExit(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorExit",[])}contentEditorGetTextBlocks(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorGetTextBlocks",[e])}contentEditorDetectParagraphs(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorDetectParagraphs",[e])}contentEditorRenderTextBlock(e,t,n){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorRenderTextBlock",[e,t,n])}contentEditorSetTextBlockCursor(e,t,n,o){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorSetTextBlockCursor",[e,t,n,o])}contentEditorMoveTextBlockCursor(e,t,n,o){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorMoveTextBlockCursor",[e,t,n,o])}contentEditorInsertTextBlockString(e,t,n,o){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorInsertTextBlockString",[e,t,n,o])}contentEditorInsertTextBlockContentRef(e,t,n,o){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorInsertTextBlockContentRef",[e,t,n,o])}contentEditorCreateTextBlock(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorCreateTextBlock",[e])}contentEditorLayoutTextBlock(e,t,n,o){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorLayoutTextBlock",[e,t,n,o])}contentEditorDeleteTextBlockRange(e,t,n){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorDeleteTextBlockRange",[e,t,n])}contentEditorDeleteTextBlockString(e,t,n){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorDeleteTextBlockString",[e,t,n])}contentEditorSetTextBlockSelection(e,t,n){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorSetTextBlockSelection",[e,t,n])}contentEditorSetTextBlockSelectionRange(e,t,n,o,r){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorSetTextBlockSelectionRange",[e,t,n,o,r])}contentEditorTextBlockUndo(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorTextBlockUndo",[e,t])}contentEditorTextBlockRedo(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorTextBlockRedo",[e,t])}contentEditorTextBlockRestore(e,t,n){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorTextBlockRestore",[e,t,n])}contentEditorTextBlockApplyFormat(e,t,n,o){return this._sendRequest("contentEditorTextBlockApplyFormat",[e,t,n,o])}contentEditorGetAvailableFaces(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorGetAvailableFaces",[])}contentEditorSave(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("contentEditorSave",[e])}recycle(){this._hasLoadedCertificates&&this.loadCertificates([]),this._hasOpenedDocument&&this.closeDocument(),this._isLoading||(this._requests=this._requests.map((()=>({resolve:y,reject:y}))))}destroy(){this._loadPromise=null,this._worker.terminate()}_assertLoaded(){if(this._isLoading)throw new r.p2("CoreClient not yet initialized")}_assertDocumentOpen(){if(!this._hasOpenedDocument)throw new r.p2("This method can not be called since there is no open document. Have you run PSPDFKit.unload()?")}_sendRequest(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return new Promise(((n,o)=>{const r=this._assignId(),i=[...t].filter((e=>e instanceof ArrayBuffer));this._worker.postMessage({id:r,action:e,args:t},i),this._requests=this._requests.set(r,{resolve:n,reject:o})}))}_assignId(){const e=this._nextRequestId;return this._nextRequestId=this._nextRequestId+1,e}}n(17375),n(97528);var w=n(56664);(0,w.Z)();class S{constructor(e){(0,o.Z)(this,"size",1),(0,o.Z)(this,"_freeObjects",[]),this._constructor=e}checkOut(){let e;return e=this._freeObjects.length>0?this._freeObjects.shift():new this._constructor,{object:e,checkIn:()=>{this._freeObjects.length>=this.size?e.destroy():(e.recycle(),this._freeObjects.push(e))}}}}function E(){return"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron/")>=0}function P(){const e=A()[atob("cmVxdWlyZQ==")];return E()&&"undefined"!=typeof window&&window&&window.process&&window.process.type&&"function"==typeof e}function x(){let e;try{e=k("@electron/remote")}catch(t){if("MODULE_NOT_FOUND"!==t.code)throw t;try{e=k("electron").remote}catch(e){(0,r.vU)(`Failed to load the remote module package. PSPDFKit for Web needs access to it in order to work in Electron.\n Please read our Electron guides to help you set it up: https://pspdfkit.com/getting-started/electron/\n ${t.message}\n ${e.message}`)}}return e}function D(){if(!E())return null;if(!P())return null;try{const e=k("fs"),t=x().app.getAppPath()+"/package.json";return JSON.parse(e.readFileSync(t).toString()).name}catch(e){throw new Error(`There was an error parsing this project's \`package.json\`: ${e.message}`)}}function C(){if(!E())return null;try{return`file://${x().app.getAppPath()}/node_modules/pspdfkit/dist/`}catch(e){return null}}function k(e){return(0,A()[atob("cmVxdWlyZQ==")])(e)}function A(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g}function O(e,t){return"string"==typeof e&&(null==t?void 0:t.startsWith("Maui_"))}},46797:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(84121);class r{constructor(e){(0,o.Z)(this,"_subscriptions",new Set),this._state=e}getState(){return this._state}setState(e){this._state="function"==typeof e?e(this._state):e;for(const e of this._subscriptions)e(this._state)}subscribe(e){return this._subscriptions.add(e),()=>this.unsubscribe(e)}unsubscribe(e){this._subscriptions.delete(e)}}},75920:(e,t,n)=>{"use strict";n.d(t,{XV:()=>r,ZK:()=>a,a1:()=>o,cM:()=>i,um:()=>l,vU:()=>s});n(56664);function o(e){a(e)}function r(e,t,n){if(n)return o(`The API ${e} has been deprecated and will be removed in the next major release. Please use ${t} instead. Please go to https://pspdfkit.com/api/web/ for more informations`);o(`The function ${e} was deprecated and will be removed in future version. Please use ${t} instead.`)}function i(e){console.log(e)}function a(e){console.warn(e)}function s(e){console.error(e)}function l(){console.info(...arguments)}},87350:(e,t,n)=>{"use strict";n.d(t,{GO:()=>r,cO:()=>o});const o=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");function r(e){return Array.prototype.filter.call(e.querySelectorAll(o),(e=>!(e.inert||e.hasAttribute("inert")||"-1"===e.getAttribute("tabindex")||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))))}},50974:(e,t,n)=>{"use strict";n.d(t,{p2:()=>r,Rz:()=>s,GB:()=>p,Qo:()=>b,$O:()=>d,FE:()=>m,Tr:()=>i,XV:()=>h.XV,a1:()=>h.a1,vU:()=>h.vU,um:()=>h.um,kG:()=>a,PO:()=>l,AK:()=>c,cM:()=>h.cM,lH:()=>w,wp:()=>f,ZK:()=>h.ZK});const o=function e(t){let n;return n=t instanceof Error?t:new Error(t),Object.setPrototypeOf(n,e.prototype),n};o.prototype=Object.create(Error.prototype,{name:{value:"PSPDFKitError",enumerable:!1}});const r=o;function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t=>new o(""===e?t:`${e}: ${t}`)}function a(e,t){if(!e)throw new r(`Assertion failed: ${t||"Condition not met"}\n\nFor further assistance, please go to: https://pspdfkit.com/support/request`)}const s=e=>{throw new Error("")};function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){const t=new MessageChannel;try{t.port1.postMessage(e)}catch(e){return!1}return!0}const u={keys:[]};function d(e,t){var n;let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u;if(o={keys:null!=(null===(n=o)||void 0===n?void 0:n.keys)?o.keys:u.keys},Object.is(e,t))return[];let r=o.keys||[];if(0===r.length){r=[...new Set(Object.keys(e).concat(Object.keys(t)))]}const i=r.filter((n=>e[n]!==t[n]));return i.map((n=>({key:n,previous:e[n],current:t[n]})))}function p(e){return e.map((e=>{let{key:t,previous:n,current:o}=e;return`- ${t} was previously ${n}, but is now ${o}`})).join("\n")}function f(e){alert(e)}var h=n(75920);n(59271),n(87350),n(30667),n(46797);function m(){for(var e=arguments.length,t=new Array(e),n=0;nv(e,t)),t[0]);return o||null}const g=new WeakMap;function v(e,t){if(e&&t){const n=g.get(e)||new WeakMap;g.set(e,n);const o=n.get(t)||(n=>{y(e,n),y(t,n)});return n.set(t,o),o}return e||t}function y(e,t){"function"==typeof e?e(t):e.current=t}function b(e,t){if(t.caretRangeFromPoint)return t.caretRangeFromPoint(e.x,e.y);if("caretPositionFromPoint"in t&&"function"==typeof t.caretPositionFromPoint){const n=t.caretPositionFromPoint(e.x,e.y),o=t.createRange();return o.setStart(n.offsetNode,n.offset),o.setEnd(n.offsetNode,n.offset),o}}function w(e){return null!=e}},59271:(e,t,n)=>{"use strict";function o(e){return"true"===e.contentEditable||"INPUT"===e.tagName||"TEXTAREA"===e.tagName}n.d(t,{c:()=>o})},30667:(e,t,n)=>{"use strict";n.d(t,{AV:()=>v,Cp:()=>o,E$:()=>l,MS:()=>p,OC:()=>w,P9:()=>f,b8:()=>i,bs:()=>b,cS:()=>g,d2:()=>y,gs:()=>m,gx:()=>s,iT:()=>a,j4:()=>r,rw:()=>h,tW:()=>u,wG:()=>d,zz:()=>c});const o=48,r=70,i=71,a=80,s=90,l=13,c=27,u=32,d=34,p=33,f=37,h=38,m=39,g=40,v=187,y=189,b=8,w=9},25915:(e,t,n)=>{"use strict";n.d(t,{HJ:()=>$t,zx:()=>p,hE:()=>f,qe:()=>ht,M5:()=>vt,bK:()=>zn,FE:()=>Kt,ub:()=>mr,N9:()=>hr,nB:()=>gr,D:()=>er,Hp:()=>lr,F0:()=>Gt,w6:()=>Vt,z:()=>kn,QO:()=>gn,u_:()=>dn,Ex:()=>bn,Ee:()=>Nn,xv:()=>Cn,oi:()=>Fn,TX:()=>nn,ri:()=>o});var o={};n.r(o),n.d(o,{applyStyle:()=>qo,cssStringToObject:()=>xo,deserialize:()=>Eo,escapeHtml:()=>bo,getComputedStyleAll:()=>Zo,getInnerHTML:()=>Io,getLastNCharacters:()=>_o,getSelectedNodesColor:()=>Uo,getStyleString:()=>Do,getText:()=>Ao,getWrapperTags:()=>To,isAtStartOfWordOrText:()=>Ro,isMarkActive:()=>Co,isRangeSelected:()=>Mo,isSelectionUnderlined:()=>Ho,parseHTML:()=>Oo,prepareHTML:()=>Fo,serialize:()=>Po,setStyleOrToggleFormat:()=>jo,toHex:()=>zo,toggleMark:()=>ko,unwrapNode:()=>Wo,wrapNode:()=>Go});var r=n(22122),i=n(17375),a=n(67294),s=n(9327),l=n.n(s),c=n(38996),u=n.n(c);const d=["className","disabled","inverted","primary","danger","type"],p=e=>{const{className:t,disabled:n,inverted:o,primary:s,danger:c,type:p}=e,f=(0,i.Z)(e,d),h=l()({[u().general]:!0,[u().default]:!s,[u().primary]:s,[u().danger]:c,[u().disabled]:n,[u().inverted]:!n&&o},t);return a.createElement("button",(0,r.Z)({},f,{className:h,disabled:n,type:p||"button"}))},f=e=>{const{className:t,children:n,align:o,style:r}=e;let i=null;return a.createElement("div",{className:l()(u().group,"start"===o&&u().groupAlignStart,"end"===o&&u().groupAlignEnd,t),style:r},a.Children.map(n,(e=>e?i?(i=e,a.createElement(a.Fragment,null,a.createElement("div",{className:u().groupSpacer}),e)):(i=e,e):null)))};function h(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function m(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function g(e){m(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function v(e,t){m(2,arguments);var n=g(e).getTime(),o=h(t);return new Date(n+o)}function y(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}Math.pow(10,8);function b(e){m(1,arguments);var t=g(e);return!isNaN(t)}var w={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function S(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,o=e.formats[n]||e.formats[e.defaultWidth];return o}}var E={date:S({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:S({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:S({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var P={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function x(e){return function(t,n){var o,r=n||{};if("formatting"===(r.context?String(r.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=r.width?String(r.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,l=r.width?String(r.width):e.defaultWidth;o=e.values[l]||e.values[s]}return o[e.argumentCallback?e.argumentCallback(t):t]}}function D(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var a,s=i[0],l=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?k(l,(function(e){return e.test(s)})):C(l,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(c):c,a=n.valueCallback?n.valueCallback(a):a;var u=t.slice(s.length);return{value:a,rest:u}}}function C(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function k(e,t){for(var n=0;n0?"in "+o:o+" ago":o},formatLong:E,formatRelative:function(e,t,n,o){return P[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:x({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:x({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:x({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:x({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:x({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(A={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(A.matchPattern);if(!n)return null;var o=n[0],r=e.match(A.parsePattern);if(!r)return null;var i=A.valueCallback?A.valueCallback(r[0]):r[0];i=t.valueCallback?t.valueCallback(i):i;var a=e.slice(o.length);return{value:i,rest:a}}),era:D({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:D({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:D({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:D({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:D({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function T(e,t){m(2,arguments);var n=h(t);return v(e,-n)}function I(e,t){for(var n=e<0?"-":"",o=Math.abs(e).toString();o.length0?n:1-n;return I("yy"===t?o%100:o,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):I(n+1,2)},d:function(e,t){return I(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return I(e.getUTCHours()%12||12,t.length)},H:function(e,t){return I(e.getUTCHours(),t.length)},m:function(e,t){return I(e.getUTCMinutes(),t.length)},s:function(e,t){return I(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,o=e.getUTCMilliseconds();return I(Math.floor(o*Math.pow(10,n-3)),t.length)}};const M=F;var _=864e5;function R(e){m(1,arguments);var t=1,n=g(e),o=n.getUTCDay(),r=(o=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function L(e){m(1,arguments);var t=N(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var o=R(n);return o}var B=6048e5;function j(e){m(1,arguments);var t=g(e),n=R(t).getTime()-L(t).getTime();return Math.round(n/B)+1}function z(e,t){m(1,arguments);var n=t||{},o=n.locale,r=o&&o.options&&o.options.weekStartsOn,i=null==r?0:h(r),a=null==n.weekStartsOn?i:h(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=g(e),l=s.getUTCDay(),c=(l=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(o+1,0,l),c.setUTCHours(0,0,0,0);var u=z(c,t),d=new Date(0);d.setUTCFullYear(o,0,l),d.setUTCHours(0,0,0,0);var p=z(d,t);return n.getTime()>=u.getTime()?o+1:n.getTime()>=p.getTime()?o:o-1}function Z(e,t){m(1,arguments);var n=t||{},o=n.locale,r=o&&o.options&&o.options.firstWeekContainsDate,i=null==r?1:h(r),a=null==n.firstWeekContainsDate?i:h(n.firstWeekContainsDate),s=K(e,t),l=new Date(0);l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0);var c=z(l,t);return c}var U=6048e5;function V(e,t){m(1,arguments);var n=g(e),o=z(n,t).getTime()-Z(n,t).getTime();return Math.round(o/U)+1}var G="midnight",W="noon",q="morning",H="afternoon",$="evening",Y="night",X={G:function(e,t,n){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var o=e.getUTCFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return M.y(e,t)},Y:function(e,t,n,o){var r=K(e,o),i=r>0?r:1-r;return"YY"===t?I(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):I(i,t.length)},R:function(e,t){return I(N(e),t.length)},u:function(e,t){return I(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return I(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return I(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){var o=e.getUTCMonth();switch(t){case"M":case"MM":return M.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return I(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var r=V(e,o);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):I(r,t.length)},I:function(e,t,n){var o=j(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):I(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):M.d(e,t)},D:function(e,t,n){var o=function(e){m(1,arguments);var t=g(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=t.getTime(),r=n-o;return Math.floor(r/_)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):I(o,t.length)},E:function(e,t,n){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return I(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return I(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var o=e.getUTCDay(),r=0===o?7:o;switch(t){case"i":return String(r);case"ii":return I(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var o,r=e.getUTCHours();switch(o=12===r?W:0===r?G:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){var o,r=e.getUTCHours();switch(o=r>=17?$:r>=12?H:r>=4?q:Y,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var o=e.getUTCHours()%12;return 0===o&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return M.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):M.H(e,t)},K:function(e,t,n){var o=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(o,{unit:"hour"}):I(o,t.length)},k:function(e,t,n){var o=e.getUTCHours();return 0===o&&(o=24),"ko"===t?n.ordinalNumber(o,{unit:"hour"}):I(o,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):M.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):M.s(e,t)},S:function(e,t){return M.S(e,t)},X:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Q(r);case"XXXX":case"XX":return ee(r);default:return ee(r,":")}},x:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"x":return Q(r);case"xxxx":case"xx":return ee(r);default:return ee(r,":")}},O:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+J(r,":");default:return"GMT"+ee(r,":")}},z:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+J(r,":");default:return"GMT"+ee(r,":")}},t:function(e,t,n,o){var r=o._originalDate||e;return I(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,o){return I((o._originalDate||e).getTime(),t.length)}};function J(e,t){var n=e>0?"-":"+",o=Math.abs(e),r=Math.floor(o/60),i=o%60;if(0===i)return n+String(r);var a=t||"";return n+String(r)+a+I(i,2)}function Q(e,t){return e%60==0?(e>0?"-":"+")+I(Math.abs(e)/60,2):ee(e,t)}function ee(e,t){var n=t||"",o=e>0?"-":"+",r=Math.abs(e);return o+I(Math.floor(r/60),2)+n+I(r%60,2)}const te=X;function ne(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function oe(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var re={p:oe,P:function(e,t){var n,o=e.match(/(P+)(p+)?/),r=o[1],i=o[2];if(!i)return ne(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",ne(r,t)).replace("{{time}}",oe(i,t))}};const ie=re;var ae=["D","DD"],se=["YY","YYYY"];function le(e){return-1!==ae.indexOf(e)}function ce(e){return-1!==se.indexOf(e)}function ue(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var de=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,pe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fe=/^'([^]*?)'?$/,he=/''/g,me=/[a-zA-Z]/;function ge(e,t,n){m(2,arguments);var o=String(t),r=n||{},i=r.locale||O,a=i.options&&i.options.firstWeekContainsDate,s=null==a?1:h(a),l=null==r.firstWeekContainsDate?s:h(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=i.options&&i.options.weekStartsOn,u=null==c?0:h(c),d=null==r.weekStartsOn?u:h(r.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!i.localize)throw new RangeError("locale must contain localize property");if(!i.formatLong)throw new RangeError("locale must contain formatLong property");var p=g(e);if(!b(p))throw new RangeError("Invalid time value");var f=y(p),v=T(p,f),w={firstWeekContainsDate:l,weekStartsOn:d,locale:i,_originalDate:p},S=o.match(pe).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,ie[t])(e,i.formatLong,w):e})).join("").match(de).map((function(n){if("''"===n)return"'";var o=n[0];if("'"===o)return ve(n);var a=te[o];if(a)return!r.useAdditionalWeekYearTokens&&ce(n)&&ue(n,t,e),!r.useAdditionalDayOfYearTokens&&le(n)&&ue(n,t,e),a(v,n,i.localize,w);if(o.match(me))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return n})).join("");return S}function ve(e){return e.match(fe)[1].replace(he,"'")}function ye(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function be(e,t,n){m(2,arguments);var o=n||{},r=o.locale,i=r&&r.options&&r.options.weekStartsOn,a=null==i?0:h(i),s=null==o.weekStartsOn?a:h(o.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=g(e),c=h(t),u=l.getUTCDay(),d=c%7,p=(d+7)%7,f=(p0,r=o?t:1-t;if(r<=50)n=e||100;else{var i=r+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return o?n:1-n}var Xe=[31,28,31,30,31,30,31,31,30,31,30,31],Je=[31,29,31,30,31,30,31,31,30,31,30,31];function Qe(e){return e%400==0||e%4==0&&e%100!=0}var et={G:{priority:140,parse:function(e,t,n,o){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,o){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,o){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return qe(4,e,r);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:r});default:return qe(t.length,e,r)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,o){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var i=Ye(n.year,r);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,o){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return qe(4,e,r);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:r});default:return qe(t.length,e,r)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,o){var r=K(e,o);if(n.isTwoDigitYear){var i=Ye(n.year,r);return e.setUTCFullYear(i,0,o.firstWeekContainsDate),e.setUTCHours(0,0,0,0),z(e,o)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,o.firstWeekContainsDate),e.setUTCHours(0,0,0,0),z(e,o)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,o){return He("R"===t?4:t.length,e)},set:function(e,t,n,o){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),R(r)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,o){return He("u"===t?4:t.length,e)},set:function(e,t,n,o){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,o){switch(t){case"Q":case"QQ":return qe(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,o){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,o){switch(t){case"q":case"qq":return qe(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,o){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,o){var r=function(e){return e-1};switch(t){case"M":return Ve(we,e,r);case"MM":return qe(2,e,r);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:r});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,o){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,o){var r=function(e){return e-1};switch(t){case"L":return Ve(we,e,r);case"LL":return qe(2,e,r);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:r});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,o){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,o){switch(t){case"w":return Ve(Pe,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return qe(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,o){return z(function(e,t,n){m(2,arguments);var o=g(e),r=h(t),i=V(o,n)-r;return o.setUTCDate(o.getUTCDate()-7*i),o}(e,n,o),o)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,o){switch(t){case"I":return Ve(Pe,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return qe(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,o){return R(function(e,t){m(2,arguments);var n=g(e),o=h(t),r=j(n)-o;return n.setUTCDate(n.getUTCDate()-7*r),n}(e,n,o),o)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,n,o){switch(t){case"d":return Ve(Se,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return qe(t.length,e)}},validate:function(e,t,n){var o=Qe(e.getUTCFullYear()),r=e.getUTCMonth();return o?t>=1&&t<=Je[r]:t>=1&&t<=Xe[r]},set:function(e,t,n,o){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,n,o){switch(t){case"D":case"DD":return Ve(Ee,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return qe(t.length,e)}},validate:function(e,t,n){return Qe(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,o){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,o){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,o){return(e=be(e,n,o)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,o){var r=function(e){var t=7*Math.floor((e-1)/7);return(e+o.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return qe(t.length,e,r);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:r});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,o){return(e=be(e,n,o)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,o){var r=function(e){var t=7*Math.floor((e-1)/7);return(e+o.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return qe(t.length,e,r);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:r});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,o){return(e=be(e,n,o)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,o){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return qe(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:r})||n.day(e,{width:"short",context:"formatting",valueCallback:r})||n.day(e,{width:"narrow",context:"formatting",valueCallback:r});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:r});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:r})||n.day(e,{width:"narrow",context:"formatting",valueCallback:r});default:return n.day(e,{width:"wide",context:"formatting",valueCallback:r})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:r})||n.day(e,{width:"short",context:"formatting",valueCallback:r})||n.day(e,{width:"narrow",context:"formatting",valueCallback:r})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,o){return e=function(e,t){m(2,arguments);var n=h(t);n%7==0&&(n-=7);var o=1,r=g(e),i=r.getUTCDay(),a=((n%7+7)%7=1&&t<=12},set:function(e,t,n,o){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,o){switch(t){case"H":return Ve(xe,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return qe(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,o){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,o){switch(t){case"K":return Ve(Ce,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return qe(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,o){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,o){switch(t){case"k":return Ve(De,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return qe(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,o){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,o){switch(t){case"m":return Ve(Ae,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return qe(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,o){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,o){switch(t){case"s":return Ve(Oe,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return qe(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,o){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,o){return qe(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,o){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,o){switch(t){case"X":return Ge(je,e);case"XX":return Ge(ze,e);case"XXXX":return Ge(Ke,e);case"XXXXX":return Ge(Ue,e);default:return Ge(Ze,e)}},set:function(e,t,n,o){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,o){switch(t){case"x":return Ge(je,e);case"xx":return Ge(ze,e);case"xxxx":return Ge(Ke,e);case"xxxxx":return Ge(Ue,e);default:return Ge(Ze,e)}},set:function(e,t,n,o){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,o){return We(e)},set:function(e,t,n,o){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,o){return We(e)},set:function(e,t,n,o){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}};const tt=et;var nt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ot=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rt=/^'([^]*?)'?$/,it=/''/g,at=/\S/,st=/[a-zA-Z]/;function lt(e,t,n,o){m(3,arguments);var r=String(e),i=String(t),a=o||{},s=a.locale||O;if(!s.match)throw new RangeError("locale must contain match property");var l=s.options&&s.options.firstWeekContainsDate,c=null==l?1:h(l),u=null==a.firstWeekContainsDate?c:h(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=s.options&&s.options.weekStartsOn,p=null==d?0:h(d),f=null==a.weekStartsOn?p:h(a.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===i)return""===r?g(n):new Date(NaN);var v,b={firstWeekContainsDate:u,weekStartsOn:f,locale:s},w=[{priority:10,subPriority:-1,set:ct,index:0}],S=i.match(ot).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,ie[t])(e,s.formatLong,b):e})).join("").match(nt),E=[];for(v=0;v0&&at.test(r))return new Date(NaN);var M=w.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return w.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),_=g(n);if(isNaN(_))return new Date(NaN);var R=T(_,y(_)),N={};for(v=0;v{const n=a.useRef(null),o=a.useRef(null),[r,i]=a.useState(!1);a.useImperativeHandle(t,(()=>n.current));const s=e.format.split("").map((e=>{switch(e){case"m":return"M";case"M":return"m"}return e})).join(""),c=ft.i7||ft.TL||"date"===e.type,u=t=>{const r=n.current,a=o.current;if(!r)return;const s=r.ownerDocument.activeElement;s!==r&&s!==a&&(e.onBlur&&e.onBlur(t),i(!1))},d=t=>{!r&&e.onFocus&&(e.onFocus(t),i(!0)),i(!0)},p=()=>{switch(e.type){case"date":return"yyyy-MM-dd";case"time":return"HH:mm";case"datetime-local":return"yyyy-MM-dd'T'HH:mm"}};return a.createElement("div",{className:pt().wrapper},a.createElement("input",{"data-testid":"input",ref:n,name:e.name,value:e.value,style:e.style,className:l()(pt().input,e.className,"PSPDFKit-Annotation-Widget-Date-Input"),type:"text",disabled:e.disabled,maxLength:e.maxLength,placeholder:e.format,required:e.required,onChange:t=>{const r=n.current,i=o.current;if(r){const n=lt(r.value,s,new Date);!0===b(n)&&i&&(i.value=ge(n,p())),e.onChange&&e.onChange(t)}},onBlur:u,onFocus:d}),c?a.createElement("div",{style:{opacity:r?1:0},className:pt().pickerWidget},a.createElement("input",{"data-testid":"picker",ref:o,className:pt().picker,type:e.type,onChange:t=>{const r=n.current,i=o.current;if(r&&i){var a;const n=lt(i.value,p(),new Date);b(n)&&i&&(r.value=ge(n,s)),null===(a=e.onChange)||void 0===a||a.call(e,t)}},onBlur:u,onFocus:d})):null)}));ht.defaultProps={};var mt=n(81585),gt=n.n(mt);function vt(e){let{children:t,className:n}=e;return a.createElement("div",{className:l()(gt().center,n)},t)}var yt=n(84121),bt=n(79153),wt=n(71634),St=n(35369),Et=n(12459),Pt=n.n(Et);const xt=e=>{const{onDragOver:t}=e,[,n]=(0,bt.c0)({type:Dt,item:()=>(e.onDragStart&&e.onDragStart(e.index),{id:e.index,type:Dt}),canDrag:()=>e.draggable||!1,end:()=>{e.onDragEnd&&e.onDragEnd()}}),[,o]=(0,bt.LW)({accept:Dt,hover:(n,o)=>{t&&t(e.index,o.getClientOffset())}});return a.createElement("div",{"data-id":e.index,ref:o},a.createElement("div",{ref:n,className:Pt().item},a.createElement("div",{className:Pt().content},e.children)))},Dt="ITEM",Ct=e=>{const{renderItem:t}=e,{item:n,isDragging:o,currentOffset:r}=(0,bt.f$)((e=>({item:e.getItem(),currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging()}))),i=a.useMemo((()=>o?a.createElement(xt,{index:n.id},t(n.id)):null),[o,n,t]);if(!o||!r)return null;const{x:s,y:l}=r;return a.createElement("div",{className:Pt().dragPreview},a.createElement("div",{style:{transform:`translate(${s}px, ${l}px)`}},i))};var kt=n(34855);function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ot(e){for(var t=1;t{const{scrollY:t=0,onViewportChange:n,initialForcedScrollY:o}=e,[r,i]=a.useState(null),[s,l]=a.useState({height:0,width:0,scrollY:0}),c=a.useRef(null),u=a.useRef(null),d=a.useRef(0);a.useLayoutEffect((()=>{r&&(r.scrollTop=t)}),[r,t]),a.useLayoutEffect((()=>{r&&"number"==typeof o&&(r.scrollTop=o)}),[r,o]);const{currentOffset:p,isDragging:f}=(0,bt.f$)((e=>({isDragging:e.isDragging(),currentOffset:e.getClientOffset()}))),h=a.useCallback((()=>{const{clientWidth:e=0,clientHeight:t=0}=r||{},n=e||0,o=t||0;n===s.width&&o===s.height||l(Ot(Ot({},s),{},{width:n||0,height:o||0}))}),[r,s]),m=a.useCallback((e=>{const t=e.currentTarget.scrollTop,n=Ot(Ot({},s),{},{scrollY:t});s.scrollY!==t&&l(n)}),[s]);a.useLayoutEffect((()=>{n(s)}),[n,s]),a.useEffect((()=>{c.current=null==r?void 0:r.getBoundingClientRect(),h()}),[r,h]);const g=a.useCallback((()=>{clearInterval(u.current),u.current=null}),[]),v=a.useCallback((e=>{g(),r&&d.current!==e&&(g(),u.current=setInterval((()=>{r.scrollBy(0,e)}),Rt),d.current=e)}),[r,g]);a.useEffect((()=>{if(!c.current||!p)return void g();const{height:e}=c.current,t=p.ye-It,o=p.y,r=e-p.y,i=Ft+(It-(t?o:r))/It*(Mt-Ft);!u.current||t||n?t?v(-_t*i):n&&v(_t*i):g()}),[p,v,g]);const y={position:"relative",width:"100%",height:"100%",overflowX:"hidden",overflowY:f&&(0,ft.b1)()?"hidden":"scroll"},b=a.useRef(null);return a.useEffect((()=>{var e;b.current&&(null===(e=b.current)||void 0===e||e.focus({preventScroll:!0}))})),a.createElement("div",{"data-testid":"scroll",ref:e=>i(e),style:y,onScroll:m},a.createElement(kt.Z,{onResize:h}),r?e.renderContent(s,b):null)},It=50,Ft=.5,Mt=1,_t=10,Rt=1;var Nt=n(50974);class Lt{constructor(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;(0,yt.Z)(this,"itemWidth",0),(0,yt.Z)(this,"itemHeight",0),(0,yt.Z)(this,"itemPaddingLeft",0),(0,yt.Z)(this,"itemPaddingRight",0),(0,yt.Z)(this,"totalItems",0),(0,Nt.kG)(e>0,"You must provide an item width of greater than 0"),(0,Nt.kG)(t>0,"You must provide an item height of greater than 0"),(0,Nt.kG)(o>=0,"Padding must be greater than 0"),(0,Nt.kG)(r>=0,"Padding must be greater than 0"),this.itemWidth=e,this.itemHeight=t,this.totalItems=n,this.itemPaddingLeft=o,this.itemPaddingRight=r}contentHeight(e){const t=this.itemsPerRow(e);return Math.ceil(this.totalItems/t)*this.itemHeight}itemsPerRow(e){return Math.max(Math.floor(e.width/this.itemWidth),1)}layoutAttributesForItemsIn(e){const{scrollY:t,height:n}=e,o=this.itemsPerRow(e),r=Math.ceil(this.totalItems/o),i=t?Math.floor(t/this.itemHeight):0,a=Math.ceil(n/this.itemHeight),s=Math.max(i-Bt,0),l=Math.min(i+a+Bt,r),c=[];for(let t=s*o;t{var t;const{draggingEnabled:n=!1,totalItems:o,itemHeight:r,itemWidth:i,itemPaddingLeft:s,itemPaddingRight:l,selectedItemIndexes:c=(0,St.l4)(),canInsert:u,renderDragPreview:d,renderInsertionCursor:p,focusedItemIndex:f}=e,[h,m]=a.useState(null),g=a.useRef(null),v=a.useRef(null),y=a.useRef(null),[b,w]=a.useState((0,St.l4)([])),S=new Lt(i,r,o,s,l),[E,P]=a.useState(0);a.useLayoutEffect((()=>{0!==c.size&&(e=>{const t=v.current;if(0===e.size)return;if(!t)return;const n=t.height+t.scrollY,o=e=>{const o=e.top+e.height/2;return o>t.scrollY&&oe.has(t.index)));if(r.filter(o).length>0)return;let i=r.filter((e=>!o(e)));0===i.length&&(i=e.map((e=>S.layoutAttributeForItemAt(t,e))).toArray()),i=i.sort(((e,t)=>e.index-t.index));const a=i[0];v.current=zt(zt({},t),{},{scrollY:a.top}),P(a.top)})(c)}),[c]);const x=e=>{e.preventDefault()},D=e=>c.has(e)||!1,C=()=>{g.current=null,y.current=null,w((0,St.l4)([]))},k=a.useCallback(((e,t)=>{const n=g.current;if(h&&t)if(null===n||n.index!==e){const t=h.querySelector(`[data-id="${e}"]`),n=null==t?void 0:t.getBoundingClientRect();if(!n)return void(g.current=null);g.current={index:e,bounds:n}}else{const r=n.bounds.left+n.bounds.width/2,i=t.x{const t=D(e);w(t?(0,St.l4)(c):(0,St.l4)([e]))},O=()=>{const t=y.current;if(null!==t){const n=Array.from(b);if(b.has(t))return void T();e.onDragEnd&&e.onDragEnd(n,t)}C()},T=()=>{requestAnimationFrame((()=>C()))},I=t=>{if(d)return d(t,Array.from(b));{const n={selected:!1,dragging:!1};return e.renderItem(t,n)}},F=e=>{v.current=e},M=(t,n)=>{if(!p)return null;const o=null!==y.current?y.current:e.insertionIndex;if(null==o)return;const r=t.layoutAttributeForInsertionCursor(n,g.current?g.current.index:null,o),i={position:"absolute",width:r.width,height:r.height,left:r.left,top:r.top,zIndex:100},s=(e=>!u||u(b.isEmpty()&&c?Array.from(c):Array.from(b),e))(r.index);return a.createElement("div",{style:i},p(s,!!r.atRowEnd))},_=(t,s)=>{const l=S.layoutAttributesForItemsIn(t);let c=!1;if(l.length>0){const e=l[0].index,t=l[l.length-1].index;c=null!=f&&(ft)}const u=l.map(((t,u)=>{const{index:d}=t,p={position:"absolute",left:t.left,top:t.top,width:t.width,height:t.height},f=u===Math.floor(l.length/2)&&c;return a.createElement("div",{key:e.itemKey?e.itemKey(d):d,style:p},((t,s)=>{const l={selected:D(t),dragging:b.has(t),itemRef:s},c=!(tm(e)},(()=>{var n;if(!h)return null;const o={enableMouseEvents:!0,delayTouchStart:500,touchSlop:10,ignoreContextMenu:!0,ownerDocument:h.ownerDocument},r={width:e.width,height:e.height};return a.createElement(bt.WG,{backend:wt.TouchBackend,options:o},a.createElement("div",{className:Pt().container,onContextMenu:x,style:r},t||(t=a.createElement(Ct,{renderItem:I})),a.createElement(Tt,{onViewportChange:F,renderContent:_,scrollY:(null===(n=v.current)||void 0===n?void 0:n.scrollY)||0,initialForcedScrollY:E})))})())};var Zt=n(68402),Ut=n.n(Zt);const Vt=e=>{const{children:t,onPress:n,expanded:o,ariaControls:r,className:i,headingRef:s}=e,c=e.headingTag;return a.createElement(c,{className:l()("PSPDFKit-Expando-Control",Ut().control,i),ref:s},a.createElement("button",{className:Ut().controlButton,"aria-expanded":r?o:void 0,"aria-controls":r,onClick:n,autoFocus:e.autoFocus},t))};Vt.defaultProps={headingTag:"div"};const Gt=e=>{const{children:t,expanded:n,id:o}=e;return a.createElement("div",{id:o,className:l()("PSPDFKit-Expando-Content",!n&&Ut().contentHidden,!n&&"PSPDFKit-Expando-Content-Hidden")},t)};var Wt=n(59271),qt=n(30667),Ht=n(87350);class $t extends a.Component{constructor(){super(...arguments),(0,yt.Z)(this,"rootRef",a.createRef()),(0,yt.Z)(this,"activeItem",a.createRef()),(0,yt.Z)(this,"state",{activeItemIndex:0,focusReason:"initial"}),(0,yt.Z)(this,"didSetActiveItem",!1),(0,yt.Z)(this,"onActiveItemIndexChange",(()=>{this.props.onActiveItemIndexChange&&this.props.onActiveItemIndexChange(this.state.activeItemIndex)})),(0,yt.Z)(this,"onKeyDown",(e=>{var t;const{ignoreOnKeyPress:n}=this.props;if("function"==typeof n?n(e):e.altKey||e.shiftKey)return;const o=null===(t=e.currentTarget.ownerDocument.defaultView)||void 0===t?void 0:t.HTMLElement;if(!(e.target instanceof o)||(0,Wt.c)(e.target))return;const{activeItemIndex:r}=this.state,i=e.ctrlKey||e.metaKey;if(e.which===this.props.prevKey&&r>0&&this.setState({activeItemIndex:i?0:r-1,focusReason:"keyboard"},this.onActiveItemIndexChange),e.which===this.props.nextKey){const e=this.props.items.length-1;r{const t=e.target!==e.currentTarget;let n=this.state.activeItemIndex;const o=e.currentTarget,r=o&&o.parentNode&&o.parentNode.children?Array.prototype.findIndex.call(o.parentNode.children,(e=>e===o)):-1;-1!==r&&(n=r),this.setState({activeItemIndex:n,focusReason:t?"focus_within":"focus"},this.onActiveItemIndexChange)}))}setActiveItem(e){this.didSetActiveItem=!0,this.setState({activeItemIndex:e,focusReason:"focus"})}getActiveItem(){return this.state.activeItemIndex}componentDidMount(){Yt(this.rootRef.current,this.activeItem.current),this.onActiveItemIndexChange()}componentDidUpdate(e,t){(this.didSetActiveItem||e.items.length!==this.props.items.length||t.activeItemIndex!==this.state.activeItemIndex)&&(this.didSetActiveItem=!1,Yt(this.rootRef.current,this.activeItem.current),"focus_within"!==this.state.focusReason&&function(e){if(!e)return;const t=e.children,n=t[0],o=n.matches||n.msMatchesSelector;1===t.length&&o.call(n,Ht.cO)?(e.removeAttribute("tabindex"),n.focus()):e.focus()}(this.activeItem.current))}render(){if("function"==typeof this.props.children){let e=!1,t=!1;const n=this.props.children({activeItemIndex:this.state.activeItemIndex,getContainerProps:()=>(e=!0,{onKeyDown:this.onKeyDown,ref:this.rootRef}),getItemProps:e=>{let{item:n}=e;(0,Nt.kG)(n,"getItemProps must be called with `{ item }`");const o=this.props.items.findIndex((e=>e===n));(0,Nt.kG)(o>-1,"getItemPropsL: Cannot find `item` in `props.items`");const r=o===this.state.activeItemIndex;return t=!0,{tabIndex:r?0:-1,ref:r?this.activeItem:void 0,onFocus:this.onFocus,onClick:e=>{e.target.closest(Ht.cO)||this.setState({activeItemIndex:o,focusReason:"focus"},this.onActiveItemIndexChange)}}}});return(0,Nt.kG)(n,"Did not return valid children"),(0,Nt.kG)(e,"Did not call getContainerProps"),(0,Nt.kG)(t,"Did not call getItemProps"),n}return a.createElement("div",{onKeyDown:this.onKeyDown,ref:this.rootRef,"data-testid":"accessible-collection"},this.props.items.map(((e,t)=>{const n=t===this.state.activeItemIndex;return a.createElement("div",{key:t,tabIndex:n?0:-1,ref:n?this.activeItem:void 0,onFocus:this.onFocus,onClick:e=>{e.target.closest(Ht.cO)||this.setState({activeItemIndex:t,focusReason:"focus"},this.onActiveItemIndexChange)}},e)})))}}function Yt(e,t){if(!e||!t)return;(0,Ht.GO)(e).forEach((t=>{t.parentNode!==e&&t.setAttribute("tabindex","-1")})),Array.prototype.forEach.call(t.querySelectorAll('[tabindex="-1"]'),(e=>{e.removeAttribute("tabindex")}))}(0,yt.Z)($t,"defaultProps",{prevKey:qt.rw,nextKey:qt.cS,ignoreOnKeyPress:null});var Xt=n(67665),Jt=n(19575),Qt=n(21246),en=n.n(Qt);const tn=["className","tag","announce"],nn=a.forwardRef((function(e,t){const{className:n,tag:o,announce:s}=e,c=(0,i.Z)(e,tn),u=s?{role:"status","aria-live":s}:{};return a.createElement(o||"p",(0,r.Z)({},c,{ref:t,className:l()(en().visuallyHidden,n)},u))}));class on extends a.Component{constructor(){super(...arguments),(0,yt.Z)(this,"_handleRef",(e=>{this._el=e,this._document=e?e.ownerDocument:null})),(0,yt.Z)(this,"_handleKeyDown",(e=>{const t=this._el,n=this._document;if(e.keyCode===qt.OC&&t&&n){const o=(0,Ht.GO)(t),r=o.indexOf(n.activeElement);e.shiftKey&&0===r?(o[o.length-1].focus(),e.preventDefault()):e.shiftKey||r!==o.length-1||(o[0].focus(),e.preventDefault())}}))}componentDidMount(){this._document&&this._document.addEventListener("keydown",this._handleKeyDown),document.addEventListener("keydown",this._handleKeyDown);const e=this._el;if(e&&!e.querySelector('[autofocus]:not([autofocus="false"])')){const t=(0,Ht.GO)(e)[0]||e.querySelector('[tabindex="-1"]');t&&t.focus()}}componentWillUnmount(){this._document&&this._document.removeEventListener("keydown",this._handleKeyDown),document.removeEventListener("keydown",this._handleKeyDown)}render(){return a.createElement("div",{ref:this._handleRef},this.props.children)}}var rn=n(48721),an=n.n(rn);const sn=["children","className","spaced"],ln=["className","spaced"],cn=[];function un(){const e=cn.length-1;cn.forEach(((t,n)=>{t.setState({isOnTop:n==e})}))}class dn extends a.Component{constructor(){super(...arguments),(0,yt.Z)(this,"descriptionId",this.props.accessibilityDescription?`modal-description-${Jt.Base64.encode(this.props.accessibilityDescription).substr(0,10)}`:null),(0,yt.Z)(this,"restoreOnCloseElement",this.props.restoreOnCloseElement),(0,yt.Z)(this,"useBorderRadius",!1!==this.props.useBorderRadius),(0,yt.Z)(this,"state",{isShaking:!1,isOnTop:!0}),(0,yt.Z)(this,"_preventPropagation",(e=>{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()})),(0,yt.Z)(this,"_handleClick",(()=>{this.props.onDismiss&&this.props.onDismiss()})),(0,yt.Z)(this,"onMount",(e=>{0===cn.length&&e.setAttribute("aria-hidden","true"),cn.push(this),un()})),(0,yt.Z)(this,"onUnmount",(e=>{cn.pop(),0===cn.length&&e.removeAttribute("aria-hidden"),un(),this.restoreOnCloseElement&&this.restoreOnCloseElement.focus()})),(0,yt.Z)(this,"_handleKeyDown",(e=>{e.keyCode!==qt.E$&&e.keyCode!==qt.tW||e.nativeEvent.stopImmediatePropagation(),this.props.onEscape&&e.keyCode===qt.zz&&(this.props.onEscape(),e.preventDefault(),e.target.ownerDocument.addEventListener("keyup",this._preventPropagation,{capture:!0,once:!0})),this.props.onEnter&&e.keyCode===qt.E$&&(this.props.onEnter(),e.preventDefault())})),(0,yt.Z)(this,"_handleAnimationEnd",(()=>{this.setState({isShaking:!1})}))}shake(){this.setState({isShaking:!0})}componentDidMount(){this.props.innerRef&&(this.props.innerRef.current=this)}componentWillUnmount(){this.props.innerRef&&(this.props.innerRef.current=null)}render(){var e,t;const{isShaking:n,isOnTop:o}=this.state,{className:r,backdropFixed:i}=this.props,s=o?on:a.Fragment,c={position:i?"fixed":"absolute"};return a.createElement(Xt.m,{onMount:this.onMount,onUnmount:this.onUnmount},a.createElement("div",{"aria-hidden":!o},a.createElement(s,null,a.createElement("div",{className:l()(an().backdropContainer,"PSPDFKit-Modal-Backdrop"),style:c,onClick:this._handleClick,onKeyDown:o?this._handleKeyDown:void 0},a.createElement("div",{role:this.props.role,"aria-label":this.props.accessibilityLabel,"aria-describedby":this.props.accessibilityDescription&&null!==(e=this.descriptionId)&&void 0!==e?e:void 0,className:l()(an().dialog,r,"PSPDFKit-Modal-Dialog",{[an().shaking]:n,[an().squareCorners]:!this.useBorderRadius}),onTouchEndCapture:this._preventPropagation,onMouseUpCapture:this._preventPropagation,onPointerUpCapture:this._preventPropagation,onKeyUpCapture:this._preventPropagation,onAnimationEnd:this._handleAnimationEnd,tabIndex:-1},this.props.children,this.props.accessibilityDescription&&a.createElement(nn,{id:null!==(t=this.descriptionId)&&void 0!==t?t:void 0},this.props.accessibilityDescription))))))}}function pn(e){const{children:t,className:n,spaced:o}=e,s=(0,i.Z)(e,sn),c=l()(an().section,o&&an().sectionSpaced,o&&"PSPDFKit-Modal-Section-Spaced",n,"PSPDFKit-Modal-Section");return a.createElement("div",(0,r.Z)({},s,{className:c}),t)}function fn(e){const{className:t,spaced:n}=e,o=(0,i.Z)(e,ln),s=l()(an().divider,n&&an().dividerSpaced,n&&"PSPDFKit-Modal-Divider-Spaced",t,"PSPDFKit-Modal-Divider");return a.createElement("div",(0,r.Z)({},o,{className:s}))}(0,yt.Z)(dn,"Section",pn),(0,yt.Z)(dn,"Divider",fn),(0,yt.Z)(dn,"defaultProps",{role:"dialog"}),pn.displayName="Modal.Section",pn.defaultProps={spaced:!1},fn.displayName="Modal.Divider",fn.defaultProps={spaced:!0};var hn=n(45265),mn=n.n(hn);const gn=a.forwardRef((function(e,t){const n=a.useRef(null);return a.useImperativeHandle(t,(()=>n.current)),a.useEffect((()=>{const e=n.current;return null==e||e.showModal(),()=>{null==e||e.close()}}),[]),a.createElement("dialog",{ref:n,className:l()("PSPDFKit-Modal-Backdrop",mn().wrapper,e.wrapperClass),onClose:e.onDismiss},a.createElement("form",{method:"dialog",className:e.formClass},e.children))}));var vn=n(41707),yn=n.n(vn);const bn=e=>{let{message:t,progress:n,style:o}=e;if(n){const e=Math.floor(100*n);return a.createElement("div",{className:l()("PSPDFKit-Progress",yn().progress),style:o,role:"progressbar","aria-valuenow":e,"aria-label":`${e}% complete`},a.createElement("div",{className:yn().progressBar},a.createElement("div",{className:yn().progressFill,style:{width:`${e}%`}})),t?a.createElement("div",{className:yn().progressText},t):null)}return a.createElement("div",{className:l()("PSPDFKit-Progress",yn().loader),style:o,role:"progressbar","aria-valuenow":0,"aria-label":"0% complete"},a.createElement("div",{className:yn().loaderDot}),a.createElement("div",{className:yn().loaderDot}),a.createElement("div",{className:yn().loaderDot}))};var wn=n(38104),Sn=n.n(wn);const En=["className","children"];function Pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function xn(e){for(var t=1;tt=>{const{className:n,children:o}=t,r=xn(xn({},(0,i.Z)(t,En)),{},{className:l()(Sn()[e],n)});return a.createElement(e,r,o)},Cn=Dn("p");Cn.displayName="Text";const kn=Dn("h1");kn.displayName="HeaderText";var An=n(60044),On=n.n(An);const Tn=["secureTextEntry","error","success","selectTextOnFocus","onBlur","onFocus"],In=(e,t)=>{const n=a.useRef(null);a.useImperativeHandle(t,(()=>n.current)),a.useEffect((()=>{const{selectTextOnFocus:t,autoFocus:n}=e;t&&n&&o()}),[]);const o=a.useCallback((()=>{const{selectTextOnFocus:t}=e,{current:o}=n;o&&(t&&o.select(),f&&f())}),[]),{secureTextEntry:s,error:c,success:u,selectTextOnFocus:d,onBlur:p,onFocus:f}=e,h=(0,i.Z)(e,Tn),m=l()({[On().default]:!c&&!u,[On().error]:c,[On().success]:u},e.className),g=s?"password":"text";return a.createElement("input",(0,r.Z)({},h,{className:m,type:g,ref:n,onFocus:o,onBlur:p}))},Fn=a.memo(a.forwardRef(In));var Mn=n(13540),_n=n(15967),Rn=n.n(_n);function Nn(e){let{inputName:t,label:n,options:o,onChange:r,selectedOption:i,labelClassNamePrefix:s,disabled:c=!1,showLabel:u,isButton:d,wrapperClasses:p}=e;return a.createElement("div",{className:l()(Rn().radioGroup,{[p]:p}),"aria-label":n,role:"radiogroup"},o.map((e=>{let{value:n,label:o,iconPath:p}=e;const f=n===i,h=l()(Rn().iconLabel,{[Rn().iconLabelIsActive]:f,[`${s}-${n}`]:!0,[`${s}-active`]:f,[Rn().focusedLabelFocusVisible]:f,[Rn().selectedLabel]:f&&d,[Rn().radioGroupLabel]:!f&&d,[Rn().fullWidthRadio]:d});return a.createElement("label",{key:n,className:h},a.createElement(nn,{tag:"span"},o),a.createElement("input",{type:"radio",name:t,value:n,checked:f,onChange:e=>r(e.target.value),"aria-label":o,disabled:c}),d&&f&&a.createElement(Mn.Z,{src:p,className:l()(Rn().icon,{[Rn().radioGroupIcon]:d})}),!d&&a.createElement(Mn.Z,{src:p,className:Rn().icon}),u&&a.createElement("span",null,o))})))}var Ln=n(98932),Bn=n.n(Ln);let jn=0;function zn(e){const t=a.useRef(jn++),{label:n,accessibilityLabel:o,onUpdate:r}=e,i=a.useCallback((e=>{r(e.target.checked)}),[r]);const s=l()(Bn().label,e.styles.label);return a.createElement("div",{className:e.styles.controlWrapper},a.createElement("div",{className:e.styles.control},a.createElement("div",{className:l()("PSPDFKit-Checkbox-Input",e.className,Bn().root)},a.createElement("input",{className:l()(Bn().input,e.styles.input),type:"checkbox",id:`${Bn().label}-${t.current}`,onChange:i,checked:e.value}),e.label?a.createElement("label",{htmlFor:`${Bn().label}-${t.current}`,className:s},n):o?a.createElement("label",{htmlFor:`${Bn().label}-${t.current}`,className:s},a.createElement(nn,{tag:"span"},o)):null)))}var Kn=n(74305),Zn=n(42308),Un=n(35583),Vn={isHistory:e=>(0,Un.P)(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||Zn.OX.isOperationList(e.redos[0].operations))&&(0===e.undos.length||Zn.OX.isOperationList(e.undos[0].operations))},Gn=(new WeakMap,new WeakMap),Wn=new WeakMap,qn={isHistoryEditor:e=>Vn.isHistory(e.history)&&Zn.ML.isEditor(e),isMerging:e=>Wn.get(e),isSaving:e=>Gn.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=qn.isMerging(e);Wn.set(e,!1),t(),Wn.set(e,n)},withoutSaving(e,t){var n=qn.isSaving(e);Gn.set(e,!1),t(),Gn.set(e,n)}},Hn=(e,t)=>!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Zn.y$.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Zn.y$.equals(e.path,t.path)),$n=(e,t)=>"set_selection"!==e.type,Yn=n(18953),Xn=n.n(Yn);function Jn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qn=new WeakMap,eo=new WeakMap;class to{}class no extends to{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:n}=e;this.offset=t,this.path=n}}class oo extends to{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:n}=e;this.offset=t,this.path=n}}var ro=e=>eo.get(e);function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ao(e){for(var t=1;t{var t=[],n=e=>{if(null!=e){var o=t[t.length-1];if("string"==typeof e){var r={text:e};so.add(r),e=r}if(Zn.xv.isText(e)){var i=e;Zn.xv.isText(o)&&so.has(o)&&so.has(i)&&Zn.xv.equals(o,i,{loose:!0})?o.text+=i.text:t.push(i)}else if(Zn.W_.isElement(e))t.push(e);else{if(!(e instanceof to))throw new Error("Unexpected hyperscript child object: ".concat(e));var a=t[t.length-1];Zn.xv.isText(a)||(n(""),a=t[t.length-1]),e instanceof no?((e,t)=>{var n=e.text.length;Qn.set(e,[n,t])})(a,e):e instanceof oo&&((e,t)=>{var n=e.text.length;eo.set(e,[n,t])})(a,e)}}};for(var o of e.flat(1/0))n(o);return t};function co(e,t,n){return ao(ao({},t),{},{children:lo(n)})}function uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function po(e){for(var t=1;t{var o,r=[];for(var i of n)Zn.e6.isRange(i)?o=i:r.push(i);var a,s=lo(r),l={},c=fo();for(var[u,d]of(Object.assign(c,t),c.children=s,Zn.NB.texts(c))){var p=(a=u,Qn.get(a)),f=ro(u);if(null!=p){var[h]=p;l.anchor={path:d,offset:h}}if(null!=f){var[m]=f;l.focus={path:d,offset:m}}}if(l.anchor&&!l.focus)throw new Error("Slate hyperscript ranges must have both `` and `` defined if one is defined, but you only defined ``. For collapsed selections, use `` instead.");if(!l.anchor&&l.focus)throw new Error("Slate hyperscript ranges must have both `` and `` defined if one is defined, but you only defined ``. For collapsed selections, use `` instead.");return null!=o?c.selection=o:Zn.e6.isRange(l)&&(c.selection=l),c}),element:co,focus:function(e,t,n){return new oo(t)},fragment:function(e,t,n){return lo(n)},selection:function(e,t,n){var o=n.find((e=>e instanceof no)),r=n.find((e=>e instanceof oo));if(!o||null==o.offset||null==o.path)throw new Error("The hyperscript tag must have an tag as a child with `path` and `offset` attributes defined.");if(!r||null==r.offset||null==r.path)throw new Error("The hyperscript tag must have a tag as a child with `path` and `offset` attributes defined.");return ao({anchor:{offset:o.offset,path:o.path},focus:{offset:r.offset,path:r.path}},t)},text:function(e,t,n){var o=lo(n);if(o.length>1)throw new Error("The hyperscript tag must only contain a single node's worth of children.");var[r]=o;if(null==r&&(r={text:""}),!Zn.xv.isText(r))throw new Error("\n The hyperscript tag can only contain text content as children.");return so.delete(r),Object.assign(r,t),r}},mo=e=>function(t,n){for(var o=arguments.length,r=new Array(o>2?o-2:0),i=2;i"));null==n&&(n={}),(0,Un.P)(n)||(r=[n].concat(r),n={});var s=a(t,n,r=r.filter((e=>Boolean(e))).flat());return s},go=e=>{var t={},n=function(n){var o=e[n];if("object"!=typeof o)throw new Error("Properties specified for a hyperscript shorthand should be an object, but for the custom element <".concat(n,"> tag you passed: ").concat(o));t[n]=(e,t,n)=>co(0,po(po({},o),t),n)};for(var o in e)n(o);return t},vo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{elements:t={}}=e,n=go(t),o=po(po(po({},ho),n),e.creators),r=mo(o);return r}();const yo=/["'&<>]/;function bo(e){const t=""+e,n=yo.exec(t);if(!n)return t;let o,r="",i=0,a=0;for(i=n.index;iEo(e,n))).flat();switch(0===o.length&&o.push(vo("text",n,"")),e.nodeName.toUpperCase()){case"BR":return vo("text",t,"\n");case"SPAN":{const t=function(e){return"SPAN"===e.nodeName.toUpperCase()&&e.getAttribute("data-user-id")}(e);if(t)return vo("element",{type:"mention",userId:t,displayName:Ao(Po(o))},o);if(function(e){return"SPAN"===e.nodeName.toUpperCase()&&e.getAttribute("style")}(e)&&!function(e){return"underline"===e.style.textDecoration&&!e.style.color&&!e.style.backgroundColor}(e)){const t=xo(e.getAttribute("style")||""),n=t.color?zo(t.color):void 0,r=t["background-color"]?zo(t["background-color"]):void 0;return vo("element",{type:"style",fontColor:n,backgroundColor:r},o)}return o}case"P":return vo("element",{type:"paragraph"},o);case"A":return vo("element",{type:"link",url:e.getAttribute("href")},o);default:return o}}function Po(e){function t(e){var t;if(function(e){return Zn.xv.isText(e)}(e)){let t=bo(e.text);return e.bold&&(t=`${t}`),e.italic&&(t=`${t}`),e.underline&&(t=`${t}`),t}const n=null===(t=e.children)||void 0===t?void 0:t.map((e=>Po(e))).join("");switch(e.type){case"paragraph":return`

${n}

`;case"link":return`${n}`;case"mention":return`${e.displayName}`;case"style":{const t=Do(e);return`${n}`}default:return n}}return Array.isArray(e)?e.map((e=>t(e))).join(""):t(e)}function xo(e){return e?((e=e.trim()).endsWith(";")&&(e=e.slice(0,-1)),e.split(";").map((e=>e.split(":").map((e=>e.trim())))).reduce(((e,t)=>{let[n,o]=t;return So(So({},e),{},{[n]:o})}),{})):{}}function Do(e){let t="";return e.fontColor&&(t+=`color: ${e.fontColor};`),e.backgroundColor&&(t+=`background-color: ${e.backgroundColor};`),t}function Co(e,t){const n=Zn.ML.marks(e);return!!n&&!0===n[t]}const ko=(e,t)=>{Co(e,t)?Zn.ML.removeMark(e,t):Zn.ML.addMark(e,t,!0)};function Ao(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||""}function Oo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(new DOMParser).parseFromString(e,"text/html")}function To(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=(e||"").match(/(<[^<>]+>)/g)||[],n={pre:[],post:[]};return t.forEach((e=>{if(e.startsWith("");e.startsWith(""))})),n}function Io(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Oo(e).body.innerHTML}function Fo(e){let{changeUnderlineCSStoHTML:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Oo(e).body;if(0===n.childNodes.length){const e=document.createElement("p");return n.appendChild(e),n}const o=document.createElement("body");let r=[];return[...n.childNodes].forEach(((e,t)=>{const i=n.childNodes.length-1===t;if("P"===e.nodeName.toUpperCase()||i){if(i&&"P"!==e.nodeName.toUpperCase()&&r.push(e),r.length){const e=document.createElement("p");r.forEach((t=>{e.appendChild(t)})),o.appendChild(e),r=[]}"P"===e.nodeName.toUpperCase()&&o.appendChild(e)}else r.push(e)})),o.childNodes.forEach((e=>{var n,o,r,i,a,s;(null===(n=(o=e).querySelectorAll)||void 0===n||n.call(o,"p").forEach((e=>{const t=document.createElement("span");e.style.cssText&&t.setAttribute("style",e.style.cssText),t.innerHTML=e.innerHTML,e.replaceWith(t)})),null===(r=(i=e).querySelectorAll)||void 0===r||r.call(i,"div").forEach((e=>{const t=document.createElement("span");e.style.cssText&&t.setAttribute("style",e.style.cssText),t.innerHTML=e.innerHTML,e.replaceWith(t)})),t)&&(null===(a=(s=e).querySelectorAll)||void 0===a||a.call(s,"span").forEach((e=>{if("underline"===e.style.textDecoration){const t=document.createElement("u");t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML,e.style.textDecoration="",e.style.cssText||(e.removeAttribute("style"),e.attributes.length||e.replaceWith(...e.childNodes))}})))})),o}function Mo(e){if(!e)return!1;const{selection:t}=e;return!!t&&Zn.e6.isExpanded(t)&&""!==Zn.ML.string(e,t)}function _o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const{selection:n}=e;if(n){const[o]=Zn.e6.edges(n),r=Zn.ML.before(e,o,{distance:t,unit:"character"}),i=r&&Zn.ML.range(e,r,o);return{text:i&&Zn.ML.string(e,i),range:i}}return null}function Ro(e){return e&&(" "===e.text||!e.range)}function No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Lo(e){for(var t=1;t{let[,t]=e;return void 0!==t})).map((e=>{let[t,n]=e;return`${t}: ${n}`})).join("; ").concat(";")}function jo(e,t,n){const o=Fo(e,{changeUnderlineCSStoHTML:!1});function r(e){var t;const n=null===(t=e.closest("p"))||void 0===t?void 0:t.textContent;return e.textContent===n&&!e.closest("span[style]")}return o.querySelectorAll("p").forEach((e=>{const{isBold:o,isUnderlined:i,isItalic:a}=Ko(e);if("fontColor"===t){let t=!1;if(e.querySelectorAll("span[style]").forEach((e=>{r(e)?(t=!0,e.setAttribute("style",Bo(e,"fontColor",n))):(e.style.color="",""===e.style.cssText&&e.replaceWith(...e.childNodes))})),!t){const t=document.createElement("span");t.setAttribute("style",Bo(t,"fontColor",n)),t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML}}else if("underline"===t){const t=e.querySelectorAll("span[style]");if(i)t.forEach((e=>{e.style.textDecoration=""}));else{let n=!1;if(t.forEach((e=>{r(e)&&(n=!0,e.style.textDecoration="underline")})),!n){const t=document.createElement("span");t.style.textDecoration="underline",t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML}}t.forEach((e=>{r(e)?e.style.textDecoration=i?"":"underline":(e.style.textDecoration="",""===e.style.cssText&&e.replaceWith(...e.childNodes))}))}else if("bold"===t){const t=e.querySelectorAll("b");if(o)t.forEach((e=>{e.replaceWith(...e.childNodes)}));else{const t=document.createElement("b");t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML}}else if("italic"===t){const t=e.querySelectorAll("i, em");if(a)t.forEach((e=>{e.replaceWith(...e.childNodes)}));else{const t=document.createElement("i");t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML}}})),o.innerHTML}function zo(e){if(!e)return"";if(e.startsWith("rgb")){return`#${e.replace("rgb(","").replace(")","").split(",").map((e=>parseInt(e,10))).map((e=>e.toString(16))).map((e=>1===e.length?`0${e}`:e)).join("")}`}return e.startsWith("#")&&9===e.length?`#${e.substr(3,6)}`:7===e.length&&e.startsWith("#")?e:"#000000"}function Ko(e){const t=e.querySelectorAll("span[style]"),n=Array.from(t).filter((t=>t.textContent===e.textContent)),o=n.filter((e=>e.style.color)),r=n.filter((e=>e.style.backgroundColor)),i=n.filter((e=>"underline"===e.style.textDecoration)),a=e.querySelectorAll("b"),s=Array.from(a).filter((t=>t.textContent===e.textContent)),l=e.querySelectorAll("i, em"),c=Array.from(l).filter((t=>t.textContent===e.textContent));return{fontColor:o.length>0?zo(o[o.length-1].style.color):null,backgroundColor:r.length>0?zo(r[r.length-1].style.backgroundColor):null,isUnderlined:i.length>0,isBold:s.length>0,isItalic:c.length>0}}function Zo(e){const t=Fo(e,{changeUnderlineCSStoHTML:!1}).querySelectorAll("p"),n=Array.from(t).map((e=>Ko(e)));return{fontColor:n.every((e=>{let{fontColor:t}=e;return t&&t===n[0].fontColor}))?n[0].fontColor:null,isUnderlined:n.every((e=>{let{isUnderlined:t}=e;return t&&t===n[0].isUnderlined})),isBold:n.every((e=>{let{isBold:t}=e;return t&&t===n[0].isBold})),isItalic:n.every((e=>{let{isItalic:t}=e;return t&&t===n[0].isItalic})),backgroundColor:n.every((e=>{let{backgroundColor:t}=e;return t&&t===n[0].backgroundColor}))?n[0].backgroundColor:null}}function Uo(e,t){var n;const{selection:o}=e;if(!o)return;const[...r]=Array.from(Zn.ML.nodes(e,{at:Zn.ML.unhangRange(e,o),match:e=>!Zn.ML.isEditor(e)&&Vo(e)})),i=r.map((e=>{let[t]=e;return t}));if(!i)return;const a=i.map((e=>zo(e[t])));return 1===new Set(a).size&&null!==(n=a[0])&&void 0!==n?n:void 0}function Vo(e){return"style"===e.type}function Go(e,t){const{selection:n}=e;n&&Zn.e6.isCollapsed(n)?Zn.YR.insertNodes(e,t):(Zn.YR.wrapNodes(e,t,{split:!0}),Zn.YR.collapse(e,{edge:"end"}))}function Wo(e,t){Zn.YR.unwrapNodes(e,{match:e=>!Zn.ML.isEditor(e)&&Zn.W_.isElement(e)&&e.type===t})}function qo(e,t,n){(0,Nt.kG)(e,"Editor is not defined.");const[o]=Zn.ML.nodes(e,{match:e=>!Zn.ML.isEditor(e)&&Zn.W_.isElement(e)&&Vo(e)});o?Zn.YR.setNodes(e,{[t]:n},{match:e=>Vo(e),split:!0}):Go(e,{type:"style",[t]:n,children:[{text:""}]})}function Ho(e){var t;const{selection:n}=e;if(!n)return!1;const[...o]=Array.from(Zn.ML.nodes(e,{at:Zn.ML.unhangRange(e,n),match:e=>!Zn.ML.isEditor(e)&&Vo(e)})),r=o.map((e=>{let[t]=e;return t}));return!(null==r||null===(t=r[0])||void 0===t||!t.underline)}function $o(e){return"mention"===e.type}var Yo,Xo;const Jo="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),Qo="undefined"!=typeof navigator&&/Chrome/.test(navigator.userAgent),er=a.forwardRef(((e,t)=>{let{text:n,style:o,updateBoundingBox:r,onValueChange:i,onBlurSave:s,maxLength:c,onStopEditing:u,onEscape:d,lastMousePoint:p,onEditorInit:f,className:h,placeholder:m,onBlur:g,autoFocus:v=!0,onSelectionChange:y,autoOpenKeyboard:b=!0,onKeyDown:w,title:S="Rich text editor"}=e;const{value:E,wrapperTags:P}=(0,a.useMemo)((()=>({wrapperTags:To(n),value:Io(n)})),[n]),x=(0,a.useRef)(null),D=a.useRef(E),C=(0,a.useMemo)((()=>(e=>{const{insertData:t,isInline:n,markableVoid:o,isVoid:r}=e;return e.isInline=e=>"link"===e.type||$o(e)||"style"===e.type||n(e),e.isVoid=e=>$o(e)||r(e),e.markableVoid=e=>$o(e)||o(e),e.insertData=n=>{try{const o=n.getData("text/html");if(o){const t=Eo(Fo(o));return void Zn.YR.insertFragment(e,t)}t(n)}catch(e){}},e})((e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var o=n[n.length-1];o.selectionBefore&&Zn.YR.setSelection(t,o.selectionBefore),qn.withoutSaving(t,(()=>{Zn.ML.withoutNormalizing(t,(()=>{for(var e of o.operations)t.apply(e)}))})),e.redos.pop(),e.undos.push(o)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var o=n[n.length-1];qn.withoutSaving(t,(()=>{Zn.ML.withoutNormalizing(t,(()=>{var e=o.operations.map(Zn.OX.inverse).reverse();for(var n of e)t.apply(n);o.selectionBefore&&Zn.YR.setSelection(t,o.selectionBefore)}))})),e.redos.push(o),e.undos.pop()}},t.apply=e=>{var{operations:o,history:r}=t,{undos:i}=r,a=i[i.length-1],s=a&&a.operations[a.operations.length-1],l=qn.isSaving(t),c=qn.isMerging(t);if(null==l&&(l=$n(e)),l){if(null==c&&(c=null!=a&&(0!==o.length||Hn(e,s))),a&&c)a.operations.push(e);else{var u={operations:[e],selectionBefore:t.selection};i.push(u)}for(;i.length>100;)i.shift();r.redos=[]}n(e)},t})((0,Kn.BU)((0,Zn.Jh)())))),[]),k=(0,a.useCallback)((e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}),[]);(0,a.useEffect)((()=>{const e=x.current;function t(t){null!=e&&e.contains(t.target)||null==s||s()}return null==e||e.ownerDocument.addEventListener("pointerdown",t,{capture:!0}),Zn.YR.select(C,Zn.ML.end(C,[])),()=>{null==e||e.ownerDocument.removeEventListener("pointerdown",t,{capture:!0})}}),[C,s]);const A=(0,a.useMemo)((()=>Eo(Fo(E))),[E]),O=(0,a.useCallback)((e=>a.createElement(or,e)),[]),T=(0,a.useCallback)((e=>a.createElement(tr,e)),[]);(0,a.useEffect)((()=>(null==f||f(C),()=>{null==f||f(null)})),[C,f]),(0,a.useEffect)((()=>{v&&(Kn.F3.focus(C),setTimeout((()=>{Kn.F3.blur(C),Kn.F3.focus(C),b||Kn.F3.blur(C)}),0))}),[b]),(0,a.useEffect)((()=>{setTimeout((()=>{if(p&&x.current){const e=(0,Nt.Qo)(p,x.current.ownerDocument);if(!e)return;const t=Kn.F3.toSlatePoint(C,[e.startContainer,e.startOffset],{exactMatch:!0,suppressThrow:!0});t&&Zn.YR.select(C,t)}}),0)}),[C,p,t]);const I=(0,a.useCallback)((e=>{if("Escape"!==e.key)return"Enter"===e.key&&e.shiftKey?(null==u||u(),void e.preventDefault()):void(c&&Ao(D.current).length>=c&&e.preventDefault());null==d||d(e)}),[c,d,u]),F=(0,a.useCallback)((()=>{const{selection:e}=C;if(e&&Zn.e6.isCollapsed(e)){var t,n,o;const[i]=Zn.e6.edges(e),a=_o(C,2);if((null!=a&&null!==(t=a.text)&&void 0!==t&&t.startsWith(" ")||1===(null==a||null===(n=a.text)||void 0===n?void 0:n.length))&&null!=a&&null!==(o=a.text)&&void 0!==o&&o.endsWith("@")){var r;(0,Nt.kG)(a,"lastTwoCharacters should be defined");const e=null===(r=_o(C))||void 0===r?void 0:r.range;return e?{query:"",target:e}:null}{const e=Zn.ML.before(C,i,{unit:"word"}),t=e&&Zn.ML.before(C,e),n=t&&Zn.ML.range(C,t,i),o=n&&Zn.ML.string(C,n),r=o&&o.match(/^@(\w+)$/),a=Zn.ML.after(C,i),s=Zn.ML.range(C,i,a),l=Zn.ML.string(C,s).match(/^(\s|$)/);return r&&l&&n?{query:r[1],target:n}:null}}return null}),[C]),M=(0,a.useCallback)((e=>{var t;C.operations.every((e=>"set_selection"===e.type))&&(null==y||y(),"onSelectionChange"in C&&"function"==typeof C.onSelectionChange&&C.onSelectionChange());const n=e.map((e=>Po(e))).join("");D.current=n,i(`${P.pre.join("")}${n}${P.post.join("")}`,{activeMention:null!==(t=F())&&void 0!==t?t:null}),null==r||r(),"onValueChange"in C&&"function"==typeof C.onValueChange&&C.onValueChange(n)}),[i,r,P,C,y,F]);return a.createElement("div",{role:"presentation",className:l()(Xn().richTextEditor,"PSPDFKit-Rich-Text-Editor",h),style:o,ref:(0,Nt.FE)(t,x),onBlur:()=>{null==s||s(),null==g||g()},onDragStart:k,onDragEnd:k,onKeyUp:k,onMouseDown:k,onPointerUp:k,onTouchStart:k,onTouchEnd:k,onMouseUp:k},a.createElement(Kn.mH,{onChange:M,editor:C,value:A},a.createElement(Kn.CX,{title:S,placeholder:m,renderLeaf:T,renderElement:O,onInput:r,className:Xn().wrapper,onKeyDown:e=>{w?w(e):(I(e),(e.metaKey||e.ctrlKey)&&"b"===e.key?(e.preventDefault(),ko(C,"bold")):(e.metaKey||e.ctrlKey)&&"i"===e.key?(e.preventDefault(),ko(C,"italic")):(e.metaKey||e.ctrlKey)&&"u"===e.key&&(e.preventDefault(),ko(C,"underline")),Jo&&!Kn.F3.isComposing(C)&&setTimeout(C.onChange,10))}})))})),tr=e=>{let{attributes:t,children:n,leaf:o}=e;return o.bold&&(n=a.createElement("strong",null,n)),o.italic&&(n=a.createElement("em",null,n)),o.underline&&(n=a.createElement("u",null,n)),a.createElement("span",t,n)},nr=()=>a.createElement("span",{contentEditable:!1,style:{fontSize:0}},"$",String.fromCodePoint(160)),or=e=>{const{attributes:t,children:n,element:o}=e;switch(o.type){case"link":return a.createElement("a",(0,r.Z)({},t,{href:o.url}),Yo||(Yo=a.createElement(nr,null)),n,Xo||(Xo=a.createElement(nr,null)));case"mention":return a.createElement("span",(0,r.Z)({},t,{contentEditable:Qo?void 0:t.contentEditable,"data-user-id":o.userId}),n,"@",o.displayName);case"style":return a.createElement("span",(0,r.Z)({},t,{style:{color:o.fontColor,backgroundColor:o.backgroundColor}}),n);default:return a.createElement("p",t,n)}};var rr=n(87360),ir=n.n(rr),ar=n(54941);const sr=["onMention","users","onValueChange","mentionDropdownClassName","mentionListRenderer","mentionListClassName","onEditorInit","maxMentionSuggestions","onMentionSuggestionsOpenChange"],lr=a.forwardRef(((e,t)=>{let{onMention:n,users:o,onValueChange:s,mentionDropdownClassName:l,mentionListRenderer:c,mentionListClassName:u,onEditorInit:d,maxMentionSuggestions:p=5,onMentionSuggestionsOpenChange:f}=e,h=(0,i.Z)(e,sr);const[m,g]=a.useState([]),[v,y]=(0,a.useState)(null),b=(0,a.useRef)(null),[w,S]=(0,a.useState)(null),[E,P]=(0,a.useState)(0),x=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,(()=>({startMention:()=>{const e=b.current;(0,Nt.kG)(e,"Editor ref is not set");const t=_o(e,1);Zn.YR.insertText(e,Ro(t)?"@":" @"),Kn.F3.focus(e)}})));const D=(0,a.useCallback)((e=>{null==n||n(e);const t={userId:e.id,displayName:e.displayName||e.name,children:[{text:""}],type:"mention"};(0,Nt.kG)(b.current,"Editor ref is not set"),(0,Nt.kG)(v,"Target is not set"),Zn.YR.select(b.current,v),Zn.YR.insertNodes(b.current,t),Zn.YR.move(b.current),Zn.YR.insertText(b.current," "),P(0),g([]),y(null)}),[n,v]),C=(0,a.useCallback)((e=>{null==d||d(e),b.current=e}),[d]),k=(0,a.useCallback)((e=>{"ArrowDown"===e.key?(e.preventDefault(),P((e=>(e+1)%m.length))):"ArrowUp"===e.key?(e.preventDefault(),P((e=>(e-1+m.length)%m.length))):"Enter"===e.key?(e.preventDefault(),D(m[E])):"Escape"===e.key&&(e.preventDefault(),P(0),g([]),y(null))}),[m,E,D,v]);(0,a.useEffect)((()=>{if(x.current){const e=x.current.querySelector('[data-highlighted="true"]');e&&e.scrollIntoView({block:"nearest"})}}),[E]);const A=!(!v||!m.length);return(0,a.useEffect)((()=>{null==f||f(A)}),[f,A]),a.createElement(ar.fC,{modal:!1,open:A},a.createElement(ar.xz,{asChild:!0},a.createElement(er,(0,r.Z)({},h,{onValueChange:function(e,t){var n;null==s||s(e,t);const{activeMention:r}=t;if(y(null!==(n=null==r?void 0:r.target)&&void 0!==n?n:null),r)if(r.query.length){const e=ir().go(r.query,o,{keys:["name","displayName","description"]});g(e.slice(0,p).map((e=>e.obj)))}else g(o.slice(0,p));else g([]);P(0)},onEditorInit:C,ref:e=>{var t,n;e&&S(null!==(t=null===(n=e.ownerDocument)||void 0===n?void 0:n.body)&&void 0!==t?t:null)},onKeyDown:A?k:void 0}))),a.createElement(ar.h_,{container:w},a.createElement(ar.VY,{onOpenAutoFocus:e=>e.preventDefault(),className:l,role:"menu",ref:x,onInteractOutside:()=>{g([]),y(null)}},m.map(((e,t)=>a.createElement("div",{role:"menuitem",tabIndex:t===E?0:-1,"data-highlighted":t===E,key:e.id,className:u,onClick:()=>{D(e)},onMouseEnter:()=>P(t)},(null==c?void 0:c(e))||a.createElement("div",null,e.name)))))))}));var cr=n(12921),ur=n(12704),dr=n.n(ur),pr=n(11149),fr=n.n(pr);function hr(e){let{label:t,trigger:n,items:o,container:r=document.body,alignContent:i="center",className:s}=e;return a.createElement("div",{className:l()(fr().wrapper,s)},a.createElement(cr.fC,null,a.createElement(cr.xz,{asChild:!0},a.createElement("button",{className:fr().trigger,"aria-label":t},n||a.createElement(Mn.Z,{src:dr(),className:fr().triggerIcon}))),a.createElement(cr.Uv,{container:r},a.createElement(cr.VY,{className:fr().content,align:i},o.map(((e,t)=>(0,a.isValidElement)(e)?a.createElement(a.Fragment,{key:t},e):a.createElement(cr.ck,{key:t,className:fr().item,onSelect:e.onClick},e.content,e.helperText&&a.createElement("div",{className:fr().itemHelperText},e.helperText))))))))}function mr(e){let{checked:t,onCheckedChange:o,children:r}=e;return a.createElement(cr.oC,{className:l()(fr().item,fr().checkboxItem),checked:t,onCheckedChange:o},t&&a.createElement(Mn.Z,{src:n(70190),className:fr().itemCheckmark}),a.createElement("span",null,r))}const gr=function(){return a.createElement("div",{role:"separator",className:fr().separatorItem})}},74855:(e,t,n)=>{"use strict";n.d(t,{default:()=>rD});var o=n(84121),r=n(17375);n(41817),n(72443),n(69007),n(83510),n(41840),n(32159),n(84944),n(86535),n(2707),n(33792),n(99244),n(61874),n(9494),n(56977),n(19601),n(38559),n(54678),n(91058),n(88674),n(17727),n(83593),n(24603),n(74916),n(92087),n(39714),n(27852),n(32023),n(4723),n(15306),n(64765),n(23123),n(23157),n(48702),n(55674),n(33105),n(3462),n(33824),n(12974),n(4129),n(33948),n(84633),n(85844),n(60285),n(83753),n(41637),n(94301);"object"==typeof window&&(window._babelPolyfill=!1);var i=n(35369),a=n(50974),s=n(15973),l=(n(75376),n(59780)),c=n(89335),u=n(3845),d=n(1053),p=n(83634),f=n(74985),h=n(19209),m=n(18509),g=n(19419),v=n(65338),y=n(34426),b=n(11863),w=n(39745),S=n(76192),E=n(26248),P=n(13997),x=n(20792),D=n(52842),C=n(77973),k=n(67665),A=n(67366),O=n(73935),T=n(67294),I=n(94184),F=n.n(I),M=n(46797),_=n(75920),R=n(87153),N=n.n(R),L=(n(17938),n(71984)),B=n(88804),j=n(82481),z=n(97333),K=n(40230);function Z(e){return function(t){var n=t.dispatch,o=t.getState;return function(t){return function(r){return"function"==typeof r?r(n,o,e):t(r)}}}}var U=Z();U.withExtraArgument=Z;const V=U;n(94500);var G=n(30570),W=n(79827),q=n(36489),H=n(80857),$=n(72584);const Y=(0,H.Z)("MeasurementValueConfiguration");function X(e){let t=!1;e.forEach(((n,o)=>{var r;r=n,Y((0,a.PO)(r)&&!!r,"Expected item to be an object"),Y((0,a.PO)(r.scale)&&!!r.scale,"Expected scale to be an object"),Y(void 0!==r.scale.unitFrom&&Object.values(q.s).includes(r.scale.unitFrom),`Scale ${r.name} does not have a valid 'unitFrom' value.`),Y(void 0!==r.scale.unitTo&&Object.values(W.K).includes(r.scale.unitTo),`Scale ${r.name} does not have a valid 'unitTo' value.`),Y(void 0!==r.scale.fromValue&&(0,$.hj)(Number(r.scale.fromValue)),`Scale ${r.name} does not have a valid 'fromValue' value.`),Y(void 0!==r.scale.toValue&&(0,$.hj)(Number(r.scale.toValue)),`Scale ${r.name} does not have a valid 'toValue' value.`),Y("string"==typeof r.precision||void 0===r.precision,"`measurementValueConfiguration.measurementPrecision` must be a string.");for(let t=o+1;te.withMutations((e=>{t.annotations.forEach((t=>{(0,J.ud)(e,t)}))})),[te.ILc]:(e,t)=>{const n=t.annotation.withMutations((n=>n.merge((0,J.lx)(e)).set("pageIndex",t.pageIndex)));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,i.l4)([n.id])),e.set("interactionMode",x.A.INK),e.set("selectedAnnotationMode",Q.o.EDITING),(0,J.ud)(e,n)}))},[te.RPc]:(e,t)=>e.set("inkEraserCursorWidth",t.lineWidth),[te.HS7]:(e,t)=>{const n=t.annotation.withMutations((n=>n.merge((0,J.lx)(e)).set("pageIndex",t.pageIndex)));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,i.l4)([n.id])),e.set("interactionMode",(0,ee.R4)(t.annotation.constructor)),e.set("selectedAnnotationMode",Q.o.EDITING),(0,J.ud)(e,n)}))},[te.jzI]:(e,t)=>{const n=t.annotation.withMutations((n=>n.merge((0,J.lx)(e)).set("pageIndex",t.pageIndex)));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,i.l4)([n.id])),e.set("interactionMode",x.A.REDACT_SHAPE_RECTANGLE),e.set("selectedAnnotationMode",Q.o.EDITING),(0,J.ud)(e,n)}))},[te.oE1]:(e,t)=>{let{attributes:n}=t;const{currentItemPreset:o}=e;return o?e.hasIn(["annotationPresets"],o)?e.mergeIn(["annotationPresets",o],n):e.setIn(["annotationPresets",o],n):e},[te.oWy]:(e,t)=>{let{currentItemPreset:n}=t;return e.set("currentItemPreset",n)},[te.UiQ]:(e,t)=>{let{annotationPresets:n}=t;return e.set("annotationPresets",n)},[te.R1i]:(e,t)=>{let{annotationID:n,annotationPresetID:o}=t;return e.setIn(["annotationPresetIds",n],o)},[te.x0v]:(e,t)=>{let{annotationID:n}=t;return e.delete("annotationPresetIds",n)},[te.JwD]:(e,t)=>{let{annotationID:n}=t;const o=e.annotationPresetIds.has(n)?e.annotationPresetIds.get(n):(0,J.X5)(e,n);return e.set("currentItemPreset",o)},[te.R8P]:(e,t)=>e.withMutations((e=>{t.annotations.forEach((t=>{(0,J._E)(e,t)}))})),[te.gF5]:(e,t)=>e.withMutations((e=>{t.ids.forEach((t=>{(0,J.Dl)(e,t)}))})),[te.sCM]:(e,t)=>{let{annotationsIDs:n}=t;return e.set("annotationsIdsToDelete",n)},[te.qRJ]:(e,t)=>{let{stampAnnotationTemplates:n}=t;return e.set("stampAnnotationTemplates",n)},[te.WaW]:(e,t)=>e.set("collapseSelectedNoteContent",t.value),[te.ieh]:(e,t)=>e.withMutations((e=>{t.ids.forEach(((t,n)=>{e.invalidAPStreams.get(t)||e.set("invalidAPStreams",e.invalidAPStreams.set(t,(0,i.l4)()));const o=e.invalidAPStreams.get(t);o&&e.set("invalidAPStreams",e.invalidAPStreams.set(t,o.add(n)))}))})),[te.kVz]:(e,t)=>e.withMutations((e=>{t.ids.forEach(((t,n)=>{e.invalidAPStreams.get(t)&&e.deleteIn(["invalidAPStreams",t],n)}))})),[te.hw0]:(e,t)=>e.set("onAnnotationResizeStart",t.callback),[te.$8O]:(e,t)=>{let{measurementToolState:n}=t;return e.set("measurementToolState",n?oe(oe({},e.measurementToolState),n):null)},[te.UP4]:(e,t)=>{let{hintLines:n}=t;return e.set("hintLines",n)},[te.vkF]:(e,t)=>{let{configurationCallback:n}=t;return e.set("measurementValueConfiguration",n)},[te.SdX]:(e,t)=>{var n,o;let{scales:r}=t;const i=null!==(n=null===(o=e.measurementValueConfiguration)||void 0===o?void 0:o.call(e,r))&&void 0!==n?n:r;i&&X(i);const a=e.activeMeasurementScale||i.find((e=>e.selected))||i[0];return e.withMutations((e=>{e.set("measurementScales",i),a&&e.set("activeMeasurementScale",a)}))},[te.Zt9]:(e,t)=>e.set("secondaryMeasurementUnit",t.secondaryMeasurementUnit),[te.VNu]:(e,t)=>e.set("activeMeasurementScale",t.activeMeasurementScale),[te.wgG]:(e,t)=>e.set("isCalibratingScale",t.isCalibratingScale),[te.Dqw]:(e,t)=>e.withMutations((e=>{"down"===t.variant?e.updateIn(["APStreamVariantsDown"],(e=>e.concat(t.annotationObjectIds))):"rollover"===t.variant&&e.updateIn(["APStreamVariantsRollover"],(e=>e.concat(t.annotationObjectIds)))})),[te.uOP]:(e,t)=>e.set("widgetAnnotationToFocus",t.annotationId)};function ae(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re,t=arguments.length>1?arguments[1]:void 0;const n=ie[t.type];return n?n(e,t):e}const se=new j.ZM,le={[te.huI]:(e,t)=>{const{hash:n,attachment:o}=t;return e.setIn(["attachments",n],o)}};function ce(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:se,t=arguments.length>1?arguments[1]:void 0;const n=le[t.type];return n?n(e,t):e}var ue=n(25915),de=n(27515),pe=n(18146),fe=n(75237),he=n(79941),me=n(49027),ge=n(60132),ve=n(72131);function ye(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function we(e){for(var t=1;t()=>{};function Ee(){const e=T.createContext(Se);class t extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"state",{instances:{}}),(0,o.Z)(this,"refCreator",((e,t,n)=>o=>{this.setState((r=>{let{instances:i}=r;const a=i[e]||{node:null,portalTarget:document.createElement("div"),target:null};return n&&(a.portalTarget.className=n),a.portalTarget.parentNode!==o&&o&&o.appendChild(a.portalTarget),a.node===t&&a.target===o?null:{instances:we(we({},i),{},{[e]:we(we({},a),{},{node:t,target:o})})}}),(()=>{if(null===o){null===this.state.instances[e].target&&this.setState((t=>{let{instances:n}=t;const{[e]:o}=n;return{instances:(0,r.Z)(n,[e].map(ye))}}))}}))}))}render(){const t=Object.entries(this.state.instances).map((e=>{let[t,{node:n,portalTarget:o}]=e;return O.createPortal(void 0===n?null:n,o,t)}));return T.createElement(e.Provider,{value:this.refCreator},this.props.children,t)}}return{Provider:t,Reparent:function(t){let{id:n,children:o,className:r}=t;return T.createElement(e.Consumer,null,(e=>T.createElement("div",{ref:e(n,o,r)})))}}}const Pe=Ee(),xe=Ee();Ee();var De=n(22122);function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ke(e){for(var t=1;t{if(a&&n&&n!==a.firstChild){for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(n)}return()=>{const e=l.current;e&&e(n)}}),[n,a]),T.useLayoutEffect((()=>{l.current=i}),[i]),T.createElement("div",{style:{position:"relative"}},t&&o,n&&T.createElement("div",{ref:s,style:r}))}function Oe(e,t){return!e&&!t}const Te={node:"object",append:"boolean",noZoom:"boolean",onDisappear:"function"};const Ie=(0,A.$j)((e=>({customRenderers:e.customRenderers})))((function(e){const{children:t,customRenderers:n,renderer:o,zoomLevel:r,notCSSScaled:i=!1}=e;if(!n||!n[o])return t;const s=T.Children.only(t),l=s.props,c=Fe[o],u=n[o];(0,a.kG)(null!=u);const d=u(c(l));if(!d)return t;!function(e){(0,a.kG)(e.node,"Custom renderers must return an object with a node property.");for(const t in e)e.hasOwnProperty(t)&&((0,a.kG)(void 0!==Te[t],`Render configuration '${t}' property is not supported`),(0,a.kG)(typeof e[t]===Te[t],`Render configuration ${t} property has wrong '${typeof e[t]}' type, should be '${Te[t]}'`))}(d);const{node:p,append:f,noZoom:h=!1,onDisappear:m}=d,g=Me[o];(0,a.kG)("boolean"==typeof h);const v=ke({pointerEvents:f?"none":"all"},g?g(l,h,i,r):null);return T.createElement(Ae,{node:p,append:f,onDisappear:m,rendererStyles:v},s)})),Fe={Annotation:e=>({annotation:e.annotation}),CommentAvatar:e=>({comment:e.comment})},Me={Annotation:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(e&&e.annotation&&e.annotation.boundingBox){const{left:r,top:i,width:a,height:s}=e.annotation.boundingBox;return ke({position:"absolute",left:r*o,top:i*o,width:n?a*o:a,height:n?s*o:s},Oe(t,n)?{transform:`scale(${o})`,transformOrigin:"0 0"}:null)}return{}},CommentAvatar:null};var _e=n(18390),Re=n(76154),Ne=n(97413);function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}class Be extends T.PureComponent{render(){const{applyZoom:e,children:t,position:n,zoomLevel:r,noRotate:i,currentPagesRotation:a,disablePointerEvents:s,additionalStyle:l={},isMultiAnnotationsSelected:c}=this.props;(0,Ne.k)(!i||"number"==typeof a);const u=(e?`scale(${r}) `:"")+(i?`rotate(-${String(a)}deg)`:""),d=function(e){for(var t=1;t{e.isPrimary&&(!this.props.isReadOnly&&e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null))})),(0,o.Z)(this,"_handlePress",((e,t)=>{this.props.dispatch((0,je.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0,ignoreReadOnly:!0}))})),(0,o.Z)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,o.Z)(this,"_onFocus",(e=>{this.props.onFocus&&this.props.onFocus(this.props.annotation,e)})),(0,o.Z)(this,"_onBlur",(e=>{this.props.onBlur&&this.props.onBlur(this.props.annotation,e)}))}render(){const{annotation:e,zoomLevel:t,rotation:n,active:o,intl:{formatMessage:r}}=this.props,{width:i,height:a}=e.boundingBox,s=this.props.isReadOnly?{onPointerUp:this._onPointerDownUp}:{onPointerDown:this._onPointerDownUp},l=F()("PSPDFKit-Annotation","PSPDFKit-Comment-Marker-Annotation",o&&!this.props.isDisabled&&"PSPDFKit-Annotation-Selected",o&&!this.props.isDisabled&&"PSPDFKit-Comment-Marker-Annotation-Selected",Ve().annotation);return T.createElement(Be,{position:e.boundingBox.getLocation(),zoomLevel:t,currentPagesRotation:n,noRotate:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},T.createElement(_e.Z,(0,De.Z)({},s,{onClick:this._handleClick,onFocus:this._onFocus,onBlur:this._onBlur,disabled:this.props.isDisabled,style:{width:i,height:a,transformOrigin:"top left",transform:`translate(${i*t/2-i/2}px, ${a*t/2-a/2}px)`},className:l,"data-annotation-id":e.id,"aria-controls":`CommentThread-${e.id}`,"aria-label":`${r(Ke.Z.annotation)}: ${r(Ke.Z.comment)}`}),T.createElement(Ze.Z,{style:{width:20,height:20},className:F()(Ve().icon,o&&Ve().iconActive),type:"comment-indicator"})))}}const We=(0,Re.XN)(Ge,{forwardRef:!0});var qe,He=n(45588),$e=n(86366),Ye=n(13540),Xe=n(73264),Je=n(91859),Qe=n(58054),et=n.n(Qe),tt=n(36095),nt=n(16126),ot=n(75669),rt=n(92606),it=n.n(rt);function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function st(e){for(var t=1;t{e&&!this._fetchImageComponentInstance&&(this._fetchImageComponentInstance=e)})),(0,o.Z)(this,"_fetchImageComponentInstance",null),(0,o.Z)(this,"state",{loadingState:"LOADING",showLoadingIndicator:!1,renderedAnnotation:null}),(0,o.Z)(this,"_fetchImage",(()=>{const{backend:e,attachment:t,zoomLevel:n,isDetachedAnnotation:o}=this.props;let r=this.props.annotation;return o&&(r=r.update("boundingBox",(e=>null==e?void 0:e.set("left",0).set("top",0)))),(0,He.an)({backend:e,blob:null==t?void 0:t.data,annotation:r,isDetachedAnnotation:Boolean(o),zoomLevel:n,variant:this.props.variant})})),(0,o.Z)(this,"_renderFinished",(()=>{var e,t;this.isAlive&&(this.props.annotation instanceof j.GI&&this.setState({renderedAnnotation:this.props.annotation}),this._shouldShowIndicators&&this.setState({loadingState:"LOADED"}),null===(e=(t=this.props).onRenderFinished)||void 0===e||e.call(t))})),(0,o.Z)(this,"_showError",(()=>{var e,t;this.isAlive&&(this.props.annotation instanceof j.GI||this.props.annotation instanceof j.sK||this.props.annotation instanceof j.Ih?this._shouldShowIndicators&&this.setState({loadingState:"ERROR"}):null===(e=(t=this.props).onError)||void 0===e||e.call(t))})),(0,o.Z)(this,"_showLoadingIndicator",(()=>{this.isAlive&&this._shouldShowIndicators&&this.setState((e=>({showLoadingIndicator:"LOADING"===e.loadingState})))}))}componentDidUpdate(e){!this.props.isDragging&&this.isAlive&&dt(e,this.props)&&(this._fetchImageComponentInstance&&this.props.annotation.rotation!==e.annotation.rotation?this._fetchImageComponentInstance.refreshSkippingThrottle():this._fetchImageComponentInstance&&this._fetchImageComponentInstance.refresh())}componentDidMount(){this._shouldShowIndicators&&setTimeout(this._showLoadingIndicator,Je.rB)}componentWillUnmount(){this.isAlive=!1;const{annotation:e,backend:t}=this.props;"imageAttachmentId"in e&&e.imageAttachmentId&&(t.attachmentsCache=t.attachmentsCache.delete((0,He.UW)(e)))}render(){var e;const{annotation:t,attachment:n,formField:o,label:r,zoomLevel:i}=this.props,s=t instanceof j.GI&&(null===(e=this.state.renderedAnnotation)||void 0===e?void 0:e.opacity)!==t.opacity,l=st(st(st({},ct),function(e){let{annotation:t,attachment:n,zoomLevel:o}=e;if(t instanceof j.x_||t instanceof j.R1)return{position:"absolute",top:0};if(t instanceof j.UX||t instanceof j.Zc)return{padding:tt.Ni?Je.wK:Je.XZ};if(t instanceof j.GI&&(0,ot.kv)(t)){const e=(0,ot.h4)(t),n=(t.boundingBox.width-e.boundingBox.width)/2*o,r=(t.boundingBox.height-e.boundingBox.height)/2*o;return{transformOrigin:"50% 50%",transform:`translate(${-n}px, ${-r}px) rotate(${String(t.rotation)}deg)`,width:t.boundingBox.width*o,height:t.boundingBox.height*o}}if(t instanceof j.gd&&(0,ot.kv)(t)){const e=(0,ot.h4)(t),n=(t.boundingBox.width-e.boundingBox.width)/2*o,r=(t.boundingBox.height-e.boundingBox.height)/2*o;return{transformOrigin:"50% 50%",transform:`translate(${-n}px, ${-r}px) rotate(${String(t.rotation)}deg)`,width:t.boundingBox.width*o,height:t.boundingBox.height*o}}if(t instanceof j.sK&&n&&t.opacity<1)return{opacity:t.opacity};if(t instanceof j.R1||t instanceof j.gd||t instanceof j.On||t instanceof j.Qi||t instanceof j.Ih||t instanceof j.sK||t instanceof j.GI)return{};(0,a.Rz)(t.constructor)}({annotation:this.state.renderedAnnotation||t,attachment:n,zoomLevel:i})),s?{opacity:t.opacity}:null),c=F()(it().wrapper,"PSPDFKit-APStream-Wrapper",{[it().loading]:this._shouldShowIndicators&&"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator,[it().error]:this._shouldShowIndicators&&"ERROR"===this.state.loadingState}),u=F()(t instanceof j.GI&&it().stampAnnotation,t instanceof j.x_&&it().widgetAnnotation,"PSPDFKit-APStream"),d=t instanceof j.GI||t instanceof j.sK||t instanceof j.Ih||t instanceof j.x_&&o instanceof j.Yo?null:0;return T.createElement("figure",{style:l,className:c,"data-name":null==o?void 0:o.name},T.createElement($e.Z,{className:u,fetchImage:this._fetchImage,label:r,visible:!0,onRenderFinished:this._renderFinished,onError:this._showError,throttleTimeout:d,rectStyle:ut,ref:this._imageFetcherRef}),"description"in t&&t.description&&T.createElement(ue.TX,{tag:"figcaption"},t.description),this._shouldShowIndicators&&"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator?T.createElement("div",{className:it().placeholder},qe||(qe=T.createElement(Xe.Z,null))):this._shouldShowIndicators&&"ERROR"===this.state.loadingState?T.createElement("div",{className:it().placeholder},T.createElement(Ye.Z,{src:et(),className:it().errorIcon})):null)}}const ct={position:"relative",overflow:"hidden",margin:0,pointerEvents:"none",width:"100%",height:"100%"},ut={pointerEvents:"none",width:"100%",height:"100%"};function dt(e,t){return t.zoomLevel>e.zoomLevel||(0,J.AC)(e.annotation,t.annotation)||(0,J.TL)(e.formField,t.formField)||t.formField&&e.formField&&t.formField.formattedValue!==e.formField.formattedValue||!(0,nt.BT)(t.formField,e.formField)||e.variant!==t.variant||e.isDigitallySigned!==t.isDigitallySigned}var pt=n(13944);class ft extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"el",null),(0,o.Z)(this,"_innerRef",(e=>{this.el=e})),(0,o.Z)(this,"_handlePointerDown",(e=>{e.isPrimary&&this.props.isSelectable&&this._handlePress(e,"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null)})),(0,o.Z)(this,"_handlePress",((e,t)=>{this.props.dispatch((0,je.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,o.Z)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,o.Z)(this,"_handlePointerUp",(e=>{e.stopPropagation()})),(0,o.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n}=this.props;t&&t(n,e),this.props.dispatch((0,je.Oc)(n.id))}))}componentDidUpdate(){this.props.isFocused&&this.el&&this.el.focus()}render(){const{annotation:e,attachment:t,backend:n,onRenderFinished:o,zoomLevel:r,isSelectable:i,isDisabled:a,isDragging:s,intl:{formatMessage:l}}=this.props,{boundingBox:c,id:u}=e,d={cursor:i?"pointer":"auto",overflow:"hidden",width:c.width*r,height:c.height*r,display:"block",outline:this.props.isFocused?J.A8:null};return T.createElement(Pe.Reparent,{id:`annotation-image-${u}`},T.createElement(Be,{position:c.getLocation(),zoomLevel:r,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},T.createElement(pt.Z,{onPointerUp:this._handlePointerUp},T.createElement(_e.Z,{disabled:a,onPointerDown:this._handlePointerDown,onClick:this._handleClick,onFocus:this._handleFocus,onBlur:this._handleBlur,style:d,className:"PSPDFKit-Annotation PSPDFKit-Image-Annotation","data-annotation-id":e.id,"aria-label":`${l(Ke.Z.annotation)}: ${l(Ke.Z.imageAnnotation)}`,innerRef:this._innerRef},T.createElement(lt,{annotation:e,attachment:t,backend:n,onRenderFinished:o,zoomLevel:r,label:l(Ke.Z.imageAnnotation),isDragging:s,onError:this.props.onError})))))}}const ht=(0,Re.XN)(ft,{forwardRef:!0});var mt=n(97528),gt=n(51731),vt=n(78233);function yt(e){switch(e){case gt.V.TOP:return{mx:0,my:-1};case gt.V.BOTTOM:return{mx:0,my:1};case gt.V.LEFT:return{mx:-1,my:0};case gt.V.RIGHT:return{mx:1,my:0};case gt.V.TOP_LEFT:return{mx:-1,my:-1};case gt.V.TOP_RIGHT:return{mx:1,my:-1};case gt.V.BOTTOM_RIGHT:return{mx:1,my:1};case gt.V.BOTTOM_LEFT:return{mx:-1,my:1}}throw new a.p2("Expected `getMultipliersFromResizeStartingAnchor` to be called with a valid `ResizeStartingAnchor` value.")}function bt(e,t,n,o,r){const i=yt(t);let a,s=e.width+i.mx*n.x,l=e.height+i.my*n.y;return r&&o&&(i.mx>0&&e.left+s>o.width?(s=o.width-e.left,a="width"):i.mx<0&&s-e.width>e.left&&(s=e.left+e.width,a="width"),i.my>0&&e.top+l>o.height?(l=o.height-e.top,a="height"):i.my<0&&l-e.height>e.top&&(l=e.top+e.height,a="height")),{rect:e.set("width",s).set("height",l),keepToSide:a}}function wt(e,t,n,o,r){const i=yt(t),a=-1*i.mx*(e.width-e.width*n),s=-1*i.my*(e.height-e.height*o),l=r?new j.E9({x:i.mx>=0?0:Math.max(-e.left,a),y:i.my>=0?0:Math.max(-e.top,s)}):new j.E9({x:i.mx>=0?0:a,y:i.my>=0?0:s});return{translation:l,dragDifference:r?new j.E9({x:i.mx>=0?0:a-l.x,y:i.my>=0?0:s-l.y}):new j.E9({x:0,y:0})}}function St(e,t){const n=yt(t);return new j.E9({x:e.boundingBox.left+e.boundingBox.width/2+-1*n.mx*e.boundingBox.width/2,y:e.boundingBox.top+e.boundingBox.height/2+-1*n.my*e.boundingBox.height/2})}function Et(e,t,n,o){let r=e.lines;const i=St(e,o);return r=r.map((e=>e.map((e=>e.translate(i.scale(-1)).scale(t,n).translate(i))))),r}function Pt(e,t,n,o){let r;if(e instanceof j.o9)r=(0,i.aV)([e.startPoint,e.endPoint]);else{if(!(e instanceof j.Hi||e instanceof j.om))return(0,i.aV)();r=e.points}const a=St(e,o);return r=r.map((e=>e.translate(a.scale(-1)).scale(t,n).translate(a))),r}function xt(e,t,n){const o=Ct(e);if(o>0){const r=e.boundingBox,i=r.widtho.maxWidth&&(i=o.maxWidth),o.minWidth&&io.maxHeight&&(s=o.maxHeight),o.minHeight&&t.height4&&void 0!==arguments[4])||arguments[4],i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0;const l=e.boundingBox;let c;if((0,ot.o0)(e)&&!(0,ot.Ag)(e)){const o=yt(n),r=new j.E9({x:l.width/2*o.mx,y:l.height/2*o.my}),i=r.rotate(e.rotation),a=new j.E9({x:i.x+t.x,y:i.y+t.y}).rotate(-e.rotation);c=new j.E9({x:a.x-r.x,y:a.y-r.y})}else c=t;const u=bt(l,n,c,i,a);let d=u.rect;if(o&&(d=kt(u.keepToSide,l,d)),r&&s&&(null!=s&&s.maxHeight||null!=s&&s.maxWidth||null!=s&&s.minHeight||null!=s&&s.minWidth)){const t=Ct(e);s.minHeight=s.minHeight?s.minHeight:t,s.minWidth=s.minWidth?s.minWidth:t}else r&&(d=xt(e,d,o));const p=0!==l.width?d.width/l.width:0,f=0!==l.height?d.height/l.height:0,{translation:h,dragDifference:m}=wt(l,n,p,f,a);d=d.set("width",d.width+m.x).set("height",d.height+m.y),d=d.translate(h),(null!=s&&s.maxHeight||null!=s&&s.maxWidth||null!=s&&s.minHeight||null!=s&&s.minWidth)&&(d=Dt(e,d,o,s));const g=function(){const t=e.set("boundingBox",d),r=Math.sqrt(p*f);let i;return t instanceof j.gd?(0,vt.XA)((0,ot.Ag)(e)&&n===At[e.rotation]||!(0,ot.Ag)(e)&&n===gt.V.BOTTOM_RIGHT?t.set("fontSize",e.fontSize*r):t):t instanceof j.Zc?t.withMutations((e=>{e.set("lines",Et(t,p,f,o?Ot[n]:n)),e.set("lineWidth",t.lineWidth*r)})):t instanceof j.o9?(i=Pt(t,p,f,n),t.withMutations((e=>{e.set("startPoint",i.get(0)),e.set("endPoint",i.get(1))}))):t instanceof j.Hi||t instanceof j.om?(i=Pt(t,p,f,n),t.withMutations((e=>{e.set("boundingBox",d),e.set("points",i)}))):t}();return It(g,l)}function It(e,t){if((0,ot.o0)(e)&&!(0,ot.Ag)(e)){const n=new j.E9({x:e.boundingBox.getCenter().x-t.getCenter().x,y:e.boundingBox.getCenter().y-t.getCenter().y}).rotate(e.rotation);return e.update("boundingBox",(e=>e.set("left",t.left+n.x-(e.width-t.width)/2).set("top",t.top+n.y-(e.height-t.height)/2)))}return e}var Ft=n(73815);function Mt(e){var t,n,o,r;if(0===e.lines.size)return new j.UL;const i=e.lines.flatMap((e=>e)),a=Math.ceil((null===(t=i.maxBy((e=>e.x)))||void 0===t?void 0:t.x)+e.lineWidth/2),s=Math.ceil((null===(n=i.maxBy((e=>e.y)))||void 0===n?void 0:n.y)+e.lineWidth/2),l=Math.floor((null===(o=i.minBy((e=>e.x)))||void 0===o?void 0:o.x)-e.lineWidth/2),c=Math.floor((null===(r=i.minBy((e=>e.y)))||void 0===r?void 0:r.y)-e.lineWidth/2);return new j.UL({width:a-l,height:s-c,top:c,left:l})}function _t(e,t,n){const{width:o,height:r}=e.boundingBox,i=function(e,t){const{width:n,height:o}=e,r=t.width/n,i=t.height/o,a=Math.min(r,i);return new j.$u({width:n*a,height:o*a})}(new j.$u({width:o,height:r}),t);return Tt(e,new j.E9({x:i.width-o,y:i.height-r}),gt.V.BOTTOM_RIGHT,n,!1)}const Rt=e=>{const t=Math.abs(Math.ceil(Math.log10((0,Ft.L)()*e)));let n;return n=t>100?100:t,n},Nt=(e,t)=>{const n=e.first();if(1===e.size&&n)return[`L ${n.x},${n.y}`];const o=[`M ${n.x},${n.y}`],r=e.get(1);if(2===e.size&&r)return o.push(`L ${r.x},${r.y}`),o;for(let n=2,r=e.size;n{const t=e.first();return 1===e.size&&t?[`L ${t.x},${t.y}`]:e.reduce(((e,t,n)=>(n>0&&e.push(`L ${t.x},${t.y}`),e)),[`M ${t.x},${t.y}`])};function Bt(e){const t=Math.ceil(2*e)+4,n=Math.ceil(2*e)+4,o=document.createElement("canvas");o.width=t,o.height=n;const r=o.getContext("2d");return(0,Ne.k)(r),r.beginPath(),r.arc(e+2,e+2,e,0,2*Math.PI,!1),r.lineWidth=1,r.strokeStyle="rgba(0,0,0,.7)",r.stroke(),r.beginPath(),r.arc(e+2,e+2,e+1,0,2*Math.PI,!1),r.lineWidth=1,r.strokeStyle="white",r.stroke(),o.toDataURL()}function jt(e){if(tt.Mn||e<3)return"crosshair";const t=Bt(e),n=tt.SR;if("webkit"===n||"blink"===n){return`-webkit-image-set(\n url('${t}') 1x,\n url('${Bt(2*e)}') 2x\n ) ${e+2} ${e+2}, crosshair`}return`url('${t}') ${e+2} ${e+2}, crosshair`}var zt=n(70994),Kt=n.n(zt);function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ut(e){for(var t=1;t{e.persist(),e.isPrimary&&(e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null))})),(0,o.Z)(this,"_handlePress",((e,t)=>{this.precision=Rt(this.props.zoomLevel),this.props.dispatch((0,je.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,o.Z)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,o.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n}=this.props;t&&t(n,e),this.props.dispatch((0,je.Oc)(n.id))})),(0,o.Z)(this,"_handlePointerUp",(e=>{e.stopPropagation()})),(0,o.Z)(this,"el",null),(0,o.Z)(this,"_innerRef",(e=>{this.el=e}))}componentDidUpdate(){this.props.isFocused&&this.el&&this.el.focus()}render(){const{annotation:e,intl:{formatMessage:t},isSelectable:n,pathDataFromFragments:o,backend:r,zoomLevel:i,isDragging:a=!1,shouldKeepRenderingAPStream:s=!1}=this.props,{boundingBox:l,blendMode:c}=e,u=l.grow(tt.Ni?Je.wK:Je.XZ),d=Ut(Ut(Ut({},u.toJS()),n&&{cursor:"pointer"}),{},{outline:this.props.isFocused?J.A8:null}),p=c&&"normal"!==c?Ut({mixBlendMode:(0,J.vk)(c)},tt.G6?{transform:"translate3d(0,0,0)"}:null):{};return T.createElement("div",{style:p},T.createElement(Be,{zoomLevel:this.props.zoomLevel,applyZoom:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},T.createElement(_e.Z,{disabled:this.props.isDisabled,onClick:this._handleClick,onFocus:this._handleFocus,onBlur:this._handleBlur,onPointerUp:s?this._handlePointerUp:void 0,className:F()(Kt().container,"PSPDFKit-Ink-Annotation PSPDFKit-Annotation"),style:d,"data-annotation-id":e.id,"aria-label":`${t(Ke.Z.annotation)}: ${t(Ke.Z.inkAnnotation)}`,innerRef:this._innerRef},T.createElement(Wt,{annotation:e,onPointerDown:this._handlePointerDown,isSelectable:this.props.isSelectable,viewBox:u,pathDataFromFragments:o,renderInvisibleClickPath:s,precision:this.precision}),s&&r&&T.createElement(Pe.Reparent,{id:`annotation-ink-${e.id}`},T.createElement(lt,{annotation:e,backend:r,zoomLevel:i,label:t(Ke.Z.inkAnnotation),isDragging:a,onError:this.props.onError})))))}}const Gt=(0,Re.XN)(Vt,{forwardRef:!0}),Wt=function(e){let{annotation:t,isSelectable:n,viewBox:o,pathDataFromFragments:r=(()=>null),onPointerDown:a,renderInvisibleClickPath:s=!1,precision:l=Rt(1)}=e;const{ENABLE_INK_SMOOTH_LINES:c}=mt.Ei,u=T.useMemo((()=>c?e=>Nt(e,l):Lt),[l,c]),d=T.useRef([]),p=T.useCallback(((e,n,o)=>r(t.id,n,o)||(e=>e.reduce(((e,t)=>(null==t?e.push((0,i.aV)()):e[e.length-1]=e[e.length-1].push(t),e)),[(0,i.aV)()]).filter((e=>e.size>0)))(e).map(u).flat()),[r,u,t]);d.current=T.useMemo((()=>{t.lines.size!==d.current.length&&(d.current=[]);const e=[];return t.lines.forEach((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.aV)(),n=arguments.length>1?arguments[1]:void 0;e.push(p(t,n,d.current[n]))})),e}),[t,p]);const f=T.useMemo((()=>{const{strokeColor:e,lineWidth:o,lines:r}=t,i={stroke:(null==e?void 0:e.toCSSValue())||"transparent",strokeWidth:o,pointerEvents:"none"},l={strokeWidth:n?Math.max(tt.Ni?Je.wK:Je.XZ,o):0},u=F()({[Kt().path]:!0,[Kt().selectable]:!0,"PSPDFKit-Smooth-Lines":c}),p=r.map(((e,t)=>{const o=(r=d.current[t]).reduce(((e,t,n)=>(r[n-1]&&"M 0,0"!==r[n-1]||!t.startsWith("L")||e.push(t.replace("L","M")),e.push(t),e)),[]).join(" ");var r;return T.createElement("g",{key:t},!s&&T.createElement("path",{className:u,style:i,d:o,"data-testid":"ink-path"}),n&&T.createElement("path",{onPointerDown:a,className:u,style:l,stroke:"transparent",d:o,"data-testid":"clickable-path"}))}));return T.createElement("g",null,p)}),[t,n,a,c,s]),h=T.useMemo((()=>{const{backgroundColor:e,boundingBox:n}=t,o=F()({[Kt().rect]:!0,[Kt().selectable]:!!e}),r={fill:(null==e?void 0:e.toCSSValue())||"transparent"},{width:i,height:s,top:l,left:c}=n;return T.createElement("rect",{onPointerDown:a,x:c,y:l,width:i,height:s,className:o,style:r})}),[a,t,s]),m=`${o.left} ${o.top} ${o.width} ${o.height}`,g={left:0,top:0,width:"100%",height:"100%",opacity:t.opacity,overflow:"hidden"};return T.createElement("svg",{viewBox:m,style:g,className:Kt().svg,focusable:!1,"data-testid":"ink-svg"},h,f)};var qt=n(17090),Ht=n.n(qt);function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Yt(e){for(var t=1;tfunction(e){var t;switch((null===(t=e.action)||void 0===t?void 0:t.constructor)||null){case c.lm:{const t=e.action;return(0,a.kG)("string"==typeof t.uri,"URIAction requires `uri`"),{type:"a",props:{href:t.uri,"aria-label":t.uri}}}case c.Di:{const t=e.action;(0,a.kG)("number"==typeof t.pageIndex,"GoToAction requires `pageIndex`");const n=`#page=${t.pageIndex}`;return{type:"a",props:{href:n,"aria-label":n}}}case c.BO:{const t=e.action;return(0,a.kG)("boolean"==typeof t.includeExclude,"ResetFormAction requires `includeExclude`"),{type:"button",props:{type:"reset","aria-label":`Reset${t.fields?t.fields.join(" "):""}`}}}case c.pl:{const t=e.action;return(0,a.kG)("string"==typeof t.uri,"ResetFormAction requires `uri`"),(0,a.kG)("boolean"==typeof t.includeExclude,"ResetFormAction requires `includeExclude`"),{type:"button",props:{type:"submit","aria-label":`Submit to ${t.uri}`}}}default:return{type:"div",props:{}}}}(t)),[t]),C=T.useCallback((function(e){o(t,e)}),[t,o]),k=T.useCallback((function(e){r(t,e)}),[t,r]);return T.createElement(Be,{position:i.getLocation(),zoomLevel:s,disablePointerEvents:!0,isMultiAnnotationsSelected:h},T.createElement(_e.Z,{disabled:n,className:F()(`PSPDFKit-${t.constructor.readableName}-Annotation PSPDFKit-Annotation`),style:P,onClick:function(e){"keypress"===e.type&&function(e,n){(0,je.mg)(t,e,{selectedAnnotationShouldDrag:n,stopPropagation:!0})}(e,null)},onFocus:function(t){const{onFocus:n,annotation:o}=e;n&&n(o,t)},onBlur:function(t){const{onBlur:n,annotation:o}=e;n&&n(o,t),d((0,je.Oc)(o.id))},onPointerUp:u?function(e){e.stopPropagation()}:void 0,"data-annotation-id":t.id,"aria-label":"Link-annotation",innerRef:g,onMouseEnter:()=>{d((0,je.oX)(t.id))},onMouseLeave:()=>{d((0,je.IP)(t.id))}},T.createElement(D.type,(0,De.Z)({},D.props,{className:v,style:x,onFocus:C,onBlur:k,"data-annotation-id":t.id,tabIndex:n?-1:0,"aria-disabled":n?"true":"false"})),u&&p&&T.createElement(Pe.Reparent,{id:`annotation-link-${t.id}`},T.createElement(lt,{annotation:t,backend:p,zoomLevel:s,label:m(Ke.Z.linkAnnotation),isDragging:f,onError:e.onError}))))}));const Jt=Xt;var Qt=n(69939),en=n(18025),tn=n(72032),nn=n.n(tn);class on extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"el",null),(0,o.Z)(this,"_innerRef",(e=>{this.el=e})),(0,o.Z)(this,"onClick",(()=>{this.props.dispatch((0,Qt.i0)()),window.setTimeout((()=>{this.props.dispatch((0,je.VR)(this.props.annotation.id))}),0)})),(0,o.Z)(this,"_onPointerDownUp",(e=>{e.isPrimary&&(!this.props.isReadOnly&&e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null),this.props.isOpen||this.props.dispatch((0,je.IP)(this.props.annotation.id)),e.stopPropagation())})),(0,o.Z)(this,"_handlePress",((e,t)=>{this.props.dispatch((0,je.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0,ignoreReadOnly:!0}))})),(0,o.Z)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,o.Z)(this,"_onMouseEnter",(()=>{this.props.dispatch((0,je.oX)(this.props.annotation.id))})),(0,o.Z)(this,"_onMouseLeave",(()=>{this.props.dispatch((0,je.IP)(this.props.annotation.id))})),(0,o.Z)(this,"_onFocus",(e=>{this.props.onFocus&&this.props.onFocus(this.props.annotation,e)})),(0,o.Z)(this,"_onBlur",(e=>{this.props.onBlur&&this.props.onBlur(this.props.annotation,e),this.props.dispatch((0,je.Oc)(this.props.annotation.id))}))}componentDidUpdate(){this.props.isFocused&&this.el&&this.el.focus()}render(){const{intl:{formatMessage:e},backend:t,shouldKeepRenderingAPStream:o,isFocused:r}=this.props,i=!this.props.isOpen&&!this.props.isFullscreen&&!tt.Ni,{annotation:a,zoomLevel:s,rotation:l}=this.props,{boundingBox:c,color:u,icon:d}=a,{width:p,height:f}=c,h={width:p,height:f,transformOrigin:"top left",transform:`translate(${p*s/2-p/2}px, ${f*s/2-f/2}px)`,color:u.toCSSValue(),opacity:a.opacity,outline:r?J.A8:null},m=en.Y4[d]||en.Y4[en.Zi.COMMENT],g=(0,$.Oe)(m);let v;try{v=n(91435)(`./${m}.svg`)}catch(e){}const y=this.props.isReadOnly?{onPointerUp:this._onPointerDownUp}:{onPointerDown:this._onPointerDownUp},b=F()({"PSPDFKit-Annotation":!0,"PSPDFKit-Note-Annotation":!0,[`PSPDFKit-Note-Annotation-Icon-${g}`]:!0,[nn().annotation]:!0});return T.createElement(T.Fragment,null,T.createElement(Be,{position:c.getLocation(),zoomLevel:s,currentPagesRotation:l,noRotate:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},T.createElement(_e.Z,(0,De.Z)({},y,{onClick:this._handleClick,onFocus:this._onFocus,onBlur:this._onBlur,disabled:this.props.isDisabled,style:h,className:b,onMouseEnter:i?this._onMouseEnter:void 0,onMouseLeave:i?this._onMouseLeave:void 0,"data-annotation-id":a.id,"aria-label":`${e(Ke.Z.annotation)}: ${e(Ke.Z.noteAnnotation)}`,"aria-controls":`NoteAnnotationContent-${a.id}`,innerRef:this._innerRef}),o?T.createElement(Pe.Reparent,{id:`annotation-note-${a.id}`},T.createElement(lt,{annotation:a,zoomLevel:s,backend:t,label:e(Ke.Z.noteAnnotation),onError:this.props.onError})):v?T.createElement(Ye.Z,{src:v,className:nn().icon,role:"presentation"}):m)),!this.props.isOpen&&T.createElement(ue.TX,{id:`NoteAnnotationContent-${a.id}`}))}}const rn=(0,Re.XN)(on,{forwardRef:!0});const an=(0,A.$j)((function(e,t){let{annotation:n}=t;return{annotation:n,isFullscreen:e.viewportState.viewportRect.width<=Je.j1,rotation:e.viewportState.pagesRotation,isOpen:e.selectedAnnotationIds.has(n.id)&&"number"==typeof n.pageIndex}}),null,null,{forwardRef:!0})(rn),sn=an;var ln=n(34997),cn=n(26467);const un=e=>{let{lineCap:t,style:n,id:o,position:r}=e;return T.createElement("marker",{id:o,style:n,markerWidth:"5",markerHeight:"5",refX:"start"===r?3.75:.5,refY:"2",orient:"auto"},cn.O[t][`${r}Element`](n))};var dn=n(29978),pn=n.n(dn);const fn=e=>{let{isSelectable:t,onPointerDown:n,annotation:{strokeDashArray:o,strokeColor:r,strokeWidth:a,startPoint:s,endPoint:l,lineCaps:c,fillColor:u,pageIndex:d,id:p=(0,ln.SK)()},renderInvisibleClickPath:f=!1}=e;if(null===d||0===a&&!f)return null;const h={stroke:(null==r?void 0:r.toCSSValue())||"transparent",strokeWidth:a,fill:"transparent"},m=F()({[pn().visible]:!0}),g=t?tt.Ni?Math.max(Je.wK,a):Math.max(Je.XZ,a):0,v=F()({[pn().selectable]:!0}),y={stroke:(null==r?void 0:r.toCSSValue())||"transparent",pointerEvents:"none",fill:(null==u?void 0:u.toCSSValue())||"transparent",strokeWidth:1},b=`${p}-StartLineCap`,w=`${p}-EndLineCap`,S=(0,ee.CW)((0,i.aV)([s,l]),a,c||{}),E=S.first(),P=S.get(1),x={x1:void 0!==E?E.x:s.x,y1:void 0!==E?E.y:s.y,x2:void 0!==P?P.x:l.x,y2:void 0!==P?P.y:l.y},D=x.x1!==s.x||x.y1!==s.y,C=x.x2!==l.x||x.y2!==l.y,k=c&&D?`url(#${b})`:void 0,A=c&&C?`url(#${w})`:void 0;return T.createElement("g",{style:{strokeWidth:a}},(D||C)&&T.createElement("defs",null,c&&D&&c.start&&T.createElement(un,{style:y,lineCap:c.start,id:b,position:"start"}),c&&C&&c.end&&T.createElement(un,{style:y,lineCap:c.end,id:w,position:"end"})),!f&&T.createElement("line",{className:m,style:h,x1:x.x1,y1:x.y1,x2:x.x2,y2:x.y2,strokeDasharray:o?o.map((e=>e*a)).join(","):"",markerStart:k,markerEnd:A,strokeLinecap:"butt"}),t&&T.createElement("line",{onPointerDown:n,className:v,stroke:"transparent",style:{fill:"none",strokeWidth:g},x1:s.x,y1:s.y,x2:l.x,y2:l.y}))},hn=e=>{let{isSelectable:t,onPointerDown:n,annotation:o,renderInvisibleClickPath:r=!1}=e;const{strokeDashArray:i,strokeColor:a,strokeWidth:s,fillColor:l,pageIndex:c,boundingBox:u,cloudyBorderIntensity:d,cloudyBorderInset:p}=o,f=Number(d);if(null===c||0===s&&!l&&!r)return null;const{width:h,height:m,top:g,left:v}=u,y={stroke:(null==a?void 0:a.toCSSValue())||"transparent",strokeWidth:s,fill:(null==l?void 0:l.toCSSValue())||"transparent"},b=F()({[pn().visible]:!0,[pn().cloudy]:!!f,[pn().strokeDashArray]:!!i}),w=t?tt.Ni?Math.max(Je.wK,s):Math.max(Je.XZ,s):0,S={fill:l&&!l.equals(j.Il.TRANSPARENT)?"transparent":"none",strokeWidth:w},E=F()({[pn().selectable]:!0,[pn().cloudy]:!!f}),P=h>s?h-s:h/4,x=m>s?m-s:m/4,D=i?i.map((e=>e*s)).join(","):"",C=f>0,k=C?mn(f,p,u):"";return T.createElement(T.Fragment,null,!r&&(C?T.createElement("path",{d:k,className:b,style:y,strokeDasharray:D}):T.createElement("rect",{className:b,style:y,strokeDasharray:D,x:v+s/2,y:g+s/2,width:P,height:x})),t&&(C?T.createElement("path",{onPointerDown:n,d:k,className:E,style:S,stroke:"transparent"}):T.createElement("rect",{onPointerDown:n,className:E,stroke:"transparent",style:S,x:v+s/2,y:g+s/2,width:P,height:x})))},mn=(e,t,n)=>{const{left:o,top:r,width:i,height:a}=t instanceof j.eB?j.eB.applyToRect(t,n):n;return(0,ee.rr)({points:[[o,r],[o+i,r],[o+i,r+a],[o,r+a]],intensity:e})},gn=e=>{let{isSelectable:t,onPointerDown:n,annotation:o,renderInvisibleClickPath:r=!1}=e;const{strokeDashArray:i,strokeColor:a,strokeWidth:s,fillColor:l,pageIndex:c,boundingBox:u,cloudyBorderIntensity:d,cloudyBorderInset:p}=o,f=Number(d);if(null===c||0===s&&!l&&!r)return null;const{width:h,height:m,top:g,left:v}=u,y={stroke:(null==a?void 0:a.toCSSValue())||"transparent",strokeWidth:s,fill:(null==l?void 0:l.toCSSValue())||"transparent"},b=F()({[pn().visible]:!0,[pn().cloudy]:!!f,[pn().strokeDashArray]:!!i}),w=t?tt.Ni?Math.max(Je.wK,s):Math.max(Je.XZ,s):0,S={fill:l&&!l.equals(j.Il.TRANSPARENT)?"transparent":"none",strokeWidth:w},E=F()({[pn().selectable]:!0,[pn().cloudy]:!!f}),P=h>2*s?(h-s)/2:h/4,x=m>2*s?(m-s)/2:m/4,D=i?i.map((e=>e*s)).join(","):"",C=f>0,k=C?(0,ee.Hz)({boundingBox:u,cloudyBorderIntensity:f,cloudyBorderInset:p}):"";return T.createElement(T.Fragment,null,!r&&(C?T.createElement("path",{className:b,style:y,strokeDasharray:D,d:k}):T.createElement("ellipse",{className:b,style:y,strokeDasharray:D,cx:v+h/2,cy:g+m/2,rx:P,ry:x})),t&&(C?T.createElement("path",{onPointerDown:n,className:E,style:S,d:k,stroke:"transparent"}):T.createElement("ellipse",{onPointerDown:n,className:E,stroke:"transparent",style:S,cx:v+h/2,cy:g+m/2,rx:P,ry:x})))},vn=e=>{let{isSelectable:t,onPointerDown:n,annotation:o,renderInvisibleClickPath:r=!1}=e;const{strokeDashArray:i,strokeColor:a,strokeWidth:s,fillColor:l,pageIndex:c,points:u,cloudyBorderIntensity:d}=o,p=Number(d);if(null===c||0===u.size||0===s&&(!l||l.equals(j.Il.TRANSPARENT))&&!r)return null;const f={stroke:a?a.toCSSValue():"transparent",strokeWidth:s,fill:(null==l?void 0:l.toCSSValue())||"transparent"},h=F()({[pn().visible]:!0,[pn().cloudy]:!!p,[pn().strokeDashArray]:!!i}),m=t?tt.Ni?Math.max(Je.wK,s):Math.max(Je.XZ,s):0,g={fill:l&&!l.equals(j.Il.TRANSPARENT)?"transparent":"none",strokeWidth:m},v=F()({[pn().selectable]:!0,[pn().cloudy]:!!p}),y=u.first();if(void 0===y)return null;const b=1===u.size||2===u.size?u.push(y):u,w=i?i.map((e=>e*s)).join(","):"",S=p>0&&b.size>2,E=S?yn({annotation:o,intensity:p}):`${b.map((e=>`${e.x},${e.y}`)).join(" ")}`;return T.createElement(T.Fragment,null,!r&&(S?T.createElement("path",{className:h,style:f,strokeDasharray:w,d:E}):T.createElement("polygon",{className:h,style:f,strokeDasharray:w,points:E})),t&&(S?T.createElement("path",{onPointerDown:n,className:v,style:g,stroke:"transparent",d:E}):T.createElement("polygon",{onPointerDown:n,className:v,stroke:"transparent",style:g,points:E})))},yn=e=>{let{intensity:t,annotation:n}=e;return(0,ee.rr)({points:n.points.map((e=>[e.x,e.y])).toArray(),intensity:t})},bn=e=>{let{isSelectable:t,onPointerDown:n,annotation:{strokeDashArray:o,strokeColor:r,strokeWidth:i,lineCaps:a,fillColor:s,pageIndex:l,points:c,id:u=(0,ln.SK)()},renderInvisibleClickPath:d=!1}=e;if(null===l||void 0===c||0===c.size||0===i&&!d)return null;const p=c.first(),f=c.last();if(!p||!f)return null;const h={stroke:(null==r?void 0:r.toCSSValue())||"transparent",strokeWidth:i,fill:"transparent"},m=F()({[pn().visible]:!0}),g=t?tt.Ni?Math.max(Je.wK,i):Math.max(Je.XZ,i):0,v=F()({[pn().selectable]:!0}),y={stroke:(null==r?void 0:r.toCSSValue())||"transparent",pointerEvents:"none",fill:(null==s?void 0:s.toCSSValue())||"transparent",strokeWidth:1},b=`${u}-StartLineCap`,w=`${u}-EndLineCap`,S=1===c.size?` ${p.x},${p.y}`:"",E=(0,ee.CW)(c,i,a||{}),P=E.first(),x=E.last();if(!P||!x)return null;const D=a&&(P.x!==p.x||P.y!==p.y),C=a&&(x.x!==f.x||x.y!==f.y),k=`${E.map((e=>`${e.x},${e.y}`)).join(" ")}${S}`,A=a&&D?`url(#${b})`:void 0,O=a&&C?`url(#${w})`:void 0;return T.createElement("g",{style:{strokeWidth:i}},(D||C)&&T.createElement("defs",null,a&&D&&a.start&&T.createElement(un,{style:y,lineCap:a.start,id:b,position:"start"}),a&&C&&a.end&&T.createElement(un,{style:y,lineCap:a.end,id:w,position:"end"})),!d&&T.createElement("polyline",{className:m,style:h,points:k,strokeDasharray:o?o.map((e=>e*i)).join(","):"",markerStart:A,markerEnd:O}),t&&T.createElement("polyline",{onPointerDown:n,className:v,stroke:"transparent",style:{fill:"none",strokeWidth:g},points:k}))},wn=e=>{const{annotation:t,viewBox:n,isSelectable:o,onPointerDown:r,renderInvisibleClickPath:i=!1}=e,a=`${n.left} ${n.top} ${n.width} ${n.height}`,s={left:0,top:0,width:"100%",height:"100%",opacity:t.opacity,overflow:"hidden"},l=(e=>{switch(e){case j.o9:return fn;case j.b3:return hn;case j.Xs:return gn;case j.Hi:return vn;case j.om:return bn;default:throw new Error("Unexpected shape annotation type")}})(t.constructor);return T.createElement("svg",{viewBox:a,style:s,className:pn().svg,focusable:!1},T.createElement(l,{isSelectable:o,onPointerDown:r,annotation:t,renderInvisibleClickPath:i}))};var Sn=n(60840),En=n(63738);function Pn(e,t){return e.distance(t)>Je.c1}var xn=n(44763),Dn=n(39583);function Cn(e){const{pageIndex:t,currentAnnotation:n,onAnnotationUpdate:o,keepSelectedTool:r,interactionMode:a,defaultAutoCloseThreshold:s}=e,l=T.useRef(null),c=(0,A.v9)((e=>e.eventEmitter)),d=(0,A.I0)(),[p,f]=T.useState(!1),[h,m]=T.useState(null),g=T.useMemo((()=>(0,ee.sS)(n.constructor)),[n.constructor]),v=T.useCallback((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];d((0,Qt.FG)(e)),t&&(d((0,En.Ce)()),d((0,je.Df)((0,i.l4)([e.id]),null)),d((0,Qt.ZE)(e.id)),d((0,xn.eO)(null)))}),[d]),y=T.useCallback((()=>{(n instanceof j.om||n instanceof j.Hi)&&v(n,!0)}),[n,v]),b=T.useCallback(((e,r)=>{var a,s;let p=n;const f={annotations:(0,i.aV)([p]),reason:u.f.DRAW_START};c.emit("annotations.willChange",f);const h=new j.E9({x:e.x,y:e.y});if(p instanceof j.o9)p=p.merge({startPoint:h,endPoint:h});else if(p instanceof j.b3||p instanceof j.Xs){l.current=h;const e=p.cloudyBorderIntensity*Je.St+p.strokeWidth/2;p=p.merge({boundingBox:new j.UL({left:h.x,top:h.y,width:0,height:0}),cloudyBorderInset:p.cloudyBorderIntensity?p.cloudyBorderInset||j.eB.fromValue(e):null})}else if(p instanceof pe.Z){l.current=h;const e=new j.UL({left:h.x,top:h.y,width:0,height:0});p=p.merge({boundingBox:e,rects:(0,i.aV)([e])})}else(p instanceof j.Hi||p instanceof j.om)&&(p=p.update("points",(e=>e.push(h))));p=p.set("boundingBox",g(p));const m=p.pageIndex;if(null===m)p=p.set("pageIndex",t);else if(m!==t){p=p.set("pageIndex",t);const e=p instanceof pe.Z?Qt.hj:Qt.hX;d(e(p,t))}p instanceof j.Xs||!("isMeasurement"in p)||null===(a=(s=p).isMeasurement)||void 0===a||!a.call(s)||d((0,xn.eO)({magnifierLabel:p.getMeasurementDetails().label,drawnAnnotationID:p.id,drawnAnnotationPageIndex:p.pageIndex,magnifierCursorPosition:r})),o(p)}),[n,d,c,t,o,g]),w=T.useCallback(((e,t)=>{var r,a;let c=n;const u=e[e.length-1],y=t[t.length-1],b=new j.E9({x:u.x,y:u.y});if(c instanceof j.o9)c=c.set("endPoint",b);else if(c instanceof j.b3||c instanceof j.Xs){(0,Ne.k)(null!=l.current);const e=l.current,t=new j.UL({left:Math.min(e.x,b.x),top:Math.min(e.y,b.y),width:Math.abs(b.x-e.x),height:Math.abs(b.y-e.y)});c=c.merge({boundingBox:t})}else if(c instanceof pe.Z){(0,Ne.k)(null!=l.current);const e=l.current,t=new j.UL({left:Math.min(e.x,b.x),top:Math.min(e.y,b.y),width:Math.abs(b.x-e.x),height:Math.abs(b.y-e.y)});c=c.merge({boundingBox:t,rects:(0,i.aV)([t])})}else if(c instanceof j.Hi||c instanceof j.om){const e=c.points.size-1;if(h&&Pn(h,b))f(!1),m(null);else if(!p){const t=(0,Dn.K)(c,e,s),n=-1!==t;c=kn(c,b,n,t),n&&(v(c),f(!0),m(c.points.get(e)))}c.isMeasurement()&&"isMeasurement"in c&&d((0,xn.eO)({magnifierLabel:c.getMeasurementDetails().label,drawnAnnotationID:c.id,drawnAnnotationPageIndex:c.pageIndex,magnifierCursorPosition:y}))}c=c.set("boundingBox",g(c)),o(c),c instanceof j.Xs||c instanceof j.om||c instanceof j.Hi||!("isMeasurement"in c)||null===(r=(a=c).isMeasurement)||void 0===r||!r.call(a)||d((0,xn.eO)({magnifierLabel:c.getMeasurementDetails().label,magnifierCursorPosition:t[t.length-1]}))}),[n,g,o,h,p,s,v,d]),S=T.useCallback((()=>{var e,t;let l=n;const{left:p,top:f,width:h,height:m}=l.boundingBox,g={annotations:(0,i.aV)([l]),reason:u.f.DRAW_END};if(c.emit("annotations.willChange",g),l instanceof j.Xs||!("isMeasurement"in l)||null===(e=(t=l).isMeasurement)||void 0===e||!e.call(t)||d((0,xn.eO)(null)),l instanceof j.o9)Pn(l.startPoint,l.endPoint)?(d((0,Qt.FG)(l)),d((0,En.Ce)()),d((0,je.Df)((0,i.l4)([l.id]),null)),d((0,Qt.ZE)(l.id)),r&&d((0,En.yg)(l.constructor,a))):(l=l.merge({startPoint:new j.E9,endPoint:new j.E9,boundingBox:new j.UL}),o(l));else if(l instanceof j.b3||l instanceof j.Xs||l instanceof pe.Z)if(Pn(new j.E9({x:p,y:f}),new j.E9({x:p+h,y:f+m})))d((0,Qt.FG)(l)),d((0,je.Df)((0,i.l4)([l.id]),null)),l instanceof pe.Z||d((0,En.Ce)()),d((0,Qt.ZE)(l.id)),l instanceof pe.Z&&r&&d((0,En.t)()),r&&l instanceof j.UX&&d((0,En.yg)(l.constructor,a));else{const e=new j.UL;l=l instanceof pe.Z?l.merge({boundingBox:e,rects:(0,i.aV)([e])}):l.merge({boundingBox:e}),o(l)}else if(l instanceof j.Hi||l instanceof j.om){const e=l.points.size-1,t=(0,Dn.K)(l,e,s),n=-1!==t,o=kn(l,l.points.last(),n,t);n?v(o):d((0,Qt.FG)(o))}else d((0,Qt.FG)(l))}),[n,o,d,c,r,a]),E=(0,A.v9)((e=>(0,de.zi)(e,t))),P=T.useCallback((e=>e.apply(E)),[E]);return T.createElement(Sn.Z,{size:e.pageSize,onDrawStart:b,onDrawCoalesced:w,onDrawEnd:S,transformPoint:P,interactionMode:a,scrollElement:e.scrollElement,onDoubleClick:y,currentAnnotation:n,defaultAutoCloseThreshold:s,dispatch:d})}const kn=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3?arguments[3]:void 0;if(n){var r;const t=null===(r=e.get("points"))||void 0===r?void 0:r.get(o);return e.update("points",(e=>e.set(e.size-1,t)))}return e.update("points",(e=>e.set(e.size-1,t)))};var An,On;function Tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function In(e){for(var t=1;t{this.setState({currentShapeAnnotation:e,isDrawing:!0})}))}static getDerivedStateFromProps(e,t){return(0,i.is)(t.shapeAnnotationFromCurrentProps,e.shapeAnnotation)||(0,i.is)(t.currentShapeAnnotation,e.shapeAnnotation)?null:Fn(e)}componentDidMount(){this.props.dispatch((0,En.X2)())}componentWillUnmount(){this.props.dispatch((0,En.Zg)())}render(){const e=this.state.currentShapeAnnotation,{pageSize:t,viewportState:{zoomLevel:n}}=this.props,{boundingBox:o}=e,r=F()({[pn().canvas]:!0});return T.createElement("div",{className:r},T.createElement(Be,{zoomLevel:n,applyZoom:!0},e.isMeasurement()&&this.state.isDrawing?T.createElement("div",{className:"PSPDFKit-Measurement-Label",style:(0,G.KI)(e)},T.createElement(Rn,{value:e.getMeasurementDetails().label})):null,T.createElement("div",{style:In(In({},o.toJS()),{},{position:"absolute"})},T.createElement(wn,{isSelectable:!1,annotation:e,viewBox:o}))),T.createElement(Cn,{pageSize:t,pageIndex:this.props.pageIndex,currentAnnotation:e,onAnnotationUpdate:this._handleAnnotationUpdate,keepSelectedTool:this.props.keepSelectedTool,interactionMode:this.props.interactionMode,scrollElement:this.props.scrollElement,defaultAutoCloseThreshold:this.props.defaultAutoCloseThreshold}))}}const _n=(0,A.$j)(((e,t)=>{let{pageIndex:n}=t;return{viewportState:e.viewportState,clientToPageTransformation:(0,de.zi)(e,n),eventEmitter:e.eventEmitter,keepSelectedTool:e.keepSelectedTool,interactionMode:e.interactionMode,scrollElement:e.scrollElement,defaultAutoCloseThreshold:e.defaultAutoCloseThreshold}}))(Mn),Rn=e=>{let{value:t,isSecondaryMeasurement:n}=e;if(n&&t.includes("/")){const e=t.split("/");return T.createElement("span",null,"  (",T.createElement("span",null,e[0],An||(An=T.createElement(T.Fragment,null,"â„")),e[1]),")")}if(n&&!t.includes("/"))return T.createElement("span",null,"  (",T.createElement("span",null,t),")");if(!n&&t.includes("/")){const e=t.split("/");return T.createElement("span",null,e[0],On||(On=T.createElement(T.Fragment,null,"â„")),e[1],";")}return T.createElement("span",null,t)};function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ln(e){for(var t=1;t{e.isPrimary&&this.props.isSelectable&&(e.preventDefault(),this.handlePress(e,"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null))})),(0,o.Z)(this,"handlePress",((e,t)=>{this.props.dispatch((0,je.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,o.Z)(this,"handleClick",(e=>{"keypress"===e.type&&this.handlePress(e,null)})),(0,o.Z)(this,"handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"handleBlur",(e=>{const{onBlur:t,annotation:n}=this.props;t&&t(n,e),this.props.dispatch((0,je.Oc)(n.id))})),(0,o.Z)(this,"handlePointerUp",(e=>{e.stopPropagation()})),(0,o.Z)(this,"el",null),(0,o.Z)(this,"innerRef",(e=>{this.el=e}))}componentDidUpdate(){this.props.isFocused&&this.el&&this.el.focus()}render(){const{annotation:e,intl:{formatMessage:t},zoomLevel:n,backend:o,isDragging:r,shouldKeepRenderingAPStream:i}=this.props,{boundingBox:a}=e;let s;s=!!((0,G.S6)(e)&&!e.measurementBBox&&(a.width<100||a.height<100)||e.isMeasurement()&&!i);const l=a.grow(tt.Ni?Je.wK:Je.XZ),c=Ln(Ln({},l.toJS()),{},{outline:this.props.isFocused?J.A8:null}),u=e.constructor.readableName,d=u&&Ke.Z[`${u.charAt(0).toLowerCase()+u.slice(1)}Annotation`],p=(0,J.vk)(e.blendMode),f=p?{mixBlendMode:p}:{},h=e.isMeasurement()&&this.props.secondaryMeasurementUnit&&(0,G.Rw)(e,this.props.secondaryMeasurementUnit);return T.createElement(Be,{zoomLevel:n,additionalStyle:f,applyZoom:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},e.isMeasurement()&&s&&T.createElement("div",{className:"PSPDFKit-Measurement-Label",style:(0,G.KI)(e,!!h)},T.createElement(Rn,{value:e.getMeasurementDetails().label}),h?T.createElement(Rn,{value:h.label,isSecondaryMeasurement:!0}):null),T.createElement(_e.Z,{disabled:this.props.isDisabled,className:F()(pn().container,`PSPDFKit-${jn(e)}-Annotation`,"PSPDFKit-Shape-Annotation","PSPDFKit-Annotation"),style:c,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onPointerUp:i?this.handlePointerUp:void 0,"data-annotation-id":e.id,"aria-label":`${t(Ke.Z.annotation)}${u&&d?`: ${t(d)}`:""}`,innerRef:this.innerRef},T.createElement(wn,{annotation:e,onPointerDown:this.handlePointerDown,isSelectable:this.props.isSelectable,viewBox:l,renderInvisibleClickPath:i}),i&&T.createElement(Pe.Reparent,{id:`annotation-shape-${e.id}`},T.createElement(lt,{annotation:e,zoomLevel:n,backend:o,label:t(u&&d?d:Ke.Z.annotation),isDragging:r,onError:this.props.onError}))))}}function jn(e){const t=e.constructor.readableName;return e.isMeasurement()?"Line"===t?"Distance":"Polyline"===t?"Perimeter":"Polygon"===t?"Polygon-Area":"Rectangle"===t?"Rectangle-Area":"Ellipse"===t?"Ellipse-Area":void 0:t}const zn=(0,Re.XN)(Bn,{forwardRef:!0});function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}class Zn extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"_handlePointerDown",(e=>{e.isPrimary&&this.props.isSelectable&&this._handlePress(e,"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null)})),(0,o.Z)(this,"_handlePress",((e,t)=>{this.props.dispatch((0,je.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,o.Z)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,o.Z)(this,"_handlePointerUp",(e=>{e.stopPropagation()})),(0,o.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n}=this.props;t&&t(n,e),this.props.dispatch((0,je.Oc)(n.id))})),(0,o.Z)(this,"el",null),(0,o.Z)(this,"_innerRef",(e=>{this.el=e}))}componentDidUpdate(){this.props.isFocused&&this.el&&this.el.focus()}render(){const{annotation:e,globalAnnotation:t,onRenderFinished:n,zoomLevel:r,backend:i,isSelectable:a,isDisabled:s,isDragging:l,cursor:c,intl:{formatMessage:u},isFocused:d}=this.props,{boundingBox:p,id:f}=e,h=function(e){for(var t=1;t{var n;let{annotation:{callout:r,borderWidth:i,borderStyle:s,boundingBox:l,borderColor:c,id:u,backgroundColor:d,verticalAlign:p,fontSize:f,font:h},annotation:m,children:g,isEditing:v}=e;const y=(0,A.I0)(),b=T.useRef(null),w=(0,A.v9)((e=>e.viewportState.zoomLevel));(0,a.kG)(r,"CalloutTextComponent: callout is undefined");const S=(0,T.useRef)(!0);(0,Wn.useGranularLayoutEffect)((()=>{if(S.current)S.current=!1;else{var e;const t=null===(e=b.current)||void 0===e?void 0:e.getBoundingClientRect();if(!t)return;const n=(0,qn.Vq)({annotation:m,rect:t,zoomLevel:w,callout:m.callout,text:m.text});n&&y((0,Qt.FG)(n))}}),[f,h],[m,w]);const E=null===(n=r.innerRectInset)||void 0===n?void 0:n.setScale(w),P=function(e){for(var t=1;t{(0,a.kG)(e,"CalloutTextComponent: point is undefined");const{x:t,y:n}=function(e,t,n){return{x:(e.x-t.left)*n,y:(e.y-t.top)*n}}(e,l,w);return`${t},${n}`})).join(" ");return T.createElement(T.Fragment,null,T.createElement("svg",{style:{position:"absolute",inset:0},width:D.width,height:D.height,stroke:null==c?void 0:c.toCSSValue(),viewBox:`0 0 ${D.width} ${D.height}`},T.createElement("g",null,r.cap&&T.createElement("defs",null,T.createElement(un,{lineCap:r.cap,style:C,id:x,position:"start"})),T.createElement("polyline",{fill:"none",points:k,stroke:(null==c?void 0:c.toCSSValue())||"black",strokeWidth:i||void 0,markerStart:`url(#${x})`}))),T.createElement("div",{style:P,ref:t,className:"Callout"},T.createElement("div",{style:{verticalAlign:"center"===p?"middle":p,display:"inline-block"},ref:b},g)))}));const Yn=["backgroundColor"];function Xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Jn(e){for(var t=1;t{this.el=e})),(0,o.Z)(this,"onClick",(e=>{"function"==typeof this.props.onClick&&this.props.onClick(e),window.setTimeout((()=>{this.props.dispatch((0,je.VR)(this.props.annotation.id))}),0)})),(0,o.Z)(this,"_handlePointerDown",(e=>{e.isPrimary&&this.props.isSelectable&&(e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null))})),(0,o.Z)(this,"_handlePress",((e,t)=>{"function"==typeof this.props.onClick?this.onClick(e):this.props.dispatch((0,je.mg)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,o.Z)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,o.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n}=this.props;t&&t(n,e),this.props.dispatch((0,je.Oc)(n.id))})),(0,o.Z)(this,"_handlePointerUp",(e=>{e.stopPropagation()}))}componentDidUpdate(){this.props.isFocused&&this.el&&this.el.focus()}render(){const{annotation:{boundingBox:e},annotation:t,globalAnnotation:n,zoomLevel:o,isDisabled:i,isSelectable:a,intl:{formatMessage:s},backend:l,isDragging:c,cursor:u,shouldKeepRenderingAPStream:d,isFocused:p,isMultiAnnotationsSelected:f}=this.props,h=Jn(Jn({},(0,vt.z1)(t.isFitting?(0,vt.MF)(t,o):t,o,d)),{},{cursor:u||(a?"pointer":"auto"),outline:p?J.A8:null},(0,ot.kv)(t)&&d?{transformOrigin:"50% 50%",transform:`rotate(${String(-t.rotation)}deg)`}:null),{backgroundColor:m}=h,g=(0,r.Z)(h,Yn),v="xhtml"===t.text.format;let y;var b,w;d||(y=v?T.createElement("div",{dangerouslySetInnerHTML:{__html:null===(b=t.text)||void 0===b?void 0:b.value}}):(0,vt.hr)(null===(w=t.text)||void 0===w?void 0:w.value),v&&(g.color=void 0));return T.createElement(Be,{position:e.getLocation(),zoomLevel:o,isMultiAnnotationsSelected:f},T.createElement(pt.Z,{onPointerUp:d?this._handlePointerUp:void 0},T.createElement(_e.Z,{disabled:i,onPointerDown:this._handlePointerDown,onClick:this._handleClick,onFocus:this._handleFocus,onBlur:this._handleBlur,style:Jn(Jn({},g),{},{backgroundColor:(0,J.Vc)(t)?void 0:m}),className:`${Gn().annotation} PSPDFKit-Text-Annotation PSPDFKit-Annotation`,"data-annotation-id":t.id,"aria-label":`${s(Ke.Z.annotation)}: ${s(Ke.Z.textAnnotation)}`,innerRef:this._innerRef},d?T.createElement(Pe.Reparent,{id:`annotation-text-${t.id}`},T.createElement(lt,{annotation:n,zoomLevel:o,backend:l,label:s(Ke.Z.textAnnotation),isDragging:c,onError:this.props.onError})):t.callout?T.createElement($n,{annotation:t},y):y)))}}const eo=(0,Re.XN)(Qn,{forwardRef:!0});var to=n(54670),no=n(20276),oo=n(92135),ro=n.n(oo);function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ao(e){for(var t=1;t{if(n&&t.overlayText&&t.repeatOverlayText){const e=new to.default(`${l}px Helvetica, sans-serif`),{width:n}=e.measureText(t.overlayText);s(n),e.clean()}}),[n,t.overlayText,t.repeatOverlayText,l,s]);const d=T.useMemo((()=>t.overlayText&&!t.repeatOverlayText?t.rects.sortBy({0:e=>[e.top,e.left],90:e=>[e.left,-e.top],180:e=>[-e.top,-e.left],270:e=>[-e.left,e.top]}[t.rotation||"0"],ze.b).first():null),[t.overlayText,t.repeatOverlayText,t.rects,t.rotation]),p=t.rects.map(((e,s)=>{const c=e.scale(o),{overlayText:p,textHeight:f}=function(e,t,n,o,r,i){let a=e.overlayText,s=o;if(t&&a&&e.repeatOverlayText&&n){const e=i.width/n,t=Math.max(1,Math.floor(i.height/o)),l=Math.ceil(e*t);s=o*t,s+r<=i.height&&(s+=r),a=a.repeat(l)}return{overlayText:a,textHeight:s}}(t,n,a,u,l,c),h={fontSize:l,lineHeight:`${u}px`,height:t.repeatOverlayText?f:"100%"};if((0,ot.kv)(t)){const e=90===t.rotation||270===t.rotation;h.transformOrigin="50% 50%",h.transform=(e?`translate(${Math.round(c.width/2-c.height/2)}px, ${-Math.round(c.width/2-c.height/2)}px) `:"")+`rotate(${String(-t.rotation)}deg)`,e&&(h.width=c.height,h.height=c.width)}const m={top:(e.top-i.top)*o,left:(e.left-i.left)*o,width:c.width,height:c.height,cursor:r?"pointer":"auto",backgroundColor:n?"white":void 0},g={width:c.width,height:c.height},v=ao(ao({},g),{},{border:t.outlineColor instanceof j.Il?`2px solid ${t.outlineColor.toCSSValue()}`:void 0,opacity:t.opacity}),y=ao(ao({},g),{},{border:0,color:t.color instanceof j.Il?t.color.toCSSValue():void 0,backgroundColor:t.fillColor instanceof j.Il?t.fillColor.toCSSValue():"black",opacity:t.opacity}),b=F()({[ro().textContainer]:!0,[ro().selectable]:!0});return T.createElement("div",{key:s,className:ro().rectContainer,style:m},T.createElement("div",{className:b,style:n?y:v},n&&(t.repeatOverlayText||e.equals(d))&&T.createElement("span",{className:ro().textSpan,style:h},p)))}));return T.createElement(T.Fragment,null,p)}const lo=function(e){const{isSelectable:t,dispatch:n,annotation:o,zoomLevel:r,onFocus:i,onBlur:a,active:s,isDisabled:l,isMultiAnnotationsSelected:c}=e,{boundingBox:u}=o,d=T.useRef(s),p=T.useCallback((e=>{n((0,je.mg)(o,e))}),[n,o]),f=T.useCallback((e=>{i&&i(o,e)}),[i,o]),h=T.useCallback((e=>{a&&a(o,e)}),[a,o]),m=T.useRef(null),g=(0,A.v9)((e=>e.previewRedactionMode));T.useEffect((()=>{m.current&&m.current.ownerDocument.activeElement!==m.current&&(!d.current&&s?m.current.focus():d.current&&!s&&l&&h((0,no.M)("blur"))),d.current=s}),[s,h,l]);const v={width:u.width*r,height:u.height*r,cursor:t?"pointer":"auto"};return T.createElement(Be,{zoomLevel:e.zoomLevel,position:u.getLocation(),className:ro().wrapper,disablePointerEvents:!0,isMultiAnnotationsSelected:c},T.createElement(_e.Z,{is:"div",disabled:Boolean(e.isDisabled),className:F()(ro().container,"PSPDFKit-Redaction-Annotation PSPDFKit-Annotation",s&&!e.isDisabled&&"PSPDFKit-Annotation-Selected",s&&!e.isDisabled&&"PSPDFKit-Redaction-Annotation-Selected"),style:v,"data-annotation-id":o.id,onClick:p,onFocus:f,onBlur:h,innerRef:m},e.active?T.createElement("div",{className:ro().active}):null,T.createElement(so,{annotation:o,previewRedactionMode:g,isSelectable:t,zoomLevel:r})))};var co,uo=n(65642),po=n.n(uo);class fo extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"shouldComponentUpdate",ze.O)}render(){const{color:e,markupStyle:t,zoomLevel:n,pageRotation:o}=this.props,r=(0,ln.SK)(),i=0!==o?{transform:`rotate(${90*o}deg)`}:{};return T.createElement("svg",{className:po().markup,style:t,focusable:!1},T.createElement("defs",null,T.createElement("pattern",{id:r,width:"8",height:"3",patternUnits:"userSpaceOnUse",fill:e instanceof j.Il?e.toCSSValue():"transparent",style:i},co||(co=T.createElement("path",{d:"M8 2.9C7.2 2.9 6.7 2.3 6.5 1.9 6.2 1.5 6.1 1.4 6 1.4 5.9 1.4 5.8 1.5 5.5 1.9 5.3 2.3 4.8 2.9 4 2.9 3.2 2.9 2.7 2.3 2.5 1.9 2.2 1.5 2.1 1.4 2 1.4 1.9 1.4 1.8 1.5 1.5 1.9 1.3 2.3 0.8 2.9 0 2.9L0 1.6C0.1 1.6 0.2 1.5 0.5 1.1 0.7 0.7 1.2 0.1 2 0.1 2.8 0.1 3.3 0.7 3.5 1.1 3.8 1.5 3.9 1.6 4 1.6 4.1 1.6 4.2 1.5 4.5 1.1 4.7 0.7 5.2 0.1 6 0.1 6.8 0.1 7.3 0.7 7.5 1.1 7.8 1.5 7.9 1.6 8 1.6L8 2.9 8 2.9Z"})))),T.createElement("rect",{fill:`url(#${r})`,width:"100%",height:"100%",transform:`scale(${n<1?`1, ${n}`:`${n}`})`}))}}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function mo(e){for(var t=1;t{this.el=e})),(0,o.Z)(this,"_handlePress",(e=>{this.props.dispatch((0,je.mg)(this.props.annotation,e))})),(0,o.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n}=this.props;t&&t(n,e),this.props.dispatch((0,je.Oc)(n.id))})),(0,o.Z)(this,"_handleCommentIconPress",(e=>{this._handlePress(e),e.stopPropagation()}))}componentDidUpdate(e){this.el&&this.el.ownerDocument.activeElement!==this.el&&(this.props.isFocused&&this.el&&this.el.focus(),!e.active&&this.props.active?this.el.focus():e.active&&!this.props.active&&this.props.isDisabled&&this._handleBlur((0,no.M)("blur")))}render(){const{active:e,annotation:t,zoomLevel:n,isSelectable:o,intl:{formatMessage:r},backend:i,shouldKeepRenderingAPStream:s,pageRotation:l}=this.props,c=t instanceof j.FV,{boundingBox:u}=t,d=t.rects.map(((r,i)=>{const a=F()({[po().annotationRect]:!0,[po()[t.constructor.className]]:!0}),s={top:(r.top-u.top)*n,left:(r.left-u.left)*n,width:r.width*n,height:r.height*n,opacity:t.opacity,cursor:o?"pointer":"auto"},d=function(e){let{annotation:t,rect:n,zoomLevel:o,pageRotation:r}=e;const i={width:n.width*o,height:n.height*o,backgroundColor:t.color instanceof j.Il?t.color.toCSSValue():"transparent"};if(t instanceof j.R9)switch(r){case 0:return mo(mo({},i),{},{height:Math.max(1,Math.floor(2*o)),marginTop:Math.max(1,Math.floor(-1*o))});case 1:return mo(mo({},i),{},{width:Math.max(1,Math.floor(2*o)),left:"auto",right:"50%",top:0,marginRight:Math.max(1,Math.floor(-1*o))});case 2:return mo(mo({},i),{},{height:Math.max(1,Math.floor(2*o)),top:"auto",bottom:"50%",marginBottom:Math.max(1,Math.floor(-1*o))});case 3:return mo(mo({},i),{},{width:Math.max(1,Math.floor(2*o)),right:"auto",left:"50%",top:0,marginLeft:Math.max(1,Math.floor(-1*o))})}else if(t instanceof j.xu)switch(r){case 0:return mo(mo({},i),{},{marginTop:Math.max(1,Math.floor(2*o)),height:Math.max(1,Math.floor(2*o))});case 1:return mo(mo({},i),{},{marginRight:Math.max(1,Math.floor(2*o)),width:Math.max(1,Math.floor(2*o))});case 2:return mo(mo({},i),{},{marginBottom:Math.max(1,Math.floor(2*o)),height:Math.max(1,Math.floor(2*o)),top:0});case 3:return mo(mo({},i),{},{width:Math.max(1,Math.floor(2*o)),left:"auto",marginLeft:Math.max(1,Math.floor(2*o))})}else if(t instanceof j.hL)switch(r){case 0:return mo(mo({},i),{},{height:3*o,overflow:"hidden"});case 1:return mo(mo({},i),{},{width:3*o,overflow:"hidden"});case 2:return mo(mo({},i),{},{height:3*o,top:0,overflow:"hidden"});case 3:return mo(mo({},i),{},{width:3*o,left:"auto",overflow:"hidden"})}return i}({annotation:t,rect:r,zoomLevel:n,pageRotation:l}),p={backgroundColor:t.color instanceof j.Il?t.color.toCSSValue():"transparent"};return T.createElement("div",{key:i,className:a,style:s},e?T.createElement("div",{className:F()({[po().active]:!c}),style:p}):null,t instanceof j.hL?T.createElement(fo,{markupStyle:d,color:t.color,zoomLevel:n,pageRotation:l}):T.createElement("div",{className:po().markup,style:d}))})).toArray(),p=(0,J.vk)(t.blendMode),f=p?{mixBlendMode:p}:void 0,h=mo({width:u.width*n,height:u.height*n,cursor:o?"pointer":"auto",outline:this.props.isFocused?J.A8:null},tt.G6?null:f),m=function(e){switch(e.constructor){case j.FV:return"Highlight";case j.R9:return"StrikeOut";case j.xu:return"Underline";case j.hL:return"Squiggle";default:throw new a.p2(`Unknown text markup annotation type of annotation: ${JSON.stringify(e.toJS())}`)}}(t),g=Ke.Z[`${m.charAt(0).toLowerCase()+m.slice(1)}Annotation`],v=F()(po().annotation,"PSPDFKit-Annotation","PSPDFKit-Text-Markup-Annotation",`PSPDFKit-${m}-Annotation`,{[po().activeTextMarkup]:e&&c,[po().highlight]:c,"PSPDFKit-Text-Markup-Annotation-selected":e,"PSPDFKit-Text-Markup-Comment-Annotation":t.isCommentThreadRoot}),y={};return e&&(y["data-testid"]="selected annotation"),T.createElement(Be,{position:u.getLocation(),zoomLevel:n,disablePointerEvents:!0,additionalStyle:tt.G6?f:void 0},T.createElement(_e.Z,(0,De.Z)({is:"div",style:h,className:v,onClick:this._handlePress,onFocus:this._handleFocus,onBlur:this._handleBlur,disabled:!!this.props.isDisabled,"data-annotation-id":t.id,"aria-label":`${r(Ke.Z.annotation)}: ${r(g)}`,innerRef:this._innerRef},y),T.createElement(T.Fragment,null,s&&T.createElement(lt,{annotation:t,zoomLevel:n,backend:i,label:r(g),onError:this.props.onError}),(!s||e)&&d)))}}(0,o.Z)(go,"defaultProps",{active:!1});const vo=(0,Re.XN)(go,{forwardRef:!0});var yo=n(68108),bo=n.n(yo);function wo(e){let{annotation:t,zoomLevel:n,isDisabled:o,backend:r,isFocused:i,isMultiAnnotationsSelected:a}=e;const s=T.useRef(null),{formatMessage:l}=(0,Re.YB)(),{boundingBox:c}=t,u={width:c.width*n,height:c.height*n};return T.useEffect((()=>{i&&s.current&&s.current.focus()}),[i]),T.createElement(Be,{position:c.getLocation(),zoomLevel:n,applyZoom:!0,isMultiAnnotationsSelected:a},T.createElement(_e.Z,{disabled:o,className:F()(bo().annotation,"PSPDFKit-Annotation-Unknown PSPDFKit-Annotation-Unsupported PSPDFKit-Annotation"),style:u,"data-annotation-id":t.id,"aria-label":l(Ke.Z.annotation),innerRef:s},r&&T.createElement(lt,{annotation:t,backend:r,zoomLevel:n,label:l(Ke.Z.annotation)})))}var So=n(19815),Eo=n(55961),Po=n(23661),xo=n.n(Po),Do=n(29544),Co=n.n(Do);function ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ao(e){for(var t=1;t{this.props.dispatch((0,je.mg)(this.props.annotation,e))})),(0,o.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n,annotationToFocus:o}=this.props;o===n.id&&this.props.dispatch((0,Qt.vy)(null)),t&&t(n,e)}))}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;var o;n!==t&&this.props.annotation.id===t&&(null===(o=this._inputRef.current)||void 0===o||o.focus())}render(){const{annotation:e,formField:{name:t,readOnly:n,buttonLabel:o,label:r},zoomLevel:i,formDesignMode:a,isRenderingAPStream:s,canFillFormFieldCP:l}=this.props,c="number"==typeof e.fontSize?e.fontSize:12,u=Ao({width:Math.ceil(e.boundingBox.width*i),height:Math.ceil(e.boundingBox.height*i)},s?{opacity:0}:Ao(Ao({},(0,nt.i2)(e,i)),{},{fontSize:Math.ceil(c*i),justifyContent:e.verticalAlign&&Io[e.verticalAlign]||"center",alignItems:e.horizontalAlign&&Fo[e.horizontalAlign]||"center"})),d=l&&!n,p=!d||a,f=F()({[xo().widget]:!0,[xo().onFocus]:!0,[xo().readOnly]:!d,[xo().flexText]:!0,[Co().btn]:!p,[Co().btnFormDesigner]:a,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-Button":!0,"PSPDFKit-Annotation-Widget-read-only":!d});return T.createElement("button",{ref:this._inputRef,className:f,disabled:p,name:t,type:To(e),style:u,onClick:this._handleClickAction,onFocus:this._handleFocus,onBlur:this._handleBlur},o||r||"")}}function To(e){const{action:t}=e;if(!t)return"button";switch(t.constructor){case c.BO:return"reset";case c.pl:return"submit";default:return"button"}}const Io={top:"flex-start",center:"center",bottom:"flex-end"},Fo={left:"flex-start",center:"center",right:"flex-end"};var Mo=n(96114),_o=n(69554),Ro=n.n(_o);function No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}class Lo extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"state",{checked:(0,nt.CK)(this.props.formField,this.props.annotation)}),(0,o.Z)(this,"UNSAFE_componentWillReceiveProps",(e=>{e.formField.values.equals(this.props.formField.values)||this.setState({checked:(0,nt.CK)(e.formField,e.annotation)})})),(0,o.Z)(this,"_inputRef",T.createRef()),(0,o.Z)(this,"_onChange",(()=>{const{formField:e,annotation:t}=this.props,n=(0,nt.l_)(e,t),o=this.state.checked?(0,i.aV)(["Off"]):(0,i.aV)([n]),r=(0,nt.g6)(e,t,!this.state.checked);this.setState({checked:!this.state.checked}),this.props.dispatch((0,Mo.xh)([{name:e.name,value:o,optionIndexes:r}]))})),(0,o.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;null==t||t(n,e)})),(0,o.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n}=this.props;this.props.annotationToFocus===this.props.annotation.id&&this.props.dispatch((0,Qt.vy)(null)),null==t||t(n,e)}))}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;var o;n!==t&&this.props.annotation.id===t&&(null===(o=this._inputRef.current)||void 0===o||o.focus())}render(){const{annotation:{id:e},annotation:t,zoomLevel:r,formField:i,formDesignMode:a,isRenderingAPStream:s,canFillFormFieldCP:l}=this.props,{readOnly:c}=i,u=(0,nt.l_)(i,t),d=function(e){for(var t=1;t=this.itemCount)throw Error("Requested index "+e+" is outside of range 0.."+this.itemCount);if(e>this.lastMeasuredIndex){for(var t=this.getSizeAndPositionOfLastMeasuredItem(),n=t.offset+t.size,o=this.lastMeasuredIndex+1;o<=e;o++){var r=this.itemSizeGetter(o);if(null==r||isNaN(r))throw Error("Invalid size returned for index "+o+" of value "+r);this.itemSizeAndPositionData[o]={offset:n,size:r},n+=r}this.lastMeasuredIndex=e}return this.itemSizeAndPositionData[e]},e.prototype.getSizeAndPositionOfLastMeasuredItem=function(){return this.lastMeasuredIndex>=0?this.itemSizeAndPositionData[this.lastMeasuredIndex]:{offset:0,size:0}},e.prototype.getTotalSize=function(){var e=this.getSizeAndPositionOfLastMeasuredItem();return e.offset+e.size+(this.itemCount-this.lastMeasuredIndex-1)*this.estimatedItemSize},e.prototype.getUpdatedOffsetForIndex=function(e){var t=e.align,n=void 0===t?qo:t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a,s=this.getSizeAndPositionForIndex(i),l=s.offset,c=l-o+s.size;switch(n){case"end":a=c;break;case Ho:a=l-(o-s.size)/2;break;case qo:a=l;break;default:a=Math.max(c,Math.min(l,r))}var u=this.getTotalSize();return Math.max(0,Math.min(u-o,a))},e.prototype.getVisibleRange=function(e){var t=e.containerSize,n=e.offset,o=e.overscanCount;if(0===this.getTotalSize())return{};var r=n+t,i=this.findNearestItem(n);if(void 0===i)throw Error("Invalid offset "+n+" specified");var a=this.getSizeAndPositionForIndex(i);n=a.offset+a.size;for(var s=i;n=e?this.binarySearch({high:n,low:0,offset:e}):this.exponentialSearch({index:n,offset:e})},e.prototype.binarySearch=function(e){for(var t=e.low,n=e.high,o=e.offset,r=0,i=0;t<=n;){if(r=t+Math.floor((n-t)/2),(i=this.getSizeAndPositionForIndex(r).offset)===o)return r;io&&(n=r-1)}return t>0?t-1:0},e.prototype.exponentialSearch=function(e){for(var t=e.index,n=e.offset,o=1;t=n)&&(e=0),this.sizeAndPositionManager.getUpdatedOffsetForIndex({align:t,containerSize:this.props[er[r]],currentOffset:this.state&&this.state.offset||0,targetIndex:e})},t.prototype.getSize=function(e){var t=this.props.itemSize;return"function"==typeof t?t(e):Array.isArray(t)?t[e]:t},t.prototype.getStyle=function(e){var t=this.styleCache[e];if(t)return t;var n,o=this.props.scrollDirection,r=void 0===o?$o:o,i=this.sizeAndPositionManager.getSizeAndPositionForIndex(e),a=i.size,s=i.offset;return this.styleCache[e]=Uo({},ir,((n={})[er[r]]=a,n[tr[r]]=s,n))},t.prototype.recomputeSizes=function(e){void 0===e&&(e=0),this.styleCache={},this.sizeAndPositionManager.resetItem(e)},t.prototype.render=function(){var e,t=this.props,n=(t.estimatedItemSize,t.height),o=t.overscanCount,r=void 0===o?3:o,i=t.renderItem,a=(t.itemCount,t.itemSize,t.onItemsRendered),s=(t.onScroll,t.scrollDirection),l=void 0===s?$o:s,c=(t.scrollOffset,t.scrollToIndex,t.scrollToAlignment,t.style),u=t.width,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{if(e.isEmpty())return"";{const t=this.props.formField.options.find((t=>t.get("value")===e.first()));return t?t.label:e.first()||""}})),(0,o.Z)(this,"state",{initialValue:this._getInput(this.props.formField.values),value:this._getInput(this.props.formField.values),values:this.props.formField.values,isOpen:!1,isFocused:!1,textSelected:!1}),(0,o.Z)(this,"_getSelectedLabel",(()=>{const{options:e}=this.props.formField,t=this.state.values.first(),n=e.find((e=>e.value===t));return n&&n.label||t})),(0,o.Z)(this,"UNSAFE_componentWillReceiveProps",(e=>{e.formField.values!==this.props.formField.values&&this.setState({values:e.formField.values})})),(0,o.Z)(this,"_onChange",(e=>{const t=e.currentTarget,{value:n}=t,{backend:o,formField:r,annotation:i}=this.props;if(!(0,nt.sC)(o,i,r))return void this.setState({value:n,textSelected:!1});const{selectionStart:s,selectionEnd:l}=t,c=(0,$.QE)(this.state.initialValue,n,s);this.latestKeystrokeDiff=c;const u={change:c.change,value:c.prev,returnCode:!0,name:this.props.formField.name,selStart:s,selEnd:l};this.setState({value:n,textSelected:!1}),o.onKeystrokeEvent(u).then((e=>{if(c!==this.latestKeystrokeDiff||0===e.length)return;const n=e[0].object;if(!n.returnCode)return void this.setState({value:this.state.initialValue,textSelected:!1});const o=(0,$.F6)(c,n.change),r=e.slice(1);r.length&&this.props.dispatch((0,Mo.bt)({changes:r})),this.setState({value:o,initialValue:o,textSelected:!1},(function(){n.selStart!==t.selectionStart&&(t.selectionStart=n.selStart),n.selEnd!==t.selectionEnd&&(t.selectionEnd=n.selEnd)}))})).catch(a.vU)})),(0,o.Z)(this,"_onSelect",(e=>{if(!e){const e=this.state;return this.setState({values:e.values,isOpen:!1,value:e.value,textSelected:!1},(()=>{this.props.onOpenStateChange(this.state.isOpen)})),this.latestKeystrokeDiff=null,void(this._button&&this._button.focus())}const t=(0,i.aV)([e.value]);this.setState({values:t,isOpen:!1,value:e.label,textSelected:!1},(()=>{this.props.onOpenStateChange(this.state.isOpen)})),this.latestKeystrokeDiff=null,this.props.formField.commitOnChange&&(this.props.formField.values.equals(t)||this.props.dispatch((0,Mo.xh)([{name:this.props.formField.name,value:t}]))),this._button&&this._button.focus()})),(0,o.Z)(this,"_handleBlur",(e=>{e.persist();const{currentTarget:t}=e;this.props.dispatch((0,Qt.vy)(null)),this.latestKeystrokeDiff=null,setTimeout((()=>{if(!t.contains(this.props.frameWindow.document.activeElement)){const t=this._getInput(this.state.values);this.setState({isOpen:!1,isFocused:!1,value:t,initialValue:t},(()=>{this.props.onOpenStateChange(this.state.isOpen)})),this.props.formField.values.equals(this.state.values)||this.props.dispatch((0,Mo.xh)([{name:this.props.formField.name,value:this.state.values}]));const{onBlur:n,annotation:o}=this.props;n&&n(o,e)}}),0)})),(0,o.Z)(this,"calculateFilteredOptions",(()=>{const e=this.state.isOpen,{formField:{options:t,edit:n}}=this.props,o=e?t.toSeq().filter((e=>this.state.textSelected||!this.state.value||e.label.toLowerCase().includes(this.state.value.toLowerCase()))).toList():(0,i.aV)();return n?o.some((e=>this.state.value.includes(e.label)))?o:o.unshift(new j.mv({label:this.state.value,value:this.state.value})):o})),(0,o.Z)(this,"_renderComboBoxTop",((e,t,o,r)=>{const{name:i,readOnly:a}=this.props.formField,s=this.props.formDesignMode,l=this.props.canFillFormFieldCP&&!a,c=F()({[ur().comboBoxTop]:!0,"PSPDFKit-Annotation-Widget-ComboBox-Button":!0,"PSPDFKit-Annotation-Widget-read-only":!l}),u=this._getSelectedLabel();return T.createElement("div",{className:c,onClick:this._openDropdownClick,ref:r},T.createElement("button",{"aria-controls":`PSPDFKit-dd-${this.props.formField.name}-menu`,"aria-expanded":o,"aria-haspopup":"true",tabIndex:o?-1:0,style:e,disabled:!l||s,className:ur().valueBtn,onFocus:e=>{this.setState({isFocused:!0});const{onFocus:t,annotation:n}=this.props;t&&(e.persist(),t(n,e))},ref:e=>this._button=e,name:i,value:u},u),T.createElement("div",(0,De.Z)({"aria-hidden":!o,className:ur().arrowBtn},t),T.createElement(Ye.Z,{src:n(58021)})))})),(0,o.Z)(this,"_openDropdownClick",(()=>{this.props.formField.readOnly||this.props.formField.formDesignMode||!this.props.canFillFormFieldCP||this.setState((e=>{let{isOpen:t}=e;return{isOpen:!t}}),(()=>{this._inputRef.current&&(this._inputRef.current.select(),this.setState({textSelected:!0},(()=>{this.props.onOpenStateChange(this.state.isOpen)})))}))})),(0,o.Z)(this,"_setContentElementRect",(e=>{this.props.handleComboxBoxRect(e)})),(0,o.Z)(this,"_downShiftRenderFn",(e=>{let{getInputProps:t,getItemProps:n,getToggleButtonProps:o,isOpen:i,highlightedIndex:a}=e;const{annotation:{boundingBox:{width:s,height:l}},annotation:c,formField:{doNotSpellCheck:u,readOnly:d,required:p},formDesignMode:f,isRenderingAPStream:h,canFillFormFieldCP:m,viewportState:g}=this.props,{zoomLevel:v}=g,y=this.calculateFilteredOptions(),b=y.size>5?5:y.size,w={fontSize:10*v,padding:2*v},S=d||f||!m,E=t({ref:this._inputRef,value:this.state.value,onFocus:()=>this.setState({isOpen:!0},(()=>{this.props.onOpenStateChange(this.state.isOpen)})),spellCheck:!u,onChange:this._onChange}),P=o(),x=F()({[ur().comboBox]:!0,[ur().expanded]:i,[xo().widget]:!0,[xo().focusedWidget]:i||this.state.isFocused,[xo().readOnly]:S,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-ComboBox":!0,"PSPDFKit-Annotation-Widget-ComboBox-isOpen":i,"PSPDFKit-Annotation-Widget-Required":p}),D=Math.max(4,Math.min(.7*l,12))*v,C=90===c.rotation||270===c.rotation,k=this._memoizedCalculateFontSize(this._getSelectedLabel(),s,l,c.fontSize,!1,0,this._inputRef.current),A=fr({width:Math.ceil(c.boundingBox.width*v),height:Math.ceil(c.boundingBox.height*v)},h?{opacity:0}:(0,nt.i2)(c,v,!1)),{height:O,width:I,opacity:M}=A,_=(0,r.Z)(A,dr),R=fr(fr({},(0,nt.VY)(c,v)),{},{borderWidth:Math.max(1,v),fontSize:D,opacity:M,[C?"height":"width"]:I,[C?"width":"height"]:O}),N=fr(fr({},_),{},{cursor:S?"default":"pointer",padding:`0 ${lr.DI*v}px`,fontSize:k*v,[C?"width":"height"]:O,[C?"height":"width"]:I}),L=F()({[ur().menu]:!0,"PSPDFKit-Annotation-Widget-ComboBox-Menu":!0});return T.createElement("div",{className:x,style:fr(fr({},R),i?{position:"fixed"}:void 0),tabIndex:-1,onBlur:this._handleBlur},T.createElement(mr,{viewportRect:g.viewportRect,isVertical:90===c.rotation||270===c.rotation,setContentElementRect:this._setContentElementRect},(e=>{let{referenceRef:t,contentRef:o,style:r}=e;return T.createElement(T.Fragment,null,this._renderComboBoxTop(N,P,i,t),i&&T.createElement("div",{className:L,ref:o,style:r},T.createElement("input",(0,De.Z)({},E,{className:F()(ur().comboBoxInput,"PSPDFKit-Annotation-Widget-ComboBox-SearchInput"),style:{textAlign:"center"},tabIndex:-1,required:p})),T.createElement("div",{className:F()(ur().comboBoxList,"PSPDFKit-Annotation-Widget-ComboBox-List"),id:`PSPDFKit-dd-${this.props.formField.name}-menu`},y.isEmpty()?T.createElement("div",{className:ur().comboBoxListItem,style:w},"No results found"):T.createElement(sr,{scrollToIndex:a||0,scrollToAlignment:"auto",width:"100%",height:Math.ceil(20*b*v),itemCount:y.size,itemSize:Math.ceil(20*v),renderItem:e=>{let{index:t,style:o}=e;const r=y.get(t),i=a===t;(0,Ne.k)(r);const s=this.state.values.includes(r.get("value")),l=F()({[ur().comboBoxListItem]:!0,[ur().comboBoxListItemActive]:i,[ur().comboBoxListItemSelected]:s});let c;return c=0===t&&this.props.formField.edit&&!this.props.formField.options.includes(r)?r.label.length?`Create "${r.label}"`:T.createElement("span",{className:ur().empty},"(empty)"):r.label,T.createElement("div",(0,De.Z)({className:F()(l,"PSPDFKit-Annotation-Widget-ComboBox-ListItem",{"PSPDFKit-Annotation-Widget-ComboBox-ListItem-Active":i,"PSPDFKit-Annotation-Widget-ComboBox-ListItem-Selected":s}),title:r.label},n({key:r.value,index:t,item:r,style:fr(fr({},o),w)})),c)}}))))})))})),(0,o.Z)(this,"_itemToString",(e=>e?e.label:""))}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;n!==t&&this.props.annotation.id===t&&this._openDropdownClick()}componentWillUnmount(){this.latestKeystrokeDiff=null}render(){const{frameWindow:e}=this.props;return T.createElement(Bo.ZP,{environment:e,onSelect:this._onSelect,itemToString:this._itemToString,isOpen:this.state.isOpen,defaultHighlightedIndex:0},this._downShiftRenderFn)}}const mr=function(e){const{children:t,viewportRect:n,isVertical:o,setContentElementRect:r}=e,[i,a]=T.useState(null),[s,l]=T.useState(null),[c,u]=T.useState(null),d=T.useCallback((()=>{const e=s?s.getBoundingClientRect():null,t=i?i.getBoundingClientRect():null,a=o?"left":"top",l=o?"width":"height";let c=e?e[l]:0;null!==t&&null!==e&&e[a]+e[l]+t[l]>n[l]&&0!==e[a]&&(c=-t[l]),r&&r(t),u({top:c})}),[i,s,n,o]);T.useLayoutEffect((()=>{d()}),[d]);return t({referenceRef:e=>l(e),contentRef:e=>a(e),style:fr(fr({position:"absolute"},c),{},{width:"100%"},s&&i?null:{opacity:0})})};var gr=n(82654),vr=n.n(gr);function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function br(e){for(var t=1;t{e.formField.values.equals(this.props.formField.values)||this.setState({values:e.formField.values})})),(0,o.Z)(this,"_inputRef",T.createRef()),(0,o.Z)(this,"_onChange",(e=>{const t=e.target.options,n=(0,i.dM)([...t]).filter((e=>e.selected)).map((e=>e.value)).toList();this.setState({values:n}),this.props.formField.commitOnChange&&(this.props.formField.values.equals(n)||this.props.dispatch((0,Mo.xh)([{name:this.props.formField.name,value:n}])))})),(0,o.Z)(this,"_onBlur",(e=>{this.props.annotationToFocus===this.props.annotation.id&&this.props.dispatch((0,Qt.vy)(null)),this.props.formField.values.equals(this.state.values)||this.props.dispatch((0,Mo.xh)([{name:this.props.formField.name,value:this.state.values}]));const{onBlur:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"_onFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)}))}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;var o;n!==t&&this.props.annotation.id===t&&(null===(o=this._inputRef.current)||void 0===o||o.focus())}render(){const{annotation:e,formField:{options:t,name:n,multiSelect:o,readOnly:r,required:i},zoomLevel:a,formDesignMode:s,isRenderingAPStream:l,canFillFormFieldCP:c}=this.props,u=c&&!r,d=br({width:Math.ceil(e.boundingBox.width*a),height:Math.ceil(e.boundingBox.height*a)},l?{opacity:0}:br(br({},(0,nt.i2)(e,a)),{},{fontSize:Math.ceil(12*a),textAlign:e.horizontalAlign})),p=F()({[vr().listBox]:!0,[xo().widget]:!0,[xo().onFocus]:!0,[xo().readOnly]:!u,[vr().listBoxRotated]:!!e.rotation,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-ListBox":!0,"PSPDFKit-Annotation-Widget-read-only":!u,"PSPDFKit-Annotation-Widget-Required":i}),f=o?this.state.values.toArray():this.state.values.size>0?this.state.values.get(0):void 0;return T.createElement("select",{ref:this._inputRef,disabled:!u||s,style:d,size:t.size,className:p,name:n,onChange:this._onChange,multiple:o,onBlur:this._onBlur,onFocus:this._onFocus,value:f,required:i},t.map((e=>T.createElement("option",{key:e.value,value:e.value},e.label))))}}var Sr=n(30667);const Er=["borderColor","borderWidth","borderStyle","height","width","opacity","backgroundColor"];function Pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function xr(e){for(var t=1;t{const t=(0,nt.CK)(e.formField,e.annotation);this.setState({checked:t})})),(0,o.Z)(this,"_inputRef",T.createRef()),(0,o.Z)(this,"handleChange",(()=>{const{dispatch:e,formField:t,annotation:n}=this.props;if(this.state.checked&&t.noToggleToOff)return;const o=(0,nt.g6)(t,n,!this.state.checked);e((0,Mo.xh)([{name:t.name,value:this.state.checked?null:(0,nt.l_)(t,n),optionIndexes:o}])),this.setState((e=>{let{checked:t}=e;return{checked:!t}}))})),(0,o.Z)(this,"uncheck",(e=>{const{formField:t,dispatch:n,annotation:o}=this.props;if(t.readOnly||t.noToggleToOff||!this.state.checked||"keydown"===e.type&&e.keyCode!==Sr.tW)return;"keydown"===e.type&&e.preventDefault();const r=(0,nt.g6)(t,o,!1);n((0,Mo.xh)([{name:t.name,value:null,optionIndexes:r}]))})),(0,o.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n,annotationToFocus:o}=this.props;o===n.id&&this.props.dispatch((0,Qt.vy)(null)),t&&t(n,e)}))}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;var o;n!==t&&this.props.annotation.id===t&&(null===(o=this._inputRef.current)||void 0===o||o.focus())}render(){const{annotation:{id:e},annotation:t,zoomLevel:n,formField:o,formDesignMode:i,isRenderingAPStream:a,canFillFormFieldCP:s}=this.props,{checked:l}=this.state,c=xr({width:Math.ceil(t.boundingBox.width*n),height:Math.ceil(t.boundingBox.height*n)},a?{opacity:0}:(0,nt.i2)(t,n,!1)),{borderColor:u,borderWidth:d,borderStyle:p,height:f,width:h,opacity:m,backgroundColor:g}=c,v=(0,r.Z)(c,Er),{transform:y,transformOrigin:b}=(0,nt.i2)(t,n);let w={width:h,height:f,opacity:m};(0,ot.kv)(t)&&(w=xr(xr({},w),{},{transform:y,transformOrigin:b}));const S=s&&!o.readOnly,E=F()({[Ro().input]:!0,[Ro().inputRadio]:!0,[xo().widget]:!0,[xo().readOnly]:!S,"PSPDFKit-Annotation-Widget-RadioButton-Control":!0}),P=F()({[Ro().checkradio]:!0,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-RadioButton":!0,"PSPDFKit-Annotation-Widget-read-only":!S});return T.createElement("label",{style:w,className:P},T.createElement("input",{ref:this._inputRef,type:"radio",name:o.name,disabled:!S||i,key:e,checked:l,value:(0,nt.l_)(o,t),className:l?Ro().checked:null,onChange:S?this.handleChange:void 0,onClick:this.uncheck,onKeyDown:this.uncheck,onFocus:this._handleFocus,onBlur:this._handleBlur,style:v}),T.createElement("span",{className:E,style:{borderColor:u,borderWidth:null!=d?d:Math.max(1,n),borderStyle:p,backgroundColor:g}}))}}var Cr=n(43578),kr=n.n(Cr),Ar=n(67628);function Or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Tr(e){for(var t=1;t{this._focusableElement=e})),(0,o.Z)(this,"_handlePress",(e=>{e.stopPropagation(),e.preventDefault();const t=this.props.features.includes(ge.q.ELECTRONIC_SIGNATURES)?"es-signature":"ink-signature",n=this.props.isAnnotationPressPrevented({annotation:this.props.annotation,nativeEvent:e.nativeEvent,selected:!1});if(!e.isPrimary||n||this.props.isDigitallySigned)return;const{overlappingAnnotation:o}=this.state;o?this.props.dispatch((0,je.mg)(o,e,{selectedAnnotationShouldDrag:"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null})):(this._focusableElement&&this._focusableElement.focus(),this.props.dispatch((0,Qt.Ds)(t)),this.props.dispatch((0,En.Cc)({signatureRect:this.props.annotation.boundingBox,signaturePageIndex:this.props.annotation.pageIndex,formFieldName:this.props.formField.name})))})),(0,o.Z)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,o.Z)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n,annotationToFocus:o}=this.props;o===n.id&&this.props.dispatch((0,Qt.vy)(null)),t&&t(n,e)})),(0,o.Z)(this,"_handlePointerUp",(e=>{e.stopPropagation()}))}static getDerivedStateFromProps(e){const t=e.inkAnnotations.find((t=>t.boundingBox.isRectOverlapping(e.annotation.boundingBox)))||e.imageAnnotations.find((t=>t.boundingBox.isRectOverlapping(e.annotation.boundingBox)));return{overlappingAnnotation:t||null}}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;if(n!==t&&this.props.annotation.id===t&&!this.props.isDigitallySigned){const{overlappingAnnotation:e}=this.state,t=this.props.features.includes(ge.q.ELECTRONIC_SIGNATURES)?"es-signature":"ink-signature";e?this.props.dispatch((0,je.Df)((0,i.l4)([e.id]),null)):(this._focusableElement&&this._focusableElement.focus(),this.props.dispatch((0,Qt.Ds)(t)),this.props.dispatch((0,En.Cc)({signatureRect:this.props.annotation.boundingBox,signaturePageIndex:this.props.annotation.pageIndex,formFieldName:this.props.formField.name})))}}render(){const{formatMessage:e}=this.props.intl,{annotation:t,annotation:{boundingBox:n,id:o},formField:{readOnly:r,name:i},zoomLevel:a,formDesignMode:s,isDigitallySigned:l,hasSignatureLicenseComponent:c,backend:u,isDragging:d,canFillFormFieldCP:p,signatureFeatureAvailability:f}=this.props,h=Math.ceil(n.height*a),m=Tr(Tr({},(0,nt.i2)(t,a,!1)),{},{fontSize:(20e instanceof s.Zc)).toList(),u=l.filter((e=>e instanceof s.sK)).toList();return{isDigitallySigned:(0,Mr.Zt)(e,n),inkAnnotations:c,imageAnnotations:u,isAnnotationPressPrevented:t=>(0,J.TW)(t,e.eventEmitter),backend:e.backend,features:i,signatureFeatureAvailability:a,hasSignatureLicenseComponent:i.includes(ge.q.DIGITAL_SIGNATURES)||i.includes(ge.q.ELECTRONIC_SIGNATURES)}}))(Fr),Rr=_r;function Nr(e,t){return Nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nr(e,t)}function Lr(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&&Nr(e,t)}var Br=n(34710),jr=n(4054);function zr(){zr=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,o,r){var i=new RegExp(e,o);return t.set(i,r||t.get(e)),Nr(i,n.prototype)}function o(e,n){var o=t.get(n);return Object.keys(o).reduce((function(t,n){var r=o[n];if("number"==typeof r)t[n]=e[r];else{for(var i=0;void 0===e[r[i]]&&i+1]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof r){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(o(e,a)),r.apply(this,e)}))}return e[Symbol.replace].call(this,n,r)},zr.apply(this,arguments)}function Kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Zr(e){for(var t=1;t{const e=this._inputRef.current;(0,a.kG)(e);const{value:t}=e,{comb:n,doNotScroll:o,multiLine:r}=this.props.formField,i=t.length{if(h!==this._latestKeystrokeDiff||0===t.length)return;const n=t[0].object;if(!n.returnCode)return void this.setState({value:this.state.initialValue,editingValue:this.state.initialEditingValue});const o=(0,$.F6)(h,n.change),r=t.slice(1);r.length&&this.props.dispatch((0,Mo.bt)({changes:r})),this.setState({value:o,initialValue:o,editingValue:o,initialEditingValue:o},(function(){n.selStart!==e.selectionStart&&(e.selectionStart=n.selStart),n.selEnd!==h.endCursorPosition&&(e.selectionEnd=n.selEnd)}))})).catch(a.vU)})),(0,o.Z)(this,"_onFocus",(e=>{const t=this._inputRef.current;this.setState({isFocused:!0,shouldRecalculateWhenOverflow:!!t&&t.clientHeight{this.setState({isFocused:!1}),this.props.annotationToFocus===this.props.annotation.id&&this.props.dispatch((0,Qt.vy)(null)),this._latestKeystrokeDiff=null,this._commitChanges();const{onBlur:t}=this.props;t&&(e.persist(),t(this.props.annotation,e.nativeEvent))}))}static getDerivedStateFromProps(e,t){return t.valueFromCurrentProps!==e.formField.value||t.readOnlyFromCurrentProps!==e.formField.readOnly?Gr(e,t):null}componentWillUnmount(){this._latestKeystrokeDiff=null,this._commitChanges();const{onBlur:e,annotation:t}=this.props;e&&e(t,(0,no.M)("blur"))}_commitChanges(){this.props.formField.value!==this.state.value&&this.props.dispatch((0,Mo.xh)([Zr({name:this.props.formField.name,value:this.state.value},this.props.formField.multiLine&&{isFitting:(0,lr.$Z)(this.props.annotation,this.state.value,this.props.zoomLevel)})]))}_dateFormat(){var e,t;const{annotation:n}=this.props,o=null===(e=n.additionalActions)||void 0===e||null===(t=e.onFormat)||void 0===t?void 0:t.script;if(!o)return null;const r=zr(/(AFTime|AFDate)_([FormatEx]*)\("*([0-9]+|[\w\d\s:\-/]*)"*\)/,{name:1,type:2,argument:3}),i=o.match(r);if(!i)return null;const{argument:a,type:s,name:l}=i.groups;if("FormatEx"===s){const e=a.match(/[d|y|m]/);return"AFDate"===l&&e||"AFTime"===l&&!e?a:null}switch(l){case"AFDate":return Ur[a];case"AFTime":return Vr[a]}return null}_dateInputType(e){if(e){const t=e.match(/[d|y|m]/),n=e.match(/[H|h|M|t]/);if(t&&n)return"datetime-local";if(n)return"time"}return"date"}_getReusableRealm(){return this._reusableRealm?this._reusableRealm.window.document.body.innerHTML="":this._reusableRealm=(0,jr.Aw)(this.props.frameWindow),this._reusableRealmRemoveTimeout&&clearTimeout(this._reusableRealmRemoveTimeout),this._reusableRealmRemoveTimeout=setTimeout((()=>{this._reusableRealm&&this._reusableRealm.remove(),this._reusableRealm=null,this._reusableRealmRemoveTimeout=null}),200),(0,a.kG)(this._reusableRealm),this._reusableRealm}componentDidUpdate(e){var t;e.annotationToFocus!==this.props.annotationToFocus&&this.props.annotationToFocus===this.props.annotation.id&&(null===(t=this._inputRef.current)||void 0===t||t.focus())}render(){const{annotation:{boundingBox:{width:e,height:t},lineHeightFactor:n},annotation:o,formField:{name:r,password:i,maxLength:a,doNotSpellCheck:s,doNotScroll:l,multiLine:c,readOnly:u,comb:d,required:p},zoomLevel:f,formDesignMode:h,formattedValue:m,frameWindow:g,isRenderingAPStream:v,canFillFormFieldCP:y}=this.props,b=function(e,t){return e.isFocused||null==t?e.isFocused&&null!=e.editingValue?e.editingValue:e.value:t}(this.state,m),w=this._memoizedCalculateFontSize(b,e,t,o.fontSize,c,o.borderWidth||0,this._inputRef.current),S=Zr({width:o.boundingBox.width*f,height:o.boundingBox.height*f,fontSize:w*f},v?{opacity:0}:Zr(Zr({},(0,nt.i2)(o,f)),{},{overflow:l?"hidden":"auto",paddingTop:0,paddingBottom:0,paddingLeft:c?lr.DI*f:0,paddingRight:c?lr.DI*f:0}));if(o.horizontalAlign&&(S.textAlign=o.horizontalAlign),o.verticalAlign&&!c&&("bottom"===o.verticalAlign?S.paddingTop=S.height-S.fontSize-2*S.borderWidth:"top"===o.verticalAlign&&(S.paddingBottom=S.height-S.fontSize-2*S.borderWidth)),d&&"number"==typeof a&&!c){const t=this._memoizedCalculateCombLetterSpacing(w,e,a,g.document,this._inputRef.current)*f;S.fontFamily="monospace",S.letterSpacing=t,S.paddingLeft=t/2,S.paddingRight=0}const E=i?"password":"text",P=y&&!u,x=F()({[xo().readOnly]:!P,[xo().widget]:!0,[xo().combNoPaddingLeftOnFocus]:d&&a,[xo().onFocus]:!0,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-Text":!0,"PSPDFKit-Annotation-Widget-read-only":!P,"PSPDFKit-Annotation-Widget-Required":p}),D=!P||h;if(!i&&c){let e=lr.n*f;const t=S.height-S.fontSize;t-2*e<0&&(e=t>0?t/2:0);const i=S.fontSize*(null!=n?n:1),l=S.height/i<2?0:Math.min((null!=n?n:1)*w*.4*f,5*f),c=Zr(Zr({},S),{},{resize:"none",paddingTop:e+l,paddingLeft:lr.DI*f,paddingRight:lr.DI*f,paddingBottom:Math.max(e-l,0),lineHeight:`${i}px`});if(o.verticalAlign&&"top"!==o.verticalAlign){this._usedHeight=this._memoizedGetTextareaUsedHeight(b||" ",o.boundingBox.width,f,w,this._getReusableRealm());const t=c.height-(this._usedHeight||c.fontSize);"bottom"===o.verticalAlign?c.paddingTop=c.height>this._usedHeight?t-e-2*c.borderWidth:0:"center"===o.verticalAlign&&(c.paddingTop=c.height>this._usedHeight?t/2-c.borderWidth:0,c.paddingBottom=c.height>this._usedHeight?t/2-e-c.borderWidth:0)}return T.createElement("textarea",{ref:this._inputRef,className:x,name:r,disabled:D,value:b,style:c,maxLength:a,spellCheck:!s,onChange:this._onChange,onBlur:this._onBlur,onFocus:this._onFocus,required:p})}const C=this._dateFormat(),k=this._dateInputType(C);return C&&k?T.createElement(ue.qe,{ref:this._inputRef,style:S,className:x,name:r,value:b,disabled:D,type:k,maxLength:a,format:C,onChange:this._onChange,onBlur:this._onBlur,onFocus:this._onFocus,required:p}):T.createElement("input",{ref:this._inputRef,className:x,type:E,disabled:D,maxLength:a,name:r,value:b,style:S,spellCheck:!s,onChange:this._onChange,onBlur:this._onBlur,onFocus:this._onFocus,required:p})}}function qr(e,t,n,o,r){let s,l=e/2;try{s=new Br.f(o,(0,i.aV)(["_"]),{fontSize:`${e}px`,width:`${t}px`,wordWrap:"break-word",whiteSpace:"pre-wrap",fontFamily:"monospace"},xo().widget,r&&r.parentNode);const n=s.measure().first();(0,a.kG)(n),l=n.width}finally{s&&s.remove()}const c=t/n-l;return Math.max(c,0)}function Hr(e,t,n,o,r){let i;try{const a={width:`${Math.ceil(t*n)}px`,fontSize:o*n+"px",padding:`0 ${lr.DI*n}px`,whiteSpace:"pre-wrap",overflowWrap:"break-word",maxWidth:t*n+"px",border:`${Math.max(1,n)}px solid transparent`,boxSizing:"border-box",display:"block",fontFamily:"Helvetica, sans-serif",margin:"0",outline:"0"};return i=new Br.f(r.window.document,e,a),i.wrapper?i.wrapper.scrollHeight:0}finally{i&&i.remove()}}var $r=n(61631),Yr=n(5020);function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Jr(e){for(var t=1;t{this._pointerRecognizer=e})),(0,o.Z)(this,"onFocus",((e,t)=>{const{onFocus:n,dispatch:o,annotation:{additionalActions:r,formFieldName:i}}=this.props;r&&r.onFocus&&o((0,$r.gH)(r.onFocus.script,i)),n&&n(e,t),this.setState({isFocused:!0})})),(0,o.Z)(this,"onBlur",((e,t)=>{const{onBlur:n,dispatch:o,annotation:{additionalActions:r,formFieldName:i}}=this.props;r&&r.onBlur&&o((0,$r.gH)(r.onBlur.script,i)),n&&n(e,t),this.setState({isFocused:!1})})),(0,o.Z)(this,"onPointerUp",(()=>{var e;null!==(e=this.props.annotation.additionalActions)&&void 0!==e&&e.onPointerUp&&this.props.dispatch((0,$r.TU)(this.props.annotation,"onPointerUp")),this.state.isDown&&this.setState({isDown:!1})})),(0,o.Z)(this,"onPointerEnter",(()=>{var e,t;this._elementBoundingBox=null===(e=this._pointerRecognizer)||void 0===e?void 0:e.getBoundingClientRect(),null!==(t=this.props.annotation.additionalActions)&&void 0!==t&&t.onPointerEnter&&this.props.dispatch((0,$r.TU)(this.props.annotation,"onPointerEnter")),this.props.hasRolloverVariantAPStream&&this.setState({isRollover:!0})})),(0,o.Z)(this,"onPointerLeave",(()=>{var e;null!==(e=this.props.annotation.additionalActions)&&void 0!==e&&e.onPointerLeave&&this.props.dispatch((0,$r.TU)(this.props.annotation,"onPointerLeave")),this.state.isRollover&&this.setState({isRollover:!1,isDown:!1})})),(0,o.Z)(this,"onRootPointerMove",(e=>{var t,n,o,r;this._elementBoundingBox&&this.state.isRollover&&(e.clientX<(null===(t=this._elementBoundingBox)||void 0===t?void 0:t.left)||e.clientX>(null===(n=this._elementBoundingBox)||void 0===n?void 0:n.right)||e.clientY<(null===(o=this._elementBoundingBox)||void 0===o?void 0:o.top)||e.clientY>(null===(r=this._elementBoundingBox)||void 0===r?void 0:r.bottom))&&this.onPointerLeave()})),(0,o.Z)(this,"handlePointerUp",(e=>{e.stopPropagation()})),(0,o.Z)(this,"handleOpenStateChange",(e=>{var t,n;(this.setState({isComboboxOpen:e}),this.props.isComboBoxOpen&&this.props.isComboBoxOpen(e),e)||(null===(t=(n=this.props).handleComboBoxRect)||void 0===t||t.call(n,null))})),(0,o.Z)(this,"handleComboBoxRect",(e=>{var t,n;null===(t=(n=this.props).handleComboBoxRect)||void 0===t||t.call(n,e)})),(0,o.Z)(this,"handlePointerDown",(e=>{if(e.isPrimary&&this.props.isSelectable&&this.props.hasDownVariantAPStream&&this.setState({isDown:!0}),!e.isPrimary||!this.props.isSelectable||this.props.formField instanceof j.R0&&!this.props.formDesignMode)return;const t={selectedAnnotationShouldDrag:"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null,stopPropagation:!0};this.props.dispatch((0,je.mg)(this.props.annotation,e,t))}))}renderWidgetComponent(e){const{formField:t,canFillFormFieldCP:n,frameWindow:o}=this.props;(0,a.kG)(t),(0,a.kG)(o);const r={dispatch:this.props.dispatch,annotation:this.props.annotation,zoomLevel:this.props.zoomLevel,frameWindow:o,onFocus:this.onFocus,onBlur:this.onBlur,onPointerUp:e?this.handlePointerUp:void 0,formDesignMode:this.props.formDesignMode,backend:this.props.backend,formattedValue:this.props.formattedValue,editingValue:this.props.editingValue,isRenderingAPStream:e,canFillFormFieldCP:n,viewportState:this.props.viewportState,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected,annotationToFocus:this.props.annotationToFocus};if(t instanceof j.$o)return T.createElement(Wr,(0,De.Z)({},r,{formField:t}));if(t instanceof j.Vi)return T.createElement(wr,(0,De.Z)({},r,{formField:t}));if(t instanceof j.rF)return T.createElement(Lo,(0,De.Z)({},r,{formField:t}));if(t instanceof j.fB)return T.createElement(hr,(0,De.Z)({},r,{handleComboxBoxRect:this.handleComboBoxRect,onOpenStateChange:this.handleOpenStateChange,formField:t}));if(t instanceof j.XQ)return T.createElement(Dr,(0,De.Z)({},r,{formField:t}));if(t instanceof j.R0)return T.createElement(Oo,(0,De.Z)({},r,{formField:t}));if(t instanceof j.Yo)return T.createElement(Rr,(0,De.Z)({},r,{isDragging:this.props.isDragging,formField:t}));throw new Error("Unsupported type for FormField.")}renderWidgetMaybeWithAPStream(){const{annotation:e,zoomLevel:t,backend:n,formField:o,isDragging:r,shouldKeepRenderingAPStream:i,intl:{formatMessage:a}}=this.props,s=i&&!this.state.isComboboxOpen&&(!this.state.isFocused||o instanceof j.rF||o instanceof j.XQ||o instanceof j.R0)&&!(o instanceof j.Yo),l=(0,J.vk)(e.blendMode),c=l?{mixBlendMode:l}:{};let u;return this.state.isRollover&&(u="rollover"),this.state.isDown&&(u="down"),T.createElement("div",{style:c},this.renderWidgetComponent(s),s?T.createElement(Pe.Reparent,{id:`annotation-widget-${e.id}`,className:it().APStreamParent},T.createElement(lt,{annotation:e,variant:u,zoomLevel:t,backend:n,formField:o,label:a(Ke.Z.annotation),isDragging:r})):null)}render(){const{annotation:{rotation:e,boundingBox:t,id:n},zoomLevel:o,formDesignMode:r,formField:i,isSelectable:a}=this.props;if(!i)return null;const s=90===(0,Yr.Lv)(e)||270===(0,Yr.Lv)(e);let l=ti,c=ni;return s&&(l=Jr(Jr({},l),{},{transformOrigin:"50% 50%",transform:(0,nt.G8)({width:Math.ceil(t.width*o),height:Math.ceil(t.height*o),rotation:(0,Yr.Lv)(e)})}),c=Jr(Jr({},c),{},{transformOrigin:"50% 50%",transform:(0,nt.G8)({width:Math.ceil(t.width*o),height:Math.ceil(t.height*o),rotation:(0,Yr.Lv)(e),reverse:!0})})),T.createElement(Be,{position:t.getLocation(),zoomLevel:o,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected},T.createElement(pt.Z,{onPointerDown:this.handlePointerDown,onPointerUp:this.onPointerUp,onPointerEnter:this.onPointerEnter,onPointerLeave:this.onPointerLeave,onRootPointerMove:this.onRootPointerMove,onDOMElement:this._pointerRecognizerRef},r&&a?T.createElement("div",{style:l,className:"PSPDFKit-Annotation","data-annotation-id":n},T.createElement("div",{style:c},this.renderWidgetMaybeWithAPStream())):T.createElement("div",{className:"PSPDFKit-Annotation","data-annotation-id":n},this.renderWidgetMaybeWithAPStream())))}}const ei=(0,Re.XN)(Qr,{forwardRef:!0}),ti={cursor:"pointer"},ni={pointerEvents:"none"};var oi=n(10284);const ri=(0,Eo.x)((function(e,t){let{annotation:n}=t;const o=e.formFields.get(n.formFieldName),r=o&&e.formattedFormFieldValues.get(o.name),i=o&&e.editingFormFieldValues.get(o.name);return{annotation:n,formField:(null==o?void 0:o.set("readOnly",(0,So.VY)(o,n,e)))||null,frameWindow:e.frameWindow,formDesignMode:e.formDesignMode,backend:e.backend,formattedValue:r,editingValue:i,canFillFormFieldCP:!!o&&(0,oi.os)(o,e),viewportState:e.viewportState,hasDownVariantAPStream:!("number"!=typeof n.pdfObjectId||!e.APStreamVariantsDown.has(n.pdfObjectId)),hasRolloverVariantAPStream:!("number"!=typeof n.pdfObjectId||!e.APStreamVariantsRollover.has(n.pdfObjectId)),annotationToFocus:e.widgetAnnotationToFocus}}),{forwardRef:!0})(ei),ii=ri;var ai=n(57497),si=n.n(ai),li=n(70094);const ci=li.p1;const ui=function(e){var t;const{annotation:n,dispatch:o,zoomLevel:r,isAnnotationSelected:i,activeAnnotationNote:a,visible:l}=e,c=a&&(null===(t=a.parentAnnotation)||void 0===t?void 0:t.id)===n.id,u=n.isCommentThreadRoot,d=T.useMemo((()=>c&&a?a:(0,li.Yu)(n,u?24:ci,u?24:ci)),[n,c,u,a]),p=d.position,f=(u||n.note||c)&&function(e){return!(e instanceof s.Qi||e instanceof s.gd||e instanceof s.Jn||e instanceof s.x_||e instanceof s.R1||function(e){return e.creatorName&&/AutoCAD SHX Text/i.test(e.creatorName)}(e))}(n),h=!tt.Ni&&!u,{width:m,height:g}=d.boundingBox,v={width:m,height:g,transformOrigin:"top left",transform:`translate(${m*r/2-m/2}px, ${g*r/2-g/2}px)`},y=n.constructor.readableName;return T.createElement(T.Fragment,null,f&&T.createElement(Be,{position:p,zoomLevel:r},T.createElement(pt.Z,{onPointerUp:e=>{u?o((0,je.mg)(n,e)):(i||o((0,je.mg)(d.parentAnnotation,e)),o((0,je.mv)(d))),e&&e.stopPropagation()}},T.createElement("div",{className:F()({"PSPDFKit-Annotation-Note":!0,[si().noteIndicator]:!0,[si().noteIndicatorActive]:i||c,[`PSPDFKit-Annotation-Note-${y}Annotation`]:!!y}),onMouseEnter:h?e=>{o((0,je._3)(d)),e&&e.stopPropagation()}:void 0,onMouseLeave:h?e=>{o((0,je._3)(null)),e&&e.stopPropagation()}:void 0},l?T.createElement(Ze.Z,{style:v,className:F()(si().icon,c&&si().iconActive),type:u?"comment-indicator":"note-indicator"}):T.createElement("div",{style:v})))))},di=T.memo((function(e){const{annotation:t,annotation:{boundingBox:n},zoomLevel:o,backend:r,onFocus:i,onBlur:s,isMultiAnnotationsSelected:l}=e,{formatMessage:c}=(0,Re.YB)(),u={width:n.width*o,height:n.height*o},[d,p]=T.useState(void 0),[f,h]=T.useState(void 0);T.useEffect((()=>{r.cachedRenderAnnotation(t,void 0,u.width,u.height).promise.then((e=>{if((null==e?void 0:e.element)instanceof HTMLImageElement)return h(e.element.src)})).catch((e=>{throw new a.p2(`Could not render the media annotation: ${e.message}`)}))}),[t,r,u.width,u.height]),T.useEffect((()=>{r.getAttachment(t.mediaAttachmentId).then((e=>p(e))).catch((()=>{throw new a.p2("Could not get media attachment for "+t.id)}))}),[t.mediaAttachmentId,r,t.id]);const m=T.useMemo((()=>d?URL.createObjectURL(d):""),[d]);T.useEffect((()=>function(){m&&URL.revokeObjectURL(m)}),[m]);const g=T.useCallback((function(e){i(t,e)}),[t,i]),v=T.useCallback((function(e){s(t,e)}),[t,s]);return m?T.createElement(Be,{position:n.getLocation(),zoomLevel:o,isMultiAnnotationsSelected:l},T.createElement("div",{className:F()("PSPDFKit-MediaAnnotation","PSPDFKit-Annotation"),"data-annotation-id":t.id,tabIndex:0,onFocus:g,onBlur:v},T.createElement("video",{src:m,controls:!0,width:u.width,height:u.height,poster:f,"aria-label":`${c(Ke.Z.annotation)}: ${c(Ke.Z.mediaAnnotation)} ${t.fileName}`},c(Ke.Z.mediaFormatNotSupported)))):null})),pi=di;var fi=n(58479);const hi=T.forwardRef((function(e,t){let{annotation:n,globalAnnotation:o,attachments:r,backend:i,dispatch:a,isAnnotationReadOnly:l,isDisabled:c,isHover:u,isFocused:d,onBlur:p,onFocus:f,pageSize:h,zoomLevel:m,rotation:g,pageRotation:v,isSelected:y,showAnnotationNotes:b,activeAnnotationNote:w,onClick:S,isResizing:E=!1,isModifying:P=!1,isDragging:x=!1,isRotating:D=!1,cursor:C,shouldRenderAPStream:k,isMultiAnnotationsSelected:O=!1,isComboBoxOpen:I,handleComboBoxRect:F}=e;const[M,_]=T.useState(!1),R=T.useCallback((()=>_(!0)),[]),N=(0,A.v9)((e=>"formFieldName"in n?e.formFields.get(n.formFieldName):void 0)),L=(0,A.v9)((e=>(0,Mr.Zt)(e,n))),B=(0,fi.jC)({annotation:n,formField:N,zoomLevel:m,isDigitallySignedWidget:L});T.useEffect((()=>{B&&dt({annotation:n,formField:N,zoomLevel:m,isDigitallySigned:L},B)&&_(!1)}),[n,N,m,L]);const j=l(n),z={backend:i,dispatch:a,isDisabled:c,isSelectable:!j,onBlur:p,onFocus:f,ref:t,zoomLevel:m,rotation:g,isDragging:x,shouldKeepRenderingAPStream:k&&!E&&!P&&!D&&!M,isFocused:d,isMultiAnnotationsSelected:O,cursor:C,isComboBoxOpen:I,handleComboBoxRect:F,onError:R},K=(0,A.v9)((e=>e.secondaryMeasurementUnit));let Z=null;return n instanceof s.Hu&&(Z=T.createElement(pi,(0,De.Z)({},z,{annotation:n}))),n instanceof s.sK?Z=T.createElement(ht,(0,De.Z)({},z,{attachment:n.imageAttachmentId?r.get(n.imageAttachmentId):null,annotation:n})):n instanceof s.Zc?Z=T.createElement(Gt,(0,De.Z)({},z,{annotation:n})):n instanceof s.R1?Z=T.createElement(Jt,(0,De.Z)({},z,{isHover:u,annotation:n})):n instanceof s.Qi?Z=T.createElement(sn,(0,De.Z)({},z,{isReadOnly:j,annotation:n})):n instanceof s.UX?Z=T.createElement(zn,(0,De.Z)({},z,{annotation:n,secondaryMeasurementUnit:K})):n instanceof s.GI?Z=T.createElement(Un,(0,De.Z)({},z,{annotation:n,globalAnnotation:o})):n instanceof s.gd?Z=T.createElement(eo,(0,De.Z)({},z,{pageSize:h,onClick:S,annotation:n,globalAnnotation:o})):n instanceof s.Wk?Z=T.createElement(lo,(0,De.Z)({},z,{active:y,annotation:n})):n instanceof s.On?Z=T.createElement(vo,(0,De.Z)({},z,{active:y,pageRotation:v,annotation:n})):n instanceof s.Ih?Z=T.createElement(wo,(0,De.Z)({},z,{annotation:n})):n instanceof s.x_?Z=T.createElement(ii,(0,De.Z)({},z,{annotation:n})):n instanceof s.Jn&&(Z=T.createElement(We,(0,De.Z)({},z,{isReadOnly:j,active:y,annotation:n}))),T.createElement(Ie,{key:n.id,zoomLevel:m,renderer:"Annotation",notCSSScaled:n instanceof s.x_},T.createElement(gi,{annotation:n},Z,b&&(0,J.YV)(n)&&T.createElement(ui,{dispatch:a,annotation:n,zoomLevel:m,isAnnotationSelected:y,activeAnnotationNote:w,visible:!0})))})),mi=hi;function gi(e){let{children:t}=e;return T.createElement("div",null,t)}const vi=(0,A.$j)(((e,t)=>{let{pageIndex:n}=t;return{viewportState:e.viewportState,transformClientToPage:function(t){return e.transformClientToPage(t,n)}}})),yi=(0,A.$j)((e=>({transformClientToPage:e.transformClientToPage})));var bi=n(51333),wi=n(2019),Si=n.n(wi);class Ei extends T.PureComponent{constructor(e){let t,n,r;if(super(e),(0,o.Z)(this,"layerRef",T.createRef()),(0,o.Z)(this,"_handlePointerUp",(e=>{if(!e.isPrimary)return;const t=this._getNormalizedMousePosition(e);if(!t)return;const n=this._fitRectInPage(new j.UL({left:t.x-this.sizes.width/2,top:t.y-this.sizes.height/2,width:this.sizes.width,height:this.sizes.height}),this.props.pageSize),o=this.props.annotation.set("pageIndex",this.props.pageIndex).set("boundingBox",n);e.stopPropagation(),o instanceof j.Qi?this.props.dispatch((0,Qt.FG)(o)):o instanceof j.Jn&&(this.props.dispatch((0,Qt.Zr)((0,i.aV)([o]))),this.props.dispatch((0,bi.mh)(o.id)))})),e.annotation instanceof j.Qi)t=n=r=Je.SP,this.cursor="context-menu";else{if(!(e.annotation instanceof j.Jn))throw Error("Annotation type not supported.");t=n=r=Je.zk,this.cursor="context-menu"}this.sizes={width:t,height:n,minWidth:r}}_getNormalizedMousePosition(e){const{target:t}=e;if(this.layerRef.current){const{defaultView:n}=this.layerRef.current.ownerDocument;if(t instanceof n.HTMLDivElement)return this.props.transformClientToPage(new j.E9({x:e.clientX,y:e.clientY}),this.props.pageIndex)}}_fitRectInPage(e,t){const{width:n,height:o}=t,r=this.sizes.minWidth||this.sizes.width;return e.top+e.height>o&&(e=e.set("top",o-e.height)),e.left+r>n&&(e=e.set("left",n-r)),e}render(){return T.createElement(pt.Z,{onPointerUp:this._handlePointerUp},T.createElement("div",{"data-testid":"create-annotation-layer"},T.createElement("div",{className:Si().layer,style:{cursor:this.cursor||"auto"},ref:this.layerRef})))}}const Pi=yi(Ei);var xi=n(921),Di=n.n(xi);class Ci extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"state",{currentSelectableAnnotation:null}),(0,o.Z)(this,"_handlePointerDownCapture",(e=>{this._pointerDownTime=Date.now();const t=this._transformToPagePoint(e);this._selectableAnnotation=this.findSelectableAnnotation(t);const n=this._selectableAnnotation instanceof j.R1;var o,r,i,a;(n&&(this._selectedAnnotationOnDown=this.findSelectedAnnotationAtPoint(t)),this._isInterestedInUpCapture=n&&!this._selectedAnnotationOnDown,e.metaKey||e.ctrlKey&&this.props.isMultiSelectionEnabled)?(null===(o=(r=this.props).setMultiAnnsInitialEvent)||void 0===o||o.call(r,e.nativeEvent),this.props.dispatch((0,En.YF)(!0))):null===(i=(a=this.props).setMultiAnnsInitialEvent)||void 0===i||i.call(a,void 0)})),(0,o.Z)(this,"_handlePointerUpCapture",(e=>{if(!this._selectableAnnotation||!this._isInterestedInUpCapture||!this.getSelection().isCollapsed)return;const t=Date.now()-this._pointerDownTime>300,n=this._selectableAnnotation,o=n instanceof j.R1;if(t&&!o)return void(this._selectableAnnotation=null);const r=n instanceof j.On||o,i=!this._selectedAnnotationOnDown&&Boolean(this.findSelectedAnnotationAtPoint(this._transformToPagePoint(e)));this.props.dispatch((0,je.mg)(n,e,{preventDefault:r,stopPropagation:r,clearSelection:i,longPress:t&&o}))})),(0,o.Z)(this,"_handlePointerUp",(e=>{if(!this.getSelection().isCollapsed||!this._selectableAnnotation||this._selectedAnnotationOnDown)return;const t=this._selectableAnnotation,n=t instanceof j.On;this.props.dispatch((0,je.mg)(t,e,{preventDefault:n,stopPropagation:n}))})),(0,o.Z)(this,"_handlePointerMove",(e=>{if("mouse"!==e.pointerType)return;const{currentSelectableAnnotation:t}=this.state,n=this._transformToPagePoint(e),o=this.findSelectableAnnotation(n);!(0,i.is)(o,t)&&(t&&this.props.hoverAnnotationIds.has(t.id)&&this.props.dispatch((0,je.IP)(t.id)),!o||this.props.hoverAnnotationIds.has(o.id)||this.checkifHoverPointIsDefferedRegion(new j.E9({x:e.clientX,y:e.clientY}))||this.props.dispatch((0,je.oX)(o.id)),this.setState({currentSelectableAnnotation:o}))}))}checkifHoverPointIsDefferedRegion(e){if(this.props.hitCaptureDefferedRect&&this.props.hitCaptureDefferedRect.length>0)for(const t of this.props.hitCaptureDefferedRect){if(e.x>=t.left&&e.x<=t.right&&e.y>=t.top&&e.y<=t.bottom)return!0}return!1}_transformToPagePoint(e){return this.props.transformClientToPage(new j.E9({x:e.clientX,y:e.clientY}),this.props.pageIndex)}_boundingBoxHitTest(e){const t=tt.Ni?Je.wK:Je.XZ;return n=>n instanceof j.R1?n.boundingBox.isPointInside(e):n.boundingBox.grow(t).isPointInside(e)}_findSelectableLinkAnnotation(e){return this.props.selectableLinkAnnotations.filter(J.Fp).findLast(this._boundingBoxHitTest(e))}_findSelectableTextMarkupAnnotation(e){return this.props.selectableTextMarkupAnnotations.filter(J.Fp).findLast((t=>t.rects.find((t=>t.grow(tt.Ni?Je.wK:Je.XZ).isPointInside(e)))))}findSelectableAnnotation(e){const t=this._findSelectableLinkAnnotation(e),n=this._findSelectableTextMarkupAnnotation(e);return t||n}findSelectedAnnotationAtPoint(e){return this.props.selectedAnnotations.findLast(this._boundingBoxHitTest(e))}getSelection(){return this.props.window.getSelection()}render(){const e=!!this.state.currentSelectableAnnotation,t=F()({[Di().layer]:!0,[Di().cursorText]:this.props.keepSelectedTool&&"TEXT"===this.props.interactionMode,[Di().cursorPointer]:e,"PSPDFKit-CursorPointer":e});return T.createElement(pt.Z,{onPointerMove:this._handlePointerMove,onPointerUp:this._handlePointerUp,onPointerDownCapture:this.props.isHitCaptureDeffered?void 0:this._handlePointerDownCapture,onPointerDown:this.props.isHitCaptureDeffered?this._handlePointerDownCapture:void 0,onPointerUpCapture:this._handlePointerUpCapture},T.createElement("div",{className:t},this.props.children))}}const ki=yi(Ci);class Ai extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"precision",Rt(this.props.zoomLevel)),(0,o.Z)(this,"pointsToPathArray",mt.Ei.ENABLE_INK_SMOOTH_LINES?e=>Nt(e,this.precision):Lt),(0,o.Z)(this,"_pathDataFromFragments",((e,t,n)=>{if(!n||n.length<3)return null;const o=this.props.annotation.lines.get(t);return!o||o.size{let{annotation:t,onDrawStart:n}=this.props;this.precision=Rt(this.props.zoomLevel),t=t.update("lines",(t=>t.push((0,i.aV)([e,new j.Wm({x:e.x,y:e.y,intensity:e.intensity})])))),t=t.set("boundingBox",Mt(t)),n(t)})),(0,o.Z)(this,"_onDraw",(e=>{let{annotation:t,onDraw:n}=this.props,o=t.lines.last();(0,a.kG)(o),o=e.reduce(((e,t)=>function(e,t,n){return 0===n||0===e.size||e.last().distance(t)>n}(e,t,this.props.distanceBetweenPoints)?e.push(t):e),o.pop()).push(e[e.length-1]),t=t.setIn(["lines",this.props.annotation.lines.size-1],o),t=t.set("boundingBox",function(e,t){const{boundingBox:n,lineWidth:o}=e;let{left:r,top:i,width:a,height:s}=n,l=Math.floor(r),c=Math.floor(i),u=Math.ceil(r+a),d=Math.ceil(i+s);return t.forEach((e=>{l=Math.floor(Math.min(r,e.x-o/2)),c=Math.floor(Math.min(i,e.y-o/2)),u=Math.ceil(Math.max(r+a,e.x+o/2)),d=Math.ceil(Math.max(i+s,e.y+o/2)),r=l,i=c,a=u-l,s=d-c})),new j.UL({left:r,top:i,width:a,height:s})}(t,o)),n(t)})),(0,o.Z)(this,"_onDrawEnd",(()=>{let{annotation:e,onDrawEnd:t}=this.props;const n=e.lines.last();if((0,a.kG)(n),n.size>1){const t=n.get(n.size-2);t&&0===n.last().distance(t)&&(e=e.updateIn(["lines",e.lines.size-1],(e=>e.pop())))}t(e)}))}render(){const{annotation:e,canvasSize:t,zoomLevel:n}=this.props,{boundingBox:o}=e;return T.createElement("div",{className:Kt().canvas,style:{cursor:this.props.cursor,mixBlendMode:(0,J.vk)(e.blendMode)},"data-testid":"ink-canvas-outer-div"},T.createElement(Be,{zoomLevel:n,applyZoom:!0},T.createElement("div",{style:{position:"absolute",top:o.top,left:o.left,width:o.width,height:o.height}},T.createElement(Wt,{isSelectable:!1,annotation:e,viewBox:o,pathDataFromFragments:this._pathDataFromFragments,precision:this.precision}))),T.createElement(Sn.Z,{scrollElement:this.props.scrollElement,size:t,onDrawStart:this._onDrawStart,onDrawCoalesced:this._onDraw,onDrawEnd:this._onDrawEnd,transformPoint:this.props.transformPoint,interactionMode:this.props.interactionMode,canScrollWhileDrawing:this.props.canScrollWhileDrawing}))}}(0,o.Z)(Ai,"defaultProps",{canvasSize:new j.$u({width:300,height:200}),distanceBetweenPoints:0,cursor:"default",zoomLevel:1});const Oi=(0,jo.Z)(jt);function Ti(e){const t=e.inkAnnotation.lineWidth/2*e.viewportState.zoomLevel;return{currentInkAnnotation:e.inkAnnotation,cursor:Oi(t),zoomLevel:e.viewportState.zoomLevel,inkAnnotationFromCurrentProps:e.inkAnnotation}}class Ii extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"state",Ti(this.props)),(0,o.Z)(this,"lastEndDrawingTime",Date.now()),(0,o.Z)(this,"_transformClientToPage",(e=>e.apply(this.props.clientToPageTransformation))),(0,o.Z)(this,"_onDrawStart",(e=>{const t=e.pageIndex,n={annotations:(0,i.aV)([e]),reason:u.f.DRAW_START};this.props.eventEmitter.emit("annotations.willChange",n),null===t?e=e.set("pageIndex",this.props.pageIndex):t!==this.props.pageIndex?(e=e.set("pageIndex",this.props.pageIndex),this.props.dispatch((0,Qt.vc)(e,this.props.pageIndex))):function(e,t,n){if(e.lines.size<2)return!0;const o=e.lines.last();if(null==e.lines.get(e.lines.size-2)||null==o||0===o.size||o.size>2)return!0;const r=.5*(t.width+t.height),i=e.lines.size<50?.15:.03,a=(Date.now()-n)/1e3;if(ae.some((e=>e.distance(s)(0,i.aV)([e.last()])))).set("boundingBox",Mt(e)),this.props.dispatch((0,Qt.vc)(e,this.props.pageIndex))),this.setState({currentInkAnnotation:e})})),(0,o.Z)(this,"_onDraw",(e=>{this.setState({currentInkAnnotation:e})})),(0,o.Z)(this,"_onDrawEnd",(e=>{const t={annotations:(0,i.aV)([e]),reason:u.f.DRAW_END};this.props.eventEmitter.emit("annotations.willChange",t),this.lastEndDrawingTime=Date.now(),this.setState({currentInkAnnotation:e},(()=>{this.state.currentInkAnnotation.lines.size&&this.props.dispatch((0,Qt.FG)(this.state.currentInkAnnotation))}))}))}static getDerivedStateFromProps(e,t){return(0,i.is)(t.inkAnnotationFromCurrentProps,e.inkAnnotation)||(0,i.is)(t.currentInkAnnotation,e.inkAnnotation)&&e.viewportState.zoomLevel===t.zoomLevel?null:Ti(e)}componentDidMount(){this.props.dispatch((0,En.X2)())}componentWillUnmount(){this.props.dispatch((0,En.Zg)())}render(){const e=this.state.currentInkAnnotation,{pageSize:t}=this.props,{INK_EPSILON_RANGE_OPTIMIZATION:n}=mt.Ei;return T.createElement(Ai,{scrollElement:this.props.scrollElement,annotation:e,canvasSize:t,onDrawStart:this._onDrawStart,onDrawEnd:this._onDrawEnd,onDraw:this._onDraw,transformPoint:this._transformClientToPage,distanceBetweenPoints:n/(this.props.viewportState.zoomLevel*(0,Ft.L)()),cursor:this.state.cursor,zoomLevel:this.props.viewportState.zoomLevel,interactionMode:this.props.interactionMode,canScrollWhileDrawing:this.props.canScrollWhileDrawing})}}const Fi=(0,A.$j)(((e,t)=>{let{pageIndex:n}=t;return{viewportState:e.viewportState,clientToPageTransformation:(0,de.zi)(e,n),eventEmitter:e.eventEmitter,interactionMode:e.interactionMode,canScrollWhileDrawing:e.canScrollWhileDrawing}}))(Ii);var Mi=n(52871);const _i=100;function Ri(e,t){const n=Math.floor(e.x/_i);return Math.floor(e.y/_i)*t+n}function Ni(e,t,n,o){const{lineWidth:r,id:i}=e,a=Math.ceil(o.width/_i),s=t/2;return e.lines.forEach(((e,t)=>{e.forEach(((e,o)=>{if(null==e)return;const l=Math.floor(e.x/_i),c=Math.floor(e.y/_i),u={point:e,annotationId:i,lineIndex:t,pointIndex:o,strokeRadius:r/2},d=Math.ceil((s+u.strokeRadius)/_i);for(let t=c-d;t<=c+d;t++)for(let o=l-d;o<=l+d;o++)if(o>-1&&t>-1){if(new Mi.Z({x:ot.x+n||e.y+ot.y+n)&&e.distance(t){let{pageIndex:n}=t;return{inkEraserCursorWidth:e.inkEraserCursorWidth,zoomLevel:e.viewportState.zoomLevel,clientToPageTransformation:(0,de.zi)(e,n),scrollElement:e.scrollElement,interactionMode:e.interactionMode}}))((function(e){const{canvasSize:t=new j.$u({width:300,height:200}),inkEraserCursorWidth:n,zoomLevel:o,dispatch:r,inkAnnotations:a,clientToPageTransformation:s}=e,l=T.useMemo((function(){return jt(n/2*o)}),[n,o]),[c,u]=T.useState({localAnnotations:a,lastErasedPointsPaths:[]}),d=T.useRef(null),p=T.useCallback((e=>e.apply(s)),[s]);T.useEffect((()=>{d.current=a.reduce(((e,o)=>Ni(o,n,e,t)),[]),u({localAnnotations:a,lastErasedPointsPaths:[]})}),[a,n,t]);const f=T.useCallback((e=>{u(function(e,t,n,o,r,i){const a=Math.ceil(i.width/_i),s={};return t.forEach((e=>{const t=Ri(e,a);o[t]&&o[t].forEach((t=>{t&&t.point&&Li(t.point,e,n/2,t.strokeRadius)&&(t.point=null,r.push([t.annotationId,t.lineIndex,t.pointIndex]),s[t.annotationId]=!0)}))})),{localAnnotations:e.map((e=>s[e.id]?e.withMutations((t=>{r.filter((t=>t[0]===e.id)).forEach((e=>{t.setIn(["lines",e[1],e[2]],null)}))})):e)),lastErasedPointsPaths:r}}(c.localAnnotations,Array.isArray(e)?e:[e],n,d.current,[],t))}),[c.localAnnotations,n,t]),h=T.useCallback((()=>{const e=function(e,t){return e.map(((e,n)=>e===t.get(n)?e:(e=e.withMutations((e=>{e.update("lines",(e=>e.reduce(((e,t)=>e.concat(t.reduce(((e,t)=>null==t?e.push((0,i.aV)()):e.update(-1,(e=>e.push(t)))),(0,i.aV)([(0,i.aV)()])).filter((e=>e.size>0)))),(0,i.aV)()).filter((e=>e.size>0))))}))).set("boundingBox",Mt(e))))}(c.localAnnotations,a);r((0,Qt.GZ)(e.filter((e=>e.lines&&e.lines.size>0)),e.filter((e=>!e.lines||0===e.lines.size)).map((e=>e.id))))}),[c.localAnnotations,r,a]);T.useEffect((()=>(r((0,En.X2)()),()=>{r((0,En.Zg)())})),[r]);const m=T.useCallback(((e,t,n)=>{var o;if(!n)return null;const{lastErasedPointsPaths:r,localAnnotations:i}=c;if(0===r.length)return n;const a=null==i||null===(o=i.find((t=>t.id===e)))||void 0===o?void 0:o.lines.get(t);return a&&a.size===n.length?r.reduce(((n,o)=>{if(function(e,t,n,o){return e[0]===n&&e[1]===o&&"M 0,0"!==t[e[2]]}(o,n,e,t)){n[o[2]]="M 0,0";const e=n[o[2]+1],t=a.get(o[2]+1);if(t&&ji(e)){const e=n[o[2]+2];n[o[2]+1]=`${ji(e)?"M":"L"} ${t.x},${t.y}`}const r=n[o[2]-1],i=a.get(o[2]-1),s=i?`L ${i.x},${i.y}`:"";if(ji(r)){const e=n[o[2]-2];i&&zi(e)&&(n[o[2]-1]=s)}else i&&zi(r)&&(n[o[2]-1]=s);return n}return n}),n):null}),[c]);return T.createElement("div",{className:Kt().canvas,style:{cursor:l}},c.localAnnotations.map((e=>T.createElement(Gt,{dispatch:r,annotation:e,isSelectable:!1,isDisabled:!0,zoomLevel:o,key:e.id,pathDataFromFragments:m}))),T.createElement(Sn.Z,{size:t,onDrawStart:f,onDrawCoalesced:f,onDrawEnd:h,transformPoint:p,interactionMode:e.interactionMode,scrollElement:e.scrollElement}))}));function ji(e){return"string"==typeof e&&e.startsWith("C")}function zi(e){return"string"==typeof e&&e.startsWith("M")}const Ki=(0,A.$j)(((e,t)=>{let{pageIndex:n}=t;return{inkEraserCursorWidth:e.inkEraserCursorWidth,zoomLevel:e.viewportState.zoomLevel,clientToPageTransformation:(0,de.zi)(e,n),scrollElement:e.scrollElement,interactionMode:e.interactionMode}}))((function(e){const{canvasSize:t=new j.$u({width:300,height:200}),inkEraserCursorWidth:n,zoomLevel:o,dispatch:r,inkAnnotations:a,clientToPageTransformation:s}=e,l=T.useMemo((function(){return jt(n/2*o)}),[n,o]),[c,u]=T.useState({localAnnotations:a,lastErasedLinesPaths:[]}),d=T.useRef(null),p=T.useCallback((e=>e.apply(s)),[s]);T.useEffect((()=>{d.current=a.reduce(((e,o)=>Ni(o,n,e,t)),[]),u({localAnnotations:a,lastErasedLinesPaths:[]})}),[a,n,t]);const f=T.useCallback((e=>{u(function(e,t,n,o,r,a){const s=Math.ceil(a.width/_i),l={};return t.forEach((e=>{const t=Ri(e,s);o[t]&&o[t].forEach((t=>{t&&t.point&&Li(t.point,e,n/2,t.strokeRadius)&&(t.point=null,r.push([t.annotationId,t.lineIndex]),l[t.annotationId]=!0)}))})),{localAnnotations:e.map((e=>l[e.id]?e.withMutations((t=>{r.filter((t=>t[0]===e.id)).forEach((e=>{t.setIn(["lines",e[1]],(0,i.aV)([]))}))})):e)),lastErasedLinesPaths:r}}(c.localAnnotations,Array.isArray(e)?e:[e],n,d.current,[],t))}),[c.localAnnotations,n,t]),h=T.useCallback((()=>{const e=function(e,t){return e.map(((e,n)=>e===t.get(n)?e:(e=e.update("lines",(e=>e.filter(Boolean).filter((e=>e.size>0))))).set("boundingBox",Mt(e))))}(c.localAnnotations,a);r((0,Qt.GZ)(e.filter((e=>{var t;return(null===(t=e.lines)||void 0===t?void 0:t.size)>0})),e.filter((e=>!e.lines||0===e.lines.size)).map((e=>e.id))))}),[c.localAnnotations,r,a]);return T.useEffect((()=>(r((0,En.X2)()),()=>{r((0,En.Zg)())})),[r]),T.createElement("div",{className:Kt().canvas,style:{cursor:l}},c.localAnnotations.map((e=>T.createElement(Gt,{dispatch:r,annotation:e,isSelectable:!1,isDisabled:!0,zoomLevel:o,key:e.id}))),T.createElement(Sn.Z,{size:t,onDrawStart:f,onDrawCoalesced:f,onDrawEnd:h,transformPoint:p,interactionMode:e.interactionMode,scrollElement:e.scrollElement}))}));class Zi extends T.Component{constructor(e){super(e),(0,o.Z)(this,"_handledBlur",!1),(0,o.Z)(this,"editor",T.createRef()),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"clearText",(()=>{const{current:e}=this.editor;if(!e)return"";e.innerText="",setTimeout((()=>{this.props.valueDidUpdate&&this.props.valueDidUpdate()}),0),this.focus()})),(0,o.Z)(this,"focus",(()=>{const{current:e}=this.editor;e&&(e.focus(),setTimeout((()=>{const{current:e}=this.editor;e&&("webkit"!==tt.SR&&(this._handledBlur=!0,e.blur()),e.focus())}),0),this.setInitialSelection())})),(0,o.Z)(this,"_createRangeAndSelect",(e=>{const{current:t}=this.editor;if(!t)return;const{ownerDocument:n,childNodes:o}=t,r=o[o.length-1];if(!r)return;if(void 0===n.createRange)return;const i=n.createRange();let a;a="gecko"===tt.SR?r.length-1:r.length,i.setStart(r,e?0:a),i.setEnd(r,a),this.setSelection(i)})),(0,o.Z)(this,"_preventDeselect",(e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()})),(0,o.Z)(this,"_handleKeyDown",(e=>{if(e.keyCode!==Sr.zz){if(e.keyCode===Sr.E$&&e.shiftKey)return this.props.onStopEditing(),void e.preventDefault();if(this.getPlainText().length>=this.props.maxLength)e.preventDefault();else if("blink"===tt.SR&&e.keyCode===Sr.E$){const{current:n}=this.editor;if(!n)return;const{defaultView:o}=n.ownerDocument;(0,a.kG)(o,"defaultView is null");const r=o.getSelection();if(null!=r&&r.anchorNode&&"#text"===(null==r?void 0:r.anchorNode.nodeName)){var t;const n=Ui(r);if(null===(t=r.anchorNode.parentNode)||void 0===t||t.normalize(),r.anchorNode&&"#text"===r.anchorNode.nodeName){const t=r.anchorOffset;"Range"===r.type&&r.deleteFromDocument();const o=r.anchorNode.nodeValue;(0,a.kG)(o,"currentText is null");const i=n&&o.replace(/\n/,"").length>0;r.anchorNode.nodeValue=o.substr(0,r.anchorOffset)+"\n"+(i?"\n":"")+o.substr(r.anchorOffset),r.collapse(r.anchorNode,t+1),e.preventDefault(),setTimeout((()=>{this.props.valueDidUpdate&&this.props.valueDidUpdate()}),0)}}}else if("gecko"===tt.SR&&e.keyCode===Sr.E$){const{current:t}=this.editor;if(!t)return;const{defaultView:o}=t.ownerDocument;(0,a.kG)(o,"defaultView is null");const r=o.getSelection();if(null!=r&&r.anchorNode&&"#text"===(null==r?void 0:r.anchorNode.nodeName)&&(function(e){let{anchorNode:t,anchorOffset:n}=e;return null!=t&&("#text"===t.nodeName&&(0===n||t.nodeValue.length>n&&"\n"===t.nodeValue.charAt(n-1))||"DIV"===t.nodeName&&t.hasChildNodes()&&t.childNodes.length>0&&"BR"===t.childNodes[0].nodeName)}(r)||Ui(r))){var n;const t=Ui(r);if(null===(n=r.anchorNode.parentNode)||void 0===n||n.normalize(),r.anchorNode&&"#text"===r.anchorNode.nodeName){const n=r.anchorOffset;"Range"===r.type&&r.deleteFromDocument();const o=r.anchorNode.nodeValue;(0,a.kG)(o,"currentText is null");const i=t&&o.replace(/\n/,"").length>0;r.anchorNode.nodeValue=o.substr(0,r.anchorOffset)+"\n"+(i?"\n":"")+o.substr(r.anchorOffset),r.collapse(r.anchorNode,n+1+(i?1:0)),e.preventDefault(),setTimeout((()=>{this.props.valueDidUpdate&&this.props.valueDidUpdate()}),0)}}}}else this.props.onEscape(e)})),(0,o.Z)(this,"_handleInput",(()=>{const{current:e}=this.editor;if(e){if("gecko"===tt.SR){const{innerText:t}=e,n=t.charAt(t.length-1);if(" "===n){const t=e.childNodes[e.childNodes.length-1];t.nodeValue===n&&(t.nodeValue="\n")}}this.props.valueDidUpdate&&this.props.valueDidUpdate()}})),(0,o.Z)(this,"_handlePaste",(e=>{var t,n;if(!this.editor.current)return;const o=this.editor.current.ownerDocument;e.preventDefault();const r=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text/plain");this.getPlainText().length+r.length>=this.props.maxLength||o.execCommand("insertText",!1,null===(n=e.clipboardData)||void 0===n?void 0:n.getData("text/plain"))})),(0,o.Z)(this,"_handleDrop",(e=>{if(!this.editor.current)return;const t=this.editor.current.ownerDocument;if(e.preventDefault(),e.dataTransfer){const n=e.dataTransfer.getData("text/plain");if(this.getPlainText.length+n.length>=this.props.maxLength)return;t.execCommand("insertText",!1,n),this.props.valueDidUpdate&&this.props.valueDidUpdate()}})),(0,o.Z)(this,"_handleScroll",(e=>{const{current:t}=this.editor;t&&(t.scrollTop=0,t.scrollLeft=0,e.stopPropagation(),e.preventDefault())})),(0,o.Z)(this,"_handlePointerDown",(e=>{this.editor.current&&(this.editor.current.contains(e.target)||this._handleBlur())})),(0,o.Z)(this,"_handleBlur",(()=>{this._handledBlur||(this._handledBlur=!0,this.props.onBlur())})),(0,o.Z)(this,"_handleFocus",(()=>{this._handledBlur=!1,this.props.onFocus&&this.props.onFocus()})),this.innerText=this.props.defaultValue+"\n"}componentDidMount(){this.editor.current&&(this.props.autoFocus||this.props.autoSelect)&&this.focus()}getElement(){return this.editor.current}getEditorBoundingClientRect(){const{current:e}=this.editor;return(0,a.kG)(e),j.UL.fromClientRect(e.getBoundingClientRect())}getPlainText(){const{current:e}=this.editor;return e?void 0===e.innerText?"":e.innerText.replace(/\n$/,""):""}setSelection(e){const{current:t}=this.editor;if(!t)return;const n=t.ownerDocument.getSelection();null==n||n.removeAllRanges(),null==n||n.addRange(e)}blur(){this.editor.current&&this.editor.current.blur()}setInitialSelection(){if(this.props.autoSelect)return void this.autoSelectText();const{lastMousePoint:e}=this.props;let t,n=!1;if(e){if(!this.editor.current)return;const{ownerDocument:o}=this.editor.current;t=(0,a.Qo)(e,o),n=!!t&&(t.commonAncestorContainer===this.editor.current||t.commonAncestorContainer.parentElement===this.editor.current)}t&&n?this.setSelection(t):this.moveFocusToEnd()}moveFocusToEnd(){this._createRangeAndSelect(!1)}autoSelectText(){this._createRangeAndSelect(!0)}render(){return T.createElement(T.Fragment,null,T.createElement("div",{style:this.props.style,className:Gn().editor,onInput:this._handleInput,onBlur:this._handleBlur,onFocus:this._handleFocus,onMouseUp:this._preventDeselect,onPointerUp:this._preventDeselect,onKeyDown:this._handleKeyDown,onKeyUp:this._preventDeselect,onTouchStart:this._preventDeselect,onTouchEnd:this._preventDeselect,onPaste:this._handlePaste,onDrop:this._handleDrop,onScroll:this._handleScroll,ref:this.editor,contentEditable:!0,suppressContentEditableWarning:!0,spellCheck:"false"},this.innerText),T.createElement(pt.Z,{onRootPointerDownCapture:this._handlePointerDown}))}}function Ui(e){return null!=e.anchorNode&&null==e.anchorNode.nextSibling&&("#text"===e.anchorNode.nodeName&&e.anchorOffset===e.anchorNode.nodeValue.length||"DIV"===e.anchorNode.nodeName&&e.anchorNode.hasChildNodes()&&e.anchorNode.childNodes.length>0&&"BR"===e.anchorNode.childNodes[0].nodeName)}(0,o.Z)(Zi,"defaultProps",{autoFocus:!0,autoSelect:!1});var Vi=n(32360),Gi=n.n(Vi);function Wi(e){let{x:t,y:n,direction:o,startResizing:r,endResizing:i,onFitToSide:s,viewportSize:l,title:c,cursor:u}=e;const d=function(e){switch(e){case gt.V.TOP_LEFT:return"Top-Left";case gt.V.TOP:return"Top";case gt.V.TOP_RIGHT:return"Top-Right";case gt.V.LEFT:return"Left";case gt.V.RIGHT:return"Right";case gt.V.BOTTOM_LEFT:return"Bottom-Left";case gt.V.BOTTOM:return"Bottom";case gt.V.BOTTOM_RIGHT:return"Bottom-Right";default:(0,a.Rz)(e)}}(gt.V[o]),p=F()({[Gi().resizeAnchor]:!0,[Gi().nwseCursor]:o===gt.V.TOP_LEFT||o===gt.V.BOTTOM_RIGHT,[Gi().neswCursor]:o===gt.V.TOP_RIGHT||o===gt.V.BOTTOM_LEFT,[Gi().ewCursor]:o===gt.V.LEFT||o===gt.V.RIGHT,[Gi().nsCursor]:o===gt.V.TOP||o===gt.V.BOTTOM,"PSPDFKit-Resize-Anchor":!0,[`PSPDFKit-Resize-Anchor-${d}`]:!0}),{RESIZE_ANCHOR_RADIUS:f}=mt.Ei,h=f(l),m=u?{cursor:u}:void 0;return T.createElement(pt.Z,{onPointerDown:r,onPointerUp:i},T.createElement("circle",{cx:t,cy:n,r:h-Je.Hr/2,strokeWidth:Je.Hr,className:p,onDoubleClick:s,style:m},c?T.createElement("title",null,c):null))}function qi(e){let{x:t,y:n,startModifying:o,endModifying:r,pointIndex:i,viewportSize:a,title:s,cursor:l}=e;const c=F()({[Gi().resizeAnchor]:!0}),{RESIZE_ANCHOR_RADIUS:u}=mt.Ei,d=u(a),p=l?{cursor:l}:void 0;return T.createElement(pt.Z,{onPointerDown:o,onPointerUp:r},T.createElement("circle",(0,De.Z)({cx:t,cy:n,r:d-Je.Hr/2,strokeWidth:Je.Hr,className:c,id:`pointIndex${i}`,style:p},{title:s})))}function Hi(e){let{width:t,startRotating:n,endRotating:o,viewportSize:r,rotationHandleLength:i,rotation:a=0,title:s}=e;const{RESIZE_ANCHOR_RADIUS:l,SELECTION_STROKE_WIDTH:c}=mt.Ei,u=F()({"PSPDFKit-Annotations-Rotation-Anchor":!0,[Gi().rotateAnchor]:!0}),d=l(r);return T.createElement("svg",{"data-testid":"rotation-handle-ui",className:"PSPDFKit-Annotations-Rotation-Handle"},T.createElement("line",{className:F()(Gi().rotationLine,"PSPDFKit-Annotations-Rotation-Line"),x1:t/2,y1:0,x2:t/2,y2:i,style:{strokeWidth:c}}),T.createElement(pt.Z,{onPointerDown:n,onPointerUp:o},T.createElement("circle",{cx:t/2,cy:i,r:d-Je.Hr/2,strokeWidth:Je.Hr,className:u,style:{cursor:(0,ot.Mg)(a,"grab")}},s?T.createElement("title",null,s):null)))}var $i=n(41952);function Yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Xi(e){for(var t=1;tt(Ke.Z[`resizeHandle${e.trim()}`]))).join(", ")}`;return T.createElement(Wi,{key:r,x:n,y:o,direction:a,title:s,startResizing:t=>{e.startResizing&&e.startResizing(t,i)},endResizing:ta,onFitToSide:()=>{e.onFitToSide&&e.onFitToSide(a)},viewportSize:e.viewportSize,cursor:e.cursor})}const{zoomLevel:o,annotation:r,annotationBoundingBox:i,viewportSize:a,customZIndex:s,cursor:l}=e,{RESIZE_ANCHOR_RADIUS:c,SELECTION_STROKE_WIDTH:u}=mt.Ei,d=(0,$i.q)(i.scale(o),a),{SELECTION_OUTLINE_PADDING:p}=mt.Ei,f=p(a),h=c(a),m=r?Ct(r)+2*(0,$i.K)(a):0,g=Math.min(2*h,m),v=Math.max(d.width,g),y=Math.max(d.height,g),b=Math.max(h+u/2,u),w=2*b,S=Math.max(h,u/2),E=(0,J.fk)(r,i,o,a,b),P=F()({[Gi().selectionRect]:!0,[Gi().isDragging]:e.isDragging,"PSPDFKit-Selection-Outline-Rect":!0}),x=!r||(0,J.vj)(r)?Xi({strokeWidth:u},l?{cursor:l}:null):{stroke:"transparent"},D=F()({[Gi().draggingRect]:!0,[Gi().isDragging]:e.isDragging,"PSPDFKit-Selection-Outline-Border":!0}),C=r?r.rotation:e.annotationRotation,k=35*o,A=T.useRef(d),O=Xi(Xi({left:d.left-b,top:d.top-b,width:v+w,height:y+w,overflow:"visible"},r||"number"!=typeof C||0===C?null:{transformOrigin:`${f+A.current.width/2}px ${f+A.current.height/2}px`}),{},{transform:"number"!=typeof C||0===C||r instanceof j.x_||r instanceof j.sK?void 0:`rotate(${-C}deg)`,zIndex:null!=s?s:0},l?{cursor:l}:null),I=o*(c(a)-Je.Hr/2),M={left:O.left+O.width/2-I,top:O.top+O.height,width:2*I,height:k+I,overflow:"visible",transformOrigin:`center -${O.height/2}px`,transform:"number"==typeof C&&0!==C?`rotate(${-C}deg)`:void 0};return T.createElement(T.Fragment,null,T.createElement("svg",{style:O,className:Gi().svg,focusable:!1},r instanceof j.o9?T.createElement("line",{className:P,x1:E[0].x,y1:E[0].y,x2:E[1].x,y2:E[1].y,style:Xi(Xi({},x),{},{strokeWidth:tt.Ni?Math.max(Je.wK,r.strokeWidth)*o:Math.max(Je.XZ,r.strokeWidth)*o,pointerEvents:"all"})}):T.createElement("rect",{className:P,style:x,x:b-u/2,y:b-u/2,width:v+u,height:y+u})),e.children||null,T.createElement("svg",{style:O,className:Gi().svg,focusable:!1},T.createElement(pt.Z,{onPointerDown:function(t){e.deselectAnnotation&&t.shiftKey&&e.deselectAnnotation?e.deselectAnnotation(t):(t.stopPropagation(),e.isEditableCP&&2!==t.buttons&&null!=e.startDragging&&e.startDragging(t))}},r instanceof j.o9?T.createElement("line",{className:D,x1:E[0].x,y1:E[0].y,x2:E[1].x,y2:E[1].y,style:Xi(Xi({},x),{},{strokeWidth:tt.Ni?Math.max(Je.wK,r.strokeWidth)*o:Math.max(Je.XZ,r.strokeWidth)*o,pointerEvents:"all"})}):T.createElement("rect",{x:b-u/2,y:b-u/2,width:v+u,height:y+u,className:D,style:x})),e.startResizing&&e.isResizable?[n(O.width/2,S,0),n(O.width-S,S,45),n(O.width-S,O.height/2,90),n(O.width-S,O.height-S,135),n(O.width/2,O.height-S,180),n(S,O.height-S,225),n(S,O.height/2,270),n(S,S,315)]:null,e.startModifying&&e.isModifiable?E.map(((t,n)=>function(t,n,o,r){return T.createElement(qi,{key:`modifyAnchor${o}`,x:t,y:n,pointIndex:o,title:r,startModifying:t=>{e.startModifying&&e.startModifying(t,o)},endModifying:ta,viewportSize:e.viewportSize,cursor:e.cursor})}(t.x,t.y,n,"Modify point"))):null),e.startRotating&&e.isRotatable?T.createElement("svg",{style:M,className:Gi().svg,focusable:!1},T.createElement(Hi,{key:"rotateAnchor",width:M.width,startRotating:t=>{var n;return null===(n=e.startRotating)||void 0===n?void 0:n.call(e,t)},endRotating:ta,viewportSize:e.viewportSize,rotationHandleLength:k,rotation:C,title:t(Ke.Z.rotation)})):null)}function Qi(e){switch((0,a.kG)(e%45==0,"Only multiples of 45° allowed."),e%360){case 0:return gt.V.TOP;case 45:return gt.V.TOP_RIGHT;case 90:return gt.V.RIGHT;case 135:return gt.V.BOTTOM_RIGHT;case 180:return gt.V.BOTTOM;case 225:return gt.V.BOTTOM_LEFT;case 270:return gt.V.LEFT;case 315:return gt.V.TOP_LEFT;default:throw new Error("Unsupported resize degrees")}}const ea={[gt.V.TOP]:"Top",[gt.V.TOP_RIGHT]:"Top, Right",[gt.V.RIGHT]:"Right",[gt.V.BOTTOM_RIGHT]:"Bottom, Right",[gt.V.BOTTOM]:"Bottom",[gt.V.BOTTOM_LEFT]:"Bottom, Left",[gt.V.LEFT]:"Left",[gt.V.TOP_LEFT]:"Top, Left"};function ta(e){e.stopPropagation()}function na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function oa(e){for(var t=1;t{const e=this._getNormalizedEditorBoundingBox(),t=mt.Ei.TEXT_ANNOTATION_AUTOFIT_BOUNDING_BOX_ON_EDIT?e:this.state.selectionBoundingBox.set("left",e.left).set("top",e.top),n=this.props.annotation.set("boundingBox",t);var o,r;j.UL.areRectsCloserThan((0,ot.h4)(n).boundingBox,(0,ot.h4)(n.set("boundingBox",this.state.selectionBoundingBox)).boundingBox,this.props.viewportState.zoomLevel)||(this.setState({selectionBoundingBox:n.boundingBox}),null===(o=(r=this.props).onChange)||void 0===o||o.call(r,n.boundingBox,this.getText()))})),(0,o.Z)(this,"handleEscape",(()=>{this.props.dispatch((0,je.fz)()),this.props.onEditingDone()})),(0,o.Z)(this,"handleBlur",(()=>{this._triggerOnEditingDone()})),(0,o.Z)(this,"onStopEditing",(()=>{this._triggerOnEditingDone(!0)})),(0,o.Z)(this,"onRichEditorInit",(e=>{this.props.dispatch((0,En.$Q)(e))}));const{annotation:r}=e;this.lastSavedAnnotation=r,this.initialOutlineBoundingBox=this.getInitialBoundingBox(r);let i=!1,a=(0,vt.hr)(null===(t=e.annotation.text)||void 0===t?void 0:t.value)||"";var s,l,c;if(e.enableRichText(e.annotation)){if(i=!0,"plain"===(null===(s=e.annotation.text)||void 0===s?void 0:s.format)){var u;const t=(null===(u=e.annotation.fontColor)||void 0===u?void 0:u.toHex())||"",n=ue.ri.prepareHTML(e.annotation.text.value);a=ue.ri.setStyleOrToggleFormat(ue.ri.serialize(ue.ri.deserialize(n)),"fontColor",t)}}else"xhtml"===(null===(l=e.annotation.text)||void 0===l?void 0:l.format)&&(a=ue.ri.getText((null===(c=e.annotation.text)||void 0===c?void 0:c.value)||""));this.state={selectionBoundingBox:this.initialOutlineBoundingBox,annotation:r,richTextContent:null===(n=e.annotation.text)||void 0===n?void 0:n.value,useRichText:i,text:a}}getInitialBoundingBox(e){let t=e.boundingBox;return(0,J.U7)(t)||(t=t.set("width",mt.Ei.MIN_TEXT_ANNOTATION_SIZE).set("height",e.fontSize)),t}componentDidUpdate(e){this.updateSelectionBoundingBox(),e&&!e.annotation.equals(this.props.annotation)&&(this.initialOutlineBoundingBox=this.getInitialBoundingBox(this.props.annotation))}_getNormalizedEditorBoundingBox(){const{current:e}=this.editorRef,{current:t}=this.richTextEditorRef;return t?this.props.transformClientToPage(j.UL.fromClientRect(aa(t))):e?this.props.transformClientToPage(j.UL.fromClientRect(aa(e.getElement()))):new j.UL}getText(){const{current:e}=this.editorRef;return e||this.state.useRichText?e?{value:e.getPlainText(),format:"plain"}:{value:this.state.richTextContent,format:"xhtml"}:{value:"",format:"plain"}}_triggerOnEditingDone(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{current:n}=this.editorRef,o=this.getText(),{annotation:r,onChange:i}=this.props;if((0,J.Vc)(r))return void(null==i||i(this.state.selectionBoundingBox,o));if(!n&&!this.state.useRichText)return;let a=(null===(e=this.props.annotation.text)||void 0===e?void 0:e.value)!==o.value?this.props.annotation.set("text",o).set("boundingBox",this.state.selectionBoundingBox):this.props.annotation;if("xhtml"===o.format&&this.props.annotation.fontColor?a=a.set("fontColor",null):"plain"!==o.format||this.props.annotation.fontColor||(a=a.set("fontColor",j.Il.BLACK)),mt.Ei.TEXT_ANNOTATION_AUTOFIT_BOUNDING_BOX_ON_EDIT){const e=this._getNormalizedEditorBoundingBox(),t=a.boundingBox;!e.getSize().equals(t.getSize())&&(a=a.set("boundingBox",e)),a=(0,vt.XA)(a,this.props.viewportState.zoomLevel)}this.lastSavedAnnotation.equals(a)||(this.lastSavedAnnotation=a,this.props.onEditingDone(It(a,this.props.annotation.boundingBox),t))}render(){var e;const t=this.props.annotation,{zoomLevel:n}=this.props.viewportState,o=t.boundingBox,r=this.props.pageSize.width,i=this.props.pageSize.height,a=(0,vt.z1)(t.set("rotation",0),n,!1);let s,l;const c=Math.floor(o.left*n),u=Math.floor(o.top*n);switch(t.rotation){case 0:s=r*n-c,l=i*n-u;break;case 90:s=o.bottom*n,l=r*n-c;break;case 180:s=o.right*n,l=o.bottom*n;break;case 270:s=i*n-u,l=o.right*n}const d=(0,J.Vc)(t),p=oa(oa({},!d&&{left:c,top:u}),{},{minWidth:mt.Ei.MIN_TEXT_ANNOTATION_SIZE*n,minHeight:t.fontSize*n,maxWidth:s,maxHeight:l}),f=mt.Ei.TEXT_ANNOTATION_AUTOFIT_BOUNDING_BOX_ON_EDIT?p:oa(oa({},a),p);delete a.width,delete a.height,delete a.overflow;const h=Math.ceil(t.boundingBox.width*n),m=Math.ceil(t.boundingBox.height*n);switch(f.transformOrigin="0 0",t.rotation){case 90:f.transform=`translate(0, ${m}px) rotate(${-t.rotation}deg)`;break;case 180:f.transform=`translate(${h}px, ${m}px) rotate(${-t.rotation}deg)`;break;case 270:f.transform=`translate(${h}px, 0) rotate(${-t.rotation}deg)`;break;default:(0,ot.kv)(t)&&(f.transformOrigin=`${n*this.initialOutlineBoundingBox.width/2}px ${n*this.initialOutlineBoundingBox.height/2}px`,f.transform=`rotate(${String(-t.rotation)}deg)`)}return this.state.useRichText||"xhtml"!==(null===(e=this.props.annotation.text)||void 0===e?void 0:e.format)||(f.color=j.Il.BLACK.toHex()),T.createElement(T.Fragment,null,!d&&T.createElement(Ji,{zoomLevel:n,pagesRotation:this.props.viewportState.pagesRotation,annotationBoundingBox:this.state.selectionBoundingBox,annotationRotation:t.rotation,isResizable:!0,isModifiable:!1,isRotatable:!0,isEditableCP:!0,viewportSize:this.props.viewportState.viewportRect.getSize()}),T.createElement("div",{style:oa(oa({},a),!this.state.useRichText&&{wordBreak:d?void 0:a.wordBreak,overflowWrap:d?"break-word":a.overflowWrap}),className:Gn().editorWrapper},this.state.useRichText?T.createElement(ue.D,{text:this.state.text,style:oa(oa({},f),{},{color:j.Il.BLACK.toHex()}),updateBoundingBox:this.updateSelectionBoundingBox,ref:this.richTextEditorRef,onValueChange:e=>{this.setState({richTextContent:e})},onBlurSave:this.handleBlur,onStopEditing:this.onStopEditing,onEscape:this.handleEscape,maxLength:Je.RI,lastMousePoint:this.props.lastMousePoint,onEditorInit:this.onRichEditorInit,className:!d&&Gn().richEditor,autoFocus:!0}):T.createElement(Zi,{style:oa(oa({},f),{position:d?"static":f.position}),valueDidUpdate:this.updateSelectionBoundingBox,onBlur:this.handleBlur,onStopEditing:this.onStopEditing,onEscape:this.handleEscape,ref:this.editorRef,maxLength:Je.RI,defaultValue:this.state.text,lastMousePoint:this.props.lastMousePoint,autoSelect:this.props.autoSelect})))}}(0,o.Z)(ra,"defaultProps",{autoSelect:!1});const ia=vi(ra);function aa(e){var t;const n=e.cloneNode(!0);n.style.transform="none",n.style.visibility="hidden",n.style.pointerEvents="none",null===(t=e.parentElement)||void 0===t||t.append(n);const o=n.getBoundingClientRect();return n.remove(),o}const sa=e=>{let{annotation:t,children:n}=e;const[o,r]=(0,T.useState)(t),i=(0,A.v9)((e=>e.viewportState.zoomLevel)),a=(0,T.useRef)(null),s=(0,A.I0)(),l=o.boundingBox.scale(i),c=(0,T.useRef)(o);(0,T.useLayoutEffect)((()=>{c.current=o}),[o]),(0,T.useEffect)((()=>{r((e=>e.set("fontSize",t.fontSize).set("font",t.font).set("horizontalAlign",t.horizontalAlign).set("verticalAlign",t.verticalAlign)))}),[t.font,t.fontSize,t.horizontalAlign,t.verticalAlign]);const u=(0,T.useCallback)(((e,n)=>{var s;const l=null===(s=a.current)||void 0===s?void 0:s.getBoundingClientRect();if(!l)return;const{callout:c}=t,u=(0,qn.Vq)({rect:l,annotation:o,zoomLevel:i,text:n,callout:c});u&&r(u)}),[t,i,o]);return(0,T.useEffect)((()=>()=>{("xhtml"===c.current.text.format?(0,qn.KY)(c.current.text.value):c.current.text.value)||s((0,Qt.hQ)(c.current))}),[s]),(0,T.useEffect)((()=>{s((0,Qt.FG)(o))}),[o,s]),T.createElement("div",{style:{position:"absolute",left:l.left,top:l.top,minHeight:l.height,width:l.width}},T.createElement($n,{annotation:o,isEditing:!0,ref:a},n(u)))};class la extends T.PureComponent{constructor(){var e;super(...arguments),e=this,(0,o.Z)(this,"_onEditingDone",(function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=t&&(0,ot.az)(t),r=o?(0,i.aV)([o]):(0,i.aV)([]),a={annotations:r,reason:u.f.TEXT_EDIT_END};e.props.eventEmitter.emit("annotations.willChange",a),o&&(e.props.dispatch((0,Qt.FG)(o)),n&&e.props.dispatch((0,je.Df)((0,i.l4)([e.props.annotation.id]),null)),e.props.keepSelectedTool&&e.props.dispatch((0,En.DU)()))}))}componentDidMount(){const e={annotations:(0,i.aV)([this.props.annotation]),reason:u.f.TEXT_EDIT_START};this.props.eventEmitter.emit("annotations.willChange",e),this.props.dispatch((0,En.X2)())}componentWillUnmount(){this.props.dispatch((0,En.Zg)())}render(){const{annotation:e,autoSelect:t,dispatch:n,pageSize:o,lastMousePoint:r,pageIndex:i,enableRichText:a}=this.props,s=s=>T.createElement(ia,{dispatch:n,annotation:(0,ot.h4)(e),lastMousePoint:r,pageSize:o,pageIndex:i,onEditingDone:this._onEditingDone,autoSelect:t,enableRichText:a,onChange:s});return(0,J.Vc)(e)?T.createElement(sa,{annotation:e},(e=>s(e))):s()}}(0,o.Z)(la,"defaultProps",{autoSelect:!1});class ca extends T.Component{constructor(e){super(e),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"_handlePointerUp",(e=>{if(!e.isPrimary)return;const t=this._getNormalizedMousePosition(e);if(!t)return;const{pagesRotation:n}=this.props.viewportState,o=(0,vt.gB)(t,n),r=this._fitRectInPage(o,this.props.pageSize);this.setState({bindPointerUpEvent:!1});let a=this.props.annotation.set("pageIndex",this.props.pageIndex).set("boundingBox",r).set("rotation",n);this.props.interactionMode===x.A.CALLOUT&&(a=function(e,t,n){const o=function(e,t){let n="top-right";const{width:o}=t;e.x+100>o&&(n=n.replace("right","left"));e.y-120<0&&(n=n.replace("top","bottom"));return n}(e,t),r=new j.E9({x:e.x,y:e.y}),i=new j.E9({x:o.includes("right")?e.x+50:e.x-50,y:o.includes("top")?e.y-50:e.y+50}),a=new j.E9({x:o.includes("right")?e.x+50:e.x-50,y:o.includes("top")?e.y-ua:e.y+ua}),s=new j.eB({top:o.includes("top")?0:ua,right:o.includes("right")?0:42,bottom:o.includes("top")?ua:0,left:o.includes("right")?42:0}),l=new j.UW({start:r,knee:i,end:a,innerRectInset:s,cap:"openArrow"}),c=new j.UL({top:o.includes("top")?e.y-100:e.y,left:o.includes("right")?e.x:e.x-85,width:85,height:100});return n.set("callout",l).set("boundingBox",c).set("borderWidth",n.borderWidth||2).set("borderStyle",n.borderStyle||"solid").set("borderColor",n.borderColor||j.Il.BLACK)}(t,this.props.pageSize,a)),this.props.dispatch((0,Qt.Zr)((0,i.aV)([a]))),e.stopPropagation()})),this.state={bindPointerUpEvent:!0}}_getNormalizedMousePosition(e){const{target:t}=e;if("DIV"==t.tagName)return this.props.transformClientToPage(new j.E9({x:e.clientX,y:e.clientY}))}_fitRectInPage(e,t){const{width:n,height:o}=t,{MIN_TEXT_ANNOTATION_SIZE:r}=mt.Ei;return e.top+e.height>o&&(e=e.set("top",o-e.height)),e.left+r>n&&(e=e.set("left",n-r)),e}render(){const e=F()({[Gn().layer]:!0,"PSPDFKit-Text-Canvas":!0});return T.createElement(pt.Z,{onPointerUpCapture:this.state.bindPointerUpEvent?this._handlePointerUp:void 0},T.createElement("div",{className:e,style:{cursor:"text"}}))}}(0,o.Z)(ca,"defaultProps",{autoSelect:!1});const ua=80;const da=vi(ca);function pa(e,t){const n=e.set("boundingBox",e.boundingBox.translate(t));return n instanceof s.Zc?n.update("lines",(e=>e.map((e=>e.map((e=>e.translate(t))))))):n instanceof s.o9?n.update("startPoint",(e=>e.translate(t))).update("endPoint",(e=>e.translate(t))):n instanceof s.Hi||n instanceof s.om?n.update("points",(e=>e.map((e=>e.translate(t))))):(0,J.Vc)(e)?n.update("callout",(e=>(e.knee&&(e=e.update("knee",(e=>e.translate(t)))),e.update("start",(e=>e.translate(t))).update("end",(e=>e.translate(t)))))):n}function fa(e,t,n,o,r){const i=function(e,t,n,o,r){const{boundingBox:i}=(0,ot.az)(e),a=new B.UL({x:0,y:0,width:n.width,height:n.height}).isRectInside(i);r&&a?(i.left+t.x<0&&(t=t.set("x",-i.left)),i.left+i.width+t.x>n.width&&(t=t.set("x",n.width-i.width-i.left)),i.top+t.y<0&&(t=t.set("y",-i.top)),i.top+i.height+t.y>n.height&&(t=t.set("y",n.height-i.height-i.top))):(o.x+i.left+t.x<0&&(t=t.set("x",-o.x-i.left)),o.x+i.left+t.x>n.width&&(t=t.set("x",n.width-(o.x+i.left))),o.y+i.top+t.y<0&&(t=t.set("y",-o.y-i.top)),o.y+i.top+t.y>n.height&&(t=t.set("y",n.height-(o.y+i.top))));return t}(e,t,n,o,r);return pa(e,i)}function ha(e,t,n,o,r,a,s,l,c){const[d,p]=T.useState(!1),f=T.useRef(!1),h=T.useCallback((function(t){if(!(0,jr.eR)(t.target))switch(t.key){case"Enter":case" ":case"Spacebar":if((0,jr.gC)(t.target)||(0,jr.N1)(t.target))return;e(t),t.preventDefault();break;case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":{if((0,jr.N1)(t.target))return;t.preventDefault();const e=t.shiftKey?10:1,r=(0,Yr.n5)(ma[t.key]-s),d=function(e){switch(e){case 0:return new B.E9({x:0,y:-1});case 90:return new B.E9({x:1,y:0});case 180:return new B.E9({x:0,y:1});case 270:return new B.E9({x:-1,y:0});default:throw Error()}}(r),h=0===r||270===r?new B.E9:new B.E9({x:n.boundingBox.width,y:n.boundingBox.height}),m=fa(n,d.scale(e),a,h,c);if(o(m),!f.current){const e={annotations:(0,i.aV)([n]),reason:u.f.MOVE_START};l.emit("annotations.willChange",e),f.current=!0}p(!0)}}}),[e,a,s,o,n,l,c]),m=T.useCallback((function(e){if(!(0,jr.eR)(e.target)&&(("Spacebar"!==e.key&&" "!==e.key||!(0,jr.gC)(e.target))&&e.preventDefault(),d&&r(n),f.current)){const e={annotations:(0,i.aV)([n]),reason:u.f.MOVE_END};l.emit("annotations.willChange",e),f.current=!1}}),[d,n,f,l,r]),g=t.document;T.useLayoutEffect((function(){return g.addEventListener("keydown",h),g.addEventListener("keyup",m),function(){g.removeEventListener("keydown",h),g.removeEventListener("keyup",m)}}),[h,m,g])}const ma={ArrowUp:0,ArrowRight:90,ArrowDown:180,ArrowLeft:270};var ga=n(18803);function va(e){var t;null!==(t=e.getSelection())&&void 0!==t&&t.isCollapsed||(0,ga.a7)(e)}function ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ba(e){for(var t=1;t{let e;return(0,G.S6)(t)&&t.measurementBBox?(e=t.set("boundingBox",t.measurementBBox),e):t}),[t]),[R,N]=(0,fi.Ah)(_),[L,z]=T.useState(null),[K,Z]=function(e,t,n){const o=T.useRef(null);return[T.useCallback((function(e){const{current:t}=o;if(!t)return;const r="function"==typeof t.getWrappedInstance?t.getWrappedInstance():t;r&&"function"==typeof r.onClick&&!n&&r.onClick(e)}),[n]),o]}(0,0,I.current);(0,T.useEffect)((()=>{R&&P.emit("annotations.transform",{annotation:R})}),[R,P]);const U=T.useMemo((()=>(0,de.cr)(e.viewportState,t.pageIndex)),[e.viewportState,t.pageIndex]),V=T.useCallback((function(e){return e.scale(1/o).rotate(s)}),[o,s]),W=T.useCallback((e=>{z(e),k(e)}),[k]),q=T.useCallback((function(e){const t=(0,ot.az)(e);if(S&&x){if(!new j.UL({left:0,top:0,width:S.width,height:S.height}).isRectInside(t.boundingBox))return}b((0,Qt.FG)(t))}),[b,S,x]),{isDragging:H,cancelDrag:$,startDraggingWithEvent:Y,startDraggingAtPoint:X,dragListener:Q}=function(e){let{getScrollElement:t,transformClientToPage:n,transformedAnnotation:o,setTransformedAnnotation:r,setGlobalAnnotation:s,annotation:l,interactionsDisabled:c,dispatch:d,frameWindow:p,pageSize:f,onClick:h,transformDeltaFromClientToPage:m,eventEmitter:g,restrictAnnotationToPageBounds:v,isEditableCP:y}=e;const[b,w]=T.useReducer(Sa,wa),{isListening:S,isDragging:E}=b,P=T.useCallback((function(){return new j.E9({x:t().scrollLeft,y:t().scrollTop})}),[t]);T.useEffect((()=>()=>{E&&c&&d((0,En.Zg)())}),[d,c,E]);const x=T.useRef(null),D=T.useCallback((function(e){x.current=P();const t=n(e).translate(l.boundingBox.getLocation().scale(-1)),o=m(e);w({type:"start",mousePosition:o,initialClickWithinAnnotation:t})}),[P,n,m,l.boundingBox]),C=T.useCallback((function(e){e.isPrimary&&D(new j.E9({x:e.clientX,y:e.clientY}))}),[D]),k=T.useCallback((function(){w({type:"stop"}),va(p),d((0,En.Zg)())}),[p,d]),A=T.useCallback((function(e){if((E||Ea(e))&&e.stopPropagation(),o.equals(l)?b.initialDragCompleted&&h(e):s(o),w({type:"stop"}),E){const e={annotations:(0,i.aV)([o]),reason:u.f.MOVE_END};g.emit("annotations.willChange",e)}va(p),d((0,En.Zg)())}),[l,p,d,E,h,b.initialDragCompleted,o,g,s]),O=T.useCallback((function(e){if(e.stopPropagation(),e.preventDefault(),E&&0===e.buttons)return void A(e);const{previousMousePosition:t,initialClickWithinAnnotation:n,translation:o}=b;(0,a.kG)(t),(0,a.kG)(n);const s=m(new j.E9({x:e.clientX,y:e.clientY})),h=Pn(n,t);!c&&h&&d((0,En.X2)());const y=s.translate(t.scale(-1)),S=o.translate(y),P=fa(l,S,f,n,v),x=(0,G.S6)(P)?P.set("measurementBBox",P.boundingBox):P;if(r(x),w({type:"drag",mousePosition:s,translation:S}),va(p),!E){const e={annotations:(0,i.aV)([l]),reason:u.f.MOVE_START};g.emit("annotations.willChange",e)}}),[l,p,d,c,f,r,b,E,m,g,A,v]),I=T.useCallback((function(){const e=t();if(void 0===e.scrollTop||void 0===e.scrollLeft)return;const n=P(),o=x.current;(0,a.kG)(o);const i=m(n.translate(o.scale(-1))),s=b.translation.translate(i);let c=b.initialClickWithinAnnotation;c||(c=new j.E9);const u=fa(l,s,f,c);r(u),w({type:"scroll",translation:s}),x.current=n,va(p)}),[l,p,t,P,f,r,b.initialClickWithinAnnotation,b.translation,m]);(0,fi.wA)(S,t,I);const F=S&&T.createElement(pt.Z,{onRootPointerDownCapture:A,onRootPointerMoveCapture:y?O:void 0,onRootPointerUpCapture:A});return{isDragging:E,cancelDrag:k,startDraggingWithEvent:C,startDraggingAtPoint:D,dragListener:F}}({getScrollElement:m,transformClientToPage:g,transformedAnnotation:R,setTransformedAnnotation:N,setGlobalAnnotation:q,annotation:t,interactionsDisabled:y,dispatch:b,frameWindow:v,pageSize:S,onClick:K,transformDeltaFromClientToPage:V,eventEmitter:P,restrictAnnotationToPageBounds:x,isEditableCP:D}),{startResizing:ee,resizeListener:te,isResizing:ne}=function(e){let{transformedAnnotation:t,setTransformedAnnotation:n,setGlobalAnnotation:o,annotation:r,dispatch:s,frameWindow:l,transformDeltaFromClientToPage:c,eventEmitter:d,pageSize:p,restrictAnnotationToPageBounds:f,shouldConstrainAspectRatio:h,annotationDimensions:m,clientTransformationMatrix:g,interactionsDisabled:v}=e;const[y,b]=T.useState(Ca),[w,S]=T.useState(!1),E=T.useRef(void 0),P=T.useRef(null),x=T.useRef(!1);T.useEffect((()=>()=>{w&&v&&s((0,En.Zg)())}),[s,v,w]);const D=T.useCallback((function(e,n){var o;if(!e.isPrimary)return;const l=new j.E9({x:e.clientX,y:e.clientY}),p=c(l);b({startingMousePosition:p,startingResizeAnchor:n,isListening:!0}),S(!0);const f={annotations:(0,i.aV)([r]),reason:u.f.RESIZE_START};d.emit("annotations.willChange",f),r instanceof j.b3&&![gt.V.TOP,gt.V.RIGHT,gt.V.BOTTOM,gt.V.LEFT].includes(n)&&null!==(o=r.isMeasurement)&&void 0!==o&&o.call(r)&&((0,a.kG)(t instanceof j.b3),s((0,xn.eO)({magnifierLabel:t.getMeasurementDetails().label,drawnAnnotationID:t.id,drawnAnnotationPageIndex:t.pageIndex,magnifierCursorPosition:ka(r,g,n)}))),s((0,En.X2)())}),[t,s,c,r,d,g]),C=T.useCallback((function(e){var t;e.preventDefault();const o=new j.E9({x:e.clientX,y:e.clientY}),i=c(o),{startingMousePosition:u,startingResizeAnchor:d}=y;(0,a.kG)(u),(0,a.kG)(d);const v={annotation:r,resizeAnchor:d,isShiftPressed:e.shiftKey},b=P.current;null!==b&&b.annotation.id===v.annotation.id&&b.isShiftPressed===v.isShiftPressed&&b.resizeAnchor===v.resizeAnchor||(x.current=h(v),E.current=m(v)),P.current=v;const w=i.translate(u.scale(-1)),S=Tt(r,w,d,x.current,void 0,p,f,E.current),D=(0,G.S6)(S)?S.set("measurementBBox",S.boundingBox):S;n(D),va(l),r instanceof j.b3&&![gt.V.TOP,gt.V.RIGHT,gt.V.BOTTOM,gt.V.LEFT].includes(d)&&null!==(t=r.isMeasurement)&&void 0!==t&&t.call(r)&&((0,a.kG)(S instanceof j.b3),s((0,xn.eO)({magnifierLabel:S.getMeasurementDetails().label,magnifierCursorPosition:ka(S,g,d)})))}),[s,r,l,n,g,h,y,c,p,f]),k=T.useCallback((function(e){var n;e.stopPropagation(),S(!1),b(Ca),o(t),s((0,En.Zg)()),va(l);const a={annotations:(0,i.aV)([t]),reason:u.f.RESIZE_END};d.emit("annotations.willChange",a),r instanceof j.b3&&null!==(n=r.isMeasurement)&&void 0!==n&&n.call(r)&&s((0,xn.eO)(null))}),[r,l,s,o,t,d]);return{startResizing:D,resizeListener:y.isListening&&T.createElement(pt.Z,{onRootPointerMoveCapture:C,onRootPointerUpCapture:k}),isResizing:w}}({transformedAnnotation:R,setTransformedAnnotation:N,setGlobalAnnotation:q,annotation:t,dispatch:b,frameWindow:v,transformDeltaFromClientToPage:V,eventEmitter:P,pageSize:S,restrictAnnotationToPageBounds:x,shouldConstrainAspectRatio:C,annotationDimensions:O,clientTransformationMatrix:U,interactionsDisabled:y}),{startRotating:oe,rotateListener:re,isRotating:ie}=function(e){let{transformedAnnotation:t,setTransformedAnnotation:n,setGlobalAnnotation:o,annotation:r,dispatch:a,frameWindow:s,transformClientToPage:l,eventEmitter:c,pageSize:d,restrictAnnotationToPageBounds:p,centerPoint:f,interactionsDisabled:h,setLocalAndGlobalCursor:m}=e;const[g,v]=T.useState(!1),[y,b]=T.useState(!1);T.useEffect((()=>()=>{y&&h&&a((0,En.Zg)())}),[a,h,y]);const w=T.useCallback((e=>{const t=new j.E9({x:e.clientX,y:e.clientY}),n=l(t),o=f.x-n.x,r=n.y-f.y,i=-Math.atan2(o,r);return Math.round(i*(180/Math.PI))}),[f,l]),S=T.useCallback((function(e){if(!e.isPrimary)return;v(!0),b(!0);const t={annotations:(0,i.aV)([r]),reason:u.f.ROTATE_START};c.emit("annotations.willChange",t),a((0,En.X2)()),m((0,ot.Mg)(w(e),"grabbing"))}),[a,r,c,w,m]),E=T.useCallback((function(e){const o=w(e),r=(0,ot.sw)(t,o,d,p);n(r),va(s),m((0,ot.Mg)(o,"grabbing"))}),[t,s,n,w,m,d,p]),P=T.useCallback((function(e){e.stopPropagation(),b(!1),v(!1);const t=w(e),n=(0,ot.sw)(r,t,d,p);o(n),a((0,En.Zg)()),va(s),m("");const l={annotations:(0,i.aV)([n]),reason:u.f.ROTATE_END};c.emit("annotations.willChange",l)}),[s,a,o,r,w,c,d,p,m]);return{startRotating:S,rotateListener:g&&T.createElement(pt.Z,{onRootPointerMoveCapture:E,onRootPointerUpCapture:P}),isRotating:y}}({transformedAnnotation:R,setTransformedAnnotation:N,setGlobalAnnotation:q,annotation:t,dispatch:b,frameWindow:v,transformClientToPage:g,eventEmitter:P,pageSize:S,restrictAnnotationToPageBounds:x,centerPoint:t.boundingBox.getCenter(),interactionsDisabled:y,setLocalAndGlobalCursor:W}),ae=(0,fi.lB)(t,S,o,b),{startModifying:se,modifyListener:le,isModifying:ce}=function(e){let{transformedAnnotation:t,setTransformedAnnotation:n,setGlobalAnnotation:o,annotation:r,dispatch:s,frameWindow:l,transformDeltaFromClientToPage:c,eventEmitter:d,clientTransformationMatrix:p,pageSize:f,restrictAnnotationToPageBounds:h}=e;const[m,g]=T.useState(xa),[v,y]=T.useState(!1),b=(0,A.v9)((e=>e.defaultAutoCloseThreshold)),w=T.useCallback((function(e,t){var n;if(!e.isPrimary)return;const o=new j.E9({x:e.clientX,y:e.clientY}),a=c(o);g({pointIndex:t,startingMousePosition:a,isListening:!0}),y(!0);const l={annotations:(0,i.aV)([r]),reason:u.f.RESIZE_START};d.emit("annotations.willChange",l),r instanceof j.UX&&null!==(n=r.isMeasurement)&&void 0!==n&&n.call(r)&&s((0,xn.eO)({magnifierLabel:r.getMeasurementDetails().label,drawnAnnotationID:r.id,drawnAnnotationPageIndex:r.pageIndex,magnifierCursorPosition:Da(r,t,p)})),s((0,En.X2)())}),[s,c,r,d,p]),S=T.useCallback((function(e){var t;e.preventDefault();const o=new j.E9({x:e.clientX,y:e.clientY}),i=c(o),{startingMousePosition:u,pointIndex:d}=m;(0,a.kG)(u),(0,a.kG)(null!==d);const f=i.translate(u.scale(-1)),h=(0,Pa.Sy)(r,f,d);if((0,a.kG)(h),h instanceof j.om||h instanceof j.Hi){const e=(0,Dn.K)(h,d,b);n(-1!==e?(0,Dn.d)(h,d,e):h)}else n(h);va(l),"isMeasurement"in h&&null!==(t=h.isMeasurement)&&void 0!==t&&t.call(h)&&s((0,xn.eO)({magnifierLabel:h.getMeasurementDetails().label,magnifierCursorPosition:Da(h,d,p)}))}),[s,r,l,n,m,c,p]),E=T.useCallback((function(e){var n;if(e.stopPropagation(),y(!1),g(xa),f&&h&&!new B.UL({left:0,top:0,width:f.width,height:f.height}).isRectInside(t.boundingBox))return;o(t),s((0,En.Zg)()),va(l);const a={annotations:(0,i.aV)([t]),reason:u.f.RESIZE_END};d.emit("annotations.willChange",a),"isMeasurement"in r&&null!==(n=r.isMeasurement)&&void 0!==n&&n.call(r)&&s((0,xn.eO)(null))}),[r,l,s,t,d,o,f,h]);return{startModifying:w,modifyListener:m.isListening&&T.createElement(pt.Z,{onRootPointerMoveCapture:S,onRootPointerUpCapture:E}),isModifying:v}}({transformedAnnotation:R,setTransformedAnnotation:N,setGlobalAnnotation:q,annotation:t,dispatch:b,frameWindow:v,transformDeltaFromClientToPage:V,eventEmitter:P,clientTransformationMatrix:U,pageSize:S,restrictAnnotationToPageBounds:x});(0,fi.Sv)(w,b,X);const ue=function(e,t){return T.Children.map(e,(e=>T.cloneElement(e,Oa(Oa({},t),{},{isDisabled:!0}))))}(l,Oa({annotation:R,globalAnnotation:n,ref:Z,isResizing:ne,isModifying:ce,isDragging:H,isRotating:ie},L?{cursor:L}:null)),pe=T.useRef(null);pe.current=function(e){h&&h(t,e)};const fe=(0,fi.wL)(m);T.useEffect((function(){const{current:e}=fe;return function(){if(e&&e===(null==e?void 0:e.ownerDocument.activeElement)){const e=pe.current;e&&e((0,no.M)("blur"))}}}),[]),T.useLayoutEffect((function(){H&&$()}),[o,$]),ha(K,v,R,N,q,S,s,P,x);const he=(0,J._k)(R,M);return T.createElement(pt.Z,{onPointerDownCapture:function(e){e.isPrimary&&(I.current=E({annotation:t,nativeEvent:e.nativeEvent,selected:!0},P),I.current||b((0,je.mg)(R,e,{selectedAnnotationShouldDrag:"touch"!==e.pointerType?new j.E9({x:e.clientX,y:e.clientY}):null,stopPropagation:!1,isAnnotationPressPrevented:!1})))},onPointerUp:Ia},T.createElement("div",{style:{touchAction:"none"},role:"application"},T.createElement(Ji,{zoomLevel:o,viewportSize:r.getSize(),startModifying:se,startResizing:ee,startDragging:Y,startRotating:oe,onFitToSide:ae,isDragging:H,pagesRotation:s,annotation:R,isResizable:c&&D,isModifiable:d&&D,isRotatable:p&&D,isEditableCP:D,annotationBoundingBox:(0,J.SY)(R,s),window:v,cursor:L},T.createElement("div",{tabIndex:0,ref:fe,role:"button","aria-label":R instanceof j.x_?M(Ke.Z.selectedAnnotation,{arg0:he}):R instanceof j.gd||R instanceof j.Qi?M(Ke.Z.selectedAnnotationWithText,{arg0:he,arg1:R.text.value}):M(Ke.Z.selectedAnnotation,{arg0:he}),"data-testid":"selected annotation",onFocus:function(e){f&&f(t,e)},onBlur:pe.current,className:F()("PSPDFKit-Annotation-Selected",R.constructor.readableName&&`PSPDFKit-${R.constructor.readableName}-Annotation-Selected`)},ue)),Q,te,le,re))}));function Ia(e){e.stopPropagation()}const Fa=(0,A.$j)((function(e,t){let{annotation:n}=t;return{interactionsDisabled:e.interactionsDisabled,selectedAnnotationShouldDrag:e.selectedAnnotationShouldDrag,isAnnotationPressPrevented:t=>(0,J.TW)(t,e.eventEmitter),eventEmitter:e.eventEmitter,restrictAnnotationToPageBounds:e.restrictAnnotationToPageBounds,isEditableCP:(0,oi.CM)(n,e),shouldConstrainAspectRatio:t=>(0,J.xU)(t,e),annotationDimensions:t=>(0,J.aI)(t,e)}}))(Ta),Ma={isListening:!1,isDragging:!1,previousMousePosition:null,initialClickWithinAnnotation:null,translation:new j.E9,initialDragCompleted:!1};function _a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ra(e){for(var t=1;t{const t=(0,ot.az)(e);if(v&&b){if(!new j.UL({left:0,top:0,width:v.width,height:v.height}).isRectInside(t.boundingBox))return null}return t})).filter(Boolean);r((0,Qt.GZ)(t,(0,i.aV)()))}),[r,v,b]),{isDragging:I,cancelDrag:M,startDraggingWithEvent:_,startDraggingAtPoint:R,dragListener:N}=function(e){let{getScrollElement:t,transformClientToPage:n,transformedAnnotations:o,setTransformedAnnotations:r,setGlobalAnnotations:i,interactionsDisabled:s,dispatch:l,frameWindow:c,pageSize:d,transformDeltaFromClientToPage:p,eventEmitter:f,restrictAnnotationToPageBounds:h,isEditableCP:m,selectedAnnotationsBoundingBox:g,selectedAnnotations:v}=e;const[y,b]=T.useReducer(Sa,Ma),{isListening:w,isDragging:S}=y,E=T.useCallback((function(){return new j.E9({x:t().scrollLeft,y:t().scrollTop})}),[t]);T.useEffect((()=>()=>{S&&s&&l((0,En.Zg)())}),[l,s,S]);const P=T.useRef(null),x=T.useCallback((function(e){P.current=E();const t=n(e).translate(g.getLocation().scale(-1)),o=p(e);b({type:"start",mousePosition:o,initialClickWithinAnnotation:t})}),[E,n,p,g]),D=T.useCallback((function(e){e.isPrimary&&x(new j.E9({x:e.clientX,y:e.clientY}))}),[x]),C=T.useCallback((function(){b({type:"stop"}),va(c),l((0,En.Zg)())}),[c,l]),k=T.useCallback((function(e){if((S||Ea(e))&&e.stopPropagation(),o&&i(o),b({type:"stop"}),S){const e={annotations:o,reason:u.f.MOVE_END};f.emit("annotations.willChange",e)}va(c),l((0,En.Zg)())}),[c,l,S,o,f,i]),A=T.useCallback((function(e){if(e.stopPropagation(),e.preventDefault(),S&&0===e.buttons)return void k(e);const{previousMousePosition:t,initialClickWithinAnnotation:n,translation:o}=y;(0,a.kG)(t),(0,a.kG)(n);const i=p(new j.E9({x:e.clientX,y:e.clientY})),m=Pn(n,t);!s&&m&&l((0,En.X2)());const g=i.translate(t.scale(-1)),w=o.translate(g),E=v.map((e=>fa(e,w,d,n,h)));if(function(e,t){return e.left<=0||e.top<=0||e.left+e.width>=t.width||e.top+e.height>=t.height}((0,J.Jy)(E),d)||(r(E),b({type:"drag",mousePosition:i,translation:w})),va(c),!S){const e={annotations:E,reason:u.f.MOVE_START};f.emit("annotations.willChange",e)}}),[c,l,s,d,r,y,S,p,f,k,h,v]),O=T.useCallback((function(){const e=t();if(void 0===e.scrollTop||void 0===e.scrollLeft)return;const n=E(),o=P.current;(0,a.kG)(o);const i=p(n.translate(o.scale(-1))),s=y.translation.translate(i),l=y.initialClickWithinAnnotation||new j.E9,u=v.map((e=>fa(e,s,d,l)));r(u),b({type:"scroll",translation:s}),P.current=n,va(c)}),[c,t,E,d,r,y.initialClickWithinAnnotation,y.translation,p,v]);(0,fi.wA)(w,t,O);const I=w&&T.createElement(pt.Z,{onRootPointerDownCapture:k,onRootPointerMoveCapture:m?A:void 0,onRootPointerUpCapture:k});return{isDragging:S,cancelDrag:C,startDraggingWithEvent:D,startDraggingAtPoint:x,dragListener:I}}({getScrollElement:f,transformClientToPage:h,transformedAnnotations:x,setTransformedAnnotations:D,setGlobalAnnotations:O,interactionsDisabled:g,dispatch:r,frameWindow:m,pageSize:v,transformDeltaFromClientToPage:A,eventEmitter:y,restrictAnnotationToPageBounds:b,isEditableCP:p,selectedAnnotationsBoundingBox:k,selectedAnnotations:n}),L=T.Children.toArray(t).map((e=>T.isValidElement(e)?function(e,t){return T.cloneElement(e,Ra(Ra({},t),{},{isDisabled:!0}))}(e,{annotation:x.find((t=>{var n;return t.id===(null===(n=e.props)||void 0===n?void 0:n.annotation.id)})),globalAnnotation:o.find((t=>{var n;return t.id===(null===(n=e.props)||void 0===n?void 0:n.annotation.id)})),isDragging:I}):e));(0,fi.Sv)(w,r,R),T.useLayoutEffect((function(){I&&M()}),[l,M]);const B=T.useRef(null);B.current=function(e,t){E&&E(e,t)};const z=L.filter((e=>Boolean(e.props.annotation))).length>1;return T.createElement(pt.Z,{onPointerDownCapture:function(e){e.isPrimary},onPointerUp:La},T.createElement("div",{style:{touchAction:"none",zIndex:1}},T.createElement(Ji,{zoomLevel:l,viewportSize:c.getSize(),startDragging:_,isDragging:I,pagesRotation:d,isResizable:!1,isModifiable:!1,isEditableCP:p,annotationBoundingBox:k,isRotatable:!1},L.filter((e=>Boolean(e.props.annotation))).map(((e,t)=>{const n=e.props.annotation,o=(0,J._k)(n,P);return T.createElement(Ji,{key:n.id,zoomLevel:l,viewportSize:c.getSize(),startDragging:_,isDragging:I,pagesRotation:d,isResizable:!1,isModifiable:!1,isRotatable:!1,isEditableCP:p,annotationBoundingBox:(0,J.SY)(n,d),deselectAnnotation:e=>{r((0,je.mg)(n,e))},annotationRotation:n.rotation,customZIndex:2},T.createElement("div",{tabIndex:t,"aria-label":n instanceof s.x_?P(Ke.Z.selectedAnnotation,{arg0:o}):n instanceof s.gd||n instanceof s.Qi?P(Ke.Z.selectedAnnotationWithText,{arg0:o,arg1:n.text.value}):P(Ke.Z.selectedAnnotation,{arg0:o}),ref:z?void 0:C,role:"button","data-testid":`selected annotation ${t}`,onFocus:e=>{return t=n,o=e,void(S&&S(t,o));var t,o},onBlur:e=>{var t;return null===(t=B.current)||void 0===t?void 0:t.call(B,n,e)},className:F()(`PSPDFKit-Annotation-Selected-${t}`,"PSPDFKit-Annotation-Selected",n.constructor.readableName&&`PSPDFKit-${n.constructor.readableName}-Annotation-Selected`)},e))}))),N))}));function La(e){e.stopPropagation()}const Ba=(0,A.$j)((function(e,t){let{annotation:n}=t;return{interactionsDisabled:e.interactionsDisabled,selectedAnnotationShouldDrag:e.selectedAnnotationShouldDrag,eventEmitter:e.eventEmitter,restrictAnnotationToPageBounds:e.restrictAnnotationToPageBounds,isEditableCP:(0,oi.CM)(n,e),shouldConstrainAspectRatio:t=>(0,J.xU)(t,e)}}))(Na);function ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function za(e){for(var t=1;t(a((0,En.X2)()),()=>{a((0,En.Zg)())})),[a]);const{pageIndex:c}=e,u=(0,A.v9)((e=>e.viewportState.zoomLevel)),d=F()([ro().canvas],"PSPDFKit-Redaction-Canvas"),{boundingBox:p}=o,f=(0,A.v9)((e=>e.scrollElement));return T.createElement("div",{className:d},T.createElement(Be,{zoomLevel:u,applyZoom:!0},T.createElement("div",{style:za(za({},p.toJS()),{},{position:"absolute"})},T.createElement(so,{annotation:o,zoomLevel:1,previewRedactionMode:!1,isSelectable:!1}))),T.createElement(Cn,{pageSize:s,pageIndex:c,currentAnnotation:o,onAnnotationUpdate:r,keepSelectedTool:l,scrollElement:f}))}var Za=n(61193),Ua=n.n(Za),Va=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ga=function(){return Ga=Object.assign||function(e){for(var t,n=1,o=arguments.length;n1&&void 0!==arguments[1]?arguments[1]:1;return e.scale(1/t)}function vs(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}let ys;!function(e){e[e.NOT_CREATED=0]="NOT_CREATED",e[e.CREATING=1]="CREATING",e[e.CREATED=2]="CREATED"}(ys||(ys={}));const bs=e=>{let{page:t,viewportState:n,onAreaChangeComplete:o,frameWindow:r,onAreaChangeStart:i,initialDraggingEvent:s}=e;const{zoomLevel:l}=n,[c,u]=(0,T.useState)(l),d=(0,T.useRef)(null),[p,f]=(0,T.useState)({left:0,top:0,height:0,width:0}),[h,m]=(0,T.useState)(!1),[g,v]=(0,T.useState)(null),[y,b]=(0,T.useState)(ys.NOT_CREATED),[w,S]=(0,T.useState)(!1),[E,P]=(0,T.useState)(void 0),[x,D]=(0,T.useState)(!1),C=(0,T.useRef)(null);(0,T.useEffect)((()=>{const e=r.document.querySelector(".PSPDFKit-Scroll");(0,a.kG)(e),e.style.overflow=w?"hidden":"auto",r.document.body.style.overscrollBehavior=w?"contain":"auto"}),[w]),(0,T.useEffect)((()=>{function e(e){"Shift"===e.key&&D(!0)}function t(e){"Shift"===e.key&&D(!1)}return r.document.addEventListener("keydown",e),r.document.addEventListener("keyup",t),()=>{r.document.removeEventListener("keydown",e),r.document.removeEventListener("keyup",t)}}),[]),(0,T.useEffect)((()=>{if(E&&l!==c){const e=E.scale(l/c);P(e),u(l),y===ys.CREATING&&(b(ys.CREATED),null==o||o(gs(e,l)))}}),[c,l,E]);const k=(0,T.useCallback)(((e,t,n,o)=>{P((e=>{var n,r;(0,a.kG)(e);let i=new j.UL({left:e.left,top:e.top,width:(null===(n=C.current)||void 0===n?void 0:n.width)+o.width,height:(null===(r=C.current)||void 0===r?void 0:r.height)+o.height});return e&&t.toLowerCase().includes("top")&&(i=i.set("top",e.top-(i.height-e.height))),e&&t.toLowerCase().includes("left")&&(i=i.set("left",e.left-(i.width-e.width))),i}))}),[P,t.pageSize,l,p]);function A(e){var t;return parseInt(null===(t=e.target.closest(".PSPDFKit-Page"))||void 0===t?void 0:t.getAttribute("data-page-index"),10)}const O=(0,fi.R9)((e=>{"touches"in e&&2===e.touches.length&&m(!0);const n=A(e);if(t.pageIndex!==n)return;e.stopImmediatePropagation(),(0,a.kG)(d.current);const o=d.current.getBoundingClientRect(),{clientY:r,clientX:i}=vs(e);f(o),v(new j.E9({x:i-o.left,y:r-o.top}))}));(0,T.useEffect)((()=>{s&&O(s)}),[s,O]);const I=(0,fi.R9)((e=>{if(!g||y===ys.CREATED)return;const{clientX:t,clientY:n}=vs(e);if(g.x!==t||g.y!==t){e.stopImmediatePropagation(),S(!0);const o=t-p.left,r=n-p.top,a=new j.UL({left:Math.max(0,Math.min(o,g.x)),top:Math.max(0,Math.min(r,g.y)),width:o{if(y===ys.CREATED)return;m(!1);const n=A(e);t.pageIndex===n&&e.stopImmediatePropagation(),S(!1),v(null),E?(null==o||o(gs(E,l)),b(ys.CREATED)):b(ys.NOT_CREATED)}));(0,T.useEffect)((()=>(r.document.addEventListener("pointerdown",O),r.document.addEventListener("pointermove",I),r.document.addEventListener("pointerup",M),r.document.addEventListener("touchstart",O),r.document.addEventListener("touchmove",I),r.document.addEventListener("touchend",M),()=>{r.document.removeEventListener("pointerdown",O),r.document.removeEventListener("pointermove",I),r.document.removeEventListener("pointerup",M),r.document.removeEventListener("touchstart",O),r.document.removeEventListener("touchmove",I),r.document.removeEventListener("touchend",M)})),[O,I,M]);const _=E&&{x:E.left,y:E.top,width:E.width,height:E.height};return T.createElement("div",{ref:d,className:ps().wrapper,onPointerUp:e=>e.stopPropagation(),role:"application"},y!==ys.NOT_CREATED&&T.createElement(T.Fragment,null,y===ys.CREATED&&function(e){const t={position:"absolute",backgroundColor:"rgba(0,0,0,0.2)"};return e?T.createElement(T.Fragment,null,T.createElement("div",{style:hs(hs({},t),{},{left:0,top:0,bottom:0,width:e.left})}),T.createElement("div",{style:hs(hs({},t),{},{left:e.left,top:0,right:0,height:e.top})}),T.createElement("div",{style:hs(hs({},t),{},{left:e.left+e.width,top:e.top,right:0,bottom:0})}),T.createElement("div",{style:hs(hs({},t),{},{left:e.left,top:e.top+e.height,bottom:0,width:e.width})})):null}(E),T.createElement(Ua(),{position:_,onStart:()=>{(0,a.kG)(E),null==i||i(gs(E,l))},onDrag:(e,t)=>{if(h)return!1;P((e=>((0,a.kG)(e),e.merge({left:t.x,top:t.y}))))},onStop:()=>{(0,a.kG)(E),null==o||o(gs(E,l))},defaultPosition:_,cancel:`.${ps().handles}`,bounds:"parent"},T.createElement(us,{size:E?{width:E.width,height:E.height}:void 0,onResizeStart:()=>{S(!0),(0,a.kG)(d.current&&E),null==i||i(gs(E,l)),f(d.current.getBoundingClientRect()),C.current=E},onResize:k,onResizeStop:()=>{S(!1),(0,a.kG)(E),null==o||o(gs(E,l)),C.current=null},handleClasses:ms,bounds:"parent",boundsByDirection:!0,lockAspectRatio:x},T.createElement("div",{style:E?{width:E.width,height:E.height}:void 0,className:F()(ps().cropBox,"PSPDFKit-Document-Crop-Box")})))))};function ws(e){const{dispatch:t,linkAnnotation:n,pageIndex:o}=e;T.useEffect((()=>()=>{t((0,En.lL)())}),[]);const r=F()({[ro().canvas]:!0});return T.createElement("div",{className:r},T.createElement(bs,{viewportState:e.viewportState,page:e.page,onAreaChangeComplete:function(e){const r=n.set("pageIndex",o).set("boundingBox",e);window.setTimeout((()=>{(0,A.dC)((()=>{t((0,Qt.FG)(r)),t((0,En.UU)()),t((0,je.Df)((0,i.l4)([r.id]),null)),t((0,Qt.ZE)(r.id)),t((0,En.lL)())}))}),10)},frameWindow:e.window}))}var Ss=n(76374),Es=n.n(Ss);const Ps=e=>{let{viewportState:t,onAreaChangeComplete:n,frameWindow:o,onAreaChangeStart:r,initialDraggingEvent:i}=e;const s=(0,A.I0)(),{zoomLevel:l}=t,c=(0,T.useRef)(null),[u,d]=(0,T.useState)({left:0,top:0,height:0,width:0}),[p,f]=(0,T.useState)(!1),[h,m]=(0,T.useState)(null),[g,v]=(0,T.useState)(ys.NOT_CREATED),[y,b]=(0,T.useState)(void 0),w=(0,fi.R9)((e=>{"touches"in e&&2===e.touches.length&&f(!0),s((0,je._)(!0)),e.stopImmediatePropagation(),(0,a.kG)(c.current);const t=c.current.getBoundingClientRect(),{clientY:n,clientX:o}=vs(e);d(t),m(new j.E9({x:o-t.left,y:n-t.top}))}));(0,T.useEffect)((()=>{i&&w(i)}),[i,w]);const S=(0,fi.R9)((e=>{if(!h||g===ys.CREATED)return;const{clientX:t,clientY:n}=vs(e);if(h.x!==t||h.y!==t){e.stopImmediatePropagation();const o=t-u.left,i=n-u.top,a=new j.UL({left:Math.max(0,Math.min(o,h.x)),top:Math.max(0,Math.min(i,h.y)),width:o{g!==ys.CREATED&&(f(!1),s((0,je._)(!1)),e.stopImmediatePropagation(),m(null),y?(null==n||n(gs(y,l)),v(ys.CREATED)):v(ys.NOT_CREATED))}));(0,T.useEffect)((()=>(o.document.addEventListener("pointerdown",w),o.document.addEventListener("pointermove",S),o.document.addEventListener("pointerup",E),o.document.addEventListener("touchstart",w),o.document.addEventListener("touchmove",S),o.document.addEventListener("touchend",E),()=>{o.document.removeEventListener("pointerdown",w),o.document.removeEventListener("pointermove",S),o.document.removeEventListener("pointerup",E),o.document.removeEventListener("touchstart",w),o.document.removeEventListener("touchmove",S),o.document.removeEventListener("touchend",E)})),[w,S,E]);const P=y&&{x:y.left,y:y.top,width:y.width,height:y.height};return T.createElement("div",{ref:c,className:Es().wrapper,onPointerUp:e=>e.stopPropagation(),role:"application"},g!==ys.NOT_CREATED&&T.createElement(T.Fragment,null,T.createElement(Ua(),{position:P,onStart:()=>{(0,a.kG)(y),null==r||r(gs(y,l))},onDrag:(e,t)=>{if(p)return!1;b((e=>((0,a.kG)(e),e.merge({left:t.x,top:t.y}))))},onStop:()=>{(0,a.kG)(y),null==n||n(gs(y,l))},defaultPosition:P,bounds:"parent"},T.createElement("div",{style:y?{width:y.width,height:y.height}:void 0,className:F()(Es().selectionBox,"PSPDFKit-Multiple-Selection-Box")}))))};function xs(e){const t=(0,A.I0)(),n=(0,A.v9)((e=>e.annotations)),{pageIndex:o,viewportState:r,window:a,initialDraggingEvent:s,multiAnnotationsUsingShortcut:l}=e;return T.createElement("div",{className:ro().canvas},T.createElement(Ps,{viewportState:r,onAreaChangeComplete:function(e){const r=n.filter((e=>e.pageIndex===o)).toArray(),s=[];r.forEach((t=>{let[n,o]=t;const r=o.boundingBox;e.isRectOverlapping(r)&&s.push(n)})),s.length?a.setTimeout((()=>{(0,A.dC)((()=>{t((0,je.fz)()),t((0,je.Df)((0,i.l4)(s),null))}))}),5):t((0,En.FA)())},frameWindow:a,initialDraggingEvent:l?s:void 0}))}const Ds=[x.A.SHAPE_LINE,x.A.SHAPE_RECTANGLE,x.A.SHAPE_ELLIPSE,x.A.SHAPE_POLYLINE,x.A.SHAPE_POLYGON],Cs=[x.A.DISTANCE,x.A.PERIMETER,x.A.RECTANGLE_AREA,x.A.ELLIPSE_AREA,x.A.POLYGON_AREA];var ks=n(33320),As=n(71603);function Os(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ts(e){for(var t=1;te.set("debugMode",!0),[te.RTr]:e=>e.set("hasFetchedInitialRecordsFromInstant",!0),[te.kt4]:(e,t)=>{let{enabled:n}=t;return e.set("areClipboardActionsEnabled",n)},[te.heZ]:(e,t)=>{let{group:n}=t;return e.set("group",n)},[te.G5w]:e=>e.set("isDebugConsoleVisible",!0),[te.GW4]:e=>e.set("isDebugConsoleVisible",!1),[te.mqf]:(e,t)=>{let{preset:n="text-highlighter"}=t;const o=new j.FV((0,J.lx)(e.set("currentItemPreset",n)));return e.withMutations((e=>{e.set("currentItemPreset",n),e.set("interactionMode",x.A.TEXT_HIGHLIGHTER),e.set("selectedAnnotationIds",(0,i.l4)([o.id])),e.set("selectedAnnotationMode",Q.o.EDITING),n&&!(n in fe.AQ)&&e.setIn(["annotationPresetIds",o.id],n),e.setIn(["annotations",o.id],o)}))},[te.tLW]:e=>e.withMutations((t=>{t.set("currentItemPreset",null),t.set("interactionMode",null),e.interactionMode===x.A.TEXT_HIGHLIGHTER&&(0,J.Xu)(t),t.set("selectedAnnotationIds",(0,i.l4)())})),[te.tS$]:(e,t)=>{let{preset:n="redaction"}=t;const o=new pe.Z((0,J.lx)(e.set("currentItemPreset",n)));return e.withMutations((e=>{e.set("currentItemPreset",n),e.set("interactionMode",x.A.REDACT_TEXT_HIGHLIGHTER),e.set("selectedAnnotationIds",(0,i.l4)([o.id])),e.set("selectedAnnotationMode",Q.o.EDITING),n&&!(n in fe.AQ)&&e.setIn(["annotationPresetIds",o.id],n),e.setIn(["annotations",o.id],o)}))},[te.g30]:e=>e.withMutations((t=>{t.set("currentItemPreset",null),t.set("interactionMode",null),e.interactionMode===x.A.REDACT_TEXT_HIGHLIGHTER&&(0,J.Xu)(t),t.set("selectedAnnotationIds",(0,i.l4)())})),[te.VNM]:(e,t)=>{let{editor:n}=t;return e.set("richTextEditorRef",n)},[te.yPS]:(e,t)=>{let{preset:n}=t;return e.withMutations((e=>{e.set("interactionMode",x.A.MEASUREMENT),void 0!==n&&e.set("currentItemPreset",n)}))},[te.m_C]:e=>e.set("interactionMode",null),[te.GXR]:(e,t)=>{let{preset:n}=t;const o=new j.Zc((0,J.lx)(e));return e.withMutations((t=>{t.set("interactionMode",x.A.INK),t.set("interactionsDisabled",!0),t.set("selectedAnnotationIds",(0,i.l4)([o.id])),t.set("selectedAnnotationMode",Q.o.EDITING),void 0!==n&&t.set("currentItemPreset",n);const r=void 0!==n?n:e.currentItemPreset;r&&!fe.AQ[r]&&t.setIn(["annotationPresetIds",o.id],r),t.setIn(["annotations",o.id],o)}))},[te.J7J]:e=>e.set("interactionMode",null),[te.JyO]:e=>e.withMutations((e=>{e.set("interactionMode",x.A.INK_ERASER),e.set("selectedAnnotationIds",(0,i.l4)()),e.set("interactionsDisabled",!0)})),[te.NDs]:e=>e.set("interactionMode",null),[te.Vu4]:(e,t)=>{let{signatureRect:n,signaturePageIndex:o,formFieldName:r}=t;null!==o&&(0,a.kG)("number"==typeof o&&o>=0&&o{e.set("interactionMode",x.A.SIGNATURE),e.setIn(["signatureState","signatureRect"],n),e.setIn(["signatureState","signaturePageIndex"],o),e.setIn(["signatureState","formFieldName"],r)}))},[te.S$y]:e=>e.withMutations((e=>{e.set("widgetAnnotationToFocus",null),e.set("interactionMode",null),e.set("currentItemPreset",null),e.setIn(["signatureState","formFieldName"],null),e.setIn(["signatureState","signatureRect"],null),e.setIn(["signatureState","signaturePageIndex"],null)})),[te.Dzg]:e=>{const t={annotations:(0,i.aV)([new j.GI({pageIndex:e.viewportState.currentPageIndex})]),reason:u.f.SELECT_START};return e.eventEmitter.emit("annotations.willChange",t),e.withMutations((e=>{e.set("interactionMode",x.A.STAMP_PICKER),e.set("currentItemPreset",null)}))},[te.M3C]:e=>e.withMutations((e=>{e.set("interactionMode",x.A.STAMP_CUSTOM),e.set("currentItemPreset",null)})),[te.tie]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[te.JS9]:(e,t)=>{const n=Cs.includes(t.shapeInteractionMode),o=(0,J.lx)(e),{activeMeasurementScale:r,isCalibratingScale:a}=e;n&&(o.measurementScale=null!=r&&r.scale?new As.Z({fromValue:Number(r.scale.fromValue),toValue:Number(r.scale.toValue),unitFrom:r.scale.unitFrom,unitTo:r.scale.unitTo}):e.measurementScale,o.measurementPrecision=null!=r&&r.precision?r.precision:e.measurementPrecision,a&&(o.strokeColor=j.Il.BLUE));const s=new t.shapeClass(o);return e.withMutations((n=>{n.set("interactionMode",t.shapeInteractionMode),n.set("interactionsDisabled",!0),n.set("selectedAnnotationIds",(0,i.l4)([s.id])),n.set("selectedAnnotationMode",Q.o.EDITING),void 0!==t.preset&&n.set("currentItemPreset",t.preset);const o=void 0!==t.preset?t.preset:e.currentItemPreset;o&&!fe.AQ[o]&&n.setIn(["annotationPresetIds",s.id],o),n.setIn(["annotations",s.id],s)}))},[te.AIf]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[te.cbv]:(e,t)=>{let{preset:n="redaction"}=t;const o=new pe.Z((0,J.lx)(e.set("currentItemPreset",n)));return e.withMutations((e=>{e.set("currentItemPreset",n),e.set("interactionMode",x.A.REDACT_SHAPE_RECTANGLE),e.set("interactionsDisabled",!0),e.set("selectedAnnotationIds",(0,i.l4)([o.id])),e.set("selectedAnnotationMode",Q.o.EDITING),n&&!(n in fe.AQ)&&e.setIn(["annotationPresetIds",o.id],n),e.setIn(["annotations",o.id],o)}))},[te.TUA]:e=>e.withMutations((t=>{t.set("interactionMode",null),t.set("currentItemPreset",null),e.interactionMode===x.A.REDACT_SHAPE_RECTANGLE&&(0,J.Xu)(t),t.set("selectedAnnotationIds",(0,i.l4)())})),[te.ZDQ]:(e,t)=>{const{annotation:n,preset:o}=t,r=n||new j.Qi((0,J.lx)(e));return e.withMutations((t=>{t.set("interactionMode",x.A.NOTE),t.set("selectedAnnotationIds",(0,i.l4)([r.id])),t.set("selectedAnnotationMode",Q.o.EDITING),void 0!==o&&t.set("currentItemPreset",o);const n=void 0!==o?o:e.currentItemPreset;n&&!fe.AQ[n]&&t.setIn(["annotationPresetIds",r.id],n),t.setIn(["annotations",r.id],r)}))},[te.B1n]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[te.dEe]:(e,t)=>{const n=t.annotation?t.annotation:new j.Jn((0,J.lx)(e));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,i.l4)([n.id])),e.set("selectedAnnotationMode",Q.o.EDITING),e.setIn(["annotations",n.id],n),e.set("interactionMode",x.A.COMMENT_MARKER),e.set("currentItemPreset",null)}))},[te.iMs]:e=>e.set("interactionMode",null),[te.pnu]:(e,t)=>{const{annotation:n,preset:o}=t;let r=n;if(!r&&(r=new j.gd((0,J.lx)(e)),e.enableRichText(r))){var a;const e=ue.ri.setStyleOrToggleFormat(r.text.value||"","fontColor",(null===(a=r.fontColor)||void 0===a?void 0:a.toHex())||"");r=r.set("fontColor",null).set("text",{format:"xhtml",value:e})}const s=r.id;return e.withMutations((n=>{n.set("interactionMode",t.isCallout?x.A.CALLOUT:x.A.TEXT),void 0!==o&&n.set("currentItemPreset",o);const a=void 0!==o?o:e.currentItemPreset;a&&!fe.AQ[a]&&n.setIn(["annotationPresetIds",s],a),n.setIn(["annotations",s],r),n.set("selectedAnnotationIds",(0,i.l4)([s])),n.set("selectedAnnotationMode",Q.o.EDITING)}))},[te.KqR]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[te.JRS]:e=>e.withMutations((e=>{e.set("interactionMode",x.A.DOCUMENT_CROP),e.set("interactionsDisabled",!0),e.set("currentItemPreset",null)})),[te.Gox]:e=>e.withMutations((e=>{e.set("interactionMode",null),e.set("interactionsDisabled",!1)})),[te.eFQ]:e=>e.set("interactionsDisabled",!1),[te.L8n]:e=>e.set("interactionsDisabled",!0),[te.MuN]:e=>e.set("showToolbar",!0),[te.xk1]:e=>e.set("showToolbar",!1),[te.tYC]:e=>e.set("enableAnnotationToolbar",!0),[te.NAH]:e=>e.set("enableAnnotationToolbar",!1),[te.Ce5]:(e,t)=>e.set("clientsChangeCallback",t.callback),[te.WtY]:(e,t)=>e.set("transformClientToPage",t.transformClientToPage),[te.tPZ]:(e,t)=>{const n=t.width>0?Math.abs(t.width-e.scrollbarOffset):-1*e.scrollbarOffset,o=(0,de.a$)(e.viewportState,e.viewportState.viewportRect,!1,n);return e.merge({viewportState:o,scrollbarOffset:t.width})},[te.rWQ]:(e,t)=>{let{layoutMode:n}=t;return e.update("viewportState",(e=>(0,de.YA)(e,n)))},[te.b0l]:(e,t)=>{let{scrollMode:n}=t;return e.update("viewportState",(e=>(0,de._U)(e,n)))},[te._n_]:(e,t)=>{let{scrollElement:n}=t;return e.set("scrollElement",n)},[te.bxr]:(e,t)=>{let{spreadSpacing:n}=t;return e.set("viewportState",(0,de.JN)(e.viewportState,n))},[te._ko]:(e,t)=>{let{pageSpacing:n}=t;return e.set("viewportState",(0,de.vY)(e.viewportState,n))},[te.FHt]:(e,t)=>{let{keepFirstSpreadAsSinglePage:n}=t;return e.set("viewportState",(0,de.EY)(e.viewportState,n))},[te.ht3]:(e,t)=>{let{viewportPadding:n}=t;return e.set("viewportState",(0,de._P)(e.viewportState,n))},[te.aYj]:e=>e.set("printingEnabled",!0),[te.hpj]:e=>e.set("printingEnabled",!1),[te.QYP]:e=>e.set("exportEnabled",!0),[te.zKF]:e=>e.set("exportEnabled",!1),[te.NfO]:(e,t)=>{let{readOnlyEnabled:n}=t;return e.set("readOnlyEnabled",n)},[te.cyk]:e=>e.set("showAnnotations",!0),[te.KYU]:e=>e.set("showAnnotations",!1),[te.Nl1]:e=>e.set("showComments",!0),[te.L9g]:e=>e.set("showComments",!1),[te.Dl4]:e=>e.set("showAnnotationNotes",!0),[te.GfR]:e=>e.set("showAnnotationNotes",!1),[te.Xlm]:e=>((0,a.kG)(!e.backendPermissions.readOnly,"Can not disable read only mode."),e.set("readOnlyEnabled",ve.J.NO)),[te.iQZ]:(e,t)=>{let{features:n}=t;return(0,a.kG)(0===e.features.size,"Cannot alterate the supported features list after initialization."),n.includes(ge.q.FORMS)||(e=e.set("formsEnabled",!1)),(0,So.Vz)(n)||n.includes(ge.q.ELECTRONIC_SIGNATURES)||(e=(e=e.set("readOnlyEnabled",ve.J.LICENSE_RESTRICTED)).setIn(["backendPermissions","readOnly"],!0)),e.set("features",n)},[te.JQC]:(e,t)=>{let{signatureFeatureAvailability:n}=t;return(0,a.kG)(!e.signatureFeatureAvailability,"Cannot alterate the signature feature availability after initialization."),e.set("signatureFeatureAvailability",n)},[te.hv0]:(e,t)=>{let{mode:n}=t;return e.set("sidebarMode",n)},[te.eI4]:(e,t)=>{let{placement:n}=t;return e.set("sidebarPlacement",n)},[te.bP3]:(e,t)=>{let{sidebarOptions:n}=t;return e.set("sidebarOptions",n)},[te._TO]:(e,t)=>{let{showSignatureValidationStatus:n}=t;return e.set("showSignatureValidationStatus",n)},[te.dVW]:(e,t)=>{let{locale:n}=t;return e.set("locale",n)},[te.hlI]:(e,t)=>{let{annotationCreatorName:n,immutable:o}=t;return e.set("annotationCreatorName",n).set("annotationCreatorNameReadOnly",o)},[te.ZbY]:(e,t)=>{let{editableAnnotationTypes:n}=t;return e.set("editableAnnotationTypes",n).set("isEditableAnnotation",null)},[te.uFU]:(e,t)=>{let{isEditableAnnotation:n}=t;return e.set("isEditableAnnotation",n).set("editableAnnotationTypes",(0,i.l4)(he.Z))},[te.ArU]:(e,t)=>{let{editableAnnotationTypes:n,isEditableAnnotation:o}=t;return e.set("isEditableAnnotation",o).set("editableAnnotationTypes",n)},[te.Q2U]:(e,t)=>{let{isEditableComment:n}=t;return e.set("isEditableComment",n)},[te.IFt]:(e,t)=>{let{formDesignMode:n}=t;return e.withMutations((t=>{t.set("formDesignMode",n),!1===n&&t.set("selectedAnnotationIds",e.selectedAnnotationIds.filter((t=>e.annotations.get(t)&&!(e.annotations.get(t)instanceof j.x_))))}))},[te.YIz]:e=>e.set("interactionMode",x.A.DOCUMENT_EDITOR),[te.Gkm]:(e,t)=>{let{measurementSnapping:n}=t;return e.set("measurementSnapping",n)},[te.fwq]:(e,t)=>{let{measurementPrecision:n}=t;return e.set("measurementPrecision",n)},[te.G6t]:(e,t)=>{let{scale:n}=t;return e.set("measurementScale",n)},[te.K26]:e=>e.set("interactionMode",null),[te.Hbz]:e=>e.set("interactionMode",x.A.MARQUEE_ZOOM),[te.$VE]:(e,t)=>{let{interactionMode:n}=t;return e.set("interactionMode",n)},[te.yrz]:e=>e.set("interactionMode",null),[te.sYK]:e=>e.set("interactionMode",null),[te.fAF]:(e,t)=>e.set("customRenderers",t.customRenderers),[te.pNz]:e=>e.withMutations((e=>{e.set("isSigning",!0),e.set("interactionsDisabled",!0)})),[te.bV3]:e=>e.withMutations((e=>{e.set("isSigning",!1),e.set("interactionsDisabled",!1)})),[te.EpY]:e=>e.withMutations((e=>{e.set("isApplyingRedactions",!0),e.set("interactionsDisabled",!0)})),[te.bui]:e=>e.withMutations((e=>{e.set("isApplyingRedactions",!1),e.set("interactionsDisabled",!1)})),[te.vVk]:(e,t)=>{let{previewRedactionMode:n}=t;return e.set("previewRedactionMode",n)},[te.D5x]:(e,t)=>e.set("a11yStatusMessage",t.a11yStatusMessage),[te.rpU]:(e,t)=>{let{lastToolbarActionUsedKeyboard:n}=t;return e.set("lastToolbarActionUsedKeyboard",n)},[te.KA1]:(e,t)=>{let{documentComparisonState:n}=t;return e.set("documentComparisonState",n?Ts(Ts({},e.documentComparisonState),n):null)},[te.MYU]:e=>e.set("canScrollWhileDrawing",!0),[te.mbD]:e=>e.set("canScrollWhileDrawing",!1),[te.wog]:e=>e.set("keepSelectedTool",!0),[te.UL9]:e=>e.set("keepSelectedTool",!1),[te.IyB]:(e,t)=>{let{instance:n}=t;return e.set("instance",n)},[te.eJ4]:(e,t)=>{let{customUIStore:n}=t;return e.set("customUIStore",n)},[te.R7l]:e=>{const t=new j.R1((0,J.lx)(e)),n="link";return e.withMutations((e=>{e.set("linkAnnotationMode",!0),e.set("interactionMode",x.A.LINK),e.set("selectedAnnotationIds",(0,i.l4)([t.id])),e.set("selectedAnnotationMode",Q.o.EDITING),e.setIn(["annotations",t.id],t),e.set("currentItemPreset",n);const o=n;!fe.AQ.link&&e.setIn(["annotationPresetIds",t.id],o)}))},[te.qKG]:e=>e.withMutations((e=>{e.set("linkAnnotationMode",!1)})),[te.oZW]:(e,t)=>{let{multiAnnotationsUsingShortcut:n}=t;return e.withMutations((t=>{e.isMultiSelectionEnabled&&(t.set("interactionMode",x.A.MULTI_ANNOTATIONS_SELECTION),t.set("selectedAnnotationIds",(0,i.l4)()),t.set("selectedAnnotationMode",Q.o.SELECTED),t.set("multiAnnotationsUsingShortcut",n))}))},[te.odo]:e=>e.withMutations((e=>{e.set("interactionMode",null),e.set("multiAnnotationsUsingShortcut",null)})),[te.Vje]:e=>e.set("interactionMode",x.A.MEASUREMENT_SETTINGS),[te.XTO]:e=>e.set("interactionMode",null),[te.FQb]:(e,t)=>{let{annotationsIds:n}=t;return e.withMutations((e=>{var t;const{annotationsGroups:o,annotations:r}=e,s=null===(t=r.find((e=>e.get("id")===n.first())))||void 0===t?void 0:t.get("pageIndex");n.forEach((e=>{const t=r.find((t=>t.id===e));(0,a.kG)(t,`Annotation with id ${e} couldn't be found.`),(0,a.kG)(s===t.get("pageIndex"),"Annotations can't be grouped if they are not on the same page")}));const l=o.map((e=>{const t=e.annotationsIds;return e.annotationsIds=t.filter((e=>!n.includes(e))),e})).filter((e=>e.annotationsIds.size>0)),c=(0,ks.C)();e.set("annotationsGroups",l.set(c,{groupKey:c,annotationsIds:(0,i.l4)(n)})),e.set("selectedGroupId",c)}))},[te.t$K]:(e,t)=>{let{groupId:n}=t;return e.set("selectedGroupId",n)},[te.vBn]:(e,t)=>{let{pullToRefreshNewState:n}=t;return e.set("disablePullToRefresh",n)},[te.bzW]:(e,t)=>{let{groupId:n}=t;return e.withMutations((e=>{const{annotationsGroups:t}=e;e.set("annotationsGroups",t.delete(n)),e.set("selectedGroupId",null)}))},[te.b4I]:(e,t)=>{let{annotationId:n,groupId:o}=t;return e.withMutations((e=>{const{annotationsGroups:t}=e,r=t.get(o);r&&(e.set("annotationsGroups",t.set(o,{groupKey:o,annotationsIds:r.annotationsIds.delete(n)})),e.set("selectedGroupId",null))}))},[te.tzG]:(e,t)=>{let{customFontsReadableNames:n}=t;return e.set("customFontsReadableNames",n)}};function Ms(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Is,t=arguments.length>1?arguments[1]:void 0;const n=Fs[t.type];return n?n(e,t):e}var _s=n(89849);const Rs=new j.ZM,Ns={[te.BS3]:(e,t)=>e.set("connectionState",new j.em({name:_s.F.CONNECTING,reason:t.reason,progress:t.progress})),[te.nmm]:e=>e.set("connectionState",new j.em({name:_s.F.CONNECTED})),[te.zZV]:(e,t)=>e.set("connectionState",new j.em({name:_s.F.CONNECTION_FAILED,reason:t.reason})),[te.rxv]:(e,t)=>e.set("annotationManager",t.annotationManager),[te.Hrp]:(e,t)=>e.set("bookmarkManager",t.bookmarkManager),[te.GHc]:(e,t)=>e.set("formFieldValueManager",t.formFieldValueManager),[te.oj5]:(e,t)=>e.set("formFieldManager",t.formFieldManager),[te.UII]:(e,t)=>e.set("commentManager",t.commentManager),[te.gbd]:(e,t)=>e.set("changeManager",t.changeManager),[te.Ty$]:(e,t)=>e.set("connectionState",new j.em({name:_s.F.PASSWORD_REQUIRED})).set("resolvePassword",t.resolvePassword),[te.hC8]:e=>e.set("isUnlockedViaModal",!0).set("resolvePassword",null),[te.poO]:(e,t)=>e.set("hasPassword",t.hasPassword),[te.iZ1]:(e,t)=>e.set("allowedTileScales",t.allowedTileScales)};function Ls(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rs,t=arguments.length>1?arguments[1]:void 0;const n=Ns[t.type];return n?n(e,t):e}const Bs=new j.ZM,js={[te.jJ7]:(e,t)=>{const{item:n}=t;return(0,Ne.k)(e.pages.get(n.pageIndex),`Trying to insert a CustomOverlayItem at pageIndex ${n.pageIndex}. But such a page does not exist.`),e.withMutations((e=>{e.updateIn(["pages",n.pageIndex,"customOverlayItemIds"],(e=>e.add(n.id))).setIn(["customOverlayItems",n.id],n)}))},[te.G8_]:(e,t)=>{const n=e.customOverlayItems.get(t.id);return(0,Ne.k)(n,"CustomOverlayItem not found"),e.withMutations((e=>{e.deleteIn(["pages",n.pageIndex,"customOverlayItemIds",n.id]).deleteIn(["customOverlayItems",n.id])}))}};function zs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bs,t=arguments.length>1?arguments[1]:void 0;const n=js[t.type];return n?n(e,t):e}const Ks=new j.ZM,Zs={[te.lRe]:(e,t)=>e.set("digitalSignatures",t.digitalSignatures)};function Us(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ks,t=arguments.length>1?arguments[1]:void 0;const n=Zs[t.type];return n?n(e,t):e}const Vs=new me.Z,Gs={[te.Oh4]:(e,t)=>{let{outline:n}=t;return e.withMutations((e=>{e.setIn(["documentOutlineState","elements"],n),e.setIn(["documentOutlineState","expanded"],qs((0,i.D5)(),n,"0"))}))},[te.Whn]:(e,t)=>{let{level:n}=t;return e.updateIn(["documentOutlineState","expanded",n],(e=>!e))}};function Ws(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vs,t=arguments.length>1?arguments[1]:void 0;const n=Gs[t.type];return n?n(e,t):e}function qs(e,t,n){return t.reduce(((e,t,o)=>{if(0===t.size)return e;const r=`${n}-${o}`;return qs(e.set(r,t.isExpanded),t.children,r)}),e)}var Hs=n(71693),$s=n(56956),Ys=n(52560),Xs=n(28098);const Js=new j.ZM,Qs={[te.wtk]:e=>{const{viewportState:t}=e,n=(0,Hs.dF)(t,t.currentPageIndex),o=(0,Hs.kd)(t),r=n>=o-1?o-1:n+1,s=(0,Hs.P1)(t,r)[0];return(0,a.kG)("number"==typeof s,"Can not find the next pageIndex."),e.withMutations((t=>{t.set("viewportState",(0,$s.eb)(e.viewportState,s)),t.set("hoverAnnotationIds",(0,i.l4)())}))},[te.mE7]:e=>{const{viewportState:t}=e,n=(0,Hs.dF)(t,t.currentPageIndex),o=n<=0?0:n-1,r=(0,Hs.P1)(t,o)[0];return(0,a.kG)("number"==typeof r,"Can not find the next pageIndex."),e.withMutations((n=>{n.set("viewportState",(0,$s.eb)(e.viewportState,r)),r!==t.currentPageIndex&&n.set("hoverAnnotationIds",(0,i.l4)())}))},[te.RxB]:(e,t)=>{const{pageIndex:n}=t;return(0,a.kG)(n>=0&&n{t.set("viewportState",(0,$s.eb)(e.viewportState,n)),n!==e.viewportState.currentPageIndex&&t.set("hoverAnnotationIds",(0,i.l4)())}))},[te.mLh]:(e,t)=>{const{scrollPosition:n,lastScrollUsingKeyboard:o=!1}=t;return e.set("viewportState",(0,$s.hu)(e.viewportState,n).set("lastScrollUsingKeyboard",o))},[te.g4f]:(e,t)=>{let{pageIndex:n,rect:o}=t;return e.set("viewportState",(0,$s.kN)(e.viewportState,n,o))},[te.Lyo]:(e,t)=>{let{pageIndex:n,rect:o}=t;return e.set("viewportState",(0,$s.vP)(e.viewportState,n,o))},[te.xYE]:(e,t)=>{var n;let{viewportRect:o,isTriggeredByOrientationChange:r}=t;const i=j.UL.fromClientRect(null===(n=e.rootElement)||void 0===n?void 0:n.getBoundingClientRect()),a=(0,de.a$)(e.viewportState,o,r,e.scrollbarOffset);return e.withMutations((e=>{e.set("containerRect",i),e.set("viewportState",a)}))},[te.syg]:(e,t)=>{let n=(0,Ys.cq)(e.viewportState,t.zoomLevel);return t.scrollPosition&&(n=n.set("scrollPosition",t.scrollPosition)),e.set("viewportState",n)},[te.u9b]:(e,t)=>{const n=e.viewportState.set("zoomStep",t.zoomStep);return e.set("viewportState",n)},[te.ZGb]:(e,t)=>e.set("viewportState",t.viewportState),[te.UFs]:e=>e.set("viewportState",(0,Ys.cq)(e.viewportState,e.viewportState.zoomLevel*e.viewportState.zoomStep)),[te.RCc]:e=>e.set("viewportState",(0,Ys.cq)(e.viewportState,e.viewportState.zoomLevel/e.viewportState.zoomStep)),[te.MfE]:e=>e.set("viewportState",(0,Ys.cq)(e.viewportState,Xs.c.AUTO)),[te.BWS]:e=>e.set("viewportState",(0,Ys.cq)(e.viewportState,Xs.c.FIT_TO_VIEWPORT)),[te.QU3]:e=>e.set("viewportState",(0,Ys.cq)(e.viewportState,Xs.c.FIT_TO_WIDTH)),[te.lD1]:(e,t)=>{let{degCW:n}=t;return e.update("viewportState",(e=>(0,Yr.U1)(e,n)))},[te.kRo]:e=>e.set("interactionMode",x.A.PAN),[te.UFK]:e=>e.set("interactionMode",null),[te.D1d]:(e,t)=>{let{width:n}=t;return e.set("sidebarWidth",n)},[te.WsN]:(e,t)=>{let{shouldDisable:n}=t;return e.set("scrollDisabled",n)}};function el(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Js,t=arguments.length>1?arguments[1]:void 0;const n=Qs[t.type];return n?n(e,t):e}var tl=n(19568),nl=n(47710),ol=n(4757),rl=n(56169),il=n(98013);function al(e){return(0,a.kG)(6===e.length,"Tried to deserialize matrix that does not have 6 entries"),new B.sl({a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]})}var sl=n(93572),ll=n(76413),cl=n.n(ll);function ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function dl(e){for(var t=1;t{const n=e.pages.map((e=>e.pageKey)),o=(0,i.aV)(t.payload).map((e=>{const t=new j.$u({width:e.width,height:e.height}),o=n.get(e.pageIndex)||(0,ks.C)();return new j.T3(dl(dl({},e),{},{matrix:al(e.matrix),reverseMatrix:al(e.reverseMatrix),untransformedRect:(0,sl.k)(e.untransformedBBox),transformedRect:(0,sl.k)(e.transformedBBox),rawPdfBoxes:e.rawPdfBoxes,pageKey:o,pageSize:t}))})),r=o.map((e=>e.pageSize));return e.withMutations((e=>{const t=e.viewportState.set("pageSizes",r);e.set("pages",o),e.set("viewportState",t),e.set("arePageSizesLoaded",!0)}))},[te.ME7]:(e,t)=>{const n=(0,i.aV)(t.payload.pages).map((e=>{var n;const o=new j.$u({width:e.width,height:e.height}),r=(null===(n=t.pageKeys)||void 0===n?void 0:n.get(e.pageIndex))||(0,ks.C)();return new j.T3(dl(dl({},e),{},{matrix:al(e.matrix),reverseMatrix:al(e.reverseMatrix),untransformedRect:(0,sl.k)(e.untransformedBBox),transformedRect:(0,sl.k)(e.transformedBBox),rawPdfBoxes:e.rawPdfBoxes,pageKey:r,pageSize:o}))})),o=n.map((e=>e.pageSize));return e.withMutations((r=>{let i=r.viewportState.set("pageSizes",o);if(r.set("pages",n),r.set("totalPages",n.size),r.set("documentPermissions",new tl.Z(mt.Ei.IGNORE_DOCUMENT_PERMISSIONS?void 0:t.payload.permissions)),i.currentPageIndex>=n.size&&(i=i.set("currentPageIndex",0)),i.zoomMode===Xs.c.CUSTOM){const e=(0,Ys.Yo)(i),t=(0,Ys.Sm)(i);(i.zoomLevelt)&&(i=i.set("zoomMode",Xs.c.AUTO))}if(i=i.zoomMode===Xs.c.CUSTOM?i.merge({zoomLevel:(0,Ys.X9)(i,i.zoomLevel)}):i.merge({zoomLevel:(0,Ys.X9)(i,i.zoomMode)}),i.scrollMode===nl.G.PER_SPREAD&&(i=(0,de._U)(i.set("scrollMode",nl.G.CONTINUOUS),nl.G.PER_SPREAD)),i.scrollMode===nl.G.DISABLED&&(i=(0,de._U)(i.set("scrollMode",nl.G.CONTINUOUS),nl.G.DISABLED)),i.currentPageIndex>0){if(0===i.viewportRect.width||0===i.viewportRect.height){let t=e.containerRect;e.showToolbar&&(t=t.set("top",il.k3).set("height",t.height-il.k3)),i=i.set("viewportRect",t)}i=(0,$s.eb)(i.set("currentPageIndex",0),i.currentPageIndex)}r.set("viewportState",i)}))},[te.GZZ]:(e,t)=>{const n=(0,i.D5)().withMutations((n=>{const o=[];t.textLines.forEach((t=>{var n;o.push(new Br.f(null===(n=e.frameWindow)||void 0===n?void 0:n.document,(0,i.aV)([(0,ol.LD)((0,So.HI)(e),t)]),{},cl().line))})),t.textLines.forEach(((e,t)=>{const r=o[t].measure().get(0);(0,Ne.k)(r);const{id:i}=e;n.set(i,{scaleX:e.boundingBox.width/r.width,scaleY:e.boundingBox.height/r.height})})),t.textLines.forEach(((e,t)=>{o[t].remove()}))}));return e.setIn(["pages",t.pageIndex,"textLines"],t.textLines).setIn(["pages",t.pageIndex,"textLineScales"],n)},[te.fnw]:(e,t)=>{let{backendPermissions:n}=t;return e.withMutations((e=>{n.readOnly&&e.set("readOnlyEnabled",ve.J.VIA_BACKEND_PERMISSIONS),n.downloadingAllowed||(e.set("exportEnabled",!1),e.set("printingEnabled",!1)),e.set("backendPermissions",n)}))},[te.obk]:e=>e.withMutations((e=>{e.set("annotations",(0,i.D5)()),e.set("attachments",(0,i.D5)()),e.set("formFields",(0,i.D5)()),e.set("currentTextSelection",null),e.set("interactionMode",null),e.set("selectedAnnotationIds",(0,i.l4)()),e.set("selectedAnnotationShouldDrag",null),e.set("selectedAnnotationMode",null),e.set("activeAnnotationNote",null),e.set("interactionsDisabled",!1),e.set("annotationPresetIds",(0,i.D5)()),e.set("documentOutlineState",new j.S),e.set("comments",(0,i.D5)()),e.set("commentThreads",(0,i.D5)()),e.set("invalidAPStreams",(0,i.D5)()),e.set("searchState",new rl.Z)})),[te.S0t]:(e,t)=>e.set("documentHandle",t.documentHandle).set("isDocumentHandleOutdated",!1),[te.YS$]:(e,t)=>e.set("isDocumentHandleOutdated",t.isDocumentHandleOutdated),[te.UX$]:(e,t)=>e.set("reuseState",t.state?new me.w(t.state):null),[te.TG1]:(e,t)=>e.withMutations((e=>{t.pageIndexes.forEach((t=>{e.setIn(["pages",t,"pageKey"],(0,ks.C)())}))}))};function hl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pl,t=arguments.length>1?arguments[1]:void 0;const n=fl[t.type];return n?n(e,t):e}const ml=new me.Z,gl={[te.skc]:e=>e.set("isPrinting",!0),[te.snh]:e=>e.set("isPrinting",!1),[te._uU]:e=>e.set("isPrinting",!1),[te.qV6]:(e,t)=>{let{currentPage:n}=t;return e.set("printLoadingIndicatorProgress",n)}};function vl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ml,t=arguments.length>1?arguments[1]:void 0;const n=gl[t.type];return n?n(e,t):e}function yl(e,t){const{focusedResultIndex:n}=e.searchState,o=e.searchState.results.size;if(o<=0)return e;let r=n+t;r<0&&(r+=o);const i=Math.abs(r%o),a=e.searchState.results.get(i);(0,Ne.k)(a);const s=(0,$s.kN)(e.viewportState,a.pageIndex,j.UL.union(null==a?void 0:a.rectsOnPage));return e.setIn(["searchState","focusedResultIndex"],i).set("viewportState",s)}const bl={[te.FH6]:(e,t)=>t.term.length>=e.searchState.minSearchQueryLength?e.setIn(["searchState","term"],t.term):e.setIn(["searchState","term"],t.term).setIn(["searchState","focusedResultIndex"],-1).setIn(["searchState","results"],(0,i.aV)()).setIn(["searchState","isLoading"],!1),[te.$Jy]:e=>yl(e,1),[te.gIV]:e=>yl(e,-1),[te.$hO]:e=>e.set("interactionMode",x.A.SEARCH).setIn(["searchState","isFocused"],!0),[te._AY]:e=>e.set("interactionMode",null).mergeIn(["searchState"],{isFocused:!1,term:"",results:(0,i.aV)(),focusedResultIndex:-1}),[te.Ifu]:e=>e.setIn(["searchState","isFocused"],!0),[te.nFn]:e=>e.setIn(["searchState","isFocused"],!1),[te.F6q]:(e,t)=>{let{isLoading:n}=t;return e.setIn(["searchState","isLoading"],n)},[te.qZT]:(e,t)=>{let{results:n}=t,o=e.viewportState,r=-1;if(-1!==e.searchState.focusedResultIndex){const t=e.searchState.results.get(e.searchState.focusedResultIndex);(0,Ne.k)(t);const{pageIndex:o}=t,i=t.rectsOnPage.first();(0,Ne.k)(i);const{top:a,left:s}=i;r=n.findIndex((e=>{const t=e.rectsOnPage.first();return(0,Ne.k)(t),e.pageIndex===o&&t.top===a&&t.left===s}))}if(-1===r&&n.size>0){r=n.findIndex((t=>t.pageIndex>=e.viewportState.currentPageIndex)),-1===r&&(r=0);const t=n.get(r);(0,Ne.k)(t),o=(0,$s.kN)(e.viewportState,t.pageIndex,j.UL.union(t.rectsOnPage))}return e.setIn(["searchState","results"],n).setIn(["searchState","focusedResultIndex"],r).set("viewportState",o)},[te.p1u]:(e,t)=>{let{state:n}=t;return e.set("searchState",n)},[te.esN]:(e,t)=>{let{provider:n}=t;return e.set("searchProvider",n)}};function wl(e,t){const n=bl[t.type];return n?n(e,t):e}const Sl=new j.ZM,El={[te.f3N]:(e,t)=>{const n=t.textRange,{startTextLineId:o,endTextLineId:r,startPageIndex:a,endPageIndex:s}=n.startAndEndIds(),l=new j.Bs({textRange:t.textRange,startTextLineId:o,endTextLineId:r,startPageIndex:a,endPageIndex:s}),c=e.withMutations((t=>{t.set("currentTextSelection",l),e.interactionMode!==x.A.TEXT_HIGHLIGHTER&&e.interactionMode!==x.A.REDACT_TEXT_HIGHLIGHTER&&t.set("selectedAnnotationIds",(0,i.l4)())}));return(0,So.j$)(j.On,e)?c:c.withMutations((e=>{e.set("inlineTextMarkupToolbar",t.inlineTextMarkupToolbar)}))},[te.MOe]:e=>e.delete("currentTextSelection"),[te.a33]:e=>e.withMutations((t=>{t.delete("selectedAnnotationMode"),t.set("currentItemPreset",null),e.interactionMode===x.A.TEXT_HIGHLIGHTER&&(0,J.Xu)(t),t.set("selectedAnnotationIds",(0,i.l4)()),t.set("widgetAnnotationToFocus",null),t.set("interactionMode",e.interactionMode===x.A.PAN||e.interactionMode===x.A.FORM_CREATOR?e.interactionMode:null),t.set("selectedTextOnEdit",!1),t.set("activeAnnotationNote",null),e.interactionMode===x.A.DISTANCE&&e.isCalibratingScale&&t.set("isCalibratingScale",!1)})),[te._Yi]:(e,t)=>{let n=null;const o=t.annotations.filter((t=>{const o=e.annotations.get(t);return n=e.annotationPresetIds.get(t)||null,o&&(o instanceof j.Qi||o.isCommentThreadRoot||!(0,So.lV)(o,e))}));return 0===o.size?e:e.withMutations((e=>{e.set("selectedAnnotationIds",o),e.set("currentItemPreset",n),e.set("selectedAnnotationMode",t.mode),e.set("selectedAnnotationShouldDrag",t.selectedAnnotationShouldDrag),e.delete("currentTextSelection")}))},[te.c3G]:e=>e.set("selectedAnnotationShouldDrag",null),[te.RvB]:e=>e.set("selectedTextOnEdit",!0),[te.qh0]:(e,t)=>((0,a.kG)(e.annotations.has(t.id),"Annotation not found"),e.readOnlyEnabled?e.update("focusedAnnotationIds",(e=>e.add(t.id))):e),[te.rm]:(e,t)=>((0,a.kG)(e.annotations.has(t.id),"Annotation not found"),e.readOnlyEnabled?e.update("focusedAnnotationIds",(e=>e.delete(t.id))):e),[te.TPT]:(e,t)=>{(0,a.kG)(e.annotations.has(t.id),"Annotation not found");const n=e.annotations.get(t.id);return e.readOnlyEnabled===ve.J.NO||n instanceof j.Qi?((0,a.kG)(n instanceof j.On||n instanceof j.R1||n instanceof j.gd||n instanceof j.Qi,"Annotation type does not support hovering"),e.updateIn(["hoverAnnotationIds"],(e=>e.has(t.id)?e:e.add(t.id)))):e},[te.iyZ]:(e,t)=>{(0,a.kG)(e.annotations.has(t.id),"Annotation not found");const n=e.annotations.get(t.id);return e.readOnlyEnabled===ve.J.NO||n instanceof j.Qi?((0,a.kG)(n instanceof j.On||n instanceof j.R1||n instanceof j.gd||n instanceof j.Qi,"Annotation type does not support hovering"),e.updateIn(["hoverAnnotationIds"],(e=>e.has(t.id)?e.delete(t.id):e))):e},[te.yyM]:(e,t)=>{const n=t.annotationNote;return e.set("hoverAnnotationNote",n)},[te.vSH]:(e,t)=>e.set("activeAnnotationNote",t.annotationNote),[te._fK]:(e,t)=>e.withMutations((n=>{if(t.newSelectedAnnotationsIds.size>0)n.set("selectedAnnotationIds",t.newSelectedAnnotationsIds);else{const o=1===e.selectedAnnotationIds.size&&e.annotations.get(e.selectedAnnotationIds.first());if(!o||null!=o.pageIndex){const o=new t.annotationClass((0,J.lx)(e));n.setIn(["annotations",o.id],o),n.set("selectedAnnotationIds",(0,i.l4)([o.id])),null!=e.currentItemPreset&&n.setIn(["annotationPresetIds",o.id],e.currentItemPreset)}}})),[te.L2A]:(e,t)=>e.set("inlineTextSelectionToolbarItems",t.inlineTextSelectionToolbarItemsCallback)};function Pl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sl,t=arguments.length>1?arguments[1]:void 0;const n=El[t.type];return n?n(e,t):e}const xl=new j.ZM,Dl={[te.mGH]:(e,t)=>{let{signature:n}=t;return e.withMutations((e=>{(0,J.ud)(e,n)}))},[te.W0l]:(e,t)=>{let{annotation:n}=t;return e.signatureState.formFieldName&&(0,a.kG)(!e.signatureState.formFieldsNotSavingSignatures.includes(e.signatureState.formFieldName),`Cannot save signature for the form field \`${e.signatureState.formFieldName}\` because this field is in formFieldsNotSavingSignatures`),e.updateIn(["signatureState","storedSignatures"],(e=>e.push(n)))},[te.Kw7]:(e,t)=>{let{annotations:n}=t;return e.setIn(["signatureState","storedSignatures"],n)},[te.Kc8]:(e,t)=>{let{annotation:n}=t;return e.updateIn(["signatureState","storedSignatures"],(e=>e.filter((e=>!e.equals(n)))))}};function Cl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xl,t=arguments.length>1?arguments[1]:void 0;const n=Dl[t.type];return n?n(e,t):e}const kl=new j.ZM,Al={[te.aWu]:(e,t)=>e.set("toolbarItems",t.toolbarItems),[te.T3g]:(e,t)=>e.set("annotationToolbarItems",t.annotationToolbarItemsCallback),[te.A8G]:(e,t)=>e.set("annotationToolbarHeight",t.height)};function Ol(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kl,t=arguments.length>1?arguments[1]:void 0;const n=Al[t.type];return n?n(e,t):e}const Tl=new j.ZM,Il={[te.iJ2]:(e,t)=>{let{formJSON:n}=t;(0,a.kG)("pspdfkit/form"==n.type,"Invalid type for form JSON."),(0,a.kG)(1==n.v,"Invalid version for form JSON."),(0,a.kG)(n.fields instanceof Array,"Invalid type for `fields` in form JSON.");const o=(0,nt.U_)(n.fields),r=(0,nt.hT)(n.annotations);return e.withMutations((e=>{e.set("formFields",o),r.forEach((t=>{const{id:n}=t;e.setIn(["annotations",n],t),(0,a.kG)(e.pages.has(t.pageIndex),"Invalid `pageIndex` of widget annotation: "+t.pageIndex),e.updateIn(["pages",t.pageIndex,"annotationIds"],(e=>e.add(n)))}))}))},[te.zGM]:(e,t)=>e.withMutations((e=>{t.formFields.forEach((t=>{e.setIn(["formFields",t.name],t)}))})),[te.Wyx]:(e,t)=>e.withMutations((n=>{t.formFields.forEach((t=>{const o=e.formFields.valueSeq().find((e=>e.id===t.id));(0,a.kG)(o,"Invalid form field ID: "+t.id);const r=o.name!==t.name;if(t instanceof j.XQ){const n=e.formFields.find((e=>e.name===t.name)),o=null==n?void 0:n.annotationIds;if(o&&n.id!==t.id){let e=o,r=n.options;[...t.annotationIds].forEach(((n,o)=>{e.includes(n)||(e=e.push(n),r=r.push(t.options.get(o)))})),t=t.set("annotationIds",e).set("options",r)}}if(r){t.annotationIds.forEach((e=>{n.annotations.get(e)&&n.setIn(["annotations",e,"formFieldName"],t.name)})),n.deleteIn(["formFields",o.name])}n.setIn(["formFields",t.name],t),(0,nt.r_)(o,e,n)}))})),[te.fDl]:(e,t)=>{const n=e.formFields.find((e=>e.id===t.formField.id));return e.withMutations((o=>{o.deleteIn(["formFields",null==n?void 0:n.name]),o.setIn(["formFields",t.formField.name],t.formField),(0,nt.r_)(e.formFields.get(t.formField.name),e,o)}))},[te.D_w]:(e,t)=>e.withMutations((n=>{t.formFieldsIds.forEach((t=>{const o=(0,nt.CL)(e,t);o&&n.deleteIn(["formFields",o.name])}))})),[te.Ui_]:(e,t)=>e.withMutations((n=>{(0,nt.AM)({state:e,mutableState:n,formFieldValues:t.formFieldValues,areFormFieldValuesNew:!0})})),[te.m3$]:(e,t)=>e.withMutations((n=>{(0,nt.AM)({state:e,mutableState:n,formFieldValues:t.formFieldValues,areFormFieldValuesNew:!1})})),[te.VK7]:(e,t)=>{let{formattedFormFieldValues:n}=t;return e.set("formattedFormFieldValues",e.formattedFormFieldValues.merge(n))},[te.yET]:(e,t)=>{let{editingFormFieldValues:n}=t;return e.set("editingFormFieldValues",e.editingFormFieldValues.merge(n))},[te.u7V]:(e,t)=>e.withMutations((n=>{t.formFieldValuesIds.forEach((t=>{const o=t.split("/")[1],r=e.formFields.get(o);r&&(r instanceof j.$o?n.setIn(["formFields",o,"value"],""):r instanceof j.XQ?n.setIn(["formFields",o,"value"],null):r instanceof j.Dz||r instanceof j.rF?n.setIn(["formFields",o,"values"],(0,i.aV)()):r instanceof j.R0||r instanceof j.Yo||(0,a.kG)(!1,`DELETE_FORM_FIELD_VALUE not implemented for ${o}`))}))})),[te.TYu]:(e,t)=>{let{onWidgetCreationStartCallback:n}=t;return e.set("onWidgetAnnotationCreationStart",n)},[te.vgx]:(e,t)=>{let{annotationId:n}=t;return e.set("formDesignerUnsavedWidgetAnnotation",n)}};function Fl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tl,t=arguments.length>1?arguments[1]:void 0;const n=Il[t.type];return n?n(e,t):e}var Ml=n(62164);const _l=new j.ZM,Rl={[te.ckI]:(e,t)=>e.withMutations((e=>{t.comments.forEach((t=>{if((0,Ne.k)(t.id&&!e.comments.has(t.id),`Comment with ID ${t.id} already exists.`),t.pageIndex<0||t.pageIndex>=e.pages.size)(0,a.ZK)(`Tried to add a comment with ID ${t.id} with an out of bounds page index (${t.pageIndex}). This comment was skipped.`);else if(e.setIn(["comments",t.id],t),(0,Ne.k)(t.rootId&&t.id),e.commentThreads.has(t.rootId)){const n=e.commentThreads.get(t.rootId);(0,Ne.k)(n),e.setIn(["commentThreads",t.rootId],n.add(t.id).sortBy((t=>{const n=e.comments.get(t);(0,Ne.k)(n);const o=n.createdAt.getTime();return[(0,Ml.kT)(n)?1:0,o]}),ze.b))}else e.setIn(["commentThreads",t.rootId],(0,i.hU)([t.id]))}))})),[te.hxO]:(e,t)=>{const n=t.rootId,o=e.annotations.get(n),r=new Date;let a=new j.sv({id:(0,ks.C)(),rootId:n,creatorName:e.annotationCreatorName||null,createdAt:r,updatedAt:r,text:{format:"plain",value:""}});if(e.onCommentCreationStart){const t=e.onCommentCreationStart(a);(0,Ne.k)(t instanceof j.sv,"`onCommentCreationStart` should return an instance of `Comment`"),a=t}(0,Ne.k)(e.backend),e.backend.isCollaborationPermissionsEnabled()&&e.group!==e.backend.getDefaultGroup()&&(a=a.set("group",e.group));return!(0,So.Ez)(a,e)&&o&&(0,oi.mi)(o,e)?e.withMutations((e=>{e.setIn(["comments",a.id],a),e.commentThreads.has(n)?e.updateIn(["commentThreads",n],(e=>e.add(a.id))):e.setIn(["commentThreads",n],(0,i.hU)([a.id]))})):e.set("interactionMode",null)},[te.FdD]:(e,t)=>e.withMutations((e=>{t.comments.forEach((t=>{(0,Ne.k)(t.id&&e.comments.has(t.id),`Comment with missing ID ${t.id} not found and thus cannot be updated.`),e.setIn(["comments",t.id],t)}))})),[te.kg]:(e,t)=>e.withMutations((e=>{t.ids.forEach((t=>{(0,Ne.k)(e.comments.has(t),`Comment with ID ${t} not found, so it cannot be deleted.`);const n=e.comments.get(t);(0,Ne.k)(null!=n,`Attempted to delete non-existent comment with ID ${t}`),(0,Ne.k)(n.rootId);const o=e.commentThreads.get(n.rootId);if((0,Ne.k)(null!=o,`Comment with ID ${t} has no corresponding thread with matching root ID ${n.rootId}`),(0,Ne.k)(n.id&&o.has(n.id),`Comment with ID ${n.id} is missing from its thread.`),1===o.size)e.removeIn(["commentThreads",n.rootId]);else{const t=o.remove(n.id);if(e.setIn(["commentThreads",n.rootId],t),1===t.size){const o=e.comments.get(t.first());(0,Ne.k)(null!=o),(0,Ml.kT)(o)&&(e.removeIn(["commentThreads",n.rootId]),e.removeIn(["comments",o.id]))}}e.removeIn(["comments",t])}))})),[te.NB4]:e=>e.setIn(["viewportState","commentMode"],(0,Ml.dq)(e)),[te.YHT]:(e,t)=>e.set("mentionableUsers",t.users),[te.ZLr]:(e,t)=>e.set("maxMentionSuggestions",t.maxSuggestions),[te.mfU]:(e,t)=>{let{onCommentCreationStartCallback:n}=t;return e.set("onCommentCreationStart",n)}};function Nl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_l,t=arguments.length>1?arguments[1]:void 0;const n=Rl[t.type];return n?n(e,t):e}const Ll=new j.ZM,Bl={[te.Kpf]:(e,t)=>e.set("documentEditorFooterItems",t.documentEditorFooterItems),[te.wPI]:(e,t)=>e.set("documentEditorToolbarItems",t.documentEditorToolbarItems)};function jl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ll,t=arguments.length>1?arguments[1]:void 0;const n=Bl[t.type];return n?n(e,t):e}function zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Kl(e){for(var t=1;te.withMutations((n=>{n.set("redoActions",e.redoActions.push(t.nextRedoAction));const o=t.oldId;if(o){n.update("redoActions",(e=>e.map((e=>e.payload.id===t.oldId?Kl(Kl({},e),{},{payload:Kl(Kl({},e.payload),{},{id:t.nextRedoAction.payload.id})}):e))));const r=t.nextRedoAction.payload.pageIndex,i="number"==typeof r&&e.invalidAPStreams.has(r)?e.invalidAPStreams.get(r):null;i&&i.has(o)&&n.setIn(["invalidAPStreams",r],i.add(t.nextRedoAction.payload.id).delete(o))}n.set("undoActions",e.undoActions.pop())})),[te.iwn]:(e,t)=>e.withMutations((n=>{n.set("undoActions",e.undoActions.push(t.nextUndoAction));const o=t.oldId;if(o){n.update("undoActions",(e=>e.map((e=>e.payload.id===t.oldId?Kl(Kl({},e),{},{payload:Kl(Kl({},e.payload),{},{id:t.nextUndoAction.payload.id})}):e))));const r=t.nextUndoAction.payload.pageIndex,i="number"==typeof r&&e.invalidAPStreams.has(r)?e.invalidAPStreams.get(r):null;i&&i.has(o)&&n.setIn(["invalidAPStreams",r],i.add(t.nextUndoAction.payload.id).delete(o))}n.set("redoActions",e.redoActions.pop())})),[te.faS]:(e,t)=>e.set("historyChangeContext",t.historyChangeContext),[te.tC1]:(e,t)=>e.set("historyIdsMap",e.historyIdsMap.set(t.newId,t.oldId)),[te._Qf]:e=>e.withMutations((t=>{t.set("undoActions",e.undoActions.clear()),t.set("redoActions",e.redoActions.clear()),t.set("historyIdsMap",e.historyIdsMap.clear())})),[te._33]:e=>e.set("isHistoryEnabled",!0),[te.wG7]:e=>e.set("isHistoryEnabled",!1)};function Vl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl,t=arguments.length>1?arguments[1]:void 0;const n=Ul[t.type];return n?n(e,t):e}var Gl=n(68218);const Wl=e=>new Gl.Sg(e),ql=e=>new Gl.UL({offset:Wl(e.offset),size:Wl(e.size)}),Hl=e=>new Gl.W4(e),$l=e=>{let t=i.l4.of();for(const n of e)t=t.add(Hl(n));return t},Yl=e=>new Gl.I5({family:e.family,variants:$l(e.variants)}),Xl=e=>new Gl.yO({family:e.family,variant:Hl(e.variant)}),Jl=e=>new Gl.IA({faceRef:Xl(e.faceRef),size:e.size}),Ql=e=>new Gl.mZ(e),ec=e=>new Gl.vz({fontRef:Jl(e.fontRef),color:e.color,effects:Ql(e.effects)}),tc=e=>new Gl.JR(e),nc=e=>new Gl.yJ({family:e.family,faceMismatch:e.faceMismatch?tc(e.faceMismatch):null,bold:e.bold,italic:e.italic,xScale:e.xScale,skew:e.skew,color:e.color,size:e.size}),oc=e=>new Gl.a2(e),rc=e=>new Gl.DN(e),ic=e=>new Gl.FQ({cluster:e.cluster,offset:Wl(e.offset),advance:Wl(e.advance),text:e.text,control:e.control,lastOfSegment:e.lastOfSegment,beginOfWord:e.beginOfWord,endOfWord:e.endOfWord}),ac=e=>new Gl.tW({offset:Wl(e.offset),lineSpacing:oc(e.lineSpacing),elements:i.aV.of(...e.elements.map(ic))});var sc=n(72643);const lc=new me.Z,cc=(e,t)=>{let n=!1;const o=ql(t.contentRect);(0,i.is)(o,e.contentRect)||(e=e.set("contentRect",o)),(0,i.is)(t.version,e.version)||(e=e.set("version",t.version),n=!0);const r=(a=t.cursor,new Gl.CF({offset:Wl(a.offset),lineSpacing:oc(a.lineSpacing)}));var a;(0,i.is)(r,e.cursor)||(e=e.set("cursor",r),n=!0);const s=t.selection?(e=>new Gl.Y1(e))(t.selection):null;(0,i.is)(s,e.selection)||(e=e.set("selection",s),n=!0);const l=(e=>new Gl.Ts({lines:i.aV.of(...e.lines.map(ac))}))(t.layoutView);(0,i.is)(l,e.layoutView)||(e=e.set("layoutView",l));const c=(e=>new Gl.tk({selectionStyleInfo:e.selectionStyleInfo?nc(e.selectionStyleInfo):null,modificationsCharacterStyle:e.modificationsCharacterStyle?ec(e.modificationsCharacterStyle):null,modificationsCharacterStyleFaceMismatch:e.modificationsCharacterStyleFaceMismatch?tc(e.modificationsCharacterStyleFaceMismatch):null}))(t.detectedStyle);if((0,i.is)(c,e.detectedStyle)||(e=e.set("detectedStyle",c)),c.modificationsCharacterStyle){let t=c.modificationsCharacterStyle;t=t.setIn(["effects"],new Gl.mZ({})),n&&!(0,i.is)(t,e.modificationsCharacterStyle)&&(e=e.set("modificationsCharacterStyle",t))}return e},uc={[te.MGL]:e=>e.withMutations((e=>{const t=e.contentEditorSession.sessionId+1;e.set("contentEditorSession",new Gl.aN({sessionId:t,active:!0})).set("interactionMode",x.A.CONTENT_EDITOR)})),[te.Qm9]:e=>e.withMutations((e=>{e.setIn(["contentEditorSession","active"],!1).set("interactionMode",null)})),[te.l$y]:(e,t)=>e.withMutations((e=>{(0,Ne.k)(!e.contentEditorSession.pageStates.has(t.pageIndex)),e.setIn(["contentEditorSession","pageStates",t.pageIndex],new Gl.nv({loading:!0}))})),[te.kD6]:(e,t)=>e.withMutations((e=>{var n;(0,Ne.k)(null===(n=e.contentEditorSession.pageStates.get(t.pageIndex))||void 0===n?void 0:n.loading);let o=e.contentEditorSession.pageStates.get(t.pageIndex);(0,Ne.k)(o);const r=t.initialTextBlocks.map((e=>{const t=e.textBlock,n=Wl(t.anchor),o=rc(t.globalEffects),r=new Gl.Ar({maxWidth:t.maxWidth,alignment:t.alignment,lineSpacingFactor:t.lineSpacingFactor}),i=new Gl.Q7({id:e.id,initialAnchor:n,initialGlobalEffects:o,initialLayout:r,anchor:n,globalEffects:o,layout:r,modificationsCharacterStyle:ec(t.modificationsCharacterStyle)});return cc(i,e.updateInfo)})),a=i.aV.of(...r);o=o.set("textBlocks",a),o=o.set("initialTextBlocks",a),o=o.set("loading",!1),e.setIn(["contentEditorSession","pageStates",t.pageIndex],o)})),[te.joZ]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","textBlockInteractionState"],new Gl._h({pageIndex:t.pageIndex,textBlockId:t.textBlockId,state:Gl.FP.Active}))})),[te.fQw]:e=>e.withMutations((e=>{const t=e.contentEditorSession.textBlockInteractionState;if(t.state===Gl.FP.Active){let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,Ne.k)(n),n=n.set("textBlocks",n.textBlocks.filter((e=>!(e.justCreated&&0===e.contentRect.size.x))).map((e=>e.id===t.textBlockId&&e.justCreated?e=e.set("justCreated",!1).set("layout",e.layout.set("maxWidth",Math.max(e.contentRect.size.x,10))):e))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)}e.setIn(["contentEditorSession","textBlockInteractionState"],e.contentEditorSession.textBlockInteractionState.state===Gl.FP.Active?e.contentEditorSession.textBlockInteractionState.set("state",Gl.FP.Selected):new Gl._h)})),[te.VOt]:(e,t)=>e.withMutations((e=>{let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,Ne.k)(n),n=((e,t,n)=>{const o=e.textBlocks.map((e=>e.id!=t?e:cc(e,n)));return e.set("textBlocks",o)})(n,t.textBlockId,t.updateInfo),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[te.U7k]:e=>e.withMutations((e=>{e.setIn(["contentEditorSession","availableFaces","loading"],!0)})),[te.ZgW]:(e,t)=>e.withMutations((e=>{const n=(o=t.faceList,i.aV.of(...o.map(Yl)));var o;e.setIn(["contentEditorSession","availableFaces"],new Gl.t9({faceList:n,loading:!1}))})),[te.Y4]:e=>e.withMutations((e=>{e.setIn(["contentEditorSession","saving"],!0)})),[te.HYy]:e=>e.withMutations((e=>{e.setIn(["contentEditorSession","dirty"],!0)})),[te.bOH]:(e,t)=>e.set("showExitContentEditorDialog",t.isVisible),[te.Han]:(e,t)=>e.set("contentEditorSession",e.contentEditorSession.set("fontMismatchTooltip",new Gl.xb({fontFace:t.fontFace,rect:t.tooltipRect}))),[te.WmI]:e=>e.set("contentEditorSession",e.contentEditorSession.set("fontMismatchTooltip",null)),[te.nI6]:(e,t)=>e.contentEditorSession.fontMismatchTooltip?e.setIn(["contentEditorSession","fontMismatchTooltip","dismissAbortController"],t.abortController):e,[te.Ebp]:(e,t)=>e.withMutations((e=>{let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,Ne.k)(n),n=n.set("textBlocks",n.textBlocks.map((e=>{if(e.id!=t.textBlockId)return e;let n=e.modificationsCharacterStyle;return t.faceRef&&!(0,i.is)(t.faceRef,n.fontRef.faceRef)&&(n=n.setIn(["fontRef","faceRef"],t.faceRef)),t.size&&!(0,i.is)(t.size,n.fontRef.size)&&(n=n.setIn(["fontRef","size"],t.size)),t.color&&!(0,i.is)(t.color,n.color)&&(n=n.set("color",t.color)),e=e.set("modificationsCharacterStyle",n)}))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[te.ciU]:(e,t)=>e.withMutations((e=>{e.contentEditorSession.dirty||e.setIn(["contentEditorSession","dirty"],!0);let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,Ne.k)(n),n=n.set("textBlocks",n.textBlocks.map((e=>{if(e.id!=t.textBlockId)return e;const{fixpointValue:n,newWidth:o}=t,{layout:r,globalEffects:i,anchor:a}=e;(0,Ne.k)(r.maxWidth);const s=(0,sc.uB)(r.alignment,i,n,o-r.maxWidth);return e=(e=e.set("anchor",new Gl.Sg({x:a.x+s.x,y:a.y+s.y}))).setIn(["layout","maxWidth"],o)}))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[te.fLm]:(e,t)=>e.withMutations((e=>{let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,Ne.k)(n),e.contentEditorSession.dirty||e.setIn(["contentEditorSession","dirty"],!0),t.isKeyboardMove||e.contentEditorSession.textBlockInteractionState.state===Gl.FP.Moving||e.setIn(["contentEditorSession","textBlockInteractionState"],new Gl._h({state:Gl.FP.Moving,pageIndex:t.pageIndex,textBlockId:t.textBlockId})),n=n.set("textBlocks",n.textBlocks.map((e=>e.id!=t.textBlockId?e:e=e.set("anchor",new Gl.Sg({x:t.anchor.x,y:t.anchor.y}))))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[te.xhM]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","textBlockInteractionState"],new Gl._h({pageIndex:t.pageIndex,textBlockId:t.textBlockId,state:Gl.FP.Selected}))})),[te.snK]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","textBlockInteractionState"],new Gl._h);let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,Ne.k)(n),n=n.set("textBlocks",n.textBlocks.filter((e=>e.id!==t.textBlockId))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n),e.setIn(["contentEditorSession","mode"],Gl.wR.Edit)})),[te.teI]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","mode"],t.mode)})),[te.uo5]:(e,t)=>e.withMutations((e=>{var n,o;let r=e.contentEditorSession.pageStates.get(t.pageIndex);const i=null===(n=e.pages.get(t.pageIndex))||void 0===n||null===(o=n.pageSize)||void 0===o?void 0:o.width;(0,Ne.k)(r),(0,Ne.k)(i);const{pageIndex:a,initialTextBlock:s}=t,l=s.textBlock,c=rc(l.globalEffects),u=new Gl.Ar({maxWidth:i-t.anchor.x,alignment:l.alignment,lineSpacingFactor:l.lineSpacingFactor});let d=new Gl.Q7({id:s.id,initialAnchor:t.anchor,initialGlobalEffects:c,initialLayout:u,anchor:t.anchor,globalEffects:c,layout:u,justCreated:!0,modificationsCharacterStyle:ec(l.modificationsCharacterStyle)});return d=cc(d,s.updateInfo),r=r.set("textBlocks",r.textBlocks.push(d)),e.setIn(["contentEditorSession","pageStates",a],r).setIn(["contentEditorSession","mode"],Gl.wR.Edit).setIn(["contentEditorSession","textBlockInteractionState"],new Gl._h({pageIndex:a,textBlockId:s.id,state:Gl.FP.Active}))}))};function dc(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lc,t=arguments.length>1?arguments[1]:void 0;const n=uc[t.type];return n?n(e,t):e}function pc(e,t){return[ae,ce,Ms,Ls,zs,Us,Ws,el,hl,vl,wl,Pl,Cl,Ol,Fl,Nl,jl,Vl,dc].reduce(((e,n)=>n(e,t)),e)}const fc=[V];const hc=(0,K.md)(...fc)(K.MT);function mc(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return hc(pc,new me.Z(e))}var gc=n(14012),vc=n(2810),yc=n(30761);async function bc(e){let t,{backend:n,dispatch:o,getState:r,maxPasswordRetries:s,password:l,stylesheetPromise:c,formFieldValuesJSON:u,customFonts:d}=e;try{await c;let e=!1;const{features:p,signatureFeatureAvailability:f,hasPassword:h,minSearchQueryLength:m,allowedTileScales:g,creatorName:v,defaultGroup:y}=await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,r=null,i=0;for(;!r;){try{r=await n(e)}catch(n){const r=in.load({password:t,progressCallback:(t,n)=>{e||o((0,gc.qZ)(t,n))},isPDFJavaScriptEnabled:mt.Ei.PDF_JAVASCRIPT})),(()=>(e=!0,new Promise((e=>o((0,gc.uT)(e))))))),{frameWindow:b}=r();let w=(0,i.l4)();if(d&&b){const e=await n.getAvailableFontFaces(d);for(const t of d){const n=e.find((e=>e.name===t.name)),o=(null==n?void 0:n.readableName)||t.name;b.document.fonts.add(new FontFace((0,vt.hm)(o),await t.data.arrayBuffer())),w=w.add(o)}w.size>0&&o((0,En.p2)(w))}await(0,yc.jX)(o,r,{attemptedUnlockViaModal:e,features:p,signatureFeatureAvailability:f,hasPassword:h,minSearchQueryLength:m,allowedTileScales:g});const{annotations:S,isAPStreamRendered:E,formFields:P}=r();n.isUsingInstantProvider()&&o((0,En.Ie)()),n.isCollaborationPermissionsEnabled()&&o((0,En.YK)(y));const x=await n.runPDFFormattingScriptsFromWidgets(S,P,E);if(x.length){const{formFieldManager:e}=r();let n,i;null!==e&&await e.loadFormFields(),t=new Promise(((e,t)=>{n=e,i=t})),o((0,Mo.bt)({changes:x,resolve:n,reject:i}))}"STANDALONE"===n.type&&mt.Ei.PDF_JAVASCRIPT&&u&&o((0,Mo.ul)((0,i.aV)(u.map(vc.u9)))),o((0,gc.Bm)()),v&&o((0,En.X8)(v,!0))}catch(e){(0,a.vU)("An error occurred while initializing PSPDFKit for Web.\n\n Please contact our customer support, if you're having troubles setting up PSPDFKit for Web or the PSPDFKit Server: https://pspdfkit.com/guides/web/current/pspdfkit-for-web/troubleshooting/");const t=e instanceof a.p2?e:new a.p2(e);throw-1!==t.message.indexOf("File not in PDF format or corrupted")?o((0,gc.sr)(t.message)):o((0,gc.sr)()),t}return t}var wc=n(68258);function Sc(e){try{return e.querySelector(":focus-visible"),void(e.documentElement&&e.documentElement.setAttribute("data-focusvisible-supported","true"))}catch(e){}const t="data-focusvisible-polyfill";let n=!0,o=!1,r=null;const i={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function a(t){return!!(t&&t!==e&&"HTML"!==t.nodeName&&"BODY"!==t.nodeName&&"classList"in t&&"contains"in t.classList)}function s(e){e.hasAttribute(t)||e.setAttribute(t,!0)}function l(e){e.removeAttribute(t)}function c(){!0===n&&function(){const t=e.querySelectorAll("[data-focusvisible-polyfill]");for(let e=0;e0;){"SERVER"===e.backend.type&&(t=kc[n],n+=n>=kc.length-1?0:1);let o=t;l<1.5*t&&(o=l);const i=await e.backend.search(this.term,a,o,!1);if(s=s.concat(i),!this._activeSearches[r])return;this.dispatch((0,Dc.Sc)(s)),l-=o,a+=o}}this.dispatch((0,Dc.M0)(!1))}_cancelSearchRequests(e){for(const t of this._activeSearches.keys())null!=e&&t===e||(this._activeSearches[t]=!1)}}const Oc=(0,H.Z)("AnnotationPreset"),Tc=e=>{Oc("object"==typeof e,"`annotationPreset` is not an `object`")};var Ic=n(92457),Fc=n(30679);function Mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _c(e){for(var t=1;t{const{type:t,mediaQueries:n,preset:o}=e;Rc("string"==typeof t,"Mandatory `type` is either missing or not a `string`"),(0,Fc.G)(_c(_c({},e),{},{type:"custom"}),Rc),Rc(Ic._o.includes(t),`Invalid built-in type \`${t}\`. Choose one from ${Ic._o.join(", ")}`),n&&(Rc(Array.isArray(n),"`mediaQueries` must be an `array`"),Rc(n.length>0,"`mediaQueries` must not be an empty `array`"),n.forEach((e=>{Rc("string"==typeof e,`Invalid media query: \`${e}\``);const t=e.split("(").length,n=e.split(")").length;0===t&&0===n||Rc(t===n,`Detected unbalanced parenthesis in the media query: ${e}`)}))),"preset"in e&&Rc("string"==typeof o,"`preset` must be a `string`")},Lc=[{type:"cancel"},{type:"selected-pages"},{type:"spacer"},{type:"loading-indicator"},{type:"save-as"},{type:"save"}],Bc=(0,i.d0)(Lc),jc=(0,H.Z)("DocumentEditorFooterItem"),zc=[...Lc.map((e=>e.type)),"custom"],Kc=e=>{const{type:t,id:n,className:o,onPress:r,node:i}=e;jc("string"==typeof t,"Mandatory `type` is either missing or not a `string`"),jc(zc.indexOf(t)>=0,`Invalid built-in type \`${t}\`. Choose one from ${zc.join(", ")}`),"custom"===t&&(jc(i,"`node` is mandatory for `custom` footer items."),jc(i&&Fc.a.includes(i.nodeType),"`node.nodeType` is invalid. Expected one of "+Fc.a.join(", ")),n&&jc("string"==typeof n,"`id` must be a `string`"),o&&jc("string"==typeof o,"`className` must be a `string`"),r&&jc("function"==typeof r,"`onPress` must be a `function`")),n&&jc("string"==typeof n,"`id` must be a `string`")},Zc=[{type:"add"},{type:"remove"},{type:"duplicate"},{type:"rotate-left"},{type:"rotate-right"},{type:"move"},{type:"move-left"},{type:"move-right"},{type:"import-document"},{type:"spacer"},{type:"undo"},{type:"redo"},{type:"select-all"},{type:"select-none"}],Uc=(0,i.d0)(Zc);function Vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Gc(e){for(var t=1;te.type)),"custom"],Hc=e=>{const{type:t}=e;Wc("string"==typeof t,"Mandatory `type` is either missing or not a `string`"),(0,Fc.G)(Gc(Gc({},e),{},{type:"custom"}),Wc),Wc(qc.indexOf(t)>=0,`Invalid built-in type \`${t}\`. Choose one from ${qc.join(", ")}`)};var $c=n(33754),Yc=n(86071);const Xc=(0,Re.vU)({approved:{id:"approved",defaultMessage:"Approved",description:"Approved Stamp Annotation"},notApproved:{id:"notApproved",defaultMessage:"Not Approved",description:"Not Approved Stamp Annotation"},draft:{id:"draft",defaultMessage:"Draft",description:"Draft Stamp Annotation"},final:{id:"final",defaultMessage:"Final",description:"Final Stamp Annotation"},completed:{id:"completed",defaultMessage:"Completed",description:"Completed Stamp Annotation"},confidential:{id:"confidential",defaultMessage:"Confidential",description:"Confidential Stamp Annotation"},forPublicRelease:{id:"forPublicRelease",defaultMessage:"For Public Release",description:"For Public Release Stamp Annotation"},notForPublicRelease:{id:"notForPublicRelease",defaultMessage:"Not For Public Release",description:"Not For Public Release Stamp Annotation"},forComment:{id:"forComment",defaultMessage:"For Comment",description:"ForComment Stamp Annotation"},void:{id:"void",defaultMessage:"Void",description:"Void Stamp Annotation"},preliminaryResults:{id:"preliminaryResults",defaultMessage:"Preliminary Results",description:"Preliminary Results Stamp Annotation"},informationOnly:{id:"informationOnly",defaultMessage:"Information Only",description:"Information Only Stamp Annotation"},rejected:{id:"rejected",defaultMessage:"Rejected",description:"Rejected Stamp Annotation"},accepted:{id:"accepted",defaultMessage:"Accepted",description:"Accepted Stamp Annotation"},initialHere:{id:"initialHere",defaultMessage:"Initial Here",description:"Initial Here Stamp Annotation"},signHere:{id:"signHere",defaultMessage:"Sign Here",description:"Sign Here Stamp Annotation"},witness:{id:"witness",defaultMessage:"Witness",description:"Witness Stamp Annotation"},asIs:{id:"asIs",defaultMessage:"As Is",description:"As Is Stamp Annotation"},departmental:{id:"departmental",defaultMessage:"Departmental",description:"Departmental Stamp Annotation"},experimental:{id:"experimental",defaultMessage:"Experimental",description:"Experimental Stamp Annotation"},expired:{id:"expired",defaultMessage:"Expired",description:"Expired Stamp Annotation"},sold:{id:"sold",defaultMessage:"Sold",description:"Sold Stamp Annotation"},topSecret:{id:"topSecret",defaultMessage:"Top Secret",description:"TopSecret Stamp Annotation"},revised:{id:"revised",defaultMessage:"Revised",description:"Revised Stamp Annotation"},custom:{id:"custom",defaultMessage:"Custom",description:"Custom Stamp Annotation"},stampAnnotationTemplatesDialog:{id:"stampAnnotationTemplatesDialog",defaultMessage:"Stamp Annotation Templates",description:"Stamp Annotation Templates Dialog"},stampAnnotationTemplatesDialogDescription:{id:"stampAnnotationTemplatesDialogDesc",defaultMessage:"This dialog lets you select a stamp annotation to insert into the document or create a custom stamp annotation with your own text.",description:"Stamp Annotation Templates Dialog Description"}});function Jc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Qc(e){for(var t=1;t{eu(e instanceof s.GI||e instanceof s.sK,"`annotationTemplate` is not an instance of `PSPDFKit.Annotations.StampAnnotation` or ``PSPDFKit.Annotations.ImageAnnotation`")},nu=function(e){var t;let{includeDate:n,includeTime:o}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,i=arguments.length>2?arguments[2]:void 0;const a={};n&&(a.day="2-digit",a.month="2-digit",a.year="numeric"),o&&(a.hour="2-digit",a.minute="2-digit");let s=n||o?i.formatDate(r,a):null;return s&&tt.rO&&(s=s.replace(/[^A-Za-z 0-9 .,?""!@#$%^&*()-_=+;:<>/\\|}{[\]`~]*/g,"")),null!==(t=s)&&void 0!==t?t:null},ou=e=>{let{annotation:t,intl:n}=e;const{formatMessage:o}=n,{stampType:r,title:i,description:a,fileName:l}=t;return t instanceof s.GI?"Custom"===r&&i?Xc[(0,$.LE)(i)]?o(Xc[(0,$.LE)(i)]):i:Xc[(0,$.LE)((0,$c.k1)(r))]?o(Xc[(0,$.LE)((0,$c.k1)(r))]):r:a||l||" "},ru=(0,Ft.L)(),iu=2*ru,au=8*ru,su=iu/2,lu=e=>{let{canvas:t,title:n,subtitle:o,color:r,defaultStampWidth:i,stampHeight:a,container:s}=e,l=i*ru;if(t&&s&&s.offsetWidth){const e=t.getContext("2d"),c="string"==typeof o&&o.length>0,u=(e=>{let{ctx:t,title:n,fontSize:o,containerWidth:r}=e;t.font=`bold ${o}px Arial`;const i=t.measureText(n);let a=r*ru;const s=o;return i.width+s>a?o=a/((i.width+s)/o):a=i.width+s,{fontSize:o,stampWidth:a}})({ctx:e,title:n,fontSize:(c?.6:.7)*ru*a,containerWidth:s.offsetWidth});l=Math.max(u.stampWidth,i*ru),t.width=l,t.height=a*ru,null==e||e.clearRect(0,0,t.width,t.height),(e=>{let{ctx:t,stampWidth:n,stampHeight:o,color:r}=e;t.lineWidth=iu;const i=n-su,a=ru*o-su;t.strokeStyle=r.toCSSValue(),t.fillStyle=r.lighter(Je.zT).toCSSValue(),t.beginPath(),t.moveTo(au+su,su),t.lineTo(i-au,su),t.quadraticCurveTo(i-1,su,i-1,au+su),t.lineTo(i-1,a-au),t.quadraticCurveTo(i-1,a,i-au,a),t.lineTo(au+su,a),t.quadraticCurveTo(su,a,su,a-au),t.lineTo(su,au+su),t.quadraticCurveTo(su,su,au+su,su),t.closePath(),t.stroke(),t.fill()})({ctx:e,stampWidth:l,color:r,stampHeight:a}),(e=>{let{ctx:t,fontSize:n,color:o,stampWidth:r,stampHeight:i,title:a,hasSubTitle:s}=e;t.font=`bold ${n}px Arial`,t.fillStyle=o.toCSSValue(),t.textBaseline="middle",t.textAlign="center",t.fillText(a,r/2,(s?.4*i:.5*i)*ru)})({ctx:e,fontSize:u.fontSize,color:r,stampWidth:l,stampHeight:a,title:n,hasSubTitle:c}),c&&(e.font=ru*a*.175+"px Arial",null==e||e.fillText(o,l/2,.85*a*ru))}return l/ru},cu=Yc.Z.filter((e=>[p.Z.BLUE,p.Z.RED,p.Z.ORANGE,p.Z.LIGHT_YELLOW,p.Z.GREEN].includes(e.color)||"mauve"===e.localization.id)).map((e=>function(e){return(0,a.kG)(null!=e.color),Qc(Qc({},e),{},{color:Object.values(uu(e.color))[0].color})}(e)));function uu(e){const t=e.lighter(Je.zT);let n=e;const o=Math.max(n.r,n.g,n.b);for(let e=0;e<10&&t.contrastRatio(n)<4.5;e++)n=n.darker((255-o)/25.5);return{[`${n.toCSSValue()}`]:{color:n,backgroundColor:t}}}var du=n(19702),pu=n(65872),fu=n(64494);function hu(e){return(0,a.kG)(Array.isArray(e)&&e.length>0,"Operations must be a non-empty array of operations."),e.forEach((e=>{(0,a.kG)(e.hasOwnProperty("type"),"Invalid operation: no `type` field")})),e}var mu=n(20234);const gu="The API you're trying to use requires a document editing license. Document editing is a component of PSPDFKit for Web and sold separately.",vu=["document.change"];var yu=n(41194);const bu="The API you're trying to use requires a digital signatures license. Digital Signatures is a component of PSPDFKit for Web and sold separately.";var wu=n(55909),Su=n(38151),Eu=n(3219);function Pu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"undefined"!=typeof location?location.hash:null;if(!t)return e;const n=t.replace("#","").split("&").map((e=>{const t=e.split("=");if(2===t.length)return[t[0],t[1]]})).filter(Boolean);return n.forEach((t=>{let[n,o]=t;switch(n){case"page":{const t=parseInt(o,10);if("number"!=typeof t||Number.isNaN(t)||t<=0)break;e=e.set("currentPageIndex",t-1);break}}})),e}function xu(e,t,n){const o=e.viewportState.viewportRect.set("height",t.height);return e.sidebarMode?o.set("width",e.containerRect.width-n).set("left",e.sidebarPlacement===pu.d.START?n:0):o.set("width",e.containerRect.width).set("left",0)}const Du=["viewState.change","viewState.currentPageIndex.change","viewState.zoom.change"],Cu=["cropArea.changeStart","cropArea.changeStop"];function ku(e,t){return{[x.A.TEXT_HIGHLIGHTER]:{onEnterAction:En.d5,onLeaveAction:En.lC,allowWhenInReadOnlyMode:!1},[x.A.INK]:{onEnterAction:En.P4,onLeaveAction:En.s3,allowWhenInReadOnlyMode:!1},[x.A.INK_ERASER]:{onEnterAction:En.Ug,onLeaveAction:En.VU,allowWhenInReadOnlyMode:!1},[x.A.STAMP_PICKER]:{onEnterAction:En.C4,onLeaveAction:En.pM,allowWhenInReadOnlyMode:!1},[x.A.STAMP_CUSTOM]:{onEnterAction:En._z,onLeaveAction:En.pM,allowWhenInReadOnlyMode:!1},[x.A.INK_SIGNATURE]:{onEnterAction:En.Cc,onLeaveAction:En.MV,allowWhenInReadOnlyMode:!1},[x.A.SIGNATURE]:{onEnterAction:En.Cc,onLeaveAction:En.MV,allowWhenInReadOnlyMode:!1},[x.A.SHAPE_LINE]:{onEnterAction:(0,En.p9)(j.o9,x.A.SHAPE_LINE),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.SHAPE_RECTANGLE]:{onEnterAction:(0,En.p9)(j.b3,x.A.SHAPE_RECTANGLE),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.SHAPE_ELLIPSE]:{onEnterAction:(0,En.p9)(j.Xs,x.A.SHAPE_ELLIPSE),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.SHAPE_POLYGON]:{onEnterAction:(0,En.p9)(j.Hi,x.A.SHAPE_POLYGON),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.SHAPE_POLYLINE]:{onEnterAction:(0,En.p9)(j.om,x.A.SHAPE_POLYLINE),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.NOTE]:{onEnterAction:En.i9,onLeaveAction:En.dp,allowWhenInReadOnlyMode:!1},[x.A.COMMENT_MARKER]:{onEnterAction:()=>((0,a.kG)(t&&t.features.includes(ge.q.COMMENTS),Ml.kx),(0,En.k6)()),onLeaveAction:()=>((0,a.kG)(t&&t.features.includes(ge.q.COMMENTS),Ml.kx),(0,En.tr)()),allowWhenInReadOnlyMode:!1},[x.A.TEXT]:{onEnterAction:En.DU,onLeaveAction:En.k4,allowWhenInReadOnlyMode:!1},[x.A.CALLOUT]:{onEnterAction:En.Lt,onLeaveAction:En.k4,allowWhenInReadOnlyMode:!1},[x.A.PAN]:{onEnterAction:Eu.vc,onLeaveAction:Eu.Yr,allowWhenInReadOnlyMode:!0},[x.A.SEARCH]:{onEnterAction:Dc.Xe,onLeaveAction:Dc.ct,allowWhenInReadOnlyMode:!0},[x.A.DOCUMENT_EDITOR]:{onEnterAction:En.lV,onLeaveAction:En.sJ,allowWhenInReadOnlyMode:!1},[x.A.MARQUEE_ZOOM]:{onEnterAction:En.xF,onLeaveAction:En.si,allowWhenInReadOnlyMode:!0},[x.A.REDACT_TEXT_HIGHLIGHTER]:{onEnterAction:En.aw,onLeaveAction:En.TR,allowWhenInReadOnlyMode:!1},[x.A.REDACT_SHAPE_RECTANGLE]:{onEnterAction:En.t,onLeaveAction:En.jP,allowWhenInReadOnlyMode:!1},[x.A.DOCUMENT_CROP]:{onEnterAction:En.rL,onLeaveAction:En.Cn,allowWhenInReadOnlyMode:!1},[x.A.CONTENT_EDITOR]:{onEnterAction:()=>Su.gY,onLeaveAction:()=>Su.u8,allowWhenInReadOnlyMode:!1},[x.A.FORM_CREATOR]:{onEnterAction:Mo.el,onLeaveAction:Mo.h4,allowWhenInReadOnlyMode:!1},[x.A.SIGNATURE_WIDGET]:{onEnterAction:()=>(0,En.UF)(x.A.SIGNATURE_WIDGET),onLeaveAction:En.XX,allowWhenInReadOnlyMode:!1},[x.A.LIST_BOX_WIDGET]:{onEnterAction:()=>(0,En.UF)(x.A.LIST_BOX_WIDGET),onLeaveAction:En.XX,allowWhenInReadOnlyMode:!1},[x.A.COMBO_BOX_WIDGET]:{onEnterAction:()=>(0,En.UF)(x.A.COMBO_BOX_WIDGET),onLeaveAction:En.XX,allowWhenInReadOnlyMode:!1},[x.A.CHECKBOX_WIDGET]:{onEnterAction:()=>(0,En.UF)(x.A.CHECKBOX_WIDGET),onLeaveAction:En.XX,allowWhenInReadOnlyMode:!1},[x.A.RADIO_BUTTON_WIDGET]:{onEnterAction:()=>(0,En.UF)(x.A.RADIO_BUTTON_WIDGET),onLeaveAction:En.XX,allowWhenInReadOnlyMode:!1},[x.A.TEXT_WIDGET]:{onEnterAction:()=>(0,En.UF)(x.A.TEXT_WIDGET),onLeaveAction:En.XX,allowWhenInReadOnlyMode:!1},[x.A.BUTTON_WIDGET]:{onEnterAction:()=>(0,En.UF)(x.A.BUTTON_WIDGET),onLeaveAction:En.XX,allowWhenInReadOnlyMode:!1},[x.A.DATE_WIDGET]:{onEnterAction:()=>(0,En.UF)(x.A.DATE_WIDGET),onLeaveAction:En.XX,allowWhenInReadOnlyMode:!1},[x.A.LINK]:{onEnterAction:En.Jn,onLeaveAction:En.UU,allowWhenInReadOnlyMode:!1},[x.A.DISTANCE]:{onEnterAction:(0,En.p9)(j.o9,x.A.DISTANCE),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.PERIMETER]:{onEnterAction:(0,En.p9)(j.om,x.A.PERIMETER),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.RECTANGLE_AREA]:{onEnterAction:(0,En.p9)(j.b3,x.A.RECTANGLE_AREA),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.ELLIPSE_AREA]:{onEnterAction:(0,En.p9)(j.Xs,x.A.ELLIPSE_AREA),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.POLYGON_AREA]:{onEnterAction:(0,En.p9)(j.Hi,x.A.POLYGON_AREA),onLeaveAction:En.Ce,allowWhenInReadOnlyMode:!1},[x.A.MULTI_ANNOTATIONS_SELECTION]:{onEnterAction:En.YF,onLeaveAction:En.FA,allowWhenInReadOnlyMode:!1},[x.A.MEASUREMENT_SETTINGS]:{onEnterAction:(0,En.PR)(),onLeaveAction:(0,En.jJ)(),allowWhenInReadOnlyMode:!1}}[e]}function Au(e,t){var n,o;const r=t?t.getState():null;if("number"!=typeof e.currentPageIndex)throw new a.p2("The currentPageIndex set on the new ViewState is not of type `number`.");if(r&&(e.currentPageIndex<0||e.currentPageIndex>=r.totalPages))throw new a.p2(`The currentPageIndex set on the new ViewState is out of bounds.\nThe index is expected to be in the range from 0 to ${r.totalPages-1} (inclusive).`);if("number"==typeof e.zoom){if(r){const{viewportState:t}=r,n=(0,Ys.Yo)(t),o=(0,Ys.Sm)(t);if(e.zoomo)throw new a.p2(`The supplied zoom level is larger than the maximum zoom level for this document (${o})`)}}else if(e.zoom!==Xs.c.AUTO&&e.zoom!==Xs.c.FIT_TO_WIDTH&&e.zoom!==Xs.c.FIT_TO_VIEWPORT)throw new a.p2("The supplied zoom mode is not valid.\nValid zoom modes are: PSPDFKit.ZoomMode.AUTO, PSPDFKit.ZoomMode.FIT_TO_VIEWPORT, or PSPDFKit.ZoomMode.FIT_TO_WIDTH");if(e.pagesRotation%90!=0)throw new a.p2("The supplied pagesRotation must be a multiple of 90°.");if(e.layoutMode!==C.X.SINGLE&&e.layoutMode!==C.X.DOUBLE&&e.layoutMode!==C.X.AUTO)throw new a.p2("The supplied layout mode is not valid.\nValid layout modes are: PSPDFKit.LayoutMode.SINGLE, PSPDFKit.LayoutMode.DOUBLE, or PSPDFKit.LayoutMode.AUTO");if(e.scrollMode!==nl.G.CONTINUOUS&&e.scrollMode!==nl.G.PER_SPREAD&&e.scrollMode!==nl.G.DISABLED)throw new a.p2("The supplied scroll mode is not valid.\nValid scroll modes are: PSPDFKit.ScrollMode.CONTINUOUS, PSPDFKit.ScrollMode.PER_SPREAD, or PSPDFKit.ScrollMode.DISABLED");if(e.showSignatureValidationStatus!==fu.W.IF_SIGNED&&e.showSignatureValidationStatus!==fu.W.HAS_ERRORS&&e.showSignatureValidationStatus!==fu.W.HAS_WARNINGS&&e.showSignatureValidationStatus!==fu.W.NEVER)throw new a.p2("The supplied mode for showing the digital signature validation UI is not valid.");if("number"!=typeof e.spreadSpacing||e.spreadSpacing<0)throw new a.p2(`Expected \`spreadSpacing\` to be a positive number but instead got: ${e.spreadSpacing}.`);if("number"!=typeof e.pageSpacing||e.pageSpacing<0)throw new a.p2(`Expected \`pageSpacing\` to be a positive number but instead got: ${e.pageSpacing}.`);if("boolean"!=typeof e.keepFirstSpreadAsSinglePage)throw new a.p2(`Expected \`keepFirstSpreadAsSinglePage\` to be a boolean but instead got: ${e.keepFirstSpreadAsSinglePage}.`);if("number"!=typeof e.viewportPadding.vertical)throw new a.p2("The supplied viewportPadding has a missing property: vertical not found");if("number"!=typeof e.viewportPadding.horizontal)throw new a.p2("The supplied viewportPadding has a missing property: horizontal not found");if(e.viewportPadding.vertical<0||e.viewportPadding.horizontal<0)throw new a.p2("The supplied viewportPadding horizontal or vertical value is not a positive number");if("boolean"!=typeof e.allowPrinting)throw new a.p2("`allowPrinting` must be of type boolean.");if(r&&!0===e.allowPrinting&&!r.backendPermissions.downloadingAllowed)throw new a.p2("To enable printing, you need to authenticate the `download` permission in the JWT (See: https://pspdfkit.com/guides/web/server-backed/client-authentication/)");if("boolean"!=typeof e.allowExport)throw new a.p2("`allowExport` must be of type boolean.");if(r&&!0===e.allowExport&&!r.backendPermissions.downloadingAllowed)throw new a.p2("To enable PDF export, you need to authenticate the `download` permission in the JWT (See: https://pspdfkit.com/guides/web/server-backed/client-authentication/)");if("boolean"!=typeof e.previewRedactionMode)throw new a.p2("`previewRedactionMode` must be of type boolean.");if("boolean"!=typeof e.readOnly)throw new a.p2("`readOnly` must be of type boolean.");if(!r||!1!==e.readOnly||mt.Ei.IGNORE_DOCUMENT_PERMISSIONS||!r.backendPermissions.readOnly&&(r.documentPermissions.annotationsAndForms||r.documentPermissions.fillForms)||(e=e.set("readOnly",!0),(0,a.ZK)("It’s not possible to change PSPDFKit.ViewState#readOnly to false if the current backend or document permissions do not allow it. For document permissions, you can override this behavior by setting the PSPDFKit.Options.IGNORE_DOCUMENT_PERMISSIONS option before initializing PSPDFKit.")),e.interactionMode&&Object.values(x.A).indexOf(e.interactionMode)<0)throw new a.p2(`The supplied interaction mode is not valid.\nValid view modes are: ${Object.keys(x.A).map((e=>`PSPDFKit.InteractionMode.${e}`)).join(", ")}`);if(null!=e.interactionMode){const t=ku(e.interactionMode,r);null!=r&&(e.interactionMode===x.A.DOCUMENT_EDITOR&&(0,So.Xr)({features:r.features,backendPermissions:r.backendPermissions,documentPermissions:r.documentPermissions,readOnlyEnabled:r.readOnlyEnabled})||e.interactionMode===x.A.CONTENT_EDITOR&&(0,So.qs)({features:r.features,backendPermissions:r.backendPermissions,documentPermissions:r.documentPermissions,readOnlyEnabled:r.readOnlyEnabled}))||!e.readOnly||t.allowWhenInReadOnlyMode||((0,a.ZK)(`Can’t set PSPDFKit.ViewState#interactionMode to ${e.interactionMode} when PSPDFKit.ViewState#readOnly is true.`),e=e.set("interactionMode",null))}if("boolean"!=typeof e.showAnnotations)throw new a.p2("`showAnnotations` must be of type boolean.");if(!1===e.showAnnotations&&!1===e.readOnly)throw new a.p2("In order to hide annotations, you must also enable read only mode.");if("boolean"!=typeof e.showComments)throw new a.p2("`showComments` must be of type boolean.");if("boolean"!=typeof e.showAnnotationNotes)throw new a.p2("`showAnnotationNotes` must be of type boolean.");if(e.sidebarMode&&Object.values(du.f).indexOf(e.sidebarMode)<0)throw new a.p2(`The supplied sidebar mode is not valid.\nValid view modes are: ${Object.keys(du.f).map((e=>`PSPDFKit.SidebarMode.${e}`)).join(", ")} or \`null\`.`);if(Object.values(pu.d).indexOf(e.sidebarPlacement)<0)throw new a.p2(`The supplied sidebar placement is not valid.\nValid placements are: ${Object.keys(pu.d).map((e=>`PSPDFKit.SidebarPlacement.${e}`)).join(" or ")}.`);if(null===(n=e.sidebarOptions)||void 0===n||!n[du.f.ANNOTATIONS])throw new a.p2("The supplied sidebar options configuration is missing the required `PSPDFKit.SidebarMode.ANNOTATIONS` property.");if(!Array.isArray(null===(o=e.sidebarOptions[du.f.ANNOTATIONS])||void 0===o?void 0:o.includeContent))throw new a.p2("The `includeContent` property is mandatory for the `PSPDFKit.SidebarMode.ANNOTATIONS` sidebar options and it must be an array");if(e.sidebarOptions[du.f.ANNOTATIONS].includeContent.length&&e.sidebarOptions[du.f.ANNOTATIONS].includeContent.some((e=>!(e.prototype instanceof j.q6)&&e!==j.sv)))throw new a.p2("The `includeContent` array can only contain annotations classes or `PSPDFKit.Comment` as possible values");if("boolean"!=typeof e.canScrollWhileDrawing)throw new a.p2("`canScrollWhileDrawing` must be of type boolean.");if("boolean"!=typeof e.keepSelectedTool)throw new a.p2("`keepSelectedTool` must be of type boolean.");if("number"!=typeof e.sidebarWidth)throw new a.p2("`sidebarWidth` must be of type number.");return e}var Ou=n(32125),Tu=n(26353),Iu=n(84013),Fu=n(27001);const Mu=(0,T.createContext)((()=>{throw new Error}));var _u=n(59386),Ru=n(89e3);const Nu={COMMENT_THREAD:"COMMENT_THREAD",ANNOTATIONS_SIDEBAR:"ANNOTATIONS_SIDEBAR"};var Lu=n(80303),Bu=n.n(Lu);const ju=function(e){var t,o;const{formatMessage:r}=(0,Re.YB)(),i=T.useCallback((e=>e.stopPropagation()),[]),a=F()("PSPDFKit-Sidebar-Annotations-Item",e.layoutClassName,Bu().layout,{[Bu().selected]:e.isSelectedItem,[Bu().layoutNavigationDisabled]:e.navigationDisabled,"PSPDFKit-Sidebar-Annotations-Item-Selected":e.isSelectedItem});return T.createElement("div",{ref:e.itemRef},T.createElement(pt.Z,{onPointerUpCapture:i},T.createElement("div",(0,De.Z)({className:a,onClick:e.onPress},e.itemWrapperProps),e.icon,T.createElement("div",{className:Bu().layoutContent},e.children,(null===(t=e.showFooter)||void 0===t||t)&&(e.author||e.formattedDate)&&T.createElement("footer",{className:F()(Bu().footer,"PSPDFKit-Sidebar-Annotations-Footer")},T.createElement("p",null,e.author&&T.createElement("span",null,e.author,e.formattedDate?", ":""),e.formattedDate&&T.createElement("time",{dateTime:null===(o=e.date)||void 0===o?void 0:o.toISOString()},e.formattedDate)),e.additionalFooter)),e.isDeletable&&T.createElement("button",{className:F()(Bu().delete,"PSPDFKit-Sidebar-Annotations-Delete"),onClick:e.onDelete,"aria-label":r(Ke.Z.delete)},T.createElement(Ye.Z,{src:n(61019),role:"presentation"})))))},zu={highlighter:"highlighter",arrow:"arrow",callout:"textAnnotation","cloudy-rectangle":"cloudyRectangleAnnotation","dashed-rectangle":"dashedRectangleAnnotation","cloudy-ellipse":"cloudyEllipseAnnotation","dashed-ellipse":"dashedEllipseAnnotation","cloudy-polygon":"cloudyPolygonAnnotation","dashed-polygon":"dashedPolygonAnnotation","ellipse-area":"ellipseAreaMeasurement","rectangle-area":"rectangularAreaMeasurement","polygon-area":"polygonAreaMeasurement",distance:"distanceMeasurement",perimeter:"perimeterMeasurement"},Ku=e=>{const{formatMessage:t}=e.intl,n=zu[e.type]||`${e.type}Annotation`;return T.createElement(T.Fragment,null,T.createElement("button",{autoFocus:e.autoFocus},t(Ke.Z[n])),","," ",t(Ke.Z.linesCount,{arg0:e.annotation.lines.size}))},Zu=e=>{const t=e.annotation.text.value||"";let n=(0,$.aF)("xhtml"===e.annotation.text.format?(0,qn.KY)(t):t);const o=zu[e.type]||"textAnnotation";return 0===n.length&&(n=e.intl.formatMessage(Ke.Z[o])),T.createElement("button",{autoFocus:e.autoFocus},n)},Uu=e=>T.createElement("button",{autoFocus:e.autoFocus},e.intl.formatMessage(Ke.Z[`${e.type}Annotation`])),Vu=e=>{const t=zu[e.type]||`${e.type}Annotation`;return T.createElement("button",{autoFocus:e.autoFocus},e.intl.formatMessage(Ke.Z[t]))},Gu=e=>T.createElement("button",{autoFocus:e.autoFocus},e.annotation.formFieldName),Wu={text:Zu,callout:Zu,ink:Ku,highlighter:Ku,note:e=>{let t=(0,$.aF)(e.annotation.text.value||"");return 0===t.length&&(t=e.intl.formatMessage(Ke.Z.noteAnnotation)),T.createElement("button",{autoFocus:e.autoFocus},t)},highlight:Uu,underline:Uu,strikeOut:Uu,squiggle:Uu,link:e=>{var t;return T.createElement("button",{autoFocus:e.autoFocus},(null===(t=e.annotation.action)||void 0===t?void 0:t.uri)||e.intl.formatMessage(Ke.Z.linkAnnotation))},rectangle:Vu,"cloudy-rectangle":Vu,"dashed-rectangle":Vu,ellipse:Vu,"cloudy-ellipse":Vu,"dashed-ellipse":Vu,polygon:Vu,"cloudy-polygon":Vu,"dashed-polygon":Vu,polyline:Vu,line:Vu,arrow:Vu,image:e=>{const{formatMessage:t}=e.intl,{fileName:n}=e.annotation,o=(0,$.aF)(e.annotation.description||"");return T.createElement(T.Fragment,null,T.createElement("button",{autoFocus:e.autoFocus},t(Ke.Z[`${e.type}Annotation`])),n&&!o&&T.createElement("div",{title:t(Ke.Z.filePath)+`: ${n}`},n),o&&T.createElement("div",null,o))},stamp:e=>{const{formatMessage:t}=e.intl,{fileName:n}=e.annotation,o=(0,$.aF)(ou({annotation:e.annotation,intl:e.intl})||"");return T.createElement(T.Fragment,null,T.createElement("button",{autoFocus:e.autoFocus},t(Ke.Z[`${e.type}Annotation`])),n&&!o&&T.createElement("div",{title:`${t(Ke.Z.stampText)}: ${t(Ke.Z[e.annotation.stampType])}`},`${t(Ke.Z.stampText)}: ${t(Ke.Z[e.annotation.stampType])}`),o&&T.createElement("div",null,o))},"form-text":Gu,"form-checkbox":Gu,"form-button":Gu,"form-signature":Gu,redaction:e=>T.createElement("button",{autoFocus:e.autoFocus},e.intl.formatMessage(Ke.Z[`${e.type}Annotation`])),media:e=>{const{formatMessage:t}=e.intl,{fileName:n}=e.annotation,o=(0,$.aF)(e.annotation.description||"");return T.createElement(T.Fragment,null,T.createElement("button",{autoFocus:e.autoFocus},t(Ke.Z[`${e.type}Annotation`])),n&&!o&&T.createElement("div",{title:t(Ke.Z.filePath)+`: ${n}`},n),o&&T.createElement("div",null,o))},perimeter:Vu,distance:Vu,"ellipse-area":Vu,"rectangle-area":Vu,"polygon-area":Vu};class qu extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"_itemRef",(e=>{var t,n;e&&(this._el=e,null===(t=(n=this.props).onRenderItemCallback)||void 0===t||t.call(n,e,this.props.annotation))})),(0,o.Z)(this,"onPress",(()=>{const{annotation:e,dispatch:t,onPress:n}=this.props;if(!this.props.navigationDisabled){if(t((0,Eu.kN)(e.pageIndex,e.boundingBox)),this.props.isAnnotationReadOnly(e))return setTimeout((()=>{t((0,je.Q2)(e.id))}),100);e instanceof s.x_?t((0,je.fz)()):tt.Ni&&e instanceof s.Qi?t((0,je.VR)(e.id)):t((0,je.Df)((0,i.l4)([e.id]),null)),n&&n()}})),(0,o.Z)(this,"onDelete",(()=>{const{annotation:e,dispatch:t,navigationDisabled:n}=this.props;n||t((0,Eu.kN)(e.pageIndex,e.boundingBox)),t((0,Qt.d8)((0,i.l4)([e.id])))})),(0,o.Z)(this,"preventDeselect",(e=>e.stopPropagation()))}componentDidUpdate(e){var t,n;this._el&&e.onRenderItemCallback!==this.props.onRenderItemCallback&&(null===(t=(n=this.props).onRenderItemCallback)||void 0===t||t.call(n,this._el,this.props.annotation))}render(){const{annotation:e,intl:t,isSelectedAnnotation:n,annotationType:o,isAnnotationReadOnly:r,autoFocus:i,canDeleteAnnotationCP:a,dateTimeStringCallback:l}=this.props,{formatDate:c}=t,u=e.creatorName;let d=null;e.updatedAt.getTime()&&(l&&(d=l({dateTime:e.updatedAt,element:Nu.ANNOTATIONS_SIDEBAR,object:e})),null==d&&(d=c(e.updatedAt)));const p=Wu[o],f=F()("PSPDFKit-Sidebar-Annotations-Annotation",`PSPDFKit-Sidebar-Annotations-Annotation-${(0,qn.in)(o)}`,{"PSPDFKit-Sidebar-Annotations-Annotation-Selected":n}),h=!(e instanceof s.x_)&&!(e instanceof s.Hu)&&!r(e)&&!tt.Ni&&a(e),m=(0,Ze.Z)({type:o.toLowerCase(),className:F()(Bu().icon,"PSPDFKit-Sidebar-Annotations-Icon")});return T.createElement(ju,{itemRef:this._itemRef,layoutClassName:f,isSelectedItem:n,navigationDisabled:this.props.navigationDisabled,onPress:this.onPress,onDelete:this.onDelete,isDeletable:h,itemWrapperProps:{"data-annotation-id":e.id},icon:m,showFooter:!(e instanceof s.x_),author:u,formattedDate:d,date:e.updatedAt},T.createElement(p,{intl:t,annotation:e,type:o,autoFocus:i}))}}const Hu=(0,Re.XN)(qu);var $u=n(35860);const Yu=(0,Re.vU)({commentOptions:{id:"commentOptions",defaultMessage:"Comment Options",description:"Comment Options"},editContent:{id:"editContent",defaultMessage:"Edit Content",description:"Edit Content"},deleteCommentConfirmMessage:{id:"deleteCommentConfirmMessage",defaultMessage:"Are you sure you want to delete this comment?",description:'Message displayed in the "Delete Comment" confirm dialog'},deleteCommentConfirmAccessibilityLabel:{id:"deleteCommentConfirmAccessibilityLabel",defaultMessage:"Confirm comment deletion",description:'Accessibility label (title) for the "Delete Comment" confirm dialog'},deleteCommentConfirmAccessibilityDescription:{id:"deleteCommentConfirmAccessibilityDescription",defaultMessage:"Dialog allowing the user to confirm or cancel deleting the comment",description:'Accessibility description for the "Delete Comment" confirm dialog'},moreComments:{id:"moreComments",defaultMessage:"More comments",description:"More comments indicator in comments popover"}});const Xu=function(e){var t;const n=T.useRef(),{rootComment:o,commentsCount:r,onRenderItemCallback:a,annotation:s,onPress:l,navigationDisabled:c,isCommentReadOnly:u,dateTimeStringCallback:d,isSelectedAnnotation:p,canDeleteCommentCP:f}=e,h=(0,A.I0)(),{formatMessage:m,formatDate:g}=(0,Re.YB)(),[v,y]=T.useState(!1),b=T.useCallback((e=>{e&&(n.current=e,null==a||a(e,s))}),[s,a]),w=(0,fi.R9)((()=>{if(!c){if(h((0,Eu.kN)(s.pageIndex,s.boundingBox)),u(o))return setTimeout((()=>{h((0,je.Q2)(s.id))}),100);h((0,je.Df)((0,i.l4)([s.id]),null)),l&&l()}})),S=(0,fi.R9)((()=>{c||h((0,Eu.kN)(s.pageIndex,s.boundingBox)),y(!0)})),E=T.useCallback((()=>{h((0,bi.UM)(o)),y(!1)}),[o,h]),P=o.isAnonymous?m(Ke.Z.anonymous):null!==(t=o.creatorName)&&void 0!==t?t:m(Ke.Z.anonymous);let x=null;o.createdAt.getTime()&&(d&&(x=d({dateTime:o.createdAt,element:Nu.ANNOTATIONS_SIDEBAR,object:o})),null==x&&(x=g(o.createdAt,s.isCommentThreadRoot&&o?{hour12:!0,hour:"numeric",minute:"numeric",month:"numeric",day:"numeric",year:"numeric"}:void 0)));let D=null;r&&r>1&&(D=m(Ke.Z.nMoreComments,{arg0:r-1}));const C=F()("PSPDFKit-Sidebar-Annotations-Comment",{"PSPDFKit-Sidebar-Annotations-Comment-Selected":p}),k=!u(o)&&!tt.Ni&&f(o),O=(0,Ze.Z)({type:"comment",className:F()(Bu().icon,"PSPDFKit-Sidebar-Annotations-Icon")});return T.createElement(T.Fragment,null,T.createElement(ju,{itemRef:b,layoutClassName:C,isSelectedItem:p,navigationDisabled:c,onPress:w,onDelete:S,isDeletable:k,itemWrapperProps:{"data-annotation-id":s.id},icon:O,showFooter:!0,author:P,formattedDate:x,date:s.updatedAt,additionalFooter:s.isCommentThreadRoot&&D?T.createElement("span",null,D):null},T.createElement("button",{autoFocus:e.autoFocus},(0,$.aF)((0,qn.KY)((null==o?void 0:o.text.value)||"")))),v&&T.createElement($u.Z,{onConfirm:E,onCancel:()=>{y(!1)},accessibilityLabel:m(Yu.deleteCommentConfirmAccessibilityLabel),accessibilityDescription:m(Yu.deleteCommentConfirmAccessibilityDescription)},T.createElement("p",null,m(Yu.deleteCommentConfirmMessage))))},Ju=T.memo((function(e){let{closeOnPress:t=!1,navigationDisabled:n,annotations:o,comments:r,commentThreads:a,formFields:s,pages:l,isAnnotationReadOnly:c,isCommentReadOnly:u,selectedAnnotationIds:d,canDeleteAnnotationCP:p,canDeleteCommentCP:f,sidebarOptions:h}=e;const[m,g]=T.useState(null),{includeContent:v}=h;T.useEffect((()=>{null==m||m.focus()}),[m]);const{formatMessage:y}=(0,Re.YB)(),b=(0,A.I0)(),w=(0,A.v9)((e=>e.dateTimeString)),S=(0,fi.R9)((()=>{n||t&&b((0,En.mu)())})),E=v.some((e=>e===j.sv)),P=F()(Bu().container,"PSPDFKit-Sidebar-Annotations"),x=T.useMemo((()=>o.filter((e=>null!==e.pageIndex&&(E&&e.isCommentThreadRoot||!e.isCommentThreadRoot&&null!==Qu(e,s)&&v.some((t=>e instanceof t)))))),[o,s,v,E]),D=T.useMemo((()=>l.reduce(((e,t)=>{const n=function(e){let t=e.filter((e=>e.isCommentThreadRoot)).sortBy((e=>e.boundingBox.top));return e.map((e=>{if(!e.isCommentThreadRoot)return e;const n=t.first();return t=t.shift(),n}))}((0,J.xp)(x,t));return 0===n.size?e:e.push(n)}),(0,i.aV)())),[l,x]),C=(0,fi.Bo)(m,D),k=(null==D?void 0:D.reduce(((e,t)=>e+t.size),0))||0,O=(0,fi.mP)(C,(e=>e.id),(e=>x.get(e)));return T.createElement("div",{className:P,role:"region","aria-label":y(Ke.Z.annotations),ref:g},T.createElement("div",{className:"PSPDFKit-Sidebar-Header"},k>0?T.createElement("div",{className:F()(Bu().annotationCounter,"PSPDFKit-Sidebar-Annotations-Annotation-Counter")},y(Ke.Z.annotationsCount,{arg0:k})):null),k>0&&D?T.createElement(T.Fragment,null,D.map(((e,t)=>{const o=e.first().pageIndex,i=l.get(o);(0,Ne.k)(i);const h=i.get("pageLabel");return T.createElement("section",{key:`Annotations-Sidebar-Page-${o}`},T.createElement("h1",{className:F()(Bu().pageNumber,"PSPDFKit-Sidebar-Annotations-Page-Number")},y(Ke.Z.pageX,{arg0:h||o+1})),T.createElement("div",{className:F()(Bu().content,Bu().annotations,"PSPDFKit-Sidebar-Annotations-Container")},e.map(((e,o)=>{if(e.isCommentThreadRoot&&E){const i=a.get(e.id),s=null==i?void 0:i.first(),l=null==i?void 0:i.last();if(i&&l&&s){const a=r.get(l);if(a){const l=!(0,Ml.kT)(a)&&(null==a?void 0:a.text.value).length>0?null==i?void 0:i.size:(null==i?void 0:i.size)-1,c=r.get(s);return T.createElement(Xu,{annotation:e,rootComment:c,commentsCount:l,onPress:S,isCommentReadOnly:u,isSelectedAnnotation:d.has(e.id),navigationDisabled:n,autoFocus:0===o&&0===t,canDeleteCommentCP:f,key:`Annotation-Info-${e.id}`,onRenderItemCallback:O,dateTimeStringCallback:w})}}}const i=Qu(e,s);return null!=i?T.createElement(Hu,{dispatch:b,annotation:e,annotationType:i,onPress:S,isAnnotationReadOnly:c,isSelectedAnnotation:d.has(e.id),navigationDisabled:n,autoFocus:0===o&&0===t,canDeleteAnnotationCP:p,key:`Annotation-Info-${e.id}`,onRenderItemCallback:O,dateTimeStringCallback:w}):null}))))}))):T.createElement("div",{className:F()(Bu().container,Bu().empty,"PSPDFKit-Sidebar-Empty"),role:"region","aria-label":y(Ke.Z.annotations)},y(ed.noAnnotations)))}));function Qu(e,t){var n;let o;const r=Number(e.cloudyBorderIntensity)>0,i=null===(n=e.strokeDashArray)||void 0===n?void 0:n.length;return e instanceof s.Zc?function(e){return"normal"===e.blendMode?0===e.opacity||e.lineWidth/e.opacity>40?"highlighter":"ink":e.lineWidth>15?"highlighter":"ink"}(e):e instanceof s.gd?e.callout?"callout":"text":e instanceof s.Qi?"note":e instanceof s.sK?"image":e instanceof s.GI?"stamp":e instanceof s.FV?"highlight":e instanceof s.xu?"underline":e instanceof s.R9?"strikeOut":e instanceof s.hL?"squiggle":e instanceof s.R1?"link":e instanceof s.b3?e.isMeasurement()?"rectangle-area":r?"cloudy-rectangle":i?"dashed-rectangle":"rectangle":e instanceof s.Xs?e.isMeasurement()?"ellipse-area":r?"cloudy-ellipse":i?"dashed-ellipse":"ellipse":e instanceof s.Hi?e.isMeasurement()?"polygon-area":r?"cloudy-polygon":i?"dashed-polygon":"polygon":e instanceof s.om?e.isMeasurement()?"perimeter":"polyline":e instanceof s.o9?function(e){if(e.isMeasurement())return"distance";if(!e.lineCaps)return"line";const t="openArrow"===e.lineCaps.start||"closedArrow"===e.lineCaps.start||"reverseOpenArrow"===e.lineCaps.start||"reverseClosedArrow"===e.lineCaps.start,n="openArrow"===e.lineCaps.end||"closedArrow"===e.lineCaps.end||"reverseOpenArrow"===e.lineCaps.end||"reverseClosedArrow"===e.lineCaps.end;return t||n?"arrow":"line"}(e):e instanceof s.x_?((0,Ne.k)(t),o=t.get(e.formFieldName),o instanceof l.$o||o instanceof l.Vi||o instanceof l.fB?"form-text":o instanceof l.rF?"form-checkbox":o instanceof l.XQ||o instanceof l.R0?"form-button":o instanceof l.Yo?"form-signature":null):e instanceof pe.Z?"redaction":e instanceof s.Hu?"media":null}const ed=(0,Re.vU)({noAnnotations:{id:"noAnnotations",defaultMessage:"No Annotations",description:"Message shown when there is no annotations"}});var td,nd=n(24871),od=n(81619),rd=n(5462),id=n(27435),ad=n.n(id),sd=n(44364),ld=n.n(sd),cd=n(93628),ud=n.n(cd);function dd(e){return gd[e]||Ke.Z[e]}function pd(e){let{item:t,isEnd:n,formatMessage:o}=e;return T.createElement(T.Fragment,null,T.createElement(ue.TX,{tag:"div"},o(dd(t))),T.createElement("svg",{viewBox:"0 0 8 4",style:{height:16,width:32}},T.createElement("g",{transform:n?"rotate(180 4,2)":void 0},cn.O[t].startElement({fill:"transparent"}),td||(td=T.createElement("line",{x1:"3.5",y1:"2",x2:"8",y2:"2"})))))}function fd(e){let{item:t,formatMessage:n}=e;const o=od.x.find((e=>e.id===t));return T.createElement(T.Fragment,null,T.createElement(ue.TX,{tag:"div"},n(dd(t))),T.createElement("svg",{viewBox:"0 0 16 4",style:{width:54,height:16}},T.createElement("line",{x1:"0",y1:"2",x2:"16",y2:"2",strokeDasharray:o?o.dashArray:void 0,fill:"transparent"})))}class hd extends T.PureComponent{constructor(){for(var e,t=arguments.length,n=new Array(t),r=0;r{const{annotation:t}=this.props,n={};return"none"!==e&&(n.start=e),"lineCaps"in t&&t.lineCaps&&null!=t.lineCaps.end&&(n.end=t.lineCaps.end),this.props.updateAnnotation({lineCaps:n,boundingBox:this.calculateBoundingBox(t.set("lineCaps",n))})})),(0,o.Z)(this,"_onChangeDashArray",(e=>{const t=od.x.find((t=>t.id===e));return this.props.updateAnnotation({strokeDashArray:void 0!==t?t.dashArray:null})})),(0,o.Z)(this,"_onChangeEndLineCap",(e=>{const{annotation:t}=this.props,n={};return"lineCaps"in t&&t.lineCaps&&null!=t.lineCaps.start&&(n.start=t.lineCaps.start),"none"!==e&&(n.end=e),this.props.updateAnnotation({lineCaps:n,boundingBox:this.calculateBoundingBox(t.set("lineCaps",n))})})),(0,o.Z)(this,"LineCapSelectButton",(function(t,n){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return i=>{var a;let{btnComponentProps:s,selectedItem:l}=i;return T.createElement(_e.Z,(0,De.Z)({is:"div"},s,{className:F()("PSPDFKit-Input-Dropdown-Button",ud().selectBox,e.props.styles.startLineCapSelect),name:"clickableBox",ref:e=>{s.ref(e),"function"==typeof r?r(e):r&&(r.current=e)}}),T.createElement(pd,{item:null!==(a=null==l?void 0:l.label)&&void 0!==a?a:"",isEnd:o,formatMessage:t}),T.createElement("div",null,(0,Ze.Z)({type:"caret-"+n,style:{width:12,height:12,flexBasis:12,marginLeft:3,strokeWidth:0},className:F()(ud().dropdownIcon)})))}})),(0,o.Z)(this,"LineCapItem",(function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n=>{var o;let{item:r,state:i,itemComponentProps:a,ref:s}=n;return T.createElement(_e.Z,(0,De.Z)({is:"div",className:F()(ld().root,ad().root,(null==i?void 0:i.includes("selected"))&&ud().isSelected,(null==i?void 0:i.includes("focused"))&&ud().isSelected)},a,{ref:s}),T.createElement(pd,{item:null!==(o=null==r?void 0:r.label)&&void 0!==o?o:"",isEnd:t,formatMessage:e}))}})),(0,o.Z)(this,"DashArrayButton",((e,t)=>n=>{var o;let{btnComponentProps:r,selectedItem:i}=n;return T.createElement(_e.Z,(0,De.Z)({is:"div"},r,{ref:r.ref,className:F()("PSPDFKit-Input-Dropdown-Button",ud().selectBox,this.props.styles.strokeDashArraySelect),name:"clickableBox"}),T.createElement(fd,{item:null!==(o=null==i?void 0:i.label)&&void 0!==o?o:"",formatMessage:e}),T.createElement("div",null,(0,Ze.Z)({type:"caret-"+t,style:{width:12,height:12,flexBasis:12,marginLeft:3,strokeWidth:0},className:F()(ud().dropdownIcon)})))})),(0,o.Z)(this,"DashArrayItem",(e=>t=>{var n;let{item:o,state:r,itemComponentProps:i,ref:a}=t;return T.createElement(_e.Z,(0,De.Z)({is:"div",className:F()(ld().root,ad().root,(null==r?void 0:r.includes("selected"))&&ud().isSelected,(null==r?void 0:r.includes("focused"))&&ud().isSelected),ref:a},i),T.createElement(fd,{item:null!==(n=null==o?void 0:o.label)&&void 0!==n?n:"",formatMessage:e}))})),(0,o.Z)(this,"_startButton",this.LineCapSelectButton(this.props.intl.formatMessage,this.props.caretDirection,!1,this.props.innerRef)),(0,o.Z)(this,"_endButton",this.LineCapSelectButton(this.props.intl.formatMessage,this.props.caretDirection,!0)),(0,o.Z)(this,"_startItem",this.LineCapItem(this.props.intl.formatMessage)),(0,o.Z)(this,"_endItem",this.LineCapItem(this.props.intl.formatMessage,!0)),(0,o.Z)(this,"_dashArrayButton",this.DashArrayButton(this.props.intl.formatMessage,this.props.caretDirection)),(0,o.Z)(this,"_dashArrayItem",this.DashArrayItem(this.props.intl.formatMessage))}render(){const{intl:{formatMessage:e},styles:t,annotation:n,caretDirection:o}=this.props,{strokeDashArray:r}=n,i=mt.Ei.LINE_CAP_PRESETS,a={start:"none",end:"none"};"lineCaps"in n&&n.lineCaps&&(nd.a.includes(n.lineCaps.start)&&(a.start=n.lineCaps.start),nd.a.includes(n.lineCaps.end)&&(a.end=n.lineCaps.end)),i.includes(a.start)||(a.start="N/A"),i.includes(a.end)||(a.end="N/A");const s=i.map((e=>({value:e,label:e}))),l=r instanceof Array&&2===r.length?od.x.find((e=>2===e.dashArray.length&&e.dashArray[0]===r[0]&&e.dashArray[1]===r[1])):od.x[0],c=od.x.map((e=>({value:e.id,label:e.id})));return T.createElement("div",{className:t.controlWrapper},T.createElement("div",{className:t.control},T.createElement(rd.Z,{items:s,value:{value:a.start,label:a.start},discreteDropdown:!1,isActive:!1,caretDirection:o,accessibilityLabel:e(Ke.Z.startLineCap),className:F()("PSPDFKit-Annotation-Toolbar-StartLineCap",t.startLineCapSelect,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:F()(t.dropdownMenu,t.lineCapsDashArrayMenu),maxCols:5,itemWidth:54,ButtonComponent:this._startButton,ItemComponent:this._startItem,onSelect:(e,t)=>{t.value&&this._onChangeStartLineCap(t.value)},frameWindow:this.props.frameWindow}),T.createElement(rd.Z,{items:c,value:l?{label:l.id,value:l.id}:{label:"solid",value:"solid"},discreteDropdown:!1,isActive:!1,caretDirection:o,accessibilityLabel:e(Ke.Z.strokeDashArray),className:F()("PSPDFKit-Annotation-Toolbar-DashArray",t.strokeDashArraySelect,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:F()(t.dropdownMenu,t.lineCapsDashArrayMenu),itemWidth:76,ButtonComponent:this._dashArrayButton,ItemComponent:this._dashArrayItem,onSelect:(e,t)=>{t.value&&this._onChangeDashArray(t.value)},frameWindow:this.props.frameWindow}),T.createElement(rd.Z,{items:s,value:{label:a.end,value:a.end},discreteDropdown:!1,isActive:!1,caretDirection:o,accessibilityLabel:e(Ke.Z.endLineCap),className:F()("PSPDFKit-Annotation-Toolbar-EndLineCap",t.endLineCapSelect,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:F()(t.dropdownMenu,t.lineCapsDashArrayMenu),maxCols:5,itemWidth:54,ButtonComponent:this._endButton,ItemComponent:this._endItem,onSelect:(e,t)=>{t.value&&this._onChangeEndLineCap(t.value)},frameWindow:this.props.frameWindow})))}}const md=hd,gd=(0,Re.vU)({square:{id:"square",defaultMessage:"Square",description:"Square line cap"},circle:{id:"circle",defaultMessage:"Circle",description:"Circle line cap"},diamond:{id:"diamond",defaultMessage:"Diamond",description:"Diamond line cap"},openArrow:{id:"openArrow",defaultMessage:"Open Arrow",description:"Open arrow line cap"},closedArrow:{id:"closedArrow",defaultMessage:"Closed Arrow",description:"Closed arrow line cap"},butt:{id:"butt",defaultMessage:"Butt",description:"Butt line cap"},reverseOpenArrow:{id:"reverseOpenArrow",defaultMessage:"Reverse Open Arrow",description:"Reverse open arrow line cap"},reverseClosedArrow:{id:"reverseClosedArrow",defaultMessage:"Reverse Closed Arrow",description:"Reverse closed arrow line cap"},slash:{id:"slash",defaultMessage:"Slash",description:"Slash line cap"},solid:{id:"solid",defaultMessage:"Solid",description:"Solid line"},narrowDots:{id:"narrowDots",defaultMessage:"Narrow Dots",description:"Narrow dotted line"},wideDots:{id:"wideDots",defaultMessage:"Wide Dots",description:"Wide dotted line"},narrowDashes:{id:"narrowDashes",defaultMessage:"Narrow Dashes",description:"Narrow dashed line"},wideDashes:{id:"wideDashes",defaultMessage:"Wide Dashes",description:"Wide dashed line"}});var vd;const yd=74,bd={width:54,height:13.5,fill:"transparent"};const wd=Je.i1*Je.St;function Sd(e){let{item:t,lineStyleOptions:n,formatMessage:o}=e;const r=n.get(t);return T.createElement(T.Fragment,null,T.createElement(ue.TX,{tag:"div"},o(xd[t])),r)}class Ed extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"state",{calculateShapeBoundingBox:(0,ee.sS)(this.props.annotation.constructor)}),(0,o.Z)(this,"DashArrayButton",(e=>{var t;let{btnComponentProps:n,selectedItem:o}=e;return T.createElement(_e.Z,(0,De.Z)({is:"div"},n,{className:F()("PSPDFKit-Input-Dropdown-Button",ud().selectBox,this.props.styles.strokeDashArraySelect),name:"clickableBox",ref:e=>{n.ref(e),"function"==typeof this.props.innerRef?this.props.innerRef(e):this.props.innerRef&&(this.props.innerRef.current=e)}}),T.createElement(Sd,{item:null!==(t=null==o?void 0:o.label)&&void 0!==t?t:"solid",lineStyleOptions:this._lineStyleOptions,formatMessage:this.props.intl.formatMessage}),T.createElement("div",null,(0,Ze.Z)({type:"caret-"+this.props.caretDirection,style:{width:12,height:12,flexBasis:12,marginLeft:3,strokeWidth:0},className:F()(ud().dropdownIcon)})))})),(0,o.Z)(this,"DashArrayItem",(e=>{var t;let{item:n,state:o,itemComponentProps:r,ref:i}=e;return T.createElement(_e.Z,(0,De.Z)({is:"div",className:F()(ld().root,ad().root,(null==o?void 0:o.includes("selected"))&&ud().isSelected,(null==o?void 0:o.includes("focused"))&&ud().isSelected)},r,{ref:i}),T.createElement(Sd,{item:null!==(t=null==n?void 0:n.label)&&void 0!==t?t:"solid",lineStyleOptions:this._lineStyleOptions,formatMessage:this.props.intl.formatMessage}))})),(0,o.Z)(this,"_onChange",((e,t)=>{const{value:n}=t,{annotation:o}=this.props,r="cloudy"===n?Je.i1:0,i=od.x.find((e=>e.id===n)),a=((e,t,n)=>{if(e.constructor===s.Xs||e.constructor===s.b3){if(t>0&&!e.cloudyBorderIntensity)return e.boundingBox.grow(wd+e.strokeWidth/2);if(!t&&e.cloudyBorderIntensity>0)return e.boundingBox.grow(-(wd+e.strokeWidth/2))}return e.constructor===s.Hi?n(e.set("cloudyBorderIntensity",t)):n(e)})(o,r,this.state.calculateShapeBoundingBox);return this.props.updateAnnotation({strokeDashArray:void 0!==i&&Array.isArray(i.dashArray)&&2===i.dashArray.length?i.dashArray:null,cloudyBorderIntensity:r,cloudyBorderInset:r?j.eB.fromValue(wd+o.strokeWidth/2):o.cloudyBorderInset,boundingBox:a})})),(0,o.Z)(this,"_lineStyleOptions",function(){const e=new Map;return od.x.forEach((t=>{e.set(t.id,T.createElement("svg",{viewBox:"0 0 16 4",style:bd,key:t.id},T.createElement("line",{x1:"0",y1:"2",x2:"16",y2:"2",strokeDasharray:t.dashArray})))})),e.set("cloudy",vd||(vd=T.createElement("svg",{viewBox:"0 0 16 4",style:bd,key:"cloudy"},T.createElement("path",{d:"M 1 2.23 A 2.125 2.125 0 0 1 4.67 1.68 A 2.125 2.125 0 0 0 4.35 2.23 A 2.125 2.125 0 0 1 8 1.68 A 2.125 2.125 0 0 0 7.68 2.23 A 2.125 2.125 0 0 1 11.33 1.68 A 2.125 2.125 0 0 0 11.02 2.23 A 2.125 2.125 0 1 1 14.14 4.80 A 2.125 2.125 0 0 0 13.55 4.54"})))),e}(this.props.intl.formatMessage))}static getDerivedStateFromProps(e){return{calculateShapeBoundingBox:(0,ee.sS)(e.annotation.constructor)}}render(){const{intl:{formatMessage:e},styles:t,annotation:n,frameWindow:o}=this.props,{strokeDashArray:r,cloudyBorderIntensity:i}=n,a=Array.isArray(r)&&2===r.length&&od.x.find((e=>2===e.dashArray.length&&e.dashArray[0]===r[0]&&e.dashArray[1]===r[1])),s=i>0?a||i!==Je.i1?"":"cloudy":a?a.id:r?"":"solid",l=Array.from(this._lineStyleOptions.keys()).map((e=>({label:e,value:e})));return T.createElement("div",{className:t.controlWrapper},T.createElement("div",{className:t.control},T.createElement(rd.Z,{items:l,value:{label:s||"solid",value:s||"solid"},discreteDropdown:!1,isActive:!1,caretDirection:this.props.caretDirection,accessibilityLabel:e(Ke.Z.strokeDashArray),className:F()("PSPDFKit-Annotation-Toolbar-LineStyle",t.strokeDashArraySelect,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:F()(t.dropdownMenu,t.strokeDashArrayMenu),maxCols:1,itemWidth:yd,ButtonComponent:this.DashArrayButton,ItemComponent:this.DashArrayItem,onSelect:this._onChange,frameWindow:o})))}}const Pd=Ed,xd=(0,Re.vU)({solid:{id:"solid",defaultMessage:"Solid",description:"Solid line"},narrowDots:{id:"narrowDots",defaultMessage:"Narrow Dots",description:"Narrow dotted line"},wideDots:{id:"wideDots",defaultMessage:"Wide Dots",description:"Wide dotted line"},narrowDashes:{id:"narrowDashes",defaultMessage:"Narrow Dashes",description:"Narrow dashed line"},wideDashes:{id:"wideDashes",defaultMessage:"Wide Dashes",description:"Wide dashed line"},cloudy:{id:"cloudy",defaultMessage:"Cloudy border",description:"Cloudy border effect"}});var Dd=n(2726);function Cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}const kd=T.forwardRef(((e,t)=>{let n=[],r=!1;Array.isArray(mt.Ei.LINE_WIDTH_PRESETS)&&(n=mt.Ei.LINE_WIDTH_PRESETS,r=!0);let i=!1,a=!1;e.annotation instanceof j.Zc&&(i=!0),e.annotation instanceof j.R1&&(a=!0);const{intl:{formatMessage:s},styles:l,annotation:c,type:u,caretDirection:d}=e,p=u?`PSPDFKit-${u}-Annotation-Toolbar-StrokeWidth`:"",f=F()("PSPDFKit-Annotation-Toolbar-StrokeWidth",u&&p);let h=1,m=40,g=i?c.lineWidth:a?c.borderWidth:c.strokeWidth;return r&&(h=0,m=n.length-1,g=n.indexOf(g)),T.createElement("div",{className:l.controlWrapper},T.createElement("div",{className:l.control},T.createElement(Dd.Z,{name:"lineWidth",accessibilityLabel:e.accessibilityLabel||s(Ke.Z.size),className:f,value:g,valueLabel:t=>{let o=t;if(r){if(-1===t)return"N/A";o=n[t]}return e.intl.formatMessage(Ke.Z.numberInPt,{arg0:o.toFixed(0)})},min:h,max:m,step:1,onChange:t=>{let s=t;if(r&&(s=n[t]),i)return e.updateAnnotation({lineWidth:s});if(a)return e.updateAnnotation({borderWidth:s});if(e.annotation instanceof j.b3||e.annotation instanceof j.Xs){const t=s/2-e.annotation.strokeWidth/2,n=e.annotation.cloudyBorderInset?new j.eB({left:e.annotation.cloudyBorderInset.left+t,top:e.annotation.cloudyBorderInset.top+t,right:e.annotation.cloudyBorderInset.right+t,bottom:e.annotation.cloudyBorderInset.bottom+t}):null;return e.updateAnnotation(function(e){for(var t=1;tthis.props.updateAnnotation({opacity:e/100}))),(0,o.Z)(this,"valueLabel",(e=>`${Math.round(e)}%`))}render(){const{intl:{formatMessage:e},styles:t,annotation:n,type:o,caretDirection:r}=this.props,i=o?`PSPDFKit-${o}-Annotation-Toolbar-Opacity`:"",a=F()("PSPDFKit-Annotation-Toolbar-Opacity",o&&i);return T.createElement("div",{className:t.controlWrapper},T.createElement("div",{className:t.control},T.createElement(Dd.Z,{name:"opacity",accessibilityLabel:e(Ke.Z.opacity),className:a,value:100*n.opacity,valueLabel:this.valueLabel,min:10,max:100,step:1,onChange:this.updateAnnotation,caretDirection:r,innerRef:this.props.innerRef})))}}const Td={LineCapsDashArrayComponent:md,LineStyleComponent:Pd,StrokeWidthComponent:Ad,OpacityComponent:Od};var Id=n(11010),Fd=n(66003),Md=n(16593),_d=n.n(Md);let Rd=0;const Nd=T.forwardRef((function(e,t){const n=T.useRef(Rd++),{label:o,accessibilityLabel:r,onUpdate:i,onBlur:a,onFocus:s,onKeyDown:l,textStyles:c,disabled:u=!1,autoFocus:d=!0,name:p="name"}=e,f=T.useCallback((e=>{i&&i(e.target.value)}),[i]);return T.createElement("div",{className:e.styles.controlWrapper},T.createElement("div",{className:e.styles.control},T.createElement("div",{className:`PSPDFKit-Text-Input ${e.className||""} ${_d().root}`},e.label?T.createElement("label",{htmlFor:`${_d().root}-${n.current}`,className:_d().label},o):r?T.createElement(ue.TX,{tag:"label",htmlFor:`${_d().root}-${n.current}`},r):null,T.createElement(ue.oi,{className:F()(_d().input,e.styles.input),value:e.value,onChange:f,onBlur:a,onFocus:s,onKeyDown:l,autoFocus:d,selectTextOnFocus:!0,name:p,placeholder:e.placeholder,autoComplete:"off",id:`${_d().root}-${n.current}`,ref:t,style:c,disabled:u}))))}));var Ld=n(9437),Bd=n.n(Ld);const jd=T.forwardRef((function(e,t){const{intl:n,isEditing:o,showAnnotationNotes:r,isAnnotationNoteActive:i,hasAnnotationNote:a,onAnnotationNotePress:s,disabled:l}=e,{formatMessage:c}=n;return T.createElement(T.Fragment,null,r&&!o?T.createElement(Id.Z,{type:a||i?"note":"note-add",title:c(Ke.Z.noteAnnotation),className:F()(Bd().button,Bd().annotationNoteButton,{[Bd().disableEditing]:l}),onPress:l?void 0:s,selected:i,ref:t}):null)}));var zd=n(24852),Kd=n(11378),Zd=n(44706);function Ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Vd(e){for(var t=1;t{let{annotationToolbarItems:t,builtInItems:n,btnFocusRefIfFocusedItem:o,onGroupExpansion:r,builtInToolbarProps:i={},expandedGroup:a,hasDesktopLayout:s,onGroupTransitionEnded:l,position:c,typeMap:u}=e;const d=(0,T.useMemo)((()=>t.every((e=>{if(Gd(e))return!1;if("spacer"===e.type)return!0;{const t=n.find((t=>t.type===e.type));return!(null==t||!t.hidden)}}))),[n,t]),p=a?n.find((e=>Wd(e)===a))||t.filter(Gd).find((e=>Wd(e)===a)):void 0,f=(0,T.useMemo)((()=>((e,t,n)=>{if(n)return e.map((e=>{const n=!Gd(e)&&t.find((t=>t.type===e.type));return Vd(Vd({},e),n&&{group:n.group,node:n.node,title:e.title||n.title,onPress:(t,o)=>{var r,i;null===(r=n.onPress)||void 0===r||r.call(n,t.nativeEvent,e.id),null===(i=e.onPress)||void 0===i||i.call(e,t.nativeEvent,o)},disabled:n.disabled&&e.disabled,className:F()(n.className,e.className)})})).find((e=>n===Wd(e)))})(t,n,a)),[t,a,n]);if(f)return T.createElement("div",{className:Bd().right},T.createElement(Zd.Z,{onClose:()=>r(null),isPrimary:!1,position:c,onEntered:l,accessibilityLabel:f?f.title:void 0,className:Bd().expanded},f.node instanceof HTMLElement?T.createElement(Kd.Z,{node:f.node,className:f.className,onPress:f.onPress,title:f.title,disabled:f.disabled}):T.createElement("div",{className:f.className,onClick:e=>{var t;return null===(t=f.onPress)||void 0===t?void 0:t.call(f,e.nativeEvent,f.id)},title:f.title},f.node)));if(d)return null;const h=t.find((e=>{var t;return"spacer"!==e.type&&!(null!==(t=n.find((t=>t.type===e.type)))&&void 0!==t&&t.hidden)}));return T.createElement("form",{className:Bd().form,onSubmit:jr.PF},t.map(((e,t)=>{if("spacer"===e.type)return T.createElement("div",{key:e.type,className:F()("PSPDFKit-Annotation-Toolbar-Spacer",e.className),style:{display:"flex",flex:1},onClick:t=>{var n;return null===(n=e.onPress)||void 0===n?void 0:n.call(e,t.nativeEvent,e.id)}});const l=n.find((t=>t.type===e.type)),c=(null==h?void 0:h.id)===e.id&&(null==h?void 0:h.type)===e.type;if(Gd(e)){const n="node"in e&&!!e.node&&T.createElement("div",{role:"button",ref:o(Wd(e),p,0===t&&!a),key:e.id},T.createElement(Kd.Z,{node:e.node,className:e.className,onPress:t=>{var n;return null===(n=e.onPress)||void 0===n?void 0:n.call(e,t,e.id)},title:e.title,disabled:e.disabled,variant:"annotationToolbar"})),i="icon"in e&&!!e.icon&&T.createElement("div",{role:"button",key:e.id,className:F()(Bd().button,ad().root,ld().root,`${e.className}-Icon`),onClick:t=>{var n;"custom"===e.type&&e.node&&r(`custom-${e.id}`),null===(n=e.onPress)||void 0===n||n.call(e,t,e.id)},ref:o(Wd(e),p,c&&!a),title:e.title},(e=>"icon"in e?"string"==typeof e.icon?/{var n;return null===(n=e.onIconPress)||void 0===n?void 0:n.call(e,t,e.id)},title:e.title,disabled:e.disabled}):void 0:null)(e));return s?n||i:i||n}if(!l||l.hidden)return null;const d=(null==u?void 0:u[e.type])||e.type,f="function"==typeof i?i(l):i;return l.group?T.createElement(T.Fragment,{key:l.type},T.createElement("div",{className:F()(l.className,{[Bd().disableEditing]:l.disabled})},T.createElement(Id.Z,(0,De.Z)({type:d,icon:e.icon,title:e.title||l.title,onPress:t=>{var n,o;(r(l.group||null),s)?null===(n=e.onPress)||void 0===n||n.call(e,t,e.id):null===(o=e.onIconPress)||void 0===o||o.call(e,t,e.id)}},f,{className:F()(f.className,e.className),ref:o(Wd(l),p,c&&!a)})),l.node),!l.hideSeparator&&T.createElement("div",{className:Bd().separator})):T.createElement("div",{className:F()(l.className,{[Bd().disableEditing]:l.disabled},e.className),key:l.type,onClick:t=>{var n;null===(n=e.onPress)||void 0===n||n.call(e,t.nativeEvent,e.id)},title:e.title||l.title},l.node)})))};var Hd=n(77528);function $d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Yd(e){for(var t=1;t{r&&(t.rects.size>0&&n?(o((0,Qt.gX)(i)),o((0,En.aw)()),o((0,je.vR)())):e.updateAnnotation(i,"redaction"))})),f=(0,fi.R9)((()=>(o((0,En.fq)()),new Promise(((e,t)=>(o((0,zd.g)((()=>{o((0,En.Di)()),e()}),(e=>{o((0,En.Di)()),t(e)}))),e)))))),{position:h,intl:m}=e,{formatMessage:g}=m,v={updateAnnotation:p,annotation:t,styles:Bd(),intl:m,caretDirection:"bottom"===h?"up":"down"},y=[{node:T.createElement(Fd.Z,(0,De.Z)({},v,{record:t,colorProperty:"fillColor",onChange:p,className:"PSPDFKit-Redaction-Annotation-Toolbar-Fill-Color",accessibilityLabel:g(Ke.Z.fillColor),removeTransparent:!0,keepOpacity:!0,frameWindow:e.frameWindow,innerRef:s("fillColor",!a),lastToolbarActionUsedKeyboard:c,annotationToolbarColorPresets:e.annotationToolbarColorPresets})),title:g(Ke.Z.fillColor),type:"fill-color",className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Fill-Color"),group:"fillColor",disabled:!r,hideSeparator:!0},{node:T.createElement("div",{style:{display:"flex"}},T.createElement(Nd,{accessibilityLabel:g(Ke.Z.overlayText),placeholder:g(Ke.Z.insertOverlayText),className:Bd().overlayTextInput,value:t.overlayText||"",onUpdate:e=>{p({overlayText:e})},styles:Yd(Yd({},Bd()),{},{controlWrapper:Bd().controlWrapperAutoWidth,input:Bd().overlayInput}),ref:s("overlayText")}),T.createElement(Fd.Z,(0,De.Z)({},v,{record:t,colorProperty:"color",onChange:p,className:"PSPDFKit-Redaction-Annotation-Toolbar-Color",removeTransparent:!0,accessibilityLabel:g(Ke.Z.color),keepOpacity:!0,styles:Yd(Yd({},Bd()),{},{controlWrapper:Bd().controlWrapperAutoWidth}),frameWindow:e.frameWindow,annotationToolbarColorPresets:e.annotationToolbarColorPresets})),T.createElement(ue.bK,{label:g(Ke.Z.repeatText),value:Boolean(t.repeatOverlayText),onUpdate:e=>{p({repeatOverlayText:e})},styles:Yd(Yd({},Bd()),{},{controlWrapper:Bd().controlWrapperAutoWidth})})),title:g(Ke.Z.overlayText),group:"overlayText",className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Overlay-Text",Bd().overlayTextMargin),disabled:!e.canEditAnnotationCP,type:"overlay-text"},{node:T.createElement(Fd.Z,(0,De.Z)({},v,{record:t,colorProperty:"outlineColor",onChange:p,className:"PSPDFKit-Redaction-Annotation-Toolbar-Outline-Color",accessibilityLabel:g(Ke.Z.outlineColor),frameWindow:e.frameWindow,innerRef:s("outlineColor"),annotationToolbarColorPresets:e.annotationToolbarColorPresets})),title:g(Ke.Z.outlineColor),group:"outlineColor",className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Outline-Color"),disabled:!e.canEditAnnotationCP,type:"outline-color"},{node:T.createElement(Td.OpacityComponent,(0,De.Z)({},v,{innerRef:s("opacity")})),title:g(Ke.Z.opacity),group:"opacity",className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity"),disabled:!e.canEditAnnotationCP,type:"opacity"},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(u),title:g(Ke.Z.delete),className:F()("PSPDFKit-Redaction-Annotation-Toolbar-Button-Delete",Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!i}),onPress:i?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===t.pageIndex||!!a||d},{node:T.createElement("div",{className:F()(Bd().applyRedactionsWrapper)},T.createElement(Id.Z,{type:"applyRedaction",title:g(Ke.Z.applyRedactions),className:F()("PSPDFKit-Redaction-Annotation-Toolbar-Button-Apply-Redactions",Bd().button,Bd().buttonNoBorder,Bd().applyRedactionsButton),onPress:f})),type:"apply-redactions",hidden:null===t.pageIndex||!!a||d},{node:T.createElement(jd,{intl:m,isEditing:e.isEditing,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),disabled:!e.canEditAnnotationCP,hidden:!e.showAnnotationNotes||n,type:"annotation-note"}],b={"overlay-text":t.repeatOverlayText?"redaction-text-repeating":"redaction-text-single","outline-color":"border-color"},w={presentational:e.viewportWidth>Je.GI,disabled:Boolean(a),className:F()(Bd().button,Bd().buttonNoBorder)};return T.createElement("div",{className:F()("PSPDFKit-Redaction-Annotation-Toolbar",Bd().content)},T.createElement(qd,{annotationToolbarItems:u,builtInItems:y,btnFocusRefIfFocusedItem:l,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:w,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:a,onGroupTransitionEnded:e.onGroupTransitionEnded,position:h,typeMap:b}))}));const Jd=Xd,Qd=T.memo((function(e){const{annotation:t,intl:n,position:o,expandedGroup:r,btnFocusRefIfFocusedGroup:i,btnFocusRefIfFocusedItem:a,canDeleteSelectedAnnotationCP:s,annotationToolbarItems:l}=e,c=(0,fi.R9)((t=>e.updateAnnotation(t,"stamp"))),{formatMessage:u}=n,d=[{node:T.createElement(Td.OpacityComponent,{intl:n,type:"Image",styles:Bd(),annotation:t,updateAnnotation:c,caretDirection:"bottom"===o?"up":"down",innerRef:i("opacity",!r)}),title:u(Ke.Z.opacity),type:"opacity",disabled:!e.canEditAnnotationCP,group:"opacity",className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(l),title:u(Ke.Z.delete),className:F()("PSPDFKit-Stamp-Annotation-Toolbar-Button-Delete",Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!s}),onPress:s?()=>e.deleteAnnotation():()=>{}}),type:"delete",disabled:null===e.annotation.pageIndex},{node:T.createElement(jd,{intl:e.intl,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),type:"annotation-note",disabled:!e.showAnnotationNotes}];return T.createElement("div",{className:F()("PSPDFKit-Stamp-Annotation-Toolbar",Bd().content)},T.createElement(qd,{annotationToolbarItems:l,builtInItems:d,btnFocusRefIfFocusedItem:a,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:{className:Bd().button},hasDesktopLayout:e.hasDesktopLayout,expandedGroup:r,onGroupTransitionEnded:e.onGroupTransitionEnded,position:o}))}));const ep=Qd,tp=T.memo((function(e){const{annotation:t,intl:n,position:o,expandedGroup:r,btnFocusRefIfFocusedGroup:i,btnFocusRefIfFocusedItem:a,canDeleteSelectedAnnotationCP:s,annotationToolbarItems:l}=e,c=(0,fi.R9)((t=>e.updateAnnotation(t,"image"))),{formatMessage:u}=n,d=[{node:T.createElement(Td.OpacityComponent,{intl:n,type:"Image",styles:Bd(),annotation:t,updateAnnotation:c,caretDirection:"bottom"===o?"up":"down",innerRef:i("opacity",!r)}),title:u(Ke.Z.opacity),type:"opacity",group:"opacity",disabled:!e.canEditAnnotationCP,hidden:e.areOnlyElectronicSignaturesEnabled,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:T.createElement(Id.Z,{type:"counterclockwise",title:u(Ke.Z.rotateCounterclockwise),className:`PSPDFKit-Image-Annotation-Toolbar-Button-Rotate PSPDFKit-Image-Annotation-Toolbar-Button-Rotate-Counterclockwise ${Bd().button} ${Bd().rotateButton}`,onPress:()=>{e.selectedAnnotationPageSize&&e.updateAnnotation((0,J.eJ)(e.annotation,e.selectedAnnotationPageSize,J.z1.COUNTERCLOCKWISE))}}),type:"counterclockwise-rotation",disabled:!e.canEditAnnotationCP,hidden:e.areOnlyElectronicSignaturesEnabled},{node:T.createElement(Id.Z,{type:"clockwise",title:u(Ke.Z.rotateClockwise),className:`PSPDFKit-Image-Annotation-Toolbar-Button-Rotate PSPDFKit-Image-Annotation-Toolbar-Button-Rotate-Clockwise ${Bd().button} ${Bd().rotateButton}`,onPress:()=>{e.selectedAnnotationPageSize&&e.updateAnnotation((0,J.eJ)(e.annotation,e.selectedAnnotationPageSize,J.z1.CLOCKWISE))}}),type:"clockwise-rotation",disabled:!e.canEditAnnotationCP,hidden:e.areOnlyElectronicSignaturesEnabled},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(l),title:u(Ke.Z.delete),className:F()("PSPDFKit-Image-Annotation-Toolbar-Button-Delete",Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!s}),onPress:s?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex||!!r},{node:T.createElement(jd,{intl:e.intl,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),type:"annotation-note",hidden:!e.showAnnotationNotes||e.areOnlyElectronicSignaturesEnabled}];return T.createElement("div",{className:F()("PSPDFKit-Image-Annotation-Toolbar",Bd().content)},T.createElement(qd,{annotationToolbarItems:l,builtInItems:d,btnFocusRefIfFocusedItem:a,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:{className:Bd().button},hasDesktopLayout:e.hasDesktopLayout,expandedGroup:r,onGroupTransitionEnded:e.onGroupTransitionEnded,position:o}))}));const np=tp;var op=n(927),rp=n.n(op);const ip=["Tab","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"];class ap extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"state",{keyboardFocus:!!this.props.lastToolbarActionUsedKeyboard}),(0,o.Z)(this,"_handleKeyUp",(e=>{ip.includes(e.key)&&this.setState({keyboardFocus:!0})})),(0,o.Z)(this,"_handlePointerUp",(()=>{this.setState({keyboardFocus:!1})})),(0,o.Z)(this,"shouldComponentUpdate",ze.O)}componentDidMount(){var e,t;const n=null===(e=this.props.innerRef)||void 0===e||null===(t=e.current)||void 0===t?void 0:t.parentNode;n&&n.focus()}render(){const{colorPresets:e,activeColor:t,innerRef:n}=this.props,{formatMessage:o}=this.props.intl;return this.props.colorPresets.length<2?null:T.createElement("div",{className:F()("PSPDFKit-Input-ColorPicker",this.props.className,rp().root),role:"radiogroup","aria-label":this.props.accessibilityLabel,onKeyUp:this._handleKeyUp,onPointerUp:this._handlePointerUp,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||this.setState({keyboardFocus:!1})}},e.map(((e,r)=>{const i=e.color===t||e.color&&t&&e.color.equals(t),a=F()({[rp().input]:!0,[rp().inputIsActive]:i,"PSPDFKit-Input-ColorPicker-Label":!0,"PSPDFKit-Input-ColorPicker-Label-active":i,[rp().focusRing]:this.state.keyboardFocus&&i}),s=F()({[rp().swatch]:!0,[rp().swatchIsTransparent]:!e.color,[rp().swatchIsWhite]:!e.color||e.color.equals(j.Il.WHITE),"PSPDFKit-Input-ColorPicker-Swatch":!0}),l=e.color?e.color.toCSSValue():null;let c=e.localization.defaultMessage;null!=l&&(e.localization.id?c=o(e.localization):null!=Ke.Z[l]&&(c=o(Ke.Z[l])));const u=e.color&&e.color.toCSSValue();return T.createElement("label",{className:a,key:r,title:c,"aria-label":c},T.createElement("span",{className:s,style:{backgroundColor:u||"transparent"}}),T.createElement(ue.TX,null," ",c," "),T.createElement(ue.TX,{tag:"input",type:"radio",name:rp().root,value:r,checked:!!i,onChange:t=>{t.target.checked&&this.props.onClick(e.color)},ref:i&&n?n:void 0}))})))}}(0,o.Z)(ap,"defaultProps",{className:""});const sp=(0,Re.XN)(ap),lp={normal:"normal",multiply:"multiply",screen:"screen",overlay:"overlay",darken:"darken",lighten:"lighten",colorDodge:"colorDodge",colorBurn:"colorBurn",hardLight:"hardLight",softLight:"softLight",difference:"difference",exclusion:"exclusion"},cp=T.forwardRef((function(e,t){let{value:n="normal",onChange:o,className:r,caretDirection:i,frameWindow:a}=e;const{formatMessage:s}=(0,Re.YB)(),l=Object.keys(lp).map((e=>({value:e,label:e}))),c=T.useCallback(up(s,i),[s,i]),u=T.useCallback(dp(s),[s]);return T.createElement(T.Fragment,null,T.createElement(rd.Z,{items:l,value:{label:n,value:n},discreteDropdown:!1,isActive:!1,caretDirection:i,accessibilityLabel:s(Ke.Z.blendMode),className:F()(Bd().blendModeSelect,r,"PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar"),menuClassName:Bd().dropdownMenu,ButtonComponent:c,ItemComponent:u,onSelect:(e,t)=>{if(t.value){const e=lp[t.value];o(e)}},frameWindow:a,ref:t}),T.createElement("div",{className:F()(Bd().fontSizeNativeFlexbox)},T.createElement("div",{className:Bd().nativeDropdown},T.createElement("select",{"aria-label":s(Ke.Z.blendMode),className:"PSPDFKit-Input-Dropdown-Select",value:n,onChange:e=>{if(void 0!==e.target.value){const t=lp[e.target.value];o(t)}},ref:t},l.map((e=>T.createElement("option",{key:e.value,value:e.value,disabled:e.disabled},s(pp[e.label]))))))))})),up=(e,t)=>n=>{let{btnComponentProps:o,selectedItem:r}=n;return T.createElement(_e.Z,(0,De.Z)({is:"div"},o,{ref:o.ref,className:F()("PSPDFKit-Input-Dropdown-Button ",ud().selectBox,Bd().selectBox),style:{minWidth:"100px"}}),T.createElement("span",null,null!=r&&r.label?e(pp[r.label]):null),T.createElement("div",null,(0,Ze.Z)({type:"caret-"+t,style:{width:12,height:12,flexBasis:12},className:F()(ud().dropdownIcon)})))},dp=e=>t=>{let{item:n,state:o,itemComponentProps:r,ref:i}=t;return T.createElement(_e.Z,(0,De.Z)({is:"div",ref:i,className:F()(ud().item,{[ud().isSelected]:(null==o?void 0:o.includes("selected"))||(null==o?void 0:o.includes("focused"))}),name:null==n?void 0:n.label},r),null!=n&&n.label?e(pp[n.label]):null)},pp=(0,Re.vU)({normal:{id:"normal",defaultMessage:"Normal",description:"Blend Mode Normal"},multiply:{id:"multiply",defaultMessage:"Multiply",description:"Blend Mode Multiply"},screen:{id:"screenBlend",defaultMessage:"Screen",description:"Blend Mode Screen"},overlay:{id:"overlay",defaultMessage:"Overlay",description:"Blend Mode Overlay"},darken:{id:"darken",defaultMessage:"Darken",description:"Blend Mode Darken"},lighten:{id:"lighten",defaultMessage:"Lighten",description:"Blend Mode Lighten"},colorDodge:{id:"colorDodge",defaultMessage:"Color Dodge",description:"Blend Mode Color Dodge"},colorBurn:{id:"colorBurn",defaultMessage:"Color Burn",description:"Blend Mode Color Burn"},hardLight:{id:"hardLight",defaultMessage:"Hard Light",description:"Blend Mode Hard Light"},softLight:{id:"softLight",defaultMessage:"Soft Light",description:"Blend Mode Soft Light"},difference:{id:"difference",defaultMessage:"Difference",description:"Blend Mode Difference"},exclusion:{id:"exclusion",defaultMessage:"Exclusion",description:"Blend Mode Exclusion"},hue:{id:"hue",defaultMessage:"Hue",description:"Blend Mode Hue"},saturation:{id:"saturation",defaultMessage:"Saturation",description:"Blend Mode Saturation"},color:{id:"color",defaultMessage:"Color",description:"Blend Mode Color"},luminosity:{id:"luminosity",defaultMessage:"Luminosity",description:"Blend Mode Luminosity"}}),fp=T.memo((function(e){const t=(0,fi.R9)((t=>{const{annotation:n,isEditing:o,dispatch:r,variantAnnotationPresetID:i,canEditAnnotationCP:a}=e;if(a)if(n.rects.size>0&&o)r((0,Qt.gX)(t)),r((0,En.d5)()),r((0,je.vR)());else{const o=i||fe.hD.get(n.constructor);e.updateAnnotation(t,o)}})),{position:n,annotation:o,expandedGroup:r,btnFocusRefIfFocusedGroup:i,btnFocusRefIfFocusedItem:a,canDeleteSelectedAnnotationCP:s,lastToolbarActionUsedKeyboard:l,annotationToolbarItems:c}=e,{formatMessage:u}=e.intl,d=mt.Ei.TEXT_MARKUP_COLOR_PRESETS,p=mt.Ei.HIGHLIGHT_COLOR_PRESETS,f=o instanceof j.FV?p:d,h=[{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(sp,{className:"PSPDFKit-Text-Markup-Annotation-Toolbar-Color",accessibilityLabel:u(Ke.Z.color),colorPresets:f,activeColor:o.color,onClick:e=>t({color:e}),innerRef:i("color",!r),lastToolbarActionUsedKeyboard:l}))),title:u(Ke.Z.color),group:"color",type:"color",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Color")},{node:T.createElement(Td.OpacityComponent,{intl:e.intl,type:"Text-Markup",styles:Bd(),annotation:o,updateAnnotation:e=>t(e),caretDirection:"bottom"===n?"up":"down",innerRef:i("opacity")}),title:u(Ke.Z.opacity),group:"opacity",type:"opacity",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(cp,{value:o.blendMode,className:"PSPDFKit-Text-Markup-Annotation-Toolbar-Blend-Mode",onChange:e=>t({blendMode:e}),caretDirection:"bottom"===n?"up":"down",frameWindow:e.frameWindow,ref:i("blendMode")}))),title:u(Ke.Z.blendMode),group:"blendMode",type:"blend-mode",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-BlendMode")},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(c),title:u(Ke.Z.delete),className:F()("PSPDFKit-Text-Markup-Annotation-Toolbar-Button-Delete",Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!s}),onPress:s?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex||!!r||e.isEditing},{node:T.createElement(jd,{intl:e.intl,isEditing:e.isEditing,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),type:"annotation-note",hidden:!e.showAnnotationNotes||e.isEditing}],m={className:Bd().button,presentational:e.viewportWidth>=Je.GI,disabled:!!r};return T.createElement("div",{className:F()("PSPDFKit-Text-Markup-Annotation-Toolbar",Bd().content)},T.createElement(qd,{annotationToolbarItems:c,builtInItems:h,btnFocusRefIfFocusedItem:a,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:m,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:r,onGroupTransitionEnded:e.onGroupTransitionEnded,position:n,typeMap:{color:"border-color"}}))}));const hp=fp;var mp=n(38623),gp=n(47751),vp=n(61252),yp=n.n(vp),bp=n(70190),wp=n.n(bp);const Sp=e=>{let{item:t,state:n,itemComponentProps:o,ref:r}=e;return T.createElement(Ep,{item:t,state:n,fontFamily:void 0,itemComponentProps:o,ref:r})},Ep=T.forwardRef(((e,t)=>{var n;let{item:o,state:r,fontFamily:i,itemComponentProps:a,width:s}=e;return T.createElement(_e.Z,(0,De.Z)({is:"div",className:F()(ud().item,yp().item,{[ud().isSelected]:(null==r?void 0:r.includes("selected"))||(null==r?void 0:r.includes("focused"))}),name:null!==(n=null==o?void 0:o.value)&&void 0!==n?n:null==o?void 0:o.label,style:{fontFamily:i,width:s},ref:t},a),null!=r&&r.includes("selected")?T.createElement(Ye.Z,{src:wp(),className:yp().icon}):T.createElement("span",{className:yp().icon}),null==o?void 0:o.label)})),Pp=e=>function(t){var n;let{btnComponentProps:o,selectedItem:r,caretDirection:i,disabled:a,isOpen:s}=t;const l=T.useRef(),{formatMessage:c}=(0,Re.YB)();T.useLayoutEffect((()=>{l.current&&(l.current.value=(null==r?void 0:r.label)||"")}),[r]);const u=T.useCallback((()=>{var t;const n=null===(t=l.current)||void 0===t?void 0:t.value;if(n&&l.current&&n!==(null==r?void 0:r.label)){const t=parseFloat(n);var o,i,a;if(Number.isNaN(t))l.current.value=null!==(o=null==r?void 0:r.label)&&void 0!==o?o:"";else e({selectedItem:{label:null!==(i=t.toString())&&void 0!==i?i:"",value:null!==(a=t.toString())&&void 0!==a?a:""},preventFocusShift:!1})}}),[null==r?void 0:r.label]);return T.createElement("div",{className:F()(yp().wrapper)},T.createElement(Nd,{accessibilityLabel:c(Ke.Z.fontSize),className:yp().textInput,onBlur:u,onKeyDown:t=>{var n,o;const r=null!==(n=null===(o=l.current)||void 0===o?void 0:o.value)&&void 0!==n?n:"0";if("ArrowUp"===t.key){var i,a;const t=parseFloat(r)+1;e({selectedItem:{label:null!==(i=t.toString())&&void 0!==i?i:"",value:null!==(a=t.toString())&&void 0!==a?a:""},preventFocusShift:!0})}else if("ArrowDown"===t.key){var s,c;const t=Math.max(0,parseFloat(r)-1);e({selectedItem:{label:null!==(s=t.toString())&&void 0!==s?s:"",value:null!==(c=t.toString())&&void 0!==c?c:""},preventFocusShift:!0})}else"Enter"===t.key&&(t.preventDefault(),u())},onFocus:()=>{tt.G6&&setTimeout((()=>{l.current&&l.current.setSelectionRange(0,l.current.value.length)}),100)},name:"fontSize",styles:{input:F()({[yp().inputDisabled]:a},yp().textInputField)},disabled:a,ref:l,autoFocus:!1}),T.createElement("button",(0,De.Z)({},o,{ref:o.ref,key:null!==(n=null==r?void 0:r.value)&&void 0!==n?n:null==r?void 0:r.label,className:F()("PSPDFKit-Input-Dropdown-Button",ud().selectBox,yp().arrowDropdownBtn,yp().fontSizeDropdownBtn,{[yp().inputDisabled]:a,[ud().disabled]:a}),disabled:a}),T.createElement(ue.TX,null,c(Ke.Z.fontSize)),T.createElement("div",null,(0,Ze.Z)({type:`caret-${i}`,style:{width:12,height:12,flexBasis:12},className:F()(ud().dropdownIcon,{[ud().isOpen]:s})}))))},xp=function(e){const{disabled:t=!1}=e;return T.createElement(rd.Z,{frameWindow:e.frameWindow,items:e.items,value:e.value,className:e.className,maxCols:1,isActive:!1,caretDirection:e.caretDirection,disabled:t,menuClassName:F()(e.menuClass,yp().dropdownMenu),ButtonComponent:Pp(e.onSelect),ItemComponent:Sp,onSelect:(t,n)=>{e.onSelect({selectedItem:n,preventFocusShift:!1})},menuPositionOffsets:{top:-1}})},Dp=T.forwardRef((function(e,t){var o,r;const{caretDirection:i,onChange:a,frameWindow:s,intl:l,styles:c,fontSizes:u,fontFamilyItems:d,isBold:p=!1,isItalic:f=!1,isUnderline:h=!1,currentFontFamily:m,currentFontSize:g,currentHorizontalAlign:v,currentVerticalAlign:y,showAlignmentOptions:b,showFontStyleOptions:w,disabled:S=!1,showUnderline:E=!1}=e,{formatMessage:P}=l,x=T.useCallback(Ap(150,i,c,S,c.fontFamily),[i,c,S]),D=u.map((e=>({label:e.toString(),value:e.toString(),disabled:!1}))),C=d.map((e=>{var t,n;return T.createElement("option",{key:null!==(t=e.value)&&void 0!==t?t:e.label,value:null!==(n=e.value)&&void 0!==n?n:e.label,disabled:e.disabled},e.label)}));return T.createElement("div",{className:c.controlWrapper},T.createElement("div",{className:F()(c.control,c.textFormatControls)},T.createElement("div",{className:F()(c.fontFamilyNativeFlexbox)},T.createElement("div",{className:c.nativeDropdown},T.createElement("select",{"aria-label":P(Ke.Z.font),className:"PSPDFKit-Input-Dropdown-Select",value:null!=m?m:"",onChange:e=>{void 0!==e.target.value&&a({modification:{font:e.target.value}})},ref:t,disabled:S},C,d.some((e=>e.value===m))?null:T.createElement("option",{style:{display:"none"}},m)))),T.createElement(rd.Z,{items:d,value:m?{label:m,value:m}:null,accessibilityLabel:P(Ke.Z.font),discreteDropdown:!1,isActive:!1,caretDirection:i,className:F()(e.fontFamilyClasses,c.fontFamilySelect),menuClassName:F()(c.dropdownMenu,e.fontFamilyMenuClasses),ButtonComponent:x,ItemComponent:kp,onSelect:(e,t)=>{null!=t.value&&a({modification:{font:t.value}})},frameWindow:s,disabled:S}),T.createElement(xp,{items:D,value:{label:g?g.toString():"",value:(null!=g?g:"").toString()||""},frameWindow:s,className:F()(c.fontSizeSelect,e.fontSizeClasses),menuClass:F()(e.fontSizeMenuClasses),caretDirection:i,disabled:S,onSelect:e=>{let{selectedItem:t,preventFocusShift:n}=e;null!=t.value&&a({modification:{fontSize:Number(t.value)},preventFocusShift:n})}}),w?T.createElement(T.Fragment,null,T.createElement(ue.zx,{className:F()(c.fontStyleBtn,c.fontStyleBtnBorderless,{[c.activeFontStyleBtn]:p}),style:{marginRight:8},title:P(Ke.Z.bold),onClick:()=>{a({modification:{bold:!p}})},disabled:S,"aria-pressed":p},T.createElement(Ye.Z,{src:n(99604)}),T.createElement(ue.TX,null,P(Ke.Z.bold))),T.createElement(ue.zx,{className:F()(c.fontStyleBtn,c.fontStyleBtnBorderless,{[c.activeFontStyleBtn]:f}),onClick:()=>{a({modification:{italic:!f}})},disabled:S,title:P(Ke.Z.italic),"aria-pressed":f},T.createElement(Ye.Z,{src:n(99082)}),T.createElement(ue.TX,null,P(Ke.Z.italic))),E&&T.createElement(ue.zx,{className:F()(c.fontStyleBtn,c.fontStyleBtnBorderless,{[c.activeFontStyleBtn]:h}),style:{marginLeft:8},onClick:()=>{a({modification:{underline:!h}})},disabled:S,title:P(Ke.Z.underline),"aria-pressed":h},T.createElement(Ye.Z,{src:n(80394)}),T.createElement(ue.TX,null,P(Ke.Z.underline)))):null,b?T.createElement(T.Fragment,null,T.createElement("span",{className:c.radioGroupWrapper},T.createElement(ue.Ee,{inputName:"horizontalAlign",label:P(Ke.Z.horizontalAlignment),selectedOption:null!=v?v:"",labelClassNamePrefix:null!==(o=e.horizontalAlignClasses)&&void 0!==o?o:"",options:["left","center","right"].map((e=>({value:e,label:P(Ke.Z[`alignment${(0,qn.kC)(e)}`]),iconPath:n(58758)(`./text-align-horizontal-${e}.svg`)}))),onChange:e=>a({modification:{horizontalAlign:e}}),disabled:S})),T.createElement(ue.Ee,{inputName:"verticalAlign",label:P(Ke.Z.verticalAlignment),selectedOption:null!=y?y:"",labelClassNamePrefix:null!==(r=e.verticalAlignClasses)&&void 0!==r?r:"",options:["top","center","bottom"].map((e=>({value:e,label:P(Ke.Z["center"===e?"alignmentCenter":e]),iconPath:n(29712)(`./text-align-vertical-${e}.svg`)}))),onChange:e=>a({modification:{verticalAlign:e}}),disabled:S})):null))})),Cp=T.forwardRef(((e,t)=>{var n;let{item:o,state:r,fontFamily:i,itemComponentProps:a,width:s}=e;return T.createElement(_e.Z,(0,De.Z)({is:"div",className:F()(ud().item,{[ud().isSelected]:(null==r?void 0:r.includes("selected"))||(null==r?void 0:r.includes("focused"))}),name:null!==(n=null==o?void 0:o.value)&&void 0!==n?n:null==o?void 0:o.label,style:{fontFamily:i,width:s},ref:t},a),null==o?void 0:o.label)})),kp=e=>{let{item:t,state:n,itemComponentProps:o}=e;return T.createElement(Cp,{item:t,state:n,fontFamily:null==t?void 0:t.label,itemComponentProps:o})},Ap=(e,t,n,o,r)=>i=>{var a;let{btnComponentProps:s,selectedItem:l}=i;return T.createElement("button",(0,De.Z)({},s,{ref:s.ref,key:null!==(a=null==l?void 0:l.value)&&void 0!==a?a:null==l?void 0:l.label,className:F()("PSPDFKit-Input-Dropdown-Button",ud().selectBox,n.selectBox,{[ad().isDisabled]:o,[n.controlIsDisabled]:o,[ud().disabled]:o}),style:{width:e},disabled:o}),T.createElement("span",{className:r},null==l?void 0:l.label),T.createElement("div",null,(0,Ze.Z)({type:`caret-${t}`,style:{width:12,height:12,flexBasis:12},className:F()(ud().dropdownIcon)})))};var Op=n(56939),Tp=n.n(Op);function Ip(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Fp(e){for(var t=1;te-t)):d,h=mp.vt.toArray().map((e=>({label:e,value:e}))),m=h.concat(c.toArray().map((e=>({label:e,value:e}))).filter((e=>!h.some((t=>t.value===e.value)))));if(!mp.vt.has(n.font)&&!c.has(n.font)&&""!==n.font.trim()){const e=u(Ke.Z.fontFamilyUnsupported,{arg0:n.font});m.push({label:e,value:e,disabled:!0})}return T.createElement(Dp,{onChange:e=>{let{modification:t}=e;return r(t)},caretDirection:o,frameWindow:i,ref:t,intl:a,styles:Fp(Fp({},s),{},{fontStyleBtn:Tp().fontStyleBtn,fontStyleBtnBorderless:Tp().fontStyleBtnBorderless,activeFontStyleBtn:Tp().activeFontStyleBtn}),fontSizes:f,fontFamilyItems:m,showAlignmentOptions:!0,showFontStyleOptions:l,showUnderline:l,isBold:e.selectedIsBold,isItalic:e.selectedIsItalic,isUnderline:e.selectedIsUnderline,currentFontFamily:n.font,currentFontSize:p,currentHorizontalAlign:n.horizontalAlign,currentVerticalAlign:n.verticalAlign,fontFamilyClasses:"PSPDFKit-Text-Annotation-Toolbar-Font-Family",fontSizeClasses:"PSPDFKit-Text-Annotation-Toolbar-Font-Size",horizontalAlignClasses:"PSPDFKit-Text-Annotation-Toolbar-Alignment",verticalAlignClasses:"PSPDFKit-Text-Annotation-Toolbar-Vertical-Alignment",inlineStyleClasses:"PSPDFKit-Text-Annotation-Toolbar-Inline-Style"})}));function _p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Rp(e){for(var t=1;t{if(!e.canEditAnnotationCP)return;let n=e.annotation.merge(t);if((0,J.Vc)(n))e.updateAnnotation(t);else if(e.selectedAnnotationPageSize&&(t.fontSize||t.font||t.text&&"xhtml"===t.text.format)){const{rotation:o}=n;let r=(0,ot.h4)(n);const i=r.boundingBox.getCenter();r=(0,vt.Zv)(r.set("rotation",0),e.selectedAnnotationPageSize,e.zoomLevel),r=(0,vt.XA)(r,e.zoomLevel);const a=new j.E9({x:r.boundingBox.getCenter().x-i.x,y:r.boundingBox.getCenter().y-i.y}),s=a.rotate(o),l=new j.E9({x:s.x-a.x,y:s.y-a.y});r=r.update("boundingBox",(e=>null==e?void 0:e.translate(l))),n=(0,ot.az)(r.set("rotation",o)),e.updateAnnotation(Bp(Bp({},t),{},{isFitting:n.isFitting,boundingBox:n.boundingBox}))}else{const{isFitting:o}=(0,vt.XA)((0,ot.h4)(n).set("rotation",0),e.zoomLevel);e.updateAnnotation(Bp(Bp({},t),{},{isFitting:o}))}})),{activeTextStyle:i,updateAnnotationOrEditorText:s,selectedIsUnderline:l,selectedIsBold:c,selectedIsItalic:u}=function(e){let{editor:t,frameWindow:n,updateAnnotation:o,text:r,isRichText:i}=e;const[s,l]=(0,T.useState)(null),[c,u]=(0,T.useState)(!1),[d,p]=(0,T.useState)(!1),[f,h]=(0,T.useState)(!1),m=(0,T.useCallback)((()=>{t&&(u(ue.ri.isMarkActive(t,"bold")),p(ue.ri.isMarkActive(t,"italic")),h(ue.ri.isMarkActive(t,"underline")))}),[t]),g=(0,T.useCallback)((()=>{if(!t||!i)return;const e=(0,qn.BK)(ue.ri.getSelectedNodesColor(t,"fontColor")),n=(0,qn.BK)(ue.ri.getSelectedNodesColor(t,"backgroundColor"));l({fontColor:e?j.Il.fromHex(e):Np,backgroundColor:n?j.Il.fromHex(n):null}),m()}),[t,m,i]);t&&(t.onSelectionChange=g,t.onValueChange=()=>{m(),g()}),(0,T.useEffect)((()=>{var e;if(i&&t)return null===(e=n.document)||void 0===e||e.addEventListener("keydown",o),()=>{var e;null===(e=n.document)||void 0===e||e.removeEventListener("keydown",o)};function o(e){t&&(!e.ctrlKey&&!e.metaKey||"u"!==e.key&&"i"!==e.key&&"b"!==e.key||m())}}),[t,n,i,m]);const v=(0,T.useCallback)((e=>{const i=new Map(Object.entries(e)),s=i.has("fontColor")||i.has("backgroundColor"),c=i.has("bold")||i.has("italic")||i.has("underline");if(s){const i=e.fontColor?"fontColor":"backgroundColor";var d,f;if(ue.ri.isRangeSelected(t))ue.ri.applyStyle(t,i,!e[i]||null!==(d=e[i])&&void 0!==d&&d.equals(j.Il.TRANSPARENT)?null:e[i].toHex()),o({text:{format:"xhtml",value:ue.ri.serialize(null==t?void 0:t.children[0])}}),l((t=>Rp(Rp({},t),{},{[i]:e[i]}))),null===(f=n.getSelection())||void 0===f||f.removeAllRanges();else if("fontColor"===i){const t=ue.ri.setStyleOrToggleFormat(r,i,e[i].toHex());o({text:{format:"xhtml",value:t},borderColor:e[i]})}else l({backgroundColor:e.backgroundColor}),o(e)}else if(c){const n=Object.keys(e)[0];if((0,a.kG)(t,"Editor is not defined"),ue.ri.isRangeSelected(t)){switch(ue.ri.toggleMark(t,n),n){case"bold":u(e.bold);break;case"italic":p(e.italic);break;case"underline":h(e.underline)}o({text:{format:"xhtml",value:ue.ri.serialize(null==t?void 0:t.children[0])}})}else{const e=ue.ri.setStyleOrToggleFormat(r,n);o({text:{format:"xhtml",value:e}})}}else o(e)}),[o,r,t,n]);if(i){if(t)return{activeTextStyle:s,updateAnnotationOrEditorText:v,selectedIsBold:c,selectedIsItalic:d,selectedIsUnderline:f};{const{fontColor:e,isUnderlined:t,isItalic:n,isBold:o}=ue.ri.getComputedStyleAll(r);return{activeTextStyle:{fontColor:e?j.Il.fromHex(e):void 0,backgroundColor:null==s?void 0:s.backgroundColor},updateAnnotationOrEditorText:v,selectedIsBold:o,selectedIsItalic:n,selectedIsUnderline:t}}}return{updateAnnotationOrEditorText:o}}({editor:e.richTextEditorRef,frameWindow:e.frameWindow,updateAnnotation:r,text:(null===(t=e.annotation.text)||void 0===t?void 0:t.value)||"",isRichText:o}),{annotation:d,position:p,intl:f,expandedGroup:h,btnFocusRefIfFocusedGroup:m,canDeleteSelectedAnnotationCP:g,keepSelectedTool:v,interactionMode:y,annotationToolbarColorPresets:b}=e,{formatMessage:w}=f,S="bottom"===p?"up":"down",E={onChange:s,annotation:d,styles:Bd(),intl:f,caretDirection:S},P=v&&y===x.A.TEXT,D=[{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(Fd.Z,(0,De.Z)({},E,{record:o?Bp(Bp({},i),{},{opacity:d.opacity}):d,colorProperty:"fontColor",className:"PSPDFKit-Text-Annotation-Toolbar-Font-Color",removeTransparent:!0,frameWindow:e.frameWindow,accessibilityLabel:w(Ke.Z.color),innerRef:m("color"),annotationToolbarColorPresets:b})))),title:w(Ke.Z.color),type:"color",group:"color",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-TextColor")},{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(Fd.Z,(0,De.Z)({},E,{record:o?Bp(Bp({},i),{},{opacity:d.opacity},!e.richTextEditorRef&&{backgroundColor:d.backgroundColor}):d,colorProperty:"backgroundColor",className:"PSPDFKit-Text-Annotation-Toolbar-Background-Color",frameWindow:e.frameWindow,accessibilityLabel:w(Ke.Z.fillColor),innerRef:m("backgroundColor"),annotationToolbarColorPresets:b})))),title:w(Ke.Z.fillColor),type:"background-color",group:"backgroundColor",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-FillColor")},{node:T.createElement(Td.OpacityComponent,{intl:e.intl,type:"Text",styles:Bd(),annotation:d,updateAnnotation:r,caretDirection:S,innerRef:m("opacity")}),title:w(Ke.Z.opacity),type:"opacity",group:"opacity",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:T.createElement(Mp,(0,De.Z)({},E,{frameWindow:e.frameWindow,ref:m("font"),selectedIsBold:c,selectedIsItalic:u,selectedIsUnderline:l,showInlineFontStyles:o,customFontsReadableNames:e.customFontsReadableNames})),title:w(Ke.Z.font),type:"font",group:"font",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Font")},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(e.annotationToolbarItems),title:w(Ke.Z.delete),className:F()("PSPDFKit-Text-Annotation-Toolbar-Button-Delete",Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!g}),onPress:g?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:P||null===e.annotation.pageIndex||!!h,disabled:!e.canDeleteSelectedAnnotationCP}],C={className:Bd().button,presentational:e.viewportWidth>Je.GI,disabled:!!h};return T.createElement("div",{ref:n,className:F()("PSPDFKit-Text-Annotation-Toolbar",Bd().content)},T.createElement(qd,{annotationToolbarItems:e.annotationToolbarItems,builtInItems:D,btnFocusRefIfFocusedItem:e.btnFocusRefIfFocusedItem,onGroupExpansion:e.onGroupExpansion,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:e.expandedGroup,builtInToolbarProps:C,onGroupTransitionEnded:e.onGroupTransitionEnded,position:e.position,typeMap:{color:"text-color","background-color":"fill-color"}}))}));const zp=jp,Kp=T.forwardRef((function(e,t){const{annotation:n,updateAnnotation:o,intl:r}=e,{formatMessage:i}=r,[a,s]=T.useState(!1),l=T.useCallback((e=>{"Tab"===e.key&&s(!0)}),[s]),c=T.useCallback((()=>{s(!1)}),[s]);return T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:`${Bd().control} PSPDFKit-Note-Annotation-Toolbar-Icons`,role:"radiogroup","aria-label":i(Ke.Z.icon),onKeyUp:l,onPointerUp:c,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||s(!1)}},Object.keys(en.Zi).map(((e,r)=>{const s=en.Y4[e],l=(0,$.Oe)(s),c=n.icon===e,u=F()(ld().root,Bd().noteIconLabel,Bd().button,Bd().icon,"PSPDFKit-Tool-Button",c&&"PSPDFKit-Tool-Button-active",`PSPDFKit-Note-Annotation-Icon-${l}`,{[Bd().isActive]:c,[Bd().focusRing]:c&&a});return T.createElement("label",{"aria-label":i(Zp[`icon${(0,qn.kC)(s)}`]),className:u,key:`NoteAnnotationToolbarIcon-${e}`},T.createElement(Ze.Z,{type:`note/toolbar/${s}`}),T.createElement(ue.TX,{tag:"input",type:"radio",name:Bd().radioInput,value:r,checked:c,onChange:t=>{t.target.checked&&o({icon:e})},ref:c&&t?t:void 0}))}))))})),Zp=(0,Re.vU)({iconRightPointer:{id:"iconRightPointer",defaultMessage:"Right Pointer",description:"Icon Right Pointer"},iconRightArrow:{id:"iconRightArrow",defaultMessage:"Right Arrow",description:"Icon Right Arrow"},iconCheck:{id:"iconCheck",defaultMessage:"Checkmark",description:"Icon Checkmark"},iconCircle:{id:"iconCircle",defaultMessage:"Circle",description:"Icon Circle"},iconCross:{id:"iconCross",defaultMessage:"Cross",description:"Icon Cross"},iconInsert:{id:"iconInsert",defaultMessage:"Insert Text",description:"Icon Insert Text"},iconNewParagraph:{id:"iconNewParagraph",defaultMessage:"New Paragraph",description:"Icon New Paragraph"},iconNote:{id:"iconNote",defaultMessage:"Text Note",description:"Icon Text Note"},iconComment:{id:"iconComment",defaultMessage:"Comment",description:"Icon Comment"},iconParagraph:{id:"iconParagraph",defaultMessage:"Paragraph",description:"Icon Paragraph"},iconHelp:{id:"iconHelp",defaultMessage:"Help",description:"Icon Help"},iconStar:{id:"iconStar",defaultMessage:"Star",description:"Icon Star"},iconKey:{id:"iconKey",defaultMessage:"Key",description:"Icon Key"}}),Up=T.memo((function(e){let{annotation:t,intl:n,updateAnnotation:o,isAnnotationReadOnly:r,deleteAnnotation:i,position:a,viewportWidth:s,expandedGroup:l,btnFocusRefIfFocusedGroup:c,btnFocusRefIfFocusedItem:u,canEditAnnotationCP:d,canDeleteSelectedAnnotationCP:p,keepSelectedTool:f,interactionMode:h,annotationToolbarItems:m,onGroupExpansion:g,hasDesktopLayout:v,onGroupTransitionEnded:y}=e;const{formatMessage:b}=n,w=mt.Ei.NOTE_COLOR_PRESETS,S=r(t)||t instanceof li.FN,E=null!==t.pageIndex&&!r(t),P=f&&h===x.A.NOTE,D=[{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(sp,{className:"PSPDFKit-Note-Annotation-Toolbar-Color",accessibilityLabel:b(Ke.Z.color),colorPresets:w,activeColor:t.color,onClick:e=>o({color:e}),innerRef:c("color")}))),title:b(Ke.Z.color),className:`${Bd().formGroup} PSPDFKit-Toolbox PSPDFKit-Toolbox-FillColor`,hidden:S,disabled:!d,onPress:()=>{},type:"color",group:"color",hideSeparator:!0},{node:T.createElement(Kp,{annotation:t,updateAnnotation:o,intl:n,ref:c("note")}),title:b(Ke.Z.icon),hidden:S,onPress:()=>{},disabled:!d,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-NoteIcon"),type:"note-icon",group:"note"},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(m),title:b(Ke.Z.delete),className:F()("PSPDFKit-Note-Annotation-Toolbar-Button-Delete",Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!p}),onPress:p?()=>i():()=>{}}),disabled:!p,hidden:P||!(E&&"note"!==l&&"color"!==l),type:"delete",onPress:()=>{},className:""}];return T.createElement("div",{className:F()("PSPDFKit-Note-Annotation-Toolbar",Bd().content)},T.createElement(qd,{annotationToolbarItems:m,builtInItems:D,btnFocusRefIfFocusedItem:u,onGroupExpansion:g,builtInToolbarProps:e=>({className:F()(Bd().button,{[Bd().iconOnlyMobile]:"note-icon"===e.type}),presentational:s>Je.GI,disabled:!!l}),hasDesktopLayout:v,expandedGroup:l,onGroupTransitionEnded:y,position:a,typeMap:{"note-icon":"note",color:"fill-color"}}))}));const Vp=Up,Gp=["boundingBox"],Wp=T.memo((function(e){const t=(0,fi.R9)((t=>{const{annotation:n,isEditing:o,dispatch:i,canEditAnnotationCP:a}=e;if(a)if(n.lines.size>0&&o){const{boundingBox:e}=t,n=(0,r.Z)(t,Gp);i((0,Qt.gX)(n)),i((0,En.P4)())}else t.lineWidth&&n.lines.size>0&&(t.boundingBox=n.boundingBox.grow((t.lineWidth-n.lineWidth)/2)),e.updateAnnotation(t)})),{annotation:n,intl:o,position:i,isEditing:a,expandedGroup:s,canDeleteSelectedAnnotationCP:l,btnFocusRefIfFocusedGroup:c,lastToolbarActionUsedKeyboard:u,annotationToolbarItems:d,btnFocusRefIfFocusedItem:p}=e,{formatMessage:f}=o,h={onChange:t,record:n,styles:Bd(),intl:o,caretDirection:"bottom"===i?"up":"down",frameWindow:e.frameWindow},m=e.areOnlyElectronicSignaturesEnabled&&e.annotation.isSignature,g=[{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(Fd.Z,(0,De.Z)({},h,{className:"PSPDFKit-Ink-Annotation-Toolbar-Stroke-Color",colorProperty:"strokeColor",removeTransparent:!0,accessibilityLabel:f(Ke.Z.color),innerRef:c("color",!s),lastToolbarActionUsedKeyboard:u,annotationToolbarColorPresets:e.annotationToolbarColorPresets})))),title:f(Ke.Z.color),className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-StrokeColor"),hidden:m,disabled:!e.canEditAnnotationCP,type:"stroke-color",group:"color"},{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(Fd.Z,(0,De.Z)({},h,{accessibilityLabel:f(Ke.Z.fillColor),className:"PSPDFKit-Ink-Annotation-Toolbar-Background-Color",colorProperty:"backgroundColor",innerRef:c("backgroundColor"),annotationToolbarColorPresets:e.annotationToolbarColorPresets})))),title:f(Ke.Z.fillColor),className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-FillColor"),hidden:m,disabled:!e.canEditAnnotationCP,type:"fill-color",group:"backgroundColor"},{node:T.createElement(Td.OpacityComponent,{intl:e.intl,type:"Ink",styles:Bd(),annotation:n,updateAnnotation:t,caretDirection:"bottom"===i?"up":"down",innerRef:c("opacity")}),title:f(Ke.Z.opacity),className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity"),hidden:m,disabled:!e.canEditAnnotationCP,type:"opacity",group:"opacity"},{node:T.createElement(Td.StrokeWidthComponent,{intl:e.intl,type:"Ink",styles:Bd(),annotation:n,updateAnnotation:t,caretDirection:"bottom"===i?"up":"down",accessibilityLabel:f(Ke.Z.thickness),ref:c("lineWidth")}),title:f(Ke.Z.thickness),className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth"),hidden:m,disabled:!e.canEditAnnotationCP,type:"line-width",group:"lineWidth"},{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(cp,{value:n.blendMode,className:"PSPDFKit-Ink-Annotation-Toolbar-Blend-Mode",onChange:e=>t({blendMode:e}),caretDirection:"bottom"===i?"up":"down",frameWindow:e.frameWindow,ref:c("blendMode")}))),title:f(Ke.Z.blendMode),className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-BlendMode"),hidden:m,disabled:!e.canEditAnnotationCP,type:"blend-mode",group:"blendMode"},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(d),title:f(Ke.Z.delete),className:F()("PSPDFKit-Ink-Annotation-Toolbar-Button-Delete",Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!l}),onPress:l?()=>e.deleteAnnotation():()=>{}}),disabled:!l,hidden:!(null!=e.annotation.pageIndex&&!a),type:"delete"},{node:T.createElement(jd,{intl:o,isEditing:a,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),hidden:e.areOnlyElectronicSignaturesEnabled||!e.showAnnotationNotes||a,disabled:!e.canEditAnnotationCP,type:"annotation-note"}],v={className:Bd().button,presentational:e.viewportWidth>Je.GI,disabled:!!s};return T.createElement("div",{className:F()("PSPDFKit-Ink-Annotation-Toolbar",Bd().content)},T.createElement(qd,{annotationToolbarItems:d,builtInItems:g,btnFocusRefIfFocusedItem:p,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:v,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:s,onGroupTransitionEnded:e.onGroupTransitionEnded,position:i}))}));const qp=Wp;var Hp=n(34855),$p=n(63564);const Yp=function(e){const{intl:t,position:n,annotation:o,expandedGroup:r,btnFocusRefIfFocusedItem:i,annotationToolbarItems:a,hasDesktopLayout:s,btnFocusRefIfFocusedGroup:l,lastToolbarActionUsedKeyboard:c,name:u,canDeleteSelectedAnnotationCP:d}=e,p=(0,fi.R9)((t=>{const{annotation:n,canEditAnnotationCP:o}=e;o&&(t.strokeWidth&&(t.boundingBox=n.boundingBox.grow((t.strokeWidth-n.strokeWidth)/2)),e.updateAnnotation(t))})),f=o instanceof j.b3||o instanceof j.Xs?e.updateAnnotation:p,h=o instanceof j.o9||o instanceof j.om,{formatMessage:m}=t,g={updateAnnotation:f,annotation:o,styles:Bd(),intl:t,caretDirection:"bottom"===n?"up":"down"},v=[{node:T.createElement(Fd.Z,(0,De.Z)({},g,{record:e.annotation,colorProperty:"strokeColor",onChange:e.updateAnnotation,className:`PSPDFKit-${u}-Annotation-Toolbar-Stroke-Color`,removeTransparent:!0,frameWindow:e.frameWindow,accessibilityLabel:m(Ke.Z.color),innerRef:l("color",!r),lastToolbarActionUsedKeyboard:c,annotationToolbarColorPresets:e.annotationToolbarColorPresets})),title:m(Ke.Z.color),group:"color",type:"stroke-color",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox",{"PSPDFKit-Toolbox-BorderColor":!h,"PSPDFKit-Toolbox-StrokeColor":h})},{node:T.createElement(Fd.Z,(0,De.Z)({},g,{record:o,colorProperty:"fillColor",onChange:e.updateAnnotation,className:`PSPDFKit-${u}-Annotation-Toolbar-Fill-Color`,frameWindow:e.frameWindow,accessibilityLabel:m(Ke.Z.fillColor),innerRef:l("fillColor"),annotationToolbarColorPresets:e.annotationToolbarColorPresets})),title:m(Ke.Z.fillColor),group:"fillColor",type:"fill-color",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-FillColor")},{node:T.createElement(Td.OpacityComponent,(0,De.Z)({},g,{type:u,innerRef:l("opacity")})),title:m(Ke.Z.opacity),group:"opacity",type:"opacity",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:T.createElement(Td.StrokeWidthComponent,(0,De.Z)({},g,{type:u,accessibilityLabel:m(Ke.Z.thickness),ref:l("line-width")})),title:m(Ke.Z.thickness),group:"line-width",type:"line-width",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth")},...o instanceof j.o9||o instanceof j.om?[{node:T.createElement(Td.LineCapsDashArrayComponent,(0,De.Z)({},g,{frameWindow:e.frameWindow,innerRef:l("linecaps-dasharray")})),title:m(Ke.Z["linecaps-dasharray"]),group:"linecaps-dasharray",type:"linecaps-dasharray",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineCaps-DashArray")}]:[{node:T.createElement(Td.LineStyleComponent,(0,De.Z)({},g,{frameWindow:e.frameWindow,innerRef:l("linestyle")})),title:m(Ke.Z.linestyle),group:"linestyle",type:"line-style",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineStyle")}],{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(a),title:m(Ke.Z.delete),className:F()(`PSPDFKit-${u}-Annotation-Toolbar-Button-Delete`,Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!d}),onPress:d?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex||!!r},{node:T.createElement(jd,{intl:e.intl,isEditing:e.isEditing,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP}),type:"annotation-note",hidden:!e.showAnnotationNotes||e.isEditing}],y={className:Bd().button,presentational:e.viewportWidth>Je.GI,disabled:!!r},b={"line-style":"linestyle"};return o instanceof j.o9||o instanceof j.om||(b["stroke-color"]="border-color"),T.createElement("div",{className:F()(`PSPDFKit-${u}-Annotation-Toolbar`,Bd().content)},T.createElement(qd,{annotationToolbarItems:a,builtInItems:v,btnFocusRefIfFocusedItem:i,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:y,hasDesktopLayout:s,expandedGroup:r,onGroupTransitionEnded:e.onGroupTransitionEnded,position:n,typeMap:b}))},Xp=T.memo((function(e){const{formatMessage:t}=e.intl,n=[{node:T.createElement(Id.Z,{type:"widget_ccw",title:t(Ke.Z.rotateCounterclockwise),className:`PSPDFKit-Widget-Annotation-Toolbar-Button-Rotate PSPDFKit-Widget-Annotation-Toolbar-Button-Rotate-Counterclockwise ${Bd().button} ${Bd().rotateButton}`,onPress:()=>{e.selectedAnnotationPageSize&&e.updateAnnotation((0,J.eJ)(e.annotation,e.selectedAnnotationPageSize,J.z1.COUNTERCLOCKWISE))}}),type:"counterclockwise-rotation",disabled:!e.canEditAnnotationCP},{node:T.createElement(Id.Z,{type:"widget_cw",title:t(Ke.Z.rotateClockwise),className:`PSPDFKit-Widget-Annotation-Toolbar-Button-Rotate PSPDFKit-Widget-Toolbar-Button-Rotate-Clockwise ${Bd().button} ${Bd().rotateButton}`,onPress:()=>{e.selectedAnnotationPageSize&&e.updateAnnotation((0,J.eJ)(e.annotation,e.selectedAnnotationPageSize,J.z1.CLOCKWISE))}}),type:"clockwise-rotation",disabled:!e.canEditAnnotationCP},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(e.annotationToolbarItems),title:t(Ke.Z.delete),className:F()("PSPDFKit-Widget-Annotation-Toolbar-Button-Delete",Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!e.canDeleteSelectedAnnotationCP}),onPress:e.canDeleteSelectedAnnotationCP?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex}];return T.createElement("div",{className:`PSPDFKit-Widget-Annotation-Toolbar ${Bd().content}`},T.createElement(qd,{annotationToolbarItems:e.annotationToolbarItems,builtInItems:n,btnFocusRefIfFocusedItem:e.btnFocusRefIfFocusedItem,onGroupExpansion:e.onGroupExpansion,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:e.expandedGroup,onGroupTransitionEnded:e.onGroupTransitionEnded,position:e.position}))}));const Jp=T.memo((function(e){const t=(0,Re.YB)(),n=(0,fi.R9)((t=>{const{canEditAnnotationCP:n}=e;n&&e.updateAnnotation(t)})),{annotation:o,position:r,expandedGroup:i,canDeleteSelectedAnnotationCP:a,btnFocusRefIfFocusedGroup:s,annotationToolbarItems:l,btnFocusRefIfFocusedItem:c,lastToolbarActionUsedKeyboard:u}=e,d={onChange:n,record:o,styles:Bd(),intl:t,caretDirection:"bottom"===r?"up":"down",frameWindow:e.frameWindow},p=e.annotation.isSignature,f=[{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(Fd.Z,(0,De.Z)({},d,{className:"PSPDFKit-Link-Annotation-Toolbar-Border-Color",colorProperty:"borderColor",accessibilityLabel:t.formatMessage(Ke.Z.color),innerRef:s("color",!i),lastToolbarActionUsedKeyboard:u,annotationToolbarColorPresets:e.annotationToolbarColorPresets})))),title:t.formatMessage(Ke.Z.borderColor),className:F()(Bd().formGroup,"PSPDFKit-Toolbox","PSPDFKit-Toolbox-BorderColor"),hidden:p,disabled:!e.canEditAnnotationCP,type:"stroke-color",group:"color"},{node:T.createElement(Td.OpacityComponent,{intl:e.intl,type:"Link",styles:Bd(),annotation:o,updateAnnotation:n,caretDirection:"bottom"===r?"up":"down",innerRef:s("opacity")}),title:t.formatMessage(Ke.Z.opacity),className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity"),hidden:p,disabled:!e.canEditAnnotationCP,type:"opacity",group:"opacity"},{node:T.createElement(Td.StrokeWidthComponent,{intl:e.intl,type:"Link",styles:Bd(),annotation:o,updateAnnotation:n,caretDirection:"bottom"===r?"up":"down",accessibilityLabel:t.formatMessage(Ke.Z.thickness),ref:s("lineWidth")}),title:t.formatMessage(Ke.Z.thickness),className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth"),hidden:p,disabled:!e.canEditAnnotationCP,type:"line-width",group:"lineWidth"},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(l),title:t.formatMessage(Ke.Z.delete),className:F()("PSPDFKit-Link-Annotation-Toolbar-Button-Delete",Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!a}),onPress:a?()=>e.deleteAnnotation():()=>{}}),disabled:!a,hidden:null===e.annotation.pageIndex||!!i,type:"delete"}],h={className:Bd().button,presentational:e.viewportWidth>Je.GI,disabled:!!i};return T.createElement("div",{className:F()("PSPDFKit-Link-Annotation-Toolbar",Bd().content)},T.createElement(qd,{annotationToolbarItems:l,builtInItems:f,btnFocusRefIfFocusedItem:c,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:h,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:i,onGroupTransitionEnded:e.onGroupTransitionEnded,position:r}))}));const Qp=Jp;var ef=n(82405),tf=n(9599),nf=n(68073),of=n.n(nf),rf=n(94505);const af=function(e){const{intl:t,position:n,annotation:o,expandedGroup:r,btnFocusRefIfFocusedItem:i,annotationToolbarItems:a,hasDesktopLayout:s,btnFocusRefIfFocusedGroup:l,lastToolbarActionUsedKeyboard:c,canDeleteSelectedAnnotationCP:u,selectedAnnotations:d}=e,p=(0,A.I0)(),f=(0,A.v9)((e=>e.secondaryMeasurementUnit)),h=T.useMemo((()=>e.selectedAnnotations&&e.selectedAnnotations.size>1),[e.selectedAnnotations]),m=T.useMemo((()=>!!d&&(0,G.xA)(d)),[d]),g=T.useMemo((()=>(0,G.bs)(o)),[o]),v=(0,fi.R9)((t=>{const{annotation:n,canEditAnnotationCP:o}=e;if(o){if(t.strokeWidth){if(h&&d){const o=[];return d.forEach((e=>{o.push({boundingBox:e.boundingBox.grow((t.strokeWidth-n.strokeWidth)/2),strokeWidth:t.strokeWidth})})),void e.updateAnnotation(o)}t.boundingBox=n.boundingBox.grow((t.strokeWidth-n.strokeWidth)/2)}e.updateAnnotation(t)}})),y=o instanceof j.b3||o instanceof j.Xs?e.updateAnnotation:v,b=o instanceof j.o9||o instanceof j.om,{formatMessage:w}=t,S={updateAnnotation:y,annotation:o,styles:Bd(),intl:t,caretDirection:"bottom"===n?"up":"down"},E=G.Di.find((e=>e.title===g)),P=T.useMemo((()=>(0,G.Rw)(o,f)),[o,f]),x=[{node:T.createElement(Id.Z,{type:"back",title:w(Ke.Z.back),className:F()(`PSPDFKit-${g}-Annotation-Toolbar-Button-Back`,Bd().button,Bd().measurementBackButton),onPress:()=>{(0,A.dC)((()=>{p((0,je.fz)()),p((0,Qt.Ds)("measurement")),p((0,En.BR)())}))}}),type:"back"},{node:m?T.createElement(rf.Z,{key:w(Ke.Z.mixedMeasurements),type:"measure",title:w(Ke.Z.mixedMeasurements),className:F()(E.className,of().measurementValue,Bd().measurementToolbarButton,"PSPDFKit-Annotation-Toolbar-Measurement")},o&&null!=o&&o.note?T.createElement(T.Fragment,null,w(Ke.Z.mixedMeasurements)):null):T.createElement(rf.Z,{key:E.interactionMode,type:E.icon,title:w(Ke.Z[E.localeKey]),className:F()(E.className,of().measurementValue,Bd().measurementToolbarButton,"PSPDFKit-Annotation-Toolbar-Measurement")},o&&null!=o&&o.note?h?T.createElement(T.Fragment,null,E.title):T.createElement(T.Fragment,null,E.title,":"," ",T.createElement("b",null,o.note,P?` (${P.label})`:"")):null),title:w(Ke.Z[E.localeKey]),type:"measurementType",className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-MeasurementType")},{node:T.createElement(T.Fragment,null,T.createElement(rf.Z,{key:"scale",type:"scale",title:w(Fu.sY.measurementScale),className:F()(Bd().measurementToolbarButton)}),T.createElement(tf.ZP,{frameWindow:e.frameWindow,selectedAnnotation:o,onAnnotationScaleUpdate:e.updateAnnotation,selectedAnnotations:e.selectedAnnotations})),title:w(Fu.sY.measurementScale),type:"measurementScale",className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-MeasurementScale")},{node:T.createElement(Fd.Z,(0,De.Z)({},S,{record:e.annotation,colorProperty:"strokeColor",onChange:e.updateAnnotation,className:`PSPDFKit-${g}-Annotation-Toolbar-Stroke-Color`,frameWindow:e.frameWindow,accessibilityLabel:w(Ke.Z.color),innerRef:l("color",!r),lastToolbarActionUsedKeyboard:c,annotationToolbarColorPresets:e.annotationToolbarColorPresets})),title:w(Ke.Z.color),group:"color",type:"stroke-color",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox",{"PSPDFKit-Toolbox-BorderColor":!b,"PSPDFKit-Toolbox-StrokeColor":b})},{node:T.createElement(Td.OpacityComponent,(0,De.Z)({},S,{type:g,innerRef:l("opacity")})),title:w(Ke.Z.opacity),group:"opacity",type:"opacity",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:T.createElement(Td.StrokeWidthComponent,(0,De.Z)({},S,{type:g,accessibilityLabel:w(Ke.Z.thickness),ref:l("line-width")})),title:w(Ke.Z.thickness),group:"line-width",type:"line-width",disabled:!e.canEditAnnotationCP,className:F()(Bd().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth")},{node:T.createElement(Id.Z,{type:"delete",icon:(0,Hd.KT)(a),title:w(Ke.Z.delete),className:F()(`PSPDFKit-${g}-Annotation-Toolbar-Button-Delete`,Bd().button,Bd().deleteButton,{[Bd().disabledButton]:!u}),onPress:u?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex||!!r},{node:T.createElement(jd,{intl:e.intl,isEditing:e.isEditing,showAnnotationNotes:e.showAnnotationNotes,hasAnnotationNote:e.hasAnnotationNote,isAnnotationNoteActive:e.isAnnotationNoteActive,onAnnotationNotePress:e.onAnnotationNotePress,disabled:!e.canEditAnnotationCP||h}),type:"annotation-note",hidden:!e.showAnnotationNotes||e.isEditing}],D={className:Bd().button,presentational:e.viewportWidth>Je.GI,disabled:!!r},C={"line-style":"linestyle"};return o instanceof j.o9||o instanceof j.om||(C["stroke-color"]="border-color"),T.createElement("div",{className:F()(`PSPDFKit-${g}-Annotation-Toolbar`,Bd().content,Bd().measurementToolbar)},T.createElement(qd,{annotationToolbarItems:a,builtInItems:x,btnFocusRefIfFocusedItem:i,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:D,hasDesktopLayout:s,expandedGroup:r,onGroupTransitionEnded:e.onGroupTransitionEnded,position:n,typeMap:C}))},sf=["text"];class lf extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"state",{showConfirmDelete:!1,expandedGroup:null,transitionFinished:!1,prevActiveGroup:null}),(0,o.Z)(this,"focusRef",T.createRef()),(0,o.Z)(this,"deleteAnnotation",(()=>{var e;const t=this.props.annotation,n=this.props.selectedAnnotations&&(null===(e=this.props.selectedAnnotations)||void 0===e?void 0:e.size)>1;t&&!n?this.props.dispatch((0,Qt.d8)((0,i.l4)([t.id]))):n&&this.props.selectedAnnotations&&this.props.dispatch((0,Qt.d8)(this.props.selectedAnnotations.map((e=>e.id))))})),(0,o.Z)(this,"handleEntered",(()=>{this.setState({transitionFinished:!0})})),(0,o.Z)(this,"handleGroupExpansion",(e=>{e?this.setState({prevActiveGroup:e,expandedGroup:e}):this.setState({expandedGroup:e,transitionFinished:!1})})),(0,o.Z)(this,"_handleKeyPress",(e=>{e.keyCode===Sr.zz&&this.state.expandedGroup&&this.handleGroupExpansion()})),(0,o.Z)(this,"updateAnnotation",((e,t,n)=>{if(!e||!this.props.canEditAnnotationCP)return;e=e.merge(t);const o={annotations:(0,i.aV)([e]),reason:u.f.PROPERTY_CHANGE};this.props.eventEmitter.emit("annotations.willChange",o),n&&this.props.dispatch((0,Qt.Ds)(n));const{text:a}=t,s=(0,r.Z)(t,sf);this.props.dispatch((0,Qt.gX)(s)),this.props.dispatch((0,Qt.FG)(e))})),(0,o.Z)(this,"updateSingleAnnotation",((e,t)=>{const n=this.props.annotation;this.updateAnnotation(n,e,t)})),(0,o.Z)(this,"updateAnnotations",((e,t)=>{const{selectedAnnotations:n}=this.props;n&&(null==n?void 0:n.size)>1&&(0,A.dC)((()=>{var n;null===(n=this.props.selectedAnnotations)||void 0===n||n.toList().forEach(((n,o)=>{Array.isArray(e)?this.updateAnnotation(n,e[o],t):this.updateAnnotation(n,e,t)}))}))})),(0,o.Z)(this,"onAnnotationNotePress",(()=>{const e=this.props.annotation;if(this.isActiveAnnotationNote())this.closeAnnotationNote();else if(e){const t=(0,li.Yu)(e);this.props.dispatch((0,je.mv)(t))}})),(0,o.Z)(this,"deleteAnnotationNote",(()=>{const e=this.props.annotation;e&&(this.props.dispatch((0,Qt.FG)(e.delete("note"))),this.closeAnnotationNote())})),(0,o.Z)(this,"closeAnnotationNote",(()=>{this.props.dispatch((0,je.mv)(null))})),(0,o.Z)(this,"_handleResize",(e=>{var t;this.props.dispatch((t=e.height,{type:te.A8G,height:t}))}))}isActiveAnnotationNote(){var e;const{activeAnnotationNote:t,annotation:n}=this.props;return Boolean(t&&n&&(null===(e=t.parentAnnotation)||void 0===e?void 0:e.id)===n.id)}defaultToolbarItems(){var e,t;const{annotation:n,annotationToolbarItems:o,viewportWidth:r}=this.props;if((0,a.kG)(n),!$p.qH.get(uf(n)))return(0,i.aV)();const s=r>Je.GI,l=null===(e=$p.qH.get(uf(n)))||void 0===e||null===(t=e.get(s?"desktop":"mobile"))||void 0===t?void 0:t.map((e=>({type:e})));if((0,a.kG)(l,`No default toolbar items found for annotation type: ${uf(n)}`),o){const e=o(n,{hasDesktopLayout:s,defaultAnnotationToolbarItems:l.toJS()});if(e)return e.forEach((e=>{(0,$p.gb)(e,uf(n))})),(0,i.aV)(e)}return l}renderContent(){var e,t=this;const{annotation:n,variantAnnotationPresetID:o,position:r,viewportWidth:i,frameWindow:s,intl:l,showAnnotationNotes:c,canEditAnnotationCP:u,canDeleteSelectedAnnotationCP:d,lastToolbarActionUsedKeyboard:p,interactionMode:f,keepSelectedTool:h,annotationToolbarColorPresets:m,richTextEditorRef:g,customFontsReadableNames:v,isCalibratingScale:y}=this.props;if(!n)return null;const b={deleteAnnotation:this.deleteAnnotation,updateAnnotation:this.props.selectedAnnotations&&(null===(e=this.props.selectedAnnotations)||void 0===e?void 0:e.size)>1?this.updateAnnotations:this.updateSingleAnnotation,intl:l,position:r,viewportWidth:i,onGroupTransitionEnded:this.handleEntered,onGroupExpansion:this.handleGroupExpansion,expandedGroup:this.state.expandedGroup,btnFocusRefIfFocusedGroup:function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,Hd.CN)(e,t.state.expandedGroup)||n&&null!==f&&i>Je.GI?t.focusRef:void 0},btnFocusRefIfFocusedItem:function(e,n){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,Hd.Kt)(e,n,t.state.prevActiveGroup)||o&&null!==f&&iJe.GI,customFontsReadableNames:this.props.customFontsReadableNames},w={onAnnotationNotePress:this.onAnnotationNotePress,showAnnotationNotes:c&&!n.isCommentThreadRoot,hasAnnotationNote:Boolean(n.note),isAnnotationNoteActive:this.isActiveAnnotationNote()};return n instanceof pe.Z?T.createElement(Jd,(0,De.Z)({},b,w,{annotation:n,isEditing:this.props.selectedAnnotationMode===Q.o.EDITING,dispatch:this.props.dispatch,keepSelectedTool:h})):n instanceof j.R1?T.createElement(Qp,(0,De.Z)({},b,w,{annotation:n})):n instanceof j.On?T.createElement(hp,(0,De.Z)({},b,w,{annotation:n,isEditing:this.props.selectedAnnotationMode===Q.o.EDITING,dispatch:this.props.dispatch,variantAnnotationPresetID:o})):n instanceof j.Zc?T.createElement(qp,(0,De.Z)({},b,w,{annotation:n,isEditing:this.props.selectedAnnotationMode===Q.o.EDITING,dispatch:this.props.dispatch,areOnlyElectronicSignaturesEnabled:this.props.areOnlyElectronicSignaturesEnabled})):n instanceof ef.Z&&n.isMeasurement()?y?null:T.createElement(af,(0,De.Z)({},b,w,{annotation:n,dispatch:this.props.dispatch,isEditing:this.props.selectedAnnotationMode===Q.o.EDITING,selectedAnnotations:this.props.selectedAnnotations})):n instanceof j.o9?T.createElement(Yp,(0,De.Z)({},b,w,{annotation:n,isEditing:this.props.selectedAnnotationMode===Q.o.EDITING,name:"Line"})):n instanceof j.b3?T.createElement(Yp,(0,De.Z)({},b,w,{annotation:n,isEditing:this.props.selectedAnnotationMode===Q.o.EDITING,name:"Rectangle"})):n instanceof j.Xs?T.createElement(Yp,(0,De.Z)({},b,w,{annotation:n,isEditing:this.props.selectedAnnotationMode===Q.o.EDITING,name:"Ellipse"})):n instanceof j.Hi?T.createElement(Yp,(0,De.Z)({},b,w,{annotation:n,isEditing:this.props.selectedAnnotationMode===Q.o.EDITING,name:"Polygon"})):n instanceof j.om?T.createElement(Yp,(0,De.Z)({},b,w,{annotation:n,isEditing:this.props.selectedAnnotationMode===Q.o.EDITING,name:"Polyline"})):n instanceof j.gd?T.createElement(zp,(0,De.Z)({},b,{annotation:n,richTextEditorRef:g,selectedAnnotationPageSize:this.props.selectedAnnotationPageSize,zoomLevel:this.props.zoomLevel||1,keepSelectedTool:h,interactionMode:f,customFontsReadableNames:v})):n instanceof j.Qi?T.createElement(Vp,(0,De.Z)({},b,{annotation:n,dispatch:this.props.dispatch,isAnnotationReadOnly:this.props.isAnnotationReadOnly,keepSelectedTool:h,interactionMode:f})):n instanceof j.sK?T.createElement(np,(0,De.Z)({},b,w,{annotation:n,areOnlyElectronicSignaturesEnabled:this.props.areOnlyElectronicSignaturesEnabled,selectedAnnotationPageSize:this.props.selectedAnnotationPageSize})):n instanceof j.GI?T.createElement(ep,(0,De.Z)({},b,w,{annotation:n})):n instanceof j.x_?T.createElement(Xp,(0,De.Z)({},b,{annotation:n,selectedAnnotationPageSize:this.props.selectedAnnotationPageSize})):n instanceof j.Jn?null:void(0,a.kG)(!1,"Annotation type not handled")}componentDidUpdate(e,t){const n=this.state.expandedGroup&&this.state.transitionFinished&&!t.transitionFinished,o=!this.state.expandedGroup&&t.expandedGroup&&this.state.prevActiveGroup;(n||o)&&this.focusRef.current&&this.focusRef.current.focus()}render(){return T.createElement("div",{className:F()("PSPDFKit-Annotation-Toolbar",Bd().root,{[Bd().stickToBottom]:"bottom"===this.props.position}),onKeyDown:this._handleKeyPress},T.createElement(Hp.Z,{onResize:this._handleResize}),this.renderContent())}}const cf=(0,Re.XN)(lf);function uf(e){var t;return"isMeasurement"in e&&null!==(t=e.isMeasurement)&&void 0!==t&&t.call(e)?"Measurement":$p.qH.get(e.constructor.readableName)?e.constructor.readableName:e instanceof j.On?j.On.readableName:e instanceof j.x_?j.x_.readableName:void new a.p2("AnnotationToolbarComponent: getReadableName: Annotation type not handled")}function df(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}const pf=T.memo((function(e){let{intl:t,dispatch:n,inkEraserCursorWidth:o,position:r,viewportWidth:i}=e;const{handleGroupExpansion:a,handleEntered:s,expandedGroup:l,prevActiveGroup:c,btnFocusRef:u}=(0,fi.Tp)(),[d,p]=T.useState(o);T.useEffect((()=>{n((0,Qt.GT)(d))}),[d,n]),T.useEffect((()=>{p(o)}),[o]);const f=T.useCallback((e=>{n((0,Qt.gX)({inkEraserWidth:e})),p(e)}),[n]),h=T.useCallback((e=>{e.keyCode===Sr.zz&&l&&a()}),[l,a]),{formatMessage:m}=t,g={lineWidth:{node:T.createElement("div",{className:Bd().controlWrapper},T.createElement("div",{className:Bd().control},T.createElement(Dd.Z,{name:"lineWidth",accessibilityLabel:m(Ke.Z.size),className:"PSPDFKit-Ink-Eraser-Toolbar-Line-Width",value:d,valueLabel:e=>m(Ke.Z.numberInPt,{arg0:e.toFixed(0)}),min:1,max:40,step:1,onChange:f,caretDirection:"bottom"===r?"up":"down",innerRef:(0,Hd.CN)("lineWidth",l)?u:void 0}))),title:m(Ke.Z.thickness)}};return T.createElement("div",{className:F()("PSPDFKit-Annotation-Toolbar",Bd().root,{[Bd().stickToBottom]:"bottom"===r}),onMouseUp:df,onTouchEnd:df,onPointerUp:df,onKeyDown:h},T.createElement("div",{className:`\n PSPDFKit-Ink-Eraser-Toolbar\n ${Bd().content}\n\n `},T.createElement("div",{className:Bd().left},T.createElement("form",{className:Bd().form,onSubmit:jr.PF},T.createElement("div",{className:`${Bd().formGroup} PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth`},T.createElement(Id.Z,{type:"line-width",title:g.lineWidth.title,className:Bd().button,onPress:()=>a("lineWidth"),disabled:Boolean(l),presentational:i>Je.GI,ref:(0,Hd.Kt)("lineWidth",l,c)?u:void 0}),g.lineWidth.node))),T.createElement("div",{className:Bd().right},T.createElement(Zd.Z,{position:r,onClose:()=>a(null),isPrimary:!1,onEntered:s,accessibilityLabel:l?g[l].title:void 0},l?g[l].node:void 0))))})),ff=(0,Re.XN)(pf);var hf=n(50653),mf=n.n(hf);const gf=(0,A.$j)((e=>({connectionFailureReason:e.connectionFailureReason})),(()=>({})))((e=>T.createElement("div",{className:`PSPDFKit-Error ${mf().root}`},T.createElement("div",{className:`PSPDFKit-Error-Box ${mf().box}`},T.createElement("div",{className:mf().error},T.createElement(Ye.Z,{src:n(58054),className:mf().icon})),T.createElement("div",{className:`PSPDFKit-Error-Message ${mf().errorMessage}`},T.createElement("p",null,null!=e.connectionFailureReason?e.connectionFailureReason:T.createElement(T.Fragment,null,"An error occurred while loading the document. Try"," ",T.createElement("a",{href:"#",onClick:()=>window.location.reload()},"reloading the page"),".")))))));var vf,yf=n(28890),bf=n(55733),wf=n.n(bf);const Sf={timeout:300,classNames:{enter:wf().unlockEnter,enterActive:wf().unlockEnterActive,exit:wf().unlockExit,exitActive:wf().unlockExitActive}};class Ef extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"_modalRef",T.createRef()),(0,o.Z)(this,"_inputRef",T.createRef()),(0,o.Z)(this,"state",{value:"",isIncorrectPassword:!1,inputShowError:!1}),(0,o.Z)(this,"_onConfirm",(()=>{this.props.resolvePassword&&this.props.resolvePassword(this.state.value)})),(0,o.Z)(this,"_onChange",(e=>{const{value:t}=e.currentTarget;this.setState({value:t,inputShowError:!1})}))}componentDidUpdate(e){e.resolvePassword===this.props.resolvePassword||this.props.unlocked||(this._modalRef.current&&this._modalRef.current.shake(),this._inputRef.current&&this._inputRef.current.focus(),this.setState({isIncorrectPassword:!0,inputShowError:!0}))}render(){const{unlocked:e}=this.props,{isIncorrectPassword:t,inputShowError:o}=this.state,{formatMessage:r}=this.props.intl;return T.createElement(yf.Z,{role:"dialog",onEnter:this._onConfirm,background:"rgba(0,0,0,.1)",className:F()("PSPDFKit-Password-Dialog",wf().container),accessibilityLabel:r(Pf.password),accessibilityDescription:r(Pf.passwordAccessibilityDescription),innerRef:this._modalRef},T.createElement("div",{className:"PSPDFKit-Password-Dialog-Content"},T.createElement(yf.Z.Section,null,T.createElement(ue.M5,null,T.createElement("div",{className:wf().iconBox},T.createElement(Iu.Z,null,e?T.createElement(Tu.Z,(0,De.Z)({},Sf,{key:"unlock"}),T.createElement(Ye.Z,{src:n(96242),className:F()(wf().icon,wf()["icon-success"])})):T.createElement(Tu.Z,(0,De.Z)({},Sf,{key:"lock"}),T.createElement(Ye.Z,{src:n(65883),className:F()({[wf().icon]:!0,[wf()["icon-regular"]]:!t,[wf()["icon-error"]]:t})})))))),T.createElement(ue.z,null,r(Pf.passwordRequired)),T.createElement(yf.Z.Section,null,T.createElement(ue.xv,null,r(Pf.unlockDocumentDescription))),T.createElement(ue.oi,{name:"password",value:this.state.value,onChange:this._onChange,"aria-label":r(Pf.password),autoFocus:!0,selectTextOnFocus:!0,disabled:e,secureTextEntry:!0,error:o,success:e,ref:this._inputRef})),t&&!e?T.createElement(yf.Z.Section,{className:wf().alert,spaced:!0},r(Pf.incorrectPassword)):vf||(vf=T.createElement(yf.Z.Divider,null)),T.createElement("div",{className:F()("PSPDFKit-Password-Dialog-Buttons",wf().dialogButtons)},T.createElement(ue.hE,{className:"PSPDFKit-Confirm-Dialog-Buttons"},T.createElement(ue.zx,{onClick:this._onConfirm,primary:!0,className:"PSPDFKit-Confirm-Dialog-Button PSPDFKit-Confirm-Dialog-Button-Confirm"},r(Pf.unlock)))))}}const Pf=(0,Re.vU)({password:{id:"password",defaultMessage:"Password",description:"Text on a label"},passwordAccessibilityDescription:{id:"passwordAccessibilityDescription",defaultMessage:"Dialog prompting for a password to unlock the document",description:"Accessibility description for password modal"},passwordRequired:{id:"passwordRequired",defaultMessage:"Password Required",description:"Title of the modal to indicate a password is required"},unlockDocumentDescription:{id:"unlockDocumentDescription",defaultMessage:"You have to unlock this document to view it. Please enter the password in the field below.",description:"Label of the password prompt"},incorrectPassword:{id:"incorrectPassword",defaultMessage:"The password you entered isn't correct. Please try again.",description:"Error message when an incorrect password was entered"},unlock:{id:"unlock",defaultMessage:"Unlock",description:"Button to unlock a password protected PDF"}}),xf=(0,Re.XN)(Ef);var Df,Cf=n(61470),kf=n.n(Cf);class Af extends T.Component{render(){const{resolvePassword:e,children:t,intl:n}=this.props,{formatMessage:o}=n,{name:r,progress:i,reason:a}=this.props.connectionState;switch(r){case _s.F.CONNECTING:{var s;const e=a?null!==(s=Of[a])&&void 0!==s?s:a:null,t=e?o(e):"";return T.createElement("div",{className:kf().loader},T.createElement(ue.Ex,{message:t,progress:null!=i?i:0}))}case _s.F.CONNECTION_FAILED:return Df||(Df=T.createElement(gf,null));case _s.F.PASSWORD_REQUIRED:return T.createElement(xf,{resolvePassword:e,unlocked:this.props.isUnlockedViaModal});default:return void 0===t?null:t}}}const Of=(0,Re.vU)({loading:{id:"loading",defaultMessage:"Loading...",description:"Shown while the document is being fetched"}}),Tf=(0,Re.XN)(Af);var If=n(38858);const Ff=(0,jo.Z)(((e,t)=>(0,J.xp)(e,t).sort(Lf)));const Mf=(0,Eo.x)((function(e,t){let{page:n}=t;const o=!!e.reuseState,r=Ff(e.annotations,n);let s=(0,i.aV)(),l=null;switch(e.selectedAnnotationMode){case Q.o.SELECTED:s=r.filter((t=>e.selectedAnnotationIds.has(t.id)));break;case Q.o.EDITING:l=e.selectedAnnotationIds.map((t=>{const n=e.annotations.get(t);return(0,a.kG)(n),n})).first(),(l instanceof j.Qi||l instanceof j.Jn)&&l.pageIndex===n.pageIndex&&(s=(0,i.aV)([l]))}return{backend:e.backend,hoverAnnotationIds:e.hoverAnnotationIds,interactionMode:e.interactionMode,isAnnotationReadOnly:t=>(0,So.lV)(t,e),selectedAnnotationIds:e.selectedAnnotationIds,activeAnnotationNote:e.activeAnnotationNote,selectedTextOnEdit:e.selectedTextOnEdit,showAnnotations:e.showAnnotations,window:e.frameWindow,zoomLevel:e.viewportState.zoomLevel,rotation:e.viewportState.pagesRotation,onFocusAnnotation:Rf(e.eventEmitter),onBlurAnnotation:Nf(e.eventEmitter),formDesignMode:e.formDesignMode,annotations:r,isReloadingDocument:o,attachments:e.attachments,selectedAnnotations:s,editingAnnotation:l,showComments:(0,Ml.Y7)(e),showAnnotationNotes:e.showAnnotationNotes,eventEmitter:e.eventEmitter,isAPStreamRendered:e.isAPStreamRendered,pageInvalidAPStreams:e.invalidAPStreams.get(n.pageIndex),canEditAnnotationCP:t=>(0,oi.CM)(t,e),canDeleteAnnotationCP:t=>(0,oi.Kd)(t,e),keepSelectedTool:e.keepSelectedTool,scrollElement:e.scrollElement,focusedAnnotationIds:e.focusedAnnotationIds,inkEraserMode:e.inkEraserMode,viewportState:e.viewportState,page:n,enableRichText:e.enableRichText,multiAnnotationsUsingShortcut:e.multiAnnotationsUsingShortcut,isMultiSelectionEnabled:e.isMultiSelectionEnabled}}))((function(e){const{annotations:t,isReloadingDocument:n,showAnnotations:o,zoomLevel:r,rotation:s,attachments:l,backend:c,dispatch:u,hoverAnnotationIds:d,page:p,isAnnotationReadOnly:f,canEditAnnotationCP:h,canDeleteAnnotationCP:m,getScrollElement:g,onFocusAnnotation:v,onBlurAnnotation:y,formDesignMode:b,selectedTextOnEdit:w,selectedAnnotationIds:S,selectedAnnotations:E,activeAnnotationNote:P,interactionMode:C,editingAnnotation:k,window:A,children:O,showComments:I,showAnnotationNotes:F,eventEmitter:M,isAPStreamRendered:_,pageInvalidAPStreams:R=(0,i.l4)(),keepSelectedTool:N,focusedAnnotationIds:L,inkEraserMode:B,enableRichText:z,multiAnnotationsUsingShortcut:K,setGlobalCursor:Z,isMultiSelectionEnabled:U}=e;(0,a.kG)(R);const{pageSize:V,pageIndex:G}=p,W=T.useCallback((e=>!(e instanceof j.Jn||e instanceof j.On&&e.isCommentThreadRoot)||I),[I]),[q,H]=T.useState(null),[$,Y]=T.useState(void 0),[X,Q]=T.useState(!1),[te,ne]=T.useState(Array()),oe=T.useCallback((function(e){"number"==typeof e.clientX&&"number"==typeof e.clientY&&H(new j.E9({x:e.clientX,y:e.clientY}))}),[]),re=S.size>0,ie=t.filter((e=>e instanceof j.On&&(e.isCommentThreadRoot||!f(e)))),ae=T.useMemo((()=>t.filter((e=>e instanceof j.R1))),[t]),se=T.useMemo((()=>t.filter((e=>e instanceof j.Zc))),[t]),le=(0,fi.R9)((e=>e instanceof j.Zc&&(0,J.Fp)(e)&&!f(e)&&h(e)&&m(e))),ce=T.useMemo((()=>se.filter(le)),[se,le]);function ue(e){const t=S.has(e.id);return e instanceof pe.Z?t&&C!==x.A.REDACT_TEXT_HIGHLIGHTER:t}function de(e){ne(e?[...te,e]:[])}const fe=k instanceof j.Zc?k:null,he=k instanceof j.UX?k:null,me=k instanceof j.gd&&null===k.pageIndex?k:null,ge=k instanceof j.gd&&k.pageIndex===G?k:null,ve=k instanceof j.Qi&&null===k.pageIndex?k:null,ye=k instanceof j.Jn&&null===k.pageIndex?k:null,be=k instanceof pe.Z&&null===k.pageIndex?k:null,we=k instanceof j.R1&&null===k.pageIndex?k:null,[Se,Ee]=T.useState(!1),xe=T.useRef(!1),De=e=>Se&&(0,J.eD)(e)&&!(null!=R&&R.has(e.id))&&(0,J.U7)(e.boundingBox)&&_(e),Ce=T.useRef(r),ke=T.useRef(G),Ae=(0,fi.tm)();T.useEffect((()=>{if(n)return void(xe.current=!1);(r>Ce.current||ke.current!==G)&&(xe.current=!1,ke.current=G),Ce.current=r;const e=t.filter((e=>!(null!=R&&R.has(e.id))&&(0,J.eD)(e)&&(0,J.U7)(e.boundingBox)&&_(e)));e.size>0&&!xe.current&&(xe.current=!0,c.renderPageAnnotations(G,e,r*(0,Ft.L)()).then((()=>{Ae()&&Ee(!0)})))}),[G,r,_,c,R,t,Ee,Se,n,Ae]),T.useEffect((()=>{Se&&c.clearPageAPStreams(G,R)}),[Se,c,G,R]),T.useEffect((()=>{if(Se)return()=>{c.clearAllPageAPStreams(G)}}),[c,G,Se]);const Oe=(0,fi.jC)({zoomLevel:r}),Te=!(null==Oe||!Oe.zoomLevel)&&Oe.zoomLevel{Te&&c.clearAllPageAPStreams(G)}));const Ie=B===D.b.POINT?Bi:Ki,Fe=E.filter((e=>W(e)&&(0,J.Fp)(e)&&(0,J.yU)(e)&&!f(e)&&(!(e instanceof j.Jn)||null==k))),Me=Fe.size>1;return T.createElement(Pe.Provider,null,T.createElement(ki,{dispatch:u,selectableTextMarkupAnnotations:ie,selectableLinkAnnotations:ae,hoverAnnotationIds:d,zoomLevel:r,window:A,pageIndex:G,selectedAnnotations:E,keepSelectedTool:N,interactionMode:C,setMultiAnnsInitialEvent:Y,isMultiSelectionEnabled:U,isHitCaptureDeffered:X,hitCaptureDefferedRect:te},O,o?T.createElement("div",null,t.filter((e=>W(e)&&(0,J.Fp)(e)&&function(e){return!(C===x.A.INK_ERASER&&le(e))}(e)&&(!ue(e)||!(0,J.yU)(e)||f(e)||e instanceof j.Jn&&k&&k.equals(e))&&!function(e){return e instanceof j.x_&&ue(e)&&b}(e))).map((e=>T.createElement(mi,{key:e.id,annotation:(0,ot.h4)(e),globalAnnotation:e,attachments:l,backend:c,dispatch:u,isAnnotationReadOnly:f,isDisabled:re&&!ue(e),isHover:d.has(e.id),isSelected:ue(e),activeAnnotationNote:P,showAnnotationNotes:F,onBlur:y,onFocus:v,pageSize:V,zoomLevel:r,rotation:s,pageRotation:p.rotation,shouldRenderAPStream:De(e),isFocused:L.has(e.id),isMultiAnnotationsSelected:Me,isComboBoxOpen:Q,handleComboBoxRect:de}))),Me&&T.createElement(T.Fragment,{key:"multi-annotations-selection"},T.createElement(Ba,{dispatch:u,pageIndex:G,pageSize:V,window:A,getScrollElement:g,selectedAnnotations:Fe.map((e=>(0,ot.h4)(e))),selectedGlobalAnnotations:Fe},Fe.map((e=>T.createElement(mi,{key:e.id,annotation:(0,ot.h4)(e),globalAnnotation:e,attachments:l,backend:c,dispatch:u,isAnnotationReadOnly:f,isDisabled:!1,isHover:d.has(e.id),isSelected:!0,activeAnnotationNote:P,showAnnotationNotes:F,onBlur:y,onFocus:v,pageSize:V,zoomLevel:r,rotation:s,pageRotation:p.rotation,onClick:e instanceof j.gd?oe:void 0,shouldRenderAPStream:De(e),isFocused:!1,isComboBoxOpen:Q,handleComboBoxRect:de}))))),!Me&&Fe.map((e=>T.createElement(T.Fragment,{key:e.id},T.createElement(Fa,{pageIndex:G,pageSize:V,annotation:(0,ot.h4)(e),globalAnnotation:e,window:A,getScrollElement:g,onFocus:v,onBlur:y,isResizable:(0,J.IO)(e),isModifiable:(0,J.Km)(e),isRotatable:(0,J.a$)(e),setGlobalCursor:Z},T.createElement(mi,{annotation:(0,ot.h4)(e),globalAnnotation:e,attachments:l,backend:c,dispatch:u,isAnnotationReadOnly:f,isDisabled:!1,isHover:d.has(e.id),isSelected:!0,isFocused:!1,activeAnnotationNote:P,showAnnotationNotes:F,onBlur:y,onFocus:v,pageSize:V,zoomLevel:r,rotation:s,pageRotation:p.rotation,onClick:e instanceof j.gd?oe:void 0,shouldRenderAPStream:De(e),isComboBoxOpen:Q,handleComboBoxRect:de})),F&&(0,J.YV)(e)&&T.createElement(ui,{dispatch:u,annotation:e,zoomLevel:r,isAnnotationSelected:!0,activeAnnotationNote:P,visible:!1}))))):null),C===x.A.INK&&null!==fe&&(0,J.Fp)(fe)?T.createElement(Fi,{dispatch:u,pageSize:V,pageIndex:G,inkAnnotation:fe.pageIndex===G?fe:fe.delete("lines").delete("boundingBox"),scrollElement:e.scrollElement}):null,C===x.A.INK_ERASER&&se.size>0?T.createElement(Ie,{inkAnnotations:ce,canvasSize:V,pageIndex:G}):null,he&&[...Ds,...Cs].includes(C)&&(0,J.Fp)(he)?T.createElement(_n,{dispatch:u,pageSize:V,pageIndex:G,shapeAnnotation:he.pageIndex===G?he:(0,ee.Hx)(he),isAnnotationMeasurement:[...Cs].includes(C)}):null,C!==x.A.TEXT&&C!==x.A.CALLOUT||!me?null:T.createElement(da,{annotation:me,interactionMode:C,dispatch:u,pageSize:V,pageIndex:G,autoSelect:w,eventEmitter:M}),ge&&(0,J.Fp)(ge)?T.createElement(la,{dispatch:u,annotation:ge,pageIndex:G,pageSize:V,autoSelect:w,lastMousePoint:null===q?void 0:q,eventEmitter:M,keepSelectedTool:N,enableRichText:z}):null,(ve||ye)&&T.createElement(Pi,{dispatch:u,annotation:ve||ye,pageSize:V,pageIndex:G,zoomLevel:r}),be&&C===x.A.REDACT_SHAPE_RECTANGLE&&(0,J.Fp)(be)?T.createElement(Ka,{dispatch:u,pageSize:V,pageIndex:G,redactionAnnotation:be.pageIndex===G?be:be.delete("boundingBox"),keepSelectedTool:N}):null,C===x.A.LINK&&we?T.createElement(ws,{dispatch:u,linkAnnotation:we,viewportState:e.viewportState,page:e.page,window:e.window,pageIndex:G,keepSelectedTool:N}):null,C===x.A.MULTI_ANNOTATIONS_SELECTION?T.createElement(xs,{viewportState:e.viewportState,window:e.window,pageIndex:G,initialDraggingEvent:$,multiAnnotationsUsingShortcut:K}):null)})),_f=Mf,Rf=(0,jo.Z)((e=>(t,n)=>{e.emit("annotations.focus",{annotation:t,nativeEvent:void 0!==n.nativeEvent?n.nativeEvent:n})})),Nf=(0,jo.Z)((e=>(t,n)=>{e.emit("annotations.blur",{annotation:t,nativeEvent:void 0!==n.nativeEvent?n.nativeEvent:n})}));function Lf(e,t){const n=Bf(e),o=Bf(t);return n>o?1:n{const t=this._hostElement.current;if(!t)return;const n=t.ownerDocument.defaultView.getSelection()||{},{anchorNode:o,extentNode:r,focusNode:i,isCollapsed:a}=n;if(o&&t.contains(o)||r&&t.contains(r)||i&&t.contains(i)){if(a)return;e.stopPropagation(),e.stopImmediatePropagation()}}))}_appendNode(){const e=this._hostElement.current;if(!e)return;const{node:t,onAppear:n}=this.props.item;e.innerHTML="",e.appendChild(t),"function"!=typeof n||this._onAppearInvoked||(this._onAppearInvoked=!0,n())}componentDidMount(){const e=this._hostElement.current;if(e){const t=e.ownerDocument;Kf.forEach((e=>{t.addEventListener(e,this._preventTextSelection,!0)}))}this._appendNode()}componentDidUpdate(e){this.props.item.node!==e.item.node&&this._appendNode()}componentWillUnmount(){const e=this._hostElement.current;if(!e)return;const t=e.ownerDocument;Kf.forEach((e=>{t.removeEventListener(e,this._preventTextSelection,!0)})),this._onAppearInvoked=!1;const{onDisappear:n}=this.props.item;"function"==typeof n&&n()}render(){return T.createElement(Be,{applyZoom:!this.props.item.disableAutoZoom,position:this.props.item.position,noRotate:this.props.item.noRotate,currentPagesRotation:this.props.rotation,zoomLevel:this.props.zoomLevel},T.createElement("div",{className:zf().selectable,ref:this._hostElement}))}}var Uf=n(72800);class Vf extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"_handlePointerUp",(e=>{const{transformClientToPage:t,onEmit:n,pageIndex:o}=this.props;n(e,t(new B.E9({x:e.clientX,y:e.clientY}),o))}))}render(){return T.createElement(pt.Z,{onPointerUp:this._handlePointerUp},T.createElement(this.props.element,{},this.props.children))}}const Gf=yi(Vf);var Wf=n(99398),qf=n.n(Wf);function Hf(e){let{focused:t,searchResult:n,zoomLevel:o}=e;const r=F()({[qf().highlight]:!0,[qf().focused]:t,"PSPDFKit-Search-Highlight":!0,"PSPDFKit-Search-Highlight-focused":t});return T.createElement("div",{"data-testid":"SearchHighlight","aria-live":"polite"},t?T.createElement(ue.TX,{announce:"polite"},"Search Result: ",n.previewText):null,n.rectsOnPage.map(((e,t)=>T.createElement("div",{key:t,style:{top:Math.floor(e.top*o),left:Math.floor(e.left*o),width:Math.ceil(e.width*o),height:Math.ceil(e.height*o)},className:r}))).toArray())}const $f=(0,A.$j)((function(e,t){const{searchState:n}=e;return{searchResults:n.results.filter((e=>e.pageIndex===t.pageIndex)),focusedResult:n.results.get(n.focusedResultIndex)}}))((function(e){let{searchResults:t,focusedResult:n,zoomLevel:o}=e;return T.createElement("div",{className:qf().layer,"data-testid":"SearchHighlightLayer"},t.map(((e,t)=>T.createElement(Hf,{focused:e===n,key:t,searchResult:e,zoomLevel:o}))))})),Yf={P:"p",TH:"th",TD:"td",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",Figure:"figure",Link:"a"};function Xf(e){var t,n;const{textLine:o,content:r,isPanModeEnabled:i,enableTextSelection:a,vertical:s,scaling:l,pageIndex:c}=e,u=null===(t=o.contentTreeElementMetadata)||void 0===t?void 0:t.pdfua_type;let d="span";u&&u in Yf&&(d=Yf[u]);const p=F()({[cl().line]:!0,[cl().lineTextCursor]:!i,[cl().debug]:!1,[cl().enableTextSelection]:a,"PSPDFKit-Text":!0,[cl().vertical]:!!s}),f={top:o.boundingBox.top,left:o.boundingBox.left,transform:l&&l.scaleX>0&&l.scaleY>0?`scale(${l.scaleX}, ${l.scaleY})`:""};return T.createElement(d,{className:p,style:f,key:o.id||void 0,alt:(null===(n=o.contentTreeElementMetadata)||void 0===n?void 0:n.alt)||void 0},T.createElement("span",{"data-textline-id":o.id,"data-page-index":c,className:cl().selectableText},r))}class Jf extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"_handleOnPressEmit",((e,t)=>{const{textLine:n,eventEmitter:o}=this.props,r={textLine:n,point:t,nativeEvent:e.nativeEvent};o.emit("textLine.press",r)})),(0,o.Z)(this,"_handleDeselectText",(()=>{this.props.dispatch((0,je.vR)())}))}render(){const{textLine:e,isTextCopyingAllowed:t}=this.props,n={top:e.boundingBox.top,left:e.boundingBox.left-20,transform:"none"},o=(0,ol.LD)(t,e);return T.createElement(Gf,{pageIndex:this.props.pageIndex,onEmit:this._handleOnPressEmit,element:"div"},!tt.vU&&T.createElement("span",{className:F()({[cl().linePadding]:!0,[cl().preventUserSelect]:tt.G6||tt.b5}),style:n,onClick:tt.G6||tt.b5?this._handleDeselectText:void 0}),T.createElement(Xf,(0,De.Z)({content:o},this.props)))}}var Qf;class eh extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"layerRef",T.createRef()),(0,o.Z)(this,"state",{needsTextSelectionOverlay:"gecko"===tt.SR,overlayHeight:0}),(0,o.Z)(this,"handleMouseDown",(e=>{if(this.state.needsTextSelectionOverlay&&this.layerRef.current){const t=this.layerRef.current.getBoundingClientRect();if(e.clientY){const n=Math.max(0,e.clientY-t.top);this.setState({overlayHeight:n/this.props.zoomLevel})}}})),(0,o.Z)(this,"handleMouseUp",(()=>{this.state.needsTextSelectionOverlay&&this.setState({overlayHeight:0})}))}getChildren(){return this.layerRef.current&&(0,i.aV)(this.layerRef.current.getElementsByClassName(cl().line))}getLayer(){return this.layerRef.current}render(){const{enableTextSelection:e,zoomLevel:t,rotation:n,eventEmitter:o,textLines:r,pageIndex:i,textLineScales:a}=this.props;return T.createElement("div",{className:cl().layer,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,style:{transform:`scale(${t})`,transformOrigin:"0 0"},ref:this.layerRef,role:"webkit"===tt.SR?"text":void 0},Qf||(Qf=T.createElement("div",null)),null==r?void 0:r.map((t=>T.createElement(Jf,{dispatch:this.props.dispatch,enableTextSelection:e,key:t.id,pageIndex:i,scaling:a&&a.get(t.id),textLine:t,vertical:90===n||270===n,eventEmitter:o,isTextCopyingAllowed:this.props.isTextCopyingAllowed,isPanModeEnabled:this.props.isPanModeEnabled}))),this.state.needsTextSelectionOverlay&&this.state.overlayHeight>0?T.createElement("div",{className:cl().overlay,style:{top:this.state.overlayHeight}}):null)}}var th=n(51869),nh=n.n(th);function oh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function rh(e){for(var t=1;te.apply(o)),[o]);T.useEffect((function(){return t((0,En.X2)()),function(){t((0,En.Zg)())}}),[t]);const{rect:c}=a;return T.createElement("div",{className:nh().canvas},null!==c?T.createElement("svg",{className:nh().svg,style:{left:c.left*i,top:c.top*i,width:c.width*i,height:c.height*i},focusable:!1},T.createElement("rect",{className:nh().rect,height:c.height*i,width:c.width*i,x:0,y:0}),T.createElement("rect",{className:nh().rectStrokeBetween,height:c.height*i,width:c.width*i,x:0,y:0})):null,T.createElement(Sn.Z,{size:n,onDrawStart:function(e){s((t=>rh(rh({},t),{},{startingPoint:e})))},onDrawCoalesced:function(e){const{startingPoint:t}=a;(0,Ne.k)(t);const n=e[e.length-1];s((e=>rh(rh({},e),{},{rect:sh(t,n)})))},onDrawEnd:function(){const{rect:e}=a,n=5/i;null===e||e.width{if(!(0,tt.b1)())return t.addEventListener("mousemove",e),()=>{(0,tt.b1)()||t.removeEventListener("mousemove",e)};function e(e){const{pageX:t,pageY:n}=e,r=e.target.closest(".PSPDFKit-Page");if(!r)return void p(!1);const i=r.getAttribute("data-page-index");if((0,a.kG)("string"==typeof i,"Page number is not a string"),+i===s){p(!0),(0,a.kG)(o.current);const{left:e,top:r}=o.current.getBoundingClientRect();u([t-e,n-r])}else p(!1)}}),[o,t,s]),d?T.createElement("div",{className:F()({[ch().wrapper]:(0,tt.b1)()},"PSPDFKit-Form-Creator-Guides"),onPointerUp:i,role:"application"},!(0,tt.b1)()&&T.createElement(T.Fragment,null,T.createElement("div",{className:ch().hGuide,style:{transform:`translate(0, ${c[1]}px)`}}),T.createElement("div",{className:ch().vGuide,style:{transform:`translate(${c[0]}px,0)`}}),T.createElement("div",{className:F()({[ch().buttonWidget]:r===x.A.BUTTON_WIDGET,[ch().textWidget]:r===x.A.TEXT_WIDGET,[ch().radioWidget]:r===x.A.RADIO_BUTTON_WIDGET,[ch().checkboxWidget]:r===x.A.CHECKBOX_WIDGET,[ch().signWidget]:r===x.A.SIGNATURE_WIDGET,[ch().listBoxWidget]:r===x.A.LIST_BOX_WIDGET,[ch().comboBoxWidget]:r===x.A.COMBO_BOX_WIDGET,[ch().dateWidget]:r===x.A.DATE_WIDGET}),style:{transform:`translate(${c[0]}px,${c[1]}px)`}},T.createElement("div",null,l.formatMessage(Ke.Z.sign)),T.createElement(Ye.Z,{src:n(58021)})))):null}var dh=n(12671);function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function fh(e){for(var t=1;t{const{page:t,textBlockId:n,anchor:o,zoomLevel:r,textBlockState:i,backend:a,isActive:s}=e,l=T.useRef(null),c=T.useRef({offset:{x:0,y:0},size:{x:-1,y:-1}}),u=T.useCallback((0,Cc.k)(((e,t)=>a.contentEditorRenderTextBlock(n,e,t)),20),[]),d=i.layout,p=i.globalEffects,f=i.modificationsCharacterStyle;T.useEffect((()=>{!async function(){const e=(0,dh.T8)(d,f),n=(0,Ft.L)(),i=await u({pixelAnchor:{x:o.x*r*n,y:o.y*r*n},globalEffects:(0,dh.uE)(p),pixelPageSize:{x:t.pageSize.width*r*n,y:t.pageSize.height*r*n},pixelViewport:{offset:{x:0,y:0},size:{x:t.pageSize.width*r*n,y:t.pageSize.height*r*n}},cursor:null,selection:s?{color:"#b5d7ff"}:null},e),a=i.displayRect,h=l.current;if(!h)return;const m=c.current;m.offset.x!=a.offset.x&&(h.style.left=a.offset.x/n+"px"),m.offset.y!=a.offset.y&&(h.style.top=a.offset.y/n+"px"),m.size.x!=a.size.x&&(h.style.width=a.size.x/(tt.G6?1:n)+"px",h.width=a.size.x),m.size.y!=a.size.y&&(h.style.height=a.size.y/(tt.G6?1:n)+"px",h.height=a.size.y);const g=h.getContext("2d");if(g){if(g.clearRect(0,0,a.size.x,a.size.y),a.size.x&&a.size.y){const e=new ImageData(new Uint8ClampedArray(i.imageBuffer),a.size.x,a.size.y);g.putImageData(e,0,0)}c.current=a}}()}));const h=tt.G6?{transformOrigin:"top left",transform:`scale(${1/devicePixelRatio})`}:{};return T.createElement("canvas",{ref:l,style:fh({position:"absolute",left:0,top:0},h)})},mh=T.memo(hh),gh={on(e,t){document.addEventListener(e,(e=>t(e.detail)))},dispatch(e,t){document.dispatchEvent(new CustomEvent(e,{detail:t}))},remove(e,t){document.removeEventListener(e,t)}};var vh=n(20423),yh=n.n(vh),bh=n(94385);const wh=(0,Re.vU)({fontMismatch:{id:"ceFontMismatch",defaultMessage:"The {arg0} font isn’t available or can’t be used to edit content in this document. Added or changed content will revert to a default font.",description:"Message to show when there is a mismatch"},toggleFontMismatchTooltip:{id:"ceToggleFontMismatchTooltip",defaultMessage:"Toggle font mismatch tooltip",description:"Message to show for the button that displays the font mismatch tooltip"},deleteTextBlockConfirmMessage:{id:"deleteTextBlockConfirmMessage",defaultMessage:"Are you sure you want to delete this text box?",description:"Message for the delete text block confirm dialog"},deleteTextBlockConfirmAccessibilityLabel:{id:"deleteTextBlockConfirmAccessibilityLabel",defaultMessage:"Confirm text box deletion",description:"Accessibility label for the delete text block confirm dialog"},deleteTextBlockConfirmAccessibilityDescription:{id:"deleteTextBlockConfirmAccessibilityDescription",defaultMessage:"Dialog allowing the user to confirm or cancel deleting the text box",description:"Accessibility description for the delete annotation confirm dialog"}});function Sh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Eh(e){for(var t=1;t{const e=B.sl.IDENTITY.rotateRad(p.rotation).scale(1,p.flipY?-1:1),t=o.offset.x+s.width,n=new j.E9({x:t+5*i,y:o.offset.y}).apply(e),r=n.x+a.x*i+(p.rotation<0?o.offset.x:0),l=n.y+a.y*i+(p.rotation<0?o.offset.y:0);return new j.E9({x:r,y:l})}),[s.width,i,p.flipY,p.rotation,a.x,a.y,o.offset.x,o.offset.y]),m=Eh(Eh({},l),{},{position:"fixed",left:h.x,top:h.y,width:Math.max(12,Math.round(16*i)),height:Math.max(12,Math.round(16*i)),zIndex:3});return T.createElement("button",{style:m,className:yh().tooltipButton,onClick:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault()},onPointerDown:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault()},onPointerOver:()=>{var e;const n=o.offset.x+d.size.x,r=o.offset.y,s=new j.E9({x:n,y:r}),l=B.sl.IDENTITY.rotateRad(p.rotation).scale(1,p.flipY?-1:1),c=s.apply(l);u((0,Su.lx)(new j.UL({left:a.x+(null!==(e=f.maxWidth)&&void 0!==e?e:c.x),top:h.y/i,width:16,height:16}),t))},onPointerLeave:()=>{if(!tt.Ni){const e=new AbortController;u((0,Su.Hv)(e)),u((0,Su.uy)(e.signal))}}},T.createElement(Ye.Z,{src:n(46113),className:yh().tooltipSVG}),T.createElement(ue.TX,null,c(wh.toggleFontMismatchTooltip)))}function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Dh(e){for(var t=1;t{var t,n;const{page:{pageSize:o,pageIndex:r},textBlockId:i,anchor:a,zoomLevel:s,textBlockState:l,isActive:c,frameWindow:u}=e,d=(0,A.I0)(),p=l.contentRect,f=l.globalEffects,h=l.detectedStyle,m=l.cursor,g=T.useRef(!1),[v,y]=T.useState(!1),b=T.useRef(!1),w=(0,A.v9)((e=>(0,Gl.G_)(r,i)(e))),S=(0,A.v9)((e=>(0,Gl.QC)(r,i)(e)));T.useEffect((()=>{if(!c){const e=new AbortController;d((0,Su.Hv)(e)),d((0,Su.uy)(e.signal))}}),[c,d]);const E=T.useRef(null),P=T.useMemo((()=>{var e,t,n;return c?null!=(null===(e=h.selectionStyleInfo)||void 0===e?void 0:e.faceMismatch)?h.selectionStyleInfo.faceMismatch.unavailableFaceName:null!==(t=null===(n=h.modificationsCharacterStyleFaceMismatch)||void 0===n?void 0:n.unavailableFaceName)&&void 0!==t?t:null:null}),[null===(t=h.selectionStyleInfo)||void 0===t?void 0:t.faceMismatch,null===(n=h.modificationsCharacterStyleFaceMismatch)||void 0===n?void 0:n.unavailableFaceName,c]),x=T.useRef(null),D=T.useRef(null),C=e=>{var t,n;(0,Ne.k)(e.currentTarget);return new j.E9({x:(null!==(t=e.nativeEvent.offsetX)&&void 0!==t?t:0)/s+p.offset.x,y:(null!==(n=e.nativeEvent.offsetY)&&void 0!==n?n:0)/s+p.offset.y})},k=()=>(0,dh.T8)(l.layout,l.modificationsCharacterStyle),O=function(e){let{textAreaRef:t,textBlockId:n,pageIndex:o,makeExternalState:r}=e;const i=T.useRef(!1),a=(0,A.I0)(),s=e=>{t.current&&null!=e&&e.length&&a((0,Su.qt)(o,n,null,e,r()))},l=tt.Dt||tt.TL;return{onChange:e=>{i.current||s("insertLineBreak"===e.nativeEvent.inputType?"\n":e.nativeEvent.data)},onCompositionStart:()=>{l||(i.current=!0)},onCompositionEnd:e=>{l||(i.current=!1,s(e.data))}}}({textAreaRef:E,textBlockId:i,pageIndex:r,makeExternalState:k}),I=function(e){let{textBlockState:t,textBlockId:n,pageIndex:o,makeExternalState:r}=e;const i=(0,A.I0)();return{onCopy:e=>{e.preventDefault(),t.selection&&e.clipboardData.setData("text/plain",t.selection.text)},onCut:e=>{e.preventDefault(),t.selection&&(e.clipboardData.setData("text/plain",t.selection.text),i((0,Su.qt)(o,n,null,"",r())))},onPaste:e=>{e.preventDefault();const t=e.clipboardData.getData("text/plain");i((0,Su.qt)(o,n,null,t,r()))}}}({textBlockId:i,pageIndex:r,textBlockState:l,makeExternalState:k}),M=function(e){let{textBlockId:t,makeExternalState:n,textBlockState:o,pageSize:r,pageIndex:i,isSelected:a,isActive:s}=e;const l=(0,A.I0)();return e=>{const c=tt.V5&&e.altKey||!tt.V5&&e.ctrlKey;if(s)switch(e.key){case"ArrowRight":l((0,Su.FD)(i,t,c?"forwardWord":"forward",e.shiftKey,n()));break;case"ArrowLeft":l((0,Su.FD)(i,t,c?"backwardWord":"backward",e.shiftKey,n()));break;case"ArrowDown":l((0,Su.FD)(i,t,"nextLine",e.shiftKey,n()));break;case"ArrowUp":l((0,Su.FD)(i,t,"previousLine",e.shiftKey,n()));break;case"Home":l((0,Su.FD)(i,t,"first",e.shiftKey,n()));break;case"End":l((0,Su.FD)(i,t,"last",e.shiftKey,n()));break;case"Backspace":l((0,Su.RL)(i,t,"backward",n()));break;case"Delete":l((0,Su.RL)(i,t,"forward",n()));break;case"a":case"A":if(!(tt.V5&&e.metaKey||!tt.V5&&e.ctrlKey))break;l((0,Su.Ow)(i,t,"everything",n()));break;case"z":case"Z":if(!(tt.V5&&e.metaKey||!tt.V5&&e.ctrlKey))break;e.shiftKey?l((0,Su.yy)(i,t,n())):l((0,Su.Zv)(i,t,n()));break;case"y":case"Y":if(!(tt.V5&&e.metaKey||!tt.V5&&e.ctrlKey))break;l((0,Su.yy)(i,t,n()));break;case"Escape":l(Su.Pq),e.preventDefault()}else if(a){let n=1;switch(e.shiftKey&&(n=10),e.key){case"ArrowRight":{e.preventDefault();const t=new j.E9({x:o.anchor.x+n,y:o.anchor.y});if(t.x+o.contentRect.offset.x+o.contentRect.size.x>=r.width)break;l((0,Su.$t)({anchor:t,isKeyboardMove:!0}));break}case"ArrowLeft":{e.preventDefault();const t=new j.E9({x:o.anchor.x-n,y:o.anchor.y});if(t.x+o.contentRect.offset.x<=0)break;l((0,Su.$t)({anchor:t,isKeyboardMove:!0}));break}case"ArrowDown":{e.preventDefault();const t=new j.E9({x:o.anchor.x,y:o.anchor.y+n});if(t.y+o.contentRect.offset.y+o.contentRect.size.y>=r.height)break;l((0,Su.$t)({anchor:t,isKeyboardMove:!0}));break}case"ArrowUp":{e.preventDefault();const t=new j.E9({x:o.anchor.x,y:o.anchor.y-n});if(t.y+o.contentRect.offset.y<=0)break;l((0,Su.$t)({anchor:t,isKeyboardMove:!0}));break}case"Enter":l((0,Su.SF)(i,t)),e.preventDefault();break;case"Escape":l(Su.Pq),e.preventDefault();break;case"Backspace":case"Delete":case"Del":l((0,Su.u)(Gl.wR.Delete)),e.preventDefault(),e.stopPropagation();break;default:e.preventDefault()}}else switch(e.key){case"Enter":l((0,Su.C0)(i,t)),e.preventDefault();break;case"Escape":l(Su.Pq),e.preventDefault()}}}({textBlockId:i,textBlockState:l,makeExternalState:k,pageSize:o,pageIndex:r,isActive:c,isSelected:w});function _(e){var t;const n=C(e),o={x:n.x,y:n.y};null===(t=E.current)||void 0===t||t.focus(),d((0,Su.v2)(r,i,o,e.shiftKey,k())),x.current={mode:"characters",begin:o}}function R(e){e.stopPropagation(),e.stopImmediatePropagation();const t={x:e.clientX,y:e.clientY};if(!D.current)return[null,null];const n=new j.UL({width:o.width,height:o.height});let r=new j.E9(t);const i=D.current;if(r=r.apply(i.transformation),!n.isPointInside(r))return[null,null];return[(t.x-i.start.x)*i.scale/i.zoomLevel,(t.y-i.start.y)*i.scale/i.zoomLevel]}T.useEffect((()=>{b.current&&w&&(b.current=!1)}),[w]);const N=T.useCallback((0,bh.Z)((e=>{const[t,n]=R(e);if(null===t||null===n||!D.current)return;const o=new j.E9({x:D.current.anchor.x+t,y:D.current.anchor.y+n});D.current.changed=!0,d((0,Su.$t)({anchor:o,pageIndex:r,textBlockId:i}))}),20),[]),L=T.useCallback((()=>{var e;u.document.removeEventListener("pointermove",N),u.document.removeEventListener("pointerup",L),d((0,Eu.ac)(!1)),null!==(e=D.current)&&void 0!==e&&e.changed&&(D.current.previousInteractionState===Gl.FP.Selected?d((0,Su.C0)(r,i)):d(Su.Pq)),D.current=null}),[]);T.useEffect((()=>{var e;c&&l.justCreated&&(null===(e=E.current)||void 0===e||e.focus())}),[c,l.justCreated]);const B=()=>{var e;return c&&(null===(e=E.current)||void 0===e?void 0:e.focus())};T.useEffect((()=>(gh.on("content-editing:re-focus",B),()=>gh.remove("content-editing:re-focus",B))));const z=l.layout;(0,Ne.k)(null!==z.maxWidth);const K={offset:{x:(0,sc._v)(z.alignment,sc.Im,z.maxWidth),y:p.offset.y},size:{x:z.maxWidth,y:p.size.y}},Z=(0,sc.sz)(ql(K),s),U=(0,sc.yK)(Z,a,s),V={position:"absolute",left:U.offset.x,top:U.offset.y},G=Dh(Dh({},V),{},{width:U.size.x,height:U.size.y,transformOrigin:`${-Z.offset.x}px ${-Z.offset.y}px`,transform:`rotate(${f.rotation}rad) scaleY(${f.flipY?-1:1})`});l.justCreated&&(G.width=Math.max(p.size.x,10)*s);const W=(0,A.v9)((e=>(0,de.zi)(e,r))),q=(e,t)=>n=>{n.stopPropagation(),n.isPrimary&&0===n.button&&(n.nativeEvent.stopImmediatePropagation(),n.preventDefault(),u.document.addEventListener("pointermove",H,{passive:!0}),u.document.addEventListener("pointerup",$,{passive:!0}),d((0,Eu.ac)(!0)),w||c||d((0,Su.SF)(r,i)),(0,Ne.k)(null!==z.maxWidth),D.current={fixpoint:e,scale:t,zoomLevel:s,start:{x:n.clientX,y:n.clientY},anchor:l.anchor,maxWidth:z.maxWidth,transformation:W,previousInteractionState:w?Gl.FP.Selected:Gl.FP.None})},H=T.useCallback((0,bh.Z)((e=>{const[t]=R(e);null!==t&&D.current&&d((0,Su.PZ)({fixpointValue:D.current.fixpoint,newWidth:D.current.maxWidth+t}))}),20),[]),$=T.useCallback((()=>{D.current=null,u.document.removeEventListener("pointermove",H),u.document.removeEventListener("pointerup",$),d((0,Eu.ac)(!1))}),[]);return T.createElement(T.Fragment,null,P?T.createElement(Ph,{faceMismatch:P,relativePixelContentRect:Z,textBlockState:l,zoomLevel:s,anchor:a,geometricStyleAttributes:G,positionAttributes:V}):null,T.createElement("div",{style:Dh(Dh({},G),{},{position:"fixed",zIndex:2}),className:F()(yh().textBlock,{[yh().selectedTextBlock]:w,[yh().movingTextBlock]:S,[yh().activeTextBlock]:c,[yh().focusIn]:v}),onFocus:()=>{g.current=!0},onBlur:()=>{g.current=!1,y(!1)},onKeyUp:e=>{const t=e.target.ownerDocument.defaultView&&e.target instanceof e.target.ownerDocument.defaultView.HTMLTextAreaElement;g.current&&"Tab"===e.key&&t&&(y(!0),d((0,Su.FD)(r,i,"first",!1,k())))}},T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`${p.offset.x*s} ${Z.offset.y} ${Z.size.x} ${Z.size.y}`,style:Dh(Dh({},G),{},{width:U.size.x,position:"absolute",left:0,top:0,transform:void 0,transformOrigin:void 0,display:c?"block":"none"}),className:yh().blinkingCaret},T.createElement("line",{stroke:"currentColor",x1:m.offset.x*s,y1:(m.offset.y+m.lineSpacing.bottom)*s,x2:m.offset.x*s,y2:(m.offset.y-m.lineSpacing.top)*s})),T.createElement("textarea",(0,De.Z)({ref:E,onPointerDown:e=>{e.stopPropagation(),c?_(e):(e.preventDefault(),e.isPrimary&&(u.document.addEventListener("pointermove",N,{passive:!0}),u.document.addEventListener("pointerup",L,{passive:!0}),d((0,Eu.ac)(!0)),(0,Ne.k)(null!==z.maxWidth),D.current={fixpoint:0,scale:1,zoomLevel:s,start:{x:e.clientX,y:e.clientY},anchor:l.anchor,maxWidth:z.maxWidth,transformation:W,previousInteractionState:w?Gl.FP.Selected:Gl.FP.None}))},onPointerMove:e=>{if(D.current)return;if(e.preventDefault(),!(c&&1&e.buttons))return;e.stopPropagation();const t=C(e),n={x:t.x,y:t.y},o=x.current;(0,Ne.k)(o),d((0,Su.sC)(r,i,o.begin,n,o.mode,k()))},onPointerUp:e=>{var t;null!==(t=D.current)&&void 0!==t&&t.changed||(e.preventDefault(),e.stopPropagation(),w||c?c||(d((0,Su.SF)(r,i)),_(e)):(d((0,Su.C0)(r,i)),b.current=!0))},onMouseUp:e=>{if(e.detail>=2){e.preventDefault(),e.stopPropagation();const t=C(e),n={x:t.x,y:t.y};x.current={mode:"words",begin:n},d((0,Su.sC)(r,i,n,n,"words",k())),e.detail>=3&&d((0,Su.Ow)(r,i,"everything",k()))}},onClick:e=>{e.preventDefault(),e.stopPropagation()},onKeyDown:M},O,I,{onContextMenu:jr.PF,style:Dh(Dh({},G),{},{resize:"none",opacity:0,touchAction:"none",left:0,top:0,transform:void 0,transformOrigin:void 0}),defaultValue:l.layoutView.lines.map((e=>(0,sc.z8)(e.elements))).join(" ")})),w?T.createElement(T.Fragment,null,T.createElement("div",{draggable:!0,onPointerDown:q(sc.Tl,-1),className:F()(yh().resizeHandle,yh().resizeHandleLeft)},T.createElement("div",{className:yh().resizeHandleCircle})),T.createElement("div",{draggable:!0,onPointerDown:q(sc.Im,1),className:F()(yh().resizeHandle,yh().resizeHandleRight)},T.createElement("div",{className:yh().resizeHandleCircle}))):null))},kh=T.memo(Ch),Ah=e=>{const{page:t,textBlockId:n,zoomLevel:o,backend:r,frameWindow:i}=e,a=(0,A.v9)((e=>{const o=(0,Gl.aT)(t.pageIndex,n)(e);return(0,Ne.k)(o),o.anchor})),s=(0,A.v9)((e=>(0,Gl.aT)(t.pageIndex,n)(e)));(0,Ne.k)(s);const l=(0,A.v9)((e=>(0,Gl.Dn)(t.pageIndex,n)(e)));return T.createElement("div",{className:"PSPDFKit-Content-Editing-Text-Block"},T.createElement(mh,{page:t,textBlockId:n,anchor:a,zoomLevel:o,textBlockState:s,isActive:l,backend:r}),T.createElement(kh,{page:t,textBlockId:n,anchor:a,zoomLevel:o,isActive:l,textBlockState:s,frameWindow:i}))},Oh=T.memo(Ah);function Th(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ih(e){for(var t=1;t{const t=(0,A.I0)(),{formatMessage:n}=(0,Re.YB)(),{page:o,zoomLevel:r,backend:i,frameWindow:a}=e;T.useEffect((()=>{var e;t((e=o.pageIndex,async(t,n)=>{if((0,Gl.Cd)(e)(n())!=Gl.R1.Uninitialized)return;t({type:te.l$y,pageIndex:e});const o=await n().backend.contentEditorDetectParagraphs(e);t({type:te.kD6,pageIndex:e,initialTextBlocks:o})}))}),[t,o.pageIndex]);const s=o.pageSize.height*r,l=o.pageSize.width*r,c=(0,A.v9)((0,Gl.jI)(o.pageIndex),A.wU),u=(0,A.v9)((e=>e.contentEditorSession.mode)),d=u===Gl.wR.Create,p=u===Gl.wR.Delete,f=(0,A.v9)((e=>(0,de.zi)(e,o.pageIndex))),h=(0,A.v9)((e=>e.contentEditorSession.textBlockInteractionState.state)),m=h===Gl.FP.Active,g=h===Gl.FP.Moving;return T.createElement("div",{tabIndex:0,onPointerDown:e=>{if(d){const n=new j.E9({x:e.clientX,y:e.clientY}).apply(f),r=new Gl.Sg({x:n.x,y:n.y});t((0,Su.rO)(o.pageIndex,r))}else p||(m&&(e.preventDefault(),e.stopPropagation()),t(Su.Pq))},className:"content-editing-overlay",style:Ih({position:"absolute",top:0,left:0,touchAction:g?"none":"auto",height:s,width:l,zIndex:1},d?{cursor:"text"}:{})},p&&T.createElement($u.Z,{onConfirm:()=>t(Su.um),onCancel:()=>t((0,Su.u)(Gl.wR.Edit)),accessibilityLabel:n(wh.deleteTextBlockConfirmAccessibilityLabel),accessibilityDescription:n(wh.deleteTextBlockConfirmAccessibilityDescription),"aria-atomic":!0,restoreOnClose:!1},T.createElement("p",null,n(wh.deleteTextBlockConfirmMessage))),c.map((e=>T.createElement(Oh,{key:e,backend:i,textBlockId:e,page:o,zoomLevel:r,frameWindow:a}))))},Mh=T.memo(Fh);function _h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Rh(e){for(var t=1;t{let{pageSize:t}=e;const n=(0,A.v9)((e=>e.hintLines));return n?T.createElement("svg",{id:"hint-lines",viewBox:`0 0 ${t.width} ${t.height}`,className:Kh().hintLineSvg},n.lines.map(((e,t)=>T.createElement("line",{key:t,x1:e.start.x,y1:e.start.y,x2:e.end.x,y2:e.end.y,className:Kh().line})))):null};class Uh extends T.Component{constructor(e){super(e),(0,o.Z)(this,"pageRef",T.createRef()),(0,o.Z)(this,"_handleOverviewRenderFinished",(()=>{this.setState({isOverviewRendered:!0}),this.props.onInitialOverviewRenderFinished&&this.props.onInitialOverviewRenderFinished(this.props.page.pageIndex)})),(0,o.Z)(this,"_handleScroll",(e=>{this.pageRef.current&&(this.pageRef.current.scrollTop=0,this.pageRef.current.scrollLeft=0),e.stopPropagation(),e.preventDefault()})),(0,o.Z)(this,"_handleOnPressEmit",((e,t)=>{const n={pageIndex:this.props.page.pageIndex,point:t,nativeEvent:e.nativeEvent};this.props.eventEmitter.emit("page.press",n)})),(0,o.Z)(this,"onCropAreaChangeComplete",(e=>{const t=(0,Yr.kI)(e,this.props.page.pageSize,this.props.viewportState.pagesRotation),n={cropBox:t,pageIndex:this.props.page.pageIndex};this.props.eventEmitter.emit("cropArea.changeStop",n),this.props.onCropChange(t,this.props.page.pageIndex)})),(0,o.Z)(this,"onCropAreaChangeStart",(e=>{const t=(0,Yr.kI)(e,this.props.page.pageSize,this.props.viewportState.pagesRotation),n={cropBox:t,pageIndex:this.props.page.pageIndex};this.props.eventEmitter.emit("cropArea.changeStart",n),this.props.onCropChange(t,this.props.page.pageIndex)})),(0,o.Z)(this,"createWidgetAnnotation",(e=>{var t,n,o;e.stopPropagation(),this.props.dispatch((t=this.props.page.pageIndex,n=[e.pageX,e.pageY],o=this.props.intl,async(e,r)=>{const{interactionMode:s,viewportState:l,onWidgetAnnotationCreationStart:c,changeManager:u}=r();Lh++;const d=(0,de.Ek)(l,t),p=(0,J.xc)();(0,a.kG)(s,"interactionMode is not defined");const f=Nh[s],h=new Date;let m,g=new j.x_(Rh(Rh({id:p,formFieldName:`${s}_${(0,ks.C)()}`,boundingBox:new j.UL({left:n[0],top:n[1],width:f[0],height:f[1]}).apply(d),pageIndex:t,createdAt:h,updatedAt:h,fontSize:12},s===x.A.BUTTON_WIDGET?{backgroundColor:j.Il.BLUE,fontColor:j.Il.WHITE}:{}),s===x.A.DATE_WIDGET?{additionalActions:{onFormat:new j.bp({script:'AFDate_FormatEx("yyyy-mm-dd")'})}}:{}));switch(s){case x.A.BUTTON_WIDGET:m=new j.R0({annotationIds:(0,i.aV)([g.id]),name:g.formFieldName,buttonLabel:"Button"});break;case x.A.TEXT_WIDGET:case x.A.DATE_WIDGET:m=new j.$o({annotationIds:(0,i.aV)([g.id]),name:g.formFieldName});break;case x.A.RADIO_BUTTON_WIDGET:m=new j.XQ({annotationIds:(0,i.aV)([g.id]),name:g.formFieldName,options:(0,i.aV)([new j.mv({label:o.formatMessage(Gh.labelX,{arg0:1}),value:`Value ${Lh}`})])});break;case x.A.CHECKBOX_WIDGET:m=new j.rF({annotationIds:(0,i.aV)([g.id]),name:g.formFieldName,options:(0,i.aV)([new j.mv({label:o.formatMessage(Gh.labelX,{arg0:1}),value:`Value ${Lh}`})])});break;case x.A.SIGNATURE_WIDGET:m=new j.Yo({annotationIds:(0,i.aV)([g.id]),name:g.formFieldName});break;case x.A.LIST_BOX_WIDGET:m=new j.Vi({annotationIds:(0,i.aV)([g.id]),name:g.formFieldName,options:(0,i.aV)([new j.mv({label:"Option 1",value:`Value ${Lh}`})])});break;case x.A.COMBO_BOX_WIDGET:m=new j.fB({annotationIds:(0,i.aV)([g.id]),name:g.formFieldName,options:(0,i.aV)([new j.mv({label:"Option 1",value:"Option 1"}),new j.mv({label:"Option 2",value:"Option 2"})])});break;default:throw new Error(`Unknown interaction mode: ${s}`)}if(m=m.set("id",(0,ks.C)()),c){const e=c(g,m);g=e.annotation||g,m=e.formField||m,(0,a.kG)(g instanceof j.x_,"widgetAnnotation must be an instance of WidgetAnnotation"),(0,a.kG)(m instanceof j.Wi,"formField must be an instance of FormField"),(0,a.kG)(g.formFieldName===m.name,"widgetAnnotation.formFieldName must be equal to formField.name"),(0,a.kG)(t===g.pageIndex,"You are not allowed to change the pageIndex")}e({type:te.vgx,annotationId:g.id}),null==u||u.create([g,m]),e((0,Mo.el)()),e((0,je.J4)((0,i.l4)([g.id]),Q.o.SELECTED))}))})),this._textLinesPromise=null,this._cancelTextPromise=null,this.state={hasBeenInViewport:e.inViewport,isOverviewRendered:!e.renderPagePreview}}shouldComponentUpdate(e,t){return!!e.page&&(this.props.isReused!==e.isReused||(this.props.page.pageIndex!==e.page.pageIndex||(!(!e.inViewport||this.props.inViewport)||(!(e.inViewport||!this.props.inViewport)||(e.shouldPrerender!==this.props.shouldPrerender||(e.inViewport?ze.O.call(this,e,t):this.props.interactionMode===x.A.CONTENT_EDITOR&&e.interactionMode!==x.A.CONTENT_EDITOR||this.props.viewportState.zoomLevel!==e.viewportState.zoomLevel))))))}UNSAFE_componentWillReceiveProps(e){e.inViewport&&!this.state.hasBeenInViewport&&this.setState({hasBeenInViewport:!0})}UNSAFE_componentWillMount(){(this.props.inViewport||this.props.shouldPrerender)&&this.componentWillEnterViewport(this.props),this.props.inViewport&&this.setState({hasBeenInViewport:!0})}UNSAFE_componentWillUpdate(e){this.props.isReused?(this._resetTextLines(),this._fetchPageContent(e)):!this.props.inViewport&&e.inViewport||e.shouldPrerender?this.componentWillEnterViewport(e):this.props.inViewport&&!e.inViewport&&this.componentWillExitViewport()}componentDidUpdate(e){this.state.isOverviewRendered&&this.props.onInitialOverviewRenderFinished&&this.props.parent!==e.parent&&this.props.onInitialOverviewRenderFinished(this.props.page.pageIndex)}componentWillEnterViewport(e){this._fetchPageContent(e)}_fetchPageContent(e){e.annotationManager.loadAnnotationsForPageIndex(e.page.pageIndex),null==e.page.textLines&&null==this._textLinesPromise&&this.fetchTextLinesForProps(e)}componentWillExitViewport(){this._resetTextLines()}_resetTextLines(){this._textLinesPromise&&this._cancelTextPromise&&(this._cancelTextPromise(),this._textLinesPromise=null)}async fetchTextLinesForProps(e){if(!this.props.enableTextLoading||this.props.interactionMode===x.A.CONTENT_EDITOR)return void e.dispatch((0,If.Lv)(e.page.pageIndex,(0,i.aV)()));const{promise:t,cancel:n}=e.backend.getTextContentTreeForPageIndex(e.page.pageIndex);this._textLinesPromise=t,this._cancelTextPromise=n;try{const t=await this._textLinesPromise;e.dispatch((0,If.Lv)(e.page.pageIndex,t))}catch(e){if(e&&!e.aborted)throw e}}isWithinRange(){const{page:{pageIndex:e},viewportState:{currentPageIndex:t}}=this.props;return e>=Math.min(0,t-2)&&e<=t+2}render(){const{props:e}=this,{page:t,intl:n,innerRef:o,viewportState:r,frameWindow:i,cropInfo:a}=e,{formatMessage:s}=n,l={width:t.pageSize.width*r.zoomLevel,height:t.pageSize.height*r.zoomLevel};let c={height:l.height,width:l.width,transform:B.sl.IDENTITY.rotate(-r.pagesRotation).toCssValue()};if(90===r.pagesRotation||270===r.pagesRotation){const e=(l.height-l.width)/2;c={height:l.width,width:l.height,transform:B.sl.IDENTITY.rotate(r.pagesRotation).translate({x:-e,y:e}).toCssValue()}}const u=F()({"PSPDFKit-Page":!0,[`PSPDFKit-Page-Rotation-${r.pagesRotation}-degree`]:!0,[jh().root]:!0,[jh()["deg-"+r.pagesRotation]]:!0,[jh().textHighlighterMode]:e.interactionMode===x.A.TEXT_HIGHLIGHTER||e.interactionMode===x.A.REDACT_TEXT_HIGHLIGHTER,[jh().hideCursor]:(0,nt.o6)(e.interactionMode)});return t?T.createElement("section",{className:u,style:l,ref:this.pageRef,"data-page-index":t.pageIndex,"data-page-is-loaded":null!==t.textLines,onScroll:this._handleScroll,key:t.pageKey,"aria-label":s(Gh.pageX,{arg0:t.pageLabel||t.pageIndex+1})},T.createElement("div",{tabIndex:e.documentHasActiveAnnotation?-1:0,className:jh().focusPage,ref:o}),this.state.hasBeenInViewport&&this.state.isOverviewRendered&&t.textLines?null:T.createElement(ue.TX,null,s(Ke.Z.loading)),T.createElement(Gf,{pageIndex:t.pageIndex,onEmit:this._handleOnPressEmit,element:"div"},(this.state.hasBeenInViewport||this.state.isOverviewRendered||e.shouldPrerender)&&T.createElement(Uf.Z,{inViewport:e.inViewport,shouldPrerender:!e.inViewport&&e.shouldPrerender,page:t,backend:e.backend,zoomLevel:r.zoomLevel,rotation:r.pagesRotation,renderPageCallback:e.renderPageCallback,onInitialOverviewRenderFinished:this._handleOverviewRenderFinished,allowedTileScales:e.allowedTileScales,viewportRect:r.viewportRect,forceDetailView:!1,renderPagePreview:e.renderPagePreview,isPageSizeReal:e.isPageSizeReal,inContentEditorMode:e.interactionMode===x.A.CONTENT_EDITOR}),e.interactionMode===x.A.CONTENT_EDITOR&&e.inViewport&&T.createElement(Mh,{backend:e.backend,zoomLevel:r.zoomLevel,page:t,frameWindow:i}),this.props.hintLinesPageIndex===t.pageIndex?T.createElement(Zh,{pageSize:t.pageSize}):null,this.state.hasBeenInViewport&&this.state.isOverviewRendered&&T.createElement(T.Fragment,null,T.createElement($f,{pageIndex:t.pageIndex,zoomLevel:r.zoomLevel}),T.createElement(Mu.Consumer,null,(n=>T.createElement(_f,{page:t,getScrollElement:n,setGlobalCursor:this.props.setGlobalCursor},t.textLines?T.createElement(eh,{dispatch:e.dispatch,enableTextSelection:e.enableTextSelection,zoomLevel:r.zoomLevel,rotation:r.pagesRotation,eventEmitter:e.eventEmitter,isTextCopyingAllowed:e.isTextCopyingAllowed,isPanModeEnabled:e.isPanModeEnabled,pageIndex:t.pageIndex,textLines:t.textLines,textLineScales:t.textLineScales}):null))),e.interactionMode===x.A.MARQUEE_ZOOM?T.createElement(ah,{pageIndex:t.pageIndex,pageSize:t.pageSize,scrollElement:e.scrollElement}):null,e.customOverlayItems.size>0&&T.createElement("div",null,e.customOverlayItems.map((e=>T.createElement(Zf,{key:e.id,item:e,rotation:r.pagesRotation,zoomLevel:r.zoomLevel})))))),e.interactionMode===x.A.DOCUMENT_CROP&&(null===a&&this.isWithinRange()||(null==a?void 0:a.pageIndex)===t.pageIndex)&&T.createElement("div",{style:c},T.createElement(bs,{viewportState:r,page:this.props.page,onAreaChangeComplete:this.onCropAreaChangeComplete,frameWindow:i,onAreaChangeStart:this.onCropAreaChangeStart})),(0,nt.o6)(e.interactionMode)&&T.createElement("div",{style:c},T.createElement(uh,{frameWindow:i,pageRef:this.pageRef,interactionMode:e.interactionMode,pageIndex:t.pageIndex,onCreate:this.createWidgetAnnotation,intl:e.intl}))):null}}const Vh=(0,Re.XN)(Uh),Gh=(0,Re.vU)({pageX:{id:"pageX",defaultMessage:"Page {arg0}",description:"Current page"},labelX:{id:"labelX",defaultMessage:"Label {arg0}",description:"Label"}});const Wh=(0,Eo.x)((function(e,t){var n;const o=e.pages.get(t.pageIndex),r=(null==o?void 0:o.customOverlayItemIds.map((t=>e.customOverlayItems.get(t))).toList())||null;return{frameWindow:e.frameWindow,enableTextLoading:(0,So.$Q)(e),enableTextSelection:e.interactionMode!==x.A.PAN,annotationManager:e.annotationManager,backend:e.backend,customOverlayItems:r,eventEmitter:e.eventEmitter,page:o,isTextCopyingAllowed:(0,So.HI)(e),renderPageCallback:e.renderPageCallback,interactionMode:e.interactionMode,documentHasActiveAnnotation:e.selectedAnnotationIds.size>0,allowedTileScales:e.allowedTileScales,isPanModeEnabled:e.interactionMode===x.A.PAN&&!tt.Ni,viewportState:e.viewportState,scrollElement:e.scrollElement,isReused:!!e.reuseState,renderPagePreview:e.renderPagePreview,isPageSizeReal:e.firstCurrentPageIndex===t.pageIndex||e.arePageSizesLoaded,hintLinesPageIndex:null===(n=e.hintLines)||void 0===n?void 0:n.pageIndex}}))(Vh);class qh extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"spreadRef",T.createRef()),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"pageIndexesWaitingForRender",(0,Hs.P1)(this.props.viewportState,this.props.spreadIndex)),(0,o.Z)(this,"_handleOverviewRenderFinished",(e=>{if(this.props.onOverviewRenderFinished){const t=this.pageIndexesWaitingForRender.indexOf(e);t>-1&&this.pageIndexesWaitingForRender.splice(t,1),0===this.pageIndexesWaitingForRender.length&&this.props.onOverviewRenderFinished&&this.props.onOverviewRenderFinished(this.props.spreadIndex)}}))}render(){const{spreadIndex:e,viewportState:t,inViewport:n,shouldPrerender:o,onCropChange:r,cropInfo:i}=this.props,a=(0,Hs.Xk)(t,e);return T.createElement("div",{style:{width:a.width*t.zoomLevel,height:a.height*t.zoomLevel},hidden:this.props.hidden},(0,Hs.P1)(t,e).map((a=>{const s=(0,de.DB)(B.sl.IDENTITY,t,a,e,t.zoomLevel),l=this.props.pageKeys.get(a);return T.createElement("div",{key:l,style:{transform:s.toCssValue(!0),transformOrigin:"0 0",position:"absolute"}},T.createElement(xe.Reparent,{id:`page-${l}`},T.createElement(Wh,{pageIndex:a,inViewport:n,shouldPrerender:o,viewportRect:t.viewportRect,onInitialOverviewRenderFinished:this._handleOverviewRenderFinished,innerRef:this.props.innerRef,parent:this.spreadRef,onCropChange:r,cropInfo:i,setGlobalCursor:this.props.setGlobalCursor})))})))}}var Hh=n(40045);const $h=T.memo((function(e){const{viewportState:t}=e,{lastScrollUsingKeyboard:n}=t,o=T.useRef(null),r=(0,Hs.dF)(t,t.currentPageIndex),[i,a]=(0,Hs.wU)(t,r);return T.useEffect((()=>{r-Je.J8>0&&o.current&&n&&o.current.focus({preventScroll:!0})}),[r,n]),0===t.viewportRect.width||0===t.viewportRect.height?null:T.createElement(Hh.Z,{dispatch:e.dispatch,viewportState:t},T.createElement("div",null,function(){const{viewportState:t,viewportState:{viewportRect:n,scrollPosition:s,zoomLevel:l},onCropChange:c,cropInfo:u}=e,d=(0,Hs.kd)(t),p=s.y,f=s.y+n.height/l,h=(0,Hs.Ad)(t);let m=0,g=0;const v=[];for(let n=0;np,y=(h-s.width)/2,b=new B.UL({left:y,top:m,width:s.width,height:s.height}).scale(l),w={left:b.left,top:b.top,width:b.width,height:b.height,position:"absolute"};if(g+=t.spreadSpacing,m=g,(0,Hs.wX)(n,r)){const s=n===r,l=(0,Hs.nw)(t)===C.X.DOUBLE?n.toString():e.pageKeys.get(n);v.push(T.createElement("div",{key:l,className:"PSPDFKit-Spread",style:w,"data-spread-index":n},T.createElement(qh,{spreadIndex:n,viewportState:t,inViewport:d,shouldPrerender:!s&&"number"==typeof i&&r===i,onOverviewRenderFinished:a,innerRef:s?o:void 0,onCropChange:c,cropInfo:u,pageKeys:e.pageKeys,setGlobalCursor:e.setGlobalCursor})))}}return v}()))}));var Yh=n(87222),Xh=n(74305);function Jh(){return Jh=Object.assign||function(e){for(var t=1;t{const{decorative:n,orientation:o=rm,...r}=e,i=sm(o)?o:rm,a=n?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return(0,T.createElement)(nm.WV.div,om({"data-orientation":i},a,r,{ref:t}))}));function sm(e){return im.includes(e)}am.propTypes={orientation(e,t,n){const o=e[t],r=String(o);return o&&!sm(o)?new Error(function(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${rm}\`.`}(r,n)):null}};const lm=am;function cm(){return cm=Object.assign||function(e){for(var t=1;t{const{pressed:n,defaultPressed:o=!1,onPressedChange:r,...i}=e,[a=!1,s]=(0,dm.T)({prop:n,onChange:r,defaultProp:o});return(0,T.createElement)(nm.WV.button,um({type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":e.disabled?"":void 0},i,{ref:t,onClick:(0,Qh.M)(e.onClick,(()=>{e.disabled||s(!a)}))}))}));var fm=n(69409);const hm="ToggleGroup",[mm,gm]=(0,em.b)(hm,[tm.Pc]),vm=(0,tm.Pc)(),ym=T.forwardRef(((e,t)=>{const{type:n,...o}=e;if("single"===n){const e=o;return T.createElement(Sm,cm({},e,{ref:t}))}if("multiple"===n){const e=o;return T.createElement(Em,cm({},e,{ref:t}))}throw new Error("Missing prop `type` expected on `ToggleGroup`")})),[bm,wm]=mm(hm),Sm=T.forwardRef(((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=(()=>{}),...i}=e,[a,s]=(0,dm.T)({prop:n,defaultProp:o,onChange:r});return T.createElement(bm,{scope:e.__scopeToggleGroup,type:"single",value:a?[a]:[],onItemActivate:s,onItemDeactivate:T.useCallback((()=>s("")),[s])},T.createElement(Dm,cm({},i,{ref:t})))})),Em=T.forwardRef(((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=(()=>{}),...i}=e,[a=[],s]=(0,dm.T)({prop:n,defaultProp:o,onChange:r}),l=T.useCallback((e=>s(((t=[])=>[...t,e]))),[s]),c=T.useCallback((e=>s(((t=[])=>t.filter((t=>t!==e))))),[s]);return T.createElement(bm,{scope:e.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:l,onItemDeactivate:c},T.createElement(Dm,cm({},i,{ref:t})))})),[Pm,xm]=mm(hm),Dm=T.forwardRef(((e,t)=>{const{__scopeToggleGroup:n,disabled:o=!1,rovingFocus:r=!0,orientation:i,dir:a,loop:s=!0,...l}=e,c=vm(n),u=(0,fm.gm)(a),d={role:"group",dir:u,...l};return T.createElement(Pm,{scope:n,rovingFocus:r,disabled:o},r?T.createElement(tm.fC,cm({asChild:!0},c,{orientation:i,dir:u,loop:s}),T.createElement(nm.WV.div,cm({},d,{ref:t}))):T.createElement(nm.WV.div,cm({},d,{ref:t})))})),Cm="ToggleGroupItem",km=T.forwardRef(((e,t)=>{const n=wm(Cm,e.__scopeToggleGroup),o=xm(Cm,e.__scopeToggleGroup),r=vm(e.__scopeToggleGroup),i=n.value.includes(e.value),a=o.disabled||e.disabled,s={...e,pressed:i,disabled:a},l=T.useRef(null);return o.rovingFocus?T.createElement(tm.ck,cm({asChild:!0},r,{focusable:!a,active:i,ref:l}),T.createElement(Am,cm({},s,{ref:t}))):T.createElement(Am,cm({},s,{ref:t}))})),Am=T.forwardRef(((e,t)=>{const{__scopeToggleGroup:n,value:o,...r}=e,i=wm(Cm,n),a={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s="single"===i.type?a:void 0;return T.createElement(pm,cm({},s,r,{ref:t,onPressedChange:e=>{e?i.onItemActivate(o):i.onItemDeactivate(o)}}))})),Om=ym,Tm=km,Im="Toolbar",[Fm,Mm]=(0,em.b)(Im,[tm.Pc,gm]),_m=(0,tm.Pc)(),Rm=gm(),[Nm,Lm]=Fm(Im),Bm=(0,T.forwardRef)(((e,t)=>{const{__scopeToolbar:n,orientation:o="horizontal",dir:r,loop:i=!0,...a}=e,s=_m(n),l=(0,fm.gm)(r);return(0,T.createElement)(Nm,{scope:n,orientation:o,dir:l},(0,T.createElement)(tm.fC,Jh({asChild:!0},s,{orientation:o,dir:l,loop:i}),(0,T.createElement)(nm.WV.div,Jh({role:"toolbar","aria-orientation":o,dir:l},a,{ref:t}))))})),jm="ToolbarSeparator",zm=(0,T.forwardRef)(((e,t)=>{const{__scopeToolbar:n,...o}=e,r=Lm(jm,n);return(0,T.createElement)(lm,Jh({orientation:"horizontal"===r.orientation?"vertical":"horizontal"},o,{ref:t}))})),Km=(0,T.forwardRef)(((e,t)=>{const{__scopeToolbar:n,...o}=e,r=_m(n);return(0,T.createElement)(tm.ck,Jh({asChild:!0},r,{focusable:!e.disabled}),(0,T.createElement)(nm.WV.button,Jh({type:"button"},o,{ref:t})))})),Zm="ToolbarToggleGroup",Um=(0,T.forwardRef)(((e,t)=>{const{__scopeToolbar:n,...o}=e,r=Lm(Zm,n),i=Rm(n);return(0,T.createElement)(Om,Jh({"data-orientation":r.orientation,dir:r.dir},i,o,{ref:t,rovingFocus:!1}))})),Vm=(0,T.forwardRef)(((e,t)=>{const{__scopeToolbar:n,...o}=e,r=Rm(n),i={__scopeToolbar:e.__scopeToolbar};return(0,T.createElement)(Km,Jh({asChild:!0},i),(0,T.createElement)(Tm,Jh({},r,o,{ref:t})))})),Gm=Bm,Wm=zm,qm=Km,Hm=Um,$m=Vm;var Ym,Xm=n(12921),Jm=n(54941);const Qm=e=>{let{rect:t,onInteractOutside:n,onEscapeKeyDown:o,children:r,onOpenAutoFocus:i,contentClassName:a}=e;return T.createElement(Jm.fC,{open:!!t},T.createElement(Jm.ee,{style:{position:"absolute",left:null==t?void 0:t.left,top:null==t?void 0:t.top,width:null==t?void 0:t.width,height:null==t?void 0:t.height,visibility:"hidden"}},Ym||(Ym=T.createElement("div",null,"Demo"))),T.createElement(Jm.VY,{sideOffset:10,onInteractOutside:n,onOpenAutoFocus:i,onEscapeKeyDown:o,className:a},r))};var eg=n(14526),tg=n.n(eg),ng=n(42308),og=n(66489),rg=n.n(og),ig=n(23756),ag=n.n(ig);const sg=["label","errorMessage","inputClassName","className","disablePadding"];function lg(e){let{label:t,errorMessage:n,inputClassName:o,className:i,disablePadding:a}=e,s=(0,r.Z)(e,sg);return T.createElement("div",{className:F()(!a&&ag().wrapper,i)},T.createElement("label",{className:ag().label},t,s.required&&"*",T.createElement(ue.oi,(0,De.Z)({},s,{className:F()(ag().input,{[ag().inputError]:!!n},o)}))),n&&T.createElement("span",{className:ag().errorLabel},n))}var cg=n(51205);const ug={uri:"uri",page:"page"},dg="edit",pg="hover",fg="open";function hg(e){if(!e.action)return null;const t=e.action;return t instanceof j.lm?t.uri:t.pageIndex+1}function mg(e){return T.createElement("div",{className:F()(rg().container)},T.createElement("div",{className:rg().innerContainer},T.createElement("div",{className:rg().content},T.createElement(gg,e))))}function gg(e){var t,o;let{pages:r,dispatch:i,annotation:a}=e;const s=(0,Re.YB)(),l=a.action instanceof j.Di,c=a.action instanceof j.lm;let u;l&&(u=a.action),c&&(u=a.action);const d=(0,T.useMemo)((()=>!c&&!l||c?ug.uri:ug.page),[l,c]),[p,f]=(0,T.useState)(d),[h,m]=(0,T.useState)((null===(t=u)||void 0===t?void 0:t.uri)||""),[g,v]=(0,T.useState)((null===(o=u)||void 0===o?void 0:o.pageIndex)+1||""),[y,b]=(0,T.useState)(""),w=p===ug.uri,S=(0,T.useCallback)((e=>r.get(e-1)),[r]),E=(0,T.useCallback)((()=>{const e=Number(g);if(e)if(S(e)){const t=new j.Di({pageIndex:e-1}),n=a.set("action",t);i((0,Qt.FG)(n))}else b(s.formatMessage(yg.invalidPageNumber));else b(s.formatMessage(yg.invalidPageNumber))}),[a,i,g,S]),P=(0,T.useCallback)((()=>{if(!h)return void b(s.formatMessage(yg.invalidPageLink));const e=new j.lm({uri:h}),t=a.set("action",e);i((0,Qt.FG)(t))}),[a,i,h]),x=(0,T.useCallback)((()=>{if(w)return T.createElement(lg,{label:s.formatMessage(Ke.Z.linkAnnotation),value:h,onChange:e=>{m(e.target.value),b("")},onBlur:P,errorMessage:y,placeholder:"www.example.com",disablePadding:!0})}),[y,s,w,h,P]),D=(0,T.useCallback)((()=>{if(!w)return T.createElement(lg,{disablePadding:!0,label:s.formatMessage(yg.targetPageLink),value:g,onChange:e=>{v(e.target.value),y&&b("")},onBlur:E,placeholder:"1",errorMessage:y})}),[y,s,w,g,E]);return T.createElement(T.Fragment,null,T.createElement("label",{className:rg().label},s.formatMessage(yg.linkTo),T.createElement(ue.Ee,{inputName:"LinkTo",label:s.formatMessage(Ke.Z.horizontalAlignment),selectedOption:p,labelClassNamePrefix:"PSPDFKit-Link-Popover-Editor-LinkTo",wrapperClasses:rg().radioGroupWrapper,options:Object.keys(ug).map((e=>({value:e,label:s.formatMessage(yg[`${e}Link`]),iconPath:n(11379)}))),onChange:e=>{f(ug[e]),y&&b("")},isButton:!0,showLabel:!0})),x(),D())}function vg(e){const{viewportState:t,isHidden:n,annotation:o,isHover:r,dispatch:i}=e,a=(0,Re.YB)(),[s,l]=(0,T.useState)(!1),c=(0,T.useMemo)((()=>(0,$i.q)((0,J.Wj)(o,t.pagesRotation,t.viewportRect.getSize()).apply((0,de.cr)(t,t.currentPageIndex).translate(t.scrollPosition.scale(t.zoomLevel))),t.viewportRect.getSize())),[o,t]),u=(0,T.useMemo)((()=>o&&r?pg:o&&!o.action||s?dg:fg),[o,r,s]),d=(null==o?void 0:o.action)instanceof j.lm,p=(0,T.useMemo)((()=>u===dg?a.formatMessage(yg.linkSettingsPopoverTitle):d?hg(o):`${a.formatMessage(yg.linkToPage,{arg0:hg(o)})}: ${hg(o)}`),[o,u,a]),f=(0,T.useCallback)((t=>{if(t){const e=o.action instanceof j.lm;return T.createElement("div",{className:F()(rg().container)},T.createElement("div",{className:rg().contentRow},T.createElement(ue.zx,{className:F()("PSPDFKit-Link-Popover-Editor-Edit-Button"),onClick:()=>l(!0)},a.formatMessage(Ke.Z.edit)),T.createElement(ue.zx,{className:F()("PSPDFKit-Link-Popover-Editor-Open-Button"),onClick:()=>{i((0,je.fz)()),i((0,$r.oo)(o))},primary:!0},a.formatMessage(e?yg.openLink:yg.goToPageLink))))}return T.createElement(mg,e)}),[o,i,a,e]),h=(0,T.useCallback)((()=>{switch(u){case dg:return f();case fg:return f(!0);default:return null}}),[u,f]);return T.createElement(cg.Z,{referenceRect:c,viewportState:t,isHidden:n,className:"PSPDFKit-Link-Editor-Popover",wrapperClassName:"PSPDFKit-Link-Editor",title:p,centeredTitle:u!==dg},h())}const yg=(0,Re.vU)({linkSettingsPopoverTitle:{id:"linkSettingsPopoverTitle",defaultMessage:"Link Settings",description:"Link settings popover title"},linkTo:{id:"linkTo",defaultMessage:"Link To",description:"Link to popover option"},linkToPage:{id:"linkToPage",defaultMessage:"Link to Page",description:"Link to page action"},targetPageLink:{id:"targetPageLink",defaultMessage:"Page Number",description:"Link settings popover target link"},linkSettings:{id:"linkSettings",defaultMessage:"Link Settings",description:"Link Settings"},uriLink:{id:"uriLink",defaultMessage:"Website",description:"Link to uri"},pageLink:{id:"pageLink",defaultMessage:"Page",description:"Link to a page"},openLink:{id:"openLink",defaultMessage:"Open Link",description:"Open link to a page"},goToPageLink:{id:"goToPageLink",defaultMessage:"Go to Page",description:"Go to a page link"},invalidPageNumber:{id:"invalidPageNumber",defaultMessage:"Enter a valid page number.",description:"Invalid page number"},invalidPageLink:{id:"invalidPageLink",defaultMessage:"Enter a valid page link.",description:"Invalid page link"}}),bg=e=>{var t,o,r,i;let{editor:s,closeInlineToolbar:l,container:c}=e;const u=(0,T.useCallback)((e=>{const[t]=ng.ML.nodes(e,{match:e=>!ng.ML.isEditor(e)&&ng.W_.isElement(e)&&"link"===e.type});return t}),[]),d=(0,T.useRef)(s&&(null===(t=u(s))||void 0===t||null===(o=t[0])||void 0===o?void 0:o.url)),[p,f]=T.useState(s?null===(r=u(s))||void 0===r||null===(i=r[0])||void 0===i?void 0:i.url:""),[h,m]=T.useState(!1),[g,v]=T.useState(!1),{formatMessage:y}=(0,Re.YB)(),b=T.useCallback((e=>{f(e.target.value)}),[f]),w=(0,T.useCallback)((e=>{ng.YR.unwrapNodes(e,{match:e=>!ng.ML.isEditor(e)&&ng.W_.isElement(e)&&"link"===e.type})}),[]),S=(0,T.useCallback)((e=>{if(!s)return;u(s)&&ue.ri.unwrapNode(s,"link");const{selection:t}=s,n=t&&ng.e6.isCollapsed(t);ue.ri.wrapNode(s,{type:"link",url:e,children:n?[{text:e,type:"text"}]:[]})}),[s,u]),E=T.useCallback((()=>{(0,a.kG)(s),p?S(p):w(s),l()}),[s,p,l,w,S]),P=T.useCallback((()=>{(0,a.kG)(s),w(s),l()}),[s,w,l]),x=T.useCallback((()=>!d.current||g?T.createElement("div",null,T.createElement("label",{htmlFor:"linkUrl"},y(Ke.Z.linkAnnotation)),T.createElement("input",{id:"linkUrl",placeholder:"https://yourdomain.com",value:p,type:"url",onChange:b,onKeyPress:e=>{"Enter"===e.key&&E()}})):T.createElement("div",{className:F()(tg().linkEditorMenu)},T.createElement("div",{className:F()(tg().linkEditorRow,tg().linkEditorCenteredRow)},T.createElement(ue.zx,{className:F()("PSPDFKit-Link-Popover-Editor-Edit-Button",tg().linkEditorFullWidthButton),onClick:()=>v(!0)},y(Ke.Z.edit)),T.createElement(ue.zx,{className:F()("PSPDFKit-Link-Popover-Editor-Open-Button",tg().linkEditorFullWidthButton),onClick:P,primary:!0},y(wg.removeLink))))),[y,b,g,p,P]),D=T.useCallback((()=>d.current&&!g?null:g?T.createElement("div",{className:F()(tg().linkSaveContainer,tg().linkEditorMenu)},T.createElement("div",{className:F()(tg().linkEditorRow,tg().linkEditorEndAlignedRow)},T.createElement(ue.zx,{className:F()("PSPDFKit-Link-Popover-Editor-Edit-Button",tg().linkEditorFooterButton),onClick:()=>v(!1)},y(Ke.Z.cancel)),T.createElement(ue.zx,{className:F()("PSPDFKit-Link-Popover-Editor-Open-Button",tg().linkEditorFooterButton),onClick:E,primary:!0},y(Ke.Z.save)))):T.createElement("button",{className:tg().removeLink,disabled:!p&&!d.current||d.current&&d.current===p&&!p,onClick:E},d.current?p&&d.current!==p?y(wg.editLink):y(wg.removeLink):y(wg.addLink))),[y,E,g,p]);return s?T.createElement(Xm.fC,{open:h,modal:!1},T.createElement(Xm.xz,{asChild:!0},T.createElement(qm,{onKeyDown:e=>{"Enter"!==e.key&&"Spacebar"!==e.key&&" "!==e.key||(e.nativeEvent.stopImmediatePropagation(),m(!h))},onClick:()=>m(!h),className:F()(tg().inlineToolbarButton,{[tg().linkActive]:!!u(s)}),title:y(wg.addLink),"aria-label":y(wg.addLink)},T.createElement(Ye.Z,{src:n(55676)}))),T.createElement(Xm.Uv,{container:c},T.createElement(Xm.VY,{onPointerDownOutside:()=>m(!1),className:F()(tg().linkEditor,"PSPDFKit-Rich-Link-Editor-Dropdown")},T.createElement("h4",{className:F()(tg().linkEditorHeader,{[tg().centeredLinkEditorHeader]:!(g||!d.current)})},g||!d.current?y(yg.linkSettings):d.current),x(),D(),T.createElement(Xm.Eh,{className:tg().linkEditorArrow})))):null},wg=(0,Re.vU)({addLink:{id:"addLink",defaultMessage:"Add Link",description:"Add Link"},removeLink:{id:"removeLink",defaultMessage:"Remove Link",description:"Remove Link"},editLink:{id:"editLink",defaultMessage:"Edit Link",description:"Edit Link"}});var Sg;function Eg(e){"Enter"!==e.key&&"Spacebar"!==e.key&&" "!==e.key||e.nativeEvent.stopImmediatePropagation()}const Pg=(0,Re.vU)({commentEditorLabel:{id:"commentEditorLabel",defaultMessage:"Add your comment…",description:"Label for comment area textarea"},reply:{id:"reply",defaultMessage:"Reply",description:"Button text for adding a comment reply"}}),xg=e=>{let{name:t,avatarUrl:o,description:r}=e;return T.createElement("div",{className:F()(tg().mentionDropdownList,{[tg().mentionDropdownListWithoutDescription]:!r})},o?T.createElement("img",{className:tg().mentionImg,src:o,alt:t}):T.createElement(Ye.Z,{className:tg().mentionImg,src:n(32443)}),T.createElement("span",{className:tg().mentionName},t),!!r&&T.createElement("span",{className:tg().mentionDescription},r))},Dg=e=>{let{color:t,onValueChange:n,children:o,includeTransparent:r,label:i,frameWindow:s}=e;const l=mt.Ei.COLOR_PRESETS,{formatMessage:c}=(0,Re.YB)(),[u,d]=T.useState(!1);return T.createElement(Xm.fC,{open:u,modal:!1},T.createElement(Xm.xz,{asChild:!0},T.createElement(qm,{"aria-label":i,title:i,onKeyDown:e=>{"Enter"!==e.key&&"Spacebar"!==e.key&&" "!==e.key||(e.nativeEvent.stopImmediatePropagation(),d(!u))},onClick:()=>d(!u),className:tg().inlineToolbarButton},o)),T.createElement(Xm.Uv,{container:s.document.body},T.createElement(Xm.VY,{align:"start",className:F()(tg().colorPickerContent,"PSPDFKit-Color-Picker-Dropdown"),asChild:!0,onPointerDownOutside:()=>d(!1),defaultValue:null!=t?t:"transparent"},T.createElement(Xm.Ee,{value:null!=t?t:"transparent",onValueChange:n},l.filter((e=>!!e.color&&!e.color.equals(j.Il.TRANSPARENT))).map((e=>{(0,a.kG)(e.color);const t=e.color.toHex();return T.createElement(Xm.Rk,{className:tg().colorPickerItem,value:t,key:t,"aria-label":c(e.localization),title:c(e.localization),asChild:!0},T.createElement("div",{style:{backgroundColor:t}}))})),r&&T.createElement(Xm.Rk,{className:tg().colorPickerItem,value:"transparent",asChild:!0},T.createElement("div",{className:tg().colorPickerCheckered},Sg||(Sg=T.createElement("div",null))))))))},Cg=e=>{let{comment:t,dispatch:o,isFirstComment:r,keepSelectedTool:s,onEditorInit:l,frameWindow:c,anonymousComments:u,isEditing:d,onChangeDone:p,className:f,mentionableUsers:h,maxMentionSuggestions:m}=e;const g=(0,T.useRef)(t),{formatMessage:v}=(0,Re.YB)(),[y,b]=T.useState(t.text.value&&ue.ri.getText(t.text.value).length>0),[w,S]=T.useState(t.text.value||""),E=T.useRef(null),[P,x]=T.useState(null),D=T.useRef(null),[C,k]=T.useState(!1),[A,O]=(0,T.useState)(null),I=(0,T.useRef)(null),M=T.useCallback((()=>{if(d)return;if(w===t.text.value)return;const e=t.set("text",{format:"xhtml",value:w.trim()});o((0,bi.gk)((0,i.aV)([e])))}),[o,t,w,d]),_=T.useCallback((()=>{if(!y)return;let e=t;d&&(e=e.set("text",{format:"xhtml",value:w.trim()})),o((0,bi.BY)(e,g.current));const n=e.rootId;(0,a.kG)(n),d||o((0,bi.mh)(n)),r&&o((0,je.Df)((0,i.l4)([n]),null)),s&&o((0,En.k6)()),null==p||p()}),[o,t,r,y,d,w,s,p]),R=T.useCallback((()=>{const e=t.set("isAnonymous",!t.isAnonymous);o((0,bi.gk)((0,i.aV)([e])))}),[t,o]),N=T.useCallback((e=>{C&&!e||((0,a.kG)(E.current),x(null),O(null),E.current.selection=null,Xh.F3.focus(E.current))}),[E.current,C]),L=(0,T.useCallback)((()=>{const e=E.current,t=c.getSelection();if(null==e||!e.selection||!D.current||!D.current.contains(null==t?void 0:t.anchorNode))return;if(!ue.ri.isRangeSelected(e))return x(null),void O(null);const n=Xh.F3.toDOMRange(e,e.selection).getBoundingClientRect(),o=D.current.getBoundingClientRect();O({fontColor:(0,qn.BK)(ue.ri.getSelectedNodesColor(e,"fontColor")),backgroundColor:(0,qn.BK)(ue.ri.getSelectedNodesColor(e,"backgroundColor")),inlineFormat:["bold","italic","underline"].map((t=>"underline"===t?ue.ri.isSelectionUnderlined(e):ue.ri.isMarkActive(e,t)?t:null)).filter(Boolean)}),x({height:n.height,width:n.width,top:n.top-o.top,left:n.left-o.left})}),[c]);(0,T.useEffect)((()=>{var e,t,n;const o=E.current;if(!o)return;function r(e){"Escape"===e.key?(N(!0),ue.ri.isRangeSelected(o)&&(e.preventDefault(),e.stopPropagation())):"Tab"===e.key&&(e.preventDefault(),e.stopPropagation())}function i(e){"keyup"===e.type&&k(!0)}const a=(0,Cc.Z)(L,50);return c.document.addEventListener("selectionchange",i),c.document.addEventListener("keyup",r,{capture:!0}),null===(e=D.current)||void 0===e||e.addEventListener("pointerup",L),null===(t=D.current)||void 0===t||t.addEventListener("keyup",a),null===(n=D.current)||void 0===n||n.addEventListener("dblclick",a),()=>{var e,t,n;c.document.removeEventListener("selectionchange",i),c.document.removeEventListener("keyup",r,{capture:!0}),null===(e=D.current)||void 0===e||e.removeEventListener("pointerup",L),null===(t=D.current)||void 0===t||t.removeEventListener("keyup",a),null===(n=D.current)||void 0===n||n.removeEventListener("dblclick",a)}}),[N,c.document,L]);const B=T.useCallback((e=>{null==l||l(e),E.current=e}),[l]),j=e=>{const t=E.current;(0,a.kG)(t),ue.ri.toggleMark(t,e),N()},z=T.useCallback((e=>{S(e),b(ue.ri.getText(e).length>0)}),[S,b]);return T.createElement("div",{className:F()(tg().commentWrapper,f,"PSPDFKit-Comment-Editor")},T.createElement("div",{ref:D,style:{position:"relative"},onBlur:M},T.createElement(ue.Hp,{title:v(Pg.commentEditorLabel),users:h,autoFocus:!!r,text:t.text.value||"",onMentionSuggestionsOpenChange:M,onEditorInit:B,onValueChange:z,placeholder:v(Pg.commentEditorLabel),className:F()(tg().commentEditorInput,"PSPDFKit-Comment-Editor-Input"),autoOpenKeyboard:!tt.TL&&!tt.Dt,mentionListRenderer:xg,mentionDropdownClassName:tg().mentionDropdown,mentionListClassName:tg().mentionDropdownListWrapper,ref:I,maxMentionSuggestions:m}),T.createElement(Qm,{rect:P,onInteractOutside:N,container:c.document.body,onOpenAutoFocus:e=>e.preventDefault(),contentClassName:"PSPDFKit-Comment-Editor-Inline-Toolbar"},T.createElement(Gm,{className:tg().inlineToolbar},T.createElement(Dg,{color:null==A?void 0:A.fontColor,onValueChange:e=>{ue.ri.applyStyle(E.current,"fontColor",e),N()},frameWindow:c,label:v(Ke.Z.color)},T.createElement("div",{role:"button",className:tg().inlineToolbarButton},T.createElement(Ye.Z,{src:n(19587)}),T.createElement(Ye.Z,{className:tg().caret,src:n(64762)}))),T.createElement(Wm,{className:tg().inlineToolbarSeparator}),T.createElement(Dg,{color:null==A?void 0:A.backgroundColor,onValueChange:e=>{ue.ri.applyStyle(E.current,"backgroundColor",e),N()},includeTransparent:!0,label:v(Ke.Z.fillColor),frameWindow:c},T.createElement("div",{role:"button",className:tg().inlineToolbarButton},T.createElement(Ye.Z,{src:n(59601)}),T.createElement(Ye.Z,{className:tg().caret,src:n(64762)}))),T.createElement(Wm,{className:tg().inlineToolbarSeparator}),T.createElement(Hm,{type:"multiple",value:null==A?void 0:A.inlineFormat,className:tg().inlineToolbarGroup},T.createElement($m,{onClick:()=>{j("bold")},value:"bold",className:tg().inlineToolbarButton,"aria-label":v(Ke.Z.bold),title:v(Ke.Z.bold)},T.createElement(Ye.Z,{role:"presentation",src:n(99604)})),T.createElement($m,{onClick:()=>j("italic"),value:"italic",className:tg().inlineToolbarButton,"aria-label":v(Ke.Z.italic),title:v(Ke.Z.italic)},T.createElement(Ye.Z,{role:"presentation",src:n(99082)})),T.createElement($m,{onClick:()=>j("underline"),value:"underline",className:tg().inlineToolbarButton,"aria-label":v(Ke.Z.underline),title:v(Ke.Z.underline)},T.createElement(Ye.Z,{role:"presentation",src:n(80394)}))),T.createElement(Wm,{className:tg().inlineToolbarSeparator}),T.createElement(bg,{container:c.document.body,editor:E.current,closeInlineToolbar:N})))),T.createElement("div",{className:tg().commentEditorActions},T.createElement("div",{className:tg().commentActionsFooter},!!h.length&&T.createElement("button",{className:tg().commentEditorAction,onClick:()=>{var e;null===(e=I.current)||void 0===e||e.startMention()},title:v(Ke.Z.anonymous),"aria-label":v(Ke.Z.anonymous)},T.createElement(Ye.Z,{role:"presentation",src:n(35122)})),!!u&&T.createElement("button",{className:F()(tg().commentEditorAction,{[tg().commentEditorAnonymityActive]:t.isAnonymous}),onClick:R,"aria-checked":!!t.isAnonymous,role:"checkbox",title:v(Ke.Z.anonymous),"aria-label":v(Ke.Z.anonymous)},T.createElement(Ye.Z,{role:"presentation",src:n(15445)}))),T.createElement("div",{className:tg().editingCommentText},d?T.createElement(T.Fragment,null,T.createElement("button",{type:"button",title:v(Ke.Z.discard),"aria-label":v(Ke.Z.discard),onClick:p,className:F()(tg().editingCommentActionButton,tg().editingCommentActionCancel)},T.createElement(Ye.Z,{src:n(4587)})),T.createElement("button",{title:v(Ke.Z.edit),"aria-label":v(Ke.Z.edit),type:"submit",className:F()(tg().editingCommentActionButton,tg().editingCommentActionSave),onClick:_},T.createElement(Ye.Z,{src:n(33862)}))):T.createElement("button",{title:v(r?Ke.Z.commentAction:Pg.reply),"aria-label":v(r?Ke.Z.commentAction:Pg.reply),className:F()(tg().editingCommentActionButton,tg().editingCommentActionSaveNew,"PSPDFKit-Comment-Editor-Save-Button"),disabled:!y,"aria-disabled":!y,onKeyDown:Eg,onClick:_},T.createElement(Ye.Z,{src:n(96447)})))))};var kg,Ag,Og=n(37676);const Tg=e=>e.children;const Ig=(0,A.$j)((function(e,t){return{isReadOnly:(0,So.Ez)(t.comment,e),canDeleteCommentCP:!!(0,oi.Ss)(t.comment,e),canEditCommentCP:!!(0,oi.kR)(t.comment,e),dateTimeStringCallback:e.dateTimeString,frameWindow:e.frameWindow,anonymousComments:e.anonymousComments,mentionableUsers:e.mentionableUsers}}))((function(e){const{comment:t,onToggleContent:n,dispatch:o,isGrouped:r,isExpanded:i,isReadOnly:a,canDeleteCommentCP:s,canEditCommentCP:l,dateTimeStringCallback:c,frameWindow:u,anonymousComments:d,mentionableUsers:p,maxMentionSuggestions:f}=e,{text:h,isAnonymous:m}=t,g=i&&!a&&s,v=i&&!a&&l,[y,b]=T.useState(!1),[w,S]=T.useState(!1);T.useEffect((()=>{!i&&w&&S(!1)}),[i,w]);const E=(0,qn.KY)(h.value||"").length>120,[P,x]=T.useState(!E),D=`Comment-${t.id}`,C=T.useCallback((e=>{E&&(e.stopPropagation(),x(!P),n&&n(!P))}),[P,E,x,n]),k=T.useCallback((()=>{o((0,bi.UM)(t))}),[t,o]),{formatDate:A,formatMessage:O}=(0,Re.YB)();let I="?";null==t.creatorName||t.isAnonymous||(I=t.creatorName.split(" ").map((e=>e[0])).join(" "));const M=O(P?Ke.Z.showLess:Ke.Z.showMore);let _=null;c&&(_=c({dateTime:t.createdAt,element:Nu.COMMENT_THREAD,object:t})),null==_&&(_=A(t.createdAt,{hour12:!0,hour:"numeric",minute:"numeric",month:"short",day:"numeric"}));const R=T.useCallback((e=>{const n=t.set("isAnonymous",!!e);o((0,bi.DO)(n)),S(!1)}),[t,o]),N=T.useMemo((()=>{const e=[];return v&&e.push({content:O(Yu.editContent),onClick:()=>{S(!0)}}),g&&e.push({content:O(Ke.Z.delete),onClick:()=>{b(!0)}}),v&&d&&e.push(kg||(kg=T.createElement(ue.nB,null)),T.createElement(ue.ub,{checked:!!m,onCheckedChange:R},O(Ke.Z.anonymous))),e}),[m,g,O,v,R]);return T.createElement("div",{className:F()(tg().comment,"PSPDFKit-Comment")},T.createElement("div",{className:F()(tg().header,"PSPDFKit-Comment-Header")},!r&&T.createElement("div",{className:F()(tg().avatar,"PSPDFKit-Comment-Avatar")},T.createElement(Ie,{key:t.creatorName,renderer:"CommentAvatar"},T.createElement(Tg,{comment:t},T.createElement("span",{title:t.isAnonymous?O(Ke.Z.anonymous):t.creatorName||void 0},I)))),T.createElement("div",{className:tg().nameAndDate},!r&&T.createElement("div",{className:F()(tg().creatorName,"PSPDFKit-Comment-CreatorName")},m?O(Ke.Z.anonymous):t.creatorName||O(Ke.Z.anonymous)),T.createElement("time",{dateTime:t.createdAt.toISOString(),className:F()(tg().commentDate,"PSPDFKit-Comment-CommentDate")},_)),!!N.length&&T.createElement(ue.N9,{container:null==u?void 0:u.document.body,label:O(Yu.commentOptions),items:N,alignContent:"end",className:tg().dropdownWrapper})),w?T.createElement(Cg,{maxMentionSuggestions:f,mentionableUsers:p,className:tg().editingCommentWrapper,comment:t,isEditing:!0,frameWindow:u,anonymousComments:d,dispatch:o,keepSelectedTool:!1,onChangeDone:()=>S(!1)}):T.createElement("div",{className:F()(tg().commentText,"PSPDFKit-Comment-Text")},T.createElement("div",{onClick:e=>{"A"===e.target.nodeName&&((0,Og.l)(e.target.href,!0),e.stopPropagation(),e.preventDefault())},className:P?void 0:tg().notExpanded,id:D,dangerouslySetInnerHTML:{__html:h.value||""}})),(g||E)&&T.createElement("div",{className:F()(tg().commentActions,"PSPDFKit-Comment-Actions")},E?T.createElement(ue.w6,{ariaControls:D,onPress:E?C:void 0,expanded:P,className:F()(tg().commentToggle,"PSPDFKit-Comment-Toggle")},T.createElement("span",{className:tg().showMore,title:M},M)):Ag||(Ag=T.createElement("div",null)),g&&y&&T.createElement($u.Z,{onConfirm:k,onCancel:()=>{b(!1)},accessibilityLabel:O(Yu.deleteCommentConfirmAccessibilityLabel),accessibilityDescription:O(Yu.deleteCommentConfirmAccessibilityDescription)},T.createElement("p",null,O(Yu.deleteCommentConfirmMessage)))))})),Fg=Ig,Mg=T.forwardRef((function(e,t){const{comments:n,rootId:o,isExpanded:r,dispatch:i,commentThread:s,onUpdate:l,isSelected:c,keepSelectedTool:u,frameWindow:d,anonymousComments:p,mentionableUsers:f,maxMentionSuggestions:h}=e,{formatMessage:m}=(0,Re.YB)(),g=T.useRef(null),v=T.useRef(c);T.useEffect((()=>{const e=v.current,t=setTimeout((()=>{e&&c&&g.current&&Xh.F3.focus(g.current)}),150);return v.current=!1,()=>{t&&clearTimeout(t)}}),[c]);const y=T.useCallback((e=>{null!=l&&l(o,r,e)}),[r,l,o]);return T.createElement("div",{className:F()("PSPDFKit-Comment-Thread",tg().commentThread,{"PSPDFKit-Comment-Thread-Selected":c,"PSPDFKit-Comment-Thread-Expanded":r}),ref:t},n.map(((t,o)=>{(0,a.kG)(null!==t,"Comment must not be null");const l=0===o;if((0,Ml.kT)(t))return T.createElement("div",{className:F()(tg().commentFooter,tg().commentFooterEditor),key:`draft-${t.id}`,onFocus:()=>{v.current=!0}},T.createElement(Cg,{maxMentionSuggestions:h,mentionableUsers:f,isFirstComment:l,comment:t,dispatch:e.dispatch,onEditorInit:e=>g.current=e,keepSelectedTool:u,frameWindow:d,anonymousComments:p}));const c=o>0&&n.get(o-1),m=!!c&&(c.creatorName!==t.creatorName||t.isAnonymous||c.isAnonymous);return T.createElement(T.Fragment,{key:t.id||void 0},r&&s.size>1&&o>0?T.createElement("div",{className:m?tg().separatorDifferentAuthor:tg().separatorSameAuthor}):null,T.createElement(Fg,{maxMentionSuggestions:h,isExpanded:r,comment:t,onToggleContent:()=>y(l),isGrouped:0!==o&&!m,dispatch:i}))})),s.size>1&&!r&&T.createElement("div",{className:F()(tg().commentFooter,tg().moreComments)},T.createElement("div",null,m(Ke.Z.nMoreComments,{arg0:s.size-1})),T.createElement(_e.Z,{className:tg().showMore},m(Ke.Z.showMore))))}));var _g=n(49200);function Rg(e){let{selectedAnnotation:t,viewportState:o,keepSelectedTool:r,anonymousComments:s,frameWindow:l,commentThread:c,comments:u,maxMentionSuggestions:d,mentionableUsers:p}=e;const{formatMessage:f}=(0,Re.YB)(),h=(0,A.I0)(),[m,g]=(0,fi.U5)({threshold:.2}),v=T.useRef(null);let y,b;y=t instanceof _g.Z?(0,$i.q)((0,J.Wj)(t,o.pagesRotation,o.viewportRect.getSize()).apply((0,de.cr)(o,t.pageIndex).translate(o.scrollPosition.scale(o.zoomLevel))),o.viewportRect.getSize()):t.boundingBox.apply((0,de.cr)(o,t.pageIndex).translate(o.scrollPosition.scale(o.zoomLevel)));const w=c.reduce(((e,t)=>{const n=u.get(t);return(0,a.kG)(n),(0,Ml.kT)(n)?b=n:e=e.push(n),e}),(0,i.aV)());return T.createElement(cg.Z,{referenceRect:y,viewportState:o,className:"PSPDFKit-Comment-Thread-Popover",wrapperClassName:F()(tg().commentThreadPopover,"PSPDFKit-Comment-Thread"),footerClassName:F()(tg().commentThreadPopoverFooter,{[tg().commentThreadPopoverFooterEmpty]:0===w.size}),innerWrapperClassName:tg().innerWrapper,title:f(Ke.Z.comment),footer:T.createElement("div",{className:F()(tg().commentFooter,tg().commentFooterEditor),key:b.id},T.createElement(Cg,{isFirstComment:0===w.size,comment:b,dispatch:h,keepSelectedTool:r,frameWindow:l,anonymousComments:s,maxMentionSuggestions:d,mentionableUsers:p}))},T.createElement("div",{className:tg().commentThread},w.map(((e,t)=>{const n=t>0&&w.get(t-1),o=!!n&&(n.creatorName!==e.creatorName||e.isAnonymous||n.isAnonymous);return T.createElement(T.Fragment,{key:e.id||void 0},c.size>1&&t>0?T.createElement("div",{ref:t===w.size-1?m:null,className:o?tg().separatorDifferentAuthor:tg().separatorSameAuthor}):null,T.createElement("div",{ref:w.size-1===t?e=>{v.current=e,m(e)}:null},T.createElement(Fg,{isExpanded:!0,comment:e,isGrouped:0!==t&&!o,dispatch:h,maxMentionSuggestions:d})))})),!1===g.isIntersecting&&T.createElement("div",{className:tg().moreCommentsContainer},T.createElement("div",{className:tg().moreCommentsContent,role:"button",onClick:()=>{v.current&&v.current.scrollIntoView({block:"nearest",inline:"nearest"})}},T.createElement(Ye.Z,{className:tg().moreCommentsIcon,src:n(96447)}),f(Yu.moreComments)))))}const Ng=T.memo((function(e){let{annotations:t,selectedAnnotation:n,comments:o,commentThreads:r,viewportState:s,dispatch:l,keepSelectedTool:c,frameWindow:u,anonymousComments:d,mentionableUsers:p,maxMentionSuggestions:f}=e;const h=T.useCallback(((e,t)=>{Kg(e),n&&n.id===t.id||(l((0,bi.Dm)()),l((0,je.Df)((0,i.l4)([t.id]),null)))}),[l,n]);if(s.commentMode===Yh._.PANE){(0,a.kG)(n);const e=r.get(n.id);return e?T.createElement(Bg,{maxMentionSuggestions:f,mentionableUsers:p,comments:o,commentThread:e,id:n.id,viewportState:s,onThreadClick:Kg,dispatch:l,keepSelectedTool:c,frameWindow:u,anonymousComments:d}):null}if(s.zoomMode===Xs.c.FIT_TO_WIDTH){if(!n)return null;const e=r.get(n.id);return e?T.createElement(Rg,{selectedAnnotation:n,comments:o,commentThread:e,anonymousComments:d,viewportState:s,keepSelectedTool:c,frameWindow:u,mentionableUsers:p,maxMentionSuggestions:f}):null}return T.createElement(Lg,{maxMentionSuggestions:f,mentionableUsers:p,annotations:t,selectedAnnotation:n,comments:o,commentThreads:r,viewportState:s,onThreadClick:h,dispatch:l,keepSelectedTool:c,frameWindow:u,anonymousComments:d})})),Lg=T.memo((function(e){let{annotations:t,selectedAnnotation:n,comments:o,commentThreads:r,viewportState:i,onThreadClick:s,dispatch:l,keepSelectedTool:c,frameWindow:u,anonymousComments:d,mentionableUsers:p,maxMentionSuggestions:f}=e;const h=function(e,t,n){const{scrollMode:o,layoutMode:r,currentPageIndex:i}=n,a=o===nl.G.PER_SPREAD||o===nl.G.DISABLED?i:null,s=T.useMemo((()=>n),[r,o,a]),l=T.useMemo((()=>{if(s.scrollMode===nl.G.PER_SPREAD||s.scrollMode===nl.G.DISABLED){const n=(0,Hs.P1)(s,(0,Hs.dF)(s,s.currentPageIndex));return t.filter(((t,o)=>{const r=e.get(o);return r&&n.includes(r.pageIndex)}))}return t}),[s,e,t]);return T.useMemo((()=>l.sortBy(((t,n)=>{const o=e.get(n);if(!o)return[0,0];return[(0,Hs.dF)(s,o.pageIndex),o.boundingBox.top]}),ze.b)),[s,l,e])}(t,r,i),{selectedOffset:m,threadElements:g,totalHeight:v}=function(e,t,n,o,r,i,s,l,c,u,d,p){const{currentPageIndex:f,viewportRect:h,layoutMode:m}=r,g=h.height,v=m===C.X.SINGLE?4:8,y=T.useCallback(((e,t,n)=>{n&&delete jg[zg(e,!1)],delete jg[zg(e,t)],S({})}),[]),b=T.useMemo((()=>o.map(((t,n)=>{const o=e.get(n);return o&&"number"==typeof o.pageIndex?(0,Ml.nN)(o,r):-1}))),[e,o,r]),[w,S]=T.useState({}),{formatMessage:E}=(0,Re.YB)();return T.useMemo((()=>{let r=0,h=0,m=null,w=null,P=0;const x=o.map(((o,x,D)=>{var C,k;const A=e.get(x);if(!A||"number"!=typeof A.pageIndex)return null;let O=!1;if((0,Ml._P)(o,n)){const e=o.last();(0,a.kG)(null!=e);const t=n.get(e);(0,a.kG)(null!=t),O=t.text.value.length>0}const I=Boolean(t&&t.id===A.id),M=Boolean(I||O);let _=jg[zg(x,M)];if(null!=_){const e=!M&&_.threadCommentIds.first()!==o.first(),t=!M&&(o.size>=2&&_.threadCommentIds.size<=1||o.size<=1&&_.threadCommentIds.size>=2),n=M&&!o.equals(_.threadCommentIds);(e||t||n)&&(delete jg[zg(x,M)],_=null)}const R=_&&_.height||(M?.4*g:80);let N=b.get(x),L="number"==typeof N&&-1!==N?N:R;N=L,Lf+v))return null;const j=!_;let z;j&&(P++,z=function(e){e&&(jg[zg(x,M)]={height:e.offsetHeight,threadCommentIds:o},P--,0===P&&S({}))}),I&&(h=L-N,m=L,w=D);const K=(M?o:o.take(1)).map((e=>{const t=n.get(e);return(0,a.kG)(null!=t),t})).toList(),Z=M?E(Zg.commentThread):E(Zg.commentDialogClosed,{arg0:null===(C=K.first())||void 0===C?void 0:C.creatorName,arg1:null===(k=K.first())||void 0===k?void 0:k.text.value});return T.createElement(pt.Z,{key:x,onPointerUp:Kg},T.createElement("div",{onClick:Kg,style:{transform:`translate(${I&&!j?-40:0}px, ${L}px)`,visibility:j?"hidden":void 0,width:Je.h8,height:j?"auto":R},className:F()(tg().commentThreadWrapper,"PSPDFKit-Comment-Thread-Wrapper",{"PSPDFKit-Comment-Thread-Wrapper-Expanded":M,"PSPDFKit-Comment-Thread-Wrapper-Selected":I,[tg().commentThreadWrapperExpanded]:M})},T.createElement(_e.Z,{is:"div",disabled:I,onClick:e=>i(e.nativeEvent,A),role:I?"dialog":"button","aria-label":Z,"aria-disabled":void 0},T.createElement(Mg,{maxMentionSuggestions:d,mentionableUsers:u,comments:K,commentThread:o,rootId:A.id,dispatch:s,onUpdate:y,ref:z,isExpanded:M,isSelected:I,keepSelectedTool:l,frameWindow:c,anonymousComments:p}))))})).valueSeq();return{selectedIndex:w,selectedOffset:h,selectedTop:m,threadElements:x,totalHeight:r}}),[n,o,e,b,t,f,g,v,i,s,w])}(t,n,o,h,i,s,l,c,u,p,f,d),{formatMessage:y}=(0,Re.YB)(),b=T.useMemo((()=>{const e=(0,de.G4)(i);return Math.ceil(e.left)+e.width+i.viewportPadding.x}),[i]);return T.createElement("aside",{style:{height:v+2*i.viewportPadding.y,flex:`0 0 ${Je.h8}px`,transform:`translate(${b}px, -${m}px)`,width:Je.h8},className:F()(tg().commentThreads,"PSPDFKit-Comment-Threads"),"aria-label":y(Ke.Z.comments)},g)})),Bg=T.memo((function(e){let{id:t,comments:n,commentThread:o,dispatch:r,viewportState:i,onThreadClick:s,keepSelectedTool:l,frameWindow:c,anonymousComments:u,mentionableUsers:d,maxMentionSuggestions:p}=e;const{formatMessage:f}=(0,Re.YB)(),h=T.useMemo((()=>o.map((e=>{const t=n.get(e);return(0,a.kG)(t),t})).toList()),[o,n]);return T.createElement(k.m,null,T.createElement(pt.Z,{onPointerUp:s},T.createElement("aside",{style:{height:i.viewportRect.height/2},className:F()(tg().commentThreads,tg().commentThreadsSmall,"PSPDFKit-Comment-Threads"),"aria-label":f(Ke.Z.comments)},T.createElement("div",{className:"PSPDFKit-Comment-Thread PSPDFKit-Comment-Thread-Expanded"},T.createElement(Mg,{maxMentionSuggestions:p,mentionableUsers:d,comments:h,commentThread:o,rootId:t,dispatch:r,isExpanded:!0,isSelected:!0,keepSelectedTool:l,frameWindow:c,anonymousComments:u})))))}));const jg={};function zg(e,t){return`${e}-${t?"expanded":"collapsed"}`}function Kg(e){e.stopPropagation()}const Zg=(0,Re.vU)({commentDialogClosed:{id:"commentDialogClosed",defaultMessage:"Open comment thread started by {arg0}: “{arg1}â€",description:"With the dialog closed, show the author of the comment and the number of replies."},commentThread:{id:"commentThread",defaultMessage:"Comment Thread",description:"Comment thread."}});var Ug,Vg,Gg=n(93162),Wg=n.n(Gg),qg=n(6969),Hg=n.n(qg);class $g extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"rootRef",T.createRef()),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"_handleOnClose",(()=>{this.props.dispatch((0,En.Sn)())})),(0,o.Z)(this,"_download",(()=>{Wg().saveAs(this._getBlob(),`PSPDFKit-for-Web-Debug-Output-${Date.now()}.txt`)}))}_getDebugOutput(){const e=document.documentElement;if((0,a.kG)(e,"externalDocumentElement must not be null"),this.rootRef.current){const t=this.rootRef.current.ownerDocument.documentElement;return(0,a.kG)(t,"internalDocumentElement must not be null"),`-----BEGIN VERSION-----\n PSPDFKit for Web Version: 2023.4.0 (80c992b150)\n PSPDFKit Server Version: 2023.4.0\n -----END VERSION-----\n\n -----BEGIN CLIENT INFO-----\n User Agent: ${navigator.userAgent}\n Language: ${navigator.language}\n Engine: ${tt.SR}\n System: ${tt.By}\n Pixel ratio: ${(0,Ft.L)()}\n -----END CLIENT INFO-----\n\n -----BEGIN EXTERNAL HTML-----\n ${e.innerHTML}\n -----END EXTERNAL HTML-----\n\n -----BEGIN INTERNAL HTML-----\n ${t.innerHTML}\n -----END INTERNAL HTML-----\n `}}_getBlob(){return new Blob([this._getDebugOutput()],{type:"text/plain;charset=utf-8"})}render(){return T.createElement(yf.Z,{onDismiss:this._handleOnClose},T.createElement("div",{className:Hg().root,ref:this.rootRef},T.createElement("div",{className:Hg().header},Ug||(Ug=T.createElement("h2",null,"Debug Output")),Vg||(Vg=T.createElement("p",null,"When reporting an issue to support, please provide the debug output. The output contains the PSPDFKit for Web version, information about your device, a snapshot of the current DOM. Please submit new support requests via our"," ",T.createElement("a",{target:"_blank",href:"https://pspdfkit.com/support/request"},"support form"),".")),T.createElement(ue.zx,{onClick:this._download},"Download Debug Output"))))}}class Yg extends T.Component{constructor(){var e;super(...arguments),e=this,(0,o.Z)(this,"onConfirm",(()=>{if(this.props.setA11yStatusMessage){const{formatMessage:e}=this.props.intl;this.props.setA11yStatusMessage(e(Jg.annotationDeleted))}const e={annotations:(0,i.aV)(this.props.annotations),reason:u.f.DELETE_END};this.props.eventEmitter.emit("annotations.willChange",e),this.props.annotations.forEach((e=>{this.props.dispatch((0,Qt.hQ)(e))})),this.onCancel(!1),this.props.dispatch((0,je.fz)())})),(0,o.Z)(this,"onCancel",(function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(e.props.dispatch((0,Qt.d8)(null)),t){const t={annotations:(0,i.aV)(),reason:u.f.DELETE_END};e.props.eventEmitter.emit("annotations.willChange",t)}}))}render(){const{formatMessage:e}=this.props.intl;return T.createElement($u.Z,{onConfirm:this.onConfirm,onCancel:this.onCancel,accessibilityLabel:e(Jg.deleteAnnotationConfirmAccessibilityLabel),accessibilityDescription:e(Jg.deleteAnnotationConfirmAccessibilityDescription),"aria-atomic":!0,restoreOnClose:!1},T.createElement("p",null,e(Jg.deleteAnnotationConfirmMessage)))}}const Xg=(0,Re.XN)(Yg),Jg=(0,Re.vU)({deleteAnnotationConfirmMessage:{id:"deleteAnnotationConfirmMessage",defaultMessage:"Are you sure you want to delete this annotation?",description:'Message displayed in the "Delete Annotation" confirm dialog'},deleteAnnotationConfirmAccessibilityLabel:{id:"deleteAnnotationConfirmAccessibilityLabel",defaultMessage:"Confirm annotation deletion",description:'Accessibility label (title) for the "Delete Annotation" confirm dialog'},deleteAnnotationConfirmAccessibilityDescription:{id:"deleteAnnotationConfirmAccessibilityDescription",defaultMessage:"Dialog allowing the user to confirm or cancel deleting the annotation",description:'Accessibility description for the "Delete Annotation" confirm dialog'},annotationDeleted:{id:"annotationDeleted",defaultMessage:"Annotation deleted.",description:"An annotation has been deleted."}});function Qg(e){let{locale:t}=e;const n=(0,T.useRef)(null);return(0,T.useEffect)((function(){const e=n.current;if(!e)return;const o=e.ownerDocument.documentElement;o&&(o.lang=t)}),[t]),T.createElement("div",{ref:n})}var ev=n(32170),tv=n(94358),nv=n.n(tv);function ov(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function rv(e){for(var t=1;t{const{isBold:i,isItalic:a,children:s,action:l,color:c}=e,u=`${this.props.parentLevel}-${r}`;let d=t.get(u);"boolean"!=typeof d&&(d=e.isExpanded);const p=s.size>0,f=T.createElement("span",{className:F()(nv().controlContainer,{[nv().controlContainerNoIcon]:!p,[nv().controlContainerNavigationDisabled]:!p&&n})},p&&T.createElement("span",{onClick:e=>{e.stopPropagation(),this.props.onPress(u,null,p)}},T.createElement(Ze.Z,{type:"caret",className:F()(nv().icon,d&&nv().iconExpanded),style:{width:24,height:24}})),T.createElement("span",{className:nv().control,style:rv({fontWeight:i?"bold":void 0,fontStyle:a?"italic":void 0},c?{color:c.toCSSValue()}:null)},e.title)),h=()=>{this.props.onPress(u,l,p)},m=o?t=>o(t,e):void 0;if(!p||!d)return T.createElement(ue.w6,{key:u,onPress:h,expanded:!1,autoFocus:0===r&&"0"===this.props.parentLevel,headingRef:m},f);const g=`outline-control-${u}`;return T.createElement("div",{key:u,ref:m},T.createElement(ue.w6,{onPress:h,expanded:d,ariaControls:g,autoFocus:0===r&&"0"===this.props.parentLevel},f),T.createElement(ue.F0,{expanded:d,id:g},T.createElement("div",{className:nv().content},T.createElement(iv,{parentLevel:u,onPress:this.props.onPress,outlineElements:s,expanded:t,navigationDisabled:n,onRenderItemCallback:o}))))}))}}(0,o.Z)(iv,"defaultProps",{parentLevel:"0"});var av,sv=n(42952),lv=n.n(sv),cv=n(60493),uv=n.n(cv);const dv=T.memo((function(e){const{outlineElements:t,expanded:n,backend:o,documentHandle:r,navigationDisabled:i,closeOnPress:s=!1}=e,[l,c]=T.useState(null);T.useEffect((()=>{null==l||l.focus()}),[l]);const u=(0,A.I0)();T.useEffect((()=>{t||((0,a.kG)(o),o.getDocumentOutline().then((e=>{u((0,ev.o)(e))})))}),[]);const d=(0,fi.jC)(e);T.useEffect((()=>{r===(null==d?void 0:d.documentHandle)||t||((0,a.kG)(o),o.getDocumentOutline().then((e=>{u((0,ev.o)(e))})))}));const p=(0,fi.R9)(((e,t,n)=>{n&&u((0,ev.Q)(e)),i||(setTimeout((()=>{t&&u((0,$r.aG)(t))})),s&&!n&&u((0,En.mu)()))})),f=t||null,h=(0,fi.Bo)(l,f),m=(0,fi.mP)(h,(e=>e.title),(e=>null==f?void 0:f.find((t=>t.title===e)))),g=F()(nv().container,!t&&nv().empty+" PSPDFKit-Sidebar-Loading",t&&0===t.size&&nv().empty+" PSPDFKit-Sidebar-Empty","PSPDFKit-Sidebar-Document-Outline"),{formatMessage:v}=(0,Re.YB)();return f?0===f.size?T.createElement("div",{className:g,ref:c},v(pv.noOutline)):T.createElement("div",{className:g,role:"region","aria-label":v(pv.outline),ref:c},T.createElement("div",{className:uv().sidebarHeader},T.createElement("h2",{"aria-hidden":"true",className:F()(lv().heading,"PSPDFKit-Sidebar-Document-Outline-Heading")},T.createElement("span",null,v(pv.outline)))),T.createElement(iv,{outlineElements:f,expanded:n,onPress:p,navigationDisabled:i,onRenderItemCallback:m})):T.createElement("div",{className:g,ref:c},av||(av=T.createElement(Xe.Z,null)))})),pv=(0,Re.vU)({noOutline:{id:"noOutline",defaultMessage:"No Outline",description:"Message shown when there is no document outline / table of contents"},outline:{id:"outline",defaultMessage:"Outline",description:"Outline"}});class fv extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"_handleKeydown",(e=>{const t=this.props.document.activeElement;this.props.hasSelectedAnnotations||t&&"BODY"!==t.tagName&&(0,jr.Qu)(t)||e.shiftKey||e.metaKey||e.ctrlKey||e.alt||(e.keyCode===Sr.P9&&this._handleKeyLeft(),e.keyCode===Sr.gs&&this._handleKeyRight())})),(0,o.Z)(this,"_handleKeyRight",(()=>{const e=(0,$s.TW)(this.props.viewportState);Math.ceil(this.props.viewportState.scrollPosition.x)>=Math.floor(e.x)&&this.props.dispatch((0,Eu.fz)())})),(0,o.Z)(this,"_handleKeyLeft",(()=>{Math.floor(this.props.viewportState.scrollPosition.x)<=0&&this.props.dispatch((0,Eu.IT)())}))}componentDidMount(){this.props.document.addEventListener("keydown",this._handleKeydown)}componentWillUnmount(){this.props.document.removeEventListener("keydown",this._handleKeydown)}render(){const{children:e}=this.props;return void 0===e?null:e}}var hv=n(59271),mv=n(25644),gv=n(92234),vv=n(29165);function yv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function bv(e){for(var t=1;t{const{viewportState:{currentPageIndex:u},formFields:d}=c();if(n instanceof j.x_){const r=d.get(n.formFieldName)||l;(0,a.kG)(r,`Form field with name "${n.formFieldName}" not found`);const c=(0,J.xc)(),p="cut"===o?n.formFieldName:`${null==r?void 0:r.name} copy`;let f=n.set("id",c).set("formFieldName",p).set("boundingBox",s?n.boundingBox.translate(s):n.boundingBox).delete("group").delete("pdfObjectId");o&&(f=f.set("pageIndex",u));let h=r.set("name",p).set("annotationIds",r.annotationIds.map((e=>e===n.id?c:e))).set("id",(0,ks.C)()).delete("group").delete("pdfObjectId");r.options&&"cut"!==o&&(h=h.set("options",(0,i.aV)([r.options.get(0).set("value",`${r.options.get(0).value}_1`)])).set("annotationIds",(0,i.aV)([c]))),e((0,Qt.$d)(f)),e((0,Mo.kW)(h)),t(bv({annotation:f,formField:h,originalAnnotation:n,originalFormField:r},o&&{previousAction:o.toUpperCase()}))}else{let i=n.set("id",(0,J.xc)()).delete("pdfObjectId");if(s&&(i=pa(i,s)),o&&(i=i.set("pageIndex",u)),"imageAttachmentId"in n&&n.imageAttachmentId&&r){let t;try{t=await r}catch(e){throw new a.p2(`Could not retrieve attachment data: ${e.message}`)}(0,a.kG)(t,"Attachment not found");const{hash:n}=await(0,He.uq)(t),o=new j.Pg({data:t});e((0,vv.O)(n,o)),i=i.set("imageAttachmentId",n)}e((0,Qt.$d)(i)),t(bv({annotation:i,originalAnnotation:n},o&&{previousAction:o.toUpperCase()}))}}}function Sv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ev(e){for(var t=1;t{const{annotations:e,selectedAnnotationsIds:t,backend:n}=this.props,o=null==e?void 0:e.filter((e=>null==t?void 0:t.has(e.id))).valueSeq().toArray();return null==o?void 0:o.map((e=>{let t;return e instanceof j.sK&&e.imageAttachmentId&&(t=null==n?void 0:n.getAttachment(e.imageAttachmentId)),{annotation:e,attachmentBlobPromise:t}}))})),(0,o.Z)(this,"handleKeyDown",(async e=>{const{dispatch:t,selectedAnnotationsIds:n,commentThreads:o,isPrinting:r,printingEnabled:s,canDeleteSelectedAnnotationCP:l,selectedAnnotation:c,eventEmitter:u,backend:d,formFields:p,areClipboardActionsEnabled:f,modalClosurePreventionError:h,setModalClosurePreventionError:m,annotations:g,frameWindow:v,isMultiSelectionEnabled:y,contentEditorSession:b,interactionMode:w}=this.props;if((0,a.kG)(d,"backend is required"),e.metaKey&&e.ctrlKey)return;if(this.props.canUndo&&(e.metaKey||e.ctrlKey)&&!e.shiftKey&&e.keyCode===Sr.gx&&!(0,jr.eR)(e.target))return t((0,gv.Yw)()),void e.preventDefault();if(this.props.canRedo&&!(0,jr.eR)(e.target)&&(e.metaKey||e.ctrlKey)&&e.shiftKey&&e.keyCode===Sr.gx)return t((0,gv.KX)()),void e.preventDefault();if(f&&(e.metaKey||e.ctrlKey)&&e.keyCode===Sr.b8&&e.shiftKey&&n&&n.size>0&&(e.preventDefault(),this.props.selectedGroupId?t((0,En.UZ)(this.props.selectedGroupId)):(0,A.dC)((()=>{n.forEach((e=>{var n;const o=null===(n=this.props.annotationsGroups)||void 0===n?void 0:n.find((t=>{let{annotationsIds:n}=t;return n.has(e)}));o&&t((0,En.of)(e,o.groupKey))}))}))),e.shiftKey)return;f&&(e.metaKey||e.ctrlKey)&&e.keyCode===Sr.b8&&n&&n.size>0&&(e.preventDefault(),t((0,En._R)(n))),(e.ctrlKey&&e.keyCode===Sr.j4||e.metaKey&&e.keyCode===Sr.j4)&&(t((0,je.fz)()),t((0,Dc.Xe)()),e.preventDefault()),(e.metaKey||e.ctrlKey)&&e.keyCode===Sr.iT&&(!r&&s&&t((0,mv.S0)()),e.preventDefault(),e.stopImmediatePropagation()),(e.metaKey||e.ctrlKey)&&e.keyCode===Sr.AV&&(t((0,Eu.kr)()),e.preventDefault()),(e.metaKey||e.ctrlKey)&&e.keyCode===Sr.d2&&(t((0,Eu.vG)()),e.preventDefault()),(e.metaKey||e.ctrlKey)&&e.keyCode===Sr.Cp&&(t((0,Eu._R)()),e.preventDefault());const{copiedOrCutAnnotations:S}=this.state;var E,P,D;if(f&&(e.ctrlKey||e.metaKey)&&S&&"v"===e.key&&(e.preventDefault(),e.stopPropagation(),t((E=S,(e,t)=>{const{eventEmitter:n,viewportState:{currentPageIndex:o}}=t();E.forEach((t=>{const r="copy"===t.previousAction&&t.annotation.pageIndex===o;e(wv(bv(bv({},t),r&&{offset:new j.E9({x:20,y:20})}),(e=>{n.emit("annotations.paste",e)})))}))})),this.setState({copiedOrCutAnnotations:null})),f&&y&&(e.ctrlKey||e.metaKey)&&"a"===e.key){var C;const n=null==v?void 0:v.document.activeElement,o=n&&(0,jr.eR)(n),r=null===(C=window.top)||void 0===C?void 0:C.document.activeElement,i=r&&(0,jr.eR)(r);if(o||i)return;e.preventDefault(),e.stopPropagation();const a=null==g?void 0:g.filter((e=>e.pageIndex===this.props.currentPageIndex)).map((e=>e.id));a&&(0,A.dC)((()=>{t((0,je.fz)()),t((0,je.Df)(a.toSet(),null))}))}if(b.active&&b.textBlockInteractionState.state===Gl.FP.Selected&&["Del","Delete","Backspace"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),t((0,Su.u)(Gl.wR.Delete))),n&&n.size>0&&!(0,jr.eR)(e.target))if(!["Del","Delete","Backspace"].includes(e.key)||o&&n.some((e=>o.has(e)))||!l){if(f&&(e.ctrlKey||e.metaKey)&&c&&"c"===e.key){var k;e.preventDefault(),e.stopPropagation();const t=null===(k=this.getSelectedAnnotations())||void 0===k?void 0:k.map((e=>Ev(Ev({},e),{},{previousAction:"copy"})));this.setState({copiedOrCutAnnotations:t}),u.emit("annotations.copy",{annotation:c})}else if(f&&(e.ctrlKey||e.metaKey)&&c&&"x"===e.key){var O;if(!t((D=c,(e,t)=>(0,oi.Kd)(D,t()))))return;e.preventDefault(),e.stopPropagation();const n=null===(O=this.getSelectedAnnotations())||void 0===O?void 0:O.map((e=>{const t=e.annotation;return Ev(Ev({},e),{},{formField:t instanceof j.x_?null==p?void 0:p.get(t.formFieldName):void 0,previousAction:"cut"})}));this.setState({copiedOrCutAnnotations:n}),u.emit("annotations.cut",{annotation:c}),(0,A.dC)((()=>{n.forEach((e=>{t((0,Qt.hQ)(e.annotation))}))}))}else if(f&&(e.ctrlKey||e.metaKey)&&c&&"d"===e.key){e.preventDefault(),e.stopPropagation();const n=this.getSelectedAnnotations();t((P=n,(e,t)=>{const{eventEmitter:n}=t();P.map((e=>wv({annotation:e.annotation,offset:new j.E9({x:20,y:20}),attachmentBlobPromise:e.attachmentBlobPromise},(e=>{n.emit("annotations.duplicate",e)})))).forEach((t=>{e(t)})),e((0,je.J4)((0,i.l4)(P.map((e=>e.annotation.id))),Q.o.SELECTED))})),this.setState({copiedOrCutAnnotations:null})}else if(!("Esc"!==e.key&&"Escape"!==e.key||(0,jr.N1)(e.target)||(0,jr.fp)(e.target)||h&&h.annotationId===(null==c?void 0:c.id))){e.preventDefault(),e.stopPropagation(),t((0,je.fz)());const o=n.first(),r=this.props.getScrollElement();if(r&&o){const e=r.querySelector(`[data-annotation-id="${o}"]`);e&&(0,jr._s)(r,e)}}}else(null==h?void 0:h.annotationId)===(null==c?void 0:c.id)&&m(null),e.preventDefault(),e.stopPropagation(),t((0,Qt.d8)(n));"Esc"!==e.key&&"Escape"!==e.key||w!==x.A.MEASUREMENT||(0,A.dC)((()=>{t((0,Qt.Ds)(null)),t((0,En.hS)())})),e.keyCode!==Sr.bs||(0,jr.eR)(e.target)||(e.preventDefault(),e.stopPropagation())})),(0,o.Z)(this,"_handleRef",(e=>{e&&(this._document=e.ownerDocument)}))}componentDidMount(){this._document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleKeyDown),this.props.isTextCopyingAllowed||this._document.addEventListener("copy",xv)}componentWillUnmount(){this._document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keydown",this.handleKeyDown),this.props.isTextCopyingAllowed||this._document.removeEventListener("copy",xv)}render(){return T.createElement("div",{ref:this._handleRef})}}function xv(e){const{target:t}=e;(0,hv.c)(t)||e.preventDefault()}const Dv=["highlight","strikeout","underline","squiggle","redact-text-highlighter","comment"],Cv=(0,H.Z)("InlineTextSelectionToolbarItem ");var kv=n(51025),Av=n.n(kv);function Ov(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Tv(e){for(var t=1;t{n((0,Qt.VX)(e,t)),n((0,je.fz)())}),[n]),p=T.useCallback((()=>{n((0,bi.cQ)())}),[n]),f=F()({[Av().button]:!s},{[Bd().button]:s}),h=T.useMemo((()=>{const e=[{type:"highlight",title:u(Ke.Z.highlightAnnotation),className:F()("PSPDFKit-Text-Markup-Inline-Toolbar-Highlight",f),onPress:()=>{d(j.FV,"highlight")}},{type:"strikeout",title:u(Ke.Z.strikeOutAnnotation),className:F()("PSPDFKit-Text-Markup-Inline-Toolbar-Strike-Out",f),onPress:()=>{d(j.R9,"strikeout")}},{type:"underline",title:u(Ke.Z.underlineAnnotation),className:F()("PSPDFKit-Text-Markup-Inline-Toolbar-Underline",f),onPress:()=>{d(j.xu,"underline")}},{type:"squiggle",title:u(Ke.Z.squiggleAnnotation),className:F()("PSPDFKit-Text-Markup-Inline-Toolbar-Squiggle",f),onPress:()=>{d(j.hL,"squiggle")}}];return r&&e.push({type:"comment",title:u(Ke.Z.comment),className:F()("PSPDFKit-Text-Markup-Inline-Toolbar-Comment",f),onPress:()=>{p()}}),i&&e.push({type:"redact-text-highlighter",title:u(Ke.Z.redactionAnnotation),className:F()("PSPDFKit-Text-Markup-Inline-Toolbar-Redaction",f),onPress:()=>{d(pe.Z,"redaction")}}),e}),[d,f,u,p,r,i]),m=T.useMemo((()=>{if(l){if(!c)return[];const e=l({defaultItems:h,hasDesktopLayout:!s},c);e.forEach((e=>{!function(e){Cv((0,a.PO)(e)&&!!e,"Expected item to be an object");const{type:t,id:n,title:o,icon:r,className:i,onPress:s,disabled:l}=e;Cv("type"in e&&(0,$.HD)(t)&&[...Dv,"custom"].includes(t),`Expected item.type to be one of ${[...Dv,"custom"].join(", ")}`),o&&Cv((0,$.HD)(o),"Expected `title` to be a string"),r&&Cv((0,$.HD)(r),"Expected `icon` to be a string"),n&&Cv((0,$.HD)(n),"Expected `id` to be a string"),i&&Cv((0,$.HD)(i),"Expected `className` to be a string"),s&&Cv("function"==typeof s,"`onPress` must be a `function`"),"disabled"in e&&Cv("boolean"==typeof l,"`disabled` must be a `boolean`"),e.node&&Cv(Fc.a.includes(e.node.nodeType),"`node.nodeType` is invalid. Expected one of "+Fc.a.join(", "))}(e)}));return e.map((e=>"custom"===e.type&&null!==e.onPress?Tv(Tv({},e),{},{onPress:()=>{e.onPress(),n((0,je.fz)())}}):e)).map((e=>({node:Fv(e),type:e.type})))}return h.map((e=>({node:Fv(e),type:e.type})))}),[h,c,s,l,Fv,n]),g=F()({[Bd().content]:s,[Bd().mobileTextMarkup]:s,[Av().inner]:!s});return T.createElement("div",{className:F()("PSPDFKit-Text-Markup-Inline-Toolbar",{[Av().root]:!s}),role:"dialog","aria-label":u(Ke.Z.markupToolbar)},T.createElement("div",{className:g},m.map(((e,t)=>"custom"!==e.type&&o(Iv.get(e.type))?null:"custom"===e.type?T.createElement("div",{key:`custom-${t}`},e.node):T.createElement("div",{key:e.type},e.node)))))}class _v extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"shouldComponentUpdate",ze.O)}render(){const{position:e,dispatch:t,showComments:n,showRedactions:o,currentTextSelection:r,isAnnotationTypeReadOnly:i,inlineTextSelectionToolbarItems:a}=this.props;return T.createElement("div",{className:F()("PSPDFKit-Annotation-Toolbar",Bd().root,{[Bd().stickToBottom]:"bottom"===e})},T.createElement(Mv,{dispatch:t,isAnnotationTypeReadOnly:i,showComments:n,showRedactions:o,hasMobileLayout:!0,inlineTextSelectionToolbarItems:a,currentTextSelection:r}))}}var Rv=n(54543),Nv=n(65627),Lv=n(3999),Bv=n(97066),jv=n.n(Bv);const zv=T.memo((function(e){const t=e.items.map(((t,n)=>{const{className:o,disabled:r,selected:i,icon:a,title:s,onPress:l}=t;return t.node?T.createElement(Lv.Z,{node:t.node,className:F()("PSPDFKit-Annotation-Tool-Node",e.itemClassName,o,jv().node),onPress:l,title:s,disabled:r,selected:i,key:`AnnotationTools-tool-${n}`}):T.createElement(rf.Z,{type:"custom",className:F()("PSPDFKit-Annotation-Tool-Button",e.itemClassName,o,jv().button),disabled:r,selected:i,icon:a,title:s,onPress:l,key:`AnnotationTools-tool-${n}`})}));return T.createElement("div",{role:"toolbar",className:F()(jv().root,e.rootClassName)},t)})),Kv=["children","fullScreen","hover","tools","intl","closeNote","clearNote"];function Zv(e){e.stopPropagation()}const Uv=(0,Re.XN)((e=>{const{children:t,fullScreen:n,hover:o,tools:i,intl:a,closeNote:s,clearNote:l}=e,c=(0,r.Z)(e,Kv),{formatMessage:u}=a,d=T.useRef(null);T.useEffect((function(){const e=d.current;if(e)return e.addEventListener("wheel",Zv,!0),()=>e.removeEventListener("wheel",Zv,!0)}),[]);const p=(0,Ze.Z)({type:"close"}),f=(0,Ze.Z)({type:"delete"});return T.createElement("div",(0,De.Z)({className:`PSPDFKit-Note-Annotation-Content ${nn().wrapper}${n?" "+nn().fullScreen:""}`},c,{ref:d}),T.createElement("div",{className:nn().header},T.createElement("h3",{className:nn().title},u(Ke.Z.noteAnnotation)),T.createElement("button",{className:F()(nn().button,o?nn().hidden:null),title:u(Ke.Z.close),"aria-label":u(Ke.Z.close),onClick:s||void 0,role:"button",type:"button"},p)),T.createElement("div",{className:nn().content},t),l&&T.createElement("button",{className:F()(nn().button,o?nn().hidden:null),title:u(Ke.Z.clear),"aria-label":u(Ke.Z.clear),onClick:l,role:"button",type:"button"},f),i&&!n&&T.createElement("div",{className:nn().tools},T.createElement(zv,{items:i,rootClassName:nn().tools,itemClassName:nn().tool})))})),Vv={left:0,top:0,maxWidth:"100%",maxHeight:"auto",minWidth:"100%",minHeight:"100%"};class Gv extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"_didUpdate",!1),(0,o.Z)(this,"_didEditorFocus",!1),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"state",{value:this.props.annotation.text.value}),(0,o.Z)(this,"focus",(()=>{this._isFocused||(this._isFocused=!0,this._editor&&this._editor.focus())})),(0,o.Z)(this,"clearText",(()=>{this._editor&&this._editor.clearText()})),(0,o.Z)(this,"_isFocused",!1),(0,o.Z)(this,"_lastSavedAnnotation",this.props.annotation),(0,o.Z)(this,"_onRef",(e=>{this._editor=e})),(0,o.Z)(this,"_valueDidUpdate",(()=>{this._didUpdate=!0})),(0,o.Z)(this,"_updateAnnotation",(()=>{if(this._didUpdate){var e;const n=this.props.annotation.set("text",{format:"plain",value:null===(e=this._editor)||void 0===e?void 0:e.getPlainText()});if(this._lastSavedAnnotation.text.value!==n.text.value||this._lastSavedAnnotation.text.format!==n.text.format)if(this._lastSavedAnnotation=n,n instanceof li.FN){var t;const e=null===(t=n.parentAnnotation)||void 0===t?void 0:t.set("note",n.text.value);(0,a.kG)(e),this.props.dispatch((0,Qt.FG)(e))}else this.props.dispatch((0,Qt.FG)(n)),this.props.keepSelectedTool&&this.props.dispatch((0,En.i9)())}else this.props.keepSelectedTool&&this.props.dispatch((0,En.i9)())})),(0,o.Z)(this,"_onBlur",(()=>{this._updateAnnotation()})),(0,o.Z)(this,"_onStopEditing",(()=>{this._updateAnnotation(),this.props.dispatch((0,Qt.i0)(!0))})),(0,o.Z)(this,"_onEscape",(()=>{this.props.dispatch((0,je.fz)()),this._updateAnnotation()})),(0,o.Z)(this,"_handleEditorFocus",(()=>{if(!this._didEditorFocus){const e={annotations:(0,i.aV)([this.props.annotation]),reason:u.f.TEXT_EDIT_START};this.props.eventEmitter.emit("annotations.willChange",e)}this._didEditorFocus=!0}))}UNSAFE_componentWillReceiveProps(e){e.annotation.equals(this.props.annotation)||this.setState({value:e.annotation.text.value})}componentWillUnmount(){if(this._didEditorFocus){const e={annotations:(0,i.aV)([this.props.annotation]),reason:u.f.TEXT_EDIT_END};this.props.eventEmitter.emit("annotations.willChange",e)}this._updateAnnotation()}render(){return T.createElement(Zi,{autoFocus:!1,autoSelect:this.props.autoSelect,onBlur:this._onBlur,onStopEditing:this._onStopEditing,onEscape:this._onEscape,ref:this._onRef,maxLength:Je.RI,defaultValue:this.state.value,lastMousePoint:this.props.lastMousePoint,style:Vv,valueDidUpdate:this._valueDidUpdate,onFocus:this._handleEditorFocus,key:this.state.value})}}(0,o.Z)(Gv,"defaultProps",{autoSelect:!1});var Wv=n(48311);class qv extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"state",{}),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"_closeNote",(()=>{this.props.noteAnnotation instanceof li.FN?this.props.dispatch((0,je.mv)(null)):this.props.dispatch((0,je.fz)())})),(0,o.Z)(this,"_clearNote",(()=>{this._editor&&this._editor.clearText()})),(0,o.Z)(this,"_preventDeselect",(e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()})),(0,o.Z)(this,"_makeHandleMouseUpAndTouchEnd",(e=>(0,Rv.S)((t=>{this.setState({lastMousePoint:new j.E9({x:t.clientX,y:t.clientY})},(()=>{this.props.dispatch((0,je.VR)(e))}))})))),(0,o.Z)(this,"_onRef",(e=>{this._editor=e,this.props.isFullscreen&&this._editor&&this._editor.focus()})),(0,o.Z)(this,"_getGradient",(0,jo.Z)((e=>{let t=e.lighter(30);const n=Math.min(t.r,t.g,t.b);for(let e=0;e<10&&t.contrastRatio(j.Il.BLACK)<4.5;e++)t=t.lighter((255-n)/25.5);return{top:t.lighter(30),bottom:t}}))),(0,o.Z)(this,"isPopoverPositioned",!1),(0,o.Z)(this,"onPopoverPositioned",(()=>{!this.isPopoverPositioned&&this._editor&&(this.isPopoverPositioned=!0,this._editor.focus())}))}render(){const{dispatch:e,noteAnnotation:t,noteAnnotationToModify:n,viewportState:o,isFullscreen:r,collapseSelectedNoteContent:i}=this.props;if(null==t.pageIndex||i)return null;const s=n&&t.id===n.id,l=this.props.isAnnotationReadOnly(t),c=t instanceof li.FN,{color:u}=t,d=$v[u.toCSSValue()]||this._getGradient(u.saturate(60));if(r){if(!s&&!l)return null;const n=u.toCSSValue(),r=`linear-gradient(to bottom, ${d.top.toCSSValue()} 0%, ${d.bottom.toCSSValue()} 100%)`,i=o.viewportRect.height-(this.props.annotationToolbarHeight((0,a.kG)(e),e.merge({left:e.left+(e.width-e.width/o.zoomLevel)/2,top:e.top+(e.height-e.height/o.zoomLevel)/2,width:e.width/o.zoomLevel,height:e.height/o.zoomLevel}))));return T.createElement(Wv.Z,{referenceRect:(0,J.SY)(m,o.pagesRotation).apply(h),viewportState:o,onPositionInfoChange:this.onPopoverPositioned,baseColor:u,color:[d.top,d.bottom],className:"PSPDFKit-Popover-Note-Annotation",customZIndex:1001},T.createElement(Uv,{onMouseUp:p,onTouchEnd:f,tools:this.props.tools,closeNote:this._closeNote,clearNote:s&&!l&&c?this._clearNote:void 0,hover:this.props.isHover,id:`NoteAnnotationContent-${t.id}`},this.props.isAnnotationReadOnly(t)?t.text.value:T.createElement(Gv,{annotation:t,dispatch:e,ref:s?this._onRef:void 0,lastMousePoint:this.state.lastMousePoint,autoSelect:this.props.autoSelect,eventEmitter:this.props.eventEmitter,keepSelectedTool:this.props.keepSelectedTool})))}}(0,o.Z)(qv,"defaultProps",{autoSelect:!1});const Hv={yellow:{top:new j.Il({r:245,g:240,b:158}),bottom:new j.Il({r:250,g:247,b:106})},orange:{top:new j.Il({r:250,g:213,b:161}),bottom:new j.Il({r:255,g:184,b:112})},red:{top:new j.Il({r:255,g:181,b:178}),bottom:new j.Il({r:255,g:134,b:126})},fuchsia:{top:new j.Il({r:255,g:186,b:255}),bottom:new j.Il({r:240,g:139,b:233})},blue:{top:new j.Il({r:164,g:211,b:255}),bottom:new j.Il({r:113,g:166,b:244})},green:{top:new j.Il({r:190,g:255,b:161}),bottom:new j.Il({r:130,g:227,b:111})}},$v={};for(const e of Nv.W)null!=e.color&&null!=e.localization.id&&($v[e.color.toCSSValue()]=Hv[e.localization.id]);var Yv=n(49242),Xv=n(5912),Jv=n.n(Xv);class Qv extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"elementRef",T.createRef()),(0,o.Z)(this,"state",{isPanning:!1}),(0,o.Z)(this,"initialPosition",null),(0,o.Z)(this,"previousPosition",null),(0,o.Z)(this,"_handleDragStart",(e=>{this.props.enabled&&(0,Yv.I)(e)&&(this.initialPosition=this.previousPosition=new B.E9({x:e.clientX,y:e.clientY}),this.setState({isPanning:!0}),this._addEventListeners())})),(0,o.Z)(this,"_handleDragMove",(e=>{if(!(0,Yv.W)(e))return void this._handleDragEnd(e);if(!this.props.enabled||!this.previousPosition)return;const t=new B.E9({x:e.clientX,y:e.clientY}),n=this.previousPosition.translate(t.scale(-1)),o=this._getScrollElement(),{scrollLeft:r,scrollTop:i}=o;o.scrollLeft=r+n.x,o.scrollTop=i+n.y,this.previousPosition=t,e.stopPropagation()})),(0,o.Z)(this,"_handleDragEnd",(e=>{this.initialPosition&&this.previousPosition&&(Pn(this.initialPosition,this.previousPosition)&&(e.stopPropagation(),e.stopImmediatePropagation()),this.previousPosition=null,this.setState({isPanning:!1}),this._removeEventListeners())}))}componentDidMount(){this.elementRef.current&&this.elementRef.current.addEventListener("mousedown",this._handleDragStart)}componentWillUnmount(){this.elementRef.current&&this.elementRef.current.removeEventListener("mousedown",this._handleDragStart),this._removeEventListeners()}render(){const{enabled:e}=this.props,{isPanning:t}=this.state,n=F()({[Jv().layer]:e,[Jv().isPanning]:t});return T.createElement("div",{className:n,ref:this.elementRef},this.props.children)}_addEventListeners(){const{defaultView:e}=this._getScrollElement().ownerDocument;null==e||e.addEventListener("mouseup",this._handleDragEnd,!0),null==e||e.addEventListener("mousemove",this._handleDragMove)}_removeEventListeners(){const e=this._getScrollElement();if(!e)return;const{defaultView:t}=e.ownerDocument;t&&(t.removeEventListener("mouseup",this._handleDragEnd,!0),t.removeEventListener("mousemove",this._handleDragMove))}_getScrollElement(){return this.context()}}(0,o.Z)(Qv,"contextType",Mu);const ey=T.memo((function(e){const{dispatch:t,viewportState:n,interactionMode:o,spreadIndex:r,onCropChange:i,cropInfo:a}=e,s=T.useRef(null);T.useEffect((()=>{null!==s.current&&s.current!==r&&(o===x.A.SEARCH?t((0,je.vR)()):t((0,je.fz)())),s.current=r}),[t,r,o]);const[l,c]=(0,Hs.wU)(n,r);if(0===n.viewportRect.width||0===n.viewportRect.height)return null;function u(t,o,r){const s={transform:(0,de.vs)(B.sl.IDENTITY,n,t).toCssValue(),transformOrigin:"0 0"},l=(0,Hs.nw)(n)===C.X.DOUBLE?t.toString():e.pageKeys.get(t);return T.createElement("div",{key:l,className:"PSPDFKit-Spread",style:s,"data-spread-index":t},T.createElement(qh,{key:l,spreadIndex:t,viewportState:n,inViewport:o,shouldPrerender:r,hidden:!o,onOverviewRenderFinished:c,onCropChange:i,cropInfo:a,pageKeys:e.pageKeys,setGlobalCursor:e.setGlobalCursor}))}return T.createElement(Hh.Z,{dispatch:e.dispatch,viewportState:n},T.createElement("div",null,function(e){const t=[];if(t.push(u(e,!0,!1)),n.scrollMode===nl.G.DISABLED)return t;const o=(0,Hs.kd)(n),r=Math.max(e-Je.J8,0),i=Math.min(e+Je.J8,o-1);for(let n=r;n<=i;n++)n!==e&&t.push(u(n,!1,"number"==typeof l&&e===l));return t}(r)))}));var ty=n(71231),ny=n(45590),oy=n.n(ny);const ry=!(!ty.Gn||"edge"==tt.SR)&&{passive:!0};class iy extends T.Component{constructor(){super(),(0,o.Z)(this,"_elementRef",T.createRef()),(0,o.Z)(this,"_handleWheel",(e=>{const{viewportState:t,scrollElement:n}=this.props,o=t.zoomLevel<=(0,Ys.Mq)(t);let r=!0;if(n){const{clientHeight:e,scrollHeight:o}=n;r=t.commentMode!==Yh._.SIDEBAR||t.scrollMode!==nl.G.PER_SPREAD||t.scrollPosition.y+e>=o}if(!(o&&r))return;const i=(0,de.G4)(t);e.clientX>Math.ceil(i.left)+i.width+t.viewportPadding.x||(e.deltaY<0?this.props.dispatch((0,Eu.IT)()):e.deltaY>0&&this.props.dispatch((0,Eu.fz)()))})),(0,o.Z)(this,"_handleSwipeLeft",(()=>{const e=(0,$s.TW)(this.props.viewportState);Math.ceil(this.props.viewportState.scrollPosition.x)>=Math.floor(e.x)&&this.props.dispatch((0,Eu.fz)())})),(0,o.Z)(this,"_handleSwipeRight",(()=>{Math.floor(this.props.viewportState.scrollPosition.x)<=0&&this.props.dispatch((0,Eu.IT)())})),(0,o.Z)(this,"_handleTouchStart",(e=>{const t=this._elementRef.current;t&&null===this._touchStart&&(0,Ec.sX)(e)&&(this._touchStart=ly(e),t.ownerDocument.addEventListener("touchend",this._handleTouchEnd,!0))})),(0,o.Z)(this,"_handleTouchEnd",(e=>{const t=this._elementRef.current;if(!t)return;const n=this._touchStart;if(!n)return;const o=ly(e),r=o.x-n.x,i=o.y-n.y,a=function(e,t,n){const o=t/e||0,r=n/e||0;return Math.abs(o)>Math.abs(r)?o:r}(o.timestamp-n.timestamp,r,i),s=function(e,t){const n=t.x-e.x,o=t.y-e.y;return Math.sqrt(n*n+o*o)}(n,o),l=function(e,t){if(e===t)return 0;if(Math.abs(e)>=Math.abs(t))return e<0?ay:sy;return t<0?3:4}(r,i);if(s>10&&Math.abs(a)>.3&&!this.props.interactionsDisabled)switch(l){case ay:this._handleSwipeLeft();break;case sy:this._handleSwipeRight()}t.ownerDocument.removeEventListener("touchend",this._handleTouchEnd,!0),this._touchStart=null})),(0,o.Z)(this,"_handleClick",(e=>{const t=this._elementRef.current;if(!t||this.props.hasSelection||t.ownerDocument.defaultView&&e.target instanceof t.ownerDocument.defaultView.HTMLElement&&(0,hv.c)(e.target))return;const n=t.getBoundingClientRect(),o=(e.clientX-n.left)/n.width;o<.3?this._handleSwipeRight():o>.7&&this._handleSwipeLeft()})),this._handleWheel=(0,bh.Z)(this._handleWheel,250),this._touchStart=null}componentDidMount(){const e=this._elementRef.current;e&&(e.addEventListener("touchstart",this._handleTouchStart),e.addEventListener("wheel",this._handleWheel,ry))}componentWillUnmount(){const e=this._elementRef.current;e&&(e.removeEventListener("touchstart",this._handleTouchStart),e.removeEventListener("wheel",this._handleWheel,ry),e.ownerDocument.removeEventListener("touchend",this._handleTouchEnd,!0))}render(){return T.createElement("div",{className:oy().root,onClick:this._handleClick,ref:this._elementRef},this.props.children)}}const ay=1,sy=2;function ly(e){const t=e.touches[0]||e.changedTouches[0];return{x:t.clientX,y:t.clientY,timestamp:Date.now()}}var cy=n(58005),uy=n.n(cy);const dy=function(e){let{progress:t,totalPages:n}=e;const{formatMessage:o}=(0,Re.YB)(),r=(0,A.I0)(),i=T.useCallback((()=>{(0,A.dC)((()=>{r((0,En.Zg)()),r((0,mv.WQ)())}))}),[r]);return T.createElement(yf.Z,{onEscape:i,accessibilityLabel:o(py.printProgressModal),accessibilityDescription:o(py.printProgressModalDesc)},T.createElement("div",{className:uy().root},T.createElement("div",null,o(py.printPrepare)),"number"==typeof t&&T.createElement(T.Fragment,null,T.createElement("div",{className:uy().progressWrapper},T.createElement("div",{className:uy().progress,"aria-label":`${t}% complete`,role:"progressbar","aria-valuenow":t},T.createElement("div",{className:uy().progressBar,style:{width:`${Math.floor(100*t/n)}%`}})),T.createElement("div",{className:uy().progressText},o(py.pageXofY,{arg0:t,arg1:n}))),T.createElement(ue.zx,{title:o(Ke.Z.cancel),onClick:i},o(Ke.Z.cancel)))))},py=(0,Re.vU)({pageXofY:{id:"pageXofY",defaultMessage:"Page {arg0} of {arg1}",description:"Printing processing progress"},printPrepare:{id:"printPrepare",defaultMessage:"Preparing document for printing…",description:"Shown while the printing process is preparing the pages for printing"},printProgressModal:{id:"printProgressModal",defaultMessage:"Printing in progress",description:"Printing in progress modal"},printProgressModalDesc:{id:"printProgressModalDesc",defaultMessage:"Indicates that a document is being prepared for printing",description:"Description for the Printing in progress modal"}});var fy,hy=n(93621),my=n.n(hy);const gy=function(){const{formatMessage:e}=(0,Re.YB)();return T.createElement(yf.Z,{accessibilityLabel:e(vy.signingModal),accessibilityDescription:e(vy.signingModalDescription)},T.createElement("div",{className:my().root},T.createElement(Ye.Z,{src:n(17285),className:my().icon,role:"presentation"}),T.createElement("div",{className:my().message},e(vy.signing),fy||(fy=T.createElement(Xe.Z,null)))))},vy=(0,Re.vU)({signing:{id:"signing",defaultMessage:"Signing...",description:"Shown while the digital signature flow is in progress"},signingModal:{id:"signingInProgress",defaultMessage:"Signing in progress",description:"Signing in progress modal"},signingModalDescription:{id:"signingModalDesc",defaultMessage:"Indicates that the current document is being signed",description:"Description of the Signing in progress modal"}});var yy,by=n(76134),wy=n.n(by);function Sy(){const{formatMessage:e}=(0,Re.YB)();return T.createElement(yf.Z,{accessibilityLabel:e(Ey.redactionsModal),accessibilityDescription:e(Ey.redactionModalDescription)},T.createElement("div",{className:wy().root},T.createElement(Ye.Z,{src:n(1088),className:wy().icon,role:"presentation"}),T.createElement("div",{className:wy().message},e(Ey.applyingRedactions),yy||(yy=T.createElement(Xe.Z,null)))))}const Ey=(0,Re.vU)({applyingRedactions:{id:"applyingRedactions",defaultMessage:"Applying redactions...",description:"Shown while the redactions flow is in progress"},redactionsModal:{id:"redactionInProgress",defaultMessage:"Redaction in progress",description:"Redaction in progress modal"},redactionModalDescription:{id:"redactionModalDesc",defaultMessage:"Indicates that the current document is being redacted",description:"Description of the Redacted in progress modal"}});var Py=n(93242),xy=n.n(Py);function Dy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Cy(e){for(var t=1;t{Ay.indexOf(e.keyCode)>=0&&!this.usingNavigationKeys&&(this.usingNavigationKeys=!0)})),(0,o.Z)(this,"handleKeyUp",(e=>{Ay.indexOf(e.keyCode)>=0&&this.usingNavigationKeys&&(this.usingNavigationKeys=!1)})),(0,o.Z)(this,"_handleRef",(e=>{e&&(this.element=e,this.props.onScrollElementChange(e))})),this.previousKnownScrollPosition=new j.E9,this.previousKnownZoomLevel=1}updateScrollbarOffset(e){const t=this.element.offsetWidth-this.element.clientWidth,n="hidden"!==this.element.style.overflow;"number"==typeof t&&e!=t&&n&&this.props.dispatch((0,En.IU)(t))}componentDidUpdate(e){requestAnimationFrame((()=>this.updateScrollbarOffset(e.scrollbarOffset))),this.updateScrollPosition()}componentDidMount(){this.updateScrollbarOffset(),this.updateScrollPosition(),this.props.dispatch((0,En.K_)(this.element)),this.element.ownerDocument.addEventListener("keydown",this.handleKeyDown),this.element.ownerDocument.addEventListener("keyup",this.handleKeyUp)}componentWillUnmount(){this.props.dispatch((0,En.K_)(null)),this.element.ownerDocument.removeEventListener("keydown",this.handleKeyDown),this.element.ownerDocument.removeEventListener("keyup",this.handleKeyUp)}updateScrollPosition(){const{viewportState:e}=this.props;if(0===e.viewportRect.width)return;if(this.previousKnownScrollPosition.equals(e.scrollPosition)&&this.previousKnownZoomLevel===e.zoomLevel)return;const t=this.element,n=Math.round(e.scrollPosition.x*e.zoomLevel),o=Math.round(e.scrollPosition.y*e.zoomLevel);t.scrollTop!==o&&(t.scrollTop=o),t.scrollLeft!==n&&(t.scrollLeft=n),this.previousKnownScrollPosition=e.scrollPosition,this.previousKnownZoomLevel=e.zoomLevel}handleScroll(){const{dispatch:e,viewportState:t}=this.props,{scrollPosition:n,zoomLevel:o}=t;if(0===t.viewportRect.width)return;const r=this.element;if(void 0===r.scrollTop||void 0===r.scrollLeft)return;const i=new j.E9({x:r.scrollLeft/o,y:r.scrollTop/o}),a=function(e,t,n){const o=1/n;return Math.abs(e.x-t.x)>o||Math.abs(e.y-t.y)>o}(n,i,o);a&&(this.previousKnownScrollPosition=i,this.previousKnownZoomLevel=o,e((0,Eu.lt)(i,this.usingNavigationKeys)))}render(){const{children:e,scrollDisabled:t}=this.props;return T.createElement("div",{ref:this._handleRef,className:`PSPDFKit-Scroll ${xy().root}`,style:Cy(Cy({},ky),{},{overflow:t?"hidden":"auto"}),onScroll:this.handleScroll},e)}}var Ty,Iy=n(98973),Fy=n.n(Iy);const My=(0,Re.XN)((function(e){const{formatMessage:t}=e.intl,n=t(_y.searchResultOf,{arg0:e.searchResultsSize>0?e.focusedResultIndex+1:0,arg1:e.searchResultsSize}),o=T.createElement("div",{role:"status",className:Fy().searchPosition,"aria-live":"polite","aria-label":tt.vU?n:void 0},n);return T.createElement(T.Fragment,null,e.isLoading&&T.createElement("div",{className:Fy().loader},Ty||(Ty=T.createElement(Xe.Z,null))),o)})),_y=(0,Re.vU)({searchResultOf:{id:"searchResultOf",defaultMessage:"{arg0} of {arg1}",description:"Shows the current search result number. E.g. 1 of 10"}});var Ry=n(50397),Ny=n.n(Ry);const Ly=(0,Re.vU)({searchPreviousMatch:{id:"searchPreviousMatch",defaultMessage:"Previous",description:"Go to the previous search result"},searchNextMatch:{id:"searchNextMatch",defaultMessage:"Next",description:"Go to the next search result"}}),By=(0,Re.XN)((e=>{const t=T.useRef(null);T.useEffect((()=>{(()=>{const n=t.current;(0,Ne.k)(null!=n),n.ownerDocument.activeElement!==n&&e.isFocused?n.focus():n.ownerDocument.activeElement!==n||e.isFocused||n.blur()})()}));const{formatMessage:o}=e.intl,r=F()({[Ny().previous]:!0,"PSPDFKit-Search-Control-Prev":!0,"PSPDFKit-Search-Control-Prev-disabled":e.searchResultsSize<=0}),i=F()({[Ny().next]:!0,"PSPDFKit-Search-Control-Next":!0,"PSPDFKit-Search-Control-Next-disabled":e.searchResultsSize<=0}),a=0===e.term.length,s=F()({[Ny().results]:!0,[Ny().resultsDisabled]:a,"PSPDFKit-Search-Form-Result":!0}),l=o(Ke.Z.searchDocument);return T.createElement("div",{className:F()("PSPDFKit-Search",Ny().root,{[Ny().noToolbar]:!e.showToolbar||e.toolbarPlacement!==Ru.p.TOP}),"data-testid":"pspdfkit-search-form-component-root"},T.createElement("div",{className:`PSPDFKit-Search-Form ${Ny().searchBox}`},T.createElement("input",{type:"text",name:"search",ref:t,autoComplete:"off",placeholder:l,"aria-label":l,value:e.term,onChange:()=>{const n=t.current;(0,Ne.k)(null!=n);const o=n.value;let r=!1;e.eventEmitter.emit("search.termChange",{term:o,preventDefault:()=>{r=!0}}),r||(e.searchForTerm(n.value),e.searchProvider.searchTerm(n.value))},onKeyDown:t=>{t.shiftKey&&(t.keyCode===Sr.E$||t.metaKey&&t.keyCode===Sr.b8)?(t.preventDefault(),e.focusPreviousSearchHighlight()):t.keyCode===Sr.E$||t.metaKey&&t.keyCode===Sr.b8?(t.preventDefault(),e.focusNextSearchHighlight()):t.keyCode===Sr.zz&&(t.preventDefault(),e.hideSearch())},onFocus:()=>{e.focusSearch()},onBlur:()=>{e.blurSearch()},className:`PSPDFKit-Search-Form-Input ${Ny().input}`}),T.createElement("div",{className:s},!a&&T.createElement(My,{isLoading:e.isLoading,searchResultsSize:e.searchResultsSize,focusedResultIndex:e.focusedResultIndex})),T.createElement("div",{className:`PSPDFKit-Search-Control ${Ny().control}`},T.createElement("button",{className:r,title:o(Ly.searchPreviousMatch),disabled:e.searchResultsSize<=1,onClick:e.focusPreviousSearchHighlight},T.createElement(Ye.Z,{src:n(28069),className:`${Ny().icon} ${Ny().iconLeft}`})),T.createElement("button",{className:i,title:o(Ly.searchNextMatch),disabled:e.searchResultsSize<=1,onClick:e.focusNextSearchHighlight},T.createElement(Ye.Z,{src:n(14341),className:`${Ny().icon} ${Ny().iconRight}`})))),T.createElement("button",{className:`PSPDFKit-Search-Button-Close ${Ny().button}`,onClick:e.hideSearch},o(Ke.Z.close)))}));const jy=(0,A.$j)((function(e){return{isFocused:e.searchState.isFocused,isLoading:e.searchState.isLoading,term:e.searchState.term,searchResultsSize:e.searchState.results.size,focusedResultIndex:e.searchState.focusedResultIndex,searchProvider:e.searchProvider,eventEmitter:e.eventEmitter,locale:e.locale,showToolbar:e.showToolbar,toolbarPlacement:e.toolbarPlacement}}),(function(e){return(0,K.DE)({searchForTerm:Dc._8,focusNextSearchHighlight:Dc.jL,focusPreviousSearchHighlight:Dc.dZ,hideSearch:Dc.ct,focusSearch:Dc.tB,blurSearch:Dc.nJ},e)}))(By);class zy{constructor(e,t,n){var o;const r=e.getRangeAt(0);let i=new j.SV;if(this.selection=e,this.className=n,this.rootElement=t,this.window=t.ownerDocument.defaultView,this.commonAncestorContainer=r.commonAncestorContainer,e.rangeCount>1){const t=e.getRangeAt(e.rangeCount-1);r.setEnd(t.endContainer,t.endOffset)}const s=!(null!=t&&t.contains(r.startContainer)),l=!(null!=t&&t.contains(r.endContainer)),c=!(null!==(o=this.commonAncestorContainer)&&void 0!==o&&o.contains(t));if(s&&l&&c)this.textRange=null;else{if(r.startContainer instanceof this.window.Text&&null!=t&&t.contains(r.startContainer)&&this._parentsMatchClass(r.startContainer))i=i.set("startNode",r.startContainer).set("startOffset",r.startOffset);else if(r.startContainer instanceof this.window.Element||r.startContainer instanceof this.window.Text){let e;if(e=r.startContainer.hasChildNodes()?this._nextTextNode(r.startContainer.childNodes[r.startOffset]):this._nextTextNode(r.startContainer),null==e)return void(this.textRange=null);i=i.set("startNode",e).set("startOffset",0)}else(0,a.kG)(!1,"Selected start container is neither DOM Element nor Text");if(r.endContainer instanceof this.window.Text&&null!=t&&t.contains(r.endContainer)&&this._parentsMatchClass(r.endContainer))i=i.set("endNode",r.endContainer).set("endOffset",r.endOffset);else if(r.endContainer instanceof this.window.Element||r.endContainer instanceof this.window.Text){let e;if(r.endContainer.hasChildNodes())if(r.endOffset>=r.endContainer.childNodes.length){let t=this._nextCrossSibling(r.endContainer);t||(t=r.endContainer.childNodes[r.endContainer.childNodes.length-1]),e=this._previousTextNode(t)}else e=this._previousTextNode(r.endContainer.childNodes[r.endOffset]);else e=this._previousTextNode(r.endContainer);if(null==e)return void(this.textRange=null);i=i.set("endNode",e).set("endOffset",e.length)}else(0,a.kG)(!1,"Selected start container is neither DOM Element nor Text");if(i.startNode==i.endNode&&i.startOffset>=i.endOffset)return void(this.textRange=null);if(!this._isBeforeOrSame(i.startNode,i.endNode))return void(this.textRange=null);this.textRange=i}}getTextRange(){return this.textRange}_nextTextNode(e){let t=this._findNextSpanNodeInTree(e);if(e===this.commonAncestorContainer)return null;let n=e;for(;!t;){if(n=this._nextCrossSibling(n),null==n)return null;t=this._findNextSpanNodeInTree(n)}return t.firstChild}_previousTextNode(e){let t=null;if(e===this.commonAncestorContainer)return null;let n=e;for(;!t;){if(n=this._previousCrossSibling(n),null==n)return null;t=this._findLastSpanNodeInTree(n)}return t.firstChild}_nextCrossSibling(e){if(!e)return null;if(null!=e.nextSibling)return e.nextSibling;const t=e.parentNode;return null==t||t===this.commonAncestorContainer?null:null!=t.nextSibling?t.nextSibling:this._nextCrossSibling(t)}_previousCrossSibling(e){if(null!==e.previousSibling)return e.previousSibling;const t=e.parentNode;return null==t||t===this.commonAncestorContainer?null:null!==t.previousSibling?t.previousSibling:this._previousCrossSibling(t)}_findNextSpanNodeInTree(e){if(e instanceof this.window.HTMLElement&&e.classList.contains(this.className))return e;if(e instanceof this.window.HTMLElement)for(let t=0;t=0;t--){const n=e.childNodes[t],o=this._findLastSpanNodeInTree(n);if(null!==o)return o}return null}_parentsMatchClass(e){let t=e.parentNode;for(;t&&t instanceof this.window.HTMLElement&&t!==this.rootElement;){if(t.classList.contains(this.className))return!0;t=t.parentNode}return!1}_isBeforeOrSame(e,t){const n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=0==e.compareDocumentPosition(t);return n||o}_getSelectedTextWithNL(){if(!this.textRange)return this.selection.toString();const{startNode:e,endNode:t,startOffset:n,endOffset:o}=this.textRange;if(!e||!t)return this.selection.toString();if(e===t)return e.textContent?e.textContent.substring(n,o):"";let r=e,i=r.textContent?r.textContent.substring(n)+"\n":"";for(;r&&r!==t;)r=this._nextTextNode(r),r&&r.textContent&&(i+=r!==t?r.textContent+"\n":r.textContent.substring(0,o));return i}}var Ky=n(22181),Zy=n.n(Ky);let Uy=null,Vy=null;const Gy=(e,t)=>e.container===t.container&&e.offset===t.offset,Wy={Left:!0,ArrowLeft:!0,Top:!0,ArrowTop:!0,Right:!0,ArrowRight:!0,Bottom:!0,ArrowBottom:!0,Home:!0,End:!0,PageDown:!0,PageUp:!0,Esc:!0,Escape:!0};class qy extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"isMouseSelection",!1),(0,o.Z)(this,"pointerMadeSelection",!1),(0,o.Z)(this,"isShiftPressed",!1),(0,o.Z)(this,"isPrimaryPointerGesture",!1),(0,o.Z)(this,"_handleSelectStart",(()=>{this.props.interactionMode!==x.A.TEXT_HIGHLIGHTER&&this.props.interactionMode!==x.A.REDACT_TEXT_HIGHLIGHTER||(this.isShiftPressed?this._processTextSelection(tt.Ni?"touch":"mouse"):this.props.dispatch((0,je.d5)((0,i.l4)(),this.props.interactionMode===x.A.TEXT_HIGHLIGHTER?j.FV:pe.Z)))})),(0,o.Z)(this,"_handleSelectionChange",(()=>{const{rootElement:e,interactionMode:t}=this.props,{defaultView:n}=e.ownerDocument,o=null==n?void 0:n.getSelection();!this.pointerMadeSelection&&(e=>{if(e.rangeCount<=0)return!1;if(e.rangeCount>1){const t=e.getRangeAt(e.rangeCount-1);t.setEnd(t.endContainer,t.endOffset)}const t=e.getRangeAt(0),{startContainer:n,endContainer:o,startOffset:r,endOffset:i}=t,a={container:n,offset:r},s={container:o,offset:i};let l;return l=null===Uy||null===Vy||!(Gy(Uy,a)||Gy(Vy,s)||Gy(Uy,s)||Gy(Vy,a)),Uy=a,Vy=s,l})(o)&&(this._handleSelectStart(),this.pointerMadeSelection=!0),this.isMouseSelection&&t!==x.A.TEXT_HIGHLIGHTER&&t!==x.A.REDACT_TEXT_HIGHLIGHTER||o&&!o.isCollapsed&&this._processTextSelection(tt.Ni?"touch":"mouse")})),(0,o.Z)(this,"_handlePointerUp",(e=>{let{pointerType:t,shiftKey:n}=e;this.isPrimaryPointerGesture&&("mouse"===t&&(this.isMouseSelection=!1),this.pointerMadeSelection=!1,this.isShiftPressed=n,n||window.setTimeout((()=>{this._checkForTextSelection(t)}),0))})),(0,o.Z)(this,"_handlePointerDown",(e=>{let{pointerType:t,shiftKey:n,isPrimary:o}=e;this.isPrimaryPointerGesture=o,"mouse"===t&&(this.isMouseSelection=!0,this.isShiftPressed=n)})),(0,o.Z)(this,"_handleKeyUp",(e=>{const{rootElement:t}=this.props;if(t){const n=t.ownerDocument.defaultView;this.isShiftPressed=e.shiftKey;const o=e.target;if(!Wy.hasOwnProperty(e.key)||n&&o instanceof n.HTMLElement&&((0,jr.eR)(o,n)||(0,jr.N1)(o)||(0,jr.gC)(o)))return;window.setTimeout((()=>{e.defaultPrevented||this._checkForTextSelection("mouse")}),0)}}))}componentDidMount(){const{rootElement:e}=this.props;e&&(e.ownerDocument.addEventListener("keyup",this._handleKeyUp),e.ownerDocument.addEventListener("selectionchange",this._handleSelectionChange))}componentWillUnmount(){const{rootElement:e}=this.props;e&&(e.ownerDocument.removeEventListener("keyup",this._handleKeyUp),e.ownerDocument.removeEventListener("selectionchange",this._handleSelectionChange)),Uy=null,Vy=null}_checkForTextSelection(e){const{dispatch:t,currentTextSelection:n,selectedAnnotationIds:o,activeAnnotationNote:r,rootElement:i,interactionMode:a}=this.props,{defaultView:s}=i.ownerDocument;if(this.props.modalClosurePreventionError&&o.includes(this.props.modalClosurePreventionError.annotationId)){const e=i.ownerDocument.querySelector(".PSPDFKit-Form-Creator-Popover > .PSPDFKit-Popover");return null==e||e.classList.add(Zy().shakeEffect),void setTimeout((()=>{null==e||e.classList.remove(Zy().shakeEffect)}),200)}if(!s)return;const l=s.getSelection();l&&(l.isCollapsed?(n||o.size>0||r)&&(a===x.A.TEXT_HIGHLIGHTER||a===x.A.REDACT_TEXT_HIGHLIGHTER||a===x.A.CONTENT_EDITOR?(this.isShiftPressed&&t((0,je.td)(a===x.A.TEXT_HIGHLIGHTER?j.FV:pe.Z)),t((0,je.vR)())):t((0,je.fz)())):this._processTextSelection(e))}_processTextSelection(e){const{dispatch:t,rootElement:n,interactionMode:o}=this.props,{defaultView:r}=n.ownerDocument;if(!r)return;const i=r.getSelection();if(!i)return;const a=i.rangeCount>0?((e,t,n)=>new zy(e,t,n).getTextRange())(i,n,cl().selectableText):null;null!=a&&(0,A.dC)((()=>{t((0,je.FP)(a,"mouse"===e&&o!==x.A.TEXT_HIGHLIGHTER&&o!==x.A.REDACT_TEXT_HIGHLIGHTER)),o===x.A.TEXT_HIGHLIGHTER?t((0,je.BO)(j.FV)):o===x.A.REDACT_TEXT_HIGHLIGHTER&&t((0,je.BO)(pe.Z))}))}render(){return T.createElement(pt.Z,{onPointerUp:this._handlePointerUp,onPointerDown:this._handlePointerDown},T.createElement("div",null,this.props.children))}}var Hy=n(47859);function $y(e,t){return e>t?t/1.5:e}class Yy extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"sidebarRef",T.createRef()),(0,o.Z)(this,"state",{size:Math.min(this.props.initialSize,this.props.maxWidth),prevSize:Math.min(this.props.initialSize,this.props.maxWidth)}),(0,o.Z)(this,"onResize",(e=>{const{size:t}=this.state,{onResize:n}=this.props,o=this.sidebarRef.current&&this.sidebarRef.current.getBoundingClientRect();o&&(null==n||n({sidebarRect:o,isDragging:e,size:t}))})),(0,o.Z)(this,"onResizeFinish",(e=>{e!==this.props.initialSize&&this.props.dispatch((0,Eu.Pt)(e))})),(0,o.Z)(this,"onDrag",((e,t)=>{const{minWidth:n,maxWidth:o}=this.props;this.setState((t=>{let{size:r}=t;return eo||o-e<10?{size:o,prevSize:r}:{size:e,prevSize:r}}),(()=>{this.onResize(t)}))})),(0,o.Z)(this,"onDoubleClick",(()=>{const{maxWidth:e}=this.props;this.setState((t=>{let{size:n,prevSize:o}=t;return n===e?{size:$y(o,e)}:{size:e,prevSize:n}}),(()=>this.onResize(!1)))}))}componentDidMount(){this.onResize(!1)}componentDidUpdate(e){const{size:t,prevSize:n}=this.state,{maxWidth:o}=this.props;o!==e.maxWidth&&(t===e.maxWidth||t>o)?this.setState({size:o,prevSize:$y(n,o)}):this.props.initialSize!==e.initialSize&&this.setState({size:this.props.initialSize})}componentWillUnmount(){this.onResize(!1)}render(){const{size:e}=this.state,{draggerSize:t,isRTL:n,maxWidth:o,minWidth:r}=this.props;return T.createElement("div",{ref:this.sidebarRef},T.createElement(Xy,{size:e,onDrag:this.onDrag,onDoubleClick:this.onDoubleClick,onResizeFinish:this.onResizeFinish,draggerSize:t,isRTL:n,currentValue:Math.round((e-r)/(o-r)*100)},T.createElement(Hy.ZP,null,this.props.children(e-t,t))))}}class Xy extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"state",{isDragging:!1,previousPosition:null}),(0,o.Z)(this,"_handlePointerDown",(e=>{const{isPrimary:t}=e;if(!t)return;const n=new B.E9({x:e.clientX,y:e.clientY});this.setState({isDragging:!0,previousPosition:n})})),(0,o.Z)(this,"_handlePointerMove",(e=>{if(!this.state.isDragging)return;const t=new B.E9({x:e.clientX,y:e.clientY});this._handleDrag(t)})),(0,o.Z)(this,"_handlePointerUp",(e=>{if(!this.state.isDragging)return;this.setState({isDragging:!1});const{previousPosition:t}=this.state;if(!t)return;const n=new B.E9({x:e.clientX,y:e.clientY}),o=this.props.size+(this.props.isRTL?t.x-n.x:n.x-t.x);this.props.onResizeFinish(o)})),(0,o.Z)(this,"_handleDoubleClick",(()=>{this.props.onDoubleClick()})),(0,o.Z)(this,"_handleKeyDown",(e=>{const{size:t,isRTL:n,onDrag:o,onDoubleClick:r}=this.props;"ArrowRight"===e.key?o(n?t-2:t+2,!1):"ArrowLeft"===e.key?o(n?t+2:t-2,!1):"Enter"===e.key&&r()})),(0,o.Z)(this,"_handleDrag",(e=>{const{previousPosition:t}=this.state;if(!t)return;const n=this.props.size+(this.props.isRTL?t.x-e.x:e.x-t.x);this.props.onDrag(n,!1),this.setState({previousPosition:e})}))}render(){const{isRTL:e,draggerSize:t,currentValue:n}=this.props;return T.createElement("div",{className:`${uv().sidebar} PSPDFKit-Sidebar`,style:{width:this.props.size,position:"relative",overflow:"hidden",[e?"paddingLeft":"paddingRight"]:t}},this.props.children,T.createElement("div",{onDoubleClick:this._handleDoubleClick},T.createElement(pt.Z,{onPointerDown:this._handlePointerDown,onRootPointerMoveCapture:this._handlePointerMove,onRootPointerUpCapture:this._handlePointerUp},T.createElement("div",{style:{[e?"left":"right"]:0,width:t},className:`${uv().dragger} PSPDFKit-Sidebar-Dragger`},T.createElement("div",{tabIndex:0,role:"separator","aria-label":"Resizer handle","aria-orientation":"vertical","aria-valuenow":n,onKeyDown:this._handleKeyDown,style:{[e?"right":"left"]:this.props.size-t},className:`${uv().draggerHandle} PSPDFKit-Sidebar-DraggerHandle`})))))}}class Jy extends T.PureComponent{render(){const{formatMessage:e}=this.props.intl;return T.createElement(yf.Z,{role:"dialog",onEscape:this.props.onEscape,background:"rgba(0,0,0,.1)",className:kr().modal,accessibilityLabel:e(Qy.signatureDialog),accessibilityDescription:e(Qy.signatureDialogDescription)},this.props.children)}}const Qy={signatureDialog:{id:"signatureDialog",defaultMessage:"Signature",description:"Signature Dialog"},signatureDialogDescription:{id:"signatureDialogDesc",defaultMessage:"This dialog lets you select an ink signature to insert into the document. If you do not have stored signatures, you can create one using the canvas view.",description:"Signature Dialog description"}},eb=(0,Re.XN)(Jy);var tb=n(73039);function nb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ob(e){for(var t=1;t[p.Z.BLACK,p.Z.BLUE,p.Z.RED].includes(e.color)));class ib extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"shouldComponentUpdate",ze.O),(0,o.Z)(this,"state",{annotation:new tb.Z(ob(ob({},this.props.preset),{},{isSignature:!0})),zoomLevel:1}),(0,o.Z)(this,"_onAnnotationColorChange",(e=>{const t=this.state.annotation.withMutations((t=>{t.set("strokeColor",e)}));this._onChange(t)})),(0,o.Z)(this,"_clear",(()=>{this.setState({annotation:new tb.Z(ob(ob({},this.props.preset),{},{isSignature:!0}))},this._callOnChange)})),(0,o.Z)(this,"_onChange",(e=>{this.setState({annotation:e},this._callOnChange)})),(0,o.Z)(this,"_callOnChange",(()=>{const{onChange:e}=this.props;if(!e)return;e(fa(this.state.annotation,this.state.annotation.boundingBox.getLocation().scale(-1),this.props.canvasSize,new B.E9))})),(0,o.Z)(this,"_onResize",(e=>{this.setState({zoomLevel:e.width/this.props.canvasSize.width})}))}render(){const{annotation:e}=this.state,{canvasSize:t}=this.props,{formatMessage:n}=this.props.intl,o=e.lines.isEmpty();return T.createElement(T.Fragment,null,T.createElement("div",{className:kr().header},T.createElement(sp,{colorPresets:rb,activeColor:e.strokeColor,onClick:this._onAnnotationColorChange,className:F()(kr().colorPicker,"PSPDFKit-Signature-Dialog-Color-Picker")}),T.createElement(ue.zx,{onClick:this._clear,inverted:!0,disabled:o,className:F()(kr().button,"PSPDFKit-Signature-Dialog-Clear-Signature-Button")},n(Ke.Z.clearSignature))),T.createElement("div",{className:kr().editorCanvasContainer},T.createElement("div",{className:F()(kr().editorCanvas,"PSPDFKit-Signature-Dialog-Canvas","PSPDFKit-Signature-Canvas","interactions-disabled")},T.createElement(Hp.Z,{onResize:this._onResize}),T.createElement("div",{className:F()(kr().signHere,"PSPDFKit-Signature-Dialog-Sign-Here-Label",{[kr().signHereHidden]:!e.lines.isEmpty()})},n(ab.pleaseSignHere)),T.createElement(Ai,{annotation:e,canvasSize:t,onDrawStart:this._onChange,onDraw:this._onChange,onDrawEnd:this._onChange,zoomLevel:this.state.zoomLevel,cursor:"crosshair"}))))}}(0,o.Z)(ib,"defaultProps",{canvasSize:new B.$u({width:600,height:260}),preset:{}});const ab=(0,Re.vU)({pleaseSignHere:{id:"pleaseSignHere",defaultMessage:"Please sign here",description:"Message on the signature canvas"}}),sb=(0,Re.XN)(ib);var lb,cb=n(41067),ub=n.n(cb);function db(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function pb(e){for(var t=1;t{const{backend:e,attachment:t,templateWidth:n}=this.props;let o=this.props.annotation.update("boundingBox",(e=>null==e?void 0:e.set("left",0).set("top",0))),{boundingBox:r}=o;const i=Math.max(r.width,r.height);return i{this.unmounted||(this.setState({loadingState:"LOADED"}),this.props.onRenderFinished&&this.props.onRenderFinished(e))})),(0,o.Z)(this,"_showError",(()=>{this.setState({loadingState:"ERROR"})})),(0,o.Z)(this,"_showLoadingIndicator",(()=>{this.setState((e=>({showLoadingIndicator:"LOADING"===e.loadingState})))}))}componentDidUpdate(e){if(!(0,i.is)((0,J.ip)(this.props.annotation),(0,J.ip)(e.annotation))||e.annotation.imageAttachmentId!==this.props.annotation.imageAttachmentId||e.templateWidth0&&a>0?i/a:1,l=s>1?ub().wideImg:ub().highImg,c=F()(e instanceof j.sK?ub().imageAnnotation:ub().stampAnnotation,o?ub().containedImg:ub().notContainedImg,l),u=F()(ub().wrapper,{[ub()["imageAnnotation-loading"]]:"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator,[ub()["imageAnnotation-error"]]:"ERROR"===this.state.loadingState}),d={opacity:r,position:"relative",width:o?0===t||s>=1?"100%":t:"auto"},p=pb(pb({},d),{},{height:0===t?"100%":s>1?t:t*s});return T.createElement("div",{style:d,className:u},T.createElement($e.Z,{className:c,fetchImage:this._fetchImage,label:n,visible:!0,onRenderFinished:this._renderFinished,onError:this._showError,rectStyle:p,ref:this.imageFetcherRef}),"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator?T.createElement("div",{className:ub().placeHolder},lb||(lb=T.createElement(Xe.Z,null))):"ERROR"===this.state.loadingState?T.createElement("div",{className:ub().placeHolder},T.createElement(Ye.Z,{src:et(),className:ub().errorIcon})):null)}}class hb extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"shouldComponentUpdate",ze.O)}render(){const{formatMessage:e}=this.props.intl,t=null==this.props.showDeleteBtn||this.props.showDeleteBtn;return T.createElement("ul",{className:F()(kr().signaturePickerList,"PSPDFKit-Signature-Dialog-Picker","PSPDFKit-Signature-Picker")},this.props.signatures.map(((o,r)=>T.createElement("li",{key:r,className:F()(kr().signaturePickerListItem,"PSPDFKit-Signature-Dialog-Picker-Item"),"data-signature":r},T.createElement(ue.zx,{className:F()(kr().selectSignatureButton,"PSPDFKit-Signature-Dialog-Picker-Item-Button",{[kr().imageAnnotation]:o instanceof j.sK}),onClick:()=>{this.props.onSelect(o)},autoFocus:0===r},o instanceof j.Zc?T.createElement(Wt,{isSelectable:!1,annotation:o,viewBox:o.boundingBox}):T.createElement(fb,{annotation:o,backend:this.props.backend,label:o.description||e(Ke.Z.imageAnnotation),attachment:o.imageAttachmentId?this.props.attachments.get(o.imageAttachmentId):null,templateWidth:153.5})),t?T.createElement("button",{className:F()(kr().deleteSignatureButton,"PSPDFKit-Signature-Dialog-Picker-Item-Delete-Button"),onClick:()=>{this.props.onDelete(o)},"aria-label":e(Ke.Z.delete)},T.createElement(Ye.Z,{src:n(61019)})):null))))}}const mb=(0,Re.XN)(hb);var gb;function vb(e){let{children:t,hasDivider:n}=e;return n?T.createElement(T.Fragment,null,gb||(gb=T.createElement(ue.u_.Divider,{spaced:!1})),T.createElement(ue.u_.Section,null,t)):T.createElement("div",{className:kr().footer},t)}class yb extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"state",{annotation:null,hideSignaturePicker:!1,storeSignature:!!this.props.canStoreSignature}),(0,o.Z)(this,"_hideSignaturePicker",(()=>{this.setState({hideSignaturePicker:!0,annotation:null})})),(0,o.Z)(this,"_onSignatureChange",(e=>{this.setState({annotation:e})})),(0,o.Z)(this,"_onDone",(()=>{const{onCreate:e,onCancel:t}=this.props,{annotation:n,storeSignature:o}=this.state;n?null==e||e(n,o,!0):null==t||t()})),(0,o.Z)(this,"_toggleStoreSignature",(()=>{this.setState((e=>({storeSignature:!e.storeSignature})))}))}render(){const{onCreate:e,onDelete:t,storedSignatures:n,preset:o}=this.props,r=!!this.props.canStoreSignature,a=!this.state.hideSignaturePicker&&r&&Boolean(n&&n.size>0),{formatMessage:s}=this.props.intl,{annotation:l,storeSignature:c}=this.state,u=null!==l&&l.lines instanceof i.aV&&!l.lines.isEmpty(),{SIGNATURE_SAVE_MODE:d}=mt.Ei,p=d===_u.f.USING_UI;return T.createElement("div",{className:F()(kr().viewRoot,"PSPDFKit-Signature-Dialog",{[kr().viewSignaturePicker]:a})},a&&n?T.createElement(T.Fragment,null,T.createElement("div",{className:kr().header},T.createElement("div",{className:F()(kr().title,"PSPDFKit-Signature-Dialog-Signature-Heading"),role:"heading","aria-level":"1"},s(Ke.Z.signatures)),T.createElement(ue.zx,{className:"PSPDFKit-Signature-Dialog-Add-Signature-Button",onClick:this._hideSignaturePicker,inverted:!0},s(Ke.Z.addSignature))),T.createElement("div",{className:kr().signaturePickerContainer},T.createElement(mb,{signatures:n,onSelect:t=>{e(t,!1,!0)},onDelete:e=>{t(e,!0)},backend:this.props.backend,attachments:this.props.attachments,viewportWidth:this.props.viewportWidth}))):T.createElement(sb,{onChange:this._onSignatureChange,preset:o}),T.createElement(vb,{hasDivider:a&&r},!a&&r&&p&&T.createElement("label",{className:F()(kr().checkbox,"PSPDFKit-Signature-Dialog-Store-Signature-Checkbox")},T.createElement("input",{type:"checkbox",name:"store",checked:c,onChange:this._toggleStoreSignature}),T.createElement("span",{className:kr().checkboxLabel},s(Ke.Z.storeSignature))),T.createElement(ue.hE,{className:kr().group,align:"end"},T.createElement(ue.zx,{onClick:this.props.onCancel,className:F()(kr().button,"PSPDFKit-Signature-Dialog-Cancel-Button"),autoFocus:!a},s(Ke.Z.cancel)),!a&&T.createElement(ue.zx,{primary:!0,disabled:!u,onClick:u?this._onDone:null,className:F()(kr().button,"PSPDFKit-Signature-Dialog-Done-Button")},s(Ke.Z.done)))))}}(0,o.Z)(yb,"defaultProps",{canStoreSignature:!0});const bb=(0,Re.XN)(yb);var wb=n(44182),Sb=n.n(wb);const Eb=e=>{const{formatMessage:t}=(0,Re.YB)();return T.createElement(yf.Z,{backdropFixed:!0,role:"dialog",onEscape:e.onEscape,background:"rgba(0, 0, 0, 0.1)",className:e.showPicker?Sb().modal:Sb().editorModal,accessibilityLabel:t(Xc.stampAnnotationTemplatesDialog),accessibilityDescription:t(Xc.stampAnnotationTemplatesDialogDescription)},e.children)};class Pb extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"_onSelect",(e=>{this.props.onSelect(e)})),(0,o.Z)(this,"_initializeTemplateValues",(e=>(e instanceof s.GI&&(null==e.title&&(e=e.set("title",ou({annotation:e,intl:this.props.intl}))),e.subtitle&&"Custom"===e.stampType||(e=e.set("subtitle",nu($c.pY[e.stampType],new Date,this.props.intl))),void 0!==$c.a$[e.stampType]&&(e=e.set("stampType",$c.a$[e.stampType]))),e)))}componentDidMount(){const{stampAnnotationTemplates:e,attachments:t}=this.props;let n=!1;e.forEach((e=>{e.imageAttachmentId&&!t.has(e.imageAttachmentId)&&(n=!0,(0,a.ZK)("No attachment found for stamp template with imageAttachmentId set: "+e.toJS()))})),n&&(0,a.ZK)("When the document is reloaded due to having performed operations on the document you need to regenerate any attachments that are not present in the document. Check the corresponding KB article: https://pspdfkit.com/guides/web/current/knowledge-base/image-attachments-lost-stamp-annotation-templates/")}render(){const{intl:{formatMessage:e},viewportWidth:t}=this.props,n=t{const o=ou({annotation:t,intl:this.props.intl});return T.createElement("li",{key:n,className:Sb().stampPickerListItem},T.createElement(ue.zx,{className:Sb().selectStampButton,onClick:()=>{this._onSelect(t)},autoFocus:0===n,"aria-label":o,title:o},T.createElement("div",{className:Sb().templateImageContainer},T.createElement(fb,{annotation:t,backend:this.props.backend,label:t instanceof s.sK?e(Ke.Z.imageAnnotation):t.title||e(Xc[(0,$.LE)((0,$c.k1)(t.stampType))]),attachment:t.imageAttachmentId?this.props.attachments.get(t.imageAttachmentId):null,templateWidth:r,contain:!0}))))})))),T.createElement(_b,{raised:"top"},T.createElement(ue.hE,{className:Sb().group,align:"start"},T.createElement(ue.zx,{onClick:this.props.onCancel,className:Sb().button},e(Ke.Z.cancel)))))}}const xb=(0,Re.XN)(Pb),Db={textTransform:"uppercase"},Cb=cu.find((e=>"blue"===e.localization.id));(0,Ne.k)(null!=Cb),(0,Ne.k)(Cb.color instanceof p.Z);const kb=Cb.color;class Ab extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"_stampWidth",Je.$P),(0,o.Z)(this,"currentDate",new Date),(0,o.Z)(this,"state",{includeDate:!0,includeTime:!0,title:"",color:kb}),(0,o.Z)(this,"_setWidth",(e=>{this._stampWidth=e})),(0,o.Z)(this,"_onAnnotationColorChange",(e=>{this.setState({color:e})})),(0,o.Z)(this,"_toggleIncludeDate",(()=>{this.setState({includeDate:!this.state.includeDate})})),(0,o.Z)(this,"_toggleIncludeTime",(()=>{this.setState({includeTime:!this.state.includeTime})})),(0,o.Z)(this,"_updateText",(e=>{this.setState({title:e.currentTarget.value.toUpperCase()})})),(0,o.Z)(this,"_onCreate",(()=>{const{includeDate:e,includeTime:t}=this.state;this.props.onCreate(new j.GI({stampType:"Custom",title:this.state.title,subtitle:nu({includeDate:e,includeTime:t},this.currentDate,this.props.intl),color:this.state.color,boundingBox:new j.UL({left:0,top:0,width:this._stampWidth,height:Je.mM})}))}))}render(){const{formatMessage:e}=this.props.intl,{includeDate:t,includeTime:n,title:o,color:r}=this.state,i=nu({includeDate:t,includeTime:n},this.currentDate,this.props.intl);return T.createElement(T.Fragment,null,T.createElement("div",{className:Sb().previewContainerBlock},T.createElement("div",{className:F()(Sb().previewContainer,"PSPDFKit-Stamp-Editor")},T.createElement(Ob,{title:o,subtitle:i,color:r,setWidth:this._setWidth})),T.createElement("div",{className:Sb().modalSubHeader},e(Ke.Z.stampText)),T.createElement(ue.oi,{"aria-label":e(Ke.Z.stampText),autoFocus:!0,onChange:this._updateText,value:o,style:Db}),T.createElement("div",{className:Sb().dateTimeLabels},T.createElement("label",{className:Sb().checkbox},T.createElement("input",{type:"checkbox",name:"store",checked:t,onChange:this._toggleIncludeDate}),T.createElement("span",{style:{width:"0.5em"}}),T.createElement("span",null,e(Ke.Z.date))),T.createElement("label",{className:Sb().checkbox},T.createElement("input",{type:"checkbox",name:"store",checked:n,onChange:this._toggleIncludeTime}),T.createElement("span",{style:{width:"0.5em"}}),T.createElement("span",null,e(Ke.Z.time)))),T.createElement("div",{className:Sb().modalSubHeader},e(Ke.Z.chooseColor)),T.createElement(sp,{colorPresets:cu,activeColor:r||kb,onClick:this._onAnnotationColorChange,className:Sb().colorPicker,accessibilityLabel:e(Ke.Z.color)})),T.createElement(_b,null,T.createElement(ue.hE,{className:F()(Sb().group,Sb().spaceBetween)},T.createElement(ue.zx,{onClick:this.props.onCancel,className:Sb().button},e(Ke.Z.cancel)),T.createElement(ue.zx,{className:Sb().button,primary:!0,onClick:this._onCreate},e(Tb.createStamp)))))}}class Ob extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"_canvasEl",null),(0,o.Z)(this,"_canvasRef",(e=>{this._canvasEl=e,this.props.setWidth(this._drawCustomStamp())})),(0,o.Z)(this,"_drawCustomStamp",(()=>lu({canvas:this._canvasEl,title:this.props.title,subtitle:this.props.subtitle,color:this.props.color,defaultStampWidth:Je.$P,stampHeight:Je.mM,container:this._canvasEl&&this._canvasEl.parentElement&&this._canvasEl.parentElement.parentElement})))}render(){const e=this._drawCustomStamp();return this.props.setWidth(e),T.createElement("div",{className:Sb().customStampPreviewContainer,style:{width:e,height:Je.mM}},T.createElement("canvas",{ref:this._canvasRef,style:{width:e,height:Je.mM}}))}}const Tb=(0,Re.vU)({createStamp:{id:"createStamp",defaultMessage:"Create Stamp",description:"Create Stamp from edited template."}}),Ib=(0,Re.XN)(Ab);class Fb extends T.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"_toggleStampsPicker",(()=>{this.props.dispatch(this.props.showPicker?(0,En._z)():(0,En.C4)())}))}render(){const{onCreate:e,onCancel:t,stampAnnotationTemplates:n,backend:o,dispatch:r,attachments:i,viewportWidth:a,intl:{formatMessage:s}}=this.props;return T.createElement("div",{className:F()(Sb().viewRoot,this.props.showPicker&&Sb().viewStampsPicker)},this.props.showPicker?T.createElement(T.Fragment,null,T.createElement(_b,{raised:"bottom",className:Sb().header,useDivider:!1},T.createElement(T.Fragment,null,T.createElement("div",{className:Sb().title,role:"heading","aria-level":"1"},s(Ke.Z.useAnExistingStampDesign)),T.createElement(ue.zx,{onClick:this._toggleStampsPicker,inverted:!0,className:`PSPDFKit-Stamp-Dialog-Custom-Stamp-Button ${Sb().group}`},s(Ke.Z.customStamp)))),T.createElement(xb,{stampAnnotationTemplates:n,onSelect:e,onCancel:t,backend:o,dispatch:r,attachments:i,viewportWidth:a})):T.createElement(T.Fragment,null,T.createElement(_b,{className:Sb().header},T.createElement(T.Fragment,null,T.createElement("div",{className:Sb().title,role:"heading","aria-level":"1"},s(Ke.Z.customStamp)),T.createElement(ue.zx,{onClick:this._toggleStampsPicker,inverted:!0,className:`.PSPDFKit-Stamp-Dialog-Existing-Stamp-Button ${Sb().group}`},s(Ke.Z.useAnExistingStampDesign)))),T.createElement(Ib,{onCreate:e,onCancel:t,dispatch:r})))}}const Mb={top:"0 -2px",left:"-2px 0",right:"2px 0",bottom:"0 2px"},_b=e=>{let{children:t,raised:n,className:o,useDivider:r=!0}=e;const i=n?{boxShadow:`${Mb[n]} 5px rgba(0,0,0, 0.1)`,position:"relative",[`border${n.charAt(0).toUpperCase()}${n.substr(1)}Width`]:1}:{};return T.createElement(T.Fragment,null,r&&T.createElement(yf.Z.Divider,{spaced:!1,className:Sb().modalDivider}),T.createElement(yf.Z.Section,{className:F()(Sb().stampModalSection,o),style:i},t))},Rb=((0,Re.vU)({customStamp:{id:"customStamp",defaultMessage:"Custom Stamp",description:"Edit custom stamp template."}}),(0,Re.XN)(Fb));var Nb=n(6437),Lb=n(98785);const Bb=(0,Re.vU)({thumbnails:{id:"thumbnails",defaultMessage:"Thumbnails",description:"Thumbnails"}});const jb=(0,Eo.x)((function(e){const{pages:t,backend:n,viewportState:{viewportRect:o},annotations:r,attachments:a,showAnnotations:s,formFields:l,renderPageCallback:c}=e,u=(0,nt.Qg)(l);return{annotations:s?r:(0,i.D5)(),attachments:a,backend:n,formFields:l,formFieldValues:u,height:o.height,pages:t,renderPageCallback:c}}))((function(e){const{pages:t,closeOnPress:n,selectedPageIndex:o,navigationDisabled:r}=e,[a,s]=T.useState(null);T.useEffect((()=>{null==a||a.focus()}),[a]);const l=T.useMemo((()=>t.map(g.J)),[t]),{formatMessage:c}=(0,Re.YB)(),u=(0,fi.Bo)(a,l),d=(0,fi.mP)(u,(e=>String(e.index)),(e=>null==l?void 0:l.find((t=>String(t.index)===String(e))))),p=(0,A.I0)(),f=T.useCallback((function(e){r||(n?(p((0,Eu.YA)(e)),p((0,En.mu)())):e!==o&&p((0,Eu.YA)(e)))}),[n,p,o,r]),h=T.useCallback((function(e,n,o){const r=t.find((t=>t.pageIndex===e));if(!r)return{item:null,label:e+1+""};const i=d?e=>{d(e,(0,g.J)(r))}:void 0;return{item:T.createElement(Lb.Z,{key:r.pageKey,page:r,size:n,maxSize:o,pageRef:i}),label:r.pageLabel||e+1+""}}),[t,d]),m=T.useCallback((function(e){const n=t.find((t=>t.pageIndex===e));return(null==n?void 0:n.pageKey)||`${e}`}),[t]);return T.createElement("div",{role:"region","aria-label":c(Bb.thumbnails),tabIndex:-1,ref:s,className:"PSPDFKit-Sidebar-Thumbnails"},l?T.createElement(Nb.Z,{width:e.width,height:e.height,totalItems:l.size,renderItemCallback:h,itemKeyCallback:m,itemScale:e.scale,onItemPress:f,selectedItemIndexes:(0,i.l4)([o]),cssPrefix:"PSPDFKit-Sidebar",clickDisabled:r}):null)}));var zb=n(46983),Kb=n.n(zb);function Zb(e){let{position:t,children:n}=e;return T.createElement("div",null,T.createElement("div",{className:F()("PSPDFKit-Toolbars",Kb().root,{[Kb().stickToBottom]:"bottom"===t})},n))}var Ub=n(76367),Vb=n(70742),Gb=n.n(Vb);function Wb(e){const[t,o]=T.useState(!1),[r,i]=T.useState(!1),a=T.useRef(e.digitalSignatures);T.useEffect((()=>{e.digitalSignatures!==a.current&&o(!1),a.current=e.digitalSignatures}),[e.digitalSignatures]),T.useEffect((()=>{!async function(){const t=(0,Mr.jI)(e.digitalSignatures,e.showSignatureValidationStatus);i(t)}()}),[e.showSignatureValidationStatus,e.digitalSignatures]);const{formatMessage:s}=(0,Re.YB)(),{status:l,messageId:c,iconPath:u}=e.digitalSignatures?function(e){let{documentModifiedSinceSignature:t,status:n}=e;if(n===Ub._.valid)return t?{status:"warning",messageId:"digitalSignaturesDocModified",iconPath:"warning-2.svg"}:{status:"valid",messageId:"digitalSignaturesAllValid",iconPath:"digital-signatures/signature-valid.svg"};if(n===Ub._.warning)return{status:"warning",messageId:t?"digitalSignaturesSignatureWarningDocModified":"digitalSignaturesSignatureWarning",iconPath:"warning-2.svg"};if(n===Ub._.error)return{status:"error",messageId:t?"digitalSignaturesSignatureErrorDocModified":"digitalSignaturesSignatureError",iconPath:"digital-signatures/signature-error.svg"};return{status:null,messageId:null,iconPath:null}}(e.digitalSignatures):{status:null,messageId:null,iconPath:null};if(null==l||null==c||t)return null;const d=F()(Gb().root,Gb()[`status-${l}`],"PSPDFKit-Digital-Signatures-Status",`PSPDFKit-Digital-Signatures-Status-${(0,qn.kC)(l)}`),p=F()(Gb().signatureValidationStatusIcon,Gb()[`status-${l}-icon`],"PSPDFKit-Digital-Signatures-Status-Icon");return r?T.createElement("div",{className:d},T.createElement("div",{className:Gb().signatureInfoContainer},T.createElement("div",{className:Gb().signatureValidationStatusIconContainer},T.createElement(Ye.Z,{className:p,src:n(79230)(`./${u}`)})),T.createElement("span",{className:F()(Gb().signatureValidationStatusText,"PSPDFKit-Digital-Signatures-Status-Text")},s(qb[c]))),T.createElement(ue.zx,{className:F()(Gb().signatureValidationCloseButton,"PSPDFKit-Digital-Signatures-Status-Close-Button"),onClick:()=>{o(!0)},"aria-label":"Close digital signatures status bar"},T.createElement(Ye.Z,{className:Gb().signatureValidationCloseIcon,src:n(15708)}))):null}const qb=(0,Re.vU)({digitalSignaturesDocModified:{id:"digitalSignaturesDocModified",defaultMessage:"The document has been digitally signed, but it has been modified since it was signed.",description:"Message when document is valid but has been modified since it was signed."},digitalSignaturesAllValid:{id:"digitalSignaturesAllValid",defaultMessage:"The document has been digitally signed and all signatures are valid.",description:"Message when document is valid."},digitalSignaturesSignatureWarningDocModified:{id:"digitalSignaturesSignatureWarningDocModified",defaultMessage:"The document has been digitally signed, but it has been modified since it was signed and at least one signature has problems.",description:'Message when the document is in a "warning" status and the document has been modified since signing.'},digitalSignaturesSignatureWarning:{id:"digitalSignaturesSignatureWarning",defaultMessage:"The document has been digitally signed, but at least one signature has problems.",description:'Message when the document is in a "warning" status.'},digitalSignaturesSignatureErrorDocModified:{id:"digitalSignaturesSignatureErrorDocModified",defaultMessage:"The document has been digitally signed, but it has been modified since it was signed and at least one signature is invalid.",description:'Message when the document is in a "error" status and the document has been modified since signing.'},digitalSignaturesSignatureError:{id:"digitalSignaturesSignatureError",defaultMessage:"The document has been digitally signed, but at least one signature is invalid.",description:'Message when the document is in a "error" status.'}});var Hb=n(90133),$b=n.n(Hb);const Yb=T.memo((function(e){return T.createElement(zv,{itemClassName:$b().item,rootClassName:F()("PSPDFKit-Annotation-Tooltip",$b().root),items:e.items})}));var Xb=n(73396),Jb=n.n(Xb);function Qb(e){let{viewportState:{viewportRect:t,commentMode:n},children:o,scrollbarOffset:r}=e;const i={width:t.width+r,height:n===Yh._.PANE?t.height/2:t.height};return T.createElement("div",{className:`PSPDFKit-Viewport ${Jb().root}`,style:i},o)}var ew=n(73535),tw=n.n(ew);const nw=(0,Re.XN)((function(e){const{formatMessage:t}=e.intl;return T.createElement(yf.Z,{role:"alertdialog",onEscape:e.onCancel,background:"rgba(0,0,0,.1)",className:"PSPDFKit-Confirm-Dialog PSPDFKit-Reload-Document-Confirm-Dialog",accessibilityLabel:t(ow.reloadDocumentDialog),accessibilityDescription:t(ow.reloadDocumentDialogDesc)},T.createElement(yf.Z.Section,{style:{paddingBottom:0}},T.createElement("div",{className:`${tw().content} PSPDFKit-Confirm-Dialog-Content`},T.createElement("div",null,t(ow.instantModifiedWarning)))),T.createElement(yf.Z.Section,null,T.createElement(ue.hE,{className:"PSPDFKit-Confirm-Dialog-Buttons",align:"end"},T.createElement(ue.zx,{autoFocus:!0,onClick:e.onCancel,className:"PSPDFKit-Confirm-Dialog-Button PSPDFKit-Confirm-Dialog-Button-Cancel"},t(Ke.Z.cancel)),T.createElement(ue.zx,{onClick:e.onConfirm,primary:!0,className:"PSPDFKit-Confirm-Dialog-Button PSPDFKit-Confirm-Dialog-Button-Confirm"},t(ow.reloadDocument)))))})),ow=(0,Re.vU)({instantModifiedWarning:{id:"instantModifiedWarning",defaultMessage:"Reload document confirm dialog message",description:"The document was modified and is now in read-only mode. Reload the page to fix this."},reloadDocument:{id:"reloadDocument",defaultMessage:"Reload document",description:"Reload"},reloadDocumentDialog:{id:"reloadDocumentDialog",defaultMessage:"Confirm document reload",description:"Reload Document Confirm Dialog"},reloadDocumentDialogDesc:{id:"reloadDocumentDialogDesc",defaultMessage:"Dialog prompting the user to confirm reloading the document.",description:"Description for the Reload Document Dialog"}});var rw=n(83251),iw=n.n(rw);function aw(e){const{formatMessage:t}=(0,Re.YB)();return T.createElement(yf.Z,{role:"dialog",onEscape:e.onEscape,className:iw().modal,accessibilityLabel:t(sw.signatureDialog),accessibilityDescription:t(sw.signatureDialogDescription)},e.children)}const sw={signatureDialog:{id:"signatureDialog",defaultMessage:"Signature",description:"Signature Dialog"},signatureDialogDescription:{id:"signatureDialogDesc",defaultMessage:"This dialog lets you select a signature to insert into the document. If you do not have stored signatures, you can create one by drawing, typing or selecting an existing image.",description:"Signature Dialog description"}};function lw(e){return function(t){return!!t.type&&t.type.tabsRole===e}}var cw=lw("Tab"),uw=lw("TabList"),dw=lw("TabPanel");function pw(){return pw=Object.assign||function(e){for(var t=1;t=this.getTabsCount())){var n=this.props;(0,n.onSelect)(e,n.selectedIndex,t)}},r.getNextTab=function(e){for(var t=this.getTabsCount(),n=e+1;ne;)if(!Dw(this.getTab(t)))return t;return e},r.getFirstTab=function(){for(var e=this.getTabsCount(),t=0;t=0||(r[n]=e[n]);return r}(t,["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys"]));return T.createElement("div",Sw({},r,{className:gw(n),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:function(t){e.node=t,o&&o(t)},"data-tabs":!0}),this.getChildren())},o}(T.Component);function kw(e,t){return kw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kw(e,t)}Cw.defaultProps={className:"react-tabs",focus:!1},Cw.propTypes={};var Aw=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).handleSelected=function(e,t,o){var r=n.props.onSelect,i=n.state.mode;if("function"!=typeof r||!1!==r(e,t,o)){var a={focus:"keydown"===o.type};1===i&&(a.selectedIndex=e),n.setState(a)}},n.state=o.copyPropsToState(n.props,{},t.defaultFocus),n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,kw(t,n),o.getDerivedStateFromProps=function(e,t){return o.copyPropsToState(e,t)},o.getModeFromProps=function(e){return null===e.selectedIndex?1:0},o.copyPropsToState=function(e,t,n){void 0===n&&(n=!1);var r={focus:n,mode:o.getModeFromProps(e)};if(1===r.mode){var i=Math.max(0,ww(e.children)-1),a=null;a=null!=t.selectedIndex?Math.min(t.selectedIndex,i):e.defaultIndex||0,r.selectedIndex=a}return r},o.prototype.render=function(){var e=this.props,t=e.children,n=(e.defaultIndex,e.defaultFocus,function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,["children","defaultIndex","defaultFocus"])),o=this.state,r=o.focus,i=o.selectedIndex;return n.focus=r,n.onSelect=this.handleSelected,null!=i&&(n.selectedIndex=i),T.createElement(Cw,n,t)},o}(T.Component);function Ow(){return Ow=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,["children","className"]);return T.createElement("ul",Ow({},o,{className:gw(n),role:"tablist"}),t)},o}(T.Component);function Fw(){return Fw=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(n,["children","className","disabled","disabledClassName","focus","id","panelId","selected","selectedClassName","tabIndex","tabRef"]);return T.createElement("li",Fw({},f,{className:gw(r,(e={},e[u]=c,e[a]=i,e)),ref:function(e){t.node=e,p&&p(e)},role:"tab",id:s,"aria-selected":c?"true":"false","aria-disabled":i?"true":"false","aria-controls":l,tabIndex:d||(c?"0":null)}),o)},o}(T.Component);function Nw(){return Nw=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(t,["children","className","forceRender","id","selected","selectedClassName","tabId"]);return T.createElement("div",Nw({},c,{className:gw(o,(e={},e[s]=a,e)),role:"tabpanel",id:i,"aria-labelledby":l}),r||a?n:null)},o}(T.Component);jw.defaultProps={className:Bw,forceRender:!1,selectedClassName:"react-tabs__tab-panel--selected"},jw.propTypes={},jw.tabsRole="TabPanel";var zw=n(52940),Kw=n.n(zw),Zw=n(70768),Uw=n.n(Zw);function Vw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Gw(e){for(var t=1;t{const e=new tb.Z(Gw(Gw({},o),{},{isSignature:!0,strokeColor:a.strokeColor}));n(e)}),[o,n,a]),d=T.useCallback((e=>{const t=a.set("strokeColor",e);n(t)}),[n,a]),p=T.useCallback((e=>{l(e.width/r.width)}),[r.width]),f=T.useCallback((e=>{n(e)}),[n]);return T.createElement("div",{className:Uw().wrapper},T.createElement("div",{className:Uw().colorPickerContainer},T.createElement(sp,{colorPresets:i,activeColor:a.strokeColor,accessibilityLabel:t(Ke.Z.color),onClick:d,className:F()(kr().colorPicker,"PSPDFKit-Electronic-Signatures-Color-Picker")})),T.createElement("div",{className:F()(kr().editorCanvasContainer,Uw().editorCanvasContainer)},T.createElement("div",{className:F()(kr().editorCanvas,Uw().canvas,"PSPDFKit-Electronic-Signatures-Canvas","interactions-disabled"),tabIndex:0},T.createElement(Hp.Z,{onResize:p}),T.createElement(Ai,{annotation:a,canvasSize:r,onDrawStart:f,onDraw:f,onDrawEnd:f,zoomLevel:s,cursor:"crosshair"}))),T.createElement("div",{className:Uw().actionContainer},a.lines.isEmpty()?T.createElement("div",{className:F()(kr().signHere,Uw().signHere,"PSPDFKit-Electronic-Signatures-Sign-Here-Label",{[kr().signHereHidden]:!a.lines.isEmpty()})},t(qw.signHere)):T.createElement(ue.zx,{onClick:u,inverted:!0,disabled:c,className:F()(kr().button,Uw().deleteSignature,"PSPDFKit-Electronic-Signatures-Clear-Signature-Button")},t(Ke.Z.clearSignature))))}const qw=(0,Re.vU)({signHere:{id:"signHere",defaultMessage:"Sign here",description:"Message on the signature canvas"}});var Hw=n(27074),$w=n.n(Hw),Yw=n(10713),Xw=n.n(Yw);function Jw(e){const{formatMessage:t}=(0,Re.YB)(),{image:n,onImageSelected:o,onRenderFinished:r}=e,[i,a]=T.useState(!1),[s,l]=T.useState(!1),[c,u]=T.useState(null),d=T.useRef(null),p=T.useRef(null),f=T.useCallback((e=>{const t=e.target.files[0];if(!t)return;const n=e.target.files[0].type;"image/jpeg"!==n&&"image/png"!==n||(o(t),e.target.value="")}),[o]),h=T.useCallback((e=>{e.stopPropagation(),d.current&&d.current.click()}),[]);return T.useEffect((function(){n&&n!==p.current&&(c&&URL.revokeObjectURL(c),u(URL.createObjectURL(n)),r(),p.current=n)}),[n,c,u,r]),T.createElement("div",{className:$w().wrapper},T.createElement("div",{className:F()($w().dragZone,{[$w().draggingOver]:i,[$w().hoveringOver]:s,[$w().dragZoneNoSelection]:!n,[$w().dragZoneNoLegacyEdge]:!0},"PSPDFKit-Electronic-Signatures-Image-Dropzone"),onDrag:e=>{e.preventDefault(),e.stopPropagation()},onDragStart:e=>{e.preventDefault(),e.stopPropagation()},onDragEnd:e=>{e.preventDefault(),e.stopPropagation(),a(!1)},onDragOver:e=>{e.preventDefault(),e.stopPropagation(),a(!0)},onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),a(!0)},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),a(!1)},onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),a(!1),e.dataTransfer.files&&e.dataTransfer.files[0]){const t=e.dataTransfer.files[0];if("image/jpeg"!==t.type&&"image/png"!==t.type)return;o(t)}},onClickCapture:h,onPointerOver:()=>{l(!0)},onPointerOut:()=>{l(!1)}},T.createElement("input",{type:"file",id:"image-picker",className:$w().filePicker,accept:"image/png, image/jpeg",onChange:f,ref:d,tabIndex:-1}),n?T.createElement("img",{src:c||void 0,className:$w().imagePreview}):T.createElement("div",{className:$w().dragZoneContent},T.createElement("button",{tabIndex:0,className:F()($w().addButton,"PSPDFKit-Electronic-Signatures-Add-Image-Button"),onClick:h},T.createElement(ue.TX,null,t(Qw.selectDragImage)),T.createElement(Ye.Z,{src:Xw(),className:$w().addIcon,"aria-hidden":"true"})),T.createElement("p",{className:$w().legend,"aria-hidden":!0},t(Qw.selectDragImage)))),n&&T.createElement("button",{className:F()($w().fileLabel,$w().buttonLink,"PSPDFKit-Electronic-Signatures-Replace-Image-Button"),onClick:h},t(Qw.replaceImage)))}const Qw=(0,Re.vU)({selectDragImage:{id:"selectDragImage",defaultMessage:"Select or Drag Image",description:"Indicate that the space is reserved to select or drag an image"},replaceImage:{id:"replaceImage",defaultMessage:"Replace Image",description:"Click to replace the image currently visible"}});var eS=n(52247),tS=n(49814),nS=n.n(tS);function oS(e){var t,n,o;const r=(0,Re.YB)().formatMessage,{signingFonts:i,onChange:s,colors:l,signature:c}=e,u=e.frameWindow.innerWidth,d=i.map((e=>e.name));let p,f;d.size<=1&&(p={paddingTop:"5%",height:"100%"},u>Je.Fg&&(f=48));const h=T.useCallback((e=>{if(!e)return;const t=c.set("fontColor",e);s(t)}),[c,s]),m=T.useCallback((e=>{const t=c.set("font",e);s(t)}),[c,s]),g=T.useCallback((e=>{const t=c.set("text",{format:"plain",value:e});s(t)}),[c,s]),v=T.useCallback((()=>{const e=c.set("text",{format:"plain",value:""});s(e)}),[c,s]),y=F()(nS().fontFamilyWrapper,"PSPDFKit-Electronic-Signatures-Font-Family-Wrapper"),b=l.find((e=>e.color&&e.color.equals(c.fontColor)));return T.createElement("div",{className:nS().wrapper},T.createElement("div",{className:nS().typingUiContainer,style:p},T.createElement("div",{className:nS().colorPickerContainer},T.createElement(sp,{colorPresets:l,activeColor:c.fontColor,onClick:h,className:F()(kr().colorPicker,"PSPDFKit-Electronic-Signatures-Color-Picker")})),T.createElement("style",null,`\n .PSPDFKit-Electronic-Signatures-Text-Input::placeholder {\n color: rgb(${null==b||null===(t=b.color)||void 0===t?void 0:t.r}, ${null==b||null===(n=b.color)||void 0===n?void 0:n.g}, ${null==b||null===(o=b.color)||void 0===o?void 0:o.b});\n }\n `),T.createElement("div",{className:nS().inputContainer},T.createElement(Nd,{accessibilityLabel:r(rS.ElectronicSignatures_SignHereTypeHint),placeholder:r(rS.signature),autoFocus:!0,value:c.text.value,onUpdate:g,styles:{input:F()(nS().input,"PSPDFKit-Electronic-Signatures-Text-Input",{[nS().opaque]:!c.text})},textStyles:{color:c.fontColor.toCSSValue(),fontFamily:(0,vt.hm)(c.font),fontSize:f}}),T.createElement("div",{className:nS().actionContainer},c.text?T.createElement(ue.zx,{onClick:v,inverted:!0,className:F()(kr().button,nS().deleteSignature,"PSPDFKit-Electronic-Signatures-Clear-Signature-Button")},r(Ke.Z.clearSignature)):T.createElement("div",{className:F()(kr().signHere,nS().signHere,"PSPDFKit-Electronic-Signatures-Sign-Here-Label")},r(rS.ElectronicSignatures_SignHereTypeHint))))),d.size>1?T.createElement("div",{className:F()(nS().fontFamiliesPickerContainer,"PSPDFKit-Electronic-Signatures-Font-Families-Container")},d.map(((e,t)=>{const n=e===c.font;return(0,a.kG)((0,$.HD)(e)&&(0,$.HD)(t)),T.createElement("div",{onClick:()=>{m(e)},className:y,key:e},T.createElement("input",{type:"radio",checked:n,value:t,id:e,name:e,onChange:t=>{t.target.checked&&m(e)},className:F()(nS().fontFamilyRadio,"PSPDFKit-Electronic-Signatures-Font-Family-Radio-Input")}),T.createElement("label",{"aria-label":e,htmlFor:e,style:{color:c.fontColor.toCSSValue(),fontFamily:`${(0,vt.hm)(e)}, cursive`},className:F()(nS().fontLabel,"PSPDFKit-Electronic-Signatures-Font-Family-Label")},c.text.value||r(rS.signature)))}))):null)}const rS=(0,Re.vU)({signature:{id:"signature",defaultMessage:"Signature",description:"Placeholder for the signature"},ElectronicSignatures_SignHereTypeHint:{id:"ElectronicSignatures_SignHereTypeHint",defaultMessage:"Type Your Signature Above",description:"Indicates where the signature will be"}});function iS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function aS(e){for(var t=1;te.name)),[d,p]=T.useState(0),[f,h]=T.useState(null),[m,g]=T.useState(!0),[v,y]=T.useState(null),[b,w]=T.useState(!1),[S,E]=T.useState(new s.gd(aS(aS({},n),{},{font:u.first(),fontSize:16,text:{format:"plain",value:""},fontColor:e.colorPresets[0].color}))),[P,x]=T.useState(new tb.Z(aS(aS({},n),{},{isSignature:!0,strokeColor:e.colorPresets[0].color}))),D=T.useRef(null),C=T.useCallback((e=>{E(e)}),[E]),k=T.useCallback((e=>{x(e)}),[x]),A=T.useCallback((async function(){if(0===d&&P){const e=fa(P,P.boundingBox.getLocation().scale(-1),c,new B.E9);o(e,m,!1)}else if(1===d&&v)o(v,m,!1);else if(2===d&&S&&S.fontColor){const e=await(0,He.Y)(S.text.value,S,a);l((0,Qt.gX)({fontColor:S.fontColor,font:S.font})),o(e,m,!1)}}),[d,v,P,S,o,m,a,c,l]);let O=!0;const I=i.toArray()[d];I!==eS.M.DRAW||P.lines.isEmpty()?(I===eS.M.IMAGE&&v&&b||I===eS.M.TYPE&&S.text.value)&&(O=!1):O=!1;const M=i.map((o=>{switch(o){case eS.M.DRAW:return{tab:T.createElement(Rw,{className:F()(Kw().tab,"PSPDFKit-Electronic-Signatures-Tab PSPDFKit-Electronic-Signatures-Tab-Draw"),key:"draw"},t(cS.draw)),tabPanel:T.createElement(jw,{key:"draw",className:"PSPDFKit-Electronic-Signatures-Tab-Panel PSPDFKit-Electronic-Signatures-Tab-Panel-Draw"},T.createElement(Ww,{preset:n,colors:e.colorPresets,onChange:k,signature:P,canvasSize:c}))};case eS.M.IMAGE:return{tab:T.createElement(Rw,{className:F()(Kw().tab,"PSPDFKit-Electronic-Signatures-Tab PSPDFKit-Electronic-Signatures-Tab-Image"),key:"image"},t(cS.image)),tabPanel:T.createElement(jw,{key:"image",className:"PSPDFKit-Electronic-Signatures-Tab-Panel PSPDFKit-Electronic-Signatures-Tab-Panel-Image"},T.createElement(Jw,{image:v,onImageSelected:y,onRenderFinished:()=>w(!0)}))};case eS.M.TYPE:return{tab:T.createElement(Rw,{className:F()(Kw().tab,"PSPDFKit-Electronic-Signatures-Tab PSPDFKit-Electronic-Signatures-Tab-Type"),key:"type"},t(cS.type)),tabPanel:T.createElement(jw,{key:"type",className:"PSPDFKit-Electronic-Signatures-Tab-Panel PSPDFKit-Electronic-Signatures-Tab-Panel-Type"},T.createElement(oS,{signingFonts:r,onChange:C,frameWindow:e.frameWindow,colors:e.colorPresets,signature:S,preset:n}))};default:return}}));return T.useLayoutEffect((()=>{if(D.current){const e=D.current.querySelectorAll('li[role="tab"]');h(Array.from(e).map((e=>e.getBoundingClientRect().width)))}}),[h]),T.createElement(Aw,{onSelect:e=>{p(e)},className:F()(Kw().tabsContainer,"PSPDFKit-Electronic-Signatures-Tabs-Container"),defaultFocus:!0,environment:e.frameWindow,domRef:e=>D.current=e},T.createElement(Iw,{className:F()(Kw().tabsList,{[Kw().singleTab]:1===M.size},"PSPDFKit-Electronic-Signatures-Tabs-List")},T.createElement("div",{className:Kw().activeTabIndicator,style:{left:(f?f.filter(((e,t)=>te+t+13),0):0)+32,width:f?f[d]:0}}),M.map((e=>e&&e.tab))),T.createElement("div",{className:Kw().contentArea},M.map((e=>e&&e.tabPanel))),T.createElement("div",{className:Kw().footer},e.hasSignaturesCreationListener&&T.createElement("label",{className:F()(Kw().checkbox,"PSPDFKit-Electronic-Signatures-Store-Signature-Checkbox")},T.createElement("input",{type:"checkbox",name:"store",checked:m,onChange:e=>{g(e.target.checked)}}),T.createElement("span",{className:Kw().checkboxLabel},t(cS.saveSignature))),T.createElement(ue.hE,{className:Kw().group,align:"end",style:e.hasSignaturesCreationListener?void 0:{width:"100%"}},T.createElement(ue.zx,{onClick:e.onCancel,className:F()(Kw().button,"PSPDFKit-Electronic-Signatures-Cancel-Button")},t(Ke.Z.cancel)),T.createElement(ue.zx,{primary:!0,disabled:O,onClick:A,className:F()(Kw().button,"PSPDFKit-Electronic-Signatures-Done-Button")},t(Ke.Z.done)))))}const cS=(0,Re.vU)({saveSignature:{id:"saveSignature",defaultMessage:"Save Signature",description:"Save the signature that is in creation"},draw:{id:"draw",defaultMessage:"Draw",description:"Draw tab"},image:{id:"image",defaultMessage:"Image",description:"Image tab"},type:{id:"type",defaultMessage:"Type",description:"Type tab"}});var uS=n(44295),dS=n.n(uS);function pS(e){const{formatMessage:t}=(0,Re.YB)(),{storedSignatures:n,onCreate:o,onDelete:r,dispatch:i}=e,[a,s]=T.useState(!1),l=!a&&Boolean(n&&n.size>0);return T.useEffect((()=>{e.frameWindow.document.fonts&&(0,mp.GE)(e.signingFonts,e.frameWindow.document.fonts)}),[e.signingFonts,e.frameWindow.document.fonts]),l&&n?T.createElement(T.Fragment,null,T.createElement("div",{className:dS().header},T.createElement("div",{className:F()(dS().legend,"PSPDFKit-Electronic-Signatures-Signature-Heading"),role:"heading","aria-level":"1"},t(Ke.Z.signatures)),T.createElement(ue.zx,{className:F()(dS().addButton,"PSPDFKit-Electronic-Signatures-Add-Signature-Button"),onClick:()=>{s(!0)},inverted:!0},t(Ke.Z.addSignature))),T.createElement("div",{className:dS().signaturePickerContainer},T.createElement(mb,{signatures:n,onSelect:e=>{o(e,!1,!1)},onDelete:e=>{r(e,!1)},backend:e.backend,attachments:e.attachments,viewportWidth:e.viewportWidth,showDeleteBtn:e.hasSignaturesDeletionListener})),T.createElement("div",{className:dS().footer},T.createElement(ue.hE,{className:dS().group,align:"end"},T.createElement(ue.zx,{onClick:e.onCancel,className:F()(dS().button,"PSPDFKit-Signature-Dialog-Cancel-Button")},t(Ke.Z.cancel))))):T.createElement(T.Fragment,null,T.createElement("p",{className:dS().legend},t(Ke.Z.addSignature)),T.createElement(lS,{preset:e.preset,frameWindow:e.frameWindow,colorPresets:e.colorPresets,onCreate:e.onCreate,onCancel:e.onCancel,hasSignaturesCreationListener:e.hasSignaturesCreationListener,signingFonts:e.signingFonts,creationModes:e.creationModes,dispatch:i}))}var fS=n(72952),hS=n.n(fS),mS=n(84747),gS=n(23477),vS=n(6733),yS=n.n(vS);function bS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function wS(e){for(var t=1;tn.e(5747).then(n.bind(n,12711)))),PS=T.createElement("div",{className:yS().fallback,"data-testid":"fallback"},T.createElement("div",{className:yS().fallbackToolbar}),T.createElement("div",{className:yS().fallbackPagesView},T.createElement(Xe.Z,{scale:2})),T.createElement("div",{className:yS().fallbackToolbar})),xS={documentEditor:{id:"documentEditor",defaultMessage:"Document Editor",description:"Document Editor"},documentEditorDesc:{id:"documentEditorDesc",defaultMessage:"Make changes to the current document",description:"Description of the Document Editor modal"}},DS=e=>{const{formatMessage:t}=(0,Re.YB)(),[n,o]=T.useState(!0),r=T.useCallback((e=>{o(!e)}),[]),i=T.useCallback((()=>{n&&e.onCancel()}),[n,e]);return T.createElement(yf.Z,{onEscape:i,useBorderRadius:!1,className:yS().modal,accessibilityLabel:t(xS.documentEditor),accessibilityDescription:t(xS.documentEditorDesc)},T.createElement(T.Suspense,{fallback:PS},T.createElement(ES,{onCancel:e.onCancel,scale:e.scale,CSS_HACK:SS,onDialog:r})))};function CS(){const[e,t]=T.useState(null);T.useEffect((()=>{null==e||e.focus()}),[e]),(0,fi.Bo)(e,null);const n=F()(uv().container,"PSPDFKit-Sidebar-Custom");return T.createElement("div",{role:"region",tabIndex:-1,ref:t,className:n})}var kS,AS=n(74792),OS=n(47825);function TS(e){const{formatMessage:t}=(0,Re.YB)();return T.createElement("form",{onSubmit:e.onSave,className:F()(lv().editor,"PSPDFKit-Sidebar-Bookmarks-Editor"),onKeyUp:t=>{t.which===Sr.zz&&e.onCancel()}},e.title&&T.createElement("h2",{className:F()(lv().heading,"PSPDFKit-Sidebar-Bookmarks-Heading")},e.title),T.createElement("label",null,T.createElement(ue.oi,{value:e.value,onChange:e.onChange,autoFocus:!0,selectTextOnFocus:!0,name:"name",placeholder:t(Ke.Z.name),autoComplete:"off",style:{fontSize:"inherit",fontWeight:"normal",padding:"calc(0.8125em/ 2) 0.8125em"}})),T.createElement("div",{className:F()(lv().buttonContainer,"PSPDFKit-Sidebar-Bookmarks-Button-Container")},e.onDelete&&T.createElement(ue.zx,{onClick:e.onDelete,inverted:!0,danger:!0,className:"PSPDFKit-Sidebar-Bookmarks-Button-Delete",style:{marginRight:"5em"}},t(Ke.Z.delete)),T.createElement("div",null,T.createElement(ue.zx,{onClick:e.onCancel,className:"PSPDFKit-Sidebar-Bookmarks-Button-Cancel",style:{marginRight:"0.5em"}},t(Ke.Z.cancel)),T.createElement(ue.zx,{primary:!0,type:"submit",className:"PSPDFKit-Sidebar-Bookmarks-Button-Save"},t(Ke.Z.save)))))}function IS(e){var t;const{bookmarks:o,pages:r,currentPageIndex:a,bookmarkManager:s}=e,[l,c]=T.useState(null);T.useEffect((()=>{null==l||l.focus()}),[l]);const[u,d]=T.useState(null),[p,f]=T.useState(null),[h,m]=T.useState(!1),[g,v]=T.useState(null),y=(0,A.I0)(),b=T.useRef(),w=T.useRef(null),S=T.useRef(!1),[E,P]=T.useState(new Set),{formatMessage:x}=(0,Re.YB)(),D=(0,fi.R9)((()=>{d(null),f(null),m(!1)})),C=(0,fi.R9)((e=>{f(e.currentTarget.value)})),k=(0,fi.R9)((()=>{u&&u.id&&(S.current=!0),D(),v(x(_S.cancelledEditingBookmark))})),O=(0,fi.R9)((e=>{if(e.persist(),e.preventDefault(),u&&p!==u.name){let e=u.set("name",p).setIn(["action","pageIndex"],a);e.id?s.updateObject(e):(e=e.set("id",(0,OS.A)()),w.current=e.id,s.createObject(e)),s.autoSave(),v(x(_S.bookmarkEdited))}else v(x(_S.bookmarkCreated));D()})),I=(0,fi.R9)((()=>{u&&(s.deleteObject(u),s.autoSave()),D(),v(x(_S.bookmarkDeleted))})),M=(0,fi.R9)((()=>{m(!1)})),_=(0,fi.R9)((()=>{m(!0)})),R=(0,fi.R9)((e=>{d(e),f(e.name||"")})),N=(0,fi.R9)((()=>{d(new j.rp({action:new j.Di({pageIndex:e.currentPageIndex})})),f("")}));T.useEffect((()=>{null!=l&&l.hasAttribute("aria-label")&&l.focus()}),[l]);const L=(0,fi.jC)(e);T.useEffect((()=>{if(b.current&&null!=L&&L.bookmarks&&o&&(L.bookmarks!==o||S.current)){var e;const t=null!==(e=MS(o).findIndex((e=>e.id===w.current)))&&void 0!==e?e:-1;t>-1&&b.current.setActiveItem(t),S.current=!1}}));const B=o?(0,i.aV)(MS(o)):o,z=(0,fi.Bo)(l,B),K={className:F()(lv().container,!B&&lv().loading+" PSPDFKit-Sidebar-Loading",B&&0===B.size&&" PSPDFKit-Sidebar-Empty","PSPDFKit-Sidebar-Bookmarks"),ref:c,style:{width:e.width},role:"region","aria-label":x(Ke.Z.bookmarks)},Z=(0,fi.mP)(z,(e=>e.id),(e=>null==B?void 0:B.find((t=>t.id===e))));if(!B)return T.createElement("div",(0,De.Z)({},K,{tabIndex:0}),T.createElement(ue.TX,{"aria-live":"polite"},x(_S.loadingBookmarks)),kS||(kS=T.createElement(Xe.Z,null)));const U=r.get(a),V=U&&U.get("pageLabel");return T.createElement("div",K,T.createElement(ue.TX,{"aria-live":"polite"},x(Ke.Z.bookmarks)),u&&!u.id?T.createElement(TS,{onChange:C,onSave:O,onCancel:k,value:p,title:x(Ke.Z.pageX,{arg0:V||e.currentPageIndex+1})+": "+x(_S.newBookmark)}):T.createElement("div",{style:{width:"100%"}},T.createElement("div",{className:uv().sidebarHeader},T.createElement("h2",{"aria-hidden":"true",className:F()(lv().heading,"PSPDFKit-Sidebar-Bookmarks-Heading")}," ",T.createElement("span",null,x(Ke.Z.bookmarks))),T.createElement(ue.zx,{primary:!0,onClick:N,className:F()("PSPDFKit-Sidebar-Bookmarks-Button-Add"),autoFocus:!0},x(_S.newBookmark)))),B&&B.size>0&&T.createElement(ue.HJ,{onActiveItemIndexChange:e=>{const t=B.get(e);t&&t.id&&(w.current=t.id)},ref:b,items:B.toArray().map(((o,i)=>{const s=o.action,l=s.pageIndex===a,c=F()({[lv().layout]:!0,[lv().layoutWidth]:!0,[lv().layoutEditing]:o===u,[lv().layoutNarrow]:e.closeOnPress,[lv().selected]:l,"PSPDFKit-Sidebar-Bookmarks-Bookmark":!0,"PSPDFKit-Sidebar-Bookmarks-Bookmark-Selected":l,"PSPDFKit-Sidebar-Bookmarks-Bookmark-Editing":o===u}),d=F()([lv().name],{[lv().nameEllipsis]:!E.has(i)},"PSPDFKit-Sidebar-Bookmarks-Name"),f=r.get(s.pageIndex),h=f&&f.pageLabel,m=o.action instanceof j.Di?x(Ke.Z.pageX,{arg0:h||s.pageIndex+1}):null,g=o.action instanceof j.Di?h||s.pageIndex+1:null,v=m||x(Ke.Z.bookmark),b=T.createElement(T.Fragment,null,T.createElement("div",{onClick:()=>(e=>{P((t=>(t.has(e)?t.delete(e):t.add(e),new Set(t))))})(i),className:d},o.name||x(Ke.Z.bookmark)),!!g&&T.createElement("span",{className:F()(lv().pageNumber)},g));o.name;const w=Z?e=>{Z(e,o)}:void 0;return T.createElement("div",{key:"bookmark-item-"+o.id,ref:w,className:F()(lv().wrapper,lv().container)},o===u?t||(t=T.createElement(TS,{onChange:C,onSave:O,onCancel:k,onDelete:_,value:p})):T.createElement("div",{className:F()(lv().wrapper,lv().fullWidth)},T.createElement("div",{className:c,"aria-label":v,onClick:t=>{t.preventDefault(),y((0,$r.aG)(o.action)),e.closeOnPress&&y((0,En.mu)())}},T.createElement("button",{type:"button",className:lv().layoutSmallWidth,"aria-label":o.action instanceof j.Di?x(Ke.Z.gotoPageX,{arg0:h||o.action.pageIndex+1}):o.name||void 0},T.createElement("span",{className:lv().wrapper},b)),T.createElement("button",{title:v+": "+x(Ke.Z.edit),className:F()(lv().edit,e.closeOnPress&&lv().editVisible,"PSPDFKit-Sidebar-Bookmarks-Button-Edit"),onClick:e=>{e.stopPropagation(),R(o)}},T.createElement(Ye.Z,{src:n(56735),role:"presentation"})))))}))}),T.createElement(ue.TX,{announce:"polite"},g),B&&B.size>0&&h&&T.createElement($u.Z,{onCancel:M,onConfirm:I,accessibilityLabel:x(_S.deleteBookmarkConfirmAccessibilityLabel),accessibilityDescription:x(_S.deleteBookmarkConfirmAccessibilityDescription)},x(_S.deleteBookmarkConfirmMessage)))}const FS=(0,AS.createSubscription)({getCurrentValue:()=>{},subscribe:(e,t)=>{let n=function(){};const o=()=>{const n=e.getBookmarks();return n.then(t),n};return o().then((()=>{e.eventEmitter.on("change",o),n=()=>{e.eventEmitter.off("change",o)}})),()=>n()}}),MS=(0,jo.Z)((e=>e.valueSeq().toArray().sort(((e,t)=>{const n=e.action.pageIndex,o=t.action.pageIndex,r=!isNaN(n),i=!isNaN(o);return r&&i?n===o?0:n2&&void 0!==arguments[2]?arguments[2]:{};return(t,l)=>{var c,d;null===o&&(o=l().viewportState.currentPageIndex),(0,a.kG)("number"==typeof o,"Page index for a signature should be a number.");const p=l().pages.get(o);(0,a.kG)(p,`Cannot find page at index ${o}`);const f=p.pageSize;let h,m=e.withMutations((e=>{const t=(0,J.lx)(l());Object.keys(t).forEach((n=>{e.set(n,t[n])})),e.set("pageIndex",o),e.set("isSignature",!0)}));if(n){m=m.set("boundingBox",m.boundingBox.set("top",0).set("left",0)),m=_t(m,new RS.Z({width:n.width,height:n.height}),!0);const{boundingBox:e}=m,t=n.left+(n.width-e.width)/2,o=n.top+(n.height-e.height)/2;h=new Mi.Z({x:t,y:o})}else if(!m.boundingBox.top&&!m.boundingBox.left){const{boundingBox:e}=m;h=new Mi.Z({x:f.width/2-e.width/2,y:f.height/2-e.height/2})}h&&(m=fa(m,h,f,new Mi.Z));const g={annotations:(0,i.aV)([m]),reason:u.f.SELECT_END};l().eventEmitter.emit("annotations.willChange",g),t({type:te.mGH,signature:m}),null===(c=l().annotationManager)||void 0===c||c.createObject(m,{attachments:r&&s?(0,i.D5)([[r,s]]):(0,i.D5)()}),null===(d=l().annotationManager)||void 0===d||d.autoSave()}}function LS(e,t){return(n,o)=>{const r=e.merge({id:null,name:null,pageIndex:0});t&&n({type:te.W0l,annotation:r}),o().eventEmitter.emit("inkSignatures.create",r),o().eventEmitter.emit("inkSignatures.change"),o().eventEmitter.emit("storedSignatures.create",r),o().eventEmitter.emit("storedSignatures.change")}}function BS(e){return{type:te.Kw7,annotations:e}}function jS(){return async(e,t)=>{const{populateStoredSignatures:n}=t().signatureState;e(BS(await n()))}}var zS=n(78869),KS=n.n(zS);const ZS=(0,Re.XN)((e=>{let{position:t,onCropApply:o,onCropCancel:r,isCropAreaSelected:i,frameWindow:a,intl:{formatMessage:s}}=e;return T.useEffect((()=>{function e(e){"Enter"===e.key?i&&o(!1):"Escape"===e.key&&r()}return a.document.addEventListener("keydown",e),()=>{a.document.removeEventListener("keydown",e)}}),[i]),T.createElement("div",{className:F()("PSPDFKit-Annotation-Toolbar","PSPDFKit-Document-Crop-Toolbar",Bd().root,KS().container,{[Bd().stickToBottom]:"bottom"===t}),onMouseUp:US,onTouchEnd:US,onPointerUp:US},T.createElement("div",{className:KS().buttonContainer},T.createElement("div",{role:"button",className:F()(KS().cropButton,{[KS().cropButtonDisabled]:!i}),onClick:i?()=>o(!1):void 0,title:s(Ke.Z.cropCurrentPage),"aria-disabled":!i},T.createElement(Ye.Z,{src:n(8571)})," ",T.createElement("span",{className:KS().desktopButtonText},s(Ke.Z.cropCurrentPage)),T.createElement("span",{className:KS().mobileButtonText},s(Ke.Z.cropCurrent))),T.createElement("div",{role:"button",className:F()(KS().cropButton,{[KS().cropButtonDisabled]:!i}),onClick:i?()=>o(!0):void 0,title:s(Ke.Z.cropAllPages),"aria-disabled":!i},T.createElement(Ye.Z,{src:n(80525)}),T.createElement("span",{className:KS().desktopButtonText},s(Ke.Z.cropAllPages)),T.createElement("span",{className:KS().mobileButtonText},s(Ke.Z.cropAll)))),T.createElement("div",{role:"button",className:`${KS().cancelButton} ${KS().cancelDesktop}`,onClick:()=>r(),title:s(Ke.Z.cancel)},T.createElement("span",null,s(Ke.Z.cancel))),T.createElement("div",{role:"button",className:`${KS().cropButton} ${KS().cancelMobile}`,onClick:()=>r(),title:s(Ke.Z.cancel)},T.createElement(Ye.Z,{src:n(58054)})))}));function US(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}var VS=n(32801);const GS=sc.AK,WS=e=>{var t,o,r,a;const s=(0,Re.YB)(),{formatMessage:l}=s,c=(0,A.I0)(),{frameWindow:u,position:d,viewportWidth:p,creationMode:f}=e,h=(0,A.v9)(Gl.YG),{handleGroupExpansion:m,handleEntered:g,expandedGroup:v,prevActiveGroup:y,btnFocusRef:b}=(0,fi.Tp)(),w=(0,A.v9)(Gl.lK),S=(0,A.v9)((e=>e.contentEditorSession.textBlockInteractionState.state)),E=(0,A.v9)((e=>e.contentEditorSession.dirty)),P=null===w||S!==Gl.FP.Active;T.useEffect((()=>{h.faceList||h.loading||c(Su.O2)}),[h.faceList,h.loading,c]);const x=h.faceList||[new Gl.I5({family:""})],D=(0,A.v9)((e=>e.customFontsReadableNames))||(0,i.l4)(),C=[...x.concat(D.toArray().map((e=>new Gl.I5({family:e}))).filter((e=>!x.some((t=>t.family===e.family))))).map((e=>({label:e.family,value:e.family})))],k=T.useCallback((e=>{let{modification:t,preventFocusShift:n=!1}=e;const[[o,r]]=Object.entries(t);switch(o){case"fontSize":c((0,Su.Mq)({size:r})),n||gh.dispatch("content-editing:re-focus",null);break;case"font":c((0,Su.Mq)({family:r})),n||gh.dispatch("content-editing:re-focus",null);break;case"bold":c((0,Su.Mq)({bold:r})),n||gh.dispatch("content-editing:re-focus",null);break;case"italic":c((0,Su.Mq)({italic:r})),n||gh.dispatch("content-editing:re-focus",null)}}),[c]),O=T.useCallback((()=>c((0,Su.u)(f?Gl.wR.Edit:Gl.wR.Create))),[c,f]),I=T.useCallback((()=>{c((0,Su.u)(Gl.wR.Delete))}),[c]),M=w?(e=>{if(e.detectedStyle.selectionStyleInfo){const{family:t,bold:n,italic:o,color:r,size:i}=e.detectedStyle.selectionStyleInfo;return{family:t,bold:n,italic:o,color:r?j.Il.fromHex(r):null,size:i}}const{family:t,variant:{bold:n,italic:o}}=e.modificationsCharacterStyle.fontRef.faceRef,{color:r,fontRef:{size:i}}=e.modificationsCharacterStyle;return{family:t,bold:n,italic:o,color:j.Il.fromHex(r),size:i}})(w):null,_=null!==(t=null==M?void 0:M.family)&&void 0!==t?t:void 0,R=null!==(o=null==M?void 0:M.size)&&void 0!==o?o:void 0,N=null==M?void 0:M.bold,L=null==M?void 0:M.italic;let B=null;if(null!=(null==M?void 0:M.color)){var z;const e=M.color;B=null!==(z=mt.Ei.COLOR_PRESETS.find((t=>{var n;return null===(n=t.color)||void 0===n?void 0:n.equals(e)})))&&void 0!==z?z:{color:e,localization:Ke.Z.color}}const K=Boolean((null==w?void 0:w.detectedStyle.selectionStyleInfo)&&null==B),Z={"text-color":{node:T.createElement(VS.Z,{onChange:e=>{var t;e&&c((0,Su.Mq)({color:null===(t=e.color)||void 0===t?void 0:t.toHex()}));gh.dispatch("content-editing:re-focus",null)},styles:Tp(),value:null!==(r=B)&&void 0!==r?r:K?null:null!==(a=mt.Ei.COLOR_PRESETS.find((e=>e.color===j.Il.BLACK)))&&void 0!==a?a:null,caretDirection:"down",className:"PSPDFKit-Content-Editing-Toolbar-Font-Color",menuClassName:"PSPDFKit-Content-Editing-Toolbar-Font-Color-Menu",removeTransparent:!0,frameWindow:u,colors:mt.Ei.COLOR_PRESETS,innerRef:(0,Hd.CN)("text-color",v)?b:void 0,unavailableItemFallback:K?{type:"label",label:""}:{type:"swatch"},disabled:P,accessibilityLabel:l(Ke.Z.color)}),title:l(Ke.Z.color)},font:{node:T.createElement(Dp,{onChange:k,caretDirection:"down",frameWindow:u,intl:s,styles:Tp(),fontSizes:GS,fontFamilyItems:C,showAlignmentOptions:!1,showFontStyleOptions:!0,currentFontFamily:_,currentFontSize:R,isBold:N,isItalic:L,fontFamilyClasses:"PSPDFKit-Content-Editing-Toolbar-Font-Family",fontFamilyMenuClasses:"PSPDFKit-Content-Editing-Toolbar-Font-Family-Menu",fontSizeClasses:"PSPDFKit-Content-Editing-Toolbar-Font-Size",fontSizeMenuClasses:"PSPDFKit-Content-Editing-Toolbar-Font-Size-Menu",horizontalAlignClasses:"PSPDFKit-Content-Editing-Toolbar-Alignment",verticalAlignClasses:"PSPDFKit-Content-Editing-Toolbar-Vertical-Alignment",disabled:P,ref:(0,Hd.CN)("font",v)?b:void 0}),title:l(Ke.Z.font)}};return T.createElement("div",{className:F()("PSPDFKit-Content-Editing-Toolbar",Tp().root,{[Tp().stickToBottom]:"bottom"===d})},T.createElement("div",{className:Tp().content},v?T.createElement("div",{className:Tp().right},T.createElement(Zd.B,{position:d,onClose:()=>m(null),isPrimary:!1,onEntered:g,intl:s,className:Tp().expanded},v?Z[v].node:void 0)):T.createElement("form",{className:Tp().form,onSubmit:jr.PF},T.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"}},T.createElement("div",{className:F()(Tp().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Add-Text")},T.createElement(Id.Z,{type:"add-text-box",icon:n(92982),title:l(qS.addTextBox),className:F()("PSPDFKit-Content-Editing-Toolbar-Add-Text-Box",Tp().iconButton,{[Tp().iconButtonActive]:f}),onPress:O,selected:f})),T.createElement("div",{className:F()(Tp().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-TextColor")},T.createElement(Id.Z,{type:"text-color",title:Z["text-color"].title,className:Tp().button,onPress:()=>m("text-color"),disabled:Boolean(v)||P,presentational:p>Je.GI,ref:(0,Hd.Kt)("text-color",v,y)?b:void 0}),Z["text-color"].node),T.createElement("div",{className:F()(Tp().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Font")},T.createElement(Id.Z,{type:"font",title:Z.font.title,className:Tp().button,onPress:()=>m("font"),disabled:P,presentational:p>Je.GI,ref:(0,Hd.Kt)("font",v,y)?b:void 0}),Z.font.node)),T.createElement("div",{className:"PSPDFKit-Toolbar-Spacer",style:{display:"flex",flex:1}}),p>=Je.GI?T.createElement("div",{className:Tp().buttonContainer},T.createElement(Id.Z,{type:"delete",title:s.formatMessage(Ke.Z.delete),className:F()("PSPDFKit-Content-Editor-Toolbar-Button-Delete",Tp().iconButton),onPress:I,disabled:!w}),T.createElement("button",{className:Tp().contentEditorButton,type:"button",onClick:()=>c(Su.u8),title:s.formatMessage(Ke.Z.cancel)},T.createElement("span",null,s.formatMessage(Ke.Z.cancel))),T.createElement("button",{className:F()(Tp().contentEditorButton,Tp().saveButton,{[Tp().disabledButton]:!E}),type:"button",onClick:()=>c(Su.Ij),title:s.formatMessage(Ke.Z.saveAndClose),disabled:!E},T.createElement("span",null,s.formatMessage(Ke.Z.saveAndClose)))):T.createElement(T.Fragment,null,T.createElement(Id.Z,{type:"delete",title:s.formatMessage(Ke.Z.delete),className:F()("PSPDFKit-Content-Editor-Toolbar-Button-Delete",Tp().iconButton),onPress:I,disabled:!w}),T.createElement(Id.Z,{type:"close",title:s.formatMessage(Ke.Z.close),className:Tp().button,onPress:()=>{c(E?(0,Su.Yg)(!0):Su.u8)}})))))},qS=(0,Re.vU)({addTextBox:{id:"addTextBox",defaultMessage:"Add Text Box",description:"Label for the add text box button"}});var HS,$S,YS,XS=n(51559),JS=n(2270),QS=n(99728),eE=n(55024),tE=n(4888),nE=n.n(tE);function oE(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}const rE={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iE=(0,tt.b1)(),aE=T.memo((function(e){let{position:t}=e;const{formatMessage:n}=(0,Re.YB)(),[o,r]=(0,fi.$)(),[i,a]=(0,fi.nG)(),s=(0,fi.R9)((()=>{(0,O.unstable_batchedUpdates)((()=>{a([]),u===eE.Q.result&&d(eE.Q.documentA)}))})),[l,c]=(0,fi.jw)(),u=(0,XS.SH)(l),d=(0,fi.R9)((e=>{e!==u&&c(e||eE.Q.result)})),p=()=>{(0,O.unstable_batchedUpdates)((()=>{a([]),r(!1),d(eE.Q.documentA)}))},[,f]=(0,fi.dX)(),h=(0,fi.R9)((()=>{s(),d(eE.Q.documentA),f(!1)}));return T.createElement("div",{className:F()(nE().root,{"PSPDFKit-DocumentComparison-Toolbar":!0,[nE().stickToBottom]:"bottom"===t}),onMouseUp:oE,onTouchEnd:oE,onPointerUp:oE},T.createElement("div",{className:nE().content},T.createElement("div",{className:nE().left},T.createElement("form",{className:nE().form,onSubmit:jr.PF},T.createElement("div",{className:nE().tabsContainer},T.createElement("div",{className:F()(nE().documentTab,{[nE().documentTabActive]:u===eE.Q.documentA,[nE().autoCompareTab]:o,[nE().mobileTab]:iE}),onPointerUp:()=>d(eE.Q.documentA),onTouchEnd:()=>d(eE.Q.documentA)},T.createElement("span",{className:F()(nE().documentText,{[nE().mobileText]:!!iE,[nE().documentTabActiveText]:u===eE.Q.documentA})},n(iE?QS.messages.Comparison_documentOldTouch:QS.messages.Comparison_documentOld)),!o&&i.length<3&&T.createElement(sE,{referencePoints:i,startIndex:0,styles:nE(),touchDevice:iE}),!o&&i.length>=3&&T.createElement("span",{className:F()([nE().toolbarReferencePoints,nE().toolbarReferencePointsSet])},T.createElement("div",{className:nE().toolbarReferencePoint},T.createElement("svg",(0,De.Z)({},rE,{className:nE().documentCheckMark}),HS||(HS=T.createElement("circle",{cx:"10",cy:"10",r:"10"})),cE)))),T.createElement("div",{className:F()(nE().documentTab,{[nE().documentTabActive]:u===eE.Q.documentB,[nE().autoCompareTab]:o,[nE().mobileTab]:iE}),onPointerUp:()=>d(eE.Q.documentB),onTouchEnd:()=>d(eE.Q.documentB)},T.createElement("span",{className:F()(nE().documentText,{[nE().mobileText]:!!iE,[nE().documentTabActiveText]:u===eE.Q.documentB})},n(iE?QS.messages.Comparison_documentNewTouch:QS.messages.Comparison_documentNew)),!o&&i.length<6&&T.createElement(sE,{referencePoints:i,startIndex:3,styles:nE(),touchDevice:iE}),!o&&6===i.length&&T.createElement("span",{className:F()([nE().toolbarReferencePoints,nE().toolbarReferencePointsSet])},T.createElement("div",{className:nE().toolbarReferencePoint},T.createElement("svg",(0,De.Z)({},rE,{className:nE().documentCheckMark}),$S||($S=T.createElement("circle",{cx:"10",cy:"10",r:"10"})),cE)))),(o||6===i.length)&&T.createElement("div",{className:F()(nE().documentTab,nE().resultTab,{[nE().documentTabActive]:u===eE.Q.result,[nE().autoCompareTab]:o}),onPointerUp:()=>d(null),onTouchEnd:()=>d(null)},T.createElement("span",{className:F()(nE().documentText,{[nE().mobileText]:!!iE,[nE().documentTabActiveText]:u===eE.Q.result})},n(QS.messages.Comparison_result)))),T.createElement("div",{className:nE().controlButtonContainer},!o&&i.length>0&&T.createElement("div",{className:F()(nE().buttonReset,nE().buttonResetActive,{[nE().mobileButton]:iE}),onPointerUp:h,onTouchEnd:h},n(QS.messages.Comparison_resetButton)),o&&T.createElement("div",{className:F()({[nE().buttonAlignDocuments]:!0,[nE().mobileButton]:iE}),onPointerUp:p,onTouchEnd:p},n(iE?QS.messages.Comparison_alignButtonTouch:QS.messages.Comparison_alignButton)))))))}));const sE=e=>{const{styles:t,referencePoints:n,startIndex:o,touchDevice:r}=e,i=n.slice(o,o+3),a=Array.from({length:3-i.length});return T.createElement("span",{className:F()(t.toolbarReferencePoints,{[t.toolbarReferencePointMobile]:!!r,[t.second]:3===o})},i.concat(a).map(((e,r,i)=>{const a=e?"set":0===r&&n.length===o||i[r-1]?"current":"empty";return T.createElement("div",{className:F()(t.referencePointParent,"PSPDFKit-DocumentComparison-ReferencePoint-State",`PSPDFKit-DocumentComparison-ReferencePoint-State-${(0,qn.kC)(a)}`),key:`point_${r+o}`},r>0?T.createElement("div",{className:t.separator}):null,T.createElement("div",{className:t.toolbarReferencePoint},T.createElement("svg",(0,De.Z)({},rE,{className:t[lE[a]]}),YS||(YS=T.createElement("circle",{cx:"10",cy:"10",r:"10"})),e?cE:T.createElement(uE,null,r+1))))})))},lE={set:"checkMark",current:"referencePointSet",empty:"referencePoint"},cE=T.createElement("path",{d:"M5.45508 10.1125L8.53758 12.94L14.5451 6.25",strokeWidth:"1.875",strokeMiterlimit:"10",strokeLinecap:"round"}),uE=e=>{let{children:t}=e;return T.createElement("text",{x:"10",y:"11",textAnchor:"middle",dominantBaseline:"middle",dy:""},t)};var dE=n(36401),pE=n.n(dE),fE=n(11521),hE=n.n(fE);const mE=[{interactionMode:x.A.BUTTON_WIDGET,icon:"fd-button",title:"Create Button Widget",className:"PSPDFKit-Form-Creator-Toolbar-ButtonWidget"},{interactionMode:x.A.TEXT_WIDGET,icon:"fd-text",title:"Create Text Widget",className:"PSPDFKit-Form-Creator-Toolbar-TextWidget"},{interactionMode:x.A.RADIO_BUTTON_WIDGET,icon:"fd-radio",title:"Create Radio Widget",className:"PSPDFKit-Form-Creator-Toolbar-RadioWidget"},{interactionMode:x.A.CHECKBOX_WIDGET,icon:"fd-checkbox",title:"Create Checkbox Widget",className:"PSPDFKit-Form-Creator-Toolbar-CheckboxWidget"},{interactionMode:x.A.COMBO_BOX_WIDGET,icon:"fd-combobox",title:"Create Combobox widget",className:"PSPDFKit-Form-Creator-Toolbar-ComboboxWidget"},{interactionMode:x.A.LIST_BOX_WIDGET,icon:"fd-listbox",title:"Create List Box Widget",className:"PSPDFKit-Form-Creator-Toolbar-ListBoxWidget"},{interactionMode:x.A.SIGNATURE_WIDGET,icon:"fd-signature",title:"Create Signature Widget",className:"PSPDFKit-Form-Creator-Toolbar-SignatureWidget"},{interactionMode:x.A.DATE_WIDGET,icon:"fd-date",title:"Create Date Widget",className:"PSPDFKit-Form-Creator-Toolbar-DateWidget"}];var gE=n(56966);const vE=e=>{let{position:t,dispatch:n,interactionMode:o,frameWindow:r,modalClosurePreventionError:i,selectedAnnotation:a}=e;return T.useEffect((()=>{function e(e){"Escape"!==e.key||i&&(null==i?void 0:i.error)===gE.x.FORM_DESIGNER_ERROR||a||n((0,En.XX)())}return r.document.addEventListener("keydown",e),()=>{r.document.removeEventListener("keydown",e)}}),[n,i,a]),T.createElement("div",{className:F()("PSPDFKit-Form-Creator-Toolbar",Bd().root,of().formDesignerContainer,{[Bd().stickToBottom]:"bottom"===t}),onMouseUp:US,onTouchEnd:US,onPointerUp:US},T.createElement("div",null,mE.map((e=>T.createElement(rf.Z,{key:e.interactionMode,type:e.icon,title:e.title,className:F()(of().formDesignerButton,{[of().formDesignerButtonActive]:o===e.interactionMode},e.className),onPress:()=>{o===e.interactionMode?n((0,Mo.el)()):(n((0,Mo.h4)()),n((0,En.UF)(e.interactionMode)))},selected:o===e.interactionMode})))),T.createElement("div",{className:of().spacer}))};var yE=n(40853),bE=n(28910),wE=n(22458),SE=n.n(wE);function EE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function PE(e){for(var t=1;t({label:e,value:e}))),h=f.concat(p.toArray().map((e=>({label:e,value:e}))).filter((e=>!f.some((t=>t.value===e.value)))));if(s.font&&!mp.vt.has(s.font||"")&&!p.some((e=>e===s.font))&&""!==s.font.trim()){const e=c.formatMessage(Ke.Z.fontFamilyUnsupported,{arg0:s.font});h.push({label:e,value:e,disabled:!0})}const m=["auto",4,6,8,10,12,14,18,24,36,48,64,72,96,144,192,200].map((e=>({value:e,label:e.toString()}))),g=T.useCallback((e=>l({horizontalAlign:e})),[l]),v=T.useCallback((e=>l({verticalAlign:e})),[l]);return T.createElement(bE.U,{title:c.formatMessage(AE.textStyle)},T.createElement("div",{className:SE().item},T.createElement(Ye.Z,{src:n(20626),className:SE().itemIcon,role:"presentation"}),T.createElement("div",{className:SE().itemLabel},c.formatMessage(Ke.Z.font)),T.createElement("div",{className:SE().nativeDropdown},T.createElement("select",{"aria-label":c.formatMessage(Ke.Z.font),className:"PSPDFKit-Input-Dropdown-Select",value:s.font||"",onChange:e=>{void 0!==e.target.value&&l({font:e.target.value})}},h.map((e=>T.createElement("option",{key:e.value,value:e.value,disabled:e.disabled},e.label))))),T.createElement(rd.Z,{items:h,value:{label:null!==(t=s.font)&&void 0!==t?t:h[0].label,value:null!==(o=s.font)&&void 0!==o?o:h[0].value},accessibilityLabel:c.formatMessage(Ke.Z.font),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:SE().dropdownGroupComponent,menuClassName:SE().dropdownGroupMenu,ButtonComponent:xE,ItemComponent:DE,onSelect:(e,t)=>{void 0!==t.value&&l({font:t.value})},frameWindow:u})),T.createElement("div",{className:SE().item},T.createElement(Ye.Z,{src:n(89882),className:SE().itemIcon,role:"presentation"}),T.createElement("div",{className:SE().itemLabel},c.formatMessage(AE.fontSize)),T.createElement("div",{className:SE().nativeDropdown},T.createElement("select",{"aria-label":c.formatMessage(AE.fontSize),className:"PSPDFKit-Input-Dropdown-Select",value:s.fontSize||"",onChange:e=>{l({fontSize:"auto"===e.target.value?"auto":parseFloat(e.target.value)})}},m.map((e=>T.createElement("option",{key:e.value,value:e.value,disabled:e.disabled},e.label))))),T.createElement(rd.Z,{items:m,value:(null!==(r=m.find((e=>e.value===Math.round(s.fontSize||0))))&&void 0!==r?r:null!=s.fontSize)?{value:s.fontSize,label:null!==(i=null===(a=s.fontSize)||void 0===a?void 0:a.toString())&&void 0!==i?i:""}:null,accessibilityLabel:c.formatMessage(AE.fontSize),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:SE().dropdownGroupComponent,menuClassName:SE().dropdownGroupMenu,ButtonComponent:xE,ItemComponent:DE,onSelect:(e,t)=>{null==t.value||"auto"!==t.value&&isNaN(t.value)||l({fontSize:t.value})},frameWindow:u})),T.createElement("div",{className:SE().item},T.createElement(Ye.Z,{src:n(59601),className:SE().itemIcon,role:"presentation"}),T.createElement("div",{className:SE().itemLabel},c.formatMessage(Ke.Z.color)),T.createElement(Fd.Z,{record:s,onChange:l,styles:PE(PE({},Bd()),{},{colorSvg:SE().colorSvg,colorItem:SE().colorItem,dropdownMenu:SE().colorDropdownMenu,controlWrapper:PE(PE({},Bd().controlWrapper),{},{width:"auto"})}),accessibilityLabel:c.formatMessage(Ke.Z.fillColor),caretDirection:"down",colorProperty:"fontColor",frameWindow:u,className:SE().colorDropdown})),T.createElement("div",{className:SE().item},T.createElement(Ye.Z,{src:n(65908),className:SE().itemIcon,role:"presentation"}),T.createElement("div",{className:SE().itemLabel},c.formatMessage(Ke.Z.horizontalAlignment)),T.createElement(ue.Ee,{inputName:"horizontalAlign",label:c.formatMessage(Ke.Z.horizontalAlignment),selectedOption:CE(s,d),labelClassNamePrefix:"PSPDFKit-Form-Creator-Editor-Horizontal-Alignment",options:["left","center","right"].map((e=>({value:e,label:c.formatMessage(Ke.Z[`alignment${(0,qn.kC)(e)}`]),iconPath:n(58758)(`./text-align-horizontal-${e}.svg`)}))),onChange:g})),!(d instanceof j.Vi)&&T.createElement("div",{className:SE().item},T.createElement(Ye.Z,{src:n(1792),className:SE().itemIcon,role:"presentation"}),T.createElement("div",{className:SE().itemLabel},c.formatMessage(Ke.Z.verticalAlignment)),T.createElement(ue.Ee,{inputName:"verticalAlign",label:c.formatMessage(Ke.Z.verticalAlignment),selectedOption:kE(s,d),labelClassNamePrefix:"PSPDFKit-Form-Creator-Editor-Vertical-Alignment",options:["top","center","bottom"].map((e=>({value:e,label:c.formatMessage(Ke.Z["center"===e?"alignmentCenter":e]),iconPath:n(29712)(`./text-align-vertical-${e}.svg`)}))),onChange:v})))};var TE=n(84537);const IE=(0,Re.vU)({advanced:{id:"advanced",defaultMessage:"Advanced",description:"Form designer popover advanced section title"},creatorName:{id:"creatorName",defaultMessage:"Creator Name",description:"Form designer popover advanced section creator name label"},note:{id:"note",defaultMessage:"Note",description:"Form designer popover advanced section note label"},customData:{id:"customData",defaultMessage:"Custom data",description:"Form designer popover advanced section custom data label"},required:{id:"required",defaultMessage:"Required",description:"Form designer popover advanced section required label"},readOnly:{id:"readOnly",defaultMessage:"Read Only",description:"Form designer popover advanced section read only label"},multiSelect:{id:"multiSelect",defaultMessage:"Multi Select",description:"Form designer popover advanced section multi select label"},createdAt:{id:"createdAt",defaultMessage:"Created at",description:"Form designer popover advanced section created at label"},updatedAt:{id:"updatedAt",defaultMessage:"Updated at",description:"Form designer popover advanced section updated at label"},customDataErrorMessage:{id:"customDataErrorMessage",defaultMessage:"Must be a plain JSON-serializable object",description:"Form designer popover advanced section custom data error"},multiLine:{id:"multiLine",defaultMessage:"Multi Line",description:"Form designer popover multiline input label"}}),FE=function(e){let{intl:t,annotation:n,updateAnnotation:o,formField:r,updateFormField:i,locale:a,onCustomDataError:s}=e;const[l,c]=T.useState({value:JSON.stringify(n.customData),error:""}),u=T.useCallback((e=>o({creatorName:e.target.value})),[o]),d=T.useCallback((e=>o({note:e.target.value})),[o]),p=T.useCallback((e=>{let n="";try{JSON.parse(e.target.value),s(!1)}catch(e){n=t.formatMessage(IE.customDataErrorMessage),s(!0)}c({value:e.target.value,error:n})}),[t,s]),f=T.useCallback((()=>{if(!l.error)try{const e=JSON.parse(l.value);o({customData:e})}catch(e){}}),[o,l]),h=T.useCallback((e=>i({required:e})),[i]),m=T.useCallback((e=>i({readOnly:e})),[i]),g=T.useCallback((e=>i({multiSelect:e})),[i]),v=T.useCallback((e=>i({multiLine:e})),[i]);return T.createElement(bE.U,{title:t.formatMessage(IE.advanced)},T.createElement(lg,{label:t.formatMessage(IE.creatorName),value:n.creatorName||"",onChange:u}),T.createElement(lg,{label:t.formatMessage(IE.note),value:n.note||"",onChange:d}),T.createElement(lg,{label:t.formatMessage(IE.customData),value:l.value,onChange:p,onBlur:f,errorMessage:l.error,className:SE().lastInputField}),T.createElement("div",{className:SE().advancedItem},T.createElement("div",{className:SE().advancedItemLabel},t.formatMessage(IE.required)),T.createElement(TE.n,{value:!(null==r||!r.required),onUpdate:h,accessibilityLabel:t.formatMessage(IE.required)})),T.createElement("div",{className:SE().advancedItem},T.createElement("div",{className:SE().advancedItemLabel},t.formatMessage(IE.readOnly)),T.createElement(TE.n,{value:!(null==r||!r.readOnly),onUpdate:m,accessibilityLabel:t.formatMessage(IE.readOnly)})),r instanceof j.Dz&&T.createElement("div",{className:SE().advancedItem},T.createElement("div",{className:SE().advancedItemLabel},t.formatMessage(IE.multiSelect)),T.createElement(TE.n,{value:!(null==r||!r.multiSelect),onUpdate:g,accessibilityLabel:t.formatMessage(IE.multiSelect)})),r instanceof j.$o&&T.createElement("div",{className:SE().advancedItem},T.createElement("div",{className:SE().advancedItemLabel},t.formatMessage(IE.multiLine)),T.createElement(TE.n,{value:!(null==r||!r.multiLine),onUpdate:v,accessibilityLabel:t.formatMessage(IE.multiLine)})),T.createElement("div",{className:SE().advancedItem},T.createElement("div",{className:SE().advancedItemLabel},"ID"),T.createElement("div",{className:SE().advancedItemValue},n.id)),T.createElement("div",{className:SE().advancedItem},T.createElement("div",{className:SE().advancedItemLabel},t.formatMessage(IE.createdAt)),T.createElement("div",{className:SE().advancedItemValue},n.createdAt.toLocaleDateString(a))),T.createElement("div",{className:SE().advancedItem},T.createElement("div",{className:SE().advancedItemLabel},t.formatMessage(IE.updatedAt)),T.createElement("div",{className:SE().advancedItemValue},n.updatedAt.toLocaleDateString(a))))};var ME=n(79153),_E=n(71634),RE=n(47860),NE=n.n(RE),LE=function(){var e,t,n=(0,ME.f$)((function(e){return{currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging(),itemType:e.getItemType(),item:e.getItem()}}));return n.isDragging&&null!==n.currentOffset?{display:!0,itemType:n.itemType,item:n.item,style:(e=n.currentOffset,t="translate(".concat(e.x,"px, ").concat(e.y,"px)"),{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t})}:{display:!1}};Ko().func,Ko().oneOfType([Ko().node,Ko().func]);function BE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function jE(e){for(var t=1;t{let{id:t,index:o,moveCard:r,option:i,onDelete:a}=e;const s=(0,T.useRef)(null),l=(0,T.useRef)(null),[{handlerId:c},u]=(0,ME.LW)({accept:"CARD",collect:e=>({handlerId:e.getHandlerId()}),hover(e,t){var n;if(!l.current)return;const i=e.index,a=o;if(i===a)return;const s=null===(n=l.current)||void 0===n?void 0:n.getBoundingClientRect(),c=(s.bottom-s.top)/2,u=t.getClientOffset().y-s.top;ia&&u>c||(r(i,a),e.index=a)}}),{display:d,style:p}=LE(),[{isDragging:f,id:h},m]=(0,ME.c0)({type:"CARD",item:()=>({id:t,index:o}),collect:e=>{var t;return{isDragging:e.isDragging(),id:null===(t=e.getItem())||void 0===t?void 0:t.id}}}),g=f?.5:1;m(u(s));const v=e=>T.createElement("div",{style:e?jE(jE({},p),{width:332}):{opacity:g},className:F()(NE().option,{[NE().preview]:e}),ref:e?void 0:l},T.createElement("button",(0,De.Z)({type:"button",className:NE().hamburger},e?void 0:{ref:s,"data-handler-id":c}),T.createElement(Ye.Z,{src:n(50618),role:"presentation"})),T.createElement("div",{className:NE().optionContent},i.label),T.createElement("button",{className:F()(NE().button,NE().deleteButton),type:"button",onClick:()=>a(o)},T.createElement(Ye.Z,{src:n(33374),className:F()(NE().icon,NE().deleteIcon),role:"presentation"})));return T.createElement(T.Fragment,null,v(!1),d&&h===t&&v(!0))};const KE=(0,Re.vU)({options:{id:"options",defaultMessage:"Options",description:"Options control label"},enterDescriptionHere:{id:"enterDescriptionHere",defaultMessage:"Enter description here",description:"New option input placeholder"},addOption:{id:"addOption",defaultMessage:"Add option",description:"New option button text"},emptyInput:{id:"emptyInput",defaultMessage:"Please fill in this field",description:"New option empty input label"}}),ZE=(0,Re.XN)((function(e){let{intl:t,options:n,onChange:o,ownerDocument:r}=e;const{formatMessage:i}=t,[s,l]=T.useState(!0);return T.createElement(ME.WG,{backend:_E.TouchBackend,options:{enableMouseEvents:!0,delayTouchStart:500,touchSlop:10,ignoreContextMenu:!0,ownerDocument:r}},T.createElement("form",{className:NE().wrapper,onSubmit:e=>{e.preventDefault();const t=e.target,{value:r}=t.newOption;r?(t.reset(),o(n.push(new j.mv({value:r,label:r})))):l(!1)}},T.createElement("div",{className:NE().title},i(KE.options)),T.createElement("div",null,n.map(((e,t)=>T.createElement(zE,{key:e.value,index:t,moveCard:(e,t)=>{const r=n.get(t);(0,a.kG)(r,"Item not found"),o(n.delete(t).insert(e,r))},option:e,id:e.value,onDelete:e=>o(n.delete(e))}))),T.createElement("div",{className:F()(NE().option,NE().addOptionInputWrapper,{[NE().addOptionInputWrapperInvalid]:!s})},T.createElement("input",{autoFocus:!0,className:F()(NE().optionContent,NE().addOptionInput),name:"newOption",type:"text",placeholder:i(KE.enterDescriptionHere),onBlur:()=>l(!0),onChange:e=>{!s&&e.target.value.trim()&&l(!0)}}))),!s&&T.createElement("div",{className:NE().invalidOptionInput},t.formatMessage(KE.emptyInput)),T.createElement("button",{className:F()(NE().button,NE().addOptionButton),type:"submit"},i(KE.addOption))))}));var UE,VE,GE,WE,qE;function HE(e,t){return t?Ke.Z.dateField:e instanceof j.R0?Ke.Z.button:e instanceof j.$o?Ke.Z.textField:e instanceof j.XQ?Ke.Z.radioField:e instanceof j.rF?Ke.Z.checkboxField:e instanceof j.fB?Ke.Z.comboBoxField:e instanceof j.Vi?Ke.Z.listBoxField:Ke.Z.signatureField}const $E=(0,Re.vU)({formDesignerPopoverTitle:{id:"formDesignerPopoverTitle",defaultMessage:"{formFieldType} properties",description:"Form designer popover title"},styleSectionLabel:{id:"styleSectionLabel",defaultMessage:"{formFieldType} style",description:"Form designer style section"},formFieldName:{id:"formFieldName",defaultMessage:"Form field name",description:"Form designer popover form field name input label"},format:{id:"format",defaultMessage:"Format",description:"Format"},buttonText:{id:"buttonText",defaultMessage:"Button Text",description:"Form designer popover button text input label"},defaultValue:{id:"defaultValue",defaultMessage:"Default Value",description:"Form designer popover default value input label"},multiline:{id:"multiline",defaultMessage:"Multiline",description:"Form designer popover multiline input label"},radioButtonFormFieldNameWarning:{id:"radioButtonFormFieldNameWarning",defaultMessage:"To group the radio buttons, make sure they have the same form field names.",description:"Form designer popover radio button form field name warning message"},formFieldNameExists:{id:"formFieldNameExists",defaultMessage:"A form field named {formFieldName} already exists. Please choose a different name.",description:"Change form field name if it already exists."},formFieldNameNotEmpty:{id:"formFieldNameNotEmpty",defaultMessage:"Form Field Name cannot be left empty.",description:"Form Field Name cannot be left empty."},label:{id:"label",defaultMessage:"Label",description:"Label"},value:{id:"value",defaultMessage:"Value",description:"Value"}}),YE=(0,Re.XN)((function(e){var t;let{referenceRect:o,viewportState:r,isHidden:s,intl:l,formFields:c,dispatch:d,annotation:p,frameWindow:f,eventEmitter:h,locale:m,isUnsavedAnnotation:g,setModalClosurePreventionError:v,modalClosurePreventionError:y,pageSize:b,customFontsReadableNames:w}=e;const S=(0,T.useMemo)((()=>{const e=c.get(p.formFieldName);return(0,a.kG)(e,"Form field not found"),e}),[p,c]),E=(0,T.useMemo)((()=>{if(S instanceof j.XQ||S instanceof j.rF)return S.annotationIds.findIndex((0,J.oF)(p))}),[S,p]),[P,x]=(0,T.useState)(S.name),[D,C]=(0,T.useState)(),[k,A]=T.useState(!1),O=T.useCallback((e=>{let t=p;if(!t)return;t=t.merge(e);const n={annotations:(0,i.aV)([t]),reason:u.f.PROPERTY_CHANGE};h.emit("annotations.willChange",n),d((0,Qt.FG)(t))}),[h,d,p]),I=T.useCallback((e=>{let t=S;t&&(t=t.merge(e),d((0,Mo.vK)(t)))}),[S,d]);(0,Wn.useGranularEffect)((()=>{x(S.name),C(void 0)}),[p.id],[S.name]);const M=T.useCallback((e=>{const t=e.target.value;x(t),null!=t&&t.trim()?!c.has(t)||p.formFieldName===t||S instanceof j.XQ?(C(void 0),k||v(null)):(C(l.formatMessage($E.formFieldNameExists,{formFieldName:t})),v({annotationId:p.id,error:gE.x.FORM_DESIGNER_ERROR})):(C(l.formatMessage($E.formFieldNameNotEmpty)),v({annotationId:p.id,error:gE.x.FORM_DESIGNER_ERROR}))}),[l,p,S,c,v,k]),_=T.useCallback((e=>I({buttonLabel:e.target.value})),[I]),R=T.useCallback((e=>I({options:e})),[I]),N=(0,T.useCallback)((e=>{const t=e.target.value;(0,a.kG)(void 0!==E);const n=S.options.get(E),o=S.options.set(E,n.set("label",t));I({options:o})}),[I,S,E]),L=T.useCallback((e=>{A(e),e?v({annotationId:p.id,error:gE.x.FORM_DESIGNER_ERROR}):y&&!D&&v(null)}),[v,y,D,p]),B=(0,T.useCallback)((e=>{const t=e.target.value;(0,a.kG)(void 0!==E);const n=S.options.get(E),o=S.options.set(E,n.set("value",t));I({options:o})}),[I,S,E]),z=T.useMemo((()=>{return S instanceof j.R0?T.createElement(lg,{label:l.formatMessage($E.buttonText),value:(null==S?void 0:S.buttonLabel)||"",onChange:_,className:SE().lastInputField}):S instanceof j.XQ?((0,a.kG)(void 0!==E),T.createElement(T.Fragment,null,T.createElement("div",{className:SE().radioButtonWarning},T.createElement(Ye.Z,{src:n(14896),role:"presentation",className:SE().radioButtonWarningIcon}),T.createElement("span",{className:SE().radioButtonWarningLabel},l.formatMessage($E.radioButtonFormFieldNameWarning))),T.createElement(lg,{label:l.formatMessage($E.label),value:(null==S||null===(e=S.options.get(E))||void 0===e?void 0:e.label)||"",onChange:N,required:!0}),T.createElement(lg,{label:l.formatMessage($E.value),value:(null==S||null===(t=S.options.get(E))||void 0===t?void 0:t.value)||"",onChange:B,required:!0,className:SE().lastInputField}))):S instanceof j.rF?((0,a.kG)(void 0!==E),T.createElement(T.Fragment,null,T.createElement(lg,{label:l.formatMessage($E.label),value:(null==S||null===(o=S.options.get(E))||void 0===o?void 0:o.label)||"",onChange:N,required:!0}),T.createElement(lg,{label:l.formatMessage($E.value),value:(null==S||null===(r=S.options.get(E))||void 0===r?void 0:r.value)||"",onChange:B,required:!0,className:SE().lastInputField}))):S instanceof j.Vi||S instanceof j.fB?T.createElement(ZE,{options:S.options,onChange:R,ownerDocument:f.document}):null;var e,t,o,r}),[f.document,S,l,_,R,N,B,E]),K=S instanceof j.$o&&!(null===(t=p.additionalActions)||void 0===t||!t.onFormat);return T.createElement(cg.Z,{referenceRect:o,viewportState:r,isHidden:s||!S,className:"PSPDFKit-Form-Creator-Popover",wrapperClassName:"PSPDFKit-Form-Creator-Editor",title:l.formatMessage($E.formDesignerPopoverTitle,{formFieldType:S?l.formatMessage(HE(S,K)):""}),footer:T.createElement(T.Fragment,null,T.createElement(cg.j,{className:F()(SE().footerButton,SE().deleteButton,"PSPDFKit-Form-Creator-Editor-Delete"),onClick:()=>{v(null),d((0,Qt.d8)((0,i.l4)([p.id])))}},l.formatMessage(Ke.Z.delete)),T.createElement(cg.j,{className:F()(SE().footerButton,SE().doneButton,"PSPDFKit-Form-Creator-Editor-Done"),onClick:()=>{y||d((0,je.fz)())}},l.formatMessage(Ke.Z.done)))},T.createElement(T.Fragment,null,T.createElement("div",{className:g?void 0:SE().formFieldNameReadOnly},T.createElement("div",null,T.createElement(lg,{label:l.formatMessage($E.formFieldName),value:P,onChange:M,onKeyDown:e=>e.stopPropagation(),required:!0,errorMessage:D,className:F()({[SE().lastInputField]:!z&&!K}),inputClassName:"PSPDFKit-Form-Creator-Editor-Form-Field-Name",onBlur:()=>{D||I({name:P})}})),z),K&&T.createElement("div",{className:F()(ag().wrapper,SE().lastInputField)},T.createElement("label",{className:ag().label,htmlFor:"dateTimeFormat"},"Format",T.createElement("div",{className:ag().formatSelectWrapper,role:"button"},T.createElement("select",{className:ag().dateSelect,name:"dateTimeFormat",id:"dateTimeFormat",onChange:e=>{const t=e.target.value;O({additionalActions:{onFormat:new j.bp({script:`AFDate_FormatEx("${t}")`})}})}},UE||(UE=T.createElement("option",{value:"yyyy-mm-dd"},"yyyy-mm-dd")),VE||(VE=T.createElement("option",{value:"mm/dd/yyyy"},"mm/dd/yyyy")),GE||(GE=T.createElement("option",{value:"dd/mm/yyyy"},"dd/mm/yyyy")),WE||(WE=T.createElement("option",{value:"m/d/yyyy HH:MM"},"m/d/yyyy HH:MM")),qE||(qE=T.createElement("option",{value:"d/m/yyyy HH:MM"},"d/m/yyyy HH:MM")))))),T.createElement(yE.ZP,{intl:l,annotation:p,label:l.formatMessage($E.styleSectionLabel,{formFieldType:S?l.formatMessage(HE(S,K)):""}),updateAnnotation:O,frameWindow:f,pageSize:b}),!(S instanceof j.Yo)&&!(S instanceof j.XQ)&&!(S instanceof j.rF)&&T.createElement(OE,{intl:l,annotation:p,updateAnnotation:O,frameWindow:f,formField:S,customFontsReadableNames:w}),T.createElement(FE,{intl:l,annotation:p,updateAnnotation:O,formField:S,updateFormField:I,locale:m,onCustomDataError:L})))}));var XE,JE,QE=n(31060),eP=n.n(QE);const tP=tt.Ni?()=>{const e=(0,A.I0)();return T.createElement(ue.QO,{wrapperClass:F()(eP().mobileWrapper,"PSPDFKit-ContentEditor-Exit-Dialog"),formClass:eP().formWrapper,onDismiss:()=>{e((0,Su.Yg)(!1))}},JE||(JE=T.createElement(nP,null)))}:()=>{const{formatMessage:e}=(0,Re.YB)(),t=(0,A.I0)();return T.createElement(yf.Z,{role:"alertdialog",background:"rgba(0,0,0,.1)",className:F()(eP().modalRoot,"PSPDFKit-ContentEditor-Exit-Dialog"),accessibilityLabel:e(oP.contentEditorSavePromptAccessibilityLabel),accessibilityDescription:e(oP.contentEditorSavePromptAccessibilityDescription),restoreOnClose:!0,onEscape:()=>{t((0,Su.Yg)(!1))}},XE||(XE=T.createElement(nP,null)))},nP=()=>{const{formatMessage:e}=(0,Re.YB)(),t=(0,A.I0)();return T.createElement(T.Fragment,null,T.createElement(yf.Z.Section,{className:F()(eP().dropdownSection,eP().mainSection)},T.createElement(ue.zx,{className:F()(eP().closeButton,"PSPDFKit-ContentEditor-Exit-Dialog-Close-Button"),onClick:()=>{t((0,Su.Yg)(!1))},"aria-label":e(Ke.Z.close)},T.createElement(Ye.Z,{className:eP().closeIcon,src:n(15708)})),T.createElement("div",{className:F()(eP().container,"PSPDFKit-ContentEditor-Exit-Dialog-Content")},T.createElement(Ye.Z,{className:eP().warningIcon,src:n(73986)}),T.createElement("h2",{className:eP().heading},e(oP.contentEditorSavePromptHeading)),T.createElement("p",{className:eP().description},e(oP.contentEditorSavePromptMessage)))),T.createElement(yf.Z.Section,{className:F()(eP().buttonsGroupSection,eP().dropdownSection)},T.createElement(ue.hE,{className:F()(eP().buttonsGroup,"PSPDFKit-ContentEditor-Exit-Dialog-Buttons"),align:"end"},T.createElement(ue.zx,{autoFocus:!0,onClick:()=>{t(Su.u8)},className:F()("PSPDFKit-ContentEditor-Exit-Dialog-Button","PSPDFKit-ContentEditor-Exit-Dialog-Button-Discard-Changes",eP().button)},"Don't Save"),T.createElement(ue.zx,{onClick:()=>{t(Su.Ij)},primary:!0,className:F()("PSPDFKit-ContentEditor-Exit-Dialog-Button","PSPDFKit-ContentEditor-Exit-Dialog-Button-Save-Changes",eP().button)},"Save"))))},oP=(0,Re.vU)({contentEditorSavePromptHeading:{id:"contentEditorSavePromptHeading",defaultMessage:"Save changes before exiting?",description:'Heading displayed in the "Exit Content Editing Mode" confirm dialog'},contentEditorSavePromptMessage:{id:"contentEditorSavePromptMessage",defaultMessage:"If you don’t save your changes to the document, your changes will be lost.",description:'Message displayed in the "Exit Content Editing Mode" confirm dialog'},contentEditorSavePromptAccessibilityLabel:{id:"contentEditorSavePromptAccessibilityLabel",defaultMessage:"Confirm content editing exit dialog",description:'Accessibility description for the "Delete Annotation" confirm dialog'},contentEditorSavePromptAccessibilityDescription:{id:"contentEditorSavePromptAccessibilityDescription",defaultMessage:"A content editing session is about to be dismissed and data could be loss. This dialog serves as a confirmation to whether continue with this action or not.",description:'Accessibility description for the "Exit Content Editing Mode" confirm dialog'}});var rP=n(20500),iP=n(14149),aP=n.n(iP);const sP=function(e){const{referenceRect:t,viewportState:n,activeTextBlock:o,fontFace:r}=e,i=(0,A.I0)(),{formatMessage:a}=(0,Re.YB)(),s=(0,A.v9)((e=>{var t,n;return null!==(t=null===(n=e.contentEditorSession.fontMismatchTooltip)||void 0===n?void 0:n.dismissAbortController)&&void 0!==t?t:null}));return T.createElement(Wv.Z,{referenceRect:t.apply((0,de.cr)(n,o.pageIndex)).translate(n.scrollPosition.scale(n.zoomLevel)),viewportState:n,className:F()(aP().container,"PSPDFKit-Font-Mismatch-Notification-Container"),color:[new j.Il({r:255,g:199,b:143})],arrowSize:0,arrowClassName:aP().arrow},T.createElement("div",{className:F()(aP().wrapper,"PSPDFKit-Font-Mismatch-Notification"),onPointerOver:()=>{s&&s.abort()},onPointerLeave:()=>{const e=new AbortController;i((0,Su.Hv)(e)),i((0,Su.uy)(e.signal))}},T.createElement("span",{className:aP().tooltipFont},a(wh.fontMismatch,{arg0:r}))))},lP=T.memo((function(e){const t=(0,Re.YB)(),n=(0,A.I0)(),o=(0,A.v9)((e=>e.selectedGroupId)),{selectedAnnotationIds:r}=e;return T.createElement("div",{className:F()("PSPDFKit-Multi-Annotations-Selection-Toolbar",Bd().root,Bd().content,Bd().reverseRow)},T.createElement(Id.Z,{type:"delete",title:t.formatMessage(Ke.Z.delete),className:Bd().button,onPress:()=>{n((0,Qt.d8)(r))}}),o?null:T.createElement(Id.Z,{type:"group",title:t.formatMessage(Ke.Z.group),className:Bd().button,onPress:()=>{n((0,En._R)(r))}}),o?T.createElement(Id.Z,{type:"ungroup",title:t.formatMessage(Ke.Z.ungroup),className:Bd().button,onPress:()=>{n((0,En.UZ)(o))}}):null)}));const cP=lP,uP=e=>{const t=(0,A.I0)(),{formatMessage:n}=(0,Re.YB)(),{interactionMode:o,currentItemPreset:r,frameWindow:i}=e;function a(e,n,i){t((0,je.fz)()),o===n&&i===r?(0,A.dC)((()=>{t((0,Qt.Ds)(null)),t((0,En.Ce)())})):(0,A.dC)((()=>{t((0,Qt.Ds)(i)),t((0,En.yg)(e,n))}))}return T.createElement("div",{className:F()("PSPDFKit-Measurement-Toolbar",Bd().root,Bd().content,Bd().measurementToolbar),onMouseUp:US,onTouchEnd:US,onPointerUp:US},G.Di.map((e=>T.createElement(rf.Z,{key:e.interactionMode,type:e.icon,title:n(Ke.Z[e.localeKey]),className:F()(of().formDesignerButton,{[of().formDesignerButtonActive]:o===e.interactionMode},e.className),onPress:()=>{a(e.class,e.interactionMode,e.preset)},selected:o===e.interactionMode}))),T.createElement("div",{className:of().spacer}),T.createElement("div",{className:Bd().right},T.createElement(tf.ZP,{frameWindow:i}),T.createElement(rf.Z,{key:"scale",type:"scale",title:n(Fu.sY.measurementScale),className:F()(Bd().measurementToolbarButton)}),T.createElement(rf.Z,{key:"calibrate",type:"calibrate",title:n(Fu.sY.calibrate),className:F()(of().formDesignerButton,"PSPDFKit-Scale-Calibration"),onPress:()=>{const e=G.Di.find((e=>e.interactionMode===x.A.DISTANCE));e&&(t((0,xn.Xh)(!0)),a(e.class,e.interactionMode,e.preset))}})))};var dP,pP,fP,hP,mP,gP=n(90012);function vP(e){return mt.Ei.DISABLE_KEYBOARD_SHORTCUTS||e.viewportState.scrollMode===nl.G.DISABLED?e.children:T.createElement(fv,e)}class yP extends T.Component{constructor(){super(...arguments),(0,o.Z)(this,"state",{isResizingSidebar:!1,scrollElement:null,silenceOutdatedDocumentPromptForHandle:null,filteredItems:(0,Hd.I4)(this.props.state),isAnnotationTypeReadOnlyMemoized:(0,jo.Z)(((e,t)=>(0,So.j$)(e,this.props.state,t))),crop:null,modalClosurePreventionError:null}),(0,o.Z)(this,"_memoizedMapPagesToPageKeys",(0,jo.Z)((e=>e.map((e=>e.pageKey))))),(0,o.Z)(this,"handleScrollElementChange",(e=>{this.setState({scrollElement:e})})),(0,o.Z)(this,"getScrollElement",(()=>{const{scrollElement:e}=this.state;return(0,a.kG)(e),e})),(0,o.Z)(this,"setGlobalCursor",(e=>{this.getScrollElement().style.cursor=e})),(0,o.Z)(this,"getThumbnailScale",(()=>this.props.state.containerRect.width<=Je.Fg?.55:1)),(0,o.Z)(this,"isAnnotationReadOnly",(e=>(0,So.lV)(e,this.props.state)||!(0,oi.CM)(e,this.props.state))),(0,o.Z)(this,"isCommentReadOnly",(e=>(0,So.Ez)(e,this.props.state)||!(0,oi.kR)(e,this.props.state))),(0,o.Z)(this,"reloadDocument",(()=>{const e=this.props.state.documentHandle;this.props.dispatch((0,mu.NV)((()=>this.closeReloadDocumentModal(e)),(e=>{throw e})))})),(0,o.Z)(this,"closeReloadDocumentModal",(e=>{this.setState({silenceOutdatedDocumentPromptForHandle:e})})),(0,o.Z)(this,"_canDeleteAnnotationCP",(e=>(0,oi.Kd)(e,this.props.state))),(0,o.Z)(this,"_canDeleteCommentCP",(e=>(0,oi.Ss)(e,this.props.state))),(0,o.Z)(this,"renderSidebar",((e,t)=>{const n=this.props.state,o=this.props.state.containerRect.width-e<=t,r=n.viewportState.scrollMode===nl.G.DISABLED;if(e<=0)return null;switch(n.sidebarMode){case du.f.THUMBNAILS:return T.createElement(jb,{scale:this.getThumbnailScale(),width:e,selectedPageIndex:n.viewportState.currentPageIndex,closeOnPress:o,navigationDisabled:r});case du.f.DOCUMENT_OUTLINE:return T.createElement(dv,{outlineElements:n.documentOutlineState.elements,expanded:n.documentOutlineState.expanded,closeOnPress:o,backend:n.backend,documentHandle:n.documentHandle,navigationDisabled:r});case du.f.ANNOTATIONS:return T.createElement(Ju,{pages:n.pages,annotations:n.annotations,comments:n.comments,commentThreads:n.commentThreads,formFields:n.formFields,isAnnotationReadOnly:this.isAnnotationReadOnly,isCommentReadOnly:this.isCommentReadOnly,selectedAnnotationIds:n.selectedAnnotationIds,sidebarOptions:n.sidebarOptions.ANNOTATIONS,closeOnPress:o,navigationDisabled:r,canDeleteAnnotationCP:this._canDeleteAnnotationCP,canDeleteCommentCP:this._canDeleteCommentCP});case du.f.BOOKMARKS:return T.createElement(FS,{source:n.bookmarkManager},(t=>T.createElement(IS,{bookmarks:t,bookmarkManager:n.bookmarkManager,currentPageIndex:n.viewportState.currentPageIndex,pages:n.pages,width:e,closeOnPress:o})));case du.f.CUSTOM:return dP||(dP=T.createElement(CS,null));default:return null}})),(0,o.Z)(this,"_viewportEl",null),(0,o.Z)(this,"_viewportRef",(e=>{"gecko"===tt.SR&&(e?(this._viewportEl=e,this._viewportEl.addEventListener("copy",this._copyEventHandler)):this._viewportEl&&(this._viewportEl.removeEventListener("copy",this._copyEventHandler),this._viewportEl=null))})),(0,o.Z)(this,"_copyEventHandler",(e=>{var t;if(!this._viewportEl)return;if(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;const n=(o=this._viewportEl,new zy(null===(r=o.ownerDocument.defaultView)||void 0===r?void 0:r.getSelection(),o,cl().selectableText)._getSelectedTextWithNL());var o,r;null===(t=e.clipboardData)||void 0===t||t.setData("text/plain",n),e.preventDefault()})),(0,o.Z)(this,"renderViewport",(e=>{var t,n;const{selectedAnnotation:o,state:r,dispatch:i}=this.props,{viewportState:a}=r,s=o&&null!==o.pageIndex&&"function"==typeof r.annotationTooltipCallback&&!r.interactionsDisabled?r.annotationTooltipCallback(o):[];return T.createElement(qy,{dispatch:this.props.dispatch,currentTextSelection:this.props.state.currentTextSelection,selectedAnnotationIds:this.props.state.selectedAnnotationIds,activeAnnotationNote:this.props.state.activeAnnotationNote,rootElement:null===(t=this.props.state.frameWindow)||void 0===t?void 0:t.document.documentElement,interactionMode:this.props.state.interactionMode,modalClosurePreventionError:this.state.modalClosurePreventionError},T.createElement("div",{style:{position:"relative",height:"100%"}},T.createElement(Qb,{viewportState:a,scrollbarOffset:r.scrollbarOffset},T.createElement(vP,{dispatch:i,viewportState:a,hasSelectedAnnotations:this.props.state.selectedAnnotationIds.size>0,document:null===(n=r.frameWindow)||void 0===n?void 0:n.document},T.createElement(xe.Provider,null,a.scrollMode===nl.G.PER_SPREAD?T.createElement(iy,{dispatch:i,viewportState:a,hasSelection:this.props.state.selectedAnnotationIds.size>0||null!==this.props.state.currentTextSelection,scrollElement:this.state.scrollElement,interactionsDisabled:r.interactionsDisabled},this.renderViewportContent(s,e)):this.renderViewportContent(s,e))),this._isFullscreen&&this.renderExpandendNoteAnnotations(s))))})),(0,o.Z)(this,"_handleDocumentEditorCancel",(()=>{this.props.dispatch((0,En.sJ)())})),(0,o.Z)(this,"_closeSignatureModal",(()=>{const e={annotations:(0,i.aV)(),reason:u.f.SELECT_END};this.props.state.eventEmitter.emit("annotations.willChange",e),this.props.dispatch((0,En.MV)())})),(0,o.Z)(this,"_createSignatureFromAnnotation",((e,t,n)=>{e instanceof s.Zc&&this.props.dispatch((0,Qt.gX)({strokeColor:e.strokeColor}));const{signatureRect:o,signaturePageIndex:r}=this.props.state.signatureState,{attachments:i}=this.props.state;let l;if("imageAttachmentId"in e&&e.imageAttachmentId&&i.has(e.imageAttachmentId)){const t=i.get(e.imageAttachmentId);(0,a.kG)(t),l={hash:e.imageAttachmentId,attachment:t}}this.props.dispatch(NS(e,{signatureRect:o,signaturePageIndex:r},l)),t&&this.props.dispatch(LS(e,n)),this.props.dispatch((0,En.MV)())})),(0,o.Z)(this,"_createSignatureFromFile",(async(e,t,n)=>{const{signatureRect:o,signaturePageIndex:r}=this.props.state.signatureState;this.props.dispatch((0,En.MV)());const{hash:i,dimensions:a,attachment:s}=await(0,Qt.Iv)(e);this.props.dispatch(function(e,t,n,o){let{dimensions:r,hash:i,attachment:a,file:s}=e,{signatureRect:l,signaturePageIndex:c}=o;return(e,o)=>{let u;e((0,Qt.Ds)("image")),u=s instanceof File?(0,J.om)(o(),r,i,s.type,s.name):(0,J.om)(o(),r,i,"image/png"),u=u.set("isSignature",!0),e((0,vv.O)(i,a)),e(NS(u,{signatureRect:l,signaturePageIndex:c},{hash:i,attachment:a})),t&&e(LS(u,n))}}({hash:i,dimensions:a,attachment:s,file:e},t,n,{signatureRect:o,signaturePageIndex:r}))})),(0,o.Z)(this,"_createSignature",((e,t,n)=>{e instanceof s.q6?this._createSignatureFromAnnotation(e,t,n):this._createSignatureFromFile(e,t,n)})),(0,o.Z)(this,"_deleteStoredSignature",((e,t)=>{this.props.dispatch(function(e,t){return(n,o)=>{t&&n({type:te.Kc8,annotation:e}),o().eventEmitter.emit("inkSignatures.delete",e),o().eventEmitter.emit("inkSignatures.change"),o().eventEmitter.emit("storedSignatures.delete",e),o().eventEmitter.emit("storedSignatures.change")}}(e,t))})),(0,o.Z)(this,"_closeStampModal",(()=>{const e={annotations:(0,i.aV)(),reason:u.f.SELECT_END};this.props.state.eventEmitter.emit("annotations.willChange",e),this.props.dispatch((0,En.pM)())})),(0,o.Z)(this,"_createAnnotationFromTemplate",(e=>{this.props.dispatch((0,En.pM)()),this.props.dispatch((0,Qt.ip)(e))})),(0,o.Z)(this,"_getAttachments",(()=>this.props.state.attachments)),(0,o.Z)(this,"_fetchDigitalSignaturesInfo",(()=>{var e;null===(e=this.props.state.backend)||void 0===e||e.getSignaturesInfo().then((e=>{this.props.dispatch((0,yu.Y)(e))})).catch(a.vU)})),(0,o.Z)(this,"_setA11yStatusMessage",(e=>{this.props.dispatch((0,En.iJ)("")),window.setTimeout((()=>{this.props.dispatch((0,En.iJ)(e))}),200)})),(0,o.Z)(this,"isDocumentComparisonAvailable",(()=>(0,XS.RG)(this.props.state))),(0,o.Z)(this,"handleCrop",(e=>{(0,a.kG)(this.state.crop),this.props.dispatch((0,mu.b_)([{type:"cropPages",cropBox:this.state.crop.area,pageIndexes:e?void 0:[this.state.crop.pageIndex]}],(()=>{}),(()=>{}))),this.props.dispatch((0,En.Cn)())})),(0,o.Z)(this,"setCropDetails",((e,t)=>{this.setState({crop:{area:e,pageIndex:t}})})),(0,o.Z)(this,"onCropCancel",(()=>{const{dispatch:e}=this.props;e((0,En.Cn)())})),(0,o.Z)(this,"getToolbarComponent",(()=>{const{selectedAnnotation:e,activeAnnotationNote:t,state:n,currentTextSelection:o}=this.props,{viewportState:r,selectedAnnotationIds:i}=n,a=n.toolbarPlacement===Ru.p.TOP?"top":"bottom",s=n.selectedAnnotationIds.every((e=>{const t=n.annotations.get(e);return!!t&&("isMeasurement"in t&&t.isMeasurement())}));if(n.selectedAnnotationIds.size>1&&!s)return T.createElement(cP,{selectedAnnotationIds:i});if(e&&!(0,nt.fF)(n.interactionMode)||t){const o=e?n.pages.get(e.pageIndex):null,a=o&&o.pageSize,s=e&&n.annotationPresetIds.get(e.id),l=!(!e||!(0,oi.CM)(e,n)),c=(0,So.aE)(this.props.state),u=!(!e||!(0,oi.Kd)(e,n)),d=i.map((e=>n.annotations.get(e)));return T.createElement(cf,{dispatch:this.props.dispatch,annotation:e,selectedAnnotationPageSize:a,isAnnotationReadOnly:this.isAnnotationReadOnly,variantAnnotationPresetID:s,selectedAnnotationMode:this.props.state.selectedAnnotationMode,zoomLevel:r.zoomLevel,position:n.toolbarPlacement===Ru.p.TOP?"top":"bottom",eventEmitter:n.eventEmitter,frameWindow:n.frameWindow,viewportWidth:n.containerRect.width,activeAnnotationNote:t,showAnnotationNotes:this.props.state.showAnnotationNotes,canEditAnnotationCP:l,canDeleteSelectedAnnotationCP:u,areOnlyElectronicSignaturesEnabled:c,lastToolbarActionUsedKeyboard:n.lastToolbarActionUsedKeyboard,interactionMode:n.interactionMode,keepSelectedTool:this.props.state.keepSelectedTool,annotationToolbarColorPresets:n.annotationToolbarColorPresets,annotationToolbarItems:n.annotationToolbarItems,richTextEditorRef:n.richTextEditorRef,customFontsReadableNames:n.customFontsReadableNames,isCalibratingScale:n.isCalibratingScale,selectedAnnotations:d})}var l,c;return n.interactionMode===x.A.INK_ERASER?T.createElement(ff,{dispatch:this.props.dispatch,inkEraserCursorWidth:null!==(l=null===(c=n.annotationPresets.get("ink"))||void 0===c?void 0:c.inkEraserWidth)&&void 0!==l?l:mt.Ei.DEFAULT_INK_ERASER_CURSOR_WIDTH,position:a,viewportWidth:n.containerRect.width}):n.interactionMode===x.A.DOCUMENT_CROP?T.createElement(ZS,{onCropApply:this.handleCrop,onCropCancel:this.onCropCancel,position:a,isCropAreaSelected:!!this.state.crop,frameWindow:n.frameWindow}):(0,nt.fF)(n.interactionMode)?T.createElement(vE,{position:a,interactionMode:n.interactionMode,dispatch:this.props.dispatch,frameWindow:n.frameWindow,modalClosurePreventionError:this.state.modalClosurePreventionError,selectedAnnotation:!!n.selectedAnnotationIds.size}):n.interactionMode===x.A.CONTENT_EDITOR?T.createElement(WS,{position:a,viewportWidth:n.containerRect.width,frameWindow:n.frameWindow,creationMode:n.contentEditorSession.mode===Gl.wR.Create}):n.interactionMode===x.A.MEASUREMENT?T.createElement(uP,{position:a,interactionMode:n.interactionMode,viewportWidth:n.containerRect.width,frameWindow:n.frameWindow}):T.createElement(_v,{dispatch:this.props.dispatch,isAnnotationTypeReadOnly:this.state.isAnnotationTypeReadOnlyMemoized,position:n.toolbarPlacement===Ru.p.TOP?"top":"bottom",showComments:(0,Ml.oK)(n),showRedactions:this.props.state.features.includes(ge.q.REDACTIONS),inlineTextSelectionToolbarItems:n.inlineTextSelectionToolbarItems,currentTextSelection:o})})),(0,o.Z)(this,"handleSidebarResize",(e=>{let{sidebarRect:t,isDragging:n,size:o}=e;const r=xu(this.props.state,t,o);this.props.dispatch((0,Eu.dx)(r,!1)),this.setState({isResizingSidebar:n})})),(0,o.Z)(this,"handleResizeHelperResize",((e,t)=>{const n=this.props.state,o=e.width,r=n.containerRect.width===n.sidebarWidth,i=!r&&o-n.sidebarWidth<200;let a;n.sidebarMode&&!i?r?(a=e.set("width",o).set("left",0),this.props.dispatch((0,Eu.Pt)(o))):a=e.set("width",o-n.sidebarWidth).set("left",n.sidebarPlacement===pu.d.START?n.sidebarWidth:0):(a=e,n.sidebarMode&&i&&this.props.dispatch((0,En.mu)())),this.props.dispatch((0,Eu.dx)(a,t))}))}renderViewportContent(e,t){const{selectedAnnotation:n,state:o,dispatch:r,currentTextSelection:a}=this.props,{viewportState:l,interactionsDisabled:c,interactionMode:u,formFields:d,frameWindow:p,eventEmitter:f,locale:h,scrollElement:m,measurementToolState:g,contentEditorSession:{fontMismatchTooltip:v,textBlockInteractionState:y},selectedAnnotationIds:b}=o;let w,S,E=null;if(o.interactionMode!==x.A.TEXT_HIGHLIGHTER&&!o.interactionsDisabled&&a&&!t(s.On)&&o.inlineTextMarkupToolbar&&(E=T.createElement(Wv.Z,{referenceRect:(0,ga.U2)(o,a.textRange),viewportState:l,className:"PSPDFKit-Popover-Text-Markup-Toolbar",isArrowHidden:!!this.props.state.inlineTextSelectionToolbarItems&&!(this.props.state.inlineTextSelectionToolbarItems.length>0)},T.createElement(Mv,{dispatch:r,isAnnotationTypeReadOnly:t,showComments:(0,Ml.oK)(this.props.state),showRedactions:this.props.state.features.includes(ge.q.REDACTIONS),inlineTextSelectionToolbarItems:this.props.state.inlineTextSelectionToolbarItems,currentTextSelection:a}))),w=o.viewportState.documentComparisonMode&&o.backend?T.createElement(JS.Z,{renderPageCallback:o.renderPageCallback,backend:o.backend,allowedTileScales:o.allowedTileScales,viewportState:o.viewportState,interactionMode:o.interactionMode,scrollElement:o.scrollElement,dispatch:r,configuration:o.viewportState.documentComparisonMode,viewportWidth:o.containerRect.width,renderPagePreview:o.renderPagePreview}):l.scrollMode===nl.G.PER_SPREAD||l.scrollMode===nl.G.DISABLED?T.createElement(ey,{onCropChange:this.setCropDetails,dispatch:r,spreadIndex:(0,Hs.dF)(l,l.currentPageIndex),viewportState:l,interactionMode:o.interactionMode,cropInfo:this.state.crop,pageKeys:this._memoizedMapPagesToPageKeys(o.pages),setGlobalCursor:this.setGlobalCursor}):T.createElement($h,{onCropChange:this.setCropDetails,dispatch:r,viewportState:l,cropInfo:this.state.crop,pageKeys:this._memoizedMapPagesToPageKeys(o.pages),setGlobalCursor:this.setGlobalCursor}),g&&o.backend&&(0,$.hj)(g.drawnAnnotationPageIndex)){var P;const e={inViewport:!0,page:o.pages.get(g.drawnAnnotationPageIndex),backend:o.backend,shouldPrerender:!0,zoomLevel:l.zoomLevel,rotation:l.pagesRotation,renderPageCallback:o.renderPageCallback,allowedTileScales:"all",documentHandle:o.documentHandle,viewportRect:l.viewportRect,forceDetailView:!1,renderPagePreview:o.renderPagePreview,isPageSizeReal:!!o.arePageSizesLoaded,inContentEditorMode:!1};let t=g.magnifierCursorPosition;const n=(0,Hs.Ad)(l),r=(0,Hs.dF)(l,g.drawnAnnotationPageIndex),i=(0,Hs.Xk)(l,r);let a=(n-i.width)/2*l.zoomLevel;o.sidebarMode&&(a+=o.sidebarWidth);let s=0;if((0,Hs.nw)(l)===C.X.DOUBLE){const e=(0,Hs.hK)(l,g.drawnAnnotationPageIndex);if(i.height!==e.height&&(s=(i.height-e.height)/2*l.zoomLevel),g.drawnAnnotationPageIndex%2!=0){a+=(0,Hs.hK)(l,g.drawnAnnotationPageIndex-1).width*l.zoomLevel}}t=null===(P=g.magnifierCursorPosition)||void 0===P?void 0:P.merge({x:g.magnifierCursorPosition.x-a,y:g.magnifierCursorPosition.y-s}),S=T.createElement(rP.B,{pageRendererComponentProps:e,viewportState:l,scrollElement:m,currentMainToolbarHeight:il.k3,className:"PSPDFKit-Measurement-Magnifier",label:g.magnifierLabel,pageIndex:g.drawnAnnotationPageIndex,cursorPosition:t,isMobile:o.containerRect.width<=Je.Fg})}const D=n?o.pages.get(n.pageIndex):null,k=D&&D.pageSize;return T.createElement(Oy,{dispatch:r,viewportState:l,scrollbarOffset:o.scrollbarOffset,onScrollElementChange:this.handleScrollElementChange,scrollDisabled:o.scrollDisabled},T.createElement(Qv,{enabled:o.interactionMode===x.A.PAN&&!tt.Ni&&!o.interactionsDisabled&&!!o.scrollElement},T.createElement("div",{className:pE().viewportContent,ref:this._viewportRef,"data-testid":"viewport"},w,(0,Ml.Y7)(o)&&l.commentMode&&T.createElement(Ng,{maxMentionSuggestions:o.maxMentionSuggestions,mentionableUsers:o.mentionableUsers,annotations:this.props.state.annotations,viewportState:l,selectedAnnotation:this.props.selectedAnnotation,comments:this.props.state.comments,commentThreads:this.props.state.commentThreads,dispatch:r,keepSelectedTool:this.props.state.keepSelectedTool,frameWindow:this.props.state.frameWindow,anonymousComments:this.props.state.anonymousComments})),E,n&&!(n instanceof j.Qi)&&e.length>0&&!this.props.noteAnnotationToModify&&T.createElement(Wv.Z,{referenceRect:(0,$i.q)((0,J.Wj)(n,l.pagesRotation,l.viewportRect.getSize()).apply((0,de.cr)(l,n.pageIndex).translate(l.scrollPosition.scale(l.zoomLevel))),l.viewportRect.getSize()),viewportState:l,className:"PSPDFKit-Popover-Annotation-Tooltip"},T.createElement(Yb,{items:e})),n&&null!==n.pageIndex&&n instanceof j.UX&&n.isMeasurement()&&o.isCalibratingScale&&T.createElement(Fu.ZP,{annotation:n,isHidden:c,referenceRect:(0,$i.q)((0,J.Wj)(n,l.pagesRotation,l.viewportRect.getSize()).apply((0,de.cr)(l,n.pageIndex).translate(l.scrollPosition.scale(l.zoomLevel))),l.viewportRect.getSize()),viewportState:l,eventEmitter:f,modalClosurePreventionError:this.state.modalClosurePreventionError,setModalClosurePreventionError:e=>this.setState({modalClosurePreventionError:e}),frameWindow:p,locale:h}),n&&1===b.size&&(0,nt.fF)(u)&&n instanceof j.x_&&T.createElement(YE,{modalClosurePreventionError:this.state.modalClosurePreventionError,setModalClosurePreventionError:e=>this.setState({modalClosurePreventionError:e}),annotation:n,isHidden:c,referenceRect:(0,$i.q)((0,J.Wj)(n,l.pagesRotation,l.viewportRect.getSize()).apply((0,de.cr)(l,n.pageIndex).translate(l.scrollPosition.scale(l.zoomLevel))),l.viewportRect.getSize()),viewportState:l,formFields:d,dispatch:r,frameWindow:p,eventEmitter:f,locale:h,isUnsavedAnnotation:n.id===this.props.state.formDesignerUnsavedWidgetAnnotation,pageSize:k,customFontsReadableNames:this.props.state.customFontsReadableNames||(0,i.l4)()}),this.renderLinkAnnotationPopover(),S,this.renderAnimatedExpandendNoteAnnotations(e),null!=v&&v.fontFace&&(null==y?void 0:y.state)===Gl.FP.Active&&null!=v&&v.rect?T.createElement(sP,{referenceRect:v.rect,fontFace:v.fontFace,viewportState:l,activeTextBlock:y}):null))}getSnapshotBeforeUpdate(e){const t=e.selectedNoteAnnotations&&this.props.selectedNoteAnnotations&&0!==e.selectedNoteAnnotations.size&&e.selectedNoteAnnotations.size===this.props.selectedNoteAnnotations.size;return this._animateNoteAnnotation=!window["PSPDFKit-disable-animations"]&&!t,null}renderAnimatedExpandendNoteAnnotations(e){const t=this._isFullscreen?null:this.renderExpandendNoteAnnotations(e);return this._animateNoteAnnotation&&null!==t?T.createElement(Iu.Z,null,t.map((e=>T.createElement(Tu.Z,{key:`NoteAnnotationPopopver-${e.props.noteAnnotation.id}`,timeout:{enter:window["PSPDFKit-disable-animations"]?0:100,exit:window["PSPDFKit-disable-animations"]?0:150},classNames:{enter:hE().fadeEnter,enterActive:hE().fadeEnterActive,exit:hE().fadeExit,exitActive:hE().fadeExitActive}},e)))):T.createElement("div",null,t)}renderExpandendNoteAnnotations(e){var t,n,o,r,a,s;if(!this.props.state.showAnnotations||this.props.state.interactionsDisabled&&!this._isFullscreen||this.props.state.selectedAnnotationIds.size>1)return(0,i.l4)();const l=[];if(this.props.activeAnnotationNote&&(0,J.YV)(null===(t=this.props.activeAnnotationNote)||void 0===t?void 0:t.parentAnnotation)){const e=this.props.activeAnnotationNote;l.push(T.createElement(qv,{key:`NoteAnnotationPopopver-${e.id}`,noteAnnotation:e,noteAnnotationToModify:e,viewportState:this.props.state.viewportState,dispatch:this.props.dispatch,isFullscreen:this._isFullscreen,collapseSelectedNoteContent:!1,annotationToolbarHeight:this.props.state.annotationToolbarHeight,isAnnotationReadOnly:this.isAnnotationReadOnly,autoSelect:this.props.state.selectedTextOnEdit,eventEmitter:this.props.state.eventEmitter,keepSelectedTool:this.props.state.keepSelectedTool}))}if(this.props.hoverAnnotationNote&&(0,J.YV)(null===(n=this.props.hoverAnnotationNote)||void 0===n?void 0:n.parentAnnotation)&&(!this.props.activeAnnotationNote||(null===(o=this.props.hoverAnnotationNote)||void 0===o||null===(r=o.parentAnnotation)||void 0===r?void 0:r.id)!==(null===(a=this.props.activeAnnotationNote)||void 0===a||null===(s=a.parentAnnotation)||void 0===s?void 0:s.id))){const e=this.props.hoverAnnotationNote;l.push(T.createElement(qv,{key:`NoteAnnotationPopopver-${e.id}`,noteAnnotation:e,noteAnnotationToModify:null,viewportState:this.props.state.viewportState,dispatch:this.props.dispatch,isFullscreen:this._isFullscreen,isHover:!0,collapseSelectedNoteContent:!1,annotationToolbarHeight:this.props.state.annotationToolbarHeight,isAnnotationReadOnly:this.isAnnotationReadOnly,autoSelect:this.props.state.selectedTextOnEdit,eventEmitter:this.props.state.eventEmitter,keepSelectedTool:this.props.state.keepSelectedTool}))}return this.props.selectedNoteAnnotations&&0!==this.props.selectedNoteAnnotations.size?this.props.selectedNoteAnnotations.filter((e=>null!==e.pageIndex)).map((t=>{const n=!!this.props.selectedAnnotation&&t.id===this.props.selectedAnnotation.id;return T.createElement(qv,{key:`NoteAnnotationPopopver-${t.id}`,noteAnnotation:t,noteAnnotationToModify:this.props.noteAnnotationToModify,viewportState:this.props.state.viewportState,dispatch:this.props.dispatch,isFullscreen:this._isFullscreen,isHover:!n,annotationToolbarHeight:this.props.state.annotationToolbarHeight,isAnnotationReadOnly:this.isAnnotationReadOnly,tools:n?e:[],collapseSelectedNoteContent:this.props.state.collapseSelectedNoteContent,autoSelect:this.props.state.selectedTextOnEdit,eventEmitter:this.props.state.eventEmitter,keepSelectedTool:this.props.state.keepSelectedTool})})).concat(l):(0,i.l4)(l)}renderLinkAnnotationPopover(){const{selectedAnnotation:e,state:t,dispatch:n,hoveredLinkAnnotation:o}=this.props,{viewportState:r,frameWindow:i,locale:a,pages:l,linkAnnotationMode:c,viewportState:{currentPageIndex:u}}=t,d=e&&e instanceof s.R1&&!c,p=!(null==o||!o.action||d),f=e?(null==e?void 0:e.pageIndex)===u:(null==o?void 0:o.pageIndex)===u;if(!p&&!d)return null;if(!f)return o&&this.props.dispatch((0,je.IP)(o.id)),null;const h=p?o:e;return T.createElement(vg,{annotation:h,viewportState:r,dispatch:n,frameWindow:i,locale:a,pages:l,isHover:p})}componentDidUpdate(e){this.props.state.interactionMode!==x.A.DOCUMENT_CROP&&e.state.interactionMode===x.A.DOCUMENT_CROP&&this.setState({crop:null}),(0,nt.fF)(e.state.interactionMode)&&!(0,nt.fF)(this.props.state.interactionMode)&&this.props.dispatch((0,En.LE)(!1)),this.props.state.interactionMode!==x.A.INK_SIGNATURE&&this.props.state.interactionMode!==x.A.SIGNATURE||this.props.state.signatureState.storedSignatures||this.props.dispatch(jS());!(this.props.state.features.includes(ge.q.DIGITAL_SIGNATURES)&&!this.props.state.digitalSignatures&&this.props.state.connectionState.name===_s.F.CONNECTED)&&(e.state.documentHandle===this.props.state.documentHandle&&this.props.state.digitalSignatures||this.props.state.connectionState.name!==_s.F.CONNECTED)||this._fetchDigitalSignaturesInfo(),e.state.features.equals(this.props.state.features)&&e.state.backend===this.props.state.backend&&e.state.backendPermissions.equals(this.props.state.backendPermissions)&&e.state.documentPermissions.equals(this.props.state.documentPermissions)&&e.state.readOnlyEnabled===this.props.state.readOnlyEnabled&&e.state.editableAnnotationTypes.equals(this.props.state.editableAnnotationTypes)&&e.state.toolbarItems.equals(this.props.state.toolbarItems)&&e.state.showComments===this.props.state.showComments||this.setState({isAnnotationTypeReadOnlyMemoized:(0,jo.Z)((e=>(0,So.j$)(e,this.props.state))),filteredItems:(0,Hd.I4)(this.props.state)})}render(){const{selectedAnnotation:e,activeAnnotationNote:t,state:n}=this.props,{viewportState:o,isDocumentHandleOutdated:r}=n;this._isFullscreen=o.viewportRect.width<=Je.j1;const i=n.containerRect.width<=Je.Fg?n.containerRect.width:200,a=e instanceof j.Qi&&this.isAnnotationReadOnly(e)&&!this._isFullscreen,s=n.currentItemPreset&&n.annotationPresets.get(n.currentItemPreset)||{},{SIGNATURE_SAVE_MODE:l,DISABLE_KEYBOARD_SHORTCUTS:c}=mt.Ei,u=n.sidebarMode&&T.createElement(Yy,{initialSize:n.sidebarWidth,minWidth:i,maxWidth:n.containerRect.width,draggerSize:n.containerRect.width<=Je.Fg?0:6,onResize:this.handleSidebarResize,isRTL:n.sidebarPlacement===pu.d.END,dispatch:this.props.dispatch},this.renderSidebar),d=(e||t)&&!a||!n.interactionsDisabled&&(n.currentTextSelection||n.interactionMode===x.A.TEXT_HIGHLIGHTER)&&!n.inlineTextMarkupToolbar||n.interactionMode===x.A.INK_ERASER||n.interactionMode===x.A.DOCUMENT_CROP||n.interactionMode===x.A.CONTENT_EDITOR||n.interactionMode===x.A.MEASUREMENT||(0,nt.fF)(n.interactionMode),p=!(!e||!(0,oi.Kd)(e,n)),f=o.documentComparisonMode&&T.createElement(aE,{position:n.toolbarPlacement===Ru.p.TOP?"top":"bottom"}),h=!f&&n.enableAnnotationToolbar&&!(e&&this.props.state.commentThreads.has(e.id))&&T.createElement(Iu.Z,null,d?T.createElement(Tu.Z,{timeout:{exit:window["PSPDFKit-disable-animations"]?0:120,enter:window["PSPDFKit-disable-animations"]?0:100},classNames:n.toolbarPlacement===Ru.p.TOP?{enter:hE().slideDownEnter,enterActive:hE().slideDownEnterActive,exit:hE().slideDownExit,exitActive:hE().slideDownExitActive}:{enter:hE().slideUpEnter,enterActive:hE().slideUpEnterActive,exit:hE().slideUpExit,exitActive:hE().slideUpExitActive}},this.getToolbarComponent()):null),m=n.digitalSignatures&&n.showSignatureValidationStatus!==fu.W.NEVER?T.createElement(Tu.Z,{in:!!d,timeout:{exit:window["PSPDFKit-disable-animations"]?0:120,enter:window["PSPDFKit-disable-animations"]?0:100},classNames:n.toolbarPlacement===Ru.p.TOP?{enter:hE().moveDownSignatureBarEnter,enterActive:hE().moveDownSignatureBarEnterActive,exit:hE().moveDownExit,exitActive:hE().moveDownSignatureBarExitActive}:{enter:hE().moveUpSignatureBarEnter,enterActive:hE().moveUpSignatureBarEnterActive,exit:hE().moveUpSignatureBarExit,exitActive:hE().moveUpSignatureBarExitActive}},T.createElement(Wb,{digitalSignatures:n.digitalSignatures,showSignatureValidationStatus:n.showSignatureValidationStatus})):null,g=n.signatureFeatureAvailability,v=(0,So.bp)(n),y=T.createElement(T.Fragment,null,n.showToolbar&&T.createElement(il.ZP,{sidebarMode:n.sidebarMode,currentPageIndex:o.currentPageIndex,debugMode:n.debugMode,dispatch:this.props.dispatch,eventEmitter:this.props.state.eventEmitter,frameWindow:n.frameWindow,interactionMode:n.interactionMode,items:this.state.filteredItems,layoutMode:o.layoutMode,maxZoomReached:o.zoomLevel>=(0,Ys.Sm)(o),minZoomReached:o.zoomLevel<=(0,Ys.Yo)(o),printingEnabled:(0,So.VT)(n),exportEnabled:(0,So.RZ)(n),isDocumentReadOnly:v,isAnnotationTypeReadOnly:this.state.isAnnotationTypeReadOnlyMemoized,isDocumentComparisonAvailable:this.isDocumentComparisonAvailable(),signatureFeatureAvailability:g,scrollMode:o.scrollMode,pages:n.pages,totalPages:n.totalPages,zoomMode:o.zoomMode,currentItemPreset:n.currentItemPreset,toolbarPlacement:n.toolbarPlacement,documentEditorEnabled:(0,So.Xr)(n),canUndo:n.isHistoryEnabled&&n.undoActions.size>0,canRedo:n.isHistoryEnabled&&n.redoActions.size>0,currentDocumentComparisonMode:o.documentComparisonMode,isContentEditorSessionDirty:n.contentEditorSession.dirty,isMultiSelectionEnabled:n.isMultiSelectionEnabled}),T.createElement(Zb,{position:n.toolbarPlacement===Ru.p.TOP?"top":"bottom"},n.toolbarPlacement===Ru.p.TOP?T.createElement(T.Fragment,null,f||h,m):T.createElement(T.Fragment,null,m,f||h)));return T.createElement(Mu.Provider,{value:this.getScrollElement},T.createElement("div",{className:`PSPDFKit-Container PSPDFKit-browser-engine-${tt.SR} PSPDFKit-browser-system-${tt.By} ${tt.Ni?"PSPDFKit-mobile-os":""} PSPDFKit-${(0,Hs.s)(n.containerRect)} ${pE().root} ${n.interactionsDisabled?"interactions-disabled":""} ${null!=n.backend?"PSPDFKit-backend-"+("STANDALONE"===n.backend.type?"standalone":"server"):""} ${n.disablePullToRefresh?"overscrollDisabled":""}`},n.isDebugConsoleVisible&&T.createElement($g,{dispatch:this.props.dispatch}),(n.interactionMode===x.A.STAMP_PICKER||n.interactionMode===x.A.STAMP_CUSTOM)&&T.createElement(Eb,{onEscape:this._closeStampModal,showPicker:n.interactionMode===x.A.STAMP_PICKER},T.createElement(Rb,{onCreate:this._createAnnotationFromTemplate,backend:n.backend,onCancel:this._closeStampModal,stampAnnotationTemplates:n.stampAnnotationTemplates,dispatch:this.props.dispatch,showPicker:n.interactionMode===x.A.STAMP_PICKER,attachments:n.attachments,viewportWidth:n.containerRect.width})),(n.interactionMode===x.A.INK_SIGNATURE||n.interactionMode===x.A.SIGNATURE)&&n.signatureState.storedSignatures&&g===Ar.H.LEGACY_SIGNATURES&&T.createElement(eb,{onEscape:this._closeSignatureModal},T.createElement(bb,{onCancel:this._closeSignatureModal,onCreate:this._createSignatureFromAnnotation,onDelete:this._deleteStoredSignature,storedSignatures:n.signatureState.storedSignatures,preset:s,canStoreSignature:(null==n.signatureState.formFieldName||!n.signatureState.formFieldsNotSavingSignatures.includes(n.signatureState.formFieldName))&&l!==_u.f.NEVER,backend:n.backend,attachments:n.attachments,viewportWidth:n.containerRect.width})),(n.interactionMode===x.A.INK_SIGNATURE||n.interactionMode===x.A.SIGNATURE)&&n.signatureState.storedSignatures&&g===Ar.H.ELECTRONIC_SIGNATURES&&T.createElement(aw,{onEscape:this._closeSignatureModal},T.createElement(pS,{preset:s,colorPresets:this.props.state.electronicSignatureColorPresets,frameWindow:n.frameWindow,onCreate:this._createSignature,onDelete:this._deleteStoredSignature,onCancel:this._closeSignatureModal,storedSignatures:n.signatureState.storedSignatures,hasSignaturesCreationListener:Object.keys(n.eventEmitter.listeners).includes("storedSignatures.create")||Object.keys(n.eventEmitter.listeners).includes("inkSignatures.create"),hasSignaturesDeletionListener:Object.keys(n.eventEmitter.listeners).includes("storedSignatures.delete")||Object.keys(n.eventEmitter.listeners).includes("inkSignatures.delete"),backend:n.backend,attachments:n.attachments,viewportWidth:n.containerRect.width,creationModes:n.electronicSignatureCreationModes,signingFonts:n.signingFonts,dispatch:this.props.dispatch})),n.interactionMode===x.A.MEASUREMENT_SETTINGS&&T.createElement(gP.Z,{frameWindow:n.frameWindow}),n.interactionMode===x.A.DOCUMENT_EDITOR&&T.createElement(DS,{onCancel:this._handleDocumentEditorCancel,scale:this.getThumbnailScale()}),n.isPrinting&&T.createElement(dy,{progress:n.printLoadingIndicatorProgress,totalPages:n.totalPages}),n.isSigning&&(pP||(pP=T.createElement(gy,null))),n.isApplyingRedactions&&(fP||(fP=T.createElement(Sy,null))),T.createElement(Tf,{connectionState:n.connectionState,resolvePassword:n.resolvePassword,isUnlockedViaModal:n.isUnlockedViaModal},n.toolbarPlacement===Ru.p.TOP&&y,n.interactionMode===x.A.SEARCH&&(hP||(hP=T.createElement(jy,null))),T.createElement("div",{className:pE().main},!u&&T.createElement(Hp.Z,{onResize:this.handleResizeHelperResize}),n.sidebarPlacement===pu.d.START&&u,T.createElement("div",{className:F()(pE().mainContent,this.state.isResizingSidebar&&pE().mainContentResizing)},this.renderViewport(this.state.isAnnotationTypeReadOnlyMemoized)),n.sidebarPlacement===pu.d.END&&u,u&&T.createElement(Hp.Z,{onResize:this.handleResizeHelperResize})),n.toolbarPlacement===Ru.p.BOTTOM&&y,n.annotationsIdsToDelete&&T.createElement(Xg,{dispatch:this.props.dispatch,annotations:n.annotationsIdsToDelete.map((e=>n.annotations.get(e))).filter(Boolean),eventEmitter:n.eventEmitter,setA11yStatusMessage:this._setA11yStatusMessage}),n.showExitContentEditorDialog&&(mP||(mP=T.createElement(tP,null))),!c&&T.createElement(Pv,{dispatch:this.props.dispatch,printingEnabled:(0,So.VT)(n),isPrinting:n.isPrinting,isTextCopyingAllowed:(0,So.HI)(n),selectedAnnotationsIds:this.props.editableSelectedAnnotationIds,commentThreads:this.props.state.commentThreads,getScrollElement:this.getScrollElement,canDeleteSelectedAnnotationCP:p,canUndo:n.isHistoryEnabled&&n.undoActions.size>0,canRedo:n.isHistoryEnabled&&n.redoActions.size>0,selectedAnnotation:this.props.selectedAnnotation,currentPageIndex:o.currentPageIndex,eventEmitter:n.eventEmitter,backend:n.backend,formFields:n.formFields,areClipboardActionsEnabled:n.areClipboardActionsEnabled,modalClosurePreventionError:this.state.modalClosurePreventionError,setModalClosurePreventionError:e=>{this.setState({modalClosurePreventionError:e})},annotations:n.annotations,selectedGroupId:n.selectedGroupId,annotationsGroups:n.annotationsGroups,frameWindow:n.frameWindow,isMultiSelectionEnabled:n.isMultiSelectionEnabled,contentEditorSession:n.contentEditorSession,interactionMode:n.interactionMode}),r&&this.state.silenceOutdatedDocumentPromptForHandle!==n.documentHandle&&T.createElement(nw,{onConfirm:this.reloadDocument,onCancel:()=>this.closeReloadDocumentModal(n.documentHandle)})),T.createElement(Qg,{locale:n.locale}),T.createElement(bP,{message:n.a11yStatusMessage})))}}const bP=T.memo((e=>T.createElement(ue.TX,{announce:"polite",role:"status",tag:"div"},T.createElement("div",null,e.message)))),wP=(0,A.$j)((e=>{const{annotations:t,hoverAnnotationIds:n,hoverAnnotationNote:o,activeAnnotationNote:r,selectedAnnotationIds:i}=e,a=i.concat(n).map((e=>t.get(e))).filter((e=>e&&e instanceof j.Qi)),s=n.concat(n).map((e=>t.get(e))).filter((e=>e&&e instanceof j.R1)).first(),l=a.first(),c=l&&e.selectedAnnotationMode===Q.o.EDITING?l:null,u=e.selectedAnnotationIds.size>0?e.annotations.get(e.selectedAnnotationIds.first()):null;return{state:e,selectedNoteAnnotations:a,noteAnnotationToModify:c,selectedAnnotation:u,activeAnnotationNote:r,hoverAnnotationNote:o,editableSelectedAnnotationIds:i.filter((t=>{const n=e.annotations.get(t);return n&&!(0,So.lV)(n,e)})),currentTextSelection:e.currentTextSelection,hoveredLinkAnnotation:s}}))(yP);var SP=n(55237);const EP=tt.Ni?396:240,PP=new SP.Z({width:EP,height:EP/3,left:0,top:0}),xP=new SP.Z({width:EP,height:EP,left:0,top:0}),DP=Object.freeze([["Approved",PP],["NotApproved",PP],["Draft",PP],["Final",PP],["Completed",PP],["Confidential",PP],["ForPublicRelease",PP],["NotForPublicRelease",PP],["ForComment",PP],["Void",PP],["PreliminaryResults",PP],["InformationOnly",PP],["Rejected",xP],["Accepted",xP],["InitialHere",PP],["SignHere",PP],["Witness",PP],["AsIs",PP],["Departmental",PP],["Experimental",PP],["Expired",PP],["Sold",PP],["TopSecret",PP],["Revised",PP],["RejectedWithText",PP]].map((e=>{let[t,n]=e;return new s.GI({stampType:t,boundingBox:n})})));var CP=n(84760),kP=n(31835);const AP=(0,H.Z)("ToolbarItems");const OP=["annotationSelection.change"];const TP=(0,H.Z)("Annotations");const IP=(0,H.Z)("Bookmarks");const FP=(0,H.Z)("CustomOverlayItem");var MP=n(8503);const _P=(0,H.Z)("Forms");const RP=(0,H.Z)("InkSignatures"),NP=["inkSignatures.create","inkSignatures.update","inkSignatures.delete","inkSignatures.change"],LP=["storedSignatures.create","storedSignatures.update","storedSignatures.delete","storedSignatures.change"];const BP=(0,H.Z)();async function jP(e,t,n){var o;if("object"!=typeof e||"number"!=typeof e.width&&"number"!=typeof e.height)throw new a.p2("The first argument must be an object with either `width` or `height` set to a number.");if("width"in e&&"height"in e)throw new a.p2("The first argument can't contain both `height` and `width` propeties at the same time.");if("width"in e&&"number"!=typeof e.width)throw new a.p2("`width` must be a number.");if("height"in e&&"number"!=typeof e.height)throw new a.p2("`height` must be a number.");BP("number"==typeof t,"pageIndex must be a number."),await(null===(o=n.getState().annotationManager)||void 0===o?void 0:o.loadAnnotationsForPageIndex(t));const r=n.getState(),i=r.pages.get(t);BP(i,`Could not find page with index ${t} in this document.`);const{pageSize:s}=i;let l,c;"width"in e&&"number"==typeof e.width&&e.width>0&&e.width<=Je.Qr?(l=Math.round(e.width),c=Math.round(l*s.height/s.width)):"height"in e&&"number"==typeof e.height&&e.height>0&&e.height<=Je.Qr?(c=Math.round(e.height),l=Math.round(c*s.width/s.height)):BP(!1,`Could not calculate cover dimensions. Values must be in the interval \`(0; ${Je.Qr}]\`.`);const u=r.annotations.filter((e=>e.pageIndex===t&&!(e instanceof j.Jn||e instanceof j.On&&r.commentThreads.has(e.id)))).toList(),d=r.formFields.filter((e=>e.annotationIds.some((e=>{const n=r.annotations.get(e);return!(!n||n.pageIndex!==t)})))),p=(0,nt.Qg)(d);BP(r.backend);const{promise:f}=r.backend.renderTile(t,new j.$u({width:l,height:c}),new j.UL({width:l,height:c}),!1,!0,{annotations:u,formFieldValues:p,formFields:d.toList(),attachments:r.attachments,signatures:r.digitalSignatures&&r.digitalSignatures.signatures}),{element:h}=await f;return{element:h,width:l,height:c}}var zP=n(96617);const KP={CREDIT_CARD_NUMBER:"credit_card_number",DATE:"date",TIME:"time",EMAIL_ADDRESS:"email_address",INTERNATIONAL_PHONE_NUMBER:"international_phone_number",IP_V4:"ipv4",IP_V6:"ipv6",MAC_ADDRESS:"mac_address",NORTH_AMERICAN_PHONE_NUMBER:"north_american_phone_number",SOCIAL_SECURITY_NUMBER:"social_security_number",URL:"url",US_ZIP_CODE:"us_zip_code",VIN:"vin"},ZP=["search.stateChange","search.termChange"];const UP=(0,H.Z)("StampAnnotationTemplates");var VP=n(49177);class GP extends((0,i.WV)({startTextLineId:null,endTextLineId:null,startPageIndex:null,endPageIndex:null,startNode:null,startOffset:null,endNode:null,endOffset:null,getText:null,getSelectedTextLines:null,getBoundingClientRect:null,getSelectedRectsPerPage:null})){}const WP=["textSelection.change"];function qP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function HP(e){for(var t=1;t{e.setFormJSONUpdateBatchMode(!1)})))}const QP=["history.undo","history.redo","history.change","history.willChange","history.clear"];const ex=(0,H.Z)("DocumentEditorFooterItem");const tx=["documentComparisonUI.start","documentComparisonUI.end"];const nx={Sidebar:Object.values(du.f)};function ox(e){for(const t in e)if(e.hasOwnProperty(t)){(0,Ne.k)(void 0!==typeof nx[t],`'${t}' is not a customizable UI element. Customizable UI elements are: ${Object.keys(nx).join(", ")}`);const n=nx[t];(0,Ne.k)(Object.keys(e[t]).every((e=>n.includes(e))),`The provided custom UI configuration contains one or more invalid keys for "${t}". Valid "${t}" keys are: ${n.join(",")}`),(0,Ne.k)(Object.values(e[t]).every((e=>"function"==typeof e)),"The custom UI values provided must be callback functions.")}return e}var rx=n(62793);const ix=(0,H.Z)(),ax=["instant.connectedClients.change","page.press","textLine.press","annotationPresets.update","annotationNote.hover","annotationNote.press"],sx=[function(e,t){Object.defineProperty(t,"editableAnnotationTypes",{enumerable:!0,configurable:!1,get:()=>e.getState().editableAnnotationTypes}),t.setEditableAnnotationTypes=function(t){if(!Array.isArray(t))throw new a.p2("editableAnnotationTypes must be an array of annotation types.");if(!t.every((e=>e&&e.prototype&&(e.prototype instanceof Ou.Z||e==Ou.Z))))throw new a.p2("editableAnnotationTypes must be an array of annotation types.");e.dispatch((0,En.ZV)((0,i.l4)(t)))},t.setIsEditableAnnotation=function(t){if("function"!=typeof t)throw new a.p2("The type for isEditableAnnotation is not valid. Must be `function`.");e.dispatch((0,En.R1)(t))}},function(e,t){const n=()=>e.getState().annotationPresets;Object.defineProperty(t,"annotationPresets",{enumerable:!0,configurable:!1,get:()=>n().toObject()}),Object.defineProperty(t,"currentAnnotationPreset",{enumerable:!0,configurable:!1,get:()=>e.getState().currentItemPreset}),t.setAnnotationPresets=function(t){let o=t;"function"==typeof t&&(o=t.call(null,n().toObject())),AP("object"==typeof o,`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an object.`),Object.values(o).forEach(Tc);const r=(0,i.D5)(o);n().equals(r)||e.dispatch((0,Qt.QA)(r))},t.setCurrentAnnotationPreset=function(t){const n=e.getState();"string"==typeof t&&(0,a.kG)(void 0!==n.annotationPresets.get(t),`There is no annotation preset with the supplied 'annotationPresetID' ${t}`),e.dispatch((0,Qt.Ds)(t))}},function(e,t){const n=()=>[...e.getState().stampAnnotationTemplates];Object.defineProperty(t,"stampAnnotationTemplates",{enumerable:!0,configurable:!1,get:()=>n()}),t.setStampAnnotationTemplates=function(t){let o=t;"function"==typeof o&&(o=o.call(null,n())),UP(Array.isArray(o),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an array.`),o.forEach(tu);const r=n();JSON.stringify(r)!==JSON.stringify(o)&&e.dispatch((0,Qt.fx)([...o]))}},function(e,t){const{eventEmitter:n}=e.getState();let o=!0,r=l();function i(){if(!o)return;const e=l(),t=r;r=e;const i=t.delete("instance"),a=e.delete("instance");i.equals(a)||(t.currentPageIndex!==e.currentPageIndex&&n.emit("viewState.currentPageIndex.change",e.currentPageIndex),t.zoom!==e.zoom&&n.emit("viewState.zoom.change",e.zoom),n.emit("viewState.change",e,t))}n.events.push(...Du),n.events.push(...Cu);const s=e.subscribe(i);function l(){return function(e,t){return new y.Z({currentPageIndex:e.viewportState.currentPageIndex,zoom:e.viewportState.zoomMode===Xs.c.CUSTOM?e.viewportState.zoomLevel:e.viewportState.zoomMode,pagesRotation:e.viewportState.pagesRotation,layoutMode:e.viewportState.layoutMode,scrollMode:e.viewportState.scrollMode,showToolbar:e.showToolbar,enableAnnotationToolbar:e.enableAnnotationToolbar,allowPrinting:e.printingEnabled,allowExport:e.exportEnabled,interactionMode:e.interactionMode,readOnly:e.readOnlyEnabled!==ve.J.NO,showAnnotations:e.showAnnotations,showComments:e.showComments,showAnnotationNotes:e.showAnnotationNotes,sidebarMode:e.sidebarMode,sidebarOptions:e.sidebarOptions,sidebarPlacement:e.sidebarPlacement,spreadSpacing:e.viewportState.spreadSpacing,pageSpacing:e.viewportState.pageSpacing,keepFirstSpreadAsSinglePage:e.viewportState.keepFirstSpreadAsSinglePage,viewportPadding:new j.gx({horizontal:e.viewportState.viewportPadding.x,vertical:e.viewportState.viewportPadding.y}),instance:t||e.instance,formDesignMode:e.formDesignMode,showSignatureValidationStatus:e.showSignatureValidationStatus,previewRedactionMode:e.previewRedactionMode,keepSelectedTool:e.keepSelectedTool,resolvedLayoutMode:(0,Hs.nw)(e.viewportState),sidebarWidth:e.sidebarWidth})}(e.getState(),t)}return Object.defineProperty(t,"viewState",{enumerable:!0,configurable:!1,get:l}),t.setViewState=function(t){let n=t;if("function"==typeof n&&(n=n.call(null,l())),!(n instanceof j.f7)){const e="function"==typeof n?"return value of your update function":"supplied argument";throw new a.p2(`The ${e} is not an instance of PSPDFKit.ViewState.`)}o=!1,n=Au(n,e),function(e,t,n){t.zoom!==n.zoom&&(n.zoom===Xs.c.AUTO?e.dispatch((0,Eu._R)()):n.zoom===Xs.c.FIT_TO_VIEWPORT?e.dispatch((0,Eu.lO)()):n.zoom===Xs.c.FIT_TO_WIDTH?e.dispatch((0,Eu.du)()):"number"==typeof n.zoom&&e.dispatch((0,Eu.Ic)(n.zoom)));if(t.pagesRotation!==n.pagesRotation){const o=(0,Yr.n5)(n.pagesRotation-t.pagesRotation);e.dispatch((0,Eu.U1)(o))}t.layoutMode!==n.layoutMode&&e.dispatch((0,En.YA)(n.layoutMode));t.scrollMode!==n.scrollMode&&e.dispatch((0,En._U)(n.scrollMode));t.showToolbar!==n.showToolbar&&(t.showToolbar?e.dispatch((0,En.iu)()):e.dispatch((0,En.bv)()));t.enableAnnotationToolbar!==n.enableAnnotationToolbar&&(t.enableAnnotationToolbar?e.dispatch((0,En.Wv)()):e.dispatch((0,En.m$)()));t.allowPrinting!==n.allowPrinting&&(n.allowPrinting?e.dispatch((0,En.Ol)()):e.dispatch((0,En.m0)()));t.allowExport!==n.allowExport&&(n.allowExport?e.dispatch((0,En.Rx)()):e.dispatch((0,En.YI)()));t.zoomStep!==n.zoomStep&&(!n.zoomStep||n.zoomStep<1?((0,a.ZK)(`The zoomStep value must be greater than 1. The value you provided was ${n.zoomStep}.The zoomStep value will be set to default ${Je.V4}`),e.dispatch((0,En.Ql)(Je.V4))):e.dispatch((0,En.Ql)(n.zoomStep)));const o=e.getState();t.showSignatureValidationStatus!==n.showSignatureValidationStatus&&((0,a.kG)(o.features.includes(ge.q.DIGITAL_SIGNATURES),bu),e.dispatch((0,En.A7)(n.showSignatureValidationStatus)));(!0===n.formDesignMode||(0,nt.fF)(n.interactionMode))&&((0,a.kG)(o.features.includes(ge.q.FORM_DESIGNER),wu.RB),(0,a.kG)(o.backend&&(0,So.k_)(o.backend),wu.Bl));!0===n.previewRedactionMode&&(0,a.kG)(o.features.includes(ge.q.REDACTIONS),"The API you're trying to use requires a redactions license. Redactions is a component of PSPDFKit for Web and sold separately.");n.interactionMode===x.A.DOCUMENT_EDITOR&&(0,a.kG)(o.features.includes(ge.q.DOCUMENT_EDITING),gu);n.interactionMode===x.A.CONTENT_EDITOR&&(0,a.kG)(o.features.includes(ge.q.CONTENT_EDITING),sc.Aq);t.formDesignMode!==n.formDesignMode&&e.dispatch((0,En.LE)(n.formDesignMode));if(t.interactionMode!==n.interactionMode){if(null!=n.interactionMode){const r=ku(n.interactionMode,o),i=t.interactionMode?ku(t.interactionMode,o):null;(n.interactionMode===x.A.DOCUMENT_EDITOR&&(0,So.Xr)({features:o.features,backendPermissions:o.backendPermissions,documentPermissions:o.documentPermissions,readOnlyEnabled:o.readOnlyEnabled})||n.interactionMode===x.A.CONTENT_EDITOR&&(0,So.qs)({features:o.features,backendPermissions:o.backendPermissions,documentPermissions:o.documentPermissions,readOnlyEnabled:o.readOnlyEnabled})||!n.readOnly||r.allowWhenInReadOnlyMode)&&(0,A.dC)((()=>{i&&e.dispatch(i.onLeaveAction()),e.dispatch(r.onEnterAction())}))}else if(null!=t.interactionMode){const n=ku(t.interactionMode,o);e.dispatch((0,je.fz)()),e.dispatch(n.onLeaveAction())}n.interactionMode===x.A.INK_SIGNATURE&&(0,_.a1)("PSPDFKit.InteractionMode.INK_SIGNATURE was deprecated and will be removed in future version. Please use PSPDFKit.InteractionMode.SIGNATURE instead.")}t.readOnly!==n.readOnly&&(n.readOnly?e.dispatch((0,En.oX)(ve.J.VIA_VIEW_STATE)):e.dispatch((0,En.ek)()));t.showAnnotations!==n.showAnnotations&&(n.showAnnotations?e.dispatch((0,En.cI)()):e.dispatch((0,En.Tu)()));t.showComments!==n.showComments&&((0,a.kG)(o.features.includes(ge.q.COMMENTS),Ml.kx),n.showComments?e.dispatch((0,En.Q8)()):e.dispatch((0,En.u0)()));t.showAnnotationNotes!==n.showAnnotationNotes&&(n.showAnnotationNotes?e.dispatch((0,En.T)()):e.dispatch((0,En.SE)()));const r={[du.f.ANNOTATIONS]:En.ze,[du.f.BOOKMARKS]:En.Hf,[du.f.DOCUMENT_OUTLINE]:En.EJ,[du.f.THUMBNAILS]:En.el,[du.f.CUSTOM]:En.rd};t.sidebarMode!==n.sidebarMode&&(null===n.sidebarMode?e.dispatch((0,En.mu)()):e.dispatch(r[n.sidebarMode]()));t.sidebarPlacement!==n.sidebarPlacement&&e.dispatch((0,En.Ox)(n.sidebarPlacement));t.sidebarOptions!==n.sidebarOptions&&e.dispatch((0,En.vI)(n.sidebarOptions));t.spreadSpacing!==n.spreadSpacing&&e.dispatch((0,En.JN)(n.spreadSpacing));t.pageSpacing!==n.pageSpacing&&e.dispatch((0,En.vY)(n.pageSpacing));t.keepFirstSpreadAsSinglePage!==n.keepFirstSpreadAsSinglePage&&e.dispatch((0,En.EY)(n.keepFirstSpreadAsSinglePage));if(t.viewportPadding.horizontal!==n.viewportPadding.horizontal||t.viewportPadding.vertical!==n.viewportPadding.vertical){const t=new j.E9({x:n.viewportPadding.horizontal,y:n.viewportPadding.vertical});e.dispatch((0,En._P)(t))}t.currentPageIndex!==n.currentPageIndex&&e.dispatch((0,Eu.YA)(n.currentPageIndex));t.previewRedactionMode!==n.previewRedactionMode&&e.dispatch((0,En.P_)(n.previewRedactionMode));n.canScrollWhileDrawing&&!t.canScrollWhileDrawing&&e.dispatch((0,En.xW)());!n.canScrollWhileDrawing&&t.canScrollWhileDrawing&&e.dispatch((0,En.Ft)());n.keepSelectedTool&&e.dispatch((0,En.HT)());!n.keepSelectedTool&&t.keepSelectedTool&&e.dispatch((0,En.Xv)());if(t.sidebarWidth!==n.sidebarWidth){const t=e.getState(),{containerRect:o}=t,r={width:n.sidebarWidth,height:o.height};(0,A.dC)((()=>{e.dispatch((0,Eu.Pt)(n.sidebarWidth)),e.dispatch((0,Eu.dx)(xu(t,r,n.sidebarWidth),!1))})),t.viewportState.viewportRect.set("height",r.height)}}(e,l(),n),o=!0,i()},s},function(e,t){const n=()=>e.getState().toolbarItems;Object.defineProperty(t,"toolbarItems",{enumerable:!0,configurable:!1,get:()=>n().toJS()}),t.setToolbarItems=function(t){let o=t;"function"==typeof o&&(o=o.call(null,n().toJS())),$P(Array.isArray(o),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an array.`);const{backend:r}=e.getState();o=o.map((e=>"ink-signature"===e.type?((0,a.a1)("The 'ink-signature' toolbar item type has been renamed to 'signature'. The 'ink-signature' identifier will be removed on a future release of PSPDFKit for Web."),HP(HP({},e),{},{type:"signature"})):e)).filter((e=>"content-editor"!==e.type||"SERVER"!==(null==r?void 0:r.type)||((0,a.ZK)("The 'content-editor' toolbar item type is not supported in the Server backend: Content Editing is only available in Standalone."),!1))),o.forEach(Nc);const s=(0,i.d0)(o);var l;n().equals(s)||e.dispatch((l=s,{type:te.aWu,toolbarItems:l}))},t.setAnnotationToolbarItems=t=>{(0,a.kG)("function"==typeof t,"The annotationToolbarItemsCallback argument must be a function."),e.dispatch((e=>({type:te.T3g,annotationToolbarItemsCallback:e}))(t))}},function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("annotations.willChange","annotations.change","annotations.willSave","annotations.didSave","annotations.load","annotations.create","annotations.update","annotations.delete","annotations.press","annotations.focus","annotations.blur","annotations.transform","annotations.cut","annotations.copy","annotations.paste","annotations.duplicate");let n=e.getState().annotations;const o=()=>t.emit("annotations.willSave"),r=()=>t.emit("annotations.didSave"),i=e=>t.emit("annotations.load",e),a=e=>t.emit("annotations.create",e),s=e=>t.emit("annotations.update",e),l=e=>t.emit("annotations.delete",e);let c=!1;const u=()=>{if(!c){const{annotationManager:t}=e.getState();t&&(t.eventEmitter.on("willSave",o),t.eventEmitter.on("didSave",r),t.eventEmitter.on("load",i),t.eventEmitter.on("create",a),t.eventEmitter.on("update",s),t.eventEmitter.on("delete",l),c=!0)}},d=e.subscribe((()=>{const o=e.getState().annotations;n!==o&&(n=o,t.emit("annotations.change")),u()}));return u(),()=>{if(c){const{annotationManager:t}=e.getState();TP(t,"AnnotationManager is not present in the state"),t.eventEmitter.off("willSave",o),t.eventEmitter.off("didSave",r),t.eventEmitter.off("load",i),t.eventEmitter.off("create",a),t.eventEmitter.off("update",s),t.eventEmitter.off("delete",l),c=!1}d()}}(e);return t.getAnnotations=async function(t){TP("number"==typeof t,"`pageIndex` must be a number");const{annotationManager:n,totalPages:o}=e.getState();TP(t>-1&&te.pageIndex===t)).toList()},t.createAttachment=async function(t){const{hash:n}=await(0,He.uq)(t),o=new j.Pg({data:t});return e.dispatch((0,vv.O)(n,o)),n},t.getAttachment=async function(t){if(!(0,J.F3)(t))throw new a.p2(`${t} is not a valid attachment.`);const n=e.getState(),o=n.attachments.get(t);if(o){if(o.data)return o.data;throw new a.p2(`Attachment ${t} not found.`)}return TP(n.backend),n.backend.getAttachment(t)},t.calculateFittingTextAnnotationBoundingBox=function(t){TP(t instanceof s.gd,"The annotation in `calculateFittingTextAnnotationBoundingBox(annotation)` must be of type `PSPDFKit.Annotations.TextAnnotation`"),TP("number"==typeof t.pageIndex,"`pageIndex` must be a number");const{viewportState:n}=e.getState(),o=n.pageSizes.get(t.pageIndex);return TP(o,"`pageIndex` is not a valid page index in the open document"),(0,vt.Zv)(t,o)},t.getEmbeddedFiles=async function(){const{backend:t}=e.getState();return TP(t),t.getEmbeddedFiles()},t.setOnAnnotationResizeStart=function(t){e.dispatch((0,Qt.dt)(t))},n},function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("bookmarks.change","bookmarks.willSave","bookmarks.didSave","bookmarks.load","bookmarks.create","bookmarks.update","bookmarks.delete");const n=()=>t.emit("bookmarks.change"),o=()=>t.emit("bookmarks.willSave"),r=()=>t.emit("bookmarks.didSave"),i=e=>t.emit("bookmarks.load",e),a=e=>t.emit("bookmarks.create",e),s=e=>t.emit("bookmarks.update",e),l=e=>t.emit("bookmarks.delete",e);let c=!1;const u=()=>{if(!c){const{bookmarkManager:t}=e.getState();t&&(t.eventEmitter.on("change",n),t.eventEmitter.on("willSave",o),t.eventEmitter.on("didSave",r),t.eventEmitter.on("load",i),t.eventEmitter.on("create",a),t.eventEmitter.on("update",s),t.eventEmitter.on("delete",l),c=!0)}},d=e.subscribe(u);return u(),()=>{if(c){const{bookmarkManager:t}=e.getState();t.eventEmitter.off("change",n),t.eventEmitter.off("willSave",o),t.eventEmitter.off("didSave",r),t.eventEmitter.off("load",i),t.eventEmitter.off("create",a),t.eventEmitter.off("update",s),t.eventEmitter.off("delete",l),c=!1}d()}}(e);return t.getBookmarks=async function(){var t;const n=await(null===(t=e.getState().bookmarkManager)||void 0===t?void 0:t.getBookmarks());return IP(n),n.toList()},n},function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("formFieldValues.update","formFieldValues.willSave","formFieldValues.didSave","forms.willSubmit","forms.didSubmit","formFields.change","formFields.willSave","formFields.didSave","formFields.load","formFields.create","formFields.update","formFields.delete");const n=e.getState();let{formFields:o}=n;const r=()=>t.emit("formFieldValues.willSave"),i=()=>t.emit("formFieldValues.didSave"),a=e=>t.emit("formFieldValues.update",e),s=e=>t.emit("forms.willSubmit",e),l=e=>t.emit("forms.didSubmit",e),c=()=>t.emit("formFields.willSave"),u=()=>t.emit("formFields.didSave"),d=e=>t.emit("formFields.load",e),p=e=>t.emit("formFields.create",e),f=e=>t.emit("formFields.update",e),h=e=>t.emit("formFields.delete",e);let m=!1,g=!1;const v=()=>{const t=e.getState();if(!m){const{formFieldValueManager:e}=t;e&&(e.eventEmitter.on("willSave",r),e.eventEmitter.on("didSave",i),e.eventEmitter.on("update",a),e.eventEmitter.on("willSubmit",s),e.eventEmitter.on("didSubmit",l),m=!0)}if(!g){const{formFieldManager:e}=t;e&&(0,So.ix)(t)&&(e.eventEmitter.on("willSave",c),e.eventEmitter.on("didSave",u),e.eventEmitter.on("load",d),e.eventEmitter.on("create",p),e.eventEmitter.on("update",f),e.eventEmitter.on("delete",h),g=!0)}},y=e.subscribe((()=>{const n=e.getState();if((0,So.ix)(n)){const e=n.formFields;o!==e&&(o=e,t.emit("formFields.change"))}v()}));return v(),()=>{if(m){const{formFieldValueManager:t}=e.getState();t.eventEmitter.off("willSave",r),t.eventEmitter.off("didSave",i),t.eventEmitter.off("update",a),t.eventEmitter.off("willSubmit",s),t.eventEmitter.off("didSubmit",l),m=!1}if(g){const{formFieldManager:t}=e.getState();t.eventEmitter.off("willSave",c),t.eventEmitter.off("didSave",u),t.eventEmitter.off("load",d),t.eventEmitter.off("create",p),t.eventEmitter.off("update",f),t.eventEmitter.off("delete",h),g=!1}y()}}(e);return t.getFormFields=async function(){const{features:t,formFieldManager:n,formsEnabled:o}=e.getState();_P(t.includes(ge.q.FORMS),wu.DR),_P(o,wu.BZ),n instanceof MP.c&&await n.loadFormFields();const{formFields:r}=e.getState();return r.valueSeq().toList()},t.getFormFieldValues=function(){const{formFields:t,features:n,formsEnabled:o}=e.getState();return _P(n.includes(ge.q.FORMS),wu.DR),_P(o,wu.BZ),(0,nt.Qg)(t).reduce(((e,t)=>(e[t.name]=t.value instanceof i.aV?t.value.toJS():t.value,e)),{})},t.setFormFieldValues=async function(t){const{formFieldManager:n,features:o,formsEnabled:r}=e.getState();_P(o.includes(ge.q.FORMS),wu.DR),_P(r,wu.BZ),n instanceof MP.c&&await n.loadFormFields();const{formFields:a}=e.getState(),s=Object.keys(t).map((e=>{const n=a.get(e);_P(a.has(e),`Tried to set the form field value for form field \`${e}\` which does not exist.`);const o=Array.isArray(t[e])?(0,i.aV)(t[e]):t[e];return n&&(0,wu._1)(n,o),{name:e,value:o,optionIndexes:void 0}}));return new Promise((t=>{e.dispatch((0,Mo.xh)(s,t))})).then((()=>{})).catch((e=>{throw e}))},t.setOnWidgetAnnotationCreationStart=function(t){const{features:n}=e.getState();_P("function"==typeof t,"The callback must be a function."),_P(n.includes(ge.q.FORMS),wu.DR),_P(n.includes(ge.q.FORM_DESIGNER),wu.RB),e.dispatch((0,Mo.r$)(t))},n},function(e,t){t.getTextSelection=function(){var t,n,o,r;const i=e.getState(),s=i.currentTextSelection;return s?new GP({startTextLineId:s.startTextLineId,endTextLineId:s.endTextLineId,startPageIndex:s.startPageIndex,endPageIndex:s.endPageIndex,startNode:null===(t=s.textRange)||void 0===t?void 0:t.startNode,startOffset:null===(n=s.textRange)||void 0===n?void 0:n.startOffset,endNode:null===(o=s.textRange)||void 0===o?void 0:o.endNode,endOffset:null===(r=s.textRange)||void 0===r?void 0:r.endOffset,getText:async()=>(0,ga.Q)(i,s),getSelectedTextLines:async()=>((0,a.kG)(s.textRange),(0,ga.ZJ)(i,s.textRange).valueSeq().toList().flatten(!0)),getBoundingClientRect:async()=>((0,a.kG)(s.textRange),(0,ga.U2)(i,s.textRange)),getSelectedRectsPerPage:async()=>(0,VP.rf)(i)}):null};let n=e.getState();const{eventEmitter:o}=n;return o.events.push(...WP),e.subscribe((()=>{const r=e.getState();n.currentTextSelection!==r.currentTextSelection&&o.emit("textSelection.change",t.getTextSelection()),n=r}))},function(e,t){function n(){const{selectedAnnotationIds:t,annotations:n}=e.getState();if(t.size>=1){const e=t.first();(0,a.kG)(e);return n.get(e)}return null}function o(t,n){if(!t)return void e.dispatch((0,je.fz)());const o=i.aV.isList(t)?t:(0,i.aV)([t]),{annotations:r}=e.getState(),l=e.getState(),c=o.map((t=>{const n=t instanceof s.q6?t.id:t;(0,a.kG)("string"==typeof n,"annotationId must be a string"),(0,a.kG)(r.has(n),"Unknown annotationId. Either the annotation was not yet created or is not yet loaded from the annotation provider.");const o=r.get(n);return(0,a.kG)(o&&(0,J.Fp)(o),"Annotations with the `noView` or `hidden` flag set cannot be selected."),o instanceof s.x_&&!l.formDesignMode?e.dispatch((0,Qt.vy)(n)):((0,a.kG)(!(o instanceof s.x_)||l.features.includes(ge.q.FORM_DESIGNER),`Cannot select PSPDFKit.Annotations.WidgetAnnotation: ${wu.RB}`),(0,a.kG)(!(o instanceof s.x_)||(0,So.k_)(l.backend),`Cannot select PSPDFKit.Annotations.WidgetAnnotation: ${wu.Bl}`)),n}));if(1===c.size){const t=r.get(c.first());e.dispatch((0,je.J4)(c.toSet(),t instanceof s.gd||t instanceof s.Qi?n:Q.o.SELECTED))}else e.dispatch((0,je.J4)(c.toSet(),Q.o.SELECTED))}t.getSelectedAnnotation=function(){(0,a.XV)("getSelectedAnnotation","getSelectedAnnotations",!1);for(var e=arguments.length,t=new Array(e),o=0;o=1?(0,i.aV)(t.map((e=>{const t=n.get(e);return(0,a.kG)(t),t}))):null},t.setSelectedAnnotation=function(e){(0,a.XV)("setSelectedAnnotation","setSelectedAnnotations",!1),o(e,Q.o.SELECTED)},t.setSelectedAnnotations=function(e){o(e,Q.o.SELECTED)},t.groupAnnotations=function(t){if(!t||0===(null==t?void 0:t.size))return;const n=null==t?void 0:t.map((e=>e instanceof s.q6?e.id:e));e.dispatch((0,En._R)(n.toSet()))},t.getAnnotationsGroups=function(){const{annotationsGroups:t}=e.getState();return t.size>=1?t:null},t.deleteAnnotationsGroup=function(t){t&&e.dispatch((0,En.UZ)(t))},t.setEditingAnnotation=function(t,n){e.dispatch((0,je.fz)()),!0===n&&e.dispatch((0,je.Y1)()),o(t,Q.o.EDITING)};let r=n();const{eventEmitter:l}=e.getState();return l.events.push(...OP),e.subscribe((()=>{const e=n();(r&&r.id)!==(e&&e.id)?(r=e,l.emit("annotationSelection.change",e)):r=e}))},function(e,t){t.setCustomOverlayItem=function(t){FP(t instanceof f.Z,"invalid item. Expected an instance of PSPDFKit.CustomOverlayItem"),(0,f.G)(t),e.dispatch((e=>({type:te.jJ7,item:e}))(t))},t.removeCustomOverlayItem=function(t){FP("string"==typeof t,"`id` must be a string"),e.dispatch((e=>({type:te.G8_,id:e}))(t))}},function(e,t){t.setLocale=async function(t){const n=(0,wc.z5)(t);await(0,wc.sS)(n),e.dispatch((0,En.i_)(n))},Object.defineProperty(t,"locale",{enumerable:!0,configurable:!1,get:()=>e.getState().locale})},function(e,t){const n=()=>e.getState().searchState;t.search=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{backend:o,totalPages:r,searchState:{minSearchQueryLength:i}}=e.getState(),a=null!=n.startPageIndex?n.startPageIndex:0,s=null!=n.endPageIndex?n.endPageIndex:r-1,l=n.searchType||zP.S.TEXT,c=n.searchInAnnotations||!1,u="boolean"==typeof n.caseSensitive?n.caseSensitive:l!==zP.S.TEXT;return(0,Ne.k)(Object.values(zP.S).includes(l),"searchType is not valid."),l===zP.S.PRESET&&(0,Ne.k)(Object.values(KP).includes(t),"search query is not a valid search pattern."),(0,Ne.k)("number"==typeof a&&"number"==typeof s,"startPageIndex/endPageIndex must be numbers"),(0,Ne.k)("boolean"==typeof c,"searchInAnnotations should be boolean"),(0,Ne.k)(void 0===n.caseSensitive||"boolean"==typeof n.caseSensitive,"caseSensitive should be boolean"),(0,Ne.k)(s>=a,"endPageIndex must be greater than or equal to startPageIndex"),(0,Ne.k)(t.length>=i,`"${t}" - search query length (${t.length}) shorter than the minimum (${i})`),(0,Ne.k)(o),await o.search(t,a,s-a+1,u,c,l)},Object.defineProperty(t,"searchState",{enumerable:!0,configurable:!1,get:n}),t.setSearchState=function(t){let o=t;if("function"==typeof o&&(o=o.call(null,n())),!(o instanceof rl.Z)){const e="function"==typeof o?"return value of your update function":"supplied argument";throw new a.p2(`The ${e} is not an instance of PSPDFKit.SearchState.`)}const r=n();o.minSearchQueryLength!==r.minSearchQueryLength&&((0,a.ZK)(`Trying to set readonly property SearchState.minSearchQueryLength from ${r.minSearchQueryLength} to ${o.minSearchQueryLength} failed. For more details please see https://pspdfkit.com/api/web/PSPDFKit.SearchState.html#minSearchQueryLength`),o=o.set("minSearchQueryLength",r.minSearchQueryLength)),function(e){if("boolean"!=typeof e.isFocused)throw new a.p2("`isFocused` must be of type boolean.");if("boolean"!=typeof e.isLoading)throw new a.p2("`isLoading` must be of type boolean.");if("string"!=typeof e.term)throw new a.p2("`term` must be of type string.");if("number"!=typeof e.focusedResultIndex)throw new a.p2("`focusedResultIndex` must be of type number.");if(!(e.results instanceof i.aV))throw new a.p2("`results` must be of type PSPDFKit.Immutable.List.")}(o),function(e,t,n){const{dispatch:o}=e;t!==n&&o((0,Dc.j8)(n))}(e,n(),o)},t.startUISearch=function(t){const{dispatch:n,getState:o}=e,{searchProvider:r,eventEmitter:i,searchState:{minSearchQueryLength:a}}=o();let s=!1;i.emit("search.termChange",{term:t,preventDefault:()=>{s=!0}}),s||((0,Ne.k)(t.length>=a,`"${t}" - search query length (${t.length}) shorter than the minimum (${a})`),n((0,Dc.Xe)()),n((0,Dc._8)(t)),null==r||r.searchTerm(t))};let o=e.getState();const{eventEmitter:r}=o;return r.events.push(...ZP),e.subscribe((()=>{const t=e.getState();o.searchState.equals(t.searchState)||r.emit("search.stateChange",t.searchState),o=t}))},function(e,t){t.renderPageAsArrayBuffer=async function(t,n){const{element:o,width:r,height:i}=await jP(t,n,e);let a;if(o instanceof HTMLImageElement){const e=document.createElement("canvas");e.width=r,e.height=i,a=e.getContext("2d"),await(0,jr.sR)(o),a.drawImage(o,0,0,r,i)}else o instanceof HTMLCanvasElement?a=o.getContext("2d"):BP(!1,"There was an error while rendering the page. Please try again.");return a.getImageData(0,0,r,i).data.buffer},t.renderPageAsImageURL=async function(t,n){const{element:o}=await jP(t,n,e);return o instanceof HTMLImageElement?o.src:o instanceof HTMLCanvasElement?URL.createObjectURL(await(0,jr._c)(o)):void BP(!1,"There was an error while generating the image URL. Please try again.")}},function(e,t){async function n(){let{storedSignatures:t}=e.getState().signatureState;if(!t){const n=jS();await n(e.dispatch,e.getState),t=e.getState().signatureState.storedSignatures}return t||(0,i.aV)()}async function o(t){let n=e.getState().signatureState.storedSignatures;const o=n instanceof i.aV;n||(n=await e.getState().signatureState.populateStoredSignatures());let r=t;"function"==typeof r&&(r=r.call(null,n)),RP(r instanceof i.aV&&r.every((e=>e instanceof j.Zc||e instanceof j.sK)),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not a PSPDFKit.Immutable.List of PSPDFKit.Annotations.InkAnnotation or PSPDFKit.Annotations.ImageAnnotation`),o&&n.equals(r)||(e.dispatch(BS(r)),e.getState().eventEmitter.emit("inkSignatures.update",r),e.getState().eventEmitter.emit("inkSignatures.change"),e.getState().eventEmitter.emit("storedSignatures.update",r),e.getState().eventEmitter.emit("storedSignatures.change"))}e.getState().eventEmitter.events.push(...NP,...LP),t.getInkSignatures=async function(){return(0,_.XV)("instance.getInkSignatures","instance.getStoredSignatures"),n()},t.getStoredSignatures=n,t.setInkSignatures=async function(e){return(0,_.XV)("instance.setInkSignatures","instance.setStoredSignatures"),o(e)},t.setStoredSignatures=o},function(e,t){e.getState().eventEmitter.events.push(...vu),t.applyOperations=function(t){const{features:n}=e.getState();return(0,a.kG)(n.includes(ge.q.DOCUMENT_EDITING),gu),hu(t),new Promise(((n,o)=>{e.dispatch((0,mu.b_)(t,n,o))}))},t.exportPDFWithOperations=async function(t){const{features:n,backend:o}=e.getState();return(0,a.kG)(n.includes(ge.q.DOCUMENT_EDITING),gu),hu(t),(0,a.kG)(o),o.exportPDFWithOperations(t.map(vc.kg))}},function(e,t){t.setIsEditableComment=function(t){(0,a.kG)("function"==typeof t,"The type for isEditableComment is not valid. Must be `function`."),e.dispatch((0,En.Gh)(t))}},function(e,t){t.getSignaturesInfo=function(){const{features:t,backend:n}=e.getState();return(0,a.kG)(t.includes(ge.q.DIGITAL_SIGNATURES),bu),(0,a.kG)(n),n.getSignaturesInfo().then((t=>(e.dispatch((0,yu.Y)(t)),t)))},t.signDocument=function(t,n){const{features:o,backend:r}=e.getState();var i;((0,a.kG)(o.includes(ge.q.DIGITAL_SIGNATURES),bu),t&&(0,Mr.w2)(t,r),"STANDALONE"===(null==r?void 0:r.type))?null!=t&&t.signingData?(0,a.kG)(void 0===n||void 0===(null==t||null===(i=t.signingData)||void 0===i?void 0:i.privateKey),"On a Standalone deployment, when `signaturePreparationData.signingData.privateKey` is set, `twoStepSignatureCallbackOrSigningServiceData` should not be provided."):(0,a.kG)("function"==typeof n,"On a Standalone deployment, when `signaturePreparationData.signingData` is not provided or does not include a `privateKey`, `twoStepSignatureCallbackOrSigningServiceData` must be a function."):"SERVER"===(null==r?void 0:r.type)&&(0,a.kG)(!n||"object"==typeof n,"On a Server deployment, `twoStepSignatureCallbackOrSigningServiceData` must be a `PSPDFKit.SigningServiceData` object if specified.");return e.dispatch((0,En.d9)()),new Promise(((o,r)=>{e.dispatch((0,yu.e)(t,n,(()=>{e.dispatch((0,En.t6)()),o()}),(t=>{e.dispatch((0,En.t6)()),r(t)})))}))}},function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("comments.change","comments.willSave","comments.didSave","comments.load","comments.create","comments.update","comments.delete","comments.mention");const n=()=>t.emit("comments.change"),o=()=>t.emit("comments.willSave"),r=()=>t.emit("comments.didSave"),i=e=>t.emit("comments.load",e),a=e=>t.emit("comments.create",e),s=e=>t.emit("comments.update",e),l=e=>t.emit("comments.delete",e);let c=!1;const u=()=>{if(!c){const{commentManager:t}=e.getState();t&&(t.eventEmitter.on("change",n),t.eventEmitter.on("willSave",o),t.eventEmitter.on("didSave",r),t.eventEmitter.on("load",i),t.eventEmitter.on("create",a),t.eventEmitter.on("update",s),t.eventEmitter.on("delete",l),c=!0)}},d=e.subscribe(u);return u(),()=>{if(c){const{commentManager:t}=e.getState();t&&(t.eventEmitter.off("change",n),t.eventEmitter.off("willSave",o),t.eventEmitter.off("didSave",r),t.eventEmitter.off("load",i),t.eventEmitter.off("create",a),t.eventEmitter.off("update",s),t.eventEmitter.off("delete",l)),c=!1}d()}}(e);return t.getComments=async function(){const{comments:t,backend:n}=e.getState(),o=t.filter((e=>!(0,Ml.kT)(e))).toList();return o.size||null==n||!n.isUsingInstantProvider()?o:new Promise((t=>{const n=setInterval((()=>{const{hasFetchedInitialRecordsFromInstant:o,comments:r}=e.getState();o&&(clearInterval(n),t(r.filter((e=>!(0,Ml.kT)(e))).toList()))}),500)}))},t.setMentionableUsers=function(t){e.dispatch((0,bi.v7)(t))},t.setMaxMentionSuggestions=function(t){e.dispatch((0,bi.aZ)(t))},t.setOnCommentCreationStart=function(t){(0,a.kG)("function"==typeof t,"The callback must be a function."),e.dispatch((0,bi.Rf)(t))},n},YP.Z,function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("document.saveStateChange");const n=e=>{t.emit("document.saveStateChange",e)};let o=!1;const r=()=>{if(!o){const{changeManager:t}=e.getState();t&&(t.eventEmitter.on("saveStateChange",n),o=!0)}},i=e.subscribe((()=>{r()}));return r(),()=>{if(o){const{changeManager:t}=e.getState();(0,a.kG)(t),t.eventEmitter.off("saveStateChange",n),o=!1}i()}}(e);return t.save=async function(){const{changeManager:t}=e.getState();return(0,a.kG)(t),t.save(!0)},t.hasUnsavedChanges=function(){const{changeManager:t}=e.getState();return(0,a.kG)(t),t.hasUnsavedChanges()},t.syncChanges=async function(){const{backend:n}=e.getState();if((0,a.kG)(n),!n.isUsingInstantProvider())throw new a.p2("You need PSPDFKit Instant to use this method.");return t.save()},t.create=async function(t){const{changeManager:n,backend:o}=e.getState();return(0,a.kG)(n&&o),JP(o,(()=>n.create(XP(t))))},t.update=async function(t){const{changeManager:n,backend:o}=e.getState();return(0,a.kG)(n&&o),JP(o,(()=>n.update(XP(t))))},t.delete=async function(t){const{changeManager:n,backend:o}=e.getState();return(0,a.kG)(n&&o),JP(o,(()=>n.delete(XP(t))))},t.ensureChangesSaved=async function(t){const{changeManager:n,backend:o}=e.getState();return(0,a.kG)(n&&o),"STANDALONE"===(null==o?void 0:o.type)&&await(null==o?void 0:o.setFormJSONUpdateBatchMode(!1)),n.ensureChangesSaved(XP(t))},n},YP.Z,function(e,t){t.setGroup=function(t){const{backend:n}=e.getState();null!=n&&n.isCollaborationPermissionsEnabled()?e.dispatch((0,En.YK)(t)):(0,a.ZK)("`instance.setGroup` is no-op if Collaboration Permissions is not enabled.")},t.resetGroup=function(){const{backend:t}=e.getState();null!=t&&t.isCollaborationPermissionsEnabled()?e.dispatch((0,En.YK)(t.getDefaultGroup())):(0,a.ZK)("`instance.setGroup` is no-op if Collaboration Permissions is not enabled.")}},function(e,t){const n=()=>e.getState().documentEditorFooterItems,o=()=>e.getState().documentEditorToolbarItems;Object.defineProperty(t,"documentEditorFooterItems",{enumerable:!0,configurable:!1,get:()=>n().toJS()}),Object.defineProperty(t,"documentEditorToolbarItems",{enumerable:!0,configurable:!1,get:()=>o().toJS()}),t.setDocumentEditorFooterItems=function(t){const{features:o}=e.getState();(0,Ne.k)(o.includes(ge.q.DOCUMENT_EDITING),gu);let r=t;"function"==typeof r&&(r=r(n().toJS())),ex(Array.isArray(r),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an array.`),r.forEach(Kc);const a=(0,i.d0)(r);var s;n().equals(a)||e.dispatch((s=a,{type:te.Kpf,documentEditorFooterItems:s}))},t.setDocumentEditorToolbarItems=function(t){const{features:n}=e.getState();(0,Ne.k)(n.includes(ge.q.DOCUMENT_EDITING),gu);let r=t;"function"==typeof r&&(r=r(o().toJS())),ex(Array.isArray(r),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an array.`),r.forEach(Hc);const a=(0,i.d0)(r);var s;o().equals(a)||e.dispatch((s=a,{type:te.wPI,documentEditorToolbarItems:s}))}},function(e,t){function n(){const{isHistoryEnabled:t,undoActions:n}=e.getState();return t&&n.size>0}function o(){const{isHistoryEnabled:t,redoActions:n}=e.getState();return t&&n.size>0}e.getState().eventEmitter.events.push(...QP),t.history={},t.history.undo=async function(){return!!n()&&(e.dispatch((0,gv.Yw)()),!0)},t.history.redo=async function(){return!!o()&&(e.dispatch((0,gv.KX)()),!0)},t.history.canUndo=function(){return n()},t.history.canRedo=function(){return o()},t.history.clear=function(){e.dispatch((0,gv.QQ)())},t.history.enable=function(){e.dispatch((0,gv.z9)())},t.history.disable=function(){e.dispatch((0,gv.ou)())}},function(e,t){t.parseXFDF=async t=>{const{backend:n}=e.getState();return(0,a.kG)(n,"backend is null."),(0,a.kG)("STANDALONE"===n.type,"`instance.parseXFDF` only works in standalone mode."),n.parseXFDF(t)}},function(e,t){e.getState().eventEmitter.events.push(...tx),t.setDocumentComparisonMode=async function(t){const{features:n,backend:o,viewportState:{documentComparisonMode:r}}=e.getState();if((0,a.kG)(n.includes(ge.q.DOCUMENT_COMPARISON),XS.nN),(0,a.kG)("STANDALONE"===(null==o?void 0:o.type),XS.bZ),function(e){if("object"!=typeof e)throw new a.p2("`PSPDFKit.DocumentComparisonConfiguration` must be a `PSPDFKit.DocumentComparisonConfiguration` plain object, or `null`.");if(null===e)return;if("boolean"!=typeof e.autoCompare)throw new a.p2("`PSPDFKit.DocumentComparisonConfiguration.autoCompare` must be a boolean value.");if("object"!=typeof e.documentA||null===e.documentA)throw new a.p2("`PSPDFKit.DocumentComparisonConfiguration.documentA` must be a plain object.");if("object"!=typeof e.documentB||null===e.documentB)throw new a.p2("`PSPDFKit.DocumentComparisonConfiguration.documentB` must be a plain object.");if(!("string"==typeof e.documentA.source||e.documentA.source instanceof ArrayBuffer||e.documentA.source instanceof Promise))throw new a.p2("`PSPDFKit.DocumentComparisonConfiguration.documentA#source` must be a string, an ArrayBuffer or a Promise object resolving to a string or an ArrayBuffer.");if(!("string"==typeof e.documentB.source||e.documentB.source instanceof ArrayBuffer||e.documentB.source instanceof Promise))throw new a.p2("`PSPDFKit.DocumentComparisonConfiguration.documentB#source` must be a string, an ArrayBuffer or a Promise object resolving to a string or an ArrayBuffer.");if(void 0!==e.documentA.pageIndex&&"number"!=typeof e.documentA.pageIndex)throw new a.p2("If provided, `PSPDFKit.DocumentComparisonConfiguration.documentA#pageIndex` must be a number.");if(void 0!==e.documentB.pageIndex&&"number"!=typeof e.documentB.pageIndex)throw new a.p2("If provided, `PSPDFKit.DocumentComparisonConfiguration.documentB#pageIndex` must be a number.");if(void 0!==e.blendMode&&!Object.values(lp).includes(e.blendMode))throw new a.p2("If provided, `PSPDFKit.DocumentComparisonConfiguration.blendMode` must be a `PSPDFKit.BlendMode`.");if(void 0!==e.strokeColors&&("object"!=typeof e.strokeColors||null===e.strokeColors))throw new a.p2("If provided, `PSPDFKit.DocumentComparisonConfiguration.strokeColors` must be a plain object.");if("object"==typeof e.strokeColors){if(void 0!==e.strokeColors.documentA&&!(e.strokeColors.documentA instanceof j.Il))throw new a.p2("If provided, `PSPDFKit.DocumentComparisonConfiguration.strokeColors#documentA` must be a `PSPDFKit.Color` value.");if(void 0!==e.strokeColors.documentB&&!(e.strokeColors.documentB instanceof j.Il))throw new a.p2("If provided, `PSPDFKit.DocumentComparisonConfiguration.strokeColors#documentB` must be a `PSPDFKit.Color` value.");e.strokeColors.documentA&&e.strokeColors.documentB&&e.strokeColors.documentA.equals(e.strokeColors.documentB)&&(0,a.ZK)("The values provided for `PSPDFKit.DocumentComparisonConfiguration.strokeColors#documentA` and `PSPDFKit.DocumentComparisonConfiguration.strokeColors#documentB` are identical.")}}(t),t)e.dispatch((0,En.cz)(t));else if(r){const{completion:{end:{promise:t}}}=r;return e.dispatch((0,En.cz)(null)),t}}}],lx="You need PSPDFKit Instant to use this method.",cx="You need to enable clients presence in your configuration (`instant: { clientsPresenceEnabled: true }`) to use this method.";class ux{constructor(e){let{store:t,backend:n,eventEmitter:o}=e;o.events.push(...ax);let r=!1;const s=sx.map((e=>e(t,this)));let l=(0,i.D5)();t.dispatch((0,En.lW)((e=>{r||(l=e.map((e=>(0,m.B)(e))),o.emit("instant.connectedClients.change",l))}))),Object.defineProperty(this,"totalPageCount",{enumerable:!0,configurable:!1,get:()=>t.getState().totalPages}),this.pageInfoForIndex=function(e){const n=t.getState().pages.get(e);return n?(0,g.J)(n):null},this.textLinesForPageIndex=async function(e){const{promise:t}=n.textForPageIndex(e);return t},this.toggleClipboardActions=function(e){ix("boolean"==typeof e,"`toggleClipboardActions` expects a boolean as an argument"),t.dispatch((0,En.UG)(e))},this.setMeasurementSnapping=function(e){ix("boolean"==typeof e,"`setMeasurementSnapping` expects a boolean as an argument"),t.dispatch((0,En.Gc)(e))},this.setMeasurementPrecision=function(e){ix("string"==typeof e,"`setMeasurementPrecision` expects a string as an argument"),t.dispatch((0,En.M4)(e))},this.setMeasurementScale=function(e){ix(e instanceof As.Z,"`setMeasurementScale` expects an instance of `MeasurementScale` as an argument"),t.dispatch((0,En._b)(e))},this.setMeasurementValueConfiguration=e=>{ix("function"==typeof e,"The `measurementValueConfigurationCallback` argument must be a function."),t.dispatch((0,En.QL)(e))},this.getMarkupAnnotationText=async function(e){return ix(e instanceof _g.Z,"annotation must be a PSPDFKit.Annotations.MarkupAnnotation"),n.getTextFromRects(e.pageIndex,e.rects)},this.getTextFromRects=async function(e,t){return ix("number"==typeof e,"pageIndex must be a number"),ix(t instanceof i.aV&&t.every((e=>e instanceof B.UL)),"rects must be a PSPDFKit.Immutable.List of PSPDFKit.Geometry.Rect"),n.getTextFromRects(e,t)},Object.defineProperty(this,"currentZoomLevel",{enumerable:!0,configurable:!1,get:()=>t.getState().viewportState.zoomLevel}),Object.defineProperty(this,"maximumZoomLevel",{enumerable:!0,configurable:!1,get(){const{viewportState:e}=t.getState();return(0,Ys.Sm)(e)}}),Object.defineProperty(this,"minimumZoomLevel",{enumerable:!0,configurable:!1,get(){const{viewportState:e}=t.getState();return(0,Ys.Yo)(e)}}),Object.defineProperty(this,"zoomStep",{enumerable:!0,configurable:!1,get(){const{viewportState:e}=t.getState();return e.zoomStep}}),Object.defineProperty(this,"connectedClients",{enumerable:!0,configurable:!1,get:()=>n.isUsingInstantProvider()?n.hasClientsPresence()?l:((0,a.ZK)(cx),(0,i.D5)()):((0,a.ZK)(lx),(0,i.D5)())}),this.addEventListener=function(e,t){ix("instant.connectedClients.change"!==e||n.isUsingInstantProvider(),lx),ix("instant.connectedClients.change"!==e||n.hasClientsPresence(),cx),ix(!e.startsWith("comments.")||(0,So.xr)(n),lx);const r=dx(e);try{o.on(r,t)}catch(e){throw new a.p2(e)}},this.removeEventListener=function(e,t){ix("instant.connectedClients.change"!==e||n.isUsingInstantProvider(),lx),ix("instant.connectedClients.change"!==e||n.hasClientsPresence(),cx);const r=dx(e);try{o.off(r,t)}catch(e){throw new a.p2(e)}},this.jumpToRect=function(e,n){const{totalPages:o}=t.getState();ix(e>=0&&e=0&&e=0&&n=0&&n=0&&n=0&&n0&&void 0!==arguments[0]?arguments[0]:{};return n.exportPDF(e)},this.exportXFDF=async function(){return n.exportXFDF()},this.exportInstantJSON=async function(e){return n.exportInstantJSON(e)},this._destroy=function(){s.filter(Boolean).forEach((e=>{null==e||e()})),r=!0},this.print=function(e){const n=t.getState(),{isPrinting:o}=n,r=(0,So.VT)(n);e&&"object"!=typeof e&&(0,a.ZK)("PSPDFKit.Instance.print: options must be an object. If you want to pass the `printMode`, use `{ mode: PSPDFKit.PrintMode.DOM }` instead.");const i="object"==typeof e?e.mode:e;if(!r)throw new a.p2("Tried to start a print job while printing is disabled.");if(o)throw new a.p2("Tried to start a print job while another one was already being processed.\nUse PSPDFKit.Instance#abortPrint to terminate the current print job.\n ");if(i&&!Object.prototype.hasOwnProperty.call(Pc.X,i))throw new a.p2("The supplied printMode is not valid.\nValid `printMode`s are: PSPDFKit.PrintMode.DOM, PSPDFKit.PrintMode.EXPORT_PDF");t.dispatch(mv.S0({mode:i,excludeAnnotations:"object"==typeof e&&e.excludeAnnotations}))},this.setAnnotationCreatorName=function(e){const{annotationCreatorNameReadOnly:n}=t.getState();if(n)throw new a.p2("When the annotation creator name is defined on the JWT it can't be overriden.");t.dispatch((0,En.X8)(e))},this.setCustomRenderers=function(e){t.dispatch((0,En.jM)(e))},this.setCustomUIConfiguration=function(e){const{customUIStore:n}=t.getState();if((null==n?void 0:n.getState())===e)return;let o,r;o="function"==typeof e?e((null==n?void 0:n.getState())||null):e,ox(o),n||(r=new M.Z(o),t.dispatch((0,En.W)(r))),(n||r).setState(o)},this.setInlineTextSelectionToolbarItems=e=>{ix("function"==typeof e,"The inlineTextSelectionToolbarItemsCallback argument must be a function."),t.dispatch((0,je.tu)(e))},this.abortPrint=function(){const e=t.getState(),{isPrinting:n}=e;if(!(0,So.VT)(e))throw new a.p2("Tried to terminate a print job while printing is disabled.");if(!n)throw new a.p2("No print job to abort found.");t.dispatch(mv.xF())},this.getDocumentOutline=async function(){const e=t.getState();if(e.documentOutlineState.elements)return e.documentOutlineState.elements;ix(e.backend);const n=await e.backend.getDocumentOutline();return t.dispatch((0,ev.o)(n)),n},this.getPageGlyphs=async function(e){const n=t.getState();return ix(n.backend),ix("number"==typeof e&&Number.isInteger(e)&&e>=0&&et.getState().frameWindow}),Object.defineProperty(this,"contentDocument",{enumerable:!0,configurable:!1,get(){var e;return null===(e=t.getState().frameWindow)||void 0===e?void 0:e.document}}),Object.defineProperty(this,"licenseFeatures",{enumerable:!0,configurable:!1,get:()=>t.getState().features}),"production"!==(0,P.zj)()&&(this._store=t,this._eventEmitter=o)}}function dx(e){switch(e){case"annotations.onPress":case"textLine.onPress":case"page.onPress":{const t=e.replace(".onPress",".press");return(0,a.a1)(`The event ${e} was renamed and will be removed in a a future version. Please use ${t} instead.`),t}default:return e}}var px=n(57742);const fx=(0,A.$j)((function(e){return{locale:e.locale,messages:px.ZP[e.locale]}}))(Re.Pj),hx=["Annotation","CommentAvatar"];const mx={LIGHT:"LIGHT",DARK:"DARK",AUTO:"AUTO"};var gx=n(53678),vx=n(151);const yx=new p.Z({r:70,g:54,b:227}),bx={color:p.Z.BLUE,localization:{id:"blue",defaultMessage:"Blue",description:"Blue color"}},wx=[{color:p.Z.BLACK,localization:{id:"black",defaultMessage:"Black",description:"Black color"}},bx,{color:yx,localization:{id:"darkBlue",defaultMessage:"Dark blue",description:"Dark blue color"}}];var Sx,Ex=n(60619),Px=(n(37940),n(37024),n(5038)),xx=n(63632),Dx=n(28028);function Cx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function kx(e){for(var t=1;t\nbody, html, .${Je.re} {\n margin: 0;\n padding: 0;\n overflow: hidden;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n}\n`,Mx=["baseUrl","baseCoreUrl","licenseKey","disableWebAssemblyStreaming","enableAutomaticLinkExtraction","overrideMemoryLimit","customFonts","isSharePoint","isSalesforce","productId"];let _x=null,Rx=null,Nx=null;function Lx(e){n.p=e}function Bx(e){var t;return e.baseUrl?e.baseUrl:"authPayload"in e&&"object"==typeof e.authPayload&&"string"==typeof(null===(t=e.authPayload)||void 0===t?void 0:t.accessToken)?"https://cdn.cloud.pspdfkit.com/pspdfkit-web@2023.4.0/":(0,P.SV)(window.document)}function jx(e){return e.baseCoreUrl?e.baseCoreUrl:Bx(e)}function zx(e,t){if(e[t]&&"boolean"!=typeof e[t])throw new a.p2(`The type for ${t} is not valid. Must be \`true\` or \`false\`.`)}function Kx(e,t){if(e[t]&&"function"!=typeof e[t])throw new a.p2(`The type for ${t} is not valid. Must be \`function\`.`)}function Zx(e){const t="string"==typeof e.container?document.querySelector(e.container):e.container;if(!(t instanceof HTMLElement))throw new a.p2("`Configuration#container` must either be a valid element or a CSS selector");return t}function Ux(e,t){const n=Ax.current.get(e);function o(){t(),null==n||n()}return(0,a.kG)(n),Ax.current=Ax.current.set(e,o),o}function Vx(e,t,n){const o=Array.prototype.slice.call(n.querySelectorAll('link[rel="stylesheet"]')).filter((e=>!e.dataset.loaded)).map((function(e){let t,n;e.dataset.loaded="true";const o=new Promise((function(e,o){t=e,n=o}));return e.onload=function(){t()},e.onerror=function(){const o=e.href+" could not be loaded. Make sure that the file is accessible from your webserver.";e.dataset.pspdfkit?n(new a.p2(o)):((0,a.vU)(o),t())},o}));Promise.all(o).then(e,t)}var Gx=n(9946),Wx=n(37231);var qx=n(46791),Hx=n(71652),$x=n(54097),Yx=n(45395),Xx=n(4132);const Jx=["color"];function Qx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function eD(e){for(var t=1;t(0,vc.vH)(null,e),rotate:(e,t,n)=>{const o=(0,ot.h4)(e,n);return(0,ot.az)(o.set("rotation",t))}},AnnotationPresets:{toSerializableObject:vc.xT,fromSerializableObject:vc.MR},Comment:b.ZP,Bookmark:d.Z,CustomOverlayItem:f.Z,FormFields:{FormField:l.Wi,ButtonFormField:l.R0,CheckBoxFormField:l.rF,ChoiceFormField:l.Dz,ComboBoxFormField:l.fB,ListBoxFormField:l.Vi,RadioButtonFormField:l.XQ,TextFormField:l.$o,SignatureFormField:l.Yo,toSerializableObject:vc.vD,fromSerializableObject:e=>(0,vc.IN)(String(e.pdfObjectId),e)},FormFieldValue:l.KD,FormOption:h.Z,Color:p.Z,Instance:ux,preloadWorker:nD,load:async function(e){tt.fq&&new a.p2("Starting 2022.5.0, we no longer support Internet Explorer 11."),tt.rO&&new a.p2("Starting 2023.2.0, we no longer support Microsoft Edge 18."),"disableWebAssembly"in e&&e.disableWebAssembly&&(0,a.a1)("The 'disableWebAssembly' option is deprecated. It will be removed in a future release as we are removing support for ASM.js.");const t={current:!0};let o=null;if(!0!==e.headless){o=Zx(e),(0,a.kG)(!Ax.current.has(o),"Configuration#container is already used to mount a PSPDFKit for Web instance. \n\nEither use PSPDFKit.unload(container) before loading again or use a different container.");const n=o;Ax.current=Ax.current.set(o,(function(){t.current=!1,Ax.current=Ax.current.delete(n)}))}try{var r,s,l,c,u;if(_x instanceof Promise)try{await _x}catch(t){if(Rx&&0===(0,a.$O)(e,Rx).length)throw t;Rx=null}else _x=Promise.resolve();let o;const p=Bx(e);if(Lx(p),!t.current)return Tx;if("document"in e&&e.document){if(null!=Rx){const t=(0,a.$O)(Rx,e,{keys:Mx});(0,a.kG)(0===t.length,"The configuration object passed to PSPDFKit is different from the one given previously\n"+(0,a.GB)(t))}Rx=e;{var d;Nx||(Nx=await Promise.all([n.e(1620),n.e(3610)]).then(n.bind(n,49136)));const t=null===(d=Nx)||void 0===d?void 0:d.default;o=new t(kx(kx({},e),{},{baseCoreUrl:jx(e)}))}e.autoSaveMode||(e.autoSaveMode=S.u.IMMEDIATE),(e.appName&&(0,L.d)()||e.electronAppName)&&(e.electronAppName&&((0,a.ZK)("The `Configuration.electronAppName` option is deprecated and will be removed in a future version. Please use `appName` instead."),(0,a.kG)((0,L.d)(),"`electronAppName` should only be set when using Electron.")),(0,Dx.t0)(e.appName||e.electronAppName,e.productId))}if("documentId"in e&&e.documentId||"authPayload"in e&&"object"==typeof e.authPayload&&"string"==typeof(null===(r=e.authPayload)||void 0===r?void 0:r.accessToken)){const t=(await Promise.all([n.e(1620),n.e(6377)]).then(n.bind(n,16288))).default;o=new t(e),e.autoSaveMode||(e.autoSaveMode=e.instant?S.u.IMMEDIATE:S.u.INTELLIGENT)}if(!t.current)return o&&o.destroy(),Tx;if(!o)throw new a.p2("Backend could not be inferred. Please add one of the following properties to the configuration:\n - `document` to load document and render the document client-side.\n - `documentId` to connect to PSPDFKit Server and render the document server-side.\n");if(e.autoSaveMode&&e.autoSaveMode!==S.u.INTELLIGENT&&e.autoSaveMode!==S.u.IMMEDIATE&&e.autoSaveMode!==S.u.DISABLED)throw new a.p2("The supplied autoSaveMode is not valid.\nValid `autoSaveMode`s are: PSPDFKit.AutoSaveMode.INTELLIGENT, PSPDFKit.AutoSaveMode.IMMEDIATE or PSPDFKit.AutoSaveMode.DISABLED");if(e.printOptions||(e.printOptions={}),e.printOptions&&e.printOptions.mode&&!Object.prototype.hasOwnProperty.call(Pc.X,e.printOptions.mode))throw new a.p2("The supplied mode in printOptions is not valid.\nValid `printMode`s are: PSPDFKit.PrintMode.DOM, PSPDFKit.PrintMode.EXPORT_PDF");if(e.printOptions&&e.printOptions.quality&&!Object.prototype.hasOwnProperty.call(xc.g,e.printOptions.quality))throw new a.p2("The supplied quality in printOptions is not valid.\nValid `printOptions.quality`s are: PSPDFKit.PrintQuality.LOW, PSPDFKit.PrintQuality.MEDIUM, PSPDFKit.PrintQuality.HIGH");if(e.printMode&&(0,a.ZK)("Configuration.printMode has been deprecated and will be removed in the next major version. Please refer to the migration guide in order to keep the desired behavior."),e.printMode&&!e.printOptions.mode){if(!Object.prototype.hasOwnProperty.call(Pc.X,e.printMode))throw new a.p2("The supplied printMode is not valid.\nValid `printMode`s are: PSPDFKit.PrintMode.DOM, PSPDFKit.PrintMode.EXPORT_PDF");e.printOptions.mode=e.printMode}if("disableHighQualityPrinting"in e&&((0,a.ZK)("Configuration.disableHighQualityPrinting has been deprecated and will be removed in the next major version. Please refer to the migration guide in order to keep the desired behavior."),zx(e,"disableHighQualityPrinting"),e.disableHighQualityPrinting&&"boolean"==typeof e.disableHighQualityPrinting&&!e.printOptions.quality&&("STANDALONE"!==o.type||"ios"!==tt.By&&"android"!==tt.By?e.printOptions.quality=e.disableHighQualityPrinting?xc.g.MEDIUM:xc.g.HIGH:e.printOptions.quality=xc.g.MEDIUM)),e.electronicSignatures){if(e.electronicSignatures.creationModes){if(!Array.isArray(e.electronicSignatures.creationModes)||!e.electronicSignatures.creationModes.length)throw new a.p2("PSPDFKit.Configuration.electronicSignatures#creationModes must be a non-empty array if specified.");if(e.electronicSignatures.creationModes.some((e=>!Object.keys(eS.M).includes(e))))throw new a.p2("PSPDFKit.Configuration.electronicSignatures#creationModes only accepts PSPDFKit.ElectronicSignatureCreationMode values.")}if(e.electronicSignatures.fonts){if(!Array.isArray(e.electronicSignatures.fonts)||!e.electronicSignatures.fonts.length)throw new a.p2("PSPDFKit.Configuration.electronicSignatures#fonts must be a non-empty array if specified.");if(e.electronicSignatures.fonts.some((e=>!(e instanceof w.Z))))throw new a.p2("PSPDFKit.Configuration.electronicSignatures#fonts only accepts PSPDFKit.Font values.")}if(e.electronicSignatures.forceLegacySignaturesFeature&&"boolean"!=typeof e.electronicSignatures.forceLegacySignaturesFeature)throw new a.p2("PSPDFKit.Configuration.electronicSignatures#forceLegacySignaturesFeature only accepts boolean values.")}let f;zx(e,"disableForms"),Kx(e,"annotationTooltipCallback"),zx(e,"disableTextSelection"),zx(e,"preventTextCopy"),Kx(e,"renderPageCallback"),function(e,t){if(e[t]){if(!Array.isArray(e[t]))throw new a.p2(`${t} must be an array of annotation types.`);if(!e[t].every((e=>e&&e.prototype&&(e.prototype instanceof Ou.Z||e==Ou.Z))))throw new a.p2(`${t} must be an array of annotation types.`)}}(e,"editableAnnotationTypes"),Kx(e,"isEditableAnnotation"),Kx(e,"isEditableComment"),Kx(e,"dateTimeString"),Kx(e,"annotationToolbarColorPresets"),Kx(e,"annotationToolbarItems"),Kx(e,"onWidgetAnnotationCreationStart"),Kx(e,"inlineTextSelectionToolbarItems"),Kx(e,"onCommentCreationStart"),Kx(e,"measurementValueConfiguration"),"mentionableUsers"in e&&((0,a.kG)(Array.isArray(e.mentionableUsers),"mentionableUsers must be an array"),e.mentionableUsers.forEach(b.vQ)),(0,a.um)(`PSPDFKit for ${(0,L.d)()?"Electron":"Web"} 2023.4.0 (https://pspdfkit.com/web)`);try{f=(0,wc.z5)(e.locale||navigator.language)}catch(e){f="en"}if(e.populateInkSignatures&&"function"!=typeof e.populateInkSignatures)throw new a.p2("populateInkSignatures must be a function.");if(e.populateStoredSignatures&&"function"!=typeof e.populateStoredSignatures)throw new a.p2("populateStoredSignatures must be a function.");if(null!=e.maxPasswordRetries&&"number"!=typeof e.maxPasswordRetries)throw new a.p2("maxPasswordRetries must be a number.");if(e.formFieldsNotSavingSignatures&&(!Array.isArray(e.formFieldsNotSavingSignatures)||e.formFieldsNotSavingSignatures.some((e=>"string"!=typeof e))))throw new a.p2("formFieldsNotSavingSignatures must be an array of strings.");let h,m,g,v=new y.Z;e.disableOpenParameters||(v=Pu(v)),e.initialViewState&&(v=e.initialViewState,v=Au(v,null)),e.customRenderers&&(h=function(e){for(const t in e)e.hasOwnProperty(t)&&((0,a.kG)(hx.includes(t),`'${t}' is not a custom renderable entity. Custom renderable entities are: ${hx.join(", ")}`),(0,a.kG)("function"==typeof e[t],`'${t}' custom renderer must be a function.`));return e}(e.customRenderers)),e.customUI&&(m=ox(e.customUI)),(0,a.kG)("number"==typeof mt.Ei.DEFAULT_INK_ERASER_CURSOR_WIDTH&&mt.Ei.DEFAULT_INK_ERASER_CURSOR_WIDTH>=0,"PSPDFKit.Options.DEFAULT_INK_ERASER_CURSOR_WIDTH must be set to a positive number."),(0,a.kG)(!e.isAPStreamRendered||"function"==typeof e.isAPStreamRendered,"When provided, `configuration.isAPStreamRendered` must be a function."),(0,a.kG)(!e.enableRichText||"function"==typeof e.enableRichText,"When provided, `configuration.enableRichText` must be a function."),(0,a.kG)("boolean"==typeof e.enableHistory||void 0===e.enableHistory,"When provided, `configuration.enableHistory` must be a boolean value."),(0,a.kG)("boolean"==typeof e.enableClipboardActions||void 0===e.enableClipboardActions,"When provided, `configuration.enableClipboardOperations` must be a boolean value."),e.unstable_inkEraserMode&&((0,a.kG)(Object.keys(D.b).includes(e.unstable_inkEraserMode),"`unstable_inkEraserMode` must be one of: `PSPDFKit.unstable_InkEraserMode.POINT` or `PSPDFKit.unstable_InkEraserMode.STROKE`"),g=e.unstable_inkEraserMode),(0,a.kG)("boolean"==typeof e.measurementSnapping||void 0===e.measurementSnapping,"When provided, `configuration.measurementSnapping` must be a boolean value."),(0,a.kG)("string"==typeof e.measurementPrecision||void 0===e.measurementPrecision,"When provided, `configuration.measurementPrecision` must be a string."),(0,a.kG)(e.measurementScale instanceof As.Z||void 0===e.measurementScale,"When provided, `configuration.measurementScale` must be an instance of `MeasurementScale`."),(0,a.kG)("boolean"==typeof e.anonymousComments||void 0===e.anonymousComments||!0===e.anonymousComments&&"STANDALONE"!==o.type,"When provided, `configuration.anonymousComments` must be used only with PSPDFKit Server and be a boolean value."),(0,a.kG)("boolean"==typeof e.disableMultiSelection||void 0===e.disableMultiSelection,"When provided, `configuration.disableMultiSelection` must be a boolean value."),(0,a.kG)("number"==typeof e.autoCloseThreshold||void 0===e.autoCloseThreshold,"When provided, `configuration.autoCloseThreshold` must be a number.");const E=kx(kx({backend:o,autoSaveMode:e.autoSaveMode,printMode:null===(s=e.printOptions)||void 0===s?void 0:s.mode,printQuality:null===(l=e.printOptions)||void 0===l?void 0:l.quality,showComments:!!v.showComments,showAnnotationNotes:!!v.showAnnotationNotes,printingEnabled:v.allowPrinting,exportEnabled:v.allowExport,readOnlyEnabled:v.readOnly?ve.J.VIA_VIEW_STATE:ve.J.NO,formsEnabled:!e.disableForms,formDesignMode:!e.disableForms&&v.formDesignMode,showAnnotations:v.showAnnotations,eventEmitter:new kP.Z,locale:f,clientPermissions:new j.uh({extract:!e.disableTextSelection,preventTextCopy:!!e.preventTextCopy,printHighQuality:(null===(c=e.printOptions)||void 0===c?void 0:c.quality)===xc.g.HIGH}),signatureState:new j.dp({populateStoredSignatures:e.populateStoredSignatures||e.populateInkSignatures,formFieldsNotSavingSignatures:(0,i.l4)(e.formFieldsNotSavingSignatures||[])}),renderPageCallback:e.renderPageCallback,annotationTooltipCallback:e.annotationTooltipCallback?t=>{var n;const o=null===(n=e.annotationTooltipCallback)||void 0===n?void 0:n.call(e,t);return null==o||o.forEach((e=>{(0,Fc.G)(e)})),o}:null,sidebarMode:v.sidebarMode,sidebarOptions:v.sidebarOptions,sidebarPlacement:v.sidebarPlacement,isEditableAnnotation:e.isEditableAnnotation,isEditableComment:e.isEditableComment,customRenderers:h},m?{customUIStore:new M.Z(m)}:null),{},{toolbarPlacement:e.toolbarPlacement,showSignatureValidationStatus:v.showSignatureValidationStatus||fu.W.NEVER,previewRedactionMode:v.previewRedactionMode,keepSelectedTool:v.keepSelectedTool,isAPStreamRendered:e.isAPStreamRendered,restrictAnnotationToPageBounds:e.restrictAnnotationToPageBounds,electronicSignatureCreationModes:(0,i.hU)(e.electronicSignatures&&e.electronicSignatures.creationModes||vx.Z),signingFonts:(0,i.hU)(e.electronicSignatures&&e.electronicSignatures.fonts||CP.Z),isHistoryEnabled:!!e.enableHistory,areClipboardActionsEnabled:!!e.enableClipboardActions,onOpenURI:e.onOpenURI,onAnnotationResizeStart:e.onAnnotationResizeStart,canScrollWhileDrawing:v.canScrollWhileDrawing,dateTimeString:e.dateTimeString,annotationToolbarColorPresets:e.annotationToolbarColorPresets,annotationToolbarItems:e.annotationToolbarItems,onWidgetAnnotationCreationStart:e.onWidgetAnnotationCreationStart,inkEraserMode:g,firstCurrentPageIndex:v.currentPageIndex,arePageSizesLoaded:"STANDALONE"!==o.type||!1,inlineTextSelectionToolbarItems:e.inlineTextSelectionToolbarItems,measurementSnapping:e.measurementSnapping,measurementPrecision:e.measurementPrecision,measurementScale:e.measurementScale,measurementValueConfiguration:e.measurementValueConfiguration,anonymousComments:e.anonymousComments,enableRichText:e.enableRichText,maxMentionSuggestions:"maxMentionSuggestions"in e&&e.maxMentionSuggestions||void 0,mentionableUsers:"mentionableUsers"in e&&e.mentionableUsers||[],isMultiSelectionEnabled:!e.disableMultiSelection,defaultAutoCloseThreshold:e.autoCloseThreshold,onCommentCreationStart:e.onCommentCreationStart});let P,C,I=Promise.resolve();if(!0===e.headless)P=mc(kx(kx({},E),{},{frameWindow:window}));else if([P,I,C]=await async function(e,t,n,o,r){var s;const l=Zx(o);if(l.childNodes.length>0)throw new a.p2('`Configuration#container` is expected to be an empty element but instead it contains child nodes.\nTo fix this, please make sure that the container is empty (e.g. by using an empty div `
`');if(o.styleSheets&&!(o.styleSheets instanceof Array))throw new a.p2("styleSheets must either be an Array of strings");let c=[];const u=window.getComputedStyle(l).getPropertyValue("width"),d=window.getComputedStyle(l).getPropertyValue("height");if(!u||u&&"0px"===u)throw new a.p2("The mounting container has no width.\n PSPDFKit for Web adapts to the dimensions of this element and will require this to be set. You can set it to 100% to adopt to the dimensions of the parent node.");if(!d||d&&"0px"===d)throw new a.p2("The mounting container has no height.\n PSPDFKit for Web adapts to the dimensions of this element and will require this to be set. You can set it to 100% to adopt to the dimensions of the parent node.");if(o.theme){if("string"!=typeof o.theme||!mx[o.theme])throw new a.p2("Invalid theme. Configuration#theme must be a valid PSPDFKit.Theme");(o.theme===mx.DARK||o.theme===mx.AUTO&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&c.push(`${t}pspdfkit-lib/dark-${N()}.css`)}o.styleSheets&&(c=c.concat(o.styleSheets));let p=Je.cY;null!=o.minDefaultZoomLevel&&((0,a.kG)("number"==typeof o.minDefaultZoomLevel&&o.minDefaultZoomLevel>0,"minDefaultZoomLevel must be a number greater than 0"),p=o.minDefaultZoomLevel);let f=Je.QS;null!=o.maxDefaultZoomLevel&&((0,a.kG)("number"==typeof o.maxDefaultZoomLevel&&o.maxDefaultZoomLevel>0,"maxDefaultZoomLevel must be a number greater than 0"),f=o.maxDefaultZoomLevel);(0,a.kG)(f>=p,`maxDefaultZoomLevel (${f}) must be greater than or equal to minDefaultZoomLevel (${p}). If you didn't set one of those values, then the default value was used.`);const h=B.UL.fromClientRect(l.getBoundingClientRect()).setLocation(new B.E9),m=new j.Vk({currentPageIndex:r.currentPageIndex,zoomLevel:"number"==typeof r.zoom?r.zoom:1,zoomMode:"number"==typeof r.zoom?Xs.c.CUSTOM:r.zoom,pagesRotation:(0,Yr.n5)(r.pagesRotation),layoutMode:r.layoutMode,scrollMode:r.scrollMode,pageSpacing:r.pageSpacing,spreadSpacing:r.spreadSpacing,keepFirstSpreadAsSinglePage:r.keepFirstSpreadAsSinglePage,viewportPadding:new B.E9({x:r.viewportPadding.horizontal,y:r.viewportPadding.vertical}),minDefaultZoomLevel:p,maxDefaultZoomLevel:f});let g=Ic.ZP.toJS();o.toolbarItems&&(g=o.toolbarItems,g=g.map((e=>"ink-signature"===e.type?((0,a.a1)("The 'ink-signature' toolbar item type has been renamed to 'signature'. The 'ink-signature' identifier will be removed on a future release of PSPDFKit for Web."),kx(kx({},e),{},{type:"signature"})):e)).filter((e=>{var t;return"content-editor"!==e.type||"SERVER"!==(null===(t=n.backend)||void 0===t?void 0:t.type)||((0,a.ZK)("The 'content-editor' toolbar item type is not supported in the Server backend: Content Editing is only available in Standalone."),!1)})),g.forEach(Nc));let v=Bc.toJS();o.documentEditorFooterItems&&(v=o.documentEditorFooterItems,v.forEach(Kc));let y=Uc.toJS();o.documentEditorToolbarItems&&(y=o.documentEditorToolbarItems,y.forEach(Hc));let w=fe.ZP.toObject();w.ink.inkEraserWidth=mt.Ei.DEFAULT_INK_ERASER_CURSOR_WIDTH,o.annotationPresets&&(w=o.annotationPresets,Object.values(w).forEach(Tc));let S=DP;o.stampAnnotationTemplates&&Array.isArray(o.stampAnnotationTemplates)&&(S=o.stampAnnotationTemplates,S.forEach(tu));"mentionableUsers"in o&&((0,a.kG)(Array.isArray(o.mentionableUsers),"mentionableUsers must be an array"),o.mentionableUsers.forEach(b.vQ));"maxMentionSuggestions"in o&&(0,a.kG)("number"==typeof o.maxMentionSuggestions&&o.maxMentionSuggestions>0,"maxMentionSuggestions must be a number greater than 0");Object.isFrozen(mt.Ei)||(mt.Wv!==mt.Ei.COLOR_PRESETS&&(0,_.XV)("Options.COLOR_PRESETS","PSPDFKit#Customisation.AnnotationToolbarColorPresets",!0),(0,mt.ng)(mt.Ei),Object.freeze(mt.Ei));const E=function(){const e=document.createElement("div");return e.className="PSPDFKit-Container",e.style.width="100%",e.style.height="100%",e}();let P,x;if(l.appendChild(E),Ux(l,(function(){const{parentNode:e}=E;e&&e.removeChild(E)})),[P,x]=await async function(e,t,n,o){let r,i;const a=new Promise((function(e,t){r=e,i=t}));let s;if(o){let e;try{e=await(0,z.jK)([t+Ix].concat(n).map((e=>{const n=n=>{const o=n instanceof Error;return{filename:e,css:o?null:n,isCustom:e!==t+Ix}};return fetch(e,{credentials:"same-origin"}).then((e=>{if(200!==e.status)throw Error(`${e.status} ${e.statusText}`);return e.text()})).then(n).catch(n)})))}catch(t){e=t}e=e.filter((e=>null!==e.css)),s=Fx+e.map((e=>{let{css:t,isCustom:n,filename:o}=e;return`${t}`})).join("")}else s=`\n${n.map((e=>``)).join("\n")}\n${Fx}\n`;return new Promise((t=>{const n=document.createElement("iframe");n.setAttribute("allowfullscreen","true"),n.setAttribute("title","PSPDFKit"),n.style.width="100%",n.style.height="100%",n.style.border="0",n.style.display="block",e.appendChild(n);const o=n.contentDocument;if(o){o.open(),o.write(`PSPDFKit
`),o.close(),o.addEventListener("touchstart",(()=>{document.body&&(document.body.style.overscrollBehavior="none")})),o.addEventListener("touchcancel",(()=>{document.body&&(document.body.style.overscrollBehavior="inherit")})),o.addEventListener("touchend",(()=>{document.body&&(document.body.style.overscrollBehavior="inherit")}));const e=o.createRange().createContextualFragment(s);o.head.appendChild(e),Vx(r,i,o),t([o,a])}}))}(E,t,c,o.enableServiceWorkerSupport||!1),!e.current)return Tx;Sc(P);const D=(0,Ec.bl)(P);"function"==typeof D&&Ux(l,(function(){D()}));const C=(null===(s=o.electronicSignatures)||void 0===s?void 0:s.unstable_colorPresets)||wx;if(0===C.length)throw new a.p2("PSPDFKit.Configuration.electronicSignatures#unstable_colorPresets should have at least one preset.");let I=null;if("customFonts"in o&&o.customFonts){const e=n.backend.getCustomFontsPromise();e.current||(e.current=(0,mp.x6)(o.customFonts)),I=await e.current}const M=mc(kx(kx({},n),{},{rootElement:l,containerRect:h,showToolbar:r.showToolbar,enableAnnotationToolbar:r.enableAnnotationToolbar,toolbarItems:(0,i.d0)(g),electronicSignatureColorPresets:C,annotationPresets:(0,i.D5)(w),stampAnnotationTemplates:Object.freeze(S),currentItemPreset:null,viewportState:m,interactionMode:null,documentEditorFooterItems:(0,i.d0)(v),documentEditorToolbarItems:(0,i.d0)(y),frameWindow:P.defaultView,sidebarWidth:h.width<=Je.Fg?h.width:mt.Ei.INITIAL_DESKTOP_SIDEBAR_WIDTH,renderPagePreview:"boolean"!=typeof o.renderPagePreview||o.renderPagePreview}));if(await(0,wc.sS)(M.getState().locale),!e.current)return Tx;M.dispatch((0,Dc.t2)(new Ac(M.getState,M.dispatch))),M.dispatch((0,En.z5)((0,de.YV)(M.getState)));const R=P.querySelector(`.${Je.re}`);return(0,a.kG)(R,"Internal PSPDFKit Error: Mount Target could not be found in contentDocument. Please contact support@pspdfkit.com"),(0,O.render)(T.createElement(A.zt,{store:M},T.createElement(fx,{onError:e=>(e.code,e)},T.createElement("div",{className:F()(zf().withLayers,(!("CSS"in window)||!window.CSS.supports("isolation: isolate"))&&zf().withLayersFallback)},T.createElement(k.P,null,Sx||(Sx=T.createElement(wP,null)))))),R),Ux(l,(function(){(0,O.unmountComponentAtNode)(R)})),[M,x,I]}(t,p,E,e,v),!t.current)return Tx;const R=P.getState(),{eventEmitter:K,rootElement:Z}=R;Z&&Ux(Z,(function(){o&&o.destroy()})),j.UX.prototype.getMeasurementDetails=function(){return R.features.includes(ge.q.MEASUREMENT_TOOLS)||new a.p2(Ex.oD),(0,G.t9)(this)};const U=new ux({store:P,backend:o,eventEmitter:K});if(await bc({dispatch:P.dispatch,backend:o,getState:P.getState,password:e.password,maxPasswordRetries:!0===e.headless?0:"number"==typeof e.maxPasswordRetries?e.maxPasswordRetries:Number.POSITIVE_INFINITY,stylesheetPromise:I,formFieldValuesJSON:"STANDALONE"===o.type?"instantJSON"in e&&e.instantJSON&&e.instantJSON.formFieldValues:null,customFonts:C}),!t.current)return o&&o.destroy(),Tx;let V=function(){U._destroy(),!0===e.headless&&o&&o.destroy(),Ox.current=Ox.current.delete(U)};Z&&(V=Ux(Z,V)),Ox.current=Ox.current.set(U,V);const{features:W,formDesignMode:q,previewRedactionMode:H,documentPermissions:$,frameWindow:Y}=P.getState();if($.fillForms||$.annotationsAndForms||mt.Ei.IGNORE_DOCUMENT_PERMISSIONS?P.dispatch((0,En.we)(e.editableAnnotationTypes?(0,i.l4)(e.editableAnnotationTypes):(0,i.l4)(he.Z),e.isEditableAnnotation)):P.dispatch((0,En.ZV)((0,i.l4)([]))),W.includes(ge.q.ELECTRONIC_SIGNATURES)&&function(e,t){const n=e.document.createRange(),o=mp.eE.map((e=>`@font-face {\n font-family: '${e.name}';\n font-style: normal;\n font-weight: ${e.weight};\n font-display: swap;\n src: url(${t}pspdfkit-lib/${e.file}.woff2) format('woff2'),\n url(${t}pspdfkit-lib/${e.file}.woff) format('woff');\n }`)).join("\n"),r=n.createContextualFragment(``);e.document.head.appendChild(r)}(Y,p),q&&!(0,So.ix)(P.getState()))throw P.dispatch((0,En.LE)(!1)),$.annotationsAndForms||$.fillForms?new a.p2("Widget annotation selection (`configuration.viewState.formDesignMode = true`) can only be enabled if the license includes the Form Designer component and on standalone mode or with PSPDFKit Instant."):new a.p2('Widget annotation selection (`configuration.viewState.formDesignMode = true`) can only be enabled if the current document has either the "Editing Annotations and Forms" or the "Filling Forms" permissions granted. you can override this behavior by setting the PSPDFKit.Options.IGNORE_DOCUMENT_PERMISSIONS option before initializing PSPDFKit. Please make also sure the license includes the Form Designer component and a backend that supports it.');if(H&&!W.includes(ge.q.REDACTIONS))throw P.dispatch((0,En.P_)(!1)),new a.p2("`configuration.viewState.previewRedactionMode = true` can only be enabled if the license includes the Redactions component.");if(e.initialViewState&&e.initialViewState.interactionMode===x.A.DOCUMENT_EDITOR&&!W.includes(ge.q.DOCUMENT_EDITING))throw P.dispatch((0,En.sJ)()),new a.p2(gu);if(e.initialViewState&&e.initialViewState.interactionMode===x.A.CONTENT_EDITOR&&!W.includes(ge.q.CONTENT_EDITING))throw P.dispatch({type:te.Qm9}),new a.p2(sc.Aq);if((0,nt.fF)(null===(u=e.initialViewState)||void 0===u?void 0:u.interactionMode)&&!W.includes(ge.q.FORM_DESIGNER))throw P.dispatch((0,En.XX)()),new a.p2(wu.RB);if(e.initialViewState&&e.initialViewState.showSignatureValidationStatus!==fu.W.NEVER&&!W.includes(ge.q.DIGITAL_SIGNATURES))throw new a.p2(bu);if((e.documentEditorFooterItems||e.documentEditorToolbarItems)&&!W.includes(ge.q.DOCUMENT_EDITING))throw new a.p2(gu);if(!0!==e.headless&&!W.includes(ge.q.UI))throw P.dispatch((0,gc.sr)("Your license does not cover the configured functionality.")),new a.p2("The web UI feature is not enabled for your license key. Please contact support or sales to purchase the UI module for PSPDFKit for Web.");if(!0!==e.headless&&v.interactionMode){const e=ku(v.interactionMode,R);P.dispatch(e.onEnterAction())}return P.dispatch((0,En._$)(U)),U}catch(e){const{type:t,request:n}=e;throw"error"===t&&n&&/\/pspdfkit-lib\//.test(n)&&e("Failed to load pspdfkit-lib.\nMake sure you are serving all PSPDFKit library files as described in https://pspdfkit.com/guides/web/current/standalone/adding-to-your-project/#copy-the-pspdfkit-for-web-assets."),e}},unload:function(e){if(null==e)throw new a.p2("Expected `PSPDFKit.unload` to be called with an `HTMLElement | string | PSPDFKit.Instance`\ninstead none was provided.");if("string"==typeof e){const t=e;if(null===(e=document.querySelector(t)))throw new a.p2(`Couldn't find a container which matches the provided selector \`${t}\``)}else if(!(e instanceof HTMLElement||e instanceof ux))throw new a.p2("Expected `PSPDFKit.unload` to be called with a valid `target` argument.\nAllowed values for `target` are: `HTMLElement | string | PSPDFKit.Instance`.\n");let t;return e instanceof ux?t=Ox.current.get(e):Ax.current.has(e)&&(t=Ax.current.get(e)),!!t&&(t(),!0)},convertToPDF:async function(e,t){const{licenseKey:o,electronAppName:r,productId:i,appName:s}=e;"string"==typeof e.baseUrl&&(0,gx.Pn)(e.baseUrl);const l=Bx(e);Lx(l),(0,a.kG)(null==o||"string"==typeof o,"licenseKey must be a string value if provided. Please obtain yours from https://customers.pspdfkit.com."),"string"==typeof o&&(0,a.kG)(!o.startsWith("TRIAL-"),"You're using the npm key instead of the license key. This key is used to download the PSPDFKit for Web package via the node package manager.\n\nLeave out the license key to activate as a trial."),(0,a.kG)(i!==Px.x.Salesforce,"Document conversion is not currently supported in Salesforce."),(s&&(0,L.d)()||r)&&((0,a.kG)(r,"The `electronAppName` option is deprecated and will be removed in a future version. Please use `appName` instead."),(0,Dx.t0)(s||r,i)),t&&(0,a.kG)(t&&Object.values(xx.w).includes(t),"The supplied PDF/A Conformance type is not valid. Valid Conformance should be one of the following options PSPDFKit.Conformance."+Object.keys(xx.w).join(", PSPDFKit.Conformance."));const c=await(0,yc.D4)(l,e.document,i),u=s||r||(0,L.$u)()||window.location.origin;let d;try{return d=new(tt.vU?(await n.e(4516).then(n.bind(n,14516))).GdPictureClientNative:(await n.e(4516).then(n.bind(n,14516))).GdPictureWorker)(kx({baseUrl:l,mainThreadOrigin:u,licenseKey:o},e.customFonts?{customFonts:await(0,mp.x6)(e.customFonts)}:null)),await d.toPdf(c,t)}finally{var p;null===(p=d)||void 0===p||p.destroy()}},Error:a.p2,SaveError:Hx.V,ViewState:y.Z,PageInfo:g.Z,TextLine:v.Z,InstantClient:m.Z,TextSelection:GP,SearchResult:qx.Z,SearchState:rl.Z,AutoSaveMode:S.u,SignatureSaveMode:_u.f,LayoutMode:C.X,PrintMode:Pc.X,PrintQuality:xc.g,ScrollMode:nl.G,ZoomMode:Xs.c,InteractionMode:x.A,unstable_InkEraserMode:D.b,SidebarMode:du.f,UIElement:{Sidebar:"Sidebar"},BlendMode:lp,BorderStyle:Yx.N,LineCap:nd.u,SidebarPlacement:pu.d,SignatureAppearanceMode:Wx.H,ShowSignatureValidationStatusMode:fu.W,NoteIcon:en.Zi,Theme:mx,ToolbarPlacement:Ru.p,ElectronicSignatureCreationMode:eS.M,I18n:wc.ZP,baseUrl:tD,DocumentIntegrityStatus:E.QA,SignatureValidationStatus:E.qA,SignatureType:E.BG,SignatureContainerType:E.FR,CertificateChainValidationStatus:E.wk,AnnotationsWillChangeReason:u.f,DocumentComparisonSourceType:Gx.b,MeasurementScaleUnitFrom:q.s,MeasurementScaleUnitTo:W.K,MeasurementPrecision:Xx.L,MeasurementScale:As.Z,ProductId:Px.x,Conformance:xx.w,DocumentPermissions:tl.A,viewStateFromOpenParameters:Pu,get unstable_defaultElectronicSignatureColorPresets(){return(0,i.d0)(wx).toJS().map((e=>{let{color:t}=e;return eD(eD({},(0,r.Z)(e,Jx)),{},{color:new p.Z(t)})}))},get defaultToolbarItems(){return Ic.ZP.toJS()},get defaultDocumentEditorFooterItems(){return Bc.toJS()},get defaultDocumentEditorToolbarItems(){return Uc.toJS()},get defaultAnnotationPresets(){return fe.ZP.toObject()},get defaultStampAnnotationTemplates(){return[...DP]},get defaultAnnotationsSidebarContent(){return $x.Z.toJS()},defaultEditableAnnotationTypes:he.Z,defaultElectronicSignatureCreationModes:vx.Z,defaultSigningFonts:CP.Z,Options:mt.Ei,SearchPattern:KP,SearchType:zP.S,UIDateTimeElement:Nu,generateInstantId:ks.C,Font:w.Z},rD=oD},61631:(e,t,n)=>{"use strict";n.d(t,{TU:()=>m,aG:()=>f,gH:()=>g,oo:()=>h});var o=n(50974),r=n(67366),i=n(35369),a=n(96114),s=n(3219),l=n(89335),c=n(37676),u=n(97528),d=n(69939),p=n(29346);const f=e=>(t,n)=>{!function e(u){try{if(u instanceof l.lm){(0,o.kG)("string"==typeof u.uri,"URIAction requires `uri`");const e=n();(!e.onOpenURI||e.onOpenURI(u.uri,!0))&&(0,c.Z)(u.uri)}else if(u instanceof l.Di)(0,o.kG)("number"==typeof u.pageIndex,"GoToAction requires `pageIndex`"),t((0,s.YA)(u.pageIndex));else if(u instanceof l.BO)(0,o.kG)("boolean"==typeof u.includeExclude,"ResetFormAction requires `includeExclude`"),t((0,a.yM)(u.fields,u.includeExclude));else if(u instanceof l.pl)(0,o.kG)("string"==typeof u.uri,"ResetFormAction requires `uri`"),(0,o.kG)("boolean"==typeof u.includeExclude,"ResetFormAction requires `includeExclude`"),t((0,a.V6)(u));else{if(!(u instanceof l.ZD))throw new o.p2(`Annotation action not handled: ${u.constructor.name}`);{(0,o.kG)(i.aV.isList(u.annotationReferences),"HideAction must have `annotationReferences`");const{annotations:e,formFields:a}=n(),s=u.annotationReferences.map((e=>"fieldName"in e&&a.get(e.fieldName))),l=u.annotationReferences.map((t=>"pdfObjectId"in t&&"number"==typeof t.pdfObjectId?e.find((e=>e.pdfObjectId===t.pdfObjectId)):null));(0,r.dC)((()=>{l.forEach((e=>{e&&t((0,d.FG)(e.set("noView",u.hide)))})),s.forEach((n=>{n&&n.annotationIds.forEach((n=>{const o=e.get(n);o&&t((0,d.FG)(o.set("noView",u.hide)))}))}))}))}}}catch(e){(0,o.ZK)(e.message)}u.subActions&&u.subActions.forEach((t=>{e(t)}))}(e)},h=e=>{const{action:t}=e;return t instanceof l.bp?g(t.script,e instanceof p.Z?e.formFieldName:null):f(t)},m=(e,t)=>{const{additionalActions:n,formFieldName:o}=e;return(null==n?void 0:n[t])instanceof l.bp?g(n[t].script,e instanceof p.Z?o:null):f(null==n?void 0:n[t])};function g(e,t){return async(n,r)=>{const{backend:i}=r();if((0,o.kG)(i),"STANDALONE"!==i.type||!u.Ei.PDF_JAVASCRIPT)return;(0,o.kG)("string"==typeof e,"JavaScriptAction requires `script`");const s=await i.evalScript(e,t);n((0,a.bt)({changes:s}))}}},69939:(e,t,n)=>{"use strict";n.d(t,{$d:()=>T,$e:()=>A,Ds:()=>R,FG:()=>G,GI:()=>te,GT:()=>X,GZ:()=>H,Iv:()=>k,QA:()=>N,RK:()=>Q,VX:()=>z,XG:()=>J,ZE:()=>j,Zr:()=>F,aF:()=>M,d8:()=>$,dt:()=>oe,fx:()=>Y,gX:()=>_,hQ:()=>q,hX:()=>D,hj:()=>C,i0:()=>ee,ip:()=>O,lA:()=>I,mw:()=>re,pZ:()=>L,sF:()=>B,ug:()=>ne,uk:()=>U,vc:()=>x,vy:()=>ie});var o=n(35369),r=n(67366),i=n(50974),a=n(82481),s=n(3845),l=n(88804),c=n(34573),u=n(29165),d=n(63738),p=n(3219),f=n(96114),h=n(51333),m=n(95651),g=n(7921),v=n(78233),y=n(49177),b=n(45588),w=n(62164),S=n(25387),E=n(91859),P=n(75237);const x=(e,t)=>n=>{n((0,c.Ab)()),n({type:S.ILc,annotation:e,pageIndex:t})},D=(e,t)=>n=>{n((0,c.Ab)()),n({type:S.HS7,annotation:e,pageIndex:t})},C=(e,t)=>n=>{n((0,c.Ab)()),n({type:S.jzI,annotation:e,pageIndex:t})},k=async e=>{const{hash:t,dimensions:n}=await(0,b.uq)(e);return{hash:t,dimensions:n,attachment:new a.Pg({data:e})}},A=e=>async(t,n)=>{const{dimensions:i,hash:a,attachment:l}=await k(e),d=(0,m.om)(n(),i,a,e.type,e.name),f={annotations:(0,o.aV)([d]),reason:s.f.SELECT_END},{eventEmitter:h,annotationManager:g}=n();(0,r.dC)((()=>{null==h||h.emit("annotations.willChange",f),t((0,u.O)(a,l)),t(I((0,o.aV)([d]))),null==g||g.createObject(d,{attachments:(0,o.D5)([[a,l]])}),null==g||g.autoSave(),t((0,c.Df)((0,o.l4)([d.id]),null)),t((0,p.kN)(d.pageIndex,d.boundingBox))}))},O=e=>(t,n)=>{let i;const{imageAttachmentId:u,contentType:d,fileName:f,description:h}=e,g=u&&n().attachments.get(u);if(e instanceof a.GI)t(R("stamp")),i=(0,m.hG)(n(),new l.$u({width:e.boundingBox.width,height:e.boundingBox.height}),e);else{if(!(e instanceof a.sK))return;if(!u)return;t(R("image")),i=(0,m.om)(n(),new l.$u({width:e.boundingBox.width,height:e.boundingBox.height}),u,d||"",f),h&&(i=i.set("description",h))}const v={annotations:(0,o.aV)([i]),reason:s.f.SELECT_END},{eventEmitter:y,annotationManager:b}=n();(0,r.dC)((()=>{null==y||y.emit("annotations.willChange",v),t(I((0,o.aV)([i]))),null==b||b.createObject(i,{attachments:u&&g?(0,o.D5)([[u,g]]):(0,o.D5)()}),null==b||b.autoSave(),t((0,c.Df)((0,o.l4)([i.id]),null)),t((0,p.kN)(i.pageIndex,i.boundingBox))}))},T=e=>(t,n)=>{const a=n();(0,i.kG)(a.backend);const{annotationManager:s,backend:l}=a;(0,r.dC)((()=>{"STANDALONE"===(null==l?void 0:l.type)?t(I((0,o.aV)([e.set("pdfObjectId",null).delete("APStreamCache")]))):t(I((0,o.aV)([e]))),null==s||s.createObject(e,{attachments:(0,m.Dc)(n(),e)})}))},I=e=>({type:S.M85,annotations:e}),F=e=>({type:S.R8P,annotations:e}),M=e=>({type:S.gF5,ids:e}),_=e=>(t,n)=>{const o=n(),r=o.currentItemPreset;if(!r)return;const i=o.annotationPresets.get(r);if(!i)return;let a=!1;o.eventEmitter.emit("annotationPresets.update",{preventDefault:()=>a=!0,currentPreset:r,currentPresetProperties:i,newPresetProperties:e}),a||t({type:S.oE1,attributes:e})},R=e=>({type:S.oWy,currentItemPreset:e}),N=e=>({type:S.UiQ,annotationPresets:e}),L=(e,t)=>({type:S.R1i,annotationID:e,annotationPresetID:t}),B=e=>({type:S.x0v,annotationID:e}),j=e=>({type:S.JwD,annotationID:e}),z=(e,t)=>(n,o)=>{n(R(t)),(0,y.PK)(o(),e).forEach((e=>{n(T(e)),!P.AQ[t]&&n(L(e.id,t))}))},K=(e,t)=>{e().annotationManager.updateObject(t,(0,m.Dc)(e(),t))},Z={},U=e=>(t,n)=>{const{annotations:r,invalidAPStreams:a,backend:s}=n();if(!r.has(e.id))return void(0,i.ZK)("An annotation that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this annotation was skipped.");(0,m.tl)({annotations:r,backend:s},(0,o.aV)([e]));let l=e.set("updatedAt",new Date);t(F((0,o.aV)([l]))),l=(0,m.tM)(n(),a,l),Z[l.id]||(Z[l.id]=(0,g.Z)(K,E.sP)),Z[l.id](n,l)};function V(e,t,n){const{annotations:o,invalidAPStreams:r,backend:s}=t;(0,m.tl)({annotations:o,backend:s},n);const l=n.map((e=>o.has(e.id)?(e instanceof a.UX&&e.isMeasurement()&&(e=e.set("note",e.getMeasurementDetails().label)),"STANDALONE"===(null==s?void 0:s.type)?e.delete("APStreamCache").set("updatedAt",new Date):e.set("updatedAt",new Date)):((0,i.ZK)("An annotation that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this annotation was skipped."),!1))).filter(Boolean);e(F(l)),l.forEach((e=>{const n=(0,m.tM)(t,r,e);var o;null!==e.pageIndex&&(null===(o=t.annotationManager)||void 0===o||o.updateObject(n,{attachments:(0,m.Dc)(t,n)}))}))}const G=e=>(t,n)=>{const i=n();(0,r.dC)((()=>{V(t,i,(0,o.aV)([e]))}))};function W(e,t,n){const{commentThreads:s,comments:l,annotationManager:c,formFieldValueManager:u}=t;n.forEach((t=>{const n=s.get(t.id);if(n&&1===n.size){const t=l.get(n.first());t&&(0,w.kT)(t)&&((0,i.kG)(t.id),e((0,h.Vn)((0,o.l4)([t.id]))))}})),n.forEach((t=>{(t instanceof a.Jn||t instanceof a.FV||t.isCommentThreadRoot)&&e((0,h.Wn)(t))}));let d=(0,o.aV)();(0,r.dC)((()=>{e(M(n.map((e=>e.id)).toSet())),d=n.map((e=>(0,m.dk)(t,e))),d.forEach((e=>{null==c||c.deleteObject(e)}))})),d.forEach((n=>{if(n instanceof a.x_){const r=n.formFieldName?t.formFields.get(n.formFieldName):null;var o;if(r)if(1===r.annotationIds.size&&r.annotationIds.first()===n.id)e((0,f.Wh)(r)),null!==(o=t.backend)&&void 0!==o&&o.isUsingInstantProvider()||null==u||u.deleteObject(new a.KD({name:r.name,value:r.value}));else if(r.annotationIds.includes(n.id)){const t=r.annotationIds.findIndex((e=>e===n.id));let o=r.set("annotationIds",r.annotationIds.filter((e=>e!==n.id)));o.options&&(o=o.set("options",r.options.filter(((e,n)=>n!==t)))),e((0,f.vK)(o))}}Z[n.id]&&delete Z[n.id]}))}const q=e=>(t,n)=>{W(t,n(),(0,o.aV)([e]))},H=(e,t)=>(n,o)=>{const i=o(),{annotations:a}=i,s=t.map((e=>a.get(e))).filter(Boolean);(0,r.dC)((()=>{e.size>0&&V(n,i,e),s.size>0&&W(n,i,s)}))};function $(e){return(t,n)=>{if(e&&!e.isEmpty()){const t=n(),r=e.map((e=>t.annotations.get(e))).filter(Boolean),i={annotations:(0,o.aV)(r),reason:s.f.DELETE_START};t.eventEmitter.emit("annotations.willChange",i)}t({type:S.sCM,annotationsIDs:e})}}const Y=e=>({type:S.qRJ,stampAnnotationTemplates:e}),X=e=>({type:S.RPc,lineWidth:e});function J(){return(e,t)=>{const n=t();let o=new a.Qi((0,m.lx)(n));const r=n.pages.get(n.viewportState.currentPageIndex);(0,i.kG)(r);const s=a.UL.getCenteredRect(new l.$u({width:E.SP,height:E.SP}),r.pageSize);o=o.set("pageIndex",n.viewportState.currentPageIndex).set("boundingBox",s),e((0,d.i9)(null,o)),e(G(o))}}function Q(){return(e,t)=>{const n=t();let o=new a.gd((0,m.lx)(n));const r=n.pages.get(n.viewportState.currentPageIndex);(0,i.kG)(r);const{pagesRotation:s,currentPageIndex:l}=n.viewportState,c=r.pageSize.scale(.5),u=(0,v.gB)(new a.E9({x:c.width,y:c.height}),s);o=o.set("pageIndex",l).set("boundingBox",u).set("rotation",s),e((0,d.DU)(null,o)),e(G(o))}}const ee=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:S.WaW,value:e}},te=e=>({type:S.ieh,ids:e}),ne=e=>({type:S.kVz,ids:e}),oe=e=>({type:S.hw0,callback:e}),re=(e,t)=>({type:S.Dqw,variant:e,annotationObjectIds:t}),ie=e=>({type:S.uOP,annotationId:e})},29165:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var o=n(25387);const r=(e,t)=>({type:o.huI,hash:e,attachment:t})},51333:(e,t,n)=>{"use strict";n.d(t,{$z:()=>T,BY:()=>x,DO:()=>O,Dm:()=>E,GH:()=>I,Jr:()=>D,Rf:()=>F,UM:()=>k,V4:()=>C,Vn:()=>S,Wn:()=>A,aZ:()=>b,cQ:()=>v,fg:()=>m,gk:()=>w,mh:()=>g,v7:()=>y});var o=n(35369),r=n(25387),i=n(91859),a=n(82481),s=n(69939),l=n(34573),c=n(63738),u=n(49177),d=n(62164),p=n(95651),f=n(97413),h=n(30360);const m=e=>t=>{t({type:r.ckI,comments:e}),t(T())},g=e=>t=>{t({type:r.hxO,rootId:e}),t(T())};function v(){return(e,t)=>{const n=(0,u.PK)(t(),a.FV,!0);if(n.size){e((0,l.fz)()),e((0,s.lA)(n));const r=t().annotations.get(n.first().id);(0,f.k)(r),e((0,l.Df)((0,o.l4)([r.id]),null)),e(g(r.id))}}}const y=e=>({type:r.YHT,users:e}),b=e=>({type:r.ZLr,maxSuggestions:e}),w=e=>t=>{t((e=>({type:r.FdD,comments:e}))(e)),t(T())},S=e=>t=>{t({type:r.kg,ids:e}),t(T())};function E(){return(e,t)=>{const n=t(),r=[],i=[];n.selectedAnnotationIds.forEach((e=>{const t=n.commentThreads.get(e);if(!t)return;let o=t.size;t.forEach((e=>{var t;const i=n.comments.get(e);!i||null!=i.pageIndex||null!=(null===(t=i.text)||void 0===t?void 0:t.value)&&""!==(0,h.KY)(i.text.value)||(r.push(e),o--)})),0===o&&i.push(e)})),r.length>0&&e(S((0,o.l4)(r))),i.length>0&&e((0,s.aF)((0,o.l4)(i)))}}function P(e,t){let{oldComment:n,comment:r,action:i}=t;const{comments:a,eventEmitter:s}=e;if("DELETE"===i)(0,f.k)(n),s.emit("comments.mention",{comment:n,modifications:n.getMentionedUserIds().map((e=>({userId:e,action:"REMOVED"}))).toList()});else if("CREATE"===i)(0,f.k)(r),s.emit("comments.mention",{comment:r,modifications:r.getMentionedUserIds().map((e=>({userId:e,action:"ADDED"}))).toList()});else{(0,f.k)(r);const e=n||r.id&&a.get(r.id),t=r.getMentionedUserIds();let i=(0,o.aV)();(0,f.k)(e);const l=e.getMentionedUserIds(),c=l.subtract(t);c.size>0&&(i=i.push(...c.map((e=>({userId:e,action:"REMOVED"}))).toList()));const u=t.subtract(l);u.size>0&&(i=i.push(...u.map((e=>({userId:e,action:"ADDED"}))).toList())),s.emit("comments.mention",{comment:r,modifications:i})}}const x=(e,t)=>(n,r)=>{const i=r();(0,f.k)(e.rootId);const a=i.annotations.get(e.rootId);(0,f.k)(a);const l=new Date,c=e.set("createdAt",l).set("updatedAt",l).set("pageIndex",a.pageIndex);P(i,{comment:c,oldComment:t,action:"UPDATE"}),n(w((0,o.aV)([c])));const u=i.commentThreads.get(e.rootId);if((0,f.k)(null!=u),1===u.size&&(0,d.kT)(e)){var p,h;const e=a.set("isCommentThreadRoot",!0);n((0,s.Zr)((0,o.aV)([e]))),null===(p=i.annotationManager)||void 0===p||p.createObject(e),null===(h=i.annotationManager)||void 0===h||h.autoSave()}(0,f.k)(null!=i.commentManager);const m=r(),g=m.comments.toList().filter((e=>!(0,d.kT)(e)));i.commentManager.createObject(c,{comments:g,annotations:m.annotations}),i.commentManager.autoSave()},D=e=>(t,n)=>{const r=new Date,i=e.set("createdAt",r).set("updatedAt",r);t(m((0,o.aV)([i]))),P(n(),{comment:i,action:"CREATE"});const{commentManager:a,annotations:s}=n();(0,f.k)(null!=a);const l=n().comments.toList().filter((e=>!(0,d.kT)(e)));a.createObject(i,{comments:l,annotations:s})},C=e=>(t,n)=>{const r=e.set("updatedAt",new Date);t(w((0,o.aV)([r]))),P(n(),{comment:r,oldComment:e,action:"UPDATE"});const{annotations:i,commentManager:a}=n();(0,f.k)(null!=a);const s=n().comments.toList().filter((e=>!(0,d.kT)(e)));a.updateObject(r,{comments:s,annotations:i})},k=e=>(t,n)=>{const r=n();if((0,f.k)(e.id),P(r,{oldComment:e,action:"DELETE"}),e.rootId){const n=r.commentThreads.get(e.rootId);if(n&&(1===n.size||(0,d._P)(n,r.comments)&&2===n.size)){const n=r.annotations.get(e.rootId);if(n)return void t((0,s.hQ)(n))}}t(S((0,o.l4)([e.id])));const{commentManager:i}=r;(0,f.k)(null!=i);const a=n(),l=a.comments.toList().filter((e=>!(0,d.kT)(e)));i.deleteObject(e,{comments:l,annotations:a.annotations}),i.autoSave()},A=e=>(t,n)=>{var o;const r=n();if((0,f.k)(e),"SERVER"===(null===(o=r.backend)||void 0===o?void 0:o.type))return;const i=r.comments.filter((t=>t.rootId===e.id&&!(0,d.kT)(t))).map((e=>e.id));if(0===i.size)return;t(S(i.toSet())),r.comments.forEach((e=>{P(r,{oldComment:e,action:"DELETE"})}));const{commentManager:a}=r;(0,f.k)(null!=a);const s=n();let l=s.comments.toList().filter((e=>!(0,d.kT)(e)));l.forEach((t=>{t.rootId===e.id&&(a.deleteObject(t,{comments:l,annotations:s.annotations}),l=l.filter((e=>e.id!==t.id)))})),a.autoSave()},O=e=>(t,n)=>{const r=n();(0,f.k)(e.id),P(r,{comment:e,oldComment:r.comments.get(e.id),action:"UPDATE"}),t(w((0,o.aV)([e])));const{commentManager:i}=r;(0,f.k)(null!=i);const{annotations:a,comments:s}=n(),l=s.toList().filter((e=>!(0,d.kT)(e)));i.updateObject(e,{comments:l,annotations:a}),i.autoSave()};function T(){return{type:r.NB4}}const I=()=>(e,t)=>{const n=t();let r=new a.Jn((0,p.lx)(n));const l=n.pages.get(n.viewportState.currentPageIndex);(0,f.k)(l);const u=a.UL.getCenteredRect(new a.$u({width:i.zk,height:i.zk}),l.pageSize);r=r.set("pageIndex",n.viewportState.currentPageIndex).set("boundingBox",u),e((0,c.k6)(r)),e((0,s.Zr)((0,o.aV)([r]))),e(g(r.id))};function F(e){return{type:r.mfU,onCommentCreationStartCallback:e}}},63738:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>ce,A7:()=>ge,BB:()=>m,BR:()=>x,C4:()=>R,Cc:()=>A,Ce:()=>F,Cn:()=>dt,DU:()=>oe,Di:()=>it,EJ:()=>je,EY:()=>we,FA:()=>St,Ft:()=>ht,GL:()=>Te,Gc:()=>U,Gh:()=>Ne,HT:()=>mt,Hf:()=>Be,IU:()=>ue,Ie:()=>We,JN:()=>ye,Jn:()=>ie,K_:()=>ve,LE:()=>Z,Lt:()=>ne,M4:()=>G,M5:()=>lt,MV:()=>O,Ol:()=>H,Ox:()=>Ue,P4:()=>E,PR:()=>Ct,P_:()=>at,Q8:()=>Ce,QL:()=>W,Ql:()=>de,R:()=>h,R1:()=>_e,RN:()=>q,Rx:()=>Y,SE:()=>Oe,Sn:()=>v,T:()=>Ae,TR:()=>S,Tu:()=>De,UF:()=>Xe,UG:()=>g,UU:()=>ae,UZ:()=>Pt,Ug:()=>C,VU:()=>k,W:()=>yt,Wv:()=>te,X2:()=>le,X8:()=>He,XX:()=>Je,Xv:()=>gt,YA:()=>he,YF:()=>wt,YI:()=>X,YK:()=>qe,ZV:()=>Me,Zg:()=>se,_$:()=>vt,_P:()=>Se,_R:()=>Et,_U:()=>me,_b:()=>V,_z:()=>N,aw:()=>w,bv:()=>J,cI:()=>xe,cz:()=>st,d5:()=>y,d9:()=>nt,dp:()=>j,ek:()=>Pe,el:()=>ze,fq:()=>rt,hS:()=>D,i9:()=>B,iJ:()=>ct,i_:()=>Ge,iu:()=>Q,jJ:()=>kt,jM:()=>tt,jP:()=>_,k4:()=>re,k6:()=>z,lC:()=>b,lL:()=>bt,lV:()=>$e,lW:()=>pe,m$:()=>ee,m0:()=>$,mu:()=>Ze,oX:()=>Ee,of:()=>xt,p2:()=>Dt,p9:()=>T,pM:()=>L,qB:()=>pt,rL:()=>ut,rd:()=>Ke,s3:()=>P,sJ:()=>Ye,sY:()=>Ie,si:()=>et,t:()=>M,t6:()=>ot,tr:()=>K,u0:()=>ke,vI:()=>Ve,vY:()=>be,we:()=>Re,xF:()=>Qe,xW:()=>ft,yg:()=>I,z5:()=>fe,ze:()=>Le});var o=n(84121),r=n(50974),i=n(67366),a=n(32170),s=n(25387),l=n(34573),c=n(19702),u=n(3219),d=n(55024);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t({type:s.Dj2}),m=()=>({type:s.G5w}),g=e=>({type:s.kt4,enabled:e}),v=()=>({type:s.GW4}),y=e=>({type:s.mqf,preset:e}),b=()=>({type:s.tLW}),w=e=>({type:s.tS$,preset:e}),S=()=>({type:s.g30}),E=e=>({type:s.GXR,preset:e}),P=()=>({type:s.J7J}),x=e=>({type:s.yPS,preset:e}),D=()=>({type:s.m_C}),C=()=>({type:s.JyO}),k=()=>({type:s.NDs}),A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{signatureRect:null,signaturePageIndex:null,formFieldName:null};return f({type:s.Vu4},e)},O=()=>({type:s.S$y}),T=(e,t)=>()=>I(e,t),I=(e,t,n)=>({type:s.JS9,shapeClass:e,shapeInteractionMode:t,preset:n}),F=()=>({type:s.AIf}),M=e=>({type:s.cbv,preset:e}),_=()=>({type:s.TUA}),R=()=>({type:s.Dzg}),N=()=>({type:s.M3C}),L=()=>({type:s.tie}),B=(e,t)=>({type:s.ZDQ,preset:e,annotation:t}),j=()=>({type:s.B1n}),z=e=>({type:s.dEe,annotation:e}),K=()=>({type:s.iMs});function Z(e){return{type:s.IFt,formDesignMode:e}}function U(e){return{type:s.Gkm,measurementSnapping:e}}function V(e){return{type:s.G6t,scale:e}}function G(e){return{type:s.fwq,measurementPrecision:e}}function W(e){return{type:s.vkF,configurationCallback:e}}function q(e){return{type:s.SdX,scales:e}}function H(){return{type:s.aYj}}function $(){return{type:s.hpj}}function Y(){return{type:s.QYP}}function X(){return{type:s.zKF}}const J=()=>({type:s.MuN}),Q=()=>({type:s.xk1}),ee=()=>({type:s.tYC}),te=()=>({type:s.NAH}),ne=(e,t)=>({type:s.pnu,preset:e,annotation:t,isCallout:!0}),oe=(e,t)=>({type:s.pnu,preset:e,annotation:t}),re=()=>({type:s.KqR}),ie=()=>({type:s.R7l}),ae=()=>({type:s.Vpf}),se=()=>({type:s.eFQ}),le=()=>({type:s.L8n}),ce=e=>({type:s.VNM,editor:e}),ue=e=>({type:s.tPZ,width:e}),de=e=>({type:s.u9b,zoomStep:e}),pe=e=>({type:s.Ce5,callback:e}),fe=e=>({type:s.WtY,transformClientToPage:e});function he(e){return{type:s.rWQ,layoutMode:e}}function me(e){return{type:s.b0l,scrollMode:e}}function ge(e){return{type:s._TO,showSignatureValidationStatus:e}}function ve(e){return{type:s._n_,scrollElement:e}}function ye(e){return{type:s.bxr,spreadSpacing:e}}function be(e){return{type:s._ko,pageSpacing:e}}function we(e){return{type:s.FHt,keepFirstSpreadAsSinglePage:e}}function Se(e){return{type:s.ht3,viewportPadding:e}}function Ee(e){return{type:s.NfO,readOnlyEnabled:e}}function Pe(){return{type:s.Xlm}}function xe(){return{type:s.cyk}}function De(){return{type:s.KYU}}function Ce(){return{type:s.Nl1}}function ke(){return{type:s.L9g}}function Ae(){return{type:s.Dl4}}function Oe(){return{type:s.GfR}}function Te(e){return{type:s.iQZ,features:e}}function Ie(e){return{type:s.JQC,signatureFeatureAvailability:e}}function Fe(e){return t=>{t({type:s.hv0,mode:e}),t((0,l.vR)())}}function Me(e){return{type:s.ZbY,editableAnnotationTypes:e}}function _e(e){return{type:s.uFU,isEditableAnnotation:e}}function Re(e,t){return{type:s.ArU,editableAnnotationTypes:e,isEditableAnnotation:t}}function Ne(e){return{type:s.Q2U,isEditableComment:e}}const Le=()=>(e,t)=>{e(Fe(c.f.ANNOTATIONS));const n=t();for(let e=0;easync(e,t)=>{e(Fe(c.f.DOCUMENT_OUTLINE));const n=t();if(n.documentOutlineState.elements)return;(0,r.kG)(n.backend);const o=await n.backend.getDocumentOutline();e((0,a.o)(o))};function ze(){return Fe(c.f.THUMBNAILS)}function Ke(){return Fe(c.f.CUSTOM)}function Ze(){return{type:s.hv0,mode:null}}function Ue(e){return{type:s.eI4,placement:e}}function Ve(e){return{type:s.bP3,sidebarOptions:e}}function Ge(e){return{type:s.dVW,locale:e}}function We(){return{type:s.RTr}}function qe(e){return{type:s.heZ,group:e}}function He(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:s.hlI,annotationCreatorName:e,immutable:t}}const $e=()=>({type:s.YIz}),Ye=()=>({type:s.K26}),Xe=e=>({type:s.$VE,interactionMode:e}),Je=()=>({type:s.yrz});function Qe(){return{type:s.Hbz}}function et(){return{type:s.sYK}}const tt=e=>({type:s.fAF,customRenderers:e});function nt(){return{type:s.pNz}}function ot(){return{type:s.bV3}}function rt(){return{type:s.EpY}}function it(){return{type:s.bui}}function at(e){return{type:s.vVk,previewRedactionMode:e}}function st(e){return async(t,n)=>{const{viewportState:o,eventEmitter:a,documentComparisonState:s}=n();if(e){const n={start:{},end:{}};n.start.promise=new Promise(((e,t)=>{n.start.resolve=e,n.start.reject=t})),n.end.promise=new Promise(((e,t)=>{n.end.resolve=e,n.end.reject=t})),(0,i.dC)((()=>{t((0,u.nr)(o.set("documentComparisonMode",f(f({},e),{},{completion:n})))),t(lt({referencePoints:[],autoCompare:e.autoCompare,isResultFetched:!1,currentTab:e.autoCompare?null:d.Q.documentA,documentKey:d.Q.documentA,previousViewportState:{zoomMode:o.zoomMode,zoomLevel:o.zoomLevel,scrollPosition:o.scrollPosition,currentPageIndex:o.currentPageIndex,pageSizes:o.pageSizes}}))})),a.emit("documentComparisonUI.start",e)}else if(o.documentComparisonMode){const{completion:e}=o.documentComparisonMode;try{e.start.resolve(),await e.end.promise,(0,i.dC)((()=>{t((0,u.nr)(o.set("documentComparisonMode",null).merge(s.previousViewportState))),t(lt(null))})),a.emit("documentComparisonUI.end")}catch(e){throw new r.p2(e.message)}}}}function lt(e){return{type:s.KA1,documentComparisonState:e}}function ct(e){return{type:s.D5x,a11yStatusMessage:e}}function ut(){return{type:s.JRS}}function dt(){return{type:s.Gox}}function pt(e){return{type:s.rpU,lastToolbarActionUsedKeyboard:e}}function ft(){return{type:s.MYU}}function ht(){return{type:s.mbD}}function mt(){return{type:s.wog}}function gt(){return{type:s.UL9}}function vt(e){return{type:s.IyB,instance:e}}function yt(e){return{type:s.eJ4,customUIStore:e}}const bt=()=>({type:s.qKG}),wt=e=>({type:s.oZW,multiAnnotationsUsingShortcut:e}),St=()=>({type:s.odo}),Et=e=>({type:s.FQb,annotationsIds:e}),Pt=e=>({type:s.bzW,groupId:e}),xt=(e,t)=>({type:s.b4I,annotationId:e,groupId:t}),Dt=e=>({type:s.tzG,customFontsReadableNames:e}),Ct=()=>({type:s.Vje}),kt=()=>({type:s.XTO})},14012:(e,t,n)=>{"use strict";n.d(t,{Bm:()=>p,qZ:()=>d,rJ:()=>m,sr:()=>f,uT:()=>h});var o=n(67366),r=n(25387),i=n(70006),a=n(96114),s=n(38858),l=n(63738),c=n(20234),u=n(92234);function d(e,t){return{type:r.BS3,reason:e,progress:t}}function p(){return{type:r.nmm}}function f(e){return{type:r.zZV,reason:e}}function h(e){return{type:r.Ty$,resolvePassword:e}}function m(e){let{attemptedUnlockViaModal:t,hasPassword:n,features:d,signatureFeatureAvailability:p,permissions:f,documentInfo:h,formJSON:m,annotationManager:g,bookmarkManager:v,formFieldManager:y,formFieldValueManager:b,commentManager:w,changeManager:S,minSearchQueryLength:E,documentHandle:P,allowedTileScales:x,pageKeys:D}=e;return(e,C)=>{const{searchState:k,documentHandle:A,features:O,signatureFeatureAvailability:T}=C();(0,o.dC)((()=>{x&&e(function(e){return{type:r.iZ1,allowedTileScales:e}}(x)),t&&e({type:r.hC8}),e(function(e){return{type:r.poO,hasPassword:e}}(n)),d&&0===O.size&&e((0,l.GL)(d)),p&&!T&&e((0,l.sY)(p)),e((0,s.at)(f)),A&&A!==P&&e({type:r.obk}),e((0,s.GO)(h,D)),m&&e((0,a.Qi)(m)),e((0,u.QQ)()),e(function(e){return{type:r.rxv,annotationManager:e}}(g)),e(function(e){return{type:r.Hrp,bookmarkManager:e}}(v)),e(function(e){return{type:r.oj5,formFieldManager:e}}(y)),e(function(e){return{type:r.GHc,formFieldValueManager:e}}(b)),null!=w&&e(function(e){return{type:r.UII,commentManager:e}}(w)),e(function(e){return{type:r.gbd,changeManager:e}}(S)),"number"==typeof E&&e((0,i.j8)(k.set("minSearchQueryLength",E))),e((0,c.kE)(P))}))}}},38151:(e,t,n)=>{"use strict";n.d(t,{$t:()=>A,C0:()=>x,FD:()=>g,Hv:()=>_,Ij:()=>C,Mq:()=>O,O2:()=>T,Ow:()=>y,PZ:()=>k,Pq:()=>D,RL:()=>v,SF:()=>P,Yg:()=>E,Zv:()=>w,gY:()=>p,lx:()=>F,qt:()=>m,rO:()=>j,sC:()=>b,u:()=>B,u8:()=>f,um:()=>L,uy:()=>M,v2:()=>h,yy:()=>S});var o=n(67366),r=n(25387),i=n(97413),a=n(30761),s=n(96114),l=n(72643),c=n(68218),u=n(34573),d=n(12671);const p=async(e,t)=>{const{backend:n,contentEditorSession:i}=t();i.sessionId>0&&await(null==n?void 0:n.contentEditorExit()),await(null==n?void 0:n.contentEditorEnter()),(0,o.dC)((()=>{e((0,u.fz)()),e({type:r.MGL})}))},f=async(e,t)=>{const{backend:n}=t();await(null==n?void 0:n.contentEditorExit()),(0,o.dC)((()=>{e({type:r.Qm9}),e(E(!1))}))};const h=(e,t,n,o,r)=>N(e,t,(e=>e.contentEditorSetTextBlockCursor(t,n,o,r))),m=(e,t,n,o,r)=>N(e,t,(e=>e.contentEditorInsertTextBlockString(t,n,o,r))),g=(e,t,n,o,r)=>N(e,t,(e=>e.contentEditorMoveTextBlockCursor(t,n,o,r))),v=(e,t,n,o)=>N(e,t,(e=>e.contentEditorDeleteTextBlockString(t,n,o))),y=(e,t,n,o)=>N(e,t,(e=>e.contentEditorSetTextBlockSelection(t,n,o))),b=(e,t,n,o,r,i)=>N(e,t,(e=>e.contentEditorSetTextBlockSelectionRange(t,n,o,r,i))),w=(e,t,n)=>N(e,t,(e=>e.contentEditorTextBlockUndo(t,n))),S=(e,t,n)=>N(e,t,(e=>e.contentEditorTextBlockRedo(t,n))),E=e=>({type:r.bOH,isVisible:e}),P=(e,t)=>({type:r.joZ,pageIndex:e,textBlockId:t}),x=(e,t)=>({type:r.xhM,pageIndex:e,textBlockId:t}),D=e=>{e({type:r.fQw})},C=(e,t)=>{e({type:r.Y4});const n=t().contentEditorSession;e(function(e){return async(t,n)=>{const{backend:o,features:r,annotations:l,isAPStreamRendered:c}=n();(0,i.k)(o),o.cancelRequests(),await o.contentEditorSaveAndReload(e);const u=await o.runPDFFormattingScriptsFromWidgets(l,null,c);await(0,a.jX)(t,n,{features:r}),u.length&&t((0,s.bt)({changes:u}))}}((0,l.Gp)(n))),e(f)},k=e=>{let{fixpointValue:t,newWidth:n}=e;return async(e,o)=>{const a=o(),{backend:s}=a;(0,i.k)(s);const{textBlockInteractionState:l}=a.contentEditorSession;if((null==l?void 0:l.state)!==c.FP.Selected)return;const{pageIndex:u,textBlockId:p}=l;e({type:r.ciU,pageIndex:u,textBlockId:p,fixpointValue:t,newWidth:n});const f=(0,c.aT)(u,p)(o());(0,i.k)(f),await s.contentEditorLayoutTextBlock(p,null,null,(0,d.hH)(f)).then((t=>e({type:r.VOt,pageIndex:u,textBlockId:p,updateInfo:t}))).catch()}},A=e=>{let{anchor:t,pageIndex:n=null,textBlockId:o=null,isKeyboardMove:a}=e;return async(e,s)=>{const l=s(),{backend:u}=l;if((0,i.k)(u),null===n||!o){const{textBlockInteractionState:e}=l.contentEditorSession;if(({pageIndex:n,textBlockId:o}=e),(null==e?void 0:e.state)===c.FP.Active)return}e({type:r.fLm,pageIndex:n,textBlockId:o,anchor:t,isKeyboardMove:a});const p=(0,c.aT)(n,o)(s());(0,i.k)(p),await u.contentEditorLayoutTextBlock(o,null,null,(0,d.hH)(p)).then((t=>e({type:r.VOt,pageIndex:n,textBlockId:o,updateInfo:t}))).catch()}},O=e=>(t,n)=>{const o=n(),{backend:a}=o;(0,i.k)(a);const{textBlockInteractionState:s}=o.contentEditorSession;(0,i.k)((null==s?void 0:s.state)===c.FP.Active);const l=(0,c.aT)(s.pageIndex,s.textBlockId)(o);if(l)if(l.selection)a.contentEditorTextBlockApplyFormat(s.textBlockId,null,e,(0,d.hH)(l)).then((e=>{t({type:r.VOt,pageIndex:s.pageIndex,textBlockId:s.textBlockId,updateInfo:e})}));else{let n=l.modificationsCharacterStyle.fontRef.faceRef;e.family&&(n=n.set("family",e.family)),null!=e.bold&&(n=n.setIn(["variant","bold"],e.bold)),null!=e.italic&&(n=n.setIn(["variant","italic"],e.italic)),t({type:r.Ebp,pageIndex:s.pageIndex,textBlockId:s.textBlockId,faceRef:n,color:e.color,size:e.size})}},T=async(e,t)=>{e(I());const{backend:n}=t();(0,i.k)(n);const o=await n.contentEditorGetAvailableFaces();e(R(o))},I=()=>({type:r.U7k}),F=(e,t)=>({type:r.Han,tooltipRect:e,fontFace:t}),M=e=>async t=>{new Promise((n=>{setTimeout((()=>{e.aborted||t({type:r.WmI}),n()}),100)}))},_=e=>({type:r.nI6,abortController:e}),R=e=>({type:r.ZgW,faceList:e}),N=(e,t,n)=>async(o,a)=>{const{backend:s}=a();(0,i.k)(s),o({type:r.HYy});const l=await n(s);o({type:r.VOt,pageIndex:e,textBlockId:t,updateInfo:l})},L=async(e,t)=>{const n=t(),{backend:a,contentEditorSession:s}=n;(0,i.k)(a);const{textBlockInteractionState:l}=s;(0,i.k)((null==l?void 0:l.state)===c.FP.Selected||(null==l?void 0:l.state)===c.FP.Active);const{pageIndex:u,textBlockId:p}=l,f=(0,c.aT)(u,p)(t());(0,i.k)(f);const h=(0,d.hH)(f);(0,o.dC)((()=>{e(y(u,p,"everything",h)),e(v(u,p,"forward",h)),e({type:r.snK,pageIndex:u,textBlockId:p})}))},B=e=>({type:r.teI,mode:e}),j=(e,t)=>async(n,a)=>{const{backend:s}=a();(0,i.k)(s),n({type:r.HYy});const l=await s.contentEditorCreateTextBlock(e);l.textBlock.modificationsCharacterStyle.fontRef.size=16;const{id:c,textBlock:{maxWidth:u,alignment:d,lineSpacingFactor:p,modificationsCharacterStyle:f}}=l,h=await s.contentEditorLayoutTextBlock(c,null,null,{maxWidth:u,alignment:d,lineSpacingFactor:p,modificationsCharacterStyle:f});(0,o.dC)((()=>{n({type:r.uo5,pageIndex:e,initialTextBlock:l,anchor:t.set("y",t.y-h.contentRect.offset.y/2)}),n({type:r.VOt,pageIndex:e,textBlockId:c,updateInfo:h})}))}},41194:(e,t,n)=>{"use strict";n.d(t,{Y:()=>l,e:()=>s});var o=n(50974),r=n(30761),i=n(25387),a=n(96114);function s(e,t,n,i){return async(s,l)=>{const{backend:c,features:u,pages:d}=l();try{(0,o.kG)(c),c.cancelRequests();const n=await c.signDocumentAndReload(e,t);if(await(0,r.jX)(s,l,{features:u,pageKeys:d.map((e=>e.pageKey))}),n&&"STANDALONE"===c.type){const e=await c.runPDFFormattingScripts([n],!1);e.length>0&&s((0,a.bt)({changes:e,isReloading:!0}))}}catch(e){return i(e)}l().eventEmitter.emit("document.change",[]),n()}}function l(e){return{type:i.lRe,digitalSignatures:e}}},20234:(e,t,n)=>{"use strict";n.d(t,{KY:()=>p,NV:()=>f,b_:()=>u,kE:()=>d});var o=n(50974),r=n(30761),i=n(25387),a=n(96114),s=n(2810),l=n(33320),c=n(18146);function u(e,t,n){return async(i,l)=>{const{backend:u,features:d,pages:p,annotations:f,isAPStreamRendered:m}=l();(0,o.kG)(u);try{const t=e.map(s.kg);u.cancelRequests(),await u.applyOperationsAndReload(t);const n=await u.runPDFFormattingScriptsFromWidgets(f,null,m);await(0,r.jX)(i,l,{features:d,pageKeys:h(p.map((e=>e.pageKey)),e,f.filter((e=>e instanceof c.Z)))}),n.length&&i((0,a.bt)({changes:n}))}catch(e){return n(e)}l().eventEmitter.emit("document.change",e),t()}}function d(e){return{type:i.S0t,documentHandle:e}}function p(e){return{type:i.YS$,isDocumentHandleOutdated:e}}function f(e,t){return async(n,i)=>{const{backend:s,features:l,annotations:c,isAPStreamRendered:u}=i();(0,o.kG)(s);try{s.cancelRequests(),await s.reloadDocument();const e=await s.runPDFFormattingScriptsFromWidgets(c,null,u);await(0,r.jX)(n,i,{features:l}),e.length&&n((0,a.bt)({changes:e}))}catch(e){return t(e)}i().eventEmitter.emit("document.change",[]),e()}}function h(e,t,n){return t.reduce(((e,t)=>{switch(t.type){case"addPage":return e.insert("beforePageIndex"in t?t.beforePageIndex:t.afterPageIndex+1,(0,l.C)());case"movePages":{const n=e.filter(((e,n)=>t.pageIndexes.includes(n)));return e.map(((e,n)=>t.pageIndexes.includes(n)?null:e)).splice("beforePageIndex"in t?t.beforePageIndex:t.afterPageIndex+1,0,...n.toArray()).filter((e=>e))}case"removePages":return e.filter(((e,n)=>!t.pageIndexes.includes(n)));case"keepPages":return e.filter(((e,n)=>t.pageIndexes.includes(n)));case"duplicatePages":return e.flatMap(((e,n)=>t.pageIndexes.includes(n)?[e,(0,l.C)()]:[e]));case"cropPages":case"rotatePages":case"flattenAnnotations":return e.map(((e,n)=>!t.pageIndexes||t.pageIndexes.includes(n)?(0,l.C)():e));case"applyRedactions":{const t=n.map((e=>e.pageIndex)).toSet();return e.map(((e,n)=>t.includes(n)?(0,l.C)():e))}case"updateMetadata":case"setPageLabel":return e;case"importDocument":if(t.treatImportedDocumentAsOnePage){const n="beforePageIndex"in t?t.beforePageIndex:t.afterPageIndex+1;return e.map(((e,t)=>t(0,l.C)()));default:throw new Error(`Operation ${t} is not implemented`)}}),e)}},32170:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i,o:()=>r});var o=n(25387);function r(e){return{type:o.Oh4,outline:e}}function i(e){return{type:o.Whn,level:e}}},96114:(e,t,n)=>{"use strict";n.d(t,{bt:()=>Z,kW:()=>U,zq:()=>T,TD:()=>M,Wh:()=>G,HE:()=>F,M$:()=>R,h4:()=>B,el:()=>L,ul:()=>K,yM:()=>W,xW:()=>I,xh:()=>j,Qi:()=>O,r$:()=>N,V6:()=>q,vK:()=>V,C2:()=>_});var o=n(67366),r=n(50974),i=n(35369),a=n(73935),s=n(82481),l=n(25387),c=n(2810),u=n(69939),d=n(86920),p=n(37676),f=n(16126),h=n(25644),m=n(97333),g=n(97528),v=n(35129),y=n(84121),b=n(76154),w=n(37756);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function E(e){for(var t=1;t(0,r.wp)(i.formatMessage(t,null==n?void 0:n.reduce(((e,t,n)=>E(E({},e),{},{[`arg${n}`]:t})),{})))),0)}var x=n(63738),D=n(20792),C=n(76192),k=n(95651),A=n(25904);function O(e){return{type:l.iJ2,formJSON:e}}function T(e){return{type:l.Ui_,formFieldValues:e}}function I(e){return{type:l.m3$,formFieldValues:e}}function F(e){return{type:l.u7V,formFieldValuesIds:e}}function M(e){return{type:l.zGM,formFields:e}}function _(e){return{type:l.Wyx,formFields:e}}function R(e){return{type:l.D_w,formFieldsIds:e}}function N(e){return{type:l.TYu,onWidgetCreationStartCallback:e}}function L(){return e=>{e((0,x.LE)(!0)),e((0,x.UF)(D.A.FORM_CREATOR))}}function B(){return e=>{e((0,x.LE)(!1)),e((0,x.XX)())}}function j(e,t){return(n,a)=>{const l=e.map((e=>new s.KD({name:e.name,value:e.value,optionIndexes:e.optionIndexes,isFitting:e.isFitting}))),c=(0,i.aV)(l),{backend:u,formFields:d,formFieldValueManager:p,annotations:h,viewportState:{zoomLevel:m}}=a();if((0,r.kG)(u),(0,r.kG)(p),g.Ei.PDF_JAVASCRIPT&&"STANDALONE"===u.type)n(K(c,t));else{const e=[];(0,o.dC)((()=>{c.forEach((t=>{let o;const a=new Promise((e=>{o=e}));e.push(a),(0,f.Ay)({getState:()=>({formFields:d,annotations:h,backend:u}),originalFormFields:(0,i.D5)({[t.name]:d.get(t.name)}),formFieldValues:(0,i.aV)(l),callback:e=>{if(!e.includes(t.name)){const e=d.get(t.name);(0,r.kG)(e);const o=e.annotationIds.reduce(((e,t)=>{const n=h.get(t);return n instanceof s.x_?e.push(n):e}),(0,i.aV)());if(e.multiLine){const r=(0,A.$Z)(o.first(),e.value,m);n(I((0,i.aV)([t.set("isFitting",r)])))}else n(I((0,i.aV)([t])))}},resolve:o}),p.updateObject(t)}))})),Promise.all(e).then((()=>{null==t||t()})).catch((e=>{throw e}))}}}let z=Promise.resolve();function K(e,t){return async(n,o)=>{const l=z;let c=()=>{};z=new Promise((function(e){c=e})),await l;try{const{backend:t}=o();if((0,r.kG)(t),"STANDALONE"!==t.type||!g.Ei.PDF_JAVASCRIPT)return;const l=await(0,m.Vs)(t.evalFormValuesActions(e),1e4),u=l.filter((e=>e.change_type===d.zR&&"pspdfkit/form-field-value"===e.object.type)),p=u.map((e=>e.object.name)),h=(0,i.aV)(u.map((e=>new s.KD({name:e.object.name,value:Array.isArray(e.object.value)?(0,i.aV)(e.object.value):e.object.value,optionIndexes:e.object.optionIndexes})))),v=e.map((e=>e.name)).toArray().filter((e=>p.indexOf(e)<0)),{formFields:y}=o(),b=(0,f.Qg)(y.filter(((e,t)=>v.indexOf(t)>=0))),w=y.filter((t=>e.find((e=>e.name===t.name))||b.find((e=>e.name===t.name))||p.includes(t.name))),S=e.map((e=>h.find((t=>t.name===e.name))||e)).concat(h.filter((t=>!e.find((e=>e.name===t.name)))));(0,f.Ay)({getState:o,originalFormFields:w,formFieldValues:S,callback:t=>{e.size>0&&(0,a.flushSync)((function(){n(I(e))})),b.size>0&&n(I(b)),n(Z({changes:l,unchangedFormFieldValues:t}))}})}catch(e){}finally{c()}null==t||t()}}function Z(e){let{changes:t,unchangedFormFieldValues:n=[],resolve:a,reject:s,isReloading:m=!1}=e;return(e,g)=>{const y=g(),{annotations:b,formFields:w,formFieldManager:S,backend:E,autoSaveMode:x}=y,D=y.formattedFormFieldValues;let k,A=(0,i.aV)(),O=y.editingFormFieldValues;(0,o.dC)((function(){null==E||E.setFormJSONUpdateBatchMode(!0).catch((e=>{null==s||s(e)})),A=(0,i.aV)().withMutations((n=>{k=D.withMutations((o=>{t.forEach((t=>{let{change_type:i,object:a}=t;switch(i){case d.uV:case d.zR:if("pspdfkit/form-field-value"===a.type){const e=(0,c.u9)(a);n.push(e),"string"==typeof a.formattedValue&&o.set(e.name,a.formattedValue),"string"==typeof a.editingValue&&(O=O.set(e.name,a.editingValue))}else if(a.type.startsWith("pspdfkit/form-field/")){if(!S)return;const t=(0,c.IN)(a.id,a,{permissions:a.permissions,group:a.group});w.has(t.name)?e(V(t)):e(U(t))}else try{const t=(0,c.vH)(a.id,a);b.has(t.id)?e((0,u.FG)(t)):e((0,u.$d)(t))}catch(e){(0,r.ZK)(`Form actions: unable to apply change of type "${i}"\n\n${a}\n\n${e.message}`)}break;case d.co:if(a.type.startsWith("pspdfkit/form-field/")){const t=w.get(a.name);t?e(G(t)):(0,r.ZK)(`Form actions: unable to find FormField to delete with id "${a.id}".`)}else{const t=b.get(a.id);t?e((0,u.hQ)(t)):(0,r.ZK)(`Form actions: unable to find Annotation to delete with id "${a.id}".`)}break;case d.D2:switch(a.type){case"pspdfkit/javascript/effects/alert":{const{message:e}=a;if(e.startsWith(f.$Y)){const t=e.split("[")[1].split("]"),n=t[1].split(f.as);P(y.locale,v.A.dateValidationBadFormat,[t[0],n[1]])}else if(e.startsWith(f.sh)){const t=e.split("[")[1].split("]");P(y.locale,v.A.numberValidationBadFormat,[t[0]])}else(0,r.wp)(e);break}case"pspdfkit/javascript/effects/print":e((0,h.S0)());break;case"pspdfkit/javascript/effects/launchURL":var s;(null===(s=y.onOpenURI)||void 0===s?void 0:s.call(y,a.url,!1))&&(a.newFrame?(0,p.Z)(a.url):(0,p.l)(a.url));break;case"pspdfkit/javascript/effects/mail":{if(!a.to)break;let e=`mailto:${Array.isArray(a.to)?a.to.join(","):a.to}?`;const t=[];if(a.subject&&t.push(`subject=${encodeURIComponent(a.subject)}`),a.cc){const e=Array.isArray(a.cc)?a.cc.map((e=>encodeURIComponent(e))).join(";"):encodeURIComponent(a.cc);t.push(`cc=${e}`)}if(a.bcc){const e=Array.isArray(a.bcc)?a.bcc.map((e=>encodeURIComponent(e))).join(";"):encodeURIComponent(a.bcc);t.push(`bcc=${e}`)}a.message&&t.push(`body=${encodeURIComponent(a.message)}`),e+=t.join("&"),(0,p.Z)(e);break}case"pspdfkit/javascript/effects/importIcon":break;default:(0,r.ZK)(`Form actions: side effect "${a.type}" not supported.`)}break;case d.Q:break;default:(0,r.ZK)(`Form actions: change type "${i}" not supported.`)}}))}))}))}));const T=null==E?void 0:E.setFormJSONUpdateBatchMode(!1);let F=[];if(A.size>0){e(I(A)),k.size>0&&e(function(e){return{type:l.VK7,formattedFormFieldValues:e}}(k)),O.size>0&&e(function(e){return{type:l.yET,editingFormFieldValues:e}}(O));const{formFieldValueManager:t}=g();(0,r.kG)(t);let o=(0,i.l4)();F=A.filter((e=>!n.includes(e.name))).map((e=>{if(t.updateObject(e),m){const t=w.get(e.name);if(t){const e=t.annotationIds.map((e=>b.get(e))).filter(Boolean);o=o.concat((0,i.l4)(e.map((e=>e.pageIndex))))}}return x===C.u.DISABLED?Promise.resolve():t.ensureObjectSaved(e)})).toArray(),m&&o.size>0&&e({type:l.TG1,pageIndexes:o})}Promise.all([T,...F]).then((()=>{null==a||a()})).catch((e=>{null==s||s(e)}))}}function U(e){return(t,n)=>{const{formFields:o,formFieldManager:a}=n();if(o.get(e.name))throw new r.p2(`Cannot create form field: a form field with the name "${e.name}" already exists. Form field names must be unique.`);t(M((0,i.aV)([e]))),null==a||a.createObject(e)}}function V(e){return(t,n)=>{var o;const{formFields:a,annotations:s,backend:l}=n(),c=a.find((t=>t.id===e.id||t.name===e.name));if(!c)return void(0,r.ZK)("A form field that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this form field was skipped.");if(c.readOnly!==e.readOnly){const t=e.annotationIds.map((e=>s.get(e))).filter(Boolean);(0,k.CU)({formFields:a,backend:l},t,e)}const u=e.merge({value:c.value,values:c.values});t(_((0,i.aV)([u]))),null===(o=n().formFieldManager)||void 0===o||o.updateObject(u)}}function G(e){return(t,n)=>{var o;const r=n(),a=e.annotationIds.map((e=>r.annotations.get(e))).filter(Boolean);a.isEmpty()||(t((0,u.aF)(a.map((e=>null==e?void 0:e.id)).toSet())),a.forEach((e=>{var t;null===(t=r.annotationManager)||void 0===t||t.deleteObject(e)}))),t(R((0,i.l4)([e.id]))),null===(o=n().formFieldManager)||void 0===o||o.deleteObject(e)}}function W(e,t){return(n,o)=>{const i=H(o(),e,t).map((e=>{const{name:t}=e;let n;return e instanceof s.$o||e instanceof s.XQ?n=e.defaultValue:e instanceof s.Dz||e instanceof s.rF?n=e.defaultValues:e instanceof s.R0?n=null:(0,r.kG)(!1),new s.KD({name:t,value:n})}));g.Ei.PDF_JAVASCRIPT&&n(K(i)),n(I(i)),i.forEach((e=>{var t;null===(t=o().formFieldValueManager)||void 0===t||t.updateObject(e)}))}}function q(e){return(t,n)=>{var o;const a=n();let l,c=!1;if(null===(o=a.formFieldValueManager)||void 0===o||o.eventEmitter.emit("willSubmit",{preventDefault:()=>c=!0}),c)return;const{uri:u,fields:d,includeExclude:p,exportFormat:f,getMethod:h,submitPDF:m,xfdf:g}=e,v=(0,i.D5)(H(a,d,p).filter((e=>!e.noExport)).map((e=>{const{name:t}=e;return[t,e instanceof s.R0?null:void 0===e.value?e.values:e.value]})));if(f){const e=function(e){const t=[];return e.forEach(((e,n)=>{const o=encodeURIComponent(n);"string"==typeof e?t.push(`${o}=${encodeURIComponent(e)}`):null===e?t.push(`${o}=`):e instanceof i.aV&&e.forEach((e=>{t.push(`${o}[]=${encodeURIComponent(e)}`)}))})),t.join("&")}(v);if(h)l=Promise.resolve({uri:`${u}?${e}`,fetchOptions:{method:"GET"}});else{const t={headers:new Headers({"Content-Type":"application/x-www-form-urlencoded"}),method:"POST",body:e};l=Promise.resolve({uri:u,fetchOptions:t})}}else{if(!m)return g?void(0,r.vU)("XFDF Form submission not supported yet."):void(0,r.vU)("FDF Form submission not supported yet.");var y;l=null===(y=a.backend)||void 0===y?void 0:y.exportPDF({flatten:!0,incremental:!1}).then((e=>{const t={headers:new Headers({"Content-Type":"application/pdf"}),method:"POST",body:e};return{uri:u,fetchOptions:t}}))}l.then((e=>{let{uri:t,fetchOptions:n}=e;fetch(t,n).then((e=>{var t;null===(t=a.formFieldValueManager)||void 0===t||t.eventEmitter.emit("didSubmit",{response:e})}))})).catch((e=>{var t;e(`Form submission failed with the following error:\n\n${e}`),null===(t=a.formFieldValueManager)||void 0===t||t.eventEmitter.emit("didSubmit",{error:e})}))}}function H(e,t,n){let o;const r=e.formFields.keySeq().toSet();return o=t?n?r.subtract(t):r.intersect(t):r,e.get("formFields").valueSeq().filter((e=>o.includes(e.name))).toList()}},92234:(e,t,n)=>{"use strict";n.d(t,{KX:()=>w,QQ:()=>S,Yw:()=>b,ou:()=>P,pB:()=>y,z9:()=>E});var o=n(84121),r=n(35369),i=n(50974),a=n(25387),s=n(69939),l=n(39728),c=n(32125),u=n(95651),d=n(67699),p=n(51333),f=n(33320),h=n(96114);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;t{const{historyChangeContext:r}=o();n(v(e)),t(),n(v(r))}}function b(){return(e,t)=>{const{undoActions:n,annotations:o,isHistoryEnabled:m}=t();if(!m)throw new i.p2("Cannot undo: the Undo Redo history API is disabled.");if(0===n.size)throw new i.p2("Cannot undo: the Undo actions history is empty.");const v=n.last(),b=(0,l.kM)(v,o);e(y(d.j.HISTORY,(()=>{"create"===v.type?e(function(e){return function(t,n){const{historyIdsMap:o,backend:i}=n();let l=e.payload;const c=e.formField;if(e.restoreAPStream&&"STANDALONE"===(null==i?void 0:i.type)&&(l=l.set("APStreamCache",{attach:o.get(l.id)||l.id})),t((0,s.$d)(l)),c&&t((0,h.kW)(c)),l.isCommentThreadRoot&&e.comments){e.comments.map((t=>t.set("rootId",e.payload.id).set("id",(0,f.C)()))).forEach((e=>{t((0,p.Jr)(e))}))}e.restoreAPStream?t((0,s.ug)((0,r.D5)({[l.id]:l.pageIndex}))):t((0,s.GI)((0,r.D5)({[l.id]:l.pageIndex})));const u={type:"delete",payload:{id:l.id}};t({type:a.bVL,nextRedoAction:u})}}(v)):"update"===v.type?e(function(e){return function(t,n){const{annotations:o,historyIdsMap:d,backend:p}=n();let f=o.get(e.payload.id);!f&&e.deletedAnnotation&&(f=e.deletedAnnotation.set("id",(0,u.xc)()),t((0,s.$d)(f))),(0,i.kG)(f instanceof c.Z);let h=f.merge(g(g({},e.payload),{},{pdfObjectId:f.pdfObjectId,id:f.id}));e.restoreAPStream&&"STANDALONE"===(null==p?void 0:p.type)&&(h=h.set("APStreamCache",{attach:d.get(h.id)||h.id})),t((0,s.FG)(h)),e.restoreAPStream&&t((0,s.ug)((0,r.D5)({[h.id]:h.pageIndex})));const m={type:"update",payload:g(g({},(0,l.mZ)(h,f)),{},{id:f.id})};t({type:a.bVL,nextRedoAction:m}),t({type:a.tC1,oldId:d.get(e.payload.id)||e.payload.id,newId:f.id})}}(v)):"delete"===v.type?e(function(e){return function(t,n){const o=n(),{annotations:i,commentThreads:d,comments:p,historyIdsMap:f}=o,m=i.get(e.payload.id);if(!(m instanceof c.Z))return;t((0,s.hQ)(m));const g=(0,u.xc)(),v=(0,l.Yr)(m,g,d,p),y=(0,l.ax)(m,g,o);y&&t((0,h.M$)((0,r.l4)([y.id])));const b={type:"create",payload:m.merge(e.payload).set("id",g),comments:v,formField:y};t({type:a.bVL,nextRedoAction:b,oldId:e.payload.id}),t({type:a.tC1,oldId:f.get(e.payload.id)||e.payload.id,newId:g})}}(v)):(0,i.Rz)(v.type)})));const{annotations:w,eventEmitter:S}=t(),E=(0,l.FA)(v,w,v.payload.id);S.emit("history.undo",{before:b,after:E}),S.emit("history.change",{before:b,after:E,action:"undo"})}}function w(){return(e,t)=>{const{redoActions:n,annotations:o,isHistoryEnabled:r}=t();if(!r)throw new i.p2("Cannot redo: the Undo Redo history API is disabled.");if(0===n.size)throw new i.p2("Cannot redo: the Redo actions history is empty.");const m=n.last(),v=(0,l.kM)(m,o);e(y(d.j.HISTORY,(()=>{"create"===m.type?e(function(e){return t=>{const n=e.payload,o=e.formField;if(t((0,s.$d)(n)),n.isCommentThreadRoot&&e.comments){e.comments.map((e=>e.set("rootId",n.id).set("id",(0,f.C)()))).forEach((e=>{t((0,p.Jr)(e))}))}o&&t((0,h.kW)(o));const r={type:"delete",payload:{id:n.id}};t({type:a.iwn,nextUndoAction:r})}}(m)):"update"===m.type?e(function(e){return(t,n)=>{const{annotations:o}=n(),r=o.get(e.payload.id);(0,i.kG)(r instanceof c.Z);const d=r.merge(g(g({},e.payload),{},{id:r.id})),p=(0,u.pe)(n,r,(()=>{t((0,s.FG)(d))})),f={type:"update",payload:(0,l.mZ)(d,r),restoreAPStream:p};t({type:a.iwn,nextUndoAction:f})}}(m)):"delete"===m.type&&e(function(e){return(t,n)=>{const o=n(),{historyIdsMap:r,annotations:d,commentThreads:p,comments:f}=o,h=d.get(e.payload.id);(0,i.kG)(h instanceof c.Z);const m=(0,u.pe)(n,h,(()=>{t((0,s.hQ)(h))})),g=(0,u.xc)(),v=(0,l.Yr)(h,g,p,f),y=(0,l.ax)(h,g,o),b={type:"create",payload:h.set("id",g),restoreAPStream:m,comments:v,formField:y};t({type:a.iwn,nextUndoAction:b,oldId:e.payload.id}),t({type:a.tC1,oldId:r.get(e.payload.id)||e.payload.id,newId:g})}}(m))})));const{annotations:b,eventEmitter:w}=t(),S=(0,l.FA)(m,b,m.payload.id);w.emit("history.redo",{before:v,after:S}),w.emit("history.change",{before:v,after:S,action:"redo"})}}function S(){return(e,t)=>{e({type:a._Qf});const{backend:n,eventEmitter:o}=t();"STANDALONE"===(null==n?void 0:n.type)&&n.clearAPStreamCache(),o.emit("history.clear")}}function E(){return{type:a._33}}function P(){return{type:a.wG7}}},44763:(e,t,n)=>{"use strict";n.d(t,{C0:()=>h,Ik:()=>l,Se:()=>u,U7:()=>f,VO:()=>c,Xh:()=>d,eO:()=>s,v9:()=>p});var o=n(50974),r=n(30570),i=n(63738),a=n(25387);function s(e){return{type:a.$8O,measurementToolState:e}}function l(e){return{type:a.UP4,hintLines:e}}function c(e){return{type:a.Zt9,secondaryMeasurementUnit:e}}function u(e){return{type:a.VNu,activeMeasurementScale:e}}function d(e){return{type:a.wgG,isCalibratingScale:e}}const p=e=>async(t,n)=>{const r=n();(0,o.kG)(r.backend);const{backend:i,secondaryMeasurementUnit:a}=r;try{e&&(await(null==i?void 0:i.setSecondaryMeasurementUnit(e)),t(c(e))),a&&!e&&(await(null==i?void 0:i.setSecondaryMeasurementUnit(null)),t(c(null)))}catch(e){(0,o.ZK)(`Failed to set secondary measurement unit: ${e}.`),t(c(a))}},f=(e,t)=>async(n,a)=>{const s=a();(0,o.kG)(s.backend);const{backend:l,measurementScales:c}=s,u="STANDALONE"===l.type;(0,o.kG)(c);const{added:d,deleted:p}=(0,r.Rc)(c,e),f=p.map((async e=>{u&&await(null==l?void 0:l.removeMeasurementScale(e));(null==t?void 0:t.find((t=>t.prevScale===e)))||await(0,r.fH)({deletedScale:e,getState:a,dispatch:n})})),h=d.map((async e=>{u&&await(null==l?void 0:l.addMeasurementScale(e))})),m=null==t?void 0:t.map((async t=>{await(0,r.Hg)({scale:e[t.index],oldScale:t.prevScale,getState:a,dispatch:n})}));Promise.all([f,h,m]).then((async()=>{u||(d.length>0?await(null==l?void 0:l.addMeasurementScale(d[0])):p.length>0&&await(null==l?void 0:l.removeMeasurementScale(p[0]))),n((0,i.RN)(e))}))},h=e=>async(t,n)=>{const r=n();(0,o.kG)(r.backend);const{backend:a,measurementScales:s}=r;await(null==a?void 0:a.addMeasurementScale(e)),t((0,i.RN)(s?[...s,e]:[e]))}},3219:(e,t,n)=>{"use strict";n.d(t,{IT:()=>a,Ic:()=>p,Pt:()=>E,U1:()=>b,YA:()=>s,Yr:()=>S,_R:()=>g,ac:()=>P,du:()=>y,dx:()=>d,fz:()=>i,kN:()=>c,kr:()=>h,lO:()=>v,lt:()=>l,nr:()=>f,vG:()=>m,vP:()=>u,vc:()=>w});var o=n(25387),r=n(51333);const i=()=>({type:o.wtk}),a=()=>({type:o.mE7}),s=e=>({type:o.RxB,pageIndex:e}),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:o.mLh,scrollPosition:e,lastScrollUsingKeyboard:t}},c=(e,t)=>({type:o.g4f,pageIndex:e,rect:t}),u=(e,t)=>({type:o.Lyo,pageIndex:e,rect:t});function d(e,t){return n=>{n({type:o.xYE,viewportRect:e,isTriggeredByOrientationChange:t}),n((0,r.$z)())}}const p=(e,t)=>({type:o.syg,zoomLevel:e,scrollPosition:t}),f=e=>({type:o.ZGb,viewportState:e}),h=()=>({type:o.UFs}),m=()=>({type:o.RCc}),g=()=>({type:o.MfE}),v=()=>({type:o.BWS}),y=()=>({type:o.QU3}),b=e=>({type:o.lD1,degCW:e}),w=()=>({type:o.kRo}),S=()=>({type:o.UFK}),E=e=>({type:o.D1d,width:e}),P=e=>({type:o.WsN,shouldDisable:e})},38858:(e,t,n)=>{"use strict";n.d(t,{GO:()=>r,Lv:()=>a,at:()=>s,uM:()=>i});var o=n(25387);function r(e,t){return{type:o.ME7,payload:e,pageKeys:t}}function i(e){return{type:o.dCo,payload:e}}const a=(e,t)=>({type:o.GZZ,pageIndex:e,textLines:t});function s(e){return{type:o.fnw,backendPermissions:e}}},25644:(e,t,n)=>{"use strict";n.d(t,{xF:()=>T,WQ:()=>O,S0:()=>F});var o=n(35369),r=n(50974),i=n(91859),a=n(80440),s=n(82481),l=n(36095);const c=l.Ni;function u(e,t,n){const o=i.nJ[n];let r=o>=i.nJ[a.g.LOW]&&c?i.nJ[a.g.MEDIUM]:o;t||(r=i.nJ[a.g.MEDIUM]);let l=e.scale(r).floor();return l.width>i.Qr&&l.width>l.height&&(l=new s.$u({width:i.Qr,height:Math.round(i.Qr*l.height/l.width)})),l.height>i.Qr&&l.height>l.width&&(l=new s.$u({width:Math.round(i.Qr*l.width/l.height),height:i.Qr})),[l,r]}const d=e=>{const t=e.scale(i.Ui);return new s.$u({width:Math.ceil(t.width),height:Math.floor(t.height)})};function p(e,t,n,o){const a=e.ownerDocument,l=a.createElement("div");l.id="print";const c=a.createElement("style");c.textContent=function(e){const t=`\n @page {\n size: ${e.width}pt ${e.height}pt;\n }\n\n \n @page {\n margin: 0;\n }`;return`\n @media print {\n \n * {\n ${f()}\n padding: 0 !important;\n margin: 0 !important;\n box-sizing: initial !important;\n display: none !important;\n visibility: hidden !important;\n }\n\n html, body {\n ${f()}\n height: 100% !important;\n width: 100% !important;\n display: block !important;\n visibility: visible !important;\n }\n\n \n\n body {\n background: transparent none !important;\n }\n\n #print, #print-container {\n ${f()}\n display: block !important;\n visibility: visible !important;\n height: 100% !important;\n }\n\n #print-container > div {\n ${f()}\n display: block !important;\n visibility: visible !important;\n position: relative !important;\n top: 0 !important;\n left: 0 !important;\n width: 1px !important;\n height: 1px !important;\n overflow: visible !important;\n page-break-after: always !important;\n page-break-inside: avoid !important;\n }\n\n #print-container canvas {\n ${f()}\n display: block !important;\n visibility: visible !important;\n }\n\n \n #print-container > .rotate90 {\n ${f()}\n display: block !important;\n visibility: visible !important;\n transform: rotate(90deg) !important;\n }\n\n \n #print-container > .rotateNegative90 {\n ${f()}\n display: block !important;\n visibility: visible !important;\n transform: translateY(${Math.abs(e.height-e.width)}pt) rotate(-90deg) !important;\n }\n\n \n @-moz-document url-prefix() {\n #print-container > .rotateNegative90 , #print-container > .rotate90 {\n margin-bottom: ${Math.abs(e.height-e.width)}pt !important;\n }\n }\n\n\n\n\n ${t}\n `}(function(e){const t=e.first();if(!t)return new s.$u({width:i.zA,height:i._2});let n=!1;const o=e.reduce(((e,t)=>{let{pageSize:o}=t;return o.width{const{rotation:r}=n.get(t)||{},i=a.createElement("div");if(i.classList.add("page"),o){e.width>e.height&&(1===r?i.classList.add("rotateNegative90"):i.classList.add("rotate90"))}i.appendChild(e),u.appendChild(i)})),l.appendChild(c),l.appendChild(u),e.appendChild(l),()=>{e.removeChild(l)}}function f(){return"animation: none 0s ease 0s 1 normal none running !important;\nbackface-visibility: visible !important;\nbackground: transparent none repeat 0 0/auto auto padding-box border-box scroll !important;\nborder: medium none currentColor !important;\nborder-collapse: separate !important;\nborder-image: none !important;\nborder-radius: 0 !important;\nborder-spacing: 0 !important;\nbottom: auto !important;\nbox-shadow: none !important;\nbox-sizing: content-box !important;\ncaption-side: top !important;\nclear: none !important;\nclip: auto !important;\ncolor: #000 !important;\ncolumns: auto !important;\ncolumn-count: auto !important;\ncolumn-fill: balance !important;\ncolumn-gap: normal !important;\ncolumn-rule: medium none currentColor !important;\ncolumn-span: 1 !important;\ncolumn-width: auto !important;\ncontent: normal !important;\ncounter-increment: none !important;\ncounter-reset: none !important;\ncursor: auto !important;\ndirection: ltr !important;\ndisplay: inline !important;\nempty-cells: show !important;\nfloat: none !important;\nfont-family: serif !important;\nfont-size: medium !important;\nfont-style: normal !important;\nfont-variant: normal !important;\nfont-weight: 400 !important;\nfont-stretch: normal !important;\nline-height: normal !important;\nheight: auto !important;\nhyphens: none !important;\nleft: auto !important;\nletter-spacing: normal !important;\nlist-style: disc outside none !important;\nmargin: 0 !important;\nmax-height: none !important;\nmax-width: none !important;\nmin-height: 0 !important;\nmin-width: 0 !important;\nopacity: 1 !important;\norphans: 2 !important;\noutline: medium none invert !important;\noverflow: visible !important;\noverflow-x: visible !important;\noverflow-y: visible !important;\npadding: 0 !important;\npage-break-after: auto !important;\npage-break-before: auto !important;\npage-break-inside: auto !important;\nperspective: none !important;\nperspective-origin: 50% 50% !important;\nposition: static !important;\nright: auto !important;\ntab-size: 8 !important;\ntable-layout: auto !important;\ntext-align: left !important;\ntext-align-last: auto !important;\ntext-decoration: none !important;\ntext-indent: 0 !important;\ntext-shadow: none !important;\ntext-transform: none !important;\ntop: auto !important;\ntransform: none !important;\ntransform-origin: 50% 50% 0 !important;\ntransform-style: flat !important;\ntransition: none 0s ease 0s !important;\nunicode-bidi: normal !important;\nvertical-align: baseline !important;\nvisibility: visible !important;\nwhite-space: normal !important;\nwidows: 2 !important;\nwidth: auto !important;\nword-spacing: normal !important;\nz-index: auto !important;\nall-initial !important;"}n(75376);var h=n(63738),m=n(16126),g=n(55615),v=n(95651),y=n(39511),b=n(97413);const w={macos:{blink:!0,webkit:!0},windows:{blink:!0,trident:!0},ios:{webkit:!0},android:{},linux:{blink:!0},unknown:{}};let S=null,E=null,P=null,x=null;function D(){P&&(clearTimeout(P),P=null),x&&(clearTimeout(x),x=null),S&&S.parentNode&&(S.parentNode.removeChild(S),S=null),E&&E()}var C=n(25387),k=n(19815);function A(){return{type:C.skc}}function O(){return{type:C.snh}}function T(){return{type:C._uU}}function I(e){const t="number"==typeof e?e:null;return{type:C.qV6,currentPage:t}}function F(){let{mode:e,excludeAnnotations:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(n,o)=>{e||(e=o().printMode);return(e===y.X.DOM?_:R)(n,o,t)}}let M=()=>{};async function _(e,t,n){e((0,h.X2)()),e(I(0)),e(A());const r=[];let i=t(),a=[];function c(){a.forEach((e=>{e()})),a=[]}M(),M=c;for(const{pageIndex:p,pageSize:h}of i.pages){if(!t().isPrinting)return M(),M=()=>{},void e(I(null));const[g,S]=u(h,(0,k.jb)(i),i.printQuality);try{var f;await(null===(f=i.annotationManager)||void 0===f?void 0:f.loadAnnotationsForPageIndex(p)),i=t();const c=i.pages.get(p);let u;if((0,b.k)(c&&i.backend),n)u=i.backend.renderTile(p,g,new s.UL({width:g.width,height:g.height}),!0,!0).promise;else{var y,w;const{annotationIds:e}=c,t=e.map((e=>i.annotations.get(e))).filter(Boolean).filter((e=>(0,v.x2)(e)&&(0,v.d)(e)&&!(e instanceof s.Jn||e instanceof s.On&&i.commentThreads.has(e.id)))).toList(),n=i.formFields.filter((e=>e.annotationIds.some((e=>{const t=i.annotations.get(e);return!(!t||t.pageIndex!==p)})))),r=(0,m.Qg)(n),a=t.reduce(((e,t)=>e.merge((0,v.Dc)(i,t))),(0,o.D5)()),l=null===(y=i.digitalSignatures)||void 0===y||null===(w=y.signatures)||void 0===w?void 0:w.filter((e=>n.some((t=>{let{name:n}=t;return n===e.signatureFormFQN}))));u=i.backend.renderTile(p,g,new s.UL({width:g.width,height:g.height}),!0,!0,{annotations:t,formFieldValues:r,attachments:a,signatures:l,formFields:n.toList()}).promise}let{element:E,release:P}=await u;if(a.push(P),"IMG"===E.nodeName){const e=E,t=document.createElement("canvas");t.width=g.width,t.height=g.height;const n=t.getContext("2d");(0,b.k)(n),null==n||n.drawImage(e,0,0),E=t}const{renderPageCallback:x}=i;if("function"==typeof x){const e=E.getContext("2d");null==e||e.scale(S,S),x(e,p,h)}const D=l.G6?h:d(h);E.style.cssText=`width: ${D.width}px !important;\nheight: ${D.height}px !important; display: none; filter: none; ${l.vU?"border: 1px solid transparent !important":""}`,r.push(E),e(I(p+1))}catch(e){throw c(),e}}try{(0,b.k)(document.body,"Printing requires a `` tag in the main HTML layout.");const{pages:t}=i,n=function(e){let t;for(const[n,{pageSize:o}]of e.entries()){const e=o.width>o.height?"landscape":"portrait";if(0!==n){if(e!==t)return!0}else t=e}return!1}(t),o=p(document.body,r,t,n);M=()=>{c(),o()},await(S=()=>{if((0,g.il)(),window.focus(),l.b5){let e=!1;const t=()=>{e=!0,window.focus()},n=()=>{e=!1},o=()=>{e||(window.removeEventListener("focus",o),window.removeEventListener("beforeprint",t),window.removeEventListener("afterprint",n),M(),M=()=>{})};window.addEventListener("focus",o),window.addEventListener("beforeprint",t),window.addEventListener("afterprint",n)}window.print()},E=()=>{e((0,h.Zg)()),e(O()),e(I(null))},new Promise((e=>{const t=Date.now();setTimeout((()=>{S(),E();const n=Date.now()-t>500?25:18e4;setTimeout(e,n)}))})))}catch(e){throw e}finally{l.b5||(M(),M=()=>{})}var S,E}async function R(e,t,n){const o=t().backend;if((0,b.k)(o),!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.By,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.SR,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:navigator.plugins;const o=w[e].hasOwnProperty(t);let r="ios"===e;const i=/pdf/i;for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:l.SR,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((async(o,r)=>{const i=12e4;D();const a=document.documentElement;(0,b.k)(a,"Could not access document.documentElement");const s=e=>{e.dataset.pspdfkitPrint="true",e.style.position="absolute",e.style.bottom="0px",e.style.left="0px",e.style.width="0px",e.style.height="0px",e.style.border="none",e.setAttribute("type","application/pdf")},{promise:l,revoke:c}=e.generatePDFObjectURL({includeComments:!1,saveForPrinting:!0,excludeAnnotations:n});E=c;const u=await l;if("trident"===t){S=document.createElement("embed"),S.setAttribute("src",u),s(S),a.appendChild(S),S.focus();const e=Date.now();!function t(){const n=document.querySelector("embed[data-pspdfkit-print=true]");(0,b.k)(n,"element not found"),Date.now()-e>3e4&&(c(),r(new Error("timeout")));try{n.print(),o(),P=setTimeout(D,i)}catch(e){x=setTimeout(t,500)}}()}else try{S=document.createElement("iframe"),S.setAttribute("src",u),S.setAttribute("aria-hidden","true"),s(S),S.onload=()=>{(0,b.k)(S,"iframe.onload called without element"),(0,b.k)(S instanceof HTMLIFrameElement,"element must be of type iframe");const e=S.contentWindow;if("webkit"===t){const t=setInterval((()=>{var n;"about:blank"!==(null==e?void 0:e.location.href)&&"complete"===(null==e?void 0:e.document.readyState)&&(clearInterval(t),null===(n=S)||void 0===n||n.focus(),null==e||e.print(),o(),P=setTimeout(D,i))}),100);setTimeout((()=>{clearInterval(t),r("Print failed: the document is taking too long to prepare"),D()}),5e3)}else S.focus(),null==e||e.print(),o(),P=setTimeout(D,i)},a.appendChild(S)}catch(e){r(e),D()}}))}(o,void 0,n),e(O())}catch(t){e(O())}}}},24852:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});var o=n(50974),r=n(30761),i=n(18146),a=n(33320);function s(e,t){return async(n,i)=>{const{backend:a,features:s}=i();try{(0,o.kG)(a),a.cancelRequests(),await a.applyRedactionsAndReload(),await(0,r.jX)(n,i,{features:s,pageKeys:l(i())})}catch(e){return t(e)}i().eventEmitter.emit("document.change",[]),e()}}function l(e){const{pages:t,annotations:n}=e,o=n.filter((e=>e instanceof i.Z)).map((e=>e.pageIndex)).toSet();return t.map((e=>o.includes(e.pageIndex)?(0,a.C)():e.pageKey))}},70006:(e,t,n)=>{"use strict";n.d(t,{M0:()=>d,Sc:()=>p,Xe:()=>s,_8:()=>r,ct:()=>l,dZ:()=>a,j8:()=>f,jL:()=>i,nJ:()=>u,t2:()=>h,tB:()=>c});var o=n(25387);function r(e){return{type:o.FH6,term:e}}function i(){return{type:o.$Jy}}function a(){return{type:o.gIV}}function s(){return{type:o.$hO}}function l(){return{type:o._AY}}function c(){return{type:o.Ifu}}function u(){return{type:o.nFn}}function d(e){return{type:o.F6q,isLoading:e}}function p(e){return{type:o.qZT,results:e}}function f(e){return{type:o.p1u,state:e}}function h(e){return{type:o.esN,provider:e}}},34573:(e,t,n)=>{"use strict";n.d(t,{Ab:()=>C,BO:()=>D,Df:()=>T,FP:()=>w,IP:()=>_,J4:()=>A,Oc:()=>N,Q2:()=>R,Sb:()=>F,VR:()=>I,Y1:()=>O,_:()=>K,_3:()=>L,d5:()=>E,fz:()=>k,mg:()=>j,mv:()=>B,oX:()=>M,td:()=>P,tu:()=>Z,vR:()=>S});var o=n(67366),r=n(35369),i=n(50974),a=n(82481),s=n(18803),l=n(19815),c=n(95651),u=n(51333),d=n(69939),p=n(75237),f=n(68382),h=n(25387),m=n(49177),g=n(61631),v=n(62164),y=n(91039),b=n(44763);const w=(e,t)=>n=>{n((0,u.Dm)()),n(((e,t)=>({type:h.f3N,textRange:e,inlineTextMarkupToolbar:t}))(e,t))},S=()=>(e,t)=>{(0,s.a7)(t().frameWindow),e({type:h.MOe})},E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.l4)(),t=arguments.length>1?arguments[1]:void 0;return{type:h._fK,newSelectedAnnotationsIds:e,annotationClass:t}},P=e=>(t,n)=>{const{annotations:o,selectedAnnotationIds:i}=n(),a=i.reduce(((e,t)=>{const n=o.get(t);return n?e.push(n):e}),(0,r.aV)());t(x(a)),t(E((0,r.l4)(),e))},x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.aV)(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,r.aV)(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,r.aV)();return(o,r)=>{const i=r().currentItemPreset;e.forEach((e=>{e&&o((0,d.hQ)(e)),e&&!p.ZP[i]&&o((0,d.sF)(e.id))})),t.forEach((e=>{o((0,d.$d)(e)),i&&!p.ZP[i]&&o((0,d.pZ)(e.id,i))})),n.forEach((e=>{o((0,d.uk)(e))}))}},D=e=>(t,n)=>{const o=n();if(!o.currentTextSelection)return t(P(e)),void t(S());const i=o.annotations.filter((e=>o.selectedAnnotationIds.has(e.id))).mapEntries((e=>{let[,t]=e;return[null!=t.pageIndex?t.pageIndex:o.viewportState.currentPageIndex,null!=t.pageIndex?t:t.set("pageIndex",o.viewportState.currentPageIndex)]})),a=(0,m.Bx)(o,i,e),s=i.reduce(((e,t)=>a.find((e=>e.id===t.id))?e:e.push(t)),(0,r.aV)()),l=a.filter((e=>!o.selectedAnnotationIds.has(e.id))),c=a.filter((e=>o.selectedAnnotationIds.has(e.id)&&!e.equals(i.get(e.pageIndex))));t(x(s,l,c));const u=(0,r.l4)(a.map((e=>e.id)));t(E(u,e))},C=()=>(e,t)=>{const n=t();n.selectedAnnotationIds.toSeq().map((e=>n.annotations.get(e))).filter(Boolean).filter((e=>e instanceof a.gd?!e.text.value||""===e.text.value:(e instanceof a.Hi||e instanceof a.om)&&(!e.points||e.points.size<=1))).forEach((t=>{e((0,d.hQ)(t))}))},k=()=>(e,t)=>{var n;(0,s.a7)(t().frameWindow),(0,o.dC)((()=>{e((0,u.Dm)()),e(C()),e((0,d.i0)()),e({type:h.MOe}),e({type:h.a33}),e((0,u.$z)()),e(z(null)),e((0,b.Ik)(null))})),null===(n=t().annotationManager)||void 0===n||n.autoSave()},A=(e,t)=>(n,o)=>{const r=o(),c=r.annotations.filter(((t,n)=>e.includes(n))),d=(0,l.ix)(r),p=c.some((e=>e instanceof a.x_));(0,i.kG)(!p||d,"Widget annotations cannot be selected without the corresponding license feature nor without instant enabled.");const f=c.map((e=>e.id)).toSet();n((0,u.Dm)()),(0,s.a7)(r.frameWindow);const m=f.find((e=>r.commentThreads.has(e)));if(m){const e=r.commentThreads.get(m);(0,i.kG)(null!=e);(0,v._P)(e,r.comments)||n((0,u.mh)(m))}n({type:h._Yi,annotations:f,mode:t,selectedAnnotationShouldDrag:null}),n((0,u.$z)())},O=()=>({type:h.RvB}),T=(e,t)=>(n,o)=>{const{commentThreads:a,comments:s,annotationsGroups:l}=o();if(1===e.size){const o=null==l?void 0:l.find((t=>{let{annotationsIds:n}=t;return n.has(e.first())}));if(o)return n(T(o.annotationsIds,t||null)),void n(z(o.groupKey))}e.forEach((e=>{if(a.has(e)){const t=a.get(e);(0,i.kG)(t);(0,v._P)(t,s)||n((0,u.mh)(e))}})),n(((e,t)=>({type:h._Yi,annotations:(0,r.l4)(e),mode:f.o.SELECTED,selectedAnnotationShouldDrag:t}))(e,t)),n((0,u.$z)())},I=e=>({type:h._Yi,annotations:(0,r.l4)([e]),mode:f.o.EDITING});function F(){return{type:h.c3G}}const M=e=>({type:h.TPT,id:e}),_=e=>({type:h.iyZ,id:e}),R=e=>({type:h.qh0,id:e}),N=e=>({type:h.rm,id:e}),L=e=>(t,n)=>{const{eventEmitter:o}=n();if(e){let t=!1;if(o.emit("annotationNote.hover",{preventDefault:()=>t=!0,annotationNote:e}),t)return}t({type:h.yyM,annotationNote:e})},B=e=>(t,n)=>{const{eventEmitter:o}=n();if(e){let t=!1;if(o.emit("annotationNote.press",{preventDefault:()=>t=!0,annotationNote:e}),t)return}t({type:h.vSH,annotationNote:e})},j=function(e,t){let{selectedAnnotationShouldDrag:n,preventDefault:i,stopPropagation:s,ignoreReadOnly:u,isAnnotationPressPrevented:p,clearSelection:f,longPress:h}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{selectedAnnotationShouldDrag:null,preventDefault:!1,stopPropagation:!1,ignoreReadOnly:!1,isAnnotationPressPrevented:void 0,clearSelection:!1,longPress:!1};return(m,v)=>{var b,w;const S=v(),{selectedAnnotationIds:E,annotations:P,activeAnnotationNote:x,collapseSelectedNoteContent:D,interactionsDisabled:C,eventEmitter:A,formDesignMode:O,isMultiSelectionEnabled:I}=S,F=E.size>1,M=t.shiftKey;if(x&&m(B(null)),D&&m((0,d.i0)()),!u&&(C||e&&(!("action"in e)||!e.action)&&(null===(b=e.additionalActions)||void 0===b||!b.onPointerDown)&&!e.isCommentThreadRoot&&(0,l.lV)(e,S)))return;if(void 0===p&&(p=!!e&&(0,c.TW)({annotation:e,nativeEvent:t.nativeEvent,selected:!1},A)),p)return;if((i||t.hasOwnProperty("type")&&"keypress"===t.type)&&t.preventDefault(),s&&t.stopPropagation(),f&&m(k()),!e)return;if(M){const t=P.get(E.first());if((null==t?void 0:t.pageIndex)!==e.pageIndex)return}const _=E.has(e.id);if("action"in e&&e.action&&!h&&!_&&!M)return void m((0,g.oo)(e));if("additionalActions"in e&&null!==(w=e.additionalActions)&&void 0!==w&&w.onPointerDown)return void m((0,g.TU)(e,"onPointerDown"));const R=!(0,y.Zt)(S,e)&&(!(e instanceof a.x_)||O);if(!R)return;const N=S.annotationsGroups.find((t=>{let{annotationsIds:n}=t;return n.has(e.id)}));if(_||!R||M||N){if(M&&I){if(_)return m(T(E.remove(e.id),n||null)),void m(z(null));if(N)return void(0,o.dC)((()=>{m(T(S.selectedAnnotationIds.merge(N.annotationsIds),n||null)),m(z(null))}));if(!_&&!N)return m(T(E.add(e.id),n||null)),void m(z(null))}if(!M){if(!_&&!N)return void(0,o.dC)((()=>{m(k()),m(T((0,r.l4)([e.id]),n||null))}));_||!N||F||(0,o.dC)((()=>{m(T(N.annotationsIds,n||null)),m(z(N.groupKey))}))}}else(0,o.dC)((()=>{m(k()),m(T((0,r.l4)([e.id]),n||null))}))}},z=e=>({type:h.t$K,groupId:e}),K=e=>({type:h.vBn,pullToRefreshNewState:e}),Z=e=>({type:h.L2A,inlineTextSelectionToolbarItemsCallback:e})},60840:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var o=n(84121),r=n(67294),i=n(82481),a=n(7844),s=n(13944),l=n(36095),c=n(4054),u=n(90523),d=n.n(u),p=n(95919),f=n.n(p),h=n(14483),m=n.n(h),g=n(39583),v=n(44763);const y=(0,l.yx)(),b="data:image/svg+xml;base64,"+globalThis.btoa(f()),w="data:image/svg+xml;base64,"+globalThis.btoa(m());class S extends r.Component{constructor(){super(...arguments),(0,o.Z)(this,"shouldComponentUpdate",a.O),(0,o.Z)(this,"position",null),(0,o.Z)(this,"rect",null),(0,o.Z)(this,"state",{isDrawing:!1,isPenUser:!1,explicitScroll:!1,clientX:0,clientY:0,canAutoCloseShape:!1}),(0,o.Z)(this,"_drawingAreaEl",null),(0,o.Z)(this,"lastClickTime",null),(0,o.Z)(this,"_drawingAreaRef",(e=>{var t;(this._drawingAreaEl=e,e&&l.TL)&&(null===(t=this._drawingAreaEl)||void 0===t||t.addEventListener("touchmove",c.PF))})),(0,o.Z)(this,"onUnmount",(()=>{var e;this._drawingAreaEl&&l.TL&&(null===(e=this._drawingAreaEl)||void 0===e||e.removeEventListener("touchmove",c.PF));this._drawingAreaEl=null})),(0,o.Z)(this,"_handlePointerDown",(e=>{let t=!0;if(y&&this.props.canScrollWhileDrawing&&("pen"!==e.pointerType||this.state.isPenUser?"touch"===e.pointerType&&this.state.isPenUser&&(this.setState({explicitScroll:!0,clientX:e.clientX,clientY:e.clientY}),t=!1):this.setState({explicitScroll:!1,isPenUser:!0})),this.state.isDrawing)return void this._handlePointerUp();if(!e.isPrimary)return;if(!this._drawingAreaEl)return;this.rect=this._drawingAreaEl.getBoundingClientRect(),e.stopPropagation();const n=new i.E9({x:e.clientX,y:e.clientY}),o=this.position&&n.distance(this.position)<=10;var r,a;(this.position=n,this._buffer=[],this.setState({isDrawing:!0}),this.props.currentAnnotation instanceof i.om||this.props.currentAnnotation instanceof i.Hi)&&(null===(r=(a=this.props).dispatch)||void 0===r||r.call(a,(0,v.Ik)(null)));const{onDrawStart:s,onDoubleClick:l}=this.props,c=(new Date).getTime();if(this.lastClickTime&&l&&c-this.lastClickTime<500&&o)return l(this._transformPoint(n)),void(this.lastClickTime=null);this.lastClickTime=c,t&&s&&s(this._transformPoint(n),n)})),(0,o.Z)(this,"_buffer",[]),(0,o.Z)(this,"_throttleMove",E()),(0,o.Z)(this,"_throttleUp",E()),(0,o.Z)(this,"_handlePointerMove",(e=>{if(this.state.explicitScroll){const t={x:e.clientX,y:e.clientY},n={x:this.state.clientX,y:this.state.clientY};return requestAnimationFrame((()=>{if(this.props.scrollElement){const e=this.props.scrollElement.scrollTop+(n.y-t.y),o=this.props.scrollElement.scrollLeft+(n.x-t.x);this.props.scrollElement.scrollTop=e,this.props.scrollElement.scrollLeft=o}})),void this.setState({clientX:t.x,clientY:t.y})}this._handleDrawLine(e),this._handleCursorMove(e)})),(0,o.Z)(this,"_handleCursorMove",(e=>{if(this.props.currentAnnotation instanceof i.om||this.props.currentAnnotation instanceof i.Hi){if(!this.props.defaultAutoCloseThreshold)return;const a=new i.E9({x:e.clientX,y:e.clientY}),s=this.props.currentAnnotation.points,l=s.last(),c=this._transformPoint(a);var t,n;if(l&&c)null===(t=(n=this.props).dispatch)||void 0===t||t.call(n,(0,v.Ik)({lines:[{start:l,end:c}],pageIndex:this.props.currentAnnotation.pageIndex}));if(s&&s.size<3)return;const u=(0,g.K)(this.props.currentAnnotation,0,this.props.defaultAutoCloseThreshold,new i.E9({x:c.x,y:c.y}));var o,r;if(-1!==u&&u!==s.size-1)this.setState({canAutoCloseShape:!0}),null===(o=(r=this.props).dispatch)||void 0===o||o.call(r,(0,v.Ik)({lines:[{start:l,end:s.get(u)}],pageIndex:this.props.currentAnnotation.pageIndex}));else this.setState({canAutoCloseShape:!1})}})),(0,o.Z)(this,"_handlePointerUp",(e=>{e&&!e.isPrimary||(e&&e.stopPropagation(),this.setState({isDrawing:!1}),this.state.isPenUser&&"touch"==(null==e?void 0:e.pointerType)?this.setState({explicitScroll:!1}):this._throttleUp((()=>{const{onDrawEnd:e}=this.props;this._drawingAreaEl&&(this.rect=this._drawingAreaEl.getBoundingClientRect(),this._buffer=[],this.position&&e&&e(this._transformPoint(this.position)))})))})),(0,o.Z)(this,"_defaultTransformPoint",(e=>{if(!this.rect)return e;const t=this.props.size.width/this.rect.width,n=this.props.size.height/this.rect.height,o="number"==typeof this.rect.x?this.rect.x:this.rect.left,r="number"==typeof this.rect.y?this.rect.y:this.rect.top;return new i.Wm({x:e.x-o,y:e.y-r}).scale(t,n)})),(0,o.Z)(this,"_transformPoint",(e=>this._clipPointToContainerBounds((this.props.transformPoint||this._defaultTransformPoint)(new i.Wm({x:e.x,y:e.y})))))}render(){return r.createElement(s.Z,{onPointerDown:this._handlePointerDown,onRootPointerMove:this.state.isDrawing?this._handlePointerMove:this._handleCursorMove,onRootPointerUpCapture:this.state.isDrawing?this._handlePointerUp:void 0,interactionMode:this.props.interactionMode},r.createElement("div",{"data-testid":"drawcomponent",role:"application"},r.createElement("div",{className:d().layer,style:(this.props.currentAnnotation instanceof i.om||this.props.currentAnnotation instanceof i.Hi)&&!l.G6?{cursor:this.state.canAutoCloseShape?`url(${w}) 6 6, auto`:`url(${b}) 6 6, auto`}:{},ref:this._drawingAreaRef})))}_handleDrawLine(e){e.preventDefault(),e.stopPropagation();const t=new i.E9({x:e.clientX,y:e.clientY});if(t.equals(this.position))return;this.position=t;const{onDrawCoalesced:n}=this.props;if(n){const t=e.getCoalescedEvents();this._buffer=this._buffer.concat(t),this._throttleMove((()=>{const[e,t]=this._buffer.reduce(((e,t)=>{const n=new i.E9({x:t.clientX,y:t.clientY});return e[0].push(this._transformPoint(n)),e[1].push(n),e}),[[],[]]);this._buffer=[],n(e,t)}))}}_clipPointToContainerBounds(e){if(this._isPointWithinContainer(e))return e;const{size:t}=this.props;return e.x>t.width&&(e=e.set("x",t.width)),e.x<0&&(e=e.set("x",0)),e.y>t.height&&(e=e.set("y",t.height)),e.y<0&&(e=e.set("y",0)),e}_isPointWithinContainer(e){const{size:t}=this.props;return new i.UL({width:t.width,height:t.height}).isPointInside(e)}}function E(){let e;return t=>{e||requestAnimationFrame((()=>{const t=e;e=null,t()})),e=t}}},86366:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var o=n(84121),r=n(50974),i=n(67294),a=n(94184),s=n.n(a),l=n(94385),c=n(4054),u=n(21824),d=n.n(u);class p extends i.PureComponent{constructor(){var e;super(...arguments),e=this,(0,o.Z)(this,"_cancelImagePromise",null),(0,o.Z)(this,"_throttledFetchImage",(0,l.Z)(this._fetchImage,"number"==typeof this.props.throttleTimeout?this.props.throttleTimeout:2e3,!0)),(0,o.Z)(this,"imageRef",i.createRef()),(0,o.Z)(this,"_replaceImage",(function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.imageRef.current?(e.imageRef.current.appendChild(t.element),setTimeout((()=>t.release()),500),e.imageRef.current&&e.imageRef.current.children.length>1&&e.imageRef.current.removeChild(e.imageRef.current.firstChild),e.props.onRenderFinished&&e.props.onRenderFinished(),n&&e._throttledFetchImage()):t.release()})),(0,o.Z)(this,"_onImageAvailable",(function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{label:o,visible:i}=e.props,a=t.element;a&&e.imageRef.current&&a!==e.imageRef.current.firstChild&&(a.setAttribute("alt",o||""),i||a.setAttribute("role","presentation"),(0,c.sR)(a).then((()=>requestAnimationFrame((()=>e._replaceImage(t,n))))).catch((t=>{(0,r.vU)(t),e.props.onError&&e.props.onError(t)})))}))}componentDidMount(){this._throttledFetchImage()}refresh(){this._throttledFetchImage()}refreshSkippingThrottle(){this._fetchImage()}async _fetchImage(){let e;this._cancelOutstandingRequests();const{promise:t,isProvisional:n,cancel:o}=this.props.fetchImage();this._cancelImagePromise=o;try{var i,a;if(e=await t,e)this._onImageAvailable(e,n);else null===(i=(a=this.props).onError)||void 0===i||i.call(a)}catch(e){var s,l;(0,r.vU)(e),o(e),null===(s=(l=this.props).onError)||void 0===s||s.call(l,e)}this._cancelImagePromise=null}_cancelOutstandingRequests(){this._cancelImagePromise&&this._cancelImagePromise()}componentWillUnmount(){this._cancelOutstandingRequests()}render(){const{className:e,rectStyle:t}=this.props;return i.createElement("div",{className:s()(d().root,e),style:t,ref:this.imageRef})}}},6437:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var o=n(22122),r=n(84121),i=n(25915),a=n(67294),s=n(94184),l=n.n(s),c=n(18390),u=n(30667),d=n(88804),p=n(36095),f=n(6006),h=n.n(f);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1],n=0;const[o,r]=a.useState(null),[i,s]=a.useState(!1),l=e=>{t||s(e)};function c(){n=Date.now(),l(!1)}return[i,{onTouchStart(){n=Date.now(),l(!0)},onTouchEnd:c,onTouchCancel:c,onMouseEnter(){Date.now()-n>500&&l(!0)},onMouseLeave(){l(!1)},onMouseDown(e){r(e)},onPointerDown(e){r(e)},onClick(t){o&&o.clientX===t.clientX&&o.clientY===t.clientY&&(e(t),r(null))}}]}((()=>{i.dragging||d(t)})),{item:E,label:P,props:x}=r(t,b,v),D=l()(h().thumbnail,n+"-Thumbnails-Page-Image",{[h().thumbnailClickDisabled]:s,[h().thumbnailSelected]:i.selected,[h().thumbnailBeingDragged]:i.dragging});return a.createElement("div",(0,o.Z)({style:w,className:l()(h().column,n+"-Thumbnails-Page",h()[`engine-${p.SR}`],{[n+"-Thumbnails-Page-Selected"]:i.selected}),"data-testid":"grid-column","data-page-index":t},x),a.createElement("div",{style:{width:b,height:b},className:h().columnPreview},e.clickDisabled?a.createElement("div",{className:D},E):a.createElement(c.Z,(0,o.Z)({is:"div",className:D,"aria-label":`Select Page ${P}`,"aria-pressed":i.selected,onKeyPress:e=>{const{charCode:n}=e;n===u.tW&&d(t)},onFocus:()=>f(t),onBlur:()=>f(null),ref:i.itemRef},"object"==typeof S&&S),E)),a.createElement("div",{style:{height:24,maxWidth:b,marginTop:16*y,lineHeight:"24px"},className:l()(h().label,n+"-Thumbnails-Page-Label",{[h().labelSelected]:i.selected})},P))}const b=e=>{const{cssPrefix:t,clickDisabled:n,width:o,moveCursor:r}=e;let{itemScale:s}=e;const[c,u]=a.useState(null);s=Math.min(s,(o-15)/314),s=Math.max(s,.01);const p=a.useMemo((function(){return new d.$u({width:314*s,height:322*s+24})}),[s]),f=v*s,m=r?"left"===r.position?r.pageIndex:r.pageIndex+1:void 0;return a.createElement(i.FE,{width:e.width,height:e.height,canInsert:e.canInsert,draggingEnabled:!!e.onItemsMove&&!n,totalItems:e.totalItems,itemWidth:p.width,itemHeight:p.height,itemPaddingLeft:32*s,itemPaddingRight:32*s,renderItem:(o,r)=>a.createElement(y,{selectedItemIndexes:e.selectedItemIndexes,size:p,itemScale:s,pageIndex:o,itemState:r,cssPrefix:t,clickDisabled:n||!1,renderItemCallback:e.renderItemCallback,onItemPress:e.onItemPress,onItemFocus:e=>u(e)}),itemKey:e.itemKeyCallback,renderDragPreview:e.renderDragPreviewCallback?(t,n)=>e.renderDragPreviewCallback?e.renderDragPreviewCallback(n,t,f,v):null:void 0,renderInsertionCursor:(e,t)=>{const n={top:32*s+1,height:v*s-1};return a.createElement("div",{style:n,className:l()(h().moveCursor,{[h().moveCursorDisabled]:!e})},null!=(null==r?void 0:r.previewContent)&&a.createElement("div",{className:l()(h().moveCursorPreview,{[h().moveCursorPreviewEnd]:t})},r.previewContent))},onDragEnd:e.onItemsMove,selectedItemIndexes:e.selectedItemIndexes,insertionIndex:m,focusedItemIndex:c})}},13540:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(22122),r=n(17375),i=n(67294);const a=["src"];function s(e){let{src:t}=e,n=(0,r.Z)(e,a);const s=i.useRef(null);return i.useEffect((function(){if(s.current){const e=s.current.childNodes[0];"function"==typeof e.setAttribute&&e.setAttribute("focusable","false")}}),[]),i.createElement("span",(0,o.Z)({},n,{dangerouslySetInnerHTML:{__html:t},ref:s}))}},26467:(e,t,n)=>{"use strict";n.d(t,{O:()=>p});var o=n(84121),r=n(67294);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;tr.createElement("polygon",{points:"0.5,2 0.5,0.5 3.5,0.5 3.5,3.5 0.5,3.5 0.5,2",style:a(a({},e),s)}),u=e=>r.createElement("circle",{cx:"2",cy:"2",r:"1.5",style:a(a({},e),s)}),d=e=>r.createElement("line",{x1:"0",y1:"2",x2:"4",y2:"2",style:a(a({},e),l)}),p={none:{startElement:d,endElement:d,width:4},square:{startElement:c,endElement:c,width:3.5},circle:{startElement:u,endElement:u,width:3.5},diamond:{startElement:e=>r.createElement("polygon",{points:"3.5,2 2.25,3.25 1,2 2.25,0.75 3.5,2 4,2",style:a(a({},e),s)}),endElement:e=>r.createElement("polygon",{points:"0.75,2 2,0.75 3.25,2 2,3.25 0.75,2 0.25,2",style:a(a({},e),s)}),width:3.5},openArrow:{startElement:e=>r.createElement("polyline",{points:"4.25,0.5 1.25,2 4.25,3.5 1.25,2 4.75,2",style:a(a({},e),l)}),endElement:e=>r.createElement("polyline",{points:"0.25,0.5 3.25,2 0.25,3.5 3.25,2 -0.25,2",style:a(a({},e),l)}),width:3.75},closedArrow:{startElement:e=>r.createElement("polygon",{points:"3.75,2 3.75,0.75 1.25,2 3.75,3.25 3.75,2 4.75,2",style:a(a({},e),s)}),endElement:e=>r.createElement("polygon",{points:"0.75,2 0.75,0.75 3.25,2 0.75,3.25 0.75,2 -0.75,2",style:a(a({},e),s)}),width:3.75},butt:{startElement:e=>r.createElement("line",{x1:"3.75",y1:"0.5",x2:"3.75",y2:"3.5",style:a(a({},e),l)}),endElement:e=>r.createElement("line",{x1:"0.5",y1:"0.5",x2:"0.5",y2:"3.5",style:a(a({},e),l)}),width:.5},reverseOpenArrow:{startElement:e=>r.createElement("polyline",{points:"1,0.5 4,2 1,3.5",style:a(a({},e),l)}),endElement:e=>r.createElement("polyline",{points:"3.25,0.5 0.25,2 3.25,3.5",style:a(a({},e),l)}),width:3},reverseClosedArrow:{startElement:e=>r.createElement("polygon",{points:"4,2 1.5,3.25 1.5,0.75",style:a(a({},e),s)}),endElement:e=>r.createElement("polygon",{points:"0.25,2 2.75,3.25 2.75,0.75",style:a(a({},e),s)}),width:2.75},slash:{startElement:e=>r.createElement("polyline",{points:"3.25,0.5 2.25,3.75 2.85,2 3.75,2",style:a(a({},e),l)}),endElement:e=>r.createElement("polyline",{points:"1.85,0.5 0.85,3.75 1.25,2 0.35,2",style:a(a({},e),l)}),width:1.5}}},73264:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(67294),r=n(94184),i=n.n(r),a=n(71945),s=n.n(a);function l(e){let{scale:t=1,rotate:n=0}=e;const[r,a]=o.useState(!1);o.useEffect((()=>{const e=setTimeout((()=>{a(!0)}),400);return()=>{clearTimeout(e)}}),[]);const l=`scale(${t})`,c={transform:n?`rotate(${n}deg) ${l}`:l,transformOrigin:"center center"};return o.createElement("div",{style:c,className:i()("PSPDFKit-Loading-Indicator",s().loader,{[s().loaderShown]:r})},o.createElement("div",{className:s().loaderDot}),o.createElement("div",{className:s().loaderDot}),o.createElement("div",{className:s().loaderDot}))}},40045:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var o=n(84121),r=n(67366),i=n(67294),a=n(52560),s=n(27515),l=n(18803),c=n(36095),u=n(47710),d=n(3219),p=n(82481),f=n(42911),h=n(97413);const m=(0,f.Yw)(),g={onPinchStart:"pinchstart",onPinchIn:"pinchin",onPinchOut:"pinchout",onPinchCancel:"pinchcancel",onPinchEnd:"pinchend",onSwipeLeft:"swipeleft",onSwipeRight:"swiperight",onDoubleTap:"doubletap"};function v(e,t,n){t&&Object.keys(t).forEach((o=>{const r=g[o];!r||"function"!=typeof t[o]||n&&"function"==typeof n[o]&&n[o]===t[o]||e.off(r,t[o])})),n&&(n.enablePinch&&e.get("pinch").set({enable:!0,threshold:.3}),n.onDoubleTap&&e.get("doubletap").set({posThreshold:50}),Object.keys(n).forEach((o=>{const r=g[o];!r||"function"!=typeof n[o]||t&&"function"==typeof n[o]&&n[o]===t[o]||e.on(r,n[o])})))}class y extends i.Component{constructor(){super(...arguments),(0,o.Z)(this,"_handleRef",(e=>{e&&((0,h.k)("string"==typeof e.nodeName,"TRC requires a basic HTML element as children. This looks like a custom react component."),this._refElement=e)}))}componentDidMount(){this.initializeHammer(),v(this._hammer,null,this.props)}initializeHammer(){this._hammer=new m(this._refElement,{touchAction:"pan-x pan-y"}),this._refElement.style.msTouchSelect="initial"}componentDidUpdate(e){this._hammer&&v(this._hammer,e,this.props)}componentWillUnmount(){v(this._hammer,this.props,null),this._hammer&&(this._hammer.stop(),this._hammer.destroy()),this._hammer=null}render(){const e=i.Children.only(this.props.children);return(0,h.k)(!e.ref,"TRC requires the child element to not have a `ref` assigned. Consider inserting a new `
` in between."),i.cloneElement(e,{ref:this._handleRef})}}const b=!n(71231).Gn||{passive:!1,capture:!0};class w extends i.Component{constructor(){super(...arguments),(0,o.Z)(this,"_trackpadRef",i.createRef()),(0,o.Z)(this,"_hasWheelEventStarted",!1),(0,o.Z)(this,"_currentWheelTimeout",null),(0,o.Z)(this,"_lastScale",1),(0,o.Z)(this,"_handleWheel",(e=>{if(!e.ctrlKey)return;e.preventDefault(),e.stopPropagation(),this._currentWheelTimeout&&clearTimeout(this._currentWheelTimeout),this._currentWheelTimeout=setTimeout((()=>{this.props.onPinchEnd(),this._hasWheelEventStarted=!1,this._lastScale=1}),250);const t=function(e,t){return{center:{x:e.clientX,y:e.clientY},scale:t-e.deltaY/120,pointerType:"mouse",preventDefault:e.preventDefault,srcEvent:e}}(e,this._lastScale);let n=1;n=t.scale>1?1.05*this._lastScale:.95*this._lastScale,t.scale=n,n*this.props.zoomLevel>this.props.minZoomLevel&&n*this.props.zoomLevel{e.preventDefault(),this.props.onPinchStart(S(e))})),(0,o.Z)(this,"_handleGestureChange",(e=>{e.preventDefault(),this.props.onPinch(S(e))})),(0,o.Z)(this,"_handleGestureEnd",(e=>{e.preventDefault(),this.props.onPinchEnd(S(e))}))}componentDidMount(){const{current:e}=this._trackpadRef;if(e){const t=e.ownerDocument;t.addEventListener("wheel",this._handleWheel,b),"ios"!==c.By&&(t.addEventListener("gesturestart",this._handleGestureStart),t.addEventListener("gesturechange",this._handleGestureChange),t.addEventListener("gestureend",this._handleGestureEnd))}}componentWillUnmount(){const{current:e}=this._trackpadRef;if(e){const t=e.ownerDocument;t.removeEventListener("wheel",this._handleWheel,b),"ios"!==c.By&&(t.removeEventListener("gesturestart",this._handleGestureStart),t.removeEventListener("gesturechange",this._handleGestureChange),t.removeEventListener("gestureend",this._handleGestureEnd))}}render(){return i.createElement("div",{ref:this._trackpadRef},this.props.children)}}function S(e){return{center:{x:e.clientX,y:e.clientY},scale:e.scale,pointerType:"mouse",preventDefault:e.preventDefault,srcEvent:e}}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function P(e){for(var t=1;t{if("touch"!==e.pointerType)return;const{viewportState:t}=this.props,{viewportRect:n,zoomLevel:o}=t;this._startZooming();const r=new p.E9({x:e.center.x,y:e.center.y}).translate(n.getLocation().scale(-1)),i=this.props.viewportState.scrollMode===u.G.PER_SPREAD||this.props.viewportState.scrollMode===u.G.DISABLED?(0,a.vw)(t):(0,a.kh)(t),s=o>i?i:1.5*o,l=(0,a.cq)(t,s,{zoomCenter:r});this.setState({nextViewportState:l,shouldAnimate:!0}),this._callEndZoomingAfterTransition(l)})),(0,o.Z)(this,"_handlePinchStart",(e=>{const{viewportState:t}=this.props,{viewportRect:n}=t;this._startZooming(),this._touchZoomCenter=new p.E9({x:e.center.x,y:e.center.y}).translate(n.getLocation().scale(-1))})),(0,o.Z)(this,"_handlePinch",(e=>{this._isZooming&&(this._lastPinchScale=e.scale,this.requestAnimationFrameId||(this.requestAnimationFrameId=window.requestAnimationFrame(this._renderNextFrame)),null!==this._pinchResetTimeoutId&&clearTimeout(this._pinchResetTimeoutId),this._pinchResetTimeoutId=setTimeout((()=>this._handlePinchEnd()),2e3))})),(0,o.Z)(this,"_handlePinchEnd",(()=>{if(!this._isZooming)return;null!==this._pinchResetTimeoutId&&(clearTimeout(this._pinchResetTimeoutId),this._pinchResetTimeoutId=null);const{viewportState:e}=this.props,{zoomLevel:t}=e;if(!this._touchZoomCenter)return;this.requestAnimationFrameId&&(window.cancelAnimationFrame(this.requestAnimationFrameId),this.requestAnimationFrameId=null);const n=t*this._lastPinchScale,o=(0,a.cq)(e,n,{zoomCenter:this._touchZoomCenter});this.state.nextViewportState&&(0,a.hT)(this.state.nextViewportState)?(this.setState({nextViewportState:o,shouldAnimate:!0}),this._callEndZoomingAfterTransition(o)):this._zoomComplete(o)})),(0,o.Z)(this,"_renderNextFrame",(()=>{const{viewportState:e}=this.props,{zoomLevel:t}=e,n=t*this._lastPinchScale,o=(0,a.cq)(e,n,{zoomCenter:this._touchZoomCenter,unbounded:!0});this.setState({nextViewportState:o}),this.requestAnimationFrameId=null})),(0,o.Z)(this,"_zoomComplete",(e=>{(0,r.dC)((()=>{this.props.dispatch((0,d.nr)(e)),this._endZooming()}))})),this._touchZoomCenter=new p.E9,this._isZooming=!1,this.state={shouldAnimate:!1,nextViewportState:null},this.requestAnimationFrameId=null}render(){const{children:e,viewportState:t}=this.props,{nextViewportState:n}=this.state,o=(0,s.G4)(t);let r={transformOrigin:"0 0",width:o.width+t.viewportPadding.x,height:o.height+t.viewportPadding.y};if(n){const e=n.scrollPosition.scale(n.zoomLevel).translate(t.scrollPosition.scale(-t.zoomLevel)),o=(0,s.G4)(n).translate(e.scale(-1)),i=n.zoomLevel/t.zoomLevel;r=P(P({},r),{},{transform:`translate(${o.left}px, ${o.top}px)\n scale(${i}, ${i})`,willChange:"transform",transition:this.state.shouldAnimate?"transform 150ms ease-in":""})}else r=P(P({},r),{},{transform:`translate(${Math.ceil(o.left)}px, ${Math.ceil(o.top)}px)`});return i.createElement(w,{onPinchStart:this._handlePinchStart,onPinch:this._handlePinch,onPinchEnd:this._handlePinchEnd,zoomLevel:this.props.viewportState.zoomLevel,minZoomLevel:(0,a.Yo)(this.props.viewportState),maxZoomLevel:(0,a.Sm)(this.props.viewportState)},i.createElement(y,{onPinchStart:this._handlePinchStart,onPinchIn:this._handlePinch,onPinchOut:this._handlePinch,onPinchEnd:this._handlePinchEnd,onPinchCancel:this._handlePinchEnd,onDoubleTap:this._handleDoubleTap,enablePinch:!0},i.createElement("div",null,i.createElement("div",{ref:this._zoomLayerRef,style:r,className:"PSPDFKit-Zoom"},e))))}_callEndZoomingAfterTransition(e){this._removeAnimationEventListener();const t=this._zoomComplete.bind(this,e);this._zoomCompleteFn=t,this._zoomLayerRef.current&&this._zoomLayerRef.current.addEventListener("transitionend",this._zoomCompleteFn),setTimeout((()=>{this._zoomCompleteFn&&t===this._zoomCompleteFn&&this._zoomCompleteFn()}),250)}_startZooming(){if(!this._isZooming&&(this._isZooming=!0,"gecko"===c.SR&&"windows"===c.By&&this._zoomLayerRef.current)){const{defaultView:e}=this._zoomLayerRef.current.ownerDocument;(0,l.a7)(e)}}_endZooming(){this._resetState()}_resetState(){this.setState({shouldAnimate:!1,nextViewportState:null}),this._lastPinchScale=1,this._touchZoomCenter=new p.E9,this._isZooming=!1,this._removeAnimationEventListener()}_removeAnimationEventListener(){this._zoomLayerRef.current&&this._zoomLayerRef.current.removeEventListener("transitionend",this._zoomCompleteFn),this._zoomCompleteFn=null}}},99728:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ne,getDocumentKeyForReferencePoints:()=>te,messages:()=>oe});var o,r,i,a,s,l,c,u,d=n(67294),p=n(73935),f=n(76154),h=n(51559),m=n(55024),g=n(84121),v=n(73264),y=n(22122),b=n(67665),w=n(94184),S=n.n(w),E=n(67366),P=n(40045),x=n(60840),D=n(13540),C=n(88804),k=n(58479),A=n(20500),O=n(20792),T=n(72800),I=n(98013),F=n(36095),M=n(53033),_=n.n(M);const R=(0,F.b1)(),N=R?{x:31.25,y:13}:{x:12.5,y:-4},L=e=>{const{viewportState:t,backend:o,scrollElement:r,styles:i,currentDocumentKey:a,referencePoints:s,addReferencePoint:l,page:c,isAutoCompare:u,interactionMode:p}=e,{formatMessage:h}=(0,f.YB)(),g=(0,k.tm)(),[v,y]=d.useState(!1),w=d.useRef(null),F=(0,k.R9)((e=>{R?(v||y(!0),w.current&&clearTimeout(w.current),w.current=setTimeout((()=>{w.current=null,g()&&y(!1)}),300)):e()})),M=a!==m.Q.result?a===m.Q.documentA?s.slice(0,3):s.slice(3,6):[],L=s.length<6&&M.filter(Boolean).length<3&&!u&&p!==O.A.PAN&&(a===m.Q.documentA&&s.length<3||a===m.Q.documentB&&s.length>=3),B={width:c.pageSize.width*t.zoomLevel,height:c.pageSize.height*t.zoomLevel},z=d.useRef(null),K=S()({"PSPDFKit-Page":!0,[`PSPDFKit-Page-Rotation-${t.pagesRotation}-degree`]:!0,[i.page]:!0,[i["deg-"+t.pagesRotation]]:!0}),Z=(0,k._x)(),U=(0,E.v9)((e=>e.showToolbar))?I.k3:0,V=(0,k.R9)((()=>{l(Z(new C.Wm({x:t.viewportRect.width/2+2,y:t.viewportRect.height/2+U})))})),G={inViewport:!0,page:c,backend:o,shouldPrerender:!0,zoomLevel:t.zoomLevel,rotation:t.pagesRotation,renderPageCallback:e.renderPageCallback,allowedTileScales:e.allowedTileScales,documentHandle:a,viewportRect:t.viewportRect,forceDetailView:!1,renderPagePreview:e.renderPagePreview,isPageSizeReal:!0,crispTiles:!0,inContentEditorMode:!1},W=(0,E.v9)((e=>e.scrollbarOffset)),q=M.map(((e,n)=>e?d.createElement("div",{className:S()({"PSPDFKit-DocumentComparison-ReferencePoint-Marker":!0,[i.referencePoint]:!0}),style:{left:e.x*t.zoomLevel-N.x+(R?W/2:0),top:e.y*t.zoomLevel-N.y},key:`point_${n}`},d.createElement(j,{touchDevice:R,className:i.comparisonPin},n+1)):null));return d.createElement(d.Fragment,null,d.createElement("div",{className:S()({[i.source]:!R,[i.sourceTouch]:!!R,"PSPDFKit-DocumentComparison-Source":!0,[`PSPDFKit-DocumentComparison-Source-${a}`]:!!a}),style:{cursor:L&&!R?`url('data:image/svg+xml,${_()}') 4 20, crosshair`:"auto"}},L&&R&&d.createElement(b.m,null,d.createElement("div",{className:i.crosshair,ref:z},d.createElement("div",{className:S()(i.selectPoint,{[i.hidden]:v}),onClick:V},h(oe.Comparison_selectPoint)),d.createElement(D.Z,{src:n(96373)}))),d.createElement(P.Z,{dispatch:e.dispatch,viewportState:t},d.createElement("section",{className:K,style:B,"data-page-index":c?c.pageIndex:""},d.createElement(T.Z,G),q,R?null:d.createElement("div",{className:i.pointerLayer},L?d.createElement(x.Z,{size:c.pageSize,onDrawEnd:l,transformPoint:Z,interactionMode:p,scrollElement:r}):null)))),r&&!R?d.createElement(A.B,{viewportState:t,scrollElement:r,onScroll:F,currentMainToolbarHeight:U,className:"PSPDFKit-DocumentComparison-Magnifier",pageIndex:c.pageIndex,pageRendererComponentProps:G},q):null)},B=R?{width:"100",height:"100",viewBox:"-10 0 90 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"}:{width:"66",height:"66",viewBox:"-10 0 56 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j=e=>{let{children:t,touchDevice:n,className:p}=e;return d.createElement("svg",(0,y.Z)({},B,{className:p}),n?d.createElement("g",{stroke:"#f5281b"},o||(o=d.createElement("path",{d:"M44.0171 43.4142L72.3014 71.6985",strokeWidth:"4"})),r||(r=d.createElement("path",{d:"M12.9043 12.3015L41.1886 40.5858",strokeWidth:"4"})),i||(i=d.createElement("path",{d:"M72.3013 12.3015L44.017 40.5858",strokeWidth:"4"})),a||(a=d.createElement("path",{d:"M41.189 43.4142L12.9047 71.6985",strokeWidth:"4"})),d.createElement("text",{x:"-10",y:"82",fontSize:"28",fill:"#f5281b",dominantBaseline:"central"},t)):d.createElement("g",{stroke:"#f5281b"},s||(s=d.createElement("path",{d:"M26.0083 25.7072L40.1505 39.8493",strokeWidth:"1.99616"})),l||(l=d.createElement("path",{d:"M10.4521 10.1508L24.5943 24.2929",strokeWidth:"1.99616"})),c||(c=d.createElement("path",{d:"M40.1509 10.1508L26.0087 24.2929",strokeWidth:"1.99616"})),u||(u=d.createElement("path",{d:"M24.5952 25.7072L10.453 39.8493",strokeWidth:"1.99616"})),d.createElement("text",{x:"0",y:"44",fontSize:"14",fill:"#f5281b",dominantBaseline:"central"},t)))};var z=n(25915);const K=e=>{const{addSource:t}=e,n=d.useCallback((e=>{(null==e?void 0:e.click)&&e.click()}),[]),o=d.useCallback((e=>{if(e.target.files[0]){const n=new FileReader;n.onload=e=>{var n;t(null===(n=e.target)||void 0===n?void 0:n.result)},n.readAsArrayBuffer(e.target.files[0])}}),[t]);return d.createElement(z.TX,{tag:"div"},d.createElement("input",{ref:n,"aria-label":"","aria-hidden":!0,type:"file",accept:"image/png, image/jpeg, image/tiff, application/pdf",onChange:o,tabIndex:-1}))};var Z,U=n(9946),V=n(80399),G=n(3219),W=n(22660),q=n(2270);function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function $(e){for(var t=1;t{const{styles:t,currentDocumentKey:n,referencePoints:o,addReferencePoint:r,settings:i,completionConfiguration:a,setDocumentSources:s,documentSources:l,backend:c,viewportState:u,interactionMode:f,dispatch:g,isAutoCompare:y,renderPagePreview:b}=e,w=(0,k.tm)(),[S,E]=d.useState(null),[P,x]=d.useState(!1),D=(0,k.R9)((()=>{S&&g((0,G.nr)((0,h.mr)(u,S)))}));d.useEffect((()=>{D()}),[S,D]);const[A,O]=(0,k.dX)();d.useEffect((()=>{O(!1)}),[y,O]);const T=(0,k.R9)((e=>{e&&!l[e]&&i[e].source!==U.b.USE_OPEN_DOCUMENT||async function(){if(P)return;let t;e!==m.Q.result&&e?(S&&E(null),t=await c.openComparisonDocument(e)):(S&&E(null),t=A?await c.openComparisonDocument(m.Q.result):await X(o,i,c),O(!0));const n=i[m.Q.documentA].pageIndex||0,r=new V.Z($({pageSize:new C.$u(t.pages[n])},t.pages[n]));w()&&E(r)}()})),I=d.useRef(null);d.useEffect((()=>{I.current!==n&&S&&E(null),I.current=n}),[n,S]),d.useEffect((()=>{S||P||T(n)}),[S,n,T,P,l]);const F=6===o.length||y;d.useEffect((()=>{F&&!y&&T(null)}),[T,F,y]),d.useEffect((()=>{!async function(){try{await a.start.promise,w()&&(0,p.unstable_batchedUpdates)((()=>{x(!0),E(null)}))}catch(e){a.start.reject(e)}}()}),[a,w]),d.useEffect((()=>{P&&async function(){try{await c.cleanupDocumentComparison(),a.end.resolve()}catch(e){a.end.reject(e)}}()}),[P,c,a]);const M=d.useCallback((async e=>{e&&(await c.setComparisonDocument(n,e),w()&&s($($({},l),{},{[n]:e})))}),[n,l,s,c,w]);return S?d.createElement(L,{backend:e.backend,renderPageCallback:e.renderPageCallback,allowedTileScales:e.allowedTileScales,viewportState:u,scrollElement:e.scrollElement,styles:t,dispatch:e.dispatch,viewportWidth:e.viewportWidth,currentDocumentKey:n,addReferencePoint:r,referencePoints:o,page:S,isAutoCompare:y,interactionMode:f,renderPagePreview:b}):F||l[n]||i[n].source!==U.b.USE_FILE_DIALOG?d.createElement("div",{className:t.documentComparisonPageLoading},Z||(Z=d.createElement(v.Z,{scale:2}))):d.createElement(K,{addSource:M})},X=async(e,t,n)=>{var o,r,i,a,s,l;let c;c=e&&e.length?[[[e[3].x,e[3].y],[e[0].x,e[0].y]],[[e[4].x,e[4].y],[e[1].x,e[1].y]],[[e[5].x,e[5].y],[e[2].x,e[2].y]]]:h.h6;return await n.documentCompareAndOpen({documentA:{pageIndex:t.documentA.pageIndex||0,strokeColor:null!==(o=t.strokeColors)&&void 0!==o&&o.documentA?(0,W.C)(null===(r=t.strokeColors)||void 0===r?void 0:r.documentA):(0,W.C)(null===(i=q.s.strokeColors)||void 0===i?void 0:i.documentA)},documentB:{pageIndex:t.documentB.pageIndex||0,strokeColor:null!==(a=t.strokeColors)&&void 0!==a&&a.documentB?(0,W.C)(null===(s=t.strokeColors)||void 0===s?void 0:s.documentB):(0,W.C)(null===(l=q.s.strokeColors)||void 0===l?void 0:l.documentB)},options:{type:"path",points:c,blendMode:t.blendMode||"darken"}})},J=e=>{const{onHide:t,styles:o}=e,{formatMessage:r}=(0,f.YB)();return d.createElement("div",{className:o.container},d.createElement("div",{className:o.wrapper},d.createElement(D.Z,{src:n(96462),className:o.icon}),d.createElement("div",{className:o.header},r(Q.UserHint_title)),d.createElement("div",{className:o.hint},r(Q.UserHint_description)),d.createElement("div",{className:o.hideButton},d.createElement(z.zx,{onClick:t},r(Q.UserHint_dismissMessage)))))},Q=(0,f.vU)({UserHint_title:{id:"UserHint_Select",defaultMessage:"Selecting Points",description:"User hint Title. User should select points to compare documents."},UserHint_description:{id:"UserHint_description",defaultMessage:"Select 3 points on both documents for manual alignment. For best results, choose points near corners of the document, and make sure to choose the points in the same order on both documents.",description:"Main body of the user hint. Explains what to do to compare documents"},UserHint_dismissMessage:{id:"UserHint_dismissMessage",defaultMessage:"Dismiss Message",description:"Dismiss user hint message"}}),ee=(0,F.b1)(),te=e=>e.length<3?m.Q.documentA:e.length<6?m.Q.documentB:m.Q.result,ne=e=>{const{interactionMode:t,initialDocumentSources:n,settings:o,backend:r}=e,{styles:i}=e.CSS_HACK,a=(0,k.tm)(),[s,l]=(0,k.nG)(),[c,u]=(0,k.jw)(),[f]=(0,k.$)(),[g,v]=d.useState(!0),y=(0,h.SH)(c),b=(0,k.R9)((e=>{e!==y&&u(e||m.Q.result)})),w=d.useCallback((e=>{const t=[...s,e];(0,p.unstable_batchedUpdates)((()=>{l(t),b(te(t))}))}),[s,b,l]),[S,E]=d.useState(null);return d.useEffect((()=>{!async function(){const[e,t]=await Promise.all([n[m.Q.documentA],n[m.Q.documentB]]);(e&&e.byteLength>0||o[m.Q.documentA].source===U.b.USE_OPEN_DOCUMENT)&&await r.setComparisonDocument(m.Q.documentA,e),(t&&t.byteLength>0||o[m.Q.documentB].source===U.b.USE_OPEN_DOCUMENT)&&await r.setComparisonDocument(m.Q.documentB,t),a()&&E({[m.Q.documentA]:e,[m.Q.documentB]:t,[m.Q.result]:{source:null}})}()}),[n,r,o,a]),d.createElement("div",{className:i.docComparison},S?d.createElement(Y,{backend:r,renderPageCallback:e.renderPageCallback,allowedTileScales:e.allowedTileScales,viewportState:e.viewportState,interactionMode:t,scrollElement:e.scrollElement,styles:i,dispatch:e.dispatch,settings:o,completionConfiguration:e.completionConfiguration,documentSources:S,setDocumentSources:E,viewportWidth:e.viewportWidth,currentDocumentKey:y,addReferencePoint:w,referencePoints:s,isAutoCompare:f,renderPagePreview:e.renderPagePreview}):null,!ee&&!(6===s.length)&&!f&&g&&d.createElement(J,{styles:i.userHintStyles,onHide:()=>v(!1)}))},oe=(0,f.vU)({Comparison_documentOld:{id:"Comparison_documentOld",defaultMessage:"Old Document",description:"One of the documents to be compared."},Comparison_documentOldTouch:{id:"Comparison_documentOldTouch",defaultMessage:"Old",description:"The original document used in the comparison."},Comparison_documentNew:{id:"Comparison_documentNew",defaultMessage:"New Document",description:"The new document used in the comparison."},Comparison_documentNewTouch:{id:"Comparison_documentNewTouch",defaultMessage:"New",description:"The new document used in the comparison."},Comparison_result:{id:"Comparison_result",defaultMessage:"Comparison",description:"The compared document."},Comparison_resetButton:{id:"Comparison_resetButton",defaultMessage:"Reset",description:"Reset all placed alignment points."},Comparison_alignButton:{id:"Comparison_alignButton",defaultMessage:"Align Documents",description:"Start the manual document alignment process."},Comparison_alignButtonTouch:{id:"Comparison_alignButtonTouch",defaultMessage:"Align",description:"Start the manual document alignment process."},Comparison_selectPoint:{id:"Comparison_selectPoint",defaultMessage:"Select Point",description:"Select alignment point."}})},2270:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E,s:()=>y});var o=n(84121),r=n(67294),i=n(73264),a=n(83634),s=n(9946),l=n(51559),c=n(55024),u=n(79973),d=n.n(u),p=n(94287),f=n.n(p);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;tPromise.resolve().then(n.bind(n,99728)))),y={documentA:{source:s.b.USE_OPEN_DOCUMENT,pageIndex:0},documentB:{source:s.b.USE_FILE_DIALOG,pageIndex:0},strokeColors:{documentA:new a.Z({r:245,g:40,b:27}),documentB:new a.Z({r:49,g:193,b:255})},blendMode:"darken",autoCompare:!1},b=r.createElement("div",{className:d().documentComparisonPageLoading,"data-testid":"documentComparisonFallback"},r.createElement(i.Z,{scale:2})),w=(e,t)=>({documentA:m(m({},y.documentA),{},{pageIndex:(null==e?void 0:e.documentA.source)===s.b.USE_OPEN_DOCUMENT?t:0},null==e?void 0:e.documentA),documentB:m(m({},y.documentB),{},{pageIndex:(null==e?void 0:e.documentB.source)===s.b.USE_OPEN_DOCUMENT?t:0},null==e?void 0:e.documentB),strokeColors:m(m({},y.strokeColors),null==e?void 0:e.strokeColors),blendMode:(null==e?void 0:e.blendMode)||y.blendMode,autoCompare:e.autoCompare}),S=e=>e!==s.b.USE_OPEN_DOCUMENT&&e!==s.b.USE_FILE_DIALOG?(0,l.rh)(e):null,E=e=>{const{backend:t,viewportState:n,interactionMode:o=null,configuration:i}=e,a=r.useMemo((()=>w(i,n.currentPageIndex)),[i,n.currentPageIndex]);r.useEffect((()=>{let e;a[c.Q.documentA].source===s.b.USE_OPEN_DOCUMENT?e=c.Q.documentA:a[c.Q.documentB].source===s.b.USE_OPEN_DOCUMENT&&(e=c.Q.documentB),t.persistOpenDocument(e)}),[t,a]);const l=r.useRef({[c.Q.documentA]:S(a.documentA.source),[c.Q.documentB]:S(a.documentB.source)});return r.createElement(r.Suspense,{fallback:b},r.createElement(v,{backend:e.backend,interactionMode:o,renderPageCallback:e.renderPageCallback,allowedTileScales:e.allowedTileScales,viewportState:n,scrollElement:e.scrollElement,CSS_HACK:g,viewportWidth:e.viewportWidth,dispatch:e.dispatch,settings:a,completionConfiguration:i.completion,initialDocumentSources:l.current,renderPagePreview:e.renderPagePreview}))}},84537:(e,t,n)=>{"use strict";n.d(t,{n:()=>l});var o=n(22122),r=n(67294),i=n(25915),a=n(72673),s=n.n(a);function l(e){return r.createElement(i.bK,(0,o.Z)({},e,{styles:{label:s().label,input:s().input}}))}},28910:(e,t,n)=>{"use strict";n.d(t,{U:()=>l});var o=n(67294),r=n(25915),i=n(13540),a=n(99580),s=n.n(a);function l(e){let{title:t,children:a}=e;const[l,c]=o.useState(!1),u=(0,o.useCallback)((()=>c((e=>!e))),[]);return o.createElement(o.Fragment,null,o.createElement(r.w6,{expanded:l,onPress:u,className:s().wrapper},o.createElement("div",{className:s().controlContent},o.createElement(i.Z,{src:n(35982)(`./caret-${l?"down":"right"}.svg`),className:s().icon}),o.createElement("span",null,t))),o.createElement(r.F0,{expanded:l},o.createElement("div",{className:s().content},a)))}},40853:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>F,ck:()=>T,zx:()=>O});var o=n(84121),r=n(22122),i=n(67294),a=n(76154),s=n(94184),l=n.n(s),c=n(18390),u=n(35129),d=n(28910),p=n(13540),f=n(66003),h=n(2726),m=n(84537),g=n(5462),v=n(45395),y=n(13448),b=n(95651),w=n(22458),S=n.n(w),E=n(9437),P=n.n(E),x=n(93628),D=n.n(x);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function k(e){for(var t=1;to=>{let{btnComponentProps:a,selectedItem:s}=o;return i.createElement(c.Z,(0,r.Z)({is:"div"},a,{className:l()("PSPDFKit-Input-Dropdown-Button",D().selectBox,S().selectBox,{[D().measurementDropdownText]:"measurement"===t}),style:{minWidth:"measurement"===t?"60px":"100px",columnGap:"measurement"===t?"8px":"",width:n?`${n}px`:""}}),i.createElement("span",null,null!=s&&s.label?A(s.label)?e(A(s.label)):s.label:null),i.createElement("div",null,(0,y.Z)({type:"caret-down",style:{width:12,height:12,flexBasis:12},className:l()(D().dropdownIcon)})))},T=(e,t)=>n=>{let{item:o,state:a,itemComponentProps:s,ref:u}=n;return i.createElement(c.Z,(0,r.Z)({is:"div",className:l()(D().item,{[D().isSelected]:(null==a?void 0:a.includes("selected"))||(null==a?void 0:a.includes("focused")),[D().measurementDropdownText]:"measurement"===t}),name:null==o?void 0:o.value},s,{ref:u}),i.createElement("span",null,null!=o&&o.label?A(o.label)?e(A(o.label)):o.label:null))};const I=(0,a.vU)({borderColor:{id:"borderColor",defaultMessage:"Border Color",description:"Form designer popover style section border color label"},borderWidth:{id:"borderWidth",defaultMessage:"Border Width",description:"Form designer popover style section border width label"},borderStyle:{id:"borderStyle",defaultMessage:"Border Style",description:"Form designer popover style section border style label"},print:{id:"print",defaultMessage:"Print",description:"Form designer popover style section print label"},solid:{id:"solid",defaultMessage:"Solid",description:"Form designer popover style section solid border label"},dashed:{id:"dashed",defaultMessage:"Dashed",description:"Form designer popover style section dashed border label"},beveled:{id:"beveled",defaultMessage:"Beveled",description:"Form designer popover style section beveled border label"},inset:{id:"inset",defaultMessage:"Inset",description:"Form designer popover style section inset border label"},underline:{id:"underline",defaultMessage:"Underline",description:"Form designer popover style section unredline border label"}}),F=function(e){var t;let{annotation:o,updateAnnotation:r,intl:a,frameWindow:s,label:l,pageSize:c}=e;const y=i.useCallback((e=>a.formatMessage(u.Z.numberInPt,{arg0:e.toFixed(0)})),[a]),w=i.useCallback((e=>`${Math.round(e)}%`),[]),E=i.useCallback((e=>r({borderWidth:e})),[r]),x=i.useCallback((e=>{if(!c)return;const t=Number(e);if(90!==Math.abs(t-o.rotation)&&270!==Math.abs(t-o.rotation))r({rotation:t});else{const e=(0,b.eJ)(o,c),n=e.set("rotation",t);r({rotation:n.rotation,boundingBox:e.boundingBox})}}),[c,r,o]),D=i.useMemo((()=>[{label:"none",value:"none"},...Object.keys(v.N).map((e=>({label:e,value:e})))]),[]),C=null!==(t=D.find((e=>{var t;return(null!==(t=o.borderStyle)&&void 0!==t?t:"none")===e.value})))&&void 0!==t?t:null,F=[{label:"0°",value:"0"},{label:"90°",value:"90"},{label:"180°",value:"180"},{label:"270°",value:"270"}];let M=o.rotation?F.find((e=>{let{value:t}=e;return Number(t)===o.rotation})):F[0];void 0===M&&(M=F[0]);const _=i.useCallback(O(a.formatMessage),[a.formatMessage]),R=i.useCallback(T(a.formatMessage),[a.formatMessage]);return i.createElement(d.U,{title:l},i.createElement("div",{className:S().item},i.createElement(p.Z,{src:n(59601),className:S().itemIcon,role:"presentation"}),i.createElement("div",{className:S().itemLabel},a.formatMessage(u.Z.fillColor)),i.createElement(f.Z,{record:o,onChange:r,styles:k(k({},P()),{},{colorSvg:S().colorSvg,colorItem:S().colorItem,controlWrapper:k(k({},P().controlWrapper),{},{width:"auto"})}),accessibilityLabel:a.formatMessage(u.Z.fillColor),caretDirection:"down",colorProperty:"backgroundColor",frameWindow:s,className:S().colorDropdown})),i.createElement("div",{className:S().item},i.createElement(p.Z,{src:n(35147),className:S().itemIcon,role:"presentation"}),i.createElement("div",{className:S().itemLabel},a.formatMessage(I.borderColor)),i.createElement(f.Z,{record:o,onChange:r,styles:k(k({},P()),{},{colorSvg:S().colorSvg,colorItem:S().colorItem,controlWrapper:k(k({},P().controlWrapper),{},{width:"auto"})}),accessibilityLabel:a.formatMessage(I.borderColor),caretDirection:"down",colorProperty:"borderColor",frameWindow:s,className:S().colorDropdown})),i.createElement("div",{className:S().item},i.createElement(p.Z,{src:n(81913),className:S().itemIcon,role:"presentation"}),i.createElement("div",{className:S().itemLabel},a.formatMessage(I.borderStyle)),i.createElement("div",{className:S().nativeDropdown},i.createElement("select",{"aria-label":a.formatMessage(I.borderStyle),className:"PSPDFKit-Input-Dropdown-Select",value:o.borderStyle||"",onChange:e=>{e.target.value!==D[0].value?void 0!==e.target.value&&r({borderStyle:e.target.value}):r({borderStyle:null})}},D.map((e=>i.createElement("option",{key:e.value,value:e.value,disabled:e.disabled},e.label?a.formatMessage(A(e.label)):""))))),i.createElement(g.Z,{items:D,value:C,accessibilityLabel:a.formatMessage(I.borderStyle),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:S().dropdownGroupComponent,menuClassName:S().dropdownGroupMenu,ButtonComponent:_,ItemComponent:R,onSelect:(e,t)=>{t.value!==D[0].value?void 0!==t.value&&r({borderStyle:t.value}):r({borderStyle:null})},frameWindow:s})),i.createElement("div",{className:S().item},i.createElement(p.Z,{src:n(62846),className:S().itemIcon,role:"presentation"}),i.createElement("div",{className:S().itemLabel},a.formatMessage(I.borderWidth)),i.createElement(h.Z,{onChange:E,value:o.borderWidth||0,name:"borderWidth",caretDirection:"down",min:0,max:40,valueLabel:y,className:S().sliderDropdown,accessibilityLabel:a.formatMessage(I.borderWidth)})),i.createElement("div",{className:S().item},i.createElement(p.Z,{src:n(53491),className:S().itemIcon,role:"presentation"}),i.createElement("div",{className:S().itemLabel},a.formatMessage(u.Z.opacity)),i.createElement(h.Z,{onChange:e=>r({opacity:e/100}),value:100*o.opacity,name:"opacity",caretDirection:"down",valueLabel:w,className:S().sliderDropdown,accessibilityLabel:a.formatMessage(u.Z.opacity)})),i.createElement("div",{className:S().item},i.createElement(p.Z,{src:n(55426),className:S().itemIcon,role:"presentation"}),i.createElement("div",{className:S().itemLabel},a.formatMessage(u.Z.rotation)),i.createElement("div",{className:S().nativeDropdown},i.createElement("select",{"aria-label":a.formatMessage(u.Z.rotation),className:"PSPDFKit-Input-Dropdown-Select",value:o.rotation||0,onChange:e=>{e.target.value&&x(e.target.value)}},F.map((e=>i.createElement("option",{key:e.value,value:e.value,disabled:e.disabled},e.label))))),i.createElement(g.Z,{items:F,value:M,accessibilityLabel:a.formatMessage(u.Z.rotation),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:S().dropdownGroupComponent,menuClassName:S().dropdownGroupMenu,ButtonComponent:_,ItemComponent:R,onSelect:(e,t)=>{t.value&&x(t.value)},frameWindow:s})),i.createElement("div",{className:S().item},i.createElement(p.Z,{src:n(54629),className:S().itemIcon,role:"presentation"}),i.createElement("div",{className:S().itemLabel},a.formatMessage(I.print)),i.createElement(m.n,{value:!o.noPrint,onUpdate:e=>r({noPrint:!e}),accessibilityLabel:a.formatMessage(I.print)})))}},98785:(e,t,n)=>{"use strict";n.d(t,{X:()=>f,Z:()=>h});var o=n(67294),r=n(35369),i=n(55961),a=n(87515),s=n(88804),l=n(73815),c=n(95651),u=n(16126),d=n(10333),p=n.n(d);function f(e,t,n,o){const{width:r,height:i}=e,a=Math.min(n/r,n/i),s=Math.min(o/r,o/i),c=Math.ceil(r*s*(0,l.L)()),u=Math.ceil(i*s*(0,l.L)()),d=Math.floor(r*a),p=Math.floor(i*a);let f=d,h=p;90!==t&&270!==t||(f=p,h=d);let m=0,g=0;return 90===t?m=f:180===t?(m=f,g=h):270===t&&(g=h),{ratio:a,tileRatio:s,tileWidth:c,tileHeight:u,containerWidth:d,containerHeight:p,rotatedWidth:f,rotatedHeight:h,translationX:m,translationY:g}}const h=(0,i.x)((function(e,t){const{page:n}=t,{backend:o,annotations:i,attachments:a,formFields:s,showAnnotations:l,renderPageCallback:d}=e,p=l?(0,c.xp)(i,n):void 0,f=l?(0,u.ET)(s,n):void 0,h=l&&f?(0,u.Qg)(f.reduce(((e,t)=>e.set(t.name,t)),(0,r.D5)())):void 0;return{annotations:p,formFields:f,formFieldValues:h,attachments:l?a:void 0,backend:o,renderPageCallback:d,digitalSignatures:e.digitalSignatures}}))((function(e){const{page:{pageSize:t,pageIndex:n,pageKey:r},size:i,maxSize:c,backend:u,annotations:d,attachments:h,formFields:m,formFieldValues:g,renderPageCallback:v,digitalSignatures:y,pageRef:b}=e,w=e.rotation||0,{ratio:S,tileRatio:E,tileWidth:P,tileHeight:x,rotatedWidth:D,rotatedHeight:C,translationX:k,translationY:A}=f(t,w,i,c),O=o.useMemo((function(){return new s.$u({width:P,height:x})}),[x,P]),T=o.useMemo((function(){return new s.UL({width:P,height:x})}),[x,P]),I={width:D,height:C,transform:`\n translateX(${k}px)\n translateY(${A}px)\n rotate(${w}deg)\n scale(${S/E/(0,l.L)()})\n `,transformOrigin:"top left"};return o.createElement("div",{style:I,ref:b},o.createElement("div",{className:p().tilePlaceholder,style:{width:P,height:x}}),o.createElement(a.Z,{backend:u,pageIndex:n,originalPageSize:t,scaledPageSize:O,rect:T,annotations:d,attachments:h,formFields:m,formFieldValues:g,renderPageCallback:v,digitalSignatures:y,pageKey:r}))}))},34855:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var o=n(22122),r=n(84121),i=n(67294),a=n(73935),s=n(7844),l=n(82481),c=n(45719),u=n.n(c);class d extends i.Component{constructor(){super(...arguments),(0,r.Z)(this,"shouldComponentUpdate",s.O),(0,r.Z)(this,"_lastOrientationChange",0),(0,r.Z)(this,"_handleResize",(()=>{const e=this._element&&this._element.getBoundingClientRect();if(!e)return;const t=Date.now()-this._lastOrientationChange<1e3;(0,a.unstable_batchedUpdates)((()=>{this.props.onResize(l.UL.fromClientRect(e),t)}))})),(0,r.Z)(this,"_handleOrientationChange",(()=>{this._lastOrientationChange=Date.now()})),(0,r.Z)(this,"_handleRef",(e=>{this._element=e}))}componentDidMount(){const e=this._getIFrameWindow();null==e||e.addEventListener("resize",this._handleResize),null==e||e.addEventListener("orientationchange",this._handleOrientationChange),this._handleResize()}componentWillUnmount(){const e=this._getIFrameWindow();null==e||e.removeEventListener("resize",this._handleResize),null==e||e.removeEventListener("orientationchange",this._handleOrientationChange)}_getIFrameWindow(){var e;return null===(e=this._element)||void 0===e?void 0:e.contentWindow}render(){return i.createElement("iframe",(0,o.Z)({ref:this._handleRef,className:u().root},{inert:""},{"aria-hidden":!0,tabIndex:"-1"}))}}},13448:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(67294),r=n(94184),i=n.n(r),a=n(13540),s=n(25393),l=n.n(s),c=n(30360);function u(e){const{icon:t,type:r,style:s=null}=e,u=i()(l().root,e.className,"PSPDFKit-Icon","PSPDFKit-Icon-"+(0,c.in)(r));if(t)return/{"use strict";n.d(t,{Z:()=>p});var o=n(84121),r=n(67294),i=n(82481),a=n(97528),s=n(18146),l=n(95651),c=n(32801),u=n(35129);const d=[i.Xs,i.gd,i.Zc,s.Z,i.FV,i.o9,i.om,i.Hi,i.b3,i.x_];class p extends r.PureComponent{static getDerivedStateFromProps(e){if(e.annotationToolbarColorPresets){const t=e.annotationToolbarColorPresets({propertyName:(()=>{for(const[t,n]of l.fc.entries())if(n===e.colorProperty)return t})(),defaultAnnotationToolbarColorPresets:a.Ei.COLOR_PRESETS});if(void 0!==t)return!1===t.showColorPicker?{hasColorPicker:t.showColorPicker,colors:t.presets,isUsingCustomConfig:!0}:{colors:t.presets,hasColorPicker:!0,isUsingCustomConfig:!0}}return e.colors?{colors:e.colors}:{colors:a.Ei.COLOR_PRESETS}}constructor(e){super(e),(0,o.Z)(this,"state",{colors:a.Ei.COLOR_PRESETS,colorPresets:(0,l.sH)(this.props.colorProperty),creatingColor:void 0,hasColorPicker:!0,isDeleteButtonVisible:void 0,isUsingCustomConfig:!1}),(0,o.Z)(this,"defaultBorderColor","#404040"),(0,o.Z)(this,"_autoFocused",!1),(0,o.Z)(this,"_onChange",(e=>{this.props.onChange({[this.props.colorProperty]:e?e.color:null})})),(0,o.Z)(this,"showCustomPickerForAnnotation",(e=>d.some((t=>e instanceof t)))),(0,o.Z)(this,"_setStoredColors",(e=>localStorage.setItem(`persistedColors${this.props.colorProperty}`,JSON.stringify(e))))}render(){var e;const{record:t}=this.props,n=this.state.hasColorPicker&&(!(t instanceof i.q6)||this.showCustomPickerForAnnotation(t)),o=this.props.record[this.props.colorProperty],a=null!==(e=this.state.colors.find((e=>!(null!=e.color&&!e.color.transparent||null!=o)||null!=e.color&&null!=o&&e.color.equals(o))))&&void 0!==e?e:{color:o,localization:u.Z.color};return r.createElement(c.Z,{colors:this.state.colors,value:a,customColorPresets:this.state.colorPresets,setCustomColorPresets:e=>e?this.setState({colorPresets:e}):null,onChange:this._onChange,className:this.props.className,caretDirection:this.props.caretDirection,removeTransparent:this.props.removeTransparent,opacity:this.props.record.opacity,accessibilityLabel:this.props.accessibilityLabel,keepOpacity:this.props.keepOpacity,frameWindow:this.props.frameWindow,innerRef:this.props.innerRef,lastToolbarActionUsedKeyboard:this.props.lastToolbarActionUsedKeyboard,styles:this.props.styles,setStoredColors:this._setStoredColors,shouldShowCustomColorPicker:n,unavailableItemFallback:{type:"swatch"},isUsingCustomConfig:this.state.isUsingCustomConfig})}}(0,o.Z)(p,"defaultProps",{className:"",removeTransparent:!1,lastToolbarActionUsedKeyboard:!1})},32801:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Y});var o=n(22122),r=n(18390),i=n(67294),a=n(21614),s=n(50974),l=n(25915),c=n(94184),u=n.n(c),d=n(76154),p=n(44364),f=n.n(p),h=n(97528),m=n(82481),g=n(62967),v=n.n(g),y=n(93628),b=n.n(y),w=n(27435),S=n.n(w),E=n(38006),P=n.n(E),x=n(35129),D=n(5462),C=n(23093),k=n.n(C),A=n(36095),O=n(4054),T=n(13448),I=n(13540),F=n(775),M=n(47650),_=n.n(M);const R=i.memo((function(e){const{onCreateNewColor:t,onChange:n,disabled:o,isChoosingColor:r}=e,[a,s]=i.useState("#000000"),l={opacity:o?"40%":"100%",backgroundImage:r?"none":_().nativeColorInput.backgroundImage,backgroundColor:r?a:null,border:r?"1px solid var(--PSPDFKit-ColorDropdownPickerComponent-item-circle-border-stroke)":"none",width:r?"18px":"22px",height:r?"18px":"22px"};return i.createElement("label",{htmlFor:"input-color"},i.createElement("div",{className:_().nativeColorInputWrapper},i.createElement(F.DebounceInput,{className:u()(_().nativeColorInput,"PSPDFKit-Custom-Color-Input"),style:l,type:"color",id:"input-color",debounceTimeout:200,value:a,onChange:e=>{const t=e.target.value;t&&(s(t),n(m.Il.fromHex(t)))},onBlur:e=>{const n=e.target.value;n&&t(m.Il.fromHex(n))},disabled:o})))}));var N,L,B,j,z;const K=e=>{var t,n;const o=null!==(t=e.colors)&&void 0!==t?t:h.Ei.COLOR_PRESETS,{formatMessage:r}=(0,d.YB)(),{removeTransparent:s=!1,customColorPresets:l=[],setCustomColorPresets:c,setStoredColors:p,lastToolbarActionUsedKeyboard:f=!1,opacity:g=1,innerRef:v,value:y,caretDirection:b,keepOpacity:w,frameWindow:S,accessibilityLabel:E,onChange:P,unavailableItemFallback:x={type:"label"},disabled:C=!1,styles:k,shouldShowCustomColorPicker:O=!1,isUsingCustomConfig:T=!1,menuClassName:I}=e,[F,M]=i.useState(),[_,N]=i.useState(),L=i.useRef(!1),B=i.useCallback((e=>{const t=[...o,...l].find((t=>{var n,o,r,i;return null!==(n=null!=t.color&&null!=(null==e||null===(o=e.value)||void 0===o?void 0:o.color)&&(null===(r=e.value.color)||void 0===r?void 0:r.equals(t.color)))&&void 0!==n?n:null==(null==e||null===(i=e.value)||void 0===i?void 0:i.color)&&null==t.color})),n=[...o,...l].find((e=>t?V(e)===V(t):null));P(null!=n?n:null)}),[o,l,P]),j=i.useCallback((e=>{var t;const n={color:e,localization:{id:`custom-${(0,a.v4)()}`,defaultMessage:"Custom",description:"Custom color"}},o=[...l,n];null==p||p(o),c&&(c(o),M(void 0)),null!=y&&null!==(t=y.color)&&void 0!==t&&t.equals(e)||P(n)}),[l,c,p,P,y]),z=i.useCallback((e=>{var t;const n=l.filter((t=>t.localization.id!==e.localization.id));null==p||p(n),c&&(c(n),M(void 0)),e.color&&null!=y&&null!==(t=y.color)&&void 0!==t&&t.equals(e.color)&&P(o[0])}),[l,P,c,p,o,y]),K=i.useCallback((e=>{M(e);const t={color:e,localization:{id:`custom-${(0,a.v4)()}`,defaultMessage:"Custom",description:"Custom color"}};P(t)}),[P]),U=[...o,...l].filter((e=>!(s&&(null===e.color||e.color.transparent)))).map((e=>({label:e.localization.id,value:e,disabled:!1}))),G=H({caretDirection:b,colors:o,customColorPresets:l,colorItems:U,disabled:C,innerRef:v,keepOpacity:w,lastToolbarActionUsedKeyboard:f,opacity:g,unavailableItemFallback:x,styles:k,value:y,formatMessage:r,autoFocused:L}),W=$({colors:o,customColorPresets:l,isDeleteButtonVisible:_,setIsDeleteButtonVisible:N,formatMessage:r,handleChange:B,handleDeleteColor:z,keepOpacity:w,opacity:g,styles:k});return i.createElement("div",{className:k.controlWrapper},i.createElement("div",{className:k.control},i.createElement(D.Z,{items:U,value:null!=y&&null!==(n=U.find((e=>V(e.value)===V(y))))&&void 0!==n?n:null,discreteDropdown:!1,isActive:!1,caretDirection:b,className:`${e.className} ${k.colorSelect}`,menuClassName:u()(k.dropdownMenu,k.colorPickerDropdownMenu,I),ButtonComponent:G,ItemComponent:W,onSelect:(0,A.b1)()?void 0:(e,t)=>{B(t)},frameWindow:S,accessibilityLabel:E,maxCols:6,itemWidth:30,appendAfter:O?{node:Z,index:T?o.length-1:o.length-(s?2:1)}:null},O&&i.createElement(R,{onCreateNewColor:j,onChange:K,disabled:l.length>=17,isChoosingColor:F instanceof m.Il}))))},Z=()=>i.createElement("label",{style:{width:"100%",paddingTop:"10px",paddingBottom:"10px",paddingLeft:"5px"}},"Custom");function U(e){let{onClick:t}=e;return i.createElement(r.Z,{onClick:t,is:"button",className:u()(`PSPDFKit-AnnotationToolbar-Custom-Color-Delete-Button ${v().colorDeleteButton}`)},N||(N=i.createElement(I.Z,{src:k(),"aria-hidden":"true"})))}function V(e){return null!=e?null!=e.color?e.color.toCSSValue():"none":"N/A"}function G(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return{stroke:"var(--PSPDFKit-ColorDropdownPickerComponent-item-circle-border-stroke)",fill:e?e.toCSSValue():"none",strokeWidth:1,fillOpacity:t?n:1}}const W=()=>i.createElement(i.Fragment,null,i.createElement("defs",null,i.createElement("pattern",{id:"PSPDFKit-Color-Background-Chessboard",width:"0.5",height:"0.5",patternContentUnits:"objectBoundingBox"},i.createElement("rect",{x:"0",y:"0",width:"0.25",height:"0.25",style:{fill:"rgba(0,0,0,.2)"}}),i.createElement("rect",{x:"0.25",y:"0.25",width:"0.25",height:"0.25",style:{fill:"rgba(0,0,0,.2)"}}))),i.createElement("circle",{cx:"12",cy:"12",r:"10",style:{fill:"url(#PSPDFKit-Color-Background-Chessboard)"}})),q=()=>i.createElement("g",{transform:"translate(5 5)"},i.createElement("line",{x1:"2",x2:"12",y1:"12",y2:"2",style:{stroke:"#F00",strokeWidth:2},strokeLinecap:"round"})),H=e=>t=>{var n,r,a;let{btnComponentProps:s,selectedItem:c}=t,d=!1;if(null!=(null==c||null===(n=c.value)||void 0===n?void 0:n.color)){var p;const t=null===(p=c.value)||void 0===p?void 0:p.color;d=Boolean(!e.colorItems.some((e=>{var n,o;return null===(n=e.value)||void 0===n||null===(o=n.color)||void 0===o?void 0:o.equals(t)})))}else d=!e.colorItems.some((e=>{var t,n,o,r;return null==(null===(t=e.value)||void 0===t?void 0:t.color)&&null==(null==c||null===(n=c.value)||void 0===n?void 0:n.color)||(null===(o=e.value)||void 0===o||null===(r=o.color)||void 0===r?void 0:r.transparent)}));const f=[...e.colors,...e.customColorPresets].find((e=>{var t;return c?V(e)===V(c.value):null===(t=e.color)||void 0===t?void 0:t.transparent})),h=f?V(f):null,m=e.formatMessage(f?f.localization:{id:"transparent",defaultMessage:"Transparent",description:"Transparent"}),g=e.value,v=(!g||!f||"transparent"===f.localization.id||!e.keepOpacity&&e.opacity<1)&&(L||(L=i.createElement(W,null)));return i.createElement("button",(0,o.Z)({},s,{className:u()("PSPDFKit-Input-Dropdown-Button","PSPDFKit-Input-Color-Dropdown",e.styles.colorSelectButton,{[S().isDisabled]:e.disabled,[e.styles.controlIsDisabled]:e.disabled}),ref:t=>{s.ref(t),"function"==typeof e.innerRef?e.innerRef(t):e.innerRef&&"object"==typeof e.innerRef&&"current"in e.innerRef&&(e.innerRef.current=t),e.innerRef&&t&&!e.autoFocused.current&&(t.focus(),e.autoFocused.current=!0,e.lastToolbarActionUsedKeyboard&&(t.classList.add(P().focusedFocusVisible),t.addEventListener("blur",O.Cz)))},name:"clickableBox",disabled:e.disabled}),d&&"label"===e.unavailableItemFallback.type?i.createElement("span",null,null!==(r=e.unavailableItemFallback.label)&&void 0!==r?r:"N/A"):i.createElement(i.Fragment,null,i.createElement(l.TX,{tag:"div"},m),i.createElement("svg",(0,o.Z)({viewBox:"0 0 24 24",className:e.styles.colorSvg,key:h},{title:m,value:h},{"aria-hidden":!0}),v,(f&&"transparent"===f.localization.id||!g)&&(B||(B=i.createElement(q,null))),i.createElement("circle",{cx:"12",cy:"12",r:"10",style:G(null!==(a=null==g?void 0:g.color)&&void 0!==a?a:null)}))),i.createElement("div",null,(0,T.Z)({type:`caret-${e.caretDirection}`,style:{width:12,height:12,flexBasis:12},className:u()(b().dropdownIcon)})))},$=e=>t=>{var n,a;let{item:c,state:d,itemComponentProps:p}=t;const h=[...e.colors,...e.customColorPresets].find((e=>{var t,n;return null!=e.color&&null!=(null==c||null===(t=c.value)||void 0===t?void 0:t.color)?e.color.equals(null==c?void 0:c.value.color):null==e.color&&null==(null==c||null===(n=c.value)||void 0===n?void 0:n.color)})),m=e.colors.some((e=>{var t,n;return null!=e.color&&null!=(null==c||null===(t=c.value)||void 0===t?void 0:t.color)?e.color.equals(c.value.color):null==e.color&&null==(null==c||null===(n=c.value)||void 0===n?void 0:n.color)}));(0,s.kG)(h,"Couldn't find matching color.");const g=V(h),y=m?e.formatMessage(h.localization):e.formatMessage(x.Z.newColor),w=e.customColorPresets.find((e=>{var t,n;return null!=e.color&&null!=(null==c||null===(t=c.value)||void 0===t?void 0:t.color)?e.color.equals(c.value.color):null==e.color&&null==(null==c||null===(n=c.value)||void 0===n?void 0:n.color)}));let E,P=0;const D=("transparent"===h.localization.id||!e.keepOpacity&&e.opacity<1)&&(j||(j=i.createElement(W,null)));return i.createElement("div",{"data-testid":"color-swatch",className:v().colorItemContainer},w&&(e.isDeleteButtonVisible===g||!(0,A.b1)())&&i.createElement(U,{onClick:()=>e.handleDeleteColor(w)}),i.createElement(r.Z,(0,o.Z)({is:"div",className:u()(f().root,S().root,{[b().isSelected]:(null==d?void 0:d.includes("selected"))||(null==d?void 0:d.includes("focused"))},b().item,e.styles.colorItem),name:null!==(n=null==c||null===(a=c.value)||void 0===a?void 0:a.localization.id)&&void 0!==n?n:""},p,{onPointerDown:(0,A.b1)()?()=>{P=Date.now(),E=setTimeout((()=>{e.setIsDeleteButtonVisible(g)}),300)}:void 0,onPointerUp:(0,A.b1)()?(t=>()=>{Date.now()-P<300&&(window.clearTimeout(E),e.setIsDeleteButtonVisible(void 0),e.handleChange(t))})(c):void 0}),i.createElement(l.TX,{tag:"div"},y),i.createElement("svg",(0,o.Z)({viewBox:"0 0 24 24",className:`PSPDFKit-Input-Dropdown-Item ${e.styles.colorSvg}`,key:g},{title:y,value:g},{"aria-hidden":"true"}),D,"transparent"===h.localization.id&&(z||(z=i.createElement(q,null))),i.createElement("circle",{cx:"12",cy:"12",r:"10",style:G(h.color,e.keepOpacity)}))))},Y=i.memo(K)},2726:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var o=n(22122),r=n(84121),i=(n(50974),n(67294)),a=n(94184),s=n.n(a),l=n(25915),c=n(13540),u=n(7844),d=n(23215),p=n.n(d);let f=0;class h extends i.Component{constructor(){super(...arguments),(0,r.Z)(this,"inputRef",i.createRef()),(0,r.Z)(this,"shouldComponentUpdate",u.O),(0,r.Z)(this,"_guid",f++),(0,r.Z)(this,"triggerChange",(()=>{this.inputRef.current&&this.props.onChange(Number(this.inputRef.current.value))}))}render(){const{label:e,accessibilityLabel:t}=this.props;return i.createElement("div",{className:`PSPDFKit-Input-Slider ${this.props.className} ${p().root}`},this.props.label?i.createElement("label",{htmlFor:`${p().label}-${this._guid}`,className:p().label},this.props.label):this.props.accessibilityLabel?i.createElement(l.TX,{tag:"label",htmlFor:`${p().label}-${this._guid}`},this.props.accessibilityLabel):null,i.createElement("div",{className:p().input},i.createElement("input",{id:`${p().label}-${this._guid}`,type:"range",ref:this.inputRef,className:"PSPDFKit-Input-Slider-Input",min:this.props.min,max:this.props.max,step:this.props.step,value:this.props.value,onChange:this.triggerChange})),!this.props.hideLabel&&i.createElement("label",{className:`PSPDFKit-Input-Slider-Value ${p().value}`},this.props.valueLabel(this.props.value)))}}(0,r.Z)(h,"defaultProps",{min:0,max:100,step:1,valueLabel:e=>e.toString(),className:""});var m=n(19770),g=n.n(m);let v=0;class y extends i.Component{constructor(){super(...arguments),(0,r.Z)(this,"controlRef",i.createRef()),(0,r.Z)(this,"state",{isOpen:!1}),(0,r.Z)(this,"_guid",v++),(0,r.Z)(this,"_toggleItems",(()=>{this.state.isOpen?this._hideItems():this._showItems()})),(0,r.Z)(this,"_handleKeyDown",(e=>{"ArrowDown"!==e.key||this.state.isOpen||this._toggleItems()})),(0,r.Z)(this,"_handleBlur",(e=>{e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),setTimeout((()=>{const e=this.controlRef.current,t=e&&e.ownerDocument&&e.ownerDocument.activeElement;this.state.isOpen&&e&&!e.contains(t)&&this._hideItems()}),0)}))}_showItems(){this.setState({isOpen:!0})}_hideItems(){this.setState({isOpen:!1})}render(){const{label:e,accessibilityLabel:t,caretDirection:o}=this.props;const r=this.props.className?this.props.className:"",a=s()(g().root,this.state.isOpen&&g().show,r,"PSPDFKit-Input-Dropdown",this.state.isOpen&&"PSPDFKit-Input-Dropdown-open");return i.createElement("div",{style:this.props.style,className:a,onBlur:this._handleBlur,ref:this.controlRef,tabIndex:-1},i.createElement("button",{className:`PSPDFKit-Input-Dropdown-Button ${g().button}`,onClick:this._toggleItems,onKeyDown:this._handleKeyDown,"aria-labelledby":`${g().srLabel}-${this._guid} ${g().value}-${this._guid}`,style:{height:32},ref:this.props.innerRef,"aria-expanded":this.state.isOpen,"aria-controls":`${g().dropdownItems}-${this._guid}`,type:"button"},i.createElement("span",{className:`PSPDFKit-Input-Dropdown-FlexContainer ${g().flexContainer}`,"aria-hidden":"true"},i.createElement("span",{className:`PSPDFKit-Input-Slider-Value ${g().value}`,id:`${g().value}-${this._guid}`},this.props.valueLabel(this.props.value))),i.createElement(l.TX,{id:`${g().srLabel}-${this._guid}`},t||null),i.createElement(c.Z,{src:n("down"===o?58021:7359),className:g().toggle,"aria-hidden":"true"})),i.createElement("div",{className:s()("PSPDFKit-Input-Dropdown-Items",g().dropdownItems,g().dropdown,{[g().dropDownItemsUp]:"up"===this.props.caretDirection}),id:`${g().dropdownItems}-${this._guid}`},this.state.isOpen&&this._renderDropdownItems()))}_renderDropdownItems(){return i.createElement("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",width:"auto",padding:"5px 10px"}},i.createElement(h,(0,o.Z)({},this.props,{className:`${this.props.className} ${g().slider}`,hideLabel:!0})))}}(0,r.Z)(y,"defaultProps",{min:0,max:100,step:1,valueLabel:e=>e.toString(),className:""})},20500:(e,t,n)=>{"use strict";n.d(t,{B:()=>P});var o,r=n(22122),i=n(67294),a=n(67665),s=n(94184),l=n.n(s),c=n(27515),u=n(73815),d=n(36095),p=n(58479),f=n(13944),h=n(82481),m=n(72800),g=n(71693),v=n(89029),y=n.n(v);const b=d.G6&&(0,u.L)()>1,w=b?2:1,S=16/w;function E(e,t){const{zoomLevel:n}=e;return Math.round((0,g.e8)(e,(0,g.dF)(e,t))*n)}const P=e=>{const{pageRendererComponentProps:t,contentState:n,pageIndex:s,viewportState:g,onScroll:v,currentMainToolbarHeight:P,className:x,scrollElement:D,label:C,cursorPosition:k,isMobile:A}=e,[{x:O,y:T},I]=i.useState({x:0,y:0}),[{scrollTop:F,scrollLeft:M},_]=i.useState({scrollLeft:(null==D?void 0:D.scrollLeft)||0,scrollTop:((null==D?void 0:D.scrollTop)||0)-E(g,s)}),R=(0,p.R9)((e=>{k||I({x:e.clientX,y:e.clientY})})),N=(0,p.tm)(),L=(0,p.R9)((()=>{if(!D||!N())return;const e={scrollLeft:D.scrollLeft,scrollTop:D.scrollTop-E(g,s)};v?v((()=>_(e))):_(e)}));i.useEffect((()=>(null==D||D.addEventListener("scroll",L,!1),()=>{null==D||D.removeEventListener("scroll",L,!1)})),[L,D]);const B=A?136:174,j=g.scrollPosition.scale(g.zoomLevel).translate(g.scrollPosition.scale(-g.zoomLevel)),z=(0,c.G4)(g).translate(j.scale(-1)),K=(0,u.L)(),Z=Math.floor(K*(((null==k?void 0:k.x)||O)-z.left+M))/K,U=Math.floor(K*(((null==k?void 0:k.y)||T)-z.top-P+F))/K,V=Math.floor(B/2-Z),G=Math.floor(B/2-U),W=K/(w*S/K)+.5/w,q=w*S*.5*K,H=C||`${(g.zoomLevel*S*K/2).toFixed(1).replace(".0","")}x`;return i.createElement(f.Z,{onRootPointerMove:R},i.createElement(a.m,null,i.createElement("div",{className:l()(y().magnifierContainer,{[y().magnifierContainerMobile]:A},x)},i.createElement("div",{className:y().magnifier,style:{transformOrigin:`${Z}px ${U}px`,transform:`scale(${S*K/2}) translate(-${W}px, -${W}px)`,left:V,top:G}},i.createElement(m.Z,(0,r.Z)({},t,{contentState:n,viewportRect:new h.UL({left:Z,top:U,width:B,height:B}),forceDetailView:!0})),e.children),i.createElement("div",{className:y().magnifierGridContainer},i.createElement("svg",{width:B,height:B,viewBox:`0 0 ${B*K} ${B*K}`},i.createElement("defs",null,i.createElement("pattern",{id:"grid",x:A?-3*K:K>1?-.5*K:0,y:A?-3*K:K>1?-.5*K:0,width:q,height:q,patternUnits:"userSpaceOnUse"},i.createElement("polyline",{points:`${q-.5},0 ${q-.5},${q-.5} 0,${q-.5}`,className:y().magnifierGridStroke,strokeWidth:1,strokeLinejoin:"miter",strokeLinecap:"butt",shapeRendering:"crispEdges"}))),i.createElement("g",{transform:`translate(-${1+q/2},-${1+q/2})`},o||(o=i.createElement("rect",{fill:"url(#grid)",x:"0",y:"0",width:"100%",height:"100%",strokeLinejoin:"miter",strokeLinecap:"butt",shapeRendering:"crispEdges"})),i.createElement("rect",{x:Math.floor(B*K/2)+K*(b||d.vU&&K>1?0:.5),y:Math.floor(B*K/2)+(b?1:0),width:q,height:q,className:y().magnifierCenterStroke,strokeWidth:1,strokeLinejoin:"miter",strokeLinecap:"butt",shapeRendering:"crispEdges"}),i.createElement("rect",{x:Math.floor(B*K/2)-1,y:Math.floor(B*K/2)-1,width:q+3,height:q+3,className:y().magnifierCenterOutlineStroke,strokeWidth:2,strokeLinejoin:"miter",strokeLinecap:"butt",shapeRendering:"crispEdges"}))),i.createElement("div",{className:y().magnifierLabelBackground}),i.createElement("div",{className:y().magnifierLabelText},H)))))}},27001:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>H,qw:()=>X,sY:()=>$});var o,r,i,a,s=n(22122),l=n(67294),c=n(94184),u=n.n(c),d=n(76154),p=n(35369),f=n(25915),h=n(50974),m=n(67366),g=n(18390),v=n(9599),y=n(20792),b=n(34573),w=n(44763),S=n(35129),E=n(51205),P=n(22458),x=n.n(P),D=n(56966),C=n(69939),k=n(13540),A=n(4132),O=n(30570),T=n(36095),I=n(5462),F=n(40853),M=n(3845),_=n(36489),R=n(23756),N=n.n(R),L=n(10754),B=n.n(L),j=n(80324),z=n.n(j),K=n(93628),Z=n.n(K),U=n(79827),V=n(63738),G=n(2383),W=n(70190),q=n.n(W);const H=function(e){var t,o,r,i,a,s,c,g,P;let{referenceRect:T,viewportState:R,isHidden:L,annotation:j,frameWindow:K,eventEmitter:Z,setModalClosurePreventionError:W}=e;(0,h.kG)(j.measurementPrecision&&j.measurementScale);const{formatMessage:q}=(0,d.YB)(),H=(0,m.I0)(),Y=j.getMeasurementDetails().value,J=(0,m.v9)((e=>e.backend)),Q=(0,m.v9)((e=>e.measurementScales)),ee=(0,m.v9)((e=>e.activeMeasurementScale)),[te,ne]=(0,l.useState)(!1),[oe,re]=(0,l.useState)(!1),ie=ee&&!te?ee.precision:j.measurementPrecision,[ae,se]=(0,l.useState)((0,p.l4)([])),[le,ce]=(0,l.useState)(Y.toFixed(O._P[ie])),ue=l.useMemo((()=>ee&&!te?{unitFrom:ee.scale.unitFrom,unitTo:ee.scale.unitTo,fromValue:ee.scale.fromValue,toValue:ee.scale.toValue}:j.measurementScale),[ee,j.measurementScale,te]),[de,pe]=(0,l.useState)((0,v.sJ)({scale:ue,precision:ie}).label),[fe,he]=(0,l.useState)(null==ue?void 0:ue.fromValue.toString()),[me,ge]=(0,l.useState)(null==ue?void 0:ue.toValue.toString()),[ve,ye]=(0,l.useState)(!1),be=(0,l.useCallback)((e=>{const t=j.merge(e),n={annotations:(0,p.aV)([t]),reason:M.f.PROPERTY_CHANGE};Z.emit("annotations.willChange",n),H((0,C.FG)(t)),ne(!0)}),[j,H,Z]),we=l.useCallback((e=>{const t=(0,O.P_)(j,e);be({measurementScale:t}),he(t.fromValue.toString()),ge(t.toValue.toString())}),[j,be]);(0,l.useEffect)((()=>{W({error:D.x.MEASUREMENT_ERROR,annotationId:j.id})}),[j.id]),(0,l.useEffect)((()=>{we(parseFloat(le||"1"))}),[le,ue]),(0,l.useEffect)((()=>{H((0,V.M4)(ie))}),[ie]),(0,l.useEffect)((()=>{oe&&de||(pe((0,v.sJ)({scale:ue,precision:ie}).label),se(ae.delete("scaleName")));const e=null==Q?void 0:Q.find((e=>{let{scale:t,precision:n}=e;return t.fromValue===Number(null==ue?void 0:ue.fromValue)&&t.toValue===Number(null==ue?void 0:ue.toValue)&&t.unitFrom===(null==ue?void 0:ue.unitFrom)&&t.unitTo===(null==ue?void 0:ue.unitTo)&&n===ie}));se(e?ae.add("duplicate"):ae.delete("duplicate"))}),[fe,me,le,ue,ie]);const Se="startPoint"in j&&j.startPoint,Ee="endPoint"in j&&j.endPoint;(0,l.useEffect)((()=>{ce(j.getMeasurementDetails().value.toFixed(O._P[ie]))}),[Se,Ee,ie]);const Pe=l.useCallback((0,F.zx)(q,"measurement"),[q]),xe=l.useCallback((0,F.ck)(q),[q]),De=l.useCallback((()=>{const e={name:de,scale:{fromValue:parseFloat(fe),toValue:parseFloat(me),unitFrom:null==ue?void 0:ue.unitFrom,unitTo:null==ue?void 0:ue.unitTo},precision:ie};(0,m.dC)((()=>{H((0,w.C0)(e)),H((0,w.Se)(e))})),"SERVER"===(null==J?void 0:J.type)?(0,m.dC)((()=>{H((0,C.hQ)(j)),H((0,b.fz)()),H((0,V.UF)(y.A.MEASUREMENT)),H((0,w.Xh)(!1))})):ye(!0)}),[ye,H,fe,ie,null==ue?void 0:ue.unitFrom,null==ue?void 0:ue.unitTo,de,me]),Ce="in"===j.measurementScale.unitTo||"ft"===j.measurementScale.unitTo||"yd"===j.measurementScale.unitTo?O.nK:O.nK.filter((e=>!e.label.includes("/")));return ve?l.createElement(f.u_,{onEscape:()=>{(0,m.dC)((()=>{H((0,C.hQ)(j)),H((0,b.fz)()),H((0,V.UF)(y.A.MEASUREMENT)),H((0,w.Xh)(!1))}))},background:"var(--PSPDFKit-MeasurementModalComponent-background-color)",className:z().calibrationSuccessModal},l.createElement("div",{className:z().calibrationSuccessModalContainer},l.createElement("div",{className:z().calibrationSuccessRow},l.createElement(k.Z,{src:n(17076),className:x().itemIcon,role:"presentation"}),l.createElement("div",{onClick:()=>{(0,m.dC)((()=>{H((0,C.hQ)(j)),H((0,b.fz)()),H((0,V.UF)(y.A.MEASUREMENT)),H((0,w.Xh)(!1))}))}},l.createElement(k.Z,{src:n(58054),className:x().itemIcon,role:"presentation",style:{cursor:"pointer"}}))),l.createElement("div",{className:u()(z().calibrationSuccessRow,z().calibrationSuccessTitle)},l.createElement("p",null,q($.calibrationScaleSuccess))),l.createElement("div",{className:z().calibrationSuccessRow},l.createElement("p",null,q($.calibrationScaleSubtitle))))):L?null:l.createElement(E.Z,{referenceRect:T,viewportState:R,className:"PSPDFKit-Measurement-Popover",wrapperClassName:"PSPDFKit-Measurement-Editor",title:q($.calibrateScale),footer:l.createElement("div",{className:u()(z().footer,z().contentRow,z().spaceBetweenRow)},l.createElement(f.hE,{className:"PSPDFKit-Confirm-Dialog-Buttons",align:"end"},l.createElement(f.zx,{autoFocus:!0,onClick:()=>{(0,m.dC)((()=>{H((0,w.Xh)(!1)),H((0,C.hQ)(j)),H((0,b.fz)()),H((0,V.UF)(y.A.MEASUREMENT))}))},className:u()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Cancel",z().button)},q(S.Z.delete)),l.createElement(f.zx,{onClick:()=>De(),primary:!0,disabled:ae.size>0,className:u()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Confirm",z().button)},q(S.Z.done))))},l.createElement("div",{className:B().calibration},l.createElement("div",{className:B().calibrationTop},l.createElement(k.Z,{src:n(96810),className:x().itemIcon,role:"presentation"}),l.createElement("div",{className:x().itemLabel},q($.measurementCalibrateLength)),l.createElement("div",{className:B().calibrateRight},l.createElement(f.oi,{type:"number",value:le,onChange:e=>{if(ce(e.target.value),!function(e){const t=parseFloat(e);return!isNaN(t)&&isFinite(t)&&t>0}(e.target.value))return void se(ae.add("calibrationValue"));se(ae.delete("calibrationValue"));const t=parseFloat(e.target.value);we(t)},required:!0,style:{height:32,width:90,borderColor:ae.has("calibrationValue")?"#FF0000":void 0},className:u()(N().input,"PSPDFKit-Calibration-Input")}),l.createElement("div",{className:u()(x().nativeDropdown,B().nativeButton)},l.createElement("select",{"aria-label":q($.calibrate),className:u()("PSPDFKit-Input-Dropdown-Select","PSPDFKit-Calibration-UnitTo"),value:null!==(t=null===(o=O.b5.find((e=>e.value===(null==ue?void 0:ue.unitTo))))||void 0===o?void 0:o.value)&&void 0!==t?t:null===(r=j.measurementScale)||void 0===r?void 0:r.unitTo,onChange:e=>{var t;be({measurementScale:null===(t=j.measurementScale)||void 0===t?void 0:t.set("unitTo",e.target.value)})}},Object.keys(U.K).map((e=>l.createElement("option",{key:e,value:U.K[e]},U.K[e]))))),l.createElement(I.Z,{items:O.b5,value:null!==(i=O.b5.find((e=>e.value===(null==ue?void 0:ue.unitTo))))&&void 0!==i?i:null,accessibilityLabel:q($.calibrate),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:u()(x().dropdownGroupComponent,"PSPDFKit-Calibration-UnitTo"),menuClassName:x().dropdownGroupMenu,ButtonComponent:Pe,ItemComponent:xe,onSelect:(e,t)=>{var n;be({measurementScale:null===(n=j.measurementScale)||void 0===n?void 0:n.set("unitTo",t.value)})},frameWindow:K})))),l.createElement("span",{className:B().spacer}),l.createElement("div",{className:B().scale},l.createElement("div",{className:B().scaleTop},l.createElement(k.Z,{src:n(69695),className:x().itemIcon,role:"presentation"}),l.createElement("div",{className:x().itemLabel},q($.measurementScale))),l.createElement("div",{style:{width:"100%"},className:B().itemHeader},l.createElement(f.oi,{type:"text",value:de,onChange:e=>{e.target.value?se(ae.delete("scaleName")):se(ae.add("scaleName")),pe(e.target.value),oe||re(!0)},required:!0,style:{height:32,width:"100%",borderColor:ae.has("scaleName")?"#FF0000":void 0},className:u()(N().input,"PSPDFKit-Calibration-Name")})),l.createElement("div",{className:B().scaleBottom},l.createElement("div",null,l.createElement(f.oi,{type:"number",value:fe,required:!0,disabled:!0,style:{height:32,width:90,borderColor:ae.has("fromValue")?"#FF0000":void 0,opacity:"var(--PSPDFKit-Button-isDisabled-opacity)"},className:u()(N().input,N().disabled)}),l.createElement("div",{className:u()(x().nativeDropdown,B().nativeButton)},l.createElement("select",{"aria-label":q($.measurementScale),className:"PSPDFKit-Input-Dropdown-Select",value:(null===(a=j.measurementScale)||void 0===a?void 0:a.unitFrom)||"",disabled:!0},Object.keys(_.s).map((e=>l.createElement("option",{key:e,value:_.s[e]},_.s[e]))))),l.createElement(I.Z,{items:O.m_,value:null!==(s=O.m_.find((e=>e.value===(null==ue?void 0:ue.unitFrom))))&&void 0!==s?s:null,accessibilityLabel:q($.measurementScale),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:x().dropdownGroupComponent,menuClassName:x().dropdownGroupMenu,ButtonComponent:Pe,ItemComponent:xe,disabled:!0,frameWindow:K})),":",l.createElement("div",null,l.createElement(f.oi,{type:"number",value:me,required:!0,disabled:!0,style:{height:32,width:90,borderColor:ae.has("toValue")?"#FF0000":void 0,opacity:"var(--PSPDFKit-Button-isDisabled-opacity)"},className:u()(N().input,N().disabled)}),l.createElement("div",{className:u()(x().nativeDropdown,B().nativeButton)},l.createElement("select",{"aria-label":q($.measurementScale),className:"PSPDFKit-Input-Dropdown-Select",value:(null===(c=j.measurementScale)||void 0===c?void 0:c.unitTo)||"",disabled:!0},Object.keys(U.K).map((e=>l.createElement("option",{key:e,value:U.K[e]},U.K[e]))))),l.createElement(I.Z,{items:O.b5,value:null!==(g=O.b5.find((e=>e.value===(null==ue?void 0:ue.unitTo))))&&void 0!==g?g:null,accessibilityLabel:q($.measurementScale),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:x().dropdownGroupComponent,menuClassName:x().dropdownGroupMenu,ButtonComponent:Pe,ItemComponent:xe,disabled:!0,frameWindow:K})))),l.createElement("span",{className:B().spacer}),l.createElement("div",{className:x().item},l.createElement("div",{className:u()(x().itemLabel,B().itemLabel)},q($.measurementPrecision)),l.createElement("div",{className:u()(x().nativeDropdown,B().nativeButton)},l.createElement("select",{style:{height:30},"aria-label":q($.measurementPrecision),className:u()("PSPDFKit-Input-Dropdown-Select","PSPDFKit-Calibration-Precision"),value:j.measurementPrecision||"",onChange:e=>{be({measurementPrecision:e.target.value})}},Object.keys(A.L).map(((e,t)=>l.createElement("option",{key:e,value:A.L[e]},O.W9[t]))))),l.createElement(I.Z,{items:Ce,value:null!==(P=Ce.find((e=>e.value===j.measurementPrecision)))&&void 0!==P?P:null,accessibilityLabel:q($.measurementPrecision),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:u()(x().dropdownGroupComponent,"PSPDFKit-Measurement-Popover-Precision-Dropdown","PSPDFKit-Calibration-Precision"),menuClassName:x().dropdownGroupMenu,ButtonComponent:Pe,ItemComponent:X,onSelect:(e,t)=>{be({measurementPrecision:t.value}),ce(Y.toFixed(O._P[t.value]).toString())},frameWindow:K})),ae.has("duplicate")&&l.createElement("p",{className:z().scaleError},q(G.s.duplicateScaleError)))},$=(0,d.vU)({calibrationScaleSuccess:{id:"calibrationScaleSuccess",defaultMessage:"Scale has been successfully set",description:"Scale has been successfully set"},calibrationScaleSubtitle:{id:"calibrationScaleSubtitle",defaultMessage:"Start measuring by selecting one of the measurement tools.",description:"Start measuring by selecting one of the measurement tools."},perimeterMeasurementSettings:{id:"perimeterMeasurementSettings",defaultMessage:"Perimeter Measurement Settings",description:"Perimeter Measurement Settings"},polygonAreaMeasurementSettings:{id:"polygonAreaMeasurementSettings",defaultMessage:"Polygon Area Measurement Settings",description:"Polygon Area Measurement Settings"},rectangularAreaMeasurementSettings:{id:"rectangularAreaMeasurementSettings",defaultMessage:"Rectangle Area Measurement Settings",description:"Rectangle Area Measurement Settings"},ellipseAreaMeasurementSettings:{id:"ellipseAreaMeasurementSettings",defaultMessage:"Ellipse Area Measurement Settings",description:"Ellipse Area Measurement Settings"},measurementCalibrateLength:{id:"measurementCalibrateLength",defaultMessage:"Calibrate Length",description:"Calibrate"},measurementPrecision:{id:"measurementPrecision",defaultMessage:"Precision",description:"Precision"},measurementScale:{id:"measurementScale",defaultMessage:"Scale",description:"Scale"},calibrateScale:{id:"calibrateScale",defaultMessage:"Calibrate Scale",description:"Calibrate Scale"},calibrate:{id:"calibrate",defaultMessage:"Calibrate",description:"Calibrate"}});const Y=e=>T.G6?l.createElement("span",null,e.label):"1/2"===e.label?o||(o=l.createElement("span",null,"1â„2 in")):"1/4"===e.label?r||(r=l.createElement("span",null,"1â„4 in")):"1/8"===e.label?i||(i=l.createElement("span",null,"1â„8 in")):"1/16"===e.label?a||(a=l.createElement("span",null,"1â„16 in ")):l.createElement("span",null,e.label),X=e=>{let{item:t,state:n,itemComponentProps:o,ref:r}=e;return l.createElement(g.Z,(0,s.Z)({is:"div",className:u()(Z().item,{[Z().isSelected]:(null==n?void 0:n.includes("selected"))||(null==n?void 0:n.includes("focused"))},Z().measurementDropdownText),name:null==t?void 0:t.value},o,{ref:r}),null!=n&&n.includes("selected")?l.createElement(k.Z,{src:q(),className:B().icon}):l.createElement("span",{className:B().icon}),l.createElement(Y,{label:null==t?void 0:t.label}))}},90012:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I,s:()=>F});var o=n(67294),r=n(76154),i=n(25915),a=n(94184),s=n.n(a),l=n(67366),c=n(19338),u=n(71603),d=n(69939),p=n(34573),f=n(63738),h=n(35860),m=n(2383),g=n(28890),v=n(35129),y=n(80324),b=n.n(y),w=n(84537),S=n(10754),E=n.n(S),P=n(79827),x=n(22458),D=n.n(x),C=n(5462),k=n(40853),A=n(4132),O=n(30570),T=n(44763);const I=function(e){var t,n;let{frameWindow:a}=e;const y=(0,r.YB)(),{formatMessage:S}=(0,r.YB)(),x=(0,l.v9)((e=>e.measurementScales)),I=(0,l.v9)((e=>e.secondaryMeasurementUnit)),[M,_]=o.useState(Boolean(I)),[R,N]=o.useState(null==I?void 0:I.unitTo),[L,B]=o.useState(null==I?void 0:I.precision),[j,z]=o.useState(!1),[K,Z]=o.useState([]),[U,V]=o.useState(null),[G,W]=o.useState(null),[q,H]=o.useState(!1),$=(0,l.v9)((e=>{const{selectedAnnotationIds:t,annotations:n}=e;return t.map((e=>n.get(e)))})),Y=(0,l.I0)(),X=o.useCallback((0,k.zx)(S,"measurement"),[S]),J=o.useCallback((0,k.ck)(S),[S]),Q=o.useCallback((()=>{Y((0,f.jJ)()),Y((0,p.fz)()),Y((0,d.Ds)("measurement")),Y((0,f.BR)())}),[Y]),ee=o.useCallback((e=>{if(j&&K&&x){const{deleted:t}=(0,O.Rc)(x,K);if(t.filter((e=>!(null==G?void 0:G.find((t=>t.prevScale===e))))).length>0&&!e)return void H(!0);(0,l.dC)((()=>{Y((0,T.U7)(K,G)),Y((0,T.Se)(U))}))}M&&R&&L&&Y((0,T.v9)({unitTo:R,precision:L})),!I||R||L||Y((0,T.v9)(null)),$.size>0&&(0,l.dC)((()=>{$.toList().forEach((e=>{const t=e.set("measurementScale",new u.Z({fromValue:Number(null==U?void 0:U.scale.fromValue),toValue:Number(null==U?void 0:U.scale.toValue),unitFrom:null==U?void 0:U.scale.unitFrom,unitTo:null==U?void 0:U.scale.unitTo})).set("measurementPrecision",null==U?void 0:U.precision);Y((0,d.FG)(t))}))})),Q()}),[U,j,Y,G,x,Q,K,I,R,L,M]),te=o.useMemo((()=>!!R&&(0,O.B0)(R)),[R]);return q?o.createElement(h.z,{onConfirm:()=>{ee(!0)},onCancel:()=>{H(!1)},accessibilityLabel:S(F.scaleAnnotationsDeleteWarning),accessibilityDescription:S(F.scaleAnnotationsDeleteWarning),intl:y},o.createElement("p",null,S(F.scaleAnnotationsDeleteWarning))):o.createElement(g.Z,{onEscape:Q,background:"var(--PSPDFKit-MeasurementModalComponent-background-color)",className:b().modal},o.createElement("h2",{className:s()(b().title,b().header,b().contentRow)},S(F.setScale)),o.createElement(m.Z,{frameWindow:a,setAreValidScales:z,scalesSetter:Z,activeScaleSetter:V,editedScalesSetter:W}),o.createElement("h2",{className:s()(b().contentRow,b().sectionTitle,b().spaceBetweenRow)},S(F.secondaryUnit)),o.createElement("div",{className:s()(b().contentRow,b().spaceBetweenRow)},o.createElement("p",null,S(F.displaySecondaryUnit)),o.createElement(w.n,{value:M,onUpdate:()=>{M?(N(void 0),B(void 0)):(N(P.K.INCHES),B(A.L.WHOLE)),_(!M)},accessibilityLabel:S(F.displaySecondaryUnit)})),M?o.createElement("div",{className:"PSPDFKit-Secondary-Measurement"},o.createElement("div",{className:s()(b().contentRow,b().spaceBetweenRow)},o.createElement("p",null,S(F.unit)),o.createElement("div",{className:s()(b().nativeDropdown,E().nativeButton)},o.createElement("select",{style:{height:30},"aria-label":S(F.measurementScale),value:(null===(t=O.b5.find((e=>e.value===R)))||void 0===t?void 0:t.value)||"",className:"PSPDFKit-Input-Dropdown-Select",onChange:e=>{N(e.target.value)}},Object.keys(P.K).map((e=>o.createElement("option",{key:e,value:P.K[e]},P.K[e]))))),o.createElement(C.Z,{items:O.b5,value:null!==(n=O.b5.find((e=>e.value===R)))&&void 0!==n?n:null,accessibilityLabel:S(F.measurementScale),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:s()(b().dropdownGroupComponent,D().dropdownGroupComponent,"PSPDFKit-Secondary-Measurement-UnitTo"),menuClassName:D().dropdownGroupMenu,ButtonComponent:X,ItemComponent:J,onSelect:(e,t)=>{(0,O.B0)(t.value)&&(0,O.zl)(L)&&!te&&B(void 0),N(t.value)},frameWindow:a})),o.createElement("div",{className:s()(b().contentRow,b().spaceBetweenRow)},o.createElement("p",null,S(F.measurementPrecision)),o.createElement(c.Z,{frameWindow:a,unit:R,onPrecisionChange:B,selectedPrecision:L,precisionDropdownClassname:"PSPDFKit-Secondary-Measurement-Precision",accessibilityLabel:S(F.measurementPrecision)}))):null,o.createElement("div",{className:s()(b().footer,b().contentRow,b().spaceBetweenRow)},o.createElement(i.hE,{className:"PSPDFKit-Confirm-Dialog-Buttons",align:"end"},o.createElement(i.zx,{autoFocus:!0,onClick:Q,className:s()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Cancel",b().button)},S(v.Z.cancel)),o.createElement(i.zx,{onClick:()=>ee(),primary:!0,disabled:M&&(!R||!L)||!j,className:s()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Confirm",b().button)},S(v.Z.done)))))},F=(0,r.vU)({distanceMeasurementSettings:{id:"distanceMeasurementSettings",defaultMessage:"Distance Measurement Settings",description:"Distance Measurement Settings"},perimeterMeasurementSettings:{id:"perimeterMeasurementSettings",defaultMessage:"Perimeter Measurement Settings",description:"Perimeter Measurement Settings"},polygonAreaMeasurementSettings:{id:"polygonAreaMeasurementSettings",defaultMessage:"Polygon Area Measurement Settings",description:"Polygon Area Measurement Settings"},rectangularAreaMeasurementSettings:{id:"rectangularAreaMeasurementSettings",defaultMessage:"Rectangle Area Measurement Settings",description:"Rectangle Area Measurement Settings"},ellipseAreaMeasurementSettings:{id:"ellipseAreaMeasurementSettings",defaultMessage:"Ellipse Area Measurement Settings",description:"Ellipse Area Measurement Settings"},measurementCalibrateLength:{id:"measurementCalibrateLength",defaultMessage:"Calibrate Length",description:"Calibrate"},measurementPrecision:{id:"measurementPrecision",defaultMessage:"Precision",description:"Precision"},measurementScale:{id:"measurementScale",defaultMessage:"Scale",description:"Measurement Scale"},setScale:{id:"setScale",defaultMessage:"Set Scale",description:"Set Scale"},unit:{id:"unit",defaultMessage:"Unit",description:"Unit"},secondaryUnit:{id:"Secondary Unit",defaultMessage:"Secondary Unit",description:"Secondary Unit"},displaySecondaryUnit:{id:"displaySecondaryUnit",defaultMessage:"Display Secondary Unit",description:"Display Secondary Unit"},scaleAnnotationsDeleteWarning:{id:"scaleAnnotationsDeleteWarning",defaultMessage:"Deleting the scale will also delete measurements using the scale.",description:"Message displayed in the scales deletion dialog"}})},19338:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var o=n(94184),r=n.n(o),i=n(67294),a=n(76154),s=n(40853),l=n(27001),c=n(10754),u=n.n(c),d=n(90012),p=n(80324),f=n.n(p),h=n(22458),m=n.n(h),g=n(5462),v=n(4132),y=n(30570);const b=e=>{var t,n;let{unit:o,frameWindow:c,selectedPrecision:p,onPrecisionChange:h,wrapperClass:b,precisionDropdownClassname:w,accessibilityLabel:S,index:E}=e;const{formatMessage:P}=(0,a.YB)(),x=(0,i.useMemo)((()=>!!o&&(0,y.B0)(o)),[o]),D=(0,i.useMemo)((()=>x?y.Qc:y.nK),[x]),C=i.useCallback((0,s.zx)(P,"measurement"),[P]);return i.createElement("div",{className:b||void 0},i.createElement("div",{className:r()(f().nativeDropdown,u().nativeButton)},i.createElement("select",{style:{height:30},"aria-label":P(d.s.measurementPrecision),"data-test-id":void 0!==E?`PSPDFKit-Scale-${E+1}-Precision`:"PSPDFKit-Scale-Precision",value:(null===(t=y.nK.find((e=>e.value===p||e.label===p)))||void 0===t?void 0:t.value)||"",className:r()("PSPDFKit-Input-Dropdown-Select","PSPDFKit-Measurement-Precision-Dropdown"),onChange:e=>{h(e.target.value)}},Object.keys(v.L).filter((e=>x?!(0,y.zl)(v.L[e]):e)).map(((e,t)=>i.createElement("option",{key:e,value:v.L[e]},y.W9[t]))))),i.createElement(g.Z,{items:D,value:null!==(n=D.find((e=>e.value===p||e.label===p)))&&void 0!==n?n:null,accessibilityLabel:S,discreteDropdown:!1,isActive:!1,caretDirection:"down",className:r()("PSPDFKit-Input-Dropdown-Select",f().dropdownGroupComponent,"PSPDFKit-Measurement-Precision-Dropdown",w),"data-test-id":void 0!==E?`PSPDFKit-Scale-${E+1}-Precision`:"PSPDFKit-Scale-Precision",menuClassName:m().dropdownGroupMenu,ButtonComponent:C,ItemComponent:l.qw,onSelect:(e,t)=>{h(t.value)},frameWindow:c}))}},2383:(e,t,n)=>{"use strict";n.d(t,{Z:()=>L,s:()=>N});var o=n(84121),r=n(25915),i=n(94184),a=n.n(i),s=n(67294),l=n(76154),c=n(67366),u=n(19338),d=n(4132),p=n(40853),f=n(22458),h=n.n(f),m=n(23756),g=n.n(m),v=n(13540),y=n(27001),b=n(10754),w=n.n(b),S=n(35129),E=n(5462),P=n(36489),x=n(79827),D=n(30570),C=n(80324),k=n.n(C);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function O(e){for(var t=1;t0}const N=(0,l.vU)({scaleSelector:{id:"scaleSelector",defaultMessage:"Scale {arg0}",description:"Scale checkbox selector for multiple scale selection accessibility"},scaleName:{id:"scaleName",defaultMessage:"Scale Name",description:"Scale Name"},scaleUnitFrom:{id:"scaleUnitFrom",defaultMessage:"Scale unit from",description:"Scale unit from"},scaleUnitTo:{id:"scaleUnitTo",defaultMessage:"Scale unit to",description:"Scale unit to"},newScale:{id:"newScale",defaultMessage:"Add new scale",description:"Add new scale"},duplicateScaleError:{id:"duplicateScaleError",defaultMessage:"Scale with these settings has already been defined. Please choose a different scale.",description:"Scale with these settings has already been defined. Please choose a different scale."}}),L=function(e){const{frameWindow:t,setAreValidScales:o,scalesSetter:i,activeScaleSetter:f,editedScalesSetter:m}=e,{formatMessage:b}=(0,l.YB)(),C=(0,c.v9)((e=>e.measurementScales)),A=(0,c.v9)((e=>e.activeMeasurementScale)),[L,B]=(0,s.useState)([]),[j,z]=(0,s.useState)(C),[K,Z]=(0,s.useState)(A?null==C?void 0:C.findIndex((e=>(0,D.cd)(e,A))):0),[U,V]=(0,s.useState)([]),[G,W]=(0,s.useState)([]);s.useEffect((()=>{const e=function(e,t){const n=[];return t.forEach((t=>{const o=e[t],r=[],i=o.scale.fromValue,a=o.scale.toValue,s=o.precision;R(i)||r.push(F),R(a)||r.push(M),s||r.push(_);const l=[];e.forEach(((e,n)=>{n!==t&&(l.push(n),o.name&&o.name===e.name&&!r.includes(I)&&r.push(I),(0,D.cd)(o,e)&&!r.includes(T)&&r.push(T))})),r.length>0&&n.push({index:t,fields:r,conflicts:l})})),n}(j,G);if(e.length>0){const t=e[e.length-1];B([t])}else B([]),W([]),i(j);o(0===e.length)}),[j,i,o]),s.useEffect((()=>{z(C)}),[C]),s.useEffect((()=>{const e=null==j?void 0:j.find(((e,t)=>t===K));e&&f(e)}),[K,f,j]),s.useEffect((()=>{m(U)}),[U]);const q=(e,t,n)=>{z((o=>{const r=null==o?void 0:o.map((e=>O(O({},e),{},{scale:O({},e.scale)})));return"precision"===t?r[e][t]=n:r[e].scale=O(O({},r[e].scale),{},{[t]:n}),r})),null!=C&&C.find((t=>JSON.stringify(t)===JSON.stringify(null==j?void 0:j[e])))&&U&&!U.find((t=>t===e))&&V([...U,{index:e,prevScale:C[e]}]),G.includes(e)||W([...G,e])},H=s.useCallback((0,p.zx)(b,"measurement"),[b]),$=s.useCallback((0,p.ck)(b),[b]);return s.createElement("div",{className:k().scale},null==j?void 0:j.map(((e,o)=>{var i,l;const c=e.name,d=e.scale,p=e.precision,f=null==d?void 0:d.unitFrom,m=null==d?void 0:d.unitTo,A=null==d?void 0:d.fromValue,R=null==d?void 0:d.toValue,B=L.find((e=>e.index===o)),Y=null==B?void 0:B.fields.includes(T),X=null==B?void 0:B.fields.includes(I),J=null==B?void 0:B.fields.includes(F),Q=null==B?void 0:B.fields.includes(M),ee=null==B?void 0:B.fields.includes(_);return s.createElement("div",{key:o,style:{marginBottom:"var(--PSPDFKit-spacing-6)"}},s.createElement("div",{className:a()(k().scaleRow),style:Y?{borderBottom:0}:{},"data-test-id":`PSPDFKit-Scale-${o+1}`},s.createElement("input",{key:c,type:"radio",checked:Boolean(K===o&&!Y),value:o,id:b(N.scaleSelector,{arg0:o+1}),name:b(N.scaleSelector,{arg0:o+1}),onChange:e=>{e.target.checked&&Z(o)},className:a()(k().activeScaleRadio,"PSPDFKit-Active-Scale-Radio-Input")}),s.createElement("div",{className:a()(k().scaleContent,k().scaleMiddleSection)},s.createElement("div",{className:a()(k().scaleRow,k().spaceBetweenRow,k().rowSeparator)},s.createElement(r.oi,{type:"text",value:c,placeholder:b(N.scaleName),onChange:e=>{((e,t)=>{G.includes(e)||W([...G,e]),z((n=>{const o=null==n?void 0:n.map((e=>O(O({},e),{},{scale:O({},e.scale)})));return o[e].name=t,o})),null!=C&&C.find((t=>JSON.stringify(t)===JSON.stringify(null==j?void 0:j[e])))&&U&&!U.find((t=>t===e))&&V([...U,{index:e,prevScale:C[e]}])})(o,e.target.value)},required:!0,style:{height:32,width:"100%",borderColor:X?"#FF0000":void 0},className:a()(g().input),maxLength:40})),s.createElement("div",{className:a()(k().scaleRow,k().rowSeparator)},s.createElement("div",{className:k().scaleRowContent},s.createElement(r.oi,{type:"number",value:""+A,onChange:e=>{q(o,"fromValue",e.target.value)},required:!0,style:{height:32,width:54,borderColor:J||Y?"#FF0000":void 0},"data-test-id":`PSPDFKit-Scale-${o+1}-FromValue`,className:a()(g().input)}),s.createElement("div",{className:a()(k().nativeDropdown,w().nativeButton)},s.createElement("select",{style:{height:30},"aria-label":`${b(N.scaleUnitFrom)} ${o+1}`,className:a()("PSPDFKit-Input-Dropdown-Select"),"data-test-id":`PSPDFKit-Scale-${o+1}-UnitFrom`,value:f||"",onChange:e=>{q(o,"unitFrom",e.target.value)}},Object.keys(P.s).map((e=>s.createElement("option",{key:e,value:P.s[e]},P.s[e]))))),s.createElement(E.Z,{items:D.m_,value:null!==(i=D.m_.find((e=>e.value===f)))&&void 0!==i?i:null,accessibilityLabel:`${b(N.scaleUnitFrom)} ${o+1}`,discreteDropdown:!1,isActive:!1,caretDirection:"down","data-test-id":`PSPDFKit-Scale-${o+1}-UnitFrom`,className:a()(k().dropdownGroupComponent,h().dropdownGroupComponent),menuClassName:h().dropdownGroupMenu,ButtonComponent:H,ItemComponent:$,onSelect:(e,t)=>{q(o,"unitFrom",t.value)},frameWindow:t})),"=",s.createElement("div",{className:k().scaleRowContent},s.createElement(r.oi,{type:"number",value:""+R,onChange:e=>{q(o,"toValue",e.target.value)},required:!0,style:{height:32,width:54,borderColor:Q||Y?"#FF0000":void 0},"data-test-id":`PSPDFKit-Scale-${o+1}-ToValue`,className:a()(g().input)}),s.createElement("div",{className:a()(k().nativeDropdown,w().nativeButton)},s.createElement("select",{style:{height:30},"aria-label":`${b(N.scaleUnitFrom)} ${o+1}`,"data-test-id":`PSPDFKit-Scale-${o+1}-UnitTo`,className:a()("PSPDFKit-Input-Dropdown-Select"),value:m||"",onChange:e=>{q(o,"unitTo",e.target.value)}},Object.keys(x.K).map((e=>s.createElement("option",{key:e,value:x.K[e]},x.K[e]))))),s.createElement(E.Z,{items:D.b5,value:null!==(l=D.b5.find((e=>e.value===m)))&&void 0!==l?l:null,accessibilityLabel:`${b(N.scaleUnitFrom)} ${o+1}`,discreteDropdown:!1,isActive:!1,caretDirection:"down","data-test-id":`PSPDFKit-Scale-${o+1}-UnitTo`,className:a()(k().dropdownGroupComponent,h().dropdownGroupComponent),menuClassName:h().dropdownGroupMenu,ButtonComponent:H,ItemComponent:$,onSelect:(e,t)=>{q(o,"unitTo",t.value)},frameWindow:t}))),s.createElement("div",{className:a()(k().scaleRow,k().spaceBetweenRow,k().rowSeparator)},s.createElement("p",{className:h().itemLabel},b(y.sY.measurementPrecision)),s.createElement(u.Z,{frameWindow:t,unit:m,onPrecisionChange:e=>q(o,"precision",e),selectedPrecision:p,wrapperClass:a()({[k().error]:ee}),accessibilityLabel:`${y.sY.measurementScale} ${b(y.sY.measurementPrecision)} ${o+1}`,index:o}))),s.createElement("div",null,s.createElement(r.zx,{"data-test-id":`PSPDFKit-Scale-${o+1}-RemoveScale`,className:a()(k().closeButton,"PSPDFKit-Measurement-Exit-Dialog-Close-Button"),onClick:()=>{(e=>{if(z((t=>{const n=null==t?void 0:t.map((e=>O(O({},e),{},{scale:O({},e.scale)})));return n.splice(e,1),n})),U){const t=U.filter((t=>t.index!==e)).map((e=>O(O({},e),{},{index:e.index-1})));V(t)}if(G){const t=G.filter((t=>t!==e)).map((e=>e-1));W(t)}Z((e=>e?e-1:0))})(o)},"aria-label":b(S.Z.close),disabled:1===j.length,style:{position:"relative",top:"7px"}},s.createElement(v.Z,{className:k().signatureValidationCloseIcon,src:n(15708)})))),(Y||X)&&s.createElement("p",{className:a()(k().scaleError)},b(N.duplicateScaleError)))})),s.createElement("div",{className:k().addNewScale,onClick:()=>{z((e=>{const t=null==e?void 0:e.map((e=>O(O({},e),{},{scale:O({},e.scale)})));return t.push({name:"",scale:{unitFrom:"cm",unitTo:"cm",fromValue:1,toValue:1},precision:d.L.WHOLE}),t})),W([...G,null==j?void 0:j.length])}},s.createElement(v.Z,{className:k().signatureValidationCloseIcon,src:n(88232)}),s.createElement("u",{style:{color:"var(--color-blue600)"}},b(N.newScale))))}},9599:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>j,sJ:()=>L});var o=n(22122),r=n(94184),i=n.n(r),a=n(18390),s=n(85628),l=n.n(s),c=n(67294),u=n(76154),d=n(67366),p=n(70190),f=n.n(p),h=n(30570),m=n(90012),g=n(71603),v=n(20792),y=n(69939),b=n(44763),w=n(40853),S=n(93628),E=n.n(S),P=n(22458),x=n.n(P),D=n(10754),C=n.n(D),k=n(5462),A=n(63738),O=n(13540),T=n(9437),I=n.n(T),F=n(20683),M=n(80324),_=n.n(M),R=n(35129);function N(e,t){const n=Math.round(e*t);return new(l())(n/t).toFraction(!0)}function L(e){if(!e)return{label:"",value:null};let t,n;const o=function(e){switch(e){case"whole":return"1";case"oneDp":return"0.1";case"twoDp":return"0.001";case"threeDp":case"fourDp":return"0.0001";default:return null}}(e.precision)||e.precision;if(["1","0.1","0.01","0.001","0.0001"].includes(o)){const r=function(e){switch(e){case"1":default:return 0;case"0.1":return 1;case"0.01":return 2;case"0.001":return 3;case"0.0001":return 4}}(o);t=Number(e.scale.fromValue).toFixed(r),n=Number(e.scale.toValue).toFixed(r)}else if(["1/2","1/4","1/8","1/16"].includes(o)){const r=Number(o.split("/")[1]);t=N(e.scale.fromValue,r),n=N(e.scale.toValue,r)}return{label:e.name||`${t} ${e.scale.unitFrom} : ${n} ${e.scale.unitTo}`,value:e}}const B=(0,u.vU)({unit:{id:"unit",defaultMessage:"Unit",description:"Unit"},scalesDropdown:{id:"scalesDropdown",defaultMessage:"Scales dropdown",description:"Scales dropdown"},editAddScale:{id:"editAddScale",defaultMessage:"Edit or add new scale",description:"Edit or add new scale"},useCalibrationTool:{id:"useCalibrationTool",defaultMessage:"Use calibration tool",description:"Use calibration tool"}}),j=function(e){var t;let{frameWindow:o,selectedAnnotation:r,onAnnotationScaleUpdate:a,selectedAnnotations:s}=e;const l=(0,d.v9)((e=>e.measurementScales)),p=(0,d.v9)((e=>e.activeMeasurementScale)),f=(0,d.I0)(),{formatMessage:S}=(0,u.YB)(),P=c.useMemo((()=>function(e,t){if(t&&e)return null==e?void 0:e.find((e=>{var n,o,r,i;const a=e.precision===t.measurementPrecision,s=e.scale.fromValue===(null===(n=t.measurementScale)||void 0===n?void 0:n.fromValue),l=e.scale.toValue===(null===(o=t.measurementScale)||void 0===o?void 0:o.toValue),c=e.scale.unitFrom===(null===(r=t.measurementScale)||void 0===r?void 0:r.unitFrom),u=e.scale.unitTo===(null===(i=t.measurementScale)||void 0===i?void 0:i.unitTo);return a&&s&&l&&c&&u}))}(l,r)||p),[l,r,p]),D=c.useCallback((0,w.zx)(S,"measurement",200),[S]),T=c.useMemo((()=>!!s&&(0,h.mq)(s)),[s]),M=c.useMemo((()=>function(e,t,n){const o=e.map((e=>L(e)));return t?[...o,{label:n,value:n}]:o}(l,T,S(R.Z.mixed))),[T,S,l]),N=c.useCallback((e=>{if(e.value!==S(R.Z.mixed))if(r){const{value:t}=e,{precision:n,scale:o}=t,{fromValue:r,toValue:i,unitFrom:s,unitTo:l}=o;null==a||a({measurementPrecision:n,measurementScale:new g.Z({fromValue:Number(r),toValue:Number(i),unitFrom:s,unitTo:l})})}else f((0,b.Se)(e.value))}),[f,S,a,r]);if(!l)return null;if(!P)return c.createElement("div",{className:I().warningButton,onClick:()=>f((0,A.PR)())},c.createElement(O.Z,{src:n(78339),role:"presentation",className:I().warningButtonIcon}),c.createElement("span",{className:I().radioButtonWarningLabel},S(m.s.setScale)));function j(){(0,d.dC)((()=>{f((0,b.Xh)(!0)),f((0,y.Ds)("distance")),f((0,A.yg)(F.Z,v.A.DISTANCE))}))}return c.createElement("div",{className:C().scaleDropdownContainer},c.createElement("div",{className:i()(x().nativeDropdown,C().nativeButton)},c.createElement("select",{"aria-label":S(B.scalesDropdown),value:T?S(R.Z.mixed):null===(t=M.find((e=>JSON.stringify(e.value)===JSON.stringify(P))))||void 0===t?void 0:t.label,className:i()("PSPDFKit-Input-Dropdown-Select","PSPDFKit-Scales-Dropdown"),onChange:e=>{const t=e.target.value;"editAddScale"===t?f((0,A.PR)()):"calibrationTool"===t?j():N(M.find((e=>e.label===t)))}},null==M?void 0:M.map((e=>c.createElement("option",{key:e.label,value:e.label},e.label))),c.createElement("option",{key:S(B.editAddScale),value:"editAddScale"},S(B.editAddScale),"..."),c.createElement("option",{key:S(B.useCalibrationTool),value:"calibrationTool"},S(B.useCalibrationTool),"..."))),c.createElement(k.Z,{items:M,value:T?{label:S(R.Z.mixed),value:S(R.Z.mixed)}:M.find((e=>JSON.stringify(e.value)===JSON.stringify(P))),accessibilityLabel:S(B.scalesDropdown),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:i()(x().dropdownGroupComponent,"PSPDFKit-Measurement-Popover-Precision-Dropdown","PSPDFKit-Scales-Dropdown"),menuClassName:i()(x().dropdownGroupMenu,E().measurementDropdownText),ButtonComponent:D,ItemComponent:z,onSelect:(e,t)=>N(t),frameWindow:o},c.createElement("div",{className:_().scalesDropdownItem,onClick:()=>f((0,A.PR)())},S(B.editAddScale),"..."),c.createElement("div",{className:_().scalesDropdownItem,onClick:()=>{j()}},S(B.useCalibrationTool),"...")))},z=e=>{let{item:t,state:n,itemComponentProps:o,ref:r}=e;return c.createElement(K,{item:t,state:n,itemComponentProps:o,ref:r})},K=c.forwardRef(((e,t)=>{var n;let{item:r,state:s,itemComponentProps:l,width:u}=e;return c.createElement(a.Z,(0,o.Z)({is:"div",className:i()(E().item,_().item,{[E().isSelected]:(null==s?void 0:s.includes("selected"))||(null==s?void 0:s.includes("focused"))}),name:null!==(n=null==r?void 0:r.value)&&void 0!==n?n:null==r?void 0:r.label,style:{width:u},ref:t},l),null!=s&&s.includes("selected")?c.createElement(O.Z,{src:f(),className:_().icon}):c.createElement("span",{className:_().icon}),null==r?void 0:r.label)}))},35129:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,Z:()=>i});var o=n(76154),r=n(83634);const i=(0,o.vU)({color:{id:"color",defaultMessage:"Color",description:"Color"},fillColor:{id:"fillColor",defaultMessage:"Fill Color",description:"Background color"},newColor:{id:"newColor",defaultMessage:"New Color",description:"New Custom Color"},[r.Z.BLACK.toCSSValue()]:{id:"black",defaultMessage:"Black",description:"Black, the color"},[r.Z.WHITE.toCSSValue()]:{id:"white",defaultMessage:"White",description:"White, the color"},[r.Z.BLUE.toCSSValue()]:{id:"blue",defaultMessage:"Blue",description:"Blue, the color"},[r.Z.RED.toCSSValue()]:{id:"red",defaultMessage:"Red",description:"Red, the color"},[r.Z.GREEN.toCSSValue()]:{id:"green",defaultMessage:"Green",description:"Green, the color"},[r.Z.ORANGE.toCSSValue()]:{id:"orange",defaultMessage:"Orange",description:"Orange, the color"},[r.Z.LIGHT_BLUE.toCSSValue()]:{id:"lightBlue",defaultMessage:"Light Blue",description:"Light Blue color"},[r.Z.LIGHT_RED.toCSSValue()]:{id:"lightRed",defaultMessage:"Light Red",description:"Light Red color"},[r.Z.LIGHT_GREEN.toCSSValue()]:{id:"lightGreen",defaultMessage:"Light Green",description:"Light Green color"},[r.Z.LIGHT_YELLOW.toCSSValue()]:{id:"yellow",defaultMessage:"Yellow",description:"Yellow color"},opacity:{id:"opacity",defaultMessage:"Opacity",description:"Opacity"},thickness:{id:"thickness",defaultMessage:"Thickness",description:"Thickness of a line"},"linecaps-dasharray":{id:"linecaps-dasharray",defaultMessage:"Line Style",description:"Select line caps and dash pattern of lines"},linestyle:{id:"dasharray",defaultMessage:"Line style",description:"Select line style"},borderStyle:{id:"borderStyle",defaultMessage:"Border style",description:"Select border style"},borderColor:{id:"borderColor",defaultMessage:"Border color",description:"Select border color"},font:{id:"font",defaultMessage:"Font",description:"Font"},fontSize:{id:"fontSize",defaultMessage:"Font size",description:"Font size selection"},fonts:{id:"fonts",defaultMessage:"Fonts",description:"Fonts"},allFonts:{id:"allFonts",defaultMessage:"All Fonts",description:"Used when presenting a list of fonts"},fontFamilyUnsupported:{id:"fontFamilyUnsupported",defaultMessage:"{arg0} (not supported)",description:"Font family (type) is not supported"},alignment:{id:"alignment",defaultMessage:"Alignment",description:"Alignment (left, center, right, top, middle, bottom)"},alignmentRight:{id:"alignmentRight",defaultMessage:"Right",description:"Right alignment"},alignmentLeft:{id:"alignmentLeft",defaultMessage:"Left",description:"Left alignment"},alignmentCenter:{id:"alignmentCenter",defaultMessage:"center",description:"Center alignment"},verticalAlignment:{id:"verticalAlignment",defaultMessage:"Vertical Alignment",description:"Vertical Alignment (top, center, bottom)"},horizontalAlignment:{id:"horizontalAlignment",defaultMessage:"Horizontal Alignment",description:"Horizontal Alignment (left, center, right)"},size:{id:"size",defaultMessage:"Size",description:"Used to label sizes (eg. font)"},numberInPt:{id:"numberInPt",defaultMessage:"{arg0} pt",description:"A number in pt (points). eg. 10pt"},startLineCap:{id:"startLineCap",defaultMessage:"Line Start",description:'Start line cap marker. eg. "open arrow"'},strokeDashArray:{id:"strokeDashArray",defaultMessage:"Line Style",description:"Line Style"},endLineCap:{id:"endLineCap",defaultMessage:"Line End",description:'End line cap marker. eg. "open arrow"'},edit:{id:"edit",defaultMessage:"Edit",description:"Generic edit label"},save:{id:"save",defaultMessage:"Save",description:"Generic save label"},saveAs:{id:"saveAs",defaultMessage:"Save As...",description:'Generic "save as" label'},export:{id:"export",defaultMessage:"Export",description:'Generic "export" label'},delete:{id:"delete",defaultMessage:"Delete",description:"Generic delete label"},cancel:{id:"cancel",defaultMessage:"Cancel",description:"Cancel"},ok:{id:"ok",defaultMessage:"OK",description:"Ok, usually used to confirm an action"},close:{id:"close",defaultMessage:"Close",description:'Generic, usually to close something. "something" can be inferred from the context in which the message appears'},done:{id:"done",defaultMessage:"Done",description:'Generic "done" message. Usually used in a button.'},annotationsCount:{id:"annotationsCount",defaultMessage:"{arg0, plural,\n =0 {{arg0} Annotations}\n one {{arg0} Annotation}\n two {{arg0} Annotations}\n other {{arg0} Annotations}\n }",description:"Amount of annotations."},annotations:{id:"annotations",defaultMessage:"Annotations",description:"PDF Annotations"},bookmark:{id:"bookmark",defaultMessage:"Bookmark",description:"PDF Bookmark"},bookmarks:{id:"bookmarks",defaultMessage:"Bookmarks",description:"PDF Bookmarks"},annotation:{id:"annotation",defaultMessage:"Annotation",description:"Annotation"},selectedAnnotation:{id:"selectedAnnotation",defaultMessage:"selected {arg0}",description:"Selected Annotation"},selectedAnnotationWithText:{id:"selectedAnnotationWithText",defaultMessage:"Selected {arg0} with {arg1} as content",description:"Selected Text or Note Annotation"},noteAnnotation:{id:"noteAnnotation",defaultMessage:"Note",description:"Text Note Annotation"},comment:{id:"comment",defaultMessage:"Comment",description:"Comment"},commentAction:{id:"commentAction",defaultMessage:"Comment",description:"Comment"},comments:{id:"comments",defaultMessage:"Comments",description:"Comments"},textAnnotation:{id:"textAnnotation",defaultMessage:"Text",description:"Free Text Annotation"},calloutAnnotation:{id:"calloutAnnotation",defaultMessage:"Callout",description:"Free Text Annotation (Callout)"},pen:{id:"pen",defaultMessage:"Drawing",description:"Ink Annotation used to do freehand drawing."},eraser:{id:"eraser",defaultMessage:"Ink Eraser",description:"Ink Eraser tool to remove ink annotations points by hand."},inkAnnotation:{id:"inkAnnotation",defaultMessage:"Drawing",description:"Ink Annotation used to do freehand drawing."},highlighterAnnotation:{id:"highlighterAnnotation",defaultMessage:"Freeform Highlight",description:"Ink Annotation used to highlight content."},highlightAnnotation:{id:"highlightAnnotation",defaultMessage:"Text Highlight",description:"Highlight Annotation used to select and mark text."},underlineAnnotation:{id:"underlineAnnotation",defaultMessage:"Underline",description:"Undeline Annotation used to select and mark text."},squiggleAnnotation:{id:"squiggleAnnotation",defaultMessage:"Squiggle",description:"Squiggle Annotation used to select and mark text."},strikeOutAnnotation:{id:"strikeOutAnnotation",defaultMessage:"Strikethrough",description:"StrikeOut Annotation used to select and mark text."},lineAnnotation:{id:"lineAnnotation",defaultMessage:"Line",description:"Shape Annotation used to draw straight lines."},arrowAnnotation:{id:"arrowAnnotation",defaultMessage:"Arrow",description:"Shape Annotation used to draw an arrow."},rectangleAnnotation:{id:"rectangleAnnotation",defaultMessage:"Rectangle",description:"Shape Annotation used to draw rectangles."},ellipseAnnotation:{id:"ellipseAnnotation",defaultMessage:"Ellipse",description:"Shape Annotation used to draw ellipses."},polygonAnnotation:{id:"polygonAnnotation",defaultMessage:"Polygon",description:"Shape Annotation used to draw polygons."},polylineAnnotation:{id:"polylineAnnotation",defaultMessage:"Polyline",description:"Shape Annotation used to draw polylines."},imageAnnotation:{id:"imageAnnotation",defaultMessage:"Image",description:"Image Annotation"},stampAnnotation:{id:"stampAnnotation",defaultMessage:"Stamp",description:"Stamp Annotation"},redactionAnnotation:{id:"redactionAnnotation",defaultMessage:"Redaction",description:"Redaction Annotation"},arrow:{id:"arrow",defaultMessage:"Line with arrow",description:"Shape Annotation used to draw straight lines with an arrow."},highlighter:{id:"highlighter",defaultMessage:"Freeform Highlight",description:"Ink Annotation used to highlight content with freehand drawing."},icon:{id:"icon",defaultMessage:"Icon",description:"Label for when users need to select an icon"},pageXofY:{id:"pageXofY",defaultMessage:"Page {arg0} of {arg1}",description:"Page indicator."},pageX:{id:"pageX",defaultMessage:"Page {arg0}",description:"Page number"},searchDocument:{id:"searchDocument",defaultMessage:"Search Document",description:"Search document (for text)"},sign:{id:"sign",defaultMessage:"Sign",description:"Label for a signature field"},signed:{id:"signed",defaultMessage:"Signed",description:"Label for a signed field"},signatures:{id:"signatures",defaultMessage:"Signatures",description:"Signatures title"},blendMode:{id:"blendMode",defaultMessage:"Blend Mode",description:"Blend Mode"},linesCount:{id:"linesCount",defaultMessage:"{arg0, plural,\n =0 {{arg0} Lines}\n one {{arg0} Line}\n two {{arg0} Lines}\n other {{arg0} Lines}\n }",description:"Amount of lines (for example in a ink annotation)."},filePath:{id:"filePath",defaultMessage:"File Path",description:"Location of a file or file name"},useAnExistingStampDesign:{id:"useAnExistingStampDesign",defaultMessage:"Use an existing stamp design",description:"Use an existing stamp design"},customStamp:{id:"customStamp",defaultMessage:"Custom Stamp",description:"Custom Stamp"},stampText:{id:"stampText",defaultMessage:"Stamp Text",description:"Stamp Text"},clear:{id:"clear",defaultMessage:"Clear",description:"Clear"},date:{id:"date",defaultMessage:"Date",description:"Date."},time:{id:"time",defaultMessage:"Time",description:"Time."},sidebar:{id:"sidebar",defaultMessage:"Sidebar",description:"Generic label for a sidebar"},gotoPageX:{id:"gotoPageX",defaultMessage:"Go to Page {arg0}",description:"Go to a page"},name:{id:"name",defaultMessage:"Name",description:"Name field usually."},chooseColor:{id:"chooseColor",defaultMessage:"Choose Color",description:"Choose color from the UI."},textHighlighter:{id:"textHighlighter",defaultMessage:"Text highlighter",description:"Highlighter tool used to highlight selected text."},undo:{id:"undo",defaultMessage:"Undo",description:"Undo last action."},redo:{id:"redo",defaultMessage:"Redo",description:"Redo last undone action."},showMore:{id:"showMore",defaultMessage:"Show More",description:"Show more"},showLess:{id:"showLess",defaultMessage:"Show Less",description:"Show Less"},nMoreComments:{id:"nMoreComments",defaultMessage:"{arg0, plural,\none {{arg0} more comment}\nother {{arg0} more comments}\n}",description:"n more comments"},documentEditor:{id:"documentEditor",defaultMessage:"Document Editor",description:"Document Editor toolbar label"},areaRedaction:{id:"areaRedaction",defaultMessage:"Area Redaction",description:"Area Redaction toolbar item label"},textRedaction:{id:"textRedaction",defaultMessage:"Text Redaction",description:"Text Redaction toolbar item label"},outlineColor:{id:"outlineColor",defaultMessage:"Outline Color",description:"Outline color"},overlayText:{id:"overlayText",defaultMessage:"Overlay text",description:"Overlay text"},insertOverlayText:{id:"overlayTextPlaceholder",defaultMessage:"Insert overlay text",description:"Overlay Text property placeholder"},repeatText:{id:"repeatText",defaultMessage:"Repeat text",description:"Repeat text placeholder"},preview:{id:"preview",defaultMessage:"Preview",description:"Preview"},markupToolbar:{id:"markupAnnotationToolbar",defaultMessage:"Markup annotation toolbar",description:"Label for the markup annotation toolbar popover"},documentViewport:{id:"documentViewport",defaultMessage:"document viewport",description:"Label for document viewport region"},top:{id:"top",defaultMessage:"Top",description:"Top"},bottom:{id:"bottom",defaultMessage:"Bottom",description:"Bottom"},resize:{id:"resize",defaultMessage:"Resize",description:"Resize action when an annotation is selected."},resizeHandleTop:{id:"resizeHandleTop",defaultMessage:"top",description:"One of the top resize handlers."},resizeHandleBottom:{id:"resizeHandleBottom",defaultMessage:"bottom",description:"One of the bottom resize handlers."},resizeHandleLeft:{id:"resizeHandleLeft",defaultMessage:"left",description:"One of the left resize handlers."},resizeHandleRight:{id:"resizeHandleRight",defaultMessage:"right",description:"One of the right resize handlers."},cropAll:{id:"cropAll",defaultMessage:"Crop All",description:"Crop all pages."},cropAllPages:{id:"cropAllPages",defaultMessage:"Crop All Pages",description:"Crop all pages."},cropCurrent:{id:"cropCurrent",defaultMessage:"Crop Current",description:"Crop current page."},cropCurrentPage:{id:"cropCurrentPage",defaultMessage:"Crop Current Page",description:"Crop current page."},documentCrop:{id:"documentCrop",defaultMessage:"Document Crop",description:"Crop document pages."},documentComparison:{id:"documentComparison",defaultMessage:"Document Comparison",description:"Compare two documents."},rotateCounterclockwise:{id:"rotateCounterclockwise",defaultMessage:"Rotate counterclockwise",description:"Label for the rotate counterclockwise button"},rotateClockwise:{id:"rotateClockwise",defaultMessage:"Rotate clockwise",description:"Label for the rotate clockwise button"},rotation:{id:"rotation",defaultMessage:"Rotate",description:"Label for the rotate button"},applyRedactions:{id:"applyRedactions",defaultMessage:"Apply Redactions",description:"Applies redactions to document"},cloudyRectangleAnnotation:{id:"cloudyRectangleAnnotation",defaultMessage:"Cloudy Rectangle",description:"Cloudy Rectangle"},dashedRectangleAnnotation:{id:"dashedRectangleAnnotation",defaultMessage:"Dashed Rectangle",description:"Dashed Rectangle"},cloudyEllipseAnnotation:{id:"cloudyEllipseAnnotation",defaultMessage:"Cloudy Ellipse",description:"Cloudy Ellipse"},dashedEllipseAnnotation:{id:"dashedEllipseAnnotation",defaultMessage:"Dashed Ellipse",description:"Dashed Ellipse"},cloudyPolygonAnnotation:{id:"cloudyPolygonAnnotation",defaultMessage:"Cloudy Polygon",description:"Cloudy Polygon"},dashedPolygonAnnotation:{id:"dashedPolygonAnnotation",defaultMessage:"Dashed Polygon",description:"Dashed Polygon"},cloudAnnotation:{id:"cloudAnnotation",defaultMessage:"Cloud",description:"Cloud Annotation"},addSignature:{id:"addSignature",defaultMessage:"Add Signature",description:"Add Signature"},storeSignature:{id:"storeSignature",defaultMessage:"Store Signature",description:"Store the signature that is in creation"},clearSignature:{id:"clearSignature",defaultMessage:"Clear Signature",description:"Clear the signature canvas"},button:{id:"button",defaultMessage:"Button Field",description:"Button Field"},textField:{id:"textField",defaultMessage:"Text Field",description:"Text Field"},radioField:{id:"radioField",defaultMessage:"Radio Field",description:"Radio Field"},checkboxField:{id:"checkboxField",defaultMessage:"Checkbox Field",description:"Checkbox Field"},comboBoxField:{id:"comboBoxField",defaultMessage:"Combo Box Field",description:"Combo Box Field"},listBoxField:{id:"listBoxField",defaultMessage:"List Box Field",description:"List Box Field"},signatureField:{id:"signatureField",defaultMessage:"Signature Field",description:"Signature Field"},dateField:{id:"dateField",defaultMessage:"Date Field",description:"Date Field"},formCreator:{id:"formCreator",defaultMessage:"Form Creator",description:"Create, edit or Delete widget annotations."},mediaAnnotation:{id:"mediaAnnotation",defaultMessage:"Media Annotation",description:"Media Annotation"},mediaFormatNotSupported:{id:"mediaFormatNotSupported",defaultMessage:"This browser does not support embedded medias.",description:"The browser does not support embedded medias"},contentEditor:{id:"contentEditor",defaultMessage:"Content Editor",description:"Content Editor"},saveAndClose:{id:"saveAndClose",defaultMessage:"Save & Close",description:"Save changes"},none:{id:"none",defaultMessage:"None",description:"Normal line"},linkAnnotation:{id:"linkAnnotation",defaultMessage:"Link",description:"Link Annotation"},measurement:{id:"measurement",defaultMessage:"Measurement",description:"Measurement"},distanceMeasurement:{id:"distanceMeasurement",defaultMessage:"Distance",description:"Measurement Annotation used to measure distance between 2 points"},multiAnnotationsSelection:{id:"multiAnnotationsSelection",defaultMessage:"Select Multiple Annotations",description:"Multiple annotations selection tool used to enable selection of multiple annotations."},rectangularAreaMeasurement:{id:"rectangularAreaMeasurement",defaultMessage:"Rectangle Area",description:"Measurement Annotation used to measure rectangle areas."},ellipseAreaMeasurement:{id:"ellipseAreaMeasurement",defaultMessage:"Ellipse Area",description:"Measurement Annotation used to measure elliptical areas."},polygonAreaMeasurement:{id:"polygonAreaMeasurement",defaultMessage:"Polygon Area",description:"Measurement Annotation used to measure polygon areas."},perimeterMeasurement:{id:"perimeterMeasurement",defaultMessage:"Perimeter",description:"Measure Annotation used to measure perimeter."},bold:{id:"bold",defaultMessage:"Bold",description:"Bold text"},italic:{id:"italic",defaultMessage:"Italic",description:"Italic text"},underline:{id:"underline",defaultMessage:"Underline",description:"Underline"},discard:{id:"discardChanges",defaultMessage:"Discard Changes",description:"Discard"},anonymous:{id:"anonymous",defaultMessage:"Anonymous",description:"Anonymous"},loading:{id:"loading",defaultMessage:"Loading...",description:"Shown while the document is being fetched"},group:{id:"group",defaultMessage:"Group",description:"Group annotations."},ungroup:{id:"ungroup",defaultMessage:"Ungroup",description:"Ungroup annotations."},mixedMeasurements:{id:"mixedMeasurements",defaultMessage:"Mixed Measurements",description:"Mixed Measurements"},mixed:{id:"mixed",defaultMessage:"Mixed",description:"Mixed"},back:{id:"back",defaultMessage:"Back",description:"back"}}),a=(0,o.vU)({numberValidationBadFormat:{id:"numberValidationBadFormat",defaultMessage:"The value entered does not match the format of the field [{arg0}]",description:"The number form field value format is wrong."},dateValidationBadFormat:{id:"dateValidationBadFormat",defaultMessage:"Invalid date/time: please ensure that the date/time exists. Field [{arg0}] should match format {arg1}",description:"The date form field value format is wrong."}})},35860:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f,z:()=>p});var o=n(25915),r=n(76154),i=n(67294),a=n(94184),s=n.n(a),l=n(35129),c=n(28890),u=n(73535),d=n.n(u);class p extends i.PureComponent{render(){const{formatMessage:e}=this.props.intl;return i.createElement(c.Z,{role:"alertdialog",onEscape:this.props.onCancel,background:"rgba(0,0,0,.1)",className:"PSPDFKit-Confirm-Dialog",accessibilityLabel:this.props.accessibilityLabel||"Confirm Dialog",accessibilityDescription:this.props.accessibilityDescription,restoreOnClose:this.props.restoreOnClose},i.createElement(c.Z.Section,{style:{paddingBottom:0}},i.createElement("div",{className:`${d().content} PSPDFKit-Confirm-Dialog-Content`},this.props.children)),i.createElement(c.Z.Section,null,i.createElement(o.hE,{className:"PSPDFKit-Confirm-Dialog-Buttons",align:"end"},i.createElement(o.zx,{autoFocus:!0,onClick:this.props.onCancel,className:s()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Cancel",d().button)},e(l.Z.cancel)),i.createElement(o.zx,{onClick:this.props.onConfirm,primary:!0,className:s()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Confirm",d().button)},e(l.Z.delete)))))}}const f=(0,r.XN)(p)},72800:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var o=n(67294),r=n(73264),i=n(87515),a=n(82481);function s(e){const{backend:t,onInitialRenderFinished:n,pageIndex:r,pageSize:s,pageKey:l,renderPageCallback:c,zoomLevel:u,scaleFactor:d}=e,p=o.useRef(!1),f=o.useCallback((function(){p.current||(p.current=!0,n&&n())}),[n]),h=o.useMemo((function(){return new a.UL({width:Math.ceil(s.width*d),height:Math.ceil(s.height*d)})}),[s,d]),m=e.inContentEditorMode||!1;return o.createElement("div",{style:{transform:`scale(${u/d})`,transformOrigin:"0 0"},key:l},o.createElement(i.Z,{backend:t,pageIndex:r,scaledPageSize:h,originalPageSize:s,onRenderFinished:f,rect:h,renderPageCallback:c,pageKey:l,hasInitialRenderFinished:p.current,inContentEditorMode:m}))}var l=n(55961),c=n(22122),u=n(27515),d=n(88804);function p(e){let{backend:t,viewportState:n,page:r,tileSize:a,tileOverlapping:s,scale:l,renderPageCallback:p,tilesRenderedCallback:f,contentState:h,crispTiles:m,inContentEditorMode:g}=e;const{pageIndex:v,pageSize:y,pageKey:b}=r,[w,S]=function(e,t,n,r,i,a,s){const[l,c]=o.useState({}),p=o.useRef([]),f=o.useMemo((function(){return function(e,t,n,o,r,i,a){const{viewportRect:s}=e,l=(0,u.Ek)(e,r),c=s.grow(n).apply(l).scale(a).round(),p=t.scale(a).ceil(),f={};for(let e=0;e<=p.height;e+=n){let t=n;if(e+t>p.height&&(t=Math.floor(p.height-e)),e+t<=c.top||e>=c.bottom||t<=0)e-=o;else{for(let r=0;r<=p.width;r+=n){let s=n;if(r+n>p.width&&(s=Math.floor(p.width-r)),r+s<=c.left||r>=c.right||s<=0){r-=o;continue}const l=`${i}-sw${p.width}-sh${p.height}-x${r}-y${e}-w${s}-h${t}`;f[l]={key:l,scale:a,rect:new d.UL({width:s,height:t,left:r,top:e})},r-=o}e-=o}}return f}(e,t,n,r,i,a,s)}),[i,a,t,s,r,n,e]);o.useLayoutEffect((function(){c((e=>function(e,t,n){const o={};for(const n of t)o[n]=e[n];for(const e in n)o[e]=n[e];return o}(e,p.current,f)))}),[f]);return[o.useMemo((function(){return function(e){const t=[];for(const n in e){const o=e[n],{scale:r}=o;let i=t.find((function(e){return e[0]===r}));if(void 0===i){let e;for(i=[r,[]],e=0;e=t?(p.current=Object.keys(f),c(f)):p.current.push(e)}]}(n,y,a,s,v,b,l);return o.createElement(o.Fragment,null,w.map((e=>{let[a,s]=e;const l=y,u=l.scale(a).ceil();return o.createElement("div",{key:a},s.map((e=>o.createElement(i.Z,(0,c.Z)({key:e.key,rect:e.rect,pageIndex:v,originalPageSize:l,scaledPageSize:u,backend:t,renderPageCallback:p,onRenderFinished:()=>{S(e.key),f()},pageKey:r.pageKey,crisp:m,inContentEditorMode:g},h,{tileScale:n.zoomLevel/a})))))})))}const f=o.memo(p,(function(e,t){return e.page.pageKey===t.page.pageKey&&!(0,u.pA)(e.viewportState,t.viewportState)&&e.inContentEditorMode===t.inContentEditorMode}));var h=n(91859);const m=(0,l.x)((function(e){return{viewportState:e.viewportState,backend:e.backend,tileSize:h.I_,tileOverlapping:h.Dx,renderPageCallback:e.renderPageCallback}}))(f);var g=n(73815),v=n(36095);var y=n(58479),b=n(90523),w=n.n(b);const S=function(e){const{inViewport:t,shouldPrerender:n,rotation:i,backend:a,zoomLevel:l,renderPageCallback:c,page:u,onInitialOverviewRenderFinished:d,allowedTileScales:p,forceDetailView:f,renderPagePreview:h,isPageSizeReal:b,crispTiles:S=!1,inContentEditorMode:E,contentState:P}=e,[x,D]=o.useState(!h),C=o.useCallback((function(){D(!0),d&&d()}),[d]),k=function(e,t,n){var o;let r=(0,g.L)();const i=window.navigator,a=null==i||null===(o=i.connection)||void 0===o?void 0:o.saveData;"STANDALONE"===t.type&&v.Ni&&r>2&&(r=2),"SERVER"===t.type&&a&&(r=1);const s=e*r;return"all"===n?s:n.reduce(((e,t)=>eu.pageSize.floor()),[u.pageSize]),O=o.useMemo((function(){const t=Math.min((0,g.L)(),2);return Math.min(e.viewportRect.width*t/A.width,1)}),[A.width,e.viewportRect.width]),[T,I]=o.useState(!1),F=(0,y.R9)((()=>{T||h||I(!0)})),M=t&&b&&(!h||k>1||f||l>O)?o.createElement("div",{style:{opacity:x?1:0}},o.createElement(m,{contentState:P,page:u,scale:k,key:u.pageKey,crispTiles:S,tilesRenderedCallback:F,inContentEditorMode:E})):null;return o.createElement("div",null,(!x||!b||!T&&!h)&&o.createElement("div",{className:`${w().layer} ${w().deadCenter}`},o.createElement(r.Z,{scale:1.5,rotate:-i})),(t||x||n)&&h&&b&&o.createElement(s,{backend:a,pageIndex:u.pageIndex,pageSize:A,pageKey:u.pageKey,onInitialRenderFinished:C,zoomLevel:l,scaleFactor:O,renderPageCallback:c,inContentEditorMode:E}),M)}},87515:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var o=n(84121),r=n(67294),i=n(35369),a=n(94184),s=n.n(a),l=n(86366),c=n(97333),u=n(95651),d=n(36095),p=n(10333),f=n.n(p);class h extends r.PureComponent{constructor(){super(...arguments),(0,o.Z)(this,"imageFetcherRef",r.createRef()),(0,o.Z)(this,"_fetchImage",(()=>{const{backend:e,originalPageSize:t,scaledPageSize:n,pageIndex:o,rect:r,attachments:a,renderPageCallback:s,digitalSignatures:l}=this.props,d=(this.props.annotations||(0,i.aV)()).filter(u.bz),p=this.props.formFields||(0,i.aV)(),f=this.props.formFieldValues||(0,i.aV)(),h=l&&l.signatures||[],m=this.props.inContentEditorMode||!1;let g;if((d.size>0||f.size>0)&&(g={annotations:d,formFieldValues:f,formFields:p,attachments:a||(0,i.D5)(),signatures:h}),!n.width||!n.height)return{promise:Promise.resolve(null),cancel:()=>{}};const{cancel:v,promise:y}=e.renderTile(o,n,r,!1,!m,g);return(0,c.uZ)(y.then((e=>{let{element:i}=e;if("function"==typeof s){var a,l;let u;if("IMG"===i.nodeName){var c;const e=i,t=document.createElement("canvas");t.width=r.width,t.height=r.height,u=t.getContext("2d"),null===(c=u)||void 0===c||c.drawImage(e,0,0),i=t}u||(u=i.getContext("2d")),null===(a=u)||void 0===a||a.translate(-r.left,-r.top),null===(l=u)||void 0===l||l.scale(n.width/t.width,n.height/t.height),s(u,o,t);const d=document.createElement("img");d.src=i.toDataURL(),e.element=d}return e})),v)}))}componentDidUpdate(e){const{annotations:t,formFieldValues:n}=this.props,{annotations:o,formFieldValues:r}=e;(null!=this.props.hasInitialRenderFinished&&!this.props.hasInitialRenderFinished||!this.props.scaledPageSize.equals(e.scaledPageSize)||!this.props.rect.equals(e.rect)||t&&t!==o&&!t.equals(o)||n&&n!==r&&!n.equals(r)||this.props.pageKey!==e.pageKey||this.props.inContentEditorMode!==e.inContentEditorMode)&&this.imageFetcherRef.current&&this.imageFetcherRef.current.refresh()}render(){const{onRenderFinished:e,rect:t,tileScale:n=1,crisp:o=!1}=this.props,{width:i,height:a,left:c,top:u}=t,p={width:i*n,height:a*n,left:c*n,top:u*n,outline:null},h=s()({[f().tile]:!0,[f().tileChrome]:d.i7,[f().tileFirefox]:d.vU,[f().tileSafari]:d.G6,[f().crispTile]:o});return r.createElement(l.Z,{fetchImage:this._fetchImage,className:h,rectStyle:p,onRenderFinished:e,visible:!1,ref:this.imageFetcherRef})}}},51205:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,j:()=>u});var o=n(67294),r=n(94184),i=n.n(r),a=n(48311),s=n(22181),l=n.n(s);function c(e){let{referenceRect:t,viewportState:n,isHidden:r,children:s,title:c,className:u,wrapperClassName:d,innerWrapperClassName:p,footerClassName:f,footer:h,centeredTitle:m}=e;return o.createElement(a.Z,{referenceRect:t,viewportState:n,className:i()(l().popover,u,{[l().popoverHidden]:r})},o.createElement("div",{className:i()(l().container,d)},o.createElement("div",{className:i()(l().innerContainer,p)},o.createElement("h2",{className:i()(l().title,{[l().centeredTitle]:m})},c),s&&o.createElement("div",{className:l().content},s),h&&o.createElement("div",{className:i()(l().footer,f)},h))," "))}function u(e){let{children:t,className:n,onClick:r}=e;return o.createElement("button",{className:i()(l().footerButton,n),onClick:r},t)}},48311:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var o=n(84121),r=n(67294),i=n(94184),a=n.n(i),s=n(13944),l=n(34855),c=n(88804),u=n(30360),d=n(32905),p=n.n(d);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;t{if(!p)return;const e=o.translate(i);if(!e.isRectInside(n)&&!e.isRectOverlapping(n))return;const t=function(e){let{viewportRect:t,referenceRect:n,contentRect:o,scroll:r,onPositionConflict:i}=e,a=n.left+n.width/2-o.width/2;const s=new c.E9({x:a,y:n.top-o.height}),l=new c.E9({x:a,y:n.bottom});let u=n.top+n.height/2-o.height/2;const d=new c.E9({x:n.left-o.width,y:u}),p=new c.E9({x:n.right,y:u});let{position:f,direction:h}=m(t,o,{top:s,right:p,bottom:l,left:d});f||(at.width+t.left&&(a=t.width+t.left-o.width),ut.height+t.top&&(u=t.height+t.top-o.height),({position:f,direction:h}=m(t,o,{top:s.set("x",a),right:p.set("y",u),bottom:l.set("x",a),left:d.set("y",u)}))),f||("function"==typeof i?({position:f,direction:h}=i({referenceRect:n,viewportRect:t,contentRect:o,scroll:r,attempts:{top:s,right:p,bottom:l,left:d}})):t.isRectOverlapping(n)&&(f=new c.E9({x:t.left+t.width/2-o.width/2,y:t.top+t.height/2-o.height/2}),h="center"));return{direction:h,position:f}}({viewportRect:e,referenceRect:n,contentRect:p,scroll:i,onPositionConflict:s});t.position&&d(t)}),[o,n,p,s,i]),r.useEffect((()=>{a&&a(u)}),[u,a]);const{direction:g}=u,v=u.position&&u.position.translate(o.getLocation().scale(-1)),y=h(h({position:"absolute"},v?{top:v.y,left:v.x}:{top:-1e5,left:-1e5}),{},{visibility:v?void 0:"hidden"}),b=e=>{(e.height||e.width||e.top||e.left)&&f(e)};return"function"==typeof t?t({style:y,direction:g,onResize:b}):r.createElement("div",{style:y},r.createElement(l.Z,{onResize:b}),t)}const v=function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()};function y(e){let{children:t,referenceRect:n,color:o,baseColor:i,className:d,arrowClassName:f,viewportState:m,onPositionInfoChange:y,arrowSize:b=5,customZIndex:w,isArrowHidden:S=!1}=e;const{viewportRect:E,zoomLevel:P,scrollPosition:x}=m;return r.createElement(g,{referenceRect:n.grow(b),viewportRect:E,scroll:x.scale(P),onPositionInfoChange:y},(e=>{let{style:m,direction:g,onResize:y}=e;const P=g&&(0,u.kC)(g),x=g&&"center"!==g?function(e){let t,n,{referenceRect:o,viewportRect:r,size:i,direction:a}=e;switch("top"===a||"bottom"===a?n=o.left+o.width/2-i:t=o.top+o.height/2-i,a){case"top":t=o.top-i;break;case"bottom":t=o.top+o.height;break;case"left":n=o.left-i;break;case"right":n=o.left+o.width;break;default:throw new Error("invalid direction")}return new c.E9({y:t,x:n}).translate(r.getLocation().scale(-1))}({referenceRect:n,viewportRect:E,size:b,direction:g}):null,D={};let C;if(o){switch(g){case"top":D.color=o[o.length-1].toCSSValue();break;case"bottom":D.color=o[0].toCSSValue();break;default:D.color=o[Math.floor((o.length-1)/2)].toCSSValue()}const e=o.map(((e,t)=>`${e.toCSSValue()} ${100*t/(o.length-1)}%`)).join(", ");i&&(m=h(h({},m),{},{backgroundColor:i.toCSSValue()}),C={color:i.toCSSValue()}),m=h(h({},m),{},{backgroundImage:`linear-gradient(to bottom, ${e})`,zIndex:w})}return r.createElement(s.Z,{onPointerUp:v},r.createElement("div",{className:d},x&&!S&&r.createElement("span",{style:h(h({},C),{},{zIndex:w})},r.createElement("div",{style:h({position:"absolute",top:x.y,left:x.x,width:b,height:b,zIndex:w},D),className:a()(p().arrow,f,P&&p()[`arrow${P}`],"PSPDFKit-Popover-Arrow",P&&"PSPDFKit-Popover-Arrow-"+P)})),r.createElement("div",{style:m,className:a()(p().root,"PSPDFKit-Popover",P&&"PSPDFKit-Popover-"+P)},t,r.createElement(l.Z,{onResize:y}))))}))}},54543:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var o=n(50974),r=n(49242);const i=e=>t=>e(function(e){const t=e.nativeEvent||e;let n=!1,i=0,a=0;const s=t.shiftKey;let l=t.pointerType||"mouse";const c=(void 0!==e.touches||void 0!==e.changedTouches)&&void 0===e.width;c?(l="touch",n=1==t.touches.length||"touchend"===e.type,n&&t.changedTouches.length&&(i=t.changedTouches[0].clientX,a=t.changedTouches[0].clientY)):(n=e.isPrimary||(0,r.I)(e),i=e.clientX,a=e.clientY);let u={clientX:i,clientY:a,isPrimary:n,pointerType:l,shiftKey:s,metaKey:t.metaKey,ctrlKey:t.ctrlKey,getCoalescedEvents:"function"==typeof t.getCoalescedEvents?()=>{const e=t.getCoalescedEvents.call(t);return e.length?e:[u]}:()=>[u],stopPropagation:()=>{e.stopPropagation(),t.stopImmediatePropagation()},preventDefault:()=>{e.preventDefault()},get target(){if(c&&void 0!==e.target.ownerDocument){const t=e.target.ownerDocument;return t&&t.elementFromPoint?t.elementFromPoint(i,a):e.target}return e.target},nativeEvent:t,get buttons(){return c?(0,o.ZK)("TouchEvent do not have the method buttons"):e.buttons}};return u}(t))},13944:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var o=n(22122),r=n(84121),i=n(67294),a=n(50974),s=n(54543),l=n(71231),c=n(36095);const u=l.Gn?{passive:!1}:void 0,d=!l.Gn||{passive:!1,capture:!0},p=1e3;let f=0,h=0;function m(e){return e?function(){if(f=Date.now(),!(Date.now()-h{this.props.onDOMElement&&this.props.onDOMElement(e),e&&((0,a.kG)("string"==typeof e.nodeName,"PRC requires a basic HTML element as children (so that we can find the proper `ownerDocument`)."),this._refDocument=e.ownerDocument)}))}componentDidMount(){this._updateRootListeners(this.props)}componentDidUpdate(){this._updateRootListeners(this.props)}componentWillUnmount(){this._removeAllRootListeners()}_updateListener(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=this._refDocument;let r=null,i=null;const a=this._attachedListeners[e][n?1:0];if(a&&([r,i]=a),i!==t&&(r&&(o.removeEventListener(e,r,n?d:u),this._attachedListeners[e][n?1:0]=null),"function"==typeof t)){const r=(0,s.S)(t);o.addEventListener(e,r,n?d:u),this._attachedListeners[e][n?1:0]=[r,t]}}_removeAllRootListeners(){const e=this._refDocument;Object.entries(this._attachedListeners).forEach((t=>{let[n,o]=t;const[r,i]=o;r&&e.removeEventListener(n,r[0],u),i&&e.removeEventListener(n,i[0],d)}))}_updateRootListeners(e){Object.entries(e).forEach((e=>{let[t,n]=e;switch(t){case"onRootPointerDown":this._updateListener("touchstart",m(n)),this.disablePointerEvents||this._updateListener("pointerdown",v(n)),this._updateListener("mousedown",g(n));break;case"onRootPointerDownCapture":this._updateListener("touchstart",m(n),!0),this.disablePointerEvents||this._updateListener("pointerdown",v(n),!0),this._updateListener("mousedown",g(n),!0);break;case"onRootPointerMove":this._updateListener("touchmove",m(n)),this.disablePointerEvents||this._updateListener("pointermove",v(n)),this._updateListener("mousemove",g(n));break;case"onRootPointerMoveCapture":this._updateListener("touchmove",m(n),!0),this.disablePointerEvents||this._updateListener("pointermove",v(n),!0),this._updateListener("mousemove",g(n),!0);break;case"onRootPointerUp":this._updateListener("touchend",m(n)),this.disablePointerEvents||this._updateListener("pointerup",v(n)),this._updateListener("mouseup",g(n));break;case"onRootPointerEnter":this.disablePointerEvents||this._updateListener("pointerenter",v(n)),this._updateListener("mouseenter",g(n));break;case"onRootPointerLeave":this.disablePointerEvents||this._updateListener("pointerleave",v(n)),this._updateListener("mouseleave",g(n));break;case"onRootPointerUpCapture":this._updateListener("touchend",m(n),!0),this.disablePointerEvents||this._updateListener("pointerup",v(n),!0),this._updateListener("mouseup",g(n),!0);break;case"onRootPointerEnterCapture":this.disablePointerEvents||this._updateListener("pointerenter",v(n),!0),this._updateListener("mouseenter",g(n),!0);break;case"onRootPointerLeaveCapture":this.disablePointerEvents||this._updateListener("pointerleave",v(n),!0),this._updateListener("mouseleave",g(n),!0);break;case"onRootPointerCancel":this.disablePointerEvents||this._updateListener("pointercancel",v(n)),this._updateListener("touchcancel",m(n));break;case"onRootPointerCancelCapture":this.disablePointerEvents||this._updateListener("pointercancel",v(n),!0),this._updateListener("touchcancel",m(n),!0)}}))}render(){const e={};let t=!1;if(this.disablePointerEvents="INK"!==this.props.interactionMode&&(0,c.yx)(),Object.entries(this.props).forEach((n=>{let[o,r]=n;if("function"==typeof r)switch(o){case"onPointerDown":e.onTouchStart=m((0,s.S)(r)),this.disablePointerEvents||(e.onPointerDown=v((0,s.S)(r))),e.onMouseDown=g((0,s.S)(r)),t=!0;break;case"onPointerDownCapture":e.onTouchStartCapture=m((0,s.S)(r)),this.disablePointerEvents||(e.onPointerDownCapture=v((0,s.S)(r))),e.onMouseDownCapture=g((0,s.S)(r)),t=!0;break;case"onPointerMove":e.onTouchMove=m((0,s.S)(r)),this.disablePointerEvents||(e.onPointerMove=v((0,s.S)(r))),e.onMouseMove=g((0,s.S)(r)),t=!0;break;case"onPointerMoveCapture":e.onTouchMoveCapture=m((0,s.S)(r)),this.disablePointerEvents||(e.onPointerMoveCapture=v((0,s.S)(r))),e.onMouseMoveCapture=g((0,s.S)(r)),t=!0;break;case"onPointerUp":e.onTouchEnd=m((0,s.S)(r)),this.disablePointerEvents||(e.onPointerUp=v((0,s.S)(r))),e.onMouseUp=g((0,s.S)(r)),t=!0;break;case"onPointerUpCapture":e.onTouchEndCapture=m((0,s.S)(r)),this.disablePointerEvents||(e.onPointerUpCapture=v((0,s.S)(r))),e.onMouseUpCapture=g((0,s.S)(r)),t=!0;break;case"onPointerEnter":this.disablePointerEvents||(e.onPointerEnter=v((0,s.S)(r))),e.onMouseEnter=g((0,s.S)(r)),t=!0;break;case"onPointerEnterCapture":this.disablePointerEvents||(e.onPointerEnterCapture=v((0,s.S)(r))),e.onMouseEnterCapture=g((0,s.S)(r)),t=!0;break;case"onPointerLeave":this.disablePointerEvents||(e.onPointerLeave=v((0,s.S)(r))),e.onMouseLeave=g((0,s.S)(r)),t=!0;break;case"onPointerLeaveCapture":this.disablePointerEvents||(e.onPointerLeaveCapture=v((0,s.S)(r))),e.onMouseLeaveCapture=g((0,s.S)(r)),t=!0;break;case"onPointerCancel":this.disablePointerEvents||(e.onPointerCancel=v((0,s.S)(r))),e.onTouchCancel=m((0,s.S)(r)),t=!0;break;case"onPointerCancelCapture":this.disablePointerEvents||(e.onPointerCancelCapture=v((0,s.S)(r))),e.onTouchCancelCapture=m((0,s.S)(r)),t=!0;break;case"onRootPointerDown":case"onRootPointerDownCapture":e.onTouchStart=e.onTouchStart||y,this.disablePointerEvents||(e.onPointerDown=e.onPointerDown||y),e.onMouseDown=e.onMouseDown||y;break;case"onRootPointerMove":case"onRootPointerMoveCapture":e.onTouchMove=e.onTouchMove||y,this.disablePointerEvents||(e.onPointerMove=e.onPointerMove||y),e.onMouseMove=e.onMouseMove||y;break;case"onRootPointerUp":case"onRootPointerUpCapture":e.onTouchEnd=e.onTouchEnd||y,this.disablePointerEvents||(e.onPointerUp=e.onPointerUp||y),e.onMouseUp=e.onMouseUp||y;break;case"onRootPointerEnter":case"onRootPointerEnterCapture":this.disablePointerEvents||(e.onPointerEnter=e.onPointerEnter||y),e.onMouseEnter=e.onMouseEnter||y;break;case"onRootPointerLeave":case"onRootPointerLeaveCapture":this.disablePointerEvents||(e.onPointerLeave=e.onPointerLeave||y),e.onMouseLeave=e.onMouseLeave||y;break;case"onRootPointerCancel":case"onRootPointerCancelCapture":this.disablePointerEvents||(e.onPointerCancel=e.onPointerCancel||y),e.onTouchCancel=e.onTouchCancel||y}})),!t)return i.createElement("div",(0,o.Z)({ref:this._handleRef},e),this.props.children);const n=i.Children.only(this.props.children);return e.ref=this._handleRef,(0,a.kG)(!n.ref,"PRC requires the child element to not have a `ref` assigned. Consider inserting a new `
` in between."),i.cloneElement(n,e)}}},11010:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(22122),r=n(67294),i=n(94184),a=n.n(i),s=(n(44364),n(94505)),l=n(27435),c=n.n(l);const u=r.forwardRef((function(e,t){const{selected:n,disabled:i}=e,l=a()(c().root,n&&c().isActive,i&&c().isDisabled,"string"==typeof e.className&&e.className,"PSPDFKit-Toolbar-Button",n&&"PSPDFKit-Toolbar-Button-active",i&&"PSPDFKit-Toolbar-Button-disabled");return r.createElement(s.Z,(0,o.Z)({},e,{className:l,iconClassName:"PSPDFKit-Toolbar-Button-Icon",ref:t,itemComponentProps:e.itemComponentProps}))}))},98013:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>Ie,k3:()=>Ce});var o=n(84121),r=n(67294),i=n(35369),a=n(94184),s=n.n(a),l=n(30845),c=n(76154),u=n(50974),d=n(25915),p=n(30667),f=n(67366),h=n(7844),m=n(22122),g=n(67665),v=n(41756),y=n(26353),b=n(84013),w=n(47710),S=n(63738),E=n(58924),P=n(93628),x=n.n(P),D=n(60964),C=n.n(D),k=n(11010),A=n(23477),O=n.n(A),T=n(77973),I=n(3219),F=n(34573),M=n(11521),_=n.n(M),R=n(13448);function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function L(e){for(var t=1;tnull===e?"":`${e.type} ${e.mode}`,stateReducer:z,environment:e.frameWindow},(c=>{let{getToggleButtonProps:u,getMenuProps:d,getItemProps:p,isOpen:f,highlightedIndex:h,setHighlightedIndex:v}=c,S=!1;const P=d({onMouseDown:()=>{S=!0},onTouchStart:()=>{S=!0}},{suppressRefError:!0}),D=u(),A="down"===e.caretDirection;return r.createElement("div",{className:s()(f&&"PSPDFKit-Input-Dropdown-open")},r.createElement("div",(0,m.Z)({ref:l},L(L({},D),e.disabled?{onClick:null}:null),{onBlur:function(e){if(S&&(S=!1,e.nativeEvent.preventDownshiftDefault=!0,l.current)){const e=l.current.querySelector("button");e&&e.focus()}D.onBlur(e)}}),r.createElement(k.Z,{type:"layout-config",selected:f,title:a(Z.pageLayout),icon:e.icon,className:s()(O().toolbarButton,"PSPDFKit-Toolbar-Button-Layout-Config",e.className),onPress:e=>{e.target.focus&&e.target.focus(),f||t((0,F.fz)())},disabled:i})),r.createElement(g.m,null,r.createElement(b.Z,null,f&&r.createElement(y.Z,{timeout:{enter:window["PSPDFKit-disable-animations"]?0:240,exit:window["PSPDFKit-disable-animations"]?0:80},classNames:{enter:s()(_().scaleInEnter,{[_().scaleInEnterTop]:A,[_().scaleInEnterBottom]:!A}),enterActive:_().scaleInEnterActive,exit:s()(_().scaleInExit,{[_().scaleInExitTop]:A,[_().scaleInExitBottom]:!A}),exitActive:s()(_().scaleInExitActive,{[_().scaleInExitActiveTop]:A,[_().scaleInExitActiveBottom]:!A})}},r.createElement(E.Z,{referenceElement:l.current,horizontalAlignment:"center"},r.createElement("div",(0,m.Z)({},P,{className:s()(x().root,C().dropdownMenu,"PSPDFKit-Dropdown-Layout-Config",{[C().dropdownMenuUp]:!A}),style:{padding:0},onMouseLeave:()=>v(null)}),r.createElement("table",{className:s()(C().table,"PSPDFKit-Layout-Config")},r.createElement("tbody",null,r.createElement("tr",null,r.createElement("td",{className:"PSPDFKit-Layout-Config-Label"},a(Z.pageMode)),r.createElement("td",{style:{textAlign:"right"},className:"PSPDFKit-Layout-Config-Options"},r.createElement(B,{itemProps:p({item:j[0]}),isActive:n===T.X.SINGLE,isHighlighted:0===h,type:T.X.SINGLE,className:"PSPDFKit-Layout-Config-Option-Layout-Mode-Single",title:a(Z.pageModeSingle)}),r.createElement(B,{itemProps:p({item:j[1]}),isActive:n===T.X.DOUBLE,isHighlighted:1===h,type:T.X.DOUBLE,className:"PSPDFKit-Layout-Config-Option-Layout-Mode-Double",title:a(Z.pageModeDouble)}),r.createElement(B,{itemProps:p({item:j[2]}),isActive:n===T.X.AUTO,isHighlighted:2===h,type:T.X.AUTO,className:"PSPDFKit-Layout-Config-Option-Layout-Mode-Auto",title:a(Z.pageModeAutomatic)}))),r.createElement("tr",null,r.createElement("td",{className:"PSPDFKit-Layout-Config-Label"},a(Z.pageTransition)),r.createElement("td",{style:{textAlign:"right"},className:"PSPDFKit-Layout-Config-Options"},r.createElement(B,{itemProps:p({item:j[3]}),isActive:o===w.G.CONTINUOUS,isHighlighted:3===h,type:w.G.CONTINUOUS,className:"PSPDFKit-Layout-Config-Option-Scroll-Mode-Continuous",title:a(Z.pageTransitionContinuous)}),r.createElement(B,{itemProps:p({item:j[4]}),isActive:o===w.G.PER_SPREAD,isHighlighted:4===h,type:"single",className:"PSPDFKit-Layout-Config-Option-Scroll-Mode-Per-Spread",title:a(Z.pageTransitionJump)}))),r.createElement("tr",null,r.createElement("td",{className:"PSPDFKit-Layout-Config-Label"},a(Z.pageRotation)),r.createElement("td",{style:{textAlign:"right"},className:"PSPDFKit-Layout-Config-Options"},r.createElement(B,{itemProps:p({item:j[5]}),type:"view_rotate_left",title:a(Z.pageRotationLeft),className:"PSPDFKit-Layout-Config-Option-Page-Rotation-Left",isHighlighted:5===h,isActive:!1}),r.createElement(B,{itemProps:p({item:j[6]}),type:"view_rotate_right",title:a(Z.pageRotationRight),className:"PSPDFKit-Layout-Config-Option-Page-Rotation-Right",isHighlighted:6===h,isActive:!1})))))))))),!f&&r.createElement("div",P),r.createElement(g.m,null,r.createElement(b.Z,null,f&&r.createElement(y.Z,{timeout:{enter:window["PSPDFKit-disable-animations"]?0:240,exit:window["PSPDFKit-disable-animations"]?0:80},classNames:{enter:s()(_().scaleInEnter,{[_().scaleInEnterTop]:A,[_().scaleInEnterBottom]:!A}),enterActive:_().scaleInEnterActive,exit:s()(_().scaleInExit,{[_().scaleInExitTop]:A,[_().scaleInExitBottom]:!A}),exitActive:s()(_().scaleInExitActive,{[_().scaleInExitActiveTop]:A,[_().scaleInExitActiveBottom]:!A})}},r.createElement(E.Z,{referenceElement:l.current,horizontalAlignment:"center"},r.createElement(r.Fragment,null,r.createElement("div",{className:s()(C().arrow,{[C().arrowUp]:!A})},r.createElement("div",{className:s()({[C().arrowFill]:A,[C().arrowFillUp]:!A})}))))))))}))}));const Z=(0,c.vU)({pageLayout:{id:"pageLayout",defaultMessage:"Page Layout",description:'Button to open the "change page layout" menu'},pageMode:{id:"pageMode",defaultMessage:"Page Mode",description:"Label for the page mode configuration"},pageModeSingle:{id:"pageModeSingle",defaultMessage:"Single",description:"Single page mode"},pageModeDouble:{id:"pageModeDouble",defaultMessage:"Double",description:"Double page mode"},pageModeAutomatic:{id:"pageModeAutomatic",defaultMessage:"Automatic",description:"Automatic page mode"},pageTransition:{id:"pageTransition",defaultMessage:"Page Transition",description:"Label for the page transition mode"},pageTransitionContinuous:{id:"pageTransitionContinuous",defaultMessage:"Continuous",description:"Continuous page transition mode"},pageTransitionJump:{id:"pageTransitionJump",defaultMessage:"Jump",description:"Jump-ing page transition mode (one page at the time)"},pageRotation:{id:"pageRotation",defaultMessage:"Page Rotation",description:"Label for the page rotation mode (left, right)"},pageRotationLeft:{id:"pageRotationLeft",defaultMessage:"Rotate Left",description:"Button to rotate the page to the left of 90°"},pageRotationRight:{id:"pageRotationRight",defaultMessage:"Rotate Right",description:"Button to rotate the page to the right of 90°"}});var U=n(13540),V=n(36105),G=n.n(V);const W=e=>{["-","+",".","e","E"].some((t=>e.key===t))&&e.preventDefault()},q=e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},H=e=>{e.currentTarget.select()},$=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{withParens:!1};return t=>r.createElement("div",{className:G().desktop},e.withParens&&"(",t.map(((e,t)=>r.createElement("span",{key:t},e))),e.withParens&&")")};const Y=(0,c.XN)((function(e){const t=e.pages.get(e.currentPageNumber-1);(0,u.kG)(null!=t,`Couldn't get page number ${e.currentPageNumber}`);const o=r.useMemo((()=>e.pages.some((e=>e.pageLabel!==(e.pageIndex+1).toString()))),[e.pages]),[i,a]=r.useState(null==t?void 0:t.pageLabel);r.useEffect((()=>{a(null==t?void 0:t.pageLabel)}),[null==t?void 0:t.pageLabel]);const l=n=>{if(o){const t=e.pages.findIndex((e=>e.pageLabel===n));if(t>=0&&!e.readOnly)return void e.dispatch((0,I.YA)(t))}const r=parseInt(n);1<=r&&r<=e.totalPages&&!e.readOnly?e.dispatch((0,I.YA)(r-1)):a(t.pageLabel)},{formatMessage:d}=e.intl,p=s()({"PSPDFKit-Page-Indicator-Prev":!0,[G().prev]:!0,"PSPDFKit-Page-Indicator-Prev-disabled":1===e.currentPageNumber}),f=s()({"PSPDFKit-Page-Indicator-Next":!0,[G().next]:!0,"PSPDFKit-Page-Indicator-Next-disabled":e.currentPageNumber===e.totalPages}),h=r.createElement("div",{className:G().control},r.createElement("button",{className:p,title:d(X.prevPage),onClick:()=>e.dispatch((0,I.IT)()),disabled:1===e.currentPageNumber||e.readOnly},r.createElement(U.Z,{src:n(28069),className:G().icon})),r.createElement("label",{className:G().inputLabel,htmlFor:G().input},d(X.goToPage)),r.createElement("input",(0,m.Z)({id:G().input,type:o?"text":"number",value:i,className:`PSPDFKit-Page-Indicator-Input ${G().input}`,onMouseDown:q,onFocus:H,onChange:t=>{e.readOnly||a(t.currentTarget.value)},onBlur:e=>{l(e.currentTarget.value)},onKeyPress:e=>{"Enter"===e.key&&l(e.currentTarget.value)},disabled:e.readOnly},o?{}:{min:1,max:e.totalPages,onKeyDown:W,pattern:"[0-9]"})),r.createElement("button",{className:f,onClick:()=>e.dispatch((0,I.fz)()),title:d(X.nextPage),disabled:e.currentPageNumber===e.totalPages||e.readOnly},r.createElement(U.Z,{src:n(14341),className:G().icon})));return r.createElement("div",{className:`PSPDFKit-Page-Indicator ${G().root}`},o?r.createElement(r.Fragment,null,r.createElement(c._H,{id:"pageX",defaultMessage:"Page {arg0}",description:"Page indicator prefix",values:{arg0:h},children:$()}),r.createElement(c._H,{id:"XofY",defaultMessage:"{arg0} of {arg1}",description:"Page indicator label",values:{arg0:e.currentPageNumber,arg1:e.totalPages},children:$({withParens:!0})})):r.createElement(c._H,{id:"pageXofY",defaultMessage:"Page {arg0} of {arg1}",description:"Page indicator control. arg0 is an interactive widget to select pages.",values:{arg0:h,arg1:e.totalPages},children:$()}),r.createElement("div",{className:G().mobile},r.createElement("label",{className:G().label},r.createElement("strong",null,e.currentPageNumber)," ","/"," ",e.totalPages)))})),X=(0,c.vU)({prevPage:{id:"prevPage",defaultMessage:"Previous Page",description:"Button to go to the previous page"},nextPage:{id:"nextPage",defaultMessage:"Next Page",description:"Button to go to the next page"},goToPage:{id:"goToPage",defaultMessage:"Go to Page",description:"label for the go to page selector"}}),J=(0,f.$j)((e=>({currentPageNumber:e.viewportState.currentPageIndex+1})))(Y);var Q=n(11378),ee=n(44706),te=n(84747),ne=n(82481),oe=n(18146),re=n(3845),ie=n(38151),ae=n(69939),se=n(51333),le=n(77528),ce=n(25644),ue=n(70006),de=n(36095);function pe(e,t){const n=document.createElement("a");n.href=e,n.style.display="none",n.download=t,n.setAttribute("download",t);const o=document.body;return o?(o.appendChild(n),n.click(),()=>{const e=document.body;e&&e.removeChild(n)}):()=>{}}var fe=n(97528),he=n(20792),me=n(19702),ge=n(28098),ve=n(67628),ye=n(89e3),be=n(35129),we=n(92234),Se=n(2270),Ee=n(16126),Pe=n(96114);function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function De(e){for(var t=1;t{const{interactionMode:e,dispatch:t}=this.props;t((0,F.fz)()),e===he.A.PAN?t((0,I.Yr)()):t((0,I.vc)())})),(0,o.Z)(this,"handleFormDesignerTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,F.fz)()),(0,Ee.fF)(e)?t((0,Pe.h4)()):t((0,Pe.el)())})),(0,o.Z)(this,"_handleZoomOutTap",(()=>{this.props.dispatch((0,I.vG)())})),(0,o.Z)(this,"_handleZoomInTap",(()=>{this.props.dispatch((0,I.kr)())})),(0,o.Z)(this,"_handleUndoTap",(()=>{this.props.canUndo&&this.props.dispatch((0,we.Yw)())})),(0,o.Z)(this,"_handleRedoTap",(()=>{this.props.canRedo&&this.props.dispatch((0,we.KX)())})),(0,o.Z)(this,"_handleMarqueeZoomTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,F.fz)()),e===he.A.MARQUEE_ZOOM?t((0,S.si)()):t((0,S.xF)())})),(0,o.Z)(this,"_handleFitToWidthTap",(()=>{this.props.dispatch((0,I.du)())})),(0,o.Z)(this,"_handleFitToBothTap",(()=>{this.props.dispatch((0,I.lO)())})),(0,o.Z)(this,"handleCalloutTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.CALLOUT&&n===this.props.currentItemPreset?(r((0,ae.Ds)(null)),r((0,S.k4)())):(r((0,ae.Ds)(n)),r((0,S.Lt)()))})),(0,o.Z)(this,"_handleTextTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.TEXT&&n===this.props.currentItemPreset?(r((0,ae.Ds)(null)),r((0,S.k4)())):(r((0,ae.Ds)(n)),r((0,S.DU)()))})),(0,o.Z)(this,"_handleTextKeyPress",(()=>{const{dispatch:e}=this.props;e((0,F.fz)()),e((0,ae.RK)())})),(0,o.Z)(this,"_handleTextHighlighterTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.TEXT_HIGHLIGHTER&&n===this.props.currentItemPreset?r((0,S.lC)()):r((0,S.d5)(n))})),(0,o.Z)(this,"_handleLinkTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.LINK&&n===this.props.currentItemPreset?(r((0,ae.Ds)(null)),r((0,S.UU)())):(r((0,ae.Ds)(n)),r((0,S.Jn)()))})),(0,o.Z)(this,"_handleInkTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.INK&&n===this.props.currentItemPreset?(r((0,ae.Ds)(null)),r((0,S.s3)())):(r((0,ae.Ds)(n)),r((0,S.P4)()))})),(0,o.Z)(this,"_handleMeasurementTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.MEASUREMENT&&n===this.props.currentItemPreset?(r((0,ae.Ds)(null)),r((0,S.hS)())):(r((0,ae.Ds)(n)),r((0,S.BR)()))})),(0,o.Z)(this,"_handleInkEraserTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.INK_ERASER?(r((0,ae.Ds)(null)),r((0,S.VU)())):(r((0,ae.Ds)(n)),r((0,S.Ug)()))})),(0,o.Z)(this,"_handleLineTap",((e,t,n)=>this._handleShapeTap(ne.o9,he.A.SHAPE_LINE,n))),(0,o.Z)(this,"_handleRectangleTap",((e,t,n)=>this._handleShapeTap(ne.b3,he.A.SHAPE_RECTANGLE,n))),(0,o.Z)(this,"_handleEllipseTap",((e,t,n)=>this._handleShapeTap(ne.Xs,he.A.SHAPE_ELLIPSE,n))),(0,o.Z)(this,"_handlePolygonTap",((e,t,n)=>this._handleShapeTap(ne.Hi,he.A.SHAPE_POLYGON,n))),(0,o.Z)(this,"_handlePolylineTap",((e,t,n)=>this._handleShapeTap(ne.om,he.A.SHAPE_POLYLINE,n))),(0,o.Z)(this,"_handleShapeTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===t&&n===this.props.currentItemPreset?(r((0,ae.Ds)(null)),r((0,S.Ce)())):(r((0,ae.Ds)(n)),r((0,S.yg)(e,t)))})),(0,o.Z)(this,"_handleNoteTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.NOTE&&n===this.props.currentItemPreset?(r((0,ae.Ds)(null)),r((0,S.dp)())):(r((0,ae.Ds)(n)),r((0,S.i9)()))})),(0,o.Z)(this,"_handleNoteKeyPress",(()=>{const{dispatch:e}=this.props;e((0,F.fz)()),e((0,ae.XG)())})),(0,o.Z)(this,"_handleCommentMarkerTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,F.fz)()),e===he.A.COMMENT_MARKER?t((0,S.tr)()):t((0,S.k6)())})),(0,o.Z)(this,"_handleCommentMarkerKeyPress",(()=>{const{dispatch:e}=this.props;e((0,F.fz)()),e((0,se.GH)())})),(0,o.Z)(this,"_handleSignatureTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.INK_SIGNATURE||o===he.A.SIGNATURE?(r((0,ae.Ds)(null)),r((0,S.MV)())):(r((0,ae.Ds)(n)),r((0,S.Cc)()))})),(0,o.Z)(this,"_handleStampTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,F.fz)()),e===he.A.STAMP_PICKER?t((0,S.pM)()):t((0,S.C4)())})),(0,o.Z)(this,"_handleRedactRectangleTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.REDACT_SHAPE_RECTANGLE&&n===this.props.currentItemPreset?r((0,S.jP)()):r((0,S.t)(n))})),(0,o.Z)(this,"_handleRedactTextHighlighterTap",((e,t,n)=>{const{interactionMode:o,dispatch:r}=this.props;r((0,F.fz)()),o===he.A.REDACT_TEXT_HIGHLIGHTER&&n===this.props.currentItemPreset?r((0,S.TR)()):r((0,S.aw)(n))})),(0,o.Z)(this,"_handleResponsiveGroupTap",(e=>{this.setState({activeResponsiveGroup:e}),e&&this.setState({prevActiveGroup:e})})),(0,o.Z)(this,"_handleAnnotateResponsiveGroupTap",(()=>this._handleResponsiveGroupTap("annotate"))),(0,o.Z)(this,"_handlePrintTap",(()=>{this.props.printingEnabled&&this.props.dispatch((0,ce.S0)())})),(0,o.Z)(this,"_handleSearchTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,F.fz)()),e===he.A.SEARCH?t((0,ue.ct)()):t((0,ue.Xe)())})),(0,o.Z)(this,"handleCropTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;t((0,F.fz)()),e===he.A.DOCUMENT_CROP?t((0,S.Cn)()):t((0,S.rL)())})),(0,o.Z)(this,"handleDocumentComparisonTap",(()=>{const{currentDocumentComparisonMode:e,dispatch:t}=this.props;t((0,F.fz)()),t(e?(0,S.cz)(null):(0,S.cz)(Se.s))})),(0,o.Z)(this,"_handleExportPDFTap",(async()=>{this.props.exportEnabled&&this.props.dispatch(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return async(t,n)=>{const{backend:o}=n();(0,u.kG)(o);const r=HTMLAnchorElement.prototype.hasOwnProperty("download"),i=await o.exportPDF(e),a=i.mimeType||"application/pdf",s=i.extension||"pdf",l=new Blob([i],{type:a}),c=`${(await o.documentInfo()).title||"document"}.${s}`;let d=()=>{};if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(l,c);else if(r){const e=window.URL.createObjectURL(l),t=pe(e,c);d=()=>{t(),window.URL.revokeObjectURL(e)}}else{const e=new FileReader;e.onloadend=()=>{d=pe(e.result,s)},e.readAsDataURL(l)}window.setTimeout(d,1e3)}}())})),(0,o.Z)(this,"_handleDebugTap",(()=>{this.props.dispatch((0,S.BB)())})),(0,o.Z)(this,"_handleThumbnailsSidebarTap",(()=>{const{sidebarMode:e,dispatch:t}=this.props;e===me.f.THUMBNAILS?t((0,S.mu)()):t((0,S.el)())})),(0,o.Z)(this,"_handleDocumentOutlineSidebarTap",(()=>{const{sidebarMode:e,dispatch:t}=this.props;e===me.f.DOCUMENT_OUTLINE?t((0,S.mu)()):t((0,S.EJ)())})),(0,o.Z)(this,"_handleDocumentEditorTap",(()=>{const{dispatch:e}=this.props;e((0,S.lV)())})),(0,o.Z)(this,"_handleAnnotationsSidebarTap",(()=>{const{sidebarMode:e,dispatch:t}=this.props;e===me.f.ANNOTATIONS?t((0,S.mu)()):t((0,S.ze)())})),(0,o.Z)(this,"_handleBookmarksSidebarTap",(()=>{const{sidebarMode:e,dispatch:t}=this.props;e===me.f.BOOKMARKS?t((0,S.mu)()):t((0,S.Hf)())})),(0,o.Z)(this,"_handleImageTap",(()=>{const e={annotations:(0,i.aV)([new ne.sK({pageIndex:this.state.currentPageIndex})]),reason:re.f.SELECT_START};this.props.eventEmitter.emit("annotations.willChange",e);const t=this.imagePickerRef&&this.imagePickerRef.current;if(t)try{const{formatMessage:e}=this.props.intl;this.props.dispatch((0,S.iJ)(e(Fe.selectAFileForImage))),t.removeAttribute("aria-hidden"),t.click()}catch(e){t.setAttribute("aria-hidden","true");const n={annotations:(0,i.aV)(),reason:re.f.SELECT_END};this.props.eventEmitter.emit("annotations.willChange",n)}})),(0,o.Z)(this,"_handleImageSelect",(e=>{if(e.target.setAttribute("aria-hidden","true"),e.target.files[0]){this.props.dispatch((0,F.fz)());{this.props.dispatch((0,ae.Ds)("image")),this.props.dispatch((0,ae.$e)(e.target.files[0]));const{formatMessage:t}=this.props.intl;this.props.dispatch((0,S.iJ)(t(Fe.newAnnotationCreated,{arg0:"image"})))}e.target.value=""}})),(0,o.Z)(this,"_handleResponsiveGroupClose",(()=>{this.props.dispatch((0,F.fz)()),this._handleResponsiveGroupTap(null)})),(0,o.Z)(this,"_handleContentEditorTap",(()=>{const{interactionMode:e,dispatch:t,isContentEditorSessionDirty:n}=this.props;e===he.A.CONTENT_EDITOR?t(n?(0,ie.Yg)(!0):ie.u8):t(ie.gY)})),(0,o.Z)(this,"_handleMultiAnnotationsSelectionTap",(()=>{const{interactionMode:e,dispatch:t}=this.props;e===he.A.MULTI_ANNOTATIONS_SELECTION?t((0,S.FA)()):t((0,S.YF)())})),(0,o.Z)(this,"_getBuiltInDefaults",(0,l.Z)(((e,t,n,o,r,i,a,s,l,c,u,d,p,f,h,m,g,v)=>{const{formatMessage:y}=e,b=n===he.A.CONTENT_EDITOR;return{debug:{className:"",onPress:this._handleDebugTap,title:"Debug Info",forceHide:!t},image:{className:"PSPDFKit-Toolbar-Button-Image-Annotation",title:y(be.Z.imageAnnotation),forceHide:o(ne.sK),responsiveGroup:"annotate",preset:"image",onPress:this._handleImageTap,dropdownGroup:"image",disabled:b},stamp:{className:"PSPDFKit-Toolbar-Button-Stamp-Annotation",selected:n===he.A.STAMP_PICKER||n===he.A.STAMP_CUSTOM,onPress:this._handleStampTap,title:y(be.Z.stampAnnotation),forceHide:o(ne.GI),responsiveGroup:"annotate",preset:"stamp",dropdownGroup:"image",disabled:b},link:{className:"PSPDFKit-Toolbar-Button-Link-Annotation",selected:n===he.A.LINK&&"link"===this.state.lastSelectedToolbarItemType,onPress:this._handleLinkTap,title:y(be.Z.linkAnnotation),forceHide:o(ne.R1),responsiveGroup:"annotate",preset:"link",dropdownGroup:"image",disabled:b},ink:{className:"PSPDFKit-Toolbar-Button-Ink-Annotation",selected:n===he.A.INK&&"ink"===h,onPress:this._handleInkTap,title:y(be.Z.pen),forceHide:o(ne.Zc),responsiveGroup:"annotate",dropdownGroup:"ink",preset:"ink",disabled:b},"ink-eraser":{className:"PSPDFKit-Toolbar-Button-Ink-Eraser",selected:n===he.A.INK_ERASER&&"ink-eraser"===h,onPress:this._handleInkEraserTap,title:y(be.Z.eraser),forceHide:o(ne.Zc),responsiveGroup:"annotate",dropdownGroup:"ink",preset:"ink",disabled:b},highlighter:{className:"PSPDFKit-Toolbar-Button-Ink-Annotation PSPDFKit-Toolbar-Button-Variant-Highlighter",selected:n===he.A.INK&&"highlighter"===h,onPress:this._handleInkTap,title:y(be.Z.highlighter),forceHide:o(ne.Zc),responsiveGroup:"annotate",dropdownGroup:"ink",preset:"highlighter",disabled:b},"text-highlighter":{className:"PSPDFKit-Toolbar-Button-TextHighlighter-Annotation",selected:n===he.A.TEXT_HIGHLIGHTER&&"text-highlighter"===h,onPress:this._handleTextHighlighterTap,title:y(be.Z.textHighlighter),forceHide:o(ne.FV),responsiveGroup:"annotate",dropdownGroup:"ink",preset:"text-highlighter",disabled:b},line:{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Line-Annotation",selected:n===he.A.SHAPE_LINE&&"line"===h,onPress:this._handleLineTap,title:y(be.Z.lineAnnotation),forceHide:o(ne.o9),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"line",disabled:b},arrow:{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Line-Annotation PSPDFKit-Toolbar-Button-Variant-Arrow",selected:n===he.A.SHAPE_LINE&&"arrow"===h,onPress:this._handleLineTap,title:y(be.Z.arrow),forceHide:o(ne.o9),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"arrow",disabled:b},rectangle:{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Rectangle-Annotation",selected:n===he.A.SHAPE_RECTANGLE&&"rectangle"===h,onPress:this._handleRectangleTap,title:y(be.Z.rectangleAnnotation),forceHide:o(ne.b3),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"rectangle",disabled:b},"cloudy-rectangle":{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Rectangle-Annotation PSPDFKit-Toolbar-Button-Variant-CloudyRectangle",selected:n===he.A.SHAPE_RECTANGLE&&"cloudy-rectangle"===h,onPress:this._handleRectangleTap,title:y(be.Z.cloudyRectangleAnnotation),forceHide:o(ne.b3),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"cloudy-rectangle",disabled:b},"dashed-rectangle":{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Rectangle-Annotation PSPDFKit-Toolbar-Button-Variant-DashedRectangle",selected:n===he.A.SHAPE_RECTANGLE&&"dashed-rectangle"===h,onPress:this._handleRectangleTap,title:y(be.Z.dashedRectangleAnnotation),forceHide:o(ne.b3),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"dashed-rectangle",disabled:b},ellipse:{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Ellipse-Annotation",selected:n===he.A.SHAPE_ELLIPSE&&"ellipse"===h,onPress:this._handleEllipseTap,title:y(be.Z.ellipseAnnotation),forceHide:o(ne.Xs),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"ellipse",disabled:b},"cloudy-ellipse":{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Ellipse-Annotation PSPDFKit-Toolbar-Button-Variant-CloudyEllipse",selected:n===he.A.SHAPE_ELLIPSE&&"cloudy-ellipse"===h,onPress:this._handleEllipseTap,title:y(be.Z.cloudyEllipseAnnotation),forceHide:o(ne.Xs),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"cloudy-ellipse",disabled:b},"dashed-ellipse":{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Ellipse-Annotation PSPDFKit-Toolbar-Button-Variant-DashedEllipse",selected:n===he.A.SHAPE_ELLIPSE&&"dashed-ellipse"===h,onPress:this._handleEllipseTap,title:y(be.Z.dashedEllipseAnnotation),forceHide:o(ne.Xs),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"dashed-ellipse",disabled:b},polygon:{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Polygon-Annotation",selected:n===he.A.SHAPE_POLYGON&&"polygon"===h,onPress:this._handlePolygonTap,title:y(be.Z.polygonAnnotation),forceHide:o(ne.Hi),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"polygon",disabled:b},"cloudy-polygon":{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Polygon-Annotation PSPDFKit-Toolbar-Button-Variant-CloudyPolygon",selected:n===he.A.SHAPE_POLYGON&&"cloudy-polygon"===h,onPress:this._handlePolygonTap,title:Te("cloudy-",this.props.items)?y(be.Z.cloudAnnotation):y(be.Z.cloudyPolygonAnnotation),forceHide:o(ne.Hi),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"cloudy-polygon",disabled:b},"dashed-polygon":{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Polygon-Annotation PSPDFKit-Toolbar-Button-Variant-DashedPolygon",selected:n===he.A.SHAPE_POLYGON&&"dashed-polygon"===h,onPress:this._handlePolygonTap,title:y(be.Z.dashedPolygonAnnotation),forceHide:o(ne.Hi),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"dashed-polygon",disabled:b},polyline:{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Polyline-Annotation",selected:n===he.A.SHAPE_POLYLINE&&"polyline"===h,onPress:this._handlePolylineTap,title:y(be.Z.polylineAnnotation),forceHide:o(ne.om),responsiveGroup:"annotate",dropdownGroup:"shapes",preset:"polyline",disabled:b},note:{className:"PSPDFKit-Toolbar-Button-Note-Annotation",selected:n===he.A.NOTE&&"note"===h,onPress:this._handleNoteTap,onKeyPress:this._handleNoteKeyPress,title:y(be.Z.noteAnnotation),forceHide:o(ne.Qi),responsiveGroup:"annotate",preset:"note",disabled:b},comment:{className:"PSPDFKit-Toolbar-Button-Comment-Marker-Annotation",selected:n===he.A.COMMENT_MARKER,title:y(be.Z.comment),onPress:this._handleCommentMarkerTap,onKeyPress:this._handleCommentMarkerKeyPress,forceHide:o(ne.Jn),responsiveGroup:"annotate",disabled:b},signature:{className:"PSPDFKit-Toolbar-Button-InkSignature-Annotation PSPDFKit-Toolbar-Button-Signature",selected:n===he.A.INK_SIGNATURE||n===he.A.SIGNATURE,onPress:this._handleSignatureTap,title:y(be.Z.sign),forceHide:s===ve.H.NONE||a||o(ne.Zc)&&s!==ve.H.ELECTRONIC_SIGNATURES,responsiveGroup:"annotate",preset:s===ve.H.ELECTRONIC_SIGNATURES?"es-signature":"ink-signature",disabled:b},"redact-text-highlighter":{className:"PSPDFKit-Toolbar-Button-RedactTextHighlighter-Annotation",selected:n===he.A.REDACT_TEXT_HIGHLIGHTER,onPress:this._handleRedactTextHighlighterTap,title:y(be.Z.textRedaction),forceHide:o(oe.Z),responsiveGroup:"annotate",dropdownGroup:"redaction",preset:"redaction",disabled:b},"redact-rectangle":{className:"PSPDFKit-Toolbar-Button-Redaction-Annotation PSPDFKit-Toolbar-Button-Rectangle-Redaction-Annotation",selected:n===he.A.REDACT_SHAPE_RECTANGLE,onPress:this._handleRedactRectangleTap,title:y(be.Z.areaRedaction),forceHide:o(oe.Z),responsiveGroup:"annotate",dropdownGroup:"redaction",preset:"redaction",disabled:b},"form-creator":{className:"PSPDFKit-Toolbar-Button-Form-Creator",selected:(0,Ee.fF)(n),onPress:this.handleFormDesignerTap,title:y(be.Z.formCreator),forceHide:o(ne.x_),disabled:b},pan:{className:"PSPDFKit-Toolbar-Button-Pan",selected:n===he.A.PAN,onPress:this._handlePanTap,title:y(Fe.panMode),forceHide:de.Ni,disabled:b},print:{className:"PSPDFKit-Toolbar-Button-Print",onPress:this._handlePrintTap,title:y(Fe.print),disabled:!l||b},"document-editor":{className:"PSPDFKit-Toolbar-Button-Document-Editor",onPress:this._handleDocumentEditorTap,title:y(be.Z.documentEditor),dropdownGroup:"editor",disabled:b},"document-crop":{className:"PSPDFKit-Toolbar-Button-Document-Crop",onPress:this.handleCropTap,title:y(be.Z.documentCrop),dropdownGroup:"editor",selected:n===he.A.DOCUMENT_CROP,disabled:b},"document-comparison":{className:"PSPDFKit-Toolbar-Button-Document-Comparison",onPress:this.handleDocumentComparisonTap,title:y(be.Z.documentComparison),dropdownGroup:"editor",forceHide:!r,selected:i,disabled:b},search:{className:"PSPDFKit-Toolbar-Button-Search",selected:n===he.A.SEARCH,onPress:this._handleSearchTap,title:y(be.Z.searchDocument),disabled:b},text:{className:"PSPDFKit-Toolbar-Button-Text-Annotation",selected:n===he.A.TEXT&&"text"===this.state.lastSelectedToolbarItemType,onPress:this._handleTextTap,onKeyPress:this._handleTextKeyPress,title:y(be.Z.textAnnotation),forceHide:o(ne.gd),dropdownGroup:"text",responsiveGroup:"annotate",preset:"text",disabled:b},callout:{className:"PSPDFKit-Toolbar-Button-Callout-Annotation",selected:n===he.A.CALLOUT&&"callout"===this.state.lastSelectedToolbarItemType,onPress:this.handleCalloutTap,title:y(be.Z.calloutAnnotation),forceHide:o(ne.gd),dropdownGroup:"text",responsiveGroup:"annotate",preset:"callout",disabled:b},"zoom-mode":De({mediaQueries:[de.Ni?`(min-width: ${fe.Ei.BREAKPOINT_MD_TOOLBAR}px)`:"all"]},u===ge.c.FIT_TO_VIEWPORT?{className:"PSPDFKit-Toolbar-Button-Fit-To-Width",onPress:this._handleFitToWidthTap,title:y(Fe.fitWidth),type:"fit-width",disabled:b}:{className:"PSPDFKit-Toolbar-Button-Fit-To-Page",onPress:this._handleFitToBothTap,title:y(Fe.fitPage),type:"fit-page",disabled:b}),"zoom-out":{className:"PSPDFKit-Toolbar-Button-Zoom-Out",disabled:p,onPress:this._handleZoomOutTap,title:y(Fe.zoomOut),mediaQueries:[de.Ni?`(min-width: ${fe.Ei.BREAKPOINT_MD_TOOLBAR}px)`:"all"]},"zoom-in":{className:"PSPDFKit-Toolbar-Button-Zoom-In",disabled:d,onPress:this._handleZoomInTap,title:y(Fe.zoomIn),mediaQueries:[de.Ni?`(min-width: ${fe.Ei.BREAKPOINT_MD_TOOLBAR}px)`:"all"]},undo:{className:"PSPDFKit-Toolbar-Button-Undo",disabled:!m||b,onPress:this._handleUndoTap,title:y(Fe.undo),forceHide:a,responsiveGroup:"annotate"},redo:{className:"PSPDFKit-Toolbar-Button-Redo",disabled:!g||b,onPress:this._handleRedoTap,title:y(Fe.redo),forceHide:a,responsiveGroup:"annotate"},"marquee-zoom":{className:"PSPDFKit-Toolbar-Button-Marquee-Zoom",selected:n===he.A.MARQUEE_ZOOM,onPress:this._handleMarqueeZoomTap,title:y(Fe.marqueeZoom),disabled:b},spacer:{},pager:{disabled:b},"layout-config":{mediaQueries:[`(min-width: ${fe.Ei.BREAKPOINT_SM_TOOLBAR+1}px)`],disabled:b},"multi-annotations-selection":{className:"PSPDFKit-Toolbar-Button-Multiple-Annotations-Selection",selected:n===he.A.MULTI_ANNOTATIONS_SELECTION,onPress:this._handleMultiAnnotationsSelectionTap,title:y(be.Z.multiAnnotationsSelection),disabled:!v||b},annotate:{className:"PSPDFKit-Toolbar-Button-Annotate",onPress:this._handleAnnotateResponsiveGroupTap,title:y(be.Z.annotations),forceHide:o(ne.q6),mediaQueries:[`(max-width: ${fe.Ei.BREAKPOINT_MD_TOOLBAR}px)`],disabled:b},measure:{className:"PSPDFKit-Toolbar-Button-Measurement-Annotation",selected:n===he.A.MEASUREMENT||n===he.A.DISTANCE||n===he.A.PERIMETER||n===he.A.RECTANGLE_AREA||n===he.A.POLYGON_AREA||n===he.A.ELLIPSE_AREA,onPress:this._handleMeasurementTap,title:y(be.Z.measurement),forceHide:o(ne.q6),responsiveGroup:"annotate",preset:"measurement",disabled:b},"responsive-group":{onPress:(e,t)=>this._handleResponsiveGroupTap(t),disabled:b},"sidebar-thumbnails":{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Thumbnails",title:y(Fe.thumbnails),onPress:this._handleThumbnailsSidebarTap,selected:f===me.f.THUMBNAILS,dropdownGroup:"sidebar",disabled:b},"sidebar-document-outline":{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Document-Outline",title:y(Fe.outline),onPress:this._handleDocumentOutlineSidebarTap,selected:f===me.f.DOCUMENT_OUTLINE,dropdownGroup:"sidebar",disabled:b},"sidebar-annotations":{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Annotations",title:y(be.Z.annotations),onPress:this._handleAnnotationsSidebarTap,selected:f===me.f.ANNOTATIONS,dropdownGroup:"sidebar",disabled:b},"sidebar-bookmarks":{className:"PSPDFKit-Toolbar-Button-Bookmarks PSPDFKit-Toolbar-Button-Sidebar-Bookmarks",title:y(be.Z.bookmarks),onPress:this._handleBookmarksSidebarTap,selected:f===me.f.BOOKMARKS,dropdownGroup:"sidebar",disabled:b},"export-pdf":{className:"PSPDFKit-Toolbar-Button-Export-PDF",title:y(be.Z.export),onPress:this._handleExportPDFTap,disabled:!c||b,selected:!1},"content-editor":{className:"PSPDFKit-Toolbar-Button-Content-Editor",onPress:this._handleContentEditorTap,title:y(be.Z.contentEditor),selected:n===he.A.CONTENT_EDITOR}}}))),(0,o.Z)(this,"_prepareToolbarItems",(0,l.Z)(((e,t,n,o,r,i,a,s,l,c,u,d,p,f,h,m,g,v,y,b,w,S)=>{const E=this._getBuiltInDefaults(e,t,n,r,i,a,o,s,l,c,u,d,p,f,y,b,w,S),P=a?h:(0,le.q1)(h,E,m),x=(0,le.DQ)(P,E),D=a?function(e){return e.filter((e=>Oe.includes(e.get("type"))))}(x):x,C=(0,le.Ut)((0,le.hJ)(D)),k=(0,le.Ut)(D,!0,g);return{items:C,groupedItems:this.getDropdownGroupGroupedItems(C),groupedResponsiveItems:this.getDropdownGroupGroupedItems(k)}}))),(0,o.Z)(this,"_onMediaQueryUpdate",(()=>{var e;null!==(e=this.props.frameWindow)&&void 0!==e&&e.matchMedia("print").matches||this.setState({mediaQueryDidUpdate:{}})})),(0,o.Z)(this,"_updateMediaQueryListener",(()=>{const{intl:e,debugMode:t,interactionMode:n,isAnnotationTypeReadOnly:o,isDocumentComparisonAvailable:r,currentDocumentComparisonMode:i,isDocumentReadOnly:a,signatureFeatureAvailability:s,printingEnabled:l,exportEnabled:c,zoomMode:u,maxZoomReached:d,minZoomReached:p,sidebarMode:f,items:h,canUndo:m,canRedo:g,isMultiSelectionEnabled:v}=this.props,y=this._getBuiltInDefaults(e,t,n,o,r,!!i,a,s,l,c,u,d,p,f,this.state.lastSelectedToolbarItemType,m,g,v),b=(0,le.se)(h,y);b.forEach((e=>{var t;if(this._mediaListeners.hasOwnProperty(e))return;const n=null===(t=this.props.frameWindow)||void 0===t?void 0:t.matchMedia(e);null==n||n.addListener(this._onMediaQueryUpdate),this._mediaListeners[e]=n})),Object.keys(this._mediaListeners).filter((e=>!b.includes(e))).forEach((e=>{this._mediaListeners[e].removeListener(this._onMediaQueryUpdate),delete this._mediaListeners[e]}))})),(0,o.Z)(this,"_handleKeyPress",(e=>{e.keyCode===p.zz&&this.state.activeResponsiveGroup&&this._handleResponsiveGroupClose()})),(0,o.Z)(this,"_handleOnPress",(function(t,n,o,r,i){let a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6?arguments[6]:void 0;(0,le.Li)(r)&&e.setState({lastSelectedToolbarItemType:r}),(0,f.dC)((()=>{a&&s?s(n,o,i,a):t(n,o,i,a),e.props.dispatch((0,S.qB)(a))}))})),(0,o.Z)(this,"DropdownItemComponent",r.forwardRef(((e,t)=>{if(!e.item)return null;const n=e.item.item,o=e.item.index,{isSelectedItem:r,state:i,itemComponentProps:a}=e;return Ae(this.props,De(De({},n),{},{className:s()(n.className,{[O().dropdownButtonSelected]:null==i?void 0:i.includes("selected"),[O().dropdownButtonDisabled]:null==i?void 0:i.includes("disabled"),[O().dropdownButtonFocused]:null==i?void 0:i.includes("focused")}),onPress:r?n.onPress:void 0}),o,this._handleOnPress,!r,t,a)}))),(0,o.Z)(this,"_renderGroupedItems",(e=>{let{groupedItems:t,classNamePartial:n}=e;return t.map(((e,t)=>Array.isArray(e)?e.length<2?Ae(this.props,e[0].item,e[0].index,this._handleOnPress,!1,0===t?this.itemToFocusRef:void 0):r.createElement(te.Z,{frameWindow:this.props.frameWindow,items:e,disabled:e.every((e=>e.item.disabled)),ItemComponent:this.DropdownItemComponent,role:"menu",onSelect:(t,n)=>{const{onPress:o,id:r,type:i,preset:a,disabled:s}=n.item;if(!s&&(e.forEach((e=>{delete e.item.selected})),o)){const e="keydown"===t.type;this._handleOnPress(o,t,r,i,a,e)}},isActive:e.some((e=>e.item.selected)),key:`toolbar-items-group-${t}-${n}`,caretDirection:this.props.toolbarPlacement===ye.p.TOP?"down":"up",ref:0===t?this.itemToFocusRef:void 0}):Ae(this.props,e.item,e.index,this._handleOnPress,!1,0===t||e.item.type===this.state.prevActiveGroup?this.itemToFocusRef:void 0)))}))}static getDerivedStateFromProps(e,t){let n=null;if(e.interactionMode&&e.interactionMode in le.FO){const t=le.FO[e.interactionMode];Array.isArray(t)?n=e.currentItemPreset&&t.includes(e.currentItemPreset)?e.currentItemPreset:t[0]:"string"==typeof t&&(n=t)}return n!==t.lastSelectedToolbarItemType?{lastSelectedToolbarItemType:n,currentPageIndex:e.currentPageIndex}:{currentPageIndex:e.currentPageIndex}}getDropdownGroupGroupedItems(e){let t=(0,i.aV)();const n={};return e.forEach(((e,o)=>{const r=(0,i.D5)({index:o,item:e}),a=e.get("dropdownGroup");a?void 0!==n[a]?t=t.update(n[a],(e=>e instanceof i.aV?e.push(r):e)):(n[a]=t.size,t=t.push((0,i.aV)([r]))):t=t.push(r)})),t.toJS()}componentDidUpdate(e,t){this._updateMediaQueryListener();const n=t&&!t.activeResponsiveGroup&&this.state.activeResponsiveGroup,o=t&&t.activeResponsiveGroup&&!this.state.activeResponsiveGroup;(n||o)&&this.itemToFocusRef.current&&this.itemToFocusRef.current.focus()}componentDidMount(){this._updateMediaQueryListener()}componentWillUnmount(){Object.keys(this._mediaListeners).forEach((e=>{this._mediaListeners[e].removeListener(this._onMediaQueryUpdate),delete this._mediaListeners[e]}))}shouldComponentUpdate(e,t){const n=De(De({},e),{},{currentPageIndex:this.props.currentPageIndex}),o=De(De({},t),{},{currentPageIndex:this.state.currentPageIndex});return h.O.bind(this)(n,o)}render(){const{props:e}=this,{intl:t,debugMode:n,interactionMode:o,isDocumentReadOnly:i,isAnnotationTypeReadOnly:a,isDocumentComparisonAvailable:s,currentDocumentComparisonMode:l,signatureFeatureAvailability:c,printingEnabled:u,exportEnabled:p,zoomMode:f,maxZoomReached:h,minZoomReached:m,sidebarMode:g,items:v,frameWindow:y,toolbarPlacement:b,canUndo:w,canRedo:S,isMultiSelectionEnabled:E}=e,{formatMessage:P}=t,{activeResponsiveGroup:x,mediaQueryDidUpdate:D,lastSelectedToolbarItemType:C}=this.state,{groupedItems:k,groupedResponsiveItems:A}=this._prepareToolbarItems(t,n,o,i,a,s,!!l,c,u,p,f,h,m,g,v,y,x,D,C,w,S,E),T=x&&A.length,I=T?this._renderGroupedItems({groupedItems:A,classNamePartial:"groupedResponsiveItems"}):this._renderGroupedItems({groupedItems:k,classNamePartial:"groupedItems"}),F=T&&k.filter((e=>!Array.isArray(e))).find((e=>e.item.id===x)),M=F&&F.item?F.item.title:void 0,_=v.some((e=>"image"===e.get("type")));return r.createElement("div",{className:`PSPDFKit-Toolbar ${O().root}`,onKeyDown:this._handleKeyPress},T?null:I,r.createElement(ee.Z,{onClose:this._handleResponsiveGroupClose,isPrimary:!0,position:b===ye.p.TOP?"top":"bottom",accessibilityLabel:M},T?I:null),_&&r.createElement(d.TX,{tag:"div"},r.createElement("input",{ref:this.imagePickerRef,"aria-label":P(Fe.selectImage),"aria-hidden":!0,type:"file",accept:"image/png, image/jpeg, application/pdf",onChange:this._handleImageSelect,tabIndex:-1})))}}function Ae(e,t,n,o,i,a,l){switch(t.type){case"spacer":return r.createElement("div",{style:{flex:1},key:`spacer-${n}`});case"pager":return r.createElement(J,{dispatch:e.dispatch,pages:e.pages,totalPages:e.totalPages,key:e.currentPageIndex.toString(),readOnly:e.scrollMode===w.G.DISABLED});case"layout-config":var c;return r.createElement(K,{dispatch:e.dispatch,key:"layout-config",className:t.className,icon:t.icon,layoutMode:e.layoutMode,scrollMode:e.scrollMode,caretDirection:e.toolbarPlacement===ye.p.TOP?"down":"up",frameWindow:e.frameWindow,disabled:null!==(c=t.disabled)&&void 0!==c&&c});default:{const{type:e,id:c,className:u,disabled:d,selected:p,icon:f,title:h,onPress:m,preset:g,onKeyPress:v}=t;return"custom"===e&&t.node?r.createElement(Q.Z,{node:t.node,className:u,onPress:m?t=>o(m,t,c,e,g):void 0,title:h,disabled:d,selected:p,ref:a,itemComponentProps:l,key:`custom-node-${n}`}):r.createElement(k.Z,{type:e,className:s()(u,i?O().dropdownButton:O().toolbarButton),disabled:d,selected:p,icon:f,title:h,onPress:m?(t,n)=>o(m,t,c,e,g,n,v):void 0,key:`${e}-${n}`,children:i?h:void 0,role:i?"menuitem":void 0,ref:a,itemComponentProps:l,doNotAutoFocusOnFirstItem:!0})}}}const Oe=["pan","zoom-in","zoom-out","fit-page","fit-width","spacer","export-pdf","document-comparison"];function Te(e,t){return 1===t.filter((t=>{var n;return null===(n=t.get("type"))||void 0===n?void 0:n.startsWith(e)})).size}const Ie=(0,c.XN)(ke),Fe=(0,c.vU)({thumbnails:{id:"thumbnails",defaultMessage:"Thumbnails",description:"Show or hide the thumbnails sidebar"},outline:{id:"outline",defaultMessage:"Outline",description:"Show or hide the document outline sidebar"},panMode:{id:"panMode",defaultMessage:"Pan Mode",description:"Activate and deactivate the pan mode (the hand cursor to move the page)"},zoomIn:{id:"zoomIn",defaultMessage:"Zoom In",description:"Zoom in the document"},zoomOut:{id:"zoomOut",defaultMessage:"Zoom Out",description:"Zoom out the document"},undo:{id:"undo",defaultMessage:"Undo",description:"Undo a previous annotation operation"},redo:{id:"redo",defaultMessage:"Redo",description:"Redo a previous annotation operation"},marqueeZoom:{id:"marqueeZoom",defaultMessage:"Marquee Zoom",description:"Enables Marquee Zoom mode which allows to zoom to a rectangle"},fitPage:{id:"fitPage",defaultMessage:"Fit Page",description:"Fit the page in the viewer based on the bigger dimension"},fitWidth:{id:"fitWidth",defaultMessage:"Fit Width",description:"Fit the page in the document based on its width"},print:{id:"print",defaultMessage:"Print",description:"print"},selectImage:{id:"selectImage",defaultMessage:"Select Image",description:"Label for the select image field"},unsupportedImageFormat:{id:"unsupportedImageFormat",defaultMessage:"Unsupported type for image annotation: {arg0}. Please use a JPEG, PNG or PDF.",description:"Unsupported image type error."},newAnnotationCreated:{id:"newAnnotationCreated",defaultMessage:"New {arg0} annotation created.",description:"A new annotation was created."},selectAFileForImage:{id:"selectAFileForImage",defaultMessage:"Select a file for the new image annotation.",description:"Select a file from the file dialog for the new image annotation."}})},5462:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var o=n(22122),r=n(84121),i=n(67294),a=n(94184),s=n.n(a),l=n(76154),c=n(41756),u=n(67665),d=n(30667),p=n(25915),f=n(35369),h=n(36095),m=n(13448),g=n(58924),v=n(91859),y=n(27435),b=n.n(y),w=n(93628),S=n.n(w),E=n(38006),P=n.n(E),x=n(20276);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function C(e){for(var t=1;t{let{selectedItem:t}=e;E&&E(F.current||(0,x._)("click"),t),F.current=null}),[E]),_=i.useRef(),R=null!==(n=i.useMemo((()=>y.find((e=>e.value===(null==w?void 0:w.value)))),[y,w]))&&void 0!==n?n:w,N=e.ItemComponent,L={root:s()("PSPDFKit-Input-Dropdown",e.isActive&&!e.disabled&&"PSPDFKit-Input-Dropdown-active","PSPDFKit-Toolbar-Dropdown",e.className,b().withDropdown,!e.isActive&&b().withDropdownIdle,e.disabled&&b().withDropdownDisabled,R&&"string"==typeof R.icon?R.icon:void 0),button:s()("PSPDFKit-Input-Dropdown-Button",b().dropdown,e.isActive&&!e.disabled&&b().isActive,{[b().discreteDropdown]:e.discreteDropdown,[b().isDisabled]:e.disabled}),menu:s()("PSPDFKit-Input-Dropdown-Items",S().root,e.menuClassName)},[B,j]=i.useState(!1),{getToggleButtonProps:z,getMenuProps:K,getItemProps:Z,getLabelProps:U,isOpen:V,selectedItem:G,highlightedIndex:W,setHighlightedIndex:q}=(0,c.L7)(C(C({items:y,itemToString:O,selectedItem:R,onHighlightedIndexChange:e=>{switch(e.type){case c.L7.stateChangeTypes.MenuKeyDownArrowDown:case c.L7.stateChangeTypes.MenuKeyDownArrowUp:case c.L7.stateChangeTypes.MenuKeyDownEscape:case c.L7.stateChangeTypes.MenuKeyDownHome:case c.L7.stateChangeTypes.MenuKeyDownEnd:case c.L7.stateChangeTypes.MenuKeyDownEnter:case c.L7.stateChangeTypes.MenuKeyDownSpaceButton:case c.L7.stateChangeTypes.MenuKeyDownCharacter:case c.L7.stateChangeTypes.FunctionSetHighlightedIndex:!B&&j(!0);break;default:B&&j(!1)}},onSelectedItemChange:t=>{"menu"!==e.role&&M(t)}},e.frameWindow?{environment:e.frameWindow}:null),{},{circularNavigation:!e.hasOwnProperty("circularNavigation")||e.circularNavigation,getA11yStatusMessage(){},getA11ySelectionMessage(){}})),H=z({onKeyDown:e=>{let{nativeEvent:t,key:n}=e;"Enter"===n&&(F.current=t)},onClick:e=>{e.target.focus&&e.target.focus()},"aria-haspopup":"menu"===e.role?"true":"listbox"}),$=K({onKeyDown:t=>{if(t.keyCode===d.zz&&V&&!e.propagateEscPress)t.stopPropagation();else if((t.keyCode===d.E$||t.keyCode===d.tW)&&W>-1&&"menu"===e.role&&V&&!y[W].disabled)F.current=t.nativeEvent,M({selectedItem:y[W]});else if(t.keyCode===d.P9&&Q>1)q(0===W?y.length:W-1);else if(t.keyCode===d.gs&&Q>1)q(W===y.length-1?0:W+1);else if(t.keyCode===d.OC&&_.current){const e=_.current.querySelector(`#${H.id}`);e&&e.focus()}}},{suppressRefError:!0}),Y=U(),X=e.ButtonComponent,J="menu"===e.role?{role:void 0,"aria-labelledby":void 0,"aria-haspopup":void 0,"aria-expanded":void 0}:{},Q=Math.min(y.length,e.maxCols||1),ee={display:"flex",flexDirection:Q>1?"row":"column",flexWrap:"wrap",width:e.itemWidth?Q*e.itemWidth:"auto",boxSizing:"content-box"},te=null!=e.icon?e.icon:{};return i.createElement("div",(0,o.Z)({className:s()(V&&"PSPDFKit-Input-Dropdown-open",L.root)},J,{"data-test-id":e["data-test-id"]}),i.createElement(p.TX,{tag:"div"},i.createElement("span",Y,e.accessibilityLabel)),i.createElement("div",{ref:_,className:s()(b().wrapper,{[b().disabledWrapper]:e.disabled,[b().isDisabled]:e.disabled})},X?X({btnComponentProps:H,selectedItem:G,ref:t,caretDirection:e.caretDirection,disabled:null!==(r=e.disabled)&&void 0!==r&&r,isOpen:V}):i.createElement(i.Fragment,null,N({item:G,isSelectedItem:!0,state:null,ref:t}),i.createElement("button",(0,o.Z)({},C(C({},H),e.disabled?{onClick:null}:null),{className:L.button,style:{minWidth:0},type:"button"}),i.createElement(m.Z,(0,o.Z)({type:`caret-${e.caretDirection}`,style:{width:12,height:"100%"},className:s()("PSPDFKit-Toolbar-Button-Icon",b().dropdownIcon,{[b().disabledDropdownIcon]:e.disabled})},te)),i.createElement(p.TX,{tag:"div"},i.createElement("span",null,null==G?void 0:G.label))))),i.createElement(u.m,null,i.createElement(g.Z,{referenceElement:_.current,measure:V,offsets:A},(t=>{let{ref:n,style:r}=t;const l="down"===e.caretDirection;let c;c=(e.frameWindow?e.frameWindow.innerWidth:_.current.ownerDocument.defaultView.innerWidth)>=v.Fg?_.current.offsetWidth:"auto";const u=r.top,d={maxHeight:l&&"auto"!==u?`calc(100vh - ${u}px)`:void 0,overflowY:"auto"};return i.createElement("div",{ref:n,style:C({minWidth:c},r)},i.createElement("div",(0,o.Z)({},$,{className:`${L.menu} ${s()({[S().hiddenMenu]:!V})}`,style:C(C({},d),ee),onMouseLeave:()=>q(null),role:"menu"===e.role?"menu":"listbox","aria-labelledby":H["aria-label"]?void 0:$["aria-labelledby"],"aria-label":H["aria-label"],"aria-hidden":!V}),V&&y.map(((t,n)=>{var o;const r=!!G&&(G.value||t.label)===(t.value||t.label),l=function(e,t,n){return t.indexOf(e)===n}(t,y,W);let c=(0,f.l4)();t.disabled&&(c=c.add("disabled")),l&&(c=c.add("focused")),r&&(c=c.add("selected")),t.disabled||l||r||(c=c.add("default"));const u=s()("PSPDFKit-Input-Dropdown-Item",{"PSPDFKit-Input-Dropdown-Item-disabled":t.disabled,"PSPDFKit-Input-Dropdown-Item-focused":!t.disabled&&l,"PSPDFKit-Input-Dropdown-Item-selected":!t.disabled&&r,"PSPDFKit-Input-Dropdown-Item-default":!t.disabled&&!r&&!l,[P().focusVisible]:l&&B}),d=Z(C({item:t,index:n,disabled:null!==(o=t.disabled)&&void 0!==o&&o,onClick:n=>{let{nativeEvent:o}=n;t.disabled||(F.current=o,"menu"===e.role&&V&&M({selectedItem:t}))}},"menu"===e.role?{"aria-selected":void 0,role:void 0}:h.G6?{}:{"aria-selected":void 0,"aria-label":r?I(T.selectedItem,{arg0:t.label}):void 0}));return i.createElement(i.Fragment,{key:`${O(t)}${n}`},i.createElement("div",{className:u},N({item:t,isSelectedItem:!1,state:c,itemComponentProps:d})),null!=k&&(null==k?void 0:k.index)===n&&(a||(a=i.createElement(k.node,null))))})),D))}))))}const A=(0,i.memo)(i.forwardRef(k));function O(e){return null!=e&&e.label?null==e?void 0:e.label:(null!=(null==e?void 0:e.value)&&"object"==typeof e.value&&"toString"in e.value&&"function"==typeof e.value.toString&&e.value.toString(),null!=(null==e?void 0:e.value)&&"string"==typeof e.value?e.value:"N/A")}const T=(0,l.vU)({accessibilityLabelDropdownGroupToggle:{id:"accessibilityLabelDropdownGroupToggle",defaultMessage:"{arg0} tools, toggle menu",description:"Accessible label to announce the button to open and close a toolbar menu which contains tools like shapes or ink annotations buttons."},selectedItem:{id:"selectedItem",defaultMessage:"{arg0}, selected",description:"Label for selected item in a dropdown"}})},84747:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=n(22122),r=n(17375),i=n(76154),a=n(67294),s=n(94184),l=n.n(s),c=n(27435),u=n.n(c),d=n(5462),p=n(97413);const f=["item"],h=["selectedItem"],m=a.memo(a.forwardRef((function(e,t){const{items:n,noInitialSelection:s,ItemComponent:c,ButtonComponent:m}=e,[b,w]=a.useState(null),{formatMessage:S}=(0,i.YB)(),E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Toolbar";return e.charAt(0).toUpperCase()+e.substr(1)}(n[0].item.dropdownGroup),P=a.useMemo((()=>n.find((e=>e.item.selected))||b||(s?null:n[0])),[n,s,b]),x=l()("PSPDFKit-Toolbar-DropdownGroup",E&&"PSPDFKit-Toolbar-DropdownGroup-"+E,e.className,P?"string"==typeof P.item.icon?P.item.icon:"string"==typeof P.item.type&&"custom"!==P.item.type?u().withDropdownIcon:void 0:void 0),D=e.items.map(g),C=P?g(P):null,k=a.useCallback((e=>{const{item:i}=e,s=(0,r.Z)(e,f),l=n.find((e=>null!=i?v(i,e):null));return a.createElement(c,(0,o.Z)({item:l},s,{ref:t}))}),[n,c,t]),A=a.useCallback((e=>{const{selectedItem:t}=e,i=(0,r.Z)(e,h),s=n.find((e=>null!=t?v(t,e):null));return(0,p.k)(s,"A dropdown item must be present for the button"),(0,p.k)(m,"A button must be available to render dropdown"),a.createElement(m,(0,o.Z)({selectedItem:s},i))}),[m,n]);return a.createElement(d.Z,{onSelect:(t,n)=>{const o=e.items.find((e=>v(n,e)));var r;null!=o&&(null===(r=e.onSelect)||void 0===r||r.call(e,t,o));if(b!==e.items.find((e=>v(n,e)))){const t=e.items.find((e=>v(n,e)));t&&w(t)}},items:D,value:C,ItemComponent:k,ButtonComponent:m?A:void 0,isActive:e.isActive,className:x,menuClassName:e.menuClassName,icon:e.icon,discreteDropdown:e.discreteDropdown,caretDirection:e.caretDirection,frameWindow:e.frameWindow,role:e.role,ref:t,accessibilityLabel:e.accessibilityLabel||S(y.accessibilityLabelDropdownGroupToggle,{arg0:E}),noInitialSelection:e.noInitialSelection,maxCols:e.maxCols,itemWidth:e.itemWidth,circularNavigation:e.circularNavigation,propagateEscPress:e.propagateEscPress,appendAfter:e.appendAfter,disabled:e.disabled},e.children)})));function g(e){var t,n,o,r;return{value:null!==(t=null!==(n=null!==(o=e.item.id)&&void 0!==o?o:e.item.title)&&void 0!==n?n:e.item.type)&&void 0!==t?t:"",icon:e.item.icon,label:null!==(r=e.item.title)&&void 0!==r?r:"",disabled:e.item.disabled}}function v(e,t){return t.item.id===e.value||t.item.title===e.value||t.item.type===e.value}const y=(0,i.vU)({accessibilityLabelDropdownGroupToggle:{id:"accessibilityLabelDropdownGroupToggle",defaultMessage:"{arg0} tools, toggle menu",description:"Accessible label to announce the button to open and close a toolbar menu which contains tools like shapes or ink annotations buttons."},selectedItem:{id:"selectedItem",defaultMessage:"{arg0}, selected",description:"Label for selected item in a dropdown"}})},11378:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(22122),r=n(67294),i=n(94184),a=n.n(i),s=n(3999);const l=r.forwardRef((function(e,t){const{selected:n,disabled:i}=e,l=a()("string"==typeof e.className&&e.className,"PSPDFKit-Toolbar-Node",n&&"PSPDFKit-Toolbar-Node-active",i&&"PSPDFKit-Toolbar-Node-disabled");return r.createElement(s.Z,(0,o.Z)({},e,{className:l,ref:t,itemComponentProps:e.itemComponentProps}))}))},44706:(e,t,n)=>{"use strict";n.d(t,{B:()=>f,Z:()=>h});var o=n(67294),r=n(76154),i=n(26353),a=n(84013),s=n(94184),l=n.n(s),c=n(85578),u=n.n(c),d=n(35129),p=n(11010);function f(e){let{children:t,onClose:n,isPrimary:r,position:s,intl:c,accessibilityLabel:f,onEntered:h,className:m}=e;const{formatMessage:g}=c,v=o.Children.count(t)>0;return o.createElement(a.Z,null,v&&o.createElement(i.Z,{timeout:{enter:window["PSPDFKit-disable-animations"]?0:150,exit:window["PSPDFKit-disable-animations"]?0:120},classNames:{enter:u().slideRightEnter,enterActive:u().slideRightEnterActive,enterDone:u().slideRightEnterDone,exit:u().slideRightExit,exitActive:u().slideRightExitActive},onEntered:h},o.createElement("div",{className:l()({[u().responsiveGroup]:!0,[u().primary]:r,[u().secondary]:!r,[u().stickToBottom]:"bottom"===s,"PSPDFKit-Toolbar-Responsive-Group":!0},m),role:"dialog","aria-label":f},o.createElement(p.Z,{type:"custom",title:g(d.Z.close),className:u().button,onPress:n},o.createElement("div",{className:u().animatedArrow})),o.createElement("div",{style:{flex:1}}),o.createElement("div",{className:u().items},t))))}const h=(0,r.XN)(f)},94505:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(22122),r=n(67294),i=n(94184),a=n.n(i),s=n(13448),l=n(44364),c=n.n(l);const u=r.memo(r.forwardRef((function(e,t){const{type:n,selected:i,disabled:l,onPress:u,icon:d,role:p,title:f,doNotAutoFocusOnFirstItem:h=!1}=e,m=r.useRef(!1),g=r.useCallback((function(e){e.preventDefault(),!l&&u&&u(e.nativeEvent,m.current)}),[u,l]),v=r.useCallback((function(){m.current=!0}),[]),y=r.useCallback((function(){m.current=!1}),[]),b=(0,s.Z)({icon:d,type:n,className:a()(void 0!==e.children&&c().withLabel,"PSPDFKit-Tool-Button-Icon",e.iconClassName)}),w=e.children||(b?null:f),S=a()(c().root,i&&c().isActive,l&&c().isDisabled,"string"==typeof e.className&&e.className,"PSPDFKit-Tool-Button",i&&"PSPDFKit-Tool-Button-active",l&&"PSPDFKit-Tool-Button-disabled");r.useEffect((()=>{!e.presentational&&t&&t.current&&!h&&t.current.focus()}),[e.presentational,t,h]);const E=r.createElement("button",(0,o.Z)({className:S,title:f,"aria-label":f,disabled:l,onClick:u?g:void 0,onKeyDown:u?v:void 0,onPointerUp:u?y:void 0,"aria-pressed":"annotate"!==n&&"responsive-group"!==n&&void 0!==i?i:void 0},e.itemComponentProps,{role:p||(e.itemComponentProps?e.itemComponentProps.role:void 0),type:"button",ref:t}),b,null!=w&&r.createElement("span",null,w));return e.presentational?r.createElement("div",null,r.createElement("div",{className:S,title:f,"aria-hidden":"true",role:"presentation"},b)):e.disabled?r.createElement("div",{className:a()({[c().disabledWrapper]:e.disabled})},E):E})))},3999:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(22122),r=n(67294),i=n(94184),a=n.n(i),s=n(18571),l=n.n(s);const c=r.memo(r.forwardRef((function(e,t){const{node:n,title:i,selected:s,disabled:c}=e,u=r.useRef();r.useImperativeHandle(t,(()=>({focus:()=>{n instanceof n.ownerDocument.defaultView.HTMLElement&&n.focus()}}))),r.useLayoutEffect((()=>{const e=u&&u.current;e&&(e.innerHTML="",e.appendChild(n))}),[n]);const d=a()("PSPDFKit-Tool-Node",{"PSPDFKit-Tool-Node-active":s,"PSPDFKit-Tool-Node-disabled":c},e.className,l().root,{[l().disabled]:c,[l().annotationToolbar]:"annotationToolbar"===e.variant}),p=e.onPress?t=>{let{nativeEvent:n}=t;e.onPress&&e.onPress(n)}:void 0;return r.createElement("div",(0,o.Z)({onClick:p,className:d,title:i,"aria-label":i,tabIndex:c?-1:void 0,"aria-disabled":!!c||void 0},e.itemComponentProps,{ref:u}))})))},97528:(e,t,n)=>{"use strict";n.d(t,{Ei:()=>m,Wv:()=>f,ng:()=>v});var o=n(84121),r=n(80857),i=n(59386),a=n(83634),s=n(86071),l=n(65627),c=n(35129),u=n(24871),d=n(91859);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}const f=s.Z.filter((e=>e.color!==a.Z.DARK_BLUE)),h={MIN_TEXT_ANNOTATION_SIZE:5,MIN_INK_ANNOTATION_SIZE:16,MIN_SHAPE_ANNOTATION_SIZE:16,MIN_IMAGE_ANNOTATION_SIZE:5,MIN_STAMP_ANNOTATION_SIZE:15,MIN_WIDGET_ANNOTATION_SIZE:3,ENABLE_INK_SMOOTH_LINES:!0,INK_EPSILON_RANGE_OPTIMIZATION:10,SIGNATURE_SAVE_MODE:i.f.USING_UI,INITIAL_DESKTOP_SIDEBAR_WIDTH:300,IGNORE_DOCUMENT_PERMISSIONS:!1,SELECTION_OUTLINE_PADDING:function(e){return e.width>d.y$?10:13},RESIZE_ANCHOR_RADIUS:function(e){return e.width>d.y$?7:10},SELECTION_STROKE_WIDTH:2,TEXT_ANNOTATION_AUTOFIT_TEXT_ON_EXPORT:!0,TEXT_ANNOTATION_AUTOFIT_BOUNDING_BOX_ON_EDIT:!0,DISABLE_KEYBOARD_SHORTCUTS:!1,DEFAULT_INK_ERASER_CURSOR_WIDTH:12.5,COLOR_PRESETS:f,LINE_CAP_PRESETS:["none"].concat(u.a),LINE_WIDTH_PRESETS:null,HIGHLIGHT_COLOR_PRESETS:[a.Z.LIGHT_YELLOW,a.Z.LIGHT_BLUE,a.Z.LIGHT_GREEN,a.Z.LIGHT_RED].map((e=>({color:e,localization:c.Z[e.toCSSValue()]}))),TEXT_MARKUP_COLOR_PRESETS:s.Z.filter((e=>[a.Z.BLACK,a.Z.BLUE,a.Z.RED,a.Z.GREEN].includes(e.color))),NOTE_COLOR_PRESETS:l.W,PDF_JAVASCRIPT:!0,BREAKPOINT_MD_TOOLBAR:1070,BREAKPOINT_SM_TOOLBAR:768},m=Object.preventExtensions(function(e){for(var t=1;t{for(const t in e)g(void 0!==h[t],`Option \`${t}\` is not available in the \`Options\` object`),g(typeof h[t]==typeof e[t],`Option \`${t}\` is of incorrect type \`${typeof e[t]}\`, should be \`${typeof h[t]}\``)}},25387:(e,t,n)=>{"use strict";n.d(t,{$8O:()=>Po,$Jy:()=>Tt,$VE:()=>ht,$hO:()=>Ft,A8G:()=>Ee,AIf:()=>et,ArU:()=>Zn,B1n:()=>nt,BS3:()=>o,BWS:()=>se,Ce5:()=>g,D1d:()=>no,D5x:()=>Un,D_w:()=>$t,Dj2:()=>ue,Dl4:()=>q,Dqw:()=>uo,Dzg:()=>it,Ebp:()=>Fo,EpY:()=>kn,F6q:()=>Nt,FH6:()=>Ot,FHt:()=>M,FQb:()=>Go,FdD:()=>yt,G5w:()=>de,G6t:()=>wo,G8_:()=>Qt,GHc:()=>l,GW4:()=>pe,GXR:()=>qe,GZZ:()=>ze,GfR:()=>H,Gkm:()=>yo,Gox:()=>Wn,HS7:()=>Pt,HYy:()=>No,Han:()=>zo,Hbz:()=>pt,Hrp:()=>s,IFt:()=>mn,ILc:()=>Et,Ifu:()=>_t,IyB:()=>eo,J7J:()=>He,JQC:()=>Q,JRS:()=>Gn,JS9:()=>Qe,JwD:()=>Ae,JyO:()=>$e,K26:()=>dt,KA1:()=>Hn,KYU:()=>V,Kc8:()=>rn,Kpf:()=>zn,KqR:()=>rt,Kw7:()=>on,L2A:()=>co,L8n:()=>ct,L9g:()=>W,Lyo:()=>P,M3C:()=>at,M85:()=>St,ME7:()=>y,MGL:()=>po,MOe:()=>Fe,MYU:()=>$n,MfE:()=>ae,MuN:()=>fe,NAH:()=>ge,NB4:()=>wt,NDs:()=>Ye,NfO:()=>K,Nl1:()=>G,Oh4:()=>Yt,Q2U:()=>hn,QU3:()=>le,QYP:()=>j,Qm9:()=>fo,R1i:()=>ke,R7l:()=>mo,R8P:()=>Dt,RCc:()=>ie,RPc:()=>gn,RTr:()=>h,RvB:()=>je,RxB:()=>k,S$y:()=>Je,S0t:()=>yn,SdX:()=>Eo,T3g:()=>io,TG1:()=>Qo,TPT:()=>Me,TUA:()=>We,TYu:()=>so,Ty$:()=>sn,U7k:()=>Lo,UFK:()=>N,UFs:()=>re,UII:()=>u,UL9:()=>Qn,UP4:()=>xo,UX$:()=>Xn,UiQ:()=>Ce,Ui_:()=>Kt,VK7:()=>Ut,VNM:()=>Yo,VNu:()=>lr,VOt:()=>Io,Vje:()=>ir,Vpf:()=>go,Vu4:()=>Xe,W0l:()=>nn,WaW:()=>Tn,Whn:()=>Xt,WmI:()=>Ko,WsN:()=>tr,WtY:()=>v,Wyx:()=>qt,XTO:()=>ar,Xlm:()=>Z,Y4:()=>Ro,YHT:()=>d,YIz:()=>ut,YS$:()=>bn,ZDQ:()=>tt,ZGb:()=>T,ZLr:()=>p,ZbY:()=>fn,ZgW:()=>Bo,Zt9:()=>sr,_33:()=>Bn,_AY:()=>Mt,_Qf:()=>Ln,_TO:()=>Dn,_Yi:()=>Le,_fK:()=>dn,_ko:()=>F,_n_:()=>we,_uU:()=>ne,a33:()=>Te,aWu:()=>Pe,aYj:()=>L,b0l:()=>be,b4I:()=>Ho,bOH:()=>jo,bP3:()=>J,bV3:()=>xn,bVL:()=>Mn,bui:()=>An,bxr:()=>I,bzW:()=>qo,c3G:()=>Be,cbv:()=>Ge,ciU:()=>Mo,ckI:()=>gt,cyk:()=>U,dCo:()=>b,dEe:()=>Sn,dVW:()=>en,eFQ:()=>lt,eI4:()=>X,eJ4:()=>to,esN:()=>jt,f3N:()=>Ie,fAF:()=>wn,fDl:()=>Ht,fLm:()=>_o,fQw:()=>Ao,faS:()=>Rn,fnw:()=>w,fwq:()=>bo,g30:()=>Ve,g4f:()=>E,gF5:()=>Ct,gIV:()=>It,gbd:()=>f,hC8:()=>cn,heZ:()=>m,hlI:()=>Se,hpj:()=>B,ht3:()=>_,huI:()=>At,hv0:()=>Y,hw0:()=>qn,hxO:()=>vt,iJ2:()=>zt,iMs:()=>En,iQZ:()=>$,iZ1:()=>un,ieh:()=>In,iwn:()=>_n,iyZ:()=>_e,jJ7:()=>Jt,joZ:()=>ko,jzI:()=>xt,kD6:()=>Co,kRo:()=>R,kVz:()=>Fn,kg:()=>bt,kt4:()=>ao,l$y:()=>Do,lD1:()=>ce,lRe:()=>Cn,m3$:()=>Zt,mE7:()=>C,mGH:()=>tn,mLh:()=>S,m_C:()=>rr,mbD:()=>Yn,mfU:()=>Jo,mqf:()=>Ke,nFn:()=>Rt,nI6:()=>Zo,nmm:()=>r,oE1:()=>xe,oWy:()=>De,oZW:()=>Uo,obk:()=>vn,odo:()=>Vo,oj5:()=>c,p1u:()=>Bt,pNz:()=>Pn,pnu:()=>ot,poO:()=>ln,qKG:()=>vo,qRJ:()=>an,qV6:()=>oe,qZT:()=>Lt,qh0:()=>oo,rWQ:()=>ye,rm:()=>ro,rpU:()=>Vn,rxv:()=>a,sCM:()=>kt,sYK:()=>ft,skc:()=>ee,snK:()=>er,snh:()=>te,syg:()=>A,t$K:()=>Wo,tC1:()=>Nn,tLW:()=>Ze,tPZ:()=>ve,tS$:()=>Ue,tYC:()=>me,teI:()=>ho,tie:()=>st,tzG:()=>nr,u7V:()=>Gt,u9b:()=>O,uFU:()=>pn,uOP:()=>Xo,uo5:()=>To,vBn:()=>$o,vSH:()=>Ne,vVk:()=>On,vgx:()=>lo,vkF:()=>So,wG7:()=>jn,wPI:()=>Kn,wgG:()=>cr,wog:()=>Jn,wtk:()=>D,x0v:()=>Oe,xYE:()=>x,xhM:()=>Oo,xk1:()=>he,yET:()=>Vt,yPS:()=>or,yrz:()=>mt,yyM:()=>Re,zGM:()=>Wt,zKF:()=>z,zZV:()=>i});const o="CONNECTING",r="CONNECTED",i="CONNECTION_FAILED",a="SET_ANNOTATION_MANAGER",s="SET_BOOKMARK_MANAGER",l="SET_FORM_FIELD_VALUE_MANAGER",c="SET_FORM_FIELD_MANAGER",u="SET_COMMENT_MANAGER",d="SET_MENTIONABLE_USERS",p="SET_MAX_MENTION_SUGGESTIONS",f="SET_CHANGE_MANAGER",h="SET_HAS_FETCHED_INITIAL_RECORDS_FROM_INSTANT",m="SET_GROUP",g="SET_CLIENTS_UPDATE_CALLBACK",v="SET_TRANSFORM_CLIENT_TO_PAGE",y="FETCH_DOCUMENT_SUCCESS",b="FETCH_PAGES_SUCCESS",w="SET_BACKEND_PERMISSIONS",S="SCROLLED",E="JUMP_TO_RECT",P="JUMP_AND_ZOOM_TO_RECT",x="RESIZED",D="NEXT_PAGE",C="PREVIOUS_PAGE",k="SET_PAGE",A="SET_ZOOM_LEVEL",O="SET_ZOOM_STEP",T="SET_VIEWPORT_STATE",I="SET_SPREAD_SPACING",F="SET_PAGE_SPACING",M="SET_FIRST_PAGE_ALWAYS_SINGLE",_="SET_VIEWPORT_PADDING",R="ENABLE_PANNING",N="DISABLE_PANNING",L="ENABLE_PRINTING",B="DISABLE_PRINTING",j="ENABLE_EXPORT",z="DISABLE_EXPORT",K="ENABLE_READ_ONLY",Z="DISABLE_READ_ONLY",U="SHOW_ANNOTATIONS",V="HIDE_ANNOTATIONS",G="SHOW_COMMENTS",W="HIDE_COMMENTS",q="SHOW_ANNOTATION_NOTES",H="HIDE_ANNOTATION_NOTES",$="SET_FEATURES",Y="SET_SIDEBAR_MODE",X="SET_SIDEBAR_PLACEMENT",J="SET_SIDEBAR_OPTIONS",Q="SET_SIGNATURE_FEATURE_AVAILABILITY",ee="START_PRINTING",te="END_PRINTING",ne="ABORT_PRINTING",oe="UPDATE_PRINT_LOADING_INDICATOR",re="ZOOM_IN",ie="ZOOM_OUT",ae="ZOOM_TO_AUTO",se="ZOOM_TO_FIT_TO_VIEWPORT",le="ZOOM_TO_FIT_TO_WIDTH",ce="ROTATE",ue="ENABLE_DEBUG_MODE",de="SHOW_DEBUG_CONSOLE",pe="HIDE_DEBUG_CONSOLE",fe="SHOW_TOOLBAR",he="HIDE_TOOLBAR",me="ENABLE_ANNOTATION_TOOLBAR",ge="DISABLE_ANNOTATION_TOOLBAR",ve="SET_SCROLLBAR_OFFSET",ye="SET_LAYOUT_MODE",be="SET_SCROLL_MODE",we="SET_SCROLL_ELEMENT",Se="SET_ANNOTATION_CREATOR",Ee="SET_ANNOTATION_TOOLBAR_HEIGHT",Pe="UPDATE_TOOLBAR_ITEMS",xe="UPDATE_CURRENT_PRESET",De="SET_CURRENT_ITEM_PRESET",Ce="UPDATE_ANNOTATION_PRESETS",ke="ADD_ANNOTATION_PRESET_ID",Ae="SET_CURRENT_ITEM_PRESET_FROM_ANNOTATION",Oe="REMOVE_ANNOTATION_PRESET_ID",Te="DESELECT",Ie="TEXT_SELECTED",Fe="TEXT_DESELECTED",Me="SET_ANNOTATION_HOVER",_e="UNSET_ANNOTATION_HOVER",Re="SET_ANNOTATION_NOTE_HOVER",Ne="SET_ACTIVE_ANNOTATION_NOTE",Le="SET_SELECTED_ANNOTATIONS",Be="UNSET_SELECTED_ANNOTATION_SHOULD_DRAG",je="SET_SELECTED_TEXT_ON_EDIT",ze="FETCH_TEXT_LINES_SUCCESS",Ke="ENABLE_TEXT_HIGHLIGHTER_MODE",Ze="DISABLE_TEXT_HIGHLIGHTER_MODE",Ue="ENABLE_REDACT_TEXT_HIGHLIGHTER_MODE",Ve="DISABLE_REDACT_TEXT_HIGHLIGHTER_MODE",Ge="ENABLE_REDACT_SHAPE_RECTANGLE_MODE",We="DISABLE_REDACT_SHAPE_RECTANGLE_MODE",qe="ENABLE_INK_MODE",He="DISABLE_INK_MODE",$e="ENABLE_INK_ERASER_MODE",Ye="DISABLE_INK_ERASER_MODE",Xe="ENABLE_SIGNATURE_MODE",Je="DISABLE_SIGNATURE_MODE",Qe="ENABLE_SHAPE_MODE",et="DISABLE_SHAPE_MODE",tt="ENABLE_NOTE_MODE",nt="DISABLE_NOTE_MODE",ot="ENABLE_TEXT_MODE",rt="DISABLE_TEXT_MODE",it="ENABLE_STAMP_PICKER_MODE",at="ENABLE_STAMP_CUSTOM_MODE",st="DISABLE_STAMP_MODE",lt="ENABLE_INTERACTIONS",ct="DISABLE_INTERACTIONS",ut="SHOW_DOCUMENT_EDITOR",dt="HIDE_DOCUMENT_EDITOR",pt="ENABLE_MARQUEE_ZOOM",ft="DISABLE_MARQUEE_ZOOM",ht="SET_INTERACTION_MODE",mt="RESET_INTERACTION_MODE",gt="CREATE_COMMENTS",vt="CREATE_COMMENT_DRAFT",yt="UPDATE_COMMENTS",bt="DELETE_COMMENTS",wt="COMPUTE_COMMENT_MODE",St="CREATE_ANNOTATIONS",Et="CREATE_INK_ANNOTATION_ON_NEW_PAGE",Pt="CREATE_SHAPE_ANNOTATION_ON_NEW_PAGE",xt="CREATE_REDACTION_ANNOTATION_ON_NEW_PAGE",Dt="UPDATE_ANNOTATIONS",Ct="DELETE_ANNOTATIONS",kt="SET_ANNOTATIONS_TO_DELETE",At="CREATE_ATTACHMENT",Ot="SEARCH_FOR_TERM",Tt="FOCUS_NEXT_SEARCH_HIGHLIGHT",It="FOCUS_PREVIOUS_SEARCH_HIGHLIGHT",Ft="SHOW_SEARCH",Mt="HIDE_SEARCH",_t="FOCUS_SEARCH",Rt="BLUR_SEARCH",Nt="SET_SEARCH_IS_LOADING",Lt="SET_SEARCH_RESULTS",Bt="SET_SEARCH_STATE",jt="SET_SEARCH_PROVIDER",zt="SET_FORM_JSON",Kt="CREATE_FORM_FIELD_VALUES",Zt="SET_FORM_FIELD_VALUES",Ut="SET_FORMATTED_FORM_FIELD_VALUES",Vt="SET_EDITING_FORM_FIELD_VALUES",Gt="DELETE_FORM_FIELD_VALUES",Wt="CREATE_FORM_FIELDS",qt="UPDATE_FORM_FIELDS",Ht="REPLACE_FORM_FIELD",$t="DELETE_FORM_FIELDS",Yt="SET_DOCUMENT_OUTLINE",Xt="TOGGLE_DOCUMENT_OUTLINE_ELEMENT",Jt="SET_CUSTOM_OVERLAY_ITEM",Qt="REMOVE_CUSTOM_OVERLAY_ITEM",en="I18N_SET_LOCALE",tn="CREATE_SIGNATURE",nn="STORE_SIGNATURE",on="SET_STORED_SIGNATURES",rn="DELETE_STORED_SIGNATURE",an="UPDATE_STAMP_ANNOTATION_TEMPLATES",sn="SHOW_PASSWORD_PROMPT",ln="SET_HAS_PASSWORD",cn="UNLOCKED_VIA_MODAL",un="SET_ALLOWED_TILE_SCALES",dn="UPDATE_SELECTED_MARKUP_ANNOTATIONS",pn="SET_IS_EDITABLE_ANNOTATION",fn="SET_EDITABLE_ANNOTATION_TYPES",hn="SET_IS_EDITABLE_COMMENT",mn="SET_FORM_DESIGN_MODE",gn="SET_INK_ERASER_WIDTH",vn="RESET_DOCUMENT_STATE",yn="SET_DOCUMENT_HANDLE",bn="SET_DOCUMENT_HANDLE_OUTDATED",wn="UPDATE_CUSTOM_RENDERERS",Sn="ENABLE_COMMENT_MARKER",En="DISABLE_COMMENT_MARKER",Pn="START_DIGITAL_SIGNATURE",xn="END_DIGITAL_SIGNATURE",Dn="SET_SHOW_SIGNATURE_VALIDATION_STATUS_MODE",Cn="SET_DIGITAL_SIGNATURES",kn="START_REDACTION",An="END_REDACTION",On="SET_PREVIEW_REDACTION_MODE",Tn="SET_COLLAPSE_SELECTED_NOTE_CONTENT",In="INVALIDATE_AP_STREAMS",Fn="VALIDATE_AP_STREAMS",Mn="HISTORY_UPDATE_FROM_UNDO",_n="HISTORY_UPDATE_FROM_REDO",Rn="SET_HISTORY_CHANGE_CONTEXT",Nn="HISTORY_IDS_MAP_ADD",Ln="CLEAR_HISTORY",Bn="ENABLE_HISTORY",jn="DISABLE_HISTORY",zn="UPDATE_DOCUMENT_EDITOR_FOOTER_ITEMS",Kn="UPDATE_DOCUMENT_EDITOR_TOOLBAR_ITEMS",Zn="SET_EDITABLE_ANNOTATION_STATE",Un="SET_A11Y_STATUS_MESSAGE",Vn="SET_LAST_TOOLBAR_ACTION_USED_KEYBOARD",Gn="ENABLE_DOCUMENT_CROP_MODE",Wn="DISABLE_DOCUMENT_CROP_MODE",qn="SET_ON_ANNOTATION_RESIZE_START",Hn="SET_DOCUMENT_COMPARISON_STATE",$n="ENABLE_SCROLL_WHILE_DRAWING",Yn="DISABLE_SCROLL_WHILE_DRAWING",Xn="SET_REUSE_STATE",Jn="ENABLE_KEEP_SELECTED_TOOL",Qn="DISABLE_KEEP_SELECTED_TOOL",eo="SET_INSTANCE",to="SET_CUSTOM_UI_STORE",no="SET_SIDEBAR_WIDTH",oo="SET_READ_ONLY_ANNOTATION_FOCUS",ro="UNSET_READ_ONLY_ANNOTATION_FOCUS",io="SET_ANNOTATION_TOOLBAR_ITEMS_CALLBACK",ao="TOGGLE_CLIPBOARD_ACTIONS",so="SET_ON_WIDGET_CREATION_START_CALLBACK",lo="SET_FORM_DESIGNER_LOCAL_WIDGET_ANNOTATION",co="SET_INLINE_TOOLBAR_ITEMS_CALLBACK",uo="ADD_ANNOTATION_VARIANTS",po="ENABLE_CONTENT_EDITOR",fo="DISABLE_CONTENT_EDITOR",ho="CHANGE_CONTENT_EDITOR_SESSION_MODE",mo="ENABLE_LINK_MODE",go="DISABLE_LINK_MODE",vo="DISABLE_DRAWING_LINK_ANNOTATION_MODE",yo="SET_MEASUREMENT_SNAPPING",bo="SET_MEASUREMENT_PRECISION",wo="SET_MEASUREMENT_SCALE",So="SET_MEASUREMENT_VALUE_CONFIGURATION_CALLBACK",Eo="SET_MEASUREMENT_SCALES",Po="SET_MEASUREMENT_TOOL_STATE",xo="SET_HINT_LINES",Do="CONTENT_EDITOR/PAGE/LOADING",Co="CONTENT_EDITOR/PAGE/LOADED",ko="CONTENT_EDITOR/TEXT_BLOCK/INTERACTION/ACTIVE",Ao="CONTENT_EDITOR/TEXT_BLOCK/INTERACTION/TOGGLE",Oo="CONTENT_EDITOR/TEXT_BLOCK/INTERACTION/SELECT",To="CONTENT_EDITOR/TEXT_BLOCK/CREATE",Io="CONTENT_EDITOR/TEXT_BLOCK/UPDATE_INFO",Fo="CONTENT_EDITOR/TEXT_BLOCK/SET_FORMAT",Mo="CONTENT_EDITOR_/TEXT_BLOCK/RESIZE",_o="CONTENT_EDITOR_/TEXT_BLOCK/MOVE",Ro="CONTENT_EDITOR/SAVING",No="CONTENT_EDITOR/SET_DIRTY",Lo="CONTENT_EDITOR/FACE_LIST/LOADING",Bo="CONTENT_EDITOR/FACE_LIST/SET",jo="CONTENT_EDITOR_SET_EXIT_DIALOG",zo="CONTENT_EDITOR_SHOW_FONT_MISMATCH_TOOLTIP",Ko="CONTENT_EDITOR_HIDE_FONT_MISMATCH_TOOLTIP",Zo="CONTENT_EDITOR_FONT_MISMATCH_TOOLTIP_ABORT_CONTROLLER",Uo="ENABLE_MULTI_ANNOTATIONS_SELECTION_MODE",Vo="DISABLE_MULTI_ANNOTATIONS_SELECTION_MODE",Go="CREATE_ANNOTATION_GROUP",Wo="SET_SELECTED_GROUP",qo="DELETE_ANNOTATION_GROUP",Ho="REMOVE_ANNOTATION_FROM_GROUP",$o="SET_PULL_TO_REFRESH_STATE",Yo="SET_RICH_EDITOR_REF",Xo="FOCUS_WIDGET_ANNOTATION",Jo="SET_ON_COMMENT_CREATION_START_CALLBACK",Qo="INVALIDATE_PAGE_KEYS",er="CONTENT_EDITOR_ACTIVE_TEXT_BLOCK_DELETE",tr="CHANGE_SCROLL_STATE",nr="SET_CUSTOM_FONTS_READABLE_NAMES",or="ENABLE_MEASUREMENT_MODE",rr="DISABLE_MEASUREMENT_MODE",ir="SHOW_MEASUREMENT_SETTINGS",ar="HIDE_MEASUREMENT_SETTINGS",sr="SET_SECONDARY_MEASUREMENT_UNIT",lr="SET_ACTIVE_MEASUREMENT_SCALE",cr="SET_CALIBRATION_MODE"},91859:(e,t,n)=>{"use strict";n.d(t,{$P:()=>Z,Bs:()=>L,Dx:()=>C,Fg:()=>i,GI:()=>r,Hr:()=>x,I_:()=>D,J8:()=>I,Kk:()=>E,M5:()=>M,QS:()=>m,Qc:()=>q,Qq:()=>o,Qr:()=>R,RI:()=>s,SP:()=>O,Sk:()=>S,St:()=>G,Ui:()=>_,V4:()=>k,W3:()=>$,XU:()=>f,XZ:()=>v,YJ:()=>w,_2:()=>j,c1:()=>P,cY:()=>h,g3:()=>c,gZ:()=>b,h8:()=>p,i1:()=>W,j1:()=>u,mM:()=>K,nJ:()=>N,oW:()=>F,pt:()=>H,rB:()=>U,re:()=>A,rm:()=>l,sP:()=>V,wK:()=>y,xD:()=>d,y$:()=>a,zA:()=>B,zT:()=>z,zh:()=>g,zk:()=>T});const o=1200,r=1070,i=768,a=480,s=32768,l=18,c=50,u=a,d=a,p=320,f=250,h=.5,m=10,g=1.25,v=5,y=30,b=2,w=20,S=0,E=20,P=5,x=1,D=512,C=5,k=1.25,A="PSPDFKit-Root",O=32,T=32,I=5,F=0,M=1,_=96/72,R=5e3,N={LOW:75/72,MEDIUM:150/72,HIGH:300/72},L=2/3,B=595,j=842,z=50,K=96,Z=2*K,U=300,V=1e3,G=4.25,W=2,q=10,H=16383,$=4},75237:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>d,ZP:()=>g,hD:()=>m});var o=n(84121),r=n(35369),i=n(83634),a=n(15973),s=n(24871);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;tObject.keys(e).filter((t=>!f.includes(t)&&null!=e[t])).reduce(((t,n)=>(t[n]=e[n],t)),{});for(const e in d){const t=u[e];Object.getPrototypeOf(t)===a.UX?d[e]=h(c(c({},a.UX.defaultValues),t.defaultValues)):Object.getPrototypeOf(t)===a.On?d[e]=h(c(c({},a.On.defaultValues),t.defaultValues)):d[e]=h(t.defaultValues)}for(const e in p){const t=u[e];Object.getPrototypeOf(t)===a.UX?p[e]=h(c(c(c({},a.UX.defaultValues),t.defaultValues),p[e])):Object.getPrototypeOf(t)===a.On?p[e]=h(c(c(c({},a.On.defaultValues),t.defaultValues),p[e])):p[e]=h(c(c({},t.defaultValues),p[e]))}const m=(0,r.D5)([[a.FV,"highlight"],[a.xu,"underline"],[a.hL,"squiggle"],[a.R9,"strikeout"]]),g=(0,r.D5)(c(c({},d),p))},54097:(e,t,n)=>{"use strict";n.d(t,{J:()=>i,Z:()=>a});var o=n(35369),r=n(15973);const i=[r.Xs,r.FV,r.sK,r.Zc,r.o9,r.Qi,r.Hi,r.om,r.b3,r.hL,r.GI,r.R9,r.gd,r.xu,r.x_],a=(0,o.d0)(i)},79941:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(15973);const r=Object.freeze([o.Xs,o.FV,o.sK,o.Zc,o.o9,o.Qi,o.Hi,o.om,o.b3,o.Wk,o.hL,o.GI,o.R9,o.gd,o.x_,o.xu,o.Jn,o.R1].filter(Boolean))},151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(52247);const r=Object.freeze([o.M.DRAW,o.M.IMAGE,o.M.TYPE])},84760:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(39745);const r=Object.freeze([new o.Z({name:"Caveat"}),new o.Z({name:"Pacifico"}),new o.Z({name:"Marck Script"}),new o.Z({name:"Meddon"})])},92457:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>r,_o:()=>i});const o=[{type:"sidebar-thumbnails"},{type:"sidebar-document-outline"},{type:"sidebar-annotations"},{type:"sidebar-bookmarks"},{type:"pager"},{type:"multi-annotations-selection"},{type:"pan"},{type:"zoom-out"},{type:"zoom-in"},{type:"zoom-mode"},{type:"spacer"},{type:"annotate"},{type:"ink"},{type:"highlighter"},{type:"text-highlighter"},{type:"ink-eraser"},{type:"signature"},{type:"image"},{type:"stamp"},{type:"note"},{type:"text"},{type:"callout"},{type:"line"},{type:"link"},{type:"arrow"},{type:"rectangle"},{type:"ellipse"},{type:"polygon"},{type:"cloudy-polygon"},{type:"polyline"},{type:"print"},{type:"document-editor"},{type:"document-crop"},{type:"search"},{type:"export-pdf"},{type:"debug"}],r=(0,n(35369).d0)(o),i=[...o.map((e=>e.type)),"layout-config","marquee-zoom","custom","responsive-group","comment","redact-text-highlighter","redact-rectangle","cloudy-rectangle","dashed-rectangle","cloudy-ellipse","dashed-ellipse","dashed-polygon","document-comparison","measure","undo","redo","form-creator","content-editor","distance","perimeter","rectangle-area","ellipse-area","polygon-area"]},28890:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(67366),r=n(25915);const i=(0,o.$j)((function(e,t){var n;let{restoreOnClose:o=!0}=t;const r=null===(n=e.frameWindow)||void 0===n?void 0:n.document;return{restoreOnCloseElement:o?null!=r&&r.hasFocus()?r.activeElement&&"function"==typeof r.activeElement.focus?r.activeElement:r.body:document.activeElement:null}}))(r.u_)},58924:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(67366),r=n(84121),i=n(67294);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}class s extends i.Component{constructor(){super(...arguments),(0,r.Z)(this,"elRef",i.createRef()),(0,r.Z)(this,"state",{styles:this._calculatePositionStyles()})}_calculatePositionStyles(){var e;const{referenceElement:t,horizontalAlignment:n}=this.props,{containerRect:o,offsets:r}=this.props,i=null!==(e=null==r?void 0:r.top)&&void 0!==e?e:0,a=this.elRef.current,s=t?t.getBoundingClientRect():null,l=a?a.getBoundingClientRect():null;let c=s?s.top+s.height:0;if(null!==l&&null!==s&&s.top+s.height+l.height>o.height&&0!==s.top&&(c=Math.max(0,s.top-l.height)),!a||!s)return{top:c+i,right:"auto",left:"auto"};if(a.offsetWidth>o.width)return{top:c+i,right:0,left:0};const u=this.props.isRTL?"right":"left",d=this.props.isRTL?"left":"right";let p="left"===u?s.left:s.right;switch(n){case"center":p-=(a.offsetWidth-s.width)/2;break;case"end":p=p-a.offsetWidth+s.width}return p<0?{top:c+i,[u]:0,[d]:"auto"}:p+a.offsetWidth>o.width?{top:c+i,[d]:0,[u]:"auto"}:"auto"===n&&p>o.width/2?{top:c+i,[u]:p-a.offsetWidth+s.width,[d]:"auto"}:{top:c+i,[u]:p,[d]:"auto"}}componentDidUpdate(e){(e.containerRect!==this.props.containerRect||this.props.measure&&!e.measure)&&this.setState({styles:this._calculatePositionStyles()})}componentDidMount(){this.setState({styles:this._calculatePositionStyles()})}render(){const{children:e}=this.props,t=function(e){for(var t=1;t({containerRect:e.containerRect})))(s)},76192:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});const o={IMMEDIATE:"IMMEDIATE",INTELLIGENT:"INTELLIGENT",DISABLED:"DISABLED"}},45395:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});const o={solid:"solid",dashed:"dashed",beveled:"beveled",inset:"inset",underline:"underline"}},87222:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});const o={SIDEBAR:"SIDEBAR",PANE:"PANE"}},89849:(e,t,n)=>{"use strict";n.d(t,{F:()=>o});const o={PASSWORD_REQUIRED:"PASSWORD_REQUIRED",CONNECTING:"CONNECTING",CONNECTED:"CONNECTED",CONNECTION_FAILED:"CONNECTION_FAILED"}},55024:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});const o={documentA:"documentA",documentB:"documentB",result:"result"}},9946:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});const o={USE_OPEN_DOCUMENT:"USE_OPEN_DOCUMENT",USE_FILE_DIALOG:"USE_FILE_DIALOG"}},52247:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});const o={DRAW:"DRAW",IMAGE:"IMAGE",TYPE:"TYPE"}},67699:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});const o={DEFAULT:"DEFAULT",EXTERNAL:"EXTERNAL",HISTORY:"HISTORY"}},52842:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});const o={POINT:"POINT",STROKE:"STROKE"}},20792:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o={TEXT_HIGHLIGHTER:"TEXT_HIGHLIGHTER",INK:"INK",INK_SIGNATURE:"INK_SIGNATURE",SIGNATURE:"SIGNATURE",STAMP_PICKER:"STAMP_PICKER",STAMP_CUSTOM:"STAMP_CUSTOM",SHAPE_LINE:"SHAPE_LINE",SHAPE_RECTANGLE:"SHAPE_RECTANGLE",SHAPE_ELLIPSE:"SHAPE_ELLIPSE",SHAPE_POLYGON:"SHAPE_POLYGON",SHAPE_POLYLINE:"SHAPE_POLYLINE",INK_ERASER:"INK_ERASER",NOTE:"NOTE",COMMENT_MARKER:"COMMENT_MARKER",TEXT:"TEXT",CALLOUT:"CALLOUT",PAN:"PAN",SEARCH:"SEARCH",DOCUMENT_EDITOR:"DOCUMENT_EDITOR",MARQUEE_ZOOM:"MARQUEE_ZOOM",REDACT_TEXT_HIGHLIGHTER:"REDACT_TEXT_HIGHLIGHTER",REDACT_SHAPE_RECTANGLE:"REDACT_SHAPE_RECTANGLE",DOCUMENT_CROP:"DOCUMENT_CROP",BUTTON_WIDGET:"BUTTON_WIDGET",TEXT_WIDGET:"TEXT_WIDGET",RADIO_BUTTON_WIDGET:"RADIO_BUTTON_WIDGET",CHECKBOX_WIDGET:"CHECKBOX_WIDGET",COMBO_BOX_WIDGET:"COMBO_BOX_WIDGET",LIST_BOX_WIDGET:"LIST_BOX_WIDGET",SIGNATURE_WIDGET:"SIGNATURE_WIDGET",DATE_WIDGET:"DATE_WIDGET",FORM_CREATOR:"FORM_CREATOR",LINK:"LINK",DISTANCE:"DISTANCE",PERIMETER:"PERIMETER",RECTANGLE_AREA:"RECTANGLE_AREA",ELLIPSE_AREA:"ELLIPSE_AREA",POLYGON_AREA:"POLYGON_AREA",CONTENT_EDITOR:"CONTENT_EDITOR",MULTI_ANNOTATIONS_SELECTION:"MULTI_ANNOTATIONS_SELECTION",MEASUREMENT:"MEASUREMENT",MEASUREMENT_SETTINGS:"MEASUREMENT_SETTINGS"}},77973:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});const o={SINGLE:"SINGLE",DOUBLE:"DOUBLE",AUTO:"AUTO"}},60132:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});const o={ANNOTATION_EDITING:"annotation_editing",FORMS:"acro_forms",DIGITAL_SIGNATURES:"digital_signatures",DOCUMENT_COMPARISON:"comparison",DOCUMENT_EDITING:"document_editing",WEB_VIEWER:"web:viewer",WEB_ANNOTATION_EDITING:"web:annotation_editing",INSTANT:"instant",SERVER_OPT_OUT_ANALYTICS:"server:disable-analytics",UI:"user_interface",TEXT_SELECTION:"text_selection",ELECTRON:"web:electron",FORM_DESIGNER:"editable_forms",COMMENTS:"comments",REDACTIONS:"redaction",ELECTRONIC_SIGNATURES:"electronic_signatures",CONTENT_EDITING:"content_editing",MEASUREMENT_TOOLS:"measurement_tools"}},24871:(e,t,n)=>{"use strict";n.d(t,{a:()=>r,u:()=>o});const o={square:"square",circle:"circle",diamond:"diamond",openArrow:"openArrow",closedArrow:"closedArrow",butt:"butt",reverseOpenArrow:"reverseOpenArrow",reverseClosedArrow:"reverseClosedArrow",slash:"slash"},r=Object.values(o)},4132:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});const o={WHOLE:"whole",ONE:"oneDp",TWO:"twoDp",THREE:"threeDp",FOUR:"fourDp",HALVES:"1/2",QUARTERS:"1/4",EIGHTHS:"1/8",SIXTEENTHS:"1/16"}},36489:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});const o={INCHES:"in",MILLIMETERS:"mm",CENTIMETERS:"cm",POINTS:"pt"}},79827:(e,t,n)=>{"use strict";n.d(t,{K:()=>o});const o={INCHES:"in",MILLIMETERS:"mm",CENTIMETERS:"cm",POINTS:"pt",FEET:"ft",METERS:"m",YARDS:"yd",KILOMETERS:"km",MILES:"mi"}},56966:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});const o={FORM_DESIGNER_ERROR:"FORM_DESIGNER_ERROR",MEASUREMENT_ERROR:"MEASUREMENT_ERROR"}},18025:(e,t,n)=>{"use strict";n.d(t,{V9:()=>i,Y4:()=>r,Zi:()=>o});const o={COMMENT:"COMMENT",RIGHT_POINTER:"RIGHT_POINTER",RIGHT_ARROW:"RIGHT_ARROW",CHECK:"CHECK",CIRCLE:"CIRCLE",CROSS:"CROSS",INSERT:"INSERT",NEW_PARAGRAPH:"NEW_PARAGRAPH",NOTE:"NOTE",PARAGRAPH:"PARAGRAPH",HELP:"HELP",STAR:"STAR",KEY:"KEY"},r={[o.COMMENT]:"comment",[o.RIGHT_POINTER]:"rightPointer",[o.RIGHT_ARROW]:"rightArrow",[o.CHECK]:"check",[o.CIRCLE]:"circle",[o.CROSS]:"cross",[o.INSERT]:"insert",[o.NEW_PARAGRAPH]:"newParagraph",[o.NOTE]:"note",[o.PARAGRAPH]:"paragraph",[o.HELP]:"help",[o.STAR]:"star",[o.KEY]:"key"},i=Object.keys(r).reduce(((e,t)=>(e[r[t]]=t,e)),{})},63632:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});const o={PDFA_1A:"pdfa-1a",PDFA_1B:"pdfa-1b",PDFA_2A:"pdfa-2a",PDFA_2U:"pdfa-2u",PDFA_2B:"pdfa-2b",PDFA_3A:"pdfa-3a",PDFA_3U:"pdfa-3u",PDFA_3B:"pdfa-3b",PDFA_4:"pdfa-4",PDFA_4E:"pdfa-4e",PDFA_4F:"pdfa-4f"}},39511:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});const o={DOM:"DOM",EXPORT_PDF:"EXPORT_PDF"}},80440:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});const o={LOW:"LOW",MEDIUM:"MEDIUM",HIGH:"HIGH"}},5038:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});const o={SharePoint:"SharePoint",Salesforce:"Salesforce",Maui_Android:"Maui_Android",Maui_iOS:"Maui_iOS",Maui_MacCatalyst:"Maui_MacCatalyst",Maui_Windows:"Maui_Windows"}},72131:(e,t,n)=>{"use strict";let o;n.d(t,{J:()=>o}),function(e){e.NO="NO",e.VIA_VIEW_STATE="VIA_VIEW_STATE",e.VIA_BACKEND_PERMISSIONS="VIA_BACKEND_PERMISSIONS",e.LICENSE_RESTRICTED="LICENSE_RESTRICTED"}(o||(o={}))},51731:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});const o={TOP:"TOP",BOTTOM:"BOTTOM",LEFT:"LEFT",RIGHT:"RIGHT",TOP_LEFT:"TOP_LEFT",TOP_RIGHT:"TOP_RIGHT",BOTTOM_RIGHT:"BOTTOM_RIGHT",BOTTOM_LEFT:"BOTTOM_LEFT"}},47710:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});const o={CONTINUOUS:"CONTINUOUS",PER_SPREAD:"PER_SPREAD",DISABLED:"DISABLED"}},96617:(e,t,n)=>{"use strict";n.d(t,{S:()=>o});const o={TEXT:"text",PRESET:"preset",REGEX:"regex"}},68382:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});const o={SELECTED:"SELECTED",EDITING:"EDITING"}},64494:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});const o={IF_SIGNED:"IF_SIGNED",HAS_WARNINGS:"HAS_WARNINGS",HAS_ERRORS:"HAS_ERRORS",NEVER:"NEVER"}},19702:(e,t,n)=>{"use strict";n.d(t,{f:()=>o});const o={ANNOTATIONS:"ANNOTATIONS",BOOKMARKS:"BOOKMARKS",DOCUMENT_OUTLINE:"DOCUMENT_OUTLINE",THUMBNAILS:"THUMBNAILS",CUSTOM:"CUSTOM"}},65872:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});const o={START:"START",END:"END"}},37231:(e,t,n)=>{"use strict";n.d(t,{H:()=>o});const o={signatureOnly:"signatureOnly",signatureAndDescription:"signatureAndDescription",descriptionOnly:"descriptionOnly"}},67628:(e,t,n)=>{"use strict";n.d(t,{H:()=>o});const o={ELECTRONIC_SIGNATURES:"electronic_signatures",LEGACY_SIGNATURES:"legacy_signatures",NONE:"none"}},59386:(e,t,n)=>{"use strict";n.d(t,{f:()=>o});const o={ALWAYS:"ALWAYS",NEVER:"NEVER",USING_UI:"USING_UI"}},89e3:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});const o={TOP:"TOP",BOTTOM:"BOTTOM"}},28098:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});const o={AUTO:"AUTO",FIT_TO_WIDTH:"FIT_TO_WIDTH",FIT_TO_VIEWPORT:"FIT_TO_VIEWPORT",CUSTOM:"CUSTOM"}},68258:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>f,sS:()=>p,z5:()=>d});var o=n(80857),r=n(29662),i=n.n(r),a=n(57742),s=n(13997),l=n(53678);const c=(0,o.Z)("I18n"),u=e=>e.split("-")[0],d=e=>{let t=e;return i().includes(t)||(t=u(t),c(i().includes(t),`The "${t}" locale is not supported. Available locales are: ${i().join(", ")}. You can also add "${t}" as a custom one with PSPDFKit.I18n.locales.push('${t}')`)),t};async function p(e){await(0,a.EV)(e),await(0,a.wP)(u(e))}const f={locales:i(),messages:a.ZP,preloadLocalizationData:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof t.baseUrl&&(0,l.Pn)(t.baseUrl);const o=t.baseUrl||(0,s.SV)(window.document);n.p=o;const r=d(e);await p(r)}}},29662:e=>{e.exports=["cs","cy","da","de","el","en-GB","en","es","fi","fr-CA","fr","hr","id","it","ja","ko","ms","nb-NO","nl","pl","pt-PT","pt","ru","sk","sl","sv","th","tr","uk","zh-Hans","zh-Hant"]},57742:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l,wP:()=>u,EV:()=>c});var o=n(80857),r=n(37756);const i={cs:()=>n.e(3005).then(n.t.bind(n,12282,23)),cy:()=>n.e(7050).then(n.t.bind(n,26873,23)),da:()=>n.e(752).then(n.t.bind(n,5407,23)),de:()=>n.e(8869).then(n.t.bind(n,60333,23)),el:()=>n.e(1882).then(n.t.bind(n,80056,23)),en:()=>n.e(5014).then(n.t.bind(n,32778,23)),es:()=>n.e(1252).then(n.t.bind(n,53802,23)),fi:()=>n.e(5528).then(n.t.bind(n,15857,23)),fr:()=>n.e(1145).then(n.t.bind(n,75828,23)),hr:()=>n.e(9677).then(n.t.bind(n,34029,23)),id:()=>n.e(5192).then(n.t.bind(n,32419,23)),it:()=>n.e(3424).then(n.t.bind(n,81998,23)),ja:()=>n.e(4728).then(n.t.bind(n,55389,23)),ko:()=>n.e(1089).then(n.t.bind(n,97301,23)),ms:()=>n.e(1518).then(n.t.bind(n,55367,23)),nb:()=>n.e(2279).then(n.t.bind(n,93673,23)),nl:()=>n.e(9486).then(n.t.bind(n,80953,23)),pl:()=>n.e(6523).then(n.t.bind(n,12533,23)),pt:()=>n.e(4932).then(n.t.bind(n,28708,23)),ru:()=>n.e(1385).then(n.t.bind(n,63409,23)),sk:()=>n.e(1077).then(n.t.bind(n,87042,23)),sl:()=>n.e(1277).then(n.t.bind(n,13367,23)),sv:()=>n.e(2727).then(n.t.bind(n,64520,23)),th:()=>n.e(1063).then(n.t.bind(n,69909,23)),tr:()=>n.e(9384).then(n.t.bind(n,99102,23)),uk:()=>n.e(1843).then(n.t.bind(n,32058,23)),zh:()=>n.e(4072).then(n.t.bind(n,2725,23))},a=(0,o.Z)("I18n"),s={},l=s;async function c(e){if(!(e in s))try{const t=await r.o[e]();s[e]=t.default}catch(t){a(!1,`Cannot find translations for "${e}". Please retry or add them manually to PSPDFKit.I18n.messages["${e}"]`)}return s[e]}async function u(e){if(i[e])try{await i[e]()}catch(t){a(!1,`Cannot find locale data for "${e}". Please retry or contact support for further assistance.`)}}},37756:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});const o={cs:()=>n.e(3579).then(n.t.bind(n,46984,19)),cy:()=>n.e(7578).then(n.t.bind(n,50706,19)),da:()=>n.e(1139).then(n.t.bind(n,32156,19)),de:()=>n.e(1009).then(n.t.bind(n,47875,19)),el:()=>n.e(1323).then(n.t.bind(n,87908,19)),"en-GB":()=>n.e(6045).then(n.t.bind(n,29207,19)),en:()=>n.e(1874).then(n.t.bind(n,70840,19)),es:()=>n.e(473).then(n.t.bind(n,59657,19)),fi:()=>n.e(9390).then(n.t.bind(n,5317,19)),"fr-CA":()=>n.e(2916).then(n.t.bind(n,76215,19)),fr:()=>n.e(3360).then(n.t.bind(n,28435,19)),hr:()=>n.e(157).then(n.t.bind(n,24733,19)),id:()=>n.e(9726).then(n.t.bind(n,33615,19)),it:()=>n.e(8839).then(n.t.bind(n,24068,19)),ja:()=>n.e(3463).then(n.t.bind(n,87854,19)),ko:()=>n.e(1168).then(n.t.bind(n,23980,19)),ms:()=>n.e(1391).then(n.t.bind(n,48853,19)),"nb-NO":()=>n.e(4966).then(n.t.bind(n,16844,19)),nl:()=>n.e(5677).then(n.t.bind(n,14314,19)),pl:()=>n.e(4899).then(n.t.bind(n,16365,19)),"pt-PT":()=>n.e(5431).then(n.t.bind(n,55910,19)),pt:()=>n.e(517).then(n.t.bind(n,7638,19)),ru:()=>n.e(8057).then(n.t.bind(n,21652,19)),sk:()=>n.e(9971).then(n.t.bind(n,57298,19)),sl:()=>n.e(5595).then(n.t.bind(n,33943,19)),sv:()=>n.e(6530).then(n.t.bind(n,99649,19)),th:()=>n.e(5666).then(n.t.bind(n,81446,19)),tr:()=>n.e(407).then(n.t.bind(n,18141,19)),uk:()=>n.e(3095).then(n.t.bind(n,76911,19)),"zh-Hans":()=>n.e(6678).then(n.t.bind(n,47224,19)),"zh-Hant":()=>n.e(7579).then(n.t.bind(n,58372,19))}},3479:(e,t,n)=>{e.exports=n(74855).default},31835:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});class o{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.events=e,this.listeners={}}on(e,t){if("function"!=typeof t)throw new TypeError("Listener must be a function");if(!this.supportsEvent(e))throw new TypeError(`Event '${e}' is not supported. Only supporting ${this.events.join(", ")}`);this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)}off(e,t){if("function"!=typeof t)throw new TypeError("Listener must be a function");if(!this.supportsEvent(e))throw new TypeError(`Event '${e}' is not supported. Only supporting ${this.events.join(", ")}`);const n=this.listeners[e]||[];n.forEach(((e,o)=>{e===t&&n.splice(o,1)})),0===n.length&&delete this.listeners[e]}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o{e.call(null,...n)}))}supportsEvent(e){return 0===this.events.length||-1!==this.events.indexOf(e)}}},8503:(e,t,n)=>{"use strict";n.d(t,{c:()=>c});var o=n(84121),r=n(35369),i=n(3534),a=n(76192),s=n(96846);class l{constructor(e,t){(0,o.Z)(this,"localFormFieldsMapping",(0,r.D5)()),(0,o.Z)(this,"onCreate",(e=>{this.localFormFieldsMapping=this.localFormFieldsMapping.set(e.id,e.name)})),(0,o.Z)(this,"onUpdate",(e=>{this.onCreate(e)})),(0,o.Z)(this,"onDelete",(e=>{this.localFormFieldsMapping=this.localFormFieldsMapping.delete(e.id)})),this.formFieldProvider=e,this.localFormFieldCallbacks=t}createBackendObject(e){return this.formFieldProvider.createFormField(e)}updateBackendObject(e){return this.formFieldProvider.updateFormField(e)}deleteBackendObject(e){return this.formFieldProvider.deleteFormField(e)}createStoreObjects(e){this.localFormFieldsMapping=this.localFormFieldsMapping.withMutations((t=>{e.forEach((e=>{t.set(e.id,e.name)}))})),this.localFormFieldCallbacks.createFormFields(e)}updateStoreObjects(e){this.localFormFieldsMapping=this.localFormFieldsMapping.withMutations((t=>{e.forEach((e=>{t.set(e.id,e.name)}))})),this.localFormFieldCallbacks.updateFormFields(e)}deleteStoreObjects(e){this.localFormFieldsMapping=this.localFormFieldsMapping.withMutations((t=>{e.forEach((e=>{t.delete(e)}))})),this.localFormFieldCallbacks.deleteFormFields(e)}validateObject(e){if(!e.name||"string"!=typeof e.name||!e.id||"string"!=typeof e.id)return!1;try{return(0,i.Gu)(e),!0}catch(e){return!1}}getObjectById(e){const t=this.localFormFieldsMapping.get(e);return t?this.localFormFieldCallbacks.getFormFieldByName(t):null}getObjectId(e){return e.id}refresh(){this.localFormFieldCallbacks.refreshSignaturesInfo()}syncChanges(){return this.formFieldProvider.syncChanges()}}class c extends s.a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.u.IMMEDIATE,r=arguments.length>3?arguments[3]:void 0;super(new l(e,t),n,r),(0,o.Z)(this,"loadFormFields",function(){let e=null;return async function(){e||(e=this.formFieldProvider.loadFormFields()),await e}}()),this.formFieldProvider=e}}},60797:(e,t,n)=>{"use strict";n.d(t,{D:()=>l,V:()=>s});var o=n(84121),r=n(35369);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t{Object.defineProperty(n,e,{get(){return this.get(e)},set(t){this.set(e,t)}})}))}class l extends((0,r.WV)({})){constructor(e){super(e)}}},55615:(e,t,n)=>{"use strict";n.d(t,{mH:()=>f,ZP:()=>v,il:()=>g});var o=n(84121),r=n(35369),i=n(21614),a=n(50974);function s(e,t){const n=t.record_rev,o=e.stagedRecordsChanges;if((0,a.kG)("number"==typeof n&&n>=0,"Tried to apply changes but the server responded with no `record_rev`"),(0,a.kG)(n>=e.localRecordsRev,"The server revision number is lower than the current one."),n<=e.localRecordsRev)return e;(0,a.kG)("number"==typeof t.previous_record_rev,"The payload must have a `previous_record_rev`"),(0,a.kG)(t.previous_record_rev>=e.localRecordsRev,"The payload's `previous_record_rev` is unknown to us, this means we missed out on changes.");let i=0;const s=e.requiredAttachmentIds;let l=(0,r.l4)(),c=(0,r.aV)();const u=[],d=e.localRecordsContents.withMutations((e=>{let n;n={accepted:{created:t=>{let{id:n,permissions:r,group:s,isAnonymous:l}=t;(0,a.kG)(!e.has(n),"There's already a record with the newly created record id");const c=o.find((e=>e.id===n));if(!c)return;c.resolve(null);const{content:u}=c;e.set(n,{content:u,permissions:r,group:s,isAnonymous:l}),i++},updated:t=>{let{id:n,permissions:r,group:s,isAnonymous:l}=t;(0,a.kG)(e.has(n),"Tried to update a record that is not present");const c=o.find((e=>e.id===n));if(!c)return;c.resolve(!0);const{content:u}=c;e.set(n,{content:u,permissions:r,group:s,isAnonymous:l}),i++},deleted:t=>{(0,a.kG)(e.has(t),"Tried to delete a record that is not present");const n=o.find((e=>e.id===t));n&&(n.resolve(!0),e.delete(t),i++)}},rejected:(e,t)=>{let[n,r]=t;const d=o.find((e=>e.id===n));if(d)switch(i++,r){case"conflict":d.reject(new a.p2("The server rejected the change due to a conflict")),"created"!==e&&u.push(n);break;case"attachment_not_found":{const e=Object.keys(d.attachments),t=!s.intersect(e).isEmpty();if(d.attachments&&!t&&Object.keys(d.attachments).length>0){l=l.union(Object.keys(d.attachments)),c=c.push(d);break}}default:d.reject(new a.p2("The server rejected the change")),"created"!==e&&u.push(n)}},changes:{created:t=>{(0,a.kG)(!e.has(t.id),"The change set tried to add a record that is already present");const{content:n,permissions:o,group:r,isAnonymous:i}=t;e.set(t.id,{content:n,permissions:o,group:r,isAnonymous:i})},updated:t=>{(0,a.kG)(e.has(t.id),`The change set tried to update a record with id ${t.id} that was not present`);const{content:n,permissions:o,group:r,isAnonymous:i}=t;e.set(t.id,{content:n,permissions:o,group:r,isAnonymous:i}),u.push(t.id)},deleted:t=>{(0,a.kG)(e.has(t),`The change set you tried to delete a record with id ${t} that was not present`),e.delete(t),u.push(t)}}},t.accepted.created.forEach(n.accepted.created),t.accepted.updated.forEach(n.accepted.updated),t.accepted.deleted.forEach(n.accepted.deleted),["created","updated","deleted"].forEach((e=>{Object.entries(t.rejected[e]).forEach((t=>{let o=t[1];"conflict"!==o&&"attachment_not_found"!==o&&(o=null),n.rejected(e,[t[0],o])}))})),t.changes.created.forEach(n.changes.created),t.changes.updated.forEach(n.changes.updated),t.changes.deleted.forEach(n.changes.deleted)}));(0,a.kG)(i===o.size,"Some changes were not processed by the server");const p=function(e,t){const n=e.localRecordsChanges.filter((e=>"created"===e.type||!t.includes(e.id)||(e.reject(new a.p2("Request was cleared because a newer revision arrived.")),!1)));return e.set("localRecordsChanges",n)}(e,(0,r.aV)(u));return p.withMutations((e=>e.set("requiredAttachmentIds",l).update("localRecordsChanges",(e=>e.merge(c))).set("stagedRecordsChanges",(0,r.aV)()).set("localRecordsContents",d).set("localRecordsRev",n)))}class l{constructor(e,t){(0,o.Z)(this,"_currentDelay",0),this._initialDelay=e,this._delayGrowthCap=t,this._currentDelay=e}schedule(e){const t=this._currentDelay;this.cancel(),te()),t)}cancel(){this._timeout&&(clearTimeout(this._timeout),this._timeout=null)}reset(){this._currentDelay=this._initialDelay,this.cancel()}}var c=n(23413),u=n(89551);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){for(var t=1;t{e._currentRequest&&!e._currentRequestHasChanges&&(e._abortCurrentRequest(),setTimeout((()=>e.nextCycle().catch(console.log)),0))}))}class v{constructor(e){let{getState:t,setState:n,onChanges:r,onAcceptedRecords:i,longPollingTimeout:a=f,backoffTimer:s=new l(1e3,6e4),RequestClass:u=c.Z}=e;(0,o.Z)(this,"onDocumentHandleConflictCallback",(()=>{})),(0,o.Z)(this,"_lastAbortedRequest",null),(0,o.Z)(this,"_handleBeforeUnload",(()=>{this._abortCurrentRequest()})),this._currentRequestHasChanges=!1,this._isDestroyed=!1,this.getState=t,this.setState=n,this.onChangesCallback=r||(()=>{}),this.onAcceptedRecordsCallback=i||(()=>{}),this.RequestClass=u,this._longPollingTimeout=a,this._backoffTimer=s,window.addEventListener("beforeunload",this._handleBeforeUnload),m.add(this)}async nextCycle(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._longPollingTimeout;if(this._isDestroyed)return;if(this._currentRequest&&this._currentRequestHasChanges)return(0,a.kG)(this._currentRequestPromise,"Expected to have request running but no one was ever made."),this._currentRequestPromise;this._currentRequest&&(this._abortCurrentRequest(),this._backoffTimer&&this._backoffTimer.cancel());const o=this.getState(),l=o.localRecordsChanges;this.setState(o.set("localRecordsChanges",(0,r.aV)()).set("stagedRecordsChanges",l));const c=this._createSyncRequest(),d=!l.isEmpty(),f=new Promise(((n,o)=>{e=n,t=o})),m=(0,i.v4)(),g={request_id:m,record_rev:o.localRecordsRev,changes:{created:l.filter((e=>"created"===e.type)).map((e=>{let{id:t,content:n,group:o,isAnonymous:r}=e;return p(p(p({id:t},"boolean"==typeof r&&{isAnonymous:r}),n&&{content:n}),o&&{group:o})})).toJS(),updated:l.filter((e=>"updated"===e.type)).map((e=>{let{id:t,content:n,group:o,isAnonymous:r}=e;return p(p(p({id:t},"boolean"==typeof r&&{isAnonymous:r}),n&&{content:n}),o&&{group:o})})).toJS(),deleted:l.filter((e=>"deleted"===e.type)).map((e=>e.id)).toJS()},timeout:d?0:n},v=o.requiredAttachmentIds.isEmpty()?g:function(e,t){const n=new FormData;return n.append("sync",JSON.stringify(e)),t.requiredAttachmentIds.forEach((e=>{var o;n.append(e,null===(o=t.localRecordsChanges.find((t=>t.attachments.hasOwnProperty(e))))||void 0===o?void 0:o.attachments[e])})),n}(g,o);return c.request({method:"POST",data:v}).then((t=>{void 0!==t.request_id&&(0,a.kG)(t.request_id===m,"The response doesn't match the client request ID"),(0,a.kG)(c!==this._lastAbortedRequest,"A manually aborted request still managed to resolve."),(0,a.kG)(c===this._currentRequest,"Expected the resolved request to be the latest created request."),(0,a.kG)(!this._isDestroyed,"The instance is destroyed yet the request managed to resolve.");const n=this.getState(),o=s(n,p(p({},t),{},{previous_record_rev:n.localRecordsRev}));this.setState(o),this._currentRequestHasChanges=!1,this._currentRequest=null,h-=1,e();try{t.record_rev>n.localRecordsRev&&(this.onAcceptedRecordsCallback(t.accepted),this.onChangesCallback(t.changes)),this._scheduleNextCycle(!1,(()=>!o.localRecordsChanges.isEmpty()))}catch(e){throw h+=1,e}})).catch((e=>{if("Outdated layer handle"===e.message&&!this._isDestroyed)return this.onDocumentHandleConflictCallback(),this.destroy(),t();c===this._lastAbortedRequest?t(new a.p2("A manually aborted request still managed to reject.")):c!==this._currentRequest?t(new a.p2("Expected the reject request to be the latest created request.")):this._isDestroyed?t(new a.p2("The instance is destroyed yet the request managed to reject.")):t(new a.p2("Pushing changes failed"+(e&&e.message?`: ${e.message}`:"")));const n=(0,u.n)({oldChanges:l,newChanges:this.getState().localRecordsChanges});this.setState(o.set("localRecordsChanges",n).set("stagedRecordsChanges",(0,r.aV)())),this._currentRequestHasChanges=!1,this._currentRequest=null,h-=1,this._scheduleNextCycle(!0)})),h+=1,h>3&&(0,a.ZK)(`PSPDFKit: detected ${h} open sync requests. This might be due to multiple PSPDFKit for Web instances running in parallel, did you forget to \`unload\` any of them? Due to the browser limit of maximum number of default simultaneous persistent connections per server, this might cause subsequent requests to be queued and processed later which might result in a slowdown for your app.`),this._currentRequest=c,this._currentRequestHasChanges=d,this._currentRequestPromise=f,f}setOnDocumentHandleConflictCallback(e){this.onDocumentHandleConflictCallback=e}destroy(){this._abortCurrentRequest(),window.removeEventListener("beforeunload",this._handleBeforeUnload),this._isDestroyed=!0,m.delete(this)}log(e){(0,a.cM)(e)}_scheduleNextCycle(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!0;const n=()=>{this.nextCycle().catch(this.log)};e?this._backoffTimer.schedule(n):(this._backoffTimer.reset(),(this._longPollingTimeout>0||t())&&n())}_createSyncRequest(){const{serverURL:e,authPayload:t}=this.getState().requestInfo;return(0,a.kG)("string"==typeof e,"Cannot call request without serverURL"),(0,a.kG)(t&&"string"==typeof t.auth_token,"Cannot call request without authPayload"),new this.RequestClass(e,t.auth_token)}_abortCurrentRequest(){this._currentRequest&&(h-=1,this._lastAbortedRequest=this._currentRequest,this._currentRequest.abort(),this._currentRequest=null)}}},89551:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});var o=n(50974);function r(){let{oldChanges:e,newChanges:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e;return t.forEach((e=>{n=i({oldChanges:n,newChange:e})})),n}function i(){let{oldChanges:e,newChange:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t,r=e.filter((e=>{if(e.id===t.id){switch(t.type){case"updated":if("created"===e.type){n=a(e,t.set("type","created"));break}if("updated"===e.type){n=a(e,t);break}case"deleted":if("created"===e.type){e.resolve(),t.resolve(),n=null;break}if("updated"===e.type){n=a(e,t);break}default:e.reject(new o.p2("Request was cleared because a more recent update was queued."))}return!1}return!0}));return n&&(r=r.push(n)),r}function a(e,t){const n=e.resolve,o=t.resolve,r=e.reject,i=t.reject;return t.set("resolve",(e=>{n(e),o(e)})).set("reject",(e=>{r(e),i(e)}))}},71652:(e,t,n)=>{"use strict";n.d(t,{V:()=>r,h:()=>i});var o=n(50974);function r(e,t){let n;return n=e instanceof Error?e:new Error(e),Object.setPrototypeOf(n,r.prototype),n.reason=t,n}function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new r(n?`Some changes could not be ${t?"synced":"saved"} to backend: ${n}`:`Some changes could not be ${t?"synced":"saved"} to backend.`,e)}r.prototype=Object.create(o.p2.prototype,{name:{value:"PSPDFKitSaveError",enumerable:!1}})},83253:(e,t,n)=>{"use strict";n.d(t,{y:()=>o,z:()=>r});const o=1,r=2},34710:(e,t,n)=>{"use strict";n.d(t,{f:()=>s});var o=n(84121),r=n(35369),i=n(50974),a=n(88804);class s{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4?arguments[4]:void 0;if(this.examples=t,this.customStyles=n,this.document=a?a.ownerDocument:e,this.wrapper=e.createElement("div"),this.wrapper.setAttribute("aria-hidden","true"),this.wrapper.className=o,this._setStyles(this.wrapper,Object.assign({},s.defaultWrapperStyles,n)),t instanceof r.aV)t.forEach((t=>{const n="string"==typeof t?t:"",o=e.createElement("span");o.setAttribute("aria-hidden","true"),o.style.display="inline-block",o.style.whiteSpace="pre-wrap",o.innerText=n,this.wrapper.appendChild(o)}));else{const e="string"==typeof t?t:"";this.wrapper.innerHTML=e}const l=a||this.document.documentElement;(0,i.kG)(l,"documentElement must not be null"),l.appendChild(this.wrapper)}measure(){const e=a.UL.fromClientRect(this.wrapper.getBoundingClientRect()),t=e.getLocation().scale(-1);return this.examples instanceof r.aV?this.examples.map(((e,n)=>{const o=this.wrapper.childNodes[n];return a.UL.fromClientRect(o.getBoundingClientRect()).translate(t)})):(0,r.aV)([e.translate(t)])}remove(){this.wrapper.parentNode&&this.wrapper.parentNode.removeChild(this.wrapper),this.wrapper=null,this.examples=null}_setStyles(e,t){for(const n in t)e.style[n]=t[n]}}(0,o.Z)(s,"defaultWrapperStyles",Object.freeze({maxWidth:"none",display:"inline-block",position:"absolute",height:"auto",width:"auto",margin:"0",padding:"0",whiteSpace:"nowrap",top:"-10000px",left:"-10000px",fontSize:"80px",fontWeight:"normal"}))},60619:(e,t,n)=>{"use strict";n.d(t,{GA:()=>O,Nk:()=>A,oD:()=>k});var o=n(50974),r=n(35369),i=n(67366),a=n(15973),s=n(82481),l=n(18146),c=n(80857),u=n(25797),d=n(95651),p=n(69939),f=n(17746),h=n(33754),m=n(68250),g=n(55909),v=n(19815),y=n(59780),b=n(10284),w=n(22571),S=n(45395),E=n(51269),P=n(60132);const x=(0,c.Z)("Annotations"),D="The API you're trying to use requires a annotation editing license. Annotation Editing is a component of PSPDFKit for Web and thus sold separately.\nhttps://pspdfkit.com/guides/web/current/annotations/introduction-to-annotations/",C="WidgetAnnotation can only be modified if you are using Standalone setup or with Instant turned on. If you are using server backed setup, make sure `instant` is set to `true` in configuration.",k="The API you're trying to use requires a measurement license. Measurement is a component of PSPDFKit for Web and sold separately.";class A extends m.I{constructor(e,t){super(t().annotationManager),this.dispatch=e,this.getState=t}async create(e,t){const n=this.getState(),r=e.map((e=>{T(n,e,"create");const r=e.id;if("string"==typeof r&&x(!n.annotations.has(r),`Annotation id (${r}) is already used.`),e instanceof a.x_&&t){O(n,e)||x(t.some((t=>t instanceof y.Wi&&t.name===e.formFieldName)),`Widget orphan: The widget annotation can't be created because no form field was found with the name '${e.formFieldName}'. Please ensure that you create the corresponding form field together with the widget via instance.create([widget, formField]).`)}const{annotationCreatorName:i,annotationCreatorNameReadOnly:s}=n;if(e.creatorName&&e.creatorName!==i&&s)throw new o.p2("The annotation creator name is different from the one set on the JWT.");M(e);let l=e.withMutations((t=>{t.merge((0,d.lx)(n.set("currentItemPreset",null))),["name","id","creatorName","createdAt","updatedAt"].map((n=>e[n]&&t.set(n,e[n])))}));if(e instanceof a.x_&&e.group)throw new o.p2("If you want to define the `group` of this widget annotation, pass it to the corresponding form field instead. Widget annotations inherit the `group` from their form field.");if(l instanceof a.x_&&(l=l.delete("group")),e instanceof a.x_){const n=this.getState;if((null==t?void 0:t.some((t=>t instanceof y.Wi&&t.name===e.formFieldName)))&&!!O(n(),e))throw new o.p2(`The widget annotation can't be created because the form field it'll be created with has a duplicated form field name '${e.formFieldName}'. Please ensure the form field name is unique.`);setTimeout((()=>{x(l instanceof a.x_,"Expected widget annotation");null==O(n(),l)&&(this.dispatch((0,p.hQ)(l)),(0,o.ZK)(`Widget orphan: The widget annotation has been deleted because no form was field found with the name ${l.formFieldName} after 500ms. Please ensure that once instance.create() resolves, a corresponding form field is created with instance.create(). (See: https://pspdfkit.com/api/web/PSPDFKit.Instance.html#create)`))}),500)}return l=_(l),l}));return(0,i.dC)((()=>{r.forEach((e=>{e instanceof Error||(this.dispatch((0,p.$d)(e)),this.autoSave())}))})),(0,E.s)(r)}async update(e){const t=this.getState(),n=e.map((e=>{var n;T(t,e,"update"),x("string"==typeof e.id,"The annotation you passed to Instance.update() has no id.\nPlease use Instance.create() first to assign an id.");const r=t.annotations.get(e.id);x(r,"An annotation that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this annotation was skipped."),x(!(e instanceof a.sK&&e.imageAttachmentId!==(null===(n=t.annotations.get(e.id))||void 0===n?void 0:n.imageAttachmentId)),"Changing the imageAttachmentId of an annotation is not allowed."),x(t.backend),t.backend.isCollaborationPermissionsEnabled()||e.group===r.group&&e.isEditable===r.isEditable&&e.isDeletable===r.isDeletable&&e.canSetGroup===r.canSetGroup||(e=e.set("group",r.group).set("isEditable",r.isEditable).set("isDeletable",r.isDeletable).set("canSetGroup",r.canSetGroup),(0,o.ZK)("`group`, `isEditable`, `isDeletable` and `canSetGroup` are only relevant when Collaboration Permissions are enabled in server backed setup. You do not have it enabled so these values are set to `undefined`."));if(!e.delete("group").equals(r.delete("group"))&&!(0,b.CM)(r,t))throw new o.p2("You don't have permission to update this annotation.");if(e instanceof a.x_&&e.group!==r.group)throw new o.p2("The `group` property of widget annotations is read only and can't be updated directly. If you want to do that you should update the `group` property of the connected form field and this annotation will inherit that `group`.");if(e.group!==r.group&&!(0,b.uW)(r,t))throw new o.p2("You don't have permission to update the `group` of this annotation.");if(e.isEditable!==r.isEditable||e.isDeletable!==r.isDeletable||e.canSetGroup!==r.canSetGroup)throw new o.p2("You can't update `isEditable`, `canSetGroup` or `isDeletable` since they are read only properties which depend on the `group` property.");if(e.creatorName!==r.creatorName&&t.annotationCreatorNameReadOnly)throw new o.p2("You can't change the creatorName of an annotation if it was already set on the JWT.");const i=(e=_(e)).set("updatedAt",new Date);return M(i),i}));return n.length>0&&(0,i.dC)((()=>{n.forEach((e=>{e instanceof Error||this.dispatch((0,p.FG)(e))})),this.autoSave()})),(0,E.s)(n)}async delete(e){const t=this.getState(),n=e.map((e=>{T(t,e,"delete");const n=t.annotations.get(e.id);if(x(n,`No annotation with id ${e.id} found.`),!(0,b.Kd)(n,t))throw new o.p2("You don't have permission to delete this annotation.");return e}));return n.length>0&&(0,i.dC)((()=>{n.forEach((e=>{e instanceof Error||this.dispatch((0,p.hQ)(e))})),this.autoSave()})),(0,E.s)(n)}async ensureChangesSaved(e){x("string"==typeof e.id,"The annotation you passed to Instance.ensureChangesSaved() has no id.\nPlease use Instance.create() first to assign an id.");const{annotationManager:t}=this.getState();return x(t),await t.ensureObjectSaved(e)}async getObjectById(e){x("string"==typeof e,"The supplied id is not a valid id.");const{annotations:t,features:n}=this.getState();return(0,v.Vz)(n)?t.get(e):null}}function O(e,t){const n=e.annotations.get(t.id);let o=t.formFieldName;return null!=n&&null!=n.formFieldName&&(o=n.formFieldName),null!=o?e.formFields.get(o):null}function T(e,t,n){const{features:r}=e;if(!(0,v.Vz)(r)){if(!(t instanceof s.Zc||t instanceof a.sK))throw new o.p2(`Annotations: ${D}`);if(!0===t.isSignature&&!r.includes(P.q.ELECTRONIC_SIGNATURES))throw new o.p2("Annotations: The API you're trying to use requires either an electronic signatures or annotation editing license. Electronic Signatures and Annotation Editing are components of PSPDFKit for Web and thus sold separately.\nhttps://pspdfkit.com/guides/web/current/annotations/introduction-to-annotations/");if(!t.isSignature||!r.includes(P.q.ELECTRONIC_SIGNATURES))throw new o.p2(`Annotations: ${D}`)}let i="";t.id&&(i=` with id "${t.id}"`),t instanceof a.x_&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{features:n}=e;x(n.includes(P.q.FORM_DESIGNER),(t||"")+g.RB),x((0,v.k_)(e.backend),C)}(e,`Tried to ${n} a widget annotation${i}. Widget annotations are part of forms. `),x(!(t instanceof l.Z)||r.includes(P.q.REDACTIONS),`Tried to ${n} a redaction annotation${i}. ${u.q}`),x(!(t instanceof s.UX&&t.isMeasurement())||r.includes(P.q.MEASUREMENT_TOOLS),`Tried to ${n} a measurement annotation${i}. ${k}`)}function I(e){x(e instanceof s.UL,"`boundingBox` must be an instance of PSPDFKit.Geometry.Rect");for(const[t,n]of e)x("number"==typeof n,`invalid value \`${n}\` for \`boundingBox.${t}\``)}function F(e){x(e instanceof s.E9,"`startPoint` and `endPoint` must be instances of PSPDFKit.Geometry.Point");for(const[t,n]of e)x("number"==typeof n,`invalid value \`${n}\` for \`point.${t}\``)}function M(e){if(x(e instanceof a.q6,"Invalid annotation"),x("number"==typeof e.pageIndex,"`pageIndex` must be a number"),x("number"==typeof e.opacity,"`opacity` must be a number"),x("boolean"==typeof e.noView,"`noView` must be a boolean"),x("boolean"==typeof e.noPrint,"`noPrint` must be a boolean"),x("boolean"==typeof e.hidden,"`hidden` must be a boolean"),x(null==e.customData||(0,o.PO)(e.customData)&&(0,o.AK)(e.customData),"`customData` must be a serializable object"),I(e.boundingBox),"text"in e&&null!=e.text&&(x("object"==typeof e.text&&null!==e.text,"`text` is not an object with properties `format` and `value`"),x("plain"===e.text.format||"xhtml"===e.text.format,"Invalid text format"),x("string"==typeof e.text.value,"`text.value` must be a string")),e instanceof s.Qi&&x("plain"===e.text.format,"Invalid text format. Only `plain` format is supported"),e instanceof a.x_){if(e.additionalActions)for(const[t,n]of Object.entries(e.additionalActions))x("onBlur"===t||"onFocus"===t||"onInput"===t||"onFormat"===t||"onChange"===t,`Invalid attribute ${t} in \`additionalActions\`. Supported attributes: \`onBlur\`, \`onFocus\`, \`onInput\`, \`onFormat\`, \`onChange\``),x(n instanceof w.b,`Invalid attribute type of ${t} in \`additionalActions\`. ${t} must be of type \`PSPDFKit.Actions.JavaScriptAction\``);x("string"==typeof e.formFieldName&&e.formFieldName.length>0,"Annotation attribute `formFieldName` must be of type `string` and larger than 0 characters")}if((e instanceof a.x_||e instanceof a.gd)&&(null!=e.isItalic&&x("boolean"==typeof e.isItalic,"Annotation attribute `isItalic` must be of type `boolean`"),null!=e.isBold&&x("boolean"==typeof e.isBold,"Annotation attribute `isBold` must be of type `boolean`"),null!=e.verticalAlign&&x("string"==typeof e.verticalAlign&&("top"===e.verticalAlign||"center"===e.verticalAlign||"bottom"===e.verticalAlign),"Annotation attribute `verticalAlign` must be of type `string` and either `top`, `center`, or `bottom`"),null!=e.horizontalAlign&&x("string"==typeof e.horizontalAlign&&("left"===e.horizontalAlign||"center"===e.horizontalAlign||"right"===e.horizontalAlign),"Annotation attribute `horizontalAlign` must be of type `string` and either `left`, `center`, or `right`"),null!=e.borderWidth&&x("number"==typeof e.borderWidth,"Annotation attribute `borderWidth` must be of type `number`"),null!=e.borderStyle&&x(e.borderStyle===S.N.solid||e.borderStyle===S.N.dashed||e.borderStyle===S.N.beveled||e.borderStyle===S.N.inset||e.borderStyle===S.N.underline,"Annotation attribute `borderStyle` must be one of `solid`, `dashed`, `beveled`, `inset`, `underline`"),null!=e.font&&x("string"==typeof e.font&&e.font.length>0,"Annotation attribute `font` must be of type `string` and larger than 0 characters."),null!=e.fontSize&&x("number"==typeof e.fontSize||"auto"===e.fontSize,"Annotation attribute `fontSize` must be of type `number` or the string `auto`")),["fillColor","backgroundColor","fontColor","color","borderColor","strokeColor"].forEach((t=>{e.has(t)&&null!==e.get(t)&&x(e.get(t)instanceof s.Il,`\`${t}\` must be an instance of PSPDFKit.Color`)})),e.has("lines")&&(x("lines"in e&&e.lines instanceof r.aV,"lines must be an instance of PSPDFKit.Immutable.List"),e.lines.forEach(((e,t)=>{x(e instanceof r.aV,"line must be an instance of PSPDFKit.Immutable.List"),e.some(((e,n)=>{x(e instanceof f.Z,`found an invalid DrawingPoint at index ${n} for line ${t}`)}))}))),e instanceof a.On&&x(e.has("rects"),"Text markup annotations must have `rects`"),e instanceof a.GI&&x(h.pY[e.stampType],`Unknown stamp annotation stampType: \`${e.stampType}\``),e.has("rects")&&(x("rects"in e&&e.rects instanceof r.aV,"rects must be an instance of `PSPDFKit.Immutable.List`"),x(e.rects.size>0,"rects must be contain at least one rect"),e.rects.forEach(I)),e.has("startPoint")&&(x("startPoint"in e&&e.startPoint instanceof s.E9,"startPoint must be an instance of `PSPDFKit.Immutable.Point`"),F(e.startPoint)),e.has("endPoint")&&(x("endPoint"in e&&e.endPoint instanceof s.E9,"endPoint must be an instance of `PSPDFKit.Immutable.Point`"),F(e.endPoint)),e.has("rotation")){const t=e.rotation;e instanceof a.x_?x(0===t||90===t||180===t||270===t,"`rotation` must be of type `number` and one of 0, 90, 180, or 270."):(e instanceof a.gd||e instanceof a.GI||e instanceof a.sK)&&x(Math.abs(t)%1==0,"`rotation` must be an integer")}}function _(e){let t=e;return e instanceof a.gd&&"xhtml"===e.text.format&&(x(t instanceof a.gd,"Expected TextAnnotation"),e.text.value.startsWith("

")&&e.text.value.endsWith("

")||((0,o.ZK)("TextAnnotation text value must be wrapped in

tags if the format is `xhtml`."),t=t.set("text",{format:"xhtml",value:`

${t.text.value}

`})),e.fontColor&&((0,o.ZK)('TextAnnotation fontColor is not supported for xhtml formatted text. You should add inline span element to the text value instead.\n\n Example:

your text

'),t=t.set("fontColor",null)),e.text.value||(t=t.set("text",{format:"xhtml",value:'

'}))),t}},68250:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});var o=n(50974);class r{constructor(e){this._objectManager=e}create(e,t){return Promise.reject(new o.p2("create() is not implemented"))}update(e,t){return Promise.reject(new o.p2("update() is not implemented"))}delete(e){return Promise.reject(new o.p2("delete() is not implemented"))}getObjectById(e){return Promise.resolve(null)}ensureChangesSaved(e){throw new o.p2("ensureChangesSaved() is not implemented")}hasUnsavedChanges(){return!!this._objectManager&&this._objectManager.hasUnsavedChanges()}manualSave(e){return this._objectManager?this._objectManager.manualSave(e):Promise.resolve()}autoSave(){this._objectManager&&this._objectManager.autoSave()}getEventEmitter(){return this._objectManager?this._objectManager.eventEmitter:null}lockSave(){return this._objectManager?this._objectManager.lockSave():()=>{}}}},55909:(e,t,n)=>{"use strict";n.d(t,{BZ:()=>E,Bl:()=>S,DR:()=>b,RB:()=>w,_1:()=>k,fu:()=>x});var o=n(34997),r=n(35369),i=n(50974),a=n(67366),s=n(80857),l=n(16126),c=n(19815),u=n(96114),d=n(11032),p=n(68250),f=n(10284),h=n(22571),m=n(51269),g=n(82481),v=n(59780),y=n(60132);const b="The API you're trying to use requires a forms license. Forms is a component of PSPDFKit for Web and thus sold separately.\nhttps://pspdfkit.com/guides/web/current/forms/introduction-to-forms/",w="The API you're trying to use requires a license that includes the Form Designer component on standalone mode or with PSPDFKit Instant. This is a separate component of PSPDFKit for Web and thus sold separately.\nhttps://pspdfkit.com/guides/web/current/forms/introduction-to-forms/",S="The API you're trying to use is only available when using the standalone mode or with PSPDFKit Instant.",E="The API you're trying to use is not available when `disableForms` is set to `true`.",P=(0,s.Z)("Forms");class x extends p.I{constructor(e,t){super(t().formFieldManager),this.dispatch=e,this.getState=t}async create(e,t){const n=[],i=this.getState();D(i,"Tried to create a form field. ");const s=e.map((e=>{try{const r=e.id;"string"==typeof r&&P(!(0,l.CL)(i,r),`Form field id (${r}) is already used.`),C(e,i,t);let a="string"==typeof r?e:e.set("id",(0,o.SK)());if(P(i.backend),P(i.formFieldValueManager),i.backend.isCollaborationPermissionsEnabled()&&!e.group&&i.group!==i.backend.getDefaultGroup()&&(a=a.set("group",i.group)),void 0!==e.value||void 0!==e.values){const t=new d.Z({name:e.name,value:void 0!==e.value?e.value:e.values});n.push(t)}return a}catch(e){return e}}));return(0,a.dC)((()=>{s.forEach((e=>{e instanceof Error||(this.dispatch((0,u.kW)(e)),this.autoSave())}))})),n.forEach((e=>{this.dispatch((0,u.xW)((0,r.aV)([e]))),P(i.formFieldValueManager),i.formFieldValueManager.createObject(e),i.formFieldValueManager.autoSave()})),(0,m.s)(s)}async update(e,t){const n=this.getState();P(n.formFieldValueManager);const o=e.map((e=>{try{D(n,"Tried to update a form field. "),P("string"==typeof e.id,"The form field you passed to Instance.update() has no id.\n Please use Instance.create() first to assign an id."),C(e,n,t);const o=(0,l.CL)(n,e.id);P(o,"A form field that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this form field was skipped."),P(n.backend),n.backend.isCollaborationPermissionsEnabled()||e.group===o.group&&e.isEditable===o.isEditable&&e.isDeletable===o.isDeletable&&e.canSetGroup===o.canSetGroup&&e.isFillable===o.isFillable||(e=e.set("group",o.group).set("isEditable",o.isEditable).set("isDeletable",o.isDeletable).set("canSetGroup",o.canSetGroup).set("isFillable",o.isFillable),(0,i.ZK)("`group`, `isEditable`, `isDeletable`, `isFillable` and `canSetGroup` are only relevant when Collaboration Permissions are enabled in server backed setup. You do not have it enabled so these values are set to `undefined`."));if(!e.delete("group").equals(o.delete("group"))&&!(0,f.iR)(o,n))throw new i.p2("You don't have permission to update this form field.");if(e.group!==o.group&&!(0,f.uW)(o,n))throw new i.p2("You don't have permission to update the `group` of this form field.");if(e.isEditable!==o.isEditable||e.isDeletable!==o.isDeletable||e.canSetGroup!==o.canSetGroup||e.isFillable!==o.isFillable)throw new i.p2("You can't update `isFillable`, `isEditable`, `canSetGroup` or `isDeletable` since they are read only properties which depend on the `group` property.");return e}catch(e){return e}}));return(0,a.dC)((()=>{o.forEach((e=>{e instanceof Error||(this.dispatch((0,u.vK)(e)),this.autoSave())}))})),(0,m.s)(o)}async delete(e){const t=this.getState();D(t,"Tried to delete a form field. ");const n=e.map((e=>{try{const o=(0,l.CL)(t,e.id);if(P(o,`There is no form field with id '${e.id}'`),P(t.formFieldValueManager),!(0,f.ev)(o,t))throw new i.p2("You don't have permission to delete this form field.");var n;if(void 0!==o.value||void 0!==o.values)null===(n=t.formFieldValueManager)||void 0===n||n.deleteObject(new d.Z({name:o.name,value:void 0!==o.value?o.value:o.values})),t.formFieldValueManager.autoSave();return e}catch(e){return e}}));return(0,a.dC)((()=>{n.forEach((e=>{e instanceof Error||(this.dispatch((0,u.Wh)(e)),this.autoSave())}))})),(0,m.s)(n)}async ensureChangesSaved(e){P("string"==typeof e.id,"The form field you passed to Instance.ensureSaved() has no id.\n Please use Instance.create() first to assign an id.");const{formFieldManager:t}=this.getState();return P(t),await t.ensureObjectSaved(e)}async getObjectById(e){return P("string"==typeof e,"The supplied id is not a valid id."),(0,l.CL)(this.getState(),e)}}function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{features:n,formsEnabled:o}=e;P(n.includes(y.q.FORMS),(t||"")+b),P(o,(t||"")+E),P(n.includes(y.q.FORM_DESIGNER),(t||"")+w),P((0,c.k_)(e.backend),S)}function C(e,t,n){if(e.additionalActions)for(const[t,n]of Object.entries(e.additionalActions))P("onCalculate"===t||"onChange"===t||"onFormat"===t||"onInput"===t,`Invalid attribute ${t} in \`additionalActions\`. Supported attributes: \`onCalculate\`, \`onChange\`, \`onFormat\`, \`onInput\``),P(n instanceof h.b,`Invalid attribute type of ${t} in \`additionalActions\`. ${t} must be of type \`PSPDFKit.Actions.JavaScriptAction\``);e.annotationIds&&(P(e.annotationIds instanceof r.aV,"Invalid form field `annotationIds` attribute. `annotationIds` must be of type `PSPDFKit.Immutable.List`"),P(e.annotationIds.every((e=>"string"==typeof e)),"Invalid form field `annotationIds` attribute. `annotationIds` should only contain string values."),e.annotationIds.forEach((e=>{!function(e,t,n){const o=e.get("annotations");if(!(((null==t?void 0:t.find((e=>e instanceof g.q6&&e.id===n)))||o.get(n)||o.find((e=>{var t;return(null==e||null===(t=e.pdfObjectId)||void 0===t?void 0:t.toString())===n})))instanceof g.x_))throw new i.p2("Invalid form field `annotationIds` attribute. `annotationIds` should only contain references to widget annotations.")}(t,n,e)}))),null!=e.id&&P("string"==typeof e.id&&e.id.length>0,"Invalid form field `id` attribute. `id` must be of type `string` and larger than 0 characters."),null!=e.label&&P("string"==typeof e.label,"Invalid form field `label` attribute. `label` must be of type `string`"),P("string"==typeof e.name&&e.name.length>0,"Invalid form field `name` attribute. `name` must be of type `string` and larger than 0 characters."),null!=e.noExport&&P("boolean"==typeof e.noExport,"Invalid form field `noExport` attribute. `noExport` must be of type `boolean`"),null!=e.pdfObjectId&&P("number"==typeof e.pdfObjectId,"Invalid form field `pdfObjectId` attribute. `pdfObjectId` must be of type `number`"),null!=e.readOnly&&P("boolean"==typeof e.readOnly,"Invalid form field `readOnly` attribute. `readOnly` must be of type `boolean`"),null!=e.required&&P("boolean"==typeof e.required,"Invalid form field `required` attribute. `required` must be of type `boolean`")}function k(e,t){e instanceof v.$o?P("string"==typeof(t=t||""),`The type of action value for a TextFormField ${e.name} is ${typeof t}, but has to be a string`):e instanceof v.Dz||e instanceof v.rF?P(t instanceof r.aV,`The type of action value for the ${e instanceof v.Dz?"ChoiceFormField":"CheckBoxFormField"} ${e.name} is ${typeof t}, but has to be a List of strings`):e instanceof v.XQ?P("string"==typeof t||null===t,`The type of action value for a RadioButtonFormField ${e.name} is ${typeof t}, but has to either be a string or null`):e instanceof v.R0||e instanceof v.Yo||P(!1,`Cannot set form field value for ${e.name}: unknown form field type`)}},92466:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});class o{constructor(e,t){this.element=e,this.release=t}}},96846:(e,t,n)=>{"use strict";n.d(t,{a:()=>w});var o=n(84121),r=n(35369),i=n(50974),a=n(76192);const s="CREATED",l="UPDATED",c="DELETED";var u=n(97333),d=n(31835),p=n(80857),f=n(34997);class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{};(0,o.Z)(this,"_locks",(0,r.l4)()),this._onUnlockCallback=e}lock(){const e=(0,f.SK)();return this._locks=this._locks.add(e),()=>{this._locks=this._locks.remove(e),this._locks.isEmpty()&&this._onUnlockCallback()}}isLocked(){return!this._locks.isEmpty()}}var m=n(71652);const g=(0,p.Z)("SaveModeQueue");class v{constructor(e){let{autoSaveMode:t,flushCreateObject:n,flushUpdateObject:i,flushDeleteObject:s,validateObject:l,getObjectId:c,syncChanges:u=(async()=>{})}=e;(0,o.Z)(this,"eventEmitter",new d.Z(["willSave","didSave","saveStateChange"])),(0,o.Z)(this,"_modifications",(0,r.D5)()),(0,o.Z)(this,"_inFlightModifications",(0,r.D5)()),(0,o.Z)(this,"_savedObjects",(0,r.l4)()),(0,o.Z)(this,"_ensureSavedRequests",(0,r.D5)()),(0,o.Z)(this,"_prevHasUnsavedObjects",!1),(0,o.Z)(this,"_saveLock",new h((()=>{if(this._autoSaveMode===a.u.IMMEDIATE||!this._saveRequests.isEmpty()){const e=this._autoSaveMode===a.u.IMMEDIATE||this._saveRequests.some((e=>e.syncChanges)),t=this._saveRequests.some((e=>e.manualSave)),n=this._saveRequests;this._saveRequests=this._saveRequests.clear(),this._save(e,t).then((()=>{n.forEach((e=>{e.resolve()}))})).catch((e=>{n.forEach((t=>{t.reject(e)}))}))}}))),(0,o.Z)(this,"_saveRequests",(0,r.aV)()),this._autoSaveMode=t,this._flushCreateObject=n,this._flushUpdateObject=i,this._flushDeleteObject=s,this._validateObject=l,this._getObjectId=c,this._syncChanges=u}lockSave(){return this._saveLock.lock()}assertSaveLocked(){g(this._saveLock.isLocked(),"This method can't be used without active save lock, use saveLock() to acquire the lock.")}createObject(e){this.assertSaveLocked();const t=this._getObjectId(e);this._setModificationsAndNotifyChange(this._modifications.set(t,{object:e,type:s}))}updateObject(e){this.assertSaveLocked();const t=this._getObjectId(e),n=this._modifications.get(t),o=n&&n.type===s&&!this._inFlightModifications.has(t);this._setModificationsAndNotifyChange(this._modifications.set(t,{object:e,type:o?s:l}))}deleteObject(e){this.assertSaveLocked();const t=this._getObjectId(e),n=this._modifications.get(t);n&&n.type===s?this._setModificationsAndNotifyChange(this._modifications.delete(t)):this._setModificationsAndNotifyChange(this._modifications.set(t,{object:e,type:c}))}enqueueInFlightModification(e){const t=this._getObjectId(e.object);return this._inFlightModifications.has(t)?this._inFlightModifications=this._inFlightModifications.updateIn([t],(t=>t.push(e))):this._inFlightModifications=this._inFlightModifications.set(t,(0,r.aV)([e])),this._notifySaveStateChange(),()=>{this._inFlightModifications=this._inFlightModifications.updateIn([t],(t=>t.filter((t=>t!==e))));const n=this._inFlightModifications.get(t);n&&0===n.size&&(this._inFlightModifications=this._inFlightModifications.delete(t)),this._notifySaveStateChange()}}clearQueueForObject(e){this._setModificationsAndNotifyChange(this._modifications.delete(e))}queuedObjectType(e){const t=this._inFlightModifications.get(e);if(t&&t.size>0)return t.last().type;{const t=this._modifications.get(e);return t?t.type:null}}hasUnsavedObjects(){return this._modifications.size>0||this._inFlightModifications.size>0}autoSave(){this._autoSaveMode===a.u.INTELLIGENT&&this.manualSave(!0).catch((()=>{}))}manualSave(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._save(e,!0)}_save(e,t){return new Promise(((n,o)=>{if(this._saveLock.isLocked())this._saveRequests=this._saveRequests.push({resolve:n,reject:o,syncChanges:e,manualSave:t});else{const a=this._modifications.filter((e=>{let{type:t}=e;return t!==c})).filter((e=>{let{object:t}=e;return!this._validateObject(t)}));t&&a.forEach((e=>{(0,i.ZK)(`Can not save invalid object with ID: ${this._getObjectId(e.object)}.\n Make sure to remove or update this object, before trying to save again.`)}));let d=(0,r.aV)();const p=this._modifications.filter(((e,t)=>!a.has(t))),f=p.map((e=>{let{object:t,type:n}=e;const o={object:t,type:n};let r;switch(d=d.push(this.enqueueInFlightModification(o)),n){case s:r=this._flushCreateObject(t);break;case l:r=this._flushUpdateObject(t);break;default:r=this._flushDeleteObject(t)}return r.then((()=>{this._markModificationAsSaved(o)})).catch((e=>{throw y(e),e}))})).valueSeq().toArray();if(this._setModificationsAndNotifyChange(a,!1),e&&f.length>0&&f.push(this._syncChanges().catch((e=>{throw y(e),e}))),this.eventEmitter.emit("willSave"),0===f.length)return this.eventEmitter.emit("didSave"),void n();let h;(0,u.jK)(f).catch((t=>{const n=p.toList(),o=e?t.pop():null,i=t.map(((e,t)=>{const o=n.get(t);if(e&&o)return{error:e,object:o.object,modificationType:o.type}})).filter(Boolean);throw h=(0,r.aV)(i),(0,m.h)(i,Boolean(o),o?o.message:null)})).finally((()=>{d.forEach((e=>{e()}));let e=p;h&&(e=e.withMutations((e=>{g(h),h.forEach((t=>{const n=this._getObjectId(t.object);e.remove(n)}))}))),this._resolveEnsureSavedRequests(e.map((e=>e.object)).valueSeq().toArray()),h&&this._rejectEnsureSavedRequests(h.toArray()),this.eventEmitter.emit("didSave")})).then((()=>{n()})).catch(o)}}))}markObjectsAsSaved(e){this._savedObjects=this._savedObjects.union(e)}isSaved(e){return this._savedObjects.has(e)&&null==this.queuedObjectType(e)}ensureObjectSaved(e){return new Promise(((t,n)=>{const o=this._getObjectId(e);this.isSaved(o)?t(e):this._ensureSavedRequests=this._ensureSavedRequests.withMutations((e=>{const i=e.get(o);i?e.set(o,i.push({resolve:t,reject:n})):e.set(o,(0,r.aV)([{resolve:t,reject:n}]))}))}))}_resolveEnsureSavedRequests(e){this._ensureSavedRequests=this._ensureSavedRequests.withMutations((t=>{e.forEach((e=>{const n=this._getObjectId(e),o=t.get(n);o&&this.isSaved(n)&&(o.forEach((t=>{let{resolve:n}=t;n(e)})),t.delete(n))}))}))}_rejectEnsureSavedRequests(e){this._ensureSavedRequests=this._ensureSavedRequests.withMutations((t=>{e.forEach((e=>{const n=this._getObjectId(e.object),o=t.get(n);o&&(o.forEach((t=>{let{reject:n}=t;n(e.error)})),t.delete(n))}))}))}_markModificationAsSaved(e){const t=this._getObjectId(e.object);switch(e.type){case"CREATED":case"UPDATED":this._savedObjects=this._savedObjects.add(t);break;case"DELETED":this._savedObjects=this._savedObjects.remove(t)}}_setModificationsAndNotifyChange(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._modifications=e,t&&this._notifySaveStateChange()}_notifySaveStateChange(){const e=this.hasUnsavedObjects();this._prevHasUnsavedObjects!==e&&(this._prevHasUnsavedObjects=e,this.eventEmitter.emit("saveStateChange",e))}}function y(e){(0,i.vU)(e)}var b=n(83253);class w{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.u.IMMEDIATE,n=arguments.length>2?arguments[2]:void 0;(0,o.Z)(this,"eventEmitter",new d.Z(this._getSupportedEvents())),(0,o.Z)(this,"_createdObjects",(0,r.D5)()),(0,o.Z)(this,"_updatedObjects",(0,r.D5)()),(0,o.Z)(this,"_deletedObjects",(0,r.D5)()),(0,o.Z)(this,"_crudEventsLock",new h((()=>{(this._createdObjects.size||this._updatedObjects.size||this._deletedObjects.size)&&this.eventEmitter.emit("change"),this._createdObjects.size&&(this.eventEmitter.emit("create",(0,r.aV)(this._createdObjects.values())),this._createdObjects=this._createdObjects.clear()),this._updatedObjects.size&&(this.eventEmitter.emit("update",(0,r.aV)(this._updatedObjects.values())),this._updatedObjects=this._updatedObjects.clear()),this._deletedObjects.size&&(this.eventEmitter.emit("delete",(0,r.aV)(this._deletedObjects.values())),this._deletedObjects=this._deletedObjects.clear())}))),this._callbacks=e,this._autoSaveMode=t,null!=n&&(this.eventEmitter=n),this._saveModeQueue=new v({autoSaveMode:t,flushCreateObject:async e=>{try{await this._callbacks.createBackendObject(e.object,e.additionalFields)}catch(t){throw this._callbacks.deleteStoreObjects((0,r.l4)([e.id])),this.eventEmitter.emit("change"),this.eventEmitter.emit("delete",(0,r.aV)([e.object])),t}this._callbacks.refresh()},flushUpdateObject:async e=>{await this._callbacks.updateBackendObject(e.object,e.additionalFields),this._callbacks.refresh()},flushDeleteObject:async e=>{try{await this._callbacks.deleteBackendObject(e.object,e.additionalFields)}catch(t){throw this._callbacks.createStoreObjects((0,r.aV)([e.object])),this.eventEmitter.emit("change"),this.eventEmitter.emit("create",(0,r.aV)([e.object])),t}this._callbacks.refresh()},validateObject:e=>this._callbacks.validateObject(e.object),getObjectId:e=>e.id,syncChanges:()=>this._callbacks.syncChanges()}),this._saveModeQueue.eventEmitter.on("willSave",(()=>{this.eventEmitter.emit("change"),this.eventEmitter.emit("willSave")})),this._saveModeQueue.eventEmitter.on("didSave",(()=>{this.eventEmitter.emit("change"),this.eventEmitter.emit("didSave")})),this._saveModeQueue.eventEmitter.on("saveStateChange",(e=>this.eventEmitter.emit("saveStateChange",e)))}autoSave(){this._saveModeQueue.autoSave()}manualSave(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._saveModeQueue.manualSave(e).catch((e=>{throw(0,i.kG)(e instanceof m.V),e.reason&&(e.reason=e.reason.map((e=>({error:e.error,modificationType:e.modificationType,object:e.object.object})))),e}))}ensureObjectSaved(e){return this._saveModeQueue.ensureObjectSaved(this._createSaveQueueObject(this._callbacks.getObjectId(e),e)).then((e=>e.object))}hasUnsavedChanges(){return this._saveModeQueue.hasUnsavedObjects()}lockSave(){const e=this._crudEventsLock.lock(),t=this._saveModeQueue.lockSave();return()=>{t(),e()}}createObject(e,t){const n=this.lockSave();try{const o=this._callbacks.getObjectId(e);(0,i.kG)(o);const r=this._saveModeQueue.queuedObjectType(o),a=this._saveModeQueue.isSaved(o)||r===l,c=r===s;a||c?(this._callbacks.onUpdate&&this._callbacks.onUpdate(e,t),this._saveModeQueue.updateObject(this._createSaveQueueObject(o,e,t)),this._updatedObjects=this._updatedObjects.set(o,e)):(this._callbacks.onCreate&&this._callbacks.onCreate(e,t),this._saveModeQueue.createObject(this._createSaveQueueObject(o,e,t)),this._createdObjects=this._createdObjects.set(o,e))}finally{n()}}updateObject(e,t){this.createObject(e,t)}deleteObject(e,t){const n=this.lockSave();try{const o=this._callbacks.getObjectId(e);(0,i.kG)(o);const r=this._saveModeQueue.queuedObjectType(o),a=this._saveModeQueue.isSaved(o)||r===l,c=r===s;this._callbacks.onDelete&&this._callbacks.onDelete(e,t),(a||c)&&this._saveModeQueue.deleteObject(this._createSaveQueueObject(o,e,t)),this._deletedObjects=this._deletedObjects.set(o,e)}finally{n()}}backendObjectsCreated(e,t,n){const o=t===b.y,r=e.map((e=>this._callbacks.getObjectId(e))).toArray();this._saveModeQueue.markObjectsAsSaved(r),this._callbacks.createStoreObjects(e,n),this.eventEmitter.emit("change"),this.eventEmitter.emit(o?"load":"create",e),r.forEach((e=>{this._saveModeQueue.clearQueueForObject(e)})),!o&&this._callbacks.refresh()}backendObjectsUpdated(e,t){this._callbacks.updateStoreObjects(e),t||(this.eventEmitter.emit("change"),this.eventEmitter.emit("update",e));e.map((e=>this._callbacks.getObjectId(e))).toArray().forEach((e=>{this._saveModeQueue.clearQueueForObject(e)})),this._callbacks.refresh()}backendObjectsDeleted(e){const t=e.map((e=>this._callbacks.getObjectById(e))).filter(Boolean).toList();this._callbacks.deleteStoreObjects(e),e.forEach((e=>{this._saveModeQueue.clearQueueForObject(e)})),this.eventEmitter.emit("change"),this.eventEmitter.emit("delete",t),this._callbacks.refresh()}_getSupportedEvents(){return["change","willSave","didSave","load","create","update","delete","saveStateChange"]}_createSaveQueueObject(e,t,n){return void 0===n?{id:e,object:t}:{id:e,object:t,additionalFields:n}}}},46292:(e,t,n)=>{"use strict";n(84121),n(13096)},56664:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});n(46292);let o;function r(){return o}},75376:(e,t,n)=>{"use strict";n(50974);var o=n(35369),r=(n(95651),n(20792),n(82481),n(63564)),i=(n(75237),n(59780),n(44048),n(2810),n(97528),n(88804),n(19702),n(65872),n(30578),n(92457)),a=n(56664);n(46791),n(52247),n(68258),n(97413),n(46292),n(13096);i.ZP.toJS(),(0,o.d0)({});(0,a.Z)();Object.entries(r.qH.toJS()).reduce(((e,t)=>{var n;let[o,r]=t;return e[o]=null===(n=r.desktop)||void 0===n?void 0:n.map((e=>({type:e}))),e}),{})},13096:(e,t,n)=>{"use strict";n(84121)},23413:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(53678),r=n(13997);class i{constructor(e,t){this.identifier=this.url=e,this.token=t,this.aborted=!1}request(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{method:"GET"};const{method:t,data:n=null}=e,i=new XMLHttpRequest;return i.open(t,this.url,!0),i.setRequestHeader("X-PSPDFKit-Token",this.token),i.setRequestHeader("PSPDFKit-Platform","web"),i.setRequestHeader("PSPDFKit-Version",(0,r.oM)()),new Promise(((e,t)=>{i.onreadystatechange=()=>{this.aborted||4===i.readyState&&((0,o.vu)(i.status)?e(JSON.parse(i.responseText)):t({message:i.responseText}))},this.httpRequest=i,i.send(n instanceof FormData?n:"object"==typeof n?JSON.stringify(n):void 0)}))}abort(){this.httpRequest&&(this.aborted=!0,this.httpRequest.abort(),this.httpRequest=null)}}},16159:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(84121),r=n(50974),i=n(31712),a=n(93572),s=n(84778);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t{this.annotation[t]&&e.push(t)})),e.length?e:null}}(0,o.Z)(u,"VERSION",2)},81041:(e,t,n)=>{"use strict";n.d(t,{M:()=>d,Z:()=>p});var o=n(84121),r=n(35369),i=n(16159),a=n(15973),s=n(93572),l=n(97413);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t(0,s.u)(e))).toJS()})}static fromJSON(e,t,n){return(0,l.k)("object"==typeof t.rects,"Missing `rects` field"),u(u({},super.fromJSON(e,t,n)),{},{rects:(0,r.aV)(t.rects).map((e=>(0,s.k)(e)))})}}},44048:(e,t,n)=>{"use strict";n.d(t,{a:()=>a,i:()=>s});var o=n(50974),r=n(31712),i=n(1053);function a(e){return{id:e.id,v:1,pdfBookmarkId:e.pdfBookmarkId,type:"pspdfkit/bookmark",name:e.name,sortKey:e.sortKey,action:e.action&&(0,r.vP)(e.action)}}function s(e,t){let n;(0,o.kG)(null==e||"string"==typeof e,"`id` must be null or of type `string`"),(0,o.kG)(null==t.name||"string"==typeof t.name,"`name` must be of type `string`"),(0,o.kG)(null==t.sortKey||"number"==typeof t.sortKey,"`sortKey` must be of type `number`"),(0,o.kG)("object"==typeof t.action,"Missing `action` field");try{n=(0,r.lk)(t.action)}catch(e){(0,o.ZK)(`PDF Action not supported:\n\n${t.action}`)}return new i.Z({id:e,pdfBookmarkId:t.pdfBookmarkId||null,name:t.name,sortKey:t.sortKey,action:n})}},56460:(e,t,n)=>{"use strict";n.d(t,{o:()=>c,z:()=>u});var o=n(84121),r=n(50974),i=n(82481),a=n(84778);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t{"use strict";n.d(t,{T8:()=>i,X$:()=>o,hH:()=>a,uE:()=>r});const o=e=>e.toJS(),r=e=>e.toJS(),i=(e,t)=>{return{maxWidth:e.maxWidth,alignment:e.alignment,lineSpacingFactor:e.lineSpacingFactor,modificationsCharacterStyle:(n=t,n.toJS())};var n},a=e=>i(e.layout,e.modificationsCharacterStyle)},30578:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var o=n(50974),r=n(35369),i=n(31712),a=n(22660),s=n(82481);function l(e){let t,n;(0,o.kG)("pspdfkit/outline-element"===e.type,"invalid outline element type."),(0,o.kG)(null==e.children||Array.isArray(e.children),"children must be an Array."),(0,o.kG)("string"==typeof e.title,"title must be a string."),(0,o.kG)(null==e.isBold||"boolean"==typeof e.isBold,"isBold must be a boolean."),(0,o.kG)(null==e.isItalic||"boolean"==typeof e.isItalic,"isItalic must be a boolean."),(0,o.kG)(null==e.isExpanded||"boolean"==typeof e.isExpanded,"isExpanded must be a boolean.");try{t=e.action&&(0,i.lk)(e.action)}catch(t){(0,o.ZK)(`PDF Action not supported\n\n${e.action}`)}try{n=e.color&&(0,a.b)(e.color)}catch(t){(0,o.ZK)(`Invalid color:\n\n${e.color}`)}const c={title:e.title,color:n,isBold:!0===e.isBold,isItalic:!0===e.isItalic,isExpanded:!0===e.isExpanded,action:t,children:(0,r.aV)()};return e.children&&e.children.length>0&&(c.children=(0,r.aV)(e.children.map(l))),new s.sT(c)}},13071:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var o=n(84121),r=n(50974),i=n(22660),a=n(18146),s=n(5020),l=n(81041);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>h,q:()=>f});var o=n(84121),r=n(35369),i=n(22660),a=n(16159),s=n(20367),l=n(97413),c=n(71603),u=n(4132);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){for(var t=1;t(0,s.K)(e))).toJS()}static _JSONToPoints(e){return(0,r.aV)(e.map((e=>(0,s.W)(e))))}static _JSONLinesToPoints(e){return(0,r.aV)(e.points[0].map(s.W))}}function m(e){return new c.Z({unitFrom:e.unitFrom,unitTo:e.unitTo,fromValue:e.from,toValue:e.to})}},78162:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var o=n(84121),r=n(50974),i=n(45395),a=n(22660),s=n(82481),l=n(16159),c=n(31712),u=n(2810),d=n(5020);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t{"use strict";n.d(t,{GI:()=>f,eb:()=>p,lk:()=>u,vP:()=>c});var o=n(84121),r=n(35369),i=n(50974),a=n(89335);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;te(t))).toArray()});if(t instanceof a.lm)return l({type:"uri",uri:t.uri},n);if(t instanceof a.Di)return l({type:"goTo",pageIndex:t.pageIndex},n);if(t instanceof a.Qr)return l({type:"goToEmbedded",newWindow:t.newWindow,relativePath:t.relativePath,targetType:t.targetType},n);if(t instanceof a._6)return l({type:"goToRemote",relativePath:t.relativePath,namedDestination:t.namedDestination},n);if(t instanceof a.ZD)return l({type:"hide",hide:t.hide,annotationReferences:t.annotationReferences.toJS()},n);if(t instanceof a.bp)return l({type:"javaScript",script:t.script},n);if(t instanceof a.b)return l({type:"launch",filePath:t.filePath},n);if(t instanceof a.oH)return l({type:"named",action:t.action},n);if(t instanceof a.BO)return l({type:"resetForm",fields:t.fields?t.fields.toArray():null,flags:t.includeExclude?"includeExclude":null},n);if(t instanceof a.pl)return l({type:"submitForm",uri:t.uri,fields:t.fields?t.fields.toArray():null,flags:d(t)},n);throw new Error(`Unknown action type: ${t.constructor.name}`)}(e)}function u(e){return function e(t){let n=null;switch(t.subactions&&(n={subActions:(0,r.aV)(t.subactions.map((t=>e(t))))}),t.type){case"uri":return(0,i.kG)("string"==typeof t.uri,"URI action must have a `uri`"),new a.lm(l({uri:t.uri},n));case"goTo":return(0,i.kG)("number"==typeof t.pageIndex,"Goto action must have a `pageIndex`"),new a.Di(l({pageIndex:t.pageIndex},n));case"goToEmbedded":return(0,i.kG)("boolean"==typeof t.newWindow,"GoToEmbeddedAction must have `newWindow`"),(0,i.kG)("parent"===t.targetType||"child"===t.targetType,"GoToEmbeddedAction must have a valid `targetType`"),new a.Qr(l({newWindow:t.newWindow,relativePath:t.relativePath||"",targetType:t.targetType||""},n));case"goToRemote":return new a._6(l({relativePath:t.relativePath||"",namedDestination:t.namedDestination||""},n));case"hide":return(0,i.kG)(Array.isArray(t.annotationReferences),"HideAction must have `annotationReferences`"),new a.ZD(l({hide:!!t.hide,annotationReferences:(0,r.aV)(t.annotationReferences)},n));case"javaScript":return new a.bp(l({script:t.script||""},n));case"launch":return new a.b(l({filePath:t.filePath||""},n));case"named":return new a.oH(l({action:t.action||""},n));case"resetForm":{(0,i.kG)(t.fields instanceof Array||void 0===t.fields,"The value of the `fields` field of ResetForm Action has to be an array or undefined"),(0,i.kG)("string"==typeof t.flags||void 0===t.flags,"The value of the `flags` field of ResetForm Action has to be a string or undefined");const e="includeExclude"===t.flags;return new a.BO(l({fields:t.fields?(0,r.aV)(t.fields):void 0,includeExclude:e},n))}case"submitForm":return(0,i.kG)("string"==typeof t.uri,"The value of the `uri` field of SubmitForm Action has to be a string"),(0,i.kG)(t.fields instanceof Array||void 0===t.fields,"The value of the `fields` field of SubmitForm Action has to be an array or undefined"),(0,i.kG)(t.flags instanceof Array||void 0===t.flags,"The value of the `flags` field of SubmitForm Action has to be a array or undefined"),t.flags||(t.flags=[]),new a.pl(l({fields:t.fields?(0,r.aV)(t.fields):void 0,uri:t.uri,includeExclude:t.flags.includes("includeExclude"),includeNoValueFields:t.flags.includes("includeNoValueFields"),exportFormat:t.flags.includes("exportFormat"),getMethod:t.flags.includes("getMethod"),submitCoordinated:t.flags.includes("submitCoordinated"),xfdf:t.flags.includes("xfdf"),includeAppendSaves:t.flags.includes("includeAppendSaves"),includeAnnotations:t.flags.includes("includeAnnotations"),submitPDF:t.flags.includes("submitPDF"),canonicalFormat:t.flags.includes("canonicalFormat"),excludeNonUserAnnotations:t.flags.includes("excludeNonUserAnnotations"),excludeFKey:t.flags.includes("excludeFKey"),embedForm:t.flags.includes("embedForm")},n));default:throw new Error(`Unknown action: ${t}`)}}(e)}function d(e){const t=[];return["includeExclude","includeNoValueFields","exportFormat","getMethod","submitCoordinated","xfdf","includeAppendSaves","includeAnnotations","submitPDF","canonicalFormat","excludeNonUserAnnotations","excludeFKey","embedForm"].forEach((n=>{e[n]&&t.push(n)})),t.length?t:null}function p(e){return Object.keys(e).reduce(((t,n)=>{const o=e[n];return o&&(t[n]=u(o)),t}),{})}function f(e){return Object.keys(e).reduce(((t,n)=>{const o=e[n];return o instanceof a.aU&&(t[n]=c(o)),t}),{})}},84778:(e,t,n)=>{"use strict";n.d(t,{G:()=>s,Ut:()=>c,a5:()=>l});var o=n(84121),r=n(50974);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};const{group:t,permissions:n}=e;(0,r.kG)(void 0===t||"string"==typeof t||null===t,"`group` should be `undefined` or `string`."),(0,r.kG)(void 0===n||(0,r.PO)(n),"`permissions` should be `undefined` or an `object`."),(0,r.PO)(n)&&((0,r.kG)("boolean"==typeof n.edit,"`permissions.edit` should be `boolean`."),(0,r.kG)("boolean"==typeof n.delete,"`permissions.delete` should be `boolean`."),(0,r.kG)("boolean"==typeof n.setGroup,"`permissions.setGroup` should be `boolean`."),void 0!==n.fill&&(0,r.kG)("boolean"==typeof n.fill,"`permissions.fill` should be `boolean`."),void 0!==n.reply&&(0,r.kG)("boolean"==typeof n.reply,"`permissions.reply` should be `boolean`."))}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{group:t,permissions:n}=e;let o={group:t};return(0,r.PO)(n)&&(o=a(a({},o),{},{canSetGroup:n.setGroup,isEditable:n.edit,isDeletable:n.delete}),"boolean"==typeof n.fill&&(o.isFillable=n.fill),"boolean"==typeof n.reply&&(o.canReply=n.reply)),o}function c(e){const t="boolean"==typeof e.isEditable&&"boolean"==typeof e.canSetGroup&&"boolean"==typeof e.isDeletable;let n={group:e.group};return t&&((0,r.kG)("boolean"==typeof e.isEditable),(0,r.kG)("boolean"==typeof e.isDeletable),(0,r.kG)("boolean"==typeof e.canSetGroup),n=a(a({},n),{},{permissions:{edit:e.isEditable,delete:e.isDeletable,setGroup:e.canSetGroup}}),"boolean"==typeof e.isFillable&&(n.permissions=a(a({},n.permissions),{},{fill:e.isFillable})),"boolean"==typeof e.canReply&&(n.permissions=a(a({},n.permissions),{},{reply:e.canReply}))),n}},22660:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,b:()=>a});var o=n(50974),r=n(82481);function i(e){return e.toHex()}function a(e){if((0,o.kG)(7===e.length||9===e.length,"Tried to deserialize color that does not have 7 or 9 characters"),"#00000000"===e)return r.Il.TRANSPARENT;const t=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),i=parseInt(e.substring(5,7),16);return new r.Il({r:t,g:n,b:i})}},62793:(e,t,n)=>{"use strict";n.d(t,{B:()=>i,r:()=>a});var o=n(50974),r=n(82481);function i(e){return[e.left,e.top,e.right,e.bottom]}function a(e){return(0,o.kG)(4===e.length,"Tried to deserialize inset that does not have 4 entries"),new r.eB({left:e[0],top:e[1],right:e[2],bottom:e[3]})}},20367:(e,t,n)=>{"use strict";n.d(t,{K:()=>i,W:()=>a});var o=n(50974),r=n(82481);function i(e){return[e.x,e.y]}function a(e){return(0,o.kG)(2===e.length,"Tried to deserialize point that does not have 2 entries"),new r.E9({x:e[0],y:e[1]})}},93572:(e,t,n)=>{"use strict";n.d(t,{k:()=>a,u:()=>i});var o=n(50974),r=n(82481);function i(e){return[e.left,e.top,e.width,e.height]}function a(e){return(0,o.kG)(4===e.length,"Tried to deserialize rect that does not have 4 entries"),new r.UL({left:e[0],top:e[1],width:e[2],height:e[3]})}},2810:(e,t,n)=>{"use strict";n.d(t,{Lw:()=>qe,vH:()=>Fe,Mu:()=>Re,IN:()=>Me,u9:()=>Be,Vl:()=>it,rS:()=>je,XH:()=>tt,l9:()=>Xe,Fd:()=>Je,_o:()=>et,_Q:()=>Ge,Qp:()=>We,$T:()=>Qe,Hs:()=>Ie,jA:()=>Ne,kg:()=>nt,vD:()=>_e,kr:()=>Le,xT:()=>$e,sr:()=>Ue,_D:()=>Ke,eE:()=>Ze,_L:()=>Ve,YA:()=>rt,MR:()=>Ye});var o=n(17375),r=n(84121),i=n(50974),a=n(35369),s=n(82481),l=n(18146),c=n(74973),u=n(22660),d=n(20367),p=n(16159);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;te.map((e=>(0,d.K)(e))))).toJS(),intensities:this.annotation.lines.map((e=>e.map((e=>e.intensity)))).toJS()}}static _JSONToLines(e){return(0,a.aV)(e.points).map(((t,n)=>{const o=e.intensities[n];return(0,a.aV)(t).map(((e,t)=>{const n=o[t],r=(0,d.W)(e);return new s.Wm({x:r.x,y:r.y,intensity:n})}))}))}}var g=n(74115),v=n(97413);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function b(e){for(var t=1;t{Object.keys(e).forEach((t=>{null==e[t]||e[t]instanceof Array&&0===e[t].length?delete e[t]:"object"!=typeof e[t]||e[t]instanceof Array||Te(e[t])}))};function Ie(e){const t=new(function(e){switch(e){case s.Zc:return m;case s.o9:return w;case s.b3:return D;case s.Xs:return A;case s.Hi:return I;case s.om:return _;case s.R1:return L;case s.FV:case s.R9:case s.xu:case s.hL:return X;case l.Z:return pe.Z;case s.gd:return q;case s.Qi:return K;case s.sK:return oe;case s.GI:return se;case s.x_:return le.Z;case s.Jn:return de;case s.Ih:return ee;case c.Z:return me;default:throw new Error("Unsupported annotation type")}}(e.constructor))(e).toJSON();return Te(t),t}function Fe(e,t,n){return He(t.type).fromJSON(e,t,n)}function Me(e,t,n){return function(e,t,n){(0,v.k)(1===t.v,"Version Unknown"),(0,v.k)("string"==typeof e,"`id` must be of type `string`"),(0,v.k)(null==t.name||"string"==typeof t.name,"`name` must be of type `string`"),(0,v.k)("string"==typeof t.type&&t.type.startsWith("pspdfkit/form-field/")&&3===t.type.split("/").length,`Invalid type for form field '${t.type}'`),(0,we.G)(n);const o=t.type.split("/")[2],r=t.flags?t.flags.reduce(((e,t)=>(e[t]=!0,e)),{}):{},s=Ee({id:e,pdfObjectId:t.pdfObjectId||null,name:t.name,annotationIds:(0,a.aV)(t.annotationIds),label:t.label,readOnly:r.readOnly,required:r.required,noExport:r.noExport,additionalActions:t.additionalActions?(0,be.eb)(t.additionalActions):null},(0,we.a5)(n));switch(t.type){case"pspdfkit/form-field/button":return new ge.R0(Ee(Ee({},s),{},{buttonLabel:t.buttonLabel}));case"pspdfkit/form-field/checkbox":return new ge.rF(Ee(Ee({},s),{},{defaultValues:(0,a.aV)(t.defaultValues),options:(0,a.aV)(t.options.map((e=>new ve.Z(e))))}));case"pspdfkit/form-field/combobox":return new ge.fB(Ee(Ee({},s),{},{options:(0,a.aV)(t.options.map((e=>new ve.Z(e)))),multiSelect:t.multiSelect,commitOnChange:t.commitOnChange,defaultValues:(0,a.aV)(t.defaultValues),edit:t.edit,doNotSpellCheck:t.doNotSpellCheck}));case"pspdfkit/form-field/listbox":return new ge.Vi(Ee(Ee({},s),{},{options:(0,a.aV)(t.options.map((e=>new ve.Z(e)))),multiSelect:t.multiSelect,commitOnChange:t.commitOnChange,defaultValues:(0,a.aV)(t.defaultValues)}));case"pspdfkit/form-field/radio":return new ge.XQ(Ee(Ee({},s),{},{noToggleToOff:t.noToggleToOff,radiosInUnison:t.radiosInUnison,defaultValue:t.defaultValue,options:(0,a.aV)(t.options.map((e=>new ve.Z(e))))}));case"pspdfkit/form-field/text":return new ge.$o(Ee(Ee({},s),{},{defaultValue:t.defaultValue,password:t.password,maxLength:t.maxLength,doNotSpellCheck:t.doNotSpellCheck,doNotScroll:t.doNotScroll,multiLine:t.multiLine,comb:t.comb}));case"pspdfkit/form-field/signature":return new ge.Yo(s);default:throw new i.p2(`Form field type not deserializable: ${o}`)}}(e,t,n)}function _e(e){return function(e){const t=ye.Mr.filter((t=>e[t])),n=Ee(Ee({id:e.id,v:1,pdfObjectId:e.pdfObjectId,name:e.name,annotationIds:e.annotationIds.toArray(),label:e.label,additionalActions:e.additionalActions&&(0,be.GI)(e.additionalActions)},(0,we.Ut)(e)),(null==t?void 0:t.length)&&{flags:t});if(e instanceof ge.R0)return Ee(Ee({},n),{},{type:"pspdfkit/form-field/button",buttonLabel:e.buttonLabel});if(e instanceof ge.rF)return Ee(Ee({},n),{},{type:"pspdfkit/form-field/checkbox",defaultValues:e.defaultValues.toArray(),options:e.options.toJS()});if(e instanceof ge.fB)return Ee(Ee({},n),{},{type:"pspdfkit/form-field/combobox",options:e.options.toJS(),multiSelect:e.multiSelect,commitOnChange:e.commitOnChange,defaultValues:e.defaultValues.toArray(),edit:e.edit,doNotSpellCheck:e.doNotSpellCheck});if(e instanceof ge.Vi)return Ee(Ee({},n),{},{type:"pspdfkit/form-field/listbox",options:e.options.toJS(),multiSelect:e.multiSelect,commitOnChange:e.commitOnChange,defaultValues:e.defaultValues.toArray()});if(e instanceof ge.XQ)return Ee(Ee({},n),{},{type:"pspdfkit/form-field/radio",options:e.options.toJS(),noToggleToOff:e.noToggleToOff,radiosInUnison:e.radiosInUnison,defaultValue:e.defaultValue});if(e instanceof ge.$o)return Ee(Ee({},n),{},{type:"pspdfkit/form-field/text",password:e.password,maxLength:e.maxLength,doNotSpellcheck:e.doNotSpellCheck,doNotScroll:e.doNotScroll,multiLine:e.multiLine,comb:e.comb,defaultValue:e.defaultValue});if(e instanceof ge.Yo)return Ee(Ee({},n),{},{type:"pspdfkit/form-field/signature"});throw new i.p2("Form field type not serializable")}(e)}function Re(e,t,n){return(0,De.z)(e,t,n)}function Ne(e,t){return(0,De.o)(e,t)}function Le(e){const t=a.aV.isList(e.value)?e.value.toArray():null==e.value?void 0:e.value;return Oe(Oe({v:1,type:"pspdfkit/form-field-value",name:e.name,value:t},e.optionIndexes&&e.optionIndexes.size>=1?{optionIndexes:e.optionIndexes.toArray()}:null),"boolean"==typeof e.isFitting&&{isFitting:e.isFitting})}function Be(e){(0,i.kG)("pspdfkit/form-field-value"===e.type,"Invalid `type` for form field value."),(0,i.kG)(1===e.v,"Invalid `version` for form field value."),(0,i.kG)("string"==typeof e.name,"Invalid `name` for form field value. Must be of type `string`."),(0,i.kG)(void 0===e.value||null===e.value||"string"==typeof e.value||Array.isArray(e.value),"Invalid `value` for form field value. Must be of type `undefined`, `null`, `string`, or `Array`."),(0,i.kG)(void 0===e.optionIndexes||Array.isArray(e.optionIndexes)&&e.optionIndexes.every(Number.isInteger),"Invalid `optionIndexes` value for form field value. Must be an Array of integers."),(0,i.kG)(void 0===(null==e?void 0:e.isFitting)||"boolean"==typeof e.isFitting,"Invalid `isFitting` value for form field value. Must be a boolean.");const t=e.value instanceof Array?(0,a.aV)(e.value):e.value,n=e.name;return new ge.KD(Oe(Oe({name:n,value:t},e.optionIndexes&&e.optionIndexes.length>=1?{optionIndexes:(0,a.aV)(e.optionIndexes)}:null),"boolean"==typeof e.isFitting&&{isFitting:e.isFitting}))}function je(e){if(!Object.values(xe._).includes(e.status))throw new i.p2("Invalid `status` for signatures info. Must be one of the `PSPDFKit.DocumentValidationStatus` values");if("string"!=typeof e.checkedAt)throw new i.p2("Invalid `checkedAt` for signatures info. Must be of type `string`.");if(void 0!==e.signatures&&!Array.isArray(e.signatures))throw new i.p2("Invalid `signatures` for signatures info. Must be of type `undefined` or `Array`.");if(!["undefined","boolean"].includes(typeof e.documentModifiedSinceSignature))throw new i.p2("Invalid `documentModifiedSinceSignature` for signatures info. Must be of type `undefined` or `boolean`.");const{checkedAt:t,signatures:n,documentModifiedSinceSignature:o}=e;return Oe(Oe({status:xe._[e.status],checkedAt:new Date(t)},n?{signatures:ze(n)}:null),"boolean"==typeof o?{documentModifiedSinceSignature:o}:null)}function ze(e){return e.map((e=>{if("pspdfkit/signature-info"!==e.type)throw new i.p2("Invalid `type` for signature info.");if(["signerName","creationDate","signatureReason","signatureLocation"].forEach((t=>{if(!["undefined","string"].includes(typeof e[t]))throw new i.p2(`Invalid \`${t}\` for signature info. Must be \`undefined\` or \`string\`.`)})),["isTrusted","isSelfSigned","isExpired","documentModifiedSinceSignature"].forEach((t=>{if(!["boolean"].includes(typeof e[t]))throw new i.p2(`Invalid \`${t}\` for signature info. Must be \`boolean\``)})),!["string"].includes(typeof e.signatureFormFQN))throw new i.p2("Invalid `signatureFormFQN` for signature info. Must be a `string`.");if(!Object.values(Pe.QA).includes(e.documentIntegrityStatus))throw new i.p2("Invalid `documentIntegrityStatus` for signature info. Must be one of the `PSPDFKit.DocumentIntegrityStatus` values");if(!Object.values(Pe.Xl).includes(e.signatureType))throw new i.p2(`Invalid \`signatureType\` for signature info: ${e.signatureType}. Must be 'cms' or 'cades'`);if(!Object.values(Pe.wk).includes(e.certificateChainValidationStatus))throw new i.p2("Invalid `certificateChainValidationStatus` for signature info. Must be one of the `PSPDFKit.CertificateChainValidationStatus` values");if(!Object.values(Pe.qA).includes(e.signatureValidationStatus))throw new i.p2("Invalid `signatureValidationStatus` for signature info. Must be one of the `PSPDFKit.SignatureValidationStatus` values");return{type:e.type,signatureType:ot[e.signatureType],documentIntegrityStatus:Pe.QA[e.documentIntegrityStatus],certificateChainValidationStatus:Pe.wk[e.certificateChainValidationStatus],signatureValidationStatus:Pe.qA[e.signatureValidationStatus],isTrusted:e.isTrusted,isSelfSigned:e.isSelfSigned,isExpired:e.isExpired,documentModifiedSinceSignature:e.documentModifiedSinceSignature,signerName:e.signerName,signatureReason:e.signatureReason,signatureLocation:e.signatureLocation,creationDate:e.creationDate?new Date(e.creationDate):void 0,signatureFormFQN:e.signatureFormFQN}}))}function Ke(e){return Oe({type:"pspdfkit/signature-metadata"},e)}function Ze(e){return e?{type:"pspdfkit/signature-position",pageIndex:e.pageIndex,rect:(0,E.u)(e.boundingBox)}:null}function Ue(e){if(!e)return null;const{watermarkImage:t}=e,n=(0,o.Z)(e,Ce);let r;return t&&(r=t.type),Oe(Oe({type:"pspdfkit/signature-appearance"},n),r?{contentType:r}:null)}function Ve(e){const t=e||{},{signatureType:n,certificates:r}=t,i=(0,o.Z)(t,ke);return Oe({type:"pspdfkit/signer-data-source",certificates:r||[],signatureType:rt[n||(r&&r.length>0?Pe.BG.CAdES:Pe.BG.CMS)]||Pe.Xl.cms},i)}function Ge(e){return"string"==typeof e.type&&e.type.startsWith("pspdfkit/form-field/")}function We(e){return"pspdfkit/form-field-value"===e.type}function qe(e){return e.map((e=>e.data)).toJS()}const He=e=>{switch(e){case"pspdfkit/ink":return m;case"pspdfkit/shape/line":return w;case"pspdfkit/shape/rectangle":return D;case"pspdfkit/shape/ellipse":return A;case"pspdfkit/shape/polygon":return I;case"pspdfkit/shape/polyline":return _;case"pspdfkit/link":return L;case"pspdfkit/markup/highlight":case"pspdfkit/markup/squiggly":case"pspdfkit/markup/strikeout":case"pspdfkit/markup/underline":return X;case"pspdfkit/markup/redaction":return pe.Z;case"pspdfkit/text":return q;case"pspdfkit/note":return K;case"pspdfkit/image":return oe;case"pspdfkit/stamp":return se;case"pspdfkit/widget":return le.Z;case"pspdfkit/comment-marker":return de;case"pspdfkit/media":return me;default:return ee}};function $e(e){const t=Object.entries(e).reduce(((e,t)=>{let[n,o]=t;switch(n){case"color":case"fontColor":case"strokeColor":case"backgroundColor":case"borderColor":case"fillColor":case"outlineColor":e[n]=o&&(0,u.C)(o);break;case"startPoint":case"endPoint":e[n]=o&&(0,d.K)(o);break;case"icon":e.icon=B.Y4[o];break;case"points":e.points=o&&o.map((e=>(0,d.K)(e))).toJS();break;case"lines":e.lines=o&&{points:o.map((e=>e.map((e=>(0,d.K)(e))))).toJS(),intensities:o.map((e=>e.map((e=>e.intensity)))).toJS()};break;case"isBold":e.fontStyle=Array.isArray(e.fontStyle)?e.fontStyle.concat("bold"):["bold"];break;case"isItalic":e.fontStyle=Array.isArray(e.fontStyle)?e.fontStyle.concat("italic"):["italic"];break;case"callout":e.callout=o&&{start:(0,d.K)(o.start),knee:o.knee&&(0,d.K)(o.knee),end:(0,d.K)(o.end),cap:o.cap};break;case"boundingBox":e.bbox=o&&(0,E.u)(o);break;case"cloudyBorderInset":e.cloudyBorderInset=o&&(0,S.B)(o);break;case"strokeDashArray":case"borderDashArray":e.strokeDashArray=o;break;case"action":e.action=o&&(0,be.vP)(o);break;case"createdAt":case"updatedAt":e[n]=o&&o.toISOString();break;case"noPrint":case"noZoom":case"noRotate":case"noView":case"hidden":!0===o&&(e.flags=Array.isArray(e.flags)?e.flags.concat(n):[n]);break;default:e[n]=o}return e}),{});return Te(t),t}function Ye(e){const t=Object.entries(e).reduce(((e,t)=>{let[n,o]=t;switch(n){case"color":case"fontColor":case"strokeColor":case"backgroundColor":case"borderColor":case"fillColor":case"outlineColor":e[n]=null!=o?(0,u.b)(o):null;break;case"startPoint":case"endPoint":e[n]=o&&(0,d.W)(o);break;case"icon":e.icon=B.V9[o];break;case"points":e.points=o&&(0,a.aV)(o.map((e=>(0,d.W)(e))));break;case"lines":e.lines=o&&(0,a.aV)(o.points).map(((e,t)=>{const n=o.intensities[t];return(0,a.aV)(e).map(((e,t)=>{const o=n[t],r=(0,d.W)(e);return new s.Wm({x:r.x,y:r.y,intensity:o})}))}));break;case"fontStyle":e.isBold=o&&o.includes("bold"),e.isItalic=o&&o.includes("italic");break;case"callout":e.callout=o&&{start:(0,d.W)(o.start),knee:o.knee&&(0,d.W)(o.knee),end:(0,d.W)(o.end),cap:o.cap};break;case"bbox":e.boundingBox=o&&(0,E.k)(o);break;case"cloudyBorderInset":e.cloudyBorderInset=o&&(0,S.r)(o);break;case"strokeDashArray":e.strokeDashArray=o;break;case"action":e.action=o&&(0,be.lk)(o);break;case"createdAt":case"updatedAt":e[n]=new Date(o);break;case"flags":o&&(e.noPrint=o.includes("noPrint"),e.noZoom=o.includes("noZoom"),e.noRotate=o.includes("noRotate"),e.noView=o.includes("noView"),e.hidden=o.includes("hidden"));break;default:e[n]=o}return e}),{});return Te(t),t}function Xe(e){return"pspdfkit/bookmark"===e.type}function Je(e){return"pspdfkit/comment"===e.type}function Qe(e){return"pspdfkit/signature-info"===e.type}function et(e){return"pspdfkit/embedded-file"===e.type}function tt(e){const t=[];return e.isBold&&t.push("bold"),e.isItalic&&t.push("italic"),t.length>0?t:null}function nt(e){if("addPage"===e.type){if("afterPageIndex"in e&&"number"==typeof e.afterPageIndex)return Oe({type:e.type,afterPageIndex:e.afterPageIndex,pageWidth:e.pageWidth,pageHeight:e.pageHeight,rotateBy:e.rotateBy,backgroundColor:e.backgroundColor.toCSSValue()},e.insets&&{insets:(0,E.u)(e.insets)});if("beforePageIndex"in e&&"number"==typeof e.beforePageIndex)return Oe({type:e.type,beforePageIndex:e.beforePageIndex,pageWidth:e.pageWidth,pageHeight:e.pageHeight,rotateBy:e.rotateBy,backgroundColor:e.backgroundColor.toCSSValue()},e.insets&&{insets:(0,E.u)(e.insets)});throw new i.p2("The `addPage` operation is missing either the `afterPageIndex` or the `beforePageIndex` property")}return"cropPages"===e.type?{type:e.type,cropBox:(0,E.u)(e.cropBox),pageIndexes:e.pageIndexes}:e}const ot={cms:"CMS",cades:"CAdES",documentTimestamp:"documentTimestamp"},rt={CMS:"cms",CAdES:"cades",documentTimestamp:"documentTimestamp"};function it(e){return(0,a.aV)(e.map((e=>({c:e.c,rect:(0,E.k)(e.r)}))))}},63564:(e,t,n)=>{"use strict";n.d(t,{gb:()=>y,qH:()=>g});var o=n(84121),r=n(17375),i=n(50974),a=n(35369),s=n(15973),l=n(72584),c=n(30679),u=n(80857),d=n(18146);const p=["icon"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>r});var o=n(35369);class r extends((0,o.WV)({readOnly:!1,downloadingAllowed:!0})){}},1053:(e,t,n)=>{"use strict";n.d(t,{G:()=>d,Z:()=>u});var o=n(84121),r=n(35369),i=n(80857),a=n(86920),s=n(44048);const l=(0,i.Z)("Bookmark"),c={id:null,pdfBookmarkId:null,name:null,sortKey:null,action:null};class u extends(r.WV(c)){}(0,o.Z)(u,"toSerializableObject",s.a),(0,o.Z)(u,"fromSerializableObject",(e=>(0,s.i)(null,e)));const d=e=>{const{name:t,sortKey:n,action:o}=e;null!=t&&l("string"==typeof t,"`name` must be a string"),null!=n&&l("number"==typeof n,"`sortKey` must be a number"),l(o instanceof a.aU,"`action` must be an instance of PSPDFKit.Actions.Action")}},98663:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(35369);class r extends((0,o.WV)({printHighQuality:!0,extract:!0,preventTextCopy:!1})){}},83634:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(84121),r=n(35369),i=n(50974);class a extends((0,r.WV)({r:0,g:0,b:0,transparent:!1})){constructor(e){!0!==e.transparent?super(e):super({transparent:!0})}lighter(e){(0,i.kG)("number"==typeof e&&e>=0&&e<=100,"Invalid `percent` value. Must be 0-100.");const t=255*e/100;let n=parseInt(this.r+t),o=parseInt(this.g+t),r=parseInt(this.b+t);return n=n<255?n:255,o=o<255?o:255,r=r<255?r:255,new a({r:n,g:o,b:r})}darker(e){(0,i.kG)("number"==typeof e&&e>=0&&e<=100,"Invalid `percent` value. Must be 0-100.");const t=255*e/100;let n=parseInt(this.r-t),o=parseInt(this.g-t),r=parseInt(this.b-t);return n=n>0?n:0,o=o>0?o:0,r=r>0?r:0,new a({r:n,g:o,b:r})}equals(e){return(0,i.kG)(e instanceof a||"object"==typeof e,"Invalid `color` provided. It must be an instance of Color or an RGB object."),(0,i.kG)("number"==typeof e.r&&e.r>=0&&e.r<=255,"Invalid `r` value provided. It must be an integer between 0 and 255."),(0,i.kG)("number"==typeof e.g&&e.g>=0&&e.g<=255,"Invalid `g` value provided. It must be an integer between 0 and 255."),(0,i.kG)("number"==typeof e.b&&e.b>=0&&e.b<=255,"Invalid `b` value provided. It must be an integer between 0 and 255."),!this.transparent&&!e.transparent&&this.r===e.r&&this.g===e.g&&this.b===e.b||this.transparent&&e.transparent}saturate(e){(0,i.kG)("number"==typeof e&&e>=0&&e<=100,"Invalid `percent` value. Must be 0-100.");const t=e/100,n=.3086*this.r+.6094*this.g+.082*this.b;return new a({r:Math.round(this.r*t+n*(1-t)),g:Math.round(this.g*t+n*(1-t)),b:Math.round(this.b*t+n*(1-t))})}sRGBToRGBComponent(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}relativeLuminance(){const{r:e,g:t,b:n}={r:this.r/255,g:this.g/255,b:this.b/255},{R:o,G:r,B:i}={R:this.sRGBToRGBComponent(e),G:this.sRGBToRGBComponent(t),B:this.sRGBToRGBComponent(n)};return.2126*o+.7152*r+.0722*i}contrastRatio(e){return(this.relativeLuminance()+.05)/(e.relativeLuminance()+.05)}toCSSValue(){return this.transparent?"transparent":`rgb(${this.r}, ${this.g}, ${this.b})`}toHex(){if(this.transparent)return"#00000000";let e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n}}(0,o.Z)(a,"BLACK",new a({r:0,g:0,b:0})),(0,o.Z)(a,"GREY",new a({r:128,g:128,b:128})),(0,o.Z)(a,"WHITE",new a({r:255,g:255,b:255})),(0,o.Z)(a,"DARK_BLUE",new a({r:36,g:131,b:199})),(0,o.Z)(a,"RED",new a({r:248,g:36,b:0})),(0,o.Z)(a,"PURPLE",new a({r:255,g:0,b:255})),(0,o.Z)(a,"PINK",new a({r:255,g:114,b:147})),(0,o.Z)(a,"GREEN",new a({r:110,g:176,b:0})),(0,o.Z)(a,"ORANGE",new a({r:243,g:149,b:0})),(0,o.Z)(a,"YELLOW",new a({r:255,g:255,b:0})),(0,o.Z)(a,"LIGHT_BLUE",new a({r:141,g:184,b:255})),(0,o.Z)(a,"LIGHT_RED",new a({r:247,g:141,b:138})),(0,o.Z)(a,"LIGHT_GREEN",new a({r:162,g:250,b:123})),(0,o.Z)(a,"LIGHT_YELLOW",new a({r:252,g:238,b:124})),(0,o.Z)(a,"BLUE",new a({r:34,g:147,b:251})),(0,o.Z)(a,"LIGHT_ORANGE",new a({r:255,g:139,b:94})),(0,o.Z)(a,"LIGHT_GREY",new a({r:192,g:192,b:192})),(0,o.Z)(a,"DARK_GREY",new a({r:64,g:64,b:64})),(0,o.Z)(a,"MAUVE",new a({r:245,g:135,b:255})),(0,o.Z)(a,"TRANSPARENT",new a({transparent:!0})),(0,o.Z)(a,"fromHex",(e=>e.length>=8&&(e.endsWith("00")||e.endsWith("00"))?a.TRANSPARENT:new a({r:parseInt(e.substr(1,2),16),g:parseInt(e.substr(3,2),16),b:parseInt(e.substr(5,2),16)})))},86071:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(83634);const r=[{color:o.Z.RED,localization:{id:"red",defaultMessage:"Red",description:"Red color"}},{color:o.Z.ORANGE,localization:{id:"orange",defaultMessage:"Orange",description:"Orange color"}},{color:o.Z.YELLOW,localization:{id:"yellow",defaultMessage:"Yellow",description:"Yellow color"}},{color:o.Z.GREEN,localization:{id:"green",defaultMessage:"Green",description:"Green color"}},{color:o.Z.DARK_BLUE,localization:{id:"darkBlue",defaultMessage:"Dark blue",description:"Dark blue color"}},{color:o.Z.BLUE,localization:{id:"blue",defaultMessage:"Blue",description:"Blue color"}},{color:o.Z.PURPLE,localization:{id:"purple",defaultMessage:"Purple",description:"Purple color"}},{color:o.Z.PINK,localization:{id:"pink",defaultMessage:"Pink",description:"Pink color"}},{color:o.Z.LIGHT_ORANGE,localization:{id:"lightOrange",defaultMessage:"Light Orange",description:"Light Orange color"}},{color:o.Z.LIGHT_YELLOW,localization:{id:"lightYellow",defaultMessage:"Light Yellow",description:"Light Yellow color"}},{color:o.Z.LIGHT_GREEN,localization:{id:"lightGreen",defaultMessage:"Light Green",description:"Light Green color"}},{color:o.Z.LIGHT_BLUE,localization:{id:"lightBlue",defaultMessage:"Light Blue",description:"Light Blue color"}},{color:o.Z.MAUVE,localization:{id:"mauve",defaultMessage:"Mauve",description:"Mauve color"}},{color:o.Z.TRANSPARENT,localization:{id:"transparent",defaultMessage:"Transparent",description:"Transparent"}},{color:o.Z.WHITE,localization:{id:"white",defaultMessage:"White",description:"White color"}},{color:o.Z.LIGHT_GREY,localization:{id:"lightGrey",defaultMessage:"Light Grey",description:"Light Grey color"}},{color:o.Z.GREY,localization:{id:"grey",defaultMessage:"Grey",description:"Grey color"}},{color:o.Z.DARK_GREY,localization:{id:"darkGrey",defaultMessage:"Dark Grey",description:"Dark Grey color"}},{color:o.Z.BLACK,localization:{id:"black",defaultMessage:"Black",description:"Black color"}}]},11721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});class o{constructor(e){this.name=e.name,this.reason=e.reason,this.progress=e.progress}}},68218:(e,t,n)=>{"use strict";n.d(t,{Ar:()=>v,CF:()=>b,Cd:()=>_,DN:()=>u,Dn:()=>B,FP:()=>a,FQ:()=>E,G_:()=>z,I5:()=>T,IA:()=>m,JR:()=>S,Q7:()=>k,QC:()=>K,R1:()=>i,Sg:()=>l,Ts:()=>x,UL:()=>c,W4:()=>p,Y1:()=>w,YG:()=>j,_h:()=>O,a2:()=>y,aN:()=>M,aT:()=>N,jI:()=>R,lK:()=>L,mZ:()=>d,nv:()=>A,t9:()=>I,tW:()=>P,tk:()=>C,vz:()=>g,wR:()=>s,xb:()=>F,yJ:()=>D,yO:()=>h});var o=n(50974),r=n(35369);let i,a,s;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Loading=1]="Loading",e[e.Loaded=2]="Loaded"}(i||(i={})),function(e){e[e.None=0]="None",e[e.Selected=1]="Selected",e[e.Active=2]="Active",e[e.Moving=3]="Moving"}(a||(a={})),function(e){e[e.Edit=0]="Edit",e[e.Create=1]="Create",e[e.Delete=2]="Delete"}(s||(s={}));class l extends((0,r.WV)({x:0,y:0})){}class c extends((0,r.WV)({offset:new l,size:new l})){}class u extends((0,r.WV)({rotation:0,flipY:!1})){}class d extends((0,r.WV)({xScale:1,skew:0})){}class p extends((0,r.WV)({bold:!1,italic:!1})){}const f={regular:new p,bold:new p({bold:!0}),italic:new p({italic:!0}),boldItalic:new p({bold:!0,italic:!0})};class h extends((0,r.WV)({family:"",variant:f.regular})){}class m extends((0,r.WV)({faceRef:new h,size:0})){}class g extends((0,r.WV)({fontRef:new m,color:"#000000",effects:new d})){}class v extends((0,r.WV)({maxWidth:null,alignment:"begin",lineSpacingFactor:1})){}class y extends((0,r.WV)({top:0,bottom:0})){}class b extends((0,r.WV)({offset:new l,lineSpacing:new y})){}class w extends((0,r.WV)({begin:0,end:0,text:""})){}class S extends((0,r.WV)({unavailableFaceName:null})){}class E extends((0,r.WV)({cluster:0,offset:new l,advance:new l,text:"",control:null,lastOfSegment:!1,beginOfWord:!1,endOfWord:!1})){}class P extends((0,r.WV)({offset:new l,lineSpacing:new y,elements:(0,r.aV)()})){}class x extends((0,r.WV)({lines:(0,r.aV)()})){}class D extends((0,r.WV)({family:null,faceMismatch:null,bold:null,italic:null,size:null,xScale:null,skew:null,color:null})){}class C extends((0,r.WV)({selectionStyleInfo:null,modificationsCharacterStyle:null,modificationsCharacterStyleFaceMismatch:null})){}class k extends((0,r.WV)({id:"",initialAnchor:new l,initialGlobalEffects:new u,initialLayout:new v,anchor:new l,globalEffects:new u,layout:new v,justCreated:!1,modificationsCharacterStyle:new g,version:0,contentRect:new c,cursor:new b,selection:null,detectedStyle:new C,layoutView:new x})){}class A extends((0,r.WV)({initialTextBlocks:(0,r.aV)(),textBlocks:(0,r.aV)(),loading:!0})){}class O extends((0,r.WV)({pageIndex:0,textBlockId:"",state:a.None})){}class T extends((0,r.WV)({family:"",variants:(0,r.l4)()})){}class I extends((0,r.WV)({faceList:null,loading:!1})){}class F extends((0,r.WV)({fontFace:null,rect:null,dismissAbortController:null})){}class M extends((0,r.WV)({pageStates:(0,r.D5)(),availableFaces:new I,textBlockInteractionState:new O,sessionId:0,active:!1,dirty:!1,saving:!1,mode:s.Edit,fontMismatchTooltip:null})){}const _=e=>t=>{const n=t.contentEditorSession.pageStates.get(e);return n?n.loading?i.Loading:i.Loaded:i.Uninitialized},R=e=>t=>{const n=t.contentEditorSession.pageStates.get(e);return n?[...n.textBlocks.map((e=>e.id))]:[]},N=(e,t)=>n=>{const r=n.contentEditorSession.pageStates.get(e);(0,o.kG)(r);for(const e of r.textBlocks)if(e.id==t)return e;return null},L=e=>{const{textBlockInteractionState:t}=e.contentEditorSession;return!t||t.state!==a.Active&&t.state!==a.Selected?null:N(t.pageIndex,t.textBlockId)(e)},B=(e,t)=>n=>{const{textBlockInteractionState:o}=n.contentEditorSession;return o&&o.state===a.Active&&o.pageIndex===e&&o.textBlockId===t},j=e=>e.contentEditorSession.availableFaces,z=(e,t)=>n=>{const{textBlockInteractionState:o}=n.contentEditorSession;return o&&o.state===a.Selected&&o.pageIndex===e&&o.textBlockId===t},K=(e,t)=>n=>{const{textBlockInteractionState:o}=n.contentEditorSession;return o&&o.state===a.Moving&&o.pageIndex===e&&o.textBlockId===t}},74985:(e,t,n)=>{"use strict";n.d(t,{G:()=>l,Z:()=>a});var o=n(35369),r=n(88804);const i=(0,n(80857).Z)("CustomOverlayItem");class a extends((0,o.WV)({disableAutoZoom:!1,id:null,node:null,noRotate:!1,pageIndex:0,position:new r.E9,onAppear:null,onDisappear:null})){constructor(e){super(e)}}const s=[Node.ELEMENT_NODE,Node.TEXT_NODE,Node.COMMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE],l=e=>{const{disableAutoZoom:t,id:n,node:o,noRotate:a,pageIndex:l,position:c,onAppear:u,onDisappear:d}=e;i("boolean"==typeof t,"`disableAutoZoom` must be a `boolean`"),i("string"==typeof n,"`id` must be a `string`"),i(o instanceof Node,"`node` must be an instance of `Node`"),i(s.includes(o.nodeType),"`node.nodeType` is invalid. Expected one of "+s.join(", ")),i("boolean"==typeof a,"`noRotate` must be a `boolean`"),i("number"==typeof l,"`pageIndex` must be a `number`"),i(c instanceof r.E9,"`position` must be an instance of `PSPDFKit.Geometry.Point`"),u&&i("function"==typeof u,"`onAppear` must be a `function`"),d&&i("function"==typeof d,"`onDisappear` must be a `function`")}},81619:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});const o=Object.freeze([{id:"solid",dashArray:[]},{id:"narrowDots",dashArray:[1,1]},{id:"wideDots",dashArray:[1,3]},{id:"narrowDashes",dashArray:[3,3]},{id:"wideDashes",dashArray:[6,6]}])},92947:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(35369);const r={elements:null,expanded:(0,o.D5)()};class i extends((0,o.WV)(r)){}},19568:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,Z:()=>l});var o=n(84121),r=n(35369);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;ta(a({},e),{},{[t]:t})),{})},39745:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(35369);(0,n(80857).Z)("Font");class r extends((0,o.WV)({name:null,callback:null})){constructor(e){super(e)}}},19209:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(35369);class r extends((0,o.WV)({label:"",value:""})){}},18509:(e,t,n)=>{"use strict";n.d(t,{B:()=>l,Z:()=>s});var o=n(84121);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t{"use strict";n.d(t,{C:()=>r});var o=n(34997);function r(){return(0,o.SK)()}},80399:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(35369),r=n(88804);const i={pageSize:new r.$u,pageIndex:0,pageLabel:"",rotation:0,inViewport:!1,textLines:null,textLineScales:null,annotationIds:(0,o.hU)(),customOverlayItemIds:(0,o.l4)(),pageKey:"",untransformedRect:new r.UL,transformedRect:new r.UL,matrix:r.sl.IDENTITY,reverseMatrix:r.sl.IDENTITY,rawPdfBoxes:{bleedBox:null,cropBox:null,mediaBox:null,trimBox:null}};class a extends((0,o.WV)(i)){}},19419:(e,t,n)=>{"use strict";n.d(t,{J:()=>l,Z:()=>s});var o=n(84121);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t{"use strict";n.d(t,{T:()=>r});var o=n(54097);const r={[n(19702).f.ANNOTATIONS]:{includeContent:[...o.J]}}},57960:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(35369);class r extends((0,o.WV)({storedSignatures:null,signatureRect:null,signaturePageIndex:null,populateStoredSignatures:()=>Promise.resolve((0,o.aV)()),formFieldsNotSavingSignatures:(0,o.l4)(),formFieldName:null})){}},49027:(e,t,n)=>{"use strict";n.d(t,{Z:()=>L,w:()=>N});var o=n(35369),r=n(88804),i=n(11721),a=n(89849),s=n(57960),l=n(56169),c=n(47852),u=n(89835),d=n(98663),p=n(19568),f=n(65872),h=n(89e3),m=n(64494),g=n(79941),v=n(151),y=n(92947),b=n(76192),w=n(39511),S=n(80440),E=n(31835),P=n(84760),x=n(67699),D=n(52842),C=n(72131),k=n(73324),A=n(68218),O=n(4132),T=n(71603),I=n(36489),F=n(79827),M=n(91859);const _={reuseState:null,backend:null,pages:(0,o.aV)(),totalPages:0,debugMode:!1,isDebugConsoleVisible:!1,rootElement:null,scrollElement:null,frameWindow:null,containerRect:new r.UL,connectionFailureReason:null,connectionState:new i.Z({name:a.F.CONNECTING}),scrollbarOffset:0,currentTextSelection:null,inlineTextMarkupToolbar:!0,annotations:(0,o.D5)(),attachments:(0,o.D5)(),formFields:(0,o.D5)(),formattedFormFieldValues:(0,o.D5)(),editingFormFieldValues:(0,o.D5)(),readOnlyEnabled:C.J.NO,formsEnabled:!0,formDesignMode:!1,showAnnotations:!0,showComments:!0,showAnnotationNotes:!0,printingEnabled:!0,exportEnabled:!0,selectedAnnotationIds:(0,o.l4)(),selectedAnnotationShouldDrag:null,selectedAnnotationMode:null,selectedTextOnEdit:!1,interactionMode:null,interactionsDisabled:!1,showToolbar:!0,enableAnnotationToolbar:!0,sidebarMode:null,sidebarOptions:k.T,sidebarPlacement:f.d.START,showSignatureValidationStatus:m.W.NEVER,hoverAnnotationIds:(0,o.l4)(),hoverAnnotationNote:null,activeAnnotationNote:null,clientsChangeCallback:()=>{},searchState:new l.Z,clientPermissions:new d.Z,backendPermissions:new u.Z,documentPermissions:new p.Z,inkEraserCursorWidth:0,isPrinting:!1,printLoadingIndicatorProgress:null,toolbarItems:(0,o.aV)(),electronicSignatureColorPresets:[],annotationToolbarHeight:0,annotationPresets:(0,o.D5)(),annotationPresetIds:(0,o.D5)(),currentItemPreset:null,stampAnnotationTemplates:[],viewportState:new c.Z,annotationManager:null,bookmarkManager:null,formFieldManager:null,formFieldValueManager:null,commentManager:null,changeManager:null,searchProvider:null,autoSaveMode:b.u.IMMEDIATE,eventEmitter:new E.Z,printMode:w.X.DOM,printQuality:S.g.LOW,features:(0,o.aV)(),signatureFeatureAvailability:null,customOverlayItems:(0,o.D5)(),locale:"en",annotationCreatorName:null,signatureState:new s.Z,annotationCreatorNameReadOnly:!1,hasPassword:!1,resolvePassword:null,isUnlockedViaModal:!1,transformClientToPage:e=>e,documentOutlineState:new y.Z,annotationsIdsToDelete:null,renderPageCallback:null,annotationTooltipCallback:null,isEditableAnnotation:null,isEditableComment:null,editableAnnotationTypes:(0,o.l4)(g.Z),customRenderers:null,customUIStore:null,documentHandle:null,allowedTileScales:"all",isDocumentHandleOutdated:!1,toolbarPlacement:h.p.TOP,comments:(0,o.D5)(),commentThreads:(0,o.D5)(),isSigning:!1,isApplyingRedactions:!1,digitalSignatures:null,previewRedactionMode:!1,canScrollWhileDrawing:!1,isAPStreamRendered:()=>!0,invalidAPStreams:(0,o.D5)(),collapseSelectedNoteContent:!1,restrictAnnotationToPageBounds:!0,hasFetchedInitialRecordsFromInstant:!1,group:void 0,documentEditorFooterItems:(0,o.aV)(),electronicSignatureCreationModes:(0,o.hU)(v.Z),signingFonts:(0,o.hU)(P.Z),documentEditorToolbarItems:(0,o.aV)(),isHistoryEnabled:!1,areClipboardActionsEnabled:!1,historyChangeContext:x.j.DEFAULT,undoActions:(0,o.aV)(),redoActions:(0,o.aV)(),historyIdsMap:(0,o.D5)(),a11yStatusMessage:"",lastToolbarActionUsedKeyboard:!1,onOpenURI:null,onAnnotationResizeStart:void 0,documentComparisonState:null,keepSelectedTool:!1,instance:null,dateTimeString:null,sidebarWidth:0,annotationToolbarItems:null,focusedAnnotationIds:(0,o.l4)(),annotationToolbarColorPresets:null,renderPagePreview:!0,onWidgetAnnotationCreationStart:null,formDesignerUnsavedWidgetAnnotation:null,inkEraserMode:D.b.POINT,firstCurrentPageIndex:0,arePageSizesLoaded:null,inlineTextSelectionToolbarItems:null,measurementSnapping:!0,measurementPrecision:O.L.TWO,measurementScale:new T.Z({unitFrom:I.s.INCHES,unitTo:F.K.INCHES,fromValue:1,toValue:1}),measurementToolState:null,measurementValueConfiguration:null,measurementScales:null,APStreamVariantsRollover:(0,o.l4)(),APStreamVariantsDown:(0,o.l4)(),contentEditorSession:new A.aN,showExitContentEditorDialog:!1,linkAnnotationMode:!1,anonymousComments:!1,annotationsGroups:(0,o.D5)(),selectedGroupId:null,enableRichText:()=>!1,richTextEditorRef:null,multiAnnotationsUsingShortcut:null,disablePullToRefresh:!1,mentionableUsers:[],maxMentionSuggestions:5,isMultiSelectionEnabled:!0,widgetAnnotationToFocus:null,onCommentCreationStart:null,defaultAutoCloseThreshold:M.W3,hintLines:null,scrollDisabled:!1,customFontsReadableNames:(0,o.l4)(),secondaryMeasurementUnit:null,activeMeasurementScale:null,isCalibratingScale:!1},R={pages:(0,o.aV)(),annotations:(0,o.D5)(),attachments:(0,o.D5)(),formFields:(0,o.D5)(),comments:(0,o.D5)(),commentThreads:(0,o.D5)()};class N extends((0,o.WV)(R)){}class L extends((0,o.WV)(_)){}},65338:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(35369),r=n(88804);class i extends((0,o.WV)({id:null,pageIndex:null,boundingBox:new r.UL,contents:"",contentTreeElementMetadata:null})){}},30679:(e,t,n)=>{"use strict";n.d(t,{G:()=>i,a:()=>r});const o=(0,n(80857).Z)("ToolItem"),r=[Node.ELEMENT_NODE,Node.TEXT_NODE,Node.DOCUMENT_FRAGMENT_NODE],i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;const{type:n,id:i,title:a,className:s,icon:l,onPress:c,disabled:u,selected:d,node:p}=e;t("custom"===n,"Mandatory `type` is either missing or not `custom`"),p&&(t("custom"===n,"`node` is only supported for `custom` tool items."),t(r.includes(p.nodeType),"`node.nodeType` is invalid. Expected one of "+r.join(", "))),i&&t("string"==typeof i,"`id` must be a `string`"),a&&t("string"==typeof a,"`title` must be a `string`"),s&&t("string"==typeof s,"`className` must be a `string`"),l&&t("string"==typeof l,"`icon` must be a `string`"),c&&t("function"==typeof c,"`onPress` must be a `function`"),"disabled"in e&&t("boolean"==typeof u,"`disabled` must be a `boolean`"),"selected"in e&&t("boolean"==typeof d,"`selected` must be a `boolean`")}},34426:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var o=n(50974),r=n(35369),i=n(91859),a=n(40725),s=n(77973),l=n(47710),c=n(65872),u=n(28098),d=n(64494),p=n(73324);const f="You tried to call a function on ViewState that requires a PSPDFKit.Instance.\nThis is possible, when you use a ViewState that is obtained via Instance#viewState, Instance.setViewState or by setting the instance value of a ViewState explicitly.";class h extends((0,r.WV)({currentPageIndex:0,zoom:u.c.AUTO,zoomStep:i.V4,pagesRotation:0,layoutMode:s.X.SINGLE,scrollMode:l.G.CONTINUOUS,showToolbar:!0,enableAnnotationToolbar:!0,allowPrinting:!0,allowExport:!0,interactionMode:null,readOnly:!1,showAnnotations:!0,showComments:!0,showAnnotationNotes:!0,sidebarMode:null,sidebarOptions:p.T,sidebarPlacement:c.d.START,spreadSpacing:i.YJ,pageSpacing:i.Sk,keepFirstSpreadAsSinglePage:!1,viewportPadding:new a.Z,instance:null,formDesignMode:!1,showSignatureValidationStatus:d.W.NEVER,previewRedactionMode:!1,canScrollWhileDrawing:!1,keepSelectedTool:!1,resolvedLayoutMode:s.X.SINGLE,sidebarWidth:0})){zoomIn(){if(!this.instance)throw new o.p2(f);this.instance.zoomStep||(this.instance.zoomStep=i.V4);const{maximumZoomLevel:e}=this.instance;let t=this.instance.currentZoomLevel*this.instance.zoomStep;return t>e&&(t=e),this.set("zoom",t)}zoomOut(){if(!this.instance)throw new o.p2(f);this.instance.zoomStep||(this.instance.zoomStep=i.V4);const{minimumZoomLevel:e}=this.instance;let t=this.instance.currentZoomLevel/this.instance.zoomStep;return t(e+270)%360))}rotateRight(){return this.update("pagesRotation",(e=>(e+90)%360))}goToNextPage(){if(!this.instance)throw new o.p2(f);let e=this.currentPageIndex+1;return e>this.instance.totalPageCount-1&&(e=this.instance.totalPageCount-1),this.set("currentPageIndex",e)}goToPreviousPage(){let e=this.currentPageIndex-1;return e<0&&(e=0),this.set("currentPageIndex",e)}}},40725:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(35369),r=n(91859);class i extends((0,o.WV)({horizontal:r.Kk,vertical:r.Kk})){}},47852:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(35369),r=n(91859),i=n(77973),a=n(47710),s=n(28098),l=n(88804);const c={zoomLevel:1,zoomMode:s.c.AUTO,layoutMode:i.X.SINGLE,scrollMode:a.G.CONTINUOUS,scrollPosition:new l.E9,currentPageIndex:0,viewportRect:new l.UL,pageSizes:(0,o.aV)(),commentMode:null,pagesRotation:0,viewportPadding:new l.E9({x:r.Kk,y:r.Kk}),spreadSpacing:r.YJ,pageSpacing:r.Sk,keepFirstSpreadAsSinglePage:!1,minDefaultZoomLevel:r.cY,maxDefaultZoomLevel:r.QS,zoomStep:r.V4,lastScrollUsingKeyboard:!1,documentComparisonMode:null};class u extends(o.WV(c)){}},86920:(e,t,n)=>{"use strict";n.d(t,{D2:()=>u,Q:()=>d,aU:()=>a,co:()=>c,uV:()=>s,zR:()=>l});var o=n(84121),r=n(50974),i=n(60797);class a extends i.D{constructor(e){if(super(e),(0,o.Z)(this,"subActions",null),this.subActions=null==e?void 0:e.subActions,this.constructor===a)throw new r.p2("PSPDFKit.Actions.Action is an abstract base class and can not be instantiated")}}(0,i.V)(a);const s=1,l=1,c=2,u=3,d=4},22571:(e,t,n)=>{"use strict";n.d(t,{b:()=>a});var o=n(84121),r=n(60797),i=n(86920);class a extends i.aU{constructor(e){super(e)}}(0,o.Z)(a,"defaultValues",{script:""}),(0,r.V)(a)},89335:(e,t,n)=>{"use strict";n.d(t,{aU:()=>o.aU,Di:()=>a,Qr:()=>s,_6:()=>l,ZD:()=>u,bp:()=>d.b,b:()=>p,oH:()=>f,BO:()=>h,pl:()=>m,lm:()=>g});var o=n(86920),r=n(84121),i=n(60797);class a extends o.aU{constructor(e){super(e)}}(0,r.Z)(a,"defaultValues",{pageIndex:null}),(0,i.V)(a);class s extends o.aU{constructor(e){super(e)}}(0,r.Z)(s,"defaultValues",{newWindow:!1,relativePath:"",targetType:"parent"}),(0,i.V)(s);class l extends o.aU{constructor(e){super(e)}}(0,r.Z)(l,"defaultValues",{relativePath:"",namedDestination:""}),(0,i.V)(l);var c=n(35369);class u extends o.aU{constructor(e){super(e)}}(0,r.Z)(u,"defaultValues",{hide:!0,annotationReferences:(0,c.aV)()}),(0,i.V)(u);var d=n(22571);class p extends o.aU{constructor(e){super(e)}}(0,r.Z)(p,"defaultValues",{filePath:null}),(0,i.V)(p);class f extends o.aU{constructor(e){super(e)}}(0,r.Z)(f,"defaultValues",{action:null}),(0,i.V)(f);class h extends o.aU{constructor(e){super(e)}}(0,r.Z)(h,"defaultValues",{fields:null,includeExclude:!1}),(0,i.V)(h);class m extends o.aU{constructor(e){super(e)}}(0,r.Z)(m,"defaultValues",{uri:null,fields:null,includeExclude:!1,includeNoValueFields:!0,exportFormat:!0,getMethod:!1,submitCoordinated:!1,xfdf:!1,includeAppendSaves:!1,includeAnnotations:!1,submitPDF:!1,canonicalFormat:!1,excludeNonUserAnnotations:!1,excludeFKey:!1,embedForm:!1}),(0,i.V)(m);class g extends o.aU{constructor(e){super(e)}}(0,r.Z)(g,"defaultValues",{uri:null}),(0,i.V)(g)},32125:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(84121),r=n(50974),i=n(88804),a=n(60797);class s extends a.D{constructor(e){if(super(e),this.constructor===s)throw new r.p2("PSPDFKit.Annotations.Annotation is an abstract base class and can not be instantiated")}}(0,o.Z)(s,"defaultValues",{id:null,name:null,subject:null,pdfObjectId:null,pageIndex:null,boundingBox:new i.UL,opacity:1,action:null,note:null,creatorName:null,createdAt:new Date(0),updatedAt:new Date(0),customData:null,noPrint:!1,noZoom:!1,noRotate:!1,noView:!1,locked:!1,lockedContents:!1,readOnly:!1,hidden:!1,blendMode:"normal",additionalActions:null,isCommentThreadRoot:!1,group:void 0,isEditable:void 0,isDeletable:void 0,canSetGroup:void 0,canReply:void 0,APStreamCache:void 0,rotation:0}),(0,a.V)(s);const l=s},70094:(e,t,n)=>{"use strict";n.d(t,{FN:()=>u,Yu:()=>d,p1:()=>c});var o=n(84121),r=n(34997),i=n(15973),a=n(88804),s=n(88713),l=n(60797);const c=32;class u extends i.Qi{}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;if(e){var o;const i=p(e,t,n);return new u({id:(0,r.SK)(),pageIndex:e.pageIndex,boundingBox:new a.UL({left:i.x,top:i.y,width:t,height:n}),text:{format:"plain",value:null!==(o=e.note)&&void 0!==o?o:""},parentAnnotation:e,position:i})}return new u({id:(0,r.SK)(),notePosition:new a.E9})}function p(e,t,n){let o=null;var r,l;if(e instanceof i.Zc)e.lines.isEmpty()||null!==(r=e.lines.get(0))&&void 0!==r&&r.isEmpty()||(o=null===(l=e.lines.get(0))||void 0===l?void 0:l.get(0));else if(e instanceof s.Z||e instanceof i.om){if(e.points&&e.points.size>=2){const t=e.points.get(0),n=e.points.get(1);o=new a.E9({x:(t.x+n.x)/2,y:(t.y+n.y)/2})}}else if(e instanceof i.o9){const t=e.startPoint,n=e.endPoint;o=new a.E9({x:(t.x+n.x)/2,y:(t.y+n.y)/2})}else if(e instanceof i.On)return new a.E9({x:e.boundingBox.right+4,y:e.boundingBox.getCenter().y-n/2});return o||(o=new a.E9({x:e.boundingBox.getCenter().x,y:e.boundingBox.top})),o.set("x",o.x-t/2).set("y",o.y-n/2)}(0,o.Z)(u,"defaultValues",{parentAnnotation:null,position:new a.E9,notePosition:new a.E9}),(0,l.V)(u)},73039:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(84121),r=n(35369),i=n(32125),a=n(83634),s=n(60797);class l extends i.Z{}(0,o.Z)(l,"defaultValues",{lines:(0,r.aV)(),lineWidth:5,strokeColor:a.Z.BLUE,backgroundColor:null,isDrawnNaturally:!1,isSignature:!1}),(0,o.Z)(l,"readableName","Ink"),(0,s.V)(l);const c=l},74973:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(84121),r=n(32125),i=n(60797);class a extends r.Z{}(0,o.Z)(a,"defaultValues",{description:null,fileName:null,contentType:null,mediaAttachmentId:null}),(0,o.Z)(a,"readableName","Media"),(0,i.V)(a)},65627:(e,t,n)=>{"use strict";n.d(t,{W:()=>c,Z:()=>d});var o,r=n(84121),i=n(32125),a=n(83634),s=n(18025),l=n(60797);const c=[{color:new a.Z({r:255,g:216,b:63}),localization:{id:"yellow",defaultMessage:"Yellow",description:"Yellow color"}},{color:new a.Z({r:255,g:127,b:0}),localization:{id:"orange",defaultMessage:"Orange",description:"Orange, the color"}},{color:new a.Z({r:255,g:51,b:0}),localization:{id:"red",defaultMessage:"Red",description:"Red, the color"}},{color:new a.Z({r:229,g:51,b:255}),localization:{id:"fuchsia",defaultMessage:"Fuchsia",description:"Fuchsia, the color"}},{color:new a.Z({r:0,g:153,b:255}),localization:{id:"blue",defaultMessage:"Blue",description:"Blue, the color"}},{color:new a.Z({r:114,g:255,b:0}),localization:{id:"green",defaultMessage:"Green",description:"Green, the color"}}];class u extends i.Z{}(0,r.Z)(u,"isEditable",!0),(0,r.Z)(u,"readableName","Note"),(0,r.Z)(u,"defaultValues",{text:{format:"plain",value:""},icon:s.Zi.COMMENT,color:null===(o=c.find((e=>"yellow"===e.localization.id)))||void 0===o?void 0:o.color}),(0,l.V)(u);const d=u},18146:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(84121),r=n(49200),i=n(83634),a=n(60797);class s extends r.Z{}(0,o.Z)(s,"readableName","Redaction"),(0,o.Z)(s,"defaultValues",{color:i.Z.RED,fillColor:i.Z.BLACK,outlineColor:i.Z.RED,overlayText:null,repeatOverlayText:null,rotation:0}),(0,a.V)(s)},82405:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(84121),r=n(32125),i=n(83634),a=n(60797);class s extends r.Z{isMeasurement(){return null!==this.measurementScale}}(0,o.Z)(s,"readableName","Shape"),(0,o.Z)(s,"defaultValues",{strokeWidth:5,strokeColor:i.Z.BLUE,fillColor:null,strokeDashArray:null,measurementPrecision:null,measurementScale:null}),(0,a.V)(s);const l=s},33754:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>u,a$:()=>s,k1:()=>l,pY:()=>a});var o=n(84121),r=n(32125),i=n(60797);const a={Approved:{},NotApproved:{},Draft:{},Final:{},Completed:{},Confidential:{},ForPublicRelease:{},NotForPublicRelease:{},ForComment:{},Void:{},PreliminaryResults:{},InformationOnly:{},Rejected:{},Accepted:{},InitialHere:{},SignHere:{},Witness:{},AsIs:{},Departmental:{},Experimental:{},Expired:{},Sold:{},TopSecret:{},Revised:{includeDate:!0,includeTime:!0},RejectedWithText:{includeDate:!0,includeTime:!0},Custom:{}},s={RejectedWithText:"Rejected"},l=e=>s[e]||e;class c extends r.Z{}(0,o.Z)(c,"defaultValues",{stampType:"Custom",title:null,subtitle:null,color:null,xfdfAppearanceStream:null}),(0,o.Z)(c,"readableName","Stamp"),(0,i.V)(c);const u=c},47751:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(84121),r=n(38623),i=n(32125),a=n(83634),s=n(60797);class l extends i.Z{}(0,o.Z)(l,"defaultValues",{text:{format:"plain",value:null},fontColor:a.Z.BLACK,backgroundColor:null,font:r.vt.first()||"sans-serif",fontSize:18,isBold:!1,isItalic:!1,horizontalAlign:"left",verticalAlign:"top",callout:null,borderStyle:null,borderWidth:null,borderColor:null,isFitting:!1,lineHeightFactor:null}),(0,o.Z)(l,"isEditable",!0),(0,o.Z)(l,"readableName","Text"),(0,o.Z)(l,"fontSizePresets",Object.freeze([4,6,8,10,12,14,18,24,36,48,64,72,96,144,192,200])),(0,s.V)(l);const c=l},49200:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(84121),r=n(35369),i=n(32125),a=n(83634),s=n(60797);class l extends i.Z{}(0,o.Z)(l,"defaultValues",{rects:(0,r.aV)(),color:a.Z.BLACK,blendMode:"normal"}),(0,o.Z)(l,"readableName","Text-Markup"),(0,s.V)(l);const c=l},29346:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(84121),r=n(32125),i=n(60797);class a extends r.Z{}(0,o.Z)(a,"defaultValues",{formFieldName:null,borderColor:null,borderStyle:null,borderDashArray:null,borderWidth:null,backgroundColor:null,fontSize:null,font:null,isBold:!1,isItalic:!1,fontColor:null,horizontalAlign:null,verticalAlign:null,additionalActions:null,lineHeightFactor:1}),(0,o.Z)(a,"readableName","Widget"),(0,i.V)(a);const s=a},15973:(e,t,n)=>{"use strict";n.d(t,{q6:()=>o.Z,Jn:()=>O,Xs:()=>m.Z,FV:()=>l,sK:()=>u,Zc:()=>d.Z,o9:()=>f.Z,R1:()=>b,Hu:()=>I.Z,Qi:()=>w.Z,Hi:()=>g.Z,om:()=>v.Z,b3:()=>h.Z,Wk:()=>T.Z,UX:()=>p.Z,hL:()=>S,GI:()=>E.ZP,R9:()=>P,gd:()=>x.Z,On:()=>i.Z,xu:()=>D,Ih:()=>k,x_:()=>A.Z});var o=n(32125),r=n(84121),i=n(49200),a=n(83634),s=n(60797);class l extends i.Z{}(0,r.Z)(l,"className","highlight"),(0,r.Z)(l,"readableName","Highlight"),(0,r.Z)(l,"defaultValues",{blendMode:"multiply",color:a.Z.LIGHT_YELLOW}),(0,s.V)(l);class c extends o.Z{}(0,r.Z)(c,"defaultValues",{description:null,fileName:null,contentType:null,imageAttachmentId:null,isSignature:!1,xfdfAppearanceStream:null}),(0,r.Z)(c,"readableName","Image"),(0,s.V)(c);const u=c;var d=n(73039),p=n(82405),f=n(20683),h=n(87043),m=n(70076),g=n(88713),v=n(50690);class y extends o.Z{}(0,r.Z)(y,"readableName","Link"),(0,r.Z)(y,"defaultValues",{borderWidth:0,borderColor:null,opacity:1}),(0,s.V)(y);const b=y;var w=n(65627);class S extends i.Z{}(0,r.Z)(S,"className","squiggle"),(0,r.Z)(S,"readableName","Squiggle"),(0,r.Z)(S,"defaultValues",{color:a.Z.RED}),(0,s.V)(S);var E=n(33754);class P extends i.Z{}(0,r.Z)(P,"className","strikeout"),(0,r.Z)(P,"readableName","Strike Out"),(0,r.Z)(P,"defaultValues",{color:a.Z.RED}),(0,s.V)(P);var x=n(47751);class D extends i.Z{}(0,r.Z)(D,"className","underline"),(0,r.Z)(D,"readableName","Underline"),(0,r.Z)(D,"defaultValues",{color:a.Z.BLACK}),(0,s.V)(D);class C extends o.Z{}(0,s.V)(C);const k=C;var A=n(29346);class O extends o.Z{}(0,r.Z)(O,"readableName","Comment-Marker"),(0,s.V)(O);var T=n(18146),I=n(74973)},70076:(e,t,n)=>{"use strict";n.d(t,{F:()=>u,Z:()=>d});var o=n(84121),r=n(82405),i=n(88804),a=n(91859),s=n(60797);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}class c extends r.Z{constructor(e){super(u(e))}}function u(e){if(!e)return;const t=function(e){for(var t=1;t0&&!e.cloudyBorderInset){const n=Number(e.cloudyBorderIntensity)*a.St+(e.strokeWidth||r.Z.defaultValues.strokeWidth)/2;return t.cloudyBorderInset=i.eB.fromValue(n),t}return t}(0,o.Z)(c,"defaultValues",{cloudyBorderIntensity:null,cloudyBorderInset:null,measurementBBox:null}),(0,o.Z)(c,"readableName","Ellipse"),(0,s.V)(c);const d=c},20683:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(84121),r=n(82405),i=n(88804),a=n(60797);class s extends r.Z{}(0,o.Z)(s,"defaultValues",{startPoint:new i.E9,endPoint:new i.E9,lineCaps:null}),(0,o.Z)(s,"readableName","Line"),(0,a.V)(s);const l=s},88713:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(84121),r=n(35369),i=n(82405),a=n(60797);class s extends i.Z{}(0,o.Z)(s,"defaultValues",{points:(0,r.aV)(),cloudyBorderIntensity:null}),(0,o.Z)(s,"readableName","Polygon"),(0,a.V)(s);const l=s},50690:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(84121),r=n(35369),i=n(82405),a=n(60797);class s extends i.Z{}(0,o.Z)(s,"defaultValues",{points:(0,r.aV)(),lineCaps:null}),(0,o.Z)(s,"readableName","Polyline"),(0,a.V)(s);const l=s},87043:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(84121),r=n(82405),i=n(70076),a=n(60797);class s extends r.Z{constructor(e){super((0,i.F)(e))}}(0,o.Z)(s,"defaultValues",{cloudyBorderIntensity:null,cloudyBorderInset:null,measurementBBox:null}),(0,o.Z)(s,"readableName","Rectangle"),(0,a.V)(s);const l=s},11863:(e,t,n)=>{"use strict";n.d(t,{Gu:()=>s,ZP:()=>a,vQ:()=>l});var o=n(50974),r=n(35369);const i={id:null,rootId:null,pageIndex:null,pdfObjectId:null,creatorName:null,createdAt:new Date(0),updatedAt:new Date(0),text:{format:"xhtml",value:null},customData:null,group:void 0,isEditable:void 0,isDeletable:void 0,canSetGroup:void 0,isAnonymous:void 0};class a extends(r.WV(i)){getMentionedUserIds(){const e=this.text.value;(0,o.kG)("string"==typeof e,"`text.value` must be of type `string`");const t=(new DOMParser).parseFromString(e,"text/html").body.querySelectorAll("span[data-user-id]"),n=Array.from(t).map((e=>e.getAttribute("data-user-id"))).filter(o.lH);return r.l4(n)}}const s=e=>{(0,o.kG)("string"==typeof e.id,"`id` must be of type `string`"),(0,o.kG)("string"==typeof e.rootId,"`rootId` must be of type `string`"),(0,o.kG)("number"==typeof e.pageIndex,"`pageIndex` must be of type `number`"),(0,o.kG)(null==e.pdfObjectId||"number"==typeof e.pdfObjectId,"`pdfObjectId` must be of type `number`"),(0,o.kG)(null==e.creatorName||"string"==typeof e.creatorName,"`creatorName` must be of type `string`"),(0,o.kG)(e.createdAt instanceof Date,"`createdAt` must be a Date"),(0,o.kG)(e.updatedAt instanceof Date,"`updatedAt` must be a Date"),(0,o.kG)("object"==typeof e.text,"`text` must be of type `object`"),(0,o.kG)("string"==typeof e.text.value,"`text` must be of type `string`"),(0,o.kG)("xhtml"===e.text.format||"plain"===e.text.format,"`text.format` must be either `xhtml` or `plain`"),(0,o.kG)(null==e.customData||(0,o.PO)(e.customData),"`customData` must be a JSON-serializable object"),(0,o.kG)(void 0===e.isAnonymous||"boolean"==typeof e.isAnonymous||null==e.isAnonymous,"`isAnonymous` must be of type `boolean`")};function l(e){return(0,o.kG)("string"==typeof e.id,"`id` must be of type `string`"),(0,o.kG)("string"==typeof e.name,"`name` must be of type `string`"),e.avatarUrl&&(0,o.kG)("string"==typeof e.avatarUrl,"`avatarUrl` must be of type `string`"),e.description&&(0,o.kG)("string"==typeof e.description,"`description` must be of type `string`"),(0,o.kG)("string"==typeof e.displayName,"`displayName` must be of type `string`"),e}},26248:(e,t,n)=>{"use strict";n.d(t,{BG:()=>a,FR:()=>l,QA:()=>o,Xl:()=>s,qA:()=>i,wk:()=>r});const o={ok:"ok",tampered_document:"tampered_document",failed_to_retrieve_signature_contents:"failed_to_retrieve_signature_contents",failed_to_retrieve_byterange:"failed_to_retrieve_byterange",failed_to_compute_digest:"failed_to_compute_digest",failed_retrieve_signing_certificate:"failed_retrieve_signing_certificate",failed_retrieve_public_key:"failed_retrieve_public_key",failed_encryption_padding:"failed_encryption_padding",general_failure:"general_failure"},r={ok:"ok",ok_but_self_signed:"ok_but_self_signed",untrusted:"untrusted",expired:"expired",not_yet_valid:"not_yet_valid",invalid:"invalid",revoked:"revoked",failed_to_retrieve_signature_contents:"failed_to_retrieve_signature_contents",general_validation_problem:"general_validation_problem"},i={valid:"valid",warning:"warning",error:"error"},a={CMS:"CMS",CAdES:"CAdES"},s={cms:"cms",cades:"cades",documentTimestamp:"documentTimestamp"},l={raw:"raw",pkcs7:"pkcs7"}},76367:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});const o={valid:"valid",warning:"warning",error:"error",not_signed:"not_signed"}},3845:(e,t,n)=>{"use strict";let o;n.d(t,{f:()=>o}),function(e){e.DRAW_START="DRAW_START",e.DRAW_END="DRAW_END",e.TEXT_EDIT_START="TEXT_EDIT_START",e.TEXT_EDIT_END="TEXT_EDIT_END",e.SELECT_START="SELECT_START",e.SELECT_END="SELECT_END",e.MOVE_START="MOVE_START",e.MOVE_END="MOVE_END",e.RESIZE_START="RESIZE_START",e.RESIZE_END="RESIZE_END",e.ROTATE_START="ROTATE_START",e.ROTATE_END="ROTATE_END",e.DELETE_START="DELETE_START",e.DELETE_END="DELETE_END",e.PROPERTY_CHANGE="PROPERTY_CHANGE"}(o||(o={}))},3534:(e,t,n)=>{"use strict";n.d(t,{Gu:()=>u,Mr:()=>s,ZP:()=>c});var o=n(84121),r=n(35369),i=n(50974),a=n(60797);const s=["readOnly","required","noExport"];class l extends a.D{constructor(e){if(super(e),this.constructor===l)throw new i.p2("PSPDFKit.FormFields.FormField is an abstract base class and can not be instantiated")}}(0,o.Z)(l,"defaultValues",{id:null,pdfObjectId:null,annotationIds:(0,r.aV)(),name:null,label:"",readOnly:!1,required:!1,noExport:!1,additionalActions:null,group:void 0,isEditable:void 0,isFillable:void 0,isDeletable:void 0,canSetGroup:void 0}),(0,a.V)(l);const c=l;function u(e){return e.has("name")}},11032:(e,t,n)=>{"use strict";n.d(t,{X:()=>s,Z:()=>a});var o=n(84121),r=n(60797);class i extends r.D{constructor(e){super(e),void 0!==(null==e?void 0:e.optionIndexes)&&(this.optionIndexes=e.optionIndexes),void 0!==(null==e?void 0:e.isFitting)&&(this.isFitting=e.isFitting)}}(0,o.Z)(i,"defaultValues",{name:null,value:null}),(0,r.V)(i);const a=i;function s(e){return`form-field-value/${e.name}`}},59780:(e,t,n)=>{"use strict";n.d(t,{R0:()=>s,rF:()=>u,Dz:()=>p,fB:()=>h,Wi:()=>r.ZP,KD:()=>m.Z,Vi:()=>v,XQ:()=>b,Yo:()=>P,$o:()=>S});var o=n(84121),r=n(3534),i=n(60797);class a extends r.ZP{}(0,o.Z)(a,"defaultValues",{buttonLabel:null}),(0,i.V)(a);const s=a;var l=n(35369);class c extends r.ZP{}(0,o.Z)(c,"defaultValues",{values:(0,l.aV)(),defaultValues:(0,l.aV)(),options:(0,l.aV)(),optionIndexes:void 0}),(0,i.V)(c);const u=c;class d extends r.ZP{}(0,o.Z)(d,"defaultValues",{options:(0,l.aV)(),values:(0,l.aV)(),defaultValues:(0,l.aV)(),multiSelect:!1,commitOnChange:!1,additionalActions:null}),(0,i.V)(d);const p=d;class f extends p{}(0,o.Z)(f,"defaultValues",{edit:!1,doNotSpellCheck:!1}),(0,i.V)(f);const h=f;var m=n(11032);class g extends p{}(0,i.V)(g);const v=g;class y extends r.ZP{}(0,o.Z)(y,"defaultValues",{options:(0,l.aV)(),noToggleToOff:!1,radiosInUnison:!0,value:"",defaultValue:"",optionIndexes:void 0}),(0,i.V)(y);const b=y;class w extends r.ZP{}(0,o.Z)(w,"defaultValues",{password:!1,maxLength:null,doNotSpellCheck:!1,doNotScroll:!1,multiLine:!1,comb:!1,value:"",defaultValue:"",additionalActions:null}),(0,i.V)(w);const S=w;class E extends r.ZP{}const P=E},17746:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(84121),r=n(52871),i=n(60797);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>a});var o=n(84121),r=n(60797);class i extends r.D{constructor(e){super(e)}scale(e,t){return this.withMutations((n=>{t||(t=e),n.set("x",this.x*e).set("y",this.y*t)}))}translate(e){let{x:t,y:n}=e;return this.withMutations((e=>{e.set("x",this.x+t).set("y",this.y+n)}))}translateX(e){return this.translate(new i({x:e,y:0}))}translateY(e){return this.translate(new i({x:0,y:e}))}distance(e){return Math.sqrt((e.x-this.x)**2+(e.y-this.y)**2)}rotate(e){e%=360;const{x:t,y:n}=this;switch(e){case 0:return this;case 90:return this.set("x",n).set("y",-t);case 180:return this.set("x",-t).set("y",-n);case 270:return this.set("x",-n).set("y",t);default:{const o=e*Math.PI/180;return this.set("x",Math.cos(o)*t+Math.sin(o)*n).set("y",Math.cos(o)*n-Math.sin(o)*t)}}}apply(e){const[t,n]=e.applyToPoint([this.x,this.y]);return this.withMutations((e=>{e.set("x",t).set("y",n)}))}}(0,o.Z)(i,"defaultValues",{x:0,y:0}),(0,r.V)(i);const a=i},55237:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(84121),r=n(50974),i=n(60797),a=n(52871),s=n(20449);class l extends i.D{constructor(e){super(e)}get right(){return this.left+this.width}get bottom(){return this.top+this.height}static fromClientRect(e){let{top:t,left:n,width:o,height:r}=e;return new l({top:t,left:n,width:o,height:r})}static union(e){const t=e.map((e=>e.top)).min(),n=e.map((e=>e.bottom)).max()-t,o=e.map((e=>e.left)).min(),r=e.map((e=>e.right)).max()-o;return new l({left:o,top:t,width:r,height:n})}static getCenteredRect(e,t){return new l({left:(t.width-e.width)/2,top:(t.height-e.height)/2,width:e.width,height:e.height})}static fromInset(e){return new l({left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top})}static fromPoints(){for(var e=arguments.length,t=new Array(e),n=0;ne.x))),i=Math.min(...t.map((e=>e.y))),a=Math.max(...t.map((e=>e.x))),s=Math.max(...t.map((e=>e.y)));return new l({left:o,top:i,width:a-o,height:s-i})}expandToIncludePoints(){for(var e=arguments.length,t=new Array(e),n=0;ne.x))),r=Math.min(this.top,...t.map((e=>e.y))),i=Math.max(this.left+this.width,...t.map((e=>e.x))),a=Math.max(this.top+this.height,...t.map((e=>e.y)));return new l({left:o,top:r,width:i-o,height:a-r})}static areRectsCloserThan(e,t,n){return Math.abs(e.left-t.left)<=n&&Math.abs(e.top-t.top)<=n&&Math.abs(e.left+e.width-(t.left+t.width))<=n&&Math.abs(e.top+e.height-(t.top+t.height))<=n}translate(e){let{x:t,y:n}=e;return this.withMutations((e=>{e.set("left",this.left+t).set("top",this.top+n)}))}translateX(e){return this.set("left",this.left+e)}translateY(e){return this.set("top",this.top+e)}scale(e,t){return this.withMutations((n=>{t||(t=e),n.set("left",this.left*e).set("top",this.top*t).set("width",this.width*e).set("height",this.height*t)}))}grow(e){return this.withMutations((t=>{t.set("left",this.left-e).set("top",this.top-e).set("width",this.width+2*e).set("height",this.height+2*e)}))}getLocation(){return new a.Z({x:this.left,y:this.top})}getSize(){return new s.Z({width:this.width,height:this.height})}getCenter(){return new a.Z({x:this.left+this.width/2,y:this.top+this.height/2})}setLocation(e){return this.withMutations((t=>{t.set("left",e.x).set("top",e.y)}))}roundOverlap(){return this.withMutations((e=>{e.set("left",Math.floor(this.left)).set("top",Math.floor(this.top)).set("width",Math.ceil(this.width)).set("height",Math.ceil(this.height))}))}round(){return this.withMutations((e=>{e.set("left",Math.round(this.left)).set("top",Math.round(this.top)).set("width",Math.round(this.width)).set("height",Math.round(this.height))}))}isPointInside(e){return e.x>=this.left&&e.x<=this.right&&e.y>=this.top&&e.y<=this.bottom}isRectInside(e){return this.isPointInside(e.getLocation())&&this.isPointInside(e.getLocation().translate(new a.Z({x:e.width,y:e.height})))}isRectOverlapping(e){return e.leftthis.left&&e.topthis.top}normalize(){return this.withMutations((e=>e.set("left",this.width<0?this.left+this.width:this.left).set("top",this.height<0?this.top+this.height:this.top).set("width",Math.abs(this.width)).set("height",Math.abs(this.height))))}apply(e){const[t,n]=e.applyToPoint([this.left,this.top]),[o,r]=e.applyToVector([this.width,this.height]);return this.withMutations((e=>e.set("left",t).set("top",n).set("width",o).set("height",r))).normalize()}}(0,o.Z)(l,"defaultValues",{left:0,top:0,width:0,height:0}),(0,i.V)(l);const c=l},20449:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(35369);class r extends((0,o.WV)({width:0,height:0})){scale(e){return this.withMutations((t=>{t.set("width",this.width*e).set("height",this.height*e)}))}ceil(){return this.withMutations((e=>{e.set("width",Math.ceil(this.width)).set("height",Math.ceil(this.height))}))}floor(){return this.withMutations((e=>{e.set("width",Math.floor(this.width)).set("height",Math.floor(this.height))}))}swapDimensions(){return this.withMutations((e=>{e.set("width",this.height).set("height",this.width)}))}apply(e){const[t,n]=e.applyToVector([this.width,this.height]);return this.withMutations((e=>{e.set("width",Math.abs(t)).set("height",Math.abs(n))}))}}},88804:(e,t,n)=>{"use strict";n.d(t,{Wm:()=>r.Z,eB:()=>f,E9:()=>o.Z,UL:()=>i.Z,$u:()=>a.Z,sl:()=>d});var o=n(52871),r=n(17746),i=n(55237),a=n(20449),s=n(84121),l=n(50974),c=n(60797);class u extends c.D{translate(e){let{x:t,y:n}=e;return this.transform(1,0,0,1,t,n)}translateX(e){return this.translate({x:e,y:0})}translateY(e){return this.translate({x:0,y:e})}scale(e,t){return t||(t=e),this.transform(e,0,0,t,0,0)}transform(e,t,n,o,r,i){const{a,b:s,c:l,d:c,e:u,f:d}=this;return this.withMutations((p=>p.set("a",e*a+n*s).set("b",t*a+o*s).set("c",e*l+n*c).set("d",t*l+o*c).set("e",e*u+n*d+r).set("f",t*u+o*d+i)))}rotate(e){(0,l.kG)(e%90==0,"Only multiples of 90° allowed.");const t=(360-e)*Math.PI/180,n=Math.cos(t),o=Math.sin(t);return this.transform(n,o,-o,n,0,0)}rotateRad(e){const t=Math.cos(e),n=Math.sin(e);return this.transform(t,n,-n,t,0,0)}inverse(){const{a:e,b:t,c:n,d:o,e:r,f:i}=this,a=e*o-t*n;return this.withMutations((s=>s.set("a",o/a).set("b",t/-a).set("c",n/-a).set("d",e/a).set("e",(n*i-o*r)/a).set("f",(e*i-t*r)/-a)))}toCssValue(){const{a:e,b:t,c:n,d:o,e:r,f:i}=this;return`matrix(${e.toFixed(2)}, ${t.toFixed(2)}, ${n.toFixed(2)}, ${o.toFixed(2)}, ${r.toFixed(2)}, ${i.toFixed(2)})`}applyToPoint(e){let[t,n]=e;const{a:o,b:r,c:i,d:a,e:s,f:l}=this;return[o*t+i*n+s,r*t+a*n+l]}applyToVector(e){let[t,n]=e;const{a:o,b:r,c:i,d:a}=this;return[o*t+i*n,r*t+a*n]}}(0,s.Z)(u,"defaultValues",{a:1,b:0,c:0,d:1,e:0,f:0}),(0,s.Z)(u,"IDENTITY",new u),(0,c.V)(u);const d=u;var p=n(35369);class f extends((0,p.WV)({left:0,top:0,right:0,bottom:0})){static applyToRect(e,t){if(!(e instanceof f))throw new l.p2("`inset` must be an instance of `PSPDFKit.Geometry.Inset`");if(!(t instanceof i.Z))throw new l.p2("`rect` must be an instance of `PSPDFKit.Geometry.Rect`");return new i.Z({top:t.top+e.top,left:t.left+e.left,width:t.width-(e.left+e.right),height:t.height-(e.top+e.bottom)})}static fromRect(e){return new f({left:e.left,top:e.top,right:e.left+e.width,bottom:e.top+e.height})}static fromValue(e){if("number"!=typeof e)throw new l.p2("The provided value must be a number");return new f({top:e,left:e,right:e,bottom:e})}apply(e){const t=e.applyToPoint([this.left,this.top]),n=e.applyToPoint([this.left,this.bottom]),o=e.applyToPoint([this.right,this.top]),r=e.applyToPoint([this.right,this.bottom]),i=Math.min(t[0],n[0],o[0],r[0]),a=Math.max(t[0],n[0],o[0],r[0]),s=Math.min(t[1],n[1],o[1],r[1]),l=Math.max(t[1],n[1],o[1],r[1]);return new f({left:i,right:a,top:s,bottom:l})}setScale(e){return new f({left:this.left*e,right:this.right*e,top:this.top*e,bottom:this.bottom*e})}}},82481:(e,t,n)=>{"use strict";n.d(t,{q6:()=>i.q6,Pg:()=>l,rp:()=>c.Z,R0:()=>a.R0,UW:()=>f,rF:()=>a.rF,Dz:()=>a.Dz,uh:()=>y.Z,Il:()=>h.Z,fB:()=>a.fB,sv:()=>T.ZP,Jn:()=>i.Jn,em:()=>m.Z,S:()=>x.Z,Wm:()=>r.Wm,Xs:()=>i.Xs,Wi:()=>a.Wi,KD:()=>a.KD,mv:()=>g.Z,Di:()=>o.Di,FV:()=>i.FV,sK:()=>i.sK,Zc:()=>i.Zc,eB:()=>r.eB,bp:()=>o.bp,o9:()=>i.o9,R1:()=>i.R1,Vi:()=>a.Vi,Qi:()=>i.Qi,sT:()=>C,T3:()=>v.Z,E9:()=>r.E9,Hi:()=>i.Hi,om:()=>i.om,XQ:()=>a.XQ,UL:()=>r.UL,b3:()=>i.b3,UX:()=>i.UX,Yo:()=>a.Yo,dp:()=>D.Z,$u:()=>r.$u,hL:()=>i.hL,GI:()=>i.GI,ZM:()=>b.Z,R9:()=>i.R9,gd:()=>i.gd,$o:()=>a.$o,bi:()=>w.Z,On:()=>i.On,SV:()=>E,Bs:()=>P,lm:()=>o.lm,xu:()=>i.xu,Ih:()=>i.Ih,f7:()=>O.Z,gx:()=>A.Z,Vk:()=>k.Z,x_:()=>i.x_});var o=n(89335),r=n(88804),i=n(15973),a=n(59780),s=n(35369);class l extends((0,s.WV)({data:null})){}var c=n(1053),u=n(84121),d=n(60797);class p extends d.D{}(0,u.Z)(p,"defaultValues",{start:null,knee:null,end:null,cap:null,innerRectInset:null}),(0,d.V)(p);const f=p;var h=n(83634),m=(n(86071),n(11721)),g=(n(74985),n(81619),n(19209)),v=(n(18509),n(80399)),y=(n(19419),n(98663)),b=(n(89835),n(19568),n(49027)),w=n(65338),S=n(50974);class E extends((0,s.WV)({startNode:null,startOffset:null,endNode:null,endOffset:null})){startAndEndIds(){const e=this.startNode.parentNode,t=this.endNode.parentNode,n=parseInt(e.dataset.textlineId),o=parseInt(t.dataset.textlineId),r=parseInt(e.dataset.pageIndex),i=parseInt(t.dataset.pageIndex);return(0,S.kG)("number"==typeof n,"selection startId is not a number"),(0,S.kG)("number"==typeof o,"selection endId is not a number"),(0,S.kG)("number"==typeof r,"selection start pageIndex is not a number"),(0,S.kG)("number"==typeof i,"selection end pageIndex is not a number"),{startTextLineId:n,endTextLineId:o,startPageIndex:r,endPageIndex:i}}}class P extends((0,s.WV)({textRange:null,startTextLineId:null,endTextLineId:null,startPageIndex:null,endPageIndex:null})){}var x=n(92947),D=n(57960);class C extends((0,s.WV)({children:(0,s.aV)(),title:"",color:null,isBold:!1,isItalic:!1,isExpanded:!1,action:null})){}var k=n(47852),A=n(40725),O=n(34426),T=n(11863)},71603:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(35369),r=n(36489),i=n(79827);class a extends((0,o.WV)({unitFrom:r.s.INCHES,unitTo:i.K.INCHES,fromValue:1,toValue:1})){}},46791:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(35369);class r extends((0,o.WV)({pageIndex:null,previewText:"",locationInPreview:null,lengthInPreview:null,rectsOnPage:(0,o.aV)(),isAnnotation:null,annotationRect:null})){}},56169:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(35369);class r extends((0,o.WV)({isFocused:!1,isLoading:!1,term:"",focusedResultIndex:-1,results:(0,o.aV)(),minSearchQueryLength:1})){}},25797:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m,q:()=>h});var o=n(84121),r=n(50974),i=n(67366),a=n(24852),s=n(63738),l=n(69939),c=n(96617),u=n(60132),d=n(83253);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t{y.forEach((t=>{e.dispatch((0,l.$d)(t))}))}));else if("SERVER"===s.type&&!s.isUsingInstantProvider()){var b;const{alreadyLoadedPages:e}=s.provider.state,t=y.filter((t=>e.has(t.pageIndex)));null===(b=o.annotationManager)||void 0===b||b.backendObjectsCreated(y,d.z),m.emit("annotations.create",t)}return y.map((e=>e.id))},t.applyRedactions=function(){const{features:t}=e.getState();if(!t.includes(u.q.REDACTIONS))throw new r.p2(h);return e.dispatch((0,s.fq)()),new Promise(((t,n)=>(e.dispatch((0,a.g)((()=>{e.dispatch((0,s.Di)()),t()}),(t=>{e.dispatch((0,s.Di)()),n(t)}))),t)))}}},95651:(e,t,n)=>{"use strict";n.d(t,{A8:()=>ue,AC:()=>oe,CU:()=>fe,Dc:()=>U,Dl:()=>D,F3:()=>Z,Fp:()=>T,IO:()=>q,Jy:()=>ge,Km:()=>V,SY:()=>C,TL:()=>re,TW:()=>J,U7:()=>te,Vc:()=>W,Wj:()=>k,X5:()=>j,Xu:()=>Q,YV:()=>ye,_E:()=>P,_R:()=>ne,_k:()=>ve,a$:()=>G,aI:()=>$,bz:()=>O,d:()=>F,dk:()=>ce,eD:()=>ee,eJ:()=>me,fc:()=>L,fk:()=>A,hG:()=>K,ip:()=>N,lx:()=>B,oF:()=>de,om:()=>z,pe:()=>se,sH:()=>S,tM:()=>le,tl:()=>pe,ud:()=>E,vj:()=>X,vk:()=>M,x2:()=>I,xU:()=>H,xc:()=>_,xp:()=>R,yU:()=>Y,z1:()=>he});var o=n(84121),r=n(35369),i=n(50974),a=n(34997),s=n(82481),l=n(18146),c=n(41952),u=n(91859),d=n(97528),p=n(88804),f=n(35129),h=n(83634),m=n(39728),g=n(51731),v=n(20792),y=n(75669);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function w(e){for(var t=1;t({color:new h.Z({r:e.color.r,g:e.color.g,b:e.color.b}),localization:e.localization})))}catch(e){return(0,i.ZK)(`Wrong color data stored in localStorage: ${e.message}`),[]}return[]}catch(e){return[]}}function E(e,t){return(0,i.kG)("number"==typeof t.pageIndex,"Annotation has no valid pageIndex"),(0,i.kG)(!e.annotations.has(t.id),`Annotation ID (${t.id}) is already known`),t.pageIndex<0||t.pageIndex>=e.pages.size?((0,i.ZK)(`Tried to add an annotation (ID: ${t.id}) with an out of bounds page index. This annotation was skipped.`),e):(t instanceof s.sK&&(0,i.kG)(Z(t.imageAttachmentId),"imageAttachmentId is not a valid hash or pdfObjectId"),e.withMutations((e=>{var n;t.id||(t=t.set("id",_())),e.setIn(["annotations",t.id],t),null!==(n=e.isAPStreamRendered)&&void 0!==n&&n.call(e,t)&&!ee(t)&&e.updateIn(["invalidAPStreams",t.pageIndex],(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.l4)();return e.add(t.id)})),x(e,t),(0,m._d)(e,t)})))}function P(e,t){(0,i.kG)("string"==typeof t.id,"Annotation has no valid id");const n=e.annotations.get(t.id);return(0,i.kG)(n instanceof s.q6,`Annotation with id ${t.id} not found and thus the update was ignored.`),e.withMutations((o=>{var i,a;null!=t.pageIndex&&x(o,t),!0!==t.noView&&!0!==t.hidden||!o.selectedAnnotationIds.has(t.id)||(o.delete("selectedAnnotationMode"),o.set("interactionMode",null),o.update("selectedAnnotationIds",(e=>e.filterNot((e=>e===t.id)))),o.update("hoverAnnotationIds",(e=>e.delete(t.id)))),o.setIn(["annotations",t.id],t);const s=e.activeAnnotationNote;s&&(null===(i=s.parentAnnotation)||void 0===i?void 0:i.id)===t.id&&(t.note?t.note!==s.text.value&&o.set("activeAnnotationNote",s.set("text",{format:"plain",value:t.note})):o.set("activeAnnotationNote",null));const l=e.hoverAnnotationNote;l&&(null===(a=l.parentAnnotation)||void 0===a?void 0:a.id)===t.id&&(t.note?t.note!==l.text.value&&o.set("hoverAnnotationNote",l.set("text",{format:"plain",value:t.note})):o.set("hoverAnnotationNote",null));const c=se((()=>o),t,(()=>{var e;null!==(e=o.isAPStreamRendered)&&void 0!==e&&e.call(o,t)&&oe(n,t)&&T(n)===T(t)&&o.updateIn(["invalidAPStreams",t.pageIndex],(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.l4)();return e.add(t.id)}))}));(0,m.GW)(o,n,t,c)}))}function x(e,t){return e.updateIn(["pages",t.pageIndex,"annotationIds"],(e=>e.add(t.id)))}function D(e,t){const n=e.annotations.get(t);return(0,i.kG)(n instanceof s.q6,"Annotation is unknown"),e.withMutations((o=>{var r,i,a;o.selectedAnnotationIds.has(t)&&(o.delete("selectedAnnotationMode"),o.interactionMode!==v.A.FORM_CREATOR&&o.set("interactionMode",null)),o.update("annotations",(e=>e.delete(t))),o.update("selectedAnnotationIds",(e=>e.filterNot((e=>e===t)))),o.update("annotationPresetIds",(e=>e.filterNot((e=>e===t)))),o.update("hoverAnnotationIds",(e=>e.delete(t))),null!==o.annotationsIdsToDelete&&o.update("annotationsIdsToDelete",(e=>null==e?void 0:e.filterNot((e=>e===t))));const s=e.activeAnnotationNote;s&&(null===(r=s.parentAnnotation)||void 0===r?void 0:r.id)===t&&o.set("activeAnnotationNote",null);const l=e.hoverAnnotationNote;if(l&&(null===(i=l.parentAnnotation)||void 0===i?void 0:i.id)===t&&o.set("hoverAnnotationNote",null),null==(null==n?void 0:n.pageIndex))return;o.deleteIn(["pages",n.pageIndex,"annotationIds",t]);const c=e.invalidAPStreams.get(n.pageIndex),u=(!c||!c.has(t))&&(null===(a=e.isAPStreamRendered)||void 0===a?void 0:a.call(e,n));(0,m.WF)(o,n,u),"number"==typeof n.pdfObjectId&&(o.deleteIn(["APStreamVariantsRollover",n.pdfObjectId]),o.deleteIn(["APStreamVariantsDown",n.pdfObjectId]))}))}function C(e,t){const{boundingBox:n}=e;if(e instanceof s.Qi){const e=n.getLocation(),o=(new p.sl).translate(e.scale(-1)).rotate(t).translate(e);return n.apply(o)}return n}function k(e,t,n){return(0,c.q)(C(e,t),n)}function A(e,t,n,o,r){var a;let l=e instanceof s.q6&&("points"in e&&(null===(a=e.points)||void 0===a?void 0:a.toJS())||"startPoint"in e&&e.startPoint&&e.endPoint&&[e.startPoint.toJS(),e.endPoint.toJS()]);if(W(e)){(0,i.kG)(e instanceof s.gd,"Callout annotation is not a TextAnnotation");const{callout:t}=e;(0,i.kG)(t,"Callout annotation has no callout");const{knee:n,start:o}=t;l=[o,n].map((e=>null==e?void 0:e.toJS()))}const u=(0,c.K)(o);return Array.isArray(l)?l.map((e=>({x:r+u+(e.x-t.left)*n,y:r+u+(e.y-t.top)*n}))):[]}function O(e){const t=null!=e.pageIndex;return e instanceof s.gd?t&&null!=e.text.value&&""!==e.text.value:e instanceof s.Hi||e instanceof s.om?t&&null!=e.points&&e.points.size>1:t}function T(e){return!1===e.noView&&!0!==e.hidden}function I(e){return!1===e.noPrint&&!0!==e.hidden}function F(e){return!(e instanceof s.Ih)}function M(e){return e?e.replace(/[A-Z]/g,"-$&").toLowerCase():null}const _=a.SK;function R(e,t){return function(e,t){return t.map((function(t){return e.get(t)})).filter(Boolean).toList()}(e,t.annotationIds)}function N(e){return e.boundingBox.setLocation(new s.E9)}const L=(0,r.D5)([["stroke-color","strokeColor"],["background-color","backgroundColor"],["color","color"],["fill-color","fillColor"],["font-color","fontColor"],["outline-color","outlineColor"]]);function B(e){var t;const n=_(),o=function(e){const t=e.currentItemPreset;return t&&e.annotationPresets.get(t)||{}}(e),r=w(w({},o),{},{id:n,name:n,creatorName:e.annotationCreatorName,createdAt:new Date,updatedAt:new Date});return e.group!==(null===(t=e.backend)||void 0===t?void 0:t.getDefaultGroup())&&(r.group=e.group),o.group&&o.group!==e.group&&(r.group=o.group),e.annotationToolbarColorPresets?L.reduce(((t,n,o)=>{const r=e.annotationToolbarColorPresets({propertyName:o,defaultAnnotationToolbarColorPresets:d.Ei.COLOR_PRESETS});if(void 0===r)return t;const i=r.presets,a=S(L.get(o,o));return function(e,t){return e.some((e=>!t&&null===e.color||t&&e.color&&e.color.equals(t)))}([...i,...a],t[n])?t:w(w({},t),{},{[n]:i[0].color})}),r):r}function j(e,t){const n=e.annotations.get(t);return n?n instanceof s.o9?"line":n instanceof s.Xs?"ellipse":n instanceof s.b3?"rectangle":n instanceof s.om?"polyline":n instanceof s.Hi?"polygon":n instanceof s.Zc?"ink":n instanceof s.Qi?"note":n instanceof s.gd?"text":n instanceof s.sK?"image":n instanceof s.GI?"stamp":n instanceof s.x_?"widget":n instanceof s.FV?"highlight":n instanceof s.xu?"underline":n instanceof s.R9?"strikeout":n instanceof s.hL?"squiggle":n instanceof l.Z?"redaction":null:null}function z(e,t,n,o,r){const{width:a,height:l}=t,{currentPageIndex:c,pagesRotation:d}=e.viewportState,p=e.pages.get(c);(0,i.kG)(p,`Cannot find page at index ${c}`);const f=p.pageSize,h=Math.min(f.width*u.Bs/a,f.height*u.Bs/l,1);let m=a*h,g=l*h;return 90!==d&&270!==d||([m,g]=[g,m]),new s.sK(w(w({},B(e)),{},{pageIndex:c,imageAttachmentId:n,contentType:o,rotation:d,fileName:r,boundingBox:new s.UL({left:f.width/2-m/2,top:f.height/2-g/2,width:m,height:g})}))}function K(e,t,n){const{width:o,height:r}=t,{currentPageIndex:a,pagesRotation:l}=e.viewportState,c=e.pages.get(a);(0,i.kG)(c,`Cannot find page at index ${a}`);const d=c.pageSize,p=Math.min(d.width*u.Bs/o,d.height*u.Bs/r,1);let f=o*p,h=r*p;return 90!==l&&270!==l||([f,h]=[h,f]),new s.GI(w(w({},B(e)),{},{pageIndex:a,stampType:n.stampType,title:n.title,subtitle:n.subtitle,color:n.color,opacity:n.opacity,rotation:l,boundingBox:new s.UL({left:d.width/2-f/2,top:d.height/2-h/2,width:f,height:h})}))}function Z(e){return RegExp("^([A-Fa-f0-9]{64}|[0-9]+)$").test(e)}function U(e,t){let n=(0,r.D5)();return(Array.isArray(t)?t:[t]).forEach((t=>{if(t instanceof s.sK&&t.imageAttachmentId){const o=e.attachments.get(t.imageAttachmentId);o&&(n=n.set(t.imageAttachmentId,o))}})),n}function V(e){return e instanceof s.om||e instanceof s.Hi||e instanceof s.o9||W(e)}function G(e){switch(e.constructor){case s.gd:return!W(e);case s.GI:return!0;default:return!1}}function W(e){var t;return e instanceof s.gd&&!(null===(t=e.callout)||void 0===t||!t.innerRectInset)}function q(e){return e instanceof s.om||e instanceof s.Hi||e instanceof s.b3||e instanceof s.sK||e instanceof s.Zc||e instanceof s.Xs||e instanceof s.GI||e instanceof s.gd&&!W(e)||e instanceof s.x_||e instanceof s.R1}function H(e,t){const n=t.onAnnotationResizeStart?t.onAnnotationResizeStart(e):void 0;if(void 0!==n)return(0,i.kG)(!0===n.maintainAspectRatio||!1===n.maintainAspectRatio||null===n.maintainAspectRatio||void 0===n.maintainAspectRatio,"onAnnotationResizeStart should return a valid configuration or undefined"),!!n.maintainAspectRatio&&n.maintainAspectRatio;if(e.isShiftPressed)return!0;const o=e.annotation instanceof s.sK||e.annotation instanceof s.GI,r=[g.V.TOP_LEFT,g.V.TOP_RIGHT,g.V.BOTTOM_LEFT,g.V.BOTTOM_RIGHT];return!!(o&&r.includes(e.resizeAnchor)||"isSignature"in e.annotation&&e.annotation.isSignature)}function $(e,t){const n=t.onAnnotationResizeStart?t.onAnnotationResizeStart(e):void 0;return n&&(n.minHeight&&n.minHeight<0&&((0,i.ZK)("minimum height in the onAnnotationResizeStart API should be greater than 0"),n.minHeight=void 0),n.maxHeight&&n.maxHeight<0&&((0,i.ZK)("maximum height in the onAnnotationResizeStart API should be greater than 0"),n.maxHeight=void 0),n.maxWidth&&n.maxWidth<0&&((0,i.ZK)("maximum width in the onAnnotationResizeStart API should be greater than 0"),n.maxWidth=void 0),n.minWidth&&n.minWidth<0&&((0,i.ZK)("maximum width in the onAnnotationResizeStart API should be greater than 0"),n.minWidth=void 0),n.maxHeight&&n.minHeight&&n.maxHeight{e.nativeEvent.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),n=!0}})),n}function Q(e){e.selectedAnnotationIds.forEach((t=>{e.deleteIn(["annotationPresetIds"],t)}))}function ee(e){return"number"==typeof e.pdfObjectId}function te(e){return e.width>0&&e.height>0}function ne(e,t){return!(e instanceof s.GI||e instanceof s.Ih||e instanceof s.sK||e instanceof s.x_&&t instanceof s.Yo)}function oe(e,t){return!(0,r.is)(N(e),N(t))||e.opacity!==t.opacity||e.rotation!==t.rotation||T(e)!==T(t)||(t instanceof s.sK&&e instanceof s.sK&&e.imageAttachmentId!==t.imageAttachmentId||(!(!(t instanceof s.UX&&e instanceof s.UX)||e.strokeWidth===t.strokeWidth&&ie(e.strokeColor,t.strokeColor)&&ie(e.fillColor,t.fillColor)&&(!t.strokeDashArray||e.strokeDashArray&&!t.strokeDashArray.some(((t,n)=>void 0===e.strokeDashArray[n]||t!==e.strokeDashArray[n]))))||(!(!(t instanceof s.UX&&e instanceof s.UX&&t.isMeasurement())||e.measurementScale===t.measurementScale&&e.measurementPrecision===t.measurementPrecision)||((t instanceof s.b3||t instanceof s.Xs)&&(e instanceof s.b3||e instanceof s.Xs)&&(t.cloudyBorderInset!==e.cloudyBorderInset||t.cloudyBorderIntensity!==e.cloudyBorderIntensity)||(!!((t instanceof s.o9||t instanceof s.om)&&(e instanceof s.o9||e instanceof s.om)&&t.lineCaps&&(!e.lineCaps||t.lineCaps.start!==e.lineCaps.start||t.lineCaps.end!==e.lineCaps.end)||!t.lineCaps&&e.lineCaps)||(!!(t instanceof s.o9&&ae(e,t))||(!!((t instanceof s.om||t instanceof s.Hi)&&(e instanceof s.om||e instanceof s.Hi)&&ae(e,t))||(t instanceof s.Zc&&e instanceof s.Zc&&(e.lineWidth!==t.lineWidth||!ie(e.strokeColor,t.strokeColor)||!ie(e.backgroundColor,t.backgroundColor)||e.blendMode!==t.blendMode)||(t instanceof s.gd&&e instanceof s.gd&&(e.text.value!==t.text.value||e.fontSize!==t.fontSize||e.font!==t.font||!ie(e.fontColor,t.fontColor)||!ie(e.backgroundColor,t.backgroundColor)||e.isBold!==t.isBold||e.isItalic!==t.isItalic||e.horizontalAlign!==t.horizontalAlign||e.verticalAlign!==t.verticalAlign||e.borderWidth!==t.borderWidth||e.borderStyle!==t.borderStyle)||(t instanceof s.Qi&&e instanceof s.Qi&&(!ie(t.color,e.color)||e.icon!==t.icon)||t instanceof s.On&&e instanceof s.On&&(e.blendMode!==t.blendMode||!ie(e.color,t.color)||e.rects!==t.rects)))))))))))}function re(e,t){return(null==e?void 0:e.readOnly)!==(null==t?void 0:t.readOnly)}function ie(e,t){return e instanceof h.Z&&t instanceof h.Z?e.equals(t):!(e instanceof h.Z||t instanceof h.Z)}function ae(e,t){if(e instanceof s.o9&&t instanceof s.o9){if(t.startPoint!==e.startPoint||t.endPoint!==e.endPoint)return!(t.startPoint.x-e.startPoint.x==t.boundingBox.left-e.boundingBox.left&&t.startPoint.y-e.startPoint.y==t.boundingBox.top-e.boundingBox.top)}else if((e instanceof s.om||e instanceof s.Hi)&&(t instanceof s.om||t instanceof s.Hi))return!(e.points.size===t.points.size&&e.points.every(((n,o)=>{const r=t.points.get(o);return(0,i.kG)(r&&n),r.x-n.x==t.boundingBox.left-e.boundingBox.left&&r.y-n.y==t.boundingBox.top-e.boundingBox.top})));return!1}function se(e,t,n){const{invalidAPStreams:o}=e();let r=!1,i=o.get(t.pageIndex);i&&(r=!!i.get(t.id)),n();const{invalidAPStreams:a,annotations:s}=e(),l=s.get(t.id);if(!l)return!r;let c=!1;return i=a.get(l.pageIndex),i&&(c=!!i.get(l.id)),!r&&c}function le(e,t,n){(0,i.kG)(e.backend);const{invalidAPStreams:o,historyIdsMap:r,isHistoryEnabled:a,backend:s}=e,l=t.get(n.pageIndex),c=o.get(n.pageIndex);return!a||"STANDALONE"!==(null==s?void 0:s.type)||l&&l.has(n.id)||!c||!c.has(n.id)?n:n.set("APStreamCache",{cache:r.get(n.id)||n.id})}function ce(e,t){(0,i.kG)(e.backend);const{historyIdsMap:n,isHistoryEnabled:o,backend:r}=e;return o&&"STANDALONE"===(null==r?void 0:r.type)?t.set("APStreamCache",{cache:n.get(t.id)||t.id}):t}const ue="#4636e3 solid 2px";function de(e){const{id:t,pdfObjectId:n}=e;return e=>e===(null==n?void 0:n.toString())||e===t}function pe(e,t){let{backend:n,annotations:o}=e;t.forEach((e=>{const t=o.get(e.id);t&&oe(t,e)&&(null==n||n.clearPageAPStreams(t.pageIndex,(0,r.l4)([t.id])))}))}function fe(e,t,n){let{backend:o,formFields:i}=e;t.forEach((e=>{const t=i.get(e.formFieldName);t&&re(t,n)&&(null==o||o.clearPageAPStreams(e.pageIndex,(0,r.l4)([e.id])))}))}const he=Object.freeze({CLOCKWISE:"CLOCKWISE",COUNTERCLOCKWISE:"COUNTERCLOCKWISE"});function me(e,t,n){const{rotation:o,boundingBox:r}=e,i=r.getCenter();let a=new s.E9({x:Math.max(0,i.x-r.height/2),y:Math.max(0,i.y-r.width/2)});a.x+r.height>t.width&&(a=a.set("x",t.width-r.height)),a.y+r.width>t.height&&(a=a.set("y",t.height-r.width));const l=e.set("boundingBox",r.withMutations((e=>{e.height=r.width,e.width=r.height,e.left=a.x,e.top=a.y})));if(n){const e=n===he.CLOCKWISE;switch(o){case 0:return l.set("rotation",e?270:90);case 90:return l.set("rotation",e?0:180);case 180:return l.set("rotation",e?90:270);case 270:return l.set("rotation",e?180:0)}}return l}function ge(e){return s.UL.union(e.map((e=>(0,y.o0)(e)?(0,y.az)(e).boundingBox:e.boundingBox)))}function ve(e,t){if(e instanceof s.x_)return"widget";if(Object.keys(f.Z).includes(e.constructor.readableName.toLowerCase()+"Annotation")){const n=function(e){if(e instanceof s.Jn)return f.Z.comment.id;const t=e.constructor.readableName.toLowerCase()+"Annotation";return f.Z[t].id}(e);return t(f.Z[n])}return e.constructor.readableName.toLowerCase()}function ye(e){return!(e instanceof s.UX&&e.isMeasurement())}},37015:(e,t,n)=>{"use strict";function o(e){const t=new FileReader;return new Promise(((n,o)=>{t.onerror=e=>{o(new Error(e))},t.onload=e=>{var t;n(new Uint8Array(null===(t=e.target)||void 0===t?void 0:t.result))},t.readAsArrayBuffer(e)}))}n.d(t,{V:()=>o})},47825:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=n(34997).SK},36095:(e,t,n)=>{"use strict";function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return e.indexOf("Trident/")>-1?"trident":e.indexOf("Edge/")>-1?"edge":e.indexOf("Chrome/")>-1?"blink":e.indexOf("AppleWebKit/")>-1?"webkit":e.indexOf("Gecko/")>-1?"gecko":"unknown"}function r(e,t){const n=new RegExp(` ${t}/(\\d+)\\.*`);let o;return(o=e.match(n))?Number(o[1]):0}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator.platform,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:navigator.maxTouchPoints;return t.indexOf("MacIntel")>-1&&n>1?"ios":e.indexOf("Win")>-1?"windows":e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1?"ios":e.indexOf("Mac")>-1?"macos":e.indexOf("Android")>-1?"android":e.indexOf("Linux")>-1?"linux":"unknown"}n.d(t,{By:()=>s,Dt:()=>m,G6:()=>c,Mn:()=>w,Ni:()=>l,SR:()=>a,TL:()=>h,V5:()=>S,b1:()=>b,b5:()=>g,fq:()=>p,i7:()=>d,rO:()=>f,vU:()=>u,yx:()=>v});const a=o(),s=i(),l=(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;switch(o(e)){case"trident":return r(e,"Trident");case"edge":return r(e,"Edge");case"blink":return r(e,"Chrome");case"webkit":return r(e,"Version");case"gecko":return r(e,"Firefox");default:;}}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o();return"ios"===e||"android"===e||v(t)}()),c="webkit"===a,u="gecko"===a,d="blink"===a,p="trident"===a,f="edge"===a,h="ios"===s||v(),m="android"===s,g=d&&m;function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o();return("undefined"==typeof window||!window.PSPDFKIT_PLAYWRIGHT_TEST)&&("webkit"===e&&"undefined"!=typeof TouchEvent)}let y;function b(){return void 0===y&&(y="ontouchstart"in window||navigator.maxTouchPoints>0),y}"undefined"!=typeof window&&(window.addEventListener("mousemove",(function e(){y=!1,window.removeEventListener("mousemove",e)})),window.addEventListener("pointermove",(function e(t){"mouse"!==t.pointerType&&"pen"!==t.pointerType||(y=!1),window.removeEventListener("pointermove",e)})));const w=!1,S=/Mac/i.test(navigator.platform)},10284:(e,t,n)=>{"use strict";n.d(t,{CM:()=>i,Kd:()=>a,Ss:()=>l,ev:()=>u,iR:()=>c,kR:()=>s,mi:()=>r,os:()=>d,uW:()=>p});var o=n(50974);function r(e,t){return(0,o.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.canReply||e.isCommentThreadRoot&&e.canReply}function i(e,t){return(0,o.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.isEditable||e.isEditable}function a(e,t){return(0,o.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.isDeletable||e.isDeletable}function s(e,t){return(0,o.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.isEditable||e.isEditable}function l(e,t){return(0,o.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.isDeletable||e.isDeletable}function c(e,t){return(0,o.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||"boolean"!=typeof e.isEditable||e.isEditable}function u(e,t){return(0,o.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||"boolean"!=typeof e.isDeletable||e.isDeletable}function d(e,t){return(0,o.kG)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||"boolean"!=typeof e.isFillable||e.isFillable}function p(e,t){return(0,o.kG)(t.backend),!(!t.backend.isCollaborationPermissionsEnabled()||"boolean"!=typeof e.canSetGroup)&&e.canSetGroup}},62164:(e,t,n)=>{"use strict";n.d(t,{Y7:()=>p,_P:()=>v,dq:()=>h,kT:()=>m,kx:()=>d,nN:()=>g,oK:()=>f});var o=n(27515),r=n(71693),i=n(88804),a=n(91859),s=n(47710),l=n(87222),c=n(19815),u=n(97413);const d="The feature you're trying to use requires a comments license. Comments is a component of PSPDFKit for Web and sold separately.";function p(e){let{showComments:t,commentThreads:n,features:o,backend:r}=e;return t&&n.size>0&&(0,c.LC)({features:o,backend:r})}function f(e){let{showComments:t,features:n,backend:o}=e;return t&&(0,c.LC)({features:n,backend:o})}function h(e){if(!p(e))return null;const{viewportState:t}=e;return e.containerRect.width>a.xD?t.scrollMode!==s.G.PER_SPREAD&&t.scrollMode!==s.G.DISABLED||function(e,t){let{viewportState:n,pages:o,commentThreads:i}=e;return(0,r.P1)(n,(0,r.dF)(n,t)).some((e=>{const t=o.get(e);return!!t&&t.annotationIds.some((e=>i.has(e)))}))}(e,e.viewportState.currentPageIndex)?l._.SIDEBAR:null:e.selectedAnnotationIds.size>0&&e.selectedAnnotationIds.some((t=>!!e.commentThreads.get(t)))?l._.PANE:null}const m=e=>null==e.pageIndex;function g(e,t){const n=(0,r.dF)(t,e.pageIndex);let a=i.sl.IDENTITY;if(t.scrollMode===s.G.CONTINUOUS){const e=(0,r.e8)(t,n);a=a.translateY(e)}return a=(0,o._4)(a,t),e.boundingBox.apply(a).top}const v=(e,t)=>{let n=!1;const o=e.last();if(null!=o){const e=t.get(o);(0,u.k)(null!=e),n=m(e)}return n}},72643:(e,t,n)=>{"use strict";n.d(t,{AK:()=>u,Aq:()=>c,Gp:()=>l,Im:()=>h,Tl:()=>m,_v:()=>y,sz:()=>d,uB:()=>b,yK:()=>p,z8:()=>f});var o=n(35369),r=n(68218),i=n(88804),a=n(12671);n(60132);function s(e){return{textBlockId:e.id,anchor:(0,a.X$)(e.anchor),globalEffects:(0,a.uE)(e.globalEffects),externalControlState:(0,a.hH)(e)}}function l(e){const t=[];for(const n of e.pageStates.toList()){const e=new Map(n.textBlocks.map((e=>[e.id,e])));for(const o of n.initialTextBlocks)e.has(o.id)||t.push(s(o));for(const e of n.textBlocks){(!(0,o.is)(e.anchor,e.initialAnchor)||!(0,o.is)(e.globalEffects,e.initialGlobalEffects)||!(0,o.is)(e.layout,e.initialLayout)||e.version)&&t.push(s(e))}}return t}const c="The API you're trying to use requires a content editor license. Content editor is a component of PSPDFKit for Web and sold separately.";const u=[4,6,8,10,12,14,16,18,20,24,32,36,48,64,72,96,144,192,200];function d(e,t){return new r.UL({offset:new r.Sg({x:e.offset.x*t,y:e.offset.y*t}),size:new r.Sg({x:e.size.x*t,y:e.size.y*t})})}function p(e,t,n){return new r.UL({offset:new r.Sg({x:e.offset.x+t.x*n,y:e.offset.y+t.y*n}),size:e.size})}function f(e){let t="";for(const n of e)t+=n.text;return t}const h=0,m=1,g=e=>{switch(e){case"begin":case"justified":return h;case"end":return m;case"center":return.5}},v=(e,t,n)=>{const o=(e=>(new i.sl).rotateRad(e.rotation).scale(1,e.flipY?-1:1))(e),a=o.applyToVector([n*t,0]);return new r.Sg({x:a[0],y:a[1]})},y=(e,t,n)=>(t-g(e))*n,b=(e,t,n,o)=>{const r=g(e)-n;return v(t,r,o)}},80857:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(50974);const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(t,n){if(!t)throw new o.p2(""===e?n:`${e}: ${n}`)}}},7921:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r,k:()=>i});var o=n(35369);function r(e,t){let n;return function(){for(var o=arguments.length,r=new Array(o),i=0;i{n=null,e.apply(a,r)}),t)}}function i(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(0,o.aV)();function i(e){const t=r;r=r.clear(),e.then((e=>{t.forEach((t=>{t.resolve(e)}))})).catch((e=>{t.forEach((t=>{t.reject(e)}))}))}return function(){for(var o=arguments.length,a=new Array(o),s=0;s{t=null,i(e.apply(l,a))}),n),new Promise(((e,t)=>{r=r.push({resolve:e,reject:t})}))}}},91039:(e,t,n)=>{"use strict";n.d(t,{sM:()=>h,uF:()=>f,Zt:()=>m,jI:()=>p,tK:()=>w,w2:()=>g});var o=n(50974),r=n(19575),i=n(76367),a=n(64494),s=n(82481),l=n(60132),c=n(26248),u=n(37231);const d=["application/pdf","image/png","image/jpeg"];function p(e,t){if(t===a.W.IF_SIGNED&&e.status!==i._.not_signed)return!0;if(t===a.W.HAS_ERRORS&&e.status===i._.error)return!0;const n=e.status===i._.valid&&e.documentModifiedSinceSignature;return!(t!==a.W.HAS_WARNINGS||e.status!==i._.warning&&e.status!==i._.error&&!n)}function f(e){if("string"==typeof e)return r.Base64.encode(e);if(e instanceof ArrayBuffer)return h(e);throw(0,o.Rz)(e)}function h(e){let t="";const n=new Uint8Array(e),o=n.byteLength;for(let e=0;e{let{signatureFormFQN:n}=e;return n===t.formFieldName}))&&e.formFields.has(t.formFieldName))}function g(e,t){e&&t&&"STANDALONE"===t.type&&((0,o.kG)(void 0===e.placeholderSize||"number"==typeof e.placeholderSize,"`placeholderSize` must be a number."),(0,o.kG)(void 0===e.flatten||"boolean"==typeof e.flatten,"`flatten` must be a boolean."),(0,o.kG)(void 0===e.formFieldName||"string"==typeof e.formFieldName,"`formFieldName` must be a string."),(0,o.kG)(void 0===e.formFieldName||void 0===e.position,"`formFieldName` and `position` cannot be used together."),v(e.position),y(e.appearance),b(e.signatureMetadata),function(e){if(!e)return;(0,o.kG)(!e.signatureType||e.signatureType===c.BG.CMS||Array.isArray(e.certificates)&&e.certificates.length>0&&e.certificates.every((e=>Boolean(e instanceof ArrayBuffer&&e.byteLength>0||"string"==typeof e&&e.length>0))),"For signatures of type `PSPDFKit.SignatureType.CAdES` an `Array` of certificates must be provided in `signaturePreparationData.signingData.certificates`."),(0,o.kG)(void 0===e.privateKey||"string"==typeof e.privateKey&&e.privateKey.length>0,"`signingData.privateKey` must be a non-empty string if provided."),(0,o.kG)(Object.values(c.BG).includes(e.signatureType),`\`signingData.signatureType\` must be a valid \`PSPDFKit.SignatureType\` value. \`${e.signatureType}\` was provided instead.`)}(e.signingData))}function v(e){e&&((0,o.kG)("number"==typeof e.pageIndex,"`pageIndex` must be a number."),(0,o.kG)(e.boundingBox instanceof s.UL,"`boundingBox` must be a PSPDFKit.Geometry.Rect instance."))}function y(e){var t;e&&((0,o.kG)(void 0===e.mode||e.mode in u.H,"`mode` must be a valid PSPDFKit.SignatureAppearanceMode value."),(0,o.kG)(void 0===e.showSigner||"boolean"==typeof e.showSigner,"`showSigner` must be a boolean."),(0,o.kG)(void 0===e.showSignDate||"boolean"==typeof e.showSignDate,"`showSignDate` must be a boolean."),(0,o.kG)(void 0===e.showReason||"boolean"==typeof e.showReason,"`showReason` must be a boolean."),(0,o.kG)(void 0===e.showLocation||"boolean"==typeof e.showLocation,"`showLocation` must be a boolean."),(0,o.kG)(void 0===e.showWatermark||"boolean"==typeof e.showWatermark,"`showWatermark` must be a boolean."),(0,o.kG)(void 0===e.watermarkImage||"Blob"===e.watermarkImage.constructor.name||"File"===e.watermarkImage.constructor.name,"`image` must be a Blob or File."),(0,o.kG)(void 0===e.watermarkImage||d.includes(e.watermarkImage.type),`The image type must be one of the supported formats: ${d.join(", ")}, provided: ${null===(t=e.watermarkImage)||void 0===t?void 0:t.type}.`))}function b(e){e&&((0,o.kG)(void 0===e.signerName||"string"==typeof e.signerName,"`signerName` must be a string."),(0,o.kG)(void 0===e.signatureReason||"string"==typeof e.signatureReason,"`signatureReason` must be a string."),(0,o.kG)(void 0===e.signatureLocation||"string"==typeof e.signatureLocation,"`signatureLocation` must be a string."))}function w(e){var t,n,r,i;e&&((0,o.kG)(!("placeholderSize"in e)||"number"==typeof e.placeholderSize&&e.placeholderSize>0,`Invalid \`placeholderSize\` for signature preparation data. Must be of type \`number\` and greater than \`0\` if present. Provided: ${e.placeholderSize}.`),(0,o.kG)(!("flatten"in e)||"boolean"==typeof e.flatten,`Invalid \`flatten\` for signature preparation data. Must be of type \`boolean\` if present. Provided: ${e.flatten}.`),(0,o.kG)(!("signatureMetadata"in e)||"object"==typeof e.signatureMetadata,`Invalid \`signatureMetadata\` for signature preparation data. Must be of type \`object\` if present. Provided: ${e.signatureMetadata}.`),"signatureMetadata"in e&&b(e.signatureMetadata),(0,o.kG)(!("position"in e)||"object"==typeof e.position,`Invalid \`position\` for signature preparation data. Must be of type \`object\` if present. Provided: ${e.position}.`),"position"in e&&v(e.position),(0,o.kG)(!("appearance"in e)||"object"==typeof e.appearance,`Invalid \`appearance\` for signature preparation data. Must be of type \`object\` if present. Provided: ${e.appearance}.`),"appearance"in e&&y(e.appearance),(0,o.kG)(!("formFieldName"in e)||"string"==typeof e.formFieldName&&e.formFieldName.trim().length>0,`Invalid \`formFieldName\` for signature preparation data. Must be a non-empty \`string\` if present. Provided: ${e.formFieldName}.`),(0,o.kG)(!e.signingData||!("signatureContainer"in e.signingData)||(null===(t=e.signingData)||void 0===t?void 0:t.signatureContainer)&&Object.values(c.FR).includes(e.signingData.signatureContainer),`Invalid \`signingData.signatureContainer\`. Must be either \`raw\` or \`pkcs7\` if present. Provided: ${null===(n=e.signingData)||void 0===n?void 0:n.signatureContainer}.`),(0,o.kG)(!e.signingData||!("signatureType"in e.signingData)||(null===(r=e.signingData)||void 0===r?void 0:r.signatureType)&&Object.values(c.BG).includes(e.signingData.signatureType),`Invalid \`signingData.signatureType\`. Must be either \`CMS\` or \`CAdES\` if present. Provided: ${null===(i=e.signingData)||void 0===i?void 0:i.signatureType}.`))}},30761:(e,t,n)=>{"use strict";n.d(t,{D4:()=>xe,jX:()=>Se});var o=n(84121),r=n(30845),i=n(67366),a=n(35369),s=n(50974),l=n(30570),c=n(14012),u=n(96114),d=n(82481),p=n(83253),f=n(29165),h=n(20234),m=n(76192),g=n(95651),v=n(96846),y=n(15973);class b{constructor(e,t){this.annotationProvider=e,this.localAnnotationCallbacks=t}createBackendObject(e,t){return(0,s.kG)(!(e instanceof y.Hu),"Media annotations cannot be created nor updated, only deleted."),!this.annotationProvider.canCreateBackendOrphanWidgets&&e instanceof d.x_?Promise.resolve():this.annotationProvider.createAnnotation(e,(null==t?void 0:t.attachments)||(0,a.D5)())}updateBackendObject(e,t){return(0,s.kG)(!(e instanceof y.Hu),"Media annotations cannot be created nor updated, only deleted."),this.annotationProvider.updateAnnotation(e,(null==t?void 0:t.attachments)||(0,a.D5)())}deleteBackendObject(e){return this.annotationProvider.deleteAnnotation(e)}createStoreObjects(e,t){this.localAnnotationCallbacks.createAnnotations(e,(null==t?void 0:t.attachments)||(0,a.D5)())}updateStoreObjects(e){this.localAnnotationCallbacks.updateAnnotations(e)}deleteStoreObjects(e){this.localAnnotationCallbacks.deleteAnnotations(e)}validateObject(e){return(0,g.bz)(e)}getObjectById(e){return this.localAnnotationCallbacks.getAnnotationById(e)}getObjectId(e){return e.id}refresh(){this.localAnnotationCallbacks.refreshSignaturesInfo()}syncChanges(){return this.annotationProvider.syncChanges()}}class w extends v.a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.u.IMMEDIATE,o=arguments.length>3?arguments[3]:void 0;super(new b(e,t),n,o),this.annotationProvider=e}loadAnnotationsForPageIndex(e){return this.annotationProvider.loadAnnotationsForPageIndex(e)}}var S=n(1053);class E{constructor(e,t){(0,o.Z)(this,"localBookmarks",(0,a.D5)()),(0,o.Z)(this,"onCreate",(e=>{this.localBookmarks=this.localBookmarks.set(e.id,e)})),(0,o.Z)(this,"onUpdate",(e=>{this.onCreate(e)})),(0,o.Z)(this,"onDelete",(e=>{this.localBookmarks=this.localBookmarks.delete(e.id)})),this.bookmarkProvider=e,this.localBookmarkCallbacks=t}createBackendObject(e){return this.bookmarkProvider.createBookmark(e)}updateBackendObject(e){return this.bookmarkProvider.updateBookmark(e)}deleteBackendObject(e){return this.bookmarkProvider.deleteBookmark(e.id)}createStoreObjects(e){this.localBookmarks=this.localBookmarks.withMutations((t=>{e.forEach((e=>{t.set(e.id,e)}))}))}updateStoreObjects(e){this.createStoreObjects(e)}deleteStoreObjects(e){this.localBookmarks=this.localBookmarks.withMutations((t=>{e.forEach((e=>{t.delete(e)}))}))}validateObject(e){if(!e.id||"string"!=typeof e.id)return!1;try{return(0,S.G)(e),!0}catch(e){return!1}}getObjectById(e){return this.localBookmarks.get(e)}getObjectId(e){return e.id}refresh(){this.localBookmarkCallbacks.refreshSignaturesInfo()}syncChanges(){return this.bookmarkProvider.syncChanges()}}class P extends v.a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.u.IMMEDIATE,r=arguments.length>3?arguments[3]:void 0;super(new E(e,t),n,r),(0,o.Z)(this,"getBookmarks",function(){let e=null;return async function(){return e||(e=this.bookmarkProvider.loadBookmarks()),await e,this.getLocalBookmarks()}}()),this.bookmarkProvider=e}getLocalBookmarks(){return this._callbacks.localBookmarks}}var x=n(8503),D=n(11863);class C{constructor(e,t){(0,o.Z)(this,"localComments",(0,a.D5)()),(0,o.Z)(this,"onCreate",(e=>{(0,s.kG)(e.id),this.localComments=this.localComments.set(e.id,e)})),(0,o.Z)(this,"onUpdate",(e=>{this.onCreate(e)})),(0,o.Z)(this,"onDelete",(e=>{(0,s.kG)(e.id),this.localComments=this.localComments.delete(e.id)})),this.commentProvider=e,this.localCommentCallbacks=t}createBackendObject(e,t){return this.commentProvider.createComment(e,t.comments,t.annotations)}updateBackendObject(e,t){return this.commentProvider.updateComment(e,t.comments,t.annotations)}deleteBackendObject(e,t){return(0,s.kG)(e.id),this.commentProvider.deleteComment(e.id,t.comments,t.annotations)}createStoreObjects(e){this.localComments=this.localComments.withMutations((t=>{e.forEach((e=>{(0,s.kG)(e.id),t.set(e.id,e)}))})),this.localCommentCallbacks.createComments(e)}updateStoreObjects(e){this.localComments=this.localComments.withMutations((t=>{e.forEach((e=>{(0,s.kG)(e.id),t.set(e.id,e)}))})),this.localCommentCallbacks.updateComments(e)}deleteStoreObjects(e){this.localComments=this.localComments.withMutations((t=>{e.forEach((e=>{t.delete(e)}))})),this.localCommentCallbacks.deleteComments(e)}validateObject(e){try{return(0,D.Gu)(e),!0}catch(e){return!1}}getObjectById(e){return this.localComments.get(e)}getObjectId(e){return(0,s.kG)(e.id),e.id}refresh(){this.localCommentCallbacks.refreshSignaturesInfo()}syncChanges(){return this.commentProvider.syncChanges()}}class k extends v.a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.u.IMMEDIATE,o=arguments.length>3?arguments[3]:void 0;super(new C(e,t),n,o),this.commentProvider=e}async loadComments(){let e=null;e||(e=this.commentProvider.loadComments?this.commentProvider.loadComments():Promise.resolve()),await e}}var A=n(11032);class O{constructor(e,t){this.formFieldValueProvider=e,this.localFormFieldValueCallbacks=t}createBackendObject(e){return this.formFieldValueProvider.createFormFieldValue(e)}updateBackendObject(e){return this.formFieldValueProvider.setFormFieldValue(e)}deleteBackendObject(e){return this.formFieldValueProvider.deleteFormFieldValue((0,A.X)(e))}createStoreObjects(e){this.localFormFieldValueCallbacks.createFormFieldValues(e)}updateStoreObjects(e){this.localFormFieldValueCallbacks.setFormFieldValues(e)}deleteStoreObjects(e){this.localFormFieldValueCallbacks.deleteFormFieldValues(e)}getObjectById(){return null}getObjectId(e){return e.name}validateObject(){return!0}refresh(){this.localFormFieldValueCallbacks.refreshSignaturesInfo()}syncChanges(){return this.formFieldValueProvider.syncChanges()}}class T extends v.a{_getSupportedEvents(){return[...super._getSupportedEvents(),"willSubmit","didSubmit"]}constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.u.IMMEDIATE,o=arguments.length>3?arguments[3]:void 0;super(new O(e,t),n===m.u.INTELLIGENT?m.u.IMMEDIATE:n,o)}createObject(e){const t=this.lockSave();try{this._saveModeQueue.createObject(this._createSaveQueueObject(e.name,e)),this._createdObjects=this._createdObjects.set(e.name,e)}finally{t()}}updateObject(e){const t=this.lockSave();try{this._saveModeQueue.updateObject(this._createSaveQueueObject(e.name,e)),this._updatedObjects=this._updatedObjects.set(e.name,e)}finally{t()}}deleteObject(e){const t=this.lockSave();try{this._saveModeQueue.deleteObject(this._createSaveQueueObject(e.name,e)),this._deletedObjects=this._deletedObjects.set(e.name,(0,A.X)(e))}finally{t()}}}var I=n(69939),F=n(41194),M=n(19815),_=n(97528),R=n(51333),N=n(92234),L=n(31835),B=n(97333),j=n(60619),z=n(55909),K=n(80857),Z=n(68250),U=n(10284),V=n(60132);const G=(0,K.Z)("Forms"),W=(0,s.Tr)("Forms");class q extends Z.I{constructor(e,t){super(t().formFieldValueManager),this.dispatch=e,this.getState=t}async create(e){throw W(`Can't create ${e.toString()}. Form field values creation is not supported.`)}async update(e){const{formFields:t,features:n,formsEnabled:o}=this.getState(),r=this.getState();return G(n.includes(V.q.FORMS),z.DR),G(o,z.BZ),G(r.backend),e.map((e=>{const n=t.get(e.name);if(G(n,`Tried to set the form field value for form field \`${e.name}\` which does not exist.`),!(0,U.os)(n,r))throw new s.p2("You don't have permission to update this form field value.");return this.dispatch((0,u.xh)([{name:e.name,value:e.value,optionIndexes:e.optionIndexes}])),e}))}async delete(e){return e.map((e=>{throw W(`Can't delete ${e.toString()}. Form field values deletion is not supported.`)}))}async ensureChangesSaved(e){G("string"==typeof e.name,"The form field value you passed to Instance.ensureChangesSaved() has no name.");const{formFieldValueManager:t}=this.getState();return G(t),await t.ensureObjectSaved(e)}}var H=n(47825),$=n(51269);const Y=(0,K.Z)("Bookmarks");class X extends Z.I{constructor(e,t){super(t().bookmarkManager),this.dispatch=e,this.getState=t}async create(e){const t=this.getState(),{bookmarkManager:n}=t,o=e.map((e=>{const t=e.id;Y(n),"string"==typeof t&&n.getLocalBookmarks()&&Y(!n.getLocalBookmarks().has(t),`Bookmark with id (${t}) is already used.`);const o="string"==typeof e.id&&e.id.length>0?e:e.set("id",(0,H.A)());return(0,S.G)(o),n.createObject(o),n.autoSave(),o}));return(0,$.s)(o)}async update(e){const{bookmarkManager:t}=this.getState();Y(t);const n=e.map((e=>(Y("string"==typeof e.id,"The bookmark you passed to Instance.update() has no id.\nPlease use Instance.create() first to assign an id."),(0,S.G)(e),t.updateObject(e),t.autoSave(),e)));return(0,$.s)(n)}async delete(e){const t=this.getState(),{bookmarkManager:n}=t,o=await(null==n?void 0:n.getBookmarks());Y(n);const r=e.map((e=>{Y("string"==typeof e.id,"The supplied bookmark id is not a valid id.");const t=null==o?void 0:o.get(e.id);return Y(t,`No bookmark with id ${e.id} found.`),n.deleteObject(e),n.autoSave(),t}));return(0,$.s)(r)}async getObjectById(e){const{bookmarkManager:t}=this.getState();if(!t)return null;return(await t.getBookmarks()).get(e)}async ensureChangesSaved(e){Y("string"==typeof e.id,"The bookmark you passed to Instance.ensureChangesSaved() has no valid id.\nPlease use Instance.create() first to assign an id.");const{bookmarkManager:t}=this.getState();return Y(t),await t.ensureObjectSaved(e)}}var J=n(34997),Q=n(62164);const ee=(0,K.Z)("Comments"),te=J.SK;class ne extends Z.I{constructor(e,t){super(t().commentManager),this.dispatch=e,this.getState=t}async create(e,t){const n=this.getState(),o=e.map((e=>{oe(n);const o=e.id;"string"==typeof o&&ee(!n.comments.has(o),`Comment id (${o}) is already used.`),ee(e.rootId,"Comment does not have `rootId`");const r=n.annotations.get(e.rootId)||(t?function(e,t){return e.find((e=>e instanceof y.q6&&e.id===t))}(t,e.rootId):null);if(ee(r,`Comment orphan: The comment can't be created because no comment thread root was found with the id '${e.rootId}'. Please ensure that you create the corresponding annotation together with the comment via instance.create([comment, commentThreadRootAnnotation]).`),ee(r instanceof y.Jn||r instanceof y.On,`The comment can't be created because its root has wrong type. Was '${r.constructor.name}', only 'CommentMarkerAnnotation' and 'TextMarkupAnnotation' are supported as comment thread roots.`),ee(!e.pageIndex||e.pageIndex===r.pageIndex,`The comment can't be created on different page (${e.pageIndex}) than the comment root (${r.pageIndex}).`),!(0,U.mi)(r,n))throw new s.p2("You are not allowed to reply to this thread.");const{annotationCreatorName:i,annotationCreatorNameReadOnly:a}=n;if(e.creatorName&&e.creatorName!==i&&a)throw new s.p2("The comment creator name is different from the one set on the JWT.");const l=e.withMutations((t=>{const o=new Date;t.set("id",te()).set("creatorName",n.annotationCreatorName).set("createdAt",o).set("updatedAt",o).set("pageIndex",r.pageIndex),ee(n.backend),n.backend.isCollaborationPermissionsEnabled()&&!t.group&&n.group!==n.backend.getDefaultGroup()&&t.merge({group:n.group}),["id","creatorName","createdAt","updatedAt"].map((n=>e[n]&&t.set(n,e[n])))}));return(0,D.Gu)(l),l}));return(0,i.dC)((()=>{o.forEach((e=>{e instanceof Error||(this.dispatch((0,R.Jr)(e)),this.autoSave())}))})),(0,$.s)(o)}async update(e){const t=this.getState(),n=e.map((e=>{var n;oe(t),ee("string"==typeof e.id,"The comment you passed to Instance.update() has no id.\nPlease use Instance.create() first to assign an id.");const o=t.comments.get(e.id);ee(o,"An comment that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\n The update of this comment was skipped."),null!==(n=t.backend)&&void 0!==n&&n.isCollaborationPermissionsEnabled()||o.group===e.group&&e.isEditable===o.isEditable&&e.isDeletable===o.isDeletable&&e.canSetGroup===o.canSetGroup||(e=e.set("group",o.group).set("isEditable",o.isEditable).set("isDeletable",o.isDeletable).set("canSetGroup",o.canSetGroup),(0,s.ZK)("`group`, `isEditable`, `isDeletable` and `canSetGroup` are only relevant when Collaboration Permissions are enabled in server backed setup. You do not have it enabled so these values are set to `undefined`."));if(!e.delete("group").equals(o.delete("group"))&&!(0,U.kR)(o,t))throw new s.p2("You don't have permission to update this comment.");if(e.group!==o.group&&!(0,U.uW)(e,t))throw new s.p2("You don't have permission to update the `group` of this comment.");if(e.isEditable!==o.isEditable||e.isDeletable!==o.isDeletable||e.canSetGroup!==o.canSetGroup)throw new s.p2("You can't update `isEditable` or `isDeletable` since they are read only properties which depend on the `group` property.");if(e.creatorName!==o.creatorName&&t.annotationCreatorNameReadOnly)throw new s.p2("You can't change the creatorName of a comment if it was already set on the JWT.");if(e.rootId!==o.rootId)throw new s.p2("You can't change the root id of a comment once it has been created.");const r=e.set("updatedAt",new Date);return(0,D.Gu)(r),r}));return(0,i.dC)((()=>{n.forEach((e=>{e instanceof Error||(this.dispatch((0,R.V4)(e)),this.autoSave())}))})),(0,$.s)(n)}async delete(e){const t=this.getState();oe(t);const n=e.map((e=>{ee(e.id);const n=t.comments.get(e.id);if(ee(n,`No comment with id ${e.id} found.`),!(0,U.Ss)(n,t))throw new s.p2("You don't have permission to delete this comment.");return n}));return(0,i.dC)((()=>{n.forEach((e=>{e instanceof Error||(this.dispatch((0,R.UM)(e)),this.autoSave())}))})),(0,$.s)(n)}async ensureChangesSaved(e){oe(this.getState()),ee("string"==typeof e.id,"The comment you passed to Instance.ensureChangesSaved() has no id.\nPlease use Instance.create() first to assign an id.");const{commentManager:t}=this.getState();return ee(t),await t.ensureObjectSaved(e)}async getObjectById(e){ee("string"==typeof e,"The supplied id is not a valid id.");const{comments:t,features:n}=this.getState();return n.includes(V.q.COMMENTS)?t.get(e):null}}function oe(e){const{features:t,backend:n}=e;ee(t.includes(V.q.COMMENTS),Q.kx),ee((0,M.xr)(n),"The API you're trying to use is only available when using the PSPDFKit Instant or PSPDFKit for Web Standalone.")}var re=n(71652);const ie=(0,s.Tr)("Changes");class ae{constructor(e){this.annotation=e.annotation,this.bookmark=e.bookmark,this.comment=e.comment,this.formField=e.formField,this.formFieldValue=e.formFieldValue}toArray(){return[this.annotation,this.bookmark,this.comment,this.formField,this.formFieldValue].filter(Boolean)}forEach(e){this.toArray().forEach(e)}map(e){return this.toArray().map(e)}}class se{constructor(e,t,n,r){(0,o.Z)(this,"_prevHasUnsavedChanges",!1),(0,o.Z)(this,"eventEmitter",new L.Z(["saveStateChange"])),this._dispatch=e,this._getState=t,n&&(this.handlers=new ae(n)),r&&(this.eventEmitter=r)}connect(){const e=this._getState();if(this._backend=e.backend,!this.handlers){const e={};e.annotation=new j.Nk(this._dispatch,this._getState),e.bookmark=new X(this._dispatch,this._getState),e.formField=new z.fu(this._dispatch,this._getState),e.formFieldValue=new q(this._dispatch,this._getState),e.comment=new ne(this._dispatch,this._getState),this.handlers=new ae(e)}this.handlers.forEach((e=>{const t=e.getEventEmitter();t&&t.supportsEvent("saveStateChange")&&t.on("saveStateChange",(()=>this._onSaveStateChanged()))}))}save(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.hasUnsavedChanges())return Promise.resolve();const t=this.handlers.map((e=>e.manualSave(!1)));return e&&t.push(this._backend.syncChanges().catch(le)),(0,B.jK)(t).then((()=>{})).catch((t=>{const n=e?t.pop():null,o=t.filter(Boolean).map((e=>{if(e instanceof re.V)return e.reason})).filter(Boolean),r=(0,a.aV)(o).flatMap((e=>e)).toArray();throw(0,re.h)(r,Boolean(n),n?n.message:null)}))}hasUnsavedChanges(){return this.handlers.map((e=>e.hasUnsavedChanges())).some(Boolean)}_onSaveStateChanged(){const e=this.hasUnsavedChanges();this._prevHasUnsavedChanges!==e&&(this._prevHasUnsavedChanges=e,this.eventEmitter.emit("saveStateChange",{hasUnsavedChanges:e}))}async create(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._performChanges(e,((n,o)=>n.create(o,t?e:null)))}async update(e){return this._performChanges(e,((t,n)=>t.update(n,e)))}_changesForHandler(e,t){return t.filter((t=>this._handlerForChange(t)===e))}async delete(e){const t=e.map((()=>ie("Unsupported change type"))),n=await(0,B.jK)(e.map((async(e,n)=>{if(e){if("string"==typeof e){for(const t of this.handlers.toArray()){const n=await t.getObjectById(e);if(n)return n}t[n]=ie(`No object with id '${e}' found.`)}}else t[n]=ie("The supplied id is not a valid id");return e})));return this._performChanges(n,((e,t)=>e.delete(t)),t)}ensureChangesSaved(e){const t=e.map((e=>{const t=this._handlerForChange(e);return t?t.ensureChangesSaved(e):Promise.reject(ie("Unsupported change type"))}));return(0,B.jK)(t)}async _performChanges(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.map((()=>ie("Unsupported change type")));const o=[],r=this.handlers.map((e=>e.lockSave()));try{let n=null;(0,i.dC)((()=>{n=this.handlers.map((async(n,r)=>{const i=this._changesForHandler(n,e);if(i.length)try{o[r]=await t(n,i)}catch(e){o[r]=e}}))})),n&&await(0,B.jK)(n)}finally{r.forEach((e=>{e()}))}const a=await this._mapResultsToChanges(e,o,n);return a.some((e=>e instanceof Error))?Promise.reject(a):Promise.resolve(a)}async _mapResultsToChanges(e,t,n){const o=n;for(const[n,r]of this.handlers.map((e=>e)).entries()){const i=await this._changesForHandler(r,e),a=t[n];i.length&&i.forEach(((t,n)=>{const r=e.findIndex((e=>e===t));var i;a instanceof Error?o[r]=a:o[r]=null!==(i=a[n])&&void 0!==i?i:a}))}return o}_handlerForChange(e){switch(!0){case e instanceof y.q6:return this.handlers.annotation;case e instanceof S.Z:return this.handlers.bookmark;case e instanceof d.sv:return this.handlers.comment;case e instanceof d.Wi:return this.handlers.formField;case e instanceof d.KD:return this.handlers.formFieldValue;default:return null}}}function le(e){throw ie(e),e}var ce=n(16126),ue=n(76367),de=n(67699),pe=n(25387),fe=n(38858);const he="rollover",me="down";var ge=n(5038),ve=n(63738),ye=n(44763);function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function we(e){for(var t=1;t{A.call(null,e)})),n.setDocumentHandleOutdated((t=>{e((0,h.KY)(t))})),n.setFormsEnabledInConfig(O),n.setStateGetter(t)}else if("SERVER"===D.type&&U&&m&&v){if(!(0,M.xW)(m,v)){const e=U.fields.filter((e=>"pspdfkit/form-field/signature"===e.type)).map((e=>e.name));U.annotations=U.annotations.filter((t=>!e.includes(t.formFieldName))),U.fields=U.fields.filter((t=>!e.includes(t.name))),L.setIgnoredFormFieldNames((0,a.aV)(e))}}const G={refreshSignaturesInfo:async()=>{const{digitalSignatures:n}=t();m&&m.includes("digital_signatures")&&n&&n&&n.status!==ue._.not_signed&&!1===n.documentModifiedSinceSignature&&(await D.refreshSignaturesInfo(),e((0,F.Y)(await D.getSignaturesInfo())))}},W=we(we({},G),{},{createAnnotations:(t,n)=>{n&&n.forEach(((t,n)=>{e((0,f.O)(n,t))})),e((0,N.pB)(de.j.EXTERNAL,(()=>{e((0,I.lA)(t))})))},updateAnnotations:t=>{e((0,N.pB)(de.j.EXTERNAL,(()=>{e((0,I.Zr)(t))})))},deleteAnnotations:t=>{e((0,N.pB)(de.j.EXTERNAL,(()=>{e((0,I.aF)(t))})))},getAnnotationById:e=>t().annotations.get(e)}),q=z&&(0,M.k_)(D)?we(we({},G),{},{createFormFields:t=>{e((0,u.TD)(t))},updateFormFields:t=>{e((0,u.C2)(t)),e((0,u.xW)(t.map((e=>new d.KD({name:e.name,value:e.value})))))},deleteFormFields:t=>{e((0,u.M$)(t))},getFormFieldByName:e=>t().formFields.get(e)}):null,H=we(we({},G),{},{createFormFieldValues:t=>e((0,u.zq)(t)),setFormFieldValues:t=>e((0,u.xW)(t)),deleteFormFieldValues:t=>e((0,u.HE)(t))}),$=(0,M.xr)(D),Y=$?we(we({},G),{},{createComments:t=>{e((0,R.fg)(t))},updateComments:t=>{e((0,R.gk)(t))},deleteComments:t=>{e((0,R.Vn)(t))}}):null,X=we({},G),J=t(),Q=new w(L,W,C,J.annotationManager&&J.annotationManager.eventEmitter),ee=new P(L,X,C,J.bookmarkManager&&J.bookmarkManager.eventEmitter),te=z&&q&&(0,M.k_)(D)?new x.c(L,q,C,J.formFieldManager&&J.formFieldManager.eventEmitter):null,ne=new T(L,H,C,J.formFieldValueManager&&J.formFieldValueManager.eventEmitter);let oe;$&&((0,s.kG)(null!=Y),oe=new k(L,Y,C,J.commentManager&&J.commentManager.eventEmitter));const re=(0,r.Z)(g.xp),ie=(0,r.Z)(ce.ET),ae={getPageContentState:e=>{const{pages:n,annotations:o,formFields:r}=t(),i=n.get(e);return(0,s.kG)(i),{pageSize:i.pageSize,annotations:re(o,i),formFields:ie(r,i)}},getZoomState:()=>t().viewportState.zoomLevel,getAnnotationWithFormField:e=>{const{annotations:n,formFields:o}=t(),r=n.get(e);return{annotation:r,formField:r instanceof d.x_&&r.formFieldName?o.get(r.formFieldName):null}},getFormFieldWidgets:e=>{const{annotations:n}=t(),{annotationIds:o}=e;return n.filter(((t,n)=>e.annotationIds.includes(n)||e.annotationIds.includes(String(t.pdfObjectId)))).toList().sort(((e,t)=>o.indexOf(e.id)t().formFields.get(e),isFormDesignerEnabled:()=>(0,M.ix)(t()),isAnnotationInState:e=>t().annotations.has(e),isFormFieldInState:e=>t().formFields.has(e),getAvailableVariants:e=>{const{APStreamVariantsRollover:n,APStreamVariantsDown:o}=t();if(null==e.pdfObjectId)return[];const r=[];return n.has(e.pdfObjectId)&&r.push(he),o.has(e.pdfObjectId)&&r.push(me),r}},le={createAnnotations:(e,t,n)=>{Q.backendObjectsCreated(e,n,{attachments:t})},updateAnnotations:Q.backendObjectsUpdated.bind(Q),deleteAnnotations:Q.backendObjectsDeleted.bind(Q),invalidateAPStreams:t=>e((0,I.GI)(t)),createAttachment:(t,n)=>{e((0,f.O)(t,new d.Pg({data:n})))},addAnnotationVariants:(t,n)=>{e((0,I.mw)(t,n))},applyJavaScriptActionChanges:t=>{e((0,u.bt)(t))}},pe={createBookmarks:ee.backendObjectsCreated.bind(ee),updateBookmarks:ee.backendObjectsUpdated.bind(ee),deleteBookmarks:ee.backendObjectsDeleted.bind(ee)},ge=z&&te instanceof x.c&&(0,M.k_)(D)?{createFormFields:te.backendObjectsCreated.bind(te),updateFormFields:te.backendObjectsUpdated.bind(te),deleteFormFields:te.backendObjectsDeleted.bind(te)}:null,be={createFormFieldValues:(e,t)=>{t===p.y?z&&ne.backendObjectsCreated(e,t):t===p.z&&Z&&ne.backendObjectsCreated(e,t)},setFormFieldValues:e=>{K&&ne.backendObjectsUpdated(e)},deleteFormFieldValues:e=>{Z&&ne.backendObjectsDeleted(e)}};let Se;$&&((0,s.kG)(null!=oe),Se={createComments:oe.backendObjectsCreated.bind(oe),updateComments:oe.backendObjectsUpdated.bind(oe),deleteComments:oe.backendObjectsDeleted.bind(oe)});const Ee=new se(e,t,null,J.changeManager&&J.changeManager.eventEmitter),Pe={attemptedUnlockViaModal:o,hasPassword:y,features:m,signatureFeatureAvailability:v,permissions:B,documentInfo:j,formJSON:U,annotationManager:Q,bookmarkManager:ee,formFieldManager:te,formFieldValueManager:ne,commentManager:oe,changeManager:Ee,minSearchQueryLength:b,documentHandle:D.getDocumentHandle(),allowedTileScales:S,pageKeys:E};let xe=null;(0,i.dC)((function(){e((0,c.rJ)(Pe)),L.setReadStateCallbacks(ae),L.setAnnotationCallbacks(le),L.setBookmarkCallbacks(pe),L.setFormFieldValueCallbacks(be),$&&((0,s.kG)(null!=Se),L.setCommentCallbacks(Se)),z&&(0,M.k_)(D)&&((0,s.kG)(ge),L.setFormFieldCallbacks(ge)),Ee.connect(),xe=L.load()}));try{await xe,await new Promise(((t,n)=>{("visible"===document.visibilityState?requestAnimationFrame:setTimeout)((()=>{D.lazyLoadPages().then((o=>{const r=[];o&&e((0,fe.uM)(o)),z&&(0,M.k_)(D)&&te&&r.push(te.loadFormFields()),(0,s.kG)(m,"Features should be defined at this point"),(0,M.xr)(D)&&(0,M.LC)({features:m,backend:D})&&oe&&r.push(oe.loadComments()),(0,M.YN)({features:m,backend:D})&&r.push(async function(e){var t;let{backend:n,dispatch:o}=e;const r=await(null===(t=n.getSecondaryMeasurementUnit)||void 0===t?void 0:t.call(n));r&&o((0,ye.VO)(r));const i=await n.getMeasurementScales();i&&o((0,ve.RN)(i?(0,l.Ex)(i):null))}({backend:D,dispatch:e})),r.length>0?Promise.all(r).then((()=>t())).catch(n):t()})).catch((e=>{n(e)}))}))}))}catch(e){throw e}}function Pe(e){return{type:pe.UX$,state:e}}function xe(e,t,n,o){let r;if("string"==typeof t){if(n===ge.x.SharePoint){const n=new URL(t,e),[o,r]=n.hostname.split(".").reverse();if("sharepoint"!==r||"com"!==o)throw new s.p2(`When using SharePoint, the document URL must be a sharepoint.com URL: it's ${r}.${o} instead.`)}if(n===ge.x.Salesforce){const t=new URL(e),[n,o]=t.hostname.split(".").reverse();if("salesforce"!==o&&"force"!==o&&"visualforce"!==o||"com"!==n)throw new s.p2(`When using Salesforce, the SDK must be loaded from a Salesforce URL: it's ${o}.${n} instead.`)}r=fetch(t,{credentials:"same-origin"}).then((e=>e.arrayBuffer())).finally((()=>{null==o||o()}))}else r=t;return r}},51559:(e,t,n)=>{"use strict";n.d(t,{RG:()=>c,SH:()=>h,bZ:()=>d,h6:()=>m,mr:()=>p,nN:()=>u,rh:()=>f});var o=n(35369),r=n(50974),i=n(60132),a=n(52560),s=n(28098),l=n(55024);function c(e){var t;return"STANDALONE"===(null===(t=e.backend)||void 0===t?void 0:t.type)&&e.features.includes(i.q.DOCUMENT_COMPARISON)}const u="You need the document comparison license component to use this feature.",d="The document comparison feature is only available in Standalone mode.",p=(e,t)=>(0,a.cq)(e.set("currentPageIndex",0).set("pageSizes",(0,o.aV)([t.pageSize])),s.c.FIT_TO_WIDTH);async function f(e){const t=await e;if("string"==typeof t){let e;try{e=fetch(t).then((e=>e.arrayBuffer()))}catch(e){(0,r.vU)(e)}return e}if(t instanceof ArrayBuffer)return t;throw new r.p2("Comparison document source is not a URL nor an ArrayBuffer")}const h=e=>e===l.Q.documentA?l.Q.documentA:e===l.Q.documentB?l.Q.documentB:l.Q.result,m=[[[0,0],[0,0]],[[0,0],[0,0]],[[0,0],[0,0]]]},4054:(e,t,n)=>{"use strict";n.d(t,{Aw:()=>d,Cz:()=>k,N1:()=>v,PF:()=>D,Qu:()=>p,R4:()=>h,R9:()=>f,_c:()=>x,_s:()=>S,ar:()=>m,cR:()=>E,eR:()=>g,f:()=>c,fp:()=>b,gC:()=>y,o5:()=>u,sR:()=>C});var o=n(50974),r=n(92466),i=n(36095),a=n(71231),s=n(38006),l=n.n(s);function c(e){return function(e){e&&i.vU&&e.scrollHeight}(e),function(e){return e.scrollHeight>e.clientHeight}(e)||u(e)}function u(e){return e.scrollWidth>e.clientWidth}function d(e){const t=e?e.document:document,n=t.createElement("iframe"),{documentElement:r}=t;return(0,o.kG)(r),n.title="script",n.style.position="absolute",n.style.top="-10000px",n.style.left="-10000px",n.style.width="10000px",n.style.height="10000px",n.setAttribute("aria-hidden","true"),r.appendChild(n),{window:n.contentWindow,remove(){r.removeChild(n)}}}function p(e){let t;if(!e.nodeName)return!1;const n=e.nodeName,o=e.hasAttribute("tabindex")&&parseInt(e.getAttribute("tabindex")),r=!isNaN(o)&&isFinite(o)&&"boolean"!=typeof o;if(/^(IFRAME|LABEL|DATALIST|INPUT|SELECT|TEXTAREA|BUTTON|OBJECT)$/.test(n)){if(t=!e.disabled,t){const n=e.closest("fieldset");n&&(t=!n.disabled)}}else t="A"===n?e.href||r:e.hasAttribute("contenteditable")&&"true"===e.getAttribute("contenteditable")||r;return!!t}const f=async e=>{let{buffer:t,width:n,height:o,format:r=(0,a.zP)()}=e;if("bitmap"===r)return(async e=>{let{buffer:t,width:n,height:o}=e;const r=document.createElement("canvas");r.width=n,r.height=o;const i=new Uint8ClampedArray(t),a=r.getContext("2d"),s=null==a?void 0:a.createImageData(n,o);return null==s||s.data.set(i),null==a||a.putImageData(s,0,0),h(await x(r))})({buffer:t,width:n,height:o});return h(new Blob([t],{type:`image/${r}`}))};function h(e){return m(URL.createObjectURL(e))}async function m(e){const t=new Image;return t.onerror=e=>{throw new o.p2(`There was an error loading the image: ${e.message}`)},t.src=e,await C(t),new r.Z(t,(()=>URL.revokeObjectURL(e)))}function g(e){return!(!e||1!==e.nodeType)&&("true"===e.contentEditable||"INPUT"===e.nodeName||"TEXTAREA"===e.nodeName)}function v(e){return!(!e||1!==e.nodeType)&&Boolean(e.attributes.role&&"listbox"===e.attributes.role.value||e.attributes.role&&"menu"===e.attributes.role.value)}function y(e){if(!e||1!==e.nodeType)return!1;const t=e.ownerDocument.querySelector(".PSPDFKit-Toolbar"),n=e.ownerDocument.querySelector(".PSPDFKit-Annotation-Toolbar");return Boolean(t&&t.contains(e)||n&&n.contains(e))}function b(e){return!(!e||1!==e.nodeType)&&Boolean(e.closest(".PSPDFKit-Toolbar-Responsive-Group"))}let w=!1;{let e=document.createElement("div");const t=()=>{};try{e.addEventListener("focus",t,!0),e.focus(Object.defineProperty({},"preventScroll",{get:()=>{w=!0}}))}catch(e){w=!1}finally{e.removeEventListener("focus",t),e=null}}function S(e,t){w&&t.focus({preventScroll:!0})}function E(e,t){const n=t.HTMLAnchorElement.prototype.hasOwnProperty("download"),o=new Blob([e],{type:"application/pdf"});if("function"==typeof navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(o,"download.pdf");else if(n){const e=window.URL.createObjectURL(o);P(e),t.URL.revokeObjectURL(e)}else{const e=new FileReader;e.onloadend=function(){const t=e.result;"string"==typeof t&&P(t)},e.readAsDataURL(o)}}function P(e){(0,o.kG)(null!=document.body);const t=document.createElement("a");t.href=e,t.style.display="none",t.download="download.pdf",t.setAttribute("download","download.pdf"),document.body&&document.body.appendChild(t),t.click(),document.body&&document.body.removeChild(t)}function x(e){return new Promise(((t,n)=>{"toBlob"in e?e.toBlob((e=>{t(e)}),"image/png"):"msToBlob"in e?t(null==e?void 0:e.msToBlob()):n(new Error("Exporting HTMLCanvasElement to Blob is not supported in this browser."))}))}function D(e){e.preventDefault()}async function C(e){if(!(e instanceof HTMLImageElement)||"IMG"!==e.nodeName)return;try{await new Promise(((t,n)=>{e.complete?t():(e.onerror=n,e.onload=()=>t())}))}catch(e){throw new o.p2(`The image could not be loaded: ${e.message}`)}const t=e.decode();try{await t}catch(e){if(!i.i7)throw new o.p2(`The image could not be decoded: ${e.message}`);await new Promise((e=>setTimeout(e,200)))}}function k(e){var t,n;null===(t=e.target)||void 0===t||t.classList.remove(l().focusedFocusVisible),null===(n=e.target)||void 0===n||n.removeEventListener("blur",k)}},13997:(e,t,n)=>{"use strict";n.d(t,{SV:()=>l,oM:()=>i,zj:()=>a});var o=n(50974),r=n(71984);function i(){return"protocol=5, client=2023.4.0, client-git=80c992b150"}function a(){return"production"}const s=new Map;function l(e){const t=(0,r.Qk)();if(t)return t;const n=document.createElement("a");n.href=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Error;const n=s.get(e);if("string"==typeof n)return n;if(e.currentScript){const t=e.currentScript.src;return s.set(e,t),t}{let n;try{throw new t("PSPDFKit document.currentScript.src detection")}catch(e){e.stack&&(n=e.stack.match(/(?:file|https?):[^)]+/i))}(0,o.kG)(n,"Failed to automatically determine baseUrl. Please specify the base url as an option.");const r=n[0].split(":").slice(0,-2).join(":");return s.set(e,r),r}}(e);const i=n.pathname.split("/").filter(Boolean).slice(0,-1);return[`${n.protocol}/`,n.host,...i].join("/")+"/"}},20276:(e,t,n)=>{"use strict";function o(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{bubbles:!1,cancelable:!1};return"function"==typeof Event?t=new Event(e,n):(t=document.createEvent("Event"),t.initEvent(e,Boolean(n.bubbles),Boolean(n.cancelable))),t}function r(e){const t=document.createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}n.d(t,{M:()=>o,_:()=>r})},71231:(e,t,n)=>{"use strict";n.d(t,{Gn:()=>i,Rh:()=>l,Zy:()=>a,aV:()=>c,zP:()=>s});var o=n(36095),r=n(91859);const i=(()=>{if("object"!=typeof window)return!1;let e=!1;const t=Object.defineProperty({},"passive",{get:function(){return e=!0,!0}});try{window.addEventListener("test",null,t)}catch(e){}return e})();let a=!o.G6;if(!o.G6){const e=new Image;e.onload=()=>a=e.width>0&&e.height>0,e.onerror=()=>a=!1,e.src="data:image/webp;base64,UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA=="}const s=()=>a?"webp":"png";let l=!1;try{const e=new FormData;e.append("key","value");const t=new Response(e);"formData"in t&&!fetch.polyfill&&t.formData().then((()=>{l=!0})).catch((()=>{l=!1}))}catch(e){l=!1}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s();return"webp"===t&&(e.width>r.pt||e.height>r.pt)?"png":t}},38623:(e,t,n)=>{"use strict";n.d(t,{GE:()=>p,eE:()=>d,vt:()=>u,x6:()=>f});var o=n(35369),r=n(50974),i=n(34710);const a=(0,o.hU)(["Helvetica","Arial","Calibri","Century Gothic","Consolas","Courier","Dejavu Sans","Dejavu Serif","Georgia","Gill Sans","Impact","Lucida Sans","Myriad Pro","Open Sans","Palatino","Tahoma","Times New Roman","Trebuchet","Verdana","Zapfino","Comic Sans"]),s=(0,o.hU)(["sans-serif","serif","monospace"]);let l=new Set;const c=(0,o.aV)(["mmmBESbswy"]);s.forEach((e=>{const t=a.filterNot((e=>l.has(e))),n=new i.f(document,c,{fontFamily:e}),o=t.map((t=>[t,new i.f(document,c,{fontFamily:`${t},${e}`})])),s=n.measure().first();(0,r.kG)(s),o.forEach((e=>{let[t,n]=e;const o=n.measure().first();s.equals(o)||(l=l.add(t))})),n.remove(),o.forEach((e=>{let[,t]=e;t.remove()}))}));const u=a.filter((e=>l.has(e))),d=[{name:"Caveat",file:"Caveat-Bold",weight:700},{name:"Marck Script",file:"MarckScript-Regular",weight:400},{name:"Meddon",file:"Meddon-Regular",weight:400},{name:"Pacifico",file:"Pacifico-Regular",weight:400}];function p(e,t){e.forEach((e=>{t.load(`16px ${e.name}`)}))}function f(e){return Promise.allSettled(e.map((e=>new Promise(((t,n)=>{var o,i;if((0,r.kG)(e.name),i=e.name,!/\.[^.]*$/.test(i))return(0,r.vU)(`The font name for font "${e.name}" must have a file extension.`),void n();null==e||null===(o=e.callback)||void 0===o||o.call(e,e.name).then((o=>{(0,r.kG)(e.name),o instanceof Blob?t({name:e.name,data:o}):((0,r.vU)(`Callback for retrieving font ${e.name} didn't returned a Blob. It returned ${typeof o}`),n())})).catch((t=>{(0,r.vU)(`Error returned by callback for retrieving font ${e.name}. ${t}`),n()}))}))))).then((e=>e.filter((e=>"fulfilled"===e.status)).map((e=>e.value))))}},16126:(e,t,n)=>{"use strict";n.d(t,{$Y:()=>z,AM:()=>_,Ay:()=>R,BT:()=>y,CH:()=>N,CK:()=>j,CL:()=>k,ET:()=>A,G8:()=>P,Qg:()=>v,U_:()=>b,VY:()=>E,as:()=>Z,fF:()=>L,g6:()=>F,gE:()=>T,hT:()=>w,i2:()=>x,l_:()=>S,o6:()=>B,r_:()=>I,sC:()=>O,sh:()=>K});var o=n(84121),r=n(35369),i=n(50974),a=n(59780),s=n(82481),l=n(86920),c=n(78162),u=n(97528),d=n(95651),p=n(20792),f=n(5020),h=n(78233);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;tnew s.KD({name:e.name,value:"string"==typeof e.value?e.value:e.values,optionIndexes:e.optionIndexes}))).toList()}function y(e,t){var n;return e&&t?e instanceof a.Dz||e instanceof a.rF?e.values.size>0?e.values.equals(t.values):0===t.values.size:(e.value===t.value||"function"==typeof(null===(n=e.value)||void 0===n?void 0:n.equals)&&e.value.equals(t.value))&&(!e.optionIndexes||!t.optionIndexes||e.optionIndexes.every(((e,n)=>t.optionIndexes[n]===e))):!e&&!t}function b(e){return(0,r.D5)(e.map((e=>{(0,i.kG)(null==e.pdfObjectId||"number"==typeof e.pdfObjectId,"Invalid type for `pdfObjectId`.");try{(0,i.kG)(Array.isArray(e.annotationIds),"Invalid type for `annotationIds`."),(0,i.kG)("string"==typeof e.name,"Invalid type for `name`."),(0,i.kG)("string"==typeof e.label,"Invalid type for `label`.");const t=Array.isArray(e.flags)?e.flags:[],n={pdfObjectId:e.pdfObjectId,annotationIds:(0,r.aV)(e.annotationIds),name:e.name,label:e.label,readOnly:t.includes("readOnly"),required:t.includes("required"),noExport:t.includes("noExport")};switch(e.type){case"pspdfkit/form-field/button":return function(e){return new a.R0(g({},e))}(n);case"pspdfkit/form-field/radio":return function(e,t){return(0,i.kG)(t.options instanceof Array,"Invalid type for `options`."),(0,i.kG)("string"==typeof t.defaultValue,"Invalid type for `defaultValue`."),(0,i.kG)("boolean"==typeof t.noToggleToOff,"Invalid type for `noToggleToOff`."),(0,i.kG)("boolean"==typeof t.radiosInUnison,"Invalid type for `radiosInUnison`."),new a.XQ(g(g({},e),{},{options:C(t.options),defaultValue:t.defaultValue,noToggleToOff:t.noToggleToOff,radiosInUnison:t.radiosInUnison}))}(n,e);case"pspdfkit/form-field/checkbox":return function(e,t){return(0,i.kG)(t.options instanceof Array,"Invalid type for `options`."),(0,i.kG)(t.defaultValues instanceof Array,"Invalid type for `defaultValue`."),new a.rF(g(g({},e),{},{options:C(t.options),defaultValues:(0,r.aV)(t.defaultValues)}))}(n,e);case"pspdfkit/form-field/combobox":case"pspdfkit/form-field/listbox":return function(e,t){(0,i.kG)(t.options instanceof Array,"Invalid type for `options`."),(0,i.kG)("boolean"==typeof t.multiSelect,"Invalid type for `multiSelect`."),(0,i.kG)("boolean"==typeof t.commitOnChange,"Invalid type for `commitOnChange`."),(0,i.kG)(!t.defaultValues||Array.isArray(t.defaultValues),"Invalid type for `defaultValue`.");const n=g(g({},e),{},{options:C(t.options),multiSelect:t.multiSelect,commitOnChange:t.commitOnChange,defaultValues:t.defaultValues?(0,r.aV)(t.defaultValues):(0,r.aV)()});switch(t.type){case"pspdfkit/form-field/combobox":{const e=t;return(0,i.kG)("boolean"==typeof e.edit,"Invalid type for `edit`."),(0,i.kG)("boolean"==typeof e.doNotSpellcheck||"boolean"==typeof e.doNotSpellCheck,"Invalid type for `doNotSpellCheck`."),new a.fB(g(g({},n),{},{edit:e.edit,doNotSpellCheck:e.doNotSpellCheck||e.doNotSpellcheck}))}case"pspdfkit/form-field/listbox":return new a.Vi(n);default:throw new Error("Unknown choice field type")}}(n,e);case"pspdfkit/form-field/text":return function(e,t){return(0,i.kG)("boolean"==typeof t.doNotSpellcheck||"boolean"==typeof t.doNotSpellCheck,"Invalid type for `doNotSpellCheck`."),(0,i.kG)("boolean"==typeof t.doNotScroll,"Invalid type for `doNotScroll`."),(0,i.kG)("boolean"==typeof t.password,"Invalid type for `password`."),(0,i.kG)("boolean"==typeof t.multiLine,"Invalid type for `multiLine`."),(0,i.kG)("string"==typeof t.defaultValue||!t.defaultValue,"Invalid type for `defaultValue`."),(0,i.kG)(!0!==t.comb||"number"==typeof t.maxLength,"Invalid type for `comb`. When `comb` is set, the text field must have a `maxLength`."),new a.$o(g(g({},e),{},{defaultValue:t.defaultValue,doNotSpellCheck:t.doNotSpellCheck||t.doNotSpellcheck,doNotScroll:t.doNotScroll,password:t.password,maxLength:"number"==typeof t.maxLength?t.maxLength:null,multiLine:t.multiLine,comb:t.comb}))}(n,e);case"pspdfkit/form-field/signature":return function(e){return new a.Yo(g({},e))}(n);default:throw new Error(`Unsupported form field type: ${e.type}`)}}catch(t){return(0,i.um)(`Skipped parsing form field #${e.name} from payload because an error occurred while deserializing.`),void(0,i.um)(t)}})).filter(Boolean).map((e=>[null==e?void 0:e.name,e])))}function w(e){return e.map((e=>c.Z.fromJSON(e.pdfObjectId?e.pdfObjectId.toString():e.id,e)))}function S(e,t){const n=e.annotationIds.findIndex((0,d.oF)(t)),o=e.options.get(n);return(0,i.kG)(o,`There is no FormOption defined for annotationId '${t.id}' in formField '${e.name}'.`),o.value}function E(e,t){let{rotation:n,boundingBox:o}=e;if(!n)return{};const r=90===(0,f.Lv)(n)||270===(0,f.Lv)(n),i={},a=Math.ceil(o.height*t),s=Math.ceil(o.width*t);return r&&(i.width=a,i.height=s),n&&(i.transformOrigin="50% 50%",i.transform=P({width:s,height:a,rotation:n})),i}function P(e){let{width:t,height:n,rotation:o,reverse:r=!1}=e;const i=90===(0,f.Lv)(o)||270===(0,f.Lv)(o);return r?`rotate(${o}deg)`+(i&&t&&n?`translate(${-Math.round(t/2-n/2)}px, ${Math.round(t/2-n/2)}px)`:""):(i&&t&&n?`translate(${Math.round(t/2-n/2)}px, ${-Math.round(t/2-n/2)}px) `:"")+`rotate(${-o}deg)`}function x(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const{fontColor:o,font:r,backgroundColor:i,borderColor:a,horizontalAlign:s,borderWidth:l,borderStyle:c,isBold:u,isItalic:d,boundingBox:{width:p,height:f},opacity:m}=e,v=Math.ceil(p*t),y=Math.ceil(f*t);return g(g({color:null==o?void 0:o.toCSSValue(),backgroundColor:null==i?void 0:i.toCSSValue(),borderColor:(null==a?void 0:a.toCSSValue())||"transparent",opacity:m,textAlign:s||void 0,fontWeight:u?"bold":void 0,fontStyle:d?"italic":void 0},"string"==typeof r?{fontFamily:(0,h.hm)(r)}:null),{},{borderWidth:l||0,borderStyle:null!=c?D[c]:"none",width:v,height:y},n?E(e,t):{})}const D={solid:"solid",dashed:"dashed",beveled:"groove",inset:"inset",underline:"none none solid"};function C(e){return(0,r.aV)(e.map((e=>new s.mv(e))))}function k(e,t){return e.formFields.find((e=>e.id===t))}function A(e,t){return e.filter((e=>e.annotationIds.some((e=>t.annotationIds.has(e))))).toList()}function O(e,t,n){var o,r,i,a;return"STANDALONE"===e.type&&u.Ei.PDF_JAVASCRIPT&&"function"==typeof e.onKeystrokeEvent&&(Boolean(null===(o=t.additionalActions)||void 0===o?void 0:o.onInput)||Boolean(null===(r=n.additionalActions)||void 0===r?void 0:r.onInput)||Boolean(null===(i=t.additionalActions)||void 0===i?void 0:i.onChange)||Boolean(null===(a=n.additionalActions)||void 0===a?void 0:a.onChange))}function T(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=[],o=t.slice(0);return e.forEach((e=>{if((e.change_type===l.uV||e.change_type===l.zR)&&"pspdfkit/form-field-value"===e.object.type){const t=o.findIndex((t=>"pspdfkit/form-field-value"===t.object.type&&t.object.type===e.object.type&&t.object.name===e.object.name));if(t>-1){const n=o[t];e.object.formattedValue=n.object.formattedValue,e.object.editingValue=n.object.editingValue,o.splice(t,1)}}n.push(e)})),n.concat(o)}function I(e,t,n){const o=e&&n.formFields.get(e.name);if(e&&o&&!y(e,o)){e.annotationIds.reduce(((e,n)=>{var o;const i=t.annotations.get(n)||t.annotations.find((e=>e.pdfObjectId===parseInt(n)));if(i&&null!==(o=t.isAPStreamRendered)&&void 0!==o&&o.call(t,i)){return e.get(i.pageIndex)?e.updateIn([i.pageIndex],(e=>e.add(i.id))):e.set(i.pageIndex,(0,r.l4)([i.id]))}return e}),(0,r.D5)()).forEach(((e,n)=>{var o;null===(o=t.backend)||void 0===o||o.clearPageAPStreams(n,e)}))}}function F(e,t,n){const o=e.annotationIds.findIndex((0,d.oF)(t)),i=S(e,t),a=e.options.filter((e=>e.value===i)).size;let s;if(n){if(a<2)return;s=(e.optionIndexes||(0,r.aV)()).push(o)}else{if(!e.optionIndexes)return;s=e.optionIndexes.filter((e=>e!==o))}return s.size>0?s:void 0}function M(e,t,n){const o=t.filter((t=>{const o=e.annotationIds.get(t);if(!o)return!1;const r=n.get(o);if(!r)return!1;const i=S(e,r);return e.options.filter((e=>e.value===i)).size>1}));return o.size>0?o:void 0}function _(e){let{state:t,mutableState:n,formFieldValues:o,areFormFieldValuesNew:s}=e;o.forEach((e=>{let{name:o,value:l,optionIndexes:c}=e;const u=t.formFields.get(o);if(u){if((0,i.kG)(!c||u instanceof a.XQ||u instanceof a.rF,"`optionIndexes` property is only supported in radio and checkbox form field values."),u instanceof a.$o)l=l||"",(0,i.kG)("string"==typeof l,`The type of action value for a TextFormField is ${typeof l}, but has to be a string`),n.setIn(["formFields",o,"value"],l);else if(u instanceof a.XQ){if((0,i.kG)("string"==typeof l||null===l,`The type of action value for a RadioButtonFormField is ${typeof l}, but has to either be a string or null`),n.setIn(["formFields",o,"value"],l),c){const e=M(u,c,t.annotations);e&&n.setIn(["formFields",o,"optionIndexes"],e)}}else if(u instanceof a.Dz||u instanceof a.rF){if(l=l||(0,r.aV)(),(0,i.kG)(l instanceof r.aV,`The type of action value for the ${u instanceof a.Dz?"ChoiceFormField":"CheckBoxFormField"} is ${typeof l}, but has to be a List of strings`),n.setIn(["formFields",o,"values"],l),u instanceof a.rF&&c){const e=M(u,c,t.annotations);e&&n.setIn(["formFields",o,"optionIndexes"],e)}}else u instanceof a.R0||u instanceof a.Yo||(0,i.kG)(!1,`Cannot set form field value for ${u.name}: unknown form field type`);s||I(u,t,n)}else(0,i.ZK)(`No form field found with name ${o}`)}))}function R(e){let{getState:t,originalFormFields:n,formFieldValues:o,callback:a,resolve:s}=e;const{formFields:l,annotations:c,backend:u}=t(),d=[],p=[];n.forEach(((e,t)=>{if(!e)return;(0,i.kG)(u);let n=l.get(t);if((0,i.kG)(n),o.some((e=>e.name===t&&(n=r.aV.isList(e.value)?n.set("values",e.value):n.set("value",e.value),!0))),y(e,n))p.push(t);else{c.filter((e=>e.points===t)).reduce(((e,t)=>{const n=e.get(t.pageIndex);return n?e.set(t.pageIndex,n.add(t.id)):e.set(t.pageIndex,(0,r.l4)([t.id]))}),(0,r.D5)()).forEach(((e,t)=>{d.push({pageIndex:t,pageWidgetIds:e})}))}})),a(p),d.forEach((e=>{let{pageIndex:t,pageWidgetIds:n}=e;null==u||u.clearPageAPStreams(t,n)})),null==s||s()}function N(e){return new s.KD(g({name:e.name,value:e.values||e.value},e.optionIndexes?{optionIndexes:e.optionIndexes}:null))}function L(e){return e===p.A.CHECKBOX_WIDGET||e===p.A.RADIO_BUTTON_WIDGET||e===p.A.SIGNATURE_WIDGET||e===p.A.TEXT_WIDGET||e===p.A.BUTTON_WIDGET||e===p.A.COMBO_BOX_WIDGET||e===p.A.LIST_BOX_WIDGET||e===p.A.FORM_CREATOR||e===p.A.DATE_WIDGET}function B(e){return L(e)&&e!==p.A.FORM_CREATOR}function j(e,t){const n=S(e,t),o=!e.optionIndexes||e.optionIndexes.includes(e.annotationIds.findIndex((0,d.oF)(t)));return e instanceof a.XQ?e.value===n&&o:e instanceof a.rF?e.values.includes(n)&&o:(0,i.Rz)(e)}const z="Invalid date/time: please ensure that the date/time exists. Field [",K="The value entered does not match the format of the field [",Z="format "},51269:(e,t,n)=>{"use strict";function o(e){return e.some((e=>e instanceof Error))?Promise.reject(e):Promise.resolve(e)}n.d(t,{s:()=>o})},39728:(e,t,n)=>{"use strict";n.d(t,{FA:()=>g,GW:()=>y,WF:()=>b,Yr:()=>w,_d:()=>v,ax:()=>S,kM:()=>m,mZ:()=>E});var o=n(84121),r=n(50974),i=n(35369),a=n(32125),s=n(82481),l=n(67699),c=n(95651),u=n(62164),d=n(15973),p=n(60619);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;te.push({type:"delete",payload:{id:t.id}}))),e.update("redoActions",(e=>e.clear())))}function y(e,t,n,o){if(e.isHistoryEnabled){let t=!0;if(e.eventEmitter.emit("history.willChange",{annotation:n,type:"update",preventDefault(){t=!1}}),!t)return}if(!t.set("updatedAt",null).equals(n.set("updatedAt",null)))if(e.historyChangeContext===l.j.DEFAULT&&e.isHistoryEnabled&&function(e,t){if(e instanceof s.gd&&!e.text)return!(!t||!("text"in t))&&!!t.text.value;if(e instanceof s.Jn&&!e.isCommentThreadRoot)return!!t&&t.isCommentThreadRoot;if("number"!=typeof e.pageIndex&&"number"!=typeof t.pageIndex)return!1;return!0}(n,t)){const r="number"!=typeof t.pageIndex&&"number"==typeof n.pageIndex||t instanceof s.gd&&null==t.text||t instanceof s.Jn&&!t.isCommentThreadRoot&&n.isCommentThreadRoot?{type:"delete",payload:{id:t.id}}:{type:"update",payload:E(n,t),restoreAPStream:o,deletedAnnotation:null};e.update("undoActions",(e=>e.push(r))),e.update("redoActions",(e=>e.clear()))}else if(e.historyChangeContext!==l.j.HISTORY&&e.undoActions.size>0){const o=e.undoActions.findLastIndex((e=>("update"===e.type||"delete"===e.type)&&e.payload.id===n.id));-1!==o&&e.updateIn(["undoActions",o],(e=>"update"===e.type?h(h({},e),{},{payload:E(n,t.merge(e.payload)),restoreAPStream:e.restoreAPStream}):"delete"===e.type?h(h({},e),{},{payload:h(h({},E(n,t)),e.payload)}):e))}}function b(e,t,n){if(t instanceof d.Hu)return;if(e.isHistoryEnabled){let n=!0;if(e.eventEmitter.emit("history.willChange",{annotation:t,type:"delete",preventDefault(){n=!1}}),!n)return}const o=(0,c.xc)();if(e.historyChangeContext===l.j.DEFAULT&&e.isHistoryEnabled){const r=w(t,o,e.commentThreads,e.comments),i=S(t,o,e);e.update("undoActions",(e=>e.map((e=>e.payload.id===t.id?h(h({},e),{},{payload:h(h({},e.payload),{},{id:o})}):e)).push({type:"create",payload:t.set("id",o),formField:i,restoreAPStream:n,comments:r}))),e.update("redoActions",(e=>e.clear()));const a=e.historyIdsMap.get(t.id);a&&e.deleteIn(["historyIdsMap",t.id]),e.setIn(["historyIdsMap",o],a||t.id)}else if(e.historyChangeContext!==l.j.HISTORY&&e.undoActions.size>0){const r=e.undoActions.findLastIndex((e=>"update"===e.type&&e.payload.id===t.id));if(-1!==r){e.updateIn(["undoActions",r],(e=>({type:"update",deletedAnnotation:t,payload:e.payload,restoreAPStream:n})));const i=e.historyIdsMap.get(t.id);i&&e.deleteIn(["historyIdsMap",t.id]),e.setIn(["historyIdsMap",o],i||t.id)}}}function w(e,t,n,o){let r=null;if(e.isCommentThreadRoot){const i=n.get(e.id);r=i?i.map((e=>{const n=o.get(e);return n&&n.set("rootId",t)})).filter((e=>e&&!(0,u.kT)(e))).toList():null}return r}function S(e,t,n){let o=null;return e instanceof s.x_&&(o=(0,p.GA)(n,e)),o&&o.set("annotationIds",(0,i.aV)([t]))}function E(e,t){return t.toSeq().reduce(((t,n,o)=>(e.has(o)&&e.get(o)===n||(t[o]=n),t)),{id:e.id})}},58479:(e,t,n)=>{"use strict";n.d(t,{$:()=>v,Ah:()=>A,Bo:()=>E,R9:()=>f,Sv:()=>D,Tp:()=>x,U5:()=>T,_x:()=>b,dX:()=>y,jC:()=>S,jw:()=>g,lB:()=>C,mP:()=>P,nG:()=>m,tm:()=>w,wA:()=>O,wL:()=>k});var o=n(67294),r=n(67366),i=n(63738),a=n(27515),s=n(34573),l=n(82481),c=n(51731),u=n(78233),d=n(69939),p=n(4054);function f(e){const t=o.useRef(e),n=o.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r(t.current=e,()=>t.current=void 0))),n}function h(e){const t=(0,r.I0)();return[(0,r.v9)((t=>{if(t.documentComparisonState&&void 0!==t.documentComparisonState[e])return t.documentComparisonState[e];throw new Error("Document comparison state not properly initialized.")})),f((n=>t((0,i.M5)({[e]:n}))))]}function m(){return h("referencePoints")}function g(){return h("currentTab")}function v(){return h("autoCompare")}function y(){return h("isResultFetched")}function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=o.useRef(),n=o.useRef();return(0,r.v9)((o=>(o.viewportState===t.current&&n.current||(n.current=t=>t.apply((0,a.zi)(o,e))),t.current=o.viewportState,n.current)))}function w(){const e=o.useRef(!0),t=o.useCallback((()=>e.current),[]);return o.useEffect((()=>()=>{e.current=!1}),[]),t}function S(e){const t=o.useRef();return o.useEffect((()=>{t.current=e})),t.current}function E(e,t){const{customUIStore:n,sidebarMode:i}=(0,r.v9)((e=>({customUIStore:e.customUIStore,sidebarMode:e.sidebarMode}))),[a,s]=o.useState((()=>{var e;return i?null==n||null===(e=n.getState().Sidebar)||void 0===e?void 0:e[i]:void 0}));o.useEffect((()=>null==n?void 0:n.subscribe((e=>{var t;if(!i)return;const n=null==e||null===(t=e.Sidebar)||void 0===t?void 0:t[i];s((()=>n))}))),[n,i]);const l=e&&(null==a?void 0:a({containerNode:e,items:t})),c=null==l?void 0:l.node;return o.useEffect((()=>{c&&e&&c!==e&&e.lastChild!==c&&e.append(c)}),[e,c]),null==l?void 0:l.onRenderItem}function P(e,t,n){const r=o.useRef({}),i=f(t),a=f(n),s=o.useMemo((()=>(t,n)=>{e&&t&&n&&(e({itemContainerNode:t,item:n}),r.current[i(n)]=t)}),[e,i]);return o.useEffect((()=>{Object.entries(r.current).forEach((t=>{let[n,o]=t;if(o&&n){const t=a(n),o=r.current[n];e&&o&&t&&e({itemContainerNode:o,item:t})}}))}),[e,a]),e?s:null}function x(){const[e,t]=o.useState(null),[n,r]=o.useState(null),[i,a]=o.useState(null),s=o.useRef(),l=o.useRef(),c=o.useRef(null);o.useEffect((()=>{l.current=n,s.current=i})),o.useEffect((()=>{const t=e&&n&&!l.current,o=!e&&s.current&&i;(t||o)&&c.current&&c.current.focus()}),[n,i,e]);const u=o.useCallback((()=>{r(!0)}),[r]);return{handleGroupExpansion:o.useCallback((e=>{t(e),e?a(e):r(!1)}),[a,t,r]),handleEntered:u,expandedGroup:e,prevActiveGroup:i,btnFocusRef:c}}function D(e,t,n){o.useLayoutEffect((function(){null!==e&&(t((0,s.Sb)()),n(e))}),[n,e,t])}function C(e,t,n,r){return o.useCallback((function(o){if(!(e instanceof l.gd))return;const i=(0,u.Zv)(e,t,n).boundingBox;let a=null;switch(o){case c.V.RIGHT:a=e.setIn(["boundingBox","width"],i.width);break;case c.V.BOTTOM:a=e.setIn(["boundingBox","height"],i.height);break;case c.V.BOTTOM_RIGHT:a=e.set("boundingBox",i)}null!==a&&r((0,d.FG)((0,u.XA)(a,n)))}),[e,r,t,n])}function k(e){const t=o.useRef(null);return o.useEffect((function(){const{current:n}=t;n&&(0,p._s)(e(),n)}),[e]),t}function A(e){const[t,n]=o.useState(e),[r,i]=o.useState(e);return t!==e&&(i(e),n(e)),[r,i]}function O(e,t,n){o.useEffect((function(){if(!e)return;const o=t();return o.addEventListener("scroll",n),function(){o.removeEventListener("scroll",n)}}),[t,e,n])}function T(e){let{threshold:t=0}=e;const[n,r]=o.useState(null),[i,a]=o.useState(null),s=o.useRef(null);return o.useEffect((()=>{s.current&&s.current.disconnect(),s.current=new window.IntersectionObserver((e=>{let[t]=e;return r(t)}),{threshold:t});const{current:e}=s;return i&&e.observe(i),()=>e.disconnect()}),[i]),[a,n||{}]}},53678:(e,t,n)=>{"use strict";n.d(t,{Pn:()=>i,rH:()=>a,sf:()=>s,vu:()=>r});var o=n(97413);function r(e){return 200<=e&&e<300}function i(e){const t=e.indexOf("://")>0;(0,o.k)(t,`The baseUrl must be an absolute URL (e.g. https://example.com/pspdfkit-lib/), but it is set to ${e}.\nProtocol relative URLs (e.g. //example.com/pspdfkit-lib/) are not supported.`);const n="/"===e.substr(-1);(0,o.k)(n,`The baseUrl must have a trailing slash in the URL (e.g. https://example.com/pspdfkit-lib/), but it is set to ${e}.`)}function a(e){return i(e)}function s(e){const t=e.indexOf("://")>0;(0,o.k)(t,`The hostedBaseUrl must be an absolute URL (e.g. https://api.pspdfkit.com/, but it is set to ${e}.`);const n="/"===e.substr(-1);(0,o.k)(n,`The hostedBaseUrl must have a trailing slash in the URL (e.g. https://api.pspdfkit.com/), but it is set to ${e}.`)}},45588:(e,t,n)=>{"use strict";n.d(t,{Jc:()=>y,UW:()=>g,Y:()=>b,an:()=>v,uq:()=>m});var o=n(84121),r=n(30845),i=n(50974),a=n(91859),s=n(97333),l=n(37015),c=n(88804),u=n(92466),d=n(73815);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t{t.onerror=e=>o(new Error(e)),t.onload=e=>{var t;const o=new Image;o.onload=()=>{n(new c.$u({width:o.width,height:o.height}))},o.onerror=()=>n(new c.$u({width:a.zA,height:a._2})),o.src=null===(t=e.target)||void 0===t?void 0:t.result},t.readAsDataURL(e)}))}));const m=async e=>{const{Sha256:t,bytes_to_hex:o}=await n.e(4536).then(n.bind(n,61529)),r=new t,i=await(0,l.V)(e);return{hash:o(r.process(i).finish().result),dimensions:await h(e)}};function g(e){return`${e.imageAttachmentId}_${e.id}`}function v(e){var t;let{backend:n,blob:o,annotation:r,isDetachedAnnotation:a=!1,zoomLevel:l,variant:u}=e,p=null,h=!1;const v=null!==(t=null==r?void 0:r.rotation)&&void 0!==t?t:0;(0,i.kG)(n);const y=r?g(r):void 0;if(r&&"imageAttachmentId"in r&&r.imageAttachmentId&&y&&n.attachmentsCache.has(y)){const{dimensions:e,img:t,provisional:i,prevRotation:a}=n.attachmentsCache.get(y);if(n&&i&&o&&a===v)return b();o&&"image/png"!==o.type&&"image/jpeg"!==o.type&&"image/webp"!==o.type&&(h=!0),p=w(n,e,v,r,o,t).then((r=>(o&&"image/png"!==o.type&&"image/jpeg"!==o.type&&"image/webp"!==o.type&&r&&(n.attachmentsCache=n.attachmentsCache.set(y,{dimensions:e,img:t,provisional:!0,prevRotation:v})),r)))}else{if(!o||"image/png"!==o.type&&"image/jpeg"!==o.type&&"image/webp"!==o.type)return b();p=m(o).then((e=>{let{dimensions:t}=e;return w(n,t,v,r,o)})).catch((()=>{throw new i.p2("Couldn't read data from the provided image.")}))}return f(f({},(0,s.uZ)(p)),{},{isProvisional:h});function b(){(0,i.kG)(n,"Backend is required to render the image"),(0,i.kG)(r,"Annotation is required to render the image");const{boundingBox:e}=r,t=(0,d.L)()*(null!=l?l:1),s=Math.round(e.width*t),p=Math.round(e.height*t),f=new c.$u({width:s,height:p}),h=a?n.renderDetachedAnnotation(r,o,s,p):n.cachedRenderAnnotation(r,o,s,p,u);return h.promise=h.promise.then((async e=>"imageAttachmentId"in r&&r.imageAttachmentId&&y&&null!=e&&e.element?0!==v?w(n,f,360-v,r,o,e.element).then((t=>(null!=t&&t.element&&(n.attachmentsCache=n.attachmentsCache.set(y,{dimensions:90===v||270===v?f.swapDimensions():f,img:t.element,prevRotation:v})),e))):(n.attachmentsCache=n.attachmentsCache.set(y,{dimensions:f,img:e.element,prevRotation:v}),e):e)),h}}function y(e,t){const n=new Uint8Array(e.length);for(let t=0;tnew Promise((e=>{o.toBlob(e)})));const s=o.getContext("2d");s.textBaseline="hanging";s.font=`100px "${i}"`;const{actualBoundingBoxLeft:l,actualBoundingBoxRight:c,width:u}=s.measureText(e);o.height=500;const d=2*(l||c?l+c:u);return o.width=d,s.textBaseline="hanging",s.font=`100px "${i}"`,s.fillStyle=a.toCSSValue(),s.fillText(e,d/4,125),function(e){const t=e.getContext("2d"),n=t.getImageData(0,0,e.width,e.height),o=n.data.length;let r=null,i=null,a=null,s=null,l=0,c=0;for(let t=0;tS(i,t,n).then(e,o)));if(r){const i=URL.createObjectURL(r),a=document.createElement("img");return new Promise(((s,l)=>{a.onload=()=>{r&&o&&(e.attachmentsCache=e.attachmentsCache.set(g(o),{dimensions:t,img:a,prevRotation:n})),S(a,t,n).then(s,l)},a.onerror=()=>{l(new Error("The attachment provided could not be rendered as image/jpeg, image/png or image/webp although the mime type suggests so."))},a.src=i}))}return new Promise((e=>e))}async function S(e,t,n){if(0===n)return e.onload=null,e.onerror=null,new u.Z(e,(()=>{}));{const o=document.createElement("canvas"),{width:r,height:a}=t;90===n||270===n?(o.width=a,o.height=r):(o.width=r,o.height=a);const s=o.getContext("2d");return(0,i.kG)(s,"Could not get canvas context"),90===n||270===n?s.translate(a/2,r/2):s.translate(r/2,a/2),s.rotate(n*-Math.PI/180),s.drawImage(e,-r/2,-a/2),new u.Z(o,(()=>{}))}}},7844:(e,t,n)=>{"use strict";n.d(t,{O:()=>i,b:()=>a});var o=n(35369);function r(e,t){if(e===t||(0,o.is)(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const i=Object.prototype.hasOwnProperty.bind(t);for(let r=0;r{"use strict";n.d(t,{k:()=>r});var o=n(50974);function r(e,t){if(!e)throw new o.p2(`Assertion failed: ${t||"Condition not met"}\n\nFor further assistance, please go to: https://pspdfkit.com/support/request`)}},28028:(e,t,n)=>{"use strict";n.d(t,{eU:()=>s,t0:()=>l,yK:()=>a});var o=n(19575),r=n(50974),i=n(71984);function a(e){const t="The supplied JWT is invalid. Please refer to our guides on how to set up authentication:\n https://pspdfkit.com/guides/web/current/server-backed/client-authentication/";if(-1!==e.indexOf('{"internal":'))return;let n;(0,r.kG)("string"==typeof e&&3===e.split(".").length,t);try{const t=o.Base64.decode(e.split(".")[1]);n=JSON.parse(t)}catch(e){throw new r.p2(t)}(0,r.kG)("string"==typeof n.document_id,"The supplied JWT is invalid. The field 'document_id' has to be a string value.\n Please refer to our guides for further information: https://pspdfkit.com/guides/web/current/server-backed/client-authentication/")}function s(e){if("string"!=typeof e)throw new r.p2("`accessToken` must be of type string.")}function l(e,t){(0,r.kG)("string"==typeof e,"`appName` must be a string."),(0,r.kG)((0,i.d)()||(0,i.AL)(e,t),"`appName` should only be set when using Electron or Maui."),(0,r.kG)(!(0,i.Sk)()||(0,i.AL)(e,t),"`appName` should only be set when using Electron without node integration or Maui.")}},77552:(e,t,n)=>{"use strict";function o(e){return{name:e.name,scale:{unitFrom:e.scale.unitFrom,unitTo:e.scale.unitTo,from:Number(e.scale.fromValue),to:Number(e.scale.toValue)},precision:e.precision}}n.d(t,{f:()=>o})},30570:(e,t,n)=>{"use strict";n.d(t,{B0:()=>Q,Di:()=>x,Ex:()=>G,Hg:()=>q,KI:()=>D,P_:()=>R,Qc:()=>Z,Rc:()=>V,Rw:()=>L,S6:()=>N,W9:()=>z,_P:()=>O,b5:()=>U,bs:()=>X,cd:()=>B,fH:()=>H,m_:()=>j,mq:()=>$,nK:()=>K,t9:()=>_,xA:()=>Y,zl:()=>J});var o=n(84121),r=n(50974),i=n(85628),a=n.n(i),s=n(35369),l=n(71603),c=n(9599),u=n(69939),d=n(74115),p=n(20792),f=n(4132),h=n(36489),m=n(79827),g=n(70076),v=n(20683),y=n(88713),b=n(50690),w=n(87043),S=n(36095);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function P(e){for(var t=1;te.y-t.y)).first();return{coordinate:[o.x,o.y-t]}}{const{boundingBox:t}=e;return{coordinate:[t.left+t.width/2,t.top+t.height/2]}}}(e,o);if(!r)return{display:"none"};const a={position:"absolute",transform:"translate(-50%, -50%) "+(e instanceof b.Z||e instanceof w.Z||e instanceof g.Z?"":e instanceof v.Z&&i?`rotate(${i}deg) translate(0, -${e.strokeWidth/2+10}px)`:i?`rotate(${i}deg) translate(0px, -${e.strokeWidth/2+10}px)`:`translate(0px, -${e.strokeWidth/2+10}px)`),transformOrigin:"center",fontSize:12,color:null===(n=e.strokeColor)||void 0===n?void 0:n.toCSSValue(),width:"max-content",left:r[0],top:e instanceof v.Z&&S.G6&&!i?r[1]-20:r[1]},{boundingBox:s}=e;return(e instanceof w.Z||e instanceof g.Z)&&(t&&s.width<200||s.width<80)?P(P({},a),{},{top:s.top-30}):a}function C(e,t){let n=e,o=t;t.x({label:h.s[e],value:h.s[e],disabled:!1}))),z=function(){const e=[];for(const t in f.L){const n=Object.keys(f.L).find((e=>e===t));if(n&&k.hasOwnProperty(f.L[t]))e.push((1/Math.pow(10,O[f.L[n]])).toString());else if(n&&A.hasOwnProperty(f.L[t])){const t=new(a())(O[f.L[n]]);e.push(t.toFraction(!0).toString())}}return e}(),K=Object.keys(f.L).map(((e,t)=>({label:z[t],value:f.L[e]}))),Z=Object.keys(f.L).filter((e=>!J(f.L[e]))).map(((e,t)=>({label:z[t],value:f.L[e]}))),U=Object.keys(m.K).map((e=>({value:m.K[e],label:m.K[e]}))),V=(e,t)=>({added:t.filter((t=>!e.find((e=>JSON.stringify(e)===JSON.stringify(t))))),deleted:e.filter((e=>!t.find((t=>JSON.stringify(e)===JSON.stringify(t)))))});function G(e){return e.map(((e,t)=>{const n=P(P({},e),{},{scale:P(P({},e.scale),{},{fromValue:e.scale.from,toValue:e.scale.to})});var o;(delete n.scale.from,delete n.scale.to,n.name&&""!==n.name.trim())||(n.name=(null===(o=(0,c.sJ)(n))||void 0===o?void 0:o.label)||`Scale ${t}`);return d.q[n.precision]&&(n.precision=d.q[n.precision]),n}))}async function W(e){let{operation:t,scale:n,getState:o,measurementUpdate:r,dispatch:i}=e;const a=o(),{backend:c,annotations:d,annotationManager:p}=a;const f=async(e,r)=>{const a=await(async e=>(await(null==p?void 0:p.loadAnnotationsForPageIndex(e)),o().annotations))(r);!function(e,t,o){e.forEach((e=>{const r=t.find((t=>t.pdfObjectId===e.pdfObjectId));if(r)switch(o){case"edit":{const e=r.set("measurementScale",new l.Z({fromValue:Number(n.scale.fromValue),toValue:Number(n.scale.toValue),unitFrom:n.scale.unitFrom,unitTo:n.scale.unitTo})).set("measurementPrecision",n.precision);i((0,u.FG)(e));break}case"delete":i((0,u.hQ)(r))}}))}(e,a,t)},h="STANDALONE"===c.type?await c.getAnnotationsByScale(n):function(e,t){return t.filter((t=>{const n=t.measurementScale,o=t.measurementPrecision;return!!n&&n.unitFrom===e.scale.unitFrom&&n.unitTo===e.scale.unitTo&&n.fromValue===e.scale.fromValue&&n.toValue===e.scale.toValue&&o===e.precision}))}(n,d),m=[];if(h.forEach((e=>{const n=d.find((t=>t.pdfObjectId?t.pdfObjectId===e.pdfObjectId:t.id===e.id));if(n&&"edit"===t&&r){const e=n.set("measurementScale",r.scale).set("measurementPrecision",r.precision);i((0,u.FG)(e))}else n&&"delete"===t?i((0,u.hQ)(n)):m.push(e)})),m.length>0){const e=(0,s.l4)(m.map((e=>e.pageIndex)));await Promise.all(e.map((async e=>{await f(m,e)})))}}async function q(e){let{scale:t,oldScale:n,getState:o,dispatch:r}=e;const i={scale:new l.Z({fromValue:Number(t.scale.fromValue),toValue:Number(t.scale.toValue),unitFrom:t.scale.unitFrom,unitTo:t.scale.unitTo}),precision:t.precision};await W({operation:"edit",scale:n,getState:o,measurementUpdate:i,dispatch:r})}async function H(e){let{deletedScale:t,getState:n,dispatch:o}=e;await W({operation:"delete",scale:t,getState:n,dispatch:o})}function $(e){if(e.size<2)return!1;const t=e.toList(),n=t.first(),o={scale:n.measurementScale,precision:n.measurementPrecision};for(let e=1;e{"use strict";n.d(t,{Sy:()=>s,Zt:()=>u,dY:()=>l});var o=n(50974),r=n(82481),i=n(3026),a=n(95651);function s(e,t,n){let s;if(e instanceof r.o9)return s=e.set(["startPoint","endPoint"][n],e[["startPoint","endPoint"][n]].translate(t)),s.set("boundingBox",(0,i.sS)(r.o9)(s));var c;if(e instanceof r.om||e instanceof r.Hi)return s=e.setIn(["points",n],null===(c=e.points.get(n))||void 0===c?void 0:c.translate(t)),s.set("boundingBox",(0,i.sS)(r.om)(s));if((0,a.Vc)(e)){var d,p,f;(0,o.kG)(e instanceof r.gd,"Callout annotation must have a callout");const a=null!==(d=e.callout)&&void 0!==d&&d.knee?["start","knee","end"]:["start","end"];if("end"===a[n])return e;s=e.setIn(["callout",a[n]],null===(p=e.callout)||void 0===p||null===(f=p[a[n]])||void 0===f?void 0:f.translate(t));const{callout:c}=s;(0,o.kG)(c,"Callout annotation must have a callout");const h=c.innerRectInset;(0,o.kG)(h,"Callout annotation must have an innerRectInset"),(0,o.kG)(c.start,"Callout annotation must have a start point");const m={left:e.boundingBox.left+h.left,top:e.boundingBox.top+h.top,right:e.boundingBox.left+e.boundingBox.width-h.right,bottom:e.boundingBox.top+e.boundingBox.height-h.bottom},g=l([[m.left,m.top],[m.right,m.top],[m.right,m.bottom],[m.left,m.bottom]]),v=(0,i.sS)(r.gd)(s),y=new r.eB({left:m.left-v.left,top:m.top-v.top,right:v.left+v.width-m.right,bottom:v.top+v.height-m.bottom});return s.set("boundingBox",v).setIn(["callout","innerRectInset"],y).setIn(["callout","end"],u(c.knee||c.start,g))}return e}function l(e){const t=[];for(let n=0;n{"use strict";n.d(t,{I:()=>r,W:()=>i});var o=n(91859);function r(e){return e.button===o.oW}function i(e){return e.buttons===o.M5}},37676:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i,l:()=>a});var o=n(71984);const r=["http","https","mailto"];function i(e){const t=e.split(":")[0];if(t===e)e=/^[./#]/.test(e)?e:"http://"+e;else if(r.indexOf(t)<=-1)return;a(e,!0)}function a(e,t){if((0,o.Sk)()){(0,o.oH)("electron").shell.openExternal(e)}else if(t){window.open(e,"_blank").opener=null}else window.opener=null,window.location.href=e}},19815:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>g,Ez:()=>w,HI:()=>v,LC:()=>T,RZ:()=>m,VT:()=>h,VY:()=>_,Vz:()=>R,Xr:()=>A,YN:()=>I,aE:()=>F,bp:()=>P,ix:()=>D,j$:()=>S,jb:()=>f,k_:()=>C,lV:()=>b,qs:()=>O,xW:()=>M,xr:()=>k});var o=n(50974),r=n(82481),i=n(18146),a=n(70094),s=n(10284),l=n(67628),c=n(60619),u=n(97528),d=n(60132),p=n(72131);function f(e){return e.documentPermissions.printHighQuality}function h(e){return e.documentPermissions.printing&&e.printingEnabled&&e.backendPermissions.downloadingAllowed}function m(e){return e.exportEnabled&&e.backendPermissions.downloadingAllowed}function g(e){return e.documentPermissions.extract&&e.clientPermissions.extract}function v(e){return g(e)&&!e.clientPermissions.preventTextCopy}function y(e){let{backendPermissions:t,documentPermissions:n,readOnlyEnabled:o}=e;return!(!n.modification&&n.annotationsAndForms&&!t.readOnly&&o===p.J.NO)}function b(e,t){let n=!1;if((0,o.kG)(t.backend),t.backend.isCollaborationPermissionsEnabled()&&e instanceof r.x_){const o=(0,c.GA)(t,e);n=!!o&&(0,s.os)(o,t)}const i=!n&&!(0,s.CM)(e,t)&&!(0,s.Kd)(e,t);if(F(t)&&(!("isSignature"in e)||!e.isSignature))return!0;if(E(t)||i)return!0;if(e instanceof a.FN&&(e=e.parentAnnotation),t.isEditableAnnotation)return!t.isEditableAnnotation(e);if(!P(t)||!y(t)){if(0===t.editableAnnotationTypes.size)return!0;if(t.editableAnnotationTypes.find((t=>e instanceof t)))return!1}return!0}function w(e,t){const n=!(0,s.kR)(e,t)&&!(0,s.Ss)(e,t);return!(T(t)&&!E(t)&&!n)||(t.isEditableComment?!t.isEditableComment(e):!!P(t)&&y(t))}function S(e,t,n){let{features:o,backend:a,backendPermissions:s,documentPermissions:l,readOnlyEnabled:c,editableAnnotationTypes:u}=t;if(e===r.Jn&&!T({features:o,backend:a}))return!0;if(e===i.Z&&!o.includes(d.q.REDACTIONS))return!0;if(e===r.UX&&n&&!o.includes(d.q.MEASUREMENT_TOOLS))return!0;return!!F({features:o})||(!(!P({backendPermissions:s,documentPermissions:l,readOnlyEnabled:c})||!y({backendPermissions:s,documentPermissions:l,readOnlyEnabled:c}))||!u.find((t=>e===t||e.prototype instanceof t||t.prototype instanceof e)))}function E(e){return e.backendPermissions.readOnly}function P(e){let{backendPermissions:t,documentPermissions:n,readOnlyEnabled:o}=e;return t.readOnly||!n.modification||o!==p.J.NO}function x(e){return(e.documentPermissions.annotationsAndForms||e.documentPermissions.fillForms)&&e.formsEnabled}function D(e){return x(e)&&C(e.backend)&&e.features.includes(d.q.FORM_DESIGNER)}function C(e){return(0,o.kG)(e),e.isUsingInstantProvider()||"STANDALONE"===e.type}function k(e){return(0,o.kG)(e),e.isUsingInstantProvider()||"STANDALONE"===e.type}function A(e){let{features:t,backendPermissions:n,documentPermissions:o,readOnlyEnabled:r}=e;return t.includes(d.q.DOCUMENT_EDITING)&&!(n.readOnly||!o.modification||r===p.J.VIA_VIEW_STATE||r===p.J.VIA_BACKEND_PERMISSIONS)}function O(e){let{features:t,backendPermissions:n,documentPermissions:o,readOnlyEnabled:r}=e;return t.includes(d.q.CONTENT_EDITING)&&!(n.readOnly||!o.modification||r===p.J.VIA_VIEW_STATE||r===p.J.VIA_BACKEND_PERMISSIONS)}function T(e){let{features:t,backend:n}=e;return(0,o.kG)(n),t.includes(d.q.COMMENTS)&&("STANDALONE"===n.type||"SERVER"===n.type&&n.isUsingInstantProvider())}function I(e){let{features:t,backend:n}=e;return(0,o.kG)(n),t.includes(d.q.MEASUREMENT_TOOLS)&&("STANDALONE"===n.type||"SERVER"===n.type&&n.isUsingInstantProvider())}function F(e){let{features:t}=e;return!R(t)&&t.includes(d.q.ELECTRONIC_SIGNATURES)}function M(e,t){return!!(t===l.H.LEGACY_SIGNATURES||e.includes(d.q.FORMS)&&(e.includes(d.q.ELECTRONIC_SIGNATURES)||e.includes(d.q.DIGITAL_SIGNATURES)))}function _(e,t,n){let{backendPermissions:o,documentPermissions:i,isEditableAnnotation:a,editableAnnotationTypes:s,readOnlyEnabled:l}=n;return e.readOnly||a&&!a(t)||!s.has(r.x_)||!u.Ei.IGNORE_DOCUMENT_PERMISSIONS&&!i.fillForms&&!i.annotationsAndForms||o.readOnly||l!==p.J.NO}function R(e){return e.includes(d.q.WEB_ANNOTATION_EDITING)||e.includes(d.q.ANNOTATION_EDITING)}},97333:(e,t,n)=>{"use strict";function o(e){return new Promise(((t,n)=>{let o=0;const r=[];let i=!1;const a=()=>{o>=e.length&&(i?n(r):t(r))};a(),e.forEach(((e,t)=>{e.then((e=>{o+=1,r[t]=e,a()})).catch((e=>{o+=1,r[t]=e,i=!0,a()}))}))}))}function r(e,t){let n=!1;return{promise:new Promise(((t,o)=>{e.then((e=>!n&&t(e)),(e=>!n&&o(e)))})),cancel(){n=!0,t&&t()}}}function i(e,t){return new Promise((function(n,o){e.then(n,o),setTimeout((function(){o(Error("promise:timeout"))}),t)}))}n.d(t,{Vs:()=>i,jK:()=>o,uZ:()=>r})},73815:(e,t,n)=>{"use strict";function o(){let e=1;return void 0!==window.devicePixelRatio&&(e=window.devicePixelRatio),e}n.d(t,{L:()=>o})},75669:(e,t,n)=>{"use strict";n.d(t,{Ag:()=>d,Mg:()=>v,az:()=>l,h4:()=>c,kv:()=>u,o0:()=>p,sw:()=>s});var o=n(82481),r=n(95651),i=n(64377),a=n.n(i);function s(e,t,n,r){const i=e.set("rotation",t);if(n&&r){const t=l(i).boundingBox;if(!new o.UL({left:0,top:0,width:n.width,height:n.height}).isRectInside(t))return e}return i}function l(e){const{boundingBox:t,rotation:n}=e,{width:r,height:i}=t;if(!p(e))return e;const a=new o.E9({x:-r/2,y:-i/2}),s=new o.E9({x:r/2,y:-i/2}),l=new o.E9({x:r/2,y:i/2}),c=new o.E9({x:-r/2,y:i/2}),u=a.rotate(n),d=s.rotate(n),f=l.rotate(n),h=c.rotate(n),m=Math.min(u.x,d.x,f.x,h.x),g=Math.min(u.y,d.y,f.y,h.y),v=Math.max(u.x,d.x,f.x,h.x),y=Math.max(u.y,d.y,f.y,h.y),b=t.getCenter();return e.set("boundingBox",new o.UL({left:b.x+m,top:b.y+g,width:v-m,height:y-g}))}function c(e,t){if(p(e)){const n=t||function(e,t){if(void 0===t||0===t)return e.getSize();const n=Math.floor(t/360);-1===Math.sign(t)&&(t+=360+360*n);let r=(t-=360*n)%180;const i=r>=90,a=i?e.height:e.width,s=i?e.width:e.height;if(r%=90,45===r){if(a!==s){const e=Math.min(a,s);return new o.$u({width:Math.sqrt(2)*e,height:Math.sqrt(2)*e})}return new o.$u({width:Math.sqrt(2)*a,height:Math.sqrt(2)*s})}const l=r*(Math.PI/180);return new o.$u({width:(a*Math.cos(l)-s*Math.sin(l))/Math.cos(2*l),height:(s*Math.cos(l)-a*Math.sin(l))/Math.cos(2*l)})}(e.boundingBox,e.rotation);return e.set("boundingBox",new o.UL({left:e.boundingBox.left+(e.boundingBox.width-n.width)/2,top:e.boundingBox.top+(e.boundingBox.height-n.height)/2,width:n.width,height:n.height}))}return e}function u(e){return"number"==typeof e.rotation&&e.rotation%360!=0}function d(e){return"number"==typeof e.rotation&&Math.abs(e.rotation)%90==0&&Math.abs(e.rotation)%360!=0}function p(e){return(0,r.a$)(e)&&u(e)}let f,h,m,g;function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"grab";if(f||(f=new DOMParser,h=f.parseFromString(a(),"image/svg+xml"),m=h.querySelector("svg"),g=new XMLSerializer),m&&(m.style.transform=`rotate(${-e}deg)`),g){return`url("${`data:image/svg+xml;utf8,${encodeURIComponent(g.serializeToString(h))}`}") 15 15, ${t}`}return t}},18803:(e,t,n)=>{"use strict";n.d(t,{Q:()=>b,U2:()=>w,ZJ:()=>m,a7:()=>h,mB:()=>y});var o=n(35369),r=n(50974),i=n(27515),a=n(4757),s=n(19815),l=n(82481),c=n(36095),u=n(34710),d=n(72584),p=n(76413),f=n.n(p);function h(e){var t,n;const{document:o}=e;if(c.TL){var i;const{activeElement:t,body:n}=o,a=t&&1===t.nodeType&&t!==n;if(null!==(i=e.getSelection())&&void 0!==i&&i.isCollapsed&&!a)return;const s=o.createElement("input");return s.style.position="fixed",s.style.left="50vw",s.style.top="50vh",s.readOnly=!0,(0,r.kG)(o.documentElement,"no document object found"),o.documentElement.appendChild(s),s.focus(),s.blur(),void s.remove()}var a;if(null!==(t=e.getSelection())&&void 0!==t&&t.empty)null===(a=e.getSelection())||void 0===a||a.empty();else if(null!==(n=e.getSelection())&&void 0!==n&&n.removeAllRanges){var s;null===(s=e.getSelection())||void 0===s||s.removeAllRanges()}}function m(e,t){const{startTextLineId:n,endTextLineId:i,startPageIndex:a,endPageIndex:s}=t.startAndEndIds();return(0,o.D5)(e.pages.filter((e=>e.textLines&&e.pageIndex>=a&&e.pageIndex<=s)).map((e=>{const t=e.textLines;let o;return e.pageIndex===a&&e.pageIndex===s?o=t.filter((e=>((0,r.kG)((0,d.hj)(e.id)),e.id>=n&&e.id<=i))):e.pageIndex===a?o=t.filter((e=>((0,r.kG)((0,d.hj)(e.id)),e.id>=n))):e.pageIndex===s?o=t.filter((e=>((0,r.kG)((0,d.hj)(e.id)),e.id<=i))):((0,r.kG)(e.textLines),o=e.textLines),[e.pageIndex,o]})))}const g=(e,t,n,o)=>{var i;(0,r.kG)((0,d.hj)(t.pageIndex));const a={transform:n&&n.scaleX>0&&n.scaleY>0?`scale(${n.scaleX*e.viewportState.zoomLevel}, ${n.scaleY*e.viewportState.zoomLevel})`:""};return new u.f(null===(i=e.frameWindow)||void 0===i?void 0:i.document,o,a,f().line)},v=(e,t,n)=>{const o=e.pages.get(t);(0,r.kG)(o&&o.textLines,"Page not found or page has no text lines");const i=o.textLines.find((e=>e.id===n));return(0,r.kG)(i,"TextLine not found"),i};function y(e,t){const{startTextLineId:n,endTextLineId:i,startPageIndex:l,endPageIndex:c}=t.startAndEndIds(),u=e.pages.get(l);(0,r.kG)(u,"Index of start page is out of bounds");const p=e.pages.get(c);if((0,r.kG)(p,"Index of end page is out of bounds"),n===i&&l===c){const i=v(e,l,n);(0,r.kG)((0,d.hj)(i.id));const c=u.textLineScales&&u.textLineScales.get(i.id),p=(0,a.LD)((0,s.HI)(e),i),f=p.substring(0,t.startOffset),h=p.substring(t.startOffset,t.endOffset),m=p.substring(t.endOffset),y=g(e,i,c,(0,o.aV)([f,h,m])),b=y.measure().get(1);(0,r.kG)(b);const w=b.scale(1/e.viewportState.zoomLevel).translate(i.boundingBox.getLocation());return y.remove(),{startRect:w,endRect:w}}{const f=v(e,l,n),h=v(e,c,i);(0,r.kG)((0,d.hj)(f.id)),(0,r.kG)((0,d.hj)(h.id));const m=u.textLineScales&&u.textLineScales.get(f.id),y=p.textLineScales&&p.textLineScales.get(h.id),b=(0,a.LD)((0,s.HI)(e),f),w=b.substring(0,t.startOffset),S=b.substring(t.startOffset),E=(0,a.LD)((0,s.HI)(e),h),P=E.substring(0,t.endOffset),x=E.substring(t.endOffset),D=g(e,f,m,(0,o.aV)([w,S])),C=g(e,h,y,(0,o.aV)([P,x])),k=D.measure().last();(0,r.kG)(k);const A=k.scale(1/e.viewportState.zoomLevel).translate(f.boundingBox.getLocation()),O=C.measure().first();(0,r.kG)(O);const T=O.scale(1/e.viewportState.zoomLevel).translate(h.boundingBox.getLocation());return D.remove(),C.remove(),{startRect:A,endRect:T}}}function b(e,t){const{startTextLineId:n,endTextLineId:o,startPageIndex:i,endPageIndex:a,textRange:s}=t;(0,r.kG)((0,d.hj)(i));const l=e.pages.get(i);(0,r.kG)((0,d.hj)(a)),(0,r.kG)(l,"Index of start page is out of bounds");const c=e.pages.get(a);if((0,r.kG)(c,"Index of end page is out of bounds"),(0,r.kG)(s&&(0,d.hj)(n)&&(0,d.hj)(o)),n===o&&i===a){return v(e,i,n).contents.substring(s.startOffset,s.endOffset)}{const t=v(e,i,n),r=v(e,a,o),l=t.contents.substring(s.startOffset),c=r.contents.substring(0,s.endOffset);return m(e,s).map(((e,t)=>e.map((e=>e.id==n&&t==i?l:e.id==o&&t==a?c:e.contents)))).valueSeq().flatten(!0).join("\n")}}function w(e,t){const{startTextLineId:n,endTextLineId:o,startPageIndex:r,endPageIndex:a}=t.startAndEndIds(),{startRect:s,endRect:c}=y(e,t),u=m(e,t).map(((t,l)=>t.map((t=>{let u;u=t.id==n&&l==r?s:t.id==o&&l==a?c:t.boundingBox;const d=(0,i.cr)(e.viewportState,l).translate(e.viewportState.scrollPosition.scale(e.viewportState.zoomLevel));return u.apply(d)})))).valueSeq().flatten(!0).toList();return l.UL.union(u)}},41952:(e,t,n)=>{"use strict";n.d(t,{K:()=>r,q:()=>i});var o=n(97528);const r=e=>{const{SELECTION_OUTLINE_PADDING:t}=o.Ei;return t(e)},i=(e,t)=>e.grow(r(t))},3026:(e,t,n)=>{"use strict";n.d(t,{CW:()=>v,Hx:()=>y,Hz:()=>P,Pr:()=>h,R4:()=>b,rr:()=>w,sS:()=>f});var o=n(35369),r=n(50974),i=n(82481),a=n(18146),s=n(26467),l=n(20792),c=n(91859),u=n(95651);const d=(e,t)=>e-t,p=(e,t)=>{const n=t.reduce(((t,n,o,r)=>{var i,a;const s={x:t.x.concat([n.x]),y:t.y.concat([n.y])},l=r.get(o+1)||r.get(o-1)||n,c=l.x-n.x,u=l.y-n.y;if(0===c&&0===u)return s;const d=Math.sqrt(c**2+u**2),p=(0===o?"lineCaps"in e&&null!==(i=e.lineCaps)&&void 0!==i&&i.start?2.5*e.strokeWidth:e.strokeWidth/2:o===r.size-1&&"lineCaps"in e&&null!==(a=e.lineCaps)&&void 0!==a&&a.end?2.5*e.strokeWidth:e.strokeWidth/2)/d;return{x:s.x.concat([n.x-p*u,n.x+p*u]),y:s.y.concat([n.y-p*c,n.y+p*c])}}),{x:[],y:[]}),[o,...r]=n.x.sort(d),i=r.slice(-1)[0]||o,[a,...s]=n.y.sort(d);return{minX:o,maxX:i,minY:a,maxY:s.slice(-1)[0]||a}};function f(e){switch(e){case i.o9:return e=>{(0,r.kG)(e instanceof i.o9,"Expected `lineAnnotation` to be an instance of `LineAnnotation`");const{minX:t,maxX:n,minY:a,maxY:s}=p(e,(0,o.aV)([e.startPoint,e.endPoint]));return new i.UL({width:n-t+2*e.strokeWidth,height:s-a+2*e.strokeWidth,top:a-e.strokeWidth,left:t-e.strokeWidth})};case i.b3:case i.Xs:case a.Z:return e=>e.boundingBox;case i.Hi:case i.om:return e=>{if((0,r.kG)(e instanceof i.om||e instanceof i.Hi,"Expected `polyshapeAnnotation` to be an instance of `PolylineAnnotation` or `PolygonAnnotation`"),0===e.points.size)return e.boundingBox;const{minX:t,maxX:n,minY:o,maxY:a}=p(e,e.points),s="cloudyBorderIntensity"in e&&e.cloudyBorderIntensity?e.cloudyBorderIntensity*c.St:0;return new i.UL({width:n-t+2*e.strokeWidth+2*s,height:a-o+2*e.strokeWidth+2*s,top:o-e.strokeWidth-s,left:t-e.strokeWidth-s})};case i.gd:return e=>{if((0,u.Vc)(e)){(0,r.kG)(e instanceof i.gd,"Expected `annotation` to be a `TextAnnotation`");const{callout:t}=e;(0,r.kG)(t,"Expected `callout` to be defined");const{innerRectInset:n,knee:o,start:a,end:s}=t;(0,r.kG)(n&&a&&s,"Expected `innerRectInset`, `start` and `end` to be defined");const l=Math.min(e.boundingBox.left+n.left,a.x,s.x,o?o.x:1/0),c=Math.min(e.boundingBox.top+n.top,a.y,s.y,o?o.y:1/0),u=Math.max(e.boundingBox.left+e.boundingBox.width-n.right,a.x,s.x,o?o.x:-1/0),d=Math.max(e.boundingBox.top+e.boundingBox.height-n.bottom,a.y,s.y,o?o.y:-1/0),p=4*(e.borderWidth||2);let f=h(a,new i.UL({left:l,top:c,width:u-l,height:d-c}),p);return o&&(f=h(o,f,p)),f}return e.boundingBox}}throw new r.p2("Expected `getBoundingBoxCalculator` to be called with a valid shape annotation type class value.")}function h(e,t,n){const o=t.left===e.x,r=t.left+t.width===e.x,a=t.top===e.y,s=t.top+t.height===e.y;return new i.UL({left:o?t.left-n:t.left,top:a?t.top-n:t.top,width:o||r?t.width+n:t.width,height:a||s?t.height+n:t.height})}const m=(e,t)=>new i.E9({x:e.x+t.weightedStrokeWidthLineRatio*t.xOffset,y:e.y+t.weightedStrokeWidthLineRatio*t.yOffset}),g={xOffset:0,yOffset:0,weightedStrokeWidthLineRatio:0};function v(e,t,n){if(null===n)return e;const r=n.start,a=n.end,l=r?s.O[r].width:0,c=a?s.O[a].width:0;if(e.size<2||!l&&!c)return e;const u=e.get(0),d=e.get(e.size-1);if(!(u instanceof i.E9&&d instanceof i.E9))return e;const p=r?(()=>{const n=u,o=e.get(1)||n;if(!(o instanceof i.E9))return g;const r=o.x-n.x,a=o.y-n.y;return{xOffset:r,yOffset:a,weightedStrokeWidthLineRatio:0!==r||0!==a?l*t/Math.sqrt(r**2+a**2):0}})():g,f=a&&e.get(e.size-2)instanceof i.E9?(()=>{const n=d,o=e.get(e.size-2)||n,r=-(n.x-o.x),i=-(n.y-o.y);return{xOffset:r,yOffset:i,weightedStrokeWidthLineRatio:0!==r||0!==i?c*t/Math.sqrt(r**2+i**2):0}})():g;return e.size>2||!r||!a?e.map(((t,n)=>0===n?p.weightedStrokeWidthLineRatio<=1?m(t,p):t:n===e.size-1&&f.weightedStrokeWidthLineRatio<=1?m(t,f):t)):p.weightedStrokeWidthLineRatio+f.weightedStrokeWidthLineRatio<=1?(0,o.aV)([m(u,p),m(d,f)]):e}function y(e){return e instanceof i.b3||e instanceof i.Xs?e.delete("boundingBox"):e instanceof i.Hi||e instanceof i.om?e.delete("boundingBox").delete("points"):e instanceof i.o9?e.delete("boundingBox").delete("startPoint").delete("endPoint"):e}function b(e){switch(e){case i.o9:return l.A.SHAPE_LINE;case i.b3:return l.A.SHAPE_RECTANGLE;case i.Xs:return l.A.SHAPE_ELLIPSE;case i.om:return l.A.SHAPE_POLYLINE;case i.Hi:return l.A.SHAPE_POLYGON;default:return null}}function w(e){let{points:t,intensity:n,arcRadius:o=c.St*n}=e;const r=t.reduce(((e,n,r)=>{const i=r===t.length-1?t[0]:t[r+1];if(C(n,i,.01))return e;const a=D(n,i),s=Math.floor(a/(1.75*o));if(a>=a/(s+1)){const t=s+1,o=(i[0]-n[0])/t,r=(i[1]-n[1])/t;e.push(...Array.from({length:t},((e,t)=>[n[0]+o*t,n[1]+r*t])))}return e}),[]),i=x(t),a=i?"1":"0",s="1"===a?"0":"1",l=i?-.3:.3;return r.reduce(((e,t,n)=>{const c=r[n>0?n-1:r.length-1];if(C(t,c))return e;let u=r[(n+1)%r.length],d=n+1;for(;C(t,u);){if(d%r.length===n)return[];u=r[(1+ ++d)%r.length]}let p=k(t,c,o,i),f=k(t,u,o,!i);if(isNaN(p)&&isNaN(f))return e.push(`${u[0]} ${u[1]}`),e;isNaN(p)&&(p=f+Math.PI),isNaN(f)&&(f=p+Math.PI),f+=l;const h=i?f>p?p+(S-f)>Math.PI?"1":"0":p-f>Math.PI?"1":"0":f>p?p+(S-f)>Math.PI?"0":"1":p-f>Math.PI?"0":"1",m=[t[0]+Math.cos(p)*o,t[1]-Math.sin(p)*o],g=[t[0]+Math.cos(f)*o,t[1]-Math.sin(f)*o];return e.push(0===e.length?`M ${m[0]} ${m[1]} A ${o} ${o} 0 ${h} ${a} ${g[0]} ${g[1]}`:` A ${o} ${o} 0 0 ${s} ${m[0]} ${m[1]} A ${o} ${o} 0 ${h} ${a} ${g[0]} ${g[1]}`),e}),[]).join(" ")}const S=2*Math.PI,E=S/360;function P(e){let{boundingBox:t,cloudyBorderIntensity:n,cloudyBorderInset:o}=e;const r=o instanceof i.eB?i.eB.applyToRect(o,t):t,a=t.width/2,s=t.height/2;if(0===a||0===s)return"";const l=Math.min(a,s,c.St*n),u=r.width/2,d=r.height/2,p=r.left+u,f=r.top+d,h=Array.from({length:360},((e,t)=>{const n=E*t;return[p+u*Math.cos(n),f+d*Math.sin(n)]})),m=h.length;let g=1.75*l;const v=A(h),y=v/g;g+=y>0?v%g/y:0;let b=0;const w=h.reduce(((e,t,n)=>{const o=h[(n+1)%m],r=D(t,o)/g,i=(o[0]-t[0])/r,a=(o[1]-t[1])/r,s=i/g*b,l=a/g*b;let c=t[0]+s,u=t[1]+l;for(;(i<=0&&c>=o[0]||i>=0&&c<=o[0])&&(a<=0&&u>=o[1]||a>=0&&u<=o[1]);)e.push([c,u]),c+=i,u+=a;return b=Math.abs(o[0]-c)*(g/Math.abs(i)),e}),[]),P=w.length;return 0===P?"":w.reduce(((e,t,n)=>{const o=w[n>0?n-1:P-1],r=w[(n+1)%P];let i=k(t,o,l,!0),a=k(t,r,l,!1);if(isNaN(i)&&isNaN(a))return e.push(`${r[0]} ${r[1]}`),e;isNaN(i)&&(i=a+Math.PI),isNaN(a)&&(a=i+Math.PI),a-=.3;const s=a>i?i+(S-a)>Math.PI?"1":"0":i-a>Math.PI?"1":"0",c=[t[0]+Math.cos(i)*l,t[1]-Math.sin(i)*l],u=[t[0]+Math.cos(a)*l,t[1]-Math.sin(a)*l];return e.push(0===e.length?`M ${c[0]} ${c[1]} A ${l} ${l} 0 ${s} 1 ${u[0]} ${u[1]}`:`A ${l} ${l} 0 0 0 ${c[0]} ${c[1]} A ${l} ${l} 0 ${s} 1 ${u[0]} ${u[1]}`),e}),[]).join(" ")}const x=e=>e.reduce(((t,n,o)=>o0,D=(e,t)=>{const n=t[0]-e[0],o=t[1]-e[1];return e[0]===t[0]?Math.abs(o):e[1]===t[1]?Math.abs(n):Math.sqrt(n**2+o**2)},C=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.001;return Math.abs(e[0]-t[0])<=n&&Math.abs(e[1]-t[1])<=n},k=(e,t,n,o)=>{const r=.5*Math.sqrt((e[0]-t[0])**2+(e[1]-t[1])**2),i=Math.acos(r/n),a=[t[0]-e[0],t[1]-e[1]];let s=Math.atan2(-a[1],a[0]);return s<0&&(s+=S),o?s-i:s+i},A=e=>e.reduce(((t,n,o)=>t+D(n,o{"use strict";function o(e,t,n,o){var r;if((null===(r=e.points)||void 0===r?void 0:r.size)<3)return-1;const i=e.get("points"),a=o||(null==i?void 0:i.get(t));return i.findIndex((e=>{if(e.get("x")===a.get("x")&&e.get("y")===a.get("y"))return!1;return e.distance(a)<=n}))}function r(e,t,n){var o;const r=null===(o=e.get("points"))||void 0===o?void 0:o.get(n);return e.update("points",(e=>e.set(t,r)))}n.d(t,{K:()=>o,d:()=>r})},55961:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});var o=n(67366);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.$j)(((t,n)=>null==e?void 0:e(t.reuseState?i(t,t.reuseState):t,n)),null,null,t)}const i=(0,n(30845).Z)(((e,t)=>e.withMutations((n=>{n.merge(t),n.set("pages",e.pages.map((e=>{const n=e.pageKey,o=t.pages.find((e=>e.pageKey===n));return o&&o?e.set("annotationIds",o.annotationIds):e})))}))))},72584:(e,t,n)=>{"use strict";n.d(t,{F6:()=>c,HD:()=>d,LE:()=>a,Oe:()=>i,QE:()=>l,aF:()=>f,hj:()=>p,zW:()=>u});var o=n(37529),r=n.n(o);function i(e){return e.charAt(0)&&e.charAt(0).toUpperCase()+e.slice(1)}function a(e){return e.charAt(0).toLowerCase()+e.substr(1)}const s=e=>e[0]===r().INSERT;function l(e,t,n){var o,i;const a=r()(e,t,n);let l="";const c=a.filter(s);return c.length>0&&(l=c[0][1]),{prev:e,next:t,change:l,diff:a,endCursorPosition:n+((null===(o=a[1])||void 0===o||null===(i=o[1])||void 0===i?void 0:i.length)||0)}}function c(e,t){if(t===e.change)return e.next;const{diff:n}=e,o=n.findIndex(s);return o>=0?n[o][1]=t:n.push([r().INSERT,t]),function(e){let t="";for(let n=0;nt?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e.toLowerCase())).join("")}function d(e){return"string"==typeof e}function p(e){return"number"==typeof e}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:120;const n=e.trim();return n.length{"use strict";n.d(t,{BK:()=>u,KY:()=>c,Vq:()=>d,in:()=>l,kC:()=>s});var o=n(50974),r=n(25256),i=n(82481),a=n(3026);function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function l(e){return e.split(/[^a-zA-Z0-9]/g).reduce(((e,t)=>e+s(t)),"")}function c(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||""}function u(e){return"#00000000"===e?void 0:e}function d(e){let{rect:t,callout:n,zoomLevel:s,annotation:l,text:c=l.text}=e;const{height:u,width:d}=t,p=l.boundingBox.scale(s);if(null==n||!n.innerRectInset||!d||!u)return;const f=n.innerRectInset.setScale(s),h=p.left+f.left,m=p.left+f.left+d,g=p.top+f.top,v=p.top+f.top+u,y=(l.borderWidth||2)/2,b=(0,r.dY)([[h+y,g+y],[m-y,g+y],[m-y,v-y],[h+y,v-y]]),w=n.knee||n.start;(0,o.kG)(w,"CalloutEditComponent: point is undefined");const S=(0,r.Zt)(w.scale(s),b);(0,o.kG)(n.start);let E=i.UL.fromPoints(...[[h,g],[m,g],[m,v],[h,v]].map((e=>new i.E9({x:e[0],y:e[1]})))).expandToIncludePoints(...[n.start,n.knee].filter(Boolean).map((e=>null==e?void 0:e.scale(s))));E=(0,a.Pr)(n.start.scale(s),E,4*(l.borderWidth||2)),n.knee&&(E=(0,a.Pr)(n.knee.scale(s),E,l.borderWidth||2));const P=S.scale(1/s);return l.setIn(["callout","end"],P).setIn(["callout","innerRectInset"],new i.eB({bottom:(E.top+E.height-v)/s,left:(h-E.left)/s,right:(E.left+E.width-m)/s,top:(g-E.top)/s})).set("text",c).set("boundingBox",E.scale(1/s))}},78233:(e,t,n)=>{"use strict";n.d(t,{MF:()=>h,XA:()=>f,Zv:()=>m,gB:()=>b,hm:()=>w,hr:()=>y,z1:()=>g});var o=n(84121),r=n(50974),i=n(4054),a=n(82481),s=n(34710),l=n(91859),c=n(97528),u=n(75669);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:1;if(!1===c.Ei.TEXT_ANNOTATION_AUTOFIT_TEXT_ON_EXPORT)return e.set("isFitting",!1);try{t=(0,i.Aw)(),n=new s.f(document,e.text.value,g(e.set("rotation",0),o,!1));const r=!(0,i.f)(n.wrapper);return e.set("isFitting",r)}finally{n&&n.remove(),t&&t.remove()}}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;for(e=f(e,t);!e.isFitting&&e.fontSize>=2;)e=f(e=e.set("fontSize",e.fontSize-1),t);return e}function m(e,t){let n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;try{const r=t.width-e.boundingBox.left,i=t.height-e.boundingBox.top;n=new s.f(document,e.text.value,p(p({},g(e,o,!1)),{},{width:"auto",height:"auto",maxWidth:`${Math.ceil(r*o)}px`,maxHeight:`${Math.ceil(i*o)}px`,padding:"0px",margin:"0px",overflow:"visible"}));const{width:a,height:l}=n.wrapper.getBoundingClientRect(),c=Math.max(a,n.wrapper.clientWidth,n.wrapper.scrollWidth),u=Math.max(l,n.wrapper.clientHeight,n.wrapper.scrollHeight);return e.set("boundingBox",e.boundingBox.set("width",Math.ceil(c/o)).set("height",Math.ceil(u/o)))}finally{n&&n.remove()}}function g(e,t,n){const o=p(p({width:Math.ceil(e.boundingBox.width*t),height:Math.ceil(e.boundingBox.height*t),color:e.fontColor?e.fontColor.toCSSValue():"transparent",backgroundColor:e.backgroundColor&&!n?e.backgroundColor.toCSSValue():"transparent",fontSize:e.fontSize*t+"px",fontFamily:`${w(e.font)}, sans-serif`,textAlign:e.horizontalAlign},n?null:{opacity:e.opacity}),{},{fontWeight:e.isBold?"bold":"normal",fontStyle:e.isItalic?"italic":"normal",whiteSpace:"pre-wrap",wordBreak:"break-word",overflow:"hidden",lineHeight:"number"==typeof e.lineHeightFactor?e.lineHeightFactor*t*e.fontSize+"px":"normal",flexDirection:"column",justifyContent:v(e.verticalAlign),display:"flex"});return(0,u.kv)(e)&&!n&&(o.transformOrigin="50% 50%",o.transform=`rotate(${String(-e.rotation)}deg)`),o}function v(e){switch(e){case"top":return"flex-start";case"center":return"center";case"bottom":return"flex-end";default:return(0,r.Rz)(e)}}function y(e){return"string"==typeof e?e.split("\r\n").join("\n").split("\r").join("\n"):e}function b(e,t){let n;switch(t){case 0:n=new a.UL({left:e.x,top:e.y,width:l.g3,height:l.rm});break;case 90:n=new a.UL({left:e.x,top:e.y-l.rm,width:l.g3,height:l.rm});break;case 180:n=new a.UL({left:e.x-l.g3,top:e.y-l.rm,width:l.g3,height:l.rm});break;case 270:n=new a.UL({left:e.x-l.g3,top:e.y,width:l.g3,height:l.rm});break;default:throw(0,r.Rz)(t)}return n}function w(e){return/^[-_a-zA-Z0-9\\xA0-\\u{10FFFF}]*$/.test(e)?e:`"${e}"`}},4757:(e,t,n)=>{"use strict";n.d(t,{LD:()=>u,TH:()=>l,uv:()=>c});var o=n(35369),r=n(82481),i=n(33320),a=n(36095),s=n(93572);function l(e,t){return(0,o.aV)(e.textLines.map(((e,n)=>new r.bi({id:n+1,contents:e.contents,pageIndex:t,boundingBox:new r.UL({top:e.top,left:e.left,height:e.height,width:e.width})}))))}function c(e,t,n){let a=n;const l=[],c=[],u={};let d="",p=(0,i.C)();return function e(n,o){n&&n.forEach((n=>{if(n.bbox){a+=1;const e=new r.bi({id:a,contents:n.element.text,pageIndex:t,contentTreeElementMetadata:o,boundingBox:(0,s.k)(n.bbox)});(null==o?void 0:o.pdfua_type)===d&&r.UL.areRectsCloserThan(e.boundingBox,u[p][u[p].length-1].boundingBox,.6*e.boundingBox.height)?u[p]&&u[p].length>0?u[p].push(e):u[p]=[e]:(d=(null==o?void 0:o.pdfua_type)||"",p=(0,i.C)(),u[p]=[e]),l.push(e)}if(n.children){const t={pdfua_type:n.pdfua_type,type:n.type,alt:n.alt};e(n.children,t)}}))}(e,null),a=n,Object.keys(u).forEach((e=>{let n="";const i=[];let s={pdfua_type:"",type:"",alt:""};for(let t=0;t{"use strict";n.d(t,{Bx:()=>d,PK:()=>u,rf:()=>p});var o=n(84121),r=n(82481),i=n(18803),a=n(95651),s=n(97413);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2];return p(e).map((o=>{let{pageIndex:i,rects:s}=o;return new t(c(c({},(0,a.lx)(e)),{},{pageIndex:i,boundingBox:r.UL.union(s),rects:s,isCommentThreadRoot:n}))}))}function d(e,t,n){return p(e).map((o=>{let{pageIndex:i,rects:s}=o;const l=t.get(i);return null==l?new n(c(c({},(0,a.lx)(e)),{},{pageIndex:i,boundingBox:r.UL.union(s),rects:s})):l.withMutations((e=>e.set("boundingBox",r.UL.union(s)).set("rects",s)))}))}function p(e){(0,s.k)(e.currentTextSelection,"Cannot create markup annotation without text selection.");const{textRange:t,startTextLineId:n,endTextLineId:o,startPageIndex:r,endPageIndex:a}=e.currentTextSelection;(0,s.k)(t);const{startRect:l,endRect:c}=(0,i.mB)(e,t);return(0,i.ZJ)(e,t).map(((t,i)=>{const u=e.pages.get(i);(0,s.k)(u);const d=t.map((e=>e.id==n&&i==r?l:e.id==o&&i==a?c:e.boundingBox));return{pageIndex:u.pageIndex,rects:d}})).valueSeq().toList()}},94385:(e,t,n)=>{"use strict";function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=null,r=null;return function(){const i=this;for(var a=arguments.length,s=new Array(a),l=0;l{o=null,r&&n&&(e.apply(i,r),r=null,o=setTimeout(a,t))};o=setTimeout(a,t)}}}n.d(t,{Z:()=>o})},77528:(e,t,n)=>{"use strict";n.d(t,{CN:()=>h,DQ:()=>c,FO:()=>v,I4:()=>g,KT:()=>b,Kt:()=>m,Li:()=>y,Ut:()=>u,hJ:()=>d,q1:()=>s,se:()=>l});var o=n(35369),r=n(19815),i=n(62164),a=n(20792);function s(e,t,n){return e.filter((e=>{const o=e.get("type");if(t[o]&&t[o].forceHide)return!1;let r=e.get("mediaQueries");if(!r){if(f(e))return!0;const n=t[o].mediaQueries;if(!n)return!0;r=n}const i=null==n?void 0:n.matchMedia(r.join(", "));return null==i?void 0:i.matches}))}function l(e,t){return e.map((e=>{const n=e.get("mediaQueries");if(!n){if(f(e))return;const n=(t[e.get("type")]||{}).mediaQueries;return n?(0,o.aV)(n):void 0}return n})).filter(Boolean).flatten().filter((e=>"all"!==e)).toSet().toArray()}function c(e,t){return e=e.map((e=>{const n=e.get("type"),r=t[n]||{},{id:i,className:a,icon:s,title:l,selected:c,disabled:u,responsiveGroup:d,onPress:p,dropdownGroup:f,preset:h,node:m}=e.toJS(),g="custom"===n,v={id:i||n,type:r.type||n,title:l||r.title,icon:s||r.icon,className:[r.className,a].filter(Boolean).join(" "),selected:g?c:r.selected,disabled:!0===u?u:r.disabled,onPress:g?p:r.onPress,onKeyPress:g?void 0:r.onKeyPress,responsiveGroup:d||r.responsiveGroup,dropdownGroup:void 0!==f?f:r.dropdownGroup,preset:h||r.preset};return m&&(v.node=m),(0,o.D5)(v)}))}function u(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;return e.filter((o=>{const r=o.get("responsiveGroup");return r&&void 0!==p(e,r)?!!t&&r===n:!t}))}function d(e){return e.map((t=>{const n=t.get("type"),o=t.get("id");if("responsive-group"==n||"annotate"==n){const n=t.get("selected"),r=!!e.find((e=>e.get("responsiveGroup")==o&&1==e.get("selected")));return t.set("selected",n||r)}return t}))}function p(e,t){return e.find((e=>e.get("id")&&e.get("id")===t))}function f(e){const t=e.get("type");return"custom"===t||"responsive-group"===t}function h(e,t){return t===e}function m(e,t,n){return n===e&&!t}function g(e){let{toolbarItems:t,features:n,backend:o,backendPermissions:a,documentPermissions:s,readOnlyEnabled:l,showComments:c}=e;return t.filter((e=>"document-editor"===e.get("type")||"document-crop"===e.get("type")?(0,r.Xr)({features:n,backendPermissions:a,documentPermissions:s,readOnlyEnabled:l}):"content-editor"===e.get("type")?(0,r.qs)({features:n,backendPermissions:a,documentPermissions:s,readOnlyEnabled:l}):"comment"!==e.get("type")||(0,r.LC)({features:n,backend:o})&&(0,i.oK)({showComments:c,features:n,backend:o})))}const v={[a.A.INK]:["ink","highlighter"],[a.A.SHAPE_LINE]:["line","arrow"],[a.A.INK_ERASER]:"ink-eraser",[a.A.TEXT_HIGHLIGHTER]:"text-highlighter",[a.A.SHAPE_RECTANGLE]:["rectangle","cloudy-rectangle","dashed-rectangle"],[a.A.SHAPE_ELLIPSE]:["ellipse","cloudy-ellipse","dashed-ellipse"],[a.A.SHAPE_POLYGON]:["polygon","cloudy-polygon","dashed-polygon"],[a.A.SHAPE_POLYLINE]:"polyline",[a.A.NOTE]:"note",[a.A.TEXT]:"text",[a.A.CALLOUT]:"callout",[a.A.LINK]:"link",[a.A.MEASUREMENT]:"measurement"};function y(e){const t=Object.entries(v).find((t=>{let[,n]=t;return Array.isArray(n)?n.includes(e):n===e}));return t&&t[0]||null}function b(e){var t;return null===(t=e.find((e=>"delete"===e.type)))||void 0===t?void 0:t.icon}},42911:(e,t,n)=>{"use strict";n.d(t,{Yw:()=>i,bl:()=>l,sX:()=>a});var o=n(36095),r=n(71231);function i(){const e="webkit"===o.SR;let t;e&&(t=window.PointerEvent);const r=window.Hammer;e&&delete window.PointerEvent;const i=n(34988);return e&&(window.PointerEvent=t),window.Hammer=r,i}function a(e){let t;if(e.touches)t=e.touches;else{if(!e.changedTouches)return!1;t=e.changedTouches}return t.length<=1}const s="webkit"===o.SR||"blink"===o.SR;function l(e){if(!s)return()=>{};const t=e=>{a(e)||e.preventDefault()},n=["touchstart","touchmove"],o=r.Gn?{passive:!1}:void 0;return n.forEach((n=>{e.addEventListener(n,t,o),document.addEventListener(n,t,o)})),()=>{n.forEach((n=>{e.removeEventListener(n,t,o),document.removeEventListener(n,t,o)}))}}},27515:(e,t,n)=>{"use strict";n.d(t,{DB:()=>g,EY:()=>x,Ek:()=>m,G4:()=>C,JN:()=>E,YA:()=>w,YS:()=>f,YV:()=>I,_4:()=>y,_P:()=>D,_U:()=>S,a$:()=>b,cr:()=>h,fI:()=>k,oI:()=>O,pA:()=>A,vY:()=>P,vs:()=>v,zi:()=>F,zo:()=>T});var o=n(71693),r=n(52560),i=n(56956),a=n(77973),s=n(88804),l=n(47710),c=n(28098),u=n(91859),d=n(87222),p=n(97413);function f(e,t,n){if((e.scrollMode===l.G.PER_SPREAD||e.scrollMode===l.G.DISABLED)&&t!==e.currentPageIndex)return!1;const o=h(e,t),r=n.apply(o);return e.viewportRect.isRectOverlapping(r)}function h(e,t){var n;if(null!==(n=e._pageToClientTransformation)&&void 0!==n&&n[t])return e._pageToClientTransformation[t];const r=(0,o.dF)(e,t),i=function(e,t){return e.translate(t.viewportRect.getLocation()).translate(t.scrollPosition.scale(-t.zoomLevel))}(y(v(g(s.sl.IDENTITY,e,t,r),e,r),e),e);return e._pageToClientTransformation||(e._pageToClientTransformation={}),e._pageToClientTransformation[t]=i,i}function m(e,t){return h(e,t).inverse()}function g(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const s=t.pageSizes.get(n);switch((0,p.k)(s),0!==t.pagesRotation&&(e=e.rotate(-t.pagesRotation)),t.pagesRotation){case 0:break;case 90:e=e.translateX(s.height*i);break;case 180:e=e.translateX(s.width*i).translateY(s.height*i);break;case 270:e=e.translateY(s.width*i);break;default:throw new Error(`Unsupported pagesRotation: ${t.pagesRotation}. Only supporting: 0, 90, 180, 270.`)}switch((0,o.nw)(t)){case a.X.SINGLE:return(0,p.k)(n===r,"In LayoutMode.SINGLE, pageIndex must equal spreadIndex."),e;case a.X.DOUBLE:{if(t.keepFirstSpreadAsSinglePage&&0==n&&0==r)return e;const a=t.keepFirstSpreadAsSinglePage?1:0,s=(0,o.hK)(t,n),l=(0,o.Xk)(t,r);return e.translateX((n+a)%2?parseInt((l.width-s.width)*i,10):0).translateY(parseInt((l.height-s.height)*i/2,10))}default:throw new Error("Unsupported layoutMode")}}function v(e,t,n){if(t.scrollMode===l.G.CONTINUOUS){const r=(0,o.Xk)(t,n).width,i=(0,o.e8)(t,n);return e.translateX(((0,o.Ad)(t)-r)/2).translateY(i)}return e}function y(e,t){return e.scale(t.zoomLevel).translate(C(t).getLocation())}function b(e,t,n,o){const r=e.set("viewportRect",new s.UL({width:t.width-o,height:t.height,top:t.top,left:t.left}));return T(k(e,r,n))}function w(e,t){const n=e.set("layoutMode",t);return T(k(e,n))}function S(e,t){const n=e.set("scrollMode",t);return T(k(e,n))}function E(e,t){return T(e.set("spreadSpacing",t))}function P(e,t){return T(e.set("pageSpacing",t))}function x(e,t){return T(e.set("keepFirstSpreadAsSinglePage",t))}function D(e,t){return T(e.set("viewportPadding",t))}function C(e){let t;if(e.scrollMode===l.G.CONTINUOUS)t=new s.$u({width:(0,o.Ad)(e),height:(0,o.Of)(e)});else{const n=(0,o.dF)(e,e.currentPageIndex);t=(0,o.Xk)(e,n)}let n=new s.UL({width:t.width,height:t.height}).scale(e.zoomLevel).translate(e.viewportPadding);const r=e.commentMode===d._.SIDEBAR?u.h8:0;e.viewportRect.width-r-2*e.viewportPadding.x>n.width&&(n=n.translateX((e.viewportRect.width-r-2*e.viewportPadding.x-n.width)/2));return e.viewportRect.height-2*e.viewportPadding.y>n.height&&(n=n.translateY((e.viewportRect.height-2*e.viewportPadding.y-n.height)/2)),n}function k(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=(0,o.nw)(e)!==(0,o.nw)(t),a=e.scrollMode!==t.scrollMode;if(!(n||r||a))return t;switch(t.scrollMode){case l.G.PER_SPREAD:case l.G.DISABLED:return t.set("zoomMode",c.c.FIT_TO_VIEWPORT);case l.G.CONTINUOUS:return t=T(t),(0,i.eb)(t,t.currentPageIndex,!0);default:throw new Error("Unsupported scrollMode")}}function A(e,t){return e.zoomLevel!==t.zoomLevel||e.zoomMode!==t.zoomMode||e.layoutMode!==t.layoutMode||e.scrollMode!==t.scrollMode||e.scrollPosition!==t.scrollPosition||e.currentPageIndex!==t.currentPageIndex||e.viewportRect!==t.viewportRect||e.pageSizes!==t.pageSizes||e.pagesRotation!==t.pagesRotation||e.viewportPadding!==t.viewportPadding||e.spreadSpacing!==t.spreadSpacing||e.pageSpacing!==t.pageSpacing||e.keepFirstSpreadAsSinglePage!==t.keepFirstSpreadAsSinglePage}function O(e){return[e.zoomLevel,e.zoomMode,e.layoutMode,e.scrollMode,e.scrollPosition,e.currentPageIndex,e.viewportRect,e.pageSizes,e.pagesRotation,e.viewportPadding,e.spreadSpacing,e.pageSpacing,e.keepFirstSpreadAsSinglePage]}function T(e){return e.zoomMode!==c.c.CUSTOM?e.set("zoomLevel",(0,r.X9)(e,e.zoomMode)):e}function I(e){return function(t,n){return t.apply(F(e(),n))}}function F(e,t){let{viewportState:n,scrollElement:o}=e;if(o){const e=new s.E9({x:o.scrollLeft/n.zoomLevel,y:o.scrollTop/n.zoomLevel});n=n.set("scrollPosition",e)}return m(n,t)}},5020:(e,t,n)=>{"use strict";n.d(t,{Lv:()=>l,U1:()=>a,kI:()=>c,n5:()=>s});var o=n(50974),r=n(27515),i=n(82481);function a(e,t){(0,o.kG)(t%90==0,"Only multiples of 90° allowed for rotation."),t=s(t);const n=e.update("pagesRotation",(e=>(e+t)%360));return(0,r.zo)((0,r.fI)(e,n,!0))}function s(e){return(0,o.kG)(e%90==0,"Only multiples of 90° allowed for rotation."),(360+e%360)%360}function l(e){return(360+Math.round(e)%360)%360}function c(e,t,n){switch(n){case 90:return new i.UL({left:e.top,top:Math.max(0,Math.round(t.height-e.right)),height:e.width,width:e.height});case 180:return e.merge({left:Math.max(0,Math.round(t.width-e.right)),top:Math.max(0,Math.round(t.height-e.bottom))});case 270:return new i.UL({left:Math.max(0,Math.round(t.width-e.bottom)),top:e.left,height:e.width,width:e.height});default:return e}}},56956:(e,t,n)=>{"use strict";n.d(t,{DJ:()=>u,TW:()=>h,eb:()=>d,hu:()=>m,k3:()=>c,kN:()=>p,vP:()=>f});var o=n(71693),r=n(27515),i=n(52560),a=n(88804),s=n(47710),l=n(28098);function c(e,t,n){n||(n=new a.E9({x:.5*e.viewportRect.width,y:.1*e.viewportRect.height})),n=n.translate(e.viewportPadding.scale(-1));const o=t/e.zoomLevel-1;let r=0;const s=(0,i.kh)(e),l=t>s;if(l){r=t/Math.max(e.zoomLevel,s)-1}return new a.E9({x:l?e.scrollPosition.x+n.x*r/t:0,y:e.scrollPosition.y+n.y*o/t})}function u(e,t){const n=h(e);return new a.E9({x:Math.max(0,Math.min(t.x,n.x)),y:Math.max(0,Math.min(t.y,n.y))})}function d(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!n&&e.currentPageIndex==t)return e;if(e.scrollMode==s.G.PER_SPREAD||e.scrollMode===s.G.DISABLED)return(0,i.cq)(e.set("currentPageIndex",t),l.c.FIT_TO_VIEWPORT).set("scrollPosition",new a.E9).set("currentPageIndex",t);{const n=(0,o.dF)(e,t),r=(0,o.e8)(e,n),i=h(e).y,a=Math.min(i,r);return e.set("currentPageIndex",t).setIn(["scrollPosition","y"],a)}}function p(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!o&&(0,r.YS)(e,t,n))return e;const i=(0,r.cr)(e,t),a=n.apply(i),s=e.viewportRect.getCenter(),l=a.getCenter().translate(s.scale(-1)),c=e.scrollPosition.translate(l.scale(1/e.zoomLevel));return e.merge({scrollPosition:u(e,c),currentPageIndex:t})}function f(e,t,n){const{viewportRect:o,viewportPadding:r}=e,a=(o.width-2*r.x)/n.width,s=(o.height-2*r.y)/n.height,l=Math.min(a,s);return p((0,i.cq)(e,l),t,n,!0)}function h(e){const t=(0,r.G4)(e),n=t.left/e.zoomLevel+t.width/e.zoomLevel+e.viewportPadding.x/e.zoomLevel-e.viewportRect.width/e.zoomLevel,o=t.top/e.zoomLevel+t.height/e.zoomLevel+e.viewportPadding.y/e.zoomLevel-e.viewportRect.height/e.zoomLevel;return new a.E9({x:Math.max(0,n),y:Math.max(0,o)})}function m(e,t){return(0,o.Y2)(e.set("scrollPosition",t))}},71693:(e,t,n)=>{"use strict";n.d(t,{Ad:()=>h,Of:()=>m,P1:()=>g,Xk:()=>w,Y2:()=>E,dF:()=>v,e8:()=>f,hK:()=>b,kd:()=>y,nw:()=>d,s:()=>S,wU:()=>x,wX:()=>D});var o=n(35369),r=n(67294),i=n(50974),a=n(77973),s=n(27515),l=n(88804),c=n(47710),u=n(91859);function d(e){if(e.layoutMode===a.X.AUTO){return e.viewportRect.width>e.viewportRect.height&&e.viewportRect.width>u.GI?a.X.DOUBLE:a.X.SINGLE}return e.layoutMode}function p(e){const t=y(e);let n=(0,o.aV)();for(let e=0;ew(e,t))).takeUntil(((e,n)=>n>=t)).reduce(((t,n)=>t+n.height+e.spreadSpacing),0)}function h(e){const t=p(e).map((t=>w(e,t))).maxBy((e=>e.width));return t?t.width:0}function m(e){const t=p(e).map((t=>w(e,t))),n=(t.size-1)*e.spreadSpacing;return t.map((e=>e.height)).reduce(((e,t)=>e+t),0)+n}function g(e,t){switch(d(e)){case a.X.SINGLE:return(0,i.kG)(t=e.pageSizes.size)return 0;switch(d(e)){case a.X.SINGLE:return t;case a.X.DOUBLE:{const n=e.keepFirstSpreadAsSinglePage?1:0;return Math.floor((t+n)/2)}default:throw new Error("Unsupported layoutMode")}}function y(e){switch(d(e)){case a.X.SINGLE:return e.pageSizes.size;case a.X.DOUBLE:{if(e.pageSizes.size<=0)return 0;const t=e.keepFirstSpreadAsSinglePage?1:0;return Math.ceil((e.pageSizes.size+t)/2)}default:throw new Error("Unsupported layoutMode")}}function b(e,t){const n=e.pageSizes.get(t);return(0,i.kG)(n,"No such page size"),90===e.pagesRotation||270===e.pagesRotation?new l.$u({width:n.height,height:n.width}):n}function w(e,t){const n=g(e,t);if(1===n.length)return b(e,n[0]);{let t=0,o=0;for(const r of n){const{width:n,height:i}=b(e,r);t+=n+(0!==r?e.pageSpacing:0),i>o&&(o=i)}return new l.$u({width:t,height:o})}}function S(e){let{width:t}=e;return t<=u.y$?"width-xs":t<=u.Fg?"width-sm":t<=u.GI?"width-md":t<=u.Qq?"width-lg":"width-xl"}function E(e){let t=e.currentPageIndex,n=v(e,e.currentPageIndex);if(e.scrollMode===c.G.CONTINUOUS){const t=[0];let o=0;for(let n=0;nt1){const r=e.scrollPosition.x*e.zoomLevel-e.viewportPadding.x+e.viewportRect.width/2,i=o[1],a=(0,s._4)((0,s.vs)((0,s.DB)(l.sl.IDENTITY,e,i,n),e,n),e);t=(new l.E9).apply(a).x{const t=e.current;return()=>t.clear()})),e.current}(),c=r.useCallback((e=>{a.current.contains(t)&&(e?(l.clear(),l.set((()=>{i(t)}),P)):i(t))}),[t,l,i]);r.useEffect((()=>{l.clear(),a.current=a.current.filter((e=>D(e,t))),c(!1)}),[...(0,s.oI)(e),t,l,c]);return[n,r.useCallback((e=>{a.current=a.current.add(e),c(!0)}),[c])]}function D(e,t){return e>=t-u.J8&&e<=t+u.J8}},52560:(e,t,n)=>{"use strict";n.d(t,{Mq:()=>h,Sm:()=>p,X9:()=>g,Yo:()=>d,cq:()=>v,hT:()=>y,kh:()=>f,vw:()=>m});var o=n(71693),r=n(91859),i=n(56956),a=n(47710),s=n(28098),l=n(97413);let c=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY;function d(e){const t=Math.min(f(e),h(e),e.minDefaultZoomLevel,c);return c>t&&(c=t),t}function p(e){const t=Math.max(f(e),h(e),e.maxDefaultZoomLevel,u);return ui.height?Math.min(t,n):n;return Math.min(a,r.zh)}(e);case s.c.FIT_TO_VIEWPORT:return m(e);case s.c.FIT_TO_WIDTH:return f(e);default:return(0,l.k)("number"==typeof t,"Unknown zoom mode"),t}}function v(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=g(e,t);const a="number"==typeof t?s.c.CUSTOM:t,l=d(e),c=p(e);if(r>=c)if(n.unbounded){const e=b((r-c)/25);r=c*(1+.5*e)}else r=c;else if(r<=l)if(n.unbounded){const e=b(4*(r-l));r=l*(1+.25*e)}else r=l;let u=(0,i.k3)(e,r,n.zoomCenter);return u=(0,i.DJ)(e.set("zoomLevel",r),u),(0,o.Y2)(e.withMutations((e=>e.set("zoomLevel",r).set("scrollPosition",u).set("zoomMode",a))))}function y(e){const{zoomLevel:t}=e,n=d(e);return t>p(e)||t{"use strict";n.d(t,{$Z:()=>g,DI:()=>d,MX:()=>h,n:()=>u,w5:()=>p});var o=n(35369),r=n(50974),i=n(34710),a=n(4054),s=n(23661),l=n.n(s),c=n(16126);const u=2,d=2,p=[1,2,3,4,6,8,9,10,12,14,16,18,20,25,30,35,40,45,50,55,60,70,80,90,100,110,120,130,144],f=p.slice(0,Math.floor(p.length/4));function h(e,t,n,a,s,c,h){if(s&&e&&10===e.charCodeAt(e.length-1)&&(e+="\n"),"auto"!==a)return a||Math.max(4,Math.min(.7*n,12));let g,v;if(h){const e=window.getComputedStyle(h);g=e.getPropertyValue("font-family"),s||(v=e.getPropertyValue("line-height"))}if(s){const a=n-2*u,s=(0,o.aV)([e]),p=m(f,(e=>{const n=function(e){let{valueString:t,fontSize:n,fontFamily:o="inherit",availableWidth:a,element:s}=e;const c=new i.f(document,t,{fontSize:`${n}px`,width:`${a}px`,wordBreak:"break-word",whiteSpace:"pre-wrap",fontFamily:o,lineHeight:`${n}px`,margin:"0",padding:"0",border:"none",textAlign:(null==s?void 0:s.style.textAlign)||"initial"},l().widget,s&&s.parentNode),u=c.measure().first();(0,r.kG)(u);const d=u.height;return c.remove(),d}({valueString:s,fontSize:e,fontFamily:g,availableWidth:t-2*d,element:h});let o=u;const p=a-e;return p-2*u<0&&(o=p>0?p/2:0),n+2*o+2*c>a?0:1}));return p}{const a=(0,o.aV)([e]),s=m(p,(e=>{const o=function(e){let{valueString:t,fontSize:n,fontFamily:o="inherit",lineHeight:a="inherit",element:s}=e;const c=new i.f(document,t,{fontSize:`${n}px`,fontFamily:o,lineHeight:a},l().widget,s&&s.parentNode),u=c.measure().first();(0,r.kG)(u);const d=u.width;return c.remove(),d}({valueString:a,fontSize:e,fontFamily:g,lineHeight:v,element:h});return o>t||e>n?0:1}));return s}}function m(e,t){let n=0,o=e.length-1,r=0,i=e[0];for(;n<=o;)r=Math.floor((n+o)/2),i=e[r],t(i)?n=r+1:o=r-1;return t(i)||(i=e[Math.max(0,r-1)]),i}function g(e,t){let n,o,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;try{return n=(0,a.Aw)(),o=new i.f(document,t,(0,c.i2)(e,r,!1)),!(0,a.f)(o.wrapper)}finally{o&&o.remove(),n&&n.remove()}}},94184:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t{"use strict";n.d(t,{Z:()=>c});var o=n(67294);function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var s=function(e){function t(e){var n,o;return function(e,n){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),(n=!(o=r(t).call(this,e))||"object"!=typeof o&&"function"!=typeof o?a(this):o).onKeyPress=n.onKeyPress.bind(a(n)),n}var n;return function(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}}),t&&i(e,t)}(t,o.Component),(n=[{key:"onKeyPress",value:function(e){var t=this.props,n=t.onClick,o=t.onKeyPress;switch(e.key){case" ":case"Spacebar":e.preventDefault(),n&&o||o?o(e):n&&n(e);break;case"Enter":if(o&&(o(e),e.isDefaultPrevented()))return;n&&n(e)}}},{key:"render",value:function(){var e=this.props,t=e.is,n=void 0===t?"span":t,r=e.innerRef,i=e.onClick,a=e.disabled,s=e.tabIndex,l=void 0===s?0:s,c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["is","innerRef","onClick","disabled","tabIndex","onKeyPress"]);return o.createElement(n,Object.assign({tabIndex:a?void 0:l,role:"button",onKeyPress:a?void 0:this.onKeyPress,onClick:a?void 0:i,"aria-disabled":a?"true":void 0,ref:r},c))}}])&&function(e,t){for(var n=0;n{var o=n(60614),r=n(66330),i=TypeError;e.exports=function(e){if(o(e))return e;throw i(r(e)+" is not a function")}},39483:(e,t,n)=>{var o=n(4411),r=n(66330),i=TypeError;e.exports=function(e){if(o(e))return e;throw i(r(e)+" is not a constructor")}},96077:(e,t,n)=>{var o=n(60614),r=String,i=TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw i("Can't set "+r(e)+" as a prototype")}},51223:(e,t,n)=>{var o=n(5112),r=n(70030),i=n(3070).f,a=o("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},31530:(e,t,n)=>{"use strict";var o=n(28710).charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},25787:(e,t,n)=>{var o=n(47976),r=TypeError;e.exports=function(e,t){if(o(t,e))return e;throw r("Incorrect invocation")}},19670:(e,t,n)=>{var o=n(70111),r=String,i=TypeError;e.exports=function(e){if(o(e))return e;throw i(r(e)+" is not an object")}},23013:e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7556:(e,t,n)=>{var o=n(47293);e.exports=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},90260:(e,t,n)=>{"use strict";var o,r,i,a=n(23013),s=n(19781),l=n(17854),c=n(60614),u=n(70111),d=n(92597),p=n(70648),f=n(66330),h=n(68880),m=n(98052),g=n(3070).f,v=n(47976),y=n(79518),b=n(27674),w=n(5112),S=n(69711),E=n(29909),P=E.enforce,x=E.get,D=l.Int8Array,C=D&&D.prototype,k=l.Uint8ClampedArray,A=k&&k.prototype,O=D&&y(D),T=C&&y(C),I=Object.prototype,F=l.TypeError,M=w("toStringTag"),_=S("TYPED_ARRAY_TAG"),R="TypedArrayConstructor",N=a&&!!b&&"Opera"!==p(l.opera),L=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},j={BigInt64Array:8,BigUint64Array:8},z=function(e){var t=y(e);if(u(t)){var n=x(t);return n&&d(n,R)?n.TypedArrayConstructor:z(t)}},K=function(e){if(!u(e))return!1;var t=p(e);return d(B,t)||d(j,t)};for(o in B)(i=(r=l[o])&&r.prototype)?P(i).TypedArrayConstructor=r:N=!1;for(o in j)(i=(r=l[o])&&r.prototype)&&(P(i).TypedArrayConstructor=r);if((!N||!c(O)||O===Function.prototype)&&(O=function(){throw F("Incorrect invocation")},N))for(o in B)l[o]&&b(l[o],O);if((!N||!T||T===I)&&(T=O.prototype,N))for(o in B)l[o]&&b(l[o].prototype,T);if(N&&y(A)!==T&&b(A,T),s&&!d(T,M))for(o in L=!0,g(T,M,{get:function(){return u(this)?this[_]:void 0}}),B)l[o]&&h(l[o],_,o);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:L&&_,aTypedArray:function(e){if(K(e))return e;throw F("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||v(O,e)))return e;throw F(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,o){if(s){if(n)for(var r in B){var i=l[r];if(i&&d(i.prototype,e))try{delete i.prototype[e]}catch(n){try{i.prototype[e]=t}catch(e){}}}T[e]&&!n||m(T,e,n?t:N&&C[e]||t,o)}},exportTypedArrayStaticMethod:function(e,t,n){var o,r;if(s){if(b){if(n)for(o in B)if((r=l[o])&&d(r,e))try{delete r[e]}catch(e){}if(O[e]&&!n)return;try{return m(O,e,n?t:N&&O[e]||t)}catch(e){}}for(o in B)!(r=l[o])||r[e]&&!n||m(r,e,t)}},getTypedArrayConstructor:z,isView:function(e){if(!u(e))return!1;var t=p(e);return"DataView"===t||d(B,t)||d(j,t)},isTypedArray:K,TypedArray:O,TypedArrayPrototype:T}},21285:(e,t,n)=>{"use strict";var o=n(47908),r=n(51400),i=n(26244);e.exports=function(e){for(var t=o(this),n=i(t),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);c>s;)t[s++]=e;return t}},48457:(e,t,n)=>{"use strict";var o=n(49974),r=n(46916),i=n(47908),a=n(53411),s=n(97659),l=n(4411),c=n(26244),u=n(86135),d=n(18554),p=n(71246),f=Array;e.exports=function(e){var t=i(e),n=l(this),h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m;g&&(m=o(m,h>2?arguments[2]:void 0));var v,y,b,w,S,E,P=p(t),x=0;if(!P||this===f&&s(P))for(v=c(t),y=n?new this(v):f(v);v>x;x++)E=g?m(t[x],x):t[x],u(y,x,E);else for(S=(w=d(t,P)).next,y=n?new this:[];!(b=r(S,w)).done;x++)E=g?a(w,m,[b.value,x],!0):b.value,u(y,x,E);return y.length=x,y}},41318:(e,t,n)=>{var o=n(45656),r=n(51400),i=n(26244),a=function(e){return function(t,n,a){var s,l=o(t),c=i(l),u=r(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},42092:(e,t,n)=>{var o=n(49974),r=n(1702),i=n(68361),a=n(47908),s=n(26244),l=n(65417),c=r([].push),u=function(e){var t=1==e,n=2==e,r=3==e,u=4==e,d=6==e,p=7==e,f=5==e||d;return function(h,m,g,v){for(var y,b,w=a(h),S=i(w),E=o(m,g),P=s(S),x=0,D=v||l,C=t?D(h,P):n||p?D(h,0):void 0;P>x;x++)if((f||x in S)&&(b=E(y=S[x],x,w),e))if(t)C[x]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return x;case 2:c(C,y)}else switch(e){case 4:return!1;case 7:c(C,y)}return d?-1:r||u?u:C}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},9341:(e,t,n)=>{"use strict";var o=n(47293);e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){return 1},1)}))}},41589:(e,t,n)=>{var o=n(51400),r=n(26244),i=n(86135),a=Array,s=Math.max;e.exports=function(e,t,n){for(var l=r(e),c=o(t,l),u=o(void 0===n?l:n,l),d=a(s(u-c,0)),p=0;c{var o=n(1702);e.exports=o([].slice)},94362:(e,t,n)=>{var o=n(41589),r=Math.floor,i=function(e,t){var n=e.length,l=r(n/2);return n<8?a(e,t):s(e,i(o(e,0,l),t),i(o(e,l),t),t)},a=function(e,t){for(var n,o,r=e.length,i=1;i0;)e[o]=e[--o];o!==i++&&(e[o]=n)}return e},s=function(e,t,n,o){for(var r=t.length,i=n.length,a=0,s=0;a{var o=n(43157),r=n(4411),i=n(70111),a=n(5112)("species"),s=Array;e.exports=function(e){var t;return o(e)&&(t=e.constructor,(r(t)&&(t===s||o(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},65417:(e,t,n)=>{var o=n(77475);e.exports=function(e,t){return new(o(e))(0===t?0:t)}},53411:(e,t,n)=>{var o=n(19670),r=n(99212);e.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(t){r(e,"throw",t)}}},17072:(e,t,n)=>{var o=n(5112)("iterator"),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},84326:(e,t,n)=>{var o=n(1702),r=o({}.toString),i=o("".slice);e.exports=function(e){return i(r(e),8,-1)}},70648:(e,t,n)=>{var o=n(51694),r=n(60614),i=n(84326),a=n(5112)("toStringTag"),s=Object,l="Arguments"==i(function(){return arguments}());e.exports=o?i:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:l?i(t):"Object"==(o=i(t))&&r(t.callee)?"Arguments":o}},29320:(e,t,n)=>{"use strict";var o=n(1702),r=n(89190),i=n(62423).getWeakData,a=n(25787),s=n(19670),l=n(68554),c=n(70111),u=n(20408),d=n(42092),p=n(92597),f=n(29909),h=f.set,m=f.getterFor,g=d.find,v=d.findIndex,y=o([].splice),b=0,w=function(e){return e.frozen||(e.frozen=new S)},S=function(){this.entries=[]},E=function(e,t){return g(e.entries,(function(e){return e[0]===t}))};S.prototype={get:function(e){var t=E(this,e);if(t)return t[1]},has:function(e){return!!E(this,e)},set:function(e,t){var n=E(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var d=e((function(e,r){a(e,f),h(e,{type:t,id:b++,frozen:void 0}),l(r)||u(r,e[o],{that:e,AS_ENTRIES:n})})),f=d.prototype,g=m(t),v=function(e,t,n){var o=g(e),r=i(s(t),!0);return!0===r?w(o).set(t,n):r[o.id]=n,e};return r(f,{delete:function(e){var t=g(this);if(!c(e))return!1;var n=i(e);return!0===n?w(t).delete(e):n&&p(n,t.id)&&delete n[t.id]},has:function(e){var t=g(this);if(!c(e))return!1;var n=i(e);return!0===n?w(t).has(e):n&&p(n,t.id)}}),r(f,n?{get:function(e){var t=g(this);if(c(e)){var n=i(e);return!0===n?w(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),d}}},77710:(e,t,n)=>{"use strict";var o=n(82109),r=n(17854),i=n(1702),a=n(54705),s=n(98052),l=n(62423),c=n(20408),u=n(25787),d=n(60614),p=n(68554),f=n(70111),h=n(47293),m=n(17072),g=n(58003),v=n(79587);e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),w=y?"set":"add",S=r[e],E=S&&S.prototype,P=S,x={},D=function(e){var t=i(E[e]);s(E,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!f(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return b&&!f(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!d(S)||!(b||E.forEach&&!h((function(){(new S).entries().next()})))))P=n.getConstructor(t,e,y,w),l.enable();else if(a(e,!0)){var C=new P,k=C[w](b?{}:-0,1)!=C,A=h((function(){C.has(1)})),O=m((function(e){new S(e)})),T=!b&&h((function(){for(var e=new S,t=5;t--;)e[w](t,t);return!e.has(-0)}));O||((P=t((function(e,t){u(e,E);var n=v(new S,e,P);return p(t)||c(t,n[w],{that:n,AS_ENTRIES:y}),n}))).prototype=E,E.constructor=P),(A||T)&&(D("delete"),D("has"),y&&D("get")),(T||k)&&D(w),b&&E.clear&&delete E.clear}return x[e]=P,o({global:!0,constructor:!0,forced:P!=S},x),g(P,e),b||n.setStrong(P,e,y),P}},99920:(e,t,n)=>{var o=n(92597),r=n(53887),i=n(31236),a=n(3070);e.exports=function(e,t,n){for(var s=r(t),l=a.f,c=i.f,u=0;u{var o=n(5112)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(e){}}return!1}},49920:(e,t,n)=>{var o=n(47293);e.exports=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},76178:e=>{e.exports=function(e,t){return{value:e,done:t}}},68880:(e,t,n)=>{var o=n(19781),r=n(3070),i=n(79114);e.exports=o?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},79114:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},86135:(e,t,n)=>{"use strict";var o=n(34948),r=n(3070),i=n(79114);e.exports=function(e,t,n){var a=o(t);a in e?r.f(e,a,i(0,n)):e[a]=n}},47045:(e,t,n)=>{var o=n(56339),r=n(3070);e.exports=function(e,t,n){return n.get&&o(n.get,t,{getter:!0}),n.set&&o(n.set,t,{setter:!0}),r.f(e,t,n)}},98052:(e,t,n)=>{var o=n(60614),r=n(3070),i=n(56339),a=n(13072);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(o(n)&&i(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},89190:(e,t,n)=>{var o=n(98052);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},13072:(e,t,n)=>{var o=n(17854),r=Object.defineProperty;e.exports=function(e,t){try{r(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}},85117:(e,t,n)=>{"use strict";var o=n(66330),r=TypeError;e.exports=function(e,t){if(!delete e[t])throw r("Cannot delete property "+o(t)+" of "+o(e))}},19781:(e,t,n)=>{var o=n(47293);e.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:e=>{var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},80317:(e,t,n)=>{var o=n(17854),r=n(70111),i=o.document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},7207:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},48324:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},98509:(e,t,n)=>{var o=n(80317)("span").classList,r=o&&o.constructor&&o.constructor.prototype;e.exports=r===Object.prototype?void 0:r},68886:(e,t,n)=>{var o=n(88113).match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},7871:(e,t,n)=>{var o=n(83823),r=n(35268);e.exports=!o&&!r&&"object"==typeof window&&"object"==typeof document},89363:e=>{e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},83823:e=>{e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},30256:(e,t,n)=>{var o=n(88113);e.exports=/MSIE|Trident/.test(o)},71528:(e,t,n)=>{var o=n(88113),r=n(17854);e.exports=/ipad|iphone|ipod/i.test(o)&&void 0!==r.Pebble},6833:(e,t,n)=>{var o=n(88113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(o)},35268:(e,t,n)=>{var o=n(84326),r=n(17854);e.exports="process"==o(r.process)},71036:(e,t,n)=>{var o=n(88113);e.exports=/web0s(?!.*chrome)/i.test(o)},88113:(e,t,n)=>{var o=n(35005);e.exports=o("navigator","userAgent")||""},7392:(e,t,n)=>{var o,r,i=n(17854),a=n(88113),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(r=(o=u.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!r&&a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(r=+o[1]),e.exports=r},98008:(e,t,n)=>{var o=n(88113).match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},80748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},82109:(e,t,n)=>{var o=n(17854),r=n(31236).f,i=n(68880),a=n(98052),s=n(13072),l=n(99920),c=n(54705);e.exports=function(e,t){var n,u,d,p,f,h=e.target,m=e.global,g=e.stat;if(n=m?o:g?o[h]||s(h,{}):(o[h]||{}).prototype)for(u in t){if(p=t[u],d=e.dontCallGetSet?(f=r(n,u))&&f.value:n[u],!c(m?u:h+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),a(n,u,p,e)}}},47293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},27007:(e,t,n)=>{"use strict";n(74916);var o=n(21470),r=n(98052),i=n(22261),a=n(47293),s=n(5112),l=n(68880),c=s("species"),u=RegExp.prototype;e.exports=function(e,t,n,d){var p=s(e),f=!a((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),h=f&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!f||!h||n){var m=o(/./[p]),g=t(p,""[e],(function(e,t,n,r,a){var s=o(e),l=t.exec;return l===i||l===u.exec?f&&!a?{done:!0,value:m(t,n,r)}:{done:!0,value:s(n,t,r)}:{done:!1}}));r(String.prototype,e,g[0]),r(u,p,g[1])}d&&l(u[p],"sham",!0)}},6790:(e,t,n)=>{"use strict";var o=n(43157),r=n(26244),i=n(7207),a=n(49974),s=function(e,t,n,l,c,u,d,p){for(var f,h,m=c,g=0,v=!!d&&a(d,p);g0&&o(f)?(h=r(f),m=s(e,t,f,h,m,u-1)-1):(i(m+1),e[m]=f),m++),g++;return m};e.exports=s},76677:(e,t,n)=>{var o=n(47293);e.exports=!o((function(){return Object.isExtensible(Object.preventExtensions({}))}))},22104:(e,t,n)=>{var o=n(34374),r=Function.prototype,i=r.apply,a=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(o?a.bind(i):function(){return a.apply(i,arguments)})},49974:(e,t,n)=>{var o=n(21470),r=n(19662),i=n(34374),a=o(o.bind);e.exports=function(e,t){return r(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},34374:(e,t,n)=>{var o=n(47293);e.exports=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},46916:(e,t,n)=>{var o=n(34374),r=Function.prototype.call;e.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},76530:(e,t,n)=>{var o=n(19781),r=n(92597),i=Function.prototype,a=o&&Object.getOwnPropertyDescriptor,s=r(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!o||o&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},21470:(e,t,n)=>{var o=n(84326),r=n(1702);e.exports=function(e){if("Function"===o(e))return r(e)}},1702:(e,t,n)=>{var o=n(34374),r=Function.prototype,i=r.call,a=o&&r.bind.bind(i,i);e.exports=o?a:function(e){return function(){return i.apply(e,arguments)}}},35005:(e,t,n)=>{var o=n(17854),r=n(60614),i=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(o[e]):o[e]&&o[e][t]}},71246:(e,t,n)=>{var o=n(70648),r=n(58173),i=n(68554),a=n(97497),s=n(5112)("iterator");e.exports=function(e){if(!i(e))return r(e,s)||r(e,"@@iterator")||a[o(e)]}},18554:(e,t,n)=>{var o=n(46916),r=n(19662),i=n(19670),a=n(66330),s=n(71246),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return i(o(n,e));throw l(a(e)+" is not iterable")}},58173:(e,t,n)=>{var o=n(19662),r=n(68554);e.exports=function(e,t){var n=e[t];return r(n)?void 0:o(n)}},10647:(e,t,n)=>{var o=n(1702),r=n(47908),i=Math.floor,a=o("".charAt),s=o("".replace),l=o("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,o,d,p){var f=n+e.length,h=o.length,m=u;return void 0!==d&&(d=r(d),m=c),s(p,m,(function(r,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":c=d[l(s,1,-1)];break;default:var u=+s;if(0===u)return r;if(u>h){var p=i(u/10);return 0===p?r:p<=h?void 0===o[p-1]?a(s,1):o[p-1]+a(s,1):r}c=o[u-1]}return void 0===c?"":c}))}},17854:(e,t,n)=>{var o=function(e){return e&&e.Math==Math&&e};e.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},92597:(e,t,n)=>{var o=n(1702),r=n(47908),i=o({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(r(e),t)}},3501:e=>{e.exports={}},842:(e,t,n)=>{var o=n(17854);e.exports=function(e,t){var n=o.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},60490:(e,t,n)=>{var o=n(35005);e.exports=o("document","documentElement")},64664:(e,t,n)=>{var o=n(19781),r=n(47293),i=n(80317);e.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},68361:(e,t,n)=>{var o=n(1702),r=n(47293),i=n(84326),a=Object,s=o("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},79587:(e,t,n)=>{var o=n(60614),r=n(70111),i=n(27674);e.exports=function(e,t,n){var a,s;return i&&o(a=t.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},42788:(e,t,n)=>{var o=n(1702),r=n(60614),i=n(5465),a=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},62423:(e,t,n)=>{var o=n(82109),r=n(1702),i=n(3501),a=n(70111),s=n(92597),l=n(3070).f,c=n(8006),u=n(1156),d=n(52050),p=n(69711),f=n(76677),h=!1,m=p("meta"),g=0,v=function(e){l(e,m,{value:{objectID:"O"+g++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},h=!0;var e=c.f,t=r([].splice),n={};n[m]=1,e(n).length&&(c.f=function(n){for(var o=e(n),r=0,i=o.length;r{var o,r,i,a=n(94811),s=n(17854),l=n(70111),c=n(68880),u=n(92597),d=n(5465),p=n(6200),f=n(3501),h="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||d.state){var v=d.state||(d.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,o=function(e,t){if(v.has(e))throw m(h);return t.facade=e,v.set(e,t),t},r=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var y=p("state");f[y]=!0,o=function(e,t){if(u(e,y))throw m(h);return t.facade=e,c(e,y,t),t},r=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:o,get:r,has:i,enforce:function(e){return i(e)?r(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},97659:(e,t,n)=>{var o=n(5112),r=n(97497),i=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},43157:(e,t,n)=>{var o=n(84326);e.exports=Array.isArray||function(e){return"Array"==o(e)}},60614:(e,t,n)=>{var o=n(4154),r=o.all;e.exports=o.IS_HTMLDDA?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},4411:(e,t,n)=>{var o=n(1702),r=n(47293),i=n(60614),a=n(70648),s=n(35005),l=n(42788),c=function(){},u=[],d=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,f=o(p.exec),h=!p.exec(c),m=function(e){if(!i(e))return!1;try{return d(c,u,e),!0}catch(e){return!1}},g=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(p,l(e))}catch(e){return!0}};g.sham=!0,e.exports=!d||r((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?g:m},45032:(e,t,n)=>{var o=n(92597);e.exports=function(e){return void 0!==e&&(o(e,"value")||o(e,"writable"))}},54705:(e,t,n)=>{var o=n(47293),r=n(60614),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==u||n!=c&&(r(t)?o(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},68554:e=>{e.exports=function(e){return null==e}},70111:(e,t,n)=>{var o=n(60614),r=n(4154),i=r.all;e.exports=r.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:o(e)||e===i}:function(e){return"object"==typeof e?null!==e:o(e)}},31913:e=>{e.exports=!1},47850:(e,t,n)=>{var o=n(70111),r=n(84326),i=n(5112)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==r(e))}},52190:(e,t,n)=>{var o=n(35005),r=n(60614),i=n(47976),a=n(43307),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return r(t)&&i(t.prototype,s(e))}},20408:(e,t,n)=>{var o=n(49974),r=n(46916),i=n(19670),a=n(66330),s=n(97659),l=n(26244),c=n(47976),u=n(18554),d=n(71246),p=n(99212),f=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,n){var g,v,y,b,w,S,E,P=n&&n.that,x=!(!n||!n.AS_ENTRIES),D=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),A=o(t,P),O=function(e){return g&&p(g,"normal",e),new h(!0,e)},T=function(e){return x?(i(e),k?A(e[0],e[1],O):A(e[0],e[1])):k?A(e,O):A(e)};if(D)g=e.iterator;else if(C)g=e;else{if(!(v=d(e)))throw f(a(e)+" is not iterable");if(s(v)){for(y=0,b=l(e);b>y;y++)if((w=T(e[y]))&&c(m,w))return w;return new h(!1)}g=u(e,v)}for(S=D?e.next:g.next;!(E=r(S,g)).done;){try{w=T(E.value)}catch(e){p(g,"throw",e)}if("object"==typeof w&&w&&c(m,w))return w}return new h(!1)}},99212:(e,t,n)=>{var o=n(46916),r=n(19670),i=n(58173);e.exports=function(e,t,n){var a,s;r(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=o(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return r(a),n}},63061:(e,t,n)=>{"use strict";var o=n(13383).IteratorPrototype,r=n(70030),i=n(79114),a=n(58003),s=n(97497),l=function(){return this};e.exports=function(e,t,n,c){var u=t+" Iterator";return e.prototype=r(o,{next:i(+!c,n)}),a(e,u,!1,!0),s[u]=l,e}},51656:(e,t,n)=>{"use strict";var o=n(82109),r=n(46916),i=n(31913),a=n(76530),s=n(60614),l=n(63061),c=n(79518),u=n(27674),d=n(58003),p=n(68880),f=n(98052),h=n(5112),m=n(97497),g=n(13383),v=a.PROPER,y=a.CONFIGURABLE,b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,S=h("iterator"),E="keys",P="values",x="entries",D=function(){return this};e.exports=function(e,t,n,a,h,g,C){l(n,t,a);var k,A,O,T=function(e){if(e===h&&R)return R;if(!w&&e in M)return M[e];switch(e){case E:case P:case x:return function(){return new n(this,e)}}return function(){return new n(this)}},I=t+" Iterator",F=!1,M=e.prototype,_=M[S]||M["@@iterator"]||h&&M[h],R=!w&&_||T(h),N="Array"==t&&M.entries||_;if(N&&(k=c(N.call(new e)))!==Object.prototype&&k.next&&(i||c(k)===b||(u?u(k,b):s(k[S])||f(k,S,D)),d(k,I,!0,!0),i&&(m[I]=D)),v&&h==P&&_&&_.name!==P&&(!i&&y?p(M,"name",P):(F=!0,R=function(){return r(_,this)})),h)if(A={values:T(P),keys:g?R:T(E),entries:T(x)},C)for(O in A)(w||F||!(O in M))&&f(M,O,A[O]);else o({target:t,proto:!0,forced:w||F},A);return i&&!C||M[S]===R||f(M,S,R,{name:h}),m[t]=R,A}},13383:(e,t,n)=>{"use strict";var o,r,i,a=n(47293),s=n(60614),l=n(70111),c=n(70030),u=n(79518),d=n(98052),p=n(5112),f=n(31913),h=p("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(r=u(u(i)))!==Object.prototype&&(o=r):m=!0),!l(o)||a((function(){var e={};return o[h].call(e)!==e}))?o={}:f&&(o=c(o)),s(o[h])||d(o,h,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:m}},97497:e=>{e.exports={}},26244:(e,t,n)=>{var o=n(17466);e.exports=function(e){return o(e.length)}},56339:(e,t,n)=>{var o=n(47293),r=n(60614),i=n(92597),a=n(19781),s=n(76530).CONFIGURABLE,l=n(42788),c=n(29909),u=c.enforce,d=c.get,p=Object.defineProperty,f=a&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),h=String(String).split("String"),m=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||s&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),f&&n&&i(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=u(e);return i(o,"source")||(o.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=m((function(){return r(this)&&d(this).source||l(this)}),"toString")},74758:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var o=+e;return(o>0?n:t)(o)}},95948:(e,t,n)=>{var o,r,i,a,s,l,c,u,d=n(17854),p=n(49974),f=n(31236).f,h=n(20261).set,m=n(6833),g=n(71528),v=n(71036),y=n(35268),b=d.MutationObserver||d.WebKitMutationObserver,w=d.document,S=d.process,E=d.Promise,P=f(d,"queueMicrotask"),x=P&&P.value;x||(o=function(){var e,t;for(y&&(e=S.domain)&&e.exit();r;){t=r.fn,r=r.next;try{t()}catch(e){throw r?a():i=void 0,e}}i=void 0,e&&e.enter()},m||y||v||!b||!w?!g&&E&&E.resolve?((c=E.resolve(void 0)).constructor=E,u=p(c.then,c),a=function(){u(o)}):y?a=function(){S.nextTick(o)}:(h=p(h,d),a=function(){h(o)}):(s=!0,l=w.createTextNode(""),new b(o).observe(l,{characterData:!0}),a=function(){l.data=s=!s})),e.exports=x||function(e){var t={fn:e,next:void 0};i&&(i.next=t),r||(r=t,a()),i=t}},78523:(e,t,n)=>{"use strict";var o=n(19662),r=TypeError,i=function(e){var t,n;this.promise=new e((function(e,o){if(void 0!==t||void 0!==n)throw r("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)};e.exports.f=function(e){return new i(e)}},3929:(e,t,n)=>{var o=n(47850),r=TypeError;e.exports=function(e){if(o(e))throw r("The method doesn't accept regular expressions");return e}},2814:(e,t,n)=>{var o=n(17854),r=n(47293),i=n(1702),a=n(41340),s=n(53111).trim,l=n(81361),c=i("".charAt),u=o.parseFloat,d=o.Symbol,p=d&&d.iterator,f=1/u(l+"-0")!=-1/0||p&&!r((function(){u(Object(p))}));e.exports=f?function(e){var t=s(a(e)),n=u(t);return 0===n&&"-"==c(t,0)?-0:n}:u},83009:(e,t,n)=>{var o=n(17854),r=n(47293),i=n(1702),a=n(41340),s=n(53111).trim,l=n(81361),c=o.parseInt,u=o.Symbol,d=u&&u.iterator,p=/^[+-]?0x/i,f=i(p.exec),h=8!==c(l+"08")||22!==c(l+"0x16")||d&&!r((function(){c(Object(d))}));e.exports=h?function(e,t){var n=s(a(e));return c(n,t>>>0||(f(p,n)?16:10))}:c},21574:(e,t,n)=>{"use strict";var o=n(19781),r=n(1702),i=n(46916),a=n(47293),s=n(81956),l=n(25181),c=n(55296),u=n(47908),d=n(68361),p=Object.assign,f=Object.defineProperty,h=r([].concat);e.exports=!p||a((function(){if(o&&1!==p({b:1},p(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=p({},e)[n]||s(p({},t)).join("")!=r}))?function(e,t){for(var n=u(e),r=arguments.length,a=1,p=l.f,f=c.f;r>a;)for(var m,g=d(arguments[a++]),v=p?h(s(g),p(g)):s(g),y=v.length,b=0;y>b;)m=v[b++],o&&!i(f,g,m)||(n[m]=g[m]);return n}:p},70030:(e,t,n)=>{var o,r=n(19670),i=n(36048),a=n(80748),s=n(3501),l=n(60490),c=n(80317),u=n(6200),d=u("IE_PROTO"),p=function(){},f=function(e){return"