/*! 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=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=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;t0&&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;t1&&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}});