1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8179,8676],{13662:(e,t,n)=>{let r;n.d(t,{EL:()=>C,Lu:()=>i,RK:()=>f,UD:()=>v,Xp:()=>j,ob:()=>T,qg:()=>d,wT:()=>k,yT:()=>w});let l=(e,t)=>[-1,...t,e.length].reduce((t,n)=>{var r;let{xs:l,a:o}=t;return{xs:null!=(r=null==l?void 0:l.concat([e.slice(o+1,n)]))?r:[],a:n}},{}).xs,o=/\d/,i=/^epubcfi\((.*)\)$/,a=e=>e.replace(/[\^[\](),;=]/g,"^$&"),f=(r=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.join("!")},function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return"epubcfi(".concat(r(...t.map(e=>{var t,n;return null!=(n=null==(t=e.match(i))?void 0:t[1])?n:e})),")")}),u=(e,t)=>{let n;return n=e=>{let[n]=e;return n===t},e.map((e,t,r)=>n(e,t,r)?t:null).filter(e=>null!=e)},s=e=>{let t,n=[];for(let[o,i]of e){if("/"===o)n.push({index:i});else{var r,l;let e=n[n.length-1];if(":"===o)e.offset=i;else if("~"===o)e.temporal=i;else if("@"===o)e.spatial=(null!=(r=e.spatial)?r:[]).concat(i);else if(";s"===o)e.side=i;else if("["===o)if("/"===t&&i)e.id=i;else{e.text=(null!=(l=e.text)?l:[]).concat(i);continue}}t=o}return n},c=e=>l(e,u(e,"!")).map(s),d=e=>{let t=(e=>{let t=[],n,r,l="",i=e=>(t.push(e),n=null,l=""),a=e=>(l+=e,r=!1);for(let t of Array.from(e.trim()).concat("")){if("^"===t&&!r){r=!0;continue}if("!"===n)i(["!"]);else if(","===n)i([","]);else if("/"===n||":"===n)if(o.test(t)){a(t);continue}else i([n,parseInt(l)]);else if("~"===n)if(o.test(t)||"."===t){a(t);continue}else i(["~",parseFloat(l)]);else if("@"===n){if(":"===t){i(["@",parseFloat(l)]),n="@";continue}if(o.test(t)||"."===t){a(t);continue}i(["@",parseFloat(l)])}else if("["===n){";"!==t||r?","!==t||r?"]"!==t||r?a(t):i(["[",l]):(i(["[",l]),n="["):(i(["[",l]),n=";");continue}else if(null==n?void 0:n.startsWith(";")){"="!==t||r?";"!==t||r?"]"!==t||r?a(t):i([n,l]):(i([n,l]),n=";"):(n=";".concat(l),l="");continue}("/"===t||":"===t||"~"===t||"@"===t||"["===t||"!"===t||","===t)&&(n=t)}return t})((e=>{var t,n;return null!=(n=null==(t=e.match(i))?void 0:t[1])?n:e})(e)),n=u(t,",");if(!n.length)return c(t);let[r,a,f]=l(t,n).map(c);return{parent:r,start:a,end:f}},p=e=>{var t,n;let{index:r,id:l,offset:o,temporal:i,spatial:f,text:u,side:s}=e,c=s?";s=".concat(s):"";return"/".concat(r)+(l?"[".concat(a(l)).concat(c,"]"):"")+(null!=o&&r%2?":".concat(o):"")+(i?"~".concat(i):"")+(f?"@".concat(f.join(":")):"")+(u||!l&&s?"["+(null!=(n=null==u||null==(t=u.map(a))?void 0:t.join(","))?n:"")+c+"]":"")},h=e=>e.parent?[e.parent,e.start,e.end].map(h).join(","):e.map(e=>e.map(p).join("")).join("!"),g=e=>(e=>i.test(e)?e:"epubcfi(".concat(e,")"))(h(e)),m=(e,t)=>"string"==typeof e?g(m(d(e),t)):e.parent?((e,t)=>e.slice(0,-1).concat([e[e.length-1].concat(t[0])]).concat(t.slice(1)))(e.parent,e[t?"end":"start"]):e,v=(e,t)=>{if("string"==typeof e&&(e=d(e)),"string"==typeof t&&(t=d(t)),e.start||t.start)return v(m(e),m(t))||v(m(e,!0),m(t,!0));for(let n=0;n<Math.max(e.length,t.length);n++){let r=e[n],l=t[n],o=Math.max(r.length,l.length)-1;for(let e=0;e<=o;e++){let t=r[e],n=l[e];if(!t)return -1;if(!n||t.index>n.index)return 1;if(t.index<n.index)return -1;if(e===o){if(t.offset>n.offset)return 1;if(t.offset<n.offset)return -1}}}return 0},y=e=>{let{nodeType:t}=e;return 3===t||4===t},x=e=>{let{nodeType:t}=e;return 1===t},_=e=>{let t=Array.from(e.childNodes).filter(e=>y(e)||x(e)).reduce((e,t)=>{let n=e[e.length-1];return n?y(t)?Array.isArray(n)?n.push(t):y(n)?e[e.length-1]=[n,t]:e.push(t):x(n)?e.push(null,t):e.push(t):e.push(t),e},[]);return x(t[0])&&t.unshift("first"),x(t[t.length-1])&&t.push("last"),t.unshift("before"),t.push("after"),t},b=(e,t)=>e?_(e)[t]:null,A=(e,t)=>{let{id:n}=t[t.length-1];if(n){let t=e.ownerDocument.getElementById(n);if(t)return{node:t,offset:0}}for(let{index:n}of t){var r,l;let t=b(e,n);if("first"===t)return{node:null!=(r=e.firstChild)?r:e};if("last"===t)return{node:null!=(l=e.lastChild)?l:e};if("before"===t)return{node:e,before:!0};if("after"===t)return{node:e,after:!0};e=t}let{offset:o}=t[t.length-1];if(!Array.isArray(e))return{node:e,offset:o};let i=0;for(let t of e){let{length:e}=t.nodeValue;if(i+e>=o)return{node:t,offset:o-i};i+=e}},E=(e,t)=>{let{parentNode:n,id:r}=e,l=_(n),o=l.findIndex(t=>Array.isArray(t)?t.some(t=>t===e):t===e),i=l[o];if(Array.isArray(i)){let n=0;for(let r of i)if(r===e){n+=t;break}else n+=r.nodeValue.length;t=n}let a={id:r,index:o,offset:t};return n!==e.ownerDocument.documentElement?E(n).concat(a):[a]},w=e=>{let{startContainer:t,startOffset:n,endContainer:r,endOffset:l}=e,o=E(t,n);return e.collapsed?g([o]):((e,t)=>{"string"==typeof e&&(e=d(e)),"string"==typeof t&&(t=d(t)),e=m(e),t=m(t,!0);let n=e[e.length-1],r=t[t.length-1],l=[],o=[],i=[],a=!0,f=Math.max(n.length,r.length);for(let e=0;e<f;e++){let t=n[e],f=r[e];a&&(a=(null==t?void 0:t.index)===(null==f?void 0:f.index)&&!(null==t?void 0:t.offset)&&!(null==f?void 0:f.offset)),a?l.push(t):(t&&o.push(t),f&&i.push(f))}return g({parent:e.slice(0,-1).concat([l]),start:[o],end:[i]})})([o],[E(r,l)])},j=(e,t)=>{let n=m(t),r=m(t,!0),l=e.documentElement,o=A(l,n[0]),i=A(l,r[0]),a=e.createRange();return o.before?a.setStartBefore(o.node):o.after?a.setStartAfter(o.node):a.setStart(o.node,o.offset),i.before?a.setEndBefore(i.node):i.after?a.setEndAfter(i.node):a.setEnd(i.node,i.offset),a},T=e=>{let t=[],{parentNode:n}=e[0],r=E(n);for(let[l,o]of _(n).entries()){let n=e[t.length];
1o===n&&t.push(g([r.concat({id:n.id,index:l})]))}return t},k=(e,t)=>A(e.documentElement,m(t)).node,C={fromIndex:e=>"/6/".concat((e+1)*2),toIndex:e=>(null==e?void 0:e.at(-1).index)/2-1}},14096:(e,t,n)=>{n.d(t,{_:()=>l});var r=n(28646);function l(e,t,n){(0,r._)(e,t),t.set(e,n)}},28646:(e,t,n)=>{n.d(t,{_:()=>r});function r(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}},43969:(e,t,n)=>{n.d(t,{_:()=>r});function r(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}},63169:(e,t,n)=>{n.d(t,{_:()=>r});function r(e,t,n){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return n}},83893:(e,t,n)=>{n.d(t,{_:()=>l});var r=n(28646);function l(e,t){(0,r._)(e,t),t.add(e)}},86266:(e,t,n)=>{n.d(t,{_:()=>l});var r=n(43969);function l(e,t,n){var l=(0,r._)(e,t,"set");if(l.set)l.set.call(e,n);else{if(!l.writable)throw TypeError("attempted to set read only private field");l.value=n}return n}},94971:(e,t,n)=>{n.d(t,{_:()=>l});var r=n(43969);function l(e,t){var n=(0,r._)(e,t,"get");return n.get?n.get.call(e):n.value}}}]);
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.