| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 /*! This file is auto-generated */ 2 (function() { 3 "use strict";var wp;(wp||={}).dom=(()=>{var vt=Object.create;var A=Object.defineProperty;var Ht=Object.getOwnPropertyDescriptor;var Lt=Object.getOwnPropertyNames;var Ft=Object.getPrototypeOf,Pt=Object.prototype.hasOwnProperty;var Mt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),U=(t,e)=>{for(var r in e)A(t,r,{get:e[r],enumerable:!0})},J=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Lt(e))!Pt.call(t,n)&&n!==r&&A(t,n,{get:()=>e[n],enumerable:!(o=Ht(e,n))||o.enumerable});return t};var Vt=(t,e,r)=>(r=t!=null?vt(Ft(t)):{},J(e||!t||!t.__esModule?A(r,"default",{value:t,enumerable:!0}):r,t)),_t=t=>J(A({},"__esModule",{value:!0}),t);var dt=Mt(($e,ct)=>{ct.exports=window.wp.deprecated});var ee={};U(ee,{__unstableStripHTML:()=>Ct,computeCaretRect:()=>tt,documentHasSelection:()=>ot,documentHasTextSelection:()=>C,documentHasUncollapsedSelection:()=>rt,focus:()=>te,getFilesFromDataTransfer:()=>Qt,getOffsetParent:()=>nt,getPhrasingContentSchema:()=>yt,getRectangleFromRange:()=>h,getScrollContainer:()=>q,insertAfter:()=>w,isEmpty:()=>D,isEntirelySelected:()=>at,isFormElement:()=>st,isHorizontalEdge:()=>ut,isNumberInput:()=>pt,isPhrasingContent:()=>R,isRTL:()=>y,isSelectionForward:()=>v,isTextContent:()=>Jt,isTextField:()=>T,isVerticalEdge:()=>gt,placeCaretAtHorizontalEdge:()=>ht,placeCaretAtVerticalEdge:()=>bt,remove:()=>g,removeInvalidHTML:()=>Rt,replace:()=>Et,replaceTag:()=>Nt,safeHTML:()=>M,unwrap:()=>x,wrap:()=>xt});var W={};U(W,{find:()=>I});function Bt(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","summary","area[href]","[contenteditable]:not([contenteditable=false])"].join(",")}function K(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0}function zt(t){let e=t.closest("map[name]");if(!e)return!1;let r=t.ownerDocument.querySelector('img[usemap="#'+e.name+'"]');return!!r&&K(r)}function I(t,{sequential:e=!1}={}){let r=t.querySelectorAll(Bt(e));return Array.from(r).filter(o=>{if(!K(o)||o.closest("[inert]"))return!1;let{nodeName:n}=o;return n==="AREA"?zt(o):!0})}var X={};U(X,{find:()=>Xt,findNext:()=>Gt,findPrevious:()=>qt,isTabbableIndex:()=>Q});function j(t){let e=t.getAttribute("tabindex");return e===null?0:parseInt(e,10)}function Q(t){return j(t)!==-1}function Ut(){let t={};return function(r,o){let{nodeName:n,type:i,checked:a,name:s}=o;if(n!=="INPUT"||i!=="radio"||!s)return r.concat(o);let f=t.hasOwnProperty(s);if(!(a||!f))return r;if(f){let u=t[s];r=r.filter(l=>l!==u)}return t[s]=o,r.concat(o)}}function Wt(t,e){return{element:t,index:e}}function jt(t){return t.element}function kt(t,e){let r=j(t.element),o=j(e.element);return r===o?t.index-e.index:r-o}function k(t){return t.filter(Q).map(Wt).sort(kt).map(jt).reduce(Ut(),[])}function Xt(t){return k(I(t))}function qt(t){return k(I(t.ownerDocument.body)).reverse().find(e=>t.compareDocumentPosition(e)&t.DOCUMENT_POSITION_PRECEDING)}function Gt(t){return k(I(t.ownerDocument.body)).find(e=>t.compareDocumentPosition(e)&t.DOCUMENT_POSITION_FOLLOWING)}function h(t){if(!t.collapsed){let i=Array.from(t.getClientRects());if(i.length===1)return i[0];let a=i.filter(({width:l})=>l>1);if(a.length===0)return t.getBoundingClientRect();if(a.length===1)return a[0];let{top:s,bottom:f,left:c,right:u}=a[0];for(let{top:l,bottom:d,left:m,right:N}of a)l<s&&(s=l),d>f&&(f=d),m<c&&(c=m),N>u&&(u=N);return new window.DOMRect(c,s,u-c,f-s)}let{startContainer:e}=t,{ownerDocument:r}=e;if(e.nodeName==="BR"){let{parentNode:i}=e;let a=Array.from(i.childNodes).indexOf(e);t=r.createRange(),t.setStart(i,a),t.setEnd(i,a)}let o=t.getClientRects();if(o.length>1)return null;if(o.length===1&&e.nodeType===e.TEXT_NODE&&t.startOffset>0&&t.startOffset<e.length){let i=(f,c)=>{let u=r.createRange();return u.setStart(e,f),u.setEnd(e,c),u.getBoundingClientRect()},a=i(t.startOffset-1,t.startOffset),s=i(t.startOffset,t.startOffset+1);if(a.bottom<=s.top)return null}let n=o[0];if(!n||n.height===0){let i=r.createTextNode("\u200B");t=t.cloneRange(),t.insertNode(i),n=t.getClientRects()[0],i.parentNode,i.parentNode.removeChild(i)}return n}function tt(t){let e=t.getSelection();let r=e.rangeCount?e.getRangeAt(0):null;return r?h(r):null}function C(t){t.defaultView;let e=t.defaultView.getSelection();let r=e.rangeCount?e.getRangeAt(0):null;return!!r&&!r.collapsed}function b(t){return t?.nodeName==="INPUT"}function T(t){let e=["button","checkbox","hidden","file","radio","image","range","reset","submit","number","email","time"];return b(t)&&t.type&&!e.includes(t.type)||t.nodeName==="TEXTAREA"||t.contentEditable==="true"}function et(t){if(!b(t)&&!T(t))return!1;try{let{selectionStart:e,selectionEnd:r}=t;return e===null||e!==r}catch{return!0}}function rt(t){return C(t)||!!t.activeElement&&et(t.activeElement)}function ot(t){return!!t.activeElement&&(b(t.activeElement)||T(t.activeElement)||C(t))}function p(t){return t.ownerDocument.defaultView,t.ownerDocument.defaultView.getComputedStyle(t)}function q(t,e="vertical"){if(t){if((e==="vertical"||e==="all")&&t.scrollHeight>t.clientHeight){let{overflowY:r}=p(t);if(/(auto|scroll)/.test(r))return t}if((e==="horizontal"||e==="all")&&t.scrollWidth>t.clientWidth){let{overflowX:r}=p(t);if(/(auto|scroll)/.test(r))return t}return t.ownerDocument===t.parentNode?t:q(t.parentNode,e)}}function nt(t){let e;for(;(e=t.parentNode)&&e.nodeType!==e.ELEMENT_NODE;);return e?p(e).position!=="static"?e:e.offsetParent:null}function E(t){return t.tagName==="INPUT"||t.tagName==="TEXTAREA"}var Yt="\uFEFF";function at(t){if(E(t))return t.selectionStart===0&&t.value.length===t.selectionEnd;if(!t.isContentEditable)return!0;let e=t.textContent||"";if(e===""||e===Yt)return!0;let{ownerDocument:r}=t,{defaultView:o}=r;let n=o.getSelection();let i=n.rangeCount?n.getRangeAt(0):null;if(!i)return!0;let{startContainer:a,endContainer:s,startOffset:f,endOffset:c}=i;if(a===t&&s===t&&f===0&&c===t.childNodes.length)return!0;let u=t.lastChild;let l=s.nodeType===s.TEXT_NODE?s.data.length:s.childNodes.length;return it(a,t,"firstChild")&&it(s,t,"lastChild")&&f===0&&c===l}function it(t,e,r){let o=e;do{if(t===o)return!0;for(o=o[r];o&&o.nodeType===o.TEXT_NODE&&o.nodeValue==="";)o=o[r==="lastChild"?"previousSibling":"nextSibling"]}while(o);return!1}function st(t){if(!t)return!1;let{tagName:e}=t;return E(t)||e==="BUTTON"||e==="SELECT"}function y(t){return p(t).direction==="rtl"}function ft(t){let e=Array.from(t.getClientRects());if(!e.length)return;let r=Math.min(...e.map(({top:n})=>n));return Math.max(...e.map(({bottom:n})=>n))-r}function v(t){let{anchorNode:e,focusNode:r,anchorOffset:o,focusOffset:n}=t;let i=e.compareDocumentPosition(r);return i&e.DOCUMENT_POSITION_PRECEDING?!1:i&e.DOCUMENT_POSITION_FOLLOWING?!0:i===0?o<=n:!0}function lt(t,e,r){if(t.caretPositionFromPoint){let o=t.caretPositionFromPoint(e,r);if(!o)return null;let n=t.createRange();return n.setStart(o.offsetNode,o.offset),n.collapse(!0),n}return t.caretRangeFromPoint?t.caretRangeFromPoint(e,r):null}function H(t,e,r,o){let n=o.style.zIndex,i=o.style.position,a=o.style.borderRadius,{position:s="static"}=p(o);s==="static"&&(o.style.position="relative"),o.style.zIndex="10000",o.style.borderRadius="0";let f=lt(t,e,r);return o.style.zIndex=n,o.style.position=i,o.style.borderRadius=a,f}function L(t,e,r){let o=r();return(!o||!o.startContainer||!t.contains(o.startContainer))&&(t.scrollIntoView(e),o=r(),!o||!o.startContainer||!t.contains(o.startContainer))?null:o}function F(t,e,r=!1){if(E(t)&&typeof t.selectionStart=="number")return t.selectionStart!==t.selectionEnd?!1:e?t.selectionStart===0:t.value.length===t.selectionStart;if(!t.isContentEditable)return!0;let{ownerDocument:o}=t,{defaultView:n}=o;let i=n.getSelection();if(!i||!i.rangeCount)return!1;let a=i.getRangeAt(0),s=a.cloneRange(),f=v(i),c=i.isCollapsed;c||s.collapse(!f);let u=h(s),l=h(a);if(!u||!l)return!1;let d=ft(a);if(!c&&d&&d>u.height&&f===e)return!1;let m=y(t)?!e:e,N=t.getBoundingClientRect(),_=m?N.left+1:N.right-1,B=e?N.top+1:N.bottom-1,St=(B<0||B>n.innerHeight)&&l.top>=0&&l.bottom<=n.innerHeight,It=(_<0||_>n.innerWidth)&&l.left>=0&&l.right<=n.innerWidth;if(St||!r&&It)return!1;let G=L(t,e,()=>H(o,_,B,t));if(!G)return!1;let z=h(G);if(!z)return!1;let Y=e?"top":"bottom",Z=m?"left":"right",Dt=z[Y]-l[Y],Ot=z[Z]-u[Z],$=Math.abs(Dt)<=1,At=Math.abs(Ot)<=1;return r?$:$&&At}function ut(t,e){return F(t,e)}var mt=Vt(dt(),1);function pt(t){return(0,mt.default)("wp.dom.isNumberInput",{since:"6.1",version:"6.5"}),b(t)&&t.type==="number"&&!isNaN(t.valueAsNumber)}function gt(t,e){return F(t,e,!0)}function Zt(t,e,r){let{ownerDocument:o}=t,n=y(t)?!e:e,i=t.getBoundingClientRect();r===void 0?r=e?i.right-1:i.left+1:r<=i.left?r=i.left+1:r>=i.right&&(r=i.right-1);let a=n?i.bottom-1:i.top+1;return H(o,r,a,t)}function P(t,e,r){if(!t)return;if(t.focus(),E(t)){if(typeof t.selectionStart!="number")return;e?(t.selectionStart=t.value.length,t.selectionEnd=t.value.length):(t.selectionStart=0,t.selectionEnd=0);return}if(t.contentEditable!=="true")return;let o=L(t,e,()=>Zt(t,e,r));if(!o)return;let{ownerDocument:n}=t,{defaultView:i}=n;let a=i.getSelection();a.removeAllRanges(),a.addRange(o)}function ht(t,e){return P(t,e,void 0)}function bt(t,e,r){return P(t,e,r?.left)}function w(t,e){e.parentNode,e.parentNode.insertBefore(t,e.nextSibling)}function g(t){t.parentNode,t.parentNode.removeChild(t)}function Et(t,e){t.parentNode,w(e,t.parentNode),g(t)}function x(t){let e=t.parentNode;for(;t.firstChild;)e.insertBefore(t.firstChild,t);e.removeChild(t)}function Nt(t,e){let r=t.ownerDocument.createElement(e);for(;t.firstChild;)r.appendChild(t.firstChild);return t.parentNode,t.parentNode.replaceChild(r,t),r}function xt(t,e){e.parentNode,e.parentNode.insertBefore(t,e),t.appendChild(e)}function M(t){let{body:e}=document.implementation.createHTMLDocument("");e.innerHTML=t;let r=e.getElementsByTagName("*"),o=r.length;for(;o--;){let n=r[o];if(n.tagName==="SCRIPT")g(n);else{let i=n.attributes.length;for(;i--;){let{name:a}=n.attributes[i];a.startsWith("on")&&n.removeAttribute(a)}}}return e.innerHTML}function Ct(t){t=M(t);let e=document.implementation.createHTMLDocument("");return e.body.innerHTML=t,e.body.textContent||""}function D(t){switch(t.nodeType){case t.TEXT_NODE:return/^[ \f\n\r\t\v\u00a0]*$/.test(t.nodeValue||"");case t.ELEMENT_NODE:return t.hasAttributes()?!1:t.hasChildNodes()?Array.from(t.childNodes).every(D):!0;default:return!0}}var O={strong:{},em:{},s:{},del:{},ins:{},a:{attributes:["href","target","rel","id"]},code:{},abbr:{attributes:["title"]},sub:{},sup:{},br:{},small:{},q:{attributes:["cite"]},dfn:{attributes:["title"]},data:{attributes:["value"]},time:{attributes:["datetime"]},var:{},samp:{},kbd:{},i:{},b:{},u:{},mark:{},ruby:{},rt:{},rp:{},bdi:{attributes:["dir"]},bdo:{attributes:["dir"]},wbr:{},"#text":{}},Tt={audio:{attributes:["src","preload","autoplay","mediagroup","loop","muted"]},canvas:{attributes:["width","height"]},embed:{attributes:["src","type","width","height"]},img:{attributes:["alt","src","srcset","usemap","ismap","width","height"]},object:{attributes:["data","type","name","usemap","form","width","height"]},video:{attributes:["src","poster","preload","playsinline","autoplay","mediagroup","loop","muted","controls","width","height"]},math:{attributes:["display","xmlns"],children:"*"}},$t=["#text","br","wbr"];Object.keys(O).filter(t=>!$t.includes(t)).forEach(t=>{let{[t]:e,...r}=O;O[t].children={...r,img:Tt.img}});var V={...O,...Tt};function yt(t){if(t!=="paste")return V;let{u:e,abbr:r,data:o,time:n,wbr:i,bdi:a,bdo:s,...f}={...V,ins:{children:V.ins.children},del:{children:V.del.children}};return f}function R(t){let e=t.nodeName.toLowerCase();return yt().hasOwnProperty(e)||e==="span"}function Jt(t){let e=t.nodeName.toLowerCase();return O.hasOwnProperty(e)||e==="span"}function wt(t){return!!t&&t.nodeType===t.ELEMENT_NODE}var Kt=()=>{};function S(t,e,r,o){Array.from(t).forEach(n=>{let i=n.nodeName.toLowerCase();if(r.hasOwnProperty(i)&&(!r[i].isMatch||r[i].isMatch?.(n))){if(wt(n)){let{attributes:a=[],classes:s=[],children:f,require:c=[],allowEmpty:u}=r[i];if(f&&!u&&D(n)){R(n)&&n.hasChildNodes()?x(n):g(n);return}if(n.hasAttributes()&&(Array.from(n.attributes).forEach(({name:l})=>{l!=="class"&&!a.includes(l)&&n.removeAttribute(l)}),n.classList&&n.classList.length)){let l=s.map(d=>d==="*"?()=>!0:typeof d=="string"?m=>m===d:d instanceof RegExp?m=>d.test(m):Kt);Array.from(n.classList).forEach(d=>{l.some(m=>m(d))||n.classList.remove(d)}),n.classList.length||n.removeAttribute("class")}if(n.hasChildNodes()){if(f==="*")return;if(f)c.length&&!n.querySelector(c.join(","))?(S(n.childNodes,e,r,o),x(n)):n.parentNode&&n.parentNode.nodeName==="BODY"&&R(n)?(S(n.childNodes,e,r,o),Array.from(n.childNodes).some(l=>!R(l))&&x(n)):S(n.childNodes,e,f,o);else for(;n.firstChild;)g(n.firstChild)}}}else S(n.childNodes,e,r,o),o&&!R(n)&&n.nextElementSibling&&w(e.createElement("br"),n),x(n)})}function Rt(t,e,r){let o=document.implementation.createHTMLDocument("");return o.body.innerHTML=t,S(o.body.childNodes,o,e,r),o.body.innerHTML}function Qt(t){let e=Array.from(t.files);return Array.from(t.items).forEach(r=>{let o=r.getAsFile();o&&!e.find(({name:n,type:i,size:a})=>n===o.name&&i===o.type&&a===o.size)&&e.push(o)}),e}var te={focusable:W,tabbable:X};return _t(ee);})(); 4 (window.wp ||= {}).dom = wp.dom; 5 })();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Mon Sep 21 08:20:32 2026 | Cross-referenced by PHPXref |