@unicom-cloud/utils 0.1.46 → 0.1.48
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.
- package/.virtual/_rolldown/runtime.js +1 -1
- package/.vite/manifest.json +19 -48
- package/array/index.js +1 -1
- package/assert/index.js +1 -1
- package/case-name/index.js +1 -1
- package/class-name/index.js +1 -1
- package/clipboard-copy/index.js +1 -1
- package/constant/address.js +1 -1
- package/constant/chineseCharacters.js +1 -1
- package/constant/constellations.js +1 -1
- package/constant/domain.js +1 -1
- package/constant/identity.js +1 -1
- package/constant/index.js +1 -1
- package/constant/keyboardCode.js +1 -1
- package/constant/licensePlate.js +1 -1
- package/constant/name.js +1 -1
- package/constant/platform.js +1 -1
- package/constant/protocol.js +1 -1
- package/constant/string.js +1 -1
- package/constant/ui.js +1 -1
- package/content-disposition/index.js +1 -1
- package/cookie/api.js +1 -1
- package/cookie/assign.js +1 -1
- package/cookie/converter.js +1 -1
- package/cookie/index.js +1 -1
- package/css/cssSupported.d.ts +8 -0
- package/css/cssSupported.js +11 -0
- package/css/index.d.ts +1 -0
- package/css/index.js +4 -0
- package/date/convertTime.js +1 -1
- package/date/convertToDuration.js +1 -1
- package/date/index.js +1 -1
- package/decimal/decimal.js +1 -1
- package/decimal/index.js +1 -1
- package/dom-helpers/activeElement.js +1 -1
- package/dom-helpers/addClass.js +1 -1
- package/dom-helpers/addEventListener.js +1 -1
- package/dom-helpers/animate.js +1 -1
- package/dom-helpers/animationFrame.js +1 -1
- package/dom-helpers/attribute.js +1 -1
- package/dom-helpers/camelize.js +1 -1
- package/dom-helpers/camelizeStyle.js +1 -1
- package/dom-helpers/canUseDOM.js +1 -1
- package/dom-helpers/childElements.js +1 -1
- package/dom-helpers/childNodes.js +1 -1
- package/dom-helpers/clear.js +1 -1
- package/dom-helpers/closest.js +1 -1
- package/dom-helpers/collectElements.js +1 -1
- package/dom-helpers/collectSiblings.js +1 -1
- package/dom-helpers/contains.js +1 -1
- package/dom-helpers/css.js +1 -1
- package/dom-helpers/filterEventHandler.js +1 -1
- package/dom-helpers/getComputedStyle.js +1 -1
- package/dom-helpers/getElementCoordinates.js +1 -1
- package/dom-helpers/getScrollAccessor.js +1 -1
- package/dom-helpers/hasClass.js +1 -1
- package/dom-helpers/height.js +1 -1
- package/dom-helpers/hyphenate.js +1 -1
- package/dom-helpers/hyphenateStyle.js +1 -1
- package/dom-helpers/index.js +1 -1
- package/dom-helpers/insertAfter.js +1 -1
- package/dom-helpers/isDocument.js +1 -1
- package/dom-helpers/isInput.js +1 -1
- package/dom-helpers/isTransform.js +1 -1
- package/dom-helpers/isVisible.js +1 -1
- package/dom-helpers/isWindow.js +1 -1
- package/dom-helpers/listen.js +1 -1
- package/dom-helpers/matches.js +1 -1
- package/dom-helpers/nextUntil.js +1 -1
- package/dom-helpers/offset.js +1 -1
- package/dom-helpers/offsetParent.js +1 -1
- package/dom-helpers/ownerDocument.js +1 -1
- package/dom-helpers/ownerWindow.js +1 -1
- package/dom-helpers/parents.js +1 -1
- package/dom-helpers/position.js +1 -1
- package/dom-helpers/prepend.js +1 -1
- package/dom-helpers/querySelectorAll.js +1 -1
- package/dom-helpers/reflow.js +1 -1
- package/dom-helpers/remove.js +1 -1
- package/dom-helpers/removeClass.js +1 -1
- package/dom-helpers/removeEventListener.js +1 -1
- package/dom-helpers/scrollLeft.js +1 -1
- package/dom-helpers/scrollParent.js +1 -1
- package/dom-helpers/scrollTo.js +1 -1
- package/dom-helpers/scrollTop.js +1 -1
- package/dom-helpers/scrollbarSize.js +1 -1
- package/dom-helpers/siblings.js +1 -1
- package/dom-helpers/text.js +1 -1
- package/dom-helpers/toggleClass.js +1 -1
- package/dom-helpers/transitionEnd.js +1 -1
- package/dom-helpers/triggerEvent.js +1 -1
- package/dom-helpers/types.js +1 -1
- package/dom-helpers/width.js +1 -1
- package/emitter/index.js +1 -1
- package/emoji/emoji.js +1 -1
- package/emoji/emojis.js +1 -1
- package/emoji/index.js +1 -1
- package/escape/index.js +1 -1
- package/fflate/index.js +1 -1
- package/fflate/src/index.js +2 -2
- package/fflate/src/worker.d.ts +12 -1
- package/fflate/src/worker.js +32 -8
- package/file/fileRead.js +1 -1
- package/file/fileToDataURL.js +1 -1
- package/file/img.js +1 -1
- package/file/index.js +1 -1
- package/file/saveAs.js +1 -1
- package/filesize/index.js +1 -1
- package/filesize/src/constants.js +1 -1
- package/filesize/src/filesize.js +1 -1
- package/filesize/src/helpers.js +1 -1
- package/function/index.js +1 -1
- package/idb/async-iterators.js +1 -1
- package/idb/database-extras.js +1 -1
- package/idb/entry.js +1 -1
- package/idb/index-.js +1 -1
- package/idb/index.js +1 -1
- package/idb/util.js +1 -1
- package/idb/wrap-idb-value.js +1 -1
- package/index.js +1 -1
- package/invariant/index.js +1 -1
- package/is/index.js +1 -1
- package/is/lib/isAscii.js +1 -1
- package/is/lib/isBase64.js +1 -1
- package/is/lib/isChinese.js +1 -1
- package/is/lib/isDataURI.js +1 -1
- package/is/lib/isEmail.js +1 -1
- package/is/lib/isFQDN.js +1 -1
- package/is/lib/isFullWidth.js +1 -1
- package/is/lib/isHSL.js +1 -1
- package/is/lib/isHalfWidth.js +1 -1
- package/is/lib/isHash.js +1 -1
- package/is/lib/isHexColor.js +1 -1
- package/is/lib/isIMEI.js +1 -1
- package/is/lib/isIP.js +1 -1
- package/is/lib/isIPRange.js +1 -1
- package/is/lib/isIdentityCard.js +1 -1
- package/is/lib/isJWT.js +1 -1
- package/is/lib/isMACAddress.js +1 -1
- package/is/lib/isMD5.js +1 -1
- package/is/lib/isMimeType.js +1 -1
- package/is/lib/isMobilePhone.js +1 -1
- package/is/lib/isPort.js +1 -1
- package/is/lib/isRgbColor.js +1 -1
- package/is/lib/isSemVer.js +1 -1
- package/is/lib/isSlug.js +1 -1
- package/is/lib/isStrongPassword.js +1 -1
- package/is/lib/isURL.js +1 -1
- package/is/lib/isUUID.js +1 -1
- package/is/lib/isVariableWidth.js +1 -1
- package/lodash/_DataView.js +1 -1
- package/lodash/_Hash.js +1 -1
- package/lodash/_LazyWrapper.js +1 -1
- package/lodash/_ListCache.js +1 -1
- package/lodash/_LodashWrapper.js +1 -1
- package/lodash/_Map.js +1 -1
- package/lodash/_MapCache.js +1 -1
- package/lodash/_Promise.js +1 -1
- package/lodash/_Set.js +1 -1
- package/lodash/_SetCache.js +1 -1
- package/lodash/_Stack.js +1 -1
- package/lodash/_Symbol.js +1 -1
- package/lodash/_Uint8Array.js +1 -1
- package/lodash/_WeakMap.js +1 -1
- package/lodash/_addMapEntry.js +1 -1
- package/lodash/_addSetEntry.js +1 -1
- package/lodash/_apply.js +1 -1
- package/lodash/_arrayAggregator.js +1 -1
- package/lodash/_arrayEach.js +1 -1
- package/lodash/_arrayEachRight.js +1 -1
- package/lodash/_arrayEvery.js +1 -1
- package/lodash/_arrayFilter.js +1 -1
- package/lodash/_arrayIncludes.js +1 -1
- package/lodash/_arrayIncludesWith.js +1 -1
- package/lodash/_arrayLikeKeys.js +1 -1
- package/lodash/_arrayMap.js +1 -1
- package/lodash/_arrayPush.js +1 -1
- package/lodash/_arrayReduce.js +1 -1
- package/lodash/_arrayReduceRight.js +1 -1
- package/lodash/_arraySample.js +1 -1
- package/lodash/_arraySampleSize.js +1 -1
- package/lodash/_arrayShuffle.js +1 -1
- package/lodash/_arraySome.js +1 -1
- package/lodash/_asciiSize.js +1 -1
- package/lodash/_asciiToArray.js +1 -1
- package/lodash/_asciiWords.js +1 -1
- package/lodash/_assignMergeValue.js +1 -1
- package/lodash/_assignValue.js +1 -1
- package/lodash/_assocIndexOf.js +1 -1
- package/lodash/_baseAggregator.js +1 -1
- package/lodash/_baseAssign.js +1 -1
- package/lodash/_baseAssignIn.js +1 -1
- package/lodash/_baseAssignValue.js +1 -1
- package/lodash/_baseAt.js +1 -1
- package/lodash/_baseClamp.js +1 -1
- package/lodash/_baseClone.js +1 -1
- package/lodash/_baseConforms.js +1 -1
- package/lodash/_baseConformsTo.js +1 -1
- package/lodash/_baseCreate.js +1 -1
- package/lodash/_baseDelay.js +1 -1
- package/lodash/_baseDifference.js +1 -1
- package/lodash/_baseEach.js +1 -1
- package/lodash/_baseEachRight.js +1 -1
- package/lodash/_baseEvery.js +1 -1
- package/lodash/_baseExtremum.js +1 -1
- package/lodash/_baseFill.js +1 -1
- package/lodash/_baseFilter.js +1 -1
- package/lodash/_baseFindIndex.js +1 -1
- package/lodash/_baseFindKey.js +1 -1
- package/lodash/_baseFlatten.js +1 -1
- package/lodash/_baseFor.js +1 -1
- package/lodash/_baseForOwn.js +1 -1
- package/lodash/_baseForOwnRight.js +1 -1
- package/lodash/_baseForRight.js +1 -1
- package/lodash/_baseFunctions.js +1 -1
- package/lodash/_baseGet.js +1 -1
- package/lodash/_baseGetAllKeys.js +1 -1
- package/lodash/_baseGetTag.js +1 -1
- package/lodash/_baseGt.js +1 -1
- package/lodash/_baseHas.js +1 -1
- package/lodash/_baseHasIn.js +1 -1
- package/lodash/_baseInRange.js +1 -1
- package/lodash/_baseIndexOf.js +1 -1
- package/lodash/_baseIndexOfWith.js +1 -1
- package/lodash/_baseIntersection.js +1 -1
- package/lodash/_baseInverter.js +1 -1
- package/lodash/_baseInvoke.js +1 -1
- package/lodash/_baseIsArguments.js +1 -1
- package/lodash/_baseIsArrayBuffer.js +1 -1
- package/lodash/_baseIsDate.js +1 -1
- package/lodash/_baseIsEqual.js +1 -1
- package/lodash/_baseIsEqualDeep.js +1 -1
- package/lodash/_baseIsMap.js +1 -1
- package/lodash/_baseIsMatch.js +1 -1
- package/lodash/_baseIsNaN.js +1 -1
- package/lodash/_baseIsNative.js +1 -1
- package/lodash/_baseIsRegExp.js +1 -1
- package/lodash/_baseIsSet.js +1 -1
- package/lodash/_baseIsTypedArray.js +1 -1
- package/lodash/_baseIteratee.js +1 -1
- package/lodash/_baseKeys.js +1 -1
- package/lodash/_baseKeysIn.js +1 -1
- package/lodash/_baseLodash.js +1 -1
- package/lodash/_baseLt.js +1 -1
- package/lodash/_baseMap.js +1 -1
- package/lodash/_baseMatches.js +1 -1
- package/lodash/_baseMatchesProperty.js +1 -1
- package/lodash/_baseMean.js +1 -1
- package/lodash/_baseMerge.js +1 -1
- package/lodash/_baseMergeDeep.js +1 -1
- package/lodash/_baseNth.js +1 -1
- package/lodash/_baseOrderBy.js +1 -1
- package/lodash/_basePick.js +1 -1
- package/lodash/_basePickBy.js +1 -1
- package/lodash/_baseProperty.js +1 -1
- package/lodash/_basePropertyDeep.js +1 -1
- package/lodash/_basePropertyOf.js +1 -1
- package/lodash/_basePullAll.js +1 -1
- package/lodash/_basePullAt.js +1 -1
- package/lodash/_baseRandom.js +1 -1
- package/lodash/_baseRange.js +1 -1
- package/lodash/_baseReduce.js +1 -1
- package/lodash/_baseRepeat.js +1 -1
- package/lodash/_baseRest.js +1 -1
- package/lodash/_baseSample.js +1 -1
- package/lodash/_baseSampleSize.js +1 -1
- package/lodash/_baseSet.js +1 -1
- package/lodash/_baseSetData.js +1 -1
- package/lodash/_baseSetToString.js +1 -1
- package/lodash/_baseShuffle.js +1 -1
- package/lodash/_baseSlice.js +1 -1
- package/lodash/_baseSome.js +1 -1
- package/lodash/_baseSortBy.js +1 -1
- package/lodash/_baseSortedIndex.js +1 -1
- package/lodash/_baseSortedIndexBy.js +1 -1
- package/lodash/_baseSortedUniq.js +1 -1
- package/lodash/_baseSum.js +1 -1
- package/lodash/_baseTimes.js +1 -1
- package/lodash/_baseToNumber.js +1 -1
- package/lodash/_baseToPairs.js +1 -1
- package/lodash/_baseToString.js +1 -1
- package/lodash/_baseTrim.js +1 -1
- package/lodash/_baseUnary.js +1 -1
- package/lodash/_baseUniq.js +1 -1
- package/lodash/_baseUnset.js +1 -1
- package/lodash/_baseUpdate.js +1 -1
- package/lodash/_baseValues.js +1 -1
- package/lodash/_baseWhile.js +1 -1
- package/lodash/_baseWrapperValue.js +1 -1
- package/lodash/_baseXor.js +1 -1
- package/lodash/_baseZipObject.js +1 -1
- package/lodash/_cacheHas.js +1 -1
- package/lodash/_castArrayLikeObject.js +1 -1
- package/lodash/_castFunction.js +1 -1
- package/lodash/_castPath.js +1 -1
- package/lodash/_castRest.js +1 -1
- package/lodash/_castSlice.js +1 -1
- package/lodash/_charsEndIndex.js +1 -1
- package/lodash/_charsStartIndex.js +1 -1
- package/lodash/_cloneArrayBuffer.js +1 -1
- package/lodash/_cloneBuffer.js +1 -1
- package/lodash/_cloneDataView.js +1 -1
- package/lodash/_cloneMap.js +1 -1
- package/lodash/_cloneRegExp.js +1 -1
- package/lodash/_cloneSet.js +1 -1
- package/lodash/_cloneSymbol.js +1 -1
- package/lodash/_cloneTypedArray.js +1 -1
- package/lodash/_compareAscending.js +1 -1
- package/lodash/_compareMultiple.js +1 -1
- package/lodash/_composeArgs.js +1 -1
- package/lodash/_composeArgsRight.js +1 -1
- package/lodash/_copyArray.js +1 -1
- package/lodash/_copyObject.js +1 -1
- package/lodash/_copySymbols.js +1 -1
- package/lodash/_copySymbolsIn.js +1 -1
- package/lodash/_coreJsData.js +1 -1
- package/lodash/_countHolders.js +1 -1
- package/lodash/_createAggregator.js +1 -1
- package/lodash/_createAssigner.js +1 -1
- package/lodash/_createBaseEach.js +1 -1
- package/lodash/_createBaseFor.js +1 -1
- package/lodash/_createBind.js +1 -1
- package/lodash/_createCaseFirst.js +1 -1
- package/lodash/_createCompounder.js +1 -1
- package/lodash/_createCtor.js +1 -1
- package/lodash/_createCurry.js +1 -1
- package/lodash/_createFind.js +1 -1
- package/lodash/_createFlow.js +1 -1
- package/lodash/_createHybrid.js +1 -1
- package/lodash/_createInverter.js +1 -1
- package/lodash/_createMathOperation.js +1 -1
- package/lodash/_createOver.js +1 -1
- package/lodash/_createPadding.js +1 -1
- package/lodash/_createPartial.js +1 -1
- package/lodash/_createRange.js +1 -1
- package/lodash/_createRecurry.js +1 -1
- package/lodash/_createRelationalOperation.js +1 -1
- package/lodash/_createRound.js +1 -1
- package/lodash/_createSet.js +1 -1
- package/lodash/_createToPairs.js +1 -1
- package/lodash/_createWrap.js +1 -1
- package/lodash/_customDefaultsAssignIn.js +1 -1
- package/lodash/_customDefaultsMerge.js +1 -1
- package/lodash/_customOmitClone.js +1 -1
- package/lodash/_deburrLetter.js +1 -1
- package/lodash/_defineProperty.js +1 -1
- package/lodash/_equalArrays.js +1 -1
- package/lodash/_equalByTag.js +1 -1
- package/lodash/_equalObjects.js +1 -1
- package/lodash/_escapeHtmlChar.js +1 -1
- package/lodash/_escapeStringChar.js +1 -1
- package/lodash/_flatRest.js +1 -1
- package/lodash/_freeGlobal.js +1 -1
- package/lodash/_getAllKeys.js +1 -1
- package/lodash/_getAllKeysIn.js +1 -1
- package/lodash/_getData.js +1 -1
- package/lodash/_getFuncName.js +1 -1
- package/lodash/_getHolder.js +1 -1
- package/lodash/_getMapData.js +1 -1
- package/lodash/_getMatchData.js +1 -1
- package/lodash/_getNative.js +1 -1
- package/lodash/_getPrototype.js +1 -1
- package/lodash/_getRawTag.js +1 -1
- package/lodash/_getSymbols.js +1 -1
- package/lodash/_getSymbolsIn.js +1 -1
- package/lodash/_getTag.js +1 -1
- package/lodash/_getValue.js +1 -1
- package/lodash/_getView.js +1 -1
- package/lodash/_getWrapDetails.js +1 -1
- package/lodash/_hasPath.js +1 -1
- package/lodash/_hasUnicode.js +1 -1
- package/lodash/_hasUnicodeWord.js +1 -1
- package/lodash/_hashClear.js +1 -1
- package/lodash/_hashDelete.js +1 -1
- package/lodash/_hashGet.js +1 -1
- package/lodash/_hashHas.js +1 -1
- package/lodash/_hashSet.js +1 -1
- package/lodash/_initCloneArray.js +1 -1
- package/lodash/_initCloneByTag.js +1 -1
- package/lodash/_initCloneObject.js +1 -1
- package/lodash/_insertWrapDetails.js +1 -1
- package/lodash/_isFlattenable.js +1 -1
- package/lodash/_isIndex.js +1 -1
- package/lodash/_isIterateeCall.js +1 -1
- package/lodash/_isKey.js +1 -1
- package/lodash/_isKeyable.js +1 -1
- package/lodash/_isLaziable.js +1 -1
- package/lodash/_isMaskable.js +1 -1
- package/lodash/_isMasked.js +1 -1
- package/lodash/_isPrototype.js +1 -1
- package/lodash/_isStrictComparable.js +1 -1
- package/lodash/_iteratorToArray.js +1 -1
- package/lodash/_lazyClone.js +1 -1
- package/lodash/_lazyReverse.js +1 -1
- package/lodash/_lazyValue.js +1 -1
- package/lodash/_listCacheClear.js +1 -1
- package/lodash/_listCacheDelete.js +1 -1
- package/lodash/_listCacheGet.js +1 -1
- package/lodash/_listCacheHas.js +1 -1
- package/lodash/_listCacheSet.js +1 -1
- package/lodash/_mapCacheClear.js +1 -1
- package/lodash/_mapCacheDelete.js +1 -1
- package/lodash/_mapCacheGet.js +1 -1
- package/lodash/_mapCacheHas.js +1 -1
- package/lodash/_mapCacheSet.js +1 -1
- package/lodash/_mapToArray.js +1 -1
- package/lodash/_matchesStrictComparable.js +1 -1
- package/lodash/_memoizeCapped.js +1 -1
- package/lodash/_mergeData.js +1 -1
- package/lodash/_metaMap.js +1 -1
- package/lodash/_nativeCreate.js +1 -1
- package/lodash/_nativeKeys.js +1 -1
- package/lodash/_nativeKeysIn.js +1 -1
- package/lodash/_nodeUtil.js +1 -1
- package/lodash/_objectToString.js +1 -1
- package/lodash/_overArg.js +1 -1
- package/lodash/_overRest.js +1 -1
- package/lodash/_parent.js +1 -1
- package/lodash/_reEscape.js +1 -1
- package/lodash/_reEvaluate.js +1 -1
- package/lodash/_reInterpolate.js +1 -1
- package/lodash/_realNames.js +1 -1
- package/lodash/_reorder.js +1 -1
- package/lodash/_replaceHolders.js +1 -1
- package/lodash/_root.js +1 -1
- package/lodash/_safeGet.js +1 -1
- package/lodash/_setCacheAdd.js +1 -1
- package/lodash/_setCacheHas.js +1 -1
- package/lodash/_setData.js +1 -1
- package/lodash/_setToArray.js +1 -1
- package/lodash/_setToPairs.js +1 -1
- package/lodash/_setToString.js +1 -1
- package/lodash/_setWrapToString.js +1 -1
- package/lodash/_shortOut.js +1 -1
- package/lodash/_shuffleSelf.js +1 -1
- package/lodash/_stackClear.js +1 -1
- package/lodash/_stackDelete.js +1 -1
- package/lodash/_stackGet.js +1 -1
- package/lodash/_stackHas.js +1 -1
- package/lodash/_stackSet.js +1 -1
- package/lodash/_strictIndexOf.js +1 -1
- package/lodash/_strictLastIndexOf.js +1 -1
- package/lodash/_stringSize.js +1 -1
- package/lodash/_stringToArray.js +1 -1
- package/lodash/_stringToPath.js +1 -1
- package/lodash/_toKey.js +1 -1
- package/lodash/_toSource.js +1 -1
- package/lodash/_trimmedEndIndex.js +1 -1
- package/lodash/_unescapeHtmlChar.js +1 -1
- package/lodash/_unicodeSize.js +1 -1
- package/lodash/_unicodeToArray.js +1 -1
- package/lodash/_unicodeWords.js +1 -1
- package/lodash/_updateWrapDetails.js +1 -1
- package/lodash/_wrapperClone.js +1 -1
- package/lodash/add.js +1 -1
- package/lodash/after.js +1 -1
- package/lodash/array.default.js +1 -1
- package/lodash/array.js +1 -1
- package/lodash/ary.js +1 -1
- package/lodash/assign.js +1 -1
- package/lodash/assignIn.js +1 -1
- package/lodash/assignInWith.js +1 -1
- package/lodash/assignWith.js +1 -1
- package/lodash/at.js +1 -1
- package/lodash/attempt.js +1 -1
- package/lodash/before.js +1 -1
- package/lodash/bind.js +1 -1
- package/lodash/bindAll.js +1 -1
- package/lodash/bindKey.js +1 -1
- package/lodash/camelCase.js +1 -1
- package/lodash/capitalize.js +1 -1
- package/lodash/castArray.js +1 -1
- package/lodash/ceil.js +1 -1
- package/lodash/chain.js +1 -1
- package/lodash/chunk.js +1 -1
- package/lodash/clamp.js +1 -1
- package/lodash/clone.js +1 -1
- package/lodash/cloneDeep.js +1 -1
- package/lodash/cloneDeepWith.js +1 -1
- package/lodash/cloneWith.js +1 -1
- package/lodash/collection.default.js +1 -1
- package/lodash/collection.js +1 -1
- package/lodash/commit.js +1 -1
- package/lodash/compact.js +1 -1
- package/lodash/concat.js +1 -1
- package/lodash/cond.js +1 -1
- package/lodash/conforms.js +1 -1
- package/lodash/conformsTo.js +1 -1
- package/lodash/constant.js +1 -1
- package/lodash/countBy.js +1 -1
- package/lodash/create.js +1 -1
- package/lodash/curry.js +1 -1
- package/lodash/curryRight.js +1 -1
- package/lodash/date.default.js +1 -1
- package/lodash/date.js +1 -1
- package/lodash/debounce.js +1 -1
- package/lodash/deburr.js +1 -1
- package/lodash/defaultTo.js +1 -1
- package/lodash/defaults.js +1 -1
- package/lodash/defaultsDeep.js +1 -1
- package/lodash/defer.js +1 -1
- package/lodash/delay.js +1 -1
- package/lodash/difference.js +1 -1
- package/lodash/differenceBy.js +1 -1
- package/lodash/differenceWith.js +1 -1
- package/lodash/divide.js +1 -1
- package/lodash/drop.js +1 -1
- package/lodash/dropRight.js +1 -1
- package/lodash/dropRightWhile.js +1 -1
- package/lodash/dropWhile.js +1 -1
- package/lodash/each.js +1 -1
- package/lodash/eachRight.js +1 -1
- package/lodash/endsWith.js +1 -1
- package/lodash/entries.js +1 -1
- package/lodash/entriesIn.js +1 -1
- package/lodash/eq.js +1 -1
- package/lodash/escape.js +1 -1
- package/lodash/escapeRegExp.js +1 -1
- package/lodash/every.js +1 -1
- package/lodash/extend.js +1 -1
- package/lodash/extendWith.js +1 -1
- package/lodash/fill.js +1 -1
- package/lodash/filter.js +1 -1
- package/lodash/find.js +1 -1
- package/lodash/findIndex.js +1 -1
- package/lodash/findKey.js +1 -1
- package/lodash/findLast.js +1 -1
- package/lodash/findLastIndex.js +1 -1
- package/lodash/findLastKey.js +1 -1
- package/lodash/first.js +1 -1
- package/lodash/flatMap.js +1 -1
- package/lodash/flatMapDeep.js +1 -1
- package/lodash/flatMapDepth.js +1 -1
- package/lodash/flatten.js +1 -1
- package/lodash/flattenDeep.js +1 -1
- package/lodash/flattenDepth.js +1 -1
- package/lodash/flip.js +1 -1
- package/lodash/floor.js +1 -1
- package/lodash/flow.js +1 -1
- package/lodash/flowRight.js +1 -1
- package/lodash/forEach.js +1 -1
- package/lodash/forEachRight.js +1 -1
- package/lodash/forIn.js +1 -1
- package/lodash/forInRight.js +1 -1
- package/lodash/forOwn.js +1 -1
- package/lodash/forOwnRight.js +1 -1
- package/lodash/fromPairs.js +1 -1
- package/lodash/function.default.js +1 -1
- package/lodash/function.js +1 -1
- package/lodash/functions.js +1 -1
- package/lodash/functionsIn.js +1 -1
- package/lodash/get.js +1 -1
- package/lodash/groupBy.js +1 -1
- package/lodash/gt.js +1 -1
- package/lodash/gte.js +1 -1
- package/lodash/has.js +1 -1
- package/lodash/hasIn.js +1 -1
- package/lodash/head.js +1 -1
- package/lodash/identity.js +1 -1
- package/lodash/inRange.js +1 -1
- package/lodash/includes.js +1 -1
- package/lodash/index.js +1 -1
- package/lodash/indexOf.js +1 -1
- package/lodash/initial.js +1 -1
- package/lodash/intersection.js +1 -1
- package/lodash/intersectionBy.js +1 -1
- package/lodash/intersectionWith.js +1 -1
- package/lodash/invert.js +1 -1
- package/lodash/invertBy.js +1 -1
- package/lodash/invoke.js +1 -1
- package/lodash/invokeMap.js +1 -1
- package/lodash/isArguments.js +1 -1
- package/lodash/isArray.js +1 -1
- package/lodash/isArrayBuffer.js +1 -1
- package/lodash/isArrayLike.js +1 -1
- package/lodash/isArrayLikeObject.js +1 -1
- package/lodash/isBoolean.js +1 -1
- package/lodash/isBuffer.js +1 -1
- package/lodash/isDate.js +1 -1
- package/lodash/isElement.js +1 -1
- package/lodash/isEmpty.js +1 -1
- package/lodash/isEqual.js +1 -1
- package/lodash/isEqualWith.js +1 -1
- package/lodash/isError.js +1 -1
- package/lodash/isFinite.js +1 -1
- package/lodash/isFunction.js +1 -1
- package/lodash/isInteger.js +1 -1
- package/lodash/isLength.js +1 -1
- package/lodash/isMap.js +1 -1
- package/lodash/isMatch.js +1 -1
- package/lodash/isMatchWith.js +1 -1
- package/lodash/isNaN.js +1 -1
- package/lodash/isNative.js +1 -1
- package/lodash/isNil.js +1 -1
- package/lodash/isNull.js +1 -1
- package/lodash/isNumber.js +1 -1
- package/lodash/isObject.js +1 -1
- package/lodash/isObjectLike.js +1 -1
- package/lodash/isPlainObject.js +1 -1
- package/lodash/isPromise.js +1 -1
- package/lodash/isRegExp.js +1 -1
- package/lodash/isSafeInteger.js +1 -1
- package/lodash/isSet.js +1 -1
- package/lodash/isString.js +1 -1
- package/lodash/isSymbol.js +1 -1
- package/lodash/isTypedArray.js +1 -1
- package/lodash/isUndefined.js +1 -1
- package/lodash/isWeakMap.js +1 -1
- package/lodash/isWeakSet.js +1 -1
- package/lodash/iteratee.js +1 -1
- package/lodash/join.js +1 -1
- package/lodash/kebabCase.js +1 -1
- package/lodash/keyBy.js +1 -1
- package/lodash/keys.js +1 -1
- package/lodash/keysIn.js +1 -1
- package/lodash/lang.default.js +1 -1
- package/lodash/lang.js +1 -1
- package/lodash/last.js +1 -1
- package/lodash/lastIndexOf.js +1 -1
- package/lodash/lodash.default.js +1 -1
- package/lodash/lodash.js +1 -1
- package/lodash/lowerCase.js +1 -1
- package/lodash/lowerFirst.js +1 -1
- package/lodash/lt.js +1 -1
- package/lodash/lte.js +1 -1
- package/lodash/map.js +1 -1
- package/lodash/mapKeys.js +1 -1
- package/lodash/mapValues.js +1 -1
- package/lodash/matches.js +1 -1
- package/lodash/matchesProperty.js +1 -1
- package/lodash/math.default.js +1 -1
- package/lodash/math.js +1 -1
- package/lodash/max.js +1 -1
- package/lodash/maxBy.js +1 -1
- package/lodash/mean.js +1 -1
- package/lodash/meanBy.js +1 -1
- package/lodash/memoize.js +1 -1
- package/lodash/merge.js +1 -1
- package/lodash/mergeWith.js +1 -1
- package/lodash/method.js +1 -1
- package/lodash/methodOf.js +1 -1
- package/lodash/min.js +1 -1
- package/lodash/minBy.js +1 -1
- package/lodash/mixin.js +1 -1
- package/lodash/multiply.js +1 -1
- package/lodash/negate.js +1 -1
- package/lodash/next.js +1 -1
- package/lodash/noop.js +1 -1
- package/lodash/now.js +1 -1
- package/lodash/nth.js +1 -1
- package/lodash/nthArg.js +1 -1
- package/lodash/number.default.js +1 -1
- package/lodash/number.js +1 -1
- package/lodash/object.default.js +1 -1
- package/lodash/object.js +1 -1
- package/lodash/omit.js +1 -1
- package/lodash/omitBy.js +1 -1
- package/lodash/once.js +1 -1
- package/lodash/orderBy.js +1 -1
- package/lodash/over.js +1 -1
- package/lodash/overArgs.js +1 -1
- package/lodash/overEvery.js +1 -1
- package/lodash/overSome.js +1 -1
- package/lodash/pad.js +1 -1
- package/lodash/padEnd.js +1 -1
- package/lodash/padStart.js +1 -1
- package/lodash/parseInt.js +1 -1
- package/lodash/partial.js +1 -1
- package/lodash/partialRight.js +1 -1
- package/lodash/partition.js +1 -1
- package/lodash/pick.js +1 -1
- package/lodash/pickBy.js +1 -1
- package/lodash/plant.js +1 -1
- package/lodash/property.js +1 -1
- package/lodash/propertyOf.js +1 -1
- package/lodash/pull.js +1 -1
- package/lodash/pullAll.js +1 -1
- package/lodash/pullAllBy.js +1 -1
- package/lodash/pullAllWith.js +1 -1
- package/lodash/pullAt.js +1 -1
- package/lodash/random.js +1 -1
- package/lodash/range.js +1 -1
- package/lodash/rangeRight.js +1 -1
- package/lodash/rearg.js +1 -1
- package/lodash/reduce.js +1 -1
- package/lodash/reduceRight.js +1 -1
- package/lodash/reject.js +1 -1
- package/lodash/remove.js +1 -1
- package/lodash/repeat.js +1 -1
- package/lodash/replace.js +1 -1
- package/lodash/rest.js +1 -1
- package/lodash/result.js +1 -1
- package/lodash/reverse.js +1 -1
- package/lodash/round.js +1 -1
- package/lodash/sample.js +1 -1
- package/lodash/sampleSize.js +1 -1
- package/lodash/seq.default.js +1 -1
- package/lodash/seq.js +1 -1
- package/lodash/set.js +1 -1
- package/lodash/setWith.js +1 -1
- package/lodash/shuffle.js +1 -1
- package/lodash/size.js +1 -1
- package/lodash/slice.js +1 -1
- package/lodash/snakeCase.js +1 -1
- package/lodash/some.js +1 -1
- package/lodash/sortBy.js +1 -1
- package/lodash/sortedIndex.js +1 -1
- package/lodash/sortedIndexBy.js +1 -1
- package/lodash/sortedIndexOf.js +1 -1
- package/lodash/sortedLastIndex.js +1 -1
- package/lodash/sortedLastIndexBy.js +1 -1
- package/lodash/sortedLastIndexOf.js +1 -1
- package/lodash/sortedUniq.js +1 -1
- package/lodash/sortedUniqBy.js +1 -1
- package/lodash/split.js +1 -1
- package/lodash/spread.js +1 -1
- package/lodash/startCase.js +1 -1
- package/lodash/startsWith.js +1 -1
- package/lodash/string.default.js +1 -1
- package/lodash/string.js +1 -1
- package/lodash/stubArray.js +1 -1
- package/lodash/stubFalse.js +1 -1
- package/lodash/stubObject.js +1 -1
- package/lodash/stubString.js +1 -1
- package/lodash/stubTrue.js +1 -1
- package/lodash/subtract.js +1 -1
- package/lodash/sum.js +1 -1
- package/lodash/sumBy.js +1 -1
- package/lodash/tail.js +1 -1
- package/lodash/take.js +1 -1
- package/lodash/takeRight.js +1 -1
- package/lodash/takeRightWhile.js +1 -1
- package/lodash/takeWhile.js +1 -1
- package/lodash/tap.js +1 -1
- package/lodash/template.js +1 -1
- package/lodash/templateSettings.js +1 -1
- package/lodash/throttle.js +1 -1
- package/lodash/thru.js +1 -1
- package/lodash/times.js +1 -1
- package/lodash/toArray.js +1 -1
- package/lodash/toFinite.js +1 -1
- package/lodash/toInteger.js +1 -1
- package/lodash/toIterator.js +1 -1
- package/lodash/toJSON.js +1 -1
- package/lodash/toLength.js +1 -1
- package/lodash/toLower.js +1 -1
- package/lodash/toNumber.js +1 -1
- package/lodash/toPairs.js +1 -1
- package/lodash/toPairsIn.js +1 -1
- package/lodash/toPath.js +1 -1
- package/lodash/toPlainObject.js +1 -1
- package/lodash/toSafeInteger.js +1 -1
- package/lodash/toString.js +1 -1
- package/lodash/toUpper.js +1 -1
- package/lodash/transform.js +1 -1
- package/lodash/trim.js +1 -1
- package/lodash/trimEnd.js +1 -1
- package/lodash/trimStart.js +1 -1
- package/lodash/truncate.js +1 -1
- package/lodash/unary.js +1 -1
- package/lodash/unescape.js +1 -1
- package/lodash/union.js +1 -1
- package/lodash/unionBy.js +1 -1
- package/lodash/unionWith.js +1 -1
- package/lodash/uniq.js +1 -1
- package/lodash/uniqBy.js +1 -1
- package/lodash/uniqWith.js +1 -1
- package/lodash/uniqueId.js +1 -1
- package/lodash/unset.js +1 -1
- package/lodash/unzip.js +1 -1
- package/lodash/unzipWith.js +1 -1
- package/lodash/update.js +1 -1
- package/lodash/updateWith.js +1 -1
- package/lodash/upperCase.js +1 -1
- package/lodash/upperFirst.js +1 -1
- package/lodash/util.default.js +1 -1
- package/lodash/util.js +1 -1
- package/lodash/value.js +1 -1
- package/lodash/valueOf.js +1 -1
- package/lodash/values.js +1 -1
- package/lodash/valuesIn.js +1 -1
- package/lodash/without.js +1 -1
- package/lodash/words.js +1 -1
- package/lodash/wrap.js +1 -1
- package/lodash/wrapperAt.js +1 -1
- package/lodash/wrapperChain.js +1 -1
- package/lodash/wrapperLodash.js +1 -1
- package/lodash/wrapperReverse.js +1 -1
- package/lodash/wrapperValue.js +1 -1
- package/lodash/xor.js +1 -1
- package/lodash/xorBy.js +1 -1
- package/lodash/xorWith.js +1 -1
- package/lodash/zip.js +1 -1
- package/lodash/zipObject.js +1 -1
- package/lodash/zipObjectDeep.js +1 -1
- package/lodash/zipWith.js +1 -1
- package/math/index.js +1 -1
- package/md5/index.js +1 -1
- package/mock/MockWebSocket.js +1 -1
- package/mock/MockXMLHttpRequest.js +1 -1
- package/mock/index.js +1 -1
- package/normalize-wheel/ExecutionEnvironment.js +1 -1
- package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
- package/normalize-wheel/index.js +1 -1
- package/normalize-wheel/isEventSupported.js +1 -1
- package/number-to-chinese/index.js +1 -1
- package/nzh/cn.js +1 -1
- package/nzh/hk.js +1 -1
- package/nzh/index.js +1 -1
- package/nzh/nzh.js +1 -1
- package/nzh/src/autoGet.js +1 -1
- package/nzh/src/index.js +1 -1
- package/nzh/src/langs/cn_b.js +1 -1
- package/nzh/src/langs/cn_s.js +1 -1
- package/nzh/src/langs/hk_b.js +1 -1
- package/nzh/src/langs/hk_s.js +1 -1
- package/nzh/src/utils.js +1 -1
- package/object/index.js +1 -1
- package/package.json +1 -1
- package/pinyin/index.js +1 -1
- package/pinyin/lib/common/constant.js +1 -1
- package/pinyin/lib/common/segmentit/AC.js +1 -1
- package/pinyin/lib/common/segmentit/TrieNode.js +1 -1
- package/pinyin/lib/common/segmentit/index.js +1 -1
- package/pinyin/lib/common/segmentit/max-probability.js +1 -1
- package/pinyin/lib/common/segmentit/min-tokenization.js +1 -1
- package/pinyin/lib/common/segmentit/reverse-max-match.js +1 -1
- package/pinyin/lib/common/utils.js +1 -1
- package/pinyin/lib/core/convert/index.js +1 -1
- package/pinyin/lib/core/custom/index.js +1 -1
- package/pinyin/lib/core/dict/index.js +1 -1
- package/pinyin/lib/core/html/index.js +1 -1
- package/pinyin/lib/core/match/index.js +1 -1
- package/pinyin/lib/core/pinyin/handle.js +1 -1
- package/pinyin/lib/core/pinyin/index.js +1 -1
- package/pinyin/lib/core/pinyin/middlewares.js +1 -1
- package/pinyin/lib/core/polyphonic/index.js +1 -1
- package/pinyin/lib/core/segment/index.js +1 -1
- package/pinyin/lib/core/segment/middlewares.js +1 -1
- package/pinyin/lib/core/traditional/index.js +1 -1
- package/pinyin/lib/data/dict1.js +1 -1
- package/pinyin/lib/data/dict2.js +1 -1
- package/pinyin/lib/data/dict3.js +1 -1
- package/pinyin/lib/data/dict4.js +1 -1
- package/pinyin/lib/data/dict5.js +1 -1
- package/pinyin/lib/data/special.js +1 -1
- package/pinyin/lib/data/surname.js +1 -1
- package/pinyin/lib/index.js +1 -1
- package/query-string/base.js +1 -1
- package/query-string/index.js +1 -1
- package/query-string/splitOnFirst.js +1 -1
- package/random/address.js +1 -1
- package/random/constellation.js +1 -1
- package/random/image.js +1 -1
- package/random/index.js +1 -1
- package/random/licensePlate.js +1 -1
- package/random/name.js +1 -1
- package/random/number.js +1 -1
- package/random/text.js +1 -1
- package/random/time.js +1 -1
- package/random/web.js +1 -1
- package/sanitize-url/index.js +1 -1
- package/screenfull/index.js +1 -1
- package/sleep/index.js +5 -3
- package/snapdom/index.browser.js +1 -1
- package/snapdom/index.js +1 -1
- package/snapdom/src/api/preCache.js +1 -1
- package/snapdom/src/api/snapdom.js +1 -1
- package/snapdom/src/core/cache.js +1 -1
- package/snapdom/src/core/capture.js +1 -1
- package/snapdom/src/core/clone.js +1 -1
- package/snapdom/src/core/context.js +1 -1
- package/snapdom/src/core/plugins.js +1 -1
- package/snapdom/src/core/prepare.js +1 -1
- package/snapdom/src/exporters/download.js +1 -1
- package/snapdom/src/exporters/toBlob.js +1 -1
- package/snapdom/src/exporters/toCanvas.js +1 -1
- package/snapdom/src/exporters/toImg.js +1 -1
- package/snapdom/src/index.browser.js +1 -1
- package/snapdom/src/index.js +1 -1
- package/snapdom/src/modules/CSSVar.js +1 -1
- package/snapdom/src/modules/background.js +1 -1
- package/snapdom/src/modules/changeCSS.js +1 -1
- package/snapdom/src/modules/counter.js +1 -1
- package/snapdom/src/modules/fonts.js +1 -1
- package/snapdom/src/modules/iconFonts.js +1 -1
- package/snapdom/src/modules/images.js +1 -1
- package/snapdom/src/modules/lineClamp.js +1 -1
- package/snapdom/src/modules/pictureResolver.js +1 -1
- package/snapdom/src/modules/pseudo.js +1 -1
- package/snapdom/src/modules/rasterize.js +1 -1
- package/snapdom/src/modules/snapFetch.js +1 -1
- package/snapdom/src/modules/styles.js +1 -1
- package/snapdom/src/modules/svgDefs.js +1 -1
- package/snapdom/src/utils/browser.js +1 -1
- package/snapdom/src/utils/capture.helpers.js +1 -1
- package/snapdom/src/utils/clone.helpers.js +1 -1
- package/snapdom/src/utils/css.js +1 -1
- package/snapdom/src/utils/debug.js +1 -1
- package/snapdom/src/utils/helpers.js +1 -1
- package/snapdom/src/utils/image.js +1 -1
- package/snapdom/src/utils/index.js +1 -1
- package/snapdom/src/utils/prepare.helpers.js +1 -1
- package/snapdom/src/utils/transforms.helpers.js +1 -1
- package/string/chars.js +1 -1
- package/string/index.js +1 -1
- package/tinycolor/conversion.js +1 -1
- package/tinycolor/css-color-names.js +1 -1
- package/tinycolor/format-input.js +29 -29
- package/tinycolor/from-ratio.js +1 -1
- package/tinycolor/index.js +1 -1
- package/tinycolor/interfaces.js +1 -1
- package/tinycolor/public_api.js +1 -1
- package/tinycolor/random.js +1 -1
- package/tinycolor/readability.js +1 -1
- package/tinycolor/to-ms-filter.js +1 -1
- package/tinycolor/umd_api.js +1 -1
- package/tinycolor/utils.js +1 -1
- package/tree/index.js +1 -1
- package/tree/searchTree.js +1 -1
- package/tween/easing.js +1 -1
- package/tween/index.js +1 -1
- package/tween/tween.js +1 -1
- package/ui-color/compareColorByRange.js +1 -1
- package/ui-color/index.js +1 -1
- package/url-toolkit/index.js +1 -1
- package/validate/index.js +1 -1
- package/validate/interface.js +1 -1
- package/validate/locale/en-US.js +1 -1
- package/validate/locale/index.js +1 -1
- package/validate/locale/zh-CN.js +1 -1
- package/validate/rules/array.js +1 -1
- package/validate/rules/base.js +1 -1
- package/validate/rules/boolean.js +1 -1
- package/validate/rules/custom.js +1 -1
- package/validate/rules/number.js +1 -1
- package/validate/rules/object.js +1 -1
- package/validate/rules/string.js +1 -1
- package/validate/rules/type.js +1 -1
- package/version/index.js +1 -1
- package/xlsx/crc32.js +1 -1
- package/xlsx/index.js +1 -1
- package/xlsx/xlsx.js +607 -623
package/xlsx/xlsx.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-05-
|
|
1
|
+
/* 潘启宝 2026-05-26 16:18:50 星期二 山东省济南市 */
|
|
2
2
|
import { hasOwn as e } from "../object/index.js";
|
|
3
3
|
import t from "../file/saveAs.js";
|
|
4
4
|
import n from "./crc32.js";
|
|
@@ -109,7 +109,7 @@ function T(e) {
|
|
|
109
109
|
for (let l = 0; l < e.length;) n = e[l++], a = n >> 2, r = e[l++], o = (n & 3) << 4 | r >> 4, i = e[l++], s = (r & 15) << 2 | i >> 6, c = i & 63, isNaN(r) ? s = c = 64 : isNaN(i) && (c = 64), t += S.charAt(a) + S.charAt(o) + S.charAt(s) + S.charAt(c);
|
|
110
110
|
return t;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function ee(e) {
|
|
113
113
|
let t = "", n = 0, r = 0, i = 0, a = 0, o = 0, s = 0, c = 0;
|
|
114
114
|
if (e.slice(0, 5) == "data:") {
|
|
115
115
|
let t = e.slice(0, 1024).indexOf(";base64,");
|
|
@@ -119,9 +119,9 @@ function E(e) {
|
|
|
119
119
|
for (let l = 0; l < e.length;) a = S.indexOf(e.charAt(l++)), o = S.indexOf(e.charAt(l++)), n = a << 2 | o >> 4, t += String.fromCharCode(n), s = S.indexOf(e.charAt(l++)), r = (o & 15) << 4 | s >> 2, s !== 64 && (t += String.fromCharCode(r)), c = S.indexOf(e.charAt(l++)), i = (s & 3) << 6 | c, c !== 64 && (t += String.fromCharCode(i));
|
|
120
120
|
return t;
|
|
121
121
|
}
|
|
122
|
-
var
|
|
122
|
+
var E = (function() {
|
|
123
123
|
return typeof Buffer < "u" && typeof process < "u" && process.versions !== void 0 && !!process.versions.node;
|
|
124
|
-
})(),
|
|
124
|
+
})(), D = (function() {
|
|
125
125
|
if (typeof Buffer < "u") {
|
|
126
126
|
let e = !Buffer.from;
|
|
127
127
|
if (!e) try {
|
|
@@ -134,29 +134,29 @@ var D = (function() {
|
|
|
134
134
|
} : Buffer.from.bind(Buffer);
|
|
135
135
|
}
|
|
136
136
|
return function() {};
|
|
137
|
-
})(),
|
|
137
|
+
})(), O = (function() {
|
|
138
138
|
if (typeof Buffer > "u") return !1;
|
|
139
|
-
let e =
|
|
139
|
+
let e = D([65, 0]);
|
|
140
140
|
return e ? e.toString("utf16le").length == 1 : !1;
|
|
141
141
|
})();
|
|
142
|
-
function
|
|
143
|
-
return
|
|
142
|
+
function k(e) {
|
|
143
|
+
return E ? Buffer.alloc ? Buffer.alloc(e) : Buffer.from(e) : typeof Uint8Array < "u" ? new Uint8Array(e) : Array(e);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
return
|
|
145
|
+
function te(e) {
|
|
146
|
+
return E ? Buffer.allocUnsafe ? Buffer.allocUnsafe(e) : Buffer.from(e) : typeof Uint8Array < "u" ? new Uint8Array(e) : Array(e);
|
|
147
147
|
}
|
|
148
|
-
var
|
|
149
|
-
return
|
|
148
|
+
var A = function(e) {
|
|
149
|
+
return E ? D(e, "binary") : e.split("").map(function(e) {
|
|
150
150
|
return e.charCodeAt(0) & 255;
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
|
-
function
|
|
154
|
-
if (typeof ArrayBuffer > "u") return
|
|
153
|
+
function ne(e) {
|
|
154
|
+
if (typeof ArrayBuffer > "u") return A(e);
|
|
155
155
|
let t = new ArrayBuffer(e.length), n = new Uint8Array(t);
|
|
156
156
|
for (let t = 0; t != e.length; ++t) n[t] = e.charCodeAt(t) & 255;
|
|
157
157
|
return t;
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function j(e) {
|
|
160
160
|
if (Array.isArray(e)) return e.map(function(e) {
|
|
161
161
|
return String.fromCharCode(e);
|
|
162
162
|
}).join("");
|
|
@@ -164,35 +164,35 @@ function te(e) {
|
|
|
164
164
|
for (let n = 0; n < e.length; ++n) t[n] = String.fromCharCode(e[n]);
|
|
165
165
|
return t.join("");
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function re(e) {
|
|
168
168
|
if (typeof Uint8Array > "u") throw Error("Unsupported");
|
|
169
169
|
return new Uint8Array(e);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function ie(e) {
|
|
172
172
|
if (typeof ArrayBuffer > "u") throw Error("Unsupported");
|
|
173
|
-
if (e instanceof ArrayBuffer) return
|
|
173
|
+
if (e instanceof ArrayBuffer) return ie(new Uint8Array(e));
|
|
174
174
|
let t = Array(e.length);
|
|
175
175
|
for (let n = 0; n < e.length; ++n) t[n] = e[n];
|
|
176
176
|
return t;
|
|
177
177
|
}
|
|
178
|
-
var
|
|
178
|
+
var M = E ? function(e) {
|
|
179
179
|
return Buffer.concat(e.map(function(e) {
|
|
180
|
-
return Buffer.isBuffer(e) ? e :
|
|
180
|
+
return Buffer.isBuffer(e) ? e : D(e);
|
|
181
181
|
}));
|
|
182
182
|
} : function(e) {
|
|
183
183
|
if (typeof Uint8Array < "u") {
|
|
184
184
|
let t = 0, n = 0;
|
|
185
185
|
for (t = 0; t < e.length; ++t) n += e[t].length;
|
|
186
186
|
let r = new Uint8Array(n), i = 0;
|
|
187
|
-
for (t = 0, n = 0; t < e.length; n += i, ++t) i = e[t].length, e[t] instanceof Uint8Array ? r.set(e[t], n) : typeof e[t] == "string" ? r.set(new Uint8Array(
|
|
187
|
+
for (t = 0, n = 0; t < e.length; n += i, ++t) i = e[t].length, e[t] instanceof Uint8Array ? r.set(e[t], n) : typeof e[t] == "string" ? r.set(new Uint8Array(A(e[t])), n) : r.set(new Uint8Array(e[t]), n);
|
|
188
188
|
return r;
|
|
189
189
|
}
|
|
190
190
|
return [].concat.apply([], e.map(function(e) {
|
|
191
191
|
return Array.isArray(e) ? e : [].slice.call(e);
|
|
192
192
|
}));
|
|
193
193
|
};
|
|
194
|
-
function
|
|
195
|
-
let t = [], n = 0, r = e.length + 250, i =
|
|
194
|
+
function ae(e) {
|
|
195
|
+
let t = [], n = 0, r = e.length + 250, i = k(e.length + 255);
|
|
196
196
|
for (let a = 0; a < e.length; ++a) {
|
|
197
197
|
let o = e.charCodeAt(a);
|
|
198
198
|
if (o < 128) i[n++] = o;
|
|
@@ -202,12 +202,12 @@ function P(e) {
|
|
|
202
202
|
let t = e.charCodeAt(++a) & 1023;
|
|
203
203
|
i[n++] = 240 | o >> 8 & 7, i[n++] = 128 | o >> 2 & 63, i[n++] = 128 | t >> 6 & 15 | (o & 3) << 4, i[n++] = 128 | t & 63;
|
|
204
204
|
} else i[n++] = 224 | o >> 12 & 15, i[n++] = 128 | o >> 6 & 63, i[n++] = 128 | o & 63;
|
|
205
|
-
n > r && (t.push(i.slice(0, n)), n = 0, i =
|
|
205
|
+
n > r && (t.push(i.slice(0, n)), n = 0, i = k(65535), r = 65530);
|
|
206
206
|
}
|
|
207
|
-
return t.push(i.slice(0, n)),
|
|
207
|
+
return t.push(i.slice(0, n)), M(t);
|
|
208
208
|
}
|
|
209
|
-
var
|
|
210
|
-
function
|
|
209
|
+
var N = /\u0000/g, oe = /[\u0001-\u0006]/g;
|
|
210
|
+
function P(e) {
|
|
211
211
|
let t = "", n = e.length - 1;
|
|
212
212
|
for (; n >= 0;) t += e.charAt(n--);
|
|
213
213
|
return t;
|
|
@@ -686,7 +686,7 @@ function Ge(e, t, n) {
|
|
|
686
686
|
if (i = t.match(/^#{1,3},##0(\.?)$/)) return c + ke(fe(s, 0));
|
|
687
687
|
if (i = t.match(/^#,##0\.([#0]*0)$/)) return n < 0 ? "-" + Ge(e, t, -n) : ke("" + (Math.floor(n) + Ue(n, i[1].length))) + "." + F(He(n, i[1].length), i[1].length);
|
|
688
688
|
if (i = t.match(/^#,#*,#0/)) return Ge(e, t.replace(/^#,#*,/, ""), n);
|
|
689
|
-
if (i = t.match(/^([0#]+)(\\?-([0#]+))+$/)) return r =
|
|
689
|
+
if (i = t.match(/^([0#]+)(\\?-([0#]+))+$/)) return r = P(Ge(e, t.replace(/[\\-]/g, ""), n)), a = 0, P(P(t.replace(/\\/g, "")).replace(/[0#]/g, function(e) {
|
|
690
690
|
return a < r.length ? r.charAt(a++) : e === "0" ? "0" : "";
|
|
691
691
|
}));
|
|
692
692
|
if (t.match(ze)) return r = Ge(e, "##########", n), "(" + r.substring(0, 3) + ") " + r.substring(3, 6) + "-" + r.substring(6);
|
|
@@ -763,7 +763,7 @@ function Ye(e, t, n) {
|
|
|
763
763
|
if (i = t.match(/^#{1,3},##0(\.?)$/)) return c + ke("" + s);
|
|
764
764
|
if (i = t.match(/^#,##0\.([#0]*0)$/)) return n < 0 ? "-" + Ye(e, t, -n) : ke("" + n) + "." + Lt("0", i[1].length);
|
|
765
765
|
if (i = t.match(/^#,#*,#0/)) return Ye(e, t.replace(/^#,#*,/, ""), n);
|
|
766
|
-
if (i = t.match(/^([0#]+)(\\?-([0#]+))+$/)) return r =
|
|
766
|
+
if (i = t.match(/^([0#]+)(\\?-([0#]+))+$/)) return r = P(Ye(e, t.replace(/[\\-]/g, ""), n)), a = 0, P(P(t.replace(/\\/g, "")).replace(/[0#]/g, function(e) {
|
|
767
767
|
return a < r.length ? r.charAt(a++) : e === "0" ? "0" : "";
|
|
768
768
|
}));
|
|
769
769
|
if (t.match(ze)) return r = Ye(e, "##########", n), "(" + r.substring(0, 3) + ") " + r.substring(3, 6) + "-" + r.substring(6);
|
|
@@ -1465,21 +1465,21 @@ var R = (function() {
|
|
|
1465
1465
|
let x = p(e, r);
|
|
1466
1466
|
g(c, a, x, r, l);
|
|
1467
1467
|
let S = v(x, o, l, r);
|
|
1468
|
-
o < S.length && (S[o].name = "!Directory"), i > 0 && s !==
|
|
1469
|
-
let C = {}, w = [], T = [],
|
|
1470
|
-
y(o, S, x, w, i, C, T, s), m(T,
|
|
1471
|
-
let
|
|
1468
|
+
o < S.length && (S[o].name = "!Directory"), i > 0 && s !== ie && (S[s].name = "!MiniFAT"), S[l[0]].name = "!FAT", S.fat_addrs = l, S.ssz = r;
|
|
1469
|
+
let C = {}, w = [], T = [], ee = [];
|
|
1470
|
+
y(o, S, x, w, i, C, T, s), m(T, ee, w), w.shift();
|
|
1471
|
+
let E = {
|
|
1472
1472
|
FileIndex: T,
|
|
1473
|
-
FullPaths:
|
|
1473
|
+
FullPaths: ee
|
|
1474
1474
|
};
|
|
1475
|
-
return t && t.raw && (
|
|
1475
|
+
return t && t.raw && (E.raw = {
|
|
1476
1476
|
header: _,
|
|
1477
1477
|
sectors: x
|
|
1478
|
-
}),
|
|
1478
|
+
}), E;
|
|
1479
1479
|
}
|
|
1480
1480
|
function d(e) {
|
|
1481
1481
|
if (e[e.l] == 80 && e[e.l + 1] == 75) return [0, 0];
|
|
1482
|
-
e.chk(
|
|
1482
|
+
e.chk(ae, "Header Signature: "), e.l += 16;
|
|
1483
1483
|
let t = e.read_shift(2, "u");
|
|
1484
1484
|
return [e.read_shift(2, "u"), t];
|
|
1485
1485
|
}
|
|
@@ -1516,17 +1516,17 @@ var R = (function() {
|
|
|
1516
1516
|
}
|
|
1517
1517
|
function h(e, t, n) {
|
|
1518
1518
|
let r = e.start, i = e.size, a = [], o = r;
|
|
1519
|
-
for (; n && i > 0 && o >= 0;) a.push(t.slice(o *
|
|
1520
|
-
return a.length === 0 ? U(0) :
|
|
1519
|
+
for (; n && i > 0 && o >= 0;) a.push(t.slice(o * re, o * re + re)), i -= re, o = Mr(n, o * 4);
|
|
1520
|
+
return a.length === 0 ? U(0) : M(a).slice(0, e.size);
|
|
1521
1521
|
}
|
|
1522
1522
|
function g(e, t, n, r, i) {
|
|
1523
|
-
let a =
|
|
1524
|
-
if (e ===
|
|
1523
|
+
let a = ie;
|
|
1524
|
+
if (e === ie) {
|
|
1525
1525
|
if (t !== 0) throw Error("DIFAT chain shorter than expected");
|
|
1526
1526
|
} else if (e !== -1) {
|
|
1527
1527
|
let o = n[e], s = (r >>> 2) - 1;
|
|
1528
1528
|
if (!o) return;
|
|
1529
|
-
for (let e = 0; e < s && (a = Mr(o, e * 4)) !==
|
|
1529
|
+
for (let e = 0; e < s && (a = Mr(o, e * 4)) !== ie; ++e) i.push(a);
|
|
1530
1530
|
t >= 1 && g(Mr(o, r - 4), t - 1, n, r, i);
|
|
1531
1531
|
}
|
|
1532
1532
|
}
|
|
@@ -1582,7 +1582,7 @@ var R = (function() {
|
|
|
1582
1582
|
start: 0,
|
|
1583
1583
|
size: 0
|
|
1584
1584
|
};
|
|
1585
|
-
e.read_shift(2) + e.read_shift(2) + e.read_shift(2) + e.read_shift(2) !== 0 && (m.ct = b(e, e.l - 8)), e.read_shift(2) + e.read_shift(2) + e.read_shift(2) + e.read_shift(2) !== 0 && (m.mt = b(e, e.l - 8)), m.start = e.read_shift(4, "i"), m.size = e.read_shift(4, "i"), m.size < 0 && m.start < 0 && (m.size = m.type = 0, m.start =
|
|
1585
|
+
e.read_shift(2) + e.read_shift(2) + e.read_shift(2) + e.read_shift(2) !== 0 && (m.ct = b(e, e.l - 8)), e.read_shift(2) + e.read_shift(2) + e.read_shift(2) + e.read_shift(2) !== 0 && (m.mt = b(e, e.l - 8)), m.start = e.read_shift(4, "i"), m.size = e.read_shift(4, "i"), m.size < 0 && m.start < 0 && (m.size = m.type = 0, m.start = ie, m.name = ""), m.type === 5 ? (c = m.start, i > 0 && c !== ie && (t[c].name = "!StreamData")) : m.size >= 4096 ? (m.storage = "fat", t[m.start] === void 0 && (t[m.start] = _(n, m.start, t.fat_addrs, t.ssz)), t[m.start].name = m.name, m.content = t[m.start].data.slice(0, m.size)) : (m.storage = "minifat", m.size < 0 ? m.size = 0 : c !== ie && m.start !== ie && t[c] && (m.content = h(m, t[c].data, (t[s] || {}).data))), m.content && Br(m.content, 0), a[p] = m, o.push(m);
|
|
1586
1586
|
}
|
|
1587
1587
|
}
|
|
1588
1588
|
function b(e, t) {
|
|
@@ -1593,10 +1593,10 @@ var R = (function() {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
function S(e, t) {
|
|
1595
1595
|
let n = t && t.type;
|
|
1596
|
-
switch (n ||
|
|
1596
|
+
switch (n || E && Buffer.isBuffer(e) && (n = "buffer"), n || "base64") {
|
|
1597
1597
|
case "file": return x(e, t);
|
|
1598
|
-
case "base64": return u(ee(
|
|
1599
|
-
case "binary": return u(
|
|
1598
|
+
case "base64": return u(A(ee(e)), t);
|
|
1599
|
+
case "binary": return u(A(e), t);
|
|
1600
1600
|
}
|
|
1601
1601
|
return u(e, t);
|
|
1602
1602
|
}
|
|
@@ -1610,7 +1610,7 @@ var R = (function() {
|
|
|
1610
1610
|
}
|
|
1611
1611
|
function T(e) {
|
|
1612
1612
|
let t = "Sh33tJ5";
|
|
1613
|
-
if (R.find(e, "
|
|
1613
|
+
if (R.find(e, "/Sh33tJ5")) return;
|
|
1614
1614
|
let n = U(4);
|
|
1615
1615
|
n[0] = 55, n[1] = n[3] = 50, n[2] = 54, e.FileIndex.push({
|
|
1616
1616
|
name: t,
|
|
@@ -1620,9 +1620,9 @@ var R = (function() {
|
|
|
1620
1620
|
L: 69,
|
|
1621
1621
|
R: 69,
|
|
1622
1622
|
C: 69
|
|
1623
|
-
}), e.FullPaths.push(e.FullPaths[0] + t),
|
|
1623
|
+
}), e.FullPaths.push(e.FullPaths[0] + t), O(e);
|
|
1624
1624
|
}
|
|
1625
|
-
function
|
|
1625
|
+
function O(e, n) {
|
|
1626
1626
|
w(e);
|
|
1627
1627
|
let a = !1, o = !1;
|
|
1628
1628
|
for (var s = e.FullPaths.length - 1; s >= 0; --s) {
|
|
@@ -1671,10 +1671,10 @@ var R = (function() {
|
|
|
1671
1671
|
} else r(e.FullPaths[s + 1] || "") == r(n) && (t.R = s + 1), t.type = 2;
|
|
1672
1672
|
}
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function ne(e, t) {
|
|
1675
1675
|
let n = t || {};
|
|
1676
1676
|
if (n.fileType == "mad") return rt(e, n);
|
|
1677
|
-
switch (
|
|
1677
|
+
switch (O(e), n.fileType) {
|
|
1678
1678
|
case "zip": return Ye(e, n);
|
|
1679
1679
|
}
|
|
1680
1680
|
let r = (function(e) {
|
|
@@ -1699,17 +1699,17 @@ var R = (function() {
|
|
|
1699
1699
|
];
|
|
1700
1700
|
return e.FileIndex[0].size = t << 6, l[7] = (e.FileIndex[0].start = l[0] + l[1] + l[2] + l[3] + l[4] + l[5]) + (l[6] + 7 >> 3), l;
|
|
1701
1701
|
})(e), i = U(r[7] << 9), a = 0, o = 0;
|
|
1702
|
-
for (a = 0; a < 8; ++a) i.write_shift(1,
|
|
1702
|
+
for (a = 0; a < 8; ++a) i.write_shift(1, P[a]);
|
|
1703
1703
|
for (a = 0; a < 8; ++a) i.write_shift(2, 0);
|
|
1704
1704
|
for (i.write_shift(2, 62), i.write_shift(2, 3), i.write_shift(2, 65534), i.write_shift(2, 9), i.write_shift(2, 6), a = 0; a < 3; ++a) i.write_shift(2, 0);
|
|
1705
|
-
for (i.write_shift(4, 0), i.write_shift(4, r[2]), i.write_shift(4, r[0] + r[1] + r[2] + r[3] - 1), i.write_shift(4, 0), i.write_shift(4, 4096), i.write_shift(4, r[3] ? r[0] + r[1] + r[2] - 1 :
|
|
1705
|
+
for (i.write_shift(4, 0), i.write_shift(4, r[2]), i.write_shift(4, r[0] + r[1] + r[2] + r[3] - 1), i.write_shift(4, 0), i.write_shift(4, 4096), i.write_shift(4, r[3] ? r[0] + r[1] + r[2] - 1 : ie), i.write_shift(4, r[3]), i.write_shift(-4, r[1] ? r[0] - 1 : ie), i.write_shift(4, r[1]), a = 0; a < 109; ++a) i.write_shift(-4, a < r[2] ? r[1] + a : -1);
|
|
1706
1706
|
if (r[1]) for (o = 0; o < r[1]; ++o) {
|
|
1707
1707
|
for (; a < 236 + o * 127; ++a) i.write_shift(-4, a < r[2] ? r[1] + a : -1);
|
|
1708
|
-
i.write_shift(-4, o === r[1] - 1 ?
|
|
1708
|
+
i.write_shift(-4, o === r[1] - 1 ? ie : o + 1);
|
|
1709
1709
|
}
|
|
1710
1710
|
let s = function(e) {
|
|
1711
1711
|
for (o += e; a < o - 1; ++a) i.write_shift(-4, a + 1);
|
|
1712
|
-
e && (++a, i.write_shift(-4,
|
|
1712
|
+
e && (++a, i.write_shift(-4, ie));
|
|
1713
1713
|
};
|
|
1714
1714
|
for (o = a = 0, o += r[1]; a < o; ++a) i.write_shift(-4, se.DIFSECT);
|
|
1715
1715
|
for (o += r[2]; a < o; ++a) i.write_shift(-4, se.FATSECT);
|
|
@@ -1727,27 +1727,27 @@ var R = (function() {
|
|
|
1727
1727
|
for (c = 0; c < 12; ++c) i.write_shift(4, 0);
|
|
1728
1728
|
continue;
|
|
1729
1729
|
}
|
|
1730
|
-
u = e.FileIndex[a], a === 0 && (u.start = u.size ? u.start - 1 :
|
|
1730
|
+
u = e.FileIndex[a], a === 0 && (u.start = u.size ? u.start - 1 : ie);
|
|
1731
1731
|
let r = a === 0 && n.root || u.name;
|
|
1732
1732
|
if (r.length > 31 && (console.error("Name " + r + " will be truncated to " + r.slice(0, 31)), r = r.slice(0, 31)), l = 2 * (r.length + 1), i.write_shift(64, r, "utf16le"), i.write_shift(2, l), i.write_shift(1, u.type), i.write_shift(1, u.color), i.write_shift(-4, u.L), i.write_shift(-4, u.R), i.write_shift(-4, u.C), u.clsid) i.write_shift(16, u.clsid, "hex");
|
|
1733
1733
|
else for (c = 0; c < 4; ++c) i.write_shift(4, 0);
|
|
1734
1734
|
i.write_shift(4, u.state || 0), i.write_shift(4, 0), i.write_shift(4, 0), i.write_shift(4, 0), i.write_shift(4, 0), i.write_shift(4, u.start), i.write_shift(4, u.size), i.write_shift(4, 0);
|
|
1735
1735
|
}
|
|
1736
|
-
for (a = 1; a < e.FileIndex.length; ++a) if (u = e.FileIndex[a], u.size >= 4096) if (i.l = u.start + 1 << 9,
|
|
1736
|
+
for (a = 1; a < e.FileIndex.length; ++a) if (u = e.FileIndex[a], u.size >= 4096) if (i.l = u.start + 1 << 9, E && Buffer.isBuffer(u.content)) u.content.copy(i, i.l, 0, u.size), i.l += u.size + 511 & -512;
|
|
1737
1737
|
else {
|
|
1738
1738
|
for (c = 0; c < u.size; ++c) i.write_shift(1, u.content[c]);
|
|
1739
1739
|
for (; c & 511; ++c) i.write_shift(1, 0);
|
|
1740
1740
|
}
|
|
1741
|
-
for (a = 1; a < e.FileIndex.length; ++a) if (u = e.FileIndex[a], u.size > 0 && u.size < 4096) if (
|
|
1741
|
+
for (a = 1; a < e.FileIndex.length; ++a) if (u = e.FileIndex[a], u.size > 0 && u.size < 4096) if (E && Buffer.isBuffer(u.content)) u.content.copy(i, i.l, 0, u.size), i.l += u.size + 63 & -64;
|
|
1742
1742
|
else {
|
|
1743
1743
|
for (c = 0; c < u.size; ++c) i.write_shift(1, u.content[c]);
|
|
1744
1744
|
for (; c & 63; ++c) i.write_shift(1, 0);
|
|
1745
1745
|
}
|
|
1746
|
-
if (
|
|
1746
|
+
if (E) i.l = i.length;
|
|
1747
1747
|
else for (; i.l < i.length;) i.write_shift(1, 0);
|
|
1748
1748
|
return i;
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1750
|
+
function j(e, t) {
|
|
1751
1751
|
let n = e.FullPaths.map(function(e) {
|
|
1752
1752
|
return e.toUpperCase();
|
|
1753
1753
|
}), r = n.map(function(e) {
|
|
@@ -1757,11 +1757,11 @@ var R = (function() {
|
|
|
1757
1757
|
t.charCodeAt(0) === 47 ? (i = !0, t = n[0].slice(0, -1) + t) : i = t.indexOf("/") !== -1;
|
|
1758
1758
|
let a = t.toUpperCase(), o = i === !0 ? n.indexOf(a) : r.indexOf(a);
|
|
1759
1759
|
if (o !== -1) return e.FileIndex[o];
|
|
1760
|
-
let s = !a.match(
|
|
1761
|
-
for (a = a.replace(
|
|
1760
|
+
let s = !a.match(oe);
|
|
1761
|
+
for (a = a.replace(N, ""), s && (a = a.replace(oe, "!")), o = 0; o < n.length; ++o) if ((s ? n[o].replace(oe, "!") : n[o]).replace(N, "") == a || (s ? r[o].replace(oe, "!") : r[o]).replace(N, "") == a) return e.FileIndex[o];
|
|
1762
1762
|
return null;
|
|
1763
1763
|
}
|
|
1764
|
-
var
|
|
1764
|
+
var re = 64, ie = -2, ae = "d0cf11e0a1b11ae1", P = [
|
|
1765
1765
|
208,
|
|
1766
1766
|
207,
|
|
1767
1767
|
17,
|
|
@@ -1774,9 +1774,9 @@ var R = (function() {
|
|
|
1774
1774
|
MAXREGSECT: -6,
|
|
1775
1775
|
DIFSECT: -4,
|
|
1776
1776
|
FATSECT: -3,
|
|
1777
|
-
ENDOFCHAIN:
|
|
1777
|
+
ENDOFCHAIN: ie,
|
|
1778
1778
|
FREESECT: -1,
|
|
1779
|
-
HEADER_SIGNATURE:
|
|
1779
|
+
HEADER_SIGNATURE: ae,
|
|
1780
1780
|
HEADER_MINOR_VERSION: "3e00",
|
|
1781
1781
|
MAXREGSID: -6,
|
|
1782
1782
|
NOSTREAM: -1,
|
|
@@ -1792,7 +1792,7 @@ var R = (function() {
|
|
|
1792
1792
|
};
|
|
1793
1793
|
function ce(e, t, n) {
|
|
1794
1794
|
l();
|
|
1795
|
-
let r =
|
|
1795
|
+
let r = ne(e, n);
|
|
1796
1796
|
c.writeFileSync(t, r);
|
|
1797
1797
|
}
|
|
1798
1798
|
function le(e) {
|
|
@@ -1801,13 +1801,13 @@ var R = (function() {
|
|
|
1801
1801
|
return t.join("");
|
|
1802
1802
|
}
|
|
1803
1803
|
function ue(e, t) {
|
|
1804
|
-
let n =
|
|
1804
|
+
let n = ne(e, t);
|
|
1805
1805
|
switch (t && t.type || "buffer") {
|
|
1806
1806
|
case "file": return l(), c.writeFileSync(t.filename, n), n;
|
|
1807
1807
|
case "binary": return typeof n == "string" ? n : le(n);
|
|
1808
1808
|
case "base64": return C(typeof n == "string" ? n : le(n));
|
|
1809
|
-
case "buffer": if (
|
|
1810
|
-
case "array": return typeof n == "string" ?
|
|
1809
|
+
case "buffer": if (E) return Buffer.isBuffer(n) ? n : D(n);
|
|
1810
|
+
case "array": return typeof n == "string" ? A(n) : n;
|
|
1811
1811
|
}
|
|
1812
1812
|
return n;
|
|
1813
1813
|
}
|
|
@@ -1964,8 +1964,8 @@ var R = (function() {
|
|
|
1964
1964
|
function Ae(e, t) {
|
|
1965
1965
|
let n = e.length, r = 2 * n > t ? 2 * n : t + 5, i = 0;
|
|
1966
1966
|
if (n >= t) return e;
|
|
1967
|
-
if (
|
|
1968
|
-
let t =
|
|
1967
|
+
if (E) {
|
|
1968
|
+
let t = te(r);
|
|
1969
1969
|
if (e.copy) e.copy(t);
|
|
1970
1970
|
else for (; i < e.length; ++i) t[i] = e[i];
|
|
1971
1971
|
return t;
|
|
@@ -2122,8 +2122,8 @@ var R = (function() {
|
|
|
2122
2122
|
return Ve = Me(g, Re, 286), He = Me(_, ze, 30), t;
|
|
2123
2123
|
}
|
|
2124
2124
|
function We(e, t) {
|
|
2125
|
-
if (e[0] == 3 && !(e[1] & 3)) return [
|
|
2126
|
-
let n = 0, r = 0, i =
|
|
2125
|
+
if (e[0] == 3 && !(e[1] & 3)) return [k(t), 2];
|
|
2126
|
+
let n = 0, r = 0, i = te(t || 1 << 18), a = 0, o = i.length >>> 0, s = 0, c = 0;
|
|
2127
2127
|
for (; !(r & 1);) {
|
|
2128
2128
|
if (r = xe(e, n), n += 3, r >>> 1) r >> 1 == 1 ? (s = 9, c = 5) : (n = Ue(e, n), s = Ve, c = He);
|
|
2129
2129
|
else {
|
|
@@ -2215,12 +2215,12 @@ var R = (function() {
|
|
|
2215
2215
|
let t = d, r = U(m.length);
|
|
2216
2216
|
for (u = 0; u < m.length; ++u) r.write_shift(1, m.charCodeAt(u) & 127);
|
|
2217
2217
|
r = r.slice(0, r.l), g[f] = typeof h.content == "string" ? n.bstr(h.content, 0) : n.buf(h.content, 0);
|
|
2218
|
-
let v = typeof h.content == "string" ?
|
|
2218
|
+
let v = typeof h.content == "string" ? A(h.content) : h.content;
|
|
2219
2219
|
c == 8 && (v = I(v)), s = U(30), s.write_shift(4, 67324752), s.write_shift(2, 20), s.write_shift(2, 0), s.write_shift(2, c), h.mt ? a(s, h.mt) : s.write_shift(4, 0), s.write_shift(-4, g[f]), s.write_shift(4, v.length), s.write_shift(4, h.content.length), s.write_shift(2, r.length), s.write_shift(2, 0), d += s.length, i.push(s), d += r.length, i.push(r), d += v.length, i.push(v), s = U(46), s.write_shift(4, 33639248), s.write_shift(2, 0), s.write_shift(2, 20), s.write_shift(2, 0), s.write_shift(2, c), s.write_shift(4, 0), s.write_shift(-4, g[f]), s.write_shift(4, v.length), s.write_shift(4, h.content.length), s.write_shift(2, r.length), s.write_shift(2, 0), s.write_shift(2, 0), s.write_shift(2, 0), s.write_shift(2, 0), s.write_shift(4, 0), s.write_shift(4, t), _ += s.l, o.push(s), _ += r.length, o.push(r), ++f;
|
|
2220
2220
|
}
|
|
2221
|
-
return s = U(22), s.write_shift(4, 101010256), s.write_shift(2, 0), s.write_shift(2, 0), s.write_shift(2, f), s.write_shift(2, f), s.write_shift(4, _), s.write_shift(4, d), s.write_shift(2, 0),
|
|
2222
|
-
|
|
2223
|
-
|
|
2221
|
+
return s = U(22), s.write_shift(4, 101010256), s.write_shift(2, 0), s.write_shift(2, 0), s.write_shift(2, f), s.write_shift(2, f), s.write_shift(4, _), s.write_shift(4, d), s.write_shift(2, 0), M([
|
|
2222
|
+
M(i),
|
|
2223
|
+
M(o),
|
|
2224
2224
|
s
|
|
2225
2225
|
]);
|
|
2226
2226
|
}
|
|
@@ -2274,7 +2274,7 @@ var R = (function() {
|
|
|
2274
2274
|
for (let e = 0; e < t.length; ++e) t[e] = t[e].replace(/[=][0-9A-Fa-f]{2}/g, function(e) {
|
|
2275
2275
|
return String.fromCharCode(parseInt(e.slice(1), 16));
|
|
2276
2276
|
});
|
|
2277
|
-
return
|
|
2277
|
+
return A(t.join("\r\n"));
|
|
2278
2278
|
}
|
|
2279
2279
|
function tt(e, t, n) {
|
|
2280
2280
|
let r = "", i = "", a = "", o, s = 0;
|
|
@@ -2296,7 +2296,7 @@ var R = (function() {
|
|
|
2296
2296
|
}
|
|
2297
2297
|
switch (++s, i.toLowerCase()) {
|
|
2298
2298
|
case "base64":
|
|
2299
|
-
o = ee(
|
|
2299
|
+
o = A(ee(t.slice(s).join("")));
|
|
2300
2300
|
break;
|
|
2301
2301
|
case "quoted-printable":
|
|
2302
2302
|
o = et(t.slice(s));
|
|
@@ -2308,7 +2308,7 @@ var R = (function() {
|
|
|
2308
2308
|
}
|
|
2309
2309
|
function nt(e, t) {
|
|
2310
2310
|
if (le(e.slice(0, 13)).toLowerCase() != "mime-version:") throw Error("Unsupported MAD header");
|
|
2311
|
-
let n = t && t.root || "", r = (
|
|
2311
|
+
let n = t && t.root || "", r = (E && Buffer.isBuffer(e) ? e.toString("binary") : le(e)).split("\r\n"), i = 0, a = "";
|
|
2312
2312
|
for (i = 0; i < r.length; ++i) if (a = r[i], /^Content-Location:/i.test(a) && (a = a.slice(a.indexOf("file")), n ||= a.slice(0, a.lastIndexOf("/") + 1), a.slice(0, n.length) != n)) for (; n.length > 0 && (n = n.slice(0, n.length - 1), n = n.slice(0, n.lastIndexOf("/") + 1), a.slice(0, n.length) != n););
|
|
2313
2313
|
let o = (r[1] || "").match(/boundary="(.*?)"/);
|
|
2314
2314
|
if (!o) throw Error("MAD cannot find boundary");
|
|
@@ -2341,7 +2341,7 @@ var R = (function() {
|
|
|
2341
2341
|
}).replace(/[\u0080-\uFFFF]/g, function(e) {
|
|
2342
2342
|
return "_u" + e.charCodeAt(0).toString(16) + "_";
|
|
2343
2343
|
});
|
|
2344
|
-
let c = s.content, l =
|
|
2344
|
+
let c = s.content, l = E && Buffer.isBuffer(c) ? c.toString("binary") : le(c), u = 0, d = Math.min(1024, l.length), f = 0;
|
|
2345
2345
|
for (let e = 0; e <= d; ++e) (f = l.charCodeAt(e)) >= 32 && f < 128 && ++u;
|
|
2346
2346
|
let p = u >= d * 4 / 5;
|
|
2347
2347
|
i.push(r), i.push("Content-Location: " + (n.root || "file:///C:/SheetJS/") + o), i.push("Content-Transfer-Encoding: " + (p ? "quoted-printable" : "base64")), i.push("Content-Type: " + Ze(s, o)), i.push(""), i.push(p ? $e(l) : Qe(l));
|
|
@@ -2382,9 +2382,9 @@ var R = (function() {
|
|
|
2382
2382
|
return !1;
|
|
2383
2383
|
}
|
|
2384
2384
|
function ct(e) {
|
|
2385
|
-
|
|
2385
|
+
O(e, !0);
|
|
2386
2386
|
}
|
|
2387
|
-
return e.find =
|
|
2387
|
+
return e.find = j, e.read = S, e.parse = u, e.write = ue, e.writeFile = ce, e.utils = {
|
|
2388
2388
|
cfb_new: it,
|
|
2389
2389
|
cfb_add: at,
|
|
2390
2390
|
cfb_del: ot,
|
|
@@ -2393,7 +2393,7 @@ var R = (function() {
|
|
|
2393
2393
|
ReadShift: Pr,
|
|
2394
2394
|
CheckField: zr,
|
|
2395
2395
|
prep_blob: Br,
|
|
2396
|
-
bconcat:
|
|
2396
|
+
bconcat: M,
|
|
2397
2397
|
use_zlib: fe,
|
|
2398
2398
|
_deflateRaw: Le,
|
|
2399
2399
|
_inflateRaw: Ge,
|
|
@@ -2404,7 +2404,7 @@ function gt(e) {
|
|
|
2404
2404
|
ht = e;
|
|
2405
2405
|
}
|
|
2406
2406
|
function _t(e) {
|
|
2407
|
-
return typeof e == "string" ?
|
|
2407
|
+
return typeof e == "string" ? ne(e) : Array.isArray(e) ? re(e) : e;
|
|
2408
2408
|
}
|
|
2409
2409
|
function vt(e, n, r) {
|
|
2410
2410
|
if (ht !== void 0 && ht.writeFileSync) return r ? ht.writeFileSync(e, n, r) : ht.writeFileSync(e, n);
|
|
@@ -2414,7 +2414,7 @@ function vt(e, n, r) {
|
|
|
2414
2414
|
n = new TextEncoder(r).encode(n);
|
|
2415
2415
|
break;
|
|
2416
2416
|
case "binary":
|
|
2417
|
-
n =
|
|
2417
|
+
n = ne(n);
|
|
2418
2418
|
break;
|
|
2419
2419
|
default: throw Error("Unsupported encoding " + r);
|
|
2420
2420
|
}
|
|
@@ -2453,7 +2453,7 @@ function vt(e, n, r) {
|
|
|
2453
2453
|
if (typeof $ < "u" && typeof File < "u" && typeof Folder < "u") {
|
|
2454
2454
|
try {
|
|
2455
2455
|
let t = File(e);
|
|
2456
|
-
return t.open("w"), t.encoding = "binary", Array.isArray(n) && (n =
|
|
2456
|
+
return t.open("w"), t.encoding = "binary", Array.isArray(n) && (n = j(n)), t.write(n), t.close(), n;
|
|
2457
2457
|
} catch (e) {
|
|
2458
2458
|
if (!e.message || e.message.indexOf("onstruct") == -1) throw e;
|
|
2459
2459
|
}
|
|
@@ -2531,8 +2531,8 @@ function Pt(e, t) {
|
|
|
2531
2531
|
return n ? new Date((t ? Dt : Et) + ((parseInt(n[1], 10) * 60 + parseInt(n[2], 10)) * 60 + (n[3] ? parseInt(n[3].slice(1), 10) : 0)) * 1e3 + (n[4] ? parseInt((n[4] + "000").slice(1, 4), 10) : 0)) : (n = e.match(Mt), n ? new Date(Date.UTC(+n[1], n[2] - 1, +n[3], 0, 0, 0, 0)) : (n = e.match(Nt), n ? new Date(Date.UTC(+n[1], n[2] - 1, +n[3], +n[4], +n[5], n[6] && parseInt(n[6].slice(1), 10) || 0, n[7] && parseInt((n[7] + "0000").slice(1, 4), 10) || 0)) : new Date(e)));
|
|
2532
2532
|
}
|
|
2533
2533
|
function Ft(e, t) {
|
|
2534
|
-
if (
|
|
2535
|
-
if (t &&
|
|
2534
|
+
if (E && Buffer.isBuffer(e)) {
|
|
2535
|
+
if (t && O) {
|
|
2536
2536
|
if (e[0] == 255 && e[1] == 254) return Un(e.slice(2).toString("utf16le"));
|
|
2537
2537
|
if (e[1] == 254 && e[2] == 255) return Un(g(e.slice(2).toString("binary")));
|
|
2538
2538
|
}
|
|
@@ -2761,12 +2761,12 @@ var tn = (function() {
|
|
|
2761
2761
|
};
|
|
2762
2762
|
})();
|
|
2763
2763
|
function on(e) {
|
|
2764
|
-
return e ? e.content && e.type ? Ft(e.content, !0) : e.data ? _(e.data) : e.asNodeBuffer &&
|
|
2764
|
+
return e ? e.content && e.type ? Ft(e.content, !0) : e.data ? _(e.data) : e.asNodeBuffer && E ? _(e.asNodeBuffer().toString("binary")) : e.asBinary ? _(e.asBinary()) : e._data && e._data.getContent ? _(Ft(Array.prototype.slice.call(e._data.getContent(), 0))) : null : null;
|
|
2765
2765
|
}
|
|
2766
2766
|
function sn(e) {
|
|
2767
2767
|
if (!e) return null;
|
|
2768
2768
|
if (e.data) return p(e.data);
|
|
2769
|
-
if (e.asNodeBuffer &&
|
|
2769
|
+
if (e.asNodeBuffer && E) return e.asNodeBuffer();
|
|
2770
2770
|
if (e._data && e._data.getContent) {
|
|
2771
2771
|
let t = e._data.getContent();
|
|
2772
2772
|
return typeof t == "string" ? p(t) : Array.prototype.slice.call(t);
|
|
@@ -2825,7 +2825,7 @@ function z(e, t, n) {
|
|
|
2825
2825
|
if (e.FullPaths) {
|
|
2826
2826
|
if (Array.isArray(n) && typeof n[0] == "string" && (n = n.join("")), typeof n == "string") {
|
|
2827
2827
|
let r;
|
|
2828
|
-
return r =
|
|
2828
|
+
return r = E ? D(n) : ae(n), R.utils.cfb_add(e, t, r);
|
|
2829
2829
|
}
|
|
2830
2830
|
R.utils.cfb_add(e, t, n);
|
|
2831
2831
|
} else e.file(t, n);
|
|
@@ -2980,15 +2980,15 @@ function Rn(e) {
|
|
|
2980
2980
|
return t;
|
|
2981
2981
|
}
|
|
2982
2982
|
function zn(e) {
|
|
2983
|
-
let t =
|
|
2983
|
+
let t = k(2 * e.length), n, r, i = 1, a = 0, o = 0, s;
|
|
2984
2984
|
for (r = 0; r < e.length; r += i) i = 1, (s = e.charCodeAt(r)) < 128 ? n = s : s < 224 ? (n = (s & 31) * 64 + (e.charCodeAt(r + 1) & 63), i = 2) : s < 240 ? (n = (s & 15) * 4096 + (e.charCodeAt(r + 1) & 63) * 64 + (e.charCodeAt(r + 2) & 63), i = 3) : (i = 4, n = (s & 7) * 262144 + (e.charCodeAt(r + 1) & 63) * 4096 + (e.charCodeAt(r + 2) & 63) * 64 + (e.charCodeAt(r + 3) & 63), n -= 65536, o = 55296 + (n >>> 10 & 1023), n = 56320 + (n & 1023)), o !== 0 && (t[a++] = o & 255, t[a++] = o >>> 8, o = 0), t[a++] = n % 256, t[a++] = n >>> 8;
|
|
2985
2985
|
return t.slice(0, a).toString("ucs2");
|
|
2986
2986
|
}
|
|
2987
2987
|
function Bn(e) {
|
|
2988
|
-
return
|
|
2988
|
+
return D(e, "binary").toString("utf8");
|
|
2989
2989
|
}
|
|
2990
|
-
var Vn = "foo bar bazâð£", Hn =
|
|
2991
|
-
return
|
|
2990
|
+
var Vn = "foo bar bazâð£", Hn = E && (Bn(Vn) == Rn(Vn) && Bn || zn(Vn) == Rn(Vn) && zn) || Rn, Un = E ? function(e) {
|
|
2991
|
+
return D(e, "utf8").toString("binary");
|
|
2992
2992
|
} : function(e) {
|
|
2993
2993
|
let t = [], n = 0, r = 0, i = 0;
|
|
2994
2994
|
for (; n < e.length;) switch (r = e.charCodeAt(n++), !0) {
|
|
@@ -3068,9 +3068,9 @@ function Qn(e, t) {
|
|
|
3068
3068
|
throw Error("Unable to serialize " + e);
|
|
3069
3069
|
}
|
|
3070
3070
|
function $n(e) {
|
|
3071
|
-
if (
|
|
3071
|
+
if (E && Buffer.isBuffer(e)) return e.toString("utf8");
|
|
3072
3072
|
if (typeof e == "string") return e;
|
|
3073
|
-
if (typeof Uint8Array < "u" && e instanceof Uint8Array) return Hn(
|
|
3073
|
+
if (typeof Uint8Array < "u" && e instanceof Uint8Array) return Hn(j(ie(e)));
|
|
3074
3074
|
throw Error("Bad input format: expected Buffer or string");
|
|
3075
3075
|
}
|
|
3076
3076
|
var er = /<([/]?)([^\s?><!/:"]*:|)([^\s?<>:/"]+)(?:\s+[^<>=?"'\s]+="[^"]*?")*\s*[/]?>/gm, tr = {
|
|
@@ -3118,27 +3118,27 @@ var or = function(e) {
|
|
|
3118
3118
|
let t = [], n = 10240;
|
|
3119
3119
|
for (let r = 0; r < e[0].length; ++r) if (e[0][r]) for (let i = 0, a = e[0][r].length; i < a; i += n) t.push.apply(t, e[0][r].slice(i, i + n));
|
|
3120
3120
|
return t;
|
|
3121
|
-
}, sr =
|
|
3121
|
+
}, sr = E ? function(e) {
|
|
3122
3122
|
return e[0].length > 0 && Buffer.isBuffer(e[0][0]) ? Buffer.concat(e[0].map(function(e) {
|
|
3123
|
-
return Buffer.isBuffer(e) ? e :
|
|
3123
|
+
return Buffer.isBuffer(e) ? e : D(e);
|
|
3124
3124
|
})) : or(e);
|
|
3125
3125
|
} : or, cr = function(e, t, n) {
|
|
3126
3126
|
let r = [];
|
|
3127
3127
|
for (let i = t; i < n; i += 2) r.push(String.fromCharCode(kr(e, i)));
|
|
3128
|
-
return r.join("").replace(
|
|
3129
|
-
}, lr =
|
|
3130
|
-
return !Buffer.isBuffer(e) || !
|
|
3128
|
+
return r.join("").replace(N, "");
|
|
3129
|
+
}, lr = E ? function(e, t, n) {
|
|
3130
|
+
return !Buffer.isBuffer(e) || !O ? cr(e, t, n) : e.toString("utf16le", t, n).replace(N, "");
|
|
3131
3131
|
} : cr, ur = function(e, t, n) {
|
|
3132
3132
|
let r = [];
|
|
3133
3133
|
for (let i = t; i < t + n; ++i) r.push(("0" + e[i].toString(16)).slice(-2));
|
|
3134
3134
|
return r.join("");
|
|
3135
|
-
}, dr =
|
|
3135
|
+
}, dr = E ? function(e, t, n) {
|
|
3136
3136
|
return Buffer.isBuffer(e) ? e.toString("hex", t, t + n) : ur(e, t, n);
|
|
3137
3137
|
} : ur, fr = function(e, t, n) {
|
|
3138
3138
|
let r = [];
|
|
3139
3139
|
for (let i = t; i < n; i++) r.push(String.fromCharCode(Or(e, i)));
|
|
3140
3140
|
return r.join("");
|
|
3141
|
-
}, pr =
|
|
3141
|
+
}, pr = E ? function(e, t, n) {
|
|
3142
3142
|
return Buffer.isBuffer(e) ? e.toString("utf8", t, n) : fr(e, t, n);
|
|
3143
3143
|
} : fr, mr = function(e, t) {
|
|
3144
3144
|
let n = jr(e, t);
|
|
@@ -3160,7 +3160,7 @@ var or = function(e) {
|
|
|
3160
3160
|
}, Tr = wr, Er = function(e) {
|
|
3161
3161
|
return Array.isArray(e) || typeof Uint8Array < "u" && e instanceof Uint8Array;
|
|
3162
3162
|
};
|
|
3163
|
-
|
|
3163
|
+
E && (hr = function(e, t) {
|
|
3164
3164
|
if (!Buffer.isBuffer(e)) return mr(e, t);
|
|
3165
3165
|
let n = e.readUInt32LE(t);
|
|
3166
3166
|
return n > 0 ? e.toString("utf8", t + 4, t + 4 + n - 1) : "";
|
|
@@ -3169,11 +3169,11 @@ D && (hr = function(e, t) {
|
|
|
3169
3169
|
let n = e.readUInt32LE(t);
|
|
3170
3170
|
return n > 0 ? e.toString("utf8", t + 4, t + 4 + n - 1) : "";
|
|
3171
3171
|
}, yr = function(e, t) {
|
|
3172
|
-
if (!Buffer.isBuffer(e) || !
|
|
3172
|
+
if (!Buffer.isBuffer(e) || !O) return vr(e, t);
|
|
3173
3173
|
let n = 2 * e.readUInt32LE(t);
|
|
3174
3174
|
return e.toString("utf16le", t + 4, t + 4 + n - 1);
|
|
3175
3175
|
}, xr = function(e, t) {
|
|
3176
|
-
if (!Buffer.isBuffer(e) || !
|
|
3176
|
+
if (!Buffer.isBuffer(e) || !O) return br(e, t);
|
|
3177
3177
|
let n = e.readUInt32LE(t);
|
|
3178
3178
|
return e.toString("utf16le", t + 4, t + 4 + n);
|
|
3179
3179
|
}, Cr = function(e, t) {
|
|
@@ -3187,7 +3187,7 @@ D && (hr = function(e, t) {
|
|
|
3187
3187
|
});
|
|
3188
3188
|
function Dr() {
|
|
3189
3189
|
lr = function(e, t, n) {
|
|
3190
|
-
return o.utils.decode(1200, e.slice(t, n)).replace(
|
|
3190
|
+
return o.utils.decode(1200, e.slice(t, n)).replace(N, "");
|
|
3191
3191
|
}, pr = function(e, t, n) {
|
|
3192
3192
|
return o.utils.decode(65001, e.slice(t, n));
|
|
3193
3193
|
}, hr = function(e, t) {
|
|
@@ -3226,7 +3226,7 @@ function Pr(e, t) {
|
|
|
3226
3226
|
let n = "", r, a, s = [], c, l, u, d;
|
|
3227
3227
|
switch (t) {
|
|
3228
3228
|
case "dbcs":
|
|
3229
|
-
if (d = this.l,
|
|
3229
|
+
if (d = this.l, E && Buffer.isBuffer(this) && O) n = this.slice(this.l, this.l + 2 * e).toString("utf16le");
|
|
3230
3230
|
else for (u = 0; u < e; ++u) n += String.fromCharCode(kr(this, d)), d += 2;
|
|
3231
3231
|
e *= 2;
|
|
3232
3232
|
break;
|
|
@@ -3381,7 +3381,7 @@ function Vr(e, t) {
|
|
|
3381
3381
|
e.l += t;
|
|
3382
3382
|
}
|
|
3383
3383
|
function U(e) {
|
|
3384
|
-
let t =
|
|
3384
|
+
let t = k(e);
|
|
3385
3385
|
return Br(t, 0), t;
|
|
3386
3386
|
}
|
|
3387
3387
|
function Hr(e, t, n) {
|
|
@@ -3399,8 +3399,8 @@ function Hr(e, t, n) {
|
|
|
3399
3399
|
}
|
|
3400
3400
|
}
|
|
3401
3401
|
function Ur() {
|
|
3402
|
-
let e = [], t =
|
|
3403
|
-
|
|
3402
|
+
let e = [], t = E ? 16384 : 2048;
|
|
3403
|
+
E && U(t).copy;
|
|
3404
3404
|
let n = function(e) {
|
|
3405
3405
|
let t = U(e);
|
|
3406
3406
|
return Br(t, 0), t;
|
|
@@ -3415,7 +3415,7 @@ function Ur() {
|
|
|
3415
3415
|
i(), r = e, r.l ??= r.length, a(t);
|
|
3416
3416
|
},
|
|
3417
3417
|
end: function() {
|
|
3418
|
-
return i(),
|
|
3418
|
+
return i(), M(e);
|
|
3419
3419
|
},
|
|
3420
3420
|
_bufs: e,
|
|
3421
3421
|
end2: function() {
|
|
@@ -3570,9 +3570,7 @@ function di(e) {
|
|
|
3570
3570
|
return (e || {}).dense && (t["!data"] = []), t;
|
|
3571
3571
|
}
|
|
3572
3572
|
function fi(e, t, n) {
|
|
3573
|
-
let r = n || {}, i = e ? e["!data"] != null : r.dense;
|
|
3574
|
-
x != null && i == null && (i = x);
|
|
3575
|
-
let a = e || (i ? { "!data": [] } : {});
|
|
3573
|
+
let r = n || {}, i = e ? e["!data"] != null : r.dense, a = e || (i ? { "!data": [] } : {});
|
|
3576
3574
|
i && !a["!data"] && (a["!data"] = []);
|
|
3577
3575
|
let o = 0, s = 0;
|
|
3578
3576
|
if (a && r.origin != null) if (typeof r.origin == "number") o = r.origin;
|
|
@@ -4923,13 +4921,13 @@ function io(e) {
|
|
|
4923
4921
|
let t = e.read_shift(4), n = [];
|
|
4924
4922
|
for (let r = 0; r != t; ++r) {
|
|
4925
4923
|
let t = e.l;
|
|
4926
|
-
n[r] = e.read_shift(0, "lpwstr").replace(
|
|
4924
|
+
n[r] = e.read_shift(0, "lpwstr").replace(N, ""), e.l - t & 2 && (e.l += 2);
|
|
4927
4925
|
}
|
|
4928
4926
|
return n;
|
|
4929
4927
|
}
|
|
4930
4928
|
function ao(e) {
|
|
4931
4929
|
let t = e.read_shift(4), n = [];
|
|
4932
|
-
for (let r = 0; r != t; ++r) n[r] = e.read_shift(0, "lpstr-cp").replace(
|
|
4930
|
+
for (let r = 0; r != t; ++r) n[r] = e.read_shift(0, "lpstr-cp").replace(N, "");
|
|
4933
4931
|
return n;
|
|
4934
4932
|
}
|
|
4935
4933
|
function oo(e) {
|
|
@@ -4945,7 +4943,7 @@ function co(e, t) {
|
|
|
4945
4943
|
let n = e.read_shift(4), r = {};
|
|
4946
4944
|
for (let i = 0; i != n; ++i) {
|
|
4947
4945
|
let n = e.read_shift(4), i = e.read_shift(4);
|
|
4948
|
-
r[n] = e.read_shift(i, t === 1200 ? "utf16le" : "utf8").replace(
|
|
4946
|
+
r[n] = e.read_shift(i, t === 1200 ? "utf16le" : "utf8").replace(N, "").replace(oe, "!"), t === 1200 && i % 2 && (e.l += 2);
|
|
4949
4947
|
}
|
|
4950
4948
|
return e.l & 3 && (e.l = e.l >> 3 << 2), r;
|
|
4951
4949
|
}
|
|
@@ -4974,8 +4972,8 @@ function fo(e, t, n) {
|
|
|
4974
4972
|
case 64: return Za(e);
|
|
4975
4973
|
case 65: return lo(e);
|
|
4976
4974
|
case 71: return uo(e);
|
|
4977
|
-
case 80: return no(e, r, !a.raw).replace(
|
|
4978
|
-
case 81: return ro(e, r).replace(
|
|
4975
|
+
case 80: return no(e, r, !a.raw).replace(N, "");
|
|
4976
|
+
case 81: return ro(e, r).replace(N, "");
|
|
4979
4977
|
case 4108: return so(e);
|
|
4980
4978
|
case 4126:
|
|
4981
4979
|
case 4127: return r == 4127 ? io(e) : ao(e);
|
|
@@ -5003,7 +5001,7 @@ function po(e, t) {
|
|
|
5003
5001
|
break;
|
|
5004
5002
|
default: throw Error("TypedPropertyValue unrecognized type " + e + " " + t);
|
|
5005
5003
|
}
|
|
5006
|
-
return
|
|
5004
|
+
return M([n, r]);
|
|
5007
5005
|
}
|
|
5008
5006
|
function mo(e, t) {
|
|
5009
5007
|
let n = e.l, r = e.read_shift(4), i = e.read_shift(4), a = [], o = 0, s = 0, c = -1, l = {};
|
|
@@ -5133,7 +5131,7 @@ function _o(e, t, n) {
|
|
|
5133
5131
|
for (c = U(8 + 2 * (n.length + 1) + (n.length % 2 ? 0 : 2)), c.write_shift(4, s + 2), c.write_shift(4, n.length + 1), c.write_shift(0, n, "dbcs"); c.l != c.length;) c.write_shift(1, 0);
|
|
5134
5132
|
t.push(c);
|
|
5135
5133
|
}
|
|
5136
|
-
c =
|
|
5134
|
+
c = M(t), a.unshift(c), o += 8 + c.length;
|
|
5137
5135
|
}
|
|
5138
5136
|
for (s = 0; s < e.length; ++s) {
|
|
5139
5137
|
if (t && !t[e[s][0]] || ho.indexOf(e[s][0]) > -1 || za.indexOf(e[s][0]) > -1 || e[s][1] == null) continue;
|
|
@@ -5154,7 +5152,7 @@ function _o(e, t, n) {
|
|
|
5154
5152
|
}
|
|
5155
5153
|
let u = 8 * (a.length + 1);
|
|
5156
5154
|
for (s = 0; s < a.length; ++s) i[s].write_shift(4, u), u += a[s].length;
|
|
5157
|
-
return r.write_shift(4, o), r.write_shift(4, a.length),
|
|
5155
|
+
return r.write_shift(4, o), r.write_shift(4, a.length), M([r].concat(i, a));
|
|
5158
5156
|
}
|
|
5159
5157
|
function vo(e, t, n) {
|
|
5160
5158
|
let r = e.content;
|
|
@@ -5186,7 +5184,7 @@ function yo(e, t, n, r, i, a) {
|
|
|
5186
5184
|
let e = _o(i, null, null);
|
|
5187
5185
|
o.write_shift(16, a, "hex"), o.write_shift(4, 68 + c.length), s.push(e);
|
|
5188
5186
|
}
|
|
5189
|
-
return
|
|
5187
|
+
return M(s);
|
|
5190
5188
|
}
|
|
5191
5189
|
function bo(e, t) {
|
|
5192
5190
|
return e.read_shift(t), null;
|
|
@@ -5242,7 +5240,7 @@ function Mo(e) {
|
|
|
5242
5240
|
let t = e.t || "", n = U(3);
|
|
5243
5241
|
n.write_shift(2, t.length), n.write_shift(1, 1);
|
|
5244
5242
|
let r = U(2 * t.length);
|
|
5245
|
-
return r.write_shift(2 * t.length, t, "utf16le"),
|
|
5243
|
+
return r.write_shift(2 * t.length, t, "utf16le"), M([n, r]);
|
|
5246
5244
|
}
|
|
5247
5245
|
function No(e, t, n) {
|
|
5248
5246
|
let r;
|
|
@@ -5273,7 +5271,7 @@ function Lo(e) {
|
|
|
5273
5271
|
function Ro(e) {
|
|
5274
5272
|
let t = e.read_shift(4), n = e.l, r = !1;
|
|
5275
5273
|
t > 24 && (e.l += t - 24, e.read_shift(16) === "795881f43b1d7f48af2c825dc4852763" && (r = !0), e.l = n);
|
|
5276
|
-
let i = e.read_shift((r ? t - 24 : t) >> 1, "utf16le").replace(
|
|
5274
|
+
let i = e.read_shift((r ? t - 24 : t) >> 1, "utf16le").replace(N, "");
|
|
5277
5275
|
return r && (e.l += 24), i;
|
|
5278
5276
|
}
|
|
5279
5277
|
function zo(e) {
|
|
@@ -5284,7 +5282,7 @@ function zo(e) {
|
|
|
5284
5282
|
if (e.read_shift(4) === 0) return n + r.replace(/\\/g, "/");
|
|
5285
5283
|
let i = e.read_shift(4);
|
|
5286
5284
|
if (e.read_shift(2) != 3) throw Error("Bad FileMoniker");
|
|
5287
|
-
let a = e.read_shift(i >> 1, "utf16le").replace(
|
|
5285
|
+
let a = e.read_shift(i >> 1, "utf16le").replace(N, "");
|
|
5288
5286
|
return n + a;
|
|
5289
5287
|
}
|
|
5290
5288
|
function Bo(e, t) {
|
|
@@ -5297,7 +5295,7 @@ function Bo(e, t) {
|
|
|
5297
5295
|
}
|
|
5298
5296
|
function Vo(e) {
|
|
5299
5297
|
let t = e.read_shift(4);
|
|
5300
|
-
return t > 0 ? e.read_shift(t, "utf16le").replace(
|
|
5298
|
+
return t > 0 ? e.read_shift(t, "utf16le").replace(N, "") : "";
|
|
5301
5299
|
}
|
|
5302
5300
|
function Ho(e, t) {
|
|
5303
5301
|
t ||= U(6 + e.length * 2), t.write_shift(4, 1 + e.length);
|
|
@@ -5586,7 +5584,7 @@ function ys(e, t) {
|
|
|
5586
5584
|
n.write_shift(4, e.Count), n.write_shift(4, e.Unique);
|
|
5587
5585
|
let r = [];
|
|
5588
5586
|
for (let n = 0; n < e.length; ++n) r[n] = Mo(e[n], t);
|
|
5589
|
-
let i =
|
|
5587
|
+
let i = M([n].concat(r));
|
|
5590
5588
|
return i.parts = [n.length].concat(r.map(function(e) {
|
|
5591
5589
|
return e.length;
|
|
5592
5590
|
})), i;
|
|
@@ -6014,12 +6012,12 @@ function Dc(e) {
|
|
|
6014
6012
|
t.write_shift(2, n.r), t.write_shift(2, n.r), t.write_shift(2, n.c), t.write_shift(2, n.c);
|
|
6015
6013
|
let r = "d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" ");
|
|
6016
6014
|
for (let e = 0; e < 16; ++e) t.write_shift(1, parseInt(r[e], 16));
|
|
6017
|
-
return
|
|
6015
|
+
return M([t, Wo(e[1])]);
|
|
6018
6016
|
}
|
|
6019
6017
|
function Oc(e, t) {
|
|
6020
6018
|
e.read_shift(2);
|
|
6021
6019
|
let n = es(e, 8), r = e.read_shift((t - 10) / 2, "dbcs-cont");
|
|
6022
|
-
return r = r.replace(
|
|
6020
|
+
return r = r.replace(N, ""), [n, r];
|
|
6023
6021
|
}
|
|
6024
6022
|
function kc(e) {
|
|
6025
6023
|
let t = e[1].Tooltip, n = U(10 + 2 * (t.length + 1));
|
|
@@ -6256,13 +6254,13 @@ var tl = [
|
|
|
6256
6254
|
0: 20127
|
|
6257
6255
|
});
|
|
6258
6256
|
function n(t, n) {
|
|
6259
|
-
let r = [], i =
|
|
6257
|
+
let r = [], i = k(1);
|
|
6260
6258
|
switch (n.type) {
|
|
6261
6259
|
case "base64":
|
|
6262
|
-
i = ee(
|
|
6260
|
+
i = A(ee(t));
|
|
6263
6261
|
break;
|
|
6264
6262
|
case "binary":
|
|
6265
|
-
i =
|
|
6263
|
+
i = A(t);
|
|
6266
6264
|
break;
|
|
6267
6265
|
case "buffer":
|
|
6268
6266
|
case "array":
|
|
@@ -6293,7 +6291,7 @@ var tl = [
|
|
|
6293
6291
|
let f = i.read_shift(2), p = n.codepage || 1252;
|
|
6294
6292
|
a != 2 && (i.l += 16, i.read_shift(1), i[i.l] !== 0 && (p = e[i[i.l]]), i.l += 1, i.l += 2), l && (i.l += 36);
|
|
6295
6293
|
let m = [], h = {}, g = Math.min(i.length, a == 2 ? 521 : d - 10 - (c ? 264 : 0)), _ = l ? 32 : 11;
|
|
6296
|
-
for (; i.l < g && i[i.l] != 13;) switch (h = {}, h.name = (o === void 0 ?
|
|
6294
|
+
for (; i.l < g && i[i.l] != 13;) switch (h = {}, h.name = (o === void 0 ? j(i.slice(i.l, i.l + _)) : o.utils.decode(p, i.slice(i.l, i.l + _))).replace(/[\u0000\r\n][\S\s]*$/g, ""), i.l += _, h.type = String.fromCharCode(i.read_shift(1)), a != 2 && !l && (h.offset = i.read_shift(4)), h.len = i.read_shift(1), a == 2 && (h.offset = i.read_shift(2)), h.dec = i.read_shift(1), h.name.length && m.push(h), a != 2 && (i.l += l ? 13 : 14), h.type) {
|
|
6297
6295
|
case "B":
|
|
6298
6296
|
(!c || h.len != 8) && n.WTF && console.log("Skipping " + h.name + ":" + h.type);
|
|
6299
6297
|
break;
|
|
@@ -6328,7 +6326,7 @@ var tl = [
|
|
|
6328
6326
|
for (++i.l, r[++v] = [], y = 0, y = 0; y != m.length; ++y) {
|
|
6329
6327
|
let e = i.slice(i.l, i.l + m[y].len);
|
|
6330
6328
|
i.l += m[y].len, Br(e, 0);
|
|
6331
|
-
let t = o === void 0 ?
|
|
6329
|
+
let t = o === void 0 ? j(e) : o.utils.decode(p, e);
|
|
6332
6330
|
switch (m[y].type) {
|
|
6333
6331
|
case "C":
|
|
6334
6332
|
t.trim().length && (r[v][y] = t.replace(/([^\s])\s+$/, "$1"));
|
|
@@ -6489,8 +6487,8 @@ var tl = [
|
|
|
6489
6487
|
let e = u.next(32), t = (p[g].slice(-10) + "\0\0\0\0\0\0\0\0\0\0\0").slice(0, 11);
|
|
6490
6488
|
e.write_shift(1, t, "sbcs"), e.write_shift(1, x[g] == "?" ? "C" : x[g], "sbcs"), e.write_shift(4, _), e.write_shift(1, S[g] || c[x[g]] || 0), e.write_shift(1, C[g] || 0), e.write_shift(1, 2), e.write_shift(4, 0), e.write_shift(1, 0), e.write_shift(4, 0), e.write_shift(4, 0), _ += S[g] || c[x[g]] || 0;
|
|
6491
6489
|
}
|
|
6492
|
-
let
|
|
6493
|
-
for (
|
|
6490
|
+
let ee = u.next(264);
|
|
6491
|
+
for (ee.write_shift(4, 13), g = 0; g < 65; ++g) ee.write_shift(4, 0);
|
|
6494
6492
|
for (g = 0; g < m.length; ++g) {
|
|
6495
6493
|
let e = u.next(y);
|
|
6496
6494
|
for (e.write_shift(1, 0), _ = 0; _ < p.length; ++_) if (p[_] != null) switch (x[_]) {
|
|
@@ -6501,16 +6499,16 @@ var tl = [
|
|
|
6501
6499
|
e.write_shift(8, m[g][_] || 0, "f");
|
|
6502
6500
|
break;
|
|
6503
6501
|
case "N":
|
|
6504
|
-
var
|
|
6505
|
-
for (typeof m[g][_] == "number" && (
|
|
6506
|
-
e.write_shift(1,
|
|
6502
|
+
var E = "0";
|
|
6503
|
+
for (typeof m[g][_] == "number" && (E = m[g][_].toFixed(C[_] || 0)), E.length > S[_] && (E = E.slice(0, S[_])), v = 0; v < S[_] - E.length; ++v) e.write_shift(1, 32);
|
|
6504
|
+
e.write_shift(1, E, "sbcs");
|
|
6507
6505
|
break;
|
|
6508
6506
|
case "D":
|
|
6509
6507
|
m[g][_] ? (e.write_shift(4, ("0000" + m[g][_].getFullYear()).slice(-4), "sbcs"), e.write_shift(2, ("00" + (m[g][_].getMonth() + 1)).slice(-2), "sbcs"), e.write_shift(2, ("00" + m[g][_].getDate()).slice(-2), "sbcs")) : e.write_shift(8, "00000000", "sbcs");
|
|
6510
6508
|
break;
|
|
6511
6509
|
case "C":
|
|
6512
|
-
var
|
|
6513
|
-
for (e.write_shift(1,
|
|
6510
|
+
var D = e.l, O = String(m[g][_] == null ? "" : m[g][_]).slice(0, S[_]);
|
|
6511
|
+
for (e.write_shift(1, O, "cpstr"), D += S[_] - e.l, v = 0; v < D; ++v) e.write_shift(1, 32);
|
|
6514
6512
|
break;
|
|
6515
6513
|
}
|
|
6516
6514
|
}
|
|
@@ -6627,9 +6625,9 @@ var tl = [
|
|
|
6627
6625
|
};
|
|
6628
6626
|
function a(e, t) {
|
|
6629
6627
|
switch (t.type) {
|
|
6630
|
-
case "base64": return s(
|
|
6628
|
+
case "base64": return s(ee(e), t);
|
|
6631
6629
|
case "binary": return s(e, t);
|
|
6632
|
-
case "buffer": return s(
|
|
6630
|
+
case "buffer": return s(E && Buffer.isBuffer(e) ? e.toString("binary") : j(e), t);
|
|
6633
6631
|
case "array": return s(Ft(e), t);
|
|
6634
6632
|
}
|
|
6635
6633
|
throw Error("Unrecognized type " + t.type);
|
|
@@ -6682,10 +6680,10 @@ var tl = [
|
|
|
6682
6680
|
}
|
|
6683
6681
|
break;
|
|
6684
6682
|
case "C":
|
|
6685
|
-
var w = !1, T = !1,
|
|
6683
|
+
var w = !1, T = !1, ee = !1, E = !1, D = -1, O = -1, k = "", te = "z", A = "";
|
|
6686
6684
|
for (u = 1; u < d.length; ++u) switch (d[u].charAt(0)) {
|
|
6687
6685
|
case "A":
|
|
6688
|
-
|
|
6686
|
+
A = d[u].slice(1);
|
|
6689
6687
|
break;
|
|
6690
6688
|
case "X":
|
|
6691
6689
|
c = parseInt(d[u].slice(1), 10) - 1, T = !0;
|
|
@@ -6694,51 +6692,51 @@ var tl = [
|
|
|
6694
6692
|
for (s = parseInt(d[u].slice(1), 10) - 1, T || (c = 0), b = f.length; b <= s; ++b) f[b] = [];
|
|
6695
6693
|
break;
|
|
6696
6694
|
case "K":
|
|
6697
|
-
C = d[u].slice(1), C.charAt(0) === "\"" ? (C = C.slice(1, C.length - 1),
|
|
6695
|
+
C = d[u].slice(1), C.charAt(0) === "\"" ? (C = C.slice(1, C.length - 1), te = "s") : C === "TRUE" || C === "FALSE" ? (C = C === "TRUE", te = "b") : C.charAt(0) == "#" && ga[C] != null ? (te = "e", C = ga[C]) : isNaN(Rt(C)) || (C = Rt(C), te = "n", m !== null && $e(m) && i.cellDates && (C = kt(x.Workbook.WBProps.date1904 ? C + 1462 : C), te = typeof C == "number" ? "n" : "d")), o !== void 0 && typeof C == "string" && (i || {}).type != "string" && (i || {}).codepage && (C = o.utils.decode(i.codepage, C)), w = !0;
|
|
6698
6696
|
break;
|
|
6699
6697
|
case "E":
|
|
6700
|
-
|
|
6698
|
+
E = !0, k = $d(d[u].slice(1), {
|
|
6701
6699
|
r: s,
|
|
6702
6700
|
c
|
|
6703
6701
|
});
|
|
6704
6702
|
break;
|
|
6705
6703
|
case "S":
|
|
6706
|
-
|
|
6704
|
+
ee = !0;
|
|
6707
6705
|
break;
|
|
6708
6706
|
case "G": break;
|
|
6709
6707
|
case "R":
|
|
6710
|
-
|
|
6708
|
+
D = parseInt(d[u].slice(1), 10) - 1;
|
|
6711
6709
|
break;
|
|
6712
6710
|
case "C":
|
|
6713
|
-
|
|
6711
|
+
O = parseInt(d[u].slice(1), 10) - 1;
|
|
6714
6712
|
break;
|
|
6715
6713
|
default: if (i && i.WTF) throw Error("SYLK bad record " + e);
|
|
6716
6714
|
}
|
|
6717
|
-
if (w && (f[s][c] ? (f[s][c].t =
|
|
6718
|
-
t:
|
|
6715
|
+
if (w && (f[s][c] ? (f[s][c].t = te, f[s][c].v = C) : f[s][c] = {
|
|
6716
|
+
t: te,
|
|
6719
6717
|
v: C
|
|
6720
|
-
}, m && (f[s][c].z = m), i.cellText !== !1 && m && (f[s][c].w = it(f[s][c].z, f[s][c].v, { date1904: x.Workbook.WBProps.date1904 })), m = null),
|
|
6721
|
-
if (
|
|
6722
|
-
let e =
|
|
6718
|
+
}, m && (f[s][c].z = m), i.cellText !== !1 && m && (f[s][c].w = it(f[s][c].z, f[s][c].v, { date1904: x.Workbook.WBProps.date1904 })), m = null), ee) {
|
|
6719
|
+
if (E) throw Error("SYLK shared formula cannot have own formula");
|
|
6720
|
+
let e = D > -1 && f[D][O];
|
|
6723
6721
|
if (!e || !e[1]) throw Error("SYLK shared formula cannot find base");
|
|
6724
|
-
|
|
6725
|
-
r: s -
|
|
6726
|
-
c: c -
|
|
6722
|
+
k = nf(e[1], {
|
|
6723
|
+
r: s - D,
|
|
6724
|
+
c: c - O
|
|
6727
6725
|
});
|
|
6728
6726
|
}
|
|
6729
|
-
|
|
6727
|
+
k && (f[s][c] ? f[s][c].f = k : f[s][c] = {
|
|
6730
6728
|
t: "n",
|
|
6731
|
-
f:
|
|
6732
|
-
}),
|
|
6729
|
+
f: k
|
|
6730
|
+
}), A && (f[s][c] || (f[s][c] = { t: "z" }), f[s][c].c = [{
|
|
6733
6731
|
a: "SheetJSYLK",
|
|
6734
|
-
t:
|
|
6732
|
+
t: A
|
|
6735
6733
|
}]);
|
|
6736
6734
|
break;
|
|
6737
6735
|
case "F":
|
|
6738
|
-
var
|
|
6736
|
+
var ne = 0;
|
|
6739
6737
|
for (u = 1; u < d.length; ++u) switch (d[u].charAt(0)) {
|
|
6740
6738
|
case "X":
|
|
6741
|
-
c = parseInt(d[u].slice(1), 10) - 1, ++
|
|
6739
|
+
c = parseInt(d[u].slice(1), 10) - 1, ++ne;
|
|
6742
6740
|
break;
|
|
6743
6741
|
case "Y":
|
|
6744
6742
|
for (s = parseInt(d[u].slice(1), 10) - 1, b = f.length; b <= s; ++b) f[b] = [];
|
|
@@ -6765,7 +6763,7 @@ var tl = [
|
|
|
6765
6763
|
break;
|
|
6766
6764
|
default: if (i && i.WTF) throw Error("SYLK bad record " + e);
|
|
6767
6765
|
}
|
|
6768
|
-
|
|
6766
|
+
ne < 1 && (m = null);
|
|
6769
6767
|
break;
|
|
6770
6768
|
default: if (i && i.WTF) throw Error("SYLK bad record " + e);
|
|
6771
6769
|
}
|
|
@@ -6869,9 +6867,9 @@ var tl = [
|
|
|
6869
6867
|
})(), il = (function() {
|
|
6870
6868
|
function e(e, n) {
|
|
6871
6869
|
switch (n.type) {
|
|
6872
|
-
case "base64": return t(
|
|
6870
|
+
case "base64": return t(ee(e), n);
|
|
6873
6871
|
case "binary": return t(e, n);
|
|
6874
|
-
case "buffer": return t(
|
|
6872
|
+
case "buffer": return t(E && Buffer.isBuffer(e) ? e.toString("binary") : j(e), n);
|
|
6875
6873
|
case "array": return t(Ft(e), n);
|
|
6876
6874
|
}
|
|
6877
6875
|
throw Error("Unrecognized type " + n.type);
|
|
@@ -7103,9 +7101,7 @@ var tl = [
|
|
|
7103
7101
|
}), r[s.pop()[1]] || 44;
|
|
7104
7102
|
}
|
|
7105
7103
|
function s(e, t) {
|
|
7106
|
-
let n = t || {}, r = "";
|
|
7107
|
-
x != null && n.dense == null && (n.dense = x);
|
|
7108
|
-
let i = {};
|
|
7104
|
+
let n = t || {}, r = "", i = {};
|
|
7109
7105
|
n.dense && (i["!data"] = []);
|
|
7110
7106
|
let o = {
|
|
7111
7107
|
s: {
|
|
@@ -7156,13 +7152,13 @@ var tl = [
|
|
|
7156
7152
|
] : $y(e, t);
|
|
7157
7153
|
switch (t.type) {
|
|
7158
7154
|
case "base64":
|
|
7159
|
-
n =
|
|
7155
|
+
n = ee(e);
|
|
7160
7156
|
break;
|
|
7161
7157
|
case "binary":
|
|
7162
7158
|
n = e;
|
|
7163
7159
|
break;
|
|
7164
7160
|
case "buffer":
|
|
7165
|
-
n = t.codepage == 65001 ? e.toString("utf8") : t.codepage && o !== void 0 ? o.utils.decode(t.codepage, e) :
|
|
7161
|
+
n = t.codepage == 65001 ? e.toString("utf8") : t.codepage && o !== void 0 ? o.utils.decode(t.codepage, e) : E && Buffer.isBuffer(e) ? e.toString("binary") : j(e);
|
|
7166
7162
|
break;
|
|
7167
7163
|
case "array":
|
|
7168
7164
|
n = Ft(e);
|
|
@@ -7221,7 +7217,7 @@ var cl = (function() {
|
|
|
7221
7217
|
function e(e, t, n) {
|
|
7222
7218
|
if (!e) return;
|
|
7223
7219
|
Br(e, e.l || 0);
|
|
7224
|
-
let r = n.Enum ||
|
|
7220
|
+
let r = n.Enum || F;
|
|
7225
7221
|
for (; e.l < e.length;) {
|
|
7226
7222
|
let i = e.read_shift(2), a = r[i] || r[65535], o = e.read_shift(2), s = e.l + o, c = a.f && a.f(e, o, n);
|
|
7227
7223
|
if (e.l = s, t(c, a, i)) return;
|
|
@@ -7229,8 +7225,8 @@ var cl = (function() {
|
|
|
7229
7225
|
}
|
|
7230
7226
|
function t(e, t) {
|
|
7231
7227
|
switch (t.type) {
|
|
7232
|
-
case "base64": return r(ee(
|
|
7233
|
-
case "binary": return r(
|
|
7228
|
+
case "base64": return r(A(ee(e)), t);
|
|
7229
|
+
case "binary": return r(A(e), t);
|
|
7234
7230
|
case "buffer":
|
|
7235
7231
|
case "array": return r(e, t);
|
|
7236
7232
|
}
|
|
@@ -7252,9 +7248,7 @@ var cl = (function() {
|
|
|
7252
7248
|
];
|
|
7253
7249
|
function r(t, r) {
|
|
7254
7250
|
if (!t) return t;
|
|
7255
|
-
let i = r || {};
|
|
7256
|
-
x != null && i.dense == null && (i.dense = x);
|
|
7257
|
-
let a = {}, o = "Sheet1", s = "", c = 0, l = {}, u = [], d = [], f = [];
|
|
7251
|
+
let i = r || {}, a = {}, o = "Sheet1", s = "", c = 0, l = {}, u = [], d = [], f = [];
|
|
7258
7252
|
i.dense && (f = a["!data"] = []);
|
|
7259
7253
|
let p = {
|
|
7260
7254
|
s: {
|
|
@@ -7266,9 +7260,9 @@ var cl = (function() {
|
|
|
7266
7260
|
c: 0
|
|
7267
7261
|
}
|
|
7268
7262
|
}, m = i.sheetRows || 0, h = {};
|
|
7269
|
-
if (t[4] == 81 && t[5] == 80 && t[6] == 87) return
|
|
7263
|
+
if (t[4] == 81 && t[5] == 80 && t[6] == 87) return ue(t, r);
|
|
7270
7264
|
if (t[2] == 0 && (t[3] == 8 || t[3] == 9) && t.length >= 16 && t[14] == 5 && t[15] === 108) throw Error("Unsupported Works 3 for Mac file");
|
|
7271
|
-
if (t[2] == 2) i.Enum =
|
|
7265
|
+
if (t[2] == 2) i.Enum = F, e(t, function(e, t, r) {
|
|
7272
7266
|
switch (r) {
|
|
7273
7267
|
case 0:
|
|
7274
7268
|
i.vers = e, e >= 4096 && (i.qpro = !0);
|
|
@@ -7315,7 +7309,7 @@ var cl = (function() {
|
|
|
7315
7309
|
break;
|
|
7316
7310
|
}
|
|
7317
7311
|
}, i);
|
|
7318
|
-
else if (t[2] == 26 || t[2] == 14) i.Enum =
|
|
7312
|
+
else if (t[2] == 26 || t[2] == 14) i.Enum = se, t[2] == 14 && (i.qpro = !0, t.l = 0), e(t, function(e, t, n) {
|
|
7319
7313
|
switch (n) {
|
|
7320
7314
|
case 204:
|
|
7321
7315
|
o = e;
|
|
@@ -7404,7 +7398,7 @@ var cl = (function() {
|
|
|
7404
7398
|
if (+n.codepage >= 0 && d(+n.codepage), n.type == "string") throw Error("Cannot write WK3 to JS string");
|
|
7405
7399
|
let r = Ur();
|
|
7406
7400
|
J(r, 0, s(e));
|
|
7407
|
-
for (var i = 0, a = 0; i < e.SheetNames.length; ++i) (e.Sheets[e.SheetNames[i]] || {})["!ref"] && J(r, 27,
|
|
7401
|
+
for (var i = 0, a = 0; i < e.SheetNames.length; ++i) (e.Sheets[e.SheetNames[i]] || {})["!ref"] && J(r, 27, P(e.SheetNames[i], a++));
|
|
7408
7402
|
let o = 0;
|
|
7409
7403
|
for (i = 0; i < e.SheetNames.length; ++i) {
|
|
7410
7404
|
let t = e.Sheets[e.SheetNames[i]];
|
|
@@ -7415,10 +7409,10 @@ var cl = (function() {
|
|
|
7415
7409
|
for (let c = n.s.c; c <= n.e.c; ++c) {
|
|
7416
7410
|
e === n.s.r && (s[c] = G(c));
|
|
7417
7411
|
let l = s[c] + i, u = a ? (t["!data"][e] || [])[c] : t[l];
|
|
7418
|
-
if (!(!u || u.t == "z")) if (u.t == "n") J(r, 23,
|
|
7412
|
+
if (!(!u || u.t == "z")) if (u.t == "n") J(r, 23, te(e, c, o, u.v));
|
|
7419
7413
|
else {
|
|
7420
7414
|
let t = li(u);
|
|
7421
|
-
J(r, 22,
|
|
7415
|
+
J(r, 22, D(e, c, o, t.slice(0, 239)));
|
|
7422
7416
|
}
|
|
7423
7417
|
}
|
|
7424
7418
|
}
|
|
@@ -7525,15 +7519,15 @@ var cl = (function() {
|
|
|
7525
7519
|
if (i[1].v = e.read_shift(8, "f"), n.qpro) e.l = r;
|
|
7526
7520
|
else {
|
|
7527
7521
|
let t = e.read_shift(2);
|
|
7528
|
-
|
|
7522
|
+
w(e.slice(e.l, e.l + t), i), e.l += t;
|
|
7529
7523
|
}
|
|
7530
7524
|
return i;
|
|
7531
7525
|
}
|
|
7532
|
-
function
|
|
7526
|
+
function x(e, t, n) {
|
|
7533
7527
|
let r = t & 32768;
|
|
7534
7528
|
return t &= -32769, t = (r ? e : 0) + (t >= 8192 ? t - 16384 : t), (r ? "" : "$") + (n ? G(t) : Yr(t));
|
|
7535
7529
|
}
|
|
7536
|
-
let
|
|
7530
|
+
let S = {
|
|
7537
7531
|
31: ["NA", 0],
|
|
7538
7532
|
33: ["ABS", 1],
|
|
7539
7533
|
34: ["TRUNC", 1],
|
|
@@ -7574,8 +7568,8 @@ var cl = (function() {
|
|
|
7574
7568
|
107: ["PROPER", 1],
|
|
7575
7569
|
109: ["TRIM", 1],
|
|
7576
7570
|
111: ["T", 1]
|
|
7577
|
-
},
|
|
7578
|
-
function
|
|
7571
|
+
}, C = /* @__PURE__ */ ".........+.-.*./.^.=.<>.<=.>=.<.>.....&.......".split(".");
|
|
7572
|
+
function w(e, t) {
|
|
7579
7573
|
Br(e, 0);
|
|
7580
7574
|
let n = [], r = 0, i = "", a = "", o = "", s = "";
|
|
7581
7575
|
for (; e.l < e.length;) {
|
|
@@ -7585,12 +7579,12 @@ var cl = (function() {
|
|
|
7585
7579
|
n.push(e.read_shift(8, "f"));
|
|
7586
7580
|
break;
|
|
7587
7581
|
case 1:
|
|
7588
|
-
a =
|
|
7582
|
+
a = x(t[0].c, e.read_shift(2), !0), i = x(t[0].r, e.read_shift(2), !1), n.push(a + i);
|
|
7589
7583
|
break;
|
|
7590
7584
|
case 2:
|
|
7591
7585
|
{
|
|
7592
|
-
let r =
|
|
7593
|
-
a =
|
|
7586
|
+
let r = x(t[0].c, e.read_shift(2), !0), o = x(t[0].r, e.read_shift(2), !1);
|
|
7587
|
+
a = x(t[0].c, e.read_shift(2), !0), i = x(t[0].r, e.read_shift(2), !1), n.push(r + o + ":" + a + i);
|
|
7594
7588
|
}
|
|
7595
7589
|
break;
|
|
7596
7590
|
case 3:
|
|
@@ -7625,14 +7619,14 @@ var cl = (function() {
|
|
|
7625
7619
|
case 21:
|
|
7626
7620
|
s = n.pop(), o = n.pop(), n.push(["AND", "OR"][c - 20] + "(" + o + "," + s + ")");
|
|
7627
7621
|
break;
|
|
7628
|
-
default: if (c < 32 &&
|
|
7629
|
-
else if (
|
|
7630
|
-
if (r =
|
|
7622
|
+
default: if (c < 32 && C[c]) s = n.pop(), o = n.pop(), n.push(o + C[c] + s);
|
|
7623
|
+
else if (S[c]) {
|
|
7624
|
+
if (r = S[c][1], r == 69 && (r = e[e.l++]), r > n.length) {
|
|
7631
7625
|
console.error("WK1 bad formula parse 0x" + c.toString(16) + ":|" + n.join("|") + "|");
|
|
7632
7626
|
return;
|
|
7633
7627
|
}
|
|
7634
7628
|
let t = n.slice(-r);
|
|
7635
|
-
n.length -= r, n.push(
|
|
7629
|
+
n.length -= r, n.push(S[c][0] + "(" + t.join(",") + ")");
|
|
7636
7630
|
} else if (c <= 7) return console.error("WK1 invalid opcode " + c.toString(16));
|
|
7637
7631
|
else if (c <= 24) return console.error("WK1 unsupported op " + c.toString(16));
|
|
7638
7632
|
else if (c <= 30) return console.error("WK1 invalid opcode " + c.toString(16));
|
|
@@ -7642,7 +7636,7 @@ var cl = (function() {
|
|
|
7642
7636
|
}
|
|
7643
7637
|
n.length == 1 ? t[1].f = "" + n[0] : console.error("WK1 bad formula parse |" + n.join("|") + "|");
|
|
7644
7638
|
}
|
|
7645
|
-
function
|
|
7639
|
+
function T(e) {
|
|
7646
7640
|
let t = [
|
|
7647
7641
|
{
|
|
7648
7642
|
c: 0,
|
|
@@ -7656,11 +7650,11 @@ var cl = (function() {
|
|
|
7656
7650
|
];
|
|
7657
7651
|
return t[0].r = e.read_shift(2), t[3] = e[e.l++], t[0].c = e[e.l++], t;
|
|
7658
7652
|
}
|
|
7659
|
-
function
|
|
7660
|
-
let n =
|
|
7653
|
+
function E(e, t) {
|
|
7654
|
+
let n = T(e, t);
|
|
7661
7655
|
return n[1].t = "s", n[1].v = e.read_shift(t - 4, "cstr"), n;
|
|
7662
7656
|
}
|
|
7663
|
-
function
|
|
7657
|
+
function D(e, t, n, r) {
|
|
7664
7658
|
let i = U(6 + r.length);
|
|
7665
7659
|
i.write_shift(2, e), i.write_shift(1, n), i.write_shift(1, t), i.write_shift(1, 39);
|
|
7666
7660
|
for (let e = 0; e < r.length; ++e) {
|
|
@@ -7669,8 +7663,8 @@ var cl = (function() {
|
|
|
7669
7663
|
}
|
|
7670
7664
|
return i.write_shift(1, 0), i;
|
|
7671
7665
|
}
|
|
7672
|
-
function
|
|
7673
|
-
let n =
|
|
7666
|
+
function O(e, t) {
|
|
7667
|
+
let n = T(e, t);
|
|
7674
7668
|
n[1].v = e.read_shift(2);
|
|
7675
7669
|
let r = n[1].v >> 1;
|
|
7676
7670
|
if (n[1].v & 1) switch (r & 7) {
|
|
@@ -7701,45 +7695,45 @@ var cl = (function() {
|
|
|
7701
7695
|
}
|
|
7702
7696
|
return n[1].v = r, n;
|
|
7703
7697
|
}
|
|
7704
|
-
function
|
|
7705
|
-
let n =
|
|
7698
|
+
function k(e, t) {
|
|
7699
|
+
let n = T(e, t), r = e.read_shift(4), i = e.read_shift(4), a = e.read_shift(2);
|
|
7706
7700
|
if (a == 65535) return r === 0 && i === 3221225472 ? (n[1].t = "e", n[1].v = 15) : r === 0 && i === 3489660928 ? (n[1].t = "e", n[1].v = 42) : n[1].v = 0, n;
|
|
7707
7701
|
let o = a & 32768;
|
|
7708
7702
|
return a = (a & 32767) - 16446, n[1].v = (1 - o * 2) * (i * 2 ** (a + 32) + r * 2 ** a), n;
|
|
7709
7703
|
}
|
|
7710
|
-
function
|
|
7704
|
+
function te(e, t, n, r) {
|
|
7711
7705
|
let i = U(14);
|
|
7712
7706
|
if (i.write_shift(2, e), i.write_shift(1, n), i.write_shift(1, t), r == 0) return i.write_shift(4, 0), i.write_shift(4, 0), i.write_shift(2, 65535), i;
|
|
7713
7707
|
let a = 0, o = 0, s = 0, c = 0;
|
|
7714
7708
|
return r < 0 && (a = 1, r = -r), o = Math.log2(r) | 0, r /= 2 ** (o - 31), c = r >>> 0, c & 2147483648 || (r /= 2, ++o, c = r >>> 0), r -= c, c |= 2147483648, c >>>= 0, r *= 2 ** 32, s = r >>> 0, i.write_shift(4, s), i.write_shift(4, c), o += 16383 + (a ? 32768 : 0), i.write_shift(2, o), i;
|
|
7715
7709
|
}
|
|
7716
|
-
function
|
|
7717
|
-
let n =
|
|
7710
|
+
function ne(e, t) {
|
|
7711
|
+
let n = k(e, 14);
|
|
7718
7712
|
return e.l += t - 14, n;
|
|
7719
7713
|
}
|
|
7720
|
-
function
|
|
7721
|
-
let n =
|
|
7714
|
+
function j(e, t) {
|
|
7715
|
+
let n = T(e, t), r = e.read_shift(4);
|
|
7722
7716
|
return n[1].v = r >> 6, n;
|
|
7723
7717
|
}
|
|
7724
|
-
function
|
|
7725
|
-
let n =
|
|
7718
|
+
function re(e, t) {
|
|
7719
|
+
let n = T(e, t), r = e.read_shift(8, "f");
|
|
7726
7720
|
return n[1].v = r, n;
|
|
7727
7721
|
}
|
|
7728
|
-
function
|
|
7729
|
-
let n =
|
|
7722
|
+
function ie(e, t) {
|
|
7723
|
+
let n = re(e, 12);
|
|
7730
7724
|
return e.l += t - 12, n;
|
|
7731
7725
|
}
|
|
7732
|
-
function
|
|
7726
|
+
function M(e, t) {
|
|
7733
7727
|
return e[e.l + t - 1] == 0 ? e.read_shift(t, "cstr") : "";
|
|
7734
7728
|
}
|
|
7735
|
-
function
|
|
7729
|
+
function ae(e, t) {
|
|
7736
7730
|
let n = e[e.l++];
|
|
7737
7731
|
n > t - 1 && (n = t - 1);
|
|
7738
7732
|
let r = "";
|
|
7739
7733
|
for (; r.length < n;) r += String.fromCharCode(e[e.l++]);
|
|
7740
7734
|
return r;
|
|
7741
7735
|
}
|
|
7742
|
-
function
|
|
7736
|
+
function N(e, t, n) {
|
|
7743
7737
|
if (!n.qpro || t < 21) return;
|
|
7744
7738
|
let r = e.read_shift(1);
|
|
7745
7739
|
return e.l += 17, e.l += 1, e.l += 2, [r, e.read_shift(t - 21, "cstr")];
|
|
@@ -7755,7 +7749,7 @@ var cl = (function() {
|
|
|
7755
7749
|
}
|
|
7756
7750
|
return n;
|
|
7757
7751
|
}
|
|
7758
|
-
function
|
|
7752
|
+
function P(e, t) {
|
|
7759
7753
|
let n = U(5 + e.length);
|
|
7760
7754
|
n.write_shift(2, 14e3), n.write_shift(2, t);
|
|
7761
7755
|
for (let t = 0; t < e.length; ++t) {
|
|
@@ -7764,7 +7758,7 @@ var cl = (function() {
|
|
|
7764
7758
|
}
|
|
7765
7759
|
return n[n.l++] = 0, n;
|
|
7766
7760
|
}
|
|
7767
|
-
var
|
|
7761
|
+
var F = {
|
|
7768
7762
|
0: {
|
|
7769
7763
|
n: "BOF",
|
|
7770
7764
|
f: To
|
|
@@ -7849,11 +7843,11 @@ var cl = (function() {
|
|
|
7849
7843
|
105: { n: "MRANGES??" },
|
|
7850
7844
|
204: {
|
|
7851
7845
|
n: "SHEETNAMECS",
|
|
7852
|
-
f:
|
|
7846
|
+
f: M
|
|
7853
7847
|
},
|
|
7854
7848
|
222: {
|
|
7855
7849
|
n: "SHEETNAMELP",
|
|
7856
|
-
f:
|
|
7850
|
+
f: ae
|
|
7857
7851
|
},
|
|
7858
7852
|
255: {
|
|
7859
7853
|
n: "BOF",
|
|
@@ -7864,7 +7858,7 @@ var cl = (function() {
|
|
|
7864
7858
|
f: To
|
|
7865
7859
|
},
|
|
7866
7860
|
65535: { n: "" }
|
|
7867
|
-
},
|
|
7861
|
+
}, se = {
|
|
7868
7862
|
0: { n: "BOF" },
|
|
7869
7863
|
1: { n: "EOF" },
|
|
7870
7864
|
2: { n: "PASSWORD" },
|
|
@@ -7889,19 +7883,19 @@ var cl = (function() {
|
|
|
7889
7883
|
21: { n: "NACELL" },
|
|
7890
7884
|
22: {
|
|
7891
7885
|
n: "LABEL16",
|
|
7892
|
-
f:
|
|
7886
|
+
f: E
|
|
7893
7887
|
},
|
|
7894
7888
|
23: {
|
|
7895
7889
|
n: "NUMBER17",
|
|
7896
|
-
f:
|
|
7890
|
+
f: k
|
|
7897
7891
|
},
|
|
7898
7892
|
24: {
|
|
7899
7893
|
n: "NUMBER18",
|
|
7900
|
-
f:
|
|
7894
|
+
f: O
|
|
7901
7895
|
},
|
|
7902
7896
|
25: {
|
|
7903
7897
|
n: "FORMULA19",
|
|
7904
|
-
f:
|
|
7898
|
+
f: ne
|
|
7905
7899
|
},
|
|
7906
7900
|
26: { n: "FORMULA1A" },
|
|
7907
7901
|
27: {
|
|
@@ -7918,16 +7912,16 @@ var cl = (function() {
|
|
|
7918
7912
|
35: { n: "??" },
|
|
7919
7913
|
37: {
|
|
7920
7914
|
n: "NUMBER25",
|
|
7921
|
-
f:
|
|
7915
|
+
f: j
|
|
7922
7916
|
},
|
|
7923
7917
|
38: { n: "??" },
|
|
7924
7918
|
39: {
|
|
7925
7919
|
n: "NUMBER27",
|
|
7926
|
-
f:
|
|
7920
|
+
f: re
|
|
7927
7921
|
},
|
|
7928
7922
|
40: {
|
|
7929
7923
|
n: "FORMULA28",
|
|
7930
|
-
f:
|
|
7924
|
+
f: ie
|
|
7931
7925
|
},
|
|
7932
7926
|
142: { n: "??" },
|
|
7933
7927
|
147: { n: "??" },
|
|
@@ -7952,7 +7946,7 @@ var cl = (function() {
|
|
|
7952
7946
|
201: { n: "??" },
|
|
7953
7947
|
204: {
|
|
7954
7948
|
n: "SHEETNAMECS",
|
|
7955
|
-
f:
|
|
7949
|
+
f: M
|
|
7956
7950
|
},
|
|
7957
7951
|
205: { n: "??" },
|
|
7958
7952
|
206: { n: "??" },
|
|
@@ -8000,7 +7994,7 @@ var cl = (function() {
|
|
|
8000
7994
|
772: { n: "??" },
|
|
8001
7995
|
1537: {
|
|
8002
7996
|
n: "SHEETINFOQP",
|
|
8003
|
-
f:
|
|
7997
|
+
f: N
|
|
8004
7998
|
},
|
|
8005
7999
|
1600: { n: "??" },
|
|
8006
8000
|
1602: { n: "??" },
|
|
@@ -8019,7 +8013,7 @@ var cl = (function() {
|
|
|
8019
8013
|
28484: { n: "??" },
|
|
8020
8014
|
65535: { n: "" }
|
|
8021
8015
|
};
|
|
8022
|
-
let
|
|
8016
|
+
let ce = {
|
|
8023
8017
|
5: "dd-mmm-yy",
|
|
8024
8018
|
6: "dd-mmm",
|
|
8025
8019
|
7: "mmm-yy",
|
|
@@ -8037,16 +8031,14 @@ var cl = (function() {
|
|
|
8037
8031
|
304: "0E+00",
|
|
8038
8032
|
320: "# ?/?"
|
|
8039
8033
|
};
|
|
8040
|
-
function
|
|
8034
|
+
function le(e) {
|
|
8041
8035
|
let t = e.read_shift(2), n = e.read_shift(1);
|
|
8042
8036
|
if (n != 0) throw "unsupported QPW string type " + n.toString(16);
|
|
8043
8037
|
return e.read_shift(t, "sbcs-cont");
|
|
8044
8038
|
}
|
|
8045
|
-
function
|
|
8039
|
+
function ue(e, t) {
|
|
8046
8040
|
Br(e, 0);
|
|
8047
|
-
let n = t || {};
|
|
8048
|
-
x != null && n.dense == null && (n.dense = x);
|
|
8049
|
-
let r = {};
|
|
8041
|
+
let n = t || {}, r = {};
|
|
8050
8042
|
n.dense && (r["!data"] = []);
|
|
8051
8043
|
let i = [], a = "", o = {
|
|
8052
8044
|
s: {
|
|
@@ -8074,7 +8066,7 @@ var cl = (function() {
|
|
|
8074
8066
|
let e = m.read_shift(4), t = (m.length - m.l) / e | 0;
|
|
8075
8067
|
for (let n = 0; n < e; ++n) {
|
|
8076
8068
|
let e = m.l + t, n = {};
|
|
8077
|
-
m.l += 2, n.numFmtId = m.read_shift(2),
|
|
8069
|
+
m.l += 2, n.numFmtId = m.read_shift(2), ce[n.numFmtId] && (n.z = ce[n.numFmtId]), m.l = e, f.push(n);
|
|
8078
8070
|
}
|
|
8079
8071
|
}
|
|
8080
8072
|
break;
|
|
@@ -8215,7 +8207,7 @@ var cl = (function() {
|
|
|
8215
8207
|
case 3074:
|
|
8216
8208
|
{
|
|
8217
8209
|
l = m.read_shift(2), u = m.read_shift(4);
|
|
8218
|
-
let e =
|
|
8210
|
+
let e = le(m);
|
|
8219
8211
|
r["!data"] == null ? r[G(l) + Yr(u)] = {
|
|
8220
8212
|
t: "s",
|
|
8221
8213
|
v: e
|
|
@@ -8595,7 +8587,7 @@ function Bl(e) {
|
|
|
8595
8587
|
}
|
|
8596
8588
|
function Vl(e) {
|
|
8597
8589
|
let t = 0, n, r = Tl(e), i = r.length + 1, a, o, s, c, l;
|
|
8598
|
-
for (n =
|
|
8590
|
+
for (n = k(i), n[0] = r.length, a = 1; a != i; ++a) n[a] = r[a - 1];
|
|
8599
8591
|
for (a = i - 1; a >= 0; --a) o = n[a], s = t & 16384 ? 1 : 0, c = t << 1 & 32767, l = s | c, t = l ^ o;
|
|
8600
8592
|
return t ^ 52811;
|
|
8601
8593
|
}
|
|
@@ -8751,7 +8743,7 @@ var Hl = (function() {
|
|
|
8751
8743
|
return r;
|
|
8752
8744
|
};
|
|
8753
8745
|
return function(t) {
|
|
8754
|
-
let n = Tl(t), r = a(n), o = n.length, s =
|
|
8746
|
+
let n = Tl(t), r = a(n), o = n.length, s = k(16);
|
|
8755
8747
|
for (let e = 0; e != 16; ++e) s[e] = 0;
|
|
8756
8748
|
let c, l, u;
|
|
8757
8749
|
for ((o & 1) == 1 && (c = r >> 8, s[o] = i(e[0], c), --o, c = r & 255, l = n[n.length - 1], s[o] = i(l, c)); o > 0;) --o, c = r >> 8, s[o] = i(n[o], c), --o, c = r & 255, s[o] = i(n[o], c);
|
|
@@ -8791,9 +8783,9 @@ function ql(e, t, n) {
|
|
|
8791
8783
|
}
|
|
8792
8784
|
function Jl(e, t) {
|
|
8793
8785
|
switch (t.type) {
|
|
8794
|
-
case "base64": return Yl(
|
|
8786
|
+
case "base64": return Yl(ee(e), t);
|
|
8795
8787
|
case "binary": return Yl(e, t);
|
|
8796
|
-
case "buffer": return Yl(
|
|
8788
|
+
case "buffer": return Yl(E && Buffer.isBuffer(e) ? e.toString("binary") : j(e), t);
|
|
8797
8789
|
case "array": return Yl(Ft(e), t);
|
|
8798
8790
|
}
|
|
8799
8791
|
throw Error("Unrecognized type " + t.type);
|
|
@@ -11332,9 +11324,9 @@ function Fp(e, t, n, r, i) {
|
|
|
11332
11324
|
}, s = [], c, l, u, d = 0, f = 0, p, m = "";
|
|
11333
11325
|
if (!e[0] || !e[0][0]) return "";
|
|
11334
11326
|
let h = -1, g = "";
|
|
11335
|
-
for (let t = 0,
|
|
11336
|
-
let
|
|
11337
|
-
switch (
|
|
11327
|
+
for (let t = 0, E = e[0].length; t < E; ++t) {
|
|
11328
|
+
let E = e[0][t];
|
|
11329
|
+
switch (E[0]) {
|
|
11338
11330
|
case "PtgUminus":
|
|
11339
11331
|
s.push("-" + s.pop());
|
|
11340
11332
|
break;
|
|
@@ -11368,7 +11360,7 @@ function Fp(e, t, n, r, i) {
|
|
|
11368
11360
|
}
|
|
11369
11361
|
l += g, h = -1;
|
|
11370
11362
|
}
|
|
11371
|
-
s.push(l + jp[
|
|
11363
|
+
s.push(l + jp[E[0]] + c);
|
|
11372
11364
|
break;
|
|
11373
11365
|
case "PtgIsect":
|
|
11374
11366
|
c = s.pop(), l = s.pop(), s.push(l + " " + c);
|
|
@@ -11384,44 +11376,44 @@ function Fp(e, t, n, r, i) {
|
|
|
11384
11376
|
case "PtgAttrIf": break;
|
|
11385
11377
|
case "PtgAttrIfError": break;
|
|
11386
11378
|
case "PtgRef":
|
|
11387
|
-
u = Wr(
|
|
11379
|
+
u = Wr(E[1][1], o, i), s.push(Kr(u, a));
|
|
11388
11380
|
break;
|
|
11389
11381
|
case "PtgRefN":
|
|
11390
|
-
u = n ? Wr(
|
|
11382
|
+
u = n ? Wr(E[1][1], n, i) : E[1][1], s.push(Kr(u, a));
|
|
11391
11383
|
break;
|
|
11392
11384
|
case "PtgRef3d":
|
|
11393
|
-
d =
|
|
11385
|
+
d = E[1][1], u = Wr(E[1][2], o, i), m = Pp(r, d, i), s.push(m + "!" + Kr(u, a));
|
|
11394
11386
|
break;
|
|
11395
11387
|
case "PtgFunc":
|
|
11396
11388
|
case "PtgFuncVar":
|
|
11397
|
-
var _ =
|
|
11389
|
+
var _ = E[1][0], v = E[1][1];
|
|
11398
11390
|
_ ||= 0, _ &= 127;
|
|
11399
11391
|
var y = _ == 0 ? [] : s.slice(-_);
|
|
11400
11392
|
s.length -= _, v === "User" && (v = y.shift()), s.push(v + "(" + y.join(",") + ")");
|
|
11401
11393
|
break;
|
|
11402
11394
|
case "PtgBool":
|
|
11403
|
-
s.push(
|
|
11395
|
+
s.push(E[1] ? "TRUE" : "FALSE");
|
|
11404
11396
|
break;
|
|
11405
11397
|
case "PtgInt":
|
|
11406
|
-
s.push(
|
|
11398
|
+
s.push(E[1]);
|
|
11407
11399
|
break;
|
|
11408
11400
|
case "PtgNum":
|
|
11409
|
-
s.push(String(
|
|
11401
|
+
s.push(String(E[1]));
|
|
11410
11402
|
break;
|
|
11411
11403
|
case "PtgStr":
|
|
11412
|
-
s.push("\"" +
|
|
11404
|
+
s.push("\"" + E[1].replace(/"/g, "\"\"") + "\"");
|
|
11413
11405
|
break;
|
|
11414
11406
|
case "PtgErr":
|
|
11415
|
-
s.push(
|
|
11407
|
+
s.push(E[1]);
|
|
11416
11408
|
break;
|
|
11417
11409
|
case "PtgAreaN":
|
|
11418
|
-
p = Gr(
|
|
11410
|
+
p = Gr(E[1][1], n ? { s: n } : o, i), s.push(qr(p, i));
|
|
11419
11411
|
break;
|
|
11420
11412
|
case "PtgArea":
|
|
11421
|
-
p = Gr(
|
|
11413
|
+
p = Gr(E[1][1], o, i), s.push(qr(p, i));
|
|
11422
11414
|
break;
|
|
11423
11415
|
case "PtgArea3d":
|
|
11424
|
-
d =
|
|
11416
|
+
d = E[1][1], p = E[1][2], m = Pp(r, d, i), s.push(m + "!" + qr(p, i));
|
|
11425
11417
|
break;
|
|
11426
11418
|
case "PtgAttrSum":
|
|
11427
11419
|
s.push("SUM(" + s.pop() + ")");
|
|
@@ -11429,13 +11421,13 @@ function Fp(e, t, n, r, i) {
|
|
|
11429
11421
|
case "PtgAttrBaxcel":
|
|
11430
11422
|
case "PtgAttrSemi": break;
|
|
11431
11423
|
case "PtgName":
|
|
11432
|
-
f =
|
|
11424
|
+
f = E[1][2];
|
|
11433
11425
|
var b = (r.names || [])[f - 1] || (r[0] || [])[f], x = b ? b.Name : "SH33TJSNAME" + String(f);
|
|
11434
11426
|
x && x.slice(0, 6) == "_xlfn." && !i.xlfn && (x = x.slice(6)), s.push(x);
|
|
11435
11427
|
break;
|
|
11436
11428
|
case "PtgNameX":
|
|
11437
|
-
var S =
|
|
11438
|
-
f =
|
|
11429
|
+
var S = E[1][1];
|
|
11430
|
+
f = E[1][2];
|
|
11439
11431
|
var C;
|
|
11440
11432
|
if (i.biff <= 5) S < 0 && (S = -S), r[S] && (C = r[S][f]);
|
|
11441
11433
|
else {
|
|
@@ -11481,27 +11473,27 @@ function Fp(e, t, n, r, i) {
|
|
|
11481
11473
|
break;
|
|
11482
11474
|
case "PtgExp":
|
|
11483
11475
|
u = {
|
|
11484
|
-
c:
|
|
11485
|
-
r:
|
|
11476
|
+
c: E[1][1],
|
|
11477
|
+
r: E[1][0]
|
|
11486
11478
|
};
|
|
11487
|
-
var
|
|
11479
|
+
var ee = {
|
|
11488
11480
|
c: n.c,
|
|
11489
11481
|
r: n.r
|
|
11490
11482
|
};
|
|
11491
11483
|
if (r.sharedf[ri(u)]) {
|
|
11492
11484
|
let e = r.sharedf[ri(u)];
|
|
11493
|
-
s.push(Fp(e, o,
|
|
11485
|
+
s.push(Fp(e, o, ee, r, i));
|
|
11494
11486
|
} else {
|
|
11495
11487
|
let e = !1;
|
|
11496
11488
|
for (c = 0; c != r.arrayf.length; ++c) if (l = r.arrayf[c], !(u.c < l[0].s.c || u.c > l[0].e.c) && !(u.r < l[0].s.r || u.r > l[0].e.r)) {
|
|
11497
|
-
s.push(Fp(l[1], o,
|
|
11489
|
+
s.push(Fp(l[1], o, ee, r, i)), e = !0;
|
|
11498
11490
|
break;
|
|
11499
11491
|
}
|
|
11500
|
-
e || s.push(
|
|
11492
|
+
e || s.push(E[1]);
|
|
11501
11493
|
}
|
|
11502
11494
|
break;
|
|
11503
11495
|
case "PtgArray":
|
|
11504
|
-
s.push("{" + Ap(
|
|
11496
|
+
s.push("{" + Ap(E[1]) + "}");
|
|
11505
11497
|
break;
|
|
11506
11498
|
case "PtgMemArea": break;
|
|
11507
11499
|
case "PtgAttrSpace":
|
|
@@ -11520,7 +11512,7 @@ function Fp(e, t, n, r, i) {
|
|
|
11520
11512
|
s.push("#REF!");
|
|
11521
11513
|
break;
|
|
11522
11514
|
case "PtgList":
|
|
11523
|
-
s.push("Table" +
|
|
11515
|
+
s.push("Table" + E[1].idx + "[#" + E[1].rt + "]");
|
|
11524
11516
|
break;
|
|
11525
11517
|
case "PtgMemAreaN":
|
|
11526
11518
|
case "PtgMemNoMemN":
|
|
@@ -11539,26 +11531,26 @@ function Fp(e, t, n, r, i) {
|
|
|
11539
11531
|
case "PtgElfRadicalS":
|
|
11540
11532
|
case "PtgElfRw":
|
|
11541
11533
|
case "PtgElfRwV": throw Error("Unsupported ELFs");
|
|
11542
|
-
case "PtgSxName": throw Error("Unrecognized Formula Token: " + String(
|
|
11543
|
-
default: throw Error("Unrecognized Formula Token: " + String(
|
|
11534
|
+
case "PtgSxName": throw Error("Unrecognized Formula Token: " + String(E));
|
|
11535
|
+
default: throw Error("Unrecognized Formula Token: " + String(E));
|
|
11544
11536
|
}
|
|
11545
11537
|
if (i.biff != 3 && h >= 0 && [
|
|
11546
11538
|
"PtgAttrSpace",
|
|
11547
11539
|
"PtgAttrSpaceSemi",
|
|
11548
11540
|
"PtgAttrGoto"
|
|
11549
11541
|
].indexOf(e[0][t][0]) == -1) {
|
|
11550
|
-
|
|
11542
|
+
E = e[0][h];
|
|
11551
11543
|
let t = !0;
|
|
11552
|
-
switch (
|
|
11544
|
+
switch (E[1][0]) {
|
|
11553
11545
|
case 4: t = !1;
|
|
11554
11546
|
case 0:
|
|
11555
|
-
g = Lt(" ",
|
|
11547
|
+
g = Lt(" ", E[1][1]);
|
|
11556
11548
|
break;
|
|
11557
11549
|
case 5: t = !1;
|
|
11558
11550
|
case 1:
|
|
11559
|
-
g = Lt("\r",
|
|
11551
|
+
g = Lt("\r", E[1][1]);
|
|
11560
11552
|
break;
|
|
11561
|
-
default: if (g = "", i.WTF) throw Error("Unexpected PtgAttrSpaceType " +
|
|
11553
|
+
default: if (g = "", i.WTF) throw Error("Unexpected PtgAttrSpaceType " + E[1][0]);
|
|
11562
11554
|
}
|
|
11563
11555
|
s.push((t ? g : "") + s.pop() + (t ? "" : g)), h = -1;
|
|
11564
11556
|
}
|
|
@@ -11621,7 +11613,7 @@ function Up(e, t, n, r, i) {
|
|
|
11621
11613
|
s.write_shift(2, 33), s.write_shift(4, 0);
|
|
11622
11614
|
let c = U(e.bf.length);
|
|
11623
11615
|
for (let t = 0; t < e.bf.length; ++t) c[t] = e.bf[t];
|
|
11624
|
-
return
|
|
11616
|
+
return M([
|
|
11625
11617
|
a,
|
|
11626
11618
|
o,
|
|
11627
11619
|
s,
|
|
@@ -11655,7 +11647,7 @@ function Qp(e) {
|
|
|
11655
11647
|
let n = U(2 * e.length);
|
|
11656
11648
|
n.write_shift(2 * e.length, e, "utf16le");
|
|
11657
11649
|
let r = U(4);
|
|
11658
|
-
return r.write_shift(4, 0),
|
|
11650
|
+
return r.write_shift(4, 0), M([
|
|
11659
11651
|
t,
|
|
11660
11652
|
n,
|
|
11661
11653
|
r
|
|
@@ -12972,7 +12964,7 @@ function Cm(e, t) {
|
|
|
12972
12964
|
var wm = /<(?:\w+:)?mergeCell ref=["'][A-Z0-9:]+['"]\s*[/]?>/g, Tm = /<(?:\w+:)?hyperlink [^<>]*>/gm, Em = /"(\w*:\w*)"/, Dm = /<(?:\w+:)?col\b[^<>]*[/]?>/g, Om = /<(?:\w+:)?autoFilter[^>]*/g, km = /<(?:\w+:)?pageMargins[^<>]*\/>/g, Am = /<(?:\w+:)?sheetPr\b[^<>]*?\/>/;
|
|
12973
12965
|
function jm(e, t, n, r, i, a, o) {
|
|
12974
12966
|
if (!e) return e;
|
|
12975
|
-
r ||= { "!id": {} }
|
|
12967
|
+
r ||= { "!id": {} };
|
|
12976
12968
|
let s = {};
|
|
12977
12969
|
t.dense && (s["!data"] = []);
|
|
12978
12970
|
let c = {
|
|
@@ -13009,8 +13001,8 @@ function jm(e, t, n, r, i, a, o) {
|
|
|
13009
13001
|
y && zm(s, y, r);
|
|
13010
13002
|
let b = u.match(km);
|
|
13011
13003
|
b && (s["!margins"] = Bm(B(b[0])));
|
|
13012
|
-
let
|
|
13013
|
-
if ((
|
|
13004
|
+
let x;
|
|
13005
|
+
if ((x = u.match(/legacyDrawing r:id="(.*?)"/)) && (s["!legrel"] = x[1]), t && t.nodim && (c.s.c = c.s.r = 0), !s["!ref"] && c.e.c >= c.s.c && c.e.r >= c.s.r && (s["!ref"] = K(c)), t.sheetRows > 0 && s["!ref"]) {
|
|
13014
13006
|
let e = si(s["!ref"]);
|
|
13015
13007
|
t.sheetRows <= +e.e.r && (e.e.r = t.sheetRows - 1, e.e.r > c.e.r && (e.e.r = c.e.r), e.e.r < e.s.r && (e.s.r = e.e.r), e.e.c > c.e.c && (e.e.c = c.e.c), e.e.c < e.s.c && (e.s.c = e.e.c), s["!fullref"] = s["!ref"], s["!ref"] = K(e));
|
|
13016
13008
|
}
|
|
@@ -13219,9 +13211,9 @@ function Ym(e, t, n, r, i, a, o) {
|
|
|
13219
13211
|
var Xm = (function() {
|
|
13220
13212
|
let e = /<(?:\w+:)?c[ />]/, t = /<\/(?:\w+:)?row>/, n = /r=["']([^"']*)["']/, r = /ref=["']([^"']*)["']/;
|
|
13221
13213
|
return function(i, a, o, s, c, l, u) {
|
|
13222
|
-
let d = 0, f = "", p = [], m = [], h = 0, g = 0, _ = 0, v = "", y, b, x = 0, S = 0, C, w, T = 0,
|
|
13223
|
-
for (let u = i.split(t),
|
|
13224
|
-
f = u[
|
|
13214
|
+
let d = 0, f = "", p = [], m = [], h = 0, g = 0, _ = 0, v = "", y, b, x = 0, S = 0, C, w, T = 0, ee = 0, E = Array.isArray(l.CellXf), D, O = [], k = [], te = a["!data"] != null, A = [], ne = {}, j = !1, re = !!o.sheetStubs, ie = !!((u || {}).WBProps || {}).date1904;
|
|
13215
|
+
for (let u = i.split(t), N = 0, oe = u.length; N != oe; ++N) {
|
|
13216
|
+
f = u[N].trim();
|
|
13225
13217
|
let t = f.length;
|
|
13226
13218
|
if (t === 0) continue;
|
|
13227
13219
|
let i = 0;
|
|
@@ -13233,7 +13225,7 @@ var Xm = (function() {
|
|
|
13233
13225
|
}
|
|
13234
13226
|
if (o && o.cellStyles) {
|
|
13235
13227
|
if (b = B(f.slice(i, d), !0), x = b.r == null ? x + 1 : parseInt(b.r, 10), S = -1, o.sheetRows && o.sheetRows < x) continue;
|
|
13236
|
-
|
|
13228
|
+
ne = {}, j = !1, b.ht && (j = !0, ne.hpt = parseFloat(b.ht), ne.hpx = hu(ne.hpt)), b.hidden && Ln(b.hidden) && (j = !0, ne.hidden = !0), b.outlineLevel != null && (j = !0, ne.level = +b.outlineLevel), j && (A[x - 1] = ne);
|
|
13237
13229
|
}
|
|
13238
13230
|
break;
|
|
13239
13231
|
case "<":
|
|
@@ -13242,9 +13234,9 @@ var Xm = (function() {
|
|
|
13242
13234
|
}
|
|
13243
13235
|
if (i >= d) break;
|
|
13244
13236
|
if (b = B(f.slice(i, d), !0), x = b.r == null ? x + 1 : parseInt(b.r, 10), S = -1, !(o.sheetRows && o.sheetRows < x)) {
|
|
13245
|
-
o.nodim || (s.s.r > x - 1 && (s.s.r = x - 1), s.e.r < x - 1 && (s.e.r = x - 1)), o && o.cellStyles && (
|
|
13246
|
-
for (var
|
|
13247
|
-
for (p = p.slice(
|
|
13237
|
+
o.nodim || (s.s.r > x - 1 && (s.s.r = x - 1), s.e.r < x - 1 && (s.e.r = x - 1)), o && o.cellStyles && (ne = {}, j = !1, b.ht && (j = !0, ne.hpt = parseFloat(b.ht), ne.hpx = hu(ne.hpt)), b.hidden && Ln(b.hidden) && (j = !0, ne.hidden = !0), b.outlineLevel != null && (j = !0, ne.level = +b.outlineLevel), j && (A[x - 1] = ne)), p = f.slice(d).split(e);
|
|
13238
|
+
for (var M = 0; M != p.length && p[M].trim().charAt(0) == "<"; ++M);
|
|
13239
|
+
for (p = p.slice(M), d = 0; d != p.length; ++d) if (f = p[d].trim(), f.length !== 0) {
|
|
13248
13240
|
if (m = f.match(n), h = d, g = 0, _ = 0, f = "<c " + (f.slice(0, 1) == "<" ? ">" : "") + f, m != null && m.length === 2) {
|
|
13249
13241
|
for (h = 0, v = m[1], g = 0; g != v.length && !((_ = v.charCodeAt(g) - 64) < 1 || _ > 26); ++g) h = 26 * h + _;
|
|
13250
13242
|
--h, S = h;
|
|
@@ -13255,35 +13247,35 @@ var Xm = (function() {
|
|
|
13255
13247
|
c: S
|
|
13256
13248
|
}), v = f.slice(g), y = { t: "" }, (m = tn(v, "v")) != null && m[1] !== "" && (y.v = On(m[1])), o.cellFormula) {
|
|
13257
13249
|
if ((m = tn(v, "f")) != null) {
|
|
13258
|
-
if (m[1] == "") m[0].indexOf("t=\"shared\"") > -1 && (w = B(m[0]),
|
|
13259
|
-
else if (y.f = On(Hn(m[1]), !0), o.xlfn || (y.f = of(y.f)), m[0].indexOf("t=\"array\"") > -1) y.F = (v.match(r) || [])[1], y.F.indexOf(":") > -1 &&
|
|
13250
|
+
if (m[1] == "") m[0].indexOf("t=\"shared\"") > -1 && (w = B(m[0]), k[w.si] && (y.f = rf(k[w.si][1], k[w.si][2], b.r)));
|
|
13251
|
+
else if (y.f = On(Hn(m[1]), !0), o.xlfn || (y.f = of(y.f)), m[0].indexOf("t=\"array\"") > -1) y.F = (v.match(r) || [])[1], y.F.indexOf(":") > -1 && O.push([si(y.F), y.F]);
|
|
13260
13252
|
else if (m[0].indexOf("t=\"shared\"") > -1) {
|
|
13261
13253
|
w = B(m[0]);
|
|
13262
13254
|
let e = On(Hn(m[1]));
|
|
13263
|
-
o.xlfn || (e = of(e)),
|
|
13255
|
+
o.xlfn || (e = of(e)), k[parseInt(w.si, 10)] = [
|
|
13264
13256
|
w,
|
|
13265
13257
|
e,
|
|
13266
13258
|
b.r
|
|
13267
13259
|
];
|
|
13268
13260
|
}
|
|
13269
|
-
} else (m = v.match(/<f[^<>]*\/>/)) && (w = B(m[0]),
|
|
13261
|
+
} else (m = v.match(/<f[^<>]*\/>/)) && (w = B(m[0]), k[w.si] && (y.f = rf(k[w.si][1], k[w.si][2], b.r)));
|
|
13270
13262
|
let e = ni(b.r);
|
|
13271
|
-
for (g = 0; g <
|
|
13263
|
+
for (g = 0; g < O.length; ++g) e.r >= O[g][0].s.r && e.r <= O[g][0].e.r && e.c >= O[g][0].s.c && e.c <= O[g][0].e.c && (y.F = O[g][1]);
|
|
13272
13264
|
}
|
|
13273
13265
|
if (b.t == null && y.v === void 0) if (y.f || y.F) y.v = 0, y.t = "n";
|
|
13274
|
-
else if (
|
|
13266
|
+
else if (re) y.t = "z";
|
|
13275
13267
|
else continue;
|
|
13276
13268
|
else y.t = b.t || "n";
|
|
13277
13269
|
switch (s.s.c > S && (s.s.c = S), s.e.c < S && (s.e.c = S), y.t) {
|
|
13278
13270
|
case "n":
|
|
13279
13271
|
if (y.v == "" || y.v == null) {
|
|
13280
|
-
if (!
|
|
13272
|
+
if (!re) continue;
|
|
13281
13273
|
y.t = "z";
|
|
13282
13274
|
} else y.v = parseFloat(y.v);
|
|
13283
13275
|
break;
|
|
13284
13276
|
case "s":
|
|
13285
13277
|
if (y.v === void 0) {
|
|
13286
|
-
if (!
|
|
13278
|
+
if (!re) continue;
|
|
13287
13279
|
y.t = "z";
|
|
13288
13280
|
} else C = mm[parseInt(y.v, 10)], y.v = C.t, y.r = C.r, o.cellHTML && (y.h = C.h);
|
|
13289
13281
|
break;
|
|
@@ -13297,22 +13289,22 @@ var Xm = (function() {
|
|
|
13297
13289
|
y.v = Ln(y.v);
|
|
13298
13290
|
break;
|
|
13299
13291
|
case "d":
|
|
13300
|
-
o.cellDates ? y.v = Pt(y.v,
|
|
13292
|
+
o.cellDates ? y.v = Pt(y.v, ie) : (y.v = Ot(Pt(y.v, ie), ie), y.t = "n");
|
|
13301
13293
|
break;
|
|
13302
13294
|
case "e":
|
|
13303
13295
|
(!o || o.cellText !== !1) && (y.w = y.v), y.v = ga[y.v];
|
|
13304
13296
|
break;
|
|
13305
13297
|
}
|
|
13306
|
-
if (T =
|
|
13298
|
+
if (T = ee = 0, D = null, E && b.s !== void 0 && (D = l.CellXf[b.s], D != null && (D.numFmtId != null && (T = D.numFmtId), o.cellStyles && D.fillId != null && (ee = D.fillId))), xm(y, T, ee, o, c, l, ie), o.cellDates && E && y.t == "n" && $e(L[T]) && (y.v = kt(y.v + (ie ? 1462 : 0)), y.t = typeof y.v == "number" ? "n" : "d"), b.cm && o.xlmeta) {
|
|
13307
13299
|
let e = (o.xlmeta.Cell || [])[b.cm - 1];
|
|
13308
13300
|
e && e.type == "XLDAPR" && (y.D = !0);
|
|
13309
13301
|
}
|
|
13310
|
-
var
|
|
13311
|
-
o.nodim && (
|
|
13302
|
+
var ae;
|
|
13303
|
+
o.nodim && (ae = ni(b.r), s.s.r > ae.r && (s.s.r = ae.r), s.e.r < ae.r && (s.e.r = ae.r)), te ? (ae = ni(b.r), a["!data"][ae.r] || (a["!data"][ae.r] = []), a["!data"][ae.r][ae.c] = y) : a[b.r] = y;
|
|
13312
13304
|
}
|
|
13313
13305
|
}
|
|
13314
13306
|
}
|
|
13315
|
-
|
|
13307
|
+
A.length > 0 && (a["!rows"] = A);
|
|
13316
13308
|
};
|
|
13317
13309
|
})();
|
|
13318
13310
|
function Zm(e, t, n, r) {
|
|
@@ -13683,7 +13675,7 @@ function rg() {}
|
|
|
13683
13675
|
function ig(e, t, n, r, i, a, o) {
|
|
13684
13676
|
if (!e) return e;
|
|
13685
13677
|
let s = t || {};
|
|
13686
|
-
r ||= { "!id": {} }
|
|
13678
|
+
r ||= { "!id": {} };
|
|
13687
13679
|
let c = {};
|
|
13688
13680
|
s.dense && (c["!data"] = []);
|
|
13689
13681
|
let l, u = {
|
|
@@ -13695,25 +13687,25 @@ function ig(e, t, n, r, i, a, o) {
|
|
|
13695
13687
|
r: 0,
|
|
13696
13688
|
c: 0
|
|
13697
13689
|
}
|
|
13698
|
-
}, d = [], f = !1, p = !1, m, h, g, _, v, y, b, S, C
|
|
13690
|
+
}, d = [], f = !1, p = !1, m, h, g, _, v, y, b, x, S, C = [];
|
|
13699
13691
|
s.biff = 12, s["!row"] = 0;
|
|
13700
|
-
let
|
|
13701
|
-
if (
|
|
13692
|
+
let w = 0, T = !1, ee = [], E = {}, D = s.supbooks || i.supbooks || [[]];
|
|
13693
|
+
if (D.sharedf = E, D.arrayf = ee, D.SheetNames = i.SheetNames || i.Sheets.map(function(e) {
|
|
13702
13694
|
return e.name;
|
|
13703
|
-
}), !s.supbooks && (s.supbooks =
|
|
13704
|
-
let
|
|
13695
|
+
}), !s.supbooks && (s.supbooks = D, i.Names)) for (let e = 0; e < i.Names.length; ++e) D[0][e + 1] = i.Names[e];
|
|
13696
|
+
let O = [], k = [], te = !1;
|
|
13705
13697
|
q_[16] = {
|
|
13706
13698
|
n: "BrtShortReal",
|
|
13707
13699
|
f: Th
|
|
13708
13700
|
};
|
|
13709
|
-
let
|
|
13710
|
-
if (Hr(e, function(e, t,
|
|
13711
|
-
if (!p) switch (
|
|
13701
|
+
let A, ne, j = 1462 * !!((i || {}).WBProps || {}).date1904;
|
|
13702
|
+
if (Hr(e, function(e, t, re) {
|
|
13703
|
+
if (!p) switch (re) {
|
|
13712
13704
|
case 148:
|
|
13713
13705
|
l = e;
|
|
13714
13706
|
break;
|
|
13715
13707
|
case 0:
|
|
13716
|
-
m = e, s.sheetRows && s.sheetRows <= m.r && (p = !0),
|
|
13708
|
+
m = e, s.sheetRows && s.sheetRows <= m.r && (p = !0), x = Yr(_ = m.r), s["!row"] = m.r, (e.hidden || e.hpt || e.level != null) && (e.hpt && (e.hpx = hu(e.hpt)), k[e.r] = e);
|
|
13717
13709
|
break;
|
|
13718
13710
|
case 2:
|
|
13719
13711
|
case 3:
|
|
@@ -13752,18 +13744,18 @@ function ig(e, t, n, r, i, a, o) {
|
|
|
13752
13744
|
h.t = "s", h.v = e[1].t;
|
|
13753
13745
|
break;
|
|
13754
13746
|
}
|
|
13755
|
-
if ((g = o.CellXf[e[0].iStyleRef]) && xm(h, g.numFmtId, null, s, a, o,
|
|
13756
|
-
for (
|
|
13757
|
-
let e =
|
|
13758
|
-
m.r >= e[0].s.r && m.r <= e[0].e.r && v >= e[0].s.c && v <= e[0].e.c && (h.F = K(e[0]),
|
|
13747
|
+
if ((g = o.CellXf[e[0].iStyleRef]) && xm(h, g.numFmtId, null, s, a, o, j > 0), v = e[0].c == -1 ? v + 1 : e[0].c, s.dense ? (c["!data"][_] || (c["!data"][_] = []), c["!data"][_][v] = h) : c[G(v) + x] = h, s.cellFormula) {
|
|
13748
|
+
for (T = !1, w = 0; w < ee.length; ++w) {
|
|
13749
|
+
let e = ee[w];
|
|
13750
|
+
m.r >= e[0].s.r && m.r <= e[0].e.r && v >= e[0].s.c && v <= e[0].e.c && (h.F = K(e[0]), T = !0);
|
|
13759
13751
|
}
|
|
13760
|
-
!
|
|
13752
|
+
!T && e.length > 3 && (h.f = e[3]);
|
|
13761
13753
|
}
|
|
13762
13754
|
if (u.s.r > m.r && (u.s.r = m.r), u.s.c > v && (u.s.c = v), u.e.r < m.r && (u.e.r = m.r), u.e.c < v && (u.e.c = v), s.cellDates && g && h.t == "n" && $e(L[g.numFmtId])) {
|
|
13763
|
-
let e = be(h.v +
|
|
13755
|
+
let e = be(h.v + j);
|
|
13764
13756
|
e && (h.t = "d", h.v = new Date(Date.UTC(e.y, e.m - 1, e.d, e.H, e.M, e.S, e.u)));
|
|
13765
13757
|
}
|
|
13766
|
-
|
|
13758
|
+
A &&= (A.type == "XLDAPR" && (h.D = !0), void 0), ne &&= void 0;
|
|
13767
13759
|
break;
|
|
13768
13760
|
case 1:
|
|
13769
13761
|
case 12:
|
|
@@ -13771,17 +13763,17 @@ function ig(e, t, n, r, i, a, o) {
|
|
|
13771
13763
|
h = {
|
|
13772
13764
|
t: "z",
|
|
13773
13765
|
v: void 0
|
|
13774
|
-
}, v = e[0].c == -1 ? v + 1 : e[0].c, s.dense ? (c["!data"][_] || (c["!data"][_] = []), c["!data"][_][v] = h) : c[G(v) +
|
|
13766
|
+
}, v = e[0].c == -1 ? v + 1 : e[0].c, s.dense ? (c["!data"][_] || (c["!data"][_] = []), c["!data"][_][v] = h) : c[G(v) + x] = h, u.s.r > m.r && (u.s.r = m.r), u.s.c > v && (u.s.c = v), u.e.r < m.r && (u.e.r = m.r), u.e.c < v && (u.e.c = v), A &&= (A.type == "XLDAPR" && (h.D = !0), void 0), ne &&= void 0;
|
|
13775
13767
|
break;
|
|
13776
13768
|
case 176:
|
|
13777
|
-
|
|
13769
|
+
C.push(e);
|
|
13778
13770
|
break;
|
|
13779
13771
|
case 49:
|
|
13780
|
-
|
|
13772
|
+
A = ((s.xlmeta || {}).Cell || [])[e - 1];
|
|
13781
13773
|
break;
|
|
13782
13774
|
case 494:
|
|
13783
|
-
var
|
|
13784
|
-
for (
|
|
13775
|
+
var ie = r["!id"][e.relId];
|
|
13776
|
+
for (ie ? (e.Target = ie.Target, e.loc && (e.Target += "#" + e.loc), e.Rel = ie) : e.relId == "" && (e.Target = "#" + e.loc), _ = e.rfx.s.r; _ <= e.rfx.e.r; ++_) for (v = e.rfx.s.c; v <= e.rfx.e.c; ++v) s.dense ? (c["!data"][_] || (c["!data"][_] = []), c["!data"][_][v] || (c["!data"][_][v] = {
|
|
13785
13777
|
t: "z",
|
|
13786
13778
|
v: void 0
|
|
13787
13779
|
}), c["!data"][_][v].l = e) : (y = G(v) + Yr(_), c[y] || (c[y] = {
|
|
@@ -13791,25 +13783,25 @@ function ig(e, t, n, r, i, a, o) {
|
|
|
13791
13783
|
break;
|
|
13792
13784
|
case 426:
|
|
13793
13785
|
if (!s.cellFormula) break;
|
|
13794
|
-
|
|
13786
|
+
ee.push(e), S = s.dense ? c["!data"][_][v] : c[G(v) + x], S.f = Fp(e[1], u, {
|
|
13795
13787
|
r: m.r,
|
|
13796
13788
|
c: v
|
|
13797
|
-
},
|
|
13789
|
+
}, D, s), S.F = K(e[0]);
|
|
13798
13790
|
break;
|
|
13799
13791
|
case 427:
|
|
13800
13792
|
if (!s.cellFormula) break;
|
|
13801
|
-
|
|
13793
|
+
E[ri(e[0].s)] = e[1], S = s.dense ? c["!data"][_][v] : c[G(v) + x], S.f = Fp(e[1], u, {
|
|
13802
13794
|
r: m.r,
|
|
13803
13795
|
c: v
|
|
13804
|
-
},
|
|
13796
|
+
}, D, s);
|
|
13805
13797
|
break;
|
|
13806
13798
|
case 60:
|
|
13807
13799
|
if (!s.cellStyles) break;
|
|
13808
|
-
for (; e.e >= e.s;)
|
|
13800
|
+
for (; e.e >= e.s;) O[e.e--] = {
|
|
13809
13801
|
width: e.w / 256,
|
|
13810
13802
|
hidden: !!(e.flags & 1),
|
|
13811
13803
|
level: e.level
|
|
13812
|
-
},
|
|
13804
|
+
}, te || (te = !0, du(e.w / 256)), fu(O[e.e + 1]);
|
|
13813
13805
|
break;
|
|
13814
13806
|
case 551:
|
|
13815
13807
|
e && (c["!legrel"] = e);
|
|
@@ -13889,18 +13881,18 @@ function ig(e, t, n, r, i, a, o) {
|
|
|
13889
13881
|
f = !1;
|
|
13890
13882
|
break;
|
|
13891
13883
|
case 37:
|
|
13892
|
-
d.push(
|
|
13884
|
+
d.push(re), f = !0;
|
|
13893
13885
|
break;
|
|
13894
13886
|
case 38:
|
|
13895
13887
|
d.pop(), f = !1;
|
|
13896
13888
|
break;
|
|
13897
|
-
default: if (!t.T && (!f || s.WTF)) throw Error("Unexpected record 0x" +
|
|
13889
|
+
default: if (!t.T && (!f || s.WTF)) throw Error("Unexpected record 0x" + re.toString(16));
|
|
13898
13890
|
}
|
|
13899
13891
|
}, s), delete s.supbooks, delete s["!row"], !c["!ref"] && (u.s.r < 2e6 || l && (l.e.r > 0 || l.e.c > 0 || l.s.r > 0 || l.s.c > 0)) && (c["!ref"] = K(l || u)), s.sheetRows && c["!ref"]) {
|
|
13900
13892
|
let e = si(c["!ref"]);
|
|
13901
13893
|
s.sheetRows <= +e.e.r && (e.e.r = s.sheetRows - 1, e.e.r > u.e.r && (e.e.r = u.e.r), e.e.r < e.s.r && (e.s.r = e.e.r), e.e.c > u.e.c && (e.e.c = u.e.c), e.e.c < e.s.c && (e.s.c = e.e.c), c["!fullref"] = c["!ref"], c["!ref"] = K(e));
|
|
13902
13894
|
}
|
|
13903
|
-
return
|
|
13895
|
+
return C.length > 0 && (c["!merges"] = C), O.length > 0 && (c["!cols"] = O), k.length > 0 && (c["!rows"] = k), r["!id"][c["!legrel"]] && (c["!legdrawel"] = r["!id"][c["!legrel"]]), c;
|
|
13904
13896
|
}
|
|
13905
13897
|
function ag(e, t, n, r, i, a, o, s) {
|
|
13906
13898
|
let c = {
|
|
@@ -14582,7 +14574,7 @@ function Hg(e, t) {
|
|
|
14582
14574
|
let e = U(4);
|
|
14583
14575
|
e.write_shift(4, 4294967295), a.push(e);
|
|
14584
14576
|
}
|
|
14585
|
-
return
|
|
14577
|
+
return M(a);
|
|
14586
14578
|
}
|
|
14587
14579
|
function Ug(e, t) {
|
|
14588
14580
|
let n = {
|
|
@@ -14899,11 +14891,9 @@ function x_(e, t) {
|
|
|
14899
14891
|
"True/False": "\"True\";\"True\";\"False\";@",
|
|
14900
14892
|
"On/Off": "\"Yes\";\"Yes\";\"No\";@"
|
|
14901
14893
|
};
|
|
14902
|
-
let s, c = [], l;
|
|
14903
|
-
x != null && n.dense == null && (n.dense = x);
|
|
14904
|
-
let u = {}, d = [], f = {}, m = "";
|
|
14894
|
+
let s, c = [], l, u = {}, d = [], f = {}, m = "";
|
|
14905
14895
|
n.dense && (f["!data"] = []);
|
|
14906
|
-
let h = {}, g = {}, v = d_("<Data ss:Type=\"String\">"), y = 0, b = 0,
|
|
14896
|
+
let h = {}, g = {}, v = d_("<Data ss:Type=\"String\">"), y = 0, b = 0, x = 0, S = {
|
|
14907
14897
|
s: {
|
|
14908
14898
|
r: 2e6,
|
|
14909
14899
|
c: 2e6
|
|
@@ -14912,51 +14902,51 @@ function x_(e, t) {
|
|
|
14912
14902
|
r: 0,
|
|
14913
14903
|
c: 0
|
|
14914
14904
|
}
|
|
14915
|
-
},
|
|
14905
|
+
}, C = {}, w = {}, T = "", ee = 0, E = [], D = {}, O = {}, k = 0, te = [], A = [], ne = {}, j = [], re, ie = !1, M = [], ae = [], N = {}, oe = 0, P = 0, F = {
|
|
14916
14906
|
Sheets: [],
|
|
14917
14907
|
WBProps: { date1904: !1 }
|
|
14918
|
-
},
|
|
14908
|
+
}, se = {};
|
|
14919
14909
|
er.lastIndex = 0, r = Qt(r, "<!--", "-->");
|
|
14920
|
-
let
|
|
14921
|
-
for (; s = er.exec(r);) switch (s[3] = (
|
|
14910
|
+
let ce = "";
|
|
14911
|
+
for (; s = er.exec(r);) switch (s[3] = (ce = s[3]).toLowerCase()) {
|
|
14922
14912
|
case "data":
|
|
14923
|
-
if (
|
|
14913
|
+
if (ce == "data") {
|
|
14924
14914
|
if (s[1] === "/") {
|
|
14925
14915
|
if ((l = c.pop())[0] !== s[3]) throw Error("Bad state: " + l.join("|"));
|
|
14926
14916
|
} else s[0].charAt(s[0].length - 2) !== "/" && c.push([s[3], !0]);
|
|
14927
14917
|
break;
|
|
14928
14918
|
}
|
|
14929
14919
|
if (c[c.length - 1][1]) break;
|
|
14930
|
-
s[1] === "/" ? v_(r.slice(y, s.index),
|
|
14920
|
+
s[1] === "/" ? v_(r.slice(y, s.index), T, v, c[c.length - 1][0] == "comment" ? ne : h, {
|
|
14931
14921
|
c: b,
|
|
14932
|
-
r:
|
|
14933
|
-
},
|
|
14922
|
+
r: x
|
|
14923
|
+
}, C, j[b], g, M, n, F.WBProps.date1904) : (T = "", v = d_(s[0]), y = s.index + s[0].length);
|
|
14934
14924
|
break;
|
|
14935
14925
|
case "cell":
|
|
14936
|
-
if (s[1] === "/") if (
|
|
14926
|
+
if (s[1] === "/") if (A.length > 0 && (h.c = A), (!n.sheetRows || n.sheetRows > x) && h.v !== void 0 && (n.dense ? (f["!data"][x] || (f["!data"][x] = []), f["!data"][x][b] = h) : f[G(b) + Yr(x)] = h), h.HRef && (h.l = { Target: On(h.HRef) }, h.HRefScreenTip && (h.l.Tooltip = h.HRefScreenTip), delete h.HRef, delete h.HRefScreenTip), (h.MergeAcross || h.MergeDown) && (oe = b + (parseInt(h.MergeAcross, 10) | 0), P = x + (parseInt(h.MergeDown, 10) | 0), (oe > b || P > x) && E.push({
|
|
14937
14927
|
s: {
|
|
14938
14928
|
c: b,
|
|
14939
|
-
r:
|
|
14929
|
+
r: x
|
|
14940
14930
|
},
|
|
14941
14931
|
e: {
|
|
14942
14932
|
c: oe,
|
|
14943
|
-
r:
|
|
14933
|
+
r: P
|
|
14944
14934
|
}
|
|
14945
14935
|
})), !n.sheetStubs) h.MergeAcross ? b = oe + 1 : ++b;
|
|
14946
14936
|
else if (h.MergeAcross || h.MergeDown) {
|
|
14947
|
-
for (let e = b; e <= oe; ++e) for (let t =
|
|
14937
|
+
for (let e = b; e <= oe; ++e) for (let t = x; t <= P; ++t) (e > b || t > x) && (n.dense ? (f["!data"][t] || (f["!data"][t] = []), f["!data"][t][e] = { t: "z" }) : f[G(e) + Yr(t)] = { t: "z" });
|
|
14948
14938
|
b = oe + 1;
|
|
14949
14939
|
} else ++b;
|
|
14950
|
-
else h = f_(s[0]), h.Index && (b = h.Index - 1), b <
|
|
14940
|
+
else h = f_(s[0]), h.Index && (b = h.Index - 1), b < S.s.c && (S.s.c = b), b > S.e.c && (S.e.c = b), s[0].slice(-2) === "/>" && ++b, A = [];
|
|
14951
14941
|
break;
|
|
14952
14942
|
case "row":
|
|
14953
|
-
s[1] === "/" || s[0].slice(-2) === "/>" ? (
|
|
14943
|
+
s[1] === "/" || s[0].slice(-2) === "/>" ? (x < S.s.r && (S.s.r = x), x > S.e.r && (S.e.r = x), s[0].slice(-2) === "/>" && (g = d_(s[0]), g.Index && (x = g.Index - 1)), b = 0, ++x) : (g = d_(s[0]), g.Index && (x = g.Index - 1), N = {}, (g.AutoFitHeight == "0" || g.Height) && (N.hpx = parseInt(g.Height, 10), N.hpt = mu(N.hpx), ae[x] = N), g.Hidden == "1" && (N.hidden = !0, ae[x] = N));
|
|
14954
14944
|
break;
|
|
14955
14945
|
case "worksheet":
|
|
14956
14946
|
if (s[1] === "/") {
|
|
14957
14947
|
if ((l = c.pop())[0] !== s[3]) throw Error("Bad state: " + l.join("|"));
|
|
14958
|
-
d.push(m),
|
|
14959
|
-
} else
|
|
14948
|
+
d.push(m), S.s.r <= S.e.r && S.s.c <= S.e.c && (f["!ref"] = K(S), n.sheetRows && n.sheetRows <= S.e.r && (f["!fullref"] = f["!ref"], S.e.r = n.sheetRows - 1, f["!ref"] = K(S))), E.length && (f["!merges"] = E), j.length > 0 && (f["!cols"] = j), ae.length > 0 && (f["!rows"] = ae), u[m] = f;
|
|
14949
|
+
} else S = {
|
|
14960
14950
|
s: {
|
|
14961
14951
|
r: 2e6,
|
|
14962
14952
|
c: 2e6
|
|
@@ -14965,50 +14955,50 @@ function x_(e, t) {
|
|
|
14965
14955
|
r: 0,
|
|
14966
14956
|
c: 0
|
|
14967
14957
|
}
|
|
14968
|
-
},
|
|
14958
|
+
}, x = b = 0, c.push([s[3], !1]), l = d_(s[0]), m = On(l.Name), f = {}, n.dense && (f["!data"] = []), E = [], M = [], ae = [], se = {
|
|
14969
14959
|
name: m,
|
|
14970
14960
|
Hidden: 0
|
|
14971
|
-
},
|
|
14961
|
+
}, F.Sheets.push(se);
|
|
14972
14962
|
break;
|
|
14973
14963
|
case "table":
|
|
14974
14964
|
if (s[1] === "/") {
|
|
14975
14965
|
if ((l = c.pop())[0] !== s[3]) throw Error("Bad state: " + l.join("|"));
|
|
14976
14966
|
} else if (s[0].slice(-2) == "/>") break;
|
|
14977
|
-
else c.push([s[3], !1]),
|
|
14967
|
+
else c.push([s[3], !1]), j = [], ie = !1;
|
|
14978
14968
|
break;
|
|
14979
14969
|
case "style":
|
|
14980
|
-
s[1] === "/" ? __(
|
|
14970
|
+
s[1] === "/" ? __(C, w, n) : w = d_(s[0]);
|
|
14981
14971
|
break;
|
|
14982
14972
|
case "numberformat":
|
|
14983
|
-
|
|
14984
|
-
for (var
|
|
14985
|
-
if (
|
|
14986
|
-
for (
|
|
14987
|
-
mt(
|
|
14973
|
+
w.nf = On(d_(s[0]).Format || "General"), p_[w.nf] && (w.nf = p_[w.nf]);
|
|
14974
|
+
for (var le = 0; le != 392 && L[le] != w.nf; ++le);
|
|
14975
|
+
if (le == 392) {
|
|
14976
|
+
for (le = 57; le != 392; ++le) if (L[le] == null) {
|
|
14977
|
+
mt(w.nf, le);
|
|
14988
14978
|
break;
|
|
14989
14979
|
}
|
|
14990
14980
|
}
|
|
14991
14981
|
break;
|
|
14992
14982
|
case "column":
|
|
14993
14983
|
if (c[c.length - 1][0] !== "table" || s[1] === "/") break;
|
|
14994
|
-
if (
|
|
14995
|
-
|
|
14996
|
-
for (let e = 0; e <
|
|
14984
|
+
if (re = d_(s[0]), re.Hidden && (re.hidden = !0, delete re.Hidden), re.Width && (re.wpx = parseInt(re.Width, 10)), !ie && re.wpx > 10) {
|
|
14985
|
+
ie = !0, ou = ru;
|
|
14986
|
+
for (let e = 0; e < j.length; ++e) j[e] && fu(j[e]);
|
|
14997
14987
|
}
|
|
14998
|
-
|
|
14999
|
-
for (let e = 0; e < +
|
|
14988
|
+
ie && fu(re), j[re.Index - 1 || j.length] = re;
|
|
14989
|
+
for (let e = 0; e < +re.Span; ++e) j[j.length] = It(re);
|
|
15000
14990
|
break;
|
|
15001
14991
|
case "namedrange":
|
|
15002
14992
|
if (s[1] === "/") break;
|
|
15003
|
-
|
|
15004
|
-
var
|
|
15005
|
-
Name: y_(
|
|
15006
|
-
Ref: $d(
|
|
14993
|
+
F.Names ||= [];
|
|
14994
|
+
var ue = B(s[0]), de = {
|
|
14995
|
+
Name: y_(ue.Name),
|
|
14996
|
+
Ref: $d(ue.RefersTo.slice(1), {
|
|
15007
14997
|
r: 0,
|
|
15008
14998
|
c: 0
|
|
15009
14999
|
})
|
|
15010
15000
|
};
|
|
15011
|
-
|
|
15001
|
+
F.Sheets.length > 0 && (de.Sheet = F.Sheets.length - 1), F.Names.push(de);
|
|
15012
15002
|
break;
|
|
15013
15003
|
case "namedcell": break;
|
|
15014
15004
|
case "b": break;
|
|
@@ -15026,11 +15016,11 @@ function x_(e, t) {
|
|
|
15026
15016
|
case "border": break;
|
|
15027
15017
|
case "font":
|
|
15028
15018
|
if (s[0].slice(-2) === "/>") break;
|
|
15029
|
-
s[1] === "/" ?
|
|
15019
|
+
s[1] === "/" ? T += r.slice(ee, s.index) : ee = s.index + s[0].length;
|
|
15030
15020
|
break;
|
|
15031
15021
|
case "interior":
|
|
15032
15022
|
if (!n.cellStyles) break;
|
|
15033
|
-
|
|
15023
|
+
w.Interior = d_(s[0]);
|
|
15034
15024
|
break;
|
|
15035
15025
|
case "protection": break;
|
|
15036
15026
|
case "author":
|
|
@@ -15054,7 +15044,7 @@ function x_(e, t) {
|
|
|
15054
15044
|
case "language":
|
|
15055
15045
|
case "appname":
|
|
15056
15046
|
if (s[0].slice(-2) === "/>") break;
|
|
15057
|
-
s[1] === "/" ? Ja(
|
|
15047
|
+
s[1] === "/" ? Ja(D, ce, r.slice(k, s.index)) : k = s.index + s[0].length;
|
|
15058
15048
|
break;
|
|
15059
15049
|
case "paragraphs": break;
|
|
15060
15050
|
case "styles":
|
|
@@ -15066,8 +15056,8 @@ function x_(e, t) {
|
|
|
15066
15056
|
case "comment":
|
|
15067
15057
|
if (s[1] === "/") {
|
|
15068
15058
|
if ((l = c.pop())[0] !== s[3]) throw Error("Bad state: " + l.join("|"));
|
|
15069
|
-
b_(
|
|
15070
|
-
} else c.push([s[3], !1]), l = d_(s[0]), Ln(l.ShowAlways || "0") || (
|
|
15059
|
+
b_(ne), A.push(ne);
|
|
15060
|
+
} else c.push([s[3], !1]), l = d_(s[0]), Ln(l.ShowAlways || "0") || (A.hidden = !0), ne = { a: l.Author };
|
|
15071
15061
|
break;
|
|
15072
15062
|
case "autofilter":
|
|
15073
15063
|
if (s[1] === "/") {
|
|
@@ -15109,7 +15099,7 @@ function x_(e, t) {
|
|
|
15109
15099
|
case "null": break;
|
|
15110
15100
|
default:
|
|
15111
15101
|
if (c.length == 0 && s[3] == "document" || c.length == 0 && s[3] == "uof") return Nv(r, n);
|
|
15112
|
-
var
|
|
15102
|
+
var fe = !0;
|
|
15113
15103
|
switch (c[c.length - 1][0]) {
|
|
15114
15104
|
case "officedocumentsettings":
|
|
15115
15105
|
switch (s[3]) {
|
|
@@ -15123,7 +15113,7 @@ function x_(e, t) {
|
|
|
15123
15113
|
case "rgb": break;
|
|
15124
15114
|
case "targetscreensize": break;
|
|
15125
15115
|
case "readonlyrecommended": break;
|
|
15126
|
-
default:
|
|
15116
|
+
default: fe = !1;
|
|
15127
15117
|
}
|
|
15128
15118
|
break;
|
|
15129
15119
|
case "componentoptions":
|
|
@@ -15136,13 +15126,13 @@ function x_(e, t) {
|
|
|
15136
15126
|
case "maxheight": break;
|
|
15137
15127
|
case "maxwidth": break;
|
|
15138
15128
|
case "nextsheetnumber": break;
|
|
15139
|
-
default:
|
|
15129
|
+
default: fe = !1;
|
|
15140
15130
|
}
|
|
15141
15131
|
break;
|
|
15142
15132
|
case "excelworkbook":
|
|
15143
15133
|
switch (s[3]) {
|
|
15144
15134
|
case "date1904":
|
|
15145
|
-
|
|
15135
|
+
F.WBProps.date1904 = !0;
|
|
15146
15136
|
break;
|
|
15147
15137
|
case "hidehorizontalscrollbar": break;
|
|
15148
15138
|
case "hideverticalscrollbar": break;
|
|
@@ -15192,7 +15182,7 @@ function x_(e, t) {
|
|
|
15192
15182
|
case "number": break;
|
|
15193
15183
|
case "refmoder1c1": break;
|
|
15194
15184
|
case "embedsavesmarttags": break;
|
|
15195
|
-
default:
|
|
15185
|
+
default: fe = !1;
|
|
15196
15186
|
}
|
|
15197
15187
|
break;
|
|
15198
15188
|
case "workbookoptions":
|
|
@@ -15200,21 +15190,21 @@ function x_(e, t) {
|
|
|
15200
15190
|
case "owcversion": break;
|
|
15201
15191
|
case "height": break;
|
|
15202
15192
|
case "width": break;
|
|
15203
|
-
default:
|
|
15193
|
+
default: fe = !1;
|
|
15204
15194
|
}
|
|
15205
15195
|
break;
|
|
15206
15196
|
case "worksheetoptions":
|
|
15207
15197
|
switch (s[3]) {
|
|
15208
15198
|
case "visible":
|
|
15209
|
-
if (s[0].slice(-2) !== "/>") if (s[1] === "/") switch (r.slice(
|
|
15199
|
+
if (s[0].slice(-2) !== "/>") if (s[1] === "/") switch (r.slice(k, s.index)) {
|
|
15210
15200
|
case "SheetHidden":
|
|
15211
|
-
|
|
15201
|
+
se.Hidden = 1;
|
|
15212
15202
|
break;
|
|
15213
15203
|
case "SheetVeryHidden":
|
|
15214
|
-
|
|
15204
|
+
se.Hidden = 2;
|
|
15215
15205
|
break;
|
|
15216
15206
|
}
|
|
15217
|
-
else
|
|
15207
|
+
else k = s.index + s[0].length;
|
|
15218
15208
|
break;
|
|
15219
15209
|
case "header":
|
|
15220
15210
|
f["!margins"] || ym(f["!margins"] = {}, "xlml"), isNaN(+B(s[0]).Margin) || (f["!margins"].header = +B(s[0]).Margin);
|
|
@@ -15223,11 +15213,11 @@ function x_(e, t) {
|
|
|
15223
15213
|
f["!margins"] || ym(f["!margins"] = {}, "xlml"), isNaN(+B(s[0]).Margin) || (f["!margins"].footer = +B(s[0]).Margin);
|
|
15224
15214
|
break;
|
|
15225
15215
|
case "pagemargins":
|
|
15226
|
-
var
|
|
15227
|
-
f["!margins"] || ym(f["!margins"] = {}, "xlml"), isNaN(+
|
|
15216
|
+
var pe = B(s[0]);
|
|
15217
|
+
f["!margins"] || ym(f["!margins"] = {}, "xlml"), isNaN(+pe.Top) || (f["!margins"].top = +pe.Top), isNaN(+pe.Left) || (f["!margins"].left = +pe.Left), isNaN(+pe.Right) || (f["!margins"].right = +pe.Right), isNaN(+pe.Bottom) || (f["!margins"].bottom = +pe.Bottom);
|
|
15228
15218
|
break;
|
|
15229
15219
|
case "displayrighttoleft":
|
|
15230
|
-
|
|
15220
|
+
F.Views ||= [], F.Views[0] || (F.Views[0] = {}), F.Views[0].RTL = !0;
|
|
15231
15221
|
break;
|
|
15232
15222
|
case "freezepanes": break;
|
|
15233
15223
|
case "frozennosplit": break;
|
|
@@ -15300,7 +15290,7 @@ function x_(e, t) {
|
|
|
15300
15290
|
case "viewablerange": break;
|
|
15301
15291
|
case "selection": break;
|
|
15302
15292
|
case "protectcontents": break;
|
|
15303
|
-
default:
|
|
15293
|
+
default: fe = !1;
|
|
15304
15294
|
}
|
|
15305
15295
|
break;
|
|
15306
15296
|
case "pivottable":
|
|
@@ -15351,7 +15341,7 @@ function x_(e, t) {
|
|
|
15351
15341
|
case "versionupdateablemin": break;
|
|
15352
15342
|
case "versionrefreshablemin": break;
|
|
15353
15343
|
case "calculation": break;
|
|
15354
|
-
default:
|
|
15344
|
+
default: fe = !1;
|
|
15355
15345
|
}
|
|
15356
15346
|
break;
|
|
15357
15347
|
case "pagebreaks":
|
|
@@ -15363,7 +15353,7 @@ function x_(e, t) {
|
|
|
15363
15353
|
case "colstart": break;
|
|
15364
15354
|
case "colend": break;
|
|
15365
15355
|
case "rowend": break;
|
|
15366
|
-
default:
|
|
15356
|
+
default: fe = !1;
|
|
15367
15357
|
}
|
|
15368
15358
|
break;
|
|
15369
15359
|
case "autofilter":
|
|
@@ -15372,7 +15362,7 @@ function x_(e, t) {
|
|
|
15372
15362
|
case "autofiltercondition": break;
|
|
15373
15363
|
case "autofilterand": break;
|
|
15374
15364
|
case "autofilteror": break;
|
|
15375
|
-
default:
|
|
15365
|
+
default: fe = !1;
|
|
15376
15366
|
}
|
|
15377
15367
|
break;
|
|
15378
15368
|
case "querytable":
|
|
@@ -15408,7 +15398,7 @@ function x_(e, t) {
|
|
|
15408
15398
|
case "autoformatname": break;
|
|
15409
15399
|
case "versionlastedit": break;
|
|
15410
15400
|
case "versionlastrefresh": break;
|
|
15411
|
-
default:
|
|
15401
|
+
default: fe = !1;
|
|
15412
15402
|
}
|
|
15413
15403
|
break;
|
|
15414
15404
|
case "datavalidation":
|
|
@@ -15436,7 +15426,7 @@ function x_(e, t) {
|
|
|
15436
15426
|
case "value2": break;
|
|
15437
15427
|
case "format": break;
|
|
15438
15428
|
case "cellrangelist": break;
|
|
15439
|
-
default:
|
|
15429
|
+
default: fe = !1;
|
|
15440
15430
|
}
|
|
15441
15431
|
break;
|
|
15442
15432
|
case "sorting":
|
|
@@ -15465,7 +15455,7 @@ function x_(e, t) {
|
|
|
15465
15455
|
case "value1": break;
|
|
15466
15456
|
case "value2": break;
|
|
15467
15457
|
case "format": break;
|
|
15468
|
-
default:
|
|
15458
|
+
default: fe = !1;
|
|
15469
15459
|
}
|
|
15470
15460
|
break;
|
|
15471
15461
|
case "mapinfo":
|
|
@@ -15490,33 +15480,33 @@ function x_(e, t) {
|
|
|
15490
15480
|
case "attribute":
|
|
15491
15481
|
case "extends": break;
|
|
15492
15482
|
case "row": break;
|
|
15493
|
-
default:
|
|
15483
|
+
default: fe = !1;
|
|
15494
15484
|
}
|
|
15495
15485
|
break;
|
|
15496
15486
|
case "smarttags": break;
|
|
15497
15487
|
default:
|
|
15498
|
-
|
|
15488
|
+
fe = !1;
|
|
15499
15489
|
break;
|
|
15500
15490
|
}
|
|
15501
|
-
if (
|
|
15491
|
+
if (fe || s[3].match(/!\[CDATA/)) break;
|
|
15502
15492
|
if (!c[c.length - 1][1]) throw "Unrecognized tag: " + s[3] + "|" + c.join("|");
|
|
15503
15493
|
if (c[c.length - 1][0] === "customdocumentproperties") {
|
|
15504
15494
|
if (s[0].slice(-2) === "/>") break;
|
|
15505
|
-
s[1] === "/" ? h_(
|
|
15495
|
+
s[1] === "/" ? h_(O, ce, te, r.slice(k, s.index)) : (te = s, k = s.index + s[0].length);
|
|
15506
15496
|
break;
|
|
15507
15497
|
}
|
|
15508
15498
|
if (n.WTF) throw "Unrecognized tag: " + s[3] + "|" + c.join("|");
|
|
15509
15499
|
}
|
|
15510
|
-
let
|
|
15511
|
-
return !n.bookSheets && !n.bookProps && (
|
|
15500
|
+
let I = {};
|
|
15501
|
+
return !n.bookSheets && !n.bookProps && (I.Sheets = u), I.SheetNames = d, I.Workbook = F, I.SSF = It(L), I.Props = D, I.Custprops = O, I.bookType = "xlml", I;
|
|
15512
15502
|
}
|
|
15513
15503
|
function S_(e, t) {
|
|
15514
15504
|
switch (Hy(t ||= {}), t.type || "base64") {
|
|
15515
|
-
case "base64": return x_(
|
|
15505
|
+
case "base64": return x_(ee(e), t);
|
|
15516
15506
|
case "binary":
|
|
15517
15507
|
case "buffer":
|
|
15518
15508
|
case "file": return x_(e, t);
|
|
15519
|
-
case "array": return x_(
|
|
15509
|
+
case "array": return x_(j(e), t);
|
|
15520
15510
|
}
|
|
15521
15511
|
}
|
|
15522
15512
|
function C_(e, t) {
|
|
@@ -15722,7 +15712,7 @@ function R_(e, t, n, r, i) {
|
|
|
15722
15712
|
o.push(s), n.l += a;
|
|
15723
15713
|
let c = kr(n, n.l), l = J_[c], u = 0;
|
|
15724
15714
|
for (; l != null && L_.indexOf(c) > -1;) a = kr(n, n.l + 2), u = n.l + 4, c == 2066 ? u += 4 : (c == 2165 || c == 2175) && (u += 12), s = n.slice(u, n.l + 4 + a), o.push(s), n.l += 4 + a, l = J_[c = kr(n, n.l)];
|
|
15725
|
-
let d =
|
|
15715
|
+
let d = M(o);
|
|
15726
15716
|
Br(d, 0);
|
|
15727
15717
|
let f = 0;
|
|
15728
15718
|
d.lens = [];
|
|
@@ -15759,25 +15749,23 @@ function B_(e, t, n) {
|
|
|
15759
15749
|
};
|
|
15760
15750
|
}
|
|
15761
15751
|
function V_(e, t) {
|
|
15762
|
-
let n = { opts: {} }, r = {};
|
|
15763
|
-
x != null && t.dense == null && (t.dense = x);
|
|
15764
|
-
let i = {};
|
|
15752
|
+
let n = { opts: {} }, r = {}, i = {};
|
|
15765
15753
|
t.dense && (i["!data"] = []);
|
|
15766
|
-
let a = {}, o = {}, s = null, c = [], l = "", u = {}, f, p = "", m, h, g, _, v = {}, y = [], b,
|
|
15754
|
+
let a = {}, o = {}, s = null, c = [], l = "", u = {}, f, p = "", m, h, g, _, v = {}, y = [], b, x, S = [], C = [], w = {
|
|
15767
15755
|
Sheets: [],
|
|
15768
15756
|
WBProps: { date1904: !1 },
|
|
15769
15757
|
Views: [{}]
|
|
15770
|
-
},
|
|
15771
|
-
return e < 8 ? ma[e] : e < 64 &&
|
|
15772
|
-
},
|
|
15758
|
+
}, T = {}, ee = !1, E = function(e) {
|
|
15759
|
+
return e < 8 ? ma[e] : e < 64 && C[e - 8] || ma[e];
|
|
15760
|
+
}, D = function(e, t) {
|
|
15773
15761
|
let n = e.XF.data;
|
|
15774
15762
|
if (!n || !n.patternType || !t || !t.cellStyles) return;
|
|
15775
15763
|
e.s = {}, e.s.patternType = n.patternType;
|
|
15776
15764
|
let r;
|
|
15777
|
-
(r = $l(
|
|
15778
|
-
},
|
|
15779
|
-
if (!(!
|
|
15780
|
-
if (n.cellStyles && t.XF && t.XF.data &&
|
|
15765
|
+
(r = $l(E(n.icvFore))) && (e.s.fgColor = { rgb: r }), (r = $l(E(n.icvBack))) && (e.s.bgColor = { rgb: r });
|
|
15766
|
+
}, O = function(e, t, n) {
|
|
15767
|
+
if (!(!ee && N > 1) && !(n.sheetRows && e.r >= n.sheetRows)) {
|
|
15768
|
+
if (n.cellStyles && t.XF && t.XF.data && D(t, n), delete t.ixfe, delete t.XF, f = e, p = ri(e), (!o || !o.s || !o.e) && (o = {
|
|
15781
15769
|
s: {
|
|
15782
15770
|
r: 0,
|
|
15783
15771
|
c: 0
|
|
@@ -15788,14 +15776,14 @@ function V_(e, t) {
|
|
|
15788
15776
|
}
|
|
15789
15777
|
}), e.r < o.s.r && (o.s.r = e.r), e.c < o.s.c && (o.s.c = e.c), e.r + 1 > o.e.r && (o.e.r = e.r + 1), e.c + 1 > o.e.c && (o.e.c = e.c + 1), n.cellFormula && t.f) {
|
|
15790
15778
|
for (let n = 0; n < y.length; ++n) if (!(y[n][0].s.c > e.c || y[n][0].s.r > e.r) && !(y[n][0].e.c < e.c || y[n][0].e.r < e.r)) {
|
|
15791
|
-
t.F = K(y[n][0]), (y[n][0].s.c != e.c || y[n][0].s.r != e.r) && delete t.f, t.f &&= "" + Fp(y[n][1], o, e,
|
|
15779
|
+
t.F = K(y[n][0]), (y[n][0].s.c != e.c || y[n][0].s.r != e.r) && delete t.f, t.f &&= "" + Fp(y[n][1], o, e, M, k);
|
|
15792
15780
|
break;
|
|
15793
15781
|
}
|
|
15794
15782
|
}
|
|
15795
15783
|
n.dense ? (i["!data"][e.r] || (i["!data"][e.r] = []), i["!data"][e.r][e.c] = t) : i[p] = t;
|
|
15796
15784
|
}
|
|
15797
15785
|
};
|
|
15798
|
-
var
|
|
15786
|
+
var k = {
|
|
15799
15787
|
enc: !1,
|
|
15800
15788
|
sbcch: 0,
|
|
15801
15789
|
snames: [],
|
|
@@ -15809,74 +15797,74 @@ function V_(e, t) {
|
|
|
15809
15797
|
cellStyles: !!t && !!t.cellStyles,
|
|
15810
15798
|
WTF: !!t && !!t.wtf
|
|
15811
15799
|
};
|
|
15812
|
-
t.password && (
|
|
15813
|
-
let
|
|
15814
|
-
var
|
|
15815
|
-
|
|
15816
|
-
let
|
|
15817
|
-
var
|
|
15818
|
-
let oe = 0,
|
|
15819
|
-
|
|
15820
|
-
let
|
|
15800
|
+
t.password && (k.password = t.password);
|
|
15801
|
+
let te, A = [], ne = [], j = [], re = [], ie = !1;
|
|
15802
|
+
var M = [];
|
|
15803
|
+
M.SheetNames = k.snames, M.sharedf = k.sharedf, M.arrayf = k.arrayf, M.names = [], M.XTI = [];
|
|
15804
|
+
let ae = 0;
|
|
15805
|
+
var N = 0;
|
|
15806
|
+
let oe = 0, P = [], F = [], se;
|
|
15807
|
+
k.codepage = 1200, d(1200);
|
|
15808
|
+
let ce = !1;
|
|
15821
15809
|
for (; e.l < e.length - 1;) {
|
|
15822
|
-
let
|
|
15823
|
-
if (
|
|
15824
|
-
let
|
|
15825
|
-
if (
|
|
15810
|
+
let E = e.l, D = e.read_shift(2);
|
|
15811
|
+
if (D === 0 && ae === 10) break;
|
|
15812
|
+
let fe = e.l === e.length ? 0 : e.read_shift(2), pe = J_[D];
|
|
15813
|
+
if (N == 0 && [
|
|
15826
15814
|
9,
|
|
15827
15815
|
521,
|
|
15828
15816
|
1033,
|
|
15829
15817
|
2057
|
|
15830
|
-
].indexOf(
|
|
15818
|
+
].indexOf(D) == -1) break;
|
|
15831
15819
|
if (pe && pe.f) {
|
|
15832
|
-
if (t.bookSheets &&
|
|
15833
|
-
if (
|
|
15820
|
+
if (t.bookSheets && ae === 133 && D !== 133) break;
|
|
15821
|
+
if (ae = D, pe.r === 2 || pe.r == 12) {
|
|
15834
15822
|
let t = e.read_shift(2);
|
|
15835
|
-
if (
|
|
15836
|
-
pe.r == 12 && (e.l += 10,
|
|
15823
|
+
if (fe -= 2, !k.enc && t !== D && ((t & 255) << 8 | t >> 8) !== D) throw Error("rt mismatch: " + t + "!=" + D);
|
|
15824
|
+
pe.r == 12 && (e.l += 10, fe -= 10);
|
|
15837
15825
|
}
|
|
15838
15826
|
let I = {};
|
|
15839
|
-
if (I =
|
|
15827
|
+
if (I = D === 10 ? pe.f(e, fe, k) : R_(D, pe, e, fe, k), N == 0 && [
|
|
15840
15828
|
9,
|
|
15841
15829
|
521,
|
|
15842
15830
|
1033,
|
|
15843
15831
|
2057
|
|
15844
|
-
].indexOf(
|
|
15845
|
-
switch (
|
|
15832
|
+
].indexOf(ae) === -1) continue;
|
|
15833
|
+
switch (D) {
|
|
15846
15834
|
case 34:
|
|
15847
|
-
n.opts.Date1904 =
|
|
15835
|
+
n.opts.Date1904 = w.WBProps.date1904 = I;
|
|
15848
15836
|
break;
|
|
15849
15837
|
case 134:
|
|
15850
15838
|
n.opts.WriteProtect = !0;
|
|
15851
15839
|
break;
|
|
15852
15840
|
case 47:
|
|
15853
|
-
if (
|
|
15841
|
+
if (k.enc || (e.l = 0), k.enc = I, !t.password) throw Error("File is password-protected");
|
|
15854
15842
|
if (I.valid == null) throw Error("Encryption scheme unsupported");
|
|
15855
15843
|
if (!I.valid) throw Error("Password is incorrect");
|
|
15856
15844
|
break;
|
|
15857
15845
|
case 92:
|
|
15858
|
-
|
|
15846
|
+
k.lastuser = I;
|
|
15859
15847
|
break;
|
|
15860
15848
|
case 66:
|
|
15861
|
-
var
|
|
15862
|
-
switch (
|
|
15849
|
+
var le = Number(I);
|
|
15850
|
+
switch (le) {
|
|
15863
15851
|
case 21010:
|
|
15864
|
-
|
|
15852
|
+
le = 1200;
|
|
15865
15853
|
break;
|
|
15866
15854
|
case 32768:
|
|
15867
|
-
|
|
15855
|
+
le = 1e4;
|
|
15868
15856
|
break;
|
|
15869
15857
|
case 32769:
|
|
15870
|
-
|
|
15858
|
+
le = 1252;
|
|
15871
15859
|
break;
|
|
15872
15860
|
}
|
|
15873
|
-
d(
|
|
15861
|
+
d(k.codepage = le), ce = !0;
|
|
15874
15862
|
break;
|
|
15875
15863
|
case 317:
|
|
15876
|
-
|
|
15864
|
+
k.rrtabid = I;
|
|
15877
15865
|
break;
|
|
15878
15866
|
case 25:
|
|
15879
|
-
|
|
15867
|
+
k.winlocked = I;
|
|
15880
15868
|
break;
|
|
15881
15869
|
case 439:
|
|
15882
15870
|
n.opts.RefreshAll = I;
|
|
@@ -15900,7 +15888,7 @@ function V_(e, t) {
|
|
|
15900
15888
|
n.opts.CalcSaveRecalc = I;
|
|
15901
15889
|
break;
|
|
15902
15890
|
case 15:
|
|
15903
|
-
|
|
15891
|
+
k.CalcRefMode = I;
|
|
15904
15892
|
break;
|
|
15905
15893
|
case 2211:
|
|
15906
15894
|
n.opts.FullCalc = I;
|
|
@@ -15912,43 +15900,43 @@ function V_(e, t) {
|
|
|
15912
15900
|
case 579:
|
|
15913
15901
|
case 1091:
|
|
15914
15902
|
case 224:
|
|
15915
|
-
|
|
15903
|
+
S.push(I);
|
|
15916
15904
|
break;
|
|
15917
15905
|
case 430:
|
|
15918
|
-
|
|
15906
|
+
M.push([I]), M[M.length - 1].XTI = [];
|
|
15919
15907
|
break;
|
|
15920
15908
|
case 35:
|
|
15921
15909
|
case 547:
|
|
15922
|
-
|
|
15910
|
+
M[M.length - 1].push(I);
|
|
15923
15911
|
break;
|
|
15924
15912
|
case 24:
|
|
15925
15913
|
case 536:
|
|
15926
|
-
|
|
15914
|
+
se = {
|
|
15927
15915
|
Name: I.Name,
|
|
15928
|
-
Ref: Fp(I.rgce, o, null,
|
|
15929
|
-
}, I.itab > 0 && (
|
|
15916
|
+
Ref: Fp(I.rgce, o, null, M, k)
|
|
15917
|
+
}, I.itab > 0 && (se.Sheet = I.itab - 1), M.names.push(se), M[0] || (M[0] = [], M[0].XTI = []), M[M.length - 1].push(I), I.Name == "_xlnm._FilterDatabase" && I.itab > 0 && I.rgce && I.rgce[0] && I.rgce[0][0] && I.rgce[0][0][0] == "PtgArea3d" && (F[I.itab - 1] = { ref: K(I.rgce[0][0][1][2]) });
|
|
15930
15918
|
break;
|
|
15931
15919
|
case 22:
|
|
15932
|
-
|
|
15920
|
+
k.ExternCount = I;
|
|
15933
15921
|
break;
|
|
15934
15922
|
case 23:
|
|
15935
|
-
|
|
15923
|
+
M.length == 0 && (M[0] = [], M[0].XTI = []), M[M.length - 1].XTI = M[M.length - 1].XTI.concat(I), M.XTI = M.XTI.concat(I);
|
|
15936
15924
|
break;
|
|
15937
15925
|
case 2196:
|
|
15938
|
-
if (
|
|
15939
|
-
|
|
15926
|
+
if (k.biff < 8) break;
|
|
15927
|
+
se != null && (se.Comment = I[1]);
|
|
15940
15928
|
break;
|
|
15941
15929
|
case 18:
|
|
15942
15930
|
i["!protect"] = I;
|
|
15943
15931
|
break;
|
|
15944
15932
|
case 19:
|
|
15945
|
-
I !== 0 &&
|
|
15933
|
+
I !== 0 && k.WTF && console.error("Password verifier: " + I);
|
|
15946
15934
|
break;
|
|
15947
15935
|
case 133:
|
|
15948
|
-
a[
|
|
15936
|
+
a[k.biff == 4 ? k.snames.length : I.pos] = I, k.snames.push(I.name);
|
|
15949
15937
|
break;
|
|
15950
15938
|
case 10:
|
|
15951
|
-
if (--
|
|
15939
|
+
if (--N ? !ee : ee) break;
|
|
15952
15940
|
if (o.e) {
|
|
15953
15941
|
if (o.e.r > 0 && o.e.c > 0) {
|
|
15954
15942
|
if (o.e.r--, o.e.c--, i["!ref"] = K(o), t.sheetRows && t.sheetRows <= o.e.r) {
|
|
@@ -15957,7 +15945,7 @@ function V_(e, t) {
|
|
|
15957
15945
|
}
|
|
15958
15946
|
o.e.r++, o.e.c++;
|
|
15959
15947
|
}
|
|
15960
|
-
|
|
15948
|
+
A.length > 0 && (i["!merges"] = A), ne.length > 0 && (i["!objects"] = ne), j.length > 0 && (i["!cols"] = j), re.length > 0 && (i["!rows"] = re), w.Sheets.push(T);
|
|
15961
15949
|
}
|
|
15962
15950
|
l === "" ? u = i : r[l] = i, i = {}, t.dense && (i["!data"] = []);
|
|
15963
15951
|
break;
|
|
@@ -15965,11 +15953,11 @@ function V_(e, t) {
|
|
|
15965
15953
|
case 521:
|
|
15966
15954
|
case 1033:
|
|
15967
15955
|
case 2057:
|
|
15968
|
-
if (
|
|
15956
|
+
if (k.biff === 8 && (k.biff = {
|
|
15969
15957
|
9: 2,
|
|
15970
15958
|
521: 3,
|
|
15971
15959
|
1033: 4
|
|
15972
|
-
}[
|
|
15960
|
+
}[D] || {
|
|
15973
15961
|
512: 2,
|
|
15974
15962
|
768: 3,
|
|
15975
15963
|
1024: 4,
|
|
@@ -15977,9 +15965,9 @@ function V_(e, t) {
|
|
|
15977
15965
|
1536: 8,
|
|
15978
15966
|
2: 2,
|
|
15979
15967
|
7: 2
|
|
15980
|
-
}[I.BIFFVer] || 8),
|
|
15981
|
-
if (i = {}, t.dense && (i["!data"] = []),
|
|
15982
|
-
else if (
|
|
15968
|
+
}[I.BIFFVer] || 8), k.biffguess = I.BIFFVer == 0, I.BIFFVer == 0 && I.dt == 4096 && (k.biff = 5, ce = !0, d(k.codepage = 28591)), k.biff == 4 && I.dt & 256 && (ee = !0), k.biff == 8 && I.BIFFVer == 0 && I.dt == 16 && (k.biff = 2), N++ && !ee) break;
|
|
15969
|
+
if (i = {}, t.dense && (i["!data"] = []), k.biff < 8 && !ce && (ce = !0, d(k.codepage = t.codepage || 1252)), k.biff == 4 && ee) l = (a[k.snames.indexOf(l) + 1] || { name: "" }).name;
|
|
15970
|
+
else if (k.biff < 5 || I.BIFFVer == 0 && I.dt == 4096) {
|
|
15983
15971
|
l === "" && (l = "Sheet1"), o = {
|
|
15984
15972
|
s: {
|
|
15985
15973
|
r: 0,
|
|
@@ -15991,13 +15979,13 @@ function V_(e, t) {
|
|
|
15991
15979
|
}
|
|
15992
15980
|
};
|
|
15993
15981
|
let t = {
|
|
15994
|
-
pos: e.l -
|
|
15982
|
+
pos: e.l - fe,
|
|
15995
15983
|
name: l
|
|
15996
15984
|
};
|
|
15997
|
-
a[t.pos] = t,
|
|
15998
|
-
} else l = (a[
|
|
15999
|
-
I.dt == 32 && (i["!type"] = "chart"), I.dt == 64 && (i["!type"] = "macro"),
|
|
16000
|
-
Hidden: (a[
|
|
15985
|
+
a[t.pos] = t, k.snames.push(l);
|
|
15986
|
+
} else l = (a[E] || { name: "" }).name;
|
|
15987
|
+
I.dt == 32 && (i["!type"] = "chart"), I.dt == 64 && (i["!type"] = "macro"), A = [], ne = [], k.arrayf = y = [], j = [], re = [], ie = !1, T = {
|
|
15988
|
+
Hidden: (a[E] || { hs: 0 }).hs,
|
|
16001
15989
|
name: l
|
|
16002
15990
|
};
|
|
16003
15991
|
break;
|
|
@@ -16006,10 +15994,10 @@ function V_(e, t) {
|
|
|
16006
15994
|
case 2:
|
|
16007
15995
|
i["!type"] == "chart" && (t.dense ? (i["!data"][I.r] || [])[I.c] : i[G(I.c) + Yr(I.r)]) && ++I.c, b = {
|
|
16008
15996
|
ixfe: I.ixfe,
|
|
16009
|
-
XF:
|
|
15997
|
+
XF: S[I.ixfe] || {},
|
|
16010
15998
|
v: I.val,
|
|
16011
15999
|
t: "n"
|
|
16012
|
-
}, oe > 0 && (b.z = b.XF && b.XF.numFmtId &&
|
|
16000
|
+
}, oe > 0 && (b.z = b.XF && b.XF.numFmtId && P[b.XF.numFmtId] || P[b.ixfe >> 8 & 63]), z_(b, t, n.opts.Date1904), O({
|
|
16013
16001
|
c: I.c,
|
|
16014
16002
|
r: I.r
|
|
16015
16003
|
}, b, t);
|
|
@@ -16018,10 +16006,10 @@ function V_(e, t) {
|
|
|
16018
16006
|
case 517:
|
|
16019
16007
|
b = {
|
|
16020
16008
|
ixfe: I.ixfe,
|
|
16021
|
-
XF:
|
|
16009
|
+
XF: S[I.ixfe],
|
|
16022
16010
|
v: I.val,
|
|
16023
16011
|
t: I.t
|
|
16024
|
-
}, oe > 0 && (b.z = b.XF && b.XF.numFmtId &&
|
|
16012
|
+
}, oe > 0 && (b.z = b.XF && b.XF.numFmtId && P[b.XF.numFmtId] || P[b.ixfe >> 8 & 63]), z_(b, t, n.opts.Date1904), O({
|
|
16025
16013
|
c: I.c,
|
|
16026
16014
|
r: I.r
|
|
16027
16015
|
}, b, t);
|
|
@@ -16029,10 +16017,10 @@ function V_(e, t) {
|
|
|
16029
16017
|
case 638:
|
|
16030
16018
|
b = {
|
|
16031
16019
|
ixfe: I.ixfe,
|
|
16032
|
-
XF:
|
|
16020
|
+
XF: S[I.ixfe],
|
|
16033
16021
|
v: I.rknum,
|
|
16034
16022
|
t: "n"
|
|
16035
|
-
}, oe > 0 && (b.z = b.XF && b.XF.numFmtId &&
|
|
16023
|
+
}, oe > 0 && (b.z = b.XF && b.XF.numFmtId && P[b.XF.numFmtId] || P[b.ixfe >> 8 & 63]), z_(b, t, n.opts.Date1904), O({
|
|
16036
16024
|
c: I.c,
|
|
16037
16025
|
r: I.r
|
|
16038
16026
|
}, b, t);
|
|
@@ -16042,10 +16030,10 @@ function V_(e, t) {
|
|
|
16042
16030
|
let r = I.rkrec[e - I.c][0];
|
|
16043
16031
|
b = {
|
|
16044
16032
|
ixfe: r,
|
|
16045
|
-
XF:
|
|
16033
|
+
XF: S[r],
|
|
16046
16034
|
v: I.rkrec[e - I.c][1],
|
|
16047
16035
|
t: "n"
|
|
16048
|
-
}, oe > 0 && (b.z = b.XF && b.XF.numFmtId &&
|
|
16036
|
+
}, oe > 0 && (b.z = b.XF && b.XF.numFmtId && P[b.XF.numFmtId] || P[b.ixfe >> 8 & 63]), z_(b, t, n.opts.Date1904), O({
|
|
16049
16037
|
c: e,
|
|
16050
16038
|
r: I.r
|
|
16051
16039
|
}, b, t);
|
|
@@ -16058,21 +16046,21 @@ function V_(e, t) {
|
|
|
16058
16046
|
s = I;
|
|
16059
16047
|
break;
|
|
16060
16048
|
}
|
|
16061
|
-
if (b = B_(I.val, I.cell.ixfe, I.tt), b.XF =
|
|
16049
|
+
if (b = B_(I.val, I.cell.ixfe, I.tt), b.XF = S[b.ixfe], t.cellFormula) {
|
|
16062
16050
|
let e = I.formula;
|
|
16063
16051
|
if (e && e[0] && e[0][0] && e[0][0][0] == "PtgExp") {
|
|
16064
16052
|
let n = e[0][0][1][0], r = e[0][0][1][1], a = ri({
|
|
16065
16053
|
r: n,
|
|
16066
16054
|
c: r
|
|
16067
16055
|
});
|
|
16068
|
-
v[a] ? b.f = "" + Fp(I.formula, o, I.cell,
|
|
16069
|
-
} else b.f = "" + Fp(I.formula, o, I.cell,
|
|
16056
|
+
v[a] ? b.f = "" + Fp(I.formula, o, I.cell, M, k) : b.F = ((t.dense ? (i["!data"][n] || [])[r] : i[a]) || {}).F;
|
|
16057
|
+
} else b.f = "" + Fp(I.formula, o, I.cell, M, k);
|
|
16070
16058
|
}
|
|
16071
|
-
oe > 0 && (b.z = b.XF && b.XF.numFmtId &&
|
|
16059
|
+
oe > 0 && (b.z = b.XF && b.XF.numFmtId && P[b.XF.numFmtId] || P[b.ixfe >> 8 & 63]), z_(b, t, n.opts.Date1904), O(I.cell, b, t), s = I;
|
|
16072
16060
|
break;
|
|
16073
16061
|
case 7:
|
|
16074
16062
|
case 519:
|
|
16075
|
-
if (s) s.val = I, b = B_(I, s.cell.ixfe, "s"), b.XF =
|
|
16063
|
+
if (s) s.val = I, b = B_(I, s.cell.ixfe, "s"), b.XF = S[b.ixfe], t.cellFormula && (b.f = "" + Fp(s.formula, o, s.cell, M, k)), oe > 0 && (b.z = b.XF && b.XF.numFmtId && P[b.XF.numFmtId] || P[b.ixfe >> 8 & 63]), z_(b, t, n.opts.Date1904), O(s.cell, b, t), s = null;
|
|
16076
16064
|
else throw Error("String record expects Formula");
|
|
16077
16065
|
break;
|
|
16078
16066
|
case 33:
|
|
@@ -16082,7 +16070,7 @@ function V_(e, t) {
|
|
|
16082
16070
|
let e = ri(I[0].s);
|
|
16083
16071
|
if (m = t.dense ? (i["!data"][I[0].s.r] || [])[I[0].s.c] : i[e], t.cellFormula && m) {
|
|
16084
16072
|
if (!s || !e || !m) break;
|
|
16085
|
-
m.f = "" + Fp(I[1], o, I[0],
|
|
16073
|
+
m.f = "" + Fp(I[1], o, I[0], M, k), m.F = K(I[0]);
|
|
16086
16074
|
}
|
|
16087
16075
|
}
|
|
16088
16076
|
break;
|
|
@@ -16090,11 +16078,11 @@ function V_(e, t) {
|
|
|
16090
16078
|
if (!t.cellFormula) break;
|
|
16091
16079
|
if (p) {
|
|
16092
16080
|
if (!s) break;
|
|
16093
|
-
v[ri(s.cell)] = I[0], m = t.dense ? (i["!data"][s.cell.r] || [])[s.cell.c] : i[ri(s.cell)], (m || {}).f = "" + Fp(I[0], o, f,
|
|
16081
|
+
v[ri(s.cell)] = I[0], m = t.dense ? (i["!data"][s.cell.r] || [])[s.cell.c] : i[ri(s.cell)], (m || {}).f = "" + Fp(I[0], o, f, M, k);
|
|
16094
16082
|
}
|
|
16095
16083
|
break;
|
|
16096
16084
|
case 253:
|
|
16097
|
-
b = B_(c[I.isst].t, I.ixfe, "s"), c[I.isst].h && (b.h = c[I.isst].h), b.XF =
|
|
16085
|
+
b = B_(c[I.isst].t, I.ixfe, "s"), c[I.isst].h && (b.h = c[I.isst].h), b.XF = S[b.ixfe], oe > 0 && (b.z = b.XF && b.XF.numFmtId && P[b.XF.numFmtId] || P[b.ixfe >> 8 & 63]), z_(b, t, n.opts.Date1904), O({
|
|
16098
16086
|
c: I.c,
|
|
16099
16087
|
r: I.r
|
|
16100
16088
|
}, b, t);
|
|
@@ -16102,9 +16090,9 @@ function V_(e, t) {
|
|
|
16102
16090
|
case 513:
|
|
16103
16091
|
t.sheetStubs && (b = {
|
|
16104
16092
|
ixfe: I.ixfe,
|
|
16105
|
-
XF:
|
|
16093
|
+
XF: S[I.ixfe],
|
|
16106
16094
|
t: "z"
|
|
16107
|
-
}, oe > 0 && (b.z = b.XF && b.XF.numFmtId &&
|
|
16095
|
+
}, oe > 0 && (b.z = b.XF && b.XF.numFmtId && P[b.XF.numFmtId] || P[b.ixfe >> 8 & 63]), z_(b, t, n.opts.Date1904), O({
|
|
16108
16096
|
c: I.c,
|
|
16109
16097
|
r: I.r
|
|
16110
16098
|
}, b, t));
|
|
@@ -16114,9 +16102,9 @@ function V_(e, t) {
|
|
|
16114
16102
|
let r = I.ixfe[e - I.c];
|
|
16115
16103
|
b = {
|
|
16116
16104
|
ixfe: r,
|
|
16117
|
-
XF:
|
|
16105
|
+
XF: S[r],
|
|
16118
16106
|
t: "z"
|
|
16119
|
-
}, oe > 0 && (b.z = b.XF && b.XF.numFmtId &&
|
|
16107
|
+
}, oe > 0 && (b.z = b.XF && b.XF.numFmtId && P[b.XF.numFmtId] || P[b.ixfe >> 8 & 63]), z_(b, t, n.opts.Date1904), O({
|
|
16120
16108
|
c: e,
|
|
16121
16109
|
r: I.r
|
|
16122
16110
|
}, b, t);
|
|
@@ -16125,41 +16113,41 @@ function V_(e, t) {
|
|
|
16125
16113
|
case 214:
|
|
16126
16114
|
case 516:
|
|
16127
16115
|
case 4:
|
|
16128
|
-
b = B_(I.val, I.ixfe, "s"), b.XF =
|
|
16116
|
+
b = B_(I.val, I.ixfe, "s"), b.XF = S[b.ixfe], oe > 0 && (b.z = b.XF && b.XF.numFmtId && P[b.XF.numFmtId] || P[b.ixfe >> 8 & 63]), z_(b, t, n.opts.Date1904), O({
|
|
16129
16117
|
c: I.c,
|
|
16130
16118
|
r: I.r
|
|
16131
16119
|
}, b, t);
|
|
16132
16120
|
break;
|
|
16133
16121
|
case 0:
|
|
16134
16122
|
case 512:
|
|
16135
|
-
|
|
16123
|
+
N === 1 && (o = I);
|
|
16136
16124
|
break;
|
|
16137
16125
|
case 252:
|
|
16138
16126
|
c = I;
|
|
16139
16127
|
break;
|
|
16140
16128
|
case 1054:
|
|
16141
|
-
if (
|
|
16142
|
-
|
|
16143
|
-
for (var
|
|
16144
|
-
|
|
16129
|
+
if (k.biff >= 3 && k.biff <= 4) {
|
|
16130
|
+
P[oe++] = I[1];
|
|
16131
|
+
for (var ue = 0; ue < oe + 163 && L[ue] != I[1]; ++ue);
|
|
16132
|
+
ue >= 163 && mt(I[1], oe + 163);
|
|
16145
16133
|
} else mt(I[1], I[0]);
|
|
16146
16134
|
break;
|
|
16147
16135
|
case 30:
|
|
16148
|
-
|
|
16149
|
-
for (var
|
|
16150
|
-
|
|
16136
|
+
P[oe++] = I;
|
|
16137
|
+
for (var de = 0; de < oe + 163 && L[de] != I; ++de);
|
|
16138
|
+
de >= 163 && mt(I, oe + 163);
|
|
16151
16139
|
break;
|
|
16152
16140
|
case 229:
|
|
16153
|
-
|
|
16141
|
+
A = A.concat(I);
|
|
16154
16142
|
break;
|
|
16155
16143
|
case 93:
|
|
16156
|
-
|
|
16144
|
+
ne[I.cmo[0]] = k.lastobj = I;
|
|
16157
16145
|
break;
|
|
16158
16146
|
case 438:
|
|
16159
|
-
|
|
16147
|
+
k.lastobj.TxO = I;
|
|
16160
16148
|
break;
|
|
16161
16149
|
case 127:
|
|
16162
|
-
|
|
16150
|
+
k.lastobj.ImData = I;
|
|
16163
16151
|
break;
|
|
16164
16152
|
case 440:
|
|
16165
16153
|
for (_ = I[0].s.r; _ <= I[0].e.r; ++_) for (g = I[0].s.c; g <= I[0].e.c; ++g) m = t.dense ? (i["!data"][_] || [])[g] : i[ri({
|
|
@@ -16174,12 +16162,12 @@ function V_(e, t) {
|
|
|
16174
16162
|
})], m && m.l && (m.l.Tooltip = I[1]);
|
|
16175
16163
|
break;
|
|
16176
16164
|
case 28:
|
|
16177
|
-
if (m = t.dense ? (i["!data"][I[0].r] || [])[I[0].c] : i[ri(I[0])], m || (t.dense ? (i["!data"][I[0].r] || (i["!data"][I[0].r] = []), m = i["!data"][I[0].r][I[0].c] = { t: "z" }) : m = i[ri(I[0])] = { t: "z" }, o.e.r = Math.max(o.e.r, I[0].r), o.s.r = Math.min(o.s.r, I[0].r), o.e.c = Math.max(o.e.c, I[0].c), o.s.c = Math.min(o.s.c, I[0].c)), m.c ||= [],
|
|
16165
|
+
if (m = t.dense ? (i["!data"][I[0].r] || [])[I[0].c] : i[ri(I[0])], m || (t.dense ? (i["!data"][I[0].r] || (i["!data"][I[0].r] = []), m = i["!data"][I[0].r][I[0].c] = { t: "z" }) : m = i[ri(I[0])] = { t: "z" }, o.e.r = Math.max(o.e.r, I[0].r), o.s.r = Math.min(o.s.r, I[0].r), o.e.c = Math.max(o.e.c, I[0].c), o.s.c = Math.min(o.s.c, I[0].c)), m.c ||= [], k.biff <= 5 && k.biff >= 2) h = {
|
|
16178
16166
|
a: "SheetJ5",
|
|
16179
16167
|
t: I[1]
|
|
16180
16168
|
};
|
|
16181
16169
|
else {
|
|
16182
|
-
let e =
|
|
16170
|
+
let e = ne[I[2]];
|
|
16183
16171
|
h = {
|
|
16184
16172
|
a: I[1],
|
|
16185
16173
|
t: e.TxO.t
|
|
@@ -16188,20 +16176,20 @@ function V_(e, t) {
|
|
|
16188
16176
|
m.c.push(h);
|
|
16189
16177
|
break;
|
|
16190
16178
|
case 2173:
|
|
16191
|
-
fd(
|
|
16179
|
+
fd(S[I.ixfe], I.ext);
|
|
16192
16180
|
break;
|
|
16193
16181
|
case 125:
|
|
16194
|
-
if (!
|
|
16195
|
-
for (; I.e >= I.s;)
|
|
16182
|
+
if (!k.cellStyles) break;
|
|
16183
|
+
for (; I.e >= I.s;) j[I.e--] = {
|
|
16196
16184
|
width: I.w / 256,
|
|
16197
16185
|
level: I.level || 0,
|
|
16198
16186
|
hidden: !!(I.flags & 1)
|
|
16199
|
-
},
|
|
16187
|
+
}, ie || (ie = !0, du(I.w / 256)), fu(j[I.e + 1]);
|
|
16200
16188
|
break;
|
|
16201
16189
|
case 520:
|
|
16202
16190
|
{
|
|
16203
16191
|
let e = {};
|
|
16204
|
-
I.level != null && (
|
|
16192
|
+
I.level != null && (re[I.r] = e, e.level = I.level), I.hidden && (re[I.r] = e, e.hidden = !0), I.hpt && (re[I.r] = e, e.hpt = I.hpt, e.hpx = hu(I.hpt));
|
|
16205
16193
|
}
|
|
16206
16194
|
break;
|
|
16207
16195
|
case 38:
|
|
@@ -16213,36 +16201,36 @@ function V_(e, t) {
|
|
|
16213
16201
|
39: "right",
|
|
16214
16202
|
40: "top",
|
|
16215
16203
|
41: "bottom"
|
|
16216
|
-
}[
|
|
16204
|
+
}[D]] = I;
|
|
16217
16205
|
break;
|
|
16218
16206
|
case 161:
|
|
16219
16207
|
i["!margins"] || ym(i["!margins"] = {}), i["!margins"].header = I.header, i["!margins"].footer = I.footer;
|
|
16220
16208
|
break;
|
|
16221
16209
|
case 574:
|
|
16222
|
-
I.RTL && (
|
|
16210
|
+
I.RTL && (w.Views[0].RTL = !0);
|
|
16223
16211
|
break;
|
|
16224
16212
|
case 146:
|
|
16225
|
-
|
|
16213
|
+
C = I;
|
|
16226
16214
|
break;
|
|
16227
16215
|
case 2198:
|
|
16228
|
-
|
|
16216
|
+
te = I;
|
|
16229
16217
|
break;
|
|
16230
16218
|
case 140:
|
|
16231
|
-
|
|
16219
|
+
x = I;
|
|
16232
16220
|
break;
|
|
16233
16221
|
case 442:
|
|
16234
|
-
l ?
|
|
16222
|
+
l ? T.CodeName = I || T.name : w.WBProps.CodeName = I || "ThisWorkbook";
|
|
16235
16223
|
break;
|
|
16236
16224
|
}
|
|
16237
|
-
} else pe || console.error("Missing Info for XLS Record 0x" +
|
|
16225
|
+
} else pe || console.error("Missing Info for XLS Record 0x" + D.toString(16)), e.l += fe;
|
|
16238
16226
|
}
|
|
16239
16227
|
return n.SheetNames = bt(a).sort(function(e, t) {
|
|
16240
16228
|
return Number(e) - Number(t);
|
|
16241
16229
|
}).map(function(e) {
|
|
16242
16230
|
return a[e].name;
|
|
16243
|
-
}), t.bookSheets || (n.Sheets = r), !n.SheetNames.length && u["!ref"] ? (n.SheetNames.push("Sheet1"), n.Sheets && (n.Sheets.Sheet1 = u)) : n.Preamble = u, n.Sheets &&
|
|
16231
|
+
}), t.bookSheets || (n.Sheets = r), !n.SheetNames.length && u["!ref"] ? (n.SheetNames.push("Sheet1"), n.Sheets && (n.Sheets.Sheet1 = u)) : n.Preamble = u, n.Sheets && F.forEach(function(e, t) {
|
|
16244
16232
|
n.Sheets[n.SheetNames[t]]["!autofilter"] = e;
|
|
16245
|
-
}), n.Strings = c, n.SSF = It(L),
|
|
16233
|
+
}), n.Strings = c, n.SSF = It(L), k.enc && (n.Encryption = k.enc), te && (n.Themes = te), n.Metadata = {}, x !== void 0 && (n.Metadata.Country = x), M.names.length > 0 && (w.Names = M.names), n.Workbook = w, n;
|
|
16246
16234
|
}
|
|
16247
16235
|
var H_ = {
|
|
16248
16236
|
SI: "e0859ff2f94f6810ab9108002b27b3d9",
|
|
@@ -16283,10 +16271,10 @@ function G_(e, t) {
|
|
|
16283
16271
|
} else {
|
|
16284
16272
|
switch (t.type) {
|
|
16285
16273
|
case "base64":
|
|
16286
|
-
e = ee(
|
|
16274
|
+
e = A(ee(e));
|
|
16287
16275
|
break;
|
|
16288
16276
|
case "binary":
|
|
16289
|
-
e =
|
|
16277
|
+
e = A(e);
|
|
16290
16278
|
break;
|
|
16291
16279
|
case "buffer": break;
|
|
16292
16280
|
case "array":
|
|
@@ -16298,7 +16286,7 @@ function G_(e, t) {
|
|
|
16298
16286
|
let i, a;
|
|
16299
16287
|
if (n && I_(n), t.bookProps && !t.bookSheets) i = {};
|
|
16300
16288
|
else {
|
|
16301
|
-
let n =
|
|
16289
|
+
let n = E ? "buffer" : "array";
|
|
16302
16290
|
if (r && r.content) i = V_(r.content, t);
|
|
16303
16291
|
else if ((a = R.find(e, "PerfectOffice_MAIN")) && a.content) i = cl.to_workbook(a.content, (t.type = n, t));
|
|
16304
16292
|
else if ((a = R.find(e, "NativeContent_MAIN")) && a.content) i = cl.to_workbook(a.content, (t.type = n, t));
|
|
@@ -17816,7 +17804,7 @@ function av(e, t) {
|
|
|
17816
17804
|
});
|
|
17817
17805
|
{
|
|
17818
17806
|
let n = U(80);
|
|
17819
|
-
n.write_shift(2, 15), n.write_shift(2, 61442), n.write_shift(4, r + n.length - 8), n.write_shift(2, 16), n.write_shift(2, 61448), n.write_shift(4, 8), n.write_shift(4, t.length + 1), n.write_shift(4, nv), n.write_shift(2, 15), n.write_shift(2, 61443), n.write_shift(4, r + 48), n.write_shift(2, 15), n.write_shift(2, 61444), n.write_shift(4, 40), n.write_shift(2, 1), n.write_shift(2, 61449), n.write_shift(4, 16), n.l += 16, n.write_shift(2, 2), n.write_shift(2, 61450), n.write_shift(4, 8), n.write_shift(4, a), n.write_shift(4, 5), J(e, 236, o ?
|
|
17807
|
+
n.write_shift(2, 15), n.write_shift(2, 61442), n.write_shift(4, r + n.length - 8), n.write_shift(2, 16), n.write_shift(2, 61448), n.write_shift(4, 8), n.write_shift(4, t.length + 1), n.write_shift(4, nv), n.write_shift(2, 15), n.write_shift(2, 61443), n.write_shift(4, r + 48), n.write_shift(2, 15), n.write_shift(2, 61444), n.write_shift(4, 40), n.write_shift(2, 1), n.write_shift(2, 61449), n.write_shift(4, 16), n.l += 16, n.write_shift(2, 2), n.write_shift(2, 61450), n.write_shift(4, 8), n.write_shift(4, a), n.write_shift(4, 5), J(e, 236, o ? M([n, o]) : n);
|
|
17820
17808
|
}
|
|
17821
17809
|
e.push(i.end()), n.forEach(function(t) {
|
|
17822
17810
|
J(e, 28, t);
|
|
@@ -17938,13 +17926,13 @@ function mv(e, t, n) {
|
|
|
17938
17926
|
let g = f.end();
|
|
17939
17927
|
if (p != g.length) throw Error("BS8 " + p + " != " + g.length);
|
|
17940
17928
|
let _ = [];
|
|
17941
|
-
return l.length && _.push(l), g.length && _.push(g), d.length && _.push(d),
|
|
17929
|
+
return l.length && _.push(l), g.length && _.push(g), d.length && _.push(d), M(_);
|
|
17942
17930
|
}
|
|
17943
17931
|
function hv(e, t) {
|
|
17944
17932
|
let n = t || {}, r = [];
|
|
17945
17933
|
e && !e.SSF && (e.SSF = It(L)), e && e.SSF && (st(), ot(e.SSF), n.revssf = Ct(e.SSF), n.revssf[e.SSF[65535]] = 0, n.ssf = e.SSF), nv = 1, rv = [], n.Strings = [], n.Strings.Count = 0, n.Strings.Unique = 0, Uy(n), n.cellXfs = [], bm(n.cellXfs, {}, { revssf: { General: 0 } }), e.Props ||= {};
|
|
17946
17934
|
for (let t = 0; t < e.SheetNames.length; ++t) r[r.length] = pv(t, n, e);
|
|
17947
|
-
return r.unshift(mv(e, r, n)),
|
|
17935
|
+
return r.unshift(mv(e, r, n)), M(r);
|
|
17948
17936
|
}
|
|
17949
17937
|
function gv(e, t) {
|
|
17950
17938
|
for (let t = 0; t <= e.SheetNames.length; ++t) {
|
|
@@ -18373,11 +18361,9 @@ function Av(e, t, n) {
|
|
|
18373
18361
|
return r;
|
|
18374
18362
|
}
|
|
18375
18363
|
function jv(e, t, n) {
|
|
18376
|
-
let r = t || {};
|
|
18377
|
-
x != null && r.dense == null && (r.dense = x);
|
|
18378
|
-
let i = $n(e), a = [], o, s, c, l = "", u = 0, d, f, p = {}, m = [], h = {};
|
|
18364
|
+
let r = t || {}, i = $n(e), a = [], o, s, c, l = "", u = 0, d, f, p = {}, m = [], h = {};
|
|
18379
18365
|
r.dense && (h["!data"] = []);
|
|
18380
|
-
let g, _, v = { value: "" }, y = {}, b = "",
|
|
18366
|
+
let g, _, v = { value: "" }, y = {}, b = "", x = 0, S, C = "", w = 0, T = [], ee = [], E = -1, D = -1, O = {
|
|
18381
18367
|
s: {
|
|
18382
18368
|
r: 1e6,
|
|
18383
18369
|
c: 1e7
|
|
@@ -18386,75 +18372,75 @@ function jv(e, t, n) {
|
|
|
18386
18372
|
r: 0,
|
|
18387
18373
|
c: 0
|
|
18388
18374
|
}
|
|
18389
|
-
},
|
|
18375
|
+
}, k = 0, te = n || {}, A = {}, ne = [], j = {}, re = 0, ie = 0, M = [], ae = 1, N = 1, oe = [], P = {
|
|
18390
18376
|
Names: [],
|
|
18391
18377
|
WBProps: {}
|
|
18392
|
-
},
|
|
18378
|
+
}, F = {}, se = ["", ""], ce = [], le = {}, ue = "", de = 0, fe = !1, pe = !1, I = 0;
|
|
18393
18379
|
for (er.lastIndex = 0, i = Xt(Qt(i, "<!--", "-->")); g = er.exec(i);) switch (g[3] = g[3].replace(/_[\s\S]*$/, "")) {
|
|
18394
18380
|
case "table":
|
|
18395
18381
|
case "工作表":
|
|
18396
|
-
g[1] === "/" ? (
|
|
18382
|
+
g[1] === "/" ? (O.e.c >= O.s.c && O.e.r >= O.s.r ? h["!ref"] = K(O) : h["!ref"] = "A1:A1", r.sheetRows > 0 && r.sheetRows <= O.e.r && (h["!fullref"] = h["!ref"], O.e.r = r.sheetRows - 1, h["!ref"] = K(O)), ne.length && (h["!merges"] = ne), M.length && (h["!rows"] = M), d.name = d.名称 || d.name, typeof JSON < "u" && JSON.stringify(d), m.push(d.name), p[d.name] = h, pe = !1) : g[0].charAt(g[0].length - 2) !== "/" && (d = B(g[0], !1), E = D = -1, O.s.r = O.s.c = 1e7, O.e.r = O.e.c = 0, h = {}, r.dense && (h["!data"] = []), ne = [], M = [], pe = !0);
|
|
18397
18383
|
break;
|
|
18398
18384
|
case "table-row-group":
|
|
18399
|
-
g[1] === "/" ? --
|
|
18385
|
+
g[1] === "/" ? --k : ++k;
|
|
18400
18386
|
break;
|
|
18401
18387
|
case "table-row":
|
|
18402
18388
|
case "行":
|
|
18403
18389
|
if (g[1] === "/") {
|
|
18404
|
-
|
|
18390
|
+
E += ae, ae = 1;
|
|
18405
18391
|
break;
|
|
18406
18392
|
}
|
|
18407
|
-
if (f = B(g[0], !1), f.行号 ?
|
|
18408
|
-
|
|
18393
|
+
if (f = B(g[0], !1), f.行号 ? E = f.行号 - 1 : E == -1 && (E = 0), ae = +f["number-rows-repeated"] || 1, ae < 10) for (I = 0; I < ae; ++I) k > 0 && (M[E + I] = { level: k });
|
|
18394
|
+
D = -1;
|
|
18409
18395
|
break;
|
|
18410
18396
|
case "covered-table-cell":
|
|
18411
|
-
if (g[1] !== "/") if (++
|
|
18412
|
-
for (;
|
|
18413
|
-
r:
|
|
18414
|
-
c:
|
|
18415
|
-
})] = { t: "z" }, ++
|
|
18416
|
-
--
|
|
18417
|
-
} else
|
|
18418
|
-
b = "",
|
|
18397
|
+
if (g[1] !== "/") if (++D, v = B(g[0], !1), N = parseInt(v["number-columns-repeated"] || "1", 10) || 1, r.sheetStubs) {
|
|
18398
|
+
for (; N-- > 0;) r.dense ? (h["!data"][E] || (h["!data"][E] = []), h["!data"][E][D] = { t: "z" }) : h[ri({
|
|
18399
|
+
r: E,
|
|
18400
|
+
c: D
|
|
18401
|
+
})] = { t: "z" }, ++D;
|
|
18402
|
+
--D;
|
|
18403
|
+
} else D += N - 1;
|
|
18404
|
+
b = "", T = [];
|
|
18419
18405
|
break;
|
|
18420
18406
|
case "table-cell":
|
|
18421
18407
|
case "数据":
|
|
18422
|
-
if (g[0].charAt(g[0].length - 2) === "/") ++
|
|
18408
|
+
if (g[0].charAt(g[0].length - 2) === "/") ++D, v = B(g[0], !1), N = parseInt(v["number-columns-repeated"] || "1", 10) || 1, _ = {
|
|
18423
18409
|
t: "z",
|
|
18424
18410
|
v: null
|
|
18425
|
-
}, v.formula && r.cellFormula != 0 && (_.f = um(On(v.formula))), v["style-name"] &&
|
|
18411
|
+
}, v.formula && r.cellFormula != 0 && (_.f = um(On(v.formula))), v["style-name"] && A[v["style-name"]] && (_.z = A[v["style-name"]]), (v.数据类型 || v["value-type"]) == "string" && (_.t = "s", _.v = On(v["string-value"] || ""), r.dense ? (h["!data"][E] || (h["!data"][E] = []), h["!data"][E][D] = _) : h[G(D) + Yr(E)] = _), D += N - 1;
|
|
18426
18412
|
else if (g[1] !== "/") {
|
|
18427
|
-
++
|
|
18428
|
-
let e =
|
|
18429
|
-
if (
|
|
18413
|
+
++D, b = C = "", x = w = 0, T = [], ee = [], N = 1;
|
|
18414
|
+
let e = ae ? E + ae - 1 : E;
|
|
18415
|
+
if (D > O.e.c && (O.e.c = D), D < O.s.c && (O.s.c = D), E < O.s.r && (O.s.r = E), e > O.e.r && (O.e.r = e), v = B(g[0], !1), y = wn(g[0], !0), ce = [], le = {}, _ = {
|
|
18430
18416
|
t: v.数据类型 || v["value-type"],
|
|
18431
18417
|
v: null
|
|
18432
|
-
}, v["style-name"] &&
|
|
18418
|
+
}, v["style-name"] && A[v["style-name"]] && (_.z = A[v["style-name"]]), r.cellFormula) if (v.formula &&= On(v.formula), v["number-matrix-columns-spanned"] && v["number-matrix-rows-spanned"] && (re = parseInt(v["number-matrix-rows-spanned"], 10) || 0, ie = parseInt(v["number-matrix-columns-spanned"], 10) || 0, j = {
|
|
18433
18419
|
s: {
|
|
18434
|
-
r:
|
|
18435
|
-
c:
|
|
18420
|
+
r: E,
|
|
18421
|
+
c: D
|
|
18436
18422
|
},
|
|
18437
18423
|
e: {
|
|
18438
|
-
r:
|
|
18439
|
-
c:
|
|
18424
|
+
r: E + re - 1,
|
|
18425
|
+
c: D + ie - 1
|
|
18440
18426
|
}
|
|
18441
|
-
}, _.F = K(
|
|
18442
|
-
else for (
|
|
18443
|
-
switch ((v["number-columns-spanned"] || v["number-rows-spanned"]) && (
|
|
18427
|
+
}, _.F = K(j), oe.push([j, _.F])), v.formula) _.f = um(v.formula);
|
|
18428
|
+
else for (I = 0; I < oe.length; ++I) E >= oe[I][0].s.r && E <= oe[I][0].e.r && D >= oe[I][0].s.c && D <= oe[I][0].e.c && (_.F = oe[I][1]);
|
|
18429
|
+
switch ((v["number-columns-spanned"] || v["number-rows-spanned"]) && (re = parseInt(v["number-rows-spanned"] || "1", 10) || 1, ie = parseInt(v["number-columns-spanned"] || "1", 10) || 1, re * ie > 1 && (j = {
|
|
18444
18430
|
s: {
|
|
18445
|
-
r:
|
|
18446
|
-
c:
|
|
18431
|
+
r: E,
|
|
18432
|
+
c: D
|
|
18447
18433
|
},
|
|
18448
18434
|
e: {
|
|
18449
|
-
r:
|
|
18450
|
-
c:
|
|
18435
|
+
r: E + re - 1,
|
|
18436
|
+
c: D + ie - 1
|
|
18451
18437
|
}
|
|
18452
|
-
},
|
|
18438
|
+
}, ne.push(j))), v["number-columns-repeated"] && (N = parseInt(v["number-columns-repeated"], 10)), _.t) {
|
|
18453
18439
|
case "boolean":
|
|
18454
18440
|
_.t = "b", _.v = Ln(v["boolean-value"]) || +v["boolean-value"] >= 1;
|
|
18455
18441
|
break;
|
|
18456
18442
|
case "float":
|
|
18457
|
-
_.t = "n", _.v = parseFloat(v.value), r.cellDates && _.z && $e(_.z) && (_.v = kt(_.v + (
|
|
18443
|
+
_.t = "n", _.v = parseFloat(v.value), r.cellDates && _.z && $e(_.z) && (_.v = kt(_.v + (P.WBProps.date1904 ? 1462 : 0)), _.t = typeof _.v == "number" ? "n" : "d");
|
|
18458
18444
|
break;
|
|
18459
18445
|
case "percentage":
|
|
18460
18446
|
_.t = "n", _.v = parseFloat(v.value);
|
|
@@ -18463,7 +18449,7 @@ function jv(e, t, n) {
|
|
|
18463
18449
|
_.t = "n", _.v = parseFloat(v.value);
|
|
18464
18450
|
break;
|
|
18465
18451
|
case "date":
|
|
18466
|
-
_.t = "d", _.v = Pt(v["date-value"],
|
|
18452
|
+
_.t = "d", _.v = Pt(v["date-value"], P.WBProps.date1904), r.cellDates || (_.t = "n", _.v = Ot(_.v, P.WBProps.date1904)), _.z ||= "m/d/yy";
|
|
18467
18453
|
break;
|
|
18468
18454
|
case "time":
|
|
18469
18455
|
_.t = "n", _.v = At(v["time-value"]) / 86400, r.cellDates && (_.v = kt(_.v), _.t = typeof _.v == "number" ? "n" : "d"), _.z ||= "HH:MM:SS";
|
|
@@ -18471,24 +18457,24 @@ function jv(e, t, n) {
|
|
|
18471
18457
|
case "number":
|
|
18472
18458
|
_.t = "n", _.v = parseFloat(v.数据数值);
|
|
18473
18459
|
break;
|
|
18474
|
-
default: if (_.t === "string" || _.t === "text" || !_.t) _.t = "s", v["string-value"] != null && (b = On(v["string-value"]),
|
|
18460
|
+
default: if (_.t === "string" || _.t === "text" || !_.t) _.t = "s", v["string-value"] != null && (b = On(v["string-value"]), T = []);
|
|
18475
18461
|
else throw Error("Unsupported value type " + _.t);
|
|
18476
18462
|
}
|
|
18477
18463
|
} else {
|
|
18478
|
-
if (
|
|
18479
|
-
if (
|
|
18464
|
+
if (fe = !1, y["calcext:value-type"] == "error" && ga[b] != null && (_.t = "e", _.w = b, _.v = ga[b]), _.t === "s" && (_.v = b || "", T.length && (_.R = T), fe = x == 0), F.Target && (_.l = F), ce.length > 0 && (_.c = ce, ce = []), b && r.cellText !== !1 && (_.w = b), fe && (_.t = "z", delete _.v), (!fe || r.sheetStubs) && !(r.sheetRows && r.sheetRows <= E)) for (let e = 0; e < ae; ++e) {
|
|
18465
|
+
if (N = parseInt(v["number-columns-repeated"] || "1", 10), r.dense) for (h["!data"][E + e] || (h["!data"][E + e] = []), h["!data"][E + e][D] = e == 0 ? _ : It(_); --N > 0;) h["!data"][E + e][D + N] = It(_);
|
|
18480
18466
|
else for (h[ri({
|
|
18481
|
-
r:
|
|
18482
|
-
c:
|
|
18483
|
-
})] = _; --
|
|
18484
|
-
r:
|
|
18485
|
-
c:
|
|
18467
|
+
r: E + e,
|
|
18468
|
+
c: D
|
|
18469
|
+
})] = _; --N > 0;) h[ri({
|
|
18470
|
+
r: E + e,
|
|
18471
|
+
c: D + N
|
|
18486
18472
|
})] = It(_);
|
|
18487
|
-
|
|
18473
|
+
O.e.c <= D && (O.e.c = D);
|
|
18488
18474
|
}
|
|
18489
|
-
|
|
18475
|
+
N = parseInt(v["number-columns-repeated"] || "1", 10), D += N - 1, N = 0, _ = {}, b = "", T = [];
|
|
18490
18476
|
}
|
|
18491
|
-
|
|
18477
|
+
F = {};
|
|
18492
18478
|
break;
|
|
18493
18479
|
case "document":
|
|
18494
18480
|
case "document-content":
|
|
@@ -18506,16 +18492,16 @@ function jv(e, t, n) {
|
|
|
18506
18492
|
case "annotation":
|
|
18507
18493
|
if (g[1] === "/") {
|
|
18508
18494
|
if ((o = a.pop())[0] !== g[3]) throw "Bad state: " + o;
|
|
18509
|
-
|
|
18495
|
+
le.t = b, T.length && (le.R = T), le.a = ue, ce.push(le), b = C, x = w, T = ee;
|
|
18510
18496
|
} else if (g[0].charAt(g[0].length - 2) !== "/") {
|
|
18511
18497
|
a.push([g[3], !1]);
|
|
18512
18498
|
let e = B(g[0], !0);
|
|
18513
|
-
e.display && Ln(e.display) || (
|
|
18499
|
+
e.display && Ln(e.display) || (ce.hidden = !0), C = b, w = x, ee = T, b = "", x = 0, T = [];
|
|
18514
18500
|
}
|
|
18515
|
-
|
|
18501
|
+
ue = "", de = 0;
|
|
18516
18502
|
break;
|
|
18517
18503
|
case "creator":
|
|
18518
|
-
g[1] === "/" ?
|
|
18504
|
+
g[1] === "/" ? ue = i.slice(de, g.index) : de = g.index + g[0].length;
|
|
18519
18505
|
break;
|
|
18520
18506
|
case "meta":
|
|
18521
18507
|
case "元数据":
|
|
@@ -18537,7 +18523,7 @@ function jv(e, t, n) {
|
|
|
18537
18523
|
if (g[1] === "/") {
|
|
18538
18524
|
if ((o = a.pop())[0] !== g[3]) throw "Bad state: " + o;
|
|
18539
18525
|
} else g[0].charAt(g[0].length - 2) !== "/" && a.push([g[3], !1]);
|
|
18540
|
-
b = "",
|
|
18526
|
+
b = "", x = 0, T = [];
|
|
18541
18527
|
break;
|
|
18542
18528
|
case "scientific-number":
|
|
18543
18529
|
case "currency-symbol":
|
|
@@ -18551,7 +18537,7 @@ function jv(e, t, n) {
|
|
|
18551
18537
|
case "time-style":
|
|
18552
18538
|
if (g[1] === "/") {
|
|
18553
18539
|
let e = er.lastIndex;
|
|
18554
|
-
Av(i.slice(c, er.lastIndex), t,
|
|
18540
|
+
Av(i.slice(c, er.lastIndex), t, te), er.lastIndex = e;
|
|
18555
18541
|
} else g[0].charAt(g[0].length - 2) !== "/" && (c = er.lastIndex - g[0].length);
|
|
18556
18542
|
break;
|
|
18557
18543
|
case "script": break;
|
|
@@ -18562,7 +18548,7 @@ function jv(e, t, n) {
|
|
|
18562
18548
|
case "style":
|
|
18563
18549
|
{
|
|
18564
18550
|
let e = B(g[0], !1);
|
|
18565
|
-
e.family == "table-cell" &&
|
|
18551
|
+
e.family == "table-cell" && te[e["data-style-name"]] && (A[e.name] = te[e["data-style-name"]]);
|
|
18566
18552
|
}
|
|
18567
18553
|
break;
|
|
18568
18554
|
case "map": break;
|
|
@@ -18598,12 +18584,12 @@ function jv(e, t, n) {
|
|
|
18598
18584
|
else u = g.index + g[0].length;
|
|
18599
18585
|
break;
|
|
18600
18586
|
case "named-range":
|
|
18601
|
-
s = B(g[0], !1),
|
|
18602
|
-
var
|
|
18587
|
+
s = B(g[0], !1), se = fm(s["cell-range-address"]);
|
|
18588
|
+
var me = {
|
|
18603
18589
|
Name: s.name,
|
|
18604
|
-
Ref:
|
|
18590
|
+
Ref: se[0] + "!" + se[1]
|
|
18605
18591
|
};
|
|
18606
|
-
|
|
18592
|
+
pe && (me.Sheet = m.length), P.Names.push(me);
|
|
18607
18593
|
break;
|
|
18608
18594
|
case "text-content": break;
|
|
18609
18595
|
case "text-properties": break;
|
|
@@ -18620,7 +18606,7 @@ function jv(e, t, n) {
|
|
|
18620
18606
|
case "null-date":
|
|
18621
18607
|
switch (s = B(g[0], !1), s["date-value"]) {
|
|
18622
18608
|
case "1904-01-01":
|
|
18623
|
-
|
|
18609
|
+
P.WBProps.date1904 = !0;
|
|
18624
18610
|
break;
|
|
18625
18611
|
}
|
|
18626
18612
|
break;
|
|
@@ -18640,15 +18626,15 @@ function jv(e, t, n) {
|
|
|
18640
18626
|
case "文本串":
|
|
18641
18627
|
if (["master-styles"].indexOf(a[a.length - 1][0]) > -1) break;
|
|
18642
18628
|
if (g[1] === "/" && (!v || !v["string-value"])) {
|
|
18643
|
-
let e = kv(i.slice(
|
|
18629
|
+
let e = kv(i.slice(x, g.index), S);
|
|
18644
18630
|
b = (b.length > 0 ? b + "\n" : "") + e[0];
|
|
18645
|
-
} else g[0].slice(-2) == "/>" ? b += "\n" : (
|
|
18631
|
+
} else g[0].slice(-2) == "/>" ? b += "\n" : (S = B(g[0], !1), x = g.index + g[0].length);
|
|
18646
18632
|
break;
|
|
18647
18633
|
case "s": break;
|
|
18648
18634
|
case "database-range":
|
|
18649
18635
|
if (g[1] === "/") break;
|
|
18650
18636
|
try {
|
|
18651
|
-
|
|
18637
|
+
se = fm(B(g[0])["target-range-address"]), p[se[0]]["!autofilter"] = { ref: se[1] };
|
|
18652
18638
|
} catch {}
|
|
18653
18639
|
break;
|
|
18654
18640
|
case "date": break;
|
|
@@ -18736,8 +18722,8 @@ function jv(e, t, n) {
|
|
|
18736
18722
|
case "property": break;
|
|
18737
18723
|
case "a":
|
|
18738
18724
|
if (g[1] !== "/") {
|
|
18739
|
-
if (
|
|
18740
|
-
|
|
18725
|
+
if (F = B(g[0], !1), !F.href) break;
|
|
18726
|
+
F.Target = On(F.href), delete F.href, F.Target.charAt(0) == "#" && F.Target.indexOf(".") > -1 ? (se = fm(F.Target.slice(1)), F.Target = "#" + se[0] + "!" + se[1]) : F.Target.match(/^\.\.[\\/]/) && (F.Target = F.Target.slice(3));
|
|
18741
18727
|
}
|
|
18742
18728
|
break;
|
|
18743
18729
|
case "table-protection": break;
|
|
@@ -18759,12 +18745,12 @@ function jv(e, t, n) {
|
|
|
18759
18745
|
default: if (r.WTF) throw Error(g);
|
|
18760
18746
|
}
|
|
18761
18747
|
}
|
|
18762
|
-
let
|
|
18748
|
+
let he = {
|
|
18763
18749
|
Sheets: p,
|
|
18764
18750
|
SheetNames: m,
|
|
18765
|
-
Workbook:
|
|
18751
|
+
Workbook: P
|
|
18766
18752
|
};
|
|
18767
|
-
return r.bookSheets && delete
|
|
18753
|
+
return r.bookSheets && delete he.Sheets, he;
|
|
18768
18754
|
}
|
|
18769
18755
|
function Mv(e, t) {
|
|
18770
18756
|
t ||= {}, ln(e, "META-INF/manifest.xml") && Oa(dn(e, "META-INF/manifest.xml"), t);
|
|
@@ -19171,10 +19157,10 @@ function Bv(e) {
|
|
|
19171
19157
|
return new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
19172
19158
|
}
|
|
19173
19159
|
function Vv(e) {
|
|
19174
|
-
return typeof TextDecoder < "u" ? new TextDecoder().decode(e) : Hn(
|
|
19160
|
+
return typeof TextDecoder < "u" ? new TextDecoder().decode(e) : Hn(j(e));
|
|
19175
19161
|
}
|
|
19176
19162
|
function Hv(e) {
|
|
19177
|
-
return typeof TextEncoder < "u" ? new TextEncoder().encode(e) :
|
|
19163
|
+
return typeof TextEncoder < "u" ? new TextEncoder().encode(e) : A(Un(e));
|
|
19178
19164
|
}
|
|
19179
19165
|
function Uv(e) {
|
|
19180
19166
|
let t = 0;
|
|
@@ -21448,7 +21434,7 @@ function $y(e, t) {
|
|
|
21448
21434
|
e[7]
|
|
21449
21435
|
];
|
|
21450
21436
|
case "base64":
|
|
21451
|
-
n =
|
|
21437
|
+
n = ee(e.slice(0, 12));
|
|
21452
21438
|
break;
|
|
21453
21439
|
case "binary":
|
|
21454
21440
|
n = e;
|
|
@@ -21481,7 +21467,7 @@ function eb(e, t) {
|
|
|
21481
21467
|
}
|
|
21482
21468
|
function tb(e, t) {
|
|
21483
21469
|
let n, r = e, i = t || {};
|
|
21484
|
-
return i.type ||=
|
|
21470
|
+
return i.type ||= E && Buffer.isBuffer(e) ? "buffer" : "base64", n = gn(r, i), Yy(n, i);
|
|
21485
21471
|
}
|
|
21486
21472
|
function nb(e, t) {
|
|
21487
21473
|
let n = 0;
|
|
@@ -21500,7 +21486,7 @@ function rb(e, t) {
|
|
|
21500
21486
|
let n = "", r = $y(e, t);
|
|
21501
21487
|
switch (t.type) {
|
|
21502
21488
|
case "base64":
|
|
21503
|
-
n =
|
|
21489
|
+
n = ee(e);
|
|
21504
21490
|
break;
|
|
21505
21491
|
case "binary":
|
|
21506
21492
|
n = e;
|
|
@@ -21517,7 +21503,7 @@ function rb(e, t) {
|
|
|
21517
21503
|
}
|
|
21518
21504
|
function ib(e, t) {
|
|
21519
21505
|
let n = e;
|
|
21520
|
-
return t.type == "base64" && (n =
|
|
21506
|
+
return t.type == "base64" && (n = ee(n)), typeof ArrayBuffer < "u" && e instanceof ArrayBuffer && (n = new Uint8Array(e)), n = o === void 0 ? E && Buffer.isBuffer(e) ? e.slice(2).toString("utf16le") : typeof Uint8Array < "u" && n instanceof Uint8Array ? typeof TextDecoder < "u" ? new TextDecoder("utf-16le").decode(n.slice(2)) : h(n.slice(2)) : m(n.slice(2)) : o.utils.decode(1200, n.slice(2), "str"), t.type = "binary", nb(n, t);
|
|
21521
21507
|
}
|
|
21522
21508
|
function ab(e) {
|
|
21523
21509
|
return e.match(/[^\x00-\x7F]/) ? Un(e) : e;
|
|
@@ -21537,9 +21523,9 @@ function sb(e, t) {
|
|
|
21537
21523
|
0,
|
|
21538
21524
|
0
|
|
21539
21525
|
], a = !1;
|
|
21540
|
-
if (n.cellStyles && (n.cellNF = !0, n.sheetStubs = !0), hm = {}, n.dateNF && (hm.dateNF = n.dateNF), n.type ||=
|
|
21526
|
+
if (n.cellStyles && (n.cellNF = !0, n.sheetStubs = !0), hm = {}, n.dateNF && (hm.dateNF = n.dateNF), n.type ||= E && Buffer.isBuffer(e) ? "buffer" : "base64", n.type == "file" && (n.type = E ? "buffer" : "binary", r = yt(e), typeof Uint8Array < "u" && !E && (n.type = "array")), n.type == "string" && (a = !0, n.type = "binary", n.codepage = 65001, r = ab(e)), n.type == "array" && typeof Uint8Array < "u" && e instanceof Uint8Array && typeof ArrayBuffer < "u") {
|
|
21541
21527
|
let e = new Uint8Array(/* @__PURE__ */ new ArrayBuffer(3));
|
|
21542
|
-
if (e.foo = "bar", !e.foo) return n = It(n), n.type = "array", sb(
|
|
21528
|
+
if (e.foo = "bar", !e.foo) return n = It(n), n.type = "array", sb(ie(r), n);
|
|
21543
21529
|
}
|
|
21544
21530
|
switch ((i = $y(r, n))[0]) {
|
|
21545
21531
|
case 208:
|
|
@@ -21600,7 +21586,7 @@ function lb(e, t) {
|
|
|
21600
21586
|
case "array":
|
|
21601
21587
|
t.type = "";
|
|
21602
21588
|
break;
|
|
21603
|
-
case "file": return vt(t.file, R.write(e, { type:
|
|
21589
|
+
case "file": return vt(t.file, R.write(e, { type: E ? "buffer" : "" }));
|
|
21604
21590
|
case "string": throw Error("'string' output type invalid for '" + t.bookType + "' files");
|
|
21605
21591
|
default: throw Error("Unrecognized type " + t.type);
|
|
21606
21592
|
}
|
|
@@ -21623,7 +21609,7 @@ function fb(e, t) {
|
|
|
21623
21609
|
return pb(Qy(e, n), n);
|
|
21624
21610
|
}
|
|
21625
21611
|
function pb(e, t) {
|
|
21626
|
-
let n = {}, r =
|
|
21612
|
+
let n = {}, r = E ? "nodebuffer" : typeof Uint8Array < "u" ? "array" : "string";
|
|
21627
21613
|
if (t.compression && (n.compression = "DEFLATE"), t.password) n.type = r;
|
|
21628
21614
|
else switch (t.type) {
|
|
21629
21615
|
case "base64":
|
|
@@ -21649,7 +21635,7 @@ function pb(e, t) {
|
|
|
21649
21635
|
}) : e.generate(n);
|
|
21650
21636
|
if (typeof Deno < "u" && typeof i == "string") {
|
|
21651
21637
|
if (t.type == "binary" || t.type == "base64") return i;
|
|
21652
|
-
i = new Uint8Array(
|
|
21638
|
+
i = new Uint8Array(ne(i));
|
|
21653
21639
|
}
|
|
21654
21640
|
return t.password && typeof encrypt_agile < "u" ? lb(encrypt_agile(i, t.password), t) : t.type === "file" ? vt(t.file, i) : t.type == "string" ? Hn(i) : i;
|
|
21655
21641
|
}
|
|
@@ -21665,7 +21651,7 @@ function hb(e, t, n) {
|
|
|
21665
21651
|
case "binary": return Un(r);
|
|
21666
21652
|
case "string": return e;
|
|
21667
21653
|
case "file": return vt(t.file, r, "utf8");
|
|
21668
|
-
case "buffer": return
|
|
21654
|
+
case "buffer": return E ? D(r, "utf8") : typeof TextEncoder < "u" ? new TextEncoder().encode(r) : hb(r, { type: "binary" }).split("").map(function(e) {
|
|
21669
21655
|
return e.charCodeAt(0);
|
|
21670
21656
|
});
|
|
21671
21657
|
}
|
|
@@ -21677,7 +21663,7 @@ function gb(e, t) {
|
|
|
21677
21663
|
case "binary": return e;
|
|
21678
21664
|
case "string": return e;
|
|
21679
21665
|
case "file": return vt(t.file, e, "binary");
|
|
21680
|
-
case "buffer": return
|
|
21666
|
+
case "buffer": return E ? D(e, "binary") : e.split("").map(function(e) {
|
|
21681
21667
|
return e.charCodeAt(0);
|
|
21682
21668
|
});
|
|
21683
21669
|
}
|
|
@@ -21702,7 +21688,7 @@ function vb(e, t) {
|
|
|
21702
21688
|
if (n.cellStyles && (n.cellNF = !0, n.sheetStubs = !0), n.type == "array") {
|
|
21703
21689
|
n.type = "binary";
|
|
21704
21690
|
let t = vb(e, n);
|
|
21705
|
-
return n.type = "array",
|
|
21691
|
+
return n.type = "array", ne(t);
|
|
21706
21692
|
}
|
|
21707
21693
|
return fb(e, n);
|
|
21708
21694
|
}
|
|
@@ -21712,7 +21698,7 @@ function yb(e, t) {
|
|
|
21712
21698
|
if (n.cellStyles && (n.cellNF = !0, n.sheetStubs = !0), n.type == "array") {
|
|
21713
21699
|
n.type = "binary";
|
|
21714
21700
|
let t = yb(e, n);
|
|
21715
|
-
return n.type = "array",
|
|
21701
|
+
return n.type = "array", ne(t);
|
|
21716
21702
|
}
|
|
21717
21703
|
let r = 0;
|
|
21718
21704
|
if (n.sheet && (r = typeof n.sheet == "number" ? n.sheet : e.SheetNames.indexOf(n.sheet), !e.SheetNames[r])) throw Error("Sheet not found: " + n.sheet + " : " + typeof n.sheet);
|
|
@@ -21937,9 +21923,7 @@ function Ab(e, t) {
|
|
|
21937
21923
|
return l;
|
|
21938
21924
|
}
|
|
21939
21925
|
function jb(e, t, n) {
|
|
21940
|
-
let r = n || {}, i = e ? e["!data"] != null : r.dense;
|
|
21941
|
-
x != null && i == null && (i = x);
|
|
21942
|
-
let a = +!r.skipHeader, o = e || {};
|
|
21926
|
+
let r = n || {}, i = e ? e["!data"] != null : r.dense, a = +!r.skipHeader, o = e || {};
|
|
21943
21927
|
!e && i && (o["!data"] = []);
|
|
21944
21928
|
let s = 0, c = 0;
|
|
21945
21929
|
if (o && r.origin != null) if (typeof r.origin == "number") s = r.origin;
|