etiquetas.js 1.0.0-alpha.14 → 1.0.0-alpha.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -89,7 +89,6 @@ var __asyncGenerator = (__this, __arguments, generator) => {
89
89
  var __forAwait = (obj, it2, method) => (it2 = obj[__knownSymbol("asyncIterator")]) ? it2.call(obj) : (obj = obj[__knownSymbol("iterator")](), it2 = {}, method = (key, fn) => (fn = obj[key]) && (it2[key] = (arg) => new Promise((yes, no, done) => (arg = fn.call(obj, arg), done = arg.done, Promise.resolve(arg.value).then((value) => yes({ value, done }), no)))), method("next"), method("return"), it2);
90
90
  var _Util_static, getExtremumOnCurve_fn, getExtremum_fn, _regex, _toolbar, _colorPicker, _editor, _buttons, _altText, _comment, _signatureDescriptionButton, _l10nRemove, _EditorToolbar_static, pointerDown_fn, _EditorToolbar_instances, focusIn_fn, focusOut_fn, addListenersToElement_fn, divider_get, _buttons2, _toolbar2, _uiManager, _FloatingToolbar_instances, render_fn, getLastPoint_fn, makeButton_fn, _id, _baseId, _id2, _cache, _ImageManager_instances, get_fn, _commands, _locked, _maxSize, _position, _KeyboardManager_instances, serialize_fn, _abortController, _activeEditor, _allEditableAnnotations, _allEditors, _allLayers, _altTextManager, _annotationStorage, _changedExistingAnnotations, _commandManager, _commentManager, _copyPasteAC, _currentDrawingSession, _currentPageIndex, _deletedAnnotationsElementIds, _draggingEditors, _editorTypes, _editorsToRescale, _enableHighlightFloatingButton, _enableUpdatedAddImage, _enableNewAltTextWhenAddingImage, _filterFactory, _focusMainContainerTimeoutId, _focusManagerAC, _highlightColors, _highlightWhenShiftUp, _floatingToolbar, _idManager, _isEnabled, _isPointerDown, _isWaiting, _keyboardManagerAC, _lastActiveElement, _mainHighlightColorPicker, _missingCanvases, _mlManager, _mode, _selectedEditors, _selectedTextNode, _signatureManager, _pageColors, _showAllStates, _pdfDocument, _previousStates, _translation, _translationTimeoutId, _container, _viewer, _viewerAlert, _updateModeCapability, _AnnotationEditorUIManager_instances, getAnchorElementForSelection_fn, getLayerForTextLayer_fn, displayFloatingToolbar_fn, selectionChange_fn, onSelectEnd_fn, addSelectionListener_fn, addFocusManager_fn, removeFocusManager_fn, addKeyboardManager_fn, removeKeyboardManager_fn, addCopyPasteListeners_fn, removeCopyPasteListeners_fn, addDragAndDropListeners_fn, dispatchUpdateStates_fn, dispatchUpdateUI_fn, enableAll_fn, disableAll_fn, addEditorToLayer_fn, lastSelectedEditor_get, isEmpty_fn, selectEditors_fn, _altText2, _altTextDecorative, _altTextButton, _altTextButtonLabel, _altTextTooltip, _altTextTooltipTimeout, _altTextWasFromKeyBoard, _badge, _editor2, _guessedText, _textWithDisclaimer, _useNewAltTextFlow, _l10nNewButton, _AltText_instances, label_get, setState_fn, _commentButton, _commentWasFromKeyBoard, _editor3, _initialText, _text, _date, _deleted, _container2, _isPinching, _isPinchingStopped, _isPinchingDisabled, _onPinchStart, _onPinching, _onPinchEnd, _pointerDownAC, _signal, _touchInfo, _touchManagerAC, _touchMoveAC, _TouchManager_instances, onTouchStart_fn, onTouchMove_fn, onTouchEnd_fn, _accessibilityData, _allResizerDivs, _altText3, _comment2, _disabled, _dragPointerId, _dragPointerType, _keepAspectRatio, _resizersDiv, _lastPointerCoords, _savedDimensions, _focusAC, _focusedResizerName, _hasBeenClicked, _initialRect, _isEditing, _isInEditMode, _isResizerEnabledForKeyboard, _moveInDOMTimeout, _prevDragX, _prevDragY, _telemetryTimeouts, _touchManager, _isDraggable, _zIndex, _AnnotationEditor_instances, translate_fn, _AnnotationEditor_static, rotatePoint_fn, getRotationMatrix_fn, createResizers_fn, resizerPointerdown_fn, resize_fn, addResizeToUndoStack_fn, resizerPointermove_fn, touchPinchStartCallback_fn, touchPinchCallback_fn, touchPinchEndCallback_fn, selectOnPointerEvent_fn, setUpDragSession_fn, addFocusListeners_fn, resizerKeydown_fn, resizerBlur_fn, resizerFocus_fn, setResizerTabIndex_fn, stopResizing_fn, _modified, _modifiedIds, _storage, _AnnotationStorage_instances, setModified_fn, _serializable, _systemFonts, _listeners, _deferred, _messageAC, _MessageHandler_instances, onMessage_fn, createStreamSink_fn, processStreamMessage_fn, deleteStreamController_fn, _enableHWA, _baseUrl, __cache, __defs, _docId, _document, __hcmCache, _id3, _DOMFilterFactory_instances, cache_get, hcmCache_get, defs_get, createTables_fn, createUrl_fn, addLuminosityConversion_fn, addGrayConversion_fn, createFilter_fn, appendFeFunc_fn, addTransferMapConversion_fn, addTransferMapAlphaConversion_fn, getRGB_fn, _simple, _incremental, _namedDependencies, _savesStack, _markedContentStack, _baseTransformStack, _clipBox, _pendingBBox, _pendingBBoxIdx, _pendingDependencies, _operations, _fontBBoxTrustworthy, _canvasWidth, _canvasHeight, _dependencyTracker, _opIdx, _nestingLevel, _outerDependencies, _savesLevel, _CanvasGraphics_instances, restoreInitialState_fn, drawFilter_fn, getScaledPath_fn, _port, _src, _map, _data, _isDisplay, _isPrint, _userSet, _visible, _cachedGetHash, _groups, _initialHash, _order, _OptionalContentConfig_instances, evaluateVisibilityExpression_fn, _objs, _PDFObjects_instances, ensureObj_fn, _g, _capability, _container3, _disableProcessItems, _fontInspectorEnabled, _lang, _layoutTextParams, _pageHeight, _pageWidth, _reader, _rootContainer, _rotation, _scale, _styleCache, _textContentItemsStr, _textContentSource, _textDivs, _textDivProperties, _transform, _ascentCache, _canvasContexts, _canvasCtxFonts, _minFontSize, _pendingTextLayers, _TextLayer_instances, processItems_fn, appendText_fn, layout_fn, _TextLayer_static, getCtx_fn, ensureCtxFont_fn, ensureMinFontSizeComputed_fn, getAscent_fn, _docId2, _capability2, _progressiveDoneListeners, _progressiveReadListeners, _progressListeners, _rangeListeners, _pendingCleanup, _PDFPageProxy_instances, tryCleanup_fn, _capability3, _messageHandler, _port2, _webWorker, _fakeWorkerId, _isWorkerDisabled, _workerPorts, _PDFWorker_instances, resolve_fn, initializeFromPort_fn, initialize_fn, setupFakeWorker_fn, _PDFWorker_static, mainThreadWorkerMessageHandler_get, _methodPromises, _pageCache, _pagePromises, _pageRefCache, _passwordCapability, _WorkerTransport_instances, cacheSimpleMethod_fn, _internalRenderTask, _rAF, _canvasInUse, _button, _buttonSwatch, _defaultColor, _dropdown, _dropdownWasFromKeyboard, _isMainColorPicker, _editor4, _eventBus, _openDropdownAC, _uiManager2, _l10nColor, _ColorPicker_instances, getDropdownRoot_fn, colorSelect_fn, keyDown_fn, openDropdown_fn, pointerDown_fn2, isDropdownVisible_get, _input, _editor5, _uiManager3, _l10nColor2, _updates, _hasBorder, _popupElement, _AnnotationElement_instances, changeLightness_fn, setRectEdited_fn, _LinkAnnotationElement_instances, setInternalLink_fn, bindAttachment_fn, bindSetOCGState_fn, _boundKeyDown, _boundHide, _boundShow, _boundToggle, _color, _container4, _contentsObj, _dateObj, _elements, _eventBus2, _parent, _parentRect, _pinned, _popup, _popupAbortController, _position2, _commentButton2, _commentButtonPosition, _commentButtonColor, _rect, _richText, _titleObj, _updates2, _wasVisible, _PopupElement_instances, addEventListeners_fn, setCommentButtonPosition_fn, renderCommentButton_fn, html_get, fontSize_get, fontColor_get, makePopupContent_fn, keyDown_fn2, setPosition_fn, toggle_fn, show_fn, hide_fn, _line, _square, _circle, _polyline, _polylinesGroupElement, _polylines, _InkAnnotationElement_instances, getTransform_fn, _trigger, _FileAttachmentAnnotationElement_instances, download_fn, _accessibilityManager, _annotationCanvasMap, _editableAnnotations, _structTreeLayer, _AnnotationLayer_instances, appendElement_fn, setAnnotationCanvasMap_fn, _color2, _content, _editorDivId, _editModeAC, _fontSize, _FreeTextEditor_instances, updateFontSize_fn, updateColor_fn, extractText_fn, setEditorDimensions_fn, _FreeTextEditor_static, getNodeContent_fn, setContent_fn, serializeContent_fn, deserializeContent_fn, hasElementChanged_fn, _box, _bottom, _innerMargin, _isLTR, _top, _last, _lastX, _lastY, _min, _min_dist, _scaleFactor, _thickness, _points, _MIN_DIST, _MIN_DIFF, _MIN, _FreeDrawOutliner_instances, getLastCoords_fn, toSVGPathTwoPoints_fn, toSVGPathStart_fn, toSVGPathEnd_fn, getOutlineTwoPoints_fn, getOutlineStart_fn, getOutlineEnd_fn, _box2, _bbox, _innerMargin2, _isLTR2, _points2, _scaleFactor2, _outline, _FreeDrawOutline_instances, computeMinMax_fn, _box3, _lastPoint, _verticalEdges, _intervals, _HighlightOutliner_instances, getOutlines_fn, binarySearch_fn, insert_fn, remove_fn, breakEdge_fn, _box4, _outlines, _anchorNode, _anchorOffset, _boxes, _clipPathId, _colorPicker2, _focusOutlines, _focusNode, _focusOffset, _highlightDiv, _highlightOutlines, _id4, _isFreeHighlight, _lastPoint2, _opacity, _outlineId, _text2, _thickness2, _methodOfCreation, _HighlightEditor_instances, createOutlines_fn, createFreeOutlines_fn, updateColor_fn2, updateThickness_fn, changeThickness_fn, cleanDrawLayer_fn, addToDrawLayer_fn, _HighlightEditor_static, rotateBbox_fn, keydown_fn, setCaret_fn, getRotation_fn, serializeBoxes_fn, serializeOutlines_fn, highlightMove_fn, endHighlight_fn, hasElementChanged_fn2, _svgProperties, _drawOutlines, _mustBeCommitted, _currentDraw, _currentDrawingAC, _currentDrawingOptions, _currentPointerId, _currentPointerType, _currentPointerIds, _currentMoveTimestamp, _DrawingEditor_instances, createDrawOutlines_fn, createDrawing_fn, cleanDrawLayer_fn2, addToDrawLayer_fn2, convertToParentSpace_fn, convertToDrawSpace_fn, updateBbox_fn, rotateBox_fn, _last2, _line2, _lines, _rotation2, _thickness3, _points3, _lastSVGPath, _lastIndex, _outlines2, _parentWidth, _parentHeight, _InkDrawOutliner_instances, normalizePoint_fn, _bbox2, _currentRotation, _innerMargin3, _lines2, _parentWidth2, _parentHeight2, _parentScale, _rotation3, _thickness4, _InkDrawOutline_instances, getMarginComponents_fn, getBBoxWithNoMargin_fn, computeBbox_fn, updateThickness_fn2, _InkEditor_instances, hasElementChanged_fn3, _PARAMETERS, _SignatureExtractor_static, neighborIndexToId_fn, _neighborIdToIndex, clockwiseNonZero_fn, counterClockwiseNonZero_fn, findContours_fn, douglasPeuckerHelper_fn, douglasPeucker_fn, bilateralFilter_fn, getHistogram_fn, toUint8_fn, guessThreshold_fn, getGrayPixels_fn, _isExtracted, _description, _signatureData, _signatureUUID, _bitmap, _bitmapId, _bitmapPromise, _bitmapUrl, _bitmapFile, _bitmapFileName, _canvas3, _missingCanvas, _resizeTimeoutId, _isSvg, _hasBeenAddedInUndoStack, _StampEditor_instances, getBitmapFetched_fn, getBitmapDone_fn, getBitmap_fn, createCanvas_fn, scaleBitmap_fn, drawBitmap_fn, serializeBitmap_fn, hasElementChanged_fn4, _accessibilityManager2, _allowClick, _annotationLayer, _clickAC, _editorFocusTimeoutId, _editors, _hadPointerDown, _isDisabling, _isEnabling, _drawingAC, _focusedElement, _textLayer, _textSelectionAC, _textLayerDblClickAC, _lastPointerDownTimestamp, _uiManager4, _editorTypes2, _AnnotationEditorLayer_instances, textLayerPointerDown_fn, currentEditorType_get, createNewEditor_fn, getCenterPoint_fn, cleanup_fn, _parent2, _mapping, _toUpdate, _id5, _DrawLayer_static, setBox_fn, _DrawLayer_instances, createSVG_fn, createClipPath_fn, updateProperties_fn;
91
91
  import axios from "axios";
92
- import require$$0 from "react";
93
92
  const API_BASE_URL = "https://db33.dev.dinabox.net/api";
94
93
  const apiClient = axios.create({
95
94
  baseURL: API_BASE_URL,
@@ -11530,7 +11529,7 @@ function(t2) {
11530
11529
  */
11531
11530
  function(t2) {
11532
11531
  function e2() {
11533
- return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-CjFLf4zU.js")).catch(function(t3) {
11532
+ return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-DhuHIaTr.js")).catch(function(t3) {
11534
11533
  return Promise.reject(new Error("Could not load canvg: " + t3));
11535
11534
  }).then(function(t3) {
11536
11535
  return t3.default ? t3.default : t3;
@@ -12992,7 +12991,7 @@ lodash.exports;
12992
12991
  var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
12993
12992
  var coreJsData = context["__core-js_shared__"];
12994
12993
  var funcToString = funcProto.toString;
12995
- var hasOwnProperty = objectProto.hasOwnProperty;
12994
+ var hasOwnProperty2 = objectProto.hasOwnProperty;
12996
12995
  var idCounter = 0;
12997
12996
  var maskSrcKey = function() {
12998
12997
  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
@@ -13002,7 +13001,7 @@ lodash.exports;
13002
13001
  var objectCtorString = funcToString.call(Object2);
13003
13002
  var oldDash = root._;
13004
13003
  var reIsNative = RegExp2(
13005
- "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
13004
+ "^" + funcToString.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
13006
13005
  );
13007
13006
  var Buffer2 = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined$1;
13008
13007
  var defineProperty = function() {
@@ -13025,7 +13024,7 @@ lodash.exports;
13025
13024
  if (value instanceof LodashWrapper) {
13026
13025
  return value;
13027
13026
  }
13028
- if (hasOwnProperty.call(value, "__wrapped__")) {
13027
+ if (hasOwnProperty2.call(value, "__wrapped__")) {
13029
13028
  return wrapperClone(value);
13030
13029
  }
13031
13030
  }
@@ -13186,11 +13185,11 @@ lodash.exports;
13186
13185
  var result2 = data[key];
13187
13186
  return result2 === HASH_UNDEFINED ? undefined$1 : result2;
13188
13187
  }
13189
- return hasOwnProperty.call(data, key) ? data[key] : undefined$1;
13188
+ return hasOwnProperty2.call(data, key) ? data[key] : undefined$1;
13190
13189
  }
13191
13190
  function hashHas(key) {
13192
13191
  var data = this.__data__;
13193
- return nativeCreate ? data[key] !== undefined$1 : hasOwnProperty.call(data, key);
13192
+ return nativeCreate ? data[key] !== undefined$1 : hasOwnProperty2.call(data, key);
13194
13193
  }
13195
13194
  function hashSet(key, value) {
13196
13195
  var data = this.__data__;
@@ -13347,7 +13346,7 @@ lodash.exports;
13347
13346
  function arrayLikeKeys(value, inherited) {
13348
13347
  var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length, String2) : [], length = result2.length;
13349
13348
  for (var key in value) {
13350
- if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
13349
+ if ((inherited || hasOwnProperty2.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
13351
13350
  (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
13352
13351
  isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
13353
13352
  isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
@@ -13374,7 +13373,7 @@ lodash.exports;
13374
13373
  }
13375
13374
  function assignValue(object2, key, value) {
13376
13375
  var objValue = object2[key];
13377
- if (!(hasOwnProperty.call(object2, key) && eq(objValue, value)) || value === undefined$1 && !(key in object2)) {
13376
+ if (!(hasOwnProperty2.call(object2, key) && eq(objValue, value)) || value === undefined$1 && !(key in object2)) {
13378
13377
  baseAssignValue(object2, key, value);
13379
13378
  }
13380
13379
  }
@@ -13649,7 +13648,7 @@ lodash.exports;
13649
13648
  return value > other;
13650
13649
  }
13651
13650
  function baseHas(object2, key) {
13652
- return object2 != null && hasOwnProperty.call(object2, key);
13651
+ return object2 != null && hasOwnProperty2.call(object2, key);
13653
13652
  }
13654
13653
  function baseHasIn(object2, key) {
13655
13654
  return object2 != null && key in Object2(object2);
@@ -13736,7 +13735,7 @@ lodash.exports;
13736
13735
  return objIsArr || isTypedArray(object2) ? equalArrays(object2, other, bitmask, customizer, equalFunc, stack) : equalByTag(object2, other, objTag, bitmask, customizer, equalFunc, stack);
13737
13736
  }
13738
13737
  if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
13739
- var objIsWrapped = objIsObj && hasOwnProperty.call(object2, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
13738
+ var objIsWrapped = objIsObj && hasOwnProperty2.call(object2, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty2.call(other, "__wrapped__");
13740
13739
  if (objIsWrapped || othIsWrapped) {
13741
13740
  var objUnwrapped = objIsWrapped ? object2.value() : object2, othUnwrapped = othIsWrapped ? other.value() : other;
13742
13741
  stack || (stack = new Stack());
@@ -13817,7 +13816,7 @@ lodash.exports;
13817
13816
  }
13818
13817
  var result2 = [];
13819
13818
  for (var key in Object2(object2)) {
13820
- if (hasOwnProperty.call(object2, key) && key != "constructor") {
13819
+ if (hasOwnProperty2.call(object2, key) && key != "constructor") {
13821
13820
  result2.push(key);
13822
13821
  }
13823
13822
  }
@@ -13829,7 +13828,7 @@ lodash.exports;
13829
13828
  }
13830
13829
  var isProto = isPrototype(object2), result2 = [];
13831
13830
  for (var key in object2) {
13832
- if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object2, key)))) {
13831
+ if (!(key == "constructor" && (isProto || !hasOwnProperty2.call(object2, key)))) {
13833
13832
  result2.push(key);
13834
13833
  }
13835
13834
  }
@@ -14772,7 +14771,7 @@ lodash.exports;
14772
14771
  return func(number);
14773
14772
  };
14774
14773
  }
14775
- var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop : function(values3) {
14774
+ var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop2 : function(values3) {
14776
14775
  return new Set2(values3);
14777
14776
  };
14778
14777
  function createToPairs(keysFunc) {
@@ -14842,7 +14841,7 @@ lodash.exports;
14842
14841
  return setWrapToString(setter(result2, newData), func, bitmask);
14843
14842
  }
14844
14843
  function customDefaultsAssignIn(objValue, srcValue, key, object2) {
14845
- if (objValue === undefined$1 || eq(objValue, objectProto[key]) && !hasOwnProperty.call(object2, key)) {
14844
+ if (objValue === undefined$1 || eq(objValue, objectProto[key]) && !hasOwnProperty2.call(object2, key)) {
14846
14845
  return srcValue;
14847
14846
  }
14848
14847
  return objValue;
@@ -14955,7 +14954,7 @@ lodash.exports;
14955
14954
  var index = objLength;
14956
14955
  while (index--) {
14957
14956
  var key = objProps[index];
14958
- if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
14957
+ if (!(isPartial ? key in other : hasOwnProperty2.call(other, key))) {
14959
14958
  return false;
14960
14959
  }
14961
14960
  }
@@ -14999,11 +14998,11 @@ lodash.exports;
14999
14998
  function getAllKeysIn(object2) {
15000
14999
  return baseGetAllKeys(object2, keysIn, getSymbolsIn);
15001
15000
  }
15002
- var getData = !metaMap ? noop : function(func) {
15001
+ var getData = !metaMap ? noop2 : function(func) {
15003
15002
  return metaMap.get(func);
15004
15003
  };
15005
15004
  function getFuncName(func) {
15006
- var result2 = func.name + "", array = realNames[result2], length = hasOwnProperty.call(realNames, result2) ? array.length : 0;
15005
+ var result2 = func.name + "", array = realNames[result2], length = hasOwnProperty2.call(realNames, result2) ? array.length : 0;
15007
15006
  while (length--) {
15008
15007
  var data = array[length], otherFunc = data.func;
15009
15008
  if (otherFunc == null || otherFunc == func) {
@@ -15013,7 +15012,7 @@ lodash.exports;
15013
15012
  return result2;
15014
15013
  }
15015
15014
  function getHolder(func) {
15016
- var object2 = hasOwnProperty.call(lodash2, "placeholder") ? lodash2 : func;
15015
+ var object2 = hasOwnProperty2.call(lodash2, "placeholder") ? lodash2 : func;
15017
15016
  return object2.placeholder;
15018
15017
  }
15019
15018
  function getIteratee() {
@@ -15038,7 +15037,7 @@ lodash.exports;
15038
15037
  return baseIsNative(value) ? value : undefined$1;
15039
15038
  }
15040
15039
  function getRawTag(value) {
15041
- var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
15040
+ var isOwn = hasOwnProperty2.call(value, symToStringTag), tag = value[symToStringTag];
15042
15041
  try {
15043
15042
  value[symToStringTag] = undefined$1;
15044
15043
  var unmasked = true;
@@ -15135,7 +15134,7 @@ lodash.exports;
15135
15134
  }
15136
15135
  function initCloneArray(array) {
15137
15136
  var length = array.length, result2 = new array.constructor(length);
15138
- if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
15137
+ if (length && typeof array[0] == "string" && hasOwnProperty2.call(array, "index")) {
15139
15138
  result2.index = array.index;
15140
15139
  result2.input = array.input;
15141
15140
  }
@@ -15906,7 +15905,7 @@ lodash.exports;
15906
15905
  return baseWrapperValue(this.__wrapped__, this.__actions__);
15907
15906
  }
15908
15907
  var countBy = createAggregator(function(result2, value, key) {
15909
- if (hasOwnProperty.call(result2, key)) {
15908
+ if (hasOwnProperty2.call(result2, key)) {
15910
15909
  ++result2[key];
15911
15910
  } else {
15912
15911
  baseAssignValue(result2, key, 1);
@@ -15944,7 +15943,7 @@ lodash.exports;
15944
15943
  return func(collection, getIteratee(iteratee2, 3));
15945
15944
  }
15946
15945
  var groupBy2 = createAggregator(function(result2, value, key) {
15947
- if (hasOwnProperty.call(result2, key)) {
15946
+ if (hasOwnProperty2.call(result2, key)) {
15948
15947
  result2[key].push(value);
15949
15948
  } else {
15950
15949
  baseAssignValue(result2, key, [value]);
@@ -16341,7 +16340,7 @@ lodash.exports;
16341
16340
  var isArguments = baseIsArguments(/* @__PURE__ */ function() {
16342
16341
  return arguments;
16343
16342
  }()) ? baseIsArguments : function(value) {
16344
- return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
16343
+ return isObjectLike(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
16345
16344
  };
16346
16345
  var isArray = Array2.isArray;
16347
16346
  var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
@@ -16374,7 +16373,7 @@ lodash.exports;
16374
16373
  return !baseKeys(value).length;
16375
16374
  }
16376
16375
  for (var key in value) {
16377
- if (hasOwnProperty.call(value, key)) {
16376
+ if (hasOwnProperty2.call(value, key)) {
16378
16377
  return false;
16379
16378
  }
16380
16379
  }
@@ -16452,7 +16451,7 @@ lodash.exports;
16452
16451
  if (proto === null) {
16453
16452
  return true;
16454
16453
  }
16455
- var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
16454
+ var Ctor = hasOwnProperty2.call(proto, "constructor") && proto.constructor;
16456
16455
  return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
16457
16456
  }
16458
16457
  var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
@@ -16544,7 +16543,7 @@ lodash.exports;
16544
16543
  return;
16545
16544
  }
16546
16545
  for (var key in source) {
16547
- if (hasOwnProperty.call(source, key)) {
16546
+ if (hasOwnProperty2.call(source, key)) {
16548
16547
  assignValue(object2, key, source[key]);
16549
16548
  }
16550
16549
  }
@@ -16579,7 +16578,7 @@ lodash.exports;
16579
16578
  while (++propsIndex < propsLength) {
16580
16579
  var key = props[propsIndex];
16581
16580
  var value = object2[key];
16582
- if (value === undefined$1 || eq(value, objectProto[key]) && !hasOwnProperty.call(object2, key)) {
16581
+ if (value === undefined$1 || eq(value, objectProto[key]) && !hasOwnProperty2.call(object2, key)) {
16583
16582
  object2[key] = source[key];
16584
16583
  }
16585
16584
  }
@@ -16634,7 +16633,7 @@ lodash.exports;
16634
16633
  if (value != null && typeof value.toString != "function") {
16635
16634
  value = nativeObjectToString.call(value);
16636
16635
  }
16637
- if (hasOwnProperty.call(result2, value)) {
16636
+ if (hasOwnProperty2.call(result2, value)) {
16638
16637
  result2[value].push(key);
16639
16638
  } else {
16640
16639
  result2[value] = [key];
@@ -16949,7 +16948,7 @@ lodash.exports;
16949
16948
  (options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
16950
16949
  "g"
16951
16950
  );
16952
- var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
16951
+ var sourceURL = "//# sourceURL=" + (hasOwnProperty2.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
16953
16952
  string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
16954
16953
  interpolateValue || (interpolateValue = esTemplateValue);
16955
16954
  source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
@@ -16968,7 +16967,7 @@ lodash.exports;
16968
16967
  return match;
16969
16968
  });
16970
16969
  source += "';\n";
16971
- var variable = hasOwnProperty.call(options, "variable") && options.variable;
16970
+ var variable = hasOwnProperty2.call(options, "variable") && options.variable;
16972
16971
  if (!variable) {
16973
16972
  source = "with (obj) {\n" + source + "\n}\n";
16974
16973
  } else if (reForbiddenIdentifierChars.test(variable)) {
@@ -17187,7 +17186,7 @@ lodash.exports;
17187
17186
  }
17188
17187
  return this;
17189
17188
  }
17190
- function noop() {
17189
+ function noop2() {
17191
17190
  }
17192
17191
  function nthArg(n2) {
17193
17192
  n2 = toInteger(n2);
@@ -17542,7 +17541,7 @@ lodash.exports;
17542
17541
  lodash2.multiply = multiply;
17543
17542
  lodash2.nth = nth;
17544
17543
  lodash2.noConflict = noConflict;
17545
- lodash2.noop = noop;
17544
+ lodash2.noop = noop2;
17546
17545
  lodash2.now = now;
17547
17546
  lodash2.pad = pad;
17548
17547
  lodash2.padEnd = padEnd;
@@ -17595,7 +17594,7 @@ lodash.exports;
17595
17594
  mixin(lodash2, function() {
17596
17595
  var source = {};
17597
17596
  baseForOwn(lodash2, function(func, methodName) {
17598
- if (!hasOwnProperty.call(lodash2.prototype, methodName)) {
17597
+ if (!hasOwnProperty2.call(lodash2.prototype, methodName)) {
17599
17598
  source[methodName] = func;
17600
17599
  }
17601
17600
  });
@@ -17735,7 +17734,7 @@ lodash.exports;
17735
17734
  var lodashFunc = lodash2[methodName];
17736
17735
  if (lodashFunc) {
17737
17736
  var key = lodashFunc.name + "";
17738
- if (!hasOwnProperty.call(realNames, key)) {
17737
+ if (!hasOwnProperty2.call(realNames, key)) {
17739
17738
  realNames[key] = [];
17740
17739
  }
17741
17740
  realNames[key].push({ "name": methodName, "func": lodashFunc });
@@ -26537,7 +26536,7 @@ function validateInput(global2, document2, current) {
26537
26536
  }
26538
26537
  }
26539
26538
  }
26540
- function assign$1(target, s2, s1, s22, s3) {
26539
+ function assign$2(target, s2, s1, s22, s3) {
26541
26540
  if (target == null) {
26542
26541
  throw new TypeError("Cannot convert undefined or null to object");
26543
26542
  }
@@ -26559,7 +26558,7 @@ function parseInput(d2, current) {
26559
26558
  var document2 = doc.getDocumentOptions();
26560
26559
  var global2 = doc.getGlobalOptions();
26561
26560
  validateInput(global2, document2, current);
26562
- var options = assign$1({}, global2, document2, current);
26561
+ var options = assign$2({}, global2, document2, current);
26563
26562
  var win;
26564
26563
  if (typeof window !== "undefined") {
26565
26564
  win = window;
@@ -26584,13 +26583,13 @@ function parseStyles(gInput, dInput, cInput) {
26584
26583
  var global_1 = gInput[prop2];
26585
26584
  var document_1 = dInput[prop2];
26586
26585
  var current = cInput[prop2];
26587
- styleOptions.columnStyles = assign$1({}, global_1, document_1, current);
26586
+ styleOptions.columnStyles = assign$2({}, global_1, document_1, current);
26588
26587
  } else {
26589
26588
  var allOptions = [gInput, dInput, cInput];
26590
26589
  var styles = allOptions.map(function(opts) {
26591
26590
  return opts[prop2] || {};
26592
26591
  });
26593
- styleOptions[prop2] = assign$1({}, styles[0], styles[1], styles[2]);
26592
+ styleOptions[prop2] = assign$2({}, styles[0], styles[1], styles[2]);
26594
26593
  }
26595
26594
  };
26596
26595
  for (var _i = 0, _a2 = Object.keys(styleOptions); _i < _a2.length; _i++) {
@@ -27352,13 +27351,13 @@ function cellStyles(sectionName, column, rowIndex, themeName, styles, scaleFacto
27352
27351
  } else if (sectionName === "foot") {
27353
27352
  sectionStyles = styles.footStyles;
27354
27353
  }
27355
- var otherStyles = assign$1({}, theme.table, theme[sectionName], styles.styles, sectionStyles);
27354
+ var otherStyles = assign$2({}, theme.table, theme[sectionName], styles.styles, sectionStyles);
27356
27355
  var columnStyles = styles.columnStyles[column.dataKey] || styles.columnStyles[column.index] || {};
27357
27356
  var colStyles = sectionName === "body" ? columnStyles : {};
27358
- var rowStyles = sectionName === "body" && rowIndex % 2 === 0 ? assign$1({}, theme.alternateRow, styles.alternateRowStyles) : {};
27357
+ var rowStyles = sectionName === "body" && rowIndex % 2 === 0 ? assign$2({}, theme.alternateRow, styles.alternateRowStyles) : {};
27359
27358
  var defaultStyle = defaultStyles(scaleFactor);
27360
- var themeStyles = assign$1({}, defaultStyle, otherStyles, rowStyles, colStyles);
27361
- return assign$1(themeStyles, cellInputStyles);
27359
+ var themeStyles = assign$2({}, defaultStyle, otherStyles, rowStyles, colStyles);
27360
+ return assign$2(themeStyles, cellInputStyles);
27362
27361
  }
27363
27362
  function getColumnsCanFitInPage(doc, table, config) {
27364
27363
  var _a2;
@@ -27437,7 +27436,7 @@ function drawTable(jsPDFDoc, table) {
27437
27436
  cursor.y = margin.top;
27438
27437
  }
27439
27438
  table.callWillDrawPageHooks(doc, cursor);
27440
- var startPos = assign$1({}, cursor);
27439
+ var startPos = assign$2({}, cursor);
27441
27440
  table.startPageNumber = doc.pageNumber();
27442
27441
  if (settings.horizontalPageBreak) {
27443
27442
  printTableWithHorizontalPageBreak(doc, table, startPos, cursor);
@@ -27570,7 +27569,7 @@ function modifyRowToFit(row, remainingPageSpace, table, doc) {
27570
27569
  cell.text = [cell.text];
27571
27570
  }
27572
27571
  var remainderCell = new Cell(cell.raw, cell.styles, cell.section);
27573
- remainderCell = assign$1(remainderCell, cell);
27572
+ remainderCell = assign$2(remainderCell, cell);
27574
27573
  remainderCell.text = [];
27575
27574
  var remainingLineCount = getRemainingLineCount(cell, remainingPageSpace, doc);
27576
27575
  if (cell.text.length > remainingLineCount) {
@@ -29451,7 +29450,446 @@ const createStoreImpl = (createState) => {
29451
29450
  return api;
29452
29451
  };
29453
29452
  const createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
29454
- const ReactExports = {};
29453
+ var react = { exports: {} };
29454
+ var react_production = {};
29455
+ /**
29456
+ * @license React
29457
+ * react.production.js
29458
+ *
29459
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
29460
+ *
29461
+ * This source code is licensed under the MIT license found in the
29462
+ * LICENSE file in the root directory of this source tree.
29463
+ */
29464
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
29465
+ function getIteratorFn(maybeIterable) {
29466
+ if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
29467
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
29468
+ return "function" === typeof maybeIterable ? maybeIterable : null;
29469
+ }
29470
+ var ReactNoopUpdateQueue = {
29471
+ isMounted: function() {
29472
+ return false;
29473
+ },
29474
+ enqueueForceUpdate: function() {
29475
+ },
29476
+ enqueueReplaceState: function() {
29477
+ },
29478
+ enqueueSetState: function() {
29479
+ }
29480
+ }, assign$1 = Object.assign, emptyObject = {};
29481
+ function Component(props, context, updater) {
29482
+ this.props = props;
29483
+ this.context = context;
29484
+ this.refs = emptyObject;
29485
+ this.updater = updater || ReactNoopUpdateQueue;
29486
+ }
29487
+ Component.prototype.isReactComponent = {};
29488
+ Component.prototype.setState = function(partialState, callback) {
29489
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
29490
+ throw Error(
29491
+ "takes an object of state variables to update or a function which returns an object of state variables."
29492
+ );
29493
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
29494
+ };
29495
+ Component.prototype.forceUpdate = function(callback) {
29496
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
29497
+ };
29498
+ function ComponentDummy() {
29499
+ }
29500
+ ComponentDummy.prototype = Component.prototype;
29501
+ function PureComponent(props, context, updater) {
29502
+ this.props = props;
29503
+ this.context = context;
29504
+ this.refs = emptyObject;
29505
+ this.updater = updater || ReactNoopUpdateQueue;
29506
+ }
29507
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
29508
+ pureComponentPrototype.constructor = PureComponent;
29509
+ assign$1(pureComponentPrototype, Component.prototype);
29510
+ pureComponentPrototype.isPureReactComponent = true;
29511
+ var isArrayImpl = Array.isArray, ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null }, hasOwnProperty = Object.prototype.hasOwnProperty;
29512
+ function ReactElement(type, key, self2, source, owner, props) {
29513
+ self2 = props.ref;
29514
+ return {
29515
+ $$typeof: REACT_ELEMENT_TYPE,
29516
+ type,
29517
+ key,
29518
+ ref: void 0 !== self2 ? self2 : null,
29519
+ props
29520
+ };
29521
+ }
29522
+ function cloneAndReplaceKey(oldElement, newKey) {
29523
+ return ReactElement(
29524
+ oldElement.type,
29525
+ newKey,
29526
+ void 0,
29527
+ void 0,
29528
+ void 0,
29529
+ oldElement.props
29530
+ );
29531
+ }
29532
+ function isValidElement(object2) {
29533
+ return "object" === typeof object2 && null !== object2 && object2.$$typeof === REACT_ELEMENT_TYPE;
29534
+ }
29535
+ function escape$1(key) {
29536
+ var escaperLookup = { "=": "=0", ":": "=2" };
29537
+ return "$" + key.replace(/[=:]/g, function(match) {
29538
+ return escaperLookup[match];
29539
+ });
29540
+ }
29541
+ var userProvidedKeyEscapeRegex = /\/+/g;
29542
+ function getElementKey(element, index) {
29543
+ return "object" === typeof element && null !== element && null != element.key ? escape$1("" + element.key) : index.toString(36);
29544
+ }
29545
+ function noop$1() {
29546
+ }
29547
+ function resolveThenable(thenable) {
29548
+ switch (thenable.status) {
29549
+ case "fulfilled":
29550
+ return thenable.value;
29551
+ case "rejected":
29552
+ throw thenable.reason;
29553
+ default:
29554
+ switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
29555
+ function(fulfilledValue) {
29556
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
29557
+ },
29558
+ function(error) {
29559
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
29560
+ }
29561
+ )), thenable.status) {
29562
+ case "fulfilled":
29563
+ return thenable.value;
29564
+ case "rejected":
29565
+ throw thenable.reason;
29566
+ }
29567
+ }
29568
+ throw thenable;
29569
+ }
29570
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
29571
+ var type = typeof children;
29572
+ if ("undefined" === type || "boolean" === type) children = null;
29573
+ var invokeCallback = false;
29574
+ if (null === children) invokeCallback = true;
29575
+ else
29576
+ switch (type) {
29577
+ case "bigint":
29578
+ case "string":
29579
+ case "number":
29580
+ invokeCallback = true;
29581
+ break;
29582
+ case "object":
29583
+ switch (children.$$typeof) {
29584
+ case REACT_ELEMENT_TYPE:
29585
+ case REACT_PORTAL_TYPE:
29586
+ invokeCallback = true;
29587
+ break;
29588
+ case REACT_LAZY_TYPE:
29589
+ return invokeCallback = children._init, mapIntoArray(
29590
+ invokeCallback(children._payload),
29591
+ array,
29592
+ escapedPrefix,
29593
+ nameSoFar,
29594
+ callback
29595
+ );
29596
+ }
29597
+ }
29598
+ if (invokeCallback)
29599
+ return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c2) {
29600
+ return c2;
29601
+ })) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
29602
+ callback,
29603
+ escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
29604
+ userProvidedKeyEscapeRegex,
29605
+ "$&/"
29606
+ ) + "/") + invokeCallback
29607
+ )), array.push(callback)), 1;
29608
+ invokeCallback = 0;
29609
+ var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
29610
+ if (isArrayImpl(children))
29611
+ for (var i = 0; i < children.length; i++)
29612
+ nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
29613
+ nameSoFar,
29614
+ array,
29615
+ escapedPrefix,
29616
+ type,
29617
+ callback
29618
+ );
29619
+ else if (i = getIteratorFn(children), "function" === typeof i)
29620
+ for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
29621
+ nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
29622
+ nameSoFar,
29623
+ array,
29624
+ escapedPrefix,
29625
+ type,
29626
+ callback
29627
+ );
29628
+ else if ("object" === type) {
29629
+ if ("function" === typeof children.then)
29630
+ return mapIntoArray(
29631
+ resolveThenable(children),
29632
+ array,
29633
+ escapedPrefix,
29634
+ nameSoFar,
29635
+ callback
29636
+ );
29637
+ array = String(children);
29638
+ throw Error(
29639
+ "Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
29640
+ );
29641
+ }
29642
+ return invokeCallback;
29643
+ }
29644
+ function mapChildren(children, func, context) {
29645
+ if (null == children) return children;
29646
+ var result = [], count = 0;
29647
+ mapIntoArray(children, result, "", "", function(child) {
29648
+ return func.call(context, child, count++);
29649
+ });
29650
+ return result;
29651
+ }
29652
+ function lazyInitializer(payload) {
29653
+ if (-1 === payload._status) {
29654
+ var ctor = payload._result;
29655
+ ctor = ctor();
29656
+ ctor.then(
29657
+ function(moduleObject) {
29658
+ if (0 === payload._status || -1 === payload._status)
29659
+ payload._status = 1, payload._result = moduleObject;
29660
+ },
29661
+ function(error) {
29662
+ if (0 === payload._status || -1 === payload._status)
29663
+ payload._status = 2, payload._result = error;
29664
+ }
29665
+ );
29666
+ -1 === payload._status && (payload._status = 0, payload._result = ctor);
29667
+ }
29668
+ if (1 === payload._status) return payload._result.default;
29669
+ throw payload._result;
29670
+ }
29671
+ var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
29672
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
29673
+ var event = new window.ErrorEvent("error", {
29674
+ bubbles: true,
29675
+ cancelable: true,
29676
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
29677
+ error
29678
+ });
29679
+ if (!window.dispatchEvent(event)) return;
29680
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
29681
+ process.emit("uncaughtException", error);
29682
+ return;
29683
+ }
29684
+ console.error(error);
29685
+ };
29686
+ function noop() {
29687
+ }
29688
+ react_production.Children = {
29689
+ map: mapChildren,
29690
+ forEach: function(children, forEachFunc, forEachContext) {
29691
+ mapChildren(
29692
+ children,
29693
+ function() {
29694
+ forEachFunc.apply(this, arguments);
29695
+ },
29696
+ forEachContext
29697
+ );
29698
+ },
29699
+ count: function(children) {
29700
+ var n2 = 0;
29701
+ mapChildren(children, function() {
29702
+ n2++;
29703
+ });
29704
+ return n2;
29705
+ },
29706
+ toArray: function(children) {
29707
+ return mapChildren(children, function(child) {
29708
+ return child;
29709
+ }) || [];
29710
+ },
29711
+ only: function(children) {
29712
+ if (!isValidElement(children))
29713
+ throw Error(
29714
+ "React.Children.only expected to receive a single React element child."
29715
+ );
29716
+ return children;
29717
+ }
29718
+ };
29719
+ react_production.Component = Component;
29720
+ react_production.Fragment = REACT_FRAGMENT_TYPE;
29721
+ react_production.Profiler = REACT_PROFILER_TYPE;
29722
+ react_production.PureComponent = PureComponent;
29723
+ react_production.StrictMode = REACT_STRICT_MODE_TYPE;
29724
+ react_production.Suspense = REACT_SUSPENSE_TYPE;
29725
+ react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
29726
+ react_production.__COMPILER_RUNTIME = {
29727
+ __proto__: null,
29728
+ c: function(size) {
29729
+ return ReactSharedInternals.H.useMemoCache(size);
29730
+ }
29731
+ };
29732
+ react_production.cache = function(fn) {
29733
+ return function() {
29734
+ return fn.apply(null, arguments);
29735
+ };
29736
+ };
29737
+ react_production.cloneElement = function(element, config, children) {
29738
+ if (null === element || void 0 === element)
29739
+ throw Error(
29740
+ "The argument must be a React element, but you passed " + element + "."
29741
+ );
29742
+ var props = assign$1({}, element.props), key = element.key, owner = void 0;
29743
+ if (null != config)
29744
+ for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
29745
+ !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
29746
+ var propName = arguments.length - 2;
29747
+ if (1 === propName) props.children = children;
29748
+ else if (1 < propName) {
29749
+ for (var childArray = Array(propName), i = 0; i < propName; i++)
29750
+ childArray[i] = arguments[i + 2];
29751
+ props.children = childArray;
29752
+ }
29753
+ return ReactElement(element.type, key, void 0, void 0, owner, props);
29754
+ };
29755
+ react_production.createContext = function(defaultValue) {
29756
+ defaultValue = {
29757
+ $$typeof: REACT_CONTEXT_TYPE,
29758
+ _currentValue: defaultValue,
29759
+ _currentValue2: defaultValue,
29760
+ _threadCount: 0,
29761
+ Provider: null,
29762
+ Consumer: null
29763
+ };
29764
+ defaultValue.Provider = defaultValue;
29765
+ defaultValue.Consumer = {
29766
+ $$typeof: REACT_CONSUMER_TYPE,
29767
+ _context: defaultValue
29768
+ };
29769
+ return defaultValue;
29770
+ };
29771
+ react_production.createElement = function(type, config, children) {
29772
+ var propName, props = {}, key = null;
29773
+ if (null != config)
29774
+ for (propName in void 0 !== config.key && (key = "" + config.key), config)
29775
+ hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
29776
+ var childrenLength = arguments.length - 2;
29777
+ if (1 === childrenLength) props.children = children;
29778
+ else if (1 < childrenLength) {
29779
+ for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
29780
+ childArray[i] = arguments[i + 2];
29781
+ props.children = childArray;
29782
+ }
29783
+ if (type && type.defaultProps)
29784
+ for (propName in childrenLength = type.defaultProps, childrenLength)
29785
+ void 0 === props[propName] && (props[propName] = childrenLength[propName]);
29786
+ return ReactElement(type, key, void 0, void 0, null, props);
29787
+ };
29788
+ react_production.createRef = function() {
29789
+ return { current: null };
29790
+ };
29791
+ react_production.forwardRef = function(render2) {
29792
+ return { $$typeof: REACT_FORWARD_REF_TYPE, render: render2 };
29793
+ };
29794
+ react_production.isValidElement = isValidElement;
29795
+ react_production.lazy = function(ctor) {
29796
+ return {
29797
+ $$typeof: REACT_LAZY_TYPE,
29798
+ _payload: { _status: -1, _result: ctor },
29799
+ _init: lazyInitializer
29800
+ };
29801
+ };
29802
+ react_production.memo = function(type, compare) {
29803
+ return {
29804
+ $$typeof: REACT_MEMO_TYPE,
29805
+ type,
29806
+ compare: void 0 === compare ? null : compare
29807
+ };
29808
+ };
29809
+ react_production.startTransition = function(scope) {
29810
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
29811
+ ReactSharedInternals.T = currentTransition;
29812
+ try {
29813
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
29814
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
29815
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
29816
+ } catch (error) {
29817
+ reportGlobalError(error);
29818
+ } finally {
29819
+ ReactSharedInternals.T = prevTransition;
29820
+ }
29821
+ };
29822
+ react_production.unstable_useCacheRefresh = function() {
29823
+ return ReactSharedInternals.H.useCacheRefresh();
29824
+ };
29825
+ react_production.use = function(usable) {
29826
+ return ReactSharedInternals.H.use(usable);
29827
+ };
29828
+ react_production.useActionState = function(action, initialState2, permalink) {
29829
+ return ReactSharedInternals.H.useActionState(action, initialState2, permalink);
29830
+ };
29831
+ react_production.useCallback = function(callback, deps) {
29832
+ return ReactSharedInternals.H.useCallback(callback, deps);
29833
+ };
29834
+ react_production.useContext = function(Context2) {
29835
+ return ReactSharedInternals.H.useContext(Context2);
29836
+ };
29837
+ react_production.useDebugValue = function() {
29838
+ };
29839
+ react_production.useDeferredValue = function(value, initialValue) {
29840
+ return ReactSharedInternals.H.useDeferredValue(value, initialValue);
29841
+ };
29842
+ react_production.useEffect = function(create2, createDeps, update) {
29843
+ var dispatcher = ReactSharedInternals.H;
29844
+ if ("function" === typeof update)
29845
+ throw Error(
29846
+ "useEffect CRUD overload is not enabled in this build of React."
29847
+ );
29848
+ return dispatcher.useEffect(create2, createDeps);
29849
+ };
29850
+ react_production.useId = function() {
29851
+ return ReactSharedInternals.H.useId();
29852
+ };
29853
+ react_production.useImperativeHandle = function(ref, create2, deps) {
29854
+ return ReactSharedInternals.H.useImperativeHandle(ref, create2, deps);
29855
+ };
29856
+ react_production.useInsertionEffect = function(create2, deps) {
29857
+ return ReactSharedInternals.H.useInsertionEffect(create2, deps);
29858
+ };
29859
+ react_production.useLayoutEffect = function(create2, deps) {
29860
+ return ReactSharedInternals.H.useLayoutEffect(create2, deps);
29861
+ };
29862
+ react_production.useMemo = function(create2, deps) {
29863
+ return ReactSharedInternals.H.useMemo(create2, deps);
29864
+ };
29865
+ react_production.useOptimistic = function(passthrough, reducer2) {
29866
+ return ReactSharedInternals.H.useOptimistic(passthrough, reducer2);
29867
+ };
29868
+ react_production.useReducer = function(reducer2, initialArg, init2) {
29869
+ return ReactSharedInternals.H.useReducer(reducer2, initialArg, init2);
29870
+ };
29871
+ react_production.useRef = function(initialValue) {
29872
+ return ReactSharedInternals.H.useRef(initialValue);
29873
+ };
29874
+ react_production.useState = function(initialState2) {
29875
+ return ReactSharedInternals.H.useState(initialState2);
29876
+ };
29877
+ react_production.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
29878
+ return ReactSharedInternals.H.useSyncExternalStore(
29879
+ subscribe,
29880
+ getSnapshot,
29881
+ getServerSnapshot
29882
+ );
29883
+ };
29884
+ react_production.useTransition = function() {
29885
+ return ReactSharedInternals.H.useTransition();
29886
+ };
29887
+ react_production.version = "19.1.0";
29888
+ {
29889
+ react.exports = react_production;
29890
+ }
29891
+ var reactExports = react.exports;
29892
+ const ReactExports = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
29455
29893
  var withSelector = { exports: {} };
29456
29894
  var withSelector_production = {};
29457
29895
  var shim$2 = { exports: {} };
@@ -29465,7 +29903,7 @@ var useSyncExternalStoreShim_production = {};
29465
29903
  * This source code is licensed under the MIT license found in the
29466
29904
  * LICENSE file in the root directory of this source tree.
29467
29905
  */
29468
- var React$1 = require$$0;
29906
+ var React$1 = reactExports;
29469
29907
  function is$1(x2, y2) {
29470
29908
  return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
29471
29909
  }
@@ -29520,7 +29958,7 @@ var shimExports = shim$2.exports;
29520
29958
  * This source code is licensed under the MIT license found in the
29521
29959
  * LICENSE file in the root directory of this source tree.
29522
29960
  */
29523
- var React = require$$0, shim = shimExports;
29961
+ var React = reactExports, shim = shimExports;
29524
29962
  function is(x2, y2) {
29525
29963
  return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
29526
29964
  }
@@ -58623,6 +59061,43 @@ const downloadPdfFallback = (pdfBuffer, filename = "etiqueta.pdf") => __async(vo
58623
59061
  throw error;
58624
59062
  }
58625
59063
  });
59064
+ const convertPdfFileToArrayBuffer = (pdfFile) => __async(void 0, null, function* () {
59065
+ try {
59066
+ if (!(pdfFile instanceof File)) {
59067
+ throw new Error("O parâmetro deve ser um objeto File válido");
59068
+ }
59069
+ return new Promise((resolve, reject) => {
59070
+ const reader = new FileReader();
59071
+ reader.onload = (event) => {
59072
+ resolve(event.target.result);
59073
+ };
59074
+ reader.onerror = (error) => {
59075
+ console.error("❌ Erro ao ler arquivo PDF:", error);
59076
+ reject(new Error("Falha ao ler o arquivo PDF"));
59077
+ };
59078
+ reader.readAsArrayBuffer(pdfFile);
59079
+ });
59080
+ } catch (error) {
59081
+ console.error("❌ Erro ao converter arquivo PDF:", error);
59082
+ throw error;
59083
+ }
59084
+ });
59085
+ const sendPdfFileToPrinter = (_0, ..._1) => __async(void 0, [_0, ..._1], function* (pdfFile, options = {}) {
59086
+ try {
59087
+ console.log("🖨️ Processando arquivo PDF para impressão...");
59088
+ const pdfArrayBuffer = yield convertPdfFileToArrayBuffer(pdfFile);
59089
+ return yield sendToPrinter$1(pdfArrayBuffer, __spreadProps(__spreadValues({}, options), {
59090
+ filename: options.filename || pdfFile.name || "etiqueta.pdf"
59091
+ }));
59092
+ } catch (error) {
59093
+ console.error("❌ Erro ao processar arquivo PDF:", error);
59094
+ return {
59095
+ success: false,
59096
+ error: error.message,
59097
+ message: "Falha ao processar arquivo PDF para impressão"
59098
+ };
59099
+ }
59100
+ });
58626
59101
  const sendToPrinter$1 = (_0, ..._1) => __async(void 0, [_0, ..._1], function* (pdfBuffer, options = {}) {
58627
59102
  try {
58628
59103
  const {
@@ -59908,7 +60383,7 @@ const EtiquetasJS = __spreadProps(__spreadValues({}, etiquetasAPI), {
59908
60383
  }
59909
60384
  });
59910
60385
  export {
59911
- getAspectRatio as $,
60386
+ makeLamination as $,
59912
60387
  etiquetasAPI as A,
59913
60388
  isBrowser as B,
59914
60389
  isNodeJS$1 as C,
@@ -59922,31 +60397,33 @@ export {
59922
60397
  base64Encode as K,
59923
60398
  LABEL_TYPES as L,
59924
60399
  base64Decode as M,
59925
- processLabelForParts as N,
59926
- convertPdfToImages as O,
59927
- checkPrinterAvailability as P,
59928
- sendImagesToPrinter as Q,
59929
- downloadPdfFallback as R,
59930
- createMiniSheet as S,
59931
- createImage as T,
59932
- createImageFromPart as U,
59933
- drawRect as V,
59934
- setBorder as W,
59935
- getBorderColor as X,
59936
- makeLamination as Y,
59937
- getNode as Z,
60400
+ sendPdfFileToPrinter as N,
60401
+ processLabelForParts as O,
60402
+ convertPdfToImages as P,
60403
+ checkPrinterAvailability as Q,
60404
+ sendImagesToPrinter as R,
60405
+ downloadPdfFallback as S,
60406
+ convertPdfFileToArrayBuffer as T,
60407
+ createMiniSheet as U,
60408
+ createImage as V,
60409
+ createImageFromPart as W,
60410
+ drawRect as X,
60411
+ setBorder as Y,
60412
+ getBorderColor as Z,
59938
60413
  _typeof as _,
59939
60414
  getPartLabels as a,
59940
- DEFAULT_LAMINATION_COLORS as a0,
59941
- stopCreatingLabels as a1,
59942
- initializeBrowserEnvironment as a2,
59943
- getImagesFromUrl as a3,
59944
- getImagesFromUrlToBase64 as a4,
59945
- mmToPx as a5,
59946
- convertSVGTableToAutoTableData as a6,
59947
- generateTableSVG as a7,
59948
- dataTypeList as a8,
59949
- getInputsByCategory as a9,
60415
+ getNode as a0,
60416
+ getAspectRatio as a1,
60417
+ DEFAULT_LAMINATION_COLORS as a2,
60418
+ stopCreatingLabels as a3,
60419
+ initializeBrowserEnvironment as a4,
60420
+ getImagesFromUrl as a5,
60421
+ getImagesFromUrlToBase64 as a6,
60422
+ mmToPx as a7,
60423
+ convertSVGTableToAutoTableData as a8,
60424
+ generateTableSVG as a9,
60425
+ dataTypeList as aa,
60426
+ getInputsByCategory as ab,
59950
60427
  getScrapLabels as b,
59951
60428
  commonjsGlobal as c,
59952
60429
  getThickenedLabels as d,
@@ -59973,4 +60450,4 @@ export {
59973
60450
  sendToPrinter as y,
59974
60451
  validateLabelData as z
59975
60452
  };
59976
- //# sourceMappingURL=index-0gBKtbw4.js.map
60453
+ //# sourceMappingURL=index-DS6c6wBJ.js.map