@fewangsit/wangsvue 1.5.219-alpha.1 → 1.5.219-alpha.2
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/animation/index.es.js +54 -37
- package/assets/lottiejs/loading-page.es.js +14 -9
- package/assets/lottiejs/loading-plane.es.js +2 -2
- package/assets/lottiejs/loading-table.es.js +14 -9
- package/assets/lottiejs/no-data.es.js +14 -9
- package/backgroundimagecropper/index.es.js +61 -37
- package/badge/index.es.js +77 -67
- package/badgegroup/index.es.js +62 -50
- package/basecalendar/index.es.js +1258 -735
- package/basetree/index.es.js +213 -113
- package/breadcrumb/index.es.js +46 -38
- package/button/index.es.js +60 -54
- package/buttonbulkaction/index.es.js +168 -117
- package/buttoncopy/index.es.js +25 -22
- package/buttondownload/index.es.js +125 -76
- package/buttonfilter/index.es.js +21 -15
- package/buttonradio/index.es.js +91 -67
- package/buttonsearch/index.es.js +62 -46
- package/buttonselecttree/index.es.js +233 -172
- package/buttontoggle/index.es.js +8 -6
- package/calendar/index.es.js +113 -58
- package/card/index.es.js +44 -42
- package/checkbox/index.es.js +105 -74
- package/codesnippet/index.es.js +91 -71
- package/codesnippetadapter/index.es.js +25 -21
- package/columnlist/index.es.js +249 -171
- package/components.d.ts +0 -21
- package/config/defaultProps.es.js +9 -9
- package/config/index.es.js +11 -10
- package/config/locale.es.js +2 -2
- package/customcolumn/index.es.js +95 -78
- package/datatable/index.es.js +1071 -732
- package/dialog/index.es.js +54 -54
- package/dialogconfirm/index.es.js +90 -75
- package/dialogform/index.es.js +170 -133
- package/dialogselecttree/index.es.js +242 -194
- package/directives/focus.es.js +13 -8
- package/dropdown/index.es.js +250 -196
- package/editor/index.es.js +694 -498
- package/editorbutton/index.es.js +21 -19
- package/event-bus/index.es.js +3 -3
- package/event-bus/mitt.es.js +37 -20
- package/fieldwrapper/index.es.js +30 -25
- package/fileupload/index.es.js +230 -140
- package/filtercontainer/index.es.js +299 -222
- package/form/index.es.js +176 -126
- package/gallerypreview/index.es.js +138 -101
- package/icon/index.es.js +38 -36
- package/image/index.es.js +161 -108
- package/imagecompressor/index.es.js +616 -449
- package/imageinputinfo/index.es.js +26 -22
- package/inlinemessage/index.es.js +77 -65
- package/inputbadge/index.es.js +230 -156
- package/inputcurrency/index.es.js +146 -109
- package/inputemail/index.es.js +18 -16
- package/inputgroup/index.es.js +19 -16
- package/inputnumber/index.es.js +252 -182
- package/inputpassword/index.es.js +120 -94
- package/inputphonenumber/index.es.js +1017 -550
- package/inputrangenumber/index.es.js +129 -98
- package/inputtext/index.es.js +264 -189
- package/inputurl/index.es.js +31 -29
- package/invisiblefield/index.es.js +24 -16
- package/litedropdown/index.es.js +87 -81
- package/loading/index.es.js +21 -19
- package/loading-page-BXZ4fLOS.js +8 -0
- package/loading-page-BuLpsb_1.js +8 -0
- package/loading-page-CNqVBg__.js +4 -0
- package/loading-page-DbhhZih2.js +4 -0
- package/loading-page-DjfWXoOy.js +8 -0
- package/loading-page-S-KRY5zm.js +4 -0
- package/loading-plane-C1mi7Whv.js +4 -0
- package/loading-plane-CWq1hz_l.js +8 -0
- package/loading-table-B7LAXzAp.js +4 -0
- package/loading-table-BLmgKUsR.js +4 -0
- package/loading-table-CG7-cuhv.js +8 -0
- package/loading-table-CUPS49ta.js +4 -0
- package/loading-table-CuWWrTbv.js +8 -0
- package/loading-table-DbBzVwaZ.js +8 -0
- package/mentionlist/index.es.js +77 -44
- package/mentionsection/index.es.js +53 -43
- package/menu/index.es.js +65 -51
- package/menuitem/index.es.js +39 -37
- package/multirow/index.es.js +29 -28
- package/multiselect/index.es.js +184 -152
- package/no-data-B781skt3.js +4 -0
- package/no-data-CAksOnDl.js +4 -0
- package/no-data-DCsjBXQR.js +4 -0
- package/no-data-Dz0QOe7Q.js +8 -0
- package/no-data-_Huxiv9q.js +8 -0
- package/no-data-ybRQontJ.js +8 -0
- package/overlaypanel/index.es.js +49 -36
- package/package.json +1 -1
- package/paginator/index.es.js +36 -33
- package/plugins/WangsVue.es.js +63 -45
- package/plugins/formValidation.es.js +15 -11
- package/progressbar/index.es.js +39 -32
- package/quickfilter/index.es.js +94 -81
- package/stats.html +1 -1
- package/style.css +1 -1
- package/tabmenu/index.es.js +18 -16
- package/textarea/index.es.js +94 -72
- package/timeline/index.es.js +124 -102
- package/timelinecontentbytype/index.es.js +114 -92
- package/toast/index.es.js +67 -54
- package/toggleswitch/index.es.js +83 -66
- package/tree/index.es.js +306 -198
- package/treenode/index.es.js +464 -339
- package/treesearchinput/index.es.js +32 -26
- package/usergroup/index.es.js +83 -67
- package/username/index.es.js +99 -85
- package/utils/addAttachment.util.es.js +47 -21
- package/utils/baseToast.util.es.js +41 -33
- package/utils/convertJsonImage.util.es.js +24 -24
- package/utils/date.util.es.js +131 -106
- package/utils/exportToExcel.util.es.js +81 -47
- package/utils/filterOptions.util.es.js +8 -2
- package/utils/genPlaceholder.util.es.js +30 -16
- package/utils/getProjectPermission.util.es.js +15 -12
- package/utils/getSalesRole.util.es.js +4 -4
- package/utils/getUser.util.es.js +2 -2
- package/utils/getUserType.util.es.js +13 -8
- package/utils/isIntersect.es.js +4 -2
- package/utils/mergePropsWithDefaults.util.es.js +7 -6
- package/utils/object.util.es.js +88 -54
- package/utils/queryParamsStringfy.util.es.js +19 -11
- package/utils/role.util.es.js +5 -4
- package/utils/statusSeverity.util.es.js +20 -5
- package/utils/textFormatter.util.es.js +28 -50
- package/utils/toast.util.es.js +8 -5
- package/utils/xlsx.util.es.js +12 -6
- package/validatormessage/index.es.js +9 -9
- package/vendor/@popperjs/core/lib/createPopper.es.js +110 -83
- package/vendor/@popperjs/core/lib/dom-utils/contains.es.js +14 -13
- package/vendor/@popperjs/core/lib/dom-utils/getBoundingClientRect.es.js +33 -18
- package/vendor/@popperjs/core/lib/dom-utils/getClippingRect.es.js +55 -31
- package/vendor/@popperjs/core/lib/dom-utils/getCompositeRect.es.js +43 -22
- package/vendor/@popperjs/core/lib/dom-utils/getComputedStyle.es.js +4 -4
- package/vendor/@popperjs/core/lib/dom-utils/getDocumentElement.es.js +5 -5
- package/vendor/@popperjs/core/lib/dom-utils/getDocumentRect.es.js +23 -13
- package/vendor/@popperjs/core/lib/dom-utils/getHTMLElementScroll.es.js +4 -4
- package/vendor/@popperjs/core/lib/dom-utils/getLayoutRect.es.js +17 -9
- package/vendor/@popperjs/core/lib/dom-utils/getNodeName.es.js +3 -3
- package/vendor/@popperjs/core/lib/dom-utils/getNodeScroll.es.js +11 -7
- package/vendor/@popperjs/core/lib/dom-utils/getOffsetParent.es.js +42 -26
- package/vendor/@popperjs/core/lib/dom-utils/getParentNode.es.js +13 -10
- package/vendor/@popperjs/core/lib/dom-utils/getScrollParent.es.js +13 -7
- package/vendor/@popperjs/core/lib/dom-utils/getViewportRect.es.js +25 -15
- package/vendor/@popperjs/core/lib/dom-utils/getWindow.es.js +8 -7
- package/vendor/@popperjs/core/lib/dom-utils/getWindowScroll.es.js +8 -6
- package/vendor/@popperjs/core/lib/dom-utils/getWindowScrollBarX.es.js +6 -6
- package/vendor/@popperjs/core/lib/dom-utils/instanceOf.es.js +16 -15
- package/vendor/@popperjs/core/lib/dom-utils/isLayoutViewport.es.js +4 -4
- package/vendor/@popperjs/core/lib/dom-utils/isScrollParent.es.js +5 -5
- package/vendor/@popperjs/core/lib/dom-utils/isTableElement.es.js +4 -4
- package/vendor/@popperjs/core/lib/dom-utils/listScrollParents.es.js +17 -11
- package/vendor/@popperjs/core/lib/enums.es.js +43 -20
- package/vendor/@popperjs/core/lib/modifiers/applyStyles.es.js +49 -25
- package/vendor/@popperjs/core/lib/modifiers/arrow.es.js +61 -26
- package/vendor/@popperjs/core/lib/modifiers/computeStyles.es.js +101 -69
- package/vendor/@popperjs/core/lib/modifiers/eventListeners.es.js +30 -16
- package/vendor/@popperjs/core/lib/modifiers/flip.es.js +99 -60
- package/vendor/@popperjs/core/lib/modifiers/hide.es.js +44 -31
- package/vendor/@popperjs/core/lib/modifiers/offset.es.js +32 -20
- package/vendor/@popperjs/core/lib/modifiers/popperOffsets.es.js +11 -11
- package/vendor/@popperjs/core/lib/modifiers/preventOverflow.es.js +91 -40
- package/vendor/@popperjs/core/lib/popper.es.js +14 -13
- package/vendor/@popperjs/core/lib/utils/computeAutoPlacement.es.js +29 -21
- package/vendor/@popperjs/core/lib/utils/computeOffsets.es.js +41 -36
- package/vendor/@popperjs/core/lib/utils/debounce.es.js +11 -7
- package/vendor/@popperjs/core/lib/utils/detectOverflow.es.js +42 -28
- package/vendor/@popperjs/core/lib/utils/expandToHashMap.es.js +5 -4
- package/vendor/@popperjs/core/lib/utils/getAltAxis.es.js +3 -3
- package/vendor/@popperjs/core/lib/utils/getBasePlacement.es.js +3 -3
- package/vendor/@popperjs/core/lib/utils/getFreshSideObject.es.js +2 -2
- package/vendor/@popperjs/core/lib/utils/getMainAxisFromPlacement.es.js +3 -3
- package/vendor/@popperjs/core/lib/utils/getOppositePlacement.es.js +5 -5
- package/vendor/@popperjs/core/lib/utils/getOppositeVariationPlacement.es.js +5 -5
- package/vendor/@popperjs/core/lib/utils/getVariation.es.js +3 -3
- package/vendor/@popperjs/core/lib/utils/math.es.js +6 -4
- package/vendor/@popperjs/core/lib/utils/mergeByName.es.js +11 -10
- package/vendor/@popperjs/core/lib/utils/mergePaddingObject.es.js +4 -4
- package/vendor/@popperjs/core/lib/utils/orderModifiers.es.js +30 -22
- package/vendor/@popperjs/core/lib/utils/rectToClientRect.es.js +7 -7
- package/vendor/@popperjs/core/lib/utils/userAgent.es.js +9 -6
- package/vendor/@popperjs/core/lib/utils/within.es.js +8 -8
- package/vendor/@tiptap/core/dist/index.es.js +3494 -2000
- package/vendor/@tiptap/extension-bold/dist/index.es.js +29 -19
- package/vendor/@tiptap/extension-bubble-menu/dist/index.es.js +145 -71
- package/vendor/@tiptap/extension-bullet-list/dist/index.es.js +32 -19
- package/vendor/@tiptap/extension-code/dist/index.es.js +22 -14
- package/vendor/@tiptap/extension-document/dist/index.es.js +4 -4
- package/vendor/@tiptap/extension-floating-menu/dist/index.es.js +106 -51
- package/vendor/@tiptap/extension-heading/dist/index.es.js +38 -22
- package/vendor/@tiptap/extension-history/dist/index.es.js +11 -7
- package/vendor/@tiptap/extension-image/dist/index.es.js +20 -17
- package/vendor/@tiptap/extension-italic/dist/index.es.js +28 -18
- package/vendor/@tiptap/extension-link/dist/index.es.js +236 -147
- package/vendor/@tiptap/extension-list-item/dist/index.es.js +6 -6
- package/vendor/@tiptap/extension-mention/dist/index.es.js +98 -63
- package/vendor/@tiptap/extension-ordered-list/dist/index.es.js +38 -25
- package/vendor/@tiptap/extension-paragraph/dist/index.es.js +8 -6
- package/vendor/@tiptap/extension-placeholder/dist/index.es.js +34 -27
- package/vendor/@tiptap/extension-text/dist/index.es.js +3 -3
- package/vendor/@tiptap/extension-underline/dist/index.es.js +16 -10
- package/vendor/@tiptap/suggestion/dist/index.es.js +174 -90
- package/vendor/@tiptap/vue-3/dist/index.es.js +287 -188
- package/vendor/@wangs-ui/core/components/p-BU8h34na.es.js +17 -14
- package/vendor/@wangs-ui/core/components/p-C5lMEBcj.es.js +69 -55
- package/vendor/@wangs-ui/core/components/p-CKYwZoTo.es.js +26 -22
- package/vendor/@wangs-ui/core/components/p-CsoK-EWG.es.js +147 -102
- package/vendor/@wangs-ui/core/components/p-DPHEi31J.es.js +102 -77
- package/vendor/@wangs-ui/core/components/p-DTTCzifR.es.js +1298 -551
- package/vendor/@wangs-ui/core/components/p-Duri5p90.es.js +60 -49
- package/vendor/@wangs-ui/core/components/wangs-button.es.js +19 -15
- package/vendor/@wangs-ui/core/components/wangs-icon.es.js +3 -3
- package/vendor/@wangs-ui/core/components/wangs-input-otp.es.js +3 -3
- package/vendor/@wangs-ui/core/components/wangs-tab-menu.es.js +3 -3
- package/vendor/@wangs-ui/core/dist/esm/index-DCkh3cGv.es.js +116 -102
- package/vendor/@wangs-ui/vue/dist/index.es.js +77 -77
- package/vendor/base64toblob/base64toblob.es.js +31 -15
- package/vendor/highlight.js/es/core.es.js +5 -5
- package/vendor/highlight.js/es/languages/javascript.es.js +237 -193
- package/vendor/highlight.js/es/languages/json.es.js +18 -15
- package/vendor/highlight.js/es/languages/typescript.es.js +288 -228
- package/vendor/highlight.js/es/languages/vbscript-html.es.js +2 -2
- package/vendor/highlight.js/lib/core.es.js +1144 -666
- package/vendor/linkifyjs/dist/linkify.es.es.js +858 -405
- package/vendor/lodash/_Symbol.es.js +11 -8
- package/vendor/lodash/_baseGetTag.es.js +19 -12
- package/vendor/lodash/_baseTrim.es.js +13 -10
- package/vendor/lodash/_freeGlobal.es.js +10 -8
- package/vendor/lodash/_getRawTag.es.js +28 -15
- package/vendor/lodash/_objectToString.es.js +12 -9
- package/vendor/lodash/_root.es.js +12 -8
- package/vendor/lodash/_trimmedEndIndex.es.js +14 -11
- package/vendor/lodash/debounce.es.js +92 -54
- package/vendor/lodash/isObject.es.js +11 -9
- package/vendor/lodash/isObjectLike.es.js +10 -8
- package/vendor/lodash/isSymbol.es.js +14 -11
- package/vendor/lodash/now.es.js +12 -9
- package/vendor/lodash/throttle.es.js +25 -17
- package/vendor/lodash/toNumber.es.js +33 -23
- package/vendor/lodash-es/_DataView.es.js +4 -4
- package/vendor/lodash-es/_Hash.es.js +17 -16
- package/vendor/lodash-es/_ListCache.es.js +17 -16
- package/vendor/lodash-es/_Map.es.js +4 -4
- package/vendor/lodash-es/_MapCache.es.js +17 -16
- package/vendor/lodash-es/_Promise.es.js +4 -4
- package/vendor/lodash-es/_Set.es.js +4 -4
- package/vendor/lodash-es/_SetCache.es.js +12 -10
- package/vendor/lodash-es/_Stack.es.js +15 -15
- package/vendor/lodash-es/_Symbol.es.js +3 -3
- package/vendor/lodash-es/_Uint8Array.es.js +3 -3
- package/vendor/lodash-es/_WeakMap.es.js +4 -4
- package/vendor/lodash-es/_arrayEach.es.js +9 -5
- package/vendor/lodash-es/_arrayFilter.es.js +9 -6
- package/vendor/lodash-es/_arrayLikeKeys.es.js +21 -17
- package/vendor/lodash-es/_arrayPush.es.js +7 -5
- package/vendor/lodash-es/_arraySome.es.js +9 -6
- package/vendor/lodash-es/_assignValue.es.js +10 -7
- package/vendor/lodash-es/_assocIndexOf.es.js +9 -6
- package/vendor/lodash-es/_baseAssignValue.es.js +13 -9
- package/vendor/lodash-es/_baseClone.es.js +67 -49
- package/vendor/lodash-es/_baseCreate.es.js +15 -11
- package/vendor/lodash-es/_baseGetAllKeys.es.js +6 -6
- package/vendor/lodash-es/_baseGetTag.es.js +11 -7
- package/vendor/lodash-es/_baseIsArguments.es.js +6 -6
- package/vendor/lodash-es/_baseIsEqual.es.js +11 -5
- package/vendor/lodash-es/_baseIsEqualDeep.es.js +39 -26
- package/vendor/lodash-es/_baseIsMap.es.js +6 -6
- package/vendor/lodash-es/_baseIsNative.es.js +18 -12
- package/vendor/lodash-es/_baseIsSet.es.js +6 -6
- package/vendor/lodash-es/_baseIsTypedArray.es.js +11 -9
- package/vendor/lodash-es/_baseKeys.es.js +16 -11
- package/vendor/lodash-es/_baseTimes.es.js +7 -5
- package/vendor/lodash-es/_baseTrim.es.js +5 -5
- package/vendor/lodash-es/_baseUnary.es.js +4 -4
- package/vendor/lodash-es/_cacheHas.es.js +3 -3
- package/vendor/lodash-es/_cloneArrayBuffer.es.js +6 -5
- package/vendor/lodash-es/_cloneBuffer.es.js +11 -6
- package/vendor/lodash-es/_cloneDataView.es.js +5 -5
- package/vendor/lodash-es/_cloneRegExp.es.js +6 -5
- package/vendor/lodash-es/_cloneSymbol.es.js +5 -5
- package/vendor/lodash-es/_cloneTypedArray.es.js +5 -5
- package/vendor/lodash-es/_coreJsData.es.js +3 -3
- package/vendor/lodash-es/_defineProperty.es.js +7 -6
- package/vendor/lodash-es/_equalArrays.es.js +38 -28
- package/vendor/lodash-es/_equalByTag.es.js +55 -41
- package/vendor/lodash-es/_equalObjects.es.js +42 -28
- package/vendor/lodash-es/_freeGlobal.es.js +2 -2
- package/vendor/lodash-es/_getAllKeys.es.js +6 -6
- package/vendor/lodash-es/_getMapData.es.js +5 -5
- package/vendor/lodash-es/_getNative.es.js +6 -6
- package/vendor/lodash-es/_getPrototype.es.js +3 -3
- package/vendor/lodash-es/_getRawTag.es.js +20 -10
- package/vendor/lodash-es/_getSymbols.es.js +15 -8
- package/vendor/lodash-es/_getTag.es.js +31 -25
- package/vendor/lodash-es/_getValue.es.js +3 -3
- package/vendor/lodash-es/_hashClear.es.js +5 -4
- package/vendor/lodash-es/_hashDelete.es.js +5 -4
- package/vendor/lodash-es/_hashGet.es.js +11 -9
- package/vendor/lodash-es/_hashHas.es.js +7 -6
- package/vendor/lodash-es/_hashSet.es.js +8 -6
- package/vendor/lodash-es/_initCloneArray.es.js +10 -5
- package/vendor/lodash-es/_initCloneByTag.es.js +39 -38
- package/vendor/lodash-es/_initCloneObject.es.js +6 -6
- package/vendor/lodash-es/_isIndex.es.js +7 -5
- package/vendor/lodash-es/_isKeyable.es.js +4 -4
- package/vendor/lodash-es/_isMasked.es.js +7 -7
- package/vendor/lodash-es/_isPrototype.es.js +5 -5
- package/vendor/lodash-es/_listCacheClear.es.js +4 -3
- package/vendor/lodash-es/_listCacheDelete.es.js +17 -9
- package/vendor/lodash-es/_listCacheGet.es.js +5 -5
- package/vendor/lodash-es/_listCacheHas.es.js +4 -4
- package/vendor/lodash-es/_listCacheSet.es.js +11 -5
- package/vendor/lodash-es/_mapCacheClear.es.js +10 -9
- package/vendor/lodash-es/_mapCacheDelete.es.js +6 -5
- package/vendor/lodash-es/_mapCacheGet.es.js +4 -4
- package/vendor/lodash-es/_mapCacheHas.es.js +4 -4
- package/vendor/lodash-es/_mapCacheSet.es.js +7 -5
- package/vendor/lodash-es/_mapToArray.es.js +7 -6
- package/vendor/lodash-es/_nativeCreate.es.js +3 -3
- package/vendor/lodash-es/_nativeKeys.es.js +3 -3
- package/vendor/lodash-es/_nodeUtil.es.js +13 -6
- package/vendor/lodash-es/_objectToString.es.js +5 -4
- package/vendor/lodash-es/_overArg.es.js +4 -4
- package/vendor/lodash-es/_root.es.js +4 -3
- package/vendor/lodash-es/_setCacheAdd.es.js +5 -4
- package/vendor/lodash-es/_setCacheHas.es.js +3 -3
- package/vendor/lodash-es/_setToArray.es.js +7 -6
- package/vendor/lodash-es/_stackClear.es.js +5 -4
- package/vendor/lodash-es/_stackDelete.es.js +5 -4
- package/vendor/lodash-es/_stackGet.es.js +3 -3
- package/vendor/lodash-es/_stackHas.es.js +3 -3
- package/vendor/lodash-es/_stackSet.es.js +18 -13
- package/vendor/lodash-es/_toSource.es.js +9 -8
- package/vendor/lodash-es/_trimmedEndIndex.es.js +7 -6
- package/vendor/lodash-es/cloneDeep.es.js +5 -5
- package/vendor/lodash-es/debounce.es.js +84 -49
- package/vendor/lodash-es/eq.es.js +3 -3
- package/vendor/lodash-es/isArguments.es.js +9 -6
- package/vendor/lodash-es/isArray.es.js +2 -2
- package/vendor/lodash-es/isArrayLike.es.js +5 -5
- package/vendor/lodash-es/isBuffer.es.js +9 -4
- package/vendor/lodash-es/isEqual.es.js +4 -4
- package/vendor/lodash-es/isFunction.es.js +10 -9
- package/vendor/lodash-es/isLength.es.js +4 -4
- package/vendor/lodash-es/isMap.es.js +6 -5
- package/vendor/lodash-es/isObject.es.js +4 -4
- package/vendor/lodash-es/isObjectLike.es.js +3 -3
- package/vendor/lodash-es/isSet.es.js +6 -5
- package/vendor/lodash-es/isSymbol.es.js +6 -6
- package/vendor/lodash-es/isTypedArray.es.js +6 -5
- package/vendor/lodash-es/keys.es.js +6 -6
- package/vendor/lodash-es/now.es.js +4 -4
- package/vendor/lodash-es/stubArray.es.js +2 -2
- package/vendor/lodash-es/stubFalse.es.js +3 -3
- package/vendor/lodash-es/toNumber.es.js +25 -18
- package/vendor/lodash-es/toString.es.js +2 -2
- package/vendor/lodash-es/uniqueId.es.js +6 -6
- package/vendor/orderedmap/dist/index.es.js +65 -49
- package/vendor/primevue/api/api.esm.es.js +214 -121
- package/vendor/primevue/avatar/avatar.esm.es.js +44 -41
- package/vendor/primevue/avatar/style/avatarstyle.esm.es.js +12 -11
- package/vendor/primevue/avatargroup/avatargroup.esm.es.js +17 -16
- package/vendor/primevue/avatargroup/style/avatargroupstyle.esm.es.js +6 -5
- package/vendor/primevue/badge/badge.esm.es.js +21 -20
- package/vendor/primevue/badge/style/badgestyle.esm.es.js +19 -18
- package/vendor/primevue/base/style/basestyle.esm.es.js +88 -99
- package/vendor/primevue/basecomponent/basecomponent.esm.es.js +327 -261
- package/vendor/primevue/basedirective/basedirective.esm.es.js +257 -186
- package/vendor/primevue/baseicon/baseicon.esm.es.js +55 -49
- package/vendor/primevue/baseicon/style/baseiconstyle.esm.es.js +5 -35
- package/vendor/primevue/button/button.esm.es.js +76 -72
- package/vendor/primevue/button/style/buttonstyle.esm.es.js +46 -39
- package/vendor/primevue/card/card.esm.es.js +30 -29
- package/vendor/primevue/card/style/cardstyle.esm.es.js +6 -5
- package/vendor/primevue/checkbox/checkbox.esm.es.js +109 -101
- package/vendor/primevue/checkbox/style/checkboxstyle.esm.es.js +12 -11
- package/vendor/primevue/config/config.esm.es.js +76 -58
- package/vendor/primevue/dialog/dialog.esm.es.js +421 -281
- package/vendor/primevue/dialog/style/dialogstyle.esm.es.js +26 -22
- package/vendor/primevue/dropdown/dropdown.esm.es.js +956 -742
- package/vendor/primevue/dropdown/style/dropdownstyle.esm.es.js +33 -31
- package/vendor/primevue/fileupload/fileupload.esm.es.js +559 -450
- package/vendor/primevue/fileupload/style/fileuploadstyle.esm.es.js +14 -13
- package/vendor/primevue/focustrap/focustrap.esm.es.js +128 -90
- package/vendor/primevue/focustrap/style/focustrapstyle.esm.es.js +2 -2
- package/vendor/primevue/icons/angledoubleleft/index.esm.es.js +13 -11
- package/vendor/primevue/icons/angledoubleright/index.esm.es.js +13 -11
- package/vendor/primevue/icons/angledown/index.esm.es.js +13 -11
- package/vendor/primevue/icons/angleleft/index.esm.es.js +13 -11
- package/vendor/primevue/icons/angleright/index.esm.es.js +13 -11
- package/vendor/primevue/icons/angleup/index.esm.es.js +13 -11
- package/vendor/primevue/icons/blank/index.esm.es.js +13 -11
- package/vendor/primevue/icons/check/index.esm.es.js +13 -11
- package/vendor/primevue/icons/chevrondown/index.esm.es.js +13 -11
- package/vendor/primevue/icons/exclamationtriangle/index.esm.es.js +17 -13
- package/vendor/primevue/icons/eye/index.esm.es.js +13 -11
- package/vendor/primevue/icons/eyeslash/index.esm.es.js +13 -11
- package/vendor/primevue/icons/infocircle/index.esm.es.js +13 -11
- package/vendor/primevue/icons/plus/index.esm.es.js +13 -11
- package/vendor/primevue/icons/refresh/index.esm.es.js +13 -11
- package/vendor/primevue/icons/search/index.esm.es.js +13 -11
- package/vendor/primevue/icons/searchminus/index.esm.es.js +13 -11
- package/vendor/primevue/icons/searchplus/index.esm.es.js +13 -11
- package/vendor/primevue/icons/spinner/index.esm.es.js +13 -11
- package/vendor/primevue/icons/times/index.esm.es.js +13 -11
- package/vendor/primevue/icons/timescircle/index.esm.es.js +13 -11
- package/vendor/primevue/icons/undo/index.esm.es.js +13 -11
- package/vendor/primevue/icons/upload/index.esm.es.js +13 -11
- package/vendor/primevue/icons/windowmaximize/index.esm.es.js +13 -11
- package/vendor/primevue/icons/windowminimize/index.esm.es.js +13 -11
- package/vendor/primevue/image/image.esm.es.js +280 -235
- package/vendor/primevue/image/style/imagestyle.esm.es.js +18 -17
- package/vendor/primevue/inputgroup/inputgroup.esm.es.js +17 -16
- package/vendor/primevue/inputgroup/style/inputgroupstyle.esm.es.js +6 -5
- package/vendor/primevue/inputgroupaddon/inputgroupaddon.esm.es.js +17 -16
- package/vendor/primevue/inputgroupaddon/style/inputgroupaddonstyle.esm.es.js +6 -5
- package/vendor/primevue/inputnumber/inputnumber.esm.es.js +834 -566
- package/vendor/primevue/inputnumber/style/inputnumberstyle.esm.es.js +23 -22
- package/vendor/primevue/inputtext/inputtext.esm.es.js +32 -30
- package/vendor/primevue/inputtext/style/inputtextstyle.esm.es.js +13 -12
- package/vendor/primevue/menu/menu.esm.es.js +402 -304
- package/vendor/primevue/menu/style/menustyle.esm.es.js +14 -13
- package/vendor/primevue/message/message.esm.es.js +126 -112
- package/vendor/primevue/message/style/messagestyle.esm.es.js +9 -8
- package/vendor/primevue/multiselect/multiselect.esm.es.js +1083 -835
- package/vendor/primevue/multiselect/style/multiselectstyle.esm.es.js +38 -36
- package/vendor/primevue/overlayeventbus/overlayeventbus.esm.es.js +3 -3
- package/vendor/primevue/overlaypanel/overlaypanel.esm.es.js +275 -169
- package/vendor/primevue/overlaypanel/style/overlaypanelstyle.esm.es.js +9 -8
- package/vendor/primevue/paginator/paginator.esm.es.js +513 -469
- package/vendor/primevue/paginator/style/paginatorstyle.esm.es.js +50 -43
- package/vendor/primevue/password/password.esm.es.js +306 -233
- package/vendor/primevue/password/style/passwordstyle.esm.es.js +26 -24
- package/vendor/primevue/portal/portal.esm.es.js +17 -17
- package/vendor/primevue/progressbar/progressbar.esm.es.js +37 -35
- package/vendor/primevue/progressbar/style/progressbarstyle.esm.es.js +10 -9
- package/vendor/primevue/ripple/ripple.esm.es.js +90 -62
- package/vendor/primevue/ripple/style/ripplestyle.esm.es.js +6 -5
- package/vendor/primevue/selectbutton/selectbutton.esm.es.js +213 -167
- package/vendor/primevue/selectbutton/style/selectbuttonstyle.esm.es.js +14 -13
- package/vendor/primevue/skeleton/skeleton.esm.es.js +28 -26
- package/vendor/primevue/skeleton/style/skeletonstyle.esm.es.js +13 -11
- package/vendor/primevue/textarea/style/textareastyle.esm.es.js +12 -11
- package/vendor/primevue/textarea/textarea.esm.es.js +49 -33
- package/vendor/primevue/timeline/style/timelinestyle.esm.es.js +9 -8
- package/vendor/primevue/timeline/timeline.esm.es.js +53 -52
- package/vendor/primevue/toast/style/toaststyle.esm.es.js +54 -46
- package/vendor/primevue/toast/toast.esm.es.js +309 -260
- package/vendor/primevue/toasteventbus/toasteventbus.esm.es.js +3 -3
- package/vendor/primevue/toastservice/toastservice.esm.es.js +16 -15
- package/vendor/primevue/tooltip/style/tooltipstyle.esm.es.js +6 -5
- package/vendor/primevue/tooltip/tooltip.esm.es.js +383 -186
- package/vendor/primevue/usestyle/usestyle.esm.es.js +94 -64
- package/vendor/primevue/usetoast/usetoast.esm.es.js +9 -8
- package/vendor/primevue/utils/utils.esm.es.js +1078 -772
- package/vendor/primevue/virtualscroller/style/virtualscrollerstyle.esm.es.js +5 -67
- package/vendor/primevue/virtualscroller/virtualscroller.esm.es.js +655 -428
- package/vendor/prosemirror-commands/dist/index.es.js +454 -316
- package/vendor/prosemirror-history/dist/index.es.js +286 -178
- package/vendor/prosemirror-keymap/dist/index.es.js +68 -48
- package/vendor/prosemirror-model/dist/index.es.js +1905 -1436
- package/vendor/prosemirror-schema-list/dist/index.es.js +115 -73
- package/vendor/prosemirror-state/dist/index.es.js +467 -353
- package/vendor/prosemirror-transform/dist/index.es.js +1146 -829
- package/vendor/prosemirror-view/dist/index.es.js +4127 -2719
- package/vendor/rope-sequence/dist/index.es.js +165 -82
- package/vendor/simplebar-core/dist/index.es.js +670 -242
- package/vendor/simplebar-vue/dist/simplebar-vue.esm.es.js +73 -60
- package/vendor/single-spa/lib/es2015/esm/single-spa.min.es.js +511 -510
- package/vendor/tippy.js/dist/tippy.esm.es.js +971 -525
- package/vendor/vee-validate/dist/vee-validate.esm.es.js +1830 -1097
- package/vendor/vue-advanced-cropper/dist/index.esm-bundler.es.js +740 -738
- package/vendor/w3c-keyname/index.es.js +25 -13
- package/wangsvue.es.js +167 -208
- package/wangsvue.esm.browser.js +67705 -0
- package/wangsvue.system.js +67600 -234
- package/api/index.es.js +0 -149
- package/apiitem/index.es.js +0 -611
- package/assignmember/index.es.js +0 -434
- package/attachment/index.es.js +0 -118
- package/attachmentchangelog/index.es.js +0 -79
- package/attachmentitem/index.es.js +0 -231
- package/attachmentthumbnail/index.es.js +0 -83
- package/changelog/index.d.ts +0 -164
- package/changelog/index.es.js +0 -85
- package/changelogfilter/index.es.js +0 -113
- package/changelogpage/index.d.ts +0 -184
- package/changelogpage/index.es.js +0 -176
- package/checklist/index.es.js +0 -571
- package/checklistchangelog/index.es.js +0 -85
- package/comment/index.d.ts +0 -187
- package/comment/index.es.js +0 -267
- package/commentblock/index.es.js +0 -337
- package/confirmdeploy/index.es.js +0 -64
- package/dependencycol/index.es.js +0 -32
- package/description/index.es.js +0 -135
- package/descriptiontab/index.es.js +0 -30
- package/detailmember/index.d.ts +0 -77
- package/detailmember/index.es.js +0 -32
- package/detailmemberadmin/index.es.js +0 -210
- package/detailmemberleader/index.es.js +0 -164
- package/detailmemberlog/index.es.js +0 -117
- package/detailsprint/index.d.ts +0 -86
- package/detailsprint/index.es.js +0 -414
- package/dialogaddattachment/index.es.js +0 -273
- package/dialogaddchecklist/index.es.js +0 -120
- package/dialogaddeditapi/index.es.js +0 -87
- package/dialogaddpbi/index.es.js +0 -197
- package/dialogadjustmenttask/index.es.js +0 -484
- package/dialogadjustmenttaskheader/index.es.js +0 -193
- package/dialogapichangelog/index.es.js +0 -83
- package/dialogassignmember/index.es.js +0 -171
- package/dialogconfirmapproval/index.es.js +0 -54
- package/dialogconfirmchecklist/index.es.js +0 -189
- package/dialogconfirmdeletetask/index.es.js +0 -70
- package/dialogconfirmdeletetaskpermanently/index.es.js +0 -50
- package/dialogconfirmedit/index.es.js +0 -50
- package/dialogconfirmfinishtask/index.es.js +0 -50
- package/dialogconfirmrestoretask/index.es.js +0 -46
- package/dialogconfirmsprint/index.es.js +0 -42
- package/dialogcopyapi/index.es.js +0 -130
- package/dialogcustomdependency/index.es.js +0 -55
- package/dialogdetailchecklisttemplate/index.es.js +0 -214
- package/dialogdetailcomponent/index.es.js +0 -121
- package/dialogdetailpbi/index.es.js +0 -192
- package/dialogfinishreview/index.es.js +0 -126
- package/dialogimprovementtask/index.es.js +0 -191
- package/dialogmemberadmin/index.es.js +0 -93
- package/dialogpreparepbi/index.es.js +0 -93
- package/dialogpriorityvalue/index.es.js +0 -85
- package/dialogreportbug/index.es.js +0 -207
- package/dialogreviewleader/index.es.js +0 -280
- package/dialogsavechecklisttemplate/index.es.js +0 -127
- package/dialogselectproject/index.es.js +0 -69
- package/dialogsetduration/index.es.js +0 -109
- package/dialogsettasklink/index.es.js +0 -153
- package/dialogtestapi/index.es.js +0 -389
- package/eventlogtab/index.es.js +0 -50
- package/infotasktab/index.es.js +0 -186
- package/inputadditional/index.es.js +0 -62
- package/inputinitialname/index.d.ts +0 -118
- package/inputinitialname/index.es.js +0 -95
- package/inputrepositoryname/index.d.ts +0 -86
- package/inputrepositoryname/index.es.js +0 -41
- package/isrequiredtext/index.es.js +0 -16
- package/legend/index.es.js +0 -727
- package/legendlist/index.es.js +0 -33
- package/loading-page-BrQattYE.js +0 -1
- package/loading-page-CgfbWppy.js +0 -1
- package/loading-page-DbLuqCHa.js +0 -1
- package/loading-plane-CgfbWppy.js +0 -1
- package/loading-table-Bdr9ZhtP.js +0 -1
- package/loading-table-BzrSQlA0.js +0 -1
- package/loading-table-chOgXi94.js +0 -1
- package/no-data-Cgze_Rvp.js +0 -1
- package/no-data-Dep79CBh.js +0 -1
- package/no-data-y1X5WtcQ.js +0 -1
- package/notificationitem/index.d.ts +0 -107
- package/notificationitem/index.es.js +0 -333
- package/reviewitem/index.es.js +0 -65
- package/reviewtab/index.es.js +0 -44
- package/services/calendar.service.es.js +0 -32
- package/sonarqubesummary/index.es.js +0 -234
- package/sprintsummary/index.es.js +0 -73
- package/summaryaccordion/index.d.ts +0 -121
- package/summaryaccordion/index.es.js +0 -365
- package/taskdependency/index.es.js +0 -686
- package/taskdetail/index.d.ts +0 -82
- package/taskdetail/index.es.js +0 -491
- package/taskdetailpbi/index.d.ts +0 -35
- package/taskdetailpbi/index.es.js +0 -172
- package/taskdetailunassignedpbi/index.es.js +0 -261
- package/tasklink/index.es.js +0 -257
- package/tasklinkchangelog/index.es.js +0 -93
- package/tasklist/index.es.js +0 -92
- package/taskmore/index.es.js +0 -52
- package/taskstatusbadge/index.es.js +0 -18
- package/tasktable/index.d.ts +0 -87
- package/tasktable/index.es.js +0 -832
- package/ticket/index.es.js +0 -151
- package/tooltipspan/index.es.js +0 -30
- package/utils/updateSprintStatus.util.es.js +0 -17
- package/valueformdatainput/index.es.js +0 -70
- package/workcalendar/index.es.js +0 -351
|
@@ -1,29 +1,72 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return
|
|
1
|
+
const encodedTlds = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2";
|
|
2
|
+
const encodedUtlds = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2";
|
|
3
|
+
const assign = (target, properties) => {
|
|
4
|
+
for (const key in properties) {
|
|
5
|
+
target[key] = properties[key];
|
|
6
|
+
}
|
|
7
|
+
return target;
|
|
8
|
+
};
|
|
9
|
+
const numeric = "numeric";
|
|
10
|
+
const ascii = "ascii";
|
|
11
|
+
const alpha = "alpha";
|
|
12
|
+
const asciinumeric = "asciinumeric";
|
|
13
|
+
const alphanumeric = "alphanumeric";
|
|
14
|
+
const domain = "domain";
|
|
15
|
+
const emoji = "emoji";
|
|
16
|
+
const scheme = "scheme";
|
|
17
|
+
const slashscheme = "slashscheme";
|
|
18
|
+
const whitespace = "whitespace";
|
|
19
|
+
function registerGroup(name, groups) {
|
|
20
|
+
if (!(name in groups)) {
|
|
21
|
+
groups[name] = [];
|
|
22
|
+
}
|
|
23
|
+
return groups[name];
|
|
8
24
|
}
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
25
|
+
function addToGroups(t, flags, groups) {
|
|
26
|
+
if (flags[numeric]) {
|
|
27
|
+
flags[asciinumeric] = true;
|
|
28
|
+
flags[alphanumeric] = true;
|
|
29
|
+
}
|
|
30
|
+
if (flags[ascii]) {
|
|
31
|
+
flags[asciinumeric] = true;
|
|
32
|
+
flags[alpha] = true;
|
|
33
|
+
}
|
|
34
|
+
if (flags[asciinumeric]) {
|
|
35
|
+
flags[alphanumeric] = true;
|
|
36
|
+
}
|
|
37
|
+
if (flags[alpha]) {
|
|
38
|
+
flags[alphanumeric] = true;
|
|
39
|
+
}
|
|
40
|
+
if (flags[alphanumeric]) {
|
|
41
|
+
flags[domain] = true;
|
|
42
|
+
}
|
|
43
|
+
if (flags[emoji]) {
|
|
44
|
+
flags[domain] = true;
|
|
45
|
+
}
|
|
46
|
+
for (const k in flags) {
|
|
47
|
+
const group = registerGroup(k, groups);
|
|
48
|
+
if (group.indexOf(t) < 0) {
|
|
49
|
+
group.push(t);
|
|
50
|
+
}
|
|
14
51
|
}
|
|
15
52
|
}
|
|
16
|
-
function
|
|
17
|
-
const
|
|
18
|
-
for (const
|
|
19
|
-
|
|
20
|
-
|
|
53
|
+
function flagsForToken(t, groups) {
|
|
54
|
+
const result = {};
|
|
55
|
+
for (const c in groups) {
|
|
56
|
+
if (groups[c].indexOf(t) >= 0) {
|
|
57
|
+
result[c] = true;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return result;
|
|
21
61
|
}
|
|
22
|
-
function
|
|
23
|
-
this.j = {}
|
|
62
|
+
function State(token = null) {
|
|
63
|
+
this.j = {};
|
|
64
|
+
this.jr = [];
|
|
65
|
+
this.jd = null;
|
|
66
|
+
this.t = token;
|
|
24
67
|
}
|
|
25
|
-
|
|
26
|
-
|
|
68
|
+
State.groups = {};
|
|
69
|
+
State.prototype = {
|
|
27
70
|
accepts() {
|
|
28
71
|
return !!this.t;
|
|
29
72
|
},
|
|
@@ -33,16 +76,20 @@ p.prototype = {
|
|
|
33
76
|
* @param {string} input character or token type to transition on
|
|
34
77
|
* @returns {?State<T>} the next state, if any
|
|
35
78
|
*/
|
|
36
|
-
go(
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
79
|
+
go(input) {
|
|
80
|
+
const state = this;
|
|
81
|
+
const nextState = state.j[input];
|
|
82
|
+
if (nextState) {
|
|
83
|
+
return nextState;
|
|
84
|
+
}
|
|
85
|
+
for (let i = 0; i < state.jr.length; i++) {
|
|
86
|
+
const regex = state.jr[i][0];
|
|
87
|
+
const nextState2 = state.jr[i][1];
|
|
88
|
+
if (nextState2 && regex.test(input)) {
|
|
89
|
+
return nextState2;
|
|
90
|
+
}
|
|
44
91
|
}
|
|
45
|
-
return
|
|
92
|
+
return state.jd;
|
|
46
93
|
},
|
|
47
94
|
/**
|
|
48
95
|
* Whether the state has a transition for the given input. Set the second
|
|
@@ -51,8 +98,8 @@ p.prototype = {
|
|
|
51
98
|
* @param {string} input
|
|
52
99
|
* @param {boolean} exactOnly
|
|
53
100
|
*/
|
|
54
|
-
has(
|
|
55
|
-
return
|
|
101
|
+
has(input, exactOnly = false) {
|
|
102
|
+
return exactOnly ? input in this.j : !!this.go(input);
|
|
56
103
|
},
|
|
57
104
|
/**
|
|
58
105
|
* Short for "transition all"; create a transition from the array of items
|
|
@@ -62,9 +109,10 @@ p.prototype = {
|
|
|
62
109
|
* @param {Flags} [flags] Collections flags to add token to
|
|
63
110
|
* @param {Collections<T>} [groups] Master list of token groups
|
|
64
111
|
*/
|
|
65
|
-
ta(
|
|
66
|
-
for (let i = 0; i <
|
|
67
|
-
this.tt(
|
|
112
|
+
ta(inputs, next, flags, groups) {
|
|
113
|
+
for (let i = 0; i < inputs.length; i++) {
|
|
114
|
+
this.tt(inputs[i], next, flags, groups);
|
|
115
|
+
}
|
|
68
116
|
},
|
|
69
117
|
/**
|
|
70
118
|
* Short for "take regexp transition"; defines a transition for this state
|
|
@@ -75,10 +123,19 @@ p.prototype = {
|
|
|
75
123
|
* @param {Collections<T>} [groups] Master list of token groups
|
|
76
124
|
* @returns {State<T>} taken after the given input
|
|
77
125
|
*/
|
|
78
|
-
tr(
|
|
79
|
-
|
|
80
|
-
let
|
|
81
|
-
|
|
126
|
+
tr(regexp, next, flags, groups) {
|
|
127
|
+
groups = groups || State.groups;
|
|
128
|
+
let nextState;
|
|
129
|
+
if (next && next.j) {
|
|
130
|
+
nextState = next;
|
|
131
|
+
} else {
|
|
132
|
+
nextState = new State(next);
|
|
133
|
+
if (flags && groups) {
|
|
134
|
+
addToGroups(next, flags, groups);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
this.jr.push([regexp, nextState]);
|
|
138
|
+
return nextState;
|
|
82
139
|
},
|
|
83
140
|
/**
|
|
84
141
|
* Short for "take transitions", will take as many sequential transitions as
|
|
@@ -90,14 +147,16 @@ p.prototype = {
|
|
|
90
147
|
* @param {Collections<T>} [groups] Master list of token groups
|
|
91
148
|
* @returns {State<T>} taken after the given input
|
|
92
149
|
*/
|
|
93
|
-
ts(
|
|
94
|
-
let
|
|
95
|
-
const
|
|
96
|
-
if (!
|
|
97
|
-
return
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
150
|
+
ts(input, next, flags, groups) {
|
|
151
|
+
let state = this;
|
|
152
|
+
const len = input.length;
|
|
153
|
+
if (!len) {
|
|
154
|
+
return state;
|
|
155
|
+
}
|
|
156
|
+
for (let i = 0; i < len - 1; i++) {
|
|
157
|
+
state = state.tt(input[i]);
|
|
158
|
+
}
|
|
159
|
+
return state.tt(input[len - 1], next, flags, groups);
|
|
101
160
|
},
|
|
102
161
|
/**
|
|
103
162
|
* Short for "take transition", this is a method for building/working with
|
|
@@ -125,237 +184,463 @@ p.prototype = {
|
|
|
125
184
|
* @param {Collections<T>} [groups] Master list of groups
|
|
126
185
|
* @returns {State<T>} taken after the given input
|
|
127
186
|
*/
|
|
128
|
-
tt(
|
|
129
|
-
|
|
130
|
-
const
|
|
131
|
-
if (
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
let a, c = i.go(t);
|
|
135
|
-
if (c ? (a = new p(), M(a.j, c.j), a.jr.push.apply(a.jr, c.jr), a.jd = c.jd, a.t = c.t) : a = new p(), r) {
|
|
136
|
-
if (s)
|
|
137
|
-
if (a.t && typeof a.t == "string") {
|
|
138
|
-
const d = M(be(a.t, s), e);
|
|
139
|
-
j(r, d, s);
|
|
140
|
-
} else e && j(r, e, s);
|
|
141
|
-
a.t = r;
|
|
187
|
+
tt(input, next, flags, groups) {
|
|
188
|
+
groups = groups || State.groups;
|
|
189
|
+
const state = this;
|
|
190
|
+
if (next && next.j) {
|
|
191
|
+
state.j[input] = next;
|
|
192
|
+
return next;
|
|
142
193
|
}
|
|
143
|
-
|
|
194
|
+
const t = next;
|
|
195
|
+
let nextState, templateState = state.go(input);
|
|
196
|
+
if (templateState) {
|
|
197
|
+
nextState = new State();
|
|
198
|
+
assign(nextState.j, templateState.j);
|
|
199
|
+
nextState.jr.push.apply(nextState.jr, templateState.jr);
|
|
200
|
+
nextState.jd = templateState.jd;
|
|
201
|
+
nextState.t = templateState.t;
|
|
202
|
+
} else {
|
|
203
|
+
nextState = new State();
|
|
204
|
+
}
|
|
205
|
+
if (t) {
|
|
206
|
+
if (groups) {
|
|
207
|
+
if (nextState.t && typeof nextState.t === "string") {
|
|
208
|
+
const allFlags = assign(flagsForToken(nextState.t, groups), flags);
|
|
209
|
+
addToGroups(t, allFlags, groups);
|
|
210
|
+
} else if (flags) {
|
|
211
|
+
addToGroups(t, flags, groups);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
nextState.t = t;
|
|
215
|
+
}
|
|
216
|
+
state.j[input] = nextState;
|
|
217
|
+
return nextState;
|
|
144
218
|
}
|
|
145
219
|
};
|
|
146
|
-
const
|
|
147
|
-
|
|
220
|
+
const ta = (state, input, next, flags, groups) => state.ta(input, next, flags, groups);
|
|
221
|
+
const tr = (state, regexp, next, flags, groups) => state.tr(regexp, next, flags, groups);
|
|
222
|
+
const ts = (state, input, next, flags, groups) => state.ts(input, next, flags, groups);
|
|
223
|
+
const tt = (state, input, next, flags, groups) => state.tt(input, next, flags, groups);
|
|
224
|
+
const WORD = "WORD";
|
|
225
|
+
const UWORD = "UWORD";
|
|
226
|
+
const ASCIINUMERICAL = "ASCIINUMERICAL";
|
|
227
|
+
const ALPHANUMERICAL = "ALPHANUMERICAL";
|
|
228
|
+
const LOCALHOST = "LOCALHOST";
|
|
229
|
+
const TLD = "TLD";
|
|
230
|
+
const UTLD = "UTLD";
|
|
231
|
+
const SCHEME = "SCHEME";
|
|
232
|
+
const SLASH_SCHEME = "SLASH_SCHEME";
|
|
233
|
+
const NUM = "NUM";
|
|
234
|
+
const WS = "WS";
|
|
235
|
+
const NL = "NL";
|
|
236
|
+
const OPENBRACE = "OPENBRACE";
|
|
237
|
+
const CLOSEBRACE = "CLOSEBRACE";
|
|
238
|
+
const OPENBRACKET = "OPENBRACKET";
|
|
239
|
+
const CLOSEBRACKET = "CLOSEBRACKET";
|
|
240
|
+
const OPENPAREN = "OPENPAREN";
|
|
241
|
+
const CLOSEPAREN = "CLOSEPAREN";
|
|
242
|
+
const OPENANGLEBRACKET = "OPENANGLEBRACKET";
|
|
243
|
+
const CLOSEANGLEBRACKET = "CLOSEANGLEBRACKET";
|
|
244
|
+
const FULLWIDTHLEFTPAREN = "FULLWIDTHLEFTPAREN";
|
|
245
|
+
const FULLWIDTHRIGHTPAREN = "FULLWIDTHRIGHTPAREN";
|
|
246
|
+
const LEFTCORNERBRACKET = "LEFTCORNERBRACKET";
|
|
247
|
+
const RIGHTCORNERBRACKET = "RIGHTCORNERBRACKET";
|
|
248
|
+
const LEFTWHITECORNERBRACKET = "LEFTWHITECORNERBRACKET";
|
|
249
|
+
const RIGHTWHITECORNERBRACKET = "RIGHTWHITECORNERBRACKET";
|
|
250
|
+
const FULLWIDTHLESSTHAN = "FULLWIDTHLESSTHAN";
|
|
251
|
+
const FULLWIDTHGREATERTHAN = "FULLWIDTHGREATERTHAN";
|
|
252
|
+
const AMPERSAND = "AMPERSAND";
|
|
253
|
+
const APOSTROPHE = "APOSTROPHE";
|
|
254
|
+
const ASTERISK = "ASTERISK";
|
|
255
|
+
const AT = "AT";
|
|
256
|
+
const BACKSLASH = "BACKSLASH";
|
|
257
|
+
const BACKTICK = "BACKTICK";
|
|
258
|
+
const CARET = "CARET";
|
|
259
|
+
const COLON = "COLON";
|
|
260
|
+
const COMMA = "COMMA";
|
|
261
|
+
const DOLLAR = "DOLLAR";
|
|
262
|
+
const DOT = "DOT";
|
|
263
|
+
const EQUALS = "EQUALS";
|
|
264
|
+
const EXCLAMATION = "EXCLAMATION";
|
|
265
|
+
const HYPHEN = "HYPHEN";
|
|
266
|
+
const PERCENT = "PERCENT";
|
|
267
|
+
const PIPE = "PIPE";
|
|
268
|
+
const PLUS = "PLUS";
|
|
269
|
+
const POUND = "POUND";
|
|
270
|
+
const QUERY = "QUERY";
|
|
271
|
+
const QUOTE = "QUOTE";
|
|
272
|
+
const FULLWIDTHMIDDLEDOT = "FULLWIDTHMIDDLEDOT";
|
|
273
|
+
const SEMI = "SEMI";
|
|
274
|
+
const SLASH = "SLASH";
|
|
275
|
+
const TILDE = "TILDE";
|
|
276
|
+
const UNDERSCORE = "UNDERSCORE";
|
|
277
|
+
const EMOJI$1 = "EMOJI";
|
|
278
|
+
const SYM = "SYM";
|
|
279
|
+
var tk = /* @__PURE__ */ Object.freeze({
|
|
148
280
|
__proto__: null,
|
|
149
|
-
WORD
|
|
150
|
-
UWORD
|
|
151
|
-
ASCIINUMERICAL
|
|
152
|
-
ALPHANUMERICAL
|
|
153
|
-
LOCALHOST
|
|
154
|
-
TLD
|
|
155
|
-
UTLD
|
|
156
|
-
SCHEME
|
|
157
|
-
SLASH_SCHEME
|
|
158
|
-
NUM
|
|
159
|
-
WS
|
|
160
|
-
NL
|
|
161
|
-
OPENBRACE
|
|
162
|
-
CLOSEBRACE
|
|
163
|
-
OPENBRACKET
|
|
164
|
-
CLOSEBRACKET
|
|
165
|
-
OPENPAREN
|
|
166
|
-
CLOSEPAREN
|
|
167
|
-
OPENANGLEBRACKET
|
|
168
|
-
CLOSEANGLEBRACKET
|
|
169
|
-
FULLWIDTHLEFTPAREN
|
|
170
|
-
FULLWIDTHRIGHTPAREN
|
|
171
|
-
LEFTCORNERBRACKET
|
|
172
|
-
RIGHTCORNERBRACKET
|
|
173
|
-
LEFTWHITECORNERBRACKET
|
|
174
|
-
RIGHTWHITECORNERBRACKET
|
|
175
|
-
FULLWIDTHLESSTHAN
|
|
176
|
-
FULLWIDTHGREATERTHAN
|
|
177
|
-
AMPERSAND
|
|
178
|
-
APOSTROPHE
|
|
179
|
-
ASTERISK
|
|
180
|
-
AT
|
|
181
|
-
BACKSLASH
|
|
182
|
-
BACKTICK
|
|
183
|
-
CARET
|
|
184
|
-
COLON
|
|
185
|
-
COMMA
|
|
186
|
-
DOLLAR
|
|
187
|
-
DOT
|
|
188
|
-
EQUALS
|
|
189
|
-
EXCLAMATION
|
|
190
|
-
HYPHEN
|
|
191
|
-
PERCENT
|
|
192
|
-
PIPE
|
|
193
|
-
PLUS
|
|
194
|
-
POUND
|
|
195
|
-
QUERY
|
|
196
|
-
QUOTE
|
|
197
|
-
FULLWIDTHMIDDLEDOT
|
|
198
|
-
SEMI
|
|
199
|
-
SLASH
|
|
200
|
-
TILDE
|
|
201
|
-
UNDERSCORE
|
|
202
|
-
EMOJI:
|
|
203
|
-
SYM
|
|
281
|
+
WORD,
|
|
282
|
+
UWORD,
|
|
283
|
+
ASCIINUMERICAL,
|
|
284
|
+
ALPHANUMERICAL,
|
|
285
|
+
LOCALHOST,
|
|
286
|
+
TLD,
|
|
287
|
+
UTLD,
|
|
288
|
+
SCHEME,
|
|
289
|
+
SLASH_SCHEME,
|
|
290
|
+
NUM,
|
|
291
|
+
WS,
|
|
292
|
+
NL,
|
|
293
|
+
OPENBRACE,
|
|
294
|
+
CLOSEBRACE,
|
|
295
|
+
OPENBRACKET,
|
|
296
|
+
CLOSEBRACKET,
|
|
297
|
+
OPENPAREN,
|
|
298
|
+
CLOSEPAREN,
|
|
299
|
+
OPENANGLEBRACKET,
|
|
300
|
+
CLOSEANGLEBRACKET,
|
|
301
|
+
FULLWIDTHLEFTPAREN,
|
|
302
|
+
FULLWIDTHRIGHTPAREN,
|
|
303
|
+
LEFTCORNERBRACKET,
|
|
304
|
+
RIGHTCORNERBRACKET,
|
|
305
|
+
LEFTWHITECORNERBRACKET,
|
|
306
|
+
RIGHTWHITECORNERBRACKET,
|
|
307
|
+
FULLWIDTHLESSTHAN,
|
|
308
|
+
FULLWIDTHGREATERTHAN,
|
|
309
|
+
AMPERSAND,
|
|
310
|
+
APOSTROPHE,
|
|
311
|
+
ASTERISK,
|
|
312
|
+
AT,
|
|
313
|
+
BACKSLASH,
|
|
314
|
+
BACKTICK,
|
|
315
|
+
CARET,
|
|
316
|
+
COLON,
|
|
317
|
+
COMMA,
|
|
318
|
+
DOLLAR,
|
|
319
|
+
DOT,
|
|
320
|
+
EQUALS,
|
|
321
|
+
EXCLAMATION,
|
|
322
|
+
HYPHEN,
|
|
323
|
+
PERCENT,
|
|
324
|
+
PIPE,
|
|
325
|
+
PLUS,
|
|
326
|
+
POUND,
|
|
327
|
+
QUERY,
|
|
328
|
+
QUOTE,
|
|
329
|
+
FULLWIDTHMIDDLEDOT,
|
|
330
|
+
SEMI,
|
|
331
|
+
SLASH,
|
|
332
|
+
TILDE,
|
|
333
|
+
UNDERSCORE,
|
|
334
|
+
EMOJI: EMOJI$1,
|
|
335
|
+
SYM
|
|
204
336
|
});
|
|
205
|
-
const
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
337
|
+
const ASCII_LETTER = /[a-z]/;
|
|
338
|
+
const LETTER = new RegExp("\\p{L}", "u");
|
|
339
|
+
const EMOJI = new RegExp("\\p{Emoji}", "u");
|
|
340
|
+
const DIGIT = /\d/;
|
|
341
|
+
const SPACE = /\s/;
|
|
342
|
+
const CR = "\r";
|
|
343
|
+
const LF = "\n";
|
|
344
|
+
const EMOJI_VARIATION = "️";
|
|
345
|
+
const EMOJI_JOINER = "";
|
|
346
|
+
const OBJECT_REPLACEMENT = "";
|
|
347
|
+
let tlds = null, utlds = null;
|
|
348
|
+
function init$2(customSchemes = []) {
|
|
349
|
+
const groups = {};
|
|
350
|
+
State.groups = groups;
|
|
351
|
+
const Start = new State();
|
|
352
|
+
if (tlds == null) {
|
|
353
|
+
tlds = decodeTlds(encodedTlds);
|
|
354
|
+
}
|
|
355
|
+
if (utlds == null) {
|
|
356
|
+
utlds = decodeTlds(encodedUtlds);
|
|
357
|
+
}
|
|
358
|
+
tt(Start, "'", APOSTROPHE);
|
|
359
|
+
tt(Start, "{", OPENBRACE);
|
|
360
|
+
tt(Start, "}", CLOSEBRACE);
|
|
361
|
+
tt(Start, "[", OPENBRACKET);
|
|
362
|
+
tt(Start, "]", CLOSEBRACKET);
|
|
363
|
+
tt(Start, "(", OPENPAREN);
|
|
364
|
+
tt(Start, ")", CLOSEPAREN);
|
|
365
|
+
tt(Start, "<", OPENANGLEBRACKET);
|
|
366
|
+
tt(Start, ">", CLOSEANGLEBRACKET);
|
|
367
|
+
tt(Start, "(", FULLWIDTHLEFTPAREN);
|
|
368
|
+
tt(Start, ")", FULLWIDTHRIGHTPAREN);
|
|
369
|
+
tt(Start, "「", LEFTCORNERBRACKET);
|
|
370
|
+
tt(Start, "」", RIGHTCORNERBRACKET);
|
|
371
|
+
tt(Start, "『", LEFTWHITECORNERBRACKET);
|
|
372
|
+
tt(Start, "』", RIGHTWHITECORNERBRACKET);
|
|
373
|
+
tt(Start, "<", FULLWIDTHLESSTHAN);
|
|
374
|
+
tt(Start, ">", FULLWIDTHGREATERTHAN);
|
|
375
|
+
tt(Start, "&", AMPERSAND);
|
|
376
|
+
tt(Start, "*", ASTERISK);
|
|
377
|
+
tt(Start, "@", AT);
|
|
378
|
+
tt(Start, "`", BACKTICK);
|
|
379
|
+
tt(Start, "^", CARET);
|
|
380
|
+
tt(Start, ":", COLON);
|
|
381
|
+
tt(Start, ",", COMMA);
|
|
382
|
+
tt(Start, "$", DOLLAR);
|
|
383
|
+
tt(Start, ".", DOT);
|
|
384
|
+
tt(Start, "=", EQUALS);
|
|
385
|
+
tt(Start, "!", EXCLAMATION);
|
|
386
|
+
tt(Start, "-", HYPHEN);
|
|
387
|
+
tt(Start, "%", PERCENT);
|
|
388
|
+
tt(Start, "|", PIPE);
|
|
389
|
+
tt(Start, "+", PLUS);
|
|
390
|
+
tt(Start, "#", POUND);
|
|
391
|
+
tt(Start, "?", QUERY);
|
|
392
|
+
tt(Start, '"', QUOTE);
|
|
393
|
+
tt(Start, "/", SLASH);
|
|
394
|
+
tt(Start, ";", SEMI);
|
|
395
|
+
tt(Start, "~", TILDE);
|
|
396
|
+
tt(Start, "_", UNDERSCORE);
|
|
397
|
+
tt(Start, "\\", BACKSLASH);
|
|
398
|
+
tt(Start, "・", FULLWIDTHMIDDLEDOT);
|
|
399
|
+
const Num = tr(Start, DIGIT, NUM, {
|
|
400
|
+
[numeric]: true
|
|
401
|
+
});
|
|
402
|
+
tr(Num, DIGIT, Num);
|
|
403
|
+
const Asciinumeric = tr(Num, ASCII_LETTER, ASCIINUMERICAL, {
|
|
404
|
+
[asciinumeric]: true
|
|
405
|
+
});
|
|
406
|
+
const Alphanumeric = tr(Num, LETTER, ALPHANUMERICAL, {
|
|
407
|
+
[alphanumeric]: true
|
|
408
|
+
});
|
|
409
|
+
const Word = tr(Start, ASCII_LETTER, WORD, {
|
|
410
|
+
[ascii]: true
|
|
411
|
+
});
|
|
412
|
+
tr(Word, DIGIT, Asciinumeric);
|
|
413
|
+
tr(Word, ASCII_LETTER, Word);
|
|
414
|
+
tr(Asciinumeric, DIGIT, Asciinumeric);
|
|
415
|
+
tr(Asciinumeric, ASCII_LETTER, Asciinumeric);
|
|
416
|
+
const UWord = tr(Start, LETTER, UWORD, {
|
|
417
|
+
[alpha]: true
|
|
215
418
|
});
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
419
|
+
tr(UWord, ASCII_LETTER);
|
|
420
|
+
tr(UWord, DIGIT, Alphanumeric);
|
|
421
|
+
tr(UWord, LETTER, UWord);
|
|
422
|
+
tr(Alphanumeric, DIGIT, Alphanumeric);
|
|
423
|
+
tr(Alphanumeric, ASCII_LETTER);
|
|
424
|
+
tr(Alphanumeric, LETTER, Alphanumeric);
|
|
425
|
+
const Nl2 = tt(Start, LF, NL, {
|
|
426
|
+
[whitespace]: true
|
|
223
427
|
});
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
[Ft]: !0
|
|
428
|
+
const Cr = tt(Start, CR, WS, {
|
|
429
|
+
[whitespace]: true
|
|
227
430
|
});
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
[Pt]: !0
|
|
231
|
-
}), m = o(e, oe, $t, {
|
|
232
|
-
[Pt]: !0
|
|
233
|
-
}), E = f(e, jt, $t, {
|
|
234
|
-
[Pt]: !0
|
|
431
|
+
const Ws = tr(Start, SPACE, WS, {
|
|
432
|
+
[whitespace]: true
|
|
235
433
|
});
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
434
|
+
tt(Start, OBJECT_REPLACEMENT, Ws);
|
|
435
|
+
tt(Cr, LF, Nl2);
|
|
436
|
+
tt(Cr, OBJECT_REPLACEMENT, Ws);
|
|
437
|
+
tr(Cr, SPACE, Ws);
|
|
438
|
+
tt(Ws, CR);
|
|
439
|
+
tt(Ws, LF);
|
|
440
|
+
tr(Ws, SPACE, Ws);
|
|
441
|
+
tt(Ws, OBJECT_REPLACEMENT, Ws);
|
|
442
|
+
const Emoji = tr(Start, EMOJI, EMOJI$1, {
|
|
443
|
+
[emoji]: true
|
|
239
444
|
});
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
const
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
ascii:
|
|
257
|
-
},
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
445
|
+
tt(Emoji, "#");
|
|
446
|
+
tr(Emoji, EMOJI, Emoji);
|
|
447
|
+
tt(Emoji, EMOJI_VARIATION, Emoji);
|
|
448
|
+
const EmojiJoiner = tt(Emoji, EMOJI_JOINER);
|
|
449
|
+
tt(EmojiJoiner, "#");
|
|
450
|
+
tr(EmojiJoiner, EMOJI, Emoji);
|
|
451
|
+
const wordjr = [[ASCII_LETTER, Word], [DIGIT, Asciinumeric]];
|
|
452
|
+
const uwordjr = [[ASCII_LETTER, null], [LETTER, UWord], [DIGIT, Alphanumeric]];
|
|
453
|
+
for (let i = 0; i < tlds.length; i++) {
|
|
454
|
+
fastts(Start, tlds[i], TLD, WORD, wordjr);
|
|
455
|
+
}
|
|
456
|
+
for (let i = 0; i < utlds.length; i++) {
|
|
457
|
+
fastts(Start, utlds[i], UTLD, UWORD, uwordjr);
|
|
458
|
+
}
|
|
459
|
+
addToGroups(TLD, {
|
|
460
|
+
tld: true,
|
|
461
|
+
ascii: true
|
|
462
|
+
}, groups);
|
|
463
|
+
addToGroups(UTLD, {
|
|
464
|
+
utld: true,
|
|
465
|
+
alpha: true
|
|
466
|
+
}, groups);
|
|
467
|
+
fastts(Start, "file", SCHEME, WORD, wordjr);
|
|
468
|
+
fastts(Start, "mailto", SCHEME, WORD, wordjr);
|
|
469
|
+
fastts(Start, "http", SLASH_SCHEME, WORD, wordjr);
|
|
470
|
+
fastts(Start, "https", SLASH_SCHEME, WORD, wordjr);
|
|
471
|
+
fastts(Start, "ftp", SLASH_SCHEME, WORD, wordjr);
|
|
472
|
+
fastts(Start, "ftps", SLASH_SCHEME, WORD, wordjr);
|
|
473
|
+
addToGroups(SCHEME, {
|
|
474
|
+
scheme: true,
|
|
475
|
+
ascii: true
|
|
476
|
+
}, groups);
|
|
477
|
+
addToGroups(SLASH_SCHEME, {
|
|
478
|
+
slashscheme: true,
|
|
479
|
+
ascii: true
|
|
480
|
+
}, groups);
|
|
481
|
+
customSchemes = customSchemes.sort((a, b) => a[0] > b[0] ? 1 : -1);
|
|
482
|
+
for (let i = 0; i < customSchemes.length; i++) {
|
|
483
|
+
const sch = customSchemes[i][0];
|
|
484
|
+
const optionalSlashSlash = customSchemes[i][1];
|
|
485
|
+
const flags = optionalSlashSlash ? {
|
|
486
|
+
[scheme]: true
|
|
264
487
|
} : {
|
|
265
|
-
[
|
|
488
|
+
[slashscheme]: true
|
|
266
489
|
};
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
}
|
|
490
|
+
if (sch.indexOf("-") >= 0) {
|
|
491
|
+
flags[domain] = true;
|
|
492
|
+
} else if (!ASCII_LETTER.test(sch)) {
|
|
493
|
+
flags[numeric] = true;
|
|
494
|
+
} else if (DIGIT.test(sch)) {
|
|
495
|
+
flags[asciinumeric] = true;
|
|
496
|
+
} else {
|
|
497
|
+
flags[ascii] = true;
|
|
498
|
+
}
|
|
499
|
+
ts(Start, sch, sch, flags);
|
|
500
|
+
}
|
|
501
|
+
ts(Start, "localhost", LOCALHOST, {
|
|
502
|
+
ascii: true
|
|
503
|
+
});
|
|
504
|
+
Start.jd = new State(SYM);
|
|
505
|
+
return {
|
|
506
|
+
start: Start,
|
|
507
|
+
tokens: assign({
|
|
508
|
+
groups
|
|
509
|
+
}, tk)
|
|
276
510
|
};
|
|
277
511
|
}
|
|
278
|
-
function
|
|
279
|
-
const
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
512
|
+
function run$1(start, str) {
|
|
513
|
+
const iterable = stringToArray(str.replace(/[A-Z]/g, (c) => c.toLowerCase()));
|
|
514
|
+
const charCount = iterable.length;
|
|
515
|
+
const tokens = [];
|
|
516
|
+
let cursor = 0;
|
|
517
|
+
let charCursor = 0;
|
|
518
|
+
while (charCursor < charCount) {
|
|
519
|
+
let state = start;
|
|
520
|
+
let nextState = null;
|
|
521
|
+
let tokenLength = 0;
|
|
522
|
+
let latestAccepting = null;
|
|
523
|
+
let sinceAccepts = -1;
|
|
524
|
+
let charsSinceAccepts = -1;
|
|
525
|
+
while (charCursor < charCount && (nextState = state.go(iterable[charCursor]))) {
|
|
526
|
+
state = nextState;
|
|
527
|
+
if (state.accepts()) {
|
|
528
|
+
sinceAccepts = 0;
|
|
529
|
+
charsSinceAccepts = 0;
|
|
530
|
+
latestAccepting = state;
|
|
531
|
+
} else if (sinceAccepts >= 0) {
|
|
532
|
+
sinceAccepts += iterable[charCursor].length;
|
|
533
|
+
charsSinceAccepts++;
|
|
534
|
+
}
|
|
535
|
+
tokenLength += iterable[charCursor].length;
|
|
536
|
+
cursor += iterable[charCursor].length;
|
|
537
|
+
charCursor++;
|
|
538
|
+
}
|
|
539
|
+
cursor -= sinceAccepts;
|
|
540
|
+
charCursor -= charsSinceAccepts;
|
|
541
|
+
tokenLength -= sinceAccepts;
|
|
542
|
+
tokens.push({
|
|
543
|
+
t: latestAccepting.t,
|
|
287
544
|
// token type/name
|
|
288
|
-
v:
|
|
545
|
+
v: str.slice(cursor - tokenLength, cursor),
|
|
289
546
|
// string value
|
|
290
|
-
s:
|
|
547
|
+
s: cursor - tokenLength,
|
|
291
548
|
// start index
|
|
292
|
-
e:
|
|
549
|
+
e: cursor
|
|
293
550
|
// end index (excluding)
|
|
294
551
|
});
|
|
295
552
|
}
|
|
296
|
-
return
|
|
553
|
+
return tokens;
|
|
297
554
|
}
|
|
298
|
-
function
|
|
299
|
-
const
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
555
|
+
function stringToArray(str) {
|
|
556
|
+
const result = [];
|
|
557
|
+
const len = str.length;
|
|
558
|
+
let index = 0;
|
|
559
|
+
while (index < len) {
|
|
560
|
+
let first = str.charCodeAt(index);
|
|
561
|
+
let second;
|
|
562
|
+
let char = first < 55296 || first > 56319 || index + 1 === len || (second = str.charCodeAt(index + 1)) < 56320 || second > 57343 ? str[index] : str.slice(index, index + 2);
|
|
563
|
+
result.push(char);
|
|
564
|
+
index += char.length;
|
|
565
|
+
}
|
|
566
|
+
return result;
|
|
306
567
|
}
|
|
307
|
-
function
|
|
308
|
-
let
|
|
309
|
-
const
|
|
310
|
-
for (let
|
|
311
|
-
const
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
568
|
+
function fastts(state, input, t, defaultt, jr) {
|
|
569
|
+
let next;
|
|
570
|
+
const len = input.length;
|
|
571
|
+
for (let i = 0; i < len - 1; i++) {
|
|
572
|
+
const char = input[i];
|
|
573
|
+
if (state.j[char]) {
|
|
574
|
+
next = state.j[char];
|
|
575
|
+
} else {
|
|
576
|
+
next = new State(defaultt);
|
|
577
|
+
next.jr = jr.slice();
|
|
578
|
+
state.j[char] = next;
|
|
579
|
+
}
|
|
580
|
+
state = next;
|
|
581
|
+
}
|
|
582
|
+
next = new State(t);
|
|
583
|
+
next.jr = jr.slice();
|
|
584
|
+
state.j[input[len - 1]] = next;
|
|
585
|
+
return next;
|
|
315
586
|
}
|
|
316
|
-
function
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
587
|
+
function decodeTlds(encoded) {
|
|
588
|
+
const words = [];
|
|
589
|
+
const stack = [];
|
|
590
|
+
let i = 0;
|
|
591
|
+
let digits = "0123456789";
|
|
592
|
+
while (i < encoded.length) {
|
|
593
|
+
let popDigitCount = 0;
|
|
594
|
+
while (digits.indexOf(encoded[i + popDigitCount]) >= 0) {
|
|
595
|
+
popDigitCount++;
|
|
596
|
+
}
|
|
597
|
+
if (popDigitCount > 0) {
|
|
598
|
+
words.push(stack.join(""));
|
|
599
|
+
for (let popCount = parseInt(encoded.substring(i, i + popDigitCount), 10); popCount > 0; popCount--) {
|
|
600
|
+
stack.pop();
|
|
601
|
+
}
|
|
602
|
+
i += popDigitCount;
|
|
603
|
+
} else {
|
|
604
|
+
stack.push(encoded[i]);
|
|
605
|
+
i++;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
return words;
|
|
332
609
|
}
|
|
333
|
-
const
|
|
610
|
+
const defaults = {
|
|
334
611
|
defaultProtocol: "http",
|
|
335
612
|
events: null,
|
|
336
|
-
format:
|
|
337
|
-
formatHref:
|
|
338
|
-
nl2br:
|
|
613
|
+
format: noop,
|
|
614
|
+
formatHref: noop,
|
|
615
|
+
nl2br: false,
|
|
339
616
|
tagName: "a",
|
|
340
617
|
target: null,
|
|
341
618
|
rel: null,
|
|
342
|
-
validate:
|
|
343
|
-
truncate:
|
|
619
|
+
validate: true,
|
|
620
|
+
truncate: Infinity,
|
|
344
621
|
className: null,
|
|
345
622
|
attributes: null,
|
|
346
623
|
ignoreTags: [],
|
|
347
624
|
render: null
|
|
348
625
|
};
|
|
349
|
-
function
|
|
350
|
-
let
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
626
|
+
function Options(opts, defaultRender = null) {
|
|
627
|
+
let o = assign({}, defaults);
|
|
628
|
+
if (opts) {
|
|
629
|
+
o = assign(o, opts instanceof Options ? opts.o : opts);
|
|
630
|
+
}
|
|
631
|
+
const ignoredTags = o.ignoreTags;
|
|
632
|
+
const uppercaseIgnoredTags = [];
|
|
633
|
+
for (let i = 0; i < ignoredTags.length; i++) {
|
|
634
|
+
uppercaseIgnoredTags.push(ignoredTags[i].toUpperCase());
|
|
635
|
+
}
|
|
636
|
+
this.o = o;
|
|
637
|
+
if (defaultRender) {
|
|
638
|
+
this.defaultRender = defaultRender;
|
|
639
|
+
}
|
|
640
|
+
this.ignoreTags = uppercaseIgnoredTags;
|
|
356
641
|
}
|
|
357
|
-
|
|
358
|
-
o:
|
|
642
|
+
Options.prototype = {
|
|
643
|
+
o: defaults,
|
|
359
644
|
/**
|
|
360
645
|
* @type string[]
|
|
361
646
|
*/
|
|
@@ -364,8 +649,8 @@ te.prototype = {
|
|
|
364
649
|
* @param {IntermediateRepresentation} ir
|
|
365
650
|
* @returns {any}
|
|
366
651
|
*/
|
|
367
|
-
defaultRender(
|
|
368
|
-
return
|
|
652
|
+
defaultRender(ir) {
|
|
653
|
+
return ir;
|
|
369
654
|
},
|
|
370
655
|
/**
|
|
371
656
|
* Returns true or false based on whether a token should be displayed as a
|
|
@@ -373,8 +658,8 @@ te.prototype = {
|
|
|
373
658
|
* @param {MultiToken} token
|
|
374
659
|
* @returns {boolean}
|
|
375
660
|
*/
|
|
376
|
-
check(
|
|
377
|
-
return this.get("validate",
|
|
661
|
+
check(token) {
|
|
662
|
+
return this.get("validate", token.toString(), token);
|
|
378
663
|
},
|
|
379
664
|
// Private methods
|
|
380
665
|
/**
|
|
@@ -388,10 +673,21 @@ te.prototype = {
|
|
|
388
673
|
* @param {MultiToken} [token] The token from linkify.tokenize
|
|
389
674
|
* @returns {Opts[K] | any}
|
|
390
675
|
*/
|
|
391
|
-
get(
|
|
392
|
-
const
|
|
393
|
-
let
|
|
394
|
-
|
|
676
|
+
get(key, operator, token) {
|
|
677
|
+
const isCallable = operator != null;
|
|
678
|
+
let option = this.o[key];
|
|
679
|
+
if (!option) {
|
|
680
|
+
return option;
|
|
681
|
+
}
|
|
682
|
+
if (typeof option === "object") {
|
|
683
|
+
option = token.t in option ? option[token.t] : defaults[key];
|
|
684
|
+
if (typeof option === "function" && isCallable) {
|
|
685
|
+
option = option(operator, token);
|
|
686
|
+
}
|
|
687
|
+
} else if (typeof option === "function" && isCallable) {
|
|
688
|
+
option = option(operator, token.t, token);
|
|
689
|
+
}
|
|
690
|
+
return option;
|
|
395
691
|
},
|
|
396
692
|
/**
|
|
397
693
|
* @template {keyof Opts} L
|
|
@@ -400,9 +696,12 @@ te.prototype = {
|
|
|
400
696
|
* @param {MultiToken} [token]
|
|
401
697
|
* @returns {Opts[L] | any}
|
|
402
698
|
*/
|
|
403
|
-
getObj(
|
|
404
|
-
let
|
|
405
|
-
|
|
699
|
+
getObj(key, operator, token) {
|
|
700
|
+
let obj = this.o[key];
|
|
701
|
+
if (typeof obj === "function" && operator != null) {
|
|
702
|
+
obj = obj(operator, token.t, token);
|
|
703
|
+
}
|
|
704
|
+
return obj;
|
|
406
705
|
},
|
|
407
706
|
/**
|
|
408
707
|
* Convert the given token to a rendered element that may be added to the
|
|
@@ -411,19 +710,22 @@ te.prototype = {
|
|
|
411
710
|
* @returns {any} Render result; e.g., HTML string, DOM element, React
|
|
412
711
|
* Component, etc.
|
|
413
712
|
*/
|
|
414
|
-
render(
|
|
415
|
-
const
|
|
416
|
-
|
|
713
|
+
render(token) {
|
|
714
|
+
const ir = token.render(this);
|
|
715
|
+
const renderFn = this.get("render", null, token) || this.defaultRender;
|
|
716
|
+
return renderFn(ir, token.t, token);
|
|
417
717
|
}
|
|
418
718
|
};
|
|
419
|
-
function
|
|
420
|
-
return
|
|
719
|
+
function noop(val) {
|
|
720
|
+
return val;
|
|
421
721
|
}
|
|
422
|
-
function
|
|
423
|
-
this.t = "token"
|
|
722
|
+
function MultiToken(value, tokens) {
|
|
723
|
+
this.t = "token";
|
|
724
|
+
this.v = value;
|
|
725
|
+
this.tk = tokens;
|
|
424
726
|
}
|
|
425
|
-
|
|
426
|
-
isLink:
|
|
727
|
+
MultiToken.prototype = {
|
|
728
|
+
isLink: false,
|
|
427
729
|
/**
|
|
428
730
|
* Return the string this token represents.
|
|
429
731
|
* @return {string}
|
|
@@ -437,24 +739,26 @@ Ae.prototype = {
|
|
|
437
739
|
* @param {string} [scheme]
|
|
438
740
|
* @return {string}
|
|
439
741
|
*/
|
|
440
|
-
toHref(
|
|
742
|
+
toHref(scheme2) {
|
|
441
743
|
return this.toString();
|
|
442
744
|
},
|
|
443
745
|
/**
|
|
444
746
|
* @param {Options} options Formatting options
|
|
445
747
|
* @returns {string}
|
|
446
748
|
*/
|
|
447
|
-
toFormattedString(
|
|
448
|
-
const
|
|
449
|
-
|
|
749
|
+
toFormattedString(options) {
|
|
750
|
+
const val = this.toString();
|
|
751
|
+
const truncate = options.get("truncate", val, this);
|
|
752
|
+
const formatted = options.get("format", val, this);
|
|
753
|
+
return truncate && formatted.length > truncate ? formatted.substring(0, truncate) + "…" : formatted;
|
|
450
754
|
},
|
|
451
755
|
/**
|
|
452
756
|
*
|
|
453
757
|
* @param {Options} options
|
|
454
758
|
* @returns {string}
|
|
455
759
|
*/
|
|
456
|
-
toFormattedHref(
|
|
457
|
-
return
|
|
760
|
+
toFormattedHref(options) {
|
|
761
|
+
return options.get("formatHref", this.toHref(options.get("defaultProtocol")), this);
|
|
458
762
|
},
|
|
459
763
|
/**
|
|
460
764
|
* The start index of this token in the original input string
|
|
@@ -480,12 +784,12 @@ Ae.prototype = {
|
|
|
480
784
|
@method toObject
|
|
481
785
|
@param {string} [protocol] `'http'` by default
|
|
482
786
|
*/
|
|
483
|
-
toObject(
|
|
787
|
+
toObject(protocol = defaults.defaultProtocol) {
|
|
484
788
|
return {
|
|
485
789
|
type: this.t,
|
|
486
790
|
value: this.toString(),
|
|
487
791
|
isLink: this.isLink,
|
|
488
|
-
href: this.toHref(
|
|
792
|
+
href: this.toHref(protocol),
|
|
489
793
|
start: this.startIndex(),
|
|
490
794
|
end: this.endIndex()
|
|
491
795
|
};
|
|
@@ -494,12 +798,12 @@ Ae.prototype = {
|
|
|
494
798
|
*
|
|
495
799
|
* @param {Options} options Formatting option
|
|
496
800
|
*/
|
|
497
|
-
toFormattedObject(
|
|
801
|
+
toFormattedObject(options) {
|
|
498
802
|
return {
|
|
499
803
|
type: this.t,
|
|
500
|
-
value: this.toFormattedString(
|
|
804
|
+
value: this.toFormattedString(options),
|
|
501
805
|
isLink: this.isLink,
|
|
502
|
-
href: this.toFormattedHref(
|
|
806
|
+
href: this.toFormattedHref(options),
|
|
503
807
|
start: this.startIndex(),
|
|
504
808
|
end: this.endIndex()
|
|
505
809
|
};
|
|
@@ -509,40 +813,69 @@ Ae.prototype = {
|
|
|
509
813
|
* @param {Options} options
|
|
510
814
|
* @returns {boolean}
|
|
511
815
|
*/
|
|
512
|
-
validate(
|
|
513
|
-
return
|
|
816
|
+
validate(options) {
|
|
817
|
+
return options.get("validate", this.toString(), this);
|
|
514
818
|
},
|
|
515
819
|
/**
|
|
516
820
|
* Return an object that represents how this link should be rendered.
|
|
517
821
|
* @param {Options} options Formattinng options
|
|
518
822
|
*/
|
|
519
|
-
render(
|
|
520
|
-
const
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
823
|
+
render(options) {
|
|
824
|
+
const token = this;
|
|
825
|
+
const href = this.toHref(options.get("defaultProtocol"));
|
|
826
|
+
const formattedHref = options.get("formatHref", href, this);
|
|
827
|
+
const tagName = options.get("tagName", href, token);
|
|
828
|
+
const content = this.toFormattedString(options);
|
|
829
|
+
const attributes = {};
|
|
830
|
+
const className = options.get("className", href, token);
|
|
831
|
+
const target = options.get("target", href, token);
|
|
832
|
+
const rel = options.get("rel", href, token);
|
|
833
|
+
const attrs = options.getObj("attributes", href, token);
|
|
834
|
+
const eventListeners = options.getObj("events", href, token);
|
|
835
|
+
attributes.href = formattedHref;
|
|
836
|
+
if (className) {
|
|
837
|
+
attributes.class = className;
|
|
838
|
+
}
|
|
839
|
+
if (target) {
|
|
840
|
+
attributes.target = target;
|
|
841
|
+
}
|
|
842
|
+
if (rel) {
|
|
843
|
+
attributes.rel = rel;
|
|
844
|
+
}
|
|
845
|
+
if (attrs) {
|
|
846
|
+
assign(attributes, attrs);
|
|
847
|
+
}
|
|
848
|
+
return {
|
|
849
|
+
tagName,
|
|
850
|
+
attributes,
|
|
851
|
+
content,
|
|
852
|
+
eventListeners
|
|
526
853
|
};
|
|
527
854
|
}
|
|
528
855
|
};
|
|
529
|
-
function
|
|
530
|
-
class
|
|
531
|
-
constructor(
|
|
532
|
-
super(
|
|
856
|
+
function createTokenClass(type, props) {
|
|
857
|
+
class Token extends MultiToken {
|
|
858
|
+
constructor(value, tokens) {
|
|
859
|
+
super(value, tokens);
|
|
860
|
+
this.t = type;
|
|
533
861
|
}
|
|
534
862
|
}
|
|
535
|
-
for (const
|
|
536
|
-
|
|
537
|
-
|
|
863
|
+
for (const p in props) {
|
|
864
|
+
Token.prototype[p] = props[p];
|
|
865
|
+
}
|
|
866
|
+
Token.t = type;
|
|
867
|
+
return Token;
|
|
538
868
|
}
|
|
539
|
-
const
|
|
540
|
-
isLink:
|
|
869
|
+
const Email = createTokenClass("email", {
|
|
870
|
+
isLink: true,
|
|
541
871
|
toHref() {
|
|
542
872
|
return "mailto:" + this.toString();
|
|
543
873
|
}
|
|
544
|
-
})
|
|
545
|
-
|
|
874
|
+
});
|
|
875
|
+
const Text = createTokenClass("text");
|
|
876
|
+
const Nl = createTokenClass("nl");
|
|
877
|
+
const Url = createTokenClass("url", {
|
|
878
|
+
isLink: true,
|
|
546
879
|
/**
|
|
547
880
|
Lowercases relevant parts of the domain and adds the protocol if
|
|
548
881
|
required. Note that this will not escape unsafe HTML characters in the
|
|
@@ -550,156 +883,276 @@ const ce = Nt("email", {
|
|
|
550
883
|
@param {string} [scheme] default scheme (e.g., 'https')
|
|
551
884
|
@return {string} the full href
|
|
552
885
|
*/
|
|
553
|
-
toHref(
|
|
554
|
-
return this.hasProtocol() ? this.v : `${
|
|
886
|
+
toHref(scheme2 = defaults.defaultProtocol) {
|
|
887
|
+
return this.hasProtocol() ? this.v : `${scheme2}://${this.v}`;
|
|
555
888
|
},
|
|
556
889
|
/**
|
|
557
890
|
* Check whether this URL token has a protocol
|
|
558
891
|
* @return {boolean}
|
|
559
892
|
*/
|
|
560
893
|
hasProtocol() {
|
|
561
|
-
const
|
|
562
|
-
return
|
|
894
|
+
const tokens = this.tk;
|
|
895
|
+
return tokens.length >= 2 && tokens[0].t !== LOCALHOST && tokens[1].t === COLON;
|
|
563
896
|
}
|
|
564
|
-
})
|
|
565
|
-
|
|
566
|
-
|
|
897
|
+
});
|
|
898
|
+
const makeState = (arg) => new State(arg);
|
|
899
|
+
function init$1({
|
|
900
|
+
groups
|
|
567
901
|
}) {
|
|
568
|
-
const
|
|
569
|
-
|
|
570
|
-
const
|
|
571
|
-
|
|
572
|
-
const
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
const
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
902
|
+
const qsAccepting = groups.domain.concat([AMPERSAND, ASTERISK, AT, BACKSLASH, BACKTICK, CARET, DOLLAR, EQUALS, HYPHEN, NUM, PERCENT, PIPE, PLUS, POUND, SLASH, SYM, TILDE, UNDERSCORE]);
|
|
903
|
+
const qsNonAccepting = [COLON, COMMA, DOT, EXCLAMATION, PERCENT, QUERY, QUOTE, SEMI, OPENANGLEBRACKET, CLOSEANGLEBRACKET, OPENBRACE, CLOSEBRACE, CLOSEBRACKET, OPENBRACKET, OPENPAREN, CLOSEPAREN, FULLWIDTHLEFTPAREN, FULLWIDTHRIGHTPAREN, LEFTCORNERBRACKET, RIGHTCORNERBRACKET, LEFTWHITECORNERBRACKET, RIGHTWHITECORNERBRACKET, FULLWIDTHLESSTHAN, FULLWIDTHGREATERTHAN];
|
|
904
|
+
const localpartAccepting = [AMPERSAND, APOSTROPHE, ASTERISK, BACKSLASH, BACKTICK, CARET, DOLLAR, EQUALS, HYPHEN, OPENBRACE, CLOSEBRACE, PERCENT, PIPE, PLUS, POUND, QUERY, SLASH, SYM, TILDE, UNDERSCORE];
|
|
905
|
+
const Start = makeState();
|
|
906
|
+
const Localpart = tt(Start, TILDE);
|
|
907
|
+
ta(Localpart, localpartAccepting, Localpart);
|
|
908
|
+
ta(Localpart, groups.domain, Localpart);
|
|
909
|
+
const Domain = makeState(), Scheme = makeState(), SlashScheme = makeState();
|
|
910
|
+
ta(Start, groups.domain, Domain);
|
|
911
|
+
ta(Start, groups.scheme, Scheme);
|
|
912
|
+
ta(Start, groups.slashscheme, SlashScheme);
|
|
913
|
+
ta(Domain, localpartAccepting, Localpart);
|
|
914
|
+
ta(Domain, groups.domain, Domain);
|
|
915
|
+
const LocalpartAt = tt(Domain, AT);
|
|
916
|
+
tt(Localpart, AT, LocalpartAt);
|
|
917
|
+
tt(Scheme, AT, LocalpartAt);
|
|
918
|
+
tt(SlashScheme, AT, LocalpartAt);
|
|
919
|
+
const LocalpartDot = tt(Localpart, DOT);
|
|
920
|
+
ta(LocalpartDot, localpartAccepting, Localpart);
|
|
921
|
+
ta(LocalpartDot, groups.domain, Localpart);
|
|
922
|
+
const EmailDomain = makeState();
|
|
923
|
+
ta(LocalpartAt, groups.domain, EmailDomain);
|
|
924
|
+
ta(EmailDomain, groups.domain, EmailDomain);
|
|
925
|
+
const EmailDomainDot = tt(EmailDomain, DOT);
|
|
926
|
+
ta(EmailDomainDot, groups.domain, EmailDomain);
|
|
927
|
+
const Email$1 = makeState(Email);
|
|
928
|
+
ta(EmailDomainDot, groups.tld, Email$1);
|
|
929
|
+
ta(EmailDomainDot, groups.utld, Email$1);
|
|
930
|
+
tt(LocalpartAt, LOCALHOST, Email$1);
|
|
931
|
+
const EmailDomainHyphen = tt(EmailDomain, HYPHEN);
|
|
932
|
+
tt(EmailDomainHyphen, HYPHEN, EmailDomainHyphen);
|
|
933
|
+
ta(EmailDomainHyphen, groups.domain, EmailDomain);
|
|
934
|
+
ta(Email$1, groups.domain, EmailDomain);
|
|
935
|
+
tt(Email$1, DOT, EmailDomainDot);
|
|
936
|
+
tt(Email$1, HYPHEN, EmailDomainHyphen);
|
|
937
|
+
const EmailColon = tt(Email$1, COLON);
|
|
938
|
+
ta(EmailColon, groups.numeric, Email);
|
|
939
|
+
const DomainHyphen = tt(Domain, HYPHEN);
|
|
940
|
+
const DomainDot = tt(Domain, DOT);
|
|
941
|
+
tt(DomainHyphen, HYPHEN, DomainHyphen);
|
|
942
|
+
ta(DomainHyphen, groups.domain, Domain);
|
|
943
|
+
ta(DomainDot, localpartAccepting, Localpart);
|
|
944
|
+
ta(DomainDot, groups.domain, Domain);
|
|
945
|
+
const DomainDotTld = makeState(Url);
|
|
946
|
+
ta(DomainDot, groups.tld, DomainDotTld);
|
|
947
|
+
ta(DomainDot, groups.utld, DomainDotTld);
|
|
948
|
+
ta(DomainDotTld, groups.domain, Domain);
|
|
949
|
+
ta(DomainDotTld, localpartAccepting, Localpart);
|
|
950
|
+
tt(DomainDotTld, DOT, DomainDot);
|
|
951
|
+
tt(DomainDotTld, HYPHEN, DomainHyphen);
|
|
952
|
+
tt(DomainDotTld, AT, LocalpartAt);
|
|
953
|
+
const DomainDotTldColon = tt(DomainDotTld, COLON);
|
|
954
|
+
const DomainDotTldColonPort = makeState(Url);
|
|
955
|
+
ta(DomainDotTldColon, groups.numeric, DomainDotTldColonPort);
|
|
956
|
+
const Url$1 = makeState(Url);
|
|
957
|
+
const UrlNonaccept = makeState();
|
|
958
|
+
ta(Url$1, qsAccepting, Url$1);
|
|
959
|
+
ta(Url$1, qsNonAccepting, UrlNonaccept);
|
|
960
|
+
ta(UrlNonaccept, qsAccepting, Url$1);
|
|
961
|
+
ta(UrlNonaccept, qsNonAccepting, UrlNonaccept);
|
|
962
|
+
tt(DomainDotTld, SLASH, Url$1);
|
|
963
|
+
tt(DomainDotTldColonPort, SLASH, Url$1);
|
|
964
|
+
const SchemeColon = tt(Scheme, COLON);
|
|
965
|
+
const SlashSchemeColon = tt(SlashScheme, COLON);
|
|
966
|
+
const SlashSchemeColonSlash = tt(SlashSchemeColon, SLASH);
|
|
967
|
+
const UriPrefix = tt(SlashSchemeColonSlash, SLASH);
|
|
968
|
+
ta(Scheme, groups.domain, Domain);
|
|
969
|
+
tt(Scheme, DOT, DomainDot);
|
|
970
|
+
tt(Scheme, HYPHEN, DomainHyphen);
|
|
971
|
+
ta(SlashScheme, groups.domain, Domain);
|
|
972
|
+
tt(SlashScheme, DOT, DomainDot);
|
|
973
|
+
tt(SlashScheme, HYPHEN, DomainHyphen);
|
|
974
|
+
ta(SchemeColon, groups.domain, Url$1);
|
|
975
|
+
tt(SchemeColon, SLASH, Url$1);
|
|
976
|
+
tt(SchemeColon, QUERY, Url$1);
|
|
977
|
+
ta(UriPrefix, groups.domain, Url$1);
|
|
978
|
+
ta(UriPrefix, qsAccepting, Url$1);
|
|
979
|
+
tt(UriPrefix, SLASH, Url$1);
|
|
980
|
+
const bracketPairs = [
|
|
981
|
+
[OPENBRACE, CLOSEBRACE],
|
|
598
982
|
// {}
|
|
599
|
-
[
|
|
983
|
+
[OPENBRACKET, CLOSEBRACKET],
|
|
600
984
|
// []
|
|
601
|
-
[
|
|
985
|
+
[OPENPAREN, CLOSEPAREN],
|
|
602
986
|
// ()
|
|
603
|
-
[
|
|
987
|
+
[OPENANGLEBRACKET, CLOSEANGLEBRACKET],
|
|
604
988
|
// <>
|
|
605
|
-
[
|
|
989
|
+
[FULLWIDTHLEFTPAREN, FULLWIDTHRIGHTPAREN],
|
|
606
990
|
// ()
|
|
607
|
-
[
|
|
991
|
+
[LEFTCORNERBRACKET, RIGHTCORNERBRACKET],
|
|
608
992
|
// 「」
|
|
609
|
-
[
|
|
993
|
+
[LEFTWHITECORNERBRACKET, RIGHTWHITECORNERBRACKET],
|
|
610
994
|
// 『』
|
|
611
|
-
[
|
|
995
|
+
[FULLWIDTHLESSTHAN, FULLWIDTHGREATERTHAN]
|
|
612
996
|
// <>
|
|
613
997
|
];
|
|
614
|
-
for (let
|
|
615
|
-
const [
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
const
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
998
|
+
for (let i = 0; i < bracketPairs.length; i++) {
|
|
999
|
+
const [OPEN, CLOSE] = bracketPairs[i];
|
|
1000
|
+
const UrlOpen = tt(Url$1, OPEN);
|
|
1001
|
+
tt(UrlNonaccept, OPEN, UrlOpen);
|
|
1002
|
+
tt(UrlOpen, CLOSE, Url$1);
|
|
1003
|
+
const UrlOpenQ = makeState(Url);
|
|
1004
|
+
ta(UrlOpen, qsAccepting, UrlOpenQ);
|
|
1005
|
+
const UrlOpenSyms = makeState();
|
|
1006
|
+
ta(UrlOpen, qsNonAccepting);
|
|
1007
|
+
ta(UrlOpenQ, qsAccepting, UrlOpenQ);
|
|
1008
|
+
ta(UrlOpenQ, qsNonAccepting, UrlOpenSyms);
|
|
1009
|
+
ta(UrlOpenSyms, qsAccepting, UrlOpenQ);
|
|
1010
|
+
ta(UrlOpenSyms, qsNonAccepting, UrlOpenSyms);
|
|
1011
|
+
tt(UrlOpenQ, CLOSE, Url$1);
|
|
1012
|
+
tt(UrlOpenSyms, CLOSE, Url$1);
|
|
1013
|
+
}
|
|
1014
|
+
tt(Start, LOCALHOST, DomainDotTld);
|
|
1015
|
+
tt(Start, NL, Nl);
|
|
1016
|
+
return {
|
|
1017
|
+
start: Start,
|
|
1018
|
+
tokens: tk
|
|
625
1019
|
};
|
|
626
1020
|
}
|
|
627
|
-
function
|
|
628
|
-
let
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
1021
|
+
function run(start, input, tokens) {
|
|
1022
|
+
let len = tokens.length;
|
|
1023
|
+
let cursor = 0;
|
|
1024
|
+
let multis = [];
|
|
1025
|
+
let textTokens = [];
|
|
1026
|
+
while (cursor < len) {
|
|
1027
|
+
let state = start;
|
|
1028
|
+
let secondState = null;
|
|
1029
|
+
let nextState = null;
|
|
1030
|
+
let multiLength = 0;
|
|
1031
|
+
let latestAccepting = null;
|
|
1032
|
+
let sinceAccepts = -1;
|
|
1033
|
+
while (cursor < len && !(secondState = state.go(tokens[cursor].t))) {
|
|
1034
|
+
textTokens.push(tokens[cursor++]);
|
|
1035
|
+
}
|
|
1036
|
+
while (cursor < len && (nextState = secondState || state.go(tokens[cursor].t))) {
|
|
1037
|
+
secondState = null;
|
|
1038
|
+
state = nextState;
|
|
1039
|
+
if (state.accepts()) {
|
|
1040
|
+
sinceAccepts = 0;
|
|
1041
|
+
latestAccepting = state;
|
|
1042
|
+
} else if (sinceAccepts >= 0) {
|
|
1043
|
+
sinceAccepts++;
|
|
1044
|
+
}
|
|
1045
|
+
cursor++;
|
|
1046
|
+
multiLength++;
|
|
641
1047
|
}
|
|
1048
|
+
if (sinceAccepts < 0) {
|
|
1049
|
+
cursor -= multiLength;
|
|
1050
|
+
if (cursor < len) {
|
|
1051
|
+
textTokens.push(tokens[cursor]);
|
|
1052
|
+
cursor++;
|
|
1053
|
+
}
|
|
1054
|
+
} else {
|
|
1055
|
+
if (textTokens.length > 0) {
|
|
1056
|
+
multis.push(initMultiToken(Text, input, textTokens));
|
|
1057
|
+
textTokens = [];
|
|
1058
|
+
}
|
|
1059
|
+
cursor -= sinceAccepts;
|
|
1060
|
+
multiLength -= sinceAccepts;
|
|
1061
|
+
const Multi = latestAccepting.t;
|
|
1062
|
+
const subtokens = tokens.slice(cursor - multiLength, cursor);
|
|
1063
|
+
multis.push(initMultiToken(Multi, input, subtokens));
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
if (textTokens.length > 0) {
|
|
1067
|
+
multis.push(initMultiToken(Text, input, textTokens));
|
|
642
1068
|
}
|
|
643
|
-
return
|
|
1069
|
+
return multis;
|
|
644
1070
|
}
|
|
645
|
-
function
|
|
646
|
-
const
|
|
647
|
-
|
|
1071
|
+
function initMultiToken(Multi, input, tokens) {
|
|
1072
|
+
const startIdx = tokens[0].s;
|
|
1073
|
+
const endIdx = tokens[tokens.length - 1].e;
|
|
1074
|
+
const value = input.slice(startIdx, endIdx);
|
|
1075
|
+
return new Multi(value, tokens);
|
|
648
1076
|
}
|
|
649
|
-
const
|
|
650
|
-
})
|
|
1077
|
+
const warn = typeof console !== "undefined" && console && console.warn || (() => {
|
|
1078
|
+
});
|
|
1079
|
+
const warnAdvice = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.";
|
|
1080
|
+
const INIT = {
|
|
651
1081
|
scanner: null,
|
|
652
1082
|
parser: null,
|
|
653
1083
|
tokenQueue: [],
|
|
654
1084
|
pluginQueue: [],
|
|
655
1085
|
customSchemes: [],
|
|
656
|
-
initialized:
|
|
1086
|
+
initialized: false
|
|
657
1087
|
};
|
|
658
|
-
function
|
|
659
|
-
|
|
1088
|
+
function reset() {
|
|
1089
|
+
State.groups = {};
|
|
1090
|
+
INIT.scanner = null;
|
|
1091
|
+
INIT.parser = null;
|
|
1092
|
+
INIT.tokenQueue = [];
|
|
1093
|
+
INIT.pluginQueue = [];
|
|
1094
|
+
INIT.customSchemes = [];
|
|
1095
|
+
INIT.initialized = false;
|
|
1096
|
+
return INIT;
|
|
660
1097
|
}
|
|
661
|
-
function
|
|
662
|
-
if (
|
|
1098
|
+
function registerCustomProtocol(scheme2, optionalSlashSlash = false) {
|
|
1099
|
+
if (INIT.initialized) {
|
|
1100
|
+
warn(`linkifyjs: already initialized - will not register custom scheme "${scheme2}" ${warnAdvice}`);
|
|
1101
|
+
}
|
|
1102
|
+
if (!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(scheme2)) {
|
|
663
1103
|
throw new Error(`linkifyjs: incorrect scheme format.
|
|
664
1104
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
665
1105
|
2. Cannot start or end with "-"
|
|
666
1106
|
3. "-" cannot repeat`);
|
|
667
|
-
|
|
1107
|
+
}
|
|
1108
|
+
INIT.customSchemes.push([scheme2, optionalSlashSlash]);
|
|
668
1109
|
}
|
|
669
|
-
function
|
|
670
|
-
|
|
671
|
-
for (let
|
|
672
|
-
|
|
673
|
-
scanner:
|
|
1110
|
+
function init() {
|
|
1111
|
+
INIT.scanner = init$2(INIT.customSchemes);
|
|
1112
|
+
for (let i = 0; i < INIT.tokenQueue.length; i++) {
|
|
1113
|
+
INIT.tokenQueue[i][1]({
|
|
1114
|
+
scanner: INIT.scanner
|
|
674
1115
|
});
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
1116
|
+
}
|
|
1117
|
+
INIT.parser = init$1(INIT.scanner.tokens);
|
|
1118
|
+
for (let i = 0; i < INIT.pluginQueue.length; i++) {
|
|
1119
|
+
INIT.pluginQueue[i][1]({
|
|
1120
|
+
scanner: INIT.scanner,
|
|
1121
|
+
parser: INIT.parser
|
|
680
1122
|
});
|
|
681
|
-
|
|
1123
|
+
}
|
|
1124
|
+
INIT.initialized = true;
|
|
1125
|
+
return INIT;
|
|
682
1126
|
}
|
|
683
|
-
function
|
|
684
|
-
|
|
1127
|
+
function tokenize(str) {
|
|
1128
|
+
if (!INIT.initialized) {
|
|
1129
|
+
init();
|
|
1130
|
+
}
|
|
1131
|
+
return run(INIT.parser.start, str, run$1(INIT.scanner.start, str));
|
|
685
1132
|
}
|
|
686
|
-
|
|
687
|
-
function
|
|
688
|
-
if (
|
|
689
|
-
if (
|
|
690
|
-
throw Error(`linkifyjs: Invalid link type ${
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
1133
|
+
tokenize.scan = run$1;
|
|
1134
|
+
function find(str, type = null, opts = null) {
|
|
1135
|
+
if (type && typeof type === "object") {
|
|
1136
|
+
if (opts) {
|
|
1137
|
+
throw Error(`linkifyjs: Invalid link type ${type}; must be a string`);
|
|
1138
|
+
}
|
|
1139
|
+
opts = type;
|
|
1140
|
+
type = null;
|
|
1141
|
+
}
|
|
1142
|
+
const options = new Options(opts);
|
|
1143
|
+
const tokens = tokenize(str);
|
|
1144
|
+
const filtered = [];
|
|
1145
|
+
for (let i = 0; i < tokens.length; i++) {
|
|
1146
|
+
const token = tokens[i];
|
|
1147
|
+
if (token.isLink && (!type || token.t === type) && options.check(token)) {
|
|
1148
|
+
filtered.push(token.toFormattedObject(options));
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
return filtered;
|
|
699
1152
|
}
|
|
700
1153
|
export {
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
1154
|
+
reset as a,
|
|
1155
|
+
find as f,
|
|
1156
|
+
registerCustomProtocol as r,
|
|
1157
|
+
tokenize as t
|
|
705
1158
|
};
|