@stokr/components-library 3.0.65 → 3.0.67
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/README.md +16 -3
- package/dist/_virtual/Collapse.js +4 -0
- package/dist/_virtual/Component.js +4 -0
- package/dist/_virtual/Range.js +4 -0
- package/dist/_virtual/ResizeObserver.es.js +6 -0
- package/dist/_virtual/UnmountClosed.js +4 -0
- package/dist/_virtual/_commonjsHelpers.js +38 -0
- package/dist/_virtual/arrows.js +4 -0
- package/dist/_virtual/attributes-to-props.js +4 -0
- package/dist/_virtual/constants.js +4 -0
- package/dist/_virtual/default-props.js +4 -0
- package/dist/_virtual/defaultRenderElements.js +4 -0
- package/dist/_virtual/dom-to-react.js +4 -0
- package/dist/_virtual/domparser.js +4 -0
- package/dist/_virtual/dots.js +4 -0
- package/dist/_virtual/getInnerHeight.js +4 -0
- package/dist/_virtual/getInnerWidth.js +4 -0
- package/dist/_virtual/getScrollbarWidth.js +4 -0
- package/dist/_virtual/hoist-non-react-statics.cjs.js +2 -0
- package/dist/_virtual/html-to-dom.js +4 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index10.js +5 -0
- package/dist/_virtual/index11.js +7 -0
- package/dist/_virtual/index12.js +7 -0
- package/dist/_virtual/index13.js +7 -0
- package/dist/_virtual/index14.js +4 -0
- package/dist/_virtual/index15.js +7 -0
- package/dist/_virtual/index16.js +7 -0
- package/dist/_virtual/index17.js +7 -0
- package/dist/_virtual/index18.js +4 -0
- package/dist/_virtual/index19.js +4 -0
- package/dist/_virtual/index2.js +7 -0
- package/dist/_virtual/index20.js +4 -0
- package/dist/_virtual/index21.js +4 -0
- package/dist/_virtual/index22.js +4 -0
- package/dist/_virtual/index23.js +4 -0
- package/dist/_virtual/index24.js +4 -0
- package/dist/_virtual/index25.js +4 -0
- package/dist/_virtual/index26.js +4 -0
- package/dist/_virtual/index27.js +4 -0
- package/dist/_virtual/index28.js +4 -0
- package/dist/_virtual/index29.js +4 -0
- package/dist/_virtual/index3.js +5 -0
- package/dist/_virtual/index30.js +4 -0
- package/dist/_virtual/index31.js +4 -0
- package/dist/_virtual/index4.js +5 -0
- package/dist/_virtual/index5.js +5 -0
- package/dist/_virtual/index6.js +5 -0
- package/dist/_virtual/index7.js +7 -0
- package/dist/_virtual/index8.js +4 -0
- package/dist/_virtual/index9.js +5 -0
- package/dist/_virtual/initial-state.js +4 -0
- package/dist/_virtual/inner-slider.js +4 -0
- package/dist/_virtual/innerSliderUtils.js +4 -0
- package/dist/_virtual/isString.js +4 -0
- package/dist/_virtual/node.js +4 -0
- package/dist/_virtual/performance-now.js +4 -0
- package/dist/_virtual/popper.js +6 -0
- package/dist/_virtual/possibleStandardNamesOptimized.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/react-table.development.js +4 -0
- package/dist/_virtual/react-table.production.min.js +4 -0
- package/dist/_virtual/react-tippy.js +5 -0
- package/dist/_virtual/react-tippy2.js +4 -0
- package/dist/_virtual/returnFalse.js +4 -0
- package/dist/_virtual/slider.js +4 -0
- package/dist/_virtual/styles.js +4 -0
- package/dist/_virtual/track.js +4 -0
- package/dist/_virtual/types.js +4 -0
- package/dist/_virtual/utilities.js +4 -0
- package/dist/_virtual/utilities2.js +4 -0
- package/dist/_virtual/utilities3.js +4 -0
- package/dist/_virtual/utils.js +4 -0
- package/dist/analytics/index.js +1 -1
- package/dist/api/fetchData.js +2 -2
- package/dist/components/2FA/Connect2FA.js +1 -1
- package/dist/components/2FA/EnterCode.js +1 -1
- package/dist/components/2FA/Sucess2FA.js +1 -1
- package/dist/components/2FA/login-with-otp-flow.js +47 -12
- package/dist/components/2FA/main-flow.js +29 -5
- package/dist/components/AccountBalance/AccountBalance.js +1 -1
- package/dist/components/AdminDashboard/Table/ReactTable.js +5 -5
- package/dist/components/AdminDashboard/Table/ReactTableWrapper.js +1 -1
- package/dist/components/AdminDashboard/Table/Table.js +1 -1
- package/dist/components/AgreementItem/AgreementItem.js +1 -1
- package/dist/components/BackButton/BackButton.js +1 -1
- package/dist/components/Background/Background.js +1 -1
- package/dist/components/BasicTable/BasicTable.js +1 -1
- package/dist/components/BlogPost/BlogPost.js +1 -1
- package/dist/components/Button/Button.styles.js +1 -1
- package/dist/components/Button/GlareButton.js +2 -2
- package/dist/components/ChartLegend/ChartLegend.js +3 -3
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checklist/ChecklistCard.js +1 -1
- package/dist/components/Chips/Chip.js +1 -1
- package/dist/components/Chips/ChipWrapper.js +1 -1
- package/dist/components/ComponentScroll/ComponentScroll.js +3 -3
- package/dist/components/Country/CountrySelect.js +4 -4
- package/dist/components/CryptoAddress/ComponentWrap.js +1 -1
- package/dist/components/CryptoAddress/CryptoAddress.js +7 -7
- package/dist/components/CryptoAddress/RadioWrap.js +1 -1
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +1 -1
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +1 -1
- package/dist/components/FAQ/FAQ.js +1 -1
- package/dist/components/FAQ/FAQ.styles.js +2 -2
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/FooterLayout.js +1 -1
- package/dist/components/Footer/FooterMenu.js +3 -3
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +5 -5
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Form/Form.styles.js +1 -1
- package/dist/components/Header/Header.js +3 -3
- package/dist/components/HeroBlock/HeroVideoBlock.js +1 -1
- package/dist/components/IdentityInfo/IdentityInfo.js +1 -1
- package/dist/components/InfoIcon/InfoIcon.js +6 -6
- package/dist/components/Input/DatePickerInput.js +5 -3
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/InputPassword.js +1 -1
- package/dist/components/Input/InputUsername.js +1 -1
- package/dist/components/Input/InputWithButton.js +1 -1
- package/dist/components/Input/MultiSelect.js +4 -3
- package/dist/components/Input/OtpInput.js +2 -2
- package/dist/components/Input/RangeInput.js +4 -4
- package/dist/components/Input/Select.js +5 -4
- package/dist/components/Input/TableFilterDropdown.js +1 -1
- package/dist/components/InvestmentStat/InvestmentStat.js +1 -1
- package/dist/components/LatestUpdate/LatestUpdate.js +1 -1
- package/dist/components/Layout/Layout.js +1 -1
- package/dist/components/LoginModal/LoginModal.js +6 -6
- package/dist/components/MainMenu/DynamicMainMenu.js +3 -3
- package/dist/components/MainMenu/MainMenu.js +6 -6
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/NewVentureModal/NewVentureModal.js +9 -9
- package/dist/components/Modal/PaymentModal.js +2 -2
- package/dist/components/Modal/SuccessModal/SuccessModal.js +3 -3
- package/dist/components/MultiProgressBar/MultiProgressBar.js +1 -1
- package/dist/components/Number/Number.js +1 -1
- package/dist/components/PageTransition/PageTransition.js +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/PaginationControls.js +1 -1
- package/dist/components/Payment/PaymentDisplay.js +4 -4
- package/dist/components/Payment/TimerComponent.js +1 -1
- package/dist/components/ProfileBadge/ProfileBadge.js +1 -1
- package/dist/components/ProfileBox/ProfileBox.js +1 -1
- package/dist/components/ProfileStat/ProfileStat.js +1 -1
- package/dist/components/QRCode/QRCode.js +2 -2
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/RefreshButton/RefreshButton.js +1 -1
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +1 -1
- package/dist/components/RegisterModal/RegisterModal.js +8 -8
- package/dist/components/RequestDataBox/RequestDataBox.js +1 -1
- package/dist/components/ResetConfirmModal/ResetConfirmModal.js +1 -1
- package/dist/components/ResetPasswordModal/ResetPasswordModal.js +6 -6
- package/dist/components/SEO/SEO.js +3 -3
- package/dist/components/Slider/Slider.js +4 -4
- package/dist/components/SmartLink/SmartLink.js +1 -1
- package/dist/components/Snackbar/Snackbar.js +1 -1
- package/dist/components/Snackbar/SnackbarProvider.js +1 -1
- package/dist/components/StepController/StepController.js +1 -1
- package/dist/components/StepController/StepControllerContext.js +1 -1
- package/dist/components/StepController/StepControllerProgress.js +1 -1
- package/dist/components/StepsProgress/StepIndicator.js +1 -1
- package/dist/components/StepsProgress/StepsProgress.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/TabsNav/TabNav.js +1 -1
- package/dist/components/TabsNav/TabsNav.js +1 -1
- package/dist/components/TaxResidenceCard/TaxResidenceCard.js +1 -1
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +2 -2
- package/dist/components/TeamOverview/TeamOverview.js +1 -1
- package/dist/components/TermsModal/TermsModal.js +5 -5
- package/dist/components/Timeline/TimelineStep.js +1 -1
- package/dist/components/ToDoList/ToDoList.js +3 -3
- package/dist/components/ToDoList/ToDoListTask.js +4 -4
- package/dist/components/TransactionDetails/TransactionDetails.js +1 -1
- package/dist/components/TransactionDetails/TransactionDetails.styles.js +2 -2
- package/dist/components/TransactionInfo/TransactionInfo.js +1 -1
- package/dist/components/VerifyEmailModal/VerifyEmailModal.js +5 -5
- package/dist/components/headerHo/HeaderHo.js +3 -1
- package/dist/components/logo/Logo.js +1 -1
- package/dist/components/taxId/register-taxid.js +4 -4
- package/dist/components-library.css +781 -0
- package/dist/context/Auth.js +15 -12
- package/dist/context/AuthContext.js +89 -16
- package/dist/firebase-config.js +4 -2
- package/dist/hooks/useNewVentureForm.js +1 -1
- package/dist/index.js +5 -4
- package/dist/model/axios.js +2 -1
- package/dist/model/axiosPublic.js +2 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.js +17 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js +16 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +24 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +25 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +11 -0
- package/dist/node_modules/@date-fns/tz/date/index.js +66 -0
- package/dist/node_modules/@date-fns/tz/date/mini.js +124 -0
- package/dist/node_modules/@date-fns/tz/tzName/index.js +11 -0
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +28 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +345 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +31 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +10 -0
- package/dist/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +84 -0
- package/dist/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +50 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +169 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +83 -0
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +53 -0
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +9 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +45 -0
- package/dist/node_modules/@firebase/app/dist/esm/index.esm.js +609 -0
- package/dist/node_modules/@firebase/auth/dist/esm/index-36fcbc82.js +5751 -0
- package/dist/node_modules/@firebase/component/dist/esm/index.esm.js +291 -0
- package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js +106 -0
- package/dist/node_modules/@firebase/util/dist/index.esm.js +828 -0
- package/dist/node_modules/@firebase/util/dist/postinstall.js +4 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +257 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +122 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +34 -0
- package/dist/node_modules/@lottiefiles/dotlottie-react/dist/index.js +53 -0
- package/dist/node_modules/@lottiefiles/dotlottie-web/dist/index.js +1973 -0
- package/dist/node_modules/add-px-to-style/index.js +48 -0
- package/dist/node_modules/axios/index.js +38 -0
- package/dist/node_modules/axios/lib/adapters/adapters.js +71 -0
- package/dist/node_modules/axios/lib/adapters/fetch.js +219 -0
- package/dist/node_modules/axios/lib/adapters/xhr.js +141 -0
- package/dist/node_modules/axios/lib/axios.js +50 -0
- package/dist/node_modules/axios/lib/cancel/CancelToken.js +99 -0
- package/dist/node_modules/axios/lib/cancel/CanceledError.js +20 -0
- package/dist/node_modules/axios/lib/cancel/isCancel.js +6 -0
- package/dist/node_modules/axios/lib/core/Axios.js +188 -0
- package/dist/node_modules/axios/lib/core/AxiosError.js +67 -0
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js +231 -0
- package/dist/node_modules/axios/lib/core/InterceptorManager.js +66 -0
- package/dist/node_modules/axios/lib/core/buildFullPath.js +12 -0
- package/dist/node_modules/axios/lib/core/dispatchRequest.js +52 -0
- package/dist/node_modules/axios/lib/core/mergeConfig.js +88 -0
- package/dist/node_modules/axios/lib/core/settle.js +18 -0
- package/dist/node_modules/axios/lib/core/transformData.js +17 -0
- package/dist/node_modules/axios/lib/defaults/index.js +116 -0
- package/dist/node_modules/axios/lib/defaults/transitional.js +9 -0
- package/dist/node_modules/axios/lib/env/data.js +4 -0
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +34 -0
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +77 -0
- package/dist/node_modules/axios/lib/helpers/bind.js +8 -0
- package/dist/node_modules/axios/lib/helpers/buildURL.js +32 -0
- package/dist/node_modules/axios/lib/helpers/combineURLs.js +6 -0
- package/dist/node_modules/axios/lib/helpers/composeSignals.js +39 -0
- package/dist/node_modules/axios/lib/helpers/cookies.js +49 -0
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +54 -0
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +9 -0
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +11 -0
- package/dist/node_modules/axios/lib/helpers/null.js +4 -0
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js +47 -0
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +41 -0
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js +46 -0
- package/dist/node_modules/axios/lib/helpers/speedometer.js +36 -0
- package/dist/node_modules/axios/lib/helpers/spread.js +8 -0
- package/dist/node_modules/axios/lib/helpers/throttle.js +35 -0
- package/dist/node_modules/axios/lib/helpers/toFormData.js +117 -0
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +18 -0
- package/dist/node_modules/axios/lib/helpers/trackStream.js +80 -0
- package/dist/node_modules/axios/lib/helpers/validator.js +67 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/dist/node_modules/axios/lib/platform/browser/index.js +15 -0
- package/dist/node_modules/axios/lib/platform/common/utils.js +15 -0
- package/dist/node_modules/axios/lib/platform/index.js +9 -0
- package/dist/node_modules/axios/lib/utils.js +415 -0
- package/dist/node_modules/classnames/index.js +61 -0
- package/dist/node_modules/copy-to-clipboard/index.js +101 -0
- package/dist/node_modules/country-flag-icons/modules/react/3x2/index.js +6570 -0
- package/dist/node_modules/country-flag-icons/react/3x2/index.js +269 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +8 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js +652 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +62 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +58 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +20 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +23 -0
- package/dist/node_modules/date-fns/addDays.js +12 -0
- package/dist/node_modules/date-fns/addMonths.js +26 -0
- package/dist/node_modules/date-fns/addWeeks.js +7 -0
- package/dist/node_modules/date-fns/addYears.js +7 -0
- package/dist/node_modules/date-fns/constants.js +14 -0
- package/dist/node_modules/date-fns/constructFrom.js +11 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +19 -0
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +14 -0
- package/dist/node_modules/date-fns/eachMonthOfInterval.js +20 -0
- package/dist/node_modules/date-fns/eachYearOfInterval.js +20 -0
- package/dist/node_modules/date-fns/endOfISOWeek.js +7 -0
- package/dist/node_modules/date-fns/endOfMonth.js +11 -0
- package/dist/node_modules/date-fns/endOfWeek.js +15 -0
- package/dist/node_modules/date-fns/endOfYear.js +11 -0
- package/dist/node_modules/date-fns/format.js +77 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +12 -0
- package/dist/node_modules/date-fns/getDaysInMonth.js +14 -0
- package/dist/node_modules/date-fns/getDefaultOptions.js +7 -0
- package/dist/node_modules/date-fns/getISODay.js +8 -0
- package/dist/node_modules/date-fns/getISOWeek.js +12 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js +25 -0
- package/dist/node_modules/date-fns/getMonth.js +7 -0
- package/dist/node_modules/date-fns/getWeek.js +12 -0
- package/dist/node_modules/date-fns/getWeekYear.js +28 -0
- package/dist/node_modules/date-fns/getYear.js +7 -0
- package/dist/node_modules/date-fns/isAfter.js +7 -0
- package/dist/node_modules/date-fns/isBefore.js +7 -0
- package/dist/node_modules/date-fns/isDate.js +6 -0
- package/dist/node_modules/date-fns/isSameDay.js +13 -0
- package/dist/node_modules/date-fns/isSameMonth.js +12 -0
- package/dist/node_modules/date-fns/isSameYear.js +12 -0
- package/dist/node_modules/date-fns/isValid.js +8 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +10 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +20 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +43 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +16 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +85 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +36 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +12 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +164 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +122 -0
- package/dist/node_modules/date-fns/locale/en-US.js +20 -0
- package/dist/node_modules/date-fns/max.js +16 -0
- package/dist/node_modules/date-fns/min.js +16 -0
- package/dist/node_modules/date-fns/parse/_lib/Parser.js +25 -0
- package/dist/node_modules/date-fns/parse/_lib/Setter.js +44 -0
- package/dist/node_modules/date-fns/parse/_lib/constants.js +50 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +44 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +44 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +64 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +52 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +45 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +44 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +30 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +20 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +17 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +27 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +28 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +34 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +106 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +43 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +43 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +43 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +39 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +76 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +42 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +67 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +27 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +73 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +71 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +27 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +76 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +73 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +16 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +16 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +47 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers.js +67 -0
- package/dist/node_modules/date-fns/parse/_lib/utils.js +117 -0
- package/dist/node_modules/date-fns/parse.js +123 -0
- package/dist/node_modules/date-fns/setDay.js +17 -0
- package/dist/node_modules/date-fns/setISODay.js +12 -0
- package/dist/node_modules/date-fns/setISOWeek.js +11 -0
- package/dist/node_modules/date-fns/setMonth.js +17 -0
- package/dist/node_modules/date-fns/setWeek.js +11 -0
- package/dist/node_modules/date-fns/setYear.js +11 -0
- package/dist/node_modules/date-fns/startOfDay.js +9 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js +7 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +13 -0
- package/dist/node_modules/date-fns/startOfMonth.js +10 -0
- package/dist/node_modules/date-fns/startOfWeek.js +15 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js +17 -0
- package/dist/node_modules/date-fns/startOfYear.js +10 -0
- package/dist/node_modules/date-fns/toDate.js +7 -0
- package/dist/node_modules/date-fns/transpose.js +18 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +8 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/newDateUTC/index.js +9 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzIntlTimeZoneName/index.js +29 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzParseTimezone/index.js +89 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzPattern/index.js +4 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzTokenizeDate/index.js +81 -0
- package/dist/node_modules/date-fns-tz/dist/esm/format/formatters/index.js +125 -0
- package/dist/node_modules/date-fns-tz/dist/esm/format/index.js +24 -0
- package/dist/node_modules/date-fns-tz/dist/esm/formatInTimeZone/index.js +13 -0
- package/dist/node_modules/date-fns-tz/dist/esm/toDate/index.js +305 -0
- package/dist/node_modules/date-fns-tz/dist/esm/toZonedTime/index.js +14 -0
- package/dist/node_modules/deepmerge/dist/es.js +69 -0
- package/dist/node_modules/dom-css/index.js +65 -0
- package/dist/node_modules/domelementtype/lib/index.js +39 -0
- package/dist/node_modules/domhandler/lib/index.js +166 -0
- package/dist/node_modules/domhandler/lib/node.js +438 -0
- package/dist/node_modules/dompurify/dist/purify.es.js +1020 -0
- package/dist/node_modules/firebase/app/dist/esm/index.esm.js +20 -0
- package/dist/node_modules/firebase/auth/dist/esm/index.esm.js +44 -0
- package/dist/node_modules/formik/dist/formik.esm.js +969 -0
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +92 -0
- package/dist/node_modules/html-dom-parser/lib/client/constants.js +55 -0
- package/dist/node_modules/html-dom-parser/lib/client/domparser.js +96 -0
- package/dist/node_modules/html-dom-parser/lib/client/html-to-dom.js +31 -0
- package/dist/node_modules/html-dom-parser/lib/client/utilities.js +96 -0
- package/dist/node_modules/html-react-parser/esm/index.js +5 -0
- package/dist/node_modules/html-react-parser/lib/attributes-to-props.js +64 -0
- package/dist/node_modules/html-react-parser/lib/dom-to-react.js +99 -0
- package/dist/node_modules/html-react-parser/lib/index.js +51 -0
- package/dist/node_modules/html-react-parser/lib/utilities.js +79 -0
- package/dist/node_modules/idb/build/index.js +69 -0
- package/dist/node_modules/idb/build/wrap-idb-value.js +148 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js +142 -0
- package/dist/node_modules/js-cookie/dist/js.cookie.js +99 -0
- package/dist/node_modules/json2mq/index.js +55 -0
- package/dist/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/lodash-es/_Hash.js +21 -0
- package/dist/node_modules/lodash-es/_ListCache.js +21 -0
- package/dist/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/lodash-es/_MapCache.js +21 -0
- package/dist/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/lodash-es/_Stack.js +18 -0
- package/dist/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/lodash-es/_arrayEach.js +12 -0
- package/dist/node_modules/lodash-es/_arrayFilter.js +13 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +24 -0
- package/dist/node_modules/lodash-es/_arrayMap.js +10 -0
- package/dist/node_modules/lodash-es/_arrayPush.js +10 -0
- package/dist/node_modules/lodash-es/_assignValue.js +13 -0
- package/dist/node_modules/lodash-es/_assocIndexOf.js +13 -0
- package/dist/node_modules/lodash-es/_baseAssign.js +8 -0
- package/dist/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/dist/node_modules/lodash-es/_baseAssignValue.js +16 -0
- package/dist/node_modules/lodash-es/_baseClone.js +88 -0
- package/dist/node_modules/lodash-es/_baseCreate.js +21 -0
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/lodash-es/_baseGetTag.js +14 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsNative.js +22 -0
- package/dist/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +14 -0
- package/dist/node_modules/lodash-es/_baseKeys.js +19 -0
- package/dist/node_modules/lodash-es/_baseKeysIn.js +20 -0
- package/dist/node_modules/lodash-es/_baseTimes.js +10 -0
- package/dist/node_modules/lodash-es/_baseToString.js +21 -0
- package/dist/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +9 -0
- package/dist/node_modules/lodash-es/_cloneBuffer.js +16 -0
- package/dist/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/dist/node_modules/lodash-es/_cloneRegExp.js +9 -0
- package/dist/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/lodash-es/_copyArray.js +11 -0
- package/dist/node_modules/lodash-es/_copyObject.js +23 -0
- package/dist/node_modules/lodash-es/_copySymbols.js +8 -0
- package/dist/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/dist/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/lodash-es/_defineProperty.js +12 -0
- package/dist/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/dist/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/lodash-es/_getRawTag.js +25 -0
- package/dist/node_modules/lodash-es/_getSymbols.js +17 -0
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +16 -0
- package/dist/node_modules/lodash-es/_getTag.js +34 -0
- package/dist/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/lodash-es/_hashClear.js +8 -0
- package/dist/node_modules/lodash-es/_hashDelete.js +8 -0
- package/dist/node_modules/lodash-es/_hashGet.js +15 -0
- package/dist/node_modules/lodash-es/_hashHas.js +10 -0
- package/dist/node_modules/lodash-es/_hashSet.js +11 -0
- package/dist/node_modules/lodash-es/_initCloneArray.js +13 -0
- package/dist/node_modules/lodash-es/_initCloneByTag.js +43 -0
- package/dist/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/lodash-es/_isIndex.js +10 -0
- package/dist/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/lodash-es/_listCacheClear.js +7 -0
- package/dist/node_modules/lodash-es/_listCacheDelete.js +20 -0
- package/dist/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/lodash-es/_listCacheSet.js +14 -0
- package/dist/node_modules/lodash-es/_mapCacheClear.js +14 -0
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +9 -0
- package/dist/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/lodash-es/_mapCacheSet.js +10 -0
- package/dist/node_modules/lodash-es/_memoizeCapped.js +15 -0
- package/dist/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +12 -0
- package/dist/node_modules/lodash-es/_nodeUtil.js +18 -0
- package/dist/node_modules/lodash-es/_objectToString.js +8 -0
- package/dist/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/lodash-es/_root.js +6 -0
- package/dist/node_modules/lodash-es/_stackClear.js +8 -0
- package/dist/node_modules/lodash-es/_stackDelete.js +8 -0
- package/dist/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/lodash-es/_stackSet.js +22 -0
- package/dist/node_modules/lodash-es/_stringToPath.js +16 -0
- package/dist/node_modules/lodash-es/_toKey.js +11 -0
- package/dist/node_modules/lodash-es/_toSource.js +18 -0
- package/dist/node_modules/lodash-es/clone.js +8 -0
- package/dist/node_modules/lodash-es/cloneDeep.js +8 -0
- package/dist/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/lodash-es/isArguments.js +13 -0
- package/dist/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/lodash-es/isBuffer.js +11 -0
- package/dist/node_modules/lodash-es/isFunction.js +13 -0
- package/dist/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/lodash-es/isMap.js +8 -0
- package/dist/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/lodash-es/isPlainObject.js +22 -0
- package/dist/node_modules/lodash-es/isSet.js +8 -0
- package/dist/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/lodash-es/isTypedArray.js +8 -0
- package/dist/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/lodash-es/memoize.js +22 -0
- package/dist/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/lodash-es/toPath.js +16 -0
- package/dist/node_modules/lodash-es/toString.js +7 -0
- package/dist/node_modules/lodash.debounce/index.js +137 -0
- package/dist/node_modules/memoize-one/dist/memoize-one.esm.js +52 -0
- package/dist/node_modules/mixpanel-browser/dist/mixpanel.module.js +25533 -0
- package/dist/node_modules/object-assign/index.js +73 -0
- package/dist/node_modules/performance-now/lib/performance-now.js +42 -0
- package/dist/node_modules/popper.js/dist/esm/popper.js +1516 -0
- package/dist/node_modules/prefix-style/index.js +29 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +68 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +58 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +451 -0
- package/dist/node_modules/prop-types/index.js +20 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +12 -0
- package/dist/node_modules/prop-types/lib/has.js +11 -0
- package/dist/node_modules/property-expr/index.js +105 -0
- package/dist/node_modules/qrcode.react/lib/esm/index.js +1099 -0
- package/dist/node_modules/raf/index.js +67 -0
- package/dist/node_modules/react-collapse/lib/Collapse.js +285 -0
- package/dist/node_modules/react-collapse/lib/UnmountClosed.js +278 -0
- package/dist/node_modules/react-collapse/lib/index.js +17 -0
- package/dist/node_modules/react-copy-to-clipboard/lib/Component.js +209 -0
- package/dist/node_modules/react-copy-to-clipboard/lib/index.js +14 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/defaultRenderElements.js +85 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/index.js +706 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/styles.js +67 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/index.js +24 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getInnerHeight.js +21 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getInnerWidth.js +21 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getScrollbarWidth.js +44 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/isString.js +19 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/returnFalse.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +325 -0
- package/dist/node_modules/react-day-picker/dist/esm/UI.js +59 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +25 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +282 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +18 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +21 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +34 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +54 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +18 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +40 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +72 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +17 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +30 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +12 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +22 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +41 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +17 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +43 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +39 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +23 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +26 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +62 -0
- package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +145 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +42 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +33 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +33 -0
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +128 -0
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +100 -0
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +42 -0
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +21 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +55 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +53 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +52 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +17 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +61 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +23 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +26 -0
- package/dist/node_modules/react-fast-compare/index.js +63 -0
- package/dist/node_modules/react-helmet/es/Helmet.js +717 -0
- package/dist/node_modules/react-helmet/node_modules/react-fast-compare/index.js +81 -0
- package/dist/node_modules/react-intersection-observer/dist/index.js +178 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js +157 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +98 -0
- package/dist/node_modules/react-is/index.js +17 -0
- package/dist/node_modules/react-otp-input/lib/index.esm.js +168 -0
- package/dist/node_modules/react-portal/es/LegacyPortal.js +91 -0
- package/dist/node_modules/react-portal/es/Portal.js +74 -0
- package/dist/node_modules/react-portal/es/PortalCompat.js +12 -0
- package/dist/node_modules/react-portal/es/utils.js +4 -0
- package/dist/node_modules/react-property/lib/index.js +471 -0
- package/dist/node_modules/react-property/lib/possibleStandardNamesOptimized.js +499 -0
- package/dist/node_modules/react-range/lib/Range.js +592 -0
- package/dist/node_modules/react-range/lib/index.js +39 -0
- package/dist/node_modules/react-range/lib/types.js +19 -0
- package/dist/node_modules/react-range/lib/utils.js +318 -0
- package/dist/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +19 -0
- package/dist/node_modules/react-select/dist/Select-ef7c0426.esm.js +2317 -0
- package/dist/node_modules/react-select/dist/index-641ee5b8.esm.js +1071 -0
- package/dist/node_modules/react-select/dist/react-select.esm.js +20 -0
- package/dist/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +75 -0
- package/dist/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +51 -0
- package/dist/node_modules/react-side-effect/lib/index.js +105 -0
- package/dist/node_modules/react-slick/lib/arrows.js +248 -0
- package/dist/node_modules/react-slick/lib/default-props.js +85 -0
- package/dist/node_modules/react-slick/lib/dots.js +192 -0
- package/dist/node_modules/react-slick/lib/index.js +22 -0
- package/dist/node_modules/react-slick/lib/initial-state.js +48 -0
- package/dist/node_modules/react-slick/lib/inner-slider.js +810 -0
- package/dist/node_modules/react-slick/lib/slider.js +333 -0
- package/dist/node_modules/react-slick/lib/track.js +330 -0
- package/dist/node_modules/react-slick/lib/utils/innerSliderUtils.js +730 -0
- package/dist/node_modules/react-table/dist/react-table.development.js +3684 -0
- package/dist/node_modules/react-table/dist/react-table.production.min.js +1637 -0
- package/dist/node_modules/react-table/index.js +17 -0
- package/dist/node_modules/react-tippy/dist/react-tippy.js +1981 -0
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +495 -0
- package/dist/node_modules/string-convert/camel2hyphen.js +16 -0
- package/dist/node_modules/style-to-js/cjs/index.js +31 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +42 -0
- package/dist/node_modules/style-to-object/cjs/index.js +38 -0
- package/dist/node_modules/stylis/src/Enum.js +20 -0
- package/dist/node_modules/stylis/src/Middleware.js +22 -0
- package/dist/node_modules/stylis/src/Parser.js +157 -0
- package/dist/node_modules/stylis/src/Serializer.js +29 -0
- package/dist/node_modules/stylis/src/Tokenizer.js +160 -0
- package/dist/node_modules/stylis/src/Utility.js +52 -0
- package/dist/node_modules/tiny-case/index.js +33 -0
- package/dist/node_modules/tiny-warning/dist/tiny-warning.esm.js +16 -0
- package/dist/node_modules/to-camel-case/index.js +18 -0
- package/dist/node_modules/to-no-case/index.js +32 -0
- package/dist/node_modules/to-space-case/index.js +18 -0
- package/dist/node_modules/toggle-selection/index.js +42 -0
- package/dist/node_modules/toposort/index.js +79 -0
- package/dist/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +5 -0
- package/dist/node_modules/yup/index.esm.js +1921 -0
- package/dist/routing/RouterWrapper.js +1 -1
- package/dist/styles/global.js +2 -2
- package/dist/utils/copyToClipboard.js +7 -7
- package/dist/utils/delete-redirect-cookie-and-navigate.js +3 -3
- package/dist/utils/moment.js +2 -3
- package/dist/utils/redirect-url.js +2 -2
- package/dist/utils/set-redirect-cookie.js +2 -2
- package/dist/utils/transition.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,1020 @@
|
|
|
1
|
+
const {
|
|
2
|
+
entries,
|
|
3
|
+
setPrototypeOf,
|
|
4
|
+
isFrozen,
|
|
5
|
+
getPrototypeOf,
|
|
6
|
+
getOwnPropertyDescriptor
|
|
7
|
+
} = Object;
|
|
8
|
+
let {
|
|
9
|
+
freeze,
|
|
10
|
+
seal,
|
|
11
|
+
create
|
|
12
|
+
} = Object;
|
|
13
|
+
let {
|
|
14
|
+
apply,
|
|
15
|
+
construct
|
|
16
|
+
} = typeof Reflect !== "undefined" && Reflect;
|
|
17
|
+
if (!freeze) {
|
|
18
|
+
freeze = function freeze2(x) {
|
|
19
|
+
return x;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
if (!seal) {
|
|
23
|
+
seal = function seal2(x) {
|
|
24
|
+
return x;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
if (!apply) {
|
|
28
|
+
apply = function apply2(func, thisArg) {
|
|
29
|
+
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
30
|
+
args[_key - 2] = arguments[_key];
|
|
31
|
+
}
|
|
32
|
+
return func.apply(thisArg, args);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
if (!construct) {
|
|
36
|
+
construct = function construct2(Func) {
|
|
37
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
38
|
+
args[_key2 - 1] = arguments[_key2];
|
|
39
|
+
}
|
|
40
|
+
return new Func(...args);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
const arrayForEach = unapply(Array.prototype.forEach);
|
|
44
|
+
const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
|
|
45
|
+
const arrayPop = unapply(Array.prototype.pop);
|
|
46
|
+
const arrayPush = unapply(Array.prototype.push);
|
|
47
|
+
const arraySplice = unapply(Array.prototype.splice);
|
|
48
|
+
const stringToLowerCase = unapply(String.prototype.toLowerCase);
|
|
49
|
+
const stringToString = unapply(String.prototype.toString);
|
|
50
|
+
const stringMatch = unapply(String.prototype.match);
|
|
51
|
+
const stringReplace = unapply(String.prototype.replace);
|
|
52
|
+
const stringIndexOf = unapply(String.prototype.indexOf);
|
|
53
|
+
const stringTrim = unapply(String.prototype.trim);
|
|
54
|
+
const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
|
|
55
|
+
const regExpTest = unapply(RegExp.prototype.test);
|
|
56
|
+
const typeErrorCreate = unconstruct(TypeError);
|
|
57
|
+
function unapply(func) {
|
|
58
|
+
return function(thisArg) {
|
|
59
|
+
if (thisArg instanceof RegExp) {
|
|
60
|
+
thisArg.lastIndex = 0;
|
|
61
|
+
}
|
|
62
|
+
for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
63
|
+
args[_key3 - 1] = arguments[_key3];
|
|
64
|
+
}
|
|
65
|
+
return apply(func, thisArg, args);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function unconstruct(Func) {
|
|
69
|
+
return function() {
|
|
70
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
71
|
+
args[_key4] = arguments[_key4];
|
|
72
|
+
}
|
|
73
|
+
return construct(Func, args);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function addToSet(set, array) {
|
|
77
|
+
let transformCaseFunc = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;
|
|
78
|
+
if (setPrototypeOf) {
|
|
79
|
+
setPrototypeOf(set, null);
|
|
80
|
+
}
|
|
81
|
+
let l = array.length;
|
|
82
|
+
while (l--) {
|
|
83
|
+
let element = array[l];
|
|
84
|
+
if (typeof element === "string") {
|
|
85
|
+
const lcElement = transformCaseFunc(element);
|
|
86
|
+
if (lcElement !== element) {
|
|
87
|
+
if (!isFrozen(array)) {
|
|
88
|
+
array[l] = lcElement;
|
|
89
|
+
}
|
|
90
|
+
element = lcElement;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
set[element] = true;
|
|
94
|
+
}
|
|
95
|
+
return set;
|
|
96
|
+
}
|
|
97
|
+
function cleanArray(array) {
|
|
98
|
+
for (let index = 0; index < array.length; index++) {
|
|
99
|
+
const isPropertyExist = objectHasOwnProperty(array, index);
|
|
100
|
+
if (!isPropertyExist) {
|
|
101
|
+
array[index] = null;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return array;
|
|
105
|
+
}
|
|
106
|
+
function clone(object) {
|
|
107
|
+
const newObject = create(null);
|
|
108
|
+
for (const [property, value] of entries(object)) {
|
|
109
|
+
const isPropertyExist = objectHasOwnProperty(object, property);
|
|
110
|
+
if (isPropertyExist) {
|
|
111
|
+
if (Array.isArray(value)) {
|
|
112
|
+
newObject[property] = cleanArray(value);
|
|
113
|
+
} else if (value && typeof value === "object" && value.constructor === Object) {
|
|
114
|
+
newObject[property] = clone(value);
|
|
115
|
+
} else {
|
|
116
|
+
newObject[property] = value;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return newObject;
|
|
121
|
+
}
|
|
122
|
+
function lookupGetter(object, prop) {
|
|
123
|
+
while (object !== null) {
|
|
124
|
+
const desc = getOwnPropertyDescriptor(object, prop);
|
|
125
|
+
if (desc) {
|
|
126
|
+
if (desc.get) {
|
|
127
|
+
return unapply(desc.get);
|
|
128
|
+
}
|
|
129
|
+
if (typeof desc.value === "function") {
|
|
130
|
+
return unapply(desc.value);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
object = getPrototypeOf(object);
|
|
134
|
+
}
|
|
135
|
+
function fallbackValue() {
|
|
136
|
+
return null;
|
|
137
|
+
}
|
|
138
|
+
return fallbackValue;
|
|
139
|
+
}
|
|
140
|
+
const html$1 = freeze(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]);
|
|
141
|
+
const svg$1 = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]);
|
|
142
|
+
const svgFilters = freeze(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]);
|
|
143
|
+
const svgDisallowed = freeze(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]);
|
|
144
|
+
const mathMl$1 = freeze(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]);
|
|
145
|
+
const mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]);
|
|
146
|
+
const text = freeze(["#text"]);
|
|
147
|
+
const html = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]);
|
|
148
|
+
const svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]);
|
|
149
|
+
const mathMl = freeze(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]);
|
|
150
|
+
const xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
|
|
151
|
+
const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm);
|
|
152
|
+
const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm);
|
|
153
|
+
const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm);
|
|
154
|
+
const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
|
|
155
|
+
const ARIA_ATTR = seal(/^aria-[\-\w]+$/);
|
|
156
|
+
const IS_ALLOWED_URI = seal(
|
|
157
|
+
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
158
|
+
// eslint-disable-line no-useless-escape
|
|
159
|
+
);
|
|
160
|
+
const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
|
|
161
|
+
const ATTR_WHITESPACE = seal(
|
|
162
|
+
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
163
|
+
// eslint-disable-line no-control-regex
|
|
164
|
+
);
|
|
165
|
+
const DOCTYPE_NAME = seal(/^html$/i);
|
|
166
|
+
const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
167
|
+
var EXPRESSIONS = /* @__PURE__ */ Object.freeze({
|
|
168
|
+
__proto__: null,
|
|
169
|
+
ARIA_ATTR,
|
|
170
|
+
ATTR_WHITESPACE,
|
|
171
|
+
CUSTOM_ELEMENT,
|
|
172
|
+
DATA_ATTR,
|
|
173
|
+
DOCTYPE_NAME,
|
|
174
|
+
ERB_EXPR,
|
|
175
|
+
IS_ALLOWED_URI,
|
|
176
|
+
IS_SCRIPT_OR_DATA,
|
|
177
|
+
MUSTACHE_EXPR,
|
|
178
|
+
TMPLIT_EXPR
|
|
179
|
+
});
|
|
180
|
+
const NODE_TYPE = {
|
|
181
|
+
element: 1,
|
|
182
|
+
text: 3,
|
|
183
|
+
// Deprecated
|
|
184
|
+
progressingInstruction: 7,
|
|
185
|
+
comment: 8,
|
|
186
|
+
document: 9
|
|
187
|
+
};
|
|
188
|
+
const getGlobal = function getGlobal2() {
|
|
189
|
+
return typeof window === "undefined" ? null : window;
|
|
190
|
+
};
|
|
191
|
+
const _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTypes, purifyHostElement) {
|
|
192
|
+
if (typeof trustedTypes !== "object" || typeof trustedTypes.createPolicy !== "function") {
|
|
193
|
+
return null;
|
|
194
|
+
}
|
|
195
|
+
let suffix = null;
|
|
196
|
+
const ATTR_NAME = "data-tt-policy-suffix";
|
|
197
|
+
if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {
|
|
198
|
+
suffix = purifyHostElement.getAttribute(ATTR_NAME);
|
|
199
|
+
}
|
|
200
|
+
const policyName = "dompurify" + (suffix ? "#" + suffix : "");
|
|
201
|
+
try {
|
|
202
|
+
return trustedTypes.createPolicy(policyName, {
|
|
203
|
+
createHTML(html2) {
|
|
204
|
+
return html2;
|
|
205
|
+
},
|
|
206
|
+
createScriptURL(scriptUrl) {
|
|
207
|
+
return scriptUrl;
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
} catch (_) {
|
|
211
|
+
console.warn("TrustedTypes policy " + policyName + " could not be created.");
|
|
212
|
+
return null;
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
const _createHooksMap = function _createHooksMap2() {
|
|
216
|
+
return {
|
|
217
|
+
afterSanitizeAttributes: [],
|
|
218
|
+
afterSanitizeElements: [],
|
|
219
|
+
afterSanitizeShadowDOM: [],
|
|
220
|
+
beforeSanitizeAttributes: [],
|
|
221
|
+
beforeSanitizeElements: [],
|
|
222
|
+
beforeSanitizeShadowDOM: [],
|
|
223
|
+
uponSanitizeAttribute: [],
|
|
224
|
+
uponSanitizeElement: [],
|
|
225
|
+
uponSanitizeShadowNode: []
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
function createDOMPurify() {
|
|
229
|
+
let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
230
|
+
const DOMPurify = (root) => createDOMPurify(root);
|
|
231
|
+
DOMPurify.version = "3.3.3";
|
|
232
|
+
DOMPurify.removed = [];
|
|
233
|
+
if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
|
|
234
|
+
DOMPurify.isSupported = false;
|
|
235
|
+
return DOMPurify;
|
|
236
|
+
}
|
|
237
|
+
let {
|
|
238
|
+
document
|
|
239
|
+
} = window2;
|
|
240
|
+
const originalDocument = document;
|
|
241
|
+
const currentScript = originalDocument.currentScript;
|
|
242
|
+
const {
|
|
243
|
+
DocumentFragment,
|
|
244
|
+
HTMLTemplateElement,
|
|
245
|
+
Node,
|
|
246
|
+
Element,
|
|
247
|
+
NodeFilter,
|
|
248
|
+
NamedNodeMap = window2.NamedNodeMap || window2.MozNamedAttrMap,
|
|
249
|
+
HTMLFormElement,
|
|
250
|
+
DOMParser,
|
|
251
|
+
trustedTypes
|
|
252
|
+
} = window2;
|
|
253
|
+
const ElementPrototype = Element.prototype;
|
|
254
|
+
const cloneNode = lookupGetter(ElementPrototype, "cloneNode");
|
|
255
|
+
const remove = lookupGetter(ElementPrototype, "remove");
|
|
256
|
+
const getNextSibling = lookupGetter(ElementPrototype, "nextSibling");
|
|
257
|
+
const getChildNodes = lookupGetter(ElementPrototype, "childNodes");
|
|
258
|
+
const getParentNode = lookupGetter(ElementPrototype, "parentNode");
|
|
259
|
+
if (typeof HTMLTemplateElement === "function") {
|
|
260
|
+
const template = document.createElement("template");
|
|
261
|
+
if (template.content && template.content.ownerDocument) {
|
|
262
|
+
document = template.content.ownerDocument;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
let trustedTypesPolicy;
|
|
266
|
+
let emptyHTML = "";
|
|
267
|
+
const {
|
|
268
|
+
implementation,
|
|
269
|
+
createNodeIterator,
|
|
270
|
+
createDocumentFragment,
|
|
271
|
+
getElementsByTagName
|
|
272
|
+
} = document;
|
|
273
|
+
const {
|
|
274
|
+
importNode
|
|
275
|
+
} = originalDocument;
|
|
276
|
+
let hooks = _createHooksMap();
|
|
277
|
+
DOMPurify.isSupported = typeof entries === "function" && typeof getParentNode === "function" && implementation && implementation.createHTMLDocument !== void 0;
|
|
278
|
+
const {
|
|
279
|
+
MUSTACHE_EXPR: MUSTACHE_EXPR2,
|
|
280
|
+
ERB_EXPR: ERB_EXPR2,
|
|
281
|
+
TMPLIT_EXPR: TMPLIT_EXPR2,
|
|
282
|
+
DATA_ATTR: DATA_ATTR2,
|
|
283
|
+
ARIA_ATTR: ARIA_ATTR2,
|
|
284
|
+
IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA2,
|
|
285
|
+
ATTR_WHITESPACE: ATTR_WHITESPACE2,
|
|
286
|
+
CUSTOM_ELEMENT: CUSTOM_ELEMENT2
|
|
287
|
+
} = EXPRESSIONS;
|
|
288
|
+
let {
|
|
289
|
+
IS_ALLOWED_URI: IS_ALLOWED_URI$1
|
|
290
|
+
} = EXPRESSIONS;
|
|
291
|
+
let ALLOWED_TAGS = null;
|
|
292
|
+
const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
|
|
293
|
+
let ALLOWED_ATTR = null;
|
|
294
|
+
const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
|
|
295
|
+
let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {
|
|
296
|
+
tagNameCheck: {
|
|
297
|
+
writable: true,
|
|
298
|
+
configurable: false,
|
|
299
|
+
enumerable: true,
|
|
300
|
+
value: null
|
|
301
|
+
},
|
|
302
|
+
attributeNameCheck: {
|
|
303
|
+
writable: true,
|
|
304
|
+
configurable: false,
|
|
305
|
+
enumerable: true,
|
|
306
|
+
value: null
|
|
307
|
+
},
|
|
308
|
+
allowCustomizedBuiltInElements: {
|
|
309
|
+
writable: true,
|
|
310
|
+
configurable: false,
|
|
311
|
+
enumerable: true,
|
|
312
|
+
value: false
|
|
313
|
+
}
|
|
314
|
+
}));
|
|
315
|
+
let FORBID_TAGS = null;
|
|
316
|
+
let FORBID_ATTR = null;
|
|
317
|
+
const EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {
|
|
318
|
+
tagCheck: {
|
|
319
|
+
writable: true,
|
|
320
|
+
configurable: false,
|
|
321
|
+
enumerable: true,
|
|
322
|
+
value: null
|
|
323
|
+
},
|
|
324
|
+
attributeCheck: {
|
|
325
|
+
writable: true,
|
|
326
|
+
configurable: false,
|
|
327
|
+
enumerable: true,
|
|
328
|
+
value: null
|
|
329
|
+
}
|
|
330
|
+
}));
|
|
331
|
+
let ALLOW_ARIA_ATTR = true;
|
|
332
|
+
let ALLOW_DATA_ATTR = true;
|
|
333
|
+
let ALLOW_UNKNOWN_PROTOCOLS = false;
|
|
334
|
+
let ALLOW_SELF_CLOSE_IN_ATTR = true;
|
|
335
|
+
let SAFE_FOR_TEMPLATES = false;
|
|
336
|
+
let SAFE_FOR_XML = true;
|
|
337
|
+
let WHOLE_DOCUMENT = false;
|
|
338
|
+
let SET_CONFIG = false;
|
|
339
|
+
let FORCE_BODY = false;
|
|
340
|
+
let RETURN_DOM = false;
|
|
341
|
+
let RETURN_DOM_FRAGMENT = false;
|
|
342
|
+
let RETURN_TRUSTED_TYPE = false;
|
|
343
|
+
let SANITIZE_DOM = true;
|
|
344
|
+
let SANITIZE_NAMED_PROPS = false;
|
|
345
|
+
const SANITIZE_NAMED_PROPS_PREFIX = "user-content-";
|
|
346
|
+
let KEEP_CONTENT = true;
|
|
347
|
+
let IN_PLACE = false;
|
|
348
|
+
let USE_PROFILES = {};
|
|
349
|
+
let FORBID_CONTENTS = null;
|
|
350
|
+
const DEFAULT_FORBID_CONTENTS = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
351
|
+
let DATA_URI_TAGS = null;
|
|
352
|
+
const DEFAULT_DATA_URI_TAGS = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
353
|
+
let URI_SAFE_ATTRIBUTES = null;
|
|
354
|
+
const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]);
|
|
355
|
+
const MATHML_NAMESPACE = "http://www.w3.org/1998/Math/MathML";
|
|
356
|
+
const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
|
|
357
|
+
const HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
|
|
358
|
+
let NAMESPACE = HTML_NAMESPACE;
|
|
359
|
+
let IS_EMPTY_INPUT = false;
|
|
360
|
+
let ALLOWED_NAMESPACES = null;
|
|
361
|
+
const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
|
|
362
|
+
let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]);
|
|
363
|
+
let HTML_INTEGRATION_POINTS = addToSet({}, ["annotation-xml"]);
|
|
364
|
+
const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ["title", "style", "font", "a", "script"]);
|
|
365
|
+
let PARSER_MEDIA_TYPE = null;
|
|
366
|
+
const SUPPORTED_PARSER_MEDIA_TYPES = ["application/xhtml+xml", "text/html"];
|
|
367
|
+
const DEFAULT_PARSER_MEDIA_TYPE = "text/html";
|
|
368
|
+
let transformCaseFunc = null;
|
|
369
|
+
let CONFIG = null;
|
|
370
|
+
const formElement = document.createElement("form");
|
|
371
|
+
const isRegexOrFunction = function isRegexOrFunction2(testValue) {
|
|
372
|
+
return testValue instanceof RegExp || testValue instanceof Function;
|
|
373
|
+
};
|
|
374
|
+
const _parseConfig = function _parseConfig2() {
|
|
375
|
+
let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
376
|
+
if (CONFIG && CONFIG === cfg) {
|
|
377
|
+
return;
|
|
378
|
+
}
|
|
379
|
+
if (!cfg || typeof cfg !== "object") {
|
|
380
|
+
cfg = {};
|
|
381
|
+
}
|
|
382
|
+
cfg = clone(cfg);
|
|
383
|
+
PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes
|
|
384
|
+
SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
|
|
385
|
+
transformCaseFunc = PARSER_MEDIA_TYPE === "application/xhtml+xml" ? stringToString : stringToLowerCase;
|
|
386
|
+
ALLOWED_TAGS = objectHasOwnProperty(cfg, "ALLOWED_TAGS") ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
|
|
387
|
+
ALLOWED_ATTR = objectHasOwnProperty(cfg, "ALLOWED_ATTR") ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
|
|
388
|
+
ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, "ALLOWED_NAMESPACES") ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
|
|
389
|
+
URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, "ADD_URI_SAFE_ATTR") ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
|
|
390
|
+
DATA_URI_TAGS = objectHasOwnProperty(cfg, "ADD_DATA_URI_TAGS") ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
|
|
391
|
+
FORBID_CONTENTS = objectHasOwnProperty(cfg, "FORBID_CONTENTS") ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
|
392
|
+
FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
|
|
393
|
+
FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
|
|
394
|
+
USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES : false;
|
|
395
|
+
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
|
|
396
|
+
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
|
|
397
|
+
ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false;
|
|
398
|
+
ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false;
|
|
399
|
+
SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false;
|
|
400
|
+
SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false;
|
|
401
|
+
WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false;
|
|
402
|
+
RETURN_DOM = cfg.RETURN_DOM || false;
|
|
403
|
+
RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false;
|
|
404
|
+
RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false;
|
|
405
|
+
FORCE_BODY = cfg.FORCE_BODY || false;
|
|
406
|
+
SANITIZE_DOM = cfg.SANITIZE_DOM !== false;
|
|
407
|
+
SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false;
|
|
408
|
+
KEEP_CONTENT = cfg.KEEP_CONTENT !== false;
|
|
409
|
+
IN_PLACE = cfg.IN_PLACE || false;
|
|
410
|
+
IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;
|
|
411
|
+
NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
|
|
412
|
+
MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
|
|
413
|
+
HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
|
|
414
|
+
CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};
|
|
415
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
|
|
416
|
+
CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
|
|
417
|
+
}
|
|
418
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {
|
|
419
|
+
CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;
|
|
420
|
+
}
|
|
421
|
+
if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === "boolean") {
|
|
422
|
+
CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;
|
|
423
|
+
}
|
|
424
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
425
|
+
ALLOW_DATA_ATTR = false;
|
|
426
|
+
}
|
|
427
|
+
if (RETURN_DOM_FRAGMENT) {
|
|
428
|
+
RETURN_DOM = true;
|
|
429
|
+
}
|
|
430
|
+
if (USE_PROFILES) {
|
|
431
|
+
ALLOWED_TAGS = addToSet({}, text);
|
|
432
|
+
ALLOWED_ATTR = create(null);
|
|
433
|
+
if (USE_PROFILES.html === true) {
|
|
434
|
+
addToSet(ALLOWED_TAGS, html$1);
|
|
435
|
+
addToSet(ALLOWED_ATTR, html);
|
|
436
|
+
}
|
|
437
|
+
if (USE_PROFILES.svg === true) {
|
|
438
|
+
addToSet(ALLOWED_TAGS, svg$1);
|
|
439
|
+
addToSet(ALLOWED_ATTR, svg);
|
|
440
|
+
addToSet(ALLOWED_ATTR, xml);
|
|
441
|
+
}
|
|
442
|
+
if (USE_PROFILES.svgFilters === true) {
|
|
443
|
+
addToSet(ALLOWED_TAGS, svgFilters);
|
|
444
|
+
addToSet(ALLOWED_ATTR, svg);
|
|
445
|
+
addToSet(ALLOWED_ATTR, xml);
|
|
446
|
+
}
|
|
447
|
+
if (USE_PROFILES.mathMl === true) {
|
|
448
|
+
addToSet(ALLOWED_TAGS, mathMl$1);
|
|
449
|
+
addToSet(ALLOWED_ATTR, mathMl);
|
|
450
|
+
addToSet(ALLOWED_ATTR, xml);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
if (!objectHasOwnProperty(cfg, "ADD_TAGS")) {
|
|
454
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = null;
|
|
455
|
+
}
|
|
456
|
+
if (!objectHasOwnProperty(cfg, "ADD_ATTR")) {
|
|
457
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = null;
|
|
458
|
+
}
|
|
459
|
+
if (cfg.ADD_TAGS) {
|
|
460
|
+
if (typeof cfg.ADD_TAGS === "function") {
|
|
461
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
|
|
462
|
+
} else {
|
|
463
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
464
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
465
|
+
}
|
|
466
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
if (cfg.ADD_ATTR) {
|
|
470
|
+
if (typeof cfg.ADD_ATTR === "function") {
|
|
471
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
|
|
472
|
+
} else {
|
|
473
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
474
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
475
|
+
}
|
|
476
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
480
|
+
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
481
|
+
}
|
|
482
|
+
if (cfg.FORBID_CONTENTS) {
|
|
483
|
+
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
|
|
484
|
+
FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
|
485
|
+
}
|
|
486
|
+
addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
|
|
487
|
+
}
|
|
488
|
+
if (cfg.ADD_FORBID_CONTENTS) {
|
|
489
|
+
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
|
|
490
|
+
FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
|
491
|
+
}
|
|
492
|
+
addToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);
|
|
493
|
+
}
|
|
494
|
+
if (KEEP_CONTENT) {
|
|
495
|
+
ALLOWED_TAGS["#text"] = true;
|
|
496
|
+
}
|
|
497
|
+
if (WHOLE_DOCUMENT) {
|
|
498
|
+
addToSet(ALLOWED_TAGS, ["html", "head", "body"]);
|
|
499
|
+
}
|
|
500
|
+
if (ALLOWED_TAGS.table) {
|
|
501
|
+
addToSet(ALLOWED_TAGS, ["tbody"]);
|
|
502
|
+
delete FORBID_TAGS.tbody;
|
|
503
|
+
}
|
|
504
|
+
if (cfg.TRUSTED_TYPES_POLICY) {
|
|
505
|
+
if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== "function") {
|
|
506
|
+
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
507
|
+
}
|
|
508
|
+
if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== "function") {
|
|
509
|
+
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
510
|
+
}
|
|
511
|
+
trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
|
|
512
|
+
emptyHTML = trustedTypesPolicy.createHTML("");
|
|
513
|
+
} else {
|
|
514
|
+
if (trustedTypesPolicy === void 0) {
|
|
515
|
+
trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
|
|
516
|
+
}
|
|
517
|
+
if (trustedTypesPolicy !== null && typeof emptyHTML === "string") {
|
|
518
|
+
emptyHTML = trustedTypesPolicy.createHTML("");
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
if (freeze) {
|
|
522
|
+
freeze(cfg);
|
|
523
|
+
}
|
|
524
|
+
CONFIG = cfg;
|
|
525
|
+
};
|
|
526
|
+
const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
|
|
527
|
+
const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
|
|
528
|
+
const _checkValidNamespace = function _checkValidNamespace2(element) {
|
|
529
|
+
let parent = getParentNode(element);
|
|
530
|
+
if (!parent || !parent.tagName) {
|
|
531
|
+
parent = {
|
|
532
|
+
namespaceURI: NAMESPACE,
|
|
533
|
+
tagName: "template"
|
|
534
|
+
};
|
|
535
|
+
}
|
|
536
|
+
const tagName = stringToLowerCase(element.tagName);
|
|
537
|
+
const parentTagName = stringToLowerCase(parent.tagName);
|
|
538
|
+
if (!ALLOWED_NAMESPACES[element.namespaceURI]) {
|
|
539
|
+
return false;
|
|
540
|
+
}
|
|
541
|
+
if (element.namespaceURI === SVG_NAMESPACE) {
|
|
542
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
543
|
+
return tagName === "svg";
|
|
544
|
+
}
|
|
545
|
+
if (parent.namespaceURI === MATHML_NAMESPACE) {
|
|
546
|
+
return tagName === "svg" && (parentTagName === "annotation-xml" || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
|
|
547
|
+
}
|
|
548
|
+
return Boolean(ALL_SVG_TAGS[tagName]);
|
|
549
|
+
}
|
|
550
|
+
if (element.namespaceURI === MATHML_NAMESPACE) {
|
|
551
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
552
|
+
return tagName === "math";
|
|
553
|
+
}
|
|
554
|
+
if (parent.namespaceURI === SVG_NAMESPACE) {
|
|
555
|
+
return tagName === "math" && HTML_INTEGRATION_POINTS[parentTagName];
|
|
556
|
+
}
|
|
557
|
+
return Boolean(ALL_MATHML_TAGS[tagName]);
|
|
558
|
+
}
|
|
559
|
+
if (element.namespaceURI === HTML_NAMESPACE) {
|
|
560
|
+
if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
|
|
561
|
+
return false;
|
|
562
|
+
}
|
|
563
|
+
if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
|
|
564
|
+
return false;
|
|
565
|
+
}
|
|
566
|
+
return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
|
|
567
|
+
}
|
|
568
|
+
if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && ALLOWED_NAMESPACES[element.namespaceURI]) {
|
|
569
|
+
return true;
|
|
570
|
+
}
|
|
571
|
+
return false;
|
|
572
|
+
};
|
|
573
|
+
const _forceRemove = function _forceRemove2(node) {
|
|
574
|
+
arrayPush(DOMPurify.removed, {
|
|
575
|
+
element: node
|
|
576
|
+
});
|
|
577
|
+
try {
|
|
578
|
+
getParentNode(node).removeChild(node);
|
|
579
|
+
} catch (_) {
|
|
580
|
+
remove(node);
|
|
581
|
+
}
|
|
582
|
+
};
|
|
583
|
+
const _removeAttribute = function _removeAttribute2(name, element) {
|
|
584
|
+
try {
|
|
585
|
+
arrayPush(DOMPurify.removed, {
|
|
586
|
+
attribute: element.getAttributeNode(name),
|
|
587
|
+
from: element
|
|
588
|
+
});
|
|
589
|
+
} catch (_) {
|
|
590
|
+
arrayPush(DOMPurify.removed, {
|
|
591
|
+
attribute: null,
|
|
592
|
+
from: element
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
element.removeAttribute(name);
|
|
596
|
+
if (name === "is") {
|
|
597
|
+
if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
|
|
598
|
+
try {
|
|
599
|
+
_forceRemove(element);
|
|
600
|
+
} catch (_) {
|
|
601
|
+
}
|
|
602
|
+
} else {
|
|
603
|
+
try {
|
|
604
|
+
element.setAttribute(name, "");
|
|
605
|
+
} catch (_) {
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
};
|
|
610
|
+
const _initDocument = function _initDocument2(dirty) {
|
|
611
|
+
let doc = null;
|
|
612
|
+
let leadingWhitespace = null;
|
|
613
|
+
if (FORCE_BODY) {
|
|
614
|
+
dirty = "<remove></remove>" + dirty;
|
|
615
|
+
} else {
|
|
616
|
+
const matches = stringMatch(dirty, /^[\r\n\t ]+/);
|
|
617
|
+
leadingWhitespace = matches && matches[0];
|
|
618
|
+
}
|
|
619
|
+
if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && NAMESPACE === HTML_NAMESPACE) {
|
|
620
|
+
dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + "</body></html>";
|
|
621
|
+
}
|
|
622
|
+
const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
|
|
623
|
+
if (NAMESPACE === HTML_NAMESPACE) {
|
|
624
|
+
try {
|
|
625
|
+
doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
|
|
626
|
+
} catch (_) {
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
if (!doc || !doc.documentElement) {
|
|
630
|
+
doc = implementation.createDocument(NAMESPACE, "template", null);
|
|
631
|
+
try {
|
|
632
|
+
doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
|
|
633
|
+
} catch (_) {
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
const body = doc.body || doc.documentElement;
|
|
637
|
+
if (dirty && leadingWhitespace) {
|
|
638
|
+
body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);
|
|
639
|
+
}
|
|
640
|
+
if (NAMESPACE === HTML_NAMESPACE) {
|
|
641
|
+
return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? "html" : "body")[0];
|
|
642
|
+
}
|
|
643
|
+
return WHOLE_DOCUMENT ? doc.documentElement : body;
|
|
644
|
+
};
|
|
645
|
+
const _createNodeIterator = function _createNodeIterator2(root) {
|
|
646
|
+
return createNodeIterator.call(
|
|
647
|
+
root.ownerDocument || root,
|
|
648
|
+
root,
|
|
649
|
+
// eslint-disable-next-line no-bitwise
|
|
650
|
+
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION,
|
|
651
|
+
null
|
|
652
|
+
);
|
|
653
|
+
};
|
|
654
|
+
const _isClobbered = function _isClobbered2(element) {
|
|
655
|
+
return element instanceof HTMLFormElement && (typeof element.nodeName !== "string" || typeof element.textContent !== "string" || typeof element.removeChild !== "function" || !(element.attributes instanceof NamedNodeMap) || typeof element.removeAttribute !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function");
|
|
656
|
+
};
|
|
657
|
+
const _isNode = function _isNode2(value) {
|
|
658
|
+
return typeof Node === "function" && value instanceof Node;
|
|
659
|
+
};
|
|
660
|
+
function _executeHooks(hooks2, currentNode, data) {
|
|
661
|
+
arrayForEach(hooks2, (hook) => {
|
|
662
|
+
hook.call(DOMPurify, currentNode, data, CONFIG);
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
const _sanitizeElements = function _sanitizeElements2(currentNode) {
|
|
666
|
+
let content = null;
|
|
667
|
+
_executeHooks(hooks.beforeSanitizeElements, currentNode, null);
|
|
668
|
+
if (_isClobbered(currentNode)) {
|
|
669
|
+
_forceRemove(currentNode);
|
|
670
|
+
return true;
|
|
671
|
+
}
|
|
672
|
+
const tagName = transformCaseFunc(currentNode.nodeName);
|
|
673
|
+
_executeHooks(hooks.uponSanitizeElement, currentNode, {
|
|
674
|
+
tagName,
|
|
675
|
+
allowedTags: ALLOWED_TAGS
|
|
676
|
+
});
|
|
677
|
+
if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
|
678
|
+
_forceRemove(currentNode);
|
|
679
|
+
return true;
|
|
680
|
+
}
|
|
681
|
+
if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
|
|
682
|
+
_forceRemove(currentNode);
|
|
683
|
+
return true;
|
|
684
|
+
}
|
|
685
|
+
if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, currentNode.data)) {
|
|
686
|
+
_forceRemove(currentNode);
|
|
687
|
+
return true;
|
|
688
|
+
}
|
|
689
|
+
if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName])) {
|
|
690
|
+
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
691
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
692
|
+
return false;
|
|
693
|
+
}
|
|
694
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
|
|
695
|
+
return false;
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
|
|
699
|
+
const parentNode = getParentNode(currentNode) || currentNode.parentNode;
|
|
700
|
+
const childNodes = getChildNodes(currentNode) || currentNode.childNodes;
|
|
701
|
+
if (childNodes && parentNode) {
|
|
702
|
+
const childCount = childNodes.length;
|
|
703
|
+
for (let i = childCount - 1; i >= 0; --i) {
|
|
704
|
+
const childClone = cloneNode(childNodes[i], true);
|
|
705
|
+
childClone.__removalCount = (currentNode.__removalCount || 0) + 1;
|
|
706
|
+
parentNode.insertBefore(childClone, getNextSibling(currentNode));
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
_forceRemove(currentNode);
|
|
711
|
+
return true;
|
|
712
|
+
}
|
|
713
|
+
if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {
|
|
714
|
+
_forceRemove(currentNode);
|
|
715
|
+
return true;
|
|
716
|
+
}
|
|
717
|
+
if ((tagName === "noscript" || tagName === "noembed" || tagName === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, currentNode.innerHTML)) {
|
|
718
|
+
_forceRemove(currentNode);
|
|
719
|
+
return true;
|
|
720
|
+
}
|
|
721
|
+
if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
|
|
722
|
+
content = currentNode.textContent;
|
|
723
|
+
arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
|
|
724
|
+
content = stringReplace(content, expr, " ");
|
|
725
|
+
});
|
|
726
|
+
if (currentNode.textContent !== content) {
|
|
727
|
+
arrayPush(DOMPurify.removed, {
|
|
728
|
+
element: currentNode.cloneNode()
|
|
729
|
+
});
|
|
730
|
+
currentNode.textContent = content;
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
_executeHooks(hooks.afterSanitizeElements, currentNode, null);
|
|
734
|
+
return false;
|
|
735
|
+
};
|
|
736
|
+
const _isValidAttribute = function _isValidAttribute2(lcTag, lcName, value) {
|
|
737
|
+
if (FORBID_ATTR[lcName]) {
|
|
738
|
+
return false;
|
|
739
|
+
}
|
|
740
|
+
if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value in document || value in formElement)) {
|
|
741
|
+
return false;
|
|
742
|
+
}
|
|
743
|
+
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR2, lcName)) ;
|
|
744
|
+
else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR2, lcName)) ;
|
|
745
|
+
else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ;
|
|
746
|
+
else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
747
|
+
if (
|
|
748
|
+
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
749
|
+
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
750
|
+
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
751
|
+
_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName, lcTag)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
752
|
+
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
753
|
+
lcName === "is" && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))
|
|
754
|
+
) ;
|
|
755
|
+
else {
|
|
756
|
+
return false;
|
|
757
|
+
}
|
|
758
|
+
} else if (URI_SAFE_ATTRIBUTES[lcName]) ;
|
|
759
|
+
else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE2, ""))) ;
|
|
760
|
+
else if ((lcName === "src" || lcName === "xlink:href" || lcName === "href") && lcTag !== "script" && stringIndexOf(value, "data:") === 0 && DATA_URI_TAGS[lcTag]) ;
|
|
761
|
+
else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA2, stringReplace(value, ATTR_WHITESPACE2, ""))) ;
|
|
762
|
+
else if (value) {
|
|
763
|
+
return false;
|
|
764
|
+
} else ;
|
|
765
|
+
return true;
|
|
766
|
+
};
|
|
767
|
+
const _isBasicCustomElement = function _isBasicCustomElement2(tagName) {
|
|
768
|
+
return tagName !== "annotation-xml" && stringMatch(tagName, CUSTOM_ELEMENT2);
|
|
769
|
+
};
|
|
770
|
+
const _sanitizeAttributes = function _sanitizeAttributes2(currentNode) {
|
|
771
|
+
_executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
|
|
772
|
+
const {
|
|
773
|
+
attributes
|
|
774
|
+
} = currentNode;
|
|
775
|
+
if (!attributes || _isClobbered(currentNode)) {
|
|
776
|
+
return;
|
|
777
|
+
}
|
|
778
|
+
const hookEvent = {
|
|
779
|
+
attrName: "",
|
|
780
|
+
attrValue: "",
|
|
781
|
+
keepAttr: true,
|
|
782
|
+
allowedAttributes: ALLOWED_ATTR,
|
|
783
|
+
forceKeepAttr: void 0
|
|
784
|
+
};
|
|
785
|
+
let l = attributes.length;
|
|
786
|
+
while (l--) {
|
|
787
|
+
const attr = attributes[l];
|
|
788
|
+
const {
|
|
789
|
+
name,
|
|
790
|
+
namespaceURI,
|
|
791
|
+
value: attrValue
|
|
792
|
+
} = attr;
|
|
793
|
+
const lcName = transformCaseFunc(name);
|
|
794
|
+
const initValue = attrValue;
|
|
795
|
+
let value = name === "value" ? initValue : stringTrim(initValue);
|
|
796
|
+
hookEvent.attrName = lcName;
|
|
797
|
+
hookEvent.attrValue = value;
|
|
798
|
+
hookEvent.keepAttr = true;
|
|
799
|
+
hookEvent.forceKeepAttr = void 0;
|
|
800
|
+
_executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
|
|
801
|
+
value = hookEvent.attrValue;
|
|
802
|
+
if (SANITIZE_NAMED_PROPS && (lcName === "id" || lcName === "name")) {
|
|
803
|
+
_removeAttribute(name, currentNode);
|
|
804
|
+
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
805
|
+
}
|
|
806
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
|
|
807
|
+
_removeAttribute(name, currentNode);
|
|
808
|
+
continue;
|
|
809
|
+
}
|
|
810
|
+
if (lcName === "attributename" && stringMatch(value, "href")) {
|
|
811
|
+
_removeAttribute(name, currentNode);
|
|
812
|
+
continue;
|
|
813
|
+
}
|
|
814
|
+
if (hookEvent.forceKeepAttr) {
|
|
815
|
+
continue;
|
|
816
|
+
}
|
|
817
|
+
if (!hookEvent.keepAttr) {
|
|
818
|
+
_removeAttribute(name, currentNode);
|
|
819
|
+
continue;
|
|
820
|
+
}
|
|
821
|
+
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
|
|
822
|
+
_removeAttribute(name, currentNode);
|
|
823
|
+
continue;
|
|
824
|
+
}
|
|
825
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
826
|
+
arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
|
|
827
|
+
value = stringReplace(value, expr, " ");
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
831
|
+
if (!_isValidAttribute(lcTag, lcName, value)) {
|
|
832
|
+
_removeAttribute(name, currentNode);
|
|
833
|
+
continue;
|
|
834
|
+
}
|
|
835
|
+
if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function") {
|
|
836
|
+
if (namespaceURI) ;
|
|
837
|
+
else {
|
|
838
|
+
switch (trustedTypes.getAttributeType(lcTag, lcName)) {
|
|
839
|
+
case "TrustedHTML": {
|
|
840
|
+
value = trustedTypesPolicy.createHTML(value);
|
|
841
|
+
break;
|
|
842
|
+
}
|
|
843
|
+
case "TrustedScriptURL": {
|
|
844
|
+
value = trustedTypesPolicy.createScriptURL(value);
|
|
845
|
+
break;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
if (value !== initValue) {
|
|
851
|
+
try {
|
|
852
|
+
if (namespaceURI) {
|
|
853
|
+
currentNode.setAttributeNS(namespaceURI, name, value);
|
|
854
|
+
} else {
|
|
855
|
+
currentNode.setAttribute(name, value);
|
|
856
|
+
}
|
|
857
|
+
if (_isClobbered(currentNode)) {
|
|
858
|
+
_forceRemove(currentNode);
|
|
859
|
+
} else {
|
|
860
|
+
arrayPop(DOMPurify.removed);
|
|
861
|
+
}
|
|
862
|
+
} catch (_) {
|
|
863
|
+
_removeAttribute(name, currentNode);
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
|
868
|
+
};
|
|
869
|
+
const _sanitizeShadowDOM = function _sanitizeShadowDOM2(fragment) {
|
|
870
|
+
let shadowNode = null;
|
|
871
|
+
const shadowIterator = _createNodeIterator(fragment);
|
|
872
|
+
_executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
|
|
873
|
+
while (shadowNode = shadowIterator.nextNode()) {
|
|
874
|
+
_executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
|
|
875
|
+
_sanitizeElements(shadowNode);
|
|
876
|
+
_sanitizeAttributes(shadowNode);
|
|
877
|
+
if (shadowNode.content instanceof DocumentFragment) {
|
|
878
|
+
_sanitizeShadowDOM2(shadowNode.content);
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
_executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
|
|
882
|
+
};
|
|
883
|
+
DOMPurify.sanitize = function(dirty) {
|
|
884
|
+
let cfg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
885
|
+
let body = null;
|
|
886
|
+
let importedNode = null;
|
|
887
|
+
let currentNode = null;
|
|
888
|
+
let returnNode = null;
|
|
889
|
+
IS_EMPTY_INPUT = !dirty;
|
|
890
|
+
if (IS_EMPTY_INPUT) {
|
|
891
|
+
dirty = "<!-->";
|
|
892
|
+
}
|
|
893
|
+
if (typeof dirty !== "string" && !_isNode(dirty)) {
|
|
894
|
+
if (typeof dirty.toString === "function") {
|
|
895
|
+
dirty = dirty.toString();
|
|
896
|
+
if (typeof dirty !== "string") {
|
|
897
|
+
throw typeErrorCreate("dirty is not a string, aborting");
|
|
898
|
+
}
|
|
899
|
+
} else {
|
|
900
|
+
throw typeErrorCreate("toString is not a function");
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
if (!DOMPurify.isSupported) {
|
|
904
|
+
return dirty;
|
|
905
|
+
}
|
|
906
|
+
if (!SET_CONFIG) {
|
|
907
|
+
_parseConfig(cfg);
|
|
908
|
+
}
|
|
909
|
+
DOMPurify.removed = [];
|
|
910
|
+
if (typeof dirty === "string") {
|
|
911
|
+
IN_PLACE = false;
|
|
912
|
+
}
|
|
913
|
+
if (IN_PLACE) {
|
|
914
|
+
if (dirty.nodeName) {
|
|
915
|
+
const tagName = transformCaseFunc(dirty.nodeName);
|
|
916
|
+
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
917
|
+
throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
} else if (dirty instanceof Node) {
|
|
921
|
+
body = _initDocument("<!---->");
|
|
922
|
+
importedNode = body.ownerDocument.importNode(dirty, true);
|
|
923
|
+
if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === "BODY") {
|
|
924
|
+
body = importedNode;
|
|
925
|
+
} else if (importedNode.nodeName === "HTML") {
|
|
926
|
+
body = importedNode;
|
|
927
|
+
} else {
|
|
928
|
+
body.appendChild(importedNode);
|
|
929
|
+
}
|
|
930
|
+
} else {
|
|
931
|
+
if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && // eslint-disable-next-line unicorn/prefer-includes
|
|
932
|
+
dirty.indexOf("<") === -1) {
|
|
933
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;
|
|
934
|
+
}
|
|
935
|
+
body = _initDocument(dirty);
|
|
936
|
+
if (!body) {
|
|
937
|
+
return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : "";
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
if (body && FORCE_BODY) {
|
|
941
|
+
_forceRemove(body.firstChild);
|
|
942
|
+
}
|
|
943
|
+
const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);
|
|
944
|
+
while (currentNode = nodeIterator.nextNode()) {
|
|
945
|
+
_sanitizeElements(currentNode);
|
|
946
|
+
_sanitizeAttributes(currentNode);
|
|
947
|
+
if (currentNode.content instanceof DocumentFragment) {
|
|
948
|
+
_sanitizeShadowDOM(currentNode.content);
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
if (IN_PLACE) {
|
|
952
|
+
return dirty;
|
|
953
|
+
}
|
|
954
|
+
if (RETURN_DOM) {
|
|
955
|
+
if (RETURN_DOM_FRAGMENT) {
|
|
956
|
+
returnNode = createDocumentFragment.call(body.ownerDocument);
|
|
957
|
+
while (body.firstChild) {
|
|
958
|
+
returnNode.appendChild(body.firstChild);
|
|
959
|
+
}
|
|
960
|
+
} else {
|
|
961
|
+
returnNode = body;
|
|
962
|
+
}
|
|
963
|
+
if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
|
|
964
|
+
returnNode = importNode.call(originalDocument, returnNode, true);
|
|
965
|
+
}
|
|
966
|
+
return returnNode;
|
|
967
|
+
}
|
|
968
|
+
let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
|
|
969
|
+
if (WHOLE_DOCUMENT && ALLOWED_TAGS["!doctype"] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
|
|
970
|
+
serializedHTML = "<!DOCTYPE " + body.ownerDocument.doctype.name + ">\n" + serializedHTML;
|
|
971
|
+
}
|
|
972
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
973
|
+
arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
|
|
974
|
+
serializedHTML = stringReplace(serializedHTML, expr, " ");
|
|
975
|
+
});
|
|
976
|
+
}
|
|
977
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
|
|
978
|
+
};
|
|
979
|
+
DOMPurify.setConfig = function() {
|
|
980
|
+
let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
981
|
+
_parseConfig(cfg);
|
|
982
|
+
SET_CONFIG = true;
|
|
983
|
+
};
|
|
984
|
+
DOMPurify.clearConfig = function() {
|
|
985
|
+
CONFIG = null;
|
|
986
|
+
SET_CONFIG = false;
|
|
987
|
+
};
|
|
988
|
+
DOMPurify.isValidAttribute = function(tag, attr, value) {
|
|
989
|
+
if (!CONFIG) {
|
|
990
|
+
_parseConfig({});
|
|
991
|
+
}
|
|
992
|
+
const lcTag = transformCaseFunc(tag);
|
|
993
|
+
const lcName = transformCaseFunc(attr);
|
|
994
|
+
return _isValidAttribute(lcTag, lcName, value);
|
|
995
|
+
};
|
|
996
|
+
DOMPurify.addHook = function(entryPoint, hookFunction) {
|
|
997
|
+
if (typeof hookFunction !== "function") {
|
|
998
|
+
return;
|
|
999
|
+
}
|
|
1000
|
+
arrayPush(hooks[entryPoint], hookFunction);
|
|
1001
|
+
};
|
|
1002
|
+
DOMPurify.removeHook = function(entryPoint, hookFunction) {
|
|
1003
|
+
if (hookFunction !== void 0) {
|
|
1004
|
+
const index = arrayLastIndexOf(hooks[entryPoint], hookFunction);
|
|
1005
|
+
return index === -1 ? void 0 : arraySplice(hooks[entryPoint], index, 1)[0];
|
|
1006
|
+
}
|
|
1007
|
+
return arrayPop(hooks[entryPoint]);
|
|
1008
|
+
};
|
|
1009
|
+
DOMPurify.removeHooks = function(entryPoint) {
|
|
1010
|
+
hooks[entryPoint] = [];
|
|
1011
|
+
};
|
|
1012
|
+
DOMPurify.removeAllHooks = function() {
|
|
1013
|
+
hooks = _createHooksMap();
|
|
1014
|
+
};
|
|
1015
|
+
return DOMPurify;
|
|
1016
|
+
}
|
|
1017
|
+
var purify = createDOMPurify();
|
|
1018
|
+
export {
|
|
1019
|
+
purify as default
|
|
1020
|
+
};
|