text: (()=>{"use strict";var t,r={14923:t=>{function r(t,o,i){return(r=e()?Reflect.construct:function(t,r,e){var o=[null];o.push.apply(o,r);var i=new(Function.bind.apply(t,o));return e&&n(i,e.prototype),i}).apply(null,arguments)}function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function n(t,r){return(n=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t})(t,r)}function o(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var e=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(e.push(a.value),!r||e.length!==r);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return e}}(t,r)||i(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,r){if(t){if("string"==typeof t)return a(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?a(t,r):void 0}}function a(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var f=function(){function t(){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t),this.constructors={}}var e,n;return e=t,(n=[{key:"register",value:function(t,r){this.constructors[t]=r}},{key:"unpack",value:function(t){var r={};return this.scanForIds(t,r),this.unpackWithRefs(t,r,{})}},{key:"scanForIds",value:function(t,r){var e=this;if(null!==t&&"object"===u(t))if(Array.isArray(t))t.forEach((function(t){return e.scanForIds(t,r)}));else{var n=!1;if("_id"in t&&(n=!0,r[t._id]=t),("_type"in t||"_val"in t||"_ref"in t)&&(n=!0),"_list"in t&&(n=!0,t._list.forEach((function(t){return e.scanForIds(t,r)}))),"_args"in t&&(n=!0,t._args.forEach((function(t){return e.scanForIds(t,r)}))),"_dict"in t){n=!0;for(var i=0,a=Object.entries(t._dict);i<a.length;i++){var c=o(a[i],2),f=(c[0],c[1]);this.scanForIds(f,r)}}if(!n)for(var l=0,s=Object.entries(t);l<s.length;l++){var p=o(s[l],2),y=(p[0],p[1]);this.scanForIds(y,r)}}}},{key:"unpackWithRefs",value:function(t,e,n){var c,f,l=this;if(null===t||"object"!==u(t))return t;if(Array.isArray(t))return t.map((function(t){return l.unpackWithRefs(t,e,n)}));if("_ref"in t)c=t._ref in n?n[t._ref]:this.unpackWithRefs(e[t._ref],e,n);else if("_val"in t)c=t._val;else if("_list"in t)c=t._list.map((function(t){return l.unpackWithRefs(t,e,n)}));else if("_dict"in t){c={};for(var s=0,p=Object.entries(t._dict);s<p.length;s++){var y=o(p[s],2),d=y[0],h=y[1];c[d]=this.unpackWithRefs(h,e,n)}}else{if(!("_type"in t)){if("_id"in t)throw new Error("telepath encountered object with _id but no type specified");c={};for(var b=0,v=Object.entries(t);b<v.length;b++){var m=o(v[b],2),_=m[0],g=m[1];c[_]=this.unpackWithRefs(g,e,n)}return c}var w=t._type;c=r(this.constructors[w],function(t){if(Array.isArray(t))return a(t)}(f=t._args.map((function(t){return l.unpackWithRefs(t,e,n)})))||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(f)||i(f)||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.")}())}return"_id"in t&&(n[t._id]=c),c}}])&&c(e.prototype,n),t}();t.exports=f},81249:function(t,r,e){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};r.__esModule=!0;var o=n(e(14923));window.telepath||(window.telepath=new o.default)}},e={};function n(t){var o=e[t];if(void 0!==o)return o.exports;var i=e[t]={id:t,loaded:!1,exports:{}};return r[t].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=r,t=[],n.O=(r,e,o,i)=>{if(!e){var a=1/0;for(f=0;f<t.length;f++){for(var[e,o,i]=t[f],u=!0,c=0;c<e.length;c++)(!1&i||a>=i)&&Object.keys(n.O).every((t=>n.O[t](e[c])))?e.splice(c--,1):(u=!1,i<a&&(a=i));u&&(t.splice(f--,1),r=o())}return r}i=i||0;for(var f=t.length;f>0&&t[f-1][2]>i;f--)t[f]=t[f-1];t[f]=[e,o,i]},n.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return n.d(r,{a:r}),r},n.d=(t,r)=>{for(var e in r)n.o(r,e)&&!n.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),n.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.j=987,(()=>{var t={987:0};n.O.j=r=>0===t[r];var r=(r,e)=>{var o,i,[a,u,c]=e,f=0;for(o in u)n.o(u,o)&&(n.m[o]=u[o]);if(c)var l=c(n);for(r&&r(e);f<a.length;f++)i=a[f],n.o(t,i)&&t[i]&&t[i][0](),t[a[f]]=0;return n.O(l)},e=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];e.forEach(r.bind(null,0)),e.push=r.bind(null,e.push.bind(e))})(),n.O(void 0,[751],(()=>n(81249)));var o=n.O(void 0,[751],(()=>n(90971)));o=n.O(o)})();
  //# sourceMappingURL=telepath.js.map