1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4506,5935,11785,16411,22261,26887,28316,32904,34166,43213,44642,49268,56547,67023,71649,78928,82125,89404,94030],{30362:(e,t,r)=>{r.d(t,{Rg:()=>m,ZG:()=>n,hR:()=>a,vy:()=>i});let n=((u={})[u.default=0]="default",u[u.parser=1]="parser",u[u.traverse=3]="traverse",u[u.render=4]="render",u[u.DEFAULT=0]="DEFAULT",u[u.PARSER=1]="PARSER",u[u.TRAVERSE=3]="TRAVERSE",u[u.RENDER=4]="RENDER",u),a=((f={}).default="default",f.html="html",f.markdown="markdown",f.DEFAULT="default",f.HTML="html",f.MARKDOWN="markdown",f),i=((g={}).default="default",g.react="react",g.preact="preact",g.html="html",g.markdown="markdown",g.DEFAULT="default",g.REACT="react",g.PREACT="preact",g.HTML="html",g.MARKDOWN="markdown",g),s=Symbol("pluginOptions");function l(e){let t=e;for(;t&&t.default&&"object"==typeof t.default&&!Array.isArray(t.default);){if(Object.keys(t.default).some(e=>!isNaN(Number(e))))return t.default;t=t.default}return t&&t.default||t}function o(e,t,r){return void 0===r?`${e}:${t}`:`${e}:${t}:${r}`}function c(e,t,r,n){if(void 0!==e.id){let a,i=(...t)=>e(...t);return Object.defineProperty(i,"name",{value:e.name,configurable:!0}),(a=e.displayName)&&Object.defineProperty(i,"displayName",{value:a,configurable:!0}),i.key=t,i.id=globalThis.crypto?.randomUUID(),i.options=n,r?i.src=r:e.src&&(i.src=e.src),i}return e.key=t,e.id=globalThis.crypto?.randomUUID(),e.options=n,r&&(e.src=r),e}function d({target:e,source:t,pluginName:r,pluginOptions:n}){Object.entries(t).forEach(([t,a])=>{let i;"function"==typeof a&&"name"!==t&&(Number.isNaN(i="number"==typeof t?t:Number(t))||0!==i&&1!==i&&3!==i&&4!==i)&&(e[t]||(e[t]=[]),e[t].push(c(a,t,r,n)))})}function p({target:e,phaseBag:t,pluginName:r,pluginOptions:n}){Object.entries(t).forEach(([t,a])=>{"function"==typeof a&&(e[t]||(e[t]=[]),e[t].push(c(a,t,r,n)))})}function h({bag:e,renderer:t,pluginName:r,pluginOptions:n,target:a}){if(!e||"object"!=typeof e||Array.isArray(e)||(("default"===t||"react"===t||"preact"===t)&&d({target:a,source:e,pluginName:r,pluginOptions:n}),"default"===t))return;let i=e[t];!i||"object"!=typeof i||Array.isArray(i)||d({target:a,source:i,pluginName:r,pluginOptions:n})}var u,f,g,m=class{plugins;callbacks={};loading={};constructor(e){this.plugins=function(e){let t={1:[],3:[],4:[],0:[]},r=Object.keys(t);return r.splice(r.indexOf("0"),1),e.forEach(e=>{if(!e)return;if(Array.isArray(e)){if(!e.length)return;if("function"!=typeof e[0]){let t;try{t=JSON.stringify(e[0])}catch{[t]=e}console.error("The first argument in the array should be a function returning a dynamic import. Plugin will be skipped.",`The value is: ${t}`);return}if(e[1]?.constructor!==Object)console.warn(`Missing options object for plugin: 2 3${e[0]}. 4 5Add "phase", "options", and/or "name" keys or remove the array wrapper.`);else if(e[1].phase){let{phase:r}=e[1];if(t[r]){t[r].push(e),Object.defineProperty(t[r],"enabled",{enumerable:!1,value:!0});return}console.warn(`Invalid phase "${r}" for plugin: 6 7${e[0]}. 8 9Valid phases: PHASES.parser, PHASES.traverse, PHASES.render. 10 11Switching to "PHASES.default".`)}else void 0===e[1].options&&void 0===e[1].phase&&void 0===e[1].name&&console.warn(`Missing options "phase", "options", and "name" for plugin: 12 13${e[0]}. 14 15Add at least one or remove the array wrapper.`)}else if("function"!=typeof e){let t;try{t=JSON.stringify(e)}catch{t=e}console.error("The first argument should be a function returning a dynamic import. Plugin will be skipped.",`The value is: ${t}`);return}let n=t[0].push(e)-1;r.forEach(e=>t[e].push(n))}),r.forEach(e=>{t[Number(e)].enabled||(t[e]=[])}),t}(e)}async process(e=0,{format:t="html",renderer:r}={}){await this.load(e);let n=4===e?r??"react":void 0,a=o(e,t,n);return void 0===this.callbacks[a]?this.sort(e,t,n)||{}:this.callbacks[a]}async load(e){let t=this.plugins[e].length>0?e:0;if(0!==t&&this.hasSharedIndexes(t)&&await this.ensureSharedLoaded(),0===t)return this.ensureSharedLoaded();let r=this.loading[t];if(r)return r;let n=this.runLoad(t);return this.loading[t]=n,n}hasSharedIndexes(e){return this.plugins[e].some(e=>"number"==typeof e)}ensureSharedLoaded(){let e=this.loading[0];if(e)return e;let t=this.runLoad(0);return this.loading[0]=t,t}async runLoad(e){let t=[];return this.plugins[e].forEach((e,r)=>{if("number"==typeof e)return;let n=e,a={},i;if(Array.isArray(e)&&([n,a,i]=[e[0],e[1]?.options||{},e[1]?.name]),"function"!=typeof n)return;let s=Promise.resolve(n()).then(l).then(e=>({response:e,options:a,configName:i,index:r})).catch(e=>Promise.reject({err:e,index:r}));t.push(s)}),Promise.allSettled(t).then(t=>{t.forEach(t=>{if("fulfilled"===t.status){let{index:r,options:n,configName:a}=t.value,{response:i}=t.value;if("function"==typeof i&&(i=i(n)),!i)return;if("function"==typeof i.then)return void console.error("Error: plugins should not return a promise");let l={...i};a&&!l.name&&(l.name=a),Object.defineProperty(l,s,{value:n,enumerable:!1,
15configurable:!0}),this.plugins[e][r]=l}else{let{err:r,index:n}=t.reason;console.error("Error from loading plugin",r),this.plugins[e][n]=void 0}})}).catch(t=>{console.error("Error in loader.load allSettled promise",t),this.plugins[e]=[]})}sort(e,t="html",r){if(0===e)return!1;let n=4===e?r??"react":"default",a=o(e,t,4===e?n:void 0);if(void 0!==this.callbacks[a])return!1;let i=this.plugins[e];if(!i)return!1;let l=i.length?i:this.plugins[0],c={},u=!1;return l.forEach(r=>{let a=isNaN(Number(r))?r:this.plugins[0][Number(r)];a&&(u=!0,function({plugin:e,phase:t,format:r,renderer:n,target:a}){let i=e.name,l=e[s]||{};if(4===t){if(h({bag:e[t],renderer:n,pluginName:i,pluginOptions:l,target:a}),"default"===r)return;let s=e[r];if(!s||"object"!=typeof s||Array.isArray(s))return;h({bag:s[t],renderer:n,pluginName:i,pluginOptions:l,target:a});return}d({target:a,source:e,pluginName:i,pluginOptions:l});let o=e[t];if(o&&"object"==typeof o&&p({target:a,phaseBag:o,pluginName:i,pluginOptions:l}),"default"===r)return;let c=e[r];if(!c||"object"!=typeof c||Array.isArray(c))return;d({target:a,source:c,pluginName:i,pluginOptions:l});let u=c[t]??c[String(t)];u&&"object"==typeof u&&p({target:a,phaseBag:u,pluginName:i,pluginOptions:l})}({plugin:a,phase:e,format:t,renderer:n,target:c}))}),!!u&&(this.callbacks[a]=c,this.callbacks[a])}}},49268:(e,t,r)=>{r.d(t,{Bonsai:()=>o,PHASES:()=>n.ZG,State:()=>a.Uw});var n=r(30362),a=r(50956),i=r(62654);let s=[[()=>Promise.all([r.e(67748),r.e(34082)]).then(r.bind(r,34082)),{phase:n.ZG.parser}]],l=[()=>Promise.all([r.e(37254),r.e(42718)]).then(r.bind(r,86104)),{phase:n.ZG.parser}];var o=class{dom;loader;nodeHandler;traverseHandlers;parser;markdownParser;callbacks;markdownCallbacks;prepared;preparedTraverse;preparedMarkdownParse;nodeAdapter;parserOptions;markdownOptions;handlerOptions;sanitizeTreeUrls;singleRun;name;resolveOptions({plugins:e=[],callbacks:t={},nodeAdapter:r={},parserOptions:n={},markdownOptions:a={},handlerOptions:i={},sanitizeTreeUrls:s=!1,internalPlugins:l=!0,singleRun:o=!0,name:c}){let d,p=(d={},c&&d[c]||d);return{plugins:p?.plugins||e,callbacks:p?.callbacks||t,nodeAdapter:p?.nodeAdapter||r,parserOptions:p?.parserOptions||n,markdownOptions:p?.markdownOptions||a,handlerOptions:p?.handlerOptions||i,sanitizeTreeUrls:p?.sanitizeTreeUrls??s,internalPlugins:p?.internalPlugins??l,singleRun:p?.singleRun??o,name:c}}constructor({plugins:e=[],callbacks:t={},nodeAdapter:r={},parserOptions:a={},markdownOptions:i={},handlerOptions:o={},sanitizeTreeUrls:c=!1,internalPlugins:d=!0,singleRun:p=!0,name:h}={}){let u=this.resolveOptions({plugins:e,callbacks:t,nodeAdapter:r,parserOptions:a,markdownOptions:i,handlerOptions:o,sanitizeTreeUrls:c,internalPlugins:d,singleRun:p,name:h}),f=[...u.internalPlugins?s:[],...u.markdownOptions.embedInHtml?[l]:[],...u.plugins];this.loader=new n.Rg(f),this.callbacks=u.callbacks,this.nodeAdapter=u.nodeAdapter,this.parserOptions=u.parserOptions,this.markdownOptions=u.markdownOptions,this.handlerOptions=u.handlerOptions,this.sanitizeTreeUrls=u.sanitizeTreeUrls,this.prepared={},this.preparedTraverse={},this.traverseHandlers={},this.singleRun=u.singleRun,this.name=u.name}async prepare(e){let t=this.prepared[e];if(t)return t;let r=this.prepareParse();this.prepared[e]=r;try{let t=await r;return this.prepared[e]=t,t}catch(t){throw delete this.prepared[e],t}}async prepareParse(){this.callbacks[n.ZG.parser]=await this.loader.process(n.ZG.parser,{format:n.hR.html});let{BonsaiParser:e}=await Promise.all([r.e(67748),r.e(4462)]).then(r.bind(r,4462));return e}async prepareParseMarkdown(){let e=this.preparedMarkdownParse;if(e)return e;let t=(async()=>{this.markdownCallbacks=await this.loader.process(n.ZG.parser,{format:n.hR.markdown});let{MarkdownParser:e}=await Promise.all([r.e(37254),r.e(75174)]).then(r.bind(r,52304));return e})();this.preparedMarkdownParse=t;try{let e=await t;return this.preparedMarkdownParse=e,e}catch(e){throw this.preparedMarkdownParse=void 0,e}}async prepareTraverse(e=n.hR.html){let t=String(e),a=this.preparedTraverse[t];if(a)return a;let i=(async()=>{let t=await this.loader.process(n.ZG.traverse,{format:e});e===n.hR.html&&(this.callbacks[n.ZG.traverse]=t);let{rebuild:a}=await Promise.resolve().then(r.bind(r,62654));return{callbacks:t,rebuild:a}})();this.preparedTraverse[t]=i;try{let e=await i;return this.preparedTraverse[t]=e,e}catch(e){throw delete this.preparedTraverse[t],e}}static async parseDOM(e,t){let{HTMLParser:n,DomHandler:a}=await Promise.all([r.e(67748),r.e(4462)]).then(r.bind(r,4462)),i=new a(void 0,t);return new n(i,t).end(e),i.root.children}async parse(e,t,r){let a=await this.prepare(n.ZG.parser),i,s=()=>new a(this.callbacks[n.ZG.parser],{parserOptions:this.parserOptions,handlerOptions:this.handlerOptions,nodeAdapter
15:this.nodeAdapter,state:r,format:n.hR.html,sanitizeTreeUrls:this.sanitizeTreeUrls,markdownOptions:this.markdownOptions,getMarkdownCallbacks:()=>this.prepareParseMarkdown().then(()=>this.markdownCallbacks??{})});this.singleRun?(this.parser||=s(),(i=this.parser).nodeHandler.setState(r)):i=s();let l=await i.parse(e,t);return this.singleRun&&(this.dom=l),l}async parseMarkdown(e,t,r){let a=await this.prepareParseMarkdown(),i,s=()=>new a(this.markdownCallbacks??{},{handlerOptions:this.handlerOptions,nodeAdapter:this.nodeAdapter,state:r,format:n.hR.markdown,markdownOptions:this.markdownOptions,sanitizeTreeUrls:this.sanitizeTreeUrls});this.singleRun?(this.markdownParser||=s(),(i=this.markdownParser).nodeHandler.setState(r)):i=s();let l=await i.parse(e,t);return this.singleRun&&(this.dom=l),l}async createMarkdownStream(e,t){let r=(await this.prepareParseMarkdown()).createStream(this.markdownCallbacks??{},{handlerOptions:this.handlerOptions,nodeAdapter:this.nodeAdapter,state:t,format:n.hR.markdown,markdownOptions:this.markdownOptions,sanitizeTreeUrls:this.sanitizeTreeUrls},e);if(!this.singleRun)return r;let a=e=>(this.dom=e.dom,e);return{get nodeHandler(){return r.nodeHandler},write:async e=>a(await r.write(e)),end:async e=>a(await r.end(e)),abort:()=>r.abort()}}async *parseMarkdownStream(e,t,r){let n=await this.createMarkdownStream(t,r);try{for await(let t of e)yield await n.write(t);yield await n.end()}finally{n.abort()}}async getRenderCallbacks({format:e=n.hR.html,renderer:t=n.vy.react}={}){let r=await this.loader.process(n.ZG.render,{format:e,renderer:t});return e===n.hR.html&&t===n.vy.react&&(this.callbacks[n.ZG.render]=r),r}async traverse(e,t,s,l){let o,{rebuild:c}=await Promise.resolve().then(r.bind(r,62654)),d=c(e,l),p=(o=d?.format)===n.hR.html||o===n.hR.markdown?o:n.hR.html,{callbacks:h}=await this.prepareTraverse(p),{adapter:u={}}=d,f,g=()=>new a.ZT(h,{...this.handlerOptions,nodeAdapter:u,state:s,format:p});if(this.singleRun){let e=String(p);this.traverseHandlers[e]||(this.traverseHandlers[e]=g()),f=this.traverseHandlers[e],this.nodeHandler=f,f.setState(s),f.setNodeAdapter(u)}else f=g();f.setContext(t||{});try{await f.handleNodes(d.children),await f.processRegistry(),this.sanitizeTreeUrls&&(0,i.QR)(d,u);let{state:e}=f;return Object.defineProperty(d,"state",{writable:!0,value:e}),this.singleRun&&(this.dom=d),d}finally{f.resetDocument()}}}},50956:(e,t,r)=>{r.d(t,{ZT:()=>C,Uw:()=>P,Bz:()=>N}),(g=m||(m={})).Root="root",g.Text="text",g.Directive="directive",g.Comment="comment",g.Script="script",g.Style="style",g.Tag="tag",g.CDATA="cdata",g.Doctype="doctype",m.Root,m.Text,m.Directive,m.Comment,m.Script,m.Style,m.Tag,m.CDATA,m.Doctype;class n{parent=null;prev=null;next=null;startIndex=null;endIndex=null;get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return u(this,e)}}class a extends n{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class i extends a{type=m.Text;get nodeType(){return 3}}class s extends a{type=m.Comment;get nodeType(){return 8}}class l extends a{type=m.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"}class o extends n{children;constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class c extends o{type=m.CDATA;get nodeType(){return 4}}class d extends o{type=m.Root;get nodeType(){return 9}}class p extends o{name;attribs;type;constructor(e,t,r=[],n="script"===e?m.Script:"style"===e?m.Style:m.Tag){super(r),this.name=e,this.attribs=t,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this["x-attribsNamespace"]?.[e],prefix:this["x-attribsPrefix"]?.[e]}))}namespace;"x-attribsNamespace";"x-attribsPrefix"}function h(e){return e.type===m.Comment}function u(e,t=!1){let r;if(e.type===m.Text)r=new i(e.data);else if(h(e))r=new s(e.data);else if(e.type===m.Tag||e.type===m.Script||e.type===m.Style){let n=t?f(e.children):[],a=new p(e.name,{...e.attribs},n);for(let e of n)e.parent=a;null!=e.namespace&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]={...e["x-attribsPrefix"]}),r=a}else if(e.type===m.CDATA){let n=t?f(e.children):[],a=new c(n);for(let e of n)e.parent=a;r=a}else if(e.type===m.Root){let n=t?f(e.children):[],a=new d(n);for(let e of n)e.parent=a;e["x-mode"]&&(a["x-mode"]=e["x-mode"]),r=a}else if(e.type===m.Directive){let t=new l(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),r=t}else throw Error(`Not implemented yet: ${e.type}`);return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function f(e){let t=e.map(e=>u(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}var g,m,y=r(85102);let b=r.n(y)()("@media-platforms/bonsai-collector"),{error:w}=console;var k=class extends Map{ids;#e=new Set;async processQueries(e={}){let t=[];this.forEach((r,n)=>{if(n&&"AsyncFunction"===n.constructor.name){let a=r.filter(e=>!e?.controller?.signal?.aborted);return t.push(n(a,e))}
15let a=Promise.resolve();return r.forEach(t=>{a=a.then(()=>n?.controller?.signal?.aborted?Promise.resolve():t(n,e).then((t={})=>e.addNodeData(n,t)))}),t.push(a)}),this.ids&&this.ids.length&&(this.ids=[],this.#e.clear()),await Promise.allSettled(t).then(e=>{let t=Array.from(this.entries());e.forEach((e,r)=>{if("rejected"===e.status){let n=t[r],a=" from a plugin";if(n){let[e,t]=n;if(e&&e.constructor?.name==="AsyncFunction"){let e=t?.[0]?.controller?.callback;e?.src&&(a=` (from plugin: ${e.src})`)}else{let t=e?.controller?.callback;t?.src&&(a=` (from plugin: ${t.src})`)}}w(`Async query${a} caused an error`,e.reason)}})}).catch(e=>{b("Error processing queries",e)})}registerAsync=(e,t)=>{if("AsyncFunction"!==t.constructor.name){let e=` 16 17"registerAsync" only accepts an async function as a callback. 18 19`;throw w(e),Error(e)}let r=this.get(e);r?r.push(t):this.set(e,[t])};registerAsyncAll=(e,t)=>{if("AsyncFunction"!==t.constructor.name){let e=` 20 21"registerAsyncAll" only accepts an async function as a callback. 22 23`;throw w(e),Error(e)}let r=this.get(t);if(!r){this.ids?!this.ids.length&&this.#e.size&&this.#e.clear():(this.ids=[],this.#e.clear());let{controller:t}=e,r=t?.callback??{};if(r.id){if(this.#e.has(r.id)){let e=` 24 25"registerAsyncAll"${r.src?` (from plugin: ${r.src})`:" from a plugin"} already registered a method for this callback. 26 The method has to be same for every call 27 28`;throw w(e),Error(e)}this.ids.push(r.id),this.#e.add(r.id)}}r?r.push(e):this.set(t,[e])}};function x(e){return"object"==typeof e&&!!e&&!Array.isArray(e)}let{warn:v}=console;var A=class{callback;fingerprint;previousFingerprint;fingerprintHistory;lineage;signal;constructor(){this.signal={aborted:!1,node:null,replacement:null}}setCallback(e){this.callback=e}abort(e=null){this.signal.aborted||(this.signal.node=e,this.signal.aborted=!0)}createFingerprintHistory(e=[]){return this.fingerprintHistory=e,this.fingerprintHistory}createLineage(e=[]){return this.lineage=e,this.lineage}clear(){delete this.signal.node,this.fingerprintHistory=null}fingerprintNode(e){return JSON.stringify(function e(t){return x(t)||Array.isArray(t)?Array.isArray(t)?t.map(t=>Array.isArray(t)||x(t)?e(t):t):Object.keys(t).sort().map(r=>[r,e(t[r])]):t}(this.toFingerprintNode(e)))}toFingerprintNode(e){let t={type:e.type,name:e.name,tagName:e.tagName,data:e.data,attribs:e.attribs,properties:e.properties,_data:e._data};return e.children?.length&&(t.children=e.children.map(e=>this.toFingerprintNode(e))),t}compareFingerprints(e,t){return this.fingerprint&&e===this.fingerprint?(v("This is the same node"),!1):t.includes(e)?(v("New node is in history"),!1):(t.push(e),!0)}compareNodeFingerprint(e,t){let r=this.fingerprintHistory||this.createFingerprintHistory();this.previousFingerprint&&(r.push(this.previousFingerprint),delete this.previousFingerprint),this.fingerprint=this.fingerprintNode(e);let n=this.fingerprintNode(t);return this.compareFingerprints(n,r)}};let O=["parent","prev","next","state","adapter"];function N(e,t={}){let r={};return Object.entries(e).forEach(([e,n])=>{let a=t[e]??e;!1!==a&&(O.includes(e)?Object.defineProperty(r,a,{writable:!0,configurable:!0,value:n}):r[a]=n,a!==e&&Object.defineProperty(r,e,{writable:!0,configurable:!0,value:r[a]}))}),r}var P=class extends Map{setIfMissing(e,t,r={}){if(this.has(e))return this.get(e);let{process:n=!1}=r,a=n&&"function"==typeof t?t(...Array.isArray(n)?n:[]):t;return this.set(e,a),a}deleteKeys(e=[]){e.forEach(e=>this.delete(e))}};let{error:T}=console;function S(e){return Object.defineProperty(e,"controller",{value:new A}),e}function E(e){return!!e&&"function"==typeof e.then}function R(e,t){let r=e.src?` (from plugin: ${e.src})`:" from a plugin";T(`Callback "${e.key}"${r} caused an error`,t)}var C=class{registry;callbackRegistry;callbacks;callbackOptions;format;collector;detachedCallbacks;boundAsyncAllQueries;state;parser;nodeAdapter;maxRegistryPasses;maxDerivedNodeDepth;constructor(e,{nodeAdapter:t={},state:r=new Map,parser:n=null,maxRegistryPasses:a=100,maxDerivedNodeDepth:l=100,format:o}={}){let c=r instanceof P?r:new P([...r]);this.state=c,this.parser=n,this.format=o,this.registry=new Set,this.callbackRegistry=new Map,this.callbacks=e,this.nodeAdapter=t,this.maxRegistryPasses=a,this.maxDerivedNodeDepth=l,this.collector=new k,this.detachedCallbacks=new WeakSet,this.boundAsyncAllQueries=new WeakMap;let{registerAsync:d,registerAsyncAll:u}=this.collector;this.callbackOptions={registerAsync:d,registerAsyncAll:u,createElement:(e,t,r)=>{let n=new p(e,t||void 0,r||void 0),a=N(n,this.nodeAdapter);return Array.isArray(a.children)||Object.defineProperty(a,"children",{writable:!0,enumerable:!1,
28configurable:!0,value:n.children}),a},createDataElement:(e,t)=>{let r="comment"===e?new s(t):new i(t);return N(h(r)?r:new i(t),this.nodeAdapter)},addNodeData:(e,t)=>(e._data=e._data?{...e._data,...t}:t,e._data),detachCallback:e=>{let{callback:t}=e.controller;this.detachedCallbacks.add(t)},state:c,parser:n,format:o,options:{}}}getCallbackOptions(e){let t=e?.options??{},r=this.format??this.callbackOptions.format,n=e??this.callbackOptions;return{...this.callbackOptions,format:r,options:t,registerAsync:(e,n)=>{this.collector.registerAsync(e,async(e,a)=>n(e,{...a,format:r,options:t}))},registerAsyncAll:(e,a)=>{let i=this.boundAsyncAllQueries.get(n);i||(i=new WeakMap,this.boundAsyncAllQueries.set(n,i));let s=i.get(a);s||(s=async(e,n)=>a(e,{...n,format:r,options:t}),i.set(a,s)),this.collector.registerAsyncAll(e,s)}}}reset(){this.registry.clear()}resetDocument(){this.reset(),this.callbackRegistry.clear(),this.collector.clear()}onend(){let e=this.callbacks.onend;e&&e.forEach(e=>{e(this.getCallbackOptions(e),e)})}setContext(e={}){this.callbackOptions.context=e}setStreamContext(e){this.callbackOptions.stream=e}setState(e=new Map){let t=e instanceof P?e:new P([...e]);this.state=t,this.callbackOptions.state=t}setNodeAdapter(e={}){this.nodeAdapter=e}handleNode(e,t){let r=this.filterCachedCallbacks(e),n=e.controller?e:S(e);if(r)return this.invokeCallbacks({callbacks:r,node:n,shouldAwait:t})}handleNodes(e,t=null,r=0){let n=!1,a=e=>{t&&t(e),n=e};for(let i=r;i<e.length;i++){let r=e[i];if(r.children&&r.children.length){let s=this.handleNodes(r.children,a);if(n)return n=!1,Promise.resolve(s).then(()=>{let s=this.handleNode(r,a);if(n)return n=!1,Promise.resolve(s).then(()=>this.handleNodes(e,t,i+1)).then(()=>e);let l=this.handleNodes(e,t,i+1);return E(l)?l.then(()=>e):e});let l=this.handleNode(r,a);if(n)return n=!1,Promise.resolve(l).then(()=>this.handleNodes(e,t,i+1)).then(()=>e)}else{let s=this.handleNode(r,a);if(n)return n=!1,Promise.resolve(s).then(()=>this.handleNodes(e,t,i+1)).then(()=>e)}}return e}filterCachedCallbacks(e){let t=this.callbacks[e[this.nodeAdapter.name||"name"]],r=this.callbacks[e[this.nodeAdapter.type||"type"]];return t?r?{primary:t,secondary:r}:{primary:t}:r?{primary:r}:void 0}invokeCallbacks({callbacks:e,node:t,shouldAwait:r}){let{controller:n}=t,a=Array.isArray(e)?{primary:e}:e,i=()=>{if(!n.signal.node)return;let e=n.signal.node,a=e.controller?e:S(n.signal.node),{controller:i}=a,{callback:s}=t.controller,l=n.lineage?[...n.lineage]:[];if(null!=s.id&&l.push({id:s.id,key:s.key,src:s.src}),l.length>this.maxDerivedNodeDepth){let e=s.src?` (from plugin: ${s.src})`:" from a plugin";return"function"==typeof r&&r(!0),Promise.reject(Error(`Callback "${s.key}"${e} exceeded maxDerivedNodeDepth (${this.maxDerivedNodeDepth}). Lineage: ${l.map(({key:e,src:t})=>`${e||"unknown"}${t?`(${t})`:""}`).join(" -> ")}.`))}i.createLineage(l);let o=function e(t,r,n=[]){return(t.type===r||t.name===r)&&n.push(t),t.children&&t.children.length&&t.children.forEach(t=>{e(t,r,n)}),n}(a,s.key);if(o.length){let e=this.callbackRegistry.get(s.id);e||(e=new Set,this.callbackRegistry.set(s.id,e)),o.forEach(t=>e.add(t))}n.fingerprintHistory?i.fingerprintHistory=n.fingerprintHistory:(i.createFingerprintHistory(),i.previousFingerprint=i.fingerprintNode(t)),n.clear(),n.signal.replacement=a,this.registry.add(a)},s=e=>{let{primary:t,secondary:r}=a;return e<t.length?t[e]:r[e-t.length]},l=a.primary.length+(a.secondary?.length||0),o=(e=0)=>{for(let a=e;a<l;a++){let e=s(a);if(!this.detachedCallbacks.has(e)){n.setCallback(e);try{if(this.parser||n.fingerprintHistory||n.createFingerprintHistory(),function(e,t,r,n){if(null==t.id||!r?.length)return!1;let a=e[n.name||"name"],i=e[n.type||"type"];return r.some(({id:e,key:r})=>e===t.id&&(!r||r===a||r===i))}(t,e,n.lineage,this.nodeAdapter))continue;let s=this.callbackRegistry.get(e.id);if(s?.has(t))continue;s?s.add(t):this.callbackRegistry.set(e.id,new Set([t]));let l=e(t,this.getCallbackOptions(e));if(E(l))return"function"==typeof r&&r(!0),l.then(()=>n.signal.aborted?i():o(a+1),t=>(R(e,t),n.signal.aborted?i():o(a+1)))}catch(t){R(e,t)}if(n.signal.aborted)break}}return i()};return o()}async processRegistry(e=0){let t=e;for(;this.registry.size||this.collector.size;){if(t>=this.maxRegistryPasses)throw Error(`NodeHandler exceeded maxRegistryPasses (${this.maxRegistryPasses}). Pending nodes: ${this.registry.size}. Pending async collectors: ${this.collector.size}.`);let e=Array.from(this.registry.keys());this.reset(),e.length&&await this.handleNodes(e),this.collector.size&&(await this.collector.processQueries(this.callbackOptions),this.collector.clear()),t++}return this.onend()}}},62654:(e,t,r)=>{var n,a;r.d(t,{Ew:()=>G,BC:()=>A,NI:()=>v,Pr:()=>L,K9:()=>_,Hs:()=>O,rebuild:()=>P,Nz:()=>k,fx:()=>x,oZ:()=>U,QR:()=>Z,Jf:()=>I,Bq:()=>b,P_:()=>function e(t){return Array.isArray(t)?t.map(e).join(""):Object.hasOwn(t,"children")&&!g(t)?e(t.children):f(t)?t.data:""}}
28),(a=n||(n={})).Root="root",a.Text="text",a.Directive="directive",a.Comment="comment",a.Script="script",a.Style="style",a.Tag="tag",a.CDATA="cdata",a.Doctype="doctype",n.Root,n.Text,n.Directive,n.Comment,n.Script,n.Style,n.Tag,n.CDATA,n.Doctype;class i{parent=null;prev=null;next=null;startIndex=null;endIndex=null;get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return m(this,e)}}class s extends i{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class l extends s{type=n.Text;get nodeType(){return 3}}class o extends s{type=n.Comment;get nodeType(){return 8}}class c extends s{type=n.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"}class d extends i{children;constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class p extends d{type=n.CDATA;get nodeType(){return 4}}class h extends d{type=n.Root;get nodeType(){return 9}}class u extends d{name;attribs;type;constructor(e,t,r=[],a="script"===e?n.Script:"style"===e?n.Style:n.Tag){super(r),this.name=e,this.attribs=t,this.type=a}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this["x-attribsNamespace"]?.[e],prefix:this["x-attribsPrefix"]?.[e]}))}namespace;"x-attribsNamespace";"x-attribsPrefix"}function f(e){return e.type===n.Text}function g(e){return e.type===n.Comment}function m(e,t=!1){let r;if(f(e))r=new l(e.data);else if(g(e))r=new o(e.data);else if(e.type===n.Tag||e.type===n.Script||e.type===n.Style){let n=t?y(e.children):[],a=new u(e.name,{...e.attribs},n);for(let e of n)e.parent=a;null!=e.namespace&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]={...e["x-attribsPrefix"]}),r=a}else if(e.type===n.CDATA){let n=t?y(e.children):[],a=new p(n);for(let e of n)e.parent=a;r=a}else if(e.type===n.Root){let n=t?y(e.children):[],a=new h(n);for(let e of n)e.parent=a;e["x-mode"]&&(a["x-mode"]=e["x-mode"]),r=a}else if(e.type===n.Directive){let t=new c(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),r=t}else throw Error(`Not implemented yet: ${e.type}`);return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function y(e){let t=e.map(e=>m(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}function b(e,t,r){return e.attribs[t]=r,e.attribs}function w(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){let t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}function k(e){w(e),e.controller&&"function"==typeof e.controller.abort&&e.controller.abort()}function x(e,t,r){if(Object.is(e,t))return!1;let n=e.controller;return n&&n.fingerprintHistory&&!n.compareNodeFingerprint?.(e,t)?(r&&r(),!1):(function(e,t){let r=t.prev=e.prev;r&&(r.next=t);let n=t.next=e.next;n&&(n.prev=t);let a=t.parent=e.parent;if(a){let r=a.children;r[r.lastIndexOf(e)]=t,e.parent=null}}(e,t),n&&n.abort&&n.abort(t),!0)}function v(e,t){if(w(t),t.next=null,t.parent=e,e.children.push(t)>1){let r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null}function A(e,t){w(t);let{parent:r}=e,n=e.next;if(t.next=n,t.prev=e,e.next=t,t.parent=r,n){if(n.prev=t,r){let e=r.children;e.splice(e.lastIndexOf(n),0,t)}}else r&&r.children.push(t)}function O(e,t){w(t);let{parent:r}=e;if(r){let n=r.children;n.splice(n.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}function N(e,t,r,n){let a=n[t],i="string"==typeof a?a:t;Object.defineProperty(e,i,{writable:!0,configurable:!0,value:r}),i!==t&&Object.defineProperty(e,t,{writable:!0,configurable:!0,value:r})}function P(e,{clone:t=!1}={}){let r="string"==typeof e?JSON.parse(e):t?JSON.parse(JSON.stringify(e)):e;if(r.rebuilt)return r;let n=r.adapter||{};!function e(t,r){for(let[e,n]of Object.entries(r))"string"==typeof n&&n!==e&&function(e,t,r){let n=e[r];void 0!==n&&(Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{writable:!0,configurable:!0,value:n}))}(t,e,n);let n=t.children;
28Array.isArray(n)&&n.forEach(t=>e(t,r))}(r,n);let{children:a}=r;return a?.length&&a[0]?.[n.parent||"parent"]||(a&&function e(t,r,n={}){t.forEach((a,i)=>{let s=t[i-1]??null,l=t[i+1]??null;N(a,"parent",r,n),N(a,"prev",s,n),N(a,"next",l,n),a.children&&a.children.length>0&&e(a.children,a,n)})}(a,r,n),Object.defineProperty(r,"rebuilt",{writable:!1,value:!0})),r}let T=["href","src","xlink:href","formaction","action","poster","cite","background","data","srcset","imagesrcset"],S={img:!0,image:!0,source:!0,input:!0},E=/[\p{C}\p{Z}]/u,R=/^(?:javascript|vbscript):/i,C=/^data:/i,j=/^data:image\//i,D=/^data:image\/svg/i,M=/^[a-z][a-z+.-]*:/i,H=/^(?:https?:|mailto:|tel:)/i;function I(e,t){let r=e.trim();if(!r)return"";let n=function(e){if(!E.test(e))return e;let t="";for(let r of e)E.test(r)||(t+=r);return t}(r);return!n||R.test(n)?"":C.test(n)?"src"===t&&j.test(n)&&!D.test(n)?e:"":M.test(n)&&!H.test(n)?"":e}function L(e,t){return z(e.toLowerCase(),t.toLowerCase())}function z(e,t){return"poster"===e||"srcset"===e||"imagesrcset"===e||"src"===e&&S[t]||("href"===e||"xlink:href"===e)&&("image"===t||"img"===t)?"src":"href"}function $(e){return 32===e||9===e||10===e||13===e||12===e}function U(e,t){let r=[],n=e.length,a=0;for(;a<n;){for(;a<n&&$(e.charCodeAt(a));)a++;if(a>=n)break;let i=a;for(;a<n;){let t=e.charCodeAt(a);if(44===t||$(t))break;a++}let s=e.slice(i,a),l=a;for(;a<n&&44!==e.charCodeAt(a);)a++;let o=e.slice(l,a);if(a<n&&a++,!s)continue;let c=I(s,t);c&&r.push(c+o)}return r.join(",")}function F(e,t){if(e&&"object"==typeof e)for(let r=0;r<T.length;r++){let n=T[r],a=e[n];if("string"!=typeof a)continue;let i=z(n,t);e[n]="srcset"===n||"imagesrcset"===n?U(a,i):I(a,i)}}function Z(e,t={}){if(!e||"object"!=typeof e)return;let r=new WeakSet,n=[e],a=!1===t.attribs,i="string"==typeof t.attribs?t.attribs:"attribs",s="attribs"!==i;for(;n.length;){let e=n.pop();if(r.has(e))continue;if(r.add(e),!a){let r=(function(e,t){if(!1!==t.name){let r=e["string"==typeof t.name?t.name:"name"];if("string"==typeof r)return r}return"string"==typeof e.name?e.name:""})(e,t).toLowerCase();F(e[i],r),s&&F(e.attribs,r)}let l=function(e,t){if(!1!==t.children){let r=e["string"==typeof t.children?t.children:"children"];if(Array.isArray(r))return r}if(Array.isArray(e.children))return e.children}(e,t);if(l)for(let e=0;e<l.length;e++){let t=l[e];t&&"object"==typeof t&&n.push(t)}}}let G="renderClaim";function _(e,t={}){if(!e||"object"!=typeof e)return!1;let r=function(e,t={}){let r=function(e={}){let t=e._data;return!1!==t&&("string"==typeof t?t:"_data")}(t),n=(!1===r?void 0:e[r])??e._data;if(!(!n||"object"!=typeof n||Array.isArray(n)))return n}(e,t);if(!r)return!1;let n=r[G];return!0===n||!(!n||"object"!=typeof n||Array.isArray(n))&&!1!==n.exclusive}},95438:(e,t,r)=>{r.d(t,{BX:()=>b,LV:()=>p});let n=Symbol("Comlink.proxy"),a=Symbol("Comlink.endpoint"),i=Symbol("Comlink.releaseProxy"),s=Symbol("Comlink.finalizer"),l=Symbol("Comlink.thrown"),o=e=>"object"==typeof e&&null!==e||"function"==typeof e,c=new Map([["proxy",{canHandle:e=>o(e)&&e[n],serialize(e){let{port1:t,port2:r}=new MessageChannel;return function e(t,r=globalThis,n=["*"]){r.addEventListener("message",function a(i){let o;if(!i||!i.data)return;if(!function(e,t){for(let r of e)if(t===r||"*"===r||r instanceof RegExp&&r.test(t))return!0;return!1}(n,i.origin))return void console.warn(`Invalid origin '${i.origin}' for comlink proxy`);let{id:c,type:p,path:h}=Object.assign({path:[]},i.data),u=(i.data.argumentList||[]).map(k);try{let r=h.slice(0,-1).reduce((e,t)=>e[t],t),n=h.reduce((e,t)=>e[t],t);switch(p){case"GET":o=n;break;case"SET":r[h.slice(-1)[0]]=k(i.data.value),o=!0;break;case"APPLY":o=n.apply(r,u);break;case"CONSTRUCT":{let e=new n(...u);o=b(e)}break;case"ENDPOINT":{var f,g;let{port1:r,port2:n}=new MessageChannel;e(t,n),f=r,g=[r],y.set(f,g),o=f}break;case"RELEASE":o=void 0;break;default:return}}catch(e){o={value:e,[l]:0}}Promise.resolve(o).catch(e=>({value:e,[l]:0})).then(e=>{let[n,i]=w(e);r.postMessage(Object.assign(Object.assign({},n),{id:c}),i),"RELEASE"===p&&(r.removeEventListener("message",a),d(r),s in t&&"function"==typeof t[s]&&t[s]())}).catch(e=>{let[t,n]=w({value:TypeError("Unserializable return value"),[l]:0});r.postMessage(Object.assign(Object.assign({},t),{id:c}),n)})}),r.start&&r.start()}(e,t),[r,[r]]},deserialize:e=>(e.start(),p(e))}],["throw",{canHandle:e=>o(e)&&l in e,serialize:({value:e})=>[e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[]],deserialize(e){if(e.isError)throw Object.assign(Error(e.value.message),e.value);throw e.value}}]]);function d(e){"MessagePort"===e.constructor.name&&e.close()}function p(e,t){let r=new Map;return e.addEventListener("message",function(e){let{data:t}=e;if(!t||!t.id)return;let n=r.get(t.id);if(n)try{n(t)}finally{r.delete(t.id)}}),function e(t,r,n=[],s=function(){}){let l,o=!1,c=new Proxy(s,{get(a,s){if(h(o),s===i)return()=>{g&&g.unregister(c),u(t),r.clear(),o=!0};if("then"===s){if(0===n.length)return{then:()=>c};let e=x(t,r,{type:"GET",path:n.map(e=>e.toString())}).then(k);return e.then.bind(e)}return e(t,r,[...n,s])},set(e,a,i){h(o);let[s,l]=w(i);return x(t,r,{type:"SET",path:[...n,a].map(e=>e.toString()),value:s},l).then(k)},apply(i,s,l){h(o);let c=n[n.length-1];if(c===a)return x(t,r,{type:"ENDPOINT"}).then(k);if("bind"===c)return e(t,r,n.slice(0,-1));let[d,p]=m(l);
28return x(t,r,{type:"APPLY",path:n.map(e=>e.toString()),argumentList:d},p).then(k)},construct(e,a){h(o);let[i,s]=m(a);return x(t,r,{type:"CONSTRUCT",path:n.map(e=>e.toString()),argumentList:i},s).then(k)}});return l=(f.get(t)||0)+1,f.set(t,l),g&&g.register(c,t,c),c}(e,r,[],t)}function h(e){if(e)throw Error("Proxy has been released and is not useable")}function u(e){return x(e,new Map,{type:"RELEASE"}).then(()=>{d(e)})}let f=new WeakMap,g="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{let t=(f.get(e)||0)-1;f.set(e,t),0===t&&u(e)});function m(e){var t;let r=e.map(w);return[r.map(e=>e[0]),(t=r.map(e=>e[1]),Array.prototype.concat.apply([],t))]}let y=new WeakMap;function b(e){return Object.assign(e,{[n]:!0})}function w(e){for(let[t,r]of c)if(r.canHandle(e)){let[n,a]=r.serialize(e);return[{type:"HANDLER",name:t,value:n},a]}return[{type:"RAW",value:e},y.get(e)||[]]}function k(e){switch(e.type){case"HANDLER":return c.get(e.name).deserialize(e.value);case"RAW":return e.value}}function x(e,t,r,n){return new Promise(a=>{let i=[,,,,].fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");t.set(i,a),e.start&&e.start(),e.postMessage(Object.assign({id:i},r),n)})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.