WordPress/wp-includes/js/dist/dom.min.js

2 lines
13 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.dom=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="2sUP")}({"2sUP":function(t,e,n){"use strict";n.r(e),n.d(e,"focus",(function(){return rt})),n.d(e,"computeCaretRect",(function(){return N})),n.d(e,"documentHasTextSelection",(function(){return E})),n.d(e,"documentHasUncollapsedSelection",(function(){return T})),n.d(e,"documentHasSelection",(function(){return O})),n.d(e,"getRectangleFromRange",(function(){return y})),n.d(e,"getScrollContainer",(function(){return x})),n.d(e,"getOffsetParent",(function(){return A})),n.d(e,"isEntirelySelected",(function(){return P})),n.d(e,"isHorizontalEdge",(function(){return H})),n.d(e,"isNumberInput",(function(){return v})),n.d(e,"isTextField",(function(){return w})),n.d(e,"isVerticalEdge",(function(){return I})),n.d(e,"placeCaretAtHorizontalEdge",(function(){return F})),n.d(e,"placeCaretAtVerticalEdge",(function(){return B})),n.d(e,"replace",(function(){return q})),n.d(e,"remove",(function(){return z})),n.d(e,"insertAfter",(function(){return U})),n.d(e,"unwrap",(function(){return k})),n.d(e,"replaceTag",(function(){return X})),n.d(e,"wrap",(function(){return Y})),n.d(e,"__unstableStripHTML",(function(){return G})),n.d(e,"isEmpty",(function(){return $})),n.d(e,"removeInvalidHTML",(function(){return et})),n.d(e,"isRTL",(function(){return M})),n.d(e,"safeHTML",(function(){return W})),n.d(e,"getPhrasingContentSchema",(function(){return Q})),n.d(e,"isPhrasingContent",(function(){return Z})),n.d(e,"isTextContent",(function(){return tt})),n.d(e,"getFilesFromDataTransfer",(function(){return nt}));var r={};n.r(r),n.d(r,"find",(function(){return u}));var o={};function i(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0}function u(t,{sequential:e=!1}={}){const n=t.querySelectorAll(function(t){return[t?'[tabindex]:not([tabindex^="-"])':"[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])",'iframe:not([tabindex^="-"])',"object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",")}(e));return Array.from(n).filter(t=>{if(!i(t))return!1;const{nodeName:e}=t;return"AREA"!==e||function(t){const e=t.closest("map[name]");if(!e)return!1;const n=t.ownerDocument.querySelector('img[usemap="#'+e.name+'"]');return!!n&&i(n)}(t)})}n.r(o),n.d(o,"isTabbableIndex",(function(){return s})),n.d(o,"find",(function(){return p})),n.d(o,"findPrevious",(function(){return h})),n.d(o,"findNext",(function(){return b}));var c=n("YLtl");function a(t){const e=t.getAttribute("tabindex");return null===e?0:parseInt(e,10)}function s(t){return-1!==a(t)}function l(t,e){return{element:t,index:e}}function d(t){return t.element}function f(t,e){const n=a(t.element),r=a(e.element);return n===r?t.index-e.index:n-r}function m(t){return t.filter(s).map(l).sort(f).map(d).reduce(function(){const t={};return function(e,n){const{nodeName:r,type:o,checked:i,name:u}=n;if("INPUT"!==r||"radio"!==o||!u)return e.concat(n);const a=t.hasOwnProperty(u);if(!(i||!a))return e;if(a){const n=t[u];e=Object(c.without)(e,n)}return t[u]=n,e.concat(n)}}(),[])}function p(t){return m(u(t))}function h(t){const e=u(t.ownerDocument.body),n=e.indexOf(t);retu