2 lines
13 KiB
JavaScript
2 lines
13 KiB
JavaScript
/*! This file is auto-generated */
|
|
this.wp=this.wp||{},this.wp.annotations=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./node_modules/@wordpress/annotations/build-module/index.js")}({"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/defineProperty.js":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/iterableToArray.js":function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");function o(e,t){if(null==e)return{};var n,o,a=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");var o=n("./node_modules/@babel/runtime/helpers/esm/iterableToArray.js"),a=n("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(a.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},"./node_modules/@wordpress/annotations/build-module/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,"store",(function(){return C}));var r={};n.r(r),n.d(r,"__experimentalGetAnnotationsForBlock",(function(){return T})),n.d(r,"__experimentalGetAllAnnotationsForBlock",(function(){return P})),n.d(r,"__experimentalGetAnnotationsForRichText",(function(){return N})),n.d(r,"__experimentalGetAnnotations",(function(){return I}));var o={};n.r(o),n.d(o,"__experimentalAddAnnotation",(function(){return k})),n.d(o,"__experimentalRemoveAnnotation",(function(){return R})),n.d(o,"__experimentalUpdateAnnotationRange",(function(){return S})),n.d(o,"__experimentalRemoveAnnotationsBySource",(function(){return D}));var a=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("@wordpress/rich-text"),u=n("@wordpress/i18n"),s="core/annotations";var c={name:"core/annotation",title:Object(u.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:function(){return null},__experimentalGetPropsForEditableTreePreparation:function(e,t){var n=t.richTextIdentifier,r=t.blockClientId;return{annotations:e(s).__experimentalGetAnnotationsForRichText(r,n)}},__experimentalCreatePrepareEditableTree:function(e){var t=e.annotations;return function(e,n){if(0===t.length)return e;var r={formats:e,text:n};return(r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){var n=t.start,r=t.end;n>e.text.length&&(n=e.text.length),r>e.text.length&&(r=e.text.length);var o="annotation-text-"+t.source,a="annotation-text-"+t.id;e=Object(i.applyFormat)(e,{type:"core/annotation",attributes:{className:o,id:a}},n,r)})),e}(r,t)).formats}},__experimentalGetPropsForEditableTreeChangeHandler:function(e){return{removeAnnotation:e(s).__experimentalRemoveAnnotation,updateAnnotationRange:e(s).__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue:function(e){return function(t){var n=function(e){var t={};return e.forEach((function(e,n){(e=(e=e||[]).filter((function(e){return"core/annotation"===e.type}))).forEach((function(e){var r=e.attributes.id;r=r.replace("annotation-text-",""),t.hasOwnProperty(r)||(t[r]={start:n}),t[r].end=n+1}))})),t}(t),r=e.removeAnnotation,o=e.updateAnnotationRange;!function(e,t,n){var r=n.removeAnnotation,o=n.updateAnnotationRange;e.forEach((function(e){var n=t[e.id];if(n){var a=e.start,i=e.end;a===n.start&&i===n.end||o(e.id,n.start,n.end)}else r(e.id)}))}(e.annotations,n,{removeAnnotation:r,updateAnnotationRange:o})}}},l=c.name,d=Object(a.a)(c,["name"]);Object(i.registerFormatType)(l,d);var f=n("@wordpress/hooks"),p=n("@wordpress/data");Object(f.addFilter)("editor.BlockListBlock","core/annotations",(function(e){return Object(p.withSelect)((function(e,t){var n=t.clientId,r=t.className;return{className:e(s).__experimentalGetAnnotationsForBlock(n).map((function(e){return"is-annotated-by-"+e.source})).concat(r).filter(Boolean).join(" ")}}))(e)}));var b=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),m=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),v=n("lodash");function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){Object(m.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){var n=e.filter(t);return e.length===n.length?e:n}function j(e){return Object(v.isNumber)(e.start)&&Object(v.isNumber)(e.end)&&e.start<=e.end}var g=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"ANNOTATION_ADD":var r=n.blockClientId,o={id:n.id,blockClientId:r,richTextIdentifier:n.richTextIdentifier,source:n.source,selector:n.selector,range:n.range};if("range"===o.selector&&!j(o.range))return t;var a=null!==(e=null==t?void 0:t[r])&&void 0!==e?e:[];return y(y({},t),{},Object(m.a)({},r,[].concat(Object(b.a)(a),[o])));case"ANNOTATION_REMOVE":return Object(v.mapValues)(t,(function(e){return h(e,(function(e){return e.id!==n.annotationId}))}));case"ANNOTATION_UPDATE_RANGE":return Object(v.mapValues)(t,(function(e){var t=!1,r=e.map((function(e){return e.id===n.annotationId?(t=!0,y(y({},e),{},{range:{start:n.start,end:n.end}})):e}));return t?r:e}));case"ANNOTATION_REMOVE_SOURCE":return Object(v.mapValues)(t,(function(e){return h(e,(function(e){return e.source!==n.source}))}))}return t},_=n("./node_modules/rememo/es/rememo.js");function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){Object(m.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=[],T=Object(_.a)((function(e,t){var n;return(null!==(n=null==e?void 0:e[t])&&void 0!==n?n:[]).filter((function(e){return"block"===e.selector}))}),(function(e,t){var n;return[null!==(n=null==e?void 0:e[t])&&void 0!==n?n:x]}));function P(e,t){var n;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:x}var N=Object(_.a)((function(e,t,n){var r;return(null!==(r=null==e?void 0:e[t])&&void 0!==r?r:[]).filter((function(e){return"range"===e.selector&&n===e.richTextIdentifier})).map((function(e){var t=e.range,n=Object(a.a)(e,["range"]);return w(w({},t),n)}))}),(function(e,t){var n;return[null!==(n=null==e?void 0:e[t])&&void 0!==n?n:x]}));function I(e){return Object(v.flatMap)(e,(function(e){return e}))}var E=n("./node_modules/uuid/dist/esm-browser/v4.js");function k(e){var t=e.blockClientId,n=e.richTextIdentifier,r=void 0===n?null:n,o=e.range,a=void 0===o?null:o,i=e.selector,u=void 0===i?"range":i,s=e.source,c=void 0===s?"default":s,l=e.id,d={type:"ANNOTATION_ADD",id:void 0===l?Object(E.a)():l,blockClientId:t,richTextIdentifier:r,source:c,selector:u};return"range"===u&&(d.range=a),d}function R(e){return{type:"ANNOTATION_REMOVE",annotationId:e}}function S(e,t,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:e,start:t,end:n}}function D(e){return{type:"ANNOTATION_REMOVE_SOURCE",source:e}}var C=Object(p.createReduxStore)(s,{reducer:g,selectors:r,actions:o});Object(p.register)(C)},"./node_modules/rememo/es/rememo.js":function(e,t,n){"use strict";var r,o;function a(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function u(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,t.a=function(e,t){var n,s;function c(){n=o?new WeakMap:i()}function l(){var n,r,o,a,i,c=arguments.length;for(a=new Array(c),o=0;o<c;o++)a[o]=arguments[o];for(i=t.apply(null,a),(n=s(i)).isUniqueByDependants||(n.lastDependants&&!u(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(u(r.args,a,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,a)},a[0]=null,r.args=a,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=a),s=o?function(e){var t,o,a,u,s,c=n,l=!0;for(t=0;t<e.length;t++){if(o=e[t],!(s=o)||"object"!=typeof s){l=!1;break}c.has(o)?c=c.get(o):(a=new WeakMap,c.set(o,a),c=a)}return c.has(r)||((u=i()).isUniqueByDependants=l,c.set(r,u)),c.get(r)}:function(){return n},l.getDependants=t,l.clear=c,c(),l}},"./node_modules/uuid/dist/esm-browser/v4.js":function(e,t,n){"use strict";var r,o=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var u=function(e){return"string"==typeof e&&i.test(e)},s=[],c=0;c<256;++c)s.push((c+256).toString(16).substr(1));var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!u(n))throw TypeError("Stringified UUID is invalid");return n};t.a=function(e,t,n){var r=(e=e||{}).random||(e.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return l(r)}},"@wordpress/data":function(e,t){e.exports=window.wp.data},"@wordpress/hooks":function(e,t){e.exports=window.wp.hooks},"@wordpress/i18n":function(e,t){e.exports=window.wp.i18n},"@wordpress/rich-text":function(e,t){e.exports=window.wp.richText},lodash:function(e,t){e.exports=window.lodash}}); |